Skip to content

Commit

Permalink
Merge pull request #2 from hyoo-ru/new-tree2
Browse files Browse the repository at this point in the history
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
  • Loading branch information
nin-jin authored Feb 11, 2024
2 parents 29db060 + 373e954 commit 663b29a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
52 changes: 26 additions & 26 deletions property/row/row.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ $hyoo_case_property_row $mol_view
value?val <=> pick?val \
options <= pick_options /string
filter_pattern => pick_query
option_content!id /
<= Pick_option!id $hyoo_case_entity_snippet
entity <= entity!id $hyoo_case_entity
option_content* /
<= Pick_option* $hyoo_case_entity_snippet
entity <= entity* $hyoo_case_entity
highlight <= pick_query
option_label!id <= pick_option_title!id \
option_label* <= pick_option_title* \
<= Content $mol_list rows <= content /
Add_option!id $mol_button_minor
click?event <=> add!id?event null
Add_option* $mol_button_minor
click?event <=> add*?event null
sub /
<= Add_option_snippet!id $hyoo_case_entity_snippet
entity <= entity!id $hyoo_case_entity
<= Add_option_snippet* $hyoo_case_entity_snippet
entity <= entity* $hyoo_case_entity
Text $mol_textarea
hint <= text_hint \…
value?val <=> text?val \
Expand All @@ -48,29 +48,29 @@ $hyoo_case_property_row $mol_view
Numb $mol_number
hint \NaN
value?val <=> numb?val 0
Link_row!id $mol_view
Link_row* $mol_view
minimal_height 40
sub <= link_content!id /
<= Link_drag!id $mol_drag
sub <= link_content* /
<= Link_drag* $mol_drag
transfer *
text/plain <= link_title!id \
text/html <= link_html!id \
text/uri-list <= link_uri!id \
Sub <= Link_drop!id $mol_drop
text/plain <= link_title* \
text/html <= link_html* \
text/uri-list <= link_uri* \
Sub <= Link_drop* $mol_drop
adopt?transfer <=> transfer_adopt?transfer null
receive?obj <=> receive_before!id?obj null
Sub <= Link_view!id $mol_view
<= Drop!id $mol_button_minor
receive?obj <=> receive_before*?obj null
Sub <= Link_view* $mol_view
<= Drop* $mol_button_minor
hint @ \Drop link
click?event <=> drop!id?event null
click?event <=> drop*?event null
sub /
<= Drop_icon!id $mol_icon_cross
Link_link!id $mol_link
arg <= link_arg!id *
<= Drop_icon* $mol_icon_cross
Link_link* $mol_link
arg <= link_arg* *
sub /
<= Link_snippet!id $hyoo_case_entity_snippet
entity <= link_entity!id $hyoo_case_entity
Link_form!id $hyoo_case_entity_form
entity <= link_entity!id $hyoo_case_entity
<= Link_snippet* $hyoo_case_entity_snippet
entity <= link_entity* $hyoo_case_entity
Link_form* $hyoo_case_entity_form
entity <= link_entity* $hyoo_case_entity
editable <= editable

6 changes: 3 additions & 3 deletions property/row/row.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,17 @@ namespace $.$$ {

}

link_title( index: string ) {
override link_title( index: number ) {
const target = this.property().links()[ index ]
return `#${ target.id() }`
}

link_html( index: string ) {
link_html( index: number ) {
const target = this.property().links()[ index ]
return `#${ target.id() }`
}

link_uri( index: string ) {
link_uri( index: number ) {
const target = this.property().links()[ index ]
return this.$.$mol_state_arg.make_link({ [ target.id() ]: '' })
}
Expand Down

0 comments on commit 663b29a

Please sign in to comment.