@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.
Files changed (290) hide show
  1. package/backend/dist/cjs/database.d.ts +41 -68
  2. package/backend/dist/cjs/database.js +136 -78
  3. package/backend/dist/cjs/endpoint.d.ts +23 -9
  4. package/backend/dist/cjs/endpoint.js +98 -21
  5. package/backend/dist/cjs/file_watcher.js +2 -2
  6. package/backend/dist/cjs/frontend.d.ts +0 -2
  7. package/backend/dist/cjs/frontend.js +9 -9
  8. package/backend/dist/cjs/image_endpoint.d.ts +3 -1
  9. package/backend/dist/cjs/image_endpoint.js +2 -1
  10. package/backend/dist/cjs/payments/paddle.js +10 -2
  11. package/backend/dist/cjs/plugins/css.d.ts +6 -5
  12. package/backend/dist/cjs/plugins/css.js +32 -7
  13. package/backend/dist/cjs/plugins/ts/compiler.d.ts +6 -1
  14. package/backend/dist/cjs/plugins/ts/compiler.js +26 -2
  15. package/backend/dist/cjs/plugins/ts/preprocessing.js +5 -3
  16. package/backend/dist/cjs/server.d.ts +7 -13
  17. package/backend/dist/cjs/server.js +184 -303
  18. package/backend/dist/cjs/status.d.ts +1 -0
  19. package/backend/dist/cjs/status.js +2 -1
  20. package/backend/dist/cjs/stream.d.ts +5 -3
  21. package/backend/dist/cjs/stream.js +13 -4
  22. package/backend/dist/cjs/users.d.ts +1 -1
  23. package/backend/dist/cjs/users.js +87 -72
  24. package/backend/dist/cjs/utils.d.ts +17 -9
  25. package/backend/dist/cjs/utils.js +22 -64
  26. package/backend/dist/cjs/view.d.ts +2 -2
  27. package/backend/dist/cjs/view.js +38 -40
  28. package/backend/dist/cjs/volt.d.ts +3 -2
  29. package/backend/dist/cjs/volt.js +2 -2
  30. package/backend/dist/css/volt.css +5 -0
  31. package/backend/dist/esm/database.d.ts +41 -68
  32. package/backend/dist/esm/database.js +137 -79
  33. package/backend/dist/esm/endpoint.d.ts +23 -9
  34. package/backend/dist/esm/endpoint.js +99 -22
  35. package/backend/dist/esm/file_watcher.js +2 -2
  36. package/backend/dist/esm/frontend.d.ts +0 -2
  37. package/backend/dist/esm/frontend.js +9 -9
  38. package/backend/dist/esm/image_endpoint.d.ts +3 -1
  39. package/backend/dist/esm/image_endpoint.js +2 -1
  40. package/backend/dist/esm/payments/paddle.js +11 -3
  41. package/backend/dist/esm/plugins/css.d.ts +6 -5
  42. package/backend/dist/esm/plugins/css.js +32 -6
  43. package/backend/dist/esm/plugins/ts/compiler.d.ts +6 -1
  44. package/backend/dist/esm/plugins/ts/compiler.js +26 -2
  45. package/backend/dist/esm/plugins/ts/preprocessing.js +5 -3
  46. package/backend/dist/esm/server.d.ts +7 -13
  47. package/backend/dist/esm/server.js +182 -301
  48. package/backend/dist/esm/status.d.ts +1 -0
  49. package/backend/dist/esm/status.js +1 -0
  50. package/backend/dist/esm/stream.d.ts +5 -3
  51. package/backend/dist/esm/stream.js +13 -4
  52. package/backend/dist/esm/users.d.ts +1 -1
  53. package/backend/dist/esm/users.js +87 -72
  54. package/backend/dist/esm/utils.d.ts +17 -9
  55. package/backend/dist/esm/utils.js +21 -62
  56. package/backend/dist/esm/view.d.ts +2 -2
  57. package/backend/dist/esm/view.js +38 -40
  58. package/backend/dist/esm/volt.d.ts +3 -2
  59. package/backend/dist/esm/volt.js +2 -1
  60. package/backend/dist/esm-dev/blacklist.js +1 -1
  61. package/backend/dist/esm-dev/cli.js +2 -2
  62. package/backend/dist/esm-dev/database.d.ts +41 -68
  63. package/backend/dist/esm-dev/database.js +138 -80
  64. package/backend/dist/esm-dev/endpoint.d.ts +23 -9
  65. package/backend/dist/esm-dev/endpoint.js +100 -23
  66. package/backend/dist/esm-dev/file_watcher.js +3 -3
  67. package/backend/dist/esm-dev/frontend.d.ts +0 -2
  68. package/backend/dist/esm-dev/frontend.js +9 -9
  69. package/backend/dist/esm-dev/image_endpoint.d.ts +3 -1
  70. package/backend/dist/esm-dev/image_endpoint.js +2 -1
  71. package/backend/dist/esm-dev/logger.js +1 -1
  72. package/backend/dist/esm-dev/payments/paddle.js +12 -4
  73. package/backend/dist/esm-dev/plugins/css.d.ts +6 -5
  74. package/backend/dist/esm-dev/plugins/css.js +33 -7
  75. package/backend/dist/esm-dev/plugins/ts/compiler.d.ts +6 -1
  76. package/backend/dist/esm-dev/plugins/ts/compiler.js +27 -3
  77. package/backend/dist/esm-dev/plugins/ts/preprocessing.js +7 -5
  78. package/backend/dist/esm-dev/rate_limit.js +1 -1
  79. package/backend/dist/esm-dev/server.d.ts +7 -13
  80. package/backend/dist/esm-dev/server.js +184 -303
  81. package/backend/dist/esm-dev/status.d.ts +1 -0
  82. package/backend/dist/esm-dev/status.js +1 -0
  83. package/backend/dist/esm-dev/stream.d.ts +5 -3
  84. package/backend/dist/esm-dev/stream.js +13 -4
  85. package/backend/dist/esm-dev/users.d.ts +1 -1
  86. package/backend/dist/esm-dev/users.js +88 -73
  87. package/backend/dist/esm-dev/utils.d.ts +17 -9
  88. package/backend/dist/esm-dev/utils.js +22 -63
  89. package/backend/dist/esm-dev/view.d.ts +2 -2
  90. package/backend/dist/esm-dev/view.js +39 -41
  91. package/backend/dist/esm-dev/volt.d.ts +3 -2
  92. package/backend/dist/esm-dev/volt.js +2 -1
  93. package/backend/src/database.ts +173 -155
  94. package/backend/src/endpoint.ts +123 -31
  95. package/backend/src/file_watcher.ts +2 -2
  96. package/backend/src/frontend.ts +9 -8
  97. package/backend/src/image_endpoint.ts +4 -0
  98. package/backend/src/payments/paddle.ts +11 -3
  99. package/backend/src/plugins/css.ts +36 -8
  100. package/backend/src/plugins/ts/compiler.ts +37 -1
  101. package/backend/src/plugins/ts/preprocessing.ts +5 -3
  102. package/backend/src/server.ts +167 -306
  103. package/backend/src/status.ts +1 -0
  104. package/backend/src/stream.ts +28 -8
  105. package/backend/src/users.ts +87 -72
  106. package/backend/src/utils.ts +58 -25
  107. package/backend/src/view.ts +30 -28
  108. package/backend/src/{volt.js → volt.ts} +2 -1
  109. package/backend/tsconfig.cjs.json +3 -3
  110. package/backend/tsconfig.esm.json +3 -3
  111. package/frontend/dist/elements/base.d.ts +414 -432
  112. package/frontend/dist/elements/base.js +566 -329
  113. package/frontend/dist/elements/module.d.ts +26 -12
  114. package/frontend/dist/elements/module.js +69 -32
  115. package/frontend/dist/elements/register_element.d.ts +3 -0
  116. package/frontend/dist/elements/register_element.js +22 -0
  117. package/frontend/dist/modules/auth.d.ts +1 -0
  118. package/frontend/dist/modules/auth.js +6 -5
  119. package/frontend/dist/modules/color.d.ts +159 -0
  120. package/frontend/dist/modules/color.js +315 -0
  121. package/frontend/dist/modules/colors.d.ts +1 -26
  122. package/frontend/dist/modules/colors.js +417 -340
  123. package/frontend/dist/modules/cookies.d.ts +1 -0
  124. package/frontend/dist/modules/cookies.js +1 -0
  125. package/frontend/dist/modules/events.d.ts +1 -0
  126. package/frontend/dist/modules/events.js +1 -0
  127. package/frontend/dist/modules/google.d.ts +1 -0
  128. package/frontend/dist/modules/google.js +1 -0
  129. package/frontend/dist/modules/meta.d.ts +1 -0
  130. package/frontend/dist/modules/meta.js +1 -0
  131. package/frontend/dist/modules/mutex.d.ts +1 -2
  132. package/frontend/dist/modules/mutex.js +3 -4
  133. package/frontend/dist/modules/paddle.d.ts +1 -0
  134. package/frontend/dist/modules/paddle.js +14 -13
  135. package/frontend/dist/modules/scheme.d.ts +1 -0
  136. package/frontend/dist/modules/scheme.js +5 -3
  137. package/frontend/dist/modules/statics.d.ts +1 -0
  138. package/frontend/dist/modules/statics.js +1 -0
  139. package/frontend/dist/modules/support.d.ts +1 -0
  140. package/frontend/dist/modules/support.js +3 -2
  141. package/frontend/dist/modules/theme.d.ts +56 -0
  142. package/frontend/dist/{ui → modules}/theme.js +186 -75
  143. package/frontend/dist/modules/themes.d.ts +1 -1
  144. package/frontend/dist/modules/themes.js +1 -0
  145. package/frontend/dist/modules/user.d.ts +1 -0
  146. package/frontend/dist/modules/user.js +11 -10
  147. package/frontend/dist/modules/utils.d.ts +23 -2
  148. package/frontend/dist/modules/utils.js +93 -1
  149. package/frontend/dist/types/gradient.js +4 -0
  150. package/frontend/dist/ui/border_button.d.ts +0 -25
  151. package/frontend/dist/ui/border_button.js +50 -51
  152. package/frontend/dist/ui/button.d.ts +0 -21
  153. package/frontend/dist/ui/button.js +41 -46
  154. package/frontend/dist/ui/canvas.js +15 -15
  155. package/frontend/dist/ui/checkbox.d.ts +3 -17
  156. package/frontend/dist/ui/checkbox.js +36 -30
  157. package/frontend/dist/ui/code.d.ts +15 -82
  158. package/frontend/dist/ui/code.js +150 -125
  159. package/frontend/dist/ui/color.d.ts +0 -1
  160. package/frontend/dist/ui/color.js +1 -1
  161. package/frontend/dist/ui/context_menu.d.ts +4 -2
  162. package/frontend/dist/ui/context_menu.js +16 -17
  163. package/frontend/dist/ui/css.js +2 -0
  164. package/frontend/dist/ui/divider.d.ts +0 -7
  165. package/frontend/dist/ui/divider.js +21 -25
  166. package/frontend/dist/ui/dropdown.d.ts +13 -7
  167. package/frontend/dist/ui/dropdown.js +65 -30
  168. package/frontend/dist/ui/for_each.d.ts +0 -5
  169. package/frontend/dist/ui/for_each.js +17 -22
  170. package/frontend/dist/ui/form.d.ts +17 -12
  171. package/frontend/dist/ui/form.js +21 -18
  172. package/frontend/dist/ui/frame_modes.d.ts +9 -12
  173. package/frontend/dist/ui/frame_modes.js +8 -10
  174. package/frontend/dist/ui/google_map.d.ts +0 -11
  175. package/frontend/dist/ui/google_map.js +23 -28
  176. package/frontend/dist/ui/gradient.d.ts +0 -5
  177. package/frontend/dist/ui/gradient.js +17 -22
  178. package/frontend/dist/ui/image.d.ts +27 -58
  179. package/frontend/dist/ui/image.js +99 -93
  180. package/frontend/dist/ui/input.d.ts +20 -97
  181. package/frontend/dist/ui/input.js +192 -170
  182. package/frontend/dist/ui/link.d.ts +0 -18
  183. package/frontend/dist/ui/link.js +42 -48
  184. package/frontend/dist/ui/list.js +36 -37
  185. package/frontend/dist/ui/loader_button.d.ts +4 -19
  186. package/frontend/dist/ui/loader_button.js +35 -37
  187. package/frontend/dist/ui/loaders.d.ts +0 -8
  188. package/frontend/dist/ui/loaders.js +20 -25
  189. package/frontend/dist/ui/popup.d.ts +11 -8
  190. package/frontend/dist/ui/popup.js +183 -24
  191. package/frontend/dist/ui/pseudo.d.ts +3 -3
  192. package/frontend/dist/ui/pseudo.js +14 -17
  193. package/frontend/dist/ui/scroller.d.ts +10 -48
  194. package/frontend/dist/ui/scroller.js +306 -300
  195. package/frontend/dist/ui/slider.d.ts +9 -3
  196. package/frontend/dist/ui/slider.js +31 -17
  197. package/frontend/dist/ui/spacer.d.ts +0 -9
  198. package/frontend/dist/ui/spacer.js +21 -26
  199. package/frontend/dist/ui/span.js +13 -15
  200. package/frontend/dist/ui/stack.d.ts +14 -75
  201. package/frontend/dist/ui/stack.js +166 -169
  202. package/frontend/dist/ui/steps.d.ts +10 -23
  203. package/frontend/dist/ui/steps.js +47 -34
  204. package/frontend/dist/ui/style.d.ts +4 -3
  205. package/frontend/dist/ui/style.js +13 -18
  206. package/frontend/dist/ui/switch.d.ts +10 -4
  207. package/frontend/dist/ui/switch.js +24 -16
  208. package/frontend/dist/ui/table.d.ts +0 -23
  209. package/frontend/dist/ui/table.js +113 -119
  210. package/frontend/dist/ui/tabs.d.ts +3 -19
  211. package/frontend/dist/ui/tabs.js +35 -29
  212. package/frontend/dist/ui/text.d.ts +0 -8
  213. package/frontend/dist/ui/text.js +20 -25
  214. package/frontend/dist/ui/title.d.ts +0 -15
  215. package/frontend/dist/ui/title.js +39 -45
  216. package/frontend/dist/ui/ui.d.ts +0 -2
  217. package/frontend/dist/ui/ui.js +0 -2
  218. package/frontend/dist/ui/view.d.ts +3 -17
  219. package/frontend/dist/ui/view.js +27 -32
  220. package/frontend/dist/volt.d.ts +2 -1
  221. package/frontend/dist/volt.js +3 -1
  222. package/frontend/examples/dashboard/dashboard.ts +774 -0
  223. package/frontend/examples/theme/theme.ts +58 -0
  224. package/frontend/src/css/volt.css +5 -0
  225. package/frontend/src/elements/base.ts +767 -545
  226. package/frontend/src/elements/module.ts +90 -29
  227. package/frontend/src/elements/register_element.ts +24 -0
  228. package/frontend/src/modules/auth.ts +7 -6
  229. package/frontend/src/modules/color.ts +348 -0
  230. package/frontend/src/modules/colors.ts +468 -449
  231. package/frontend/src/modules/cookies.ts +1 -0
  232. package/frontend/src/modules/events.ts +1 -0
  233. package/frontend/src/modules/google.ts +1 -0
  234. package/frontend/src/modules/meta.ts +2 -1
  235. package/frontend/src/modules/mutex.ts +2 -4
  236. package/frontend/src/modules/paddle.ts +21 -20
  237. package/frontend/src/modules/scheme.ts +5 -4
  238. package/frontend/src/modules/statics.ts +2 -1
  239. package/frontend/src/modules/support.ts +3 -2
  240. package/frontend/src/modules/theme.ts +413 -0
  241. package/frontend/src/modules/themes.ts +2 -1
  242. package/frontend/src/modules/user.ts +12 -11
  243. package/frontend/src/modules/utils.ts +125 -2
  244. package/frontend/src/ui/border_button.ts +41 -37
  245. package/frontend/src/ui/button.ts +33 -32
  246. package/frontend/src/ui/canvas.ts +5 -2
  247. package/frontend/src/ui/checkbox.ts +21 -22
  248. package/frontend/src/ui/code.ts +92 -86
  249. package/frontend/src/ui/context_menu.ts +7 -5
  250. package/frontend/src/ui/css.ts +1 -1
  251. package/frontend/src/ui/divider.ts +15 -10
  252. package/frontend/src/ui/dropdown.ts +38 -21
  253. package/frontend/src/ui/for_each.ts +9 -8
  254. package/frontend/src/ui/form.ts +26 -21
  255. package/frontend/src/ui/frame_modes.ts +13 -17
  256. package/frontend/src/ui/google_map.ts +15 -13
  257. package/frontend/src/ui/gradient.ts +9 -8
  258. package/frontend/src/ui/image.ts +108 -86
  259. package/frontend/src/ui/input.ts +145 -144
  260. package/frontend/src/ui/link.ts +25 -23
  261. package/frontend/src/ui/list.ts +12 -6
  262. package/frontend/src/ui/loader_button.ts +26 -25
  263. package/frontend/src/ui/loaders.ts +12 -11
  264. package/frontend/src/ui/popup.ts +168 -14
  265. package/frontend/src/ui/pseudo.ts +5 -3
  266. package/frontend/src/ui/scroller.ts +303 -294
  267. package/frontend/src/ui/slider.ts +15 -10
  268. package/frontend/src/ui/spacer.ts +14 -11
  269. package/frontend/src/ui/span.ts +6 -2
  270. package/frontend/src/ui/stack.ts +196 -183
  271. package/frontend/src/ui/steps.ts +38 -22
  272. package/frontend/src/ui/style.ts +7 -4
  273. package/frontend/src/ui/switch.ts +16 -11
  274. package/frontend/src/ui/table.ts +42 -34
  275. package/frontend/src/ui/tabs.ts +20 -19
  276. package/frontend/src/ui/text.ts +12 -11
  277. package/frontend/src/ui/title.ts +22 -20
  278. package/frontend/src/ui/ui.ts +0 -2
  279. package/frontend/src/ui/view.ts +20 -19
  280. package/frontend/src/volt.ts +3 -1
  281. package/frontend/{compile.js → tools/compile.old.js} +2 -2
  282. package/frontend/tools/embed_scripts.js +69 -0
  283. package/frontend/tsconfig.json +26 -0
  284. package/package.json +7 -6
  285. package/frontend/dist/ui/theme.d.ts +0 -25
  286. package/frontend/exports.json +0 -1340
  287. package/frontend/src/modules/date.js +0 -535
  288. package/frontend/src/ui/color.ts +0 -117
  289. package/frontend/src/ui/theme.ts +0 -279
  290. /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 } 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
- var _a;
74
- let _classDecorators = [(_a = Elements).register.bind(_a)];
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 = _classThis = class extends _classSuper {
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._init_derived({
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;
@@ -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
- var _a;
48
- let _classDecorators = [(_a = Elements).register.bind(_a)];
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 = _classThis = class extends _classSuper {
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
- var _a;
48
- let _classDecorators = [(_a = Elements).register.bind(_a)];
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 = _classThis = class extends _classSuper {
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
- var _a;
89
- let _classDecorators = [(_a = Elements).register.bind(_a)];
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 = _classThis = class extends _classSuper {
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 };
@@ -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";
@@ -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
- static default_style: {
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: any[]) => ViewElement & Extensions;
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 {
@@ -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
- var _a;
48
- let _classDecorators = [(_a = Elements).register.bind(_a)];
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 = _classThis = class extends _classSuper {
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 };
@@ -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/colors.js";
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";
@@ -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/colors.js";
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.