mol_dump_lib 0.0.1 → 0.0.2
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/node.d.ts +1996 -0
- package/node.deps.json +1 -1
- package/node.js +6680 -0
- package/node.js.map +1 -1
- package/node.locale=en.json +3 -0
- package/node.locale=ru.json +3 -0
- package/node.locale=uk.json +3 -0
- package/node.meta.tree +64 -0
- package/node.mjs +6680 -0
- package/node.test.js +10483 -0
- package/node.test.js.map +1 -1
- package/node.view.tree +241 -0
- package/package.json +164 -3
- package/web.d.ts +1859 -0
- package/web.deps.json +1 -1
- package/web.js +6030 -0
- package/web.js.map +1 -1
- package/web.locale=en.json +3 -0
- package/web.locale=ru.json +3 -0
- package/web.locale=uk.json +3 -0
- package/web.meta.tree +64 -0
- package/web.mjs +6030 -0
- package/web.test.js +3657 -1
- package/web.test.js.map +1 -1
- package/web.view.tree +241 -0
package/node.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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mol_dump_lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"exports": {
|
|
5
5
|
"node": {
|
|
6
6
|
"import": "./node.mjs",
|
|
@@ -17,7 +17,168 @@
|
|
|
17
17
|
"keywords": [
|
|
18
18
|
"$mol_dump_lib",
|
|
19
19
|
"$mol_dump",
|
|
20
|
-
"$mol"
|
|
20
|
+
"$mol",
|
|
21
|
+
"$mol_view_component",
|
|
22
|
+
"$mol_view",
|
|
23
|
+
"$mol_view_view",
|
|
24
|
+
"$mol_window",
|
|
25
|
+
"$mol_object",
|
|
26
|
+
"$mol_object2",
|
|
27
|
+
"$mol_ambient",
|
|
28
|
+
"$mol_owning",
|
|
29
|
+
"$mol_delegate",
|
|
30
|
+
"$mol_fail_hidden",
|
|
31
|
+
"$mol_fail",
|
|
32
|
+
"$mol_type_writable",
|
|
33
|
+
"$mol_type",
|
|
34
|
+
"$mol_mem",
|
|
35
|
+
"$mol_wire_solo",
|
|
36
|
+
"$mol_wire",
|
|
37
|
+
"$mol_wire_sub",
|
|
38
|
+
"$mol_wire_pub",
|
|
39
|
+
"$mol_wire_cursor",
|
|
40
|
+
"$mol_wire_atom",
|
|
41
|
+
"$mol_wire_fiber",
|
|
42
|
+
"$mol_wire_pub_sub",
|
|
43
|
+
"$mol_dev_format",
|
|
44
|
+
"$mol_dev",
|
|
45
|
+
"$mol_after_frame",
|
|
46
|
+
"$mol_after",
|
|
47
|
+
"$mol_after_timeout",
|
|
48
|
+
"$mol_promise_like",
|
|
49
|
+
"$mol_promise",
|
|
50
|
+
"$mol_func_name",
|
|
51
|
+
"$mol_func",
|
|
52
|
+
"$mol_key",
|
|
53
|
+
"$mol_guid",
|
|
54
|
+
"$mol_wire_method",
|
|
55
|
+
"$mol_wire_task",
|
|
56
|
+
"$mol_compare_deep",
|
|
57
|
+
"$mol_compare",
|
|
58
|
+
"$mol_type_foot",
|
|
59
|
+
"$mol_type_tail",
|
|
60
|
+
"$mol_fail_log",
|
|
61
|
+
"$mol_fail_catch",
|
|
62
|
+
"$mol_wire_plex",
|
|
63
|
+
"$mol_dom_context",
|
|
64
|
+
"$mol_dom",
|
|
65
|
+
"$node",
|
|
66
|
+
"$node_modules",
|
|
67
|
+
"$mol_exec",
|
|
68
|
+
"$mol_log3",
|
|
69
|
+
"$mol_tree2_from_json",
|
|
70
|
+
"$mol_tree2_from",
|
|
71
|
+
"$mol_tree2",
|
|
72
|
+
"$mol_span",
|
|
73
|
+
"$mol_tree2_from_string",
|
|
74
|
+
"$mol_error_syntax",
|
|
75
|
+
"$mol_error",
|
|
76
|
+
"$mol_tree2_to_string",
|
|
77
|
+
"$mol_tree2_to",
|
|
78
|
+
"$mol_term_color",
|
|
79
|
+
"$mol_term",
|
|
80
|
+
"$mol_env",
|
|
81
|
+
"$mol_view_selection",
|
|
82
|
+
"$mol_after_tick",
|
|
83
|
+
"$mol_memo",
|
|
84
|
+
"$mol_wrapper",
|
|
85
|
+
"$mol_dom_qname",
|
|
86
|
+
"$mol_wire_probe",
|
|
87
|
+
"$mol_wire_watch",
|
|
88
|
+
"$mol_wire_solid",
|
|
89
|
+
"$mol_const",
|
|
90
|
+
"$mol_dom_render_attributes",
|
|
91
|
+
"$mol_dom_render",
|
|
92
|
+
"$mol_wire_async",
|
|
93
|
+
"$mol_dom_render_events",
|
|
94
|
+
"$mol_plugin",
|
|
95
|
+
"$mol_dom_render_styles",
|
|
96
|
+
"$mol_dom_render_children",
|
|
97
|
+
"$mol_dom_render_fields",
|
|
98
|
+
"$mol_type_pick",
|
|
99
|
+
"$mol_type_keys_extract",
|
|
100
|
+
"$mol_type_keys",
|
|
101
|
+
"$mol_style_attach",
|
|
102
|
+
"$mol_style",
|
|
103
|
+
"$mol_theme",
|
|
104
|
+
"$mol_style_func",
|
|
105
|
+
"$mol_style_unit",
|
|
106
|
+
"$mol_decor",
|
|
107
|
+
"$mol_style_properties",
|
|
108
|
+
"$mol_type_override",
|
|
109
|
+
"$mol_gap",
|
|
110
|
+
"$mol_dump_value",
|
|
111
|
+
"$mol_text_code",
|
|
112
|
+
"$mol_text",
|
|
113
|
+
"$mol_stack",
|
|
114
|
+
"$mol_text_code_row",
|
|
115
|
+
"$mol_paragraph",
|
|
116
|
+
"$mol_text_code_token",
|
|
117
|
+
"$mol_dimmer",
|
|
118
|
+
"$mol_regexp",
|
|
119
|
+
"$mol_type_merge",
|
|
120
|
+
"$mol_type_equals",
|
|
121
|
+
"$mol_type_intersect",
|
|
122
|
+
"$mol_unicode",
|
|
123
|
+
"$mol_style_define",
|
|
124
|
+
"$mol_style_guard",
|
|
125
|
+
"$mol_style_pseudo",
|
|
126
|
+
"$mol_type_error",
|
|
127
|
+
"$mol_style_sheet",
|
|
128
|
+
"$mol_syntax2_md",
|
|
129
|
+
"$mol_syntax2",
|
|
130
|
+
"$mol_list",
|
|
131
|
+
"$mol_support_css",
|
|
132
|
+
"$mol_support",
|
|
133
|
+
"$mol_print",
|
|
134
|
+
"$mol_dom_listener",
|
|
135
|
+
"$mol_mem_cached",
|
|
136
|
+
"$mol_button_copy",
|
|
137
|
+
"$mol_button",
|
|
138
|
+
"$mol_speck",
|
|
139
|
+
"$mol_layer",
|
|
140
|
+
"$mol_keyboard_code",
|
|
141
|
+
"$mol_keyboard",
|
|
142
|
+
"$mol_button_minor",
|
|
143
|
+
"$mol_button_typed",
|
|
144
|
+
"$mol_blob",
|
|
145
|
+
"$mol_icon_clipboard_outline",
|
|
146
|
+
"$mol_icon_clipboard",
|
|
147
|
+
"$mol_icon",
|
|
148
|
+
"$mol_svg_root",
|
|
149
|
+
"$mol_svg",
|
|
150
|
+
"$mol_state_time",
|
|
151
|
+
"$mol_state",
|
|
152
|
+
"$mol_svg_path",
|
|
153
|
+
"$mol_html_encode",
|
|
154
|
+
"$mol_html",
|
|
155
|
+
"$mol_wire_sync",
|
|
156
|
+
"$mol_locale",
|
|
157
|
+
"$mol_state_local",
|
|
158
|
+
"$mol_file",
|
|
159
|
+
"$mol_charset_decode",
|
|
160
|
+
"$mol_charset",
|
|
161
|
+
"$mol_charset_encoding",
|
|
162
|
+
"$mol_charset_encode",
|
|
163
|
+
"$mol_compare_array",
|
|
164
|
+
"$hyoo_lingua_translate",
|
|
165
|
+
"$hyoo_lingua",
|
|
166
|
+
"$hyoo",
|
|
167
|
+
"$mol_huggingface",
|
|
168
|
+
"$mol_fetch",
|
|
169
|
+
"$mol_action",
|
|
170
|
+
"$mol_dom_parse",
|
|
171
|
+
"$mol_check_expand",
|
|
172
|
+
"$mol_check",
|
|
173
|
+
"$mol_maybe",
|
|
174
|
+
"$mol_icon_chevron",
|
|
175
|
+
"$mol_dump_list",
|
|
176
|
+
"$mol_expander",
|
|
177
|
+
"$mol_try"
|
|
21
178
|
],
|
|
22
|
-
"dependencies": {
|
|
179
|
+
"dependencies": {
|
|
180
|
+
"jsdom": "*",
|
|
181
|
+
"chokidar": "*",
|
|
182
|
+
"undici": "*"
|
|
183
|
+
}
|
|
23
184
|
}
|