Skip to content

Commit 373e954

Browse files
committed
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
1 parent 29db060 commit 373e954

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

property/row/row.view.tree

+26-26
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ $hyoo_case_property_row $mol_view
2727
value?val <=> pick?val \
2828
options <= pick_options /string
2929
filter_pattern => pick_query
30-
option_content!id /
31-
<= Pick_option!id $hyoo_case_entity_snippet
32-
entity <= entity!id $hyoo_case_entity
30+
option_content* /
31+
<= Pick_option* $hyoo_case_entity_snippet
32+
entity <= entity* $hyoo_case_entity
3333
highlight <= pick_query
34-
option_label!id <= pick_option_title!id \
34+
option_label* <= pick_option_title* \
3535
<= Content $mol_list rows <= content /
36-
Add_option!id $mol_button_minor
37-
click?event <=> add!id?event null
36+
Add_option* $mol_button_minor
37+
click?event <=> add*?event null
3838
sub /
39-
<= Add_option_snippet!id $hyoo_case_entity_snippet
40-
entity <= entity!id $hyoo_case_entity
39+
<= Add_option_snippet* $hyoo_case_entity_snippet
40+
entity <= entity* $hyoo_case_entity
4141
Text $mol_textarea
4242
hint <= text_hint \…
4343
value?val <=> text?val \
@@ -48,29 +48,29 @@ $hyoo_case_property_row $mol_view
4848
Numb $mol_number
4949
hint \NaN
5050
value?val <=> numb?val 0
51-
Link_row!id $mol_view
51+
Link_row* $mol_view
5252
minimal_height 40
53-
sub <= link_content!id /
54-
<= Link_drag!id $mol_drag
53+
sub <= link_content* /
54+
<= Link_drag* $mol_drag
5555
transfer *
56-
text/plain <= link_title!id \
57-
text/html <= link_html!id \
58-
text/uri-list <= link_uri!id \
59-
Sub <= Link_drop!id $mol_drop
56+
text/plain <= link_title* \
57+
text/html <= link_html* \
58+
text/uri-list <= link_uri* \
59+
Sub <= Link_drop* $mol_drop
6060
adopt?transfer <=> transfer_adopt?transfer null
61-
receive?obj <=> receive_before!id?obj null
62-
Sub <= Link_view!id $mol_view
63-
<= Drop!id $mol_button_minor
61+
receive?obj <=> receive_before*?obj null
62+
Sub <= Link_view* $mol_view
63+
<= Drop* $mol_button_minor
6464
hint @ \Drop link
65-
click?event <=> drop!id?event null
65+
click?event <=> drop*?event null
6666
sub /
67-
<= Drop_icon!id $mol_icon_cross
68-
Link_link!id $mol_link
69-
arg <= link_arg!id *
67+
<= Drop_icon* $mol_icon_cross
68+
Link_link* $mol_link
69+
arg <= link_arg* *
7070
sub /
71-
<= Link_snippet!id $hyoo_case_entity_snippet
72-
entity <= link_entity!id $hyoo_case_entity
73-
Link_form!id $hyoo_case_entity_form
74-
entity <= link_entity!id $hyoo_case_entity
71+
<= Link_snippet* $hyoo_case_entity_snippet
72+
entity <= link_entity* $hyoo_case_entity
73+
Link_form* $hyoo_case_entity_form
74+
entity <= link_entity* $hyoo_case_entity
7575
editable <= editable
7676

property/row/row.view.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ namespace $.$$ {
243243

244244
}
245245

246-
link_title( index: string ) {
246+
override link_title( index: number ) {
247247
const target = this.property().links()[ index ]
248248
return `#${ target.id() }`
249249
}
250250

251-
link_html( index: string ) {
251+
link_html( index: number ) {
252252
const target = this.property().links()[ index ]
253253
return `#${ target.id() }`
254254
}
255255

256-
link_uri( index: string ) {
256+
link_uri( index: number ) {
257257
const target = this.property().links()[ index ]
258258
return this.$.$mol_state_arg.make_link({ [ target.id() ]: '' })
259259
}

0 commit comments

Comments
 (0)