Skip to content

Commit

Permalink
Merge pull request #598 from Lyumih/feature/val-syntax-refacroting
Browse files Browse the repository at this point in the history
Замена старого синтаксиса ?val на новый ? в $mol
  • Loading branch information
nin-jin committed Jun 20, 2023
2 parents 41bfbc3 + 4f7eef0 commit 38ecaf6
Show file tree
Hide file tree
Showing 114 changed files with 319 additions and 319 deletions.
4 changes: 2 additions & 2 deletions app/demo/menu/menu.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $mol_app_demo_menu $mol_page
sub /
<= List $mol_list rows /
<= Filter $mol_search
query?val <=> filter?val \
query? <=> filter? \
- suggests <= filter_suggests
<= Tree $mol_tag_tree
Item* <= Option*
Expand All @@ -19,4 +19,4 @@ $mol_app_demo_menu $mol_page
sub /
<= Option_title* $mol_dimmer
haystack <= option_title* \
needle <= filter?val \
needle <= filter? \
2 changes: 1 addition & 1 deletion app/hello/hello.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mol_app_hello $mol_view
sub /
<= Name $mol_string
hint <= name_hint \Name
value?val <=> name?val \
value? <=> name? \
<= Greeting $mol_view
sub /
<= greeting \
6 changes: 3 additions & 3 deletions app/report/report.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ $mol_app_report $mol_page
rows <= cellrows* 1
cols <= cellCols* 1
texter* $mol_view
sub / <= cell_value*?val null
sub / <= cell_value*? null
select* $mol_select
value?val <=> cell_value*?val null
value? <=> cell_value*? null
dictionary <= cell_options* *
number* $mol_number
value?val <=> cell_value*?val null
value? <=> cell_value*? null

$mol_app_report_tabler $mol_view
dom_name \table
Expand Down
4 changes: 2 additions & 2 deletions app/supplies/detail/detail.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $mol_app_supplies_detail $mol_page
content /
<= Attach $mol_attach
items <= attachments /string
attach_new?val <=> attach_new?val null
attach_new? <=> attach_new? null
<= Positions_section $mol_section
head <= positions_head /
<= positions_title @ \Positions
Expand All @@ -60,7 +60,7 @@ $mol_app_supplies_detail $mol_page
<= Actions $mol_row
sub <= actions /
<= Approve $mol_check_box
checked?val <=> approved?val false
checked? <=> approved? false
title <= approved_title @ \Approved
-
Position* $mol_app_supplies_position
Expand Down
8 changes: 4 additions & 4 deletions app/supplies/enter/enter.view.tree
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
$mol_app_supplies_enter $mol_view
entered?val false
entered? false
minimal_width 400
sub / <= form $mol_form
form_fields /
<= loginField $mol_form_field
name <= loginLabel @ \User name
control <= loginControl $mol_string value?val <=> login?val \
control <= loginControl $mol_string value? <=> login? \
<= passwordField $mol_form_field
name <= passwordLabel @ \Pass word
control <= passControl $mol_string
value?val <=> password?val \
value? <=> password? \
type \password
buttons /
<= submit $mol_button_major
sub / <= submitLabel @ \Log In
click?val <=> event_submit?val null
click? <=> event_submit? null
disabled <= submit_blocked false
2 changes: 1 addition & 1 deletion app/supplies/list/list.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $mol_app_supplies_list $mol_page
tools /
<= Search $mol_code
hint <= search_hint @ \Search supply by bar code
value?val <=> search_query?val \
value? <=> search_query? \
body /
<= Supply_rows $mol_list
rows <= supply_rows /$mol_view
Expand Down
4 changes: 2 additions & 2 deletions app/supplies/supplies.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ $mol_app_supplies $mol_book2
mol_theme \$mol_theme_auto
-
enter $mol_app_supplies_enter
entered?val <=> entered?val false
entered? <=> entered? false
-
List $mol_app_supplies_list
supplies <= supplies /$mol_app_supplies_domain_supply
tools <= tools_root /
title <= list_title @ \Supplies
search_query?val <=> supply_id?val \
search_query? <=> supply_id? \
-
Detail* $mol_app_supplies_detail
supply <= supply null
4 changes: 2 additions & 2 deletions attach/attach.view.tree
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$mol_attach $mol_view
items?val /string
items? /string
sub /
<= Content $mol_row
sub <= content /$mol_view
Add $mol_button_open
title <= attach_title \
files?val <=> attach_new?val null
files? <=> attach_new? null
Item* $mol_button_minor
click?event <=> item_drop*?event null
sub /
Expand Down
2 changes: 1 addition & 1 deletion attach/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mol_attach_demo $mol_example_small
title \Attach files an show them
sub /
<= Filled $mol_attach
items?val <=> filled_items?val /
items? <=> filled_items? /
\https://picsum.photos/200
tags /
\file
Expand Down
2 changes: 1 addition & 1 deletion attach/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Component that helps to upload files to server.
## Usage example
```
<= Logos $mol_attach
items?val <=> logos?val /
items? <=> logos? /
<= Item1 $mol_attach_item
url_thumb \/mol/logo/logo.svg
url_load \/mol/logo/logo.svg
Expand Down
6 changes: 3 additions & 3 deletions bar/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ $mol_bar_demo $mol_example_small
sub /
<= Two_mail $mol_string
hint <= mail_hint \E-mail
value?val <=> mail?val \
value? <=> mail? \
<= Two_submit $mol_button_minor
title <= submit_title \Submit
<= Three $mol_bar
sub /
<= Three_mail $mol_string
hint <= mail_hint \E-mail
value?val <=> mail?val \
value? <=> mail? \
<= Three_confirm $mol_check_box
title <= confirm_title \Confirm
checked?val <=> confirmed?val false
checked? <=> confirmed? false
tags /
\group
\container
Expand Down
2 changes: 1 addition & 1 deletion bar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The component for grouping several components in one composite control.
<= Search $mol_bar
sub /
<= String $mol_string
value?val <=> query?val \
value? <=> query? \
<= Submit $mol_button_minor
title <= submit_label @ \Submit
```
6 changes: 3 additions & 3 deletions bench/bench.view.tree
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$mol_bench $mol_grid
records <= result *
col_sort?val \
col_sort? \
-
Col_head* $mol_bench_head
event_click?val <=> event_sort_toggle*?val null
event_click? <=> event_sort_toggle*? null
sub <= col_head_content* /
<= col_head_title* \
<= Col_head_sort* $mol_icon_sort_asc
Expand All @@ -18,7 +18,7 @@ $mol_bench_head $mol_float
horizontal false
event *
^
click?val <=> event_click?val null
click? <=> event_click? null
attr *
^
title <= hint @ \Click to sort by this column
2 changes: 1 addition & 1 deletion bench/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mol_bench_demo $mol_example_small
title \Benchmarking results visualization
sub /
<= View $mol_bench
col_sort?val <=> col_sort?val \mid
col_sort? <=> col_sort? \mid
result <= result *
tags /
\perfomance
Expand Down
4 changes: 2 additions & 2 deletions bench/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Benchmark results visualizer.

```
<= Result $mol_bench
col_sort?val <=> result_sort?val \
result?val <=> result_data?val *
col_sort? <=> result_sort? \
result? <=> result_data? *
```

## Properties
Expand Down
4 changes: 2 additions & 2 deletions book/book.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ $mol_book $mol_view
<= Meter $mol_meter
width => width
<= Touch $mol_touch
swipe_from_left?val <=> event_front_up?val null
swipe_to_left?val <=> event_front_down?val null
swipe_from_left? <=> event_front_up? null
swipe_to_left? <=> event_front_down? null
Page* $mol_book_page
Sub <= page* null
visible <= page_visible* true
Expand Down
2 changes: 1 addition & 1 deletion book2/catalog/catalog.view.tree
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$mol_book2_catalog $mol_book2
param \
spread?val \
spread? \
spreads *
Spread $mol_view
pages /
Expand Down
4 changes: 2 additions & 2 deletions chart/chart.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ $mol_chart $mol_view
<= Legend $mol_chart_legend
graphs <= graphs_colored
<= Plot $mol_plot_pane
scale_x?val => zoom?val
zoom?val <=> zoom?val
scale_x? => zoom?
zoom? <=> zoom?
gap_left <= gap_left
gap_right <= gap_right
gap_bottom <= gap_bottom
Expand Down
8 changes: 4 additions & 4 deletions check/box/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ $mol_check_box_demo $mol_example_small
sub /
<= Demo_items $mol_list rows /
<= Labeled_base $mol_check_box
checked?val <=> base_checked?val false
checked? <=> base_checked? false
title <= c1Label \Base
-
<= Labeled_checked $mol_check_box
title <= c2Label \Checked
checked?val <=> checked_checked?val true
checked? <=> checked_checked? true
-
<= Labeled_disabled $mol_check_box
title <= c6Label \Disabled
checked true
enabled false
-
<= Alone_base $mol_check_box
checked?val <=> base_checked?val false
checked? <=> base_checked? false
-
<= Alone_checked $mol_check_box
checked?val <=> checked_checked?val true
checked? <=> checked_checked? true
-
<= Alone_disabled $mol_check_box
checked true
Expand Down
8 changes: 4 additions & 4 deletions check/expand/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ $mol_check_expand_demo $mol_example_small
sub /
<= Demo_items $mol_list rows /
<= Labeled_base $mol_check_expand
checked?val <=> base_expanded?val false
checked? <=> base_expanded? false
title <= c1Label \Base
-
<= Labeled_expanded $mol_check_expand
title <= c2Label \Expanded
checked?val <=> expanded_expanded?val true
checked? <=> expanded_expanded? true
-
<= Disabled $mol_check_expand
title <= c5Label \Non expandable
disabled true
-
<= Empty_base $mol_check_expand
checked?val <=> base_expanded?val false
checked? <=> base_expanded? false
-
<= Empty_expanded $mol_check_expand
checked?val <=> expanded_expanded?val true
checked? <=> expanded_expanded? true
tags /
\fold
aspects /
Expand Down
2 changes: 1 addition & 1 deletion check/expand/expand.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ $mol_check_expand $mol_check
style *
^
paddingLeft <= level_style \0px
checked?val <=> expanded?val false
checked? <=> expanded? false
enabled <= expandable false
14 changes: 7 additions & 7 deletions check/group/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ $mol_check_group_demo $mol_example_small
<= Partial $mol_list rows /
<= Strength $mol_check_box
title <= strength_title \Strength
checked?val <=> strength?val false
checked? <=> strength? false
<= Perception $mol_check_box
title <= perception_title \Perception
checked?val <=> perception?val true
checked? <=> perception? true
<= Endurance $mol_check_box
title <= endurance_title \Endurance
checked?val <=> endurance?val false
checked? <=> endurance? false
<= Charisma $mol_check_box
title <= charisma_title \Charisma
checked?val <=> charisma?val false
checked? <=> charisma? false
<= Intelligence $mol_check_box
title <= intelligence_title \Intelligence
checked?val <=> intelligence?val true
checked? <=> intelligence? true
<= Agility $mol_check_box
title <= agility_title \Agility
checked?val <=> agility?val true
checked? <=> agility? true
<= Luck $mol_check_box
title <= luck_title \Luck
checked?val <=> luck?val true
checked? <=> luck? true
tags /
\multi
\group
Expand Down
4 changes: 2 additions & 2 deletions check/icon/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ $mol_check_icon_demo $mol_example_small
sub /
<= Base $mol_check_icon
Icon <= Base_icon $mol_icon_microphone
checked?val <=> base_checked?val false
checked? <=> base_checked? false
-
<= Checked $mol_check_icon
Icon <= Checked_icon $mol_icon_microphone
checked?val <=> checked_checked?val true
checked? <=> checked_checked? true
-
<= Disabled $mol_check_box
Icon <= Disabled_icon $mol_icon_microphone
Expand Down
2 changes: 1 addition & 1 deletion check/list/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mol_check_list_demo $mol_example_small
title \Set of toggles
sub /
<= Rights $mol_check_list
option_checked*?val <=> right*?val false
option_checked*? <=> right*? false
options *
read \Allow Read
write \Allow Write
Expand Down
2 changes: 1 addition & 1 deletion check/list/list.view.tree
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$mol_check_list $mol_view
Option* $mol_check
checked?val <=> option_checked*?val false
checked? <=> option_checked*? false
label <= option_label* /
<= option_title* \
enabled <= option_enabled* <= enabled true
Expand Down
2 changes: 1 addition & 1 deletion check/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Checkbox UI component. See Variants for more concrete implementations.
```
<= Spam $mol_check_box
title <= spam_title @ \Send me some spam
checked?val <=> spam_needed?val true
checked? <=> spam_needed? true
enabled <= spam_enabled false
```

Expand Down
4 changes: 2 additions & 2 deletions code/code.view.tree
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$mol_code $mol_view
sub /
<= Manual $mol_search
query?val <=> value?val \
query? <=> value? \
hint <= hint <= format \
<= Scan $mol_button
event_click?val <=> event_scan?val null
event_click? <=> event_scan? null
sub /
<= scan_label @ \Scan
2 changes: 1 addition & 1 deletion code/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Machine readable code input. On Cordova displays button to call native scanner.
```
<= Product_code $mol_code
format \EAN_13
value?val <=> product_code?val \
value? <=> product_code? \
```

## Properties
Expand Down
Loading

0 comments on commit 38ecaf6

Please sign in to comment.