mol_dump_lib 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web.view.tree ADDED
@@ -0,0 +1,241 @@
1
+ $mol_stack $mol_view
2
+
3
+ $mol_paragraph $mol_view
4
+ line_height 24
5
+ letter_width 7
6
+ width_limit +Infinity
7
+ row_width 0
8
+ sub / <= title
9
+
10
+ $mol_dimmer $mol_paragraph
11
+ haystack \
12
+ needle \
13
+ sub <= parts /$mol_view_content
14
+ Low* $mol_paragraph
15
+ sub /
16
+ <= string* \
17
+ High* $mol_paragraph
18
+ sub /
19
+ <= string* \
20
+
21
+ $mol_text_code_token $mol_dimmer
22
+ attr *
23
+ ^
24
+ mol_text_code_token_type <= type \
25
+
26
+ $mol_text_code_token_link $mol_text_code_token
27
+ dom_name \a
28
+ type \code-link
29
+ attr *
30
+ ^
31
+ href <= uri \
32
+ target \_blank
33
+
34
+ $mol_text_code_row $mol_paragraph
35
+ text \
36
+ minimal_height 24
37
+ numb_showed true
38
+ syntax null
39
+ uri_resolve* \
40
+ Numb $mol_view
41
+ sub /
42
+ <= numb 0
43
+ Token* $mol_text_code_token
44
+ type <= token_type* \
45
+ haystack <= token_text* \
46
+ needle <= highlight \
47
+ Token_link* $mol_text_code_token_link
48
+ haystack <= token_text* \
49
+ needle <= highlight \
50
+ uri <= token_uri* \
51
+ find_pos* null
52
+
53
+ $mol_list $mol_view
54
+ render_visible_only true
55
+ render_over 0
56
+ sub <= rows /$mol_view
57
+ Empty $mol_view
58
+ Gap_before $mol_view style * paddingTop <= gap_before 0
59
+ Gap_after $mol_view style * paddingTop <= gap_after 0
60
+ view_window /
61
+ 0
62
+ 0
63
+
64
+ $mol_speck $mol_view
65
+ attr *
66
+ ^
67
+ mol_theme <= theme \$mol_theme_accent
68
+ style *
69
+ ^
70
+ minHeight \1em
71
+ sub /
72
+ <= value null
73
+
74
+ $mol_button $mol_view
75
+ enabled true
76
+ click?event null
77
+ event_click?event null
78
+ event *
79
+ ^
80
+ click?event <=> event_activate?event null
81
+ dblclick?event <=> clicks?event null
82
+ keydown?event <=> event_key_press?event null
83
+ attr *
84
+ ^
85
+ disabled <= disabled false
86
+ role \button
87
+ tabindex <= tab_index 0
88
+ title <= hint_safe <= hint \
89
+ sub /$mol_view_content
90
+ <= title
91
+ Speck $mol_speck
92
+ value <= error \
93
+
94
+ $mol_button_typed $mol_button
95
+ minimal_height 40
96
+ minimal_width 40
97
+
98
+ $mol_button_minor $mol_button_typed
99
+
100
+ $mol_svg $mol_view
101
+ dom_name \svg
102
+ dom_name_space \http://www.w3.org/2000/svg
103
+ font_size 16
104
+ font_family \
105
+ style_size *
106
+
107
+ $mol_svg_root $mol_svg
108
+ dom_name \svg
109
+ attr *
110
+ ^
111
+ viewBox <= view_box \0 0 100 100
112
+ preserveAspectRatio <= aspect \xMidYMid
113
+
114
+ $mol_svg_path $mol_svg
115
+ dom_name \path
116
+ attr *
117
+ ^
118
+ d <= geometry \
119
+
120
+
121
+ $mol_icon $mol_svg_root
122
+ view_box \0 0 24 24
123
+ minimal_width 16
124
+ minimal_height 16
125
+ sub /
126
+ <= Path $mol_svg_path
127
+ geometry <= path \
128
+
129
+ $mol_icon_clipboard $mol_icon path \M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5C3.9,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3M12,3C12.55,3 13,3.45 13,4C13,4.55 12.55,5 12,5C11.45,5 11,4.55 11,4C11,3.45 11.45,3 12,3
130
+
131
+ $mol_icon_clipboard_outline $mol_icon path \M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5C3.9,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3M12,3C12.55,3 13,3.45 13,4C13,4.55 12.55,5 12,5C11.45,5 11,4.55 11,4C11,3.45 11.45,3 12,3M7,7H17V5H19V19H5V5H7V7Z
132
+
133
+ $mol_button_copy $mol_button_minor
134
+ blobs /$mol_blob
135
+ <= text_blob? $mol_blob /
136
+ /BlobPart <= text <= title
137
+ * type \text/plain
138
+ <= html_blob? $mol_blob /
139
+ /BlobPart <= html \
140
+ * type \text/html
141
+ data *
142
+ sub /
143
+ <= Icon $mol_icon_clipboard_outline
144
+ <= title \
145
+
146
+
147
+ $mol_text_code $mol_stack
148
+ attr *
149
+ ^
150
+ mol_text_code_sidebar_showed <= sidebar_showed false
151
+ text \
152
+ text_lines /string
153
+ find_pos* null
154
+ uri_base \
155
+ sub /
156
+ <= Rows $mol_list
157
+ render_visible_only <= render_visible_only false
158
+ rows <= rows /
159
+ <= Row*0 $mol_text_code_row
160
+ numb_showed <= sidebar_showed
161
+ numb <= row_numb* 0
162
+ text <= row_text* \
163
+ syntax <= syntax null
164
+ uri_resolve* <= uri_resolve* \
165
+ highlight <= highlight \
166
+ <= Copy $mol_button_copy
167
+ hint @ \Copy whole code
168
+ text <= text_export \
169
+
170
+ $mol_check $mol_button_minor
171
+ attr *
172
+ ^
173
+ mol_check_checked <= checked? false
174
+ aria-checked <= aria_checked \false
175
+ role <= aria_role \checkbox
176
+ sub /$mol_view_content
177
+ <= Icon null
178
+ <= label /
179
+ <= Title $mol_view
180
+ sub /
181
+ <= title \
182
+
183
+ $mol_icon_chevron $mol_icon path \M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z
184
+
185
+ $mol_check_expand $mol_check
186
+ Icon $mol_icon_chevron
187
+ level 0
188
+ style *
189
+ ^
190
+ paddingLeft <= level_style \0px
191
+ checked? <=> expanded? false
192
+ enabled <= expandable false
193
+
194
+ $mol_dump_list $mol_view
195
+ values /
196
+ sub /
197
+ <= Dump*0 $mol_dump_value
198
+ value <= dump_value* null
199
+ expanded? <=> dump_expanded*? false
200
+ prototypes <= prototypes false
201
+ preview_show <= preview_show true
202
+
203
+ $mol_expander $mol_list
204
+ rows /
205
+ <= Label $mol_view
206
+ sub /
207
+ <= Trigger $mol_check_expand
208
+ checked? <=> expanded? false
209
+ expandable <= expandable true
210
+ label <= label /
211
+ <= title
212
+ <= Tools null
213
+ <= Content $mol_list
214
+ rows <= content /
215
+
216
+ $mol_dump_value $mol_view
217
+ value null
218
+ preview_show true
219
+ sub /
220
+ <= Simple $mol_text_code
221
+ text <= simple \
222
+ <= Expand $mol_expander
223
+ expanded? <=> expanded? false
224
+ Trigger <= Expand_head $mol_check_expand
225
+ minimal_height 24
226
+ minimal_width 24
227
+ expanded? <=> expanded? false
228
+ expandable <= expandable true
229
+ clicks? <=> expand_all? null
230
+ label /
231
+ <= Expand_title $mol_text_code
232
+ text <= expand_title \
233
+ content <= expand_content /
234
+ <= Preview $mol_view sub /
235
+ <= Preview_dom $mol_view
236
+ dom_node <= preview_dom null
237
+ render <= preview null
238
+ <= Row*0 $mol_dump_list
239
+ values <= row_values* /
240
+ prototypes <= prototypes false
241
+ preview_show <= preview_show