@vandenberghinc/volt 1.1.4 → 1.1.6
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/backend/dist/cjs/database.d.ts +41 -68
- package/backend/dist/cjs/database.js +136 -78
- package/backend/dist/cjs/endpoint.d.ts +23 -9
- package/backend/dist/cjs/endpoint.js +98 -21
- package/backend/dist/cjs/file_watcher.js +2 -2
- package/backend/dist/cjs/frontend.d.ts +0 -2
- package/backend/dist/cjs/frontend.js +9 -9
- package/backend/dist/cjs/image_endpoint.d.ts +3 -1
- package/backend/dist/cjs/image_endpoint.js +2 -1
- package/backend/dist/cjs/payments/paddle.js +10 -2
- package/backend/dist/cjs/plugins/css.d.ts +6 -5
- package/backend/dist/cjs/plugins/css.js +32 -7
- package/backend/dist/cjs/plugins/ts/compiler.d.ts +6 -1
- package/backend/dist/cjs/plugins/ts/compiler.js +26 -2
- package/backend/dist/cjs/plugins/ts/preprocessing.js +5 -3
- package/backend/dist/cjs/server.d.ts +7 -13
- package/backend/dist/cjs/server.js +184 -303
- package/backend/dist/cjs/status.d.ts +1 -0
- package/backend/dist/cjs/status.js +2 -1
- package/backend/dist/cjs/stream.d.ts +5 -3
- package/backend/dist/cjs/stream.js +13 -4
- package/backend/dist/cjs/users.d.ts +1 -1
- package/backend/dist/cjs/users.js +87 -72
- package/backend/dist/cjs/utils.d.ts +17 -9
- package/backend/dist/cjs/utils.js +22 -64
- package/backend/dist/cjs/view.d.ts +2 -2
- package/backend/dist/cjs/view.js +38 -40
- package/backend/dist/cjs/volt.d.ts +3 -2
- package/backend/dist/cjs/volt.js +2 -2
- package/backend/dist/css/volt.css +5 -0
- package/backend/dist/esm/database.d.ts +41 -68
- package/backend/dist/esm/database.js +137 -79
- package/backend/dist/esm/endpoint.d.ts +23 -9
- package/backend/dist/esm/endpoint.js +99 -22
- package/backend/dist/esm/file_watcher.js +2 -2
- package/backend/dist/esm/frontend.d.ts +0 -2
- package/backend/dist/esm/frontend.js +9 -9
- package/backend/dist/esm/image_endpoint.d.ts +3 -1
- package/backend/dist/esm/image_endpoint.js +2 -1
- package/backend/dist/esm/payments/paddle.js +11 -3
- package/backend/dist/esm/plugins/css.d.ts +6 -5
- package/backend/dist/esm/plugins/css.js +32 -6
- package/backend/dist/esm/plugins/ts/compiler.d.ts +6 -1
- package/backend/dist/esm/plugins/ts/compiler.js +26 -2
- package/backend/dist/esm/plugins/ts/preprocessing.js +5 -3
- package/backend/dist/esm/server.d.ts +7 -13
- package/backend/dist/esm/server.js +182 -301
- package/backend/dist/esm/status.d.ts +1 -0
- package/backend/dist/esm/status.js +1 -0
- package/backend/dist/esm/stream.d.ts +5 -3
- package/backend/dist/esm/stream.js +13 -4
- package/backend/dist/esm/users.d.ts +1 -1
- package/backend/dist/esm/users.js +87 -72
- package/backend/dist/esm/utils.d.ts +17 -9
- package/backend/dist/esm/utils.js +21 -62
- package/backend/dist/esm/view.d.ts +2 -2
- package/backend/dist/esm/view.js +38 -40
- package/backend/dist/esm/volt.d.ts +3 -2
- package/backend/dist/esm/volt.js +2 -1
- package/backend/dist/esm-dev/blacklist.js +1 -1
- package/backend/dist/esm-dev/cli.js +2 -2
- package/backend/dist/esm-dev/database.d.ts +41 -68
- package/backend/dist/esm-dev/database.js +138 -80
- package/backend/dist/esm-dev/endpoint.d.ts +23 -9
- package/backend/dist/esm-dev/endpoint.js +100 -23
- package/backend/dist/esm-dev/file_watcher.js +3 -3
- package/backend/dist/esm-dev/frontend.d.ts +0 -2
- package/backend/dist/esm-dev/frontend.js +9 -9
- package/backend/dist/esm-dev/image_endpoint.d.ts +3 -1
- package/backend/dist/esm-dev/image_endpoint.js +2 -1
- package/backend/dist/esm-dev/logger.js +1 -1
- package/backend/dist/esm-dev/payments/paddle.js +12 -4
- package/backend/dist/esm-dev/plugins/css.d.ts +6 -5
- package/backend/dist/esm-dev/plugins/css.js +33 -7
- package/backend/dist/esm-dev/plugins/ts/compiler.d.ts +6 -1
- package/backend/dist/esm-dev/plugins/ts/compiler.js +27 -3
- package/backend/dist/esm-dev/plugins/ts/preprocessing.js +7 -5
- package/backend/dist/esm-dev/rate_limit.js +1 -1
- package/backend/dist/esm-dev/server.d.ts +7 -13
- package/backend/dist/esm-dev/server.js +184 -303
- package/backend/dist/esm-dev/status.d.ts +1 -0
- package/backend/dist/esm-dev/status.js +1 -0
- package/backend/dist/esm-dev/stream.d.ts +5 -3
- package/backend/dist/esm-dev/stream.js +13 -4
- package/backend/dist/esm-dev/users.d.ts +1 -1
- package/backend/dist/esm-dev/users.js +88 -73
- package/backend/dist/esm-dev/utils.d.ts +17 -9
- package/backend/dist/esm-dev/utils.js +22 -63
- package/backend/dist/esm-dev/view.d.ts +2 -2
- package/backend/dist/esm-dev/view.js +39 -41
- package/backend/dist/esm-dev/volt.d.ts +3 -2
- package/backend/dist/esm-dev/volt.js +2 -1
- package/backend/src/database.ts +173 -155
- package/backend/src/endpoint.ts +123 -31
- package/backend/src/file_watcher.ts +2 -2
- package/backend/src/frontend.ts +9 -8
- package/backend/src/image_endpoint.ts +4 -0
- package/backend/src/payments/paddle.ts +11 -3
- package/backend/src/plugins/css.ts +36 -8
- package/backend/src/plugins/ts/compiler.ts +37 -1
- package/backend/src/plugins/ts/preprocessing.ts +5 -3
- package/backend/src/server.ts +167 -306
- package/backend/src/status.ts +1 -0
- package/backend/src/stream.ts +28 -8
- package/backend/src/users.ts +87 -72
- package/backend/src/utils.ts +58 -25
- package/backend/src/view.ts +30 -28
- package/backend/src/{volt.js → volt.ts} +2 -1
- package/backend/tsconfig.cjs.json +3 -3
- package/backend/tsconfig.esm.json +3 -3
- package/frontend/dist/elements/base.d.ts +414 -432
- package/frontend/dist/elements/base.js +566 -329
- package/frontend/dist/elements/module.d.ts +26 -12
- package/frontend/dist/elements/module.js +69 -32
- package/frontend/dist/elements/register_element.d.ts +3 -0
- package/frontend/dist/elements/register_element.js +22 -0
- package/frontend/dist/modules/auth.d.ts +1 -0
- package/frontend/dist/modules/auth.js +6 -5
- package/frontend/dist/modules/color.d.ts +159 -0
- package/frontend/dist/modules/color.js +315 -0
- package/frontend/dist/modules/colors.d.ts +1 -26
- package/frontend/dist/modules/colors.js +417 -340
- package/frontend/dist/modules/cookies.d.ts +1 -0
- package/frontend/dist/modules/cookies.js +1 -0
- package/frontend/dist/modules/events.d.ts +1 -0
- package/frontend/dist/modules/events.js +1 -0
- package/frontend/dist/modules/google.d.ts +1 -0
- package/frontend/dist/modules/google.js +1 -0
- package/frontend/dist/modules/meta.d.ts +1 -0
- package/frontend/dist/modules/meta.js +1 -0
- package/frontend/dist/modules/mutex.d.ts +1 -2
- package/frontend/dist/modules/mutex.js +3 -4
- package/frontend/dist/modules/paddle.d.ts +1 -0
- package/frontend/dist/modules/paddle.js +14 -13
- package/frontend/dist/modules/scheme.d.ts +1 -0
- package/frontend/dist/modules/scheme.js +5 -3
- package/frontend/dist/modules/statics.d.ts +1 -0
- package/frontend/dist/modules/statics.js +1 -0
- package/frontend/dist/modules/support.d.ts +1 -0
- package/frontend/dist/modules/support.js +3 -2
- package/frontend/dist/modules/theme.d.ts +56 -0
- package/frontend/dist/{ui → modules}/theme.js +186 -75
- package/frontend/dist/modules/themes.d.ts +1 -1
- package/frontend/dist/modules/themes.js +1 -0
- package/frontend/dist/modules/user.d.ts +1 -0
- package/frontend/dist/modules/user.js +11 -10
- package/frontend/dist/modules/utils.d.ts +23 -2
- package/frontend/dist/modules/utils.js +93 -1
- package/frontend/dist/types/gradient.js +4 -0
- package/frontend/dist/ui/border_button.d.ts +0 -25
- package/frontend/dist/ui/border_button.js +50 -51
- package/frontend/dist/ui/button.d.ts +0 -21
- package/frontend/dist/ui/button.js +41 -46
- package/frontend/dist/ui/canvas.js +15 -15
- package/frontend/dist/ui/checkbox.d.ts +3 -17
- package/frontend/dist/ui/checkbox.js +36 -30
- package/frontend/dist/ui/code.d.ts +15 -82
- package/frontend/dist/ui/code.js +150 -125
- package/frontend/dist/ui/color.d.ts +0 -1
- package/frontend/dist/ui/color.js +1 -1
- package/frontend/dist/ui/context_menu.d.ts +4 -2
- package/frontend/dist/ui/context_menu.js +16 -17
- package/frontend/dist/ui/css.js +2 -0
- package/frontend/dist/ui/divider.d.ts +0 -7
- package/frontend/dist/ui/divider.js +21 -25
- package/frontend/dist/ui/dropdown.d.ts +13 -7
- package/frontend/dist/ui/dropdown.js +65 -30
- package/frontend/dist/ui/for_each.d.ts +0 -5
- package/frontend/dist/ui/for_each.js +17 -22
- package/frontend/dist/ui/form.d.ts +17 -12
- package/frontend/dist/ui/form.js +21 -18
- package/frontend/dist/ui/frame_modes.d.ts +9 -12
- package/frontend/dist/ui/frame_modes.js +8 -10
- package/frontend/dist/ui/google_map.d.ts +0 -11
- package/frontend/dist/ui/google_map.js +23 -28
- package/frontend/dist/ui/gradient.d.ts +0 -5
- package/frontend/dist/ui/gradient.js +17 -22
- package/frontend/dist/ui/image.d.ts +27 -58
- package/frontend/dist/ui/image.js +99 -93
- package/frontend/dist/ui/input.d.ts +20 -97
- package/frontend/dist/ui/input.js +192 -170
- package/frontend/dist/ui/link.d.ts +0 -18
- package/frontend/dist/ui/link.js +42 -48
- package/frontend/dist/ui/list.js +36 -37
- package/frontend/dist/ui/loader_button.d.ts +4 -19
- package/frontend/dist/ui/loader_button.js +35 -37
- package/frontend/dist/ui/loaders.d.ts +0 -8
- package/frontend/dist/ui/loaders.js +20 -25
- package/frontend/dist/ui/popup.d.ts +11 -8
- package/frontend/dist/ui/popup.js +183 -24
- package/frontend/dist/ui/pseudo.d.ts +3 -3
- package/frontend/dist/ui/pseudo.js +14 -17
- package/frontend/dist/ui/scroller.d.ts +10 -48
- package/frontend/dist/ui/scroller.js +306 -300
- package/frontend/dist/ui/slider.d.ts +9 -3
- package/frontend/dist/ui/slider.js +31 -17
- package/frontend/dist/ui/spacer.d.ts +0 -9
- package/frontend/dist/ui/spacer.js +21 -26
- package/frontend/dist/ui/span.js +13 -15
- package/frontend/dist/ui/stack.d.ts +14 -75
- package/frontend/dist/ui/stack.js +166 -169
- package/frontend/dist/ui/steps.d.ts +10 -23
- package/frontend/dist/ui/steps.js +47 -34
- package/frontend/dist/ui/style.d.ts +4 -3
- package/frontend/dist/ui/style.js +13 -18
- package/frontend/dist/ui/switch.d.ts +10 -4
- package/frontend/dist/ui/switch.js +24 -16
- package/frontend/dist/ui/table.d.ts +0 -23
- package/frontend/dist/ui/table.js +113 -119
- package/frontend/dist/ui/tabs.d.ts +3 -19
- package/frontend/dist/ui/tabs.js +35 -29
- package/frontend/dist/ui/text.d.ts +0 -8
- package/frontend/dist/ui/text.js +20 -25
- package/frontend/dist/ui/title.d.ts +0 -15
- package/frontend/dist/ui/title.js +39 -45
- package/frontend/dist/ui/ui.d.ts +0 -2
- package/frontend/dist/ui/ui.js +0 -2
- package/frontend/dist/ui/view.d.ts +3 -17
- package/frontend/dist/ui/view.js +27 -32
- package/frontend/dist/volt.d.ts +2 -1
- package/frontend/dist/volt.js +3 -1
- package/frontend/examples/dashboard/dashboard.ts +774 -0
- package/frontend/examples/theme/theme.ts +58 -0
- package/frontend/src/css/volt.css +5 -0
- package/frontend/src/elements/base.ts +767 -545
- package/frontend/src/elements/module.ts +90 -29
- package/frontend/src/elements/register_element.ts +24 -0
- package/frontend/src/modules/auth.ts +7 -6
- package/frontend/src/modules/color.ts +348 -0
- package/frontend/src/modules/colors.ts +468 -449
- package/frontend/src/modules/cookies.ts +1 -0
- package/frontend/src/modules/events.ts +1 -0
- package/frontend/src/modules/google.ts +1 -0
- package/frontend/src/modules/meta.ts +2 -1
- package/frontend/src/modules/mutex.ts +2 -4
- package/frontend/src/modules/paddle.ts +21 -20
- package/frontend/src/modules/scheme.ts +5 -4
- package/frontend/src/modules/statics.ts +2 -1
- package/frontend/src/modules/support.ts +3 -2
- package/frontend/src/modules/theme.ts +413 -0
- package/frontend/src/modules/themes.ts +2 -1
- package/frontend/src/modules/user.ts +12 -11
- package/frontend/src/modules/utils.ts +125 -2
- package/frontend/src/ui/border_button.ts +41 -37
- package/frontend/src/ui/button.ts +33 -32
- package/frontend/src/ui/canvas.ts +5 -2
- package/frontend/src/ui/checkbox.ts +21 -22
- package/frontend/src/ui/code.ts +92 -86
- package/frontend/src/ui/context_menu.ts +7 -5
- package/frontend/src/ui/css.ts +1 -1
- package/frontend/src/ui/divider.ts +15 -10
- package/frontend/src/ui/dropdown.ts +38 -21
- package/frontend/src/ui/for_each.ts +9 -8
- package/frontend/src/ui/form.ts +26 -21
- package/frontend/src/ui/frame_modes.ts +13 -17
- package/frontend/src/ui/google_map.ts +15 -13
- package/frontend/src/ui/gradient.ts +9 -8
- package/frontend/src/ui/image.ts +108 -86
- package/frontend/src/ui/input.ts +145 -144
- package/frontend/src/ui/link.ts +25 -23
- package/frontend/src/ui/list.ts +12 -6
- package/frontend/src/ui/loader_button.ts +26 -25
- package/frontend/src/ui/loaders.ts +12 -11
- package/frontend/src/ui/popup.ts +168 -14
- package/frontend/src/ui/pseudo.ts +5 -3
- package/frontend/src/ui/scroller.ts +303 -294
- package/frontend/src/ui/slider.ts +15 -10
- package/frontend/src/ui/spacer.ts +14 -11
- package/frontend/src/ui/span.ts +6 -2
- package/frontend/src/ui/stack.ts +196 -183
- package/frontend/src/ui/steps.ts +38 -22
- package/frontend/src/ui/style.ts +7 -4
- package/frontend/src/ui/switch.ts +16 -11
- package/frontend/src/ui/table.ts +42 -34
- package/frontend/src/ui/tabs.ts +20 -19
- package/frontend/src/ui/text.ts +12 -11
- package/frontend/src/ui/title.ts +22 -20
- package/frontend/src/ui/ui.ts +0 -2
- package/frontend/src/ui/view.ts +20 -19
- package/frontend/src/volt.ts +3 -1
- package/frontend/{compile.js → tools/compile.old.js} +2 -2
- package/frontend/tools/embed_scripts.js +69 -0
- package/frontend/tsconfig.json +26 -0
- package/package.json +7 -6
- package/frontend/dist/ui/theme.d.ts +0 -25
- package/frontend/exports.json +0 -1340
- package/frontend/src/modules/date.js +0 -535
- package/frontend/src/ui/color.ts +0 -117
- package/frontend/src/ui/theme.ts +0 -279
- /package/backend/src/{vinc.dev.js → vinc.dev.ts} +0 -0
package/frontend/dist/ui/tabs.js
CHANGED
|
@@ -36,10 +36,6 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
36
36
|
}
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
40
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
41
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
42
|
-
};
|
|
43
39
|
// Imports.
|
|
44
40
|
import { Elements } from "../elements/module.js";
|
|
45
41
|
import { Scheme } from "../modules/scheme";
|
|
@@ -70,18 +66,49 @@ import { Divider } from "./divider";
|
|
|
70
66
|
The callback takes the arguments local header node and parent tabs node as `(header_node, tabs_node)`.
|
|
71
67
|
*/
|
|
72
68
|
let TabsElement = (() => {
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
let _classDecorators = [Elements.create({
|
|
70
|
+
name: "TabsElement",
|
|
71
|
+
default_style: {
|
|
72
|
+
...VStackElement.default_style,
|
|
73
|
+
"font-size": "16px",
|
|
74
|
+
"font-weight": "500",
|
|
75
|
+
"overflow-x": "hidden",
|
|
76
|
+
"width": "100%",
|
|
77
|
+
"--tabs-tint": "blue",
|
|
78
|
+
"--tabs-tab-opac": 0.8,
|
|
79
|
+
"--tabs-div-bg": "gray",
|
|
80
|
+
"--tabs-div-opac": 0.5,
|
|
81
|
+
},
|
|
82
|
+
})];
|
|
75
83
|
let _classDescriptor;
|
|
76
84
|
let _classExtraInitializers = [];
|
|
77
85
|
let _classThis;
|
|
78
86
|
let _classSuper = VStackElement;
|
|
79
|
-
var TabsElement =
|
|
87
|
+
var TabsElement = class extends _classSuper {
|
|
88
|
+
static { _classThis = this; }
|
|
89
|
+
static {
|
|
90
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
91
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
92
|
+
TabsElement = _classThis = _classDescriptor.value;
|
|
93
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
94
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
95
|
+
}
|
|
96
|
+
// Attributes.
|
|
97
|
+
_tint;
|
|
98
|
+
_tab_opac;
|
|
99
|
+
_div_bg;
|
|
100
|
+
_div_opac;
|
|
101
|
+
_selected_node;
|
|
102
|
+
_tab_nodes;
|
|
103
|
+
_on_tab_header;
|
|
104
|
+
_div;
|
|
105
|
+
_animate;
|
|
106
|
+
_duration;
|
|
80
107
|
// Constructor.
|
|
81
108
|
constructor({ content = [], animate = true, duration = 300, }) {
|
|
82
109
|
// Inherit.
|
|
83
110
|
super();
|
|
84
|
-
this.
|
|
111
|
+
this._init({
|
|
85
112
|
derived: TabsElement,
|
|
86
113
|
});
|
|
87
114
|
// Params.
|
|
@@ -364,27 +391,6 @@ let TabsElement = (() => {
|
|
|
364
391
|
return this;
|
|
365
392
|
}
|
|
366
393
|
};
|
|
367
|
-
__setFunctionName(_classThis, "TabsElement");
|
|
368
|
-
(() => {
|
|
369
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
370
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
371
|
-
TabsElement = _classThis = _classDescriptor.value;
|
|
372
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
373
|
-
})();
|
|
374
|
-
_classThis.default_style = {
|
|
375
|
-
...VStackElement.default_style,
|
|
376
|
-
"font-size": "16px",
|
|
377
|
-
"font-weight": "500",
|
|
378
|
-
"overflow-x": "hidden",
|
|
379
|
-
"width": "100%",
|
|
380
|
-
"--tabs-tint": "blue",
|
|
381
|
-
"--tabs-tab-opac": 0.8,
|
|
382
|
-
"--tabs-div-bg": "gray",
|
|
383
|
-
"--tabs-div-opac": 0.5,
|
|
384
|
-
};
|
|
385
|
-
(() => {
|
|
386
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
387
|
-
})();
|
|
388
394
|
return TabsElement = _classThis;
|
|
389
395
|
})();
|
|
390
396
|
export { TabsElement };
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { VElementTagMap } from "../elements/module.js";
|
|
2
2
|
export declare class TextElement extends VElementTagMap.p {
|
|
3
|
-
static default_style: {
|
|
4
|
-
margin: string;
|
|
5
|
-
padding: string;
|
|
6
|
-
"font-size": string;
|
|
7
|
-
color: string;
|
|
8
|
-
"text-align": string;
|
|
9
|
-
"white-space": string;
|
|
10
|
-
};
|
|
11
3
|
constructor(text?: string);
|
|
12
4
|
}
|
|
13
5
|
export declare const Text: <Extensions extends object = {}>(text?: string | undefined) => TextElement & Extensions;
|
package/frontend/dist/ui/text.js
CHANGED
|
@@ -36,21 +36,34 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
36
36
|
}
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
40
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
41
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
42
|
-
};
|
|
43
39
|
// Imports.
|
|
44
40
|
import { Elements, VElementTagMap } from "../elements/module.js";
|
|
45
41
|
// Text.
|
|
46
42
|
let TextElement = (() => {
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
let _classDecorators = [Elements.create({
|
|
44
|
+
name: "TextElement",
|
|
45
|
+
default_style: {
|
|
46
|
+
"margin": "0px 0px 0px 0px",
|
|
47
|
+
"padding": "0", // 2.5px
|
|
48
|
+
"font-size": "20px",
|
|
49
|
+
"color": "inherit",
|
|
50
|
+
"text-align": "inherit",
|
|
51
|
+
"white-space": "wrap",
|
|
52
|
+
}
|
|
53
|
+
})];
|
|
49
54
|
let _classDescriptor;
|
|
50
55
|
let _classExtraInitializers = [];
|
|
51
56
|
let _classThis;
|
|
52
57
|
let _classSuper = VElementTagMap.p;
|
|
53
|
-
var TextElement =
|
|
58
|
+
var TextElement = class extends _classSuper {
|
|
59
|
+
static { _classThis = this; }
|
|
60
|
+
static {
|
|
61
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
62
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
63
|
+
TextElement = _classThis = _classDescriptor.value;
|
|
64
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
65
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
66
|
+
}
|
|
54
67
|
// Constructor.
|
|
55
68
|
constructor(text) {
|
|
56
69
|
// Initialize base class.
|
|
@@ -63,24 +76,6 @@ let TextElement = (() => {
|
|
|
63
76
|
}
|
|
64
77
|
}
|
|
65
78
|
};
|
|
66
|
-
__setFunctionName(_classThis, "TextElement");
|
|
67
|
-
(() => {
|
|
68
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
69
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
70
|
-
TextElement = _classThis = _classDescriptor.value;
|
|
71
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
72
|
-
})();
|
|
73
|
-
_classThis.default_style = {
|
|
74
|
-
"margin": "0px 0px 0px 0px",
|
|
75
|
-
"padding": "0", // 2.5px
|
|
76
|
-
"font-size": "20px",
|
|
77
|
-
"color": "inherit",
|
|
78
|
-
"text-align": "inherit",
|
|
79
|
-
"white-space": "wrap",
|
|
80
|
-
};
|
|
81
|
-
(() => {
|
|
82
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
83
|
-
})();
|
|
84
79
|
return TextElement = _classThis;
|
|
85
80
|
})();
|
|
86
81
|
export { TextElement };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { VElementTagMap } from "../elements/module.js";
|
|
2
2
|
export declare class TitleElement extends VElementTagMap.h1 {
|
|
3
|
-
static default_style: {
|
|
4
|
-
margin: string;
|
|
5
|
-
color: string;
|
|
6
|
-
"white-space": string;
|
|
7
|
-
"text-align": string;
|
|
8
|
-
"font-weight": string;
|
|
9
|
-
};
|
|
10
3
|
constructor(text?: string);
|
|
11
4
|
}
|
|
12
5
|
export declare const Title: <Extensions extends object = {}>(text?: string | undefined) => TitleElement & Extensions;
|
|
@@ -17,14 +10,6 @@ declare module './any_element.d.ts' {
|
|
|
17
10
|
}
|
|
18
11
|
}
|
|
19
12
|
export declare class SubtitleElement extends VElementTagMap.h1 {
|
|
20
|
-
static element_tag: string;
|
|
21
|
-
static default_style: {
|
|
22
|
-
margin: string;
|
|
23
|
-
color: string;
|
|
24
|
-
"white-space": string;
|
|
25
|
-
"text-align": string;
|
|
26
|
-
"font-weight": string;
|
|
27
|
-
};
|
|
28
13
|
constructor(text?: string);
|
|
29
14
|
}
|
|
30
15
|
export declare const Subtitle: <Extensions extends object = {}>(text?: string | undefined) => SubtitleElement & Extensions;
|
|
@@ -36,21 +36,33 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
36
36
|
}
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
40
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
41
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
42
|
-
};
|
|
43
39
|
// Imports.
|
|
44
40
|
import { Elements, VElementTagMap } from "../elements/module.js";
|
|
45
41
|
// Title.
|
|
46
42
|
let TitleElement = (() => {
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
let _classDecorators = [Elements.create({
|
|
44
|
+
name: "TitleElement",
|
|
45
|
+
default_style: {
|
|
46
|
+
"margin": "0px 0px 0px 0px",
|
|
47
|
+
"color": "inherit",
|
|
48
|
+
"white-space": "wrap",
|
|
49
|
+
"text-align": "inherit",
|
|
50
|
+
"font-weight": "700", // for safari since it inherits HTMLElement only.
|
|
51
|
+
}
|
|
52
|
+
})];
|
|
49
53
|
let _classDescriptor;
|
|
50
54
|
let _classExtraInitializers = [];
|
|
51
55
|
let _classThis;
|
|
52
56
|
let _classSuper = VElementTagMap.h1;
|
|
53
|
-
var TitleElement =
|
|
57
|
+
var TitleElement = class extends _classSuper {
|
|
58
|
+
static { _classThis = this; }
|
|
59
|
+
static {
|
|
60
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
61
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
62
|
+
TitleElement = _classThis = _classDescriptor.value;
|
|
63
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
64
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
65
|
+
}
|
|
54
66
|
// Constructor.
|
|
55
67
|
constructor(text = "") {
|
|
56
68
|
// Initialize base class.
|
|
@@ -61,23 +73,6 @@ let TitleElement = (() => {
|
|
|
61
73
|
this.text(text); // do not use inner_html since the text might contain "<" etc.
|
|
62
74
|
}
|
|
63
75
|
};
|
|
64
|
-
__setFunctionName(_classThis, "TitleElement");
|
|
65
|
-
(() => {
|
|
66
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
67
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
68
|
-
TitleElement = _classThis = _classDescriptor.value;
|
|
69
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
70
|
-
})();
|
|
71
|
-
_classThis.default_style = {
|
|
72
|
-
"margin": "0px 0px 0px 0px",
|
|
73
|
-
"color": "inherit",
|
|
74
|
-
"white-space": "wrap",
|
|
75
|
-
"text-align": "inherit",
|
|
76
|
-
"font-weight": "700", // for safari since it inherits HTMLElement only.
|
|
77
|
-
};
|
|
78
|
-
(() => {
|
|
79
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
80
|
-
})();
|
|
81
76
|
return TitleElement = _classThis;
|
|
82
77
|
})();
|
|
83
78
|
export { TitleElement };
|
|
@@ -85,13 +80,30 @@ export const Title = Elements.wrapper(TitleElement);
|
|
|
85
80
|
export const NullTitle = Elements.create_null(TitleElement);
|
|
86
81
|
// Subtitle.
|
|
87
82
|
let SubtitleElement = (() => {
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
let _classDecorators = [Elements.create({
|
|
84
|
+
name: "SubtitleElement",
|
|
85
|
+
tag: "h2",
|
|
86
|
+
default_style: {
|
|
87
|
+
"margin": "0px 0px 0px 0px",
|
|
88
|
+
"color": "inherit",
|
|
89
|
+
"white-space": "wrap",
|
|
90
|
+
"text-align": "inherit",
|
|
91
|
+
"font-weight": "700", // for safari since it inherits HTMLElement only.
|
|
92
|
+
},
|
|
93
|
+
})];
|
|
90
94
|
let _classDescriptor;
|
|
91
95
|
let _classExtraInitializers = [];
|
|
92
96
|
let _classThis;
|
|
93
97
|
let _classSuper = VElementTagMap.h1;
|
|
94
|
-
var SubtitleElement =
|
|
98
|
+
var SubtitleElement = class extends _classSuper {
|
|
99
|
+
static { _classThis = this; }
|
|
100
|
+
static {
|
|
101
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
102
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
103
|
+
SubtitleElement = _classThis = _classDescriptor.value;
|
|
104
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
105
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
106
|
+
}
|
|
95
107
|
// Constructor.
|
|
96
108
|
constructor(text = "") {
|
|
97
109
|
// Initialize base class.
|
|
@@ -102,24 +114,6 @@ let SubtitleElement = (() => {
|
|
|
102
114
|
this.text(text); // do not use inner_html since the text might contain "<" etc.
|
|
103
115
|
}
|
|
104
116
|
};
|
|
105
|
-
__setFunctionName(_classThis, "SubtitleElement");
|
|
106
|
-
(() => {
|
|
107
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
108
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
109
|
-
SubtitleElement = _classThis = _classDescriptor.value;
|
|
110
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
111
|
-
})();
|
|
112
|
-
_classThis.element_tag = "h2";
|
|
113
|
-
_classThis.default_style = {
|
|
114
|
-
"margin": "0px 0px 0px 0px",
|
|
115
|
-
"color": "inherit",
|
|
116
|
-
"white-space": "wrap",
|
|
117
|
-
"text-align": "inherit",
|
|
118
|
-
"font-weight": "700", // for safari since it inherits HTMLElement only.
|
|
119
|
-
};
|
|
120
|
-
(() => {
|
|
121
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
122
|
-
})();
|
|
123
117
|
return SubtitleElement = _classThis;
|
|
124
118
|
})();
|
|
125
119
|
export { SubtitleElement };
|
package/frontend/dist/ui/ui.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from "./border_button.js";
|
|
|
6
6
|
export * from "./canvas.js";
|
|
7
7
|
export * from "./checkbox.js";
|
|
8
8
|
export * from "./code.js";
|
|
9
|
-
export * from "./color.js";
|
|
10
9
|
export * from "./context_menu.js";
|
|
11
10
|
export * from "./css.js";
|
|
12
11
|
export * from "./divider.js";
|
|
@@ -32,7 +31,6 @@ export * from "./switch.js";
|
|
|
32
31
|
export * from "./table.js";
|
|
33
32
|
export * from "./tabs.js";
|
|
34
33
|
export * from "./text.js";
|
|
35
|
-
export * from "./theme.js";
|
|
36
34
|
export * from "./title.js";
|
|
37
35
|
export * from "./view.js";
|
|
38
36
|
export type { AnyElement } from "./any_element.d.ts";
|
package/frontend/dist/ui/ui.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./border_button.js";
|
|
|
7
7
|
export * from "./canvas.js";
|
|
8
8
|
export * from "./checkbox.js";
|
|
9
9
|
export * from "./code.js";
|
|
10
|
-
export * from "./color.js";
|
|
11
10
|
export * from "./context_menu.js";
|
|
12
11
|
export * from "./css.js";
|
|
13
12
|
export * from "./divider.js";
|
|
@@ -33,7 +32,6 @@ export * from "./switch.js";
|
|
|
33
32
|
export * from "./table.js";
|
|
34
33
|
export * from "./tabs.js";
|
|
35
34
|
export * from "./text.js";
|
|
36
|
-
export * from "./theme.js";
|
|
37
35
|
export * from "./title.js";
|
|
38
36
|
export * from "./view.js";
|
|
39
37
|
// import type { AnyElement } from "./any_element.d.ts"
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import { VElementTagMap } from "../elements/module.js";
|
|
1
|
+
import { VElementTagMap, AppendType } from "../elements/module.js";
|
|
2
2
|
export declare class ViewElement extends VElementTagMap.div {
|
|
3
|
-
|
|
4
|
-
position: string;
|
|
5
|
-
top: string;
|
|
6
|
-
right: string;
|
|
7
|
-
bottom: string;
|
|
8
|
-
left: string;
|
|
9
|
-
padding: string;
|
|
10
|
-
overflow: string;
|
|
11
|
-
"overflow-y": string;
|
|
12
|
-
background: string;
|
|
13
|
-
display: string;
|
|
14
|
-
"align-content": string;
|
|
15
|
-
"flex-direction": string;
|
|
16
|
-
};
|
|
17
|
-
constructor(...children: any[]);
|
|
3
|
+
constructor(...children: AppendType[]);
|
|
18
4
|
}
|
|
19
|
-
export declare const View: <Extensions extends object = {}>(...args:
|
|
5
|
+
export declare const View: <Extensions extends object = {}>(...args: AppendType[]) => ViewElement & Extensions;
|
|
20
6
|
export declare const NullView: <Extensions extends object = {}>() => ViewElement & Extensions;
|
|
21
7
|
declare module './any_element.d.ts' {
|
|
22
8
|
interface AnyElementMap {
|
package/frontend/dist/ui/view.js
CHANGED
|
@@ -36,21 +36,41 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
36
36
|
}
|
|
37
37
|
return useValue ? value : void 0;
|
|
38
38
|
};
|
|
39
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
40
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
41
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
42
|
-
};
|
|
43
39
|
// Imports.
|
|
44
40
|
import { Elements, VElementTagMap } from "../elements/module.js";
|
|
45
41
|
// Scroller.
|
|
46
42
|
let ViewElement = (() => {
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
let _classDecorators = [Elements.create({
|
|
44
|
+
name: "ViewElement",
|
|
45
|
+
default_style: {
|
|
46
|
+
"position": "absolute",
|
|
47
|
+
"top": "0",
|
|
48
|
+
"right": "0",
|
|
49
|
+
"bottom": "0",
|
|
50
|
+
"left": "0",
|
|
51
|
+
"padding": "0px",
|
|
52
|
+
"overflow": "hidden",
|
|
53
|
+
"overflow-y": "none",
|
|
54
|
+
"background": "none",
|
|
55
|
+
"display": "flex", // to support vertical spacers.
|
|
56
|
+
// "text-align": "start",
|
|
57
|
+
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
58
|
+
"flex-direction": "column",
|
|
59
|
+
},
|
|
60
|
+
})];
|
|
49
61
|
let _classDescriptor;
|
|
50
62
|
let _classExtraInitializers = [];
|
|
51
63
|
let _classThis;
|
|
52
64
|
let _classSuper = VElementTagMap.div;
|
|
53
|
-
var ViewElement =
|
|
65
|
+
var ViewElement = class extends _classSuper {
|
|
66
|
+
static { _classThis = this; }
|
|
67
|
+
static {
|
|
68
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
69
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
70
|
+
ViewElement = _classThis = _classDescriptor.value;
|
|
71
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
72
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
73
|
+
}
|
|
54
74
|
// Constructor.
|
|
55
75
|
constructor(...children) {
|
|
56
76
|
// Initialize base class.
|
|
@@ -61,31 +81,6 @@ let ViewElement = (() => {
|
|
|
61
81
|
this.append(...children);
|
|
62
82
|
}
|
|
63
83
|
};
|
|
64
|
-
__setFunctionName(_classThis, "ViewElement");
|
|
65
|
-
(() => {
|
|
66
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
67
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
68
|
-
ViewElement = _classThis = _classDescriptor.value;
|
|
69
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
70
|
-
})();
|
|
71
|
-
_classThis.default_style = {
|
|
72
|
-
"position": "absolute",
|
|
73
|
-
"top": "0",
|
|
74
|
-
"right": "0",
|
|
75
|
-
"bottom": "0",
|
|
76
|
-
"left": "0",
|
|
77
|
-
"padding": "0px",
|
|
78
|
-
"overflow": "hidden",
|
|
79
|
-
"overflow-y": "none",
|
|
80
|
-
"background": "none",
|
|
81
|
-
"display": "flex", // to support vertical spacers.
|
|
82
|
-
// "text-align": "start",
|
|
83
|
-
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
84
|
-
"flex-direction": "column",
|
|
85
|
-
};
|
|
86
|
-
(() => {
|
|
87
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
88
|
-
})();
|
|
89
84
|
return ViewElement = _classThis;
|
|
90
85
|
})();
|
|
91
86
|
export { ViewElement };
|
package/frontend/dist/volt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from "./modules/string.js";
|
|
|
4
4
|
export * from "./modules/array.js";
|
|
5
5
|
export * from "./modules/object.js";
|
|
6
6
|
export * from "./modules/auth.js";
|
|
7
|
-
export * from "./modules/
|
|
7
|
+
export * from "./modules/color.js";
|
|
8
8
|
export * from "./modules/compression.js";
|
|
9
9
|
export * from "./modules/cookies.js";
|
|
10
10
|
export * from "./modules/date.js";
|
|
@@ -18,5 +18,6 @@ export * from "./modules/support.js";
|
|
|
18
18
|
export * from "./modules/themes.js";
|
|
19
19
|
export * from "./modules/user.js";
|
|
20
20
|
export * from "./modules/utils.js";
|
|
21
|
+
export * from "./modules/theme.js";
|
|
21
22
|
export * from "./elements/module.js";
|
|
22
23
|
export * from "./ui/ui.js";
|
package/frontend/dist/volt.js
CHANGED
|
@@ -7,7 +7,8 @@ export * from "./modules/string.js"; // @noexport
|
|
|
7
7
|
export * from "./modules/array.js"; // @noexport
|
|
8
8
|
export * from "./modules/object.js"; // @noexport
|
|
9
9
|
export * from "./modules/auth.js";
|
|
10
|
-
export * from "./modules/
|
|
10
|
+
export * from "./modules/color.js";
|
|
11
|
+
// export * from "./modules/colors.js"
|
|
11
12
|
export * from "./modules/compression.js";
|
|
12
13
|
export * from "./modules/cookies.js";
|
|
13
14
|
export * from "./modules/date.js"; // @todo
|
|
@@ -21,6 +22,7 @@ export * from "./modules/support.js";
|
|
|
21
22
|
export * from "./modules/themes.js";
|
|
22
23
|
export * from "./modules/user.js";
|
|
23
24
|
export * from "./modules/utils.js";
|
|
25
|
+
export * from "./modules/theme.js";
|
|
24
26
|
// Elements.
|
|
25
27
|
export * from "./elements/module.js";
|
|
26
28
|
// VoltUI.
|