@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
|
@@ -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, VElementTagMap } from "../elements/module.js";
|
|
45
41
|
// Div element
|
|
@@ -50,13 +46,31 @@ import { Elements, VElementTagMap } from "../elements/module.js";
|
|
|
50
46
|
// declare module './any_element.d.ts' { interface AnyElementMap { VDivElement: VDivElement }}
|
|
51
47
|
// VStack.
|
|
52
48
|
let FrameElement = (() => {
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
let _classDecorators = [Elements.create({
|
|
50
|
+
name: "FrameElement",
|
|
51
|
+
default_style: {
|
|
52
|
+
// "position": "relative",
|
|
53
|
+
"margin": "0px",
|
|
54
|
+
"padding": "0px",
|
|
55
|
+
// "clear": "both",
|
|
56
|
+
"display": "block",
|
|
57
|
+
"overflow": "hidden",
|
|
58
|
+
"width": "100%", // to ensure its passed along all children.
|
|
59
|
+
}
|
|
60
|
+
})];
|
|
55
61
|
let _classDescriptor;
|
|
56
62
|
let _classExtraInitializers = [];
|
|
57
63
|
let _classThis;
|
|
58
64
|
let _classSuper = VElementTagMap.div;
|
|
59
|
-
var FrameElement =
|
|
65
|
+
var FrameElement = 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
|
+
FrameElement = _classThis = _classDescriptor.value;
|
|
71
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
72
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
73
|
+
}
|
|
60
74
|
// Constructor.
|
|
61
75
|
constructor(...children) {
|
|
62
76
|
// Initialize base class.
|
|
@@ -67,24 +81,6 @@ let FrameElement = (() => {
|
|
|
67
81
|
this.append(...children);
|
|
68
82
|
}
|
|
69
83
|
};
|
|
70
|
-
__setFunctionName(_classThis, "FrameElement");
|
|
71
|
-
(() => {
|
|
72
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
73
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
74
|
-
FrameElement = _classThis = _classDescriptor.value;
|
|
75
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
76
|
-
})();
|
|
77
|
-
_classThis.default_style = {
|
|
78
|
-
// "position": "relative",
|
|
79
|
-
"margin": "0px",
|
|
80
|
-
"padding": "0px",
|
|
81
|
-
// "clear": "both",
|
|
82
|
-
"display": "block",
|
|
83
|
-
"overflow": "visible",
|
|
84
|
-
};
|
|
85
|
-
(() => {
|
|
86
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
87
|
-
})();
|
|
88
84
|
return FrameElement = _classThis;
|
|
89
85
|
})();
|
|
90
86
|
export { FrameElement };
|
|
@@ -92,13 +88,38 @@ export const Frame = Elements.wrapper(FrameElement);
|
|
|
92
88
|
export const NullFrame = Elements.create_null(FrameElement);
|
|
93
89
|
// VStack.
|
|
94
90
|
let VStackElement = (() => {
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
let _classDecorators = [Elements.create({
|
|
92
|
+
name: "VStackElement",
|
|
93
|
+
default_style: {
|
|
94
|
+
// "position": "relative",
|
|
95
|
+
"margin": "0px",
|
|
96
|
+
"padding": "0px",
|
|
97
|
+
// "clear": "both",
|
|
98
|
+
"display": "flex", // to support vertical spacers.
|
|
99
|
+
"overflow": "visible",
|
|
100
|
+
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
101
|
+
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
102
|
+
// "align-items": "flex-start", // otherwise the children automatically expand width to match the vstacks width.
|
|
103
|
+
"flex-direction": "column",
|
|
104
|
+
// "text-align": "start",
|
|
105
|
+
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
106
|
+
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
107
|
+
"width": "100%", // to ensure its passed along all children.
|
|
108
|
+
}
|
|
109
|
+
})];
|
|
97
110
|
let _classDescriptor;
|
|
98
111
|
let _classExtraInitializers = [];
|
|
99
112
|
let _classThis;
|
|
100
113
|
let _classSuper = VElementTagMap.div;
|
|
101
|
-
var VStackElement =
|
|
114
|
+
var VStackElement = class extends _classSuper {
|
|
115
|
+
static { _classThis = this; }
|
|
116
|
+
static {
|
|
117
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
118
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
119
|
+
VStackElement = _classThis = _classDescriptor.value;
|
|
120
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
121
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
122
|
+
}
|
|
102
123
|
// Constructor.
|
|
103
124
|
constructor(...children) {
|
|
104
125
|
// Initialize base class.
|
|
@@ -109,31 +130,6 @@ let VStackElement = (() => {
|
|
|
109
130
|
this.append(...children);
|
|
110
131
|
}
|
|
111
132
|
};
|
|
112
|
-
__setFunctionName(_classThis, "VStackElement");
|
|
113
|
-
(() => {
|
|
114
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
115
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
116
|
-
VStackElement = _classThis = _classDescriptor.value;
|
|
117
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
118
|
-
})();
|
|
119
|
-
_classThis.default_style = {
|
|
120
|
-
// "position": "relative",
|
|
121
|
-
"margin": "0px",
|
|
122
|
-
"padding": "0px",
|
|
123
|
-
// "clear": "both",
|
|
124
|
-
"display": "flex", // to support vertical spacers.
|
|
125
|
-
"overflow": "visible",
|
|
126
|
-
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
127
|
-
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
128
|
-
// "align-items": "flex-start", // otherwise the children automatically expand width to match the vstacks width.
|
|
129
|
-
"flex-direction": "column",
|
|
130
|
-
// "text-align": "start",
|
|
131
|
-
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
132
|
-
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
133
|
-
};
|
|
134
|
-
(() => {
|
|
135
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
136
|
-
})();
|
|
137
133
|
return VStackElement = _classThis;
|
|
138
134
|
})();
|
|
139
135
|
export { VStackElement };
|
|
@@ -141,13 +137,41 @@ export const VStack = Elements.wrapper(VStackElement);
|
|
|
141
137
|
export const NullVStack = Elements.create_null(VStackElement);
|
|
142
138
|
// AnchorVStack.
|
|
143
139
|
let AnchorVStackElement = (() => {
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
let _classDecorators = [Elements.create({
|
|
141
|
+
name: "AnchorVStackElement",
|
|
142
|
+
default_style: {
|
|
143
|
+
// "position": "relative",
|
|
144
|
+
"margin": "0px",
|
|
145
|
+
"padding": "0px",
|
|
146
|
+
// "clear": "both",
|
|
147
|
+
"display": "flex", // to support vertical spacers.
|
|
148
|
+
"overflow": "visible",
|
|
149
|
+
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
150
|
+
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
151
|
+
// "align-items": "flex-start", // otherwise the children automatically expand width to match the vstacks width.
|
|
152
|
+
"flex-direction": "column",
|
|
153
|
+
// "text-align": "start",
|
|
154
|
+
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
155
|
+
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
156
|
+
"text-decoration": "none",
|
|
157
|
+
"width": "100%", // to ensure its passed along all children.
|
|
158
|
+
// After extending VStack.
|
|
159
|
+
"color": "inherit", // inherit colors since <a> does not have that and a <div> does.
|
|
160
|
+
},
|
|
161
|
+
})];
|
|
146
162
|
let _classDescriptor;
|
|
147
163
|
let _classExtraInitializers = [];
|
|
148
164
|
let _classThis;
|
|
149
165
|
let _classSuper = VElementTagMap.a;
|
|
150
|
-
var AnchorVStackElement =
|
|
166
|
+
var AnchorVStackElement = class extends _classSuper {
|
|
167
|
+
static { _classThis = this; }
|
|
168
|
+
static {
|
|
169
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
170
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
171
|
+
AnchorVStackElement = _classThis = _classDescriptor.value;
|
|
172
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
173
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
174
|
+
}
|
|
151
175
|
// Constructor.
|
|
152
176
|
constructor(...children) {
|
|
153
177
|
// Initialize base class.
|
|
@@ -158,34 +182,6 @@ let AnchorVStackElement = (() => {
|
|
|
158
182
|
this.append(...children);
|
|
159
183
|
}
|
|
160
184
|
};
|
|
161
|
-
__setFunctionName(_classThis, "AnchorVStackElement");
|
|
162
|
-
(() => {
|
|
163
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
164
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
165
|
-
AnchorVStackElement = _classThis = _classDescriptor.value;
|
|
166
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
167
|
-
})();
|
|
168
|
-
_classThis.default_style = {
|
|
169
|
-
// "position": "relative",
|
|
170
|
-
"margin": "0px",
|
|
171
|
-
"padding": "0px",
|
|
172
|
-
// "clear": "both",
|
|
173
|
-
"display": "flex", // to support vertical spacers.
|
|
174
|
-
"overflow": "visible",
|
|
175
|
-
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
176
|
-
"align-content": "flex-start", // align items at start, do not stretch / space when inside HStack.
|
|
177
|
-
// "align-items": "flex-start", // otherwise the children automatically expand width to match the vstacks width.
|
|
178
|
-
"flex-direction": "column",
|
|
179
|
-
// "text-align": "start",
|
|
180
|
-
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
181
|
-
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
182
|
-
"text-decoration": "none",
|
|
183
|
-
// After extending VStack.
|
|
184
|
-
"color": "inherit", // inherit colors since <a> does not have that and a <div> does.
|
|
185
|
-
};
|
|
186
|
-
(() => {
|
|
187
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
188
|
-
})();
|
|
189
185
|
return AnchorVStackElement = _classThis;
|
|
190
186
|
})();
|
|
191
187
|
export { AnchorVStackElement };
|
|
@@ -194,13 +190,40 @@ export const NullAnchorVStack = Elements.create_null(AnchorVStackElement);
|
|
|
194
190
|
// const stack: VElement = new AnchorVStackElement();
|
|
195
191
|
// HStack.
|
|
196
192
|
let HStackElement = (() => {
|
|
197
|
-
|
|
198
|
-
|
|
193
|
+
let _classDecorators = [Elements.create({
|
|
194
|
+
name: "HStackElement",
|
|
195
|
+
default_style: {
|
|
196
|
+
// "position": "relative",
|
|
197
|
+
"margin": "0px",
|
|
198
|
+
"padding": "0px",
|
|
199
|
+
// "clear": "both",
|
|
200
|
+
"overflow-x": "visible",
|
|
201
|
+
"overflow-y": "visible",
|
|
202
|
+
// "text-align": "start",
|
|
203
|
+
"display": "flex",
|
|
204
|
+
"flex-direction": "row",
|
|
205
|
+
"align-items": "flex-start", // disable the auto extending of the childs height to the max child height.
|
|
206
|
+
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
207
|
+
"flex:": "1 1 auto", // prevent children from exceeding its max width, @warning do not remove this cause it can produce some nasty overflow bugs, so if you want to remove it create an function to optionally remove it.
|
|
208
|
+
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
209
|
+
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
210
|
+
"width": "100%", // to ensure its passed along all children.
|
|
211
|
+
},
|
|
212
|
+
})];
|
|
199
213
|
let _classDescriptor;
|
|
200
214
|
let _classExtraInitializers = [];
|
|
201
215
|
let _classThis;
|
|
202
216
|
let _classSuper = VElementTagMap.div;
|
|
203
|
-
var HStackElement =
|
|
217
|
+
var HStackElement = class extends _classSuper {
|
|
218
|
+
static { _classThis = this; }
|
|
219
|
+
static {
|
|
220
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
221
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
222
|
+
HStackElement = _classThis = _classDescriptor.value;
|
|
223
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
224
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
225
|
+
}
|
|
226
|
+
;
|
|
204
227
|
// Constructor.
|
|
205
228
|
constructor(...children) {
|
|
206
229
|
// Initialize base class.
|
|
@@ -211,32 +234,6 @@ let HStackElement = (() => {
|
|
|
211
234
|
this.append(...children);
|
|
212
235
|
}
|
|
213
236
|
};
|
|
214
|
-
__setFunctionName(_classThis, "HStackElement");
|
|
215
|
-
(() => {
|
|
216
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
217
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
218
|
-
HStackElement = _classThis = _classDescriptor.value;
|
|
219
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
220
|
-
})();
|
|
221
|
-
_classThis.default_style = {
|
|
222
|
-
// "position": "relative",
|
|
223
|
-
"margin": "0px",
|
|
224
|
-
"padding": "0px",
|
|
225
|
-
// "clear": "both",
|
|
226
|
-
"overflow-x": "visible",
|
|
227
|
-
"overflow-y": "visible",
|
|
228
|
-
// "text-align": "start",
|
|
229
|
-
"display": "flex",
|
|
230
|
-
"flex-direction": "row",
|
|
231
|
-
"align-items": "flex-start", // disable the auto extending of the childs height to the max child height.
|
|
232
|
-
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
233
|
-
"flex:": "1 1 auto", // prevent children from exceeding its max width, @warning do not remove this cause it can produce some nasty overflow bugs, so if you want to remove it create an function to optionally remove it.
|
|
234
|
-
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
235
|
-
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
236
|
-
};
|
|
237
|
-
(() => {
|
|
238
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
239
|
-
})();
|
|
240
237
|
return HStackElement = _classThis;
|
|
241
238
|
})();
|
|
242
239
|
export { HStackElement };
|
|
@@ -244,13 +241,42 @@ export const HStack = Elements.wrapper(HStackElement);
|
|
|
244
241
|
export const NullHStack = Elements.create_null(HStackElement);
|
|
245
242
|
// AnchorHStack
|
|
246
243
|
let AnchorHStackElement = (() => {
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
let _classDecorators = [Elements.create({
|
|
245
|
+
name: "AnchorHStackElement",
|
|
246
|
+
default_style: {
|
|
247
|
+
// "position": "relative",
|
|
248
|
+
"margin": "0px",
|
|
249
|
+
"padding": "0px",
|
|
250
|
+
// "clear": "both",
|
|
251
|
+
"overflow-x": "visible",
|
|
252
|
+
"overflow-y": "visible",
|
|
253
|
+
// "text-align": "start",
|
|
254
|
+
"display": "flex",
|
|
255
|
+
"flex-direction": "row",
|
|
256
|
+
"align-items": "flex-start", // disable the auto extending of the childs height to the max child height.
|
|
257
|
+
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
258
|
+
"flex:": "1 1 auto", // prevent children from exceeding its max width, @warning do not remove this cause it can produce some nasty overflow bugs, so if you want to remove it create an function to optionally remove it.
|
|
259
|
+
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
260
|
+
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
261
|
+
"text-decoration": "none",
|
|
262
|
+
"width": "100%", // to ensure its passed along all children.
|
|
263
|
+
// After extending VStack.
|
|
264
|
+
"color": "inherit", // inherit colors since <a> does not have that and a <div> does.
|
|
265
|
+
},
|
|
266
|
+
})];
|
|
249
267
|
let _classDescriptor;
|
|
250
268
|
let _classExtraInitializers = [];
|
|
251
269
|
let _classThis;
|
|
252
270
|
let _classSuper = VElementTagMap.a;
|
|
253
|
-
var AnchorHStackElement =
|
|
271
|
+
var AnchorHStackElement = class extends _classSuper {
|
|
272
|
+
static { _classThis = this; }
|
|
273
|
+
static {
|
|
274
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
275
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
276
|
+
AnchorHStackElement = _classThis = _classDescriptor.value;
|
|
277
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
278
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
279
|
+
}
|
|
254
280
|
// Constructor.
|
|
255
281
|
constructor(...children) {
|
|
256
282
|
// Initialize base class.
|
|
@@ -261,35 +287,6 @@ let AnchorHStackElement = (() => {
|
|
|
261
287
|
this.append(...children);
|
|
262
288
|
}
|
|
263
289
|
};
|
|
264
|
-
__setFunctionName(_classThis, "AnchorHStackElement");
|
|
265
|
-
(() => {
|
|
266
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
267
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
268
|
-
AnchorHStackElement = _classThis = _classDescriptor.value;
|
|
269
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
270
|
-
})();
|
|
271
|
-
_classThis.default_style = {
|
|
272
|
-
// "position": "relative",
|
|
273
|
-
"margin": "0px",
|
|
274
|
-
"padding": "0px",
|
|
275
|
-
// "clear": "both",
|
|
276
|
-
"overflow-x": "visible",
|
|
277
|
-
"overflow-y": "visible",
|
|
278
|
-
// "text-align": "start",
|
|
279
|
-
"display": "flex",
|
|
280
|
-
"flex-direction": "row",
|
|
281
|
-
"align-items": "flex-start", // disable the auto extending of the childs height to the max child height.
|
|
282
|
-
// "flex": "1", // disabled to support horizontal spacers in VStacks.
|
|
283
|
-
"flex:": "1 1 auto", // prevent children from exceeding its max width, @warning do not remove this cause it can produce some nasty overflow bugs, so if you want to remove it create an function to optionally remove it.
|
|
284
|
-
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
285
|
-
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
286
|
-
"text-decoration": "none",
|
|
287
|
-
// After extending VStack.
|
|
288
|
-
"color": "inherit", // inherit colors since <a> does not have that and a <div> does.
|
|
289
|
-
};
|
|
290
|
-
(() => {
|
|
291
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
292
|
-
})();
|
|
293
290
|
return AnchorHStackElement = _classThis;
|
|
294
291
|
})();
|
|
295
292
|
export { AnchorHStackElement };
|
|
@@ -297,13 +294,32 @@ export const AnchorHStack = Elements.wrapper(AnchorHStackElement);
|
|
|
297
294
|
export const NullAnchorHStack = Elements.create_null(AnchorHStackElement);
|
|
298
295
|
// ZStack.
|
|
299
296
|
let ZStackElement = (() => {
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
let _classDecorators = [Elements.create({
|
|
298
|
+
name: "ZStackElement",
|
|
299
|
+
default_style: {
|
|
300
|
+
// "position": "relative",
|
|
301
|
+
"margin": "0px",
|
|
302
|
+
"padding": "0px",
|
|
303
|
+
"display": "grid",
|
|
304
|
+
// "text-align": "start",
|
|
305
|
+
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
306
|
+
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
307
|
+
"width": "100%", // to ensure its passed along all children.
|
|
308
|
+
},
|
|
309
|
+
})];
|
|
302
310
|
let _classDescriptor;
|
|
303
311
|
let _classExtraInitializers = [];
|
|
304
312
|
let _classThis;
|
|
305
313
|
let _classSuper = VElementTagMap.div;
|
|
306
|
-
var ZStackElement =
|
|
314
|
+
var ZStackElement = class extends _classSuper {
|
|
315
|
+
static { _classThis = this; }
|
|
316
|
+
static {
|
|
317
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
318
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
319
|
+
ZStackElement = _classThis = _classDescriptor.value;
|
|
320
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
321
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
322
|
+
}
|
|
307
323
|
// Constructor.
|
|
308
324
|
constructor(...children) {
|
|
309
325
|
// Initialize base class.
|
|
@@ -311,32 +327,13 @@ let ZStackElement = (() => {
|
|
|
311
327
|
derived: ZStackElement,
|
|
312
328
|
});
|
|
313
329
|
// Add children.
|
|
314
|
-
this.zstack_append(
|
|
330
|
+
this.zstack_append(children);
|
|
315
331
|
}
|
|
316
332
|
// Override append.
|
|
317
333
|
append(...children) {
|
|
318
|
-
return this.zstack_append(
|
|
334
|
+
return this.zstack_append(children);
|
|
319
335
|
}
|
|
320
336
|
};
|
|
321
|
-
__setFunctionName(_classThis, "ZStackElement");
|
|
322
|
-
(() => {
|
|
323
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
324
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
325
|
-
ZStackElement = _classThis = _classDescriptor.value;
|
|
326
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
327
|
-
})();
|
|
328
|
-
_classThis.default_style = {
|
|
329
|
-
// "position": "relative",
|
|
330
|
-
"margin": "0px",
|
|
331
|
-
"padding": "0px",
|
|
332
|
-
"display": "grid",
|
|
333
|
-
// "text-align": "start",
|
|
334
|
-
"outline": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
335
|
-
"border": "none", // otherwise the focus border might show up inside an animation when the href # hashtag id is loaded.
|
|
336
|
-
};
|
|
337
|
-
(() => {
|
|
338
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
339
|
-
})();
|
|
340
337
|
return ZStackElement = _classThis;
|
|
341
338
|
})();
|
|
342
339
|
export { ZStackElement };
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
+
import { VElementBaseSignature } from "../elements/module.js";
|
|
1
2
|
import { VStackElement, HStackElement } from "./stack";
|
|
2
3
|
import { DividerElement } from "./divider";
|
|
3
|
-
interface
|
|
4
|
+
export interface StepContentOptions {
|
|
4
5
|
content: any[];
|
|
5
6
|
title?: string;
|
|
6
7
|
hstack?: boolean;
|
|
7
8
|
side_by_side_width?: number;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"--steps-tint": string;
|
|
12
|
-
"--steps-tint-opac": number;
|
|
13
|
-
"--steps-step-bg": string;
|
|
14
|
-
"--steps-step-border": string;
|
|
15
|
-
"--steps-step-border-radius": string;
|
|
16
|
-
"--steps-div-bg": string;
|
|
17
|
-
margin: string;
|
|
18
|
-
padding: string;
|
|
19
|
-
display: string;
|
|
20
|
-
overflow: string;
|
|
21
|
-
"align-content": string;
|
|
22
|
-
"flex-direction": string;
|
|
23
|
-
outline: string;
|
|
24
|
-
border: string;
|
|
25
|
-
};
|
|
10
|
+
declare const StepsElement_base: VElementBaseSignature;
|
|
11
|
+
export declare class StepsElement extends StepsElement_base {
|
|
26
12
|
_tint: string;
|
|
27
13
|
_tint_opac: number;
|
|
28
14
|
_step_bg: string;
|
|
29
15
|
_step_border: string;
|
|
30
16
|
_step_border_radius: string;
|
|
17
|
+
_step_margin_right: string;
|
|
31
18
|
_div_bg: string;
|
|
32
19
|
_step_nr_nodes: (VStackElement & {
|
|
33
20
|
bg: VStackElement;
|
|
@@ -35,9 +22,8 @@ export declare class StepsElement extends VStackElement {
|
|
|
35
22
|
_step_nodes: HStackElement[];
|
|
36
23
|
_div_nodes: DividerElement[];
|
|
37
24
|
_content_nodes: (HStackElement | VStackElement)[];
|
|
38
|
-
constructor({ content,
|
|
39
|
-
content: any[] | any[][] |
|
|
40
|
-
spacing?: string | number;
|
|
25
|
+
constructor({ content, }: {
|
|
26
|
+
content: any[] | any[][] | StepContentOptions[];
|
|
41
27
|
});
|
|
42
28
|
set_default(): this;
|
|
43
29
|
styles(): Record<string, string>;
|
|
@@ -56,12 +42,13 @@ export declare class StepsElement extends VStackElement {
|
|
|
56
42
|
step_number_border_color(value: string): this;
|
|
57
43
|
step_number_border_radius(): string;
|
|
58
44
|
step_number_border_radius(value: string): this;
|
|
45
|
+
step_number_margin_right(): string;
|
|
46
|
+
step_number_margin_right(value: string): this;
|
|
59
47
|
iterate_step_numbers(callback: (element: VStackElement) => void): this;
|
|
60
48
|
iterate_steps(callback: (element: HStackElement) => void): this;
|
|
61
49
|
}
|
|
62
50
|
export declare const Steps: <Extensions extends object = {}>(args_0: {
|
|
63
|
-
content: any[] | any[][] |
|
|
64
|
-
spacing?: string | number;
|
|
51
|
+
content: any[] | any[][] | StepContentOptions[];
|
|
65
52
|
}) => StepsElement & Extensions;
|
|
66
53
|
export declare const NullSteps: <Extensions extends object = {}>() => StepsElement & Extensions;
|
|
67
54
|
declare module './any_element.d.ts' {
|
|
@@ -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, isVElement } from "../elements/module.js";
|
|
45
41
|
import { VStack, VStackElement, HStack } from "./stack";
|
|
@@ -80,22 +76,47 @@ import { ForEach } from "./for_each";
|
|
|
80
76
|
@default: "1.25em"
|
|
81
77
|
*/
|
|
82
78
|
let StepsElement = (() => {
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
let _classDecorators = [Elements.create({
|
|
80
|
+
name: "StepsElement",
|
|
81
|
+
default_style: {
|
|
82
|
+
...VStackElement.default_style,
|
|
83
|
+
"--steps-tint": "gray",
|
|
84
|
+
"--steps-tint-opac": 1,
|
|
85
|
+
"--steps-step-bg": "gray",
|
|
86
|
+
"--steps-step-border": "gray",
|
|
87
|
+
"--steps-step-border-radius": "50%",
|
|
88
|
+
"--steps-div-bg": "gray",
|
|
89
|
+
},
|
|
90
|
+
})];
|
|
85
91
|
let _classDescriptor;
|
|
86
92
|
let _classExtraInitializers = [];
|
|
87
93
|
let _classThis;
|
|
88
94
|
let _classSuper = VStackElement;
|
|
89
|
-
var StepsElement =
|
|
95
|
+
var StepsElement = class extends _classSuper {
|
|
96
|
+
static { _classThis = this; }
|
|
97
|
+
static {
|
|
98
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
99
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
100
|
+
StepsElement = _classThis = _classDescriptor.value;
|
|
101
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
102
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
103
|
+
}
|
|
104
|
+
_tint;
|
|
105
|
+
_tint_opac;
|
|
106
|
+
_step_bg;
|
|
107
|
+
_step_border;
|
|
108
|
+
_step_border_radius;
|
|
109
|
+
_step_margin_right = "1em";
|
|
110
|
+
_div_bg;
|
|
111
|
+
_step_nr_nodes = [];
|
|
112
|
+
_step_nodes = [];
|
|
113
|
+
_div_nodes = [];
|
|
114
|
+
_content_nodes = [];
|
|
90
115
|
// Constructor.
|
|
91
|
-
constructor({ content = [],
|
|
116
|
+
constructor({ content = [], }) {
|
|
92
117
|
// Inherit.
|
|
93
118
|
super();
|
|
94
|
-
this.
|
|
95
|
-
this._step_nodes = [];
|
|
96
|
-
this._div_nodes = [];
|
|
97
|
-
this._content_nodes = [];
|
|
98
|
-
this._init_derived({
|
|
119
|
+
this._init({
|
|
99
120
|
derived: StepsElement,
|
|
100
121
|
});
|
|
101
122
|
// Assign single array argument to content.
|
|
@@ -117,6 +138,7 @@ let StepsElement = (() => {
|
|
|
117
138
|
this._step_border_radius = StepsElement.default_style["--steps-step-border-radius"];
|
|
118
139
|
this._div_bg = StepsElement.default_style["--steps-div-bg"];
|
|
119
140
|
// Build.
|
|
141
|
+
const spacing = "1.25em";
|
|
120
142
|
this.append(ForEach(content, (item, index, is_last) => {
|
|
121
143
|
// Build divider.
|
|
122
144
|
const divider = is_last ? null : Divider()
|
|
@@ -130,7 +152,7 @@ let StepsElement = (() => {
|
|
|
130
152
|
// Build content.
|
|
131
153
|
const content = (item.hstack ? HStack() : VStack())
|
|
132
154
|
.z_index(1)
|
|
133
|
-
// .width(100%)
|
|
155
|
+
// .width("100%")
|
|
134
156
|
.stretch(true)
|
|
135
157
|
.overflow("hidden"); // required otherwise when inside Tabs will mess up.
|
|
136
158
|
if (typeof item.title === "string") {
|
|
@@ -165,7 +187,7 @@ let StepsElement = (() => {
|
|
|
165
187
|
.font_size("0.7em")
|
|
166
188
|
.flex_shrink(0)
|
|
167
189
|
.frame("1.8em", "1.8em")
|
|
168
|
-
.margin("0.2em",
|
|
190
|
+
.margin("0.2em", this._step_margin_right, null, null)
|
|
169
191
|
// .border_radius(this._step_border_radius)
|
|
170
192
|
.border_radius(5)
|
|
171
193
|
.border(1, this._step_border)
|
|
@@ -263,6 +285,16 @@ let StepsElement = (() => {
|
|
|
263
285
|
});
|
|
264
286
|
return this;
|
|
265
287
|
}
|
|
288
|
+
step_number_margin_right(value) {
|
|
289
|
+
if (value == null) {
|
|
290
|
+
return this._step_margin_right;
|
|
291
|
+
}
|
|
292
|
+
this._step_margin_right = value;
|
|
293
|
+
this._step_nr_nodes.iterate(node => {
|
|
294
|
+
node.margin_right(value);
|
|
295
|
+
});
|
|
296
|
+
return this;
|
|
297
|
+
}
|
|
266
298
|
/* @docs:
|
|
267
299
|
@title: Iterate step number nodes
|
|
268
300
|
@description: Iterate the step number nodes. When the callback returns any non null value the iteration will be stopped.
|
|
@@ -280,25 +312,6 @@ let StepsElement = (() => {
|
|
|
280
312
|
return this;
|
|
281
313
|
}
|
|
282
314
|
};
|
|
283
|
-
__setFunctionName(_classThis, "StepsElement");
|
|
284
|
-
(() => {
|
|
285
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
286
|
-
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
287
|
-
StepsElement = _classThis = _classDescriptor.value;
|
|
288
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
289
|
-
})();
|
|
290
|
-
_classThis.default_style = {
|
|
291
|
-
...VStackElement.default_style,
|
|
292
|
-
"--steps-tint": "gray",
|
|
293
|
-
"--steps-tint-opac": 1,
|
|
294
|
-
"--steps-step-bg": "gray",
|
|
295
|
-
"--steps-step-border": "gray",
|
|
296
|
-
"--steps-step-border-radius": "50%",
|
|
297
|
-
"--steps-div-bg": "gray",
|
|
298
|
-
};
|
|
299
|
-
(() => {
|
|
300
|
-
__runInitializers(_classThis, _classExtraInitializers);
|
|
301
|
-
})();
|
|
302
315
|
return StepsElement = _classThis;
|
|
303
316
|
})();
|
|
304
317
|
export { StepsElement };
|