mol_plot_all 1.2.1488 → 1.2.1489

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.d.ts CHANGED
@@ -14,6 +14,351 @@ declare namespace $ {
14
14
  export {};
15
15
  }
16
16
 
17
+ declare namespace $ {
18
+ var $mol_dom_context: typeof globalThis;
19
+ }
20
+
21
+ declare namespace $ {
22
+ }
23
+
24
+ declare namespace $ {
25
+ var $mol_dom: typeof globalThis;
26
+ }
27
+
28
+ declare namespace $ {
29
+ function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
30
+ }
31
+
32
+ declare namespace $ {
33
+ class $mol_promise<Result = void> extends Promise<Result> {
34
+ done: (value: Result | PromiseLike<Result>) => void;
35
+ fail: (reason?: any) => void;
36
+ constructor(executor?: (done: (value: Result | PromiseLike<Result>) => void, fail: (reason?: any) => void) => void);
37
+ }
38
+ }
39
+
40
+ declare namespace $ {
41
+ class $mol_promise_blocker<Result> extends $mol_promise<Result> {
42
+ static [Symbol.toStringTag]: string;
43
+ }
44
+ }
45
+
46
+ declare namespace $ {
47
+ class $mol_decor<Value> {
48
+ readonly value: Value;
49
+ constructor(value: Value);
50
+ prefix(): string;
51
+ valueOf(): Value;
52
+ postfix(): string;
53
+ toString(): string;
54
+ }
55
+ }
56
+
57
+ declare namespace $ {
58
+ type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
59
+ type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
60
+ type $mol_style_unit_time = 's' | 'ms';
61
+ type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
62
+ type $mol_style_unit_str<Quanity extends $mol_style_unit_any = $mol_style_unit_any> = `${number}${Quanity}`;
63
+ class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
64
+ readonly literal: Literal;
65
+ constructor(value: number, literal: Literal);
66
+ postfix(): Literal;
67
+ static per(value: number): `${number}%`;
68
+ static px(value: number): `${number}px`;
69
+ static mm(value: number): `${number}mm`;
70
+ static cm(value: number): `${number}cm`;
71
+ static Q(value: number): `${number}Q`;
72
+ static in(value: number): `${number}in`;
73
+ static pc(value: number): `${number}pc`;
74
+ static pt(value: number): `${number}pt`;
75
+ static cap(value: number): `${number}cap`;
76
+ static ch(value: number): `${number}ch`;
77
+ static em(value: number): `${number}em`;
78
+ static rem(value: number): `${number}rem`;
79
+ static ex(value: number): `${number}ex`;
80
+ static ic(value: number): `${number}ic`;
81
+ static lh(value: number): `${number}lh`;
82
+ static rlh(value: number): `${number}rlh`;
83
+ static vh(value: number): `${number}vh`;
84
+ static vw(value: number): `${number}vw`;
85
+ static vi(value: number): `${number}vi`;
86
+ static vb(value: number): `${number}vb`;
87
+ static vmin(value: number): `${number}vmin`;
88
+ static vmax(value: number): `${number}vmax`;
89
+ static deg(value: number): `${number}deg`;
90
+ static rad(value: number): `${number}rad`;
91
+ static grad(value: number): `${number}grad`;
92
+ static turn(value: number): `${number}turn`;
93
+ static s(value: number): `${number}s`;
94
+ static ms(value: number): `${number}ms`;
95
+ }
96
+ }
97
+
98
+ declare namespace $ {
99
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_image | $mol_style_func_filter;
100
+ type $mol_style_func_image = 'url' | 'linear-gradient' | 'radial-gradient' | 'conic-gradient';
101
+ type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
102
+ class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
103
+ readonly name: Name;
104
+ constructor(name: Name, value: Value);
105
+ prefix(): string;
106
+ postfix(): string;
107
+ static linear_gradient<Value>(value: Value): $mol_style_func<"linear-gradient", Value>;
108
+ static radial_gradient<Value>(value: Value): $mol_style_func<"radial-gradient", Value>;
109
+ static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
110
+ static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
111
+ static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
112
+ static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
113
+ static clamp(min: $mol_style_unit_str<any>, mid: $mol_style_unit_str<any>, max: $mol_style_unit_str<any>): $mol_style_func<"clamp", `${number}${any}`[]>;
114
+ static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
115
+ static scale(zoom: number): $mol_style_func<"scale", number[]>;
116
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
117
+ static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
118
+ static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
119
+ static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
120
+ static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
121
+ static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
122
+ static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit_str<$mol_style_unit_length>, y_offset: $mol_style_unit_str<$mol_style_unit_length>, blur_radius?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"drop-shadow", (`${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax` | $mol_style_properties_color)[]>;
123
+ static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
124
+ static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
125
+ static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
126
+ static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
127
+ static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
128
+ static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
129
+ }
130
+ }
131
+
132
+ declare namespace $ {
133
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
134
+ }
135
+
136
+ declare namespace $ {
137
+ export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
138
+ type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | 'none' | $mol_style_func<'var'>;
139
+ export type $mol_style_properties_color = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen' | 'transparent' | 'currentcolor' | $mol_style_func<'hsla' | 'rgba' | 'var'> | `#${string}`;
140
+ type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
141
+ type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
142
+ type Directions<Value> = Value | readonly [Value, Value] | {
143
+ top?: Value;
144
+ right?: Value;
145
+ bottom?: Value;
146
+ left?: Value;
147
+ };
148
+ type Single_animation_composition = 'replace' | 'add' | 'accumulate';
149
+ type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
150
+ type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
151
+ type Single_animation_iteration_count = 'infinite' | number;
152
+ type Single_animation_play_state = 'running' | 'paused';
153
+ type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
154
+ type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
155
+ type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
156
+ type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
157
+ type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
158
+ type Compat_special = 'textfield' | 'menulist-button';
159
+ type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
160
+ type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
161
+ type Box = 'border-box' | 'padding-box' | 'content-box';
162
+ type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
163
+ type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
164
+ type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
165
+ type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
166
+ type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
167
+ type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
168
+ type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
169
+ type Overflow_position = 'unsafe' | 'safe';
170
+ type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
171
+ type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
172
+ type BG_size = Length | 'auto' | 'contain' | 'cover';
173
+ interface Overrides {
174
+ accentColor?: $mol_style_properties_color | Common;
175
+ align?: {
176
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
177
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
178
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
179
+ };
180
+ justify?: {
181
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
182
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
183
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
184
+ };
185
+ all?: Common;
186
+ animation?: {
187
+ composition?: Single_animation_composition | Single_animation_composition[][] | Common;
188
+ delay?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
189
+ direction?: Single_animation_direction | Single_animation_direction[][] | Common;
190
+ duration?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
191
+ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
192
+ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
193
+ name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
194
+ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
195
+ timingFunction?: Easing_function | Easing_function[][] | Common;
196
+ };
197
+ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
198
+ aspectRatio?: 'auto' | number | `${number} / ${number}`;
199
+ backdropFilter: $mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'> | ($mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'>)[][] | 'none' | Common;
200
+ backfaceVisibility: 'visible' | 'hidden' | Common;
201
+ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
202
+ gap?: Length;
203
+ background?: 'none' | {
204
+ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
205
+ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
206
+ clip?: Box | Box[][] | Common;
207
+ color?: $mol_style_properties_color | Common;
208
+ image?: readonly (readonly [$mol_style_func<$mol_style_func_image> | string & {}])[] | 'none' | Common;
209
+ repeat?: Repeat | [Repeat, Repeat] | Common;
210
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
211
+ size?: (BG_size | [BG_size] | [BG_size, BG_size])[];
212
+ };
213
+ box?: {
214
+ shadow?: readonly ([
215
+ ...[inset: 'inset'] | [],
216
+ x: Length,
217
+ y: Length,
218
+ blur: Length,
219
+ spread: Length,
220
+ color: $mol_style_properties_color
221
+ ] | {
222
+ inset?: boolean;
223
+ x: Length;
224
+ y: Length;
225
+ blur: Length;
226
+ spread: Length;
227
+ color: $mol_style_properties_color;
228
+ })[] | 'none' | Common;
229
+ };
230
+ font?: {
231
+ style?: 'normal' | 'italic' | Common;
232
+ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
233
+ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
234
+ family?: string & {} | 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
235
+ };
236
+ color?: $mol_style_properties_color | Common;
237
+ display?: 'block' | 'inline' | 'run-in' | 'list-item' | 'none' | 'flow' | 'flow-root' | 'table' | 'flex' | 'grid' | 'contents' | 'table-row-group' | 'table-header-group' | 'table-footer-group' | 'table-column-group' | 'table-row' | 'table-cell' | 'table-column' | 'table-caption' | 'inline-block' | 'inline-table' | 'inline-flex' | 'inline-grid' | 'ruby' | 'ruby-base' | 'ruby-text' | 'ruby-base-container' | 'ruby-text-container' | Common;
238
+ overflow?: Overflow | {
239
+ x?: Overflow | Common;
240
+ y?: Overflow | Common;
241
+ anchor?: 'auto' | 'none' | Common;
242
+ };
243
+ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
244
+ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
245
+ webkitOverflowScrolling?: 'auto' | 'touch' | Common;
246
+ scrollbar?: {
247
+ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
248
+ width?: 'auto' | 'thin' | 'none' | Common;
249
+ };
250
+ scroll?: {
251
+ snap?: {
252
+ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
253
+ stop: 'normal' | 'always' | Common;
254
+ align: Span_align | readonly [Span_align, Span_align] | Common;
255
+ };
256
+ padding?: Directions<Length | 'auto'>;
257
+ };
258
+ width?: Size;
259
+ minWidth?: Size;
260
+ maxWidth?: Size;
261
+ height?: Size;
262
+ minHeight?: Size;
263
+ maxHeight?: Size;
264
+ margin?: Directions<Length | 'auto'>;
265
+ padding?: Directions<Length | 'auto'>;
266
+ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
267
+ top?: Length | 'auto' | Common;
268
+ right?: Length | 'auto' | Common;
269
+ bottom?: Length | 'auto' | Common;
270
+ left?: Length | 'auto' | Common;
271
+ border?: Directions<{
272
+ radius?: Length | [Length, Length];
273
+ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
274
+ color?: $mol_style_properties_color | Common;
275
+ width?: Length | Common;
276
+ }>;
277
+ flex?: 'none' | 'auto' | {
278
+ grow?: number | Common;
279
+ shrink?: number | Common;
280
+ basis?: Size | Common;
281
+ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
282
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
283
+ };
284
+ zIndex: number | Common;
285
+ opacity: number | Common;
286
+ }
287
+ export {};
288
+ }
289
+
290
+ declare namespace $ {
291
+ function $mol_style_prop<Keys extends string[]>(prefix: string, keys: Keys): Record<Keys[number], $mol_style_func<"var", unknown>>;
292
+ }
293
+
294
+ declare namespace $ {
295
+ const $mol_theme: Record<"image" | "line" | "text" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "focus" | "field" | "spirit", $mol_style_func<"var", unknown>>;
296
+ }
297
+
298
+ declare namespace $ {
299
+ }
300
+
301
+ declare namespace $ {
302
+ let $mol_gap: Record<"text" | "blur" | "block" | "space" | "round", $mol_style_func<"var", unknown>>;
303
+ }
304
+
305
+ declare namespace $ {
306
+ }
307
+
308
+ declare namespace $ {
309
+ function $mol_fail(error: any): never;
310
+ }
311
+
312
+ declare namespace $ {
313
+ function $mol_func_name(this: $, func: Function): string;
314
+ function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
315
+ }
316
+
317
+ declare namespace $ {
318
+ function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
319
+ }
320
+
321
+ declare namespace $ {
322
+ type $mol_type_partial_deep<Val> = Val extends object ? Val extends Function ? Val : {
323
+ [field in keyof Val]?: $mol_type_partial_deep<Val[field]> | undefined;
324
+ } : Val;
325
+ }
326
+
327
+ declare namespace $ {
328
+ let $mol_jsx_prefix: string;
329
+ let $mol_jsx_crumbs: string;
330
+ let $mol_jsx_booked: null | Set<string>;
331
+ let $mol_jsx_document: $mol_jsx.JSX.ElementClass['ownerDocument'];
332
+ const $mol_jsx_frag = "";
333
+ function $mol_jsx<Props extends $mol_jsx.JSX.IntrinsicAttributes, Children extends Array<Node | string>>(Elem: string | ((props: Props, ...children: Children) => Element), props: Props, ...childNodes: Children): Element | DocumentFragment;
334
+ namespace $mol_jsx.JSX {
335
+ interface Element extends HTMLElement {
336
+ class?: string;
337
+ }
338
+ interface ElementClass {
339
+ attributes: {};
340
+ ownerDocument: Pick<Document, 'getElementById' | 'createElementNS' | 'createDocumentFragment'>;
341
+ childNodes: Array<Node | string>;
342
+ valueOf(): Element;
343
+ }
344
+ type OrString<Dict> = {
345
+ [key in keyof Dict]: Dict[key] | string;
346
+ };
347
+ type IntrinsicElements = {
348
+ [key in keyof ElementTagNameMap]?: $.$mol_type_partial_deep<OrString<Element & IntrinsicAttributes & ElementTagNameMap[key]>>;
349
+ };
350
+ interface IntrinsicAttributes {
351
+ id?: string;
352
+ xmlns?: string;
353
+ }
354
+ interface ElementAttributesProperty {
355
+ attributes: {};
356
+ }
357
+ interface ElementChildrenAttribute {
358
+ }
359
+ }
360
+ }
361
+
17
362
  declare namespace $ {
18
363
  const $mol_ambient_ref: unique symbol;
19
364
  type $mol_ambient_context = $;
@@ -38,10 +383,6 @@ declare namespace $ {
38
383
  function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
39
384
  }
40
385
 
41
- declare namespace $ {
42
- function $mol_fail(error: any): never;
43
- }
44
-
45
386
  declare namespace $ {
46
387
  function $mol_fail_hidden(error: any): never;
47
388
  }
@@ -52,11 +393,6 @@ declare namespace $ {
52
393
  };
53
394
  }
54
395
 
55
- declare namespace $ {
56
- function $mol_func_name(this: $, func: Function): string;
57
- function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
58
- }
59
-
60
396
  declare namespace $ {
61
397
  class $mol_object2 {
62
398
  static $: $;
@@ -382,10 +718,7 @@ declare namespace $ {
382
718
  }
383
719
 
384
720
  declare namespace $ {
385
- var $mol_dom_context: typeof globalThis;
386
- }
387
-
388
- declare namespace $ {
721
+ function $mol_guard_defined<T>(value: T): value is NonNullable<T>;
389
722
  }
390
723
 
391
724
  declare namespace $ {
@@ -398,10 +731,6 @@ declare namespace $ {
398
731
  function $mol_maybe<Value>(value: Value | null | undefined): Value[];
399
732
  }
400
733
 
401
- declare namespace $ {
402
- var $mol_dom: typeof globalThis;
403
- }
404
-
405
734
  declare namespace $ {
406
735
  enum $mol_keyboard_code {
407
736
  backspace = 8,
@@ -502,381 +831,100 @@ declare namespace $ {
502
831
  bracketOpen = 219,
503
832
  slashBack = 220,
504
833
  slashBackLeft = 226,
505
- bracketClose = 221,
506
- quoteSingle = 222
507
- }
508
- }
509
-
510
- declare namespace $ {
511
- }
512
-
513
- declare namespace $ {
514
- class $mol_wrapper extends $mol_object2 {
515
- static wrap: (task: (...ags: any[]) => any) => (...ags: any[]) => any;
516
- static run<Result>(task: () => Result): Result;
517
- static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
518
- static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
519
- static get method(): (obj: object, name: PropertyKey, descr: PropertyDescriptor) => PropertyDescriptor;
520
- static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
521
- }
522
- }
523
-
524
- declare namespace $ {
525
- class $mol_memo extends $mol_wrapper {
526
- static wrap<This extends object, Value>(task: (this: This, next?: Value) => Value): (this: This, next?: Value) => Value | undefined;
527
- }
528
- }
529
-
530
- declare namespace $ {
531
- function $mol_dom_qname(name: string): string;
532
- }
533
-
534
- declare namespace $ {
535
- function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
536
- }
537
-
538
- declare namespace $ {
539
- function $mol_wire_watch(): void;
540
- }
541
-
542
- declare namespace $ {
543
- function $mol_const<Value>(value: Value): {
544
- (): Value;
545
- '()': Value;
546
- };
547
- }
548
-
549
- declare namespace $ {
550
- function $mol_wire_solid(): void;
551
- }
552
-
553
- declare namespace $ {
554
- function $mol_dom_render_attributes(el: Element, attrs: {
555
- [key: string]: string | number | boolean | null;
556
- }): void;
557
- }
558
-
559
- declare namespace $ {
560
- function $mol_dom_render_events(el: Element, events: {
561
- [key: string]: (event: Event) => any;
562
- }, passive?: boolean): void;
563
- }
564
-
565
- declare namespace $ {
566
- function $mol_dom_render_styles(el: Element, styles: {
567
- [key: string]: string | number;
568
- }): void;
569
- }
570
-
571
- declare namespace $ {
572
- function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
573
- }
574
-
575
- declare namespace $ {
576
- function $mol_dom_render_fields(el: Element, fields: {
577
- [key: string]: any;
578
- }): void;
579
- }
580
-
581
- declare namespace $ {
582
- export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
583
- type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
584
- type MethodsResultPromisify<Host extends Object> = {
585
- [K in keyof Host]: FunctionResultPromisify<Host[K]>;
586
- };
587
- type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
588
- export {};
589
- }
590
-
591
- declare namespace $ {
592
- class $mol_after_timeout extends $mol_object2 {
593
- delay: number;
594
- task: () => void;
595
- id: any;
596
- constructor(delay: number, task: () => void);
597
- destructor(): void;
598
- }
599
- }
600
-
601
- declare namespace $ {
602
- type $mol_type_pick<Input, Upper> = Pick<Input, $mol_type_keys_extract<Input, Upper>>;
603
- }
604
-
605
- declare namespace $ {
606
- function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
607
- }
608
-
609
- declare namespace $ {
610
- class $mol_promise<Result = void> extends Promise<Result> {
611
- done: (value: Result | PromiseLike<Result>) => void;
612
- fail: (reason?: any) => void;
613
- constructor(executor?: (done: (value: Result | PromiseLike<Result>) => void, fail: (reason?: any) => void) => void);
614
- }
615
- }
616
-
617
- declare namespace $ {
618
- class $mol_promise_blocker<Result> extends $mol_promise<Result> {
619
- static [Symbol.toStringTag]: string;
620
- }
621
- }
622
-
623
- declare namespace $ {
624
- class $mol_decor<Value> {
625
- readonly value: Value;
626
- constructor(value: Value);
627
- prefix(): string;
628
- valueOf(): Value;
629
- postfix(): string;
630
- toString(): string;
631
- }
632
- }
633
-
634
- declare namespace $ {
635
- type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
636
- type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
637
- type $mol_style_unit_time = 's' | 'ms';
638
- type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
639
- type $mol_style_unit_str<Quanity extends $mol_style_unit_any = $mol_style_unit_any> = `${number}${Quanity}`;
640
- class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
641
- readonly literal: Literal;
642
- constructor(value: number, literal: Literal);
643
- postfix(): Literal;
644
- static per(value: number): `${number}%`;
645
- static px(value: number): `${number}px`;
646
- static mm(value: number): `${number}mm`;
647
- static cm(value: number): `${number}cm`;
648
- static Q(value: number): `${number}Q`;
649
- static in(value: number): `${number}in`;
650
- static pc(value: number): `${number}pc`;
651
- static pt(value: number): `${number}pt`;
652
- static cap(value: number): `${number}cap`;
653
- static ch(value: number): `${number}ch`;
654
- static em(value: number): `${number}em`;
655
- static rem(value: number): `${number}rem`;
656
- static ex(value: number): `${number}ex`;
657
- static ic(value: number): `${number}ic`;
658
- static lh(value: number): `${number}lh`;
659
- static rlh(value: number): `${number}rlh`;
660
- static vh(value: number): `${number}vh`;
661
- static vw(value: number): `${number}vw`;
662
- static vi(value: number): `${number}vi`;
663
- static vb(value: number): `${number}vb`;
664
- static vmin(value: number): `${number}vmin`;
665
- static vmax(value: number): `${number}vmax`;
666
- static deg(value: number): `${number}deg`;
667
- static rad(value: number): `${number}rad`;
668
- static grad(value: number): `${number}grad`;
669
- static turn(value: number): `${number}turn`;
670
- static s(value: number): `${number}s`;
671
- static ms(value: number): `${number}ms`;
834
+ bracketClose = 221,
835
+ quoteSingle = 222
672
836
  }
673
837
  }
674
838
 
675
839
  declare namespace $ {
676
- type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_image | $mol_style_func_filter;
677
- type $mol_style_func_image = 'url' | 'linear-gradient' | 'radial-gradient' | 'conic-gradient';
678
- type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
679
- class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
680
- readonly name: Name;
681
- constructor(name: Name, value: Value);
682
- prefix(): string;
683
- postfix(): string;
684
- static linear_gradient<Value>(value: Value): $mol_style_func<"linear-gradient", Value>;
685
- static radial_gradient<Value>(value: Value): $mol_style_func<"radial-gradient", Value>;
686
- static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
687
- static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
688
- static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
689
- static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
690
- static clamp(min: $mol_style_unit_str<any>, mid: $mol_style_unit_str<any>, max: $mol_style_unit_str<any>): $mol_style_func<"clamp", `${number}${any}`[]>;
691
- static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
692
- static scale(zoom: number): $mol_style_func<"scale", number[]>;
693
- static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
694
- static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
695
- static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
696
- static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
697
- static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
698
- static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
699
- static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit_str<$mol_style_unit_length>, y_offset: $mol_style_unit_str<$mol_style_unit_length>, blur_radius?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"drop-shadow", (`${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax` | $mol_style_properties_color)[]>;
700
- static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
701
- static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
702
- static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
703
- static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
704
- static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
705
- static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
840
+ }
841
+
842
+ declare namespace $ {
843
+ class $mol_wrapper extends $mol_object2 {
844
+ static wrap: (task: (...ags: any[]) => any) => (...ags: any[]) => any;
845
+ static run<Result>(task: () => Result): Result;
846
+ static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
847
+ static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
848
+ static get method(): (obj: object, name: PropertyKey, descr: PropertyDescriptor) => PropertyDescriptor;
849
+ static get field(): <Host, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
706
850
  }
707
851
  }
708
852
 
709
853
  declare namespace $ {
710
- type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
854
+ class $mol_memo extends $mol_wrapper {
855
+ static wrap<This extends object, Value>(task: (this: This, next?: Value) => Value): (this: This, next?: Value) => Value | undefined;
856
+ }
711
857
  }
712
858
 
713
859
  declare namespace $ {
714
- export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
715
- type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | 'none' | $mol_style_func<'var'>;
716
- export type $mol_style_properties_color = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen' | 'transparent' | 'currentcolor' | $mol_style_func<'hsla' | 'rgba' | 'var'> | `#${string}`;
717
- type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
718
- type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
719
- type Directions<Value> = Value | readonly [Value, Value] | {
720
- top?: Value;
721
- right?: Value;
722
- bottom?: Value;
723
- left?: Value;
860
+ function $mol_dom_qname(name: string): string;
861
+ }
862
+
863
+ declare namespace $ {
864
+ function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
865
+ }
866
+
867
+ declare namespace $ {
868
+ function $mol_wire_watch(): void;
869
+ }
870
+
871
+ declare namespace $ {
872
+ function $mol_const<Value>(value: Value): {
873
+ (): Value;
874
+ '()': Value;
724
875
  };
725
- type Single_animation_composition = 'replace' | 'add' | 'accumulate';
726
- type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
727
- type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
728
- type Single_animation_iteration_count = 'infinite' | number;
729
- type Single_animation_play_state = 'running' | 'paused';
730
- type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
731
- type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
732
- type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
733
- type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
734
- type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
735
- type Compat_special = 'textfield' | 'menulist-button';
736
- type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
737
- type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
738
- type Box = 'border-box' | 'padding-box' | 'content-box';
739
- type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
740
- type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
741
- type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
742
- type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
743
- type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
744
- type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
745
- type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
746
- type Overflow_position = 'unsafe' | 'safe';
747
- type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
748
- type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
749
- type BG_size = Length | 'auto' | 'contain' | 'cover';
750
- interface Overrides {
751
- accentColor?: $mol_style_properties_color | Common;
752
- align?: {
753
- content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
754
- items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
755
- self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
756
- };
757
- justify?: {
758
- content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
759
- items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
760
- self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
761
- };
762
- all?: Common;
763
- animation?: {
764
- composition?: Single_animation_composition | Single_animation_composition[][] | Common;
765
- delay?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
766
- direction?: Single_animation_direction | Single_animation_direction[][] | Common;
767
- duration?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
768
- fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
769
- iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
770
- name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
771
- playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
772
- timingFunction?: Easing_function | Easing_function[][] | Common;
773
- };
774
- appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
775
- aspectRatio?: 'auto' | number | `${number} / ${number}`;
776
- backdropFilter: $mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'> | ($mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'>)[][] | 'none' | Common;
777
- backfaceVisibility: 'visible' | 'hidden' | Common;
778
- justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
779
- gap?: Length;
780
- background?: 'none' | {
781
- attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
782
- blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
783
- clip?: Box | Box[][] | Common;
784
- color?: $mol_style_properties_color | Common;
785
- image?: readonly (readonly [$mol_style_func<$mol_style_func_image> | string & {}])[] | 'none' | Common;
786
- repeat?: Repeat | [Repeat, Repeat] | Common;
787
- position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
788
- size?: (BG_size | [BG_size] | [BG_size, BG_size])[];
789
- };
790
- box?: {
791
- shadow?: readonly ([
792
- ...[inset: 'inset'] | [],
793
- x: Length,
794
- y: Length,
795
- blur: Length,
796
- spread: Length,
797
- color: $mol_style_properties_color
798
- ] | {
799
- inset?: boolean;
800
- x: Length;
801
- y: Length;
802
- blur: Length;
803
- spread: Length;
804
- color: $mol_style_properties_color;
805
- })[] | 'none' | Common;
806
- };
807
- font?: {
808
- style?: 'normal' | 'italic' | Common;
809
- weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
810
- size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
811
- family?: string & {} | 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
812
- };
813
- color?: $mol_style_properties_color | Common;
814
- display?: 'block' | 'inline' | 'run-in' | 'list-item' | 'none' | 'flow' | 'flow-root' | 'table' | 'flex' | 'grid' | 'contents' | 'table-row-group' | 'table-header-group' | 'table-footer-group' | 'table-column-group' | 'table-row' | 'table-cell' | 'table-column' | 'table-caption' | 'inline-block' | 'inline-table' | 'inline-flex' | 'inline-grid' | 'ruby' | 'ruby-base' | 'ruby-text' | 'ruby-base-container' | 'ruby-text-container' | Common;
815
- overflow?: Overflow | {
816
- x?: Overflow | Common;
817
- y?: Overflow | Common;
818
- anchor?: 'auto' | 'none' | Common;
819
- };
820
- contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
821
- whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
822
- webkitOverflowScrolling?: 'auto' | 'touch' | Common;
823
- scrollbar?: {
824
- color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
825
- width?: 'auto' | 'thin' | 'none' | Common;
826
- };
827
- scroll?: {
828
- snap?: {
829
- type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
830
- stop: 'normal' | 'always' | Common;
831
- align: Span_align | readonly [Span_align, Span_align] | Common;
832
- };
833
- padding?: Directions<Length | 'auto'>;
834
- };
835
- width?: Size;
836
- minWidth?: Size;
837
- maxWidth?: Size;
838
- height?: Size;
839
- minHeight?: Size;
840
- maxHeight?: Size;
841
- margin?: Directions<Length | 'auto'>;
842
- padding?: Directions<Length | 'auto'>;
843
- position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
844
- top?: Length | 'auto' | Common;
845
- right?: Length | 'auto' | Common;
846
- bottom?: Length | 'auto' | Common;
847
- left?: Length | 'auto' | Common;
848
- border?: Directions<{
849
- radius?: Length | [Length, Length];
850
- style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
851
- color?: $mol_style_properties_color | Common;
852
- width?: Length | Common;
853
- }>;
854
- flex?: 'none' | 'auto' | {
855
- grow?: number | Common;
856
- shrink?: number | Common;
857
- basis?: Size | Common;
858
- direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
859
- wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
860
- };
861
- zIndex: number | Common;
862
- opacity: number | Common;
863
- }
864
- export {};
865
876
  }
866
877
 
867
878
  declare namespace $ {
868
- function $mol_style_prop<Keys extends string[]>(prefix: string, keys: Keys): Record<Keys[number], $mol_style_func<"var", unknown>>;
879
+ function $mol_wire_solid(): void;
869
880
  }
870
881
 
871
882
  declare namespace $ {
872
- const $mol_theme: Record<"image" | "line" | "text" | "focus" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "field" | "spirit", $mol_style_func<"var", unknown>>;
883
+ function $mol_dom_render_attributes(el: Element, attrs: {
884
+ [key: string]: string | number | boolean | null;
885
+ }): void;
873
886
  }
874
887
 
875
888
  declare namespace $ {
889
+ function $mol_dom_render_events(el: Element, events: {
890
+ [key: string]: (event: Event) => any;
891
+ }, passive?: boolean): void;
876
892
  }
877
893
 
878
894
  declare namespace $ {
879
- let $mol_gap: Record<"text" | "blur" | "block" | "space" | "round", $mol_style_func<"var", unknown>>;
895
+ function $mol_dom_render_styles(el: Element, styles: {
896
+ [key: string]: string | number;
897
+ }): void;
898
+ }
899
+
900
+ declare namespace $ {
901
+ function $mol_dom_render_fields(el: Element, fields: {
902
+ [key: string]: any;
903
+ }): void;
904
+ }
905
+
906
+ declare namespace $ {
907
+ export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
908
+ type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
909
+ type MethodsResultPromisify<Host extends Object> = {
910
+ [K in keyof Host]: FunctionResultPromisify<Host[K]>;
911
+ };
912
+ type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
913
+ export {};
914
+ }
915
+
916
+ declare namespace $ {
917
+ class $mol_after_timeout extends $mol_object2 {
918
+ delay: number;
919
+ task: () => void;
920
+ id: any;
921
+ constructor(delay: number, task: () => void);
922
+ destructor(): void;
923
+ }
924
+ }
925
+
926
+ declare namespace $ {
927
+ type $mol_type_pick<Input, Upper> = Pick<Input, $mol_type_keys_extract<Input, Upper>>;
880
928
  }
881
929
 
882
930
  declare namespace $ {
@@ -889,9 +937,10 @@ declare namespace $ {
889
937
  function $mol_view_state_key(suffix: string): string;
890
938
  class $mol_view extends $mol_object {
891
939
  static Root<This extends typeof $mol_view>(this: This, id: number): InstanceType<This>;
892
- autorun(): void;
893
- static autobind(): void;
940
+ static roots(): $mol_view[];
941
+ static auto(): void;
894
942
  title(): string;
943
+ hint(): string;
895
944
  focused(next?: boolean): boolean;
896
945
  state_key(suffix?: string): string;
897
946
  dom_name(): string;
@@ -954,9 +1003,6 @@ declare namespace $ {
954
1003
  type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
955
1004
  }
956
1005
 
957
- declare namespace $ {
958
- }
959
-
960
1006
  interface Window {
961
1007
  cordova: any;
962
1008
  }