@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,21 +36,36 @@ 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
  // Link.
46
42
  let AnchorElement = (() => {
47
- var _a;
48
- let _classDecorators = [(_a = Elements).register.bind(_a)];
43
+ let _classDecorators = [Elements.create({
44
+ name: "AnchorElement",
45
+ default_style: {
46
+ "font-family": "inherit",
47
+ "font-size": "inherit",
48
+ "color": "inherit",
49
+ "text-decoration": "none",
50
+ "text-underline-position": "none",
51
+ "cursor": "pointer",
52
+ "outline": "none",
53
+ "border": "none",
54
+ },
55
+ })];
49
56
  let _classDescriptor;
50
57
  let _classExtraInitializers = [];
51
58
  let _classThis;
52
59
  let _classSuper = VElementTagMap.a;
53
- var AnchorElement = _classThis = class extends _classSuper {
60
+ var AnchorElement = class extends _classSuper {
61
+ static { _classThis = this; }
62
+ static {
63
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
64
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
65
+ AnchorElement = _classThis = _classDescriptor.value;
66
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
67
+ __runInitializers(_classThis, _classExtraInitializers);
68
+ }
54
69
  // Constructor.
55
70
  constructor(text, href, alt) {
56
71
  // Initialize base class.
@@ -71,26 +86,6 @@ let AnchorElement = (() => {
71
86
  }
72
87
  }
73
88
  };
74
- __setFunctionName(_classThis, "AnchorElement");
75
- (() => {
76
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
77
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
78
- AnchorElement = _classThis = _classDescriptor.value;
79
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
80
- })();
81
- _classThis.default_style = {
82
- "font-family": "inherit",
83
- "font-size": "inherit",
84
- "color": "inherit",
85
- "text-decoration": "none",
86
- "text-underline-position": "none",
87
- "cursor": "pointer",
88
- "outline": "none",
89
- "border": "none",
90
- };
91
- (() => {
92
- __runInitializers(_classThis, _classExtraInitializers);
93
- })();
94
89
  return AnchorElement = _classThis;
95
90
  })();
96
91
  export { AnchorElement };
@@ -98,13 +93,30 @@ export const Anchor = Elements.wrapper(AnchorElement);
98
93
  export const NullAnchor = Elements.create_null(AnchorElement);
99
94
  // Link.
100
95
  let LinkElement = (() => {
101
- var _a;
102
- let _classDecorators = [(_a = Elements).register.bind(_a)];
96
+ let _classDecorators = [Elements.create({
97
+ name: "LinkElement",
98
+ default_style: {
99
+ "font-family": "inherit",
100
+ "font-size": "1em",
101
+ "color": "rgb(85, 108, 214)",
102
+ "text-decoration": "underline",
103
+ "text-underline-position": "auto",
104
+ "cursor": "pointer",
105
+ },
106
+ })];
103
107
  let _classDescriptor;
104
108
  let _classExtraInitializers = [];
105
109
  let _classThis;
106
110
  let _classSuper = VElementTagMap.a;
107
- var LinkElement = _classThis = class extends _classSuper {
111
+ var LinkElement = class extends _classSuper {
112
+ static { _classThis = this; }
113
+ static {
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
+ LinkElement = _classThis = _classDescriptor.value;
117
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
118
+ __runInitializers(_classThis, _classExtraInitializers);
119
+ }
108
120
  // Constructor.
109
121
  constructor(text, href) {
110
122
  // Initialize base class.
@@ -121,24 +133,6 @@ let LinkElement = (() => {
121
133
  }
122
134
  }
123
135
  };
124
- __setFunctionName(_classThis, "LinkElement");
125
- (() => {
126
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
127
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
128
- LinkElement = _classThis = _classDescriptor.value;
129
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
130
- })();
131
- _classThis.default_style = {
132
- "font-family": "inherit",
133
- "font-size": "1em",
134
- "color": "rgb(85, 108, 214)",
135
- "text-decoration": "underline",
136
- "text-underline-position": "auto",
137
- "cursor": "pointer",
138
- };
139
- (() => {
140
- __runInitializers(_classThis, _classExtraInitializers);
141
- })();
142
136
  return LinkElement = _classThis;
143
137
  })();
144
138
  export { LinkElement };
@@ -36,22 +36,27 @@ 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
  import { Scheme } from "../modules/scheme";
46
42
  // List item.
47
43
  let ListItemElement = (() => {
48
- var _a;
49
- let _classDecorators = [(_a = Elements).register.bind(_a)];
44
+ let _classDecorators = [Elements.create({
45
+ name: "ListItemElement",
46
+ })];
50
47
  let _classDescriptor;
51
48
  let _classExtraInitializers = [];
52
49
  let _classThis;
53
50
  let _classSuper = VElementTagMap.li;
54
- var ListItemElement = _classThis = class extends _classSuper {
51
+ var ListItemElement = class extends _classSuper {
52
+ static { _classThis = this; }
53
+ static {
54
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
55
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
56
+ ListItemElement = _classThis = _classDescriptor.value;
57
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
58
+ __runInitializers(_classThis, _classExtraInitializers);
59
+ }
55
60
  // Constructor.
56
61
  constructor(...content) {
57
62
  // Initialize base class.
@@ -60,14 +65,6 @@ let ListItemElement = (() => {
60
65
  this.append(...content);
61
66
  }
62
67
  };
63
- __setFunctionName(_classThis, "ListItemElement");
64
- (() => {
65
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
66
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
67
- ListItemElement = _classThis = _classDescriptor.value;
68
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
69
- __runInitializers(_classThis, _classExtraInitializers);
70
- })();
71
68
  return ListItemElement = _classThis;
72
69
  })();
73
70
  export { ListItemElement };
@@ -75,13 +72,22 @@ export const ListItem = Elements.wrapper(ListItemElement);
75
72
  export const NullListItem = Elements.create_null(ListItemElement);
76
73
  // Unordered List.
77
74
  let UnorderedListElement = (() => {
78
- var _a;
79
- let _classDecorators = [(_a = Elements).register.bind(_a)];
75
+ let _classDecorators = [Elements.create({
76
+ name: "UnorderedListElement",
77
+ })];
80
78
  let _classDescriptor;
81
79
  let _classExtraInitializers = [];
82
80
  let _classThis;
83
81
  let _classSuper = VElementTagMap.ul;
84
- var UnorderedListElement = _classThis = class extends _classSuper {
82
+ var UnorderedListElement = class extends _classSuper {
83
+ static { _classThis = this; }
84
+ static {
85
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
86
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
87
+ UnorderedListElement = _classThis = _classDescriptor.value;
88
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
89
+ __runInitializers(_classThis, _classExtraInitializers);
90
+ }
85
91
  // Constructor.
86
92
  constructor(items = []) {
87
93
  // Initialize base class.
@@ -103,14 +109,6 @@ let UnorderedListElement = (() => {
103
109
  return this;
104
110
  }
105
111
  };
106
- __setFunctionName(_classThis, "UnorderedListElement");
107
- (() => {
108
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
109
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
110
- UnorderedListElement = _classThis = _classDescriptor.value;
111
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
112
- __runInitializers(_classThis, _classExtraInitializers);
113
- })();
114
112
  return UnorderedListElement = _classThis;
115
113
  })();
116
114
  export { UnorderedListElement };
@@ -118,13 +116,22 @@ export const UnorderedList = Elements.wrapper(UnorderedListElement);
118
116
  export const NullUnorderedList = Elements.create_null(UnorderedListElement);
119
117
  // Ordered List.
120
118
  let OrderedListElement = (() => {
121
- var _a;
122
- let _classDecorators = [(_a = Elements).register.bind(_a)];
119
+ let _classDecorators = [Elements.create({
120
+ name: "OrderedListElement",
121
+ })];
123
122
  let _classDescriptor;
124
123
  let _classExtraInitializers = [];
125
124
  let _classThis;
126
125
  let _classSuper = VElementTagMap.ol;
127
- var OrderedListElement = _classThis = class extends _classSuper {
126
+ var OrderedListElement = class extends _classSuper {
127
+ static { _classThis = this; }
128
+ static {
129
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
130
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
131
+ OrderedListElement = _classThis = _classDescriptor.value;
132
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
133
+ __runInitializers(_classThis, _classExtraInitializers);
134
+ }
128
135
  // Constructor.
129
136
  constructor(items = []) {
130
137
  // Initialize base class.
@@ -146,14 +153,6 @@ let OrderedListElement = (() => {
146
153
  return this;
147
154
  }
148
155
  };
149
- __setFunctionName(_classThis, "OrderedListElement");
150
- (() => {
151
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
152
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
153
- OrderedListElement = _classThis = _classDescriptor.value;
154
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
155
- __runInitializers(_classThis, _classExtraInitializers);
156
- })();
157
156
  return OrderedListElement = _classThis;
158
157
  })();
159
158
  export { OrderedListElement };
@@ -1,27 +1,11 @@
1
- import { VDivElement } from "../elements/module.js";
2
- import { AnchorHStackElement } from "./stack";
1
+ import { VElementBaseSignature, VDivElement } from "../elements/module.js";
3
2
  import { RingLoaderElement } from "./loaders";
4
- export declare class myClass extends AnchorHStackElement {
5
- constructor();
6
- }
3
+ declare const LoaderButtonElement_base: VElementBaseSignature;
7
4
  /**
8
5
  * @warning: you should not use function "LoaderButton.loader.hide() / LoaderButton.loader.show()" use "LoaderButton.hide_loader() / LoaderButton.show_loader()" instead.
9
6
  * @warning: This class is still experimental and may be subject to future change.
10
7
  */
11
- export declare class LoaderButtonElement extends AnchorHStackElement {
12
- static default_style: {
13
- margin: string;
14
- padding: string;
15
- "border-radius": string;
16
- cursor: string;
17
- background: string;
18
- color: string;
19
- "font-size": string;
20
- "user-select": string;
21
- "text-decoration": string;
22
- "--loader-width": string;
23
- "--loader-height": string;
24
- };
8
+ export declare class LoaderButtonElement extends LoaderButtonElement_base {
25
9
  nodes: {
26
10
  text: VDivElement;
27
11
  loader: RingLoaderElement;
@@ -106,3 +90,4 @@ declare module './any_element.d.ts' {
106
90
  LoaderButtonElement: LoaderButtonElement;
107
91
  }
108
92
  }
93
+ export {};
@@ -36,30 +36,54 @@ 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, VDiv } from "../elements/module.js";
45
41
  import { AnchorHStackElement } from "./stack";
46
42
  import { RingLoader } from "./loaders";
47
- export class myClass extends AnchorHStackElement {
48
- constructor() { super(); }
49
- }
43
+ // export class myClass extends AnchorHStackElement {
44
+ // constructor() { super(); }
45
+ // }
50
46
  // Loader button.
51
47
  /**
52
48
  * @warning: you should not use function "LoaderButton.loader.hide() / LoaderButton.loader.show()" use "LoaderButton.hide_loader() / LoaderButton.show_loader()" instead.
53
49
  * @warning: This class is still experimental and may be subject to future change.
54
50
  */
55
51
  let LoaderButtonElement = (() => {
56
- var _a;
57
- let _classDecorators = [(_a = Elements).register.bind(_a)];
52
+ let _classDecorators = [Elements.create({
53
+ name: "LoaderButtonElement",
54
+ default_style: {
55
+ "margin": "0px",
56
+ "padding": "12.5px 10px 12.5px 10px",
57
+ "border-radius": "25px",
58
+ "cursor": "pointer",
59
+ "background": "black",
60
+ "color": "inherit",
61
+ "font-size": "16px",
62
+ "user-select": "none",
63
+ "text-decoration": "none",
64
+ // Custom.
65
+ "--loader-width": "20px",
66
+ "--loader-height": "20px",
67
+ }
68
+ })];
58
69
  let _classDescriptor;
59
70
  let _classExtraInitializers = [];
60
71
  let _classThis;
61
72
  let _classSuper = AnchorHStackElement;
62
- var LoaderButtonElement = _classThis = class extends _classSuper {
73
+ var LoaderButtonElement = class extends _classSuper {
74
+ static { _classThis = this; }
75
+ static {
76
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
77
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
78
+ LoaderButtonElement = _classThis = _classDescriptor.value;
79
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
80
+ __runInitializers(_classThis, _classExtraInitializers);
81
+ }
82
+ // Attributes.
83
+ nodes;
84
+ // @ts-ignore
85
+ text;
86
+ loader;
63
87
  /**
64
88
  * @docs:
65
89
  * @title: Loader Button Constructor
@@ -79,7 +103,7 @@ let LoaderButtonElement = (() => {
79
103
  constructor(text = "", loader = RingLoader) {
80
104
  // Initialize base classes.
81
105
  super();
82
- this._init_derived({
106
+ this._init({
83
107
  derived: LoaderButtonElement,
84
108
  });
85
109
  // Set nodes type.
@@ -174,34 +198,8 @@ let LoaderButtonElement = (() => {
174
198
  }
175
199
  stop() { return this.hide_loader(); }
176
200
  };
177
- __setFunctionName(_classThis, "LoaderButtonElement");
178
- (() => {
179
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
180
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
181
- LoaderButtonElement = _classThis = _classDescriptor.value;
182
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
183
- })();
184
- _classThis.default_style = {
185
- "margin": "0px",
186
- "padding": "12.5px 10px 12.5px 10px",
187
- "border-radius": "25px",
188
- "cursor": "pointer",
189
- "background": "black",
190
- "color": "inherit",
191
- "font-size": "16px",
192
- "user-select": "none",
193
- "text-decoration": "none",
194
- // Custom.
195
- "--loader-width": "20px",
196
- "--loader-height": "20px",
197
- };
198
- (() => {
199
- __runInitializers(_classThis, _classExtraInitializers);
200
- })();
201
201
  return LoaderButtonElement = _classThis;
202
202
  })();
203
203
  export { LoaderButtonElement };
204
204
  export const LoaderButton = Elements.wrapper(LoaderButtonElement);
205
205
  export const NullLoaderButton = Elements.create_null(LoaderButtonElement);
206
- const x = new LoaderButtonElement();
207
- x.style.color = "you";
@@ -7,14 +7,6 @@ import { VElementTagMap } from "../elements/module.js";
7
7
  * The ring loader element.
8
8
  */
9
9
  export declare class RingLoaderElement extends VElementTagMap.div {
10
- static default_style: {
11
- width: string;
12
- height: string;
13
- "--child-background": string;
14
- "--border-width-factor": string;
15
- display: string;
16
- position: string;
17
- };
18
10
  constructor();
19
11
  /**
20
12
  * @docs:
@@ -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
  // RingLoader.
@@ -52,13 +48,30 @@ import { Elements, VElementTagMap } from "../elements/module.js";
52
48
  * The ring loader element.
53
49
  */
54
50
  let RingLoaderElement = (() => {
55
- var _a;
56
- let _classDecorators = [(_a = Elements).register.bind(_a)];
51
+ let _classDecorators = [Elements.create({
52
+ name: "RingLoaderElement",
53
+ default_style: {
54
+ "width": "80px",
55
+ "height": "80px",
56
+ "--child-background": "black",
57
+ "--border-width-factor": "1",
58
+ "display": "inline-block",
59
+ "position": "relative",
60
+ },
61
+ })];
57
62
  let _classDescriptor;
58
63
  let _classExtraInitializers = [];
59
64
  let _classThis;
60
65
  let _classSuper = VElementTagMap.div;
61
- var RingLoaderElement = _classThis = class extends _classSuper {
66
+ var RingLoaderElement = class extends _classSuper {
67
+ static { _classThis = this; }
68
+ static {
69
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
70
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
71
+ RingLoaderElement = _classThis = _classDescriptor.value;
72
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
73
+ __runInitializers(_classThis, _classExtraInitializers);
74
+ }
62
75
  // Constructor.
63
76
  constructor() {
64
77
  // Initialize base class.
@@ -125,24 +138,6 @@ let RingLoaderElement = (() => {
125
138
  return this;
126
139
  }
127
140
  };
128
- __setFunctionName(_classThis, "RingLoaderElement");
129
- (() => {
130
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
131
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
132
- RingLoaderElement = _classThis = _classDescriptor.value;
133
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
134
- })();
135
- _classThis.default_style = {
136
- "width": "80px",
137
- "height": "80px",
138
- "--child-background": "black",
139
- "--border-width-factor": "1",
140
- "display": "inline-block",
141
- "position": "relative",
142
- };
143
- (() => {
144
- __runInitializers(_classThis, _classExtraInitializers);
145
- })();
146
141
  return RingLoaderElement = _classThis;
147
142
  })();
148
143
  export { RingLoaderElement };
@@ -1,12 +1,14 @@
1
- import { MutexType } from "../modules/mutex";
1
+ import { VElementBaseSignature } from "../elements/module.js";
2
+ import { Mutex } from "../modules/mutex";
2
3
  import { HStackElement, VStackElement } from "./stack";
3
4
  import { TextElement } from "./text";
4
5
  import { TitleElement } from "./title";
5
6
  import { LoaderButtonElement } from "./loader_button";
6
7
  import { ImageMaskElement } from "./image";
7
- export type OnYesNoPopup = ((element: PopupElement) => Promise<any> | void);
8
- export declare class PopupElement extends VStackElement {
9
- p_mutex: MutexType;
8
+ export type OnYesNoPopup = ((element: YesNoPopupElement) => Promise<any> | void);
9
+ declare const YesNoPopupElement_base: VElementBaseSignature;
10
+ export declare class YesNoPopupElement extends YesNoPopupElement_base {
11
+ p_mutex: Mutex;
10
12
  p_auto_hide: boolean;
11
13
  p_auto_remove: boolean;
12
14
  p_animation_duration: number;
@@ -60,7 +62,7 @@ export declare class PopupElement extends VStackElement {
60
62
  on_yes?: OnYesNoPopup;
61
63
  }): Promise<void>;
62
64
  }
63
- export declare const Popup: <Extensions extends object = {}>(args_0: {
65
+ export declare const YesNoPopup: <Extensions extends object = {}>(args_0: {
64
66
  title: string;
65
67
  text: string;
66
68
  no?: string;
@@ -75,10 +77,11 @@ export declare const Popup: <Extensions extends object = {}>(args_0: {
75
77
  on_no?: OnYesNoPopup;
76
78
  on_yes?: OnYesNoPopup;
77
79
  on_popup?: OnYesNoPopup;
78
- }) => PopupElement & Extensions;
79
- export declare const NullPopup: <Extensions extends object = {}>() => PopupElement & Extensions;
80
+ }) => YesNoPopupElement & Extensions;
81
+ export declare const NullYesNoPopup: <Extensions extends object = {}>() => YesNoPopupElement & Extensions;
80
82
  declare module './any_element.d.ts' {
81
83
  interface AnyElementMap {
82
- PopupElement: PopupElement;
84
+ YesNoPopupElement: YesNoPopupElement;
83
85
  }
84
86
  }
87
+ export {};