@zeyos/zx 2.1.0 → 2.2.0

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 (311) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +15 -0
  3. package/dist/types/compat/base.d.ts +156 -0
  4. package/dist/types/compat/globals.d.ts +20 -0
  5. package/dist/types/compat/index.d.ts +128 -0
  6. package/dist/types/compat/map/basic.d.ts +175 -0
  7. package/dist/types/compat/map/data.d.ts +102 -0
  8. package/dist/types/compat/map/date-time.d.ts +80 -0
  9. package/dist/types/compat/map/factory.d.ts +9 -0
  10. package/dist/types/compat/map/form.d.ts +98 -0
  11. package/dist/types/compat/map/helpers.d.ts +12 -0
  12. package/dist/types/compat/map/http.d.ts +36 -0
  13. package/dist/types/compat/map/layout.d.ts +106 -0
  14. package/dist/types/compat/map/options.d.ts +80 -0
  15. package/dist/types/compat/map/select.d.ts +95 -0
  16. package/dist/types/compat/map/stubs.d.ts +32 -0
  17. package/dist/types/compat/map/utilities.d.ts +37 -0
  18. package/dist/types/compat-entry.d.ts +5 -0
  19. package/dist/types/components/badge/badge.d.ts +46 -0
  20. package/dist/types/components/breadcrumb/breadcrumb.d.ts +200 -0
  21. package/dist/types/components/button/button.d.ts +42 -0
  22. package/dist/types/components/check-button/check-button.d.ts +98 -0
  23. package/dist/types/components/checklist/checklist.d.ts +143 -0
  24. package/dist/types/components/checklist/field-adapter.d.ts +5 -0
  25. package/dist/types/components/context-menu/context-menu.d.ts +130 -0
  26. package/dist/types/components/copy/copy-button.d.ts +48 -0
  27. package/dist/types/components/copy/copy-input.d.ts +91 -0
  28. package/dist/types/components/data-filter/data-filter.d.ts +250 -0
  29. package/dist/types/components/data-filter/filter-core.d.ts +52 -0
  30. package/dist/types/components/date-picker/date-picker.d.ts +137 -0
  31. package/dist/types/components/date-picker/date-range-picker.d.ts +350 -0
  32. package/dist/types/components/date-picker/field-adapter.d.ts +6 -0
  33. package/dist/types/components/date-picker/month-picker.d.ts +75 -0
  34. package/dist/types/components/date-picker/range-field-adapter.d.ts +7 -0
  35. package/dist/types/components/date-picker/time-picker.d.ts +127 -0
  36. package/dist/types/components/datebox/date-range-box.d.ts +218 -0
  37. package/dist/types/components/datebox/datebox.d.ts +160 -0
  38. package/dist/types/components/datebox/field-adapter.d.ts +5 -0
  39. package/dist/types/components/dialog/dialog.d.ts +284 -0
  40. package/dist/types/components/dropdown/dropdown.d.ts +118 -0
  41. package/dist/types/components/empty-state/empty-state.d.ts +38 -0
  42. package/dist/types/components/field/field.d.ts +231 -0
  43. package/dist/types/components/field-upload/field-adapter.d.ts +5 -0
  44. package/dist/types/components/field-upload/field-upload.d.ts +213 -0
  45. package/dist/types/components/fieldset/fieldset.d.ts +125 -0
  46. package/dist/types/components/finder/finder.d.ts +252 -0
  47. package/dist/types/components/form/form.d.ts +194 -0
  48. package/dist/types/components/groupbox/groupbox.d.ts +89 -0
  49. package/dist/types/components/layout/layout.d.ts +132 -0
  50. package/dist/types/components/loading/inline-loading.d.ts +86 -0
  51. package/dist/types/components/loading/progress-bar.d.ts +168 -0
  52. package/dist/types/components/loading/spinner.d.ts +34 -0
  53. package/dist/types/components/master-panel/master-panel.d.ts +112 -0
  54. package/dist/types/components/menu-button/menu-button.d.ts +142 -0
  55. package/dist/types/components/message/message.d.ts +212 -0
  56. package/dist/types/components/modal/modal.d.ts +105 -0
  57. package/dist/types/components/multi-value-editor/field-adapter.d.ts +5 -0
  58. package/dist/types/components/multi-value-editor/multi-value-editor.d.ts +66 -0
  59. package/dist/types/components/navigation-bar/navigation-bar.d.ts +229 -0
  60. package/dist/types/components/number-field/field-adapter.d.ts +5 -0
  61. package/dist/types/components/number-field/number-field.d.ts +292 -0
  62. package/dist/types/components/pagination/pagination.d.ts +267 -0
  63. package/dist/types/components/panel/panel.d.ts +194 -0
  64. package/dist/types/components/permission/permission.d.ts +93 -0
  65. package/dist/types/components/rating/field-adapter.d.ts +5 -0
  66. package/dist/types/components/rating/rating.d.ts +213 -0
  67. package/dist/types/components/search/search.d.ts +98 -0
  68. package/dist/types/components/select/field-adapter.d.ts +5 -0
  69. package/dist/types/components/select/filter.d.ts +11 -0
  70. package/dist/types/components/select/select.d.ts +235 -0
  71. package/dist/types/components/skeleton/skeleton.d.ts +97 -0
  72. package/dist/types/components/slider/field-adapter.d.ts +5 -0
  73. package/dist/types/components/slider/slider.d.ts +216 -0
  74. package/dist/types/components/split-view/split-view.d.ts +335 -0
  75. package/dist/types/components/stepper/stepper.d.ts +314 -0
  76. package/dist/types/components/stepper/steps.d.ts +131 -0
  77. package/dist/types/components/tabbox/tabbox.d.ts +230 -0
  78. package/dist/types/components/table/sort.d.ts +49 -0
  79. package/dist/types/components/table/table.d.ts +872 -0
  80. package/dist/types/components/tag-picker/field-adapter.d.ts +5 -0
  81. package/dist/types/components/tag-picker/tag-picker.d.ts +375 -0
  82. package/dist/types/components/timebox/field-adapter.d.ts +5 -0
  83. package/dist/types/components/timebox/timebox.d.ts +121 -0
  84. package/dist/types/components/toggle/field-adapter.d.ts +5 -0
  85. package/dist/types/components/toggle/toggle.d.ts +94 -0
  86. package/dist/types/components/toolbar/toolbar.d.ts +230 -0
  87. package/dist/types/components/tooltip/tooltip.d.ts +183 -0
  88. package/dist/types/components/tree/hierarchy.d.ts +113 -0
  89. package/dist/types/components/tree/tree.d.ts +383 -0
  90. package/dist/types/components/truncate/truncate.d.ts +61 -0
  91. package/dist/types/components/value-list/field-adapter.d.ts +5 -0
  92. package/dist/types/components/value-list/value-list.d.ts +143 -0
  93. package/dist/types/core/breakpoint.d.ts +68 -0
  94. package/dist/types/core/component.d.ts +115 -0
  95. package/dist/types/core/date.d.ts +50 -0
  96. package/dist/types/core/dom.d.ts +86 -0
  97. package/dist/types/core/export.d.ts +70 -0
  98. package/dist/types/core/fontawesome.d.ts +107 -0
  99. package/dist/types/core/format.d.ts +107 -0
  100. package/dist/types/core/http.d.ts +122 -0
  101. package/dist/types/core/i18n.d.ts +35 -0
  102. package/dist/types/core/icons.d.ts +137 -0
  103. package/dist/types/core/keyboard.d.ts +72 -0
  104. package/dist/types/core/position.d.ts +45 -0
  105. package/dist/types/core/storage.d.ts +46 -0
  106. package/dist/types/core/util.d.ts +117 -0
  107. package/dist/types/elements/define.d.ts +73 -0
  108. package/dist/types/elements/reflect.d.ts +27 -0
  109. package/dist/types/index.d.ts +79 -0
  110. package/dist/types/zeyos/connect.d.ts +65 -0
  111. package/dist/types/zeyos/form.d.ts +140 -0
  112. package/dist/types/zeyos/icons.d.ts +104 -0
  113. package/dist/types/zeyos/index.d.ts +12 -0
  114. package/dist/types/zeyos/modules.d.ts +110 -0
  115. package/dist/types/zeyos/query.d.ts +157 -0
  116. package/dist/types/zeyos/schema.d.ts +79 -0
  117. package/dist/types/zeyos/select.d.ts +167 -0
  118. package/dist/types/zeyos/table.d.ts +205 -0
  119. package/dist/zx-compat.esm.js +362 -33
  120. package/dist/zx-compat.esm.min.js +1 -1
  121. package/dist/zx-compat.global.js +359 -67
  122. package/dist/zx-compat.global.min.js +3 -3
  123. package/dist/zx-zeyos.esm.js +342 -43
  124. package/dist/zx-zeyos.esm.min.js +1 -1
  125. package/dist/zx.css +68 -6
  126. package/dist/zx.esm.js +346 -67
  127. package/dist/zx.esm.min.js +3 -3
  128. package/dist/zx.global.js +346 -67
  129. package/dist/zx.global.min.js +3 -3
  130. package/dist/zx.min.css +1 -1
  131. package/docs/api.json +48 -2
  132. package/docs/llms.md +28 -0
  133. package/package.json +37 -9
  134. package/src/compat/base.js +291 -0
  135. package/src/compat/globals.js +165 -0
  136. package/src/compat/index.js +84 -0
  137. package/src/compat/map/basic.js +464 -0
  138. package/src/compat/map/data.js +232 -0
  139. package/src/compat/map/date-time.js +177 -0
  140. package/src/compat/map/factory.js +45 -0
  141. package/src/compat/map/form.js +330 -0
  142. package/src/compat/map/helpers.js +46 -0
  143. package/src/compat/map/http.js +117 -0
  144. package/src/compat/map/layout.js +256 -0
  145. package/src/compat/map/options.js +267 -0
  146. package/src/compat/map/select.js +198 -0
  147. package/src/compat/map/stubs.js +26 -0
  148. package/src/compat/map/utilities.js +113 -0
  149. package/src/compat-entry.js +11 -0
  150. package/src/components/badge/badge.css +147 -0
  151. package/src/components/badge/badge.js +92 -0
  152. package/src/components/breadcrumb/breadcrumb.css +105 -0
  153. package/src/components/breadcrumb/breadcrumb.js +331 -0
  154. package/src/components/button/button.css +104 -0
  155. package/src/components/button/button.js +76 -0
  156. package/src/components/check-button/check-button.css +66 -0
  157. package/src/components/check-button/check-button.js +167 -0
  158. package/src/components/checklist/checklist.css +65 -0
  159. package/src/components/checklist/checklist.js +282 -0
  160. package/src/components/checklist/field-adapter.js +46 -0
  161. package/src/components/context-menu/context-menu.css +54 -0
  162. package/src/components/context-menu/context-menu.js +334 -0
  163. package/src/components/copy/copy-button.css +27 -0
  164. package/src/components/copy/copy-button.js +78 -0
  165. package/src/components/copy/copy-input.css +59 -0
  166. package/src/components/copy/copy-input.js +123 -0
  167. package/src/components/data-filter/data-filter.css +53 -0
  168. package/src/components/data-filter/data-filter.js +400 -0
  169. package/src/components/data-filter/filter-core.js +128 -0
  170. package/src/components/date-picker/date-picker.css +181 -0
  171. package/src/components/date-picker/date-picker.js +500 -0
  172. package/src/components/date-picker/date-range-picker.css +264 -0
  173. package/src/components/date-picker/date-range-picker.js +990 -0
  174. package/src/components/date-picker/field-adapter.js +36 -0
  175. package/src/components/date-picker/month-picker.js +223 -0
  176. package/src/components/date-picker/range-field-adapter.js +31 -0
  177. package/src/components/date-picker/time-picker.css +191 -0
  178. package/src/components/date-picker/time-picker.js +406 -0
  179. package/src/components/datebox/date-range-box.css +128 -0
  180. package/src/components/datebox/date-range-box.js +492 -0
  181. package/src/components/datebox/datebox.css +108 -0
  182. package/src/components/datebox/datebox.js +358 -0
  183. package/src/components/datebox/field-adapter.js +34 -0
  184. package/src/components/dialog/dialog.css +74 -0
  185. package/src/components/dialog/dialog.js +450 -0
  186. package/src/components/dropdown/dropdown.css +24 -0
  187. package/src/components/dropdown/dropdown.js +288 -0
  188. package/src/components/empty-state/empty-state.css +80 -0
  189. package/src/components/empty-state/empty-state.js +92 -0
  190. package/src/components/field/field.css +127 -0
  191. package/src/components/field/field.js +605 -0
  192. package/src/components/field-upload/field-adapter.js +21 -0
  193. package/src/components/field-upload/field-upload.css +108 -0
  194. package/src/components/field-upload/field-upload.js +475 -0
  195. package/src/components/fieldset/fieldset.css +37 -0
  196. package/src/components/fieldset/fieldset.js +307 -0
  197. package/src/components/finder/finder.css +98 -0
  198. package/src/components/finder/finder.js +509 -0
  199. package/src/components/form/form.css +32 -0
  200. package/src/components/form/form.js +302 -0
  201. package/src/components/groupbox/groupbox.css +51 -0
  202. package/src/components/groupbox/groupbox.js +199 -0
  203. package/src/components/layout/layout.css +117 -0
  204. package/src/components/layout/layout.js +136 -0
  205. package/src/components/loading/inline-loading.css +34 -0
  206. package/src/components/loading/inline-loading.js +140 -0
  207. package/src/components/loading/progress-bar.css +115 -0
  208. package/src/components/loading/progress-bar.js +259 -0
  209. package/src/components/loading/spinner.css +58 -0
  210. package/src/components/loading/spinner.js +57 -0
  211. package/src/components/master-panel/master-panel.css +51 -0
  212. package/src/components/master-panel/master-panel.js +203 -0
  213. package/src/components/menu-button/menu-button.css +49 -0
  214. package/src/components/menu-button/menu-button.js +294 -0
  215. package/src/components/message/message.css +122 -0
  216. package/src/components/message/message.js +499 -0
  217. package/src/components/modal/modal.css +47 -0
  218. package/src/components/modal/modal.js +203 -0
  219. package/src/components/multi-value-editor/field-adapter.js +44 -0
  220. package/src/components/multi-value-editor/multi-value-editor.css +56 -0
  221. package/src/components/multi-value-editor/multi-value-editor.js +170 -0
  222. package/src/components/navigation-bar/navigation-bar.css +130 -0
  223. package/src/components/navigation-bar/navigation-bar.js +450 -0
  224. package/src/components/number-field/field-adapter.js +40 -0
  225. package/src/components/number-field/number-field.css +77 -0
  226. package/src/components/number-field/number-field.js +545 -0
  227. package/src/components/pagination/pagination.css +95 -0
  228. package/src/components/pagination/pagination.js +481 -0
  229. package/src/components/panel/panel.css +123 -0
  230. package/src/components/panel/panel.js +336 -0
  231. package/src/components/permission/permission.css +47 -0
  232. package/src/components/permission/permission.js +198 -0
  233. package/src/components/rating/field-adapter.js +34 -0
  234. package/src/components/rating/rating.css +97 -0
  235. package/src/components/rating/rating.js +395 -0
  236. package/src/components/search/search.css +70 -0
  237. package/src/components/search/search.js +193 -0
  238. package/src/components/select/field-adapter.js +24 -0
  239. package/src/components/select/filter.js +39 -0
  240. package/src/components/select/select.css +180 -0
  241. package/src/components/select/select.js +663 -0
  242. package/src/components/skeleton/skeleton.css +76 -0
  243. package/src/components/skeleton/skeleton.js +139 -0
  244. package/src/components/slider/field-adapter.js +36 -0
  245. package/src/components/slider/slider.css +181 -0
  246. package/src/components/slider/slider.js +399 -0
  247. package/src/components/split-view/split-view.css +139 -0
  248. package/src/components/split-view/split-view.js +806 -0
  249. package/src/components/stepper/stepper.css +234 -0
  250. package/src/components/stepper/stepper.js +459 -0
  251. package/src/components/stepper/steps.js +131 -0
  252. package/src/components/tabbox/tabbox.css +281 -0
  253. package/src/components/tabbox/tabbox.js +484 -0
  254. package/src/components/table/sort.js +85 -0
  255. package/src/components/table/table.css +364 -0
  256. package/src/components/table/table.js +1693 -0
  257. package/src/components/tag-picker/field-adapter.js +35 -0
  258. package/src/components/tag-picker/tag-picker.css +169 -0
  259. package/src/components/tag-picker/tag-picker.js +837 -0
  260. package/src/components/timebox/field-adapter.js +24 -0
  261. package/src/components/timebox/timebox.css +51 -0
  262. package/src/components/timebox/timebox.js +276 -0
  263. package/src/components/toggle/field-adapter.js +24 -0
  264. package/src/components/toggle/toggle.css +66 -0
  265. package/src/components/toggle/toggle.js +150 -0
  266. package/src/components/toolbar/toolbar.css +81 -0
  267. package/src/components/toolbar/toolbar.js +511 -0
  268. package/src/components/tooltip/tooltip.css +36 -0
  269. package/src/components/tooltip/tooltip.js +420 -0
  270. package/src/components/tree/hierarchy.js +151 -0
  271. package/src/components/tree/tree.css +99 -0
  272. package/src/components/tree/tree.js +784 -0
  273. package/src/components/truncate/truncate.css +20 -0
  274. package/src/components/truncate/truncate.js +92 -0
  275. package/src/components/value-list/field-adapter.js +24 -0
  276. package/src/components/value-list/value-list.css +108 -0
  277. package/src/components/value-list/value-list.js +336 -0
  278. package/src/core/breakpoint.js +150 -0
  279. package/src/core/component.js +292 -0
  280. package/src/core/date.js +216 -0
  281. package/src/core/dom.js +260 -0
  282. package/src/core/export.js +204 -0
  283. package/src/core/fontawesome.js +177 -0
  284. package/src/core/format.js +283 -0
  285. package/src/core/http.js +246 -0
  286. package/src/core/i18n.js +83 -0
  287. package/src/core/icons.js +283 -0
  288. package/src/core/keyboard.js +240 -0
  289. package/src/core/position.js +177 -0
  290. package/src/core/storage.js +175 -0
  291. package/src/core/util.js +336 -0
  292. package/src/elements/define.js +715 -0
  293. package/src/elements/reflect.js +79 -0
  294. package/src/index.js +131 -0
  295. package/src/zeyos/connect.js +142 -0
  296. package/src/zeyos/form.js +254 -0
  297. package/src/zeyos/icons.js +92 -0
  298. package/src/zeyos/index.js +21 -0
  299. package/src/zeyos/modules.js +269 -0
  300. package/src/zeyos/query.js +199 -0
  301. package/src/zeyos/schema.js +474 -0
  302. package/src/zeyos/select.js +175 -0
  303. package/src/zeyos/table.js +272 -0
  304. package/styles/base.css +124 -0
  305. package/styles/icons.css +34 -0
  306. package/styles/tokens/dark.css +84 -0
  307. package/styles/tokens/density.css +9 -0
  308. package/styles/tokens/global.css +80 -0
  309. package/styles/tokens/modules.css +109 -0
  310. package/styles/tokens/semantic.css +49 -0
  311. package/styles/zx.css +61 -0
@@ -0,0 +1,80 @@
1
+ import { DatePicker as ZxDatePicker, MonthPicker as ZxMonthPicker, TimePicker as ZxTimePicker } from '../../index.js';
2
+ import { GxWrapper } from '../base.js';
3
+ /** Legacy segmented date box presented through the Zx formatted date input. */
4
+ export declare class Datebox extends GxWrapper {
5
+ static legacyName: string;
6
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
7
+ constructor(display: Element | string | null, options?: Record<string, any>);
8
+ /** @param {Date|number|string|null} timestamp @param {'milliseconds'|'seconds'} [unit] @returns {this} */
9
+ set(timestamp: Date | number | string | null, unit?: 'milliseconds' | 'seconds'): this;
10
+ /** @param {'milliseconds'|'seconds'|'date'} [unit] @returns {Date|number|null} */
11
+ get(unit?: 'milliseconds' | 'seconds' | 'date'): Date | number | null;
12
+ /** @returns {this} */ enable(): this;
13
+ /** @returns {this} */ disable(): this;
14
+ }
15
+ /** Shared inline picker wrapper with legacy date formatting. */
16
+ declare class PickerBase extends GxWrapper {
17
+ _date: Date;
18
+ static legacyName: string;
19
+ /** @type {new (target: Element|string|null, options?: any) => any} */
20
+ static Picker: new (target: Element | string | null, options?: any) => any;
21
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
22
+ constructor(display: Element | string | null, options?: Record<string, any>);
23
+ /** @param {Date|number|string|null} value @returns {this} */
24
+ set(value: Date | number | string | null): this;
25
+ /** @param {string} [format] @returns {Date|number|string|null} */
26
+ get(format?: string): Date | number | string | null;
27
+ /** @returns {number|null} */ getSeconds(): number | null;
28
+ /** @param {boolean} readOnly @returns {this} */ setReadOnly(readOnly: boolean): this;
29
+ /** @param {string} format @param {boolean} [enableTimePicker] @returns {this} */ setFormat(format: string, enableTimePicker?: boolean): this;
30
+ /** @returns {Date|null} */
31
+ _readDate(): Date | null;
32
+ /** @param {{h?: number, m?: number, s?: number}|null} time @returns {Date} */
33
+ _dateFromTime(time: {
34
+ h?: number;
35
+ m?: number;
36
+ s?: number;
37
+ } | null): Date;
38
+ }
39
+ /** Legacy date picker. */
40
+ export declare class DatePicker extends PickerBase {
41
+ static legacyName: string;
42
+ static Picker: typeof ZxDatePicker;
43
+ }
44
+ /** Legacy month picker. */
45
+ export declare class MonthPicker extends PickerBase {
46
+ static legacyName: string;
47
+ static Picker: typeof ZxMonthPicker;
48
+ }
49
+ /** Legacy time picker. */
50
+ export declare class TimePicker extends PickerBase {
51
+ static legacyName: string;
52
+ static Picker: typeof ZxTimePicker;
53
+ }
54
+ /** Shared duration Timebox wrapper. */
55
+ declare class TimeboxBase extends GxWrapper {
56
+ static legacyName: string;
57
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
58
+ constructor(display: Element | string | null, options?: Record<string, any>);
59
+ /** @param {number} time @param {'seconds'|'minutes'|'hours'} [unit] @returns {this} */ set(time: number, unit?: 'seconds' | 'minutes' | 'hours'): this;
60
+ /** @param {'seconds'|'minutes'|'hours'} [unit] @param {number} [precision=0] @returns {number} */
61
+ get(unit?: 'seconds' | 'minutes' | 'hours', precision?: number): number;
62
+ /** @returns {this} */ update(): this;
63
+ /** @returns {this} */ enable(): this;
64
+ /** @returns {this} */ disable(): this;
65
+ /** @returns {boolean} */ disabled(): boolean;
66
+ /** @param {boolean} positive @returns {this} */ setPrefix(positive: boolean): this;
67
+ }
68
+ /** Legacy core Timebox. */
69
+ export declare class CoreTimebox extends TimeboxBase {
70
+ static legacyName: string;
71
+ }
72
+ /** Legacy ZeyOS Timebox. */
73
+ export declare class Timebox extends TimeboxBase {
74
+ static legacyName: string;
75
+ }
76
+ /** Legacy bootstrap Timebox. */
77
+ export declare class BootstrapTimebox extends TimeboxBase {
78
+ static legacyName: string;
79
+ }
80
+ export {};
@@ -0,0 +1,9 @@
1
+ /** Legacy ZeyOS DOM factory mapped to Zx button and icon primitives. */
2
+ export declare const Factory: Readonly<{
3
+ /** @param {string} name @returns {SVGSVGElement} */
4
+ Icon(name: string): SVGSVGElement;
5
+ /** @param {string} text @param {string} [type=''] @param {string} [iconName] @param {Record<string, any>} [options={}] @returns {HTMLButtonElement} */
6
+ Button(text: string, type?: string, iconName?: string, options?: Record<string, any>): HTMLButtonElement;
7
+ /** @param {HTMLButtonElement[]} buttons @returns {HTMLDivElement} */
8
+ ButtonsGroup(buttons: HTMLButtonElement[]): HTMLDivElement;
9
+ }>;
@@ -0,0 +1,98 @@
1
+ import { GxWrapper } from '../base.js';
2
+ /** Legacy bootstrap form. */
3
+ export declare class Form extends GxWrapper {
4
+ _fieldsets: any[];
5
+ static legacyName: string;
6
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
7
+ constructor(display: Element | string | null, options?: Record<string, any>);
8
+ /** @param {Fieldset|Record<string, any>} fieldset @returns {Fieldset} */
9
+ addFieldset(fieldset: Fieldset | Record<string, any>): Fieldset;
10
+ /** @param {unknown} content @returns {this} */
11
+ addActions(content: unknown): this;
12
+ /** @param {string} id @returns {unknown} */ getValue(id: string): unknown;
13
+ /** @returns {Record<string, unknown>} */ getValues(): Record<string, unknown>;
14
+ /** @param {string} id @returns {Field|null} */ getField(id: string): Field | null;
15
+ /** @returns {Fieldset[]} */ getFieldsets(): Fieldset[];
16
+ /** @param {string} id @param {unknown} value @returns {this} */ setValue(id: string, value: unknown): this;
17
+ /** @param {Record<string, unknown>} values @returns {this} */ setValues(values: Record<string, unknown>): this;
18
+ /** @param {Record<string, unknown>} [highlights={}] @param {string} [type='error'] @returns {number} */ setHighlights(highlights?: Record<string, unknown>, type?: string): number;
19
+ /** @param {Record<string, unknown>} [highlights={}] @param {string} [type='error'] @returns {number} */ setHintHighlights(highlights?: Record<string, unknown>, type?: string): number;
20
+ /** @returns {this} */ reset(): this;
21
+ }
22
+ /** Legacy bootstrap fieldset. */
23
+ export declare class Fieldset extends GxWrapper {
24
+ _fields: {};
25
+ static legacyName: string;
26
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
27
+ constructor(display: Element | string | null, options?: Record<string, any>);
28
+ /** @param {Record<string, any>} fields @returns {this} */ addFields(fields: Record<string, any>): this;
29
+ /** @param {string} id @param {unknown} field @returns {Field|unknown} */
30
+ addFieldItem(id: string, field: unknown): Field | unknown;
31
+ /** @param {string} id @param {string|Function|Element} type @param {Record<string, any>} [options={}] @returns {Field} */
32
+ addField(id: string, type: string | Function | Element, options?: Record<string, any>): Field;
33
+ /** @returns {this} */ clear(): this;
34
+ /** @param {string} id @returns {boolean} */ hasField(id: string): boolean;
35
+ /** @param {string} id @returns {Field|null} */ getField(id: string): Field | null;
36
+ /** @returns {Record<string, Field>} */ getFields(): Record<string, Field>;
37
+ /** @param {string} id @returns {unknown} */ getValue(id: string): unknown;
38
+ /** @returns {Record<string, unknown>} */ getValues(): Record<string, unknown>;
39
+ /** @param {string} id @param {unknown} value @returns {this} */ setValue(id: string, value: unknown): this;
40
+ /** @param {Record<string, unknown>} values @returns {this} */ setValues(values: Record<string, unknown>): this;
41
+ /** @returns {this} */ reset(): this;
42
+ /** @param {string} id @returns {this} */ focus(id: string): this;
43
+ /** @param {Record<string, unknown>} [highlights={}] @param {string} [type='error'] @returns {number} */
44
+ setHighlights(highlights?: Record<string, unknown>, type?: string): number;
45
+ /** @param {Record<string, unknown>} [highlights={}] @param {string} [type='error'] @returns {number} */ setHintHighlights(highlights?: Record<string, unknown>, type?: string): number;
46
+ }
47
+ /** Legacy bootstrap single field. */
48
+ export declare class Field extends GxWrapper {
49
+ _type: any;
50
+ static legacyName: string;
51
+ /** @param {Record<string, any>} [options={}] */
52
+ constructor(options?: Record<string, any>);
53
+ /** @param {string} label @returns {this} */ setLabel(label: string): this;
54
+ /** @param {string} help @returns {this} */ setHelp(help: string): this;
55
+ /** @returns {unknown} */ getValue(): unknown;
56
+ /** @param {unknown} value @returns {this} */ setValue(value: unknown): this;
57
+ /** @param {boolean} disabled @returns {this} */ setDisabled(disabled: boolean): this;
58
+ /** @param {unknown} label @param {string} [type='warning'] @returns {this} */
59
+ setHighlight(label: unknown, type?: string): this;
60
+ /** @param {unknown} label @param {string} [type='warning'] @returns {this} */ setHintHighlight(label: unknown, type?: string): this;
61
+ /** @returns {this} */ reset(): this;
62
+ /** @returns {this} */ focus(): this;
63
+ }
64
+ /** Legacy bootstrap chip list. */
65
+ export declare class ValueList extends GxWrapper {
66
+ static legacyName: string;
67
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
68
+ constructor(display: Element | string | null, options?: Record<string, any>);
69
+ /** @param {unknown} value @returns {boolean} */ addValue(value: unknown): boolean;
70
+ /** @returns {unknown[]} */ getValues(): unknown[];
71
+ /** @param {unknown[]} values @returns {this} */ setValues(values: unknown[]): this;
72
+ /** @returns {this} */ enable(): this;
73
+ /** @returns {this} */ disable(): this;
74
+ /** @returns {this} */ focus(): this;
75
+ }
76
+ /** Legacy JSON-string multi-value editor. */
77
+ export declare class MultiValueEditor extends GxWrapper {
78
+ static legacyName: string;
79
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
80
+ constructor(display: Element | string | null, options?: Record<string, any>);
81
+ /** @returns {string} */ getValue(): string;
82
+ /** @param {string|unknown[]} value @returns {this} */ setValue(value: string | unknown[]): this;
83
+ }
84
+ /** Legacy bootstrap upload field. */
85
+ export declare class FieldUpload extends GxWrapper {
86
+ _value: unknown;
87
+ static legacyName: string;
88
+ /** @param {Record<string, any>} [options={}] */
89
+ constructor(options?: Record<string, any>);
90
+ /** @param {unknown} source @returns {this} */ setValue(source: unknown): this;
91
+ /** @returns {null} */ getValue(): null;
92
+ /** @param {unknown} source @returns {this} */
93
+ setImage(source: unknown): this;
94
+ /** @param {boolean} disabled @returns {this} */ setDisabled(disabled: boolean): this;
95
+ /** @returns {this} */ reset(): this;
96
+ /** @param {unknown} response @returns {void} */
97
+ _handleResponse(response: unknown): void;
98
+ }
@@ -0,0 +1,12 @@
1
+ /** @param {Element|string|null|undefined} target @returns {Element|null} */
2
+ export declare function targetElement(target: Element | string | null | undefined): Element | null;
3
+ /** @param {unknown} value @returns {unknown} */
4
+ export declare function legacyContent(value: unknown): unknown;
5
+ /** @param {unknown} value @returns {'info'|'success'|'warning'|'error'} */
6
+ export declare function messageKind(value: unknown): 'info' | 'success' | 'warning' | 'error';
7
+ /** @param {Function} fn @param {string} legacyName @param {string} replacement @returns {void} */
8
+ export declare function warnFunctionOnce(fn: Function, legacyName: string, replacement: string): void;
9
+ /** @param {Function} owner @param {string} method @param {string} replacement @returns {void} */
10
+ export declare function warnMethodOnce(owner: Function, method: string, replacement: string): void;
11
+ /** @param {unknown} value @returns {string} */
12
+ export declare function textLabel(value: unknown): string;
@@ -0,0 +1,36 @@
1
+ import { Http } from '../../index.js';
2
+ import { GxWrapper } from '../base.js';
3
+ /** Legacy generic HTTP client. */
4
+ export declare class Client extends GxWrapper {
5
+ _http: Http;
6
+ static legacyName: string;
7
+ /** @param {Record<string, any>} [options={}] */
8
+ constructor(options?: Record<string, any>);
9
+ /** @param {string} path @param {unknown} data @param {Function|Record<string, Function>} [callback] @param {string} [resulttype] @returns {Promise<unknown>} */
10
+ post(path: string, data: unknown, callback?: Function | Record<string, Function>, resulttype?: string): Promise<unknown>;
11
+ /** @param {string} path @param {unknown} data @param {Function|Record<string, Function>} [callback] @param {string} [resulttype] @returns {Promise<unknown>} */
12
+ get(path: string, data: unknown, callback?: Function | Record<string, Function>, resulttype?: string): Promise<unknown>;
13
+ /** @param {unknown} data @param {string} [method='GET'] @param {Function|Record<string, Function>} [callback] @param {string} [resulttype] @param {string} [path=''] @returns {Promise<unknown>} */
14
+ request(data: unknown, method?: string, callback?: Function | Record<string, Function>, resulttype?: string, path?: string): Promise<unknown>;
15
+ }
16
+ /** Legacy ZeyOS REST request client. */
17
+ export declare class Request extends GxWrapper {
18
+ _files: File[];
19
+ baseUrl: string;
20
+ _http: Http;
21
+ static legacyName: string;
22
+ /** @param {Record<string, any>} [options={}] */
23
+ constructor(options?: Record<string, any>);
24
+ /** @param {string} service @param {string} [accesskey=''] @returns {this} */
25
+ setService(service: string, accesskey?: string): this;
26
+ /** @param {string} path @param {unknown} data @param {Function} [callback] @param {string} [method='GET'] @returns {Promise<unknown>} */
27
+ send(path: string, data: unknown, callback?: Function, method?: string): Promise<unknown>;
28
+ /** @param {string} path @param {unknown} data @param {Function} [callback] @returns {Promise<unknown>} */ post(path: string, data: unknown, callback?: Function): Promise<unknown>;
29
+ /** @param {string} path @param {unknown} data @param {Function} [callback] @returns {Promise<unknown>} */ get(path: string, data: unknown, callback?: Function): Promise<unknown>;
30
+ /** @param {string} path @param {unknown} data @param {Function} [callback] @returns {Promise<unknown>} */ put(path: string, data: unknown, callback?: Function): Promise<unknown>;
31
+ /** @param {string} path @param {unknown} data @param {Function} [callback] @returns {Promise<unknown>} */ delete(path: string, data: unknown, callback?: Function): Promise<unknown>;
32
+ /** @param {string} path @param {unknown} data @param {File[]|FileList|Element[]} files @param {Function} [callback] @returns {Promise<unknown>} */
33
+ upload(path: string, data: unknown, files: File[] | FileList | Element[], callback?: Function): Promise<unknown>;
34
+ /** @param {string} path @returns {Window|null} */ openLink(path: string): Window | null;
35
+ /** @param {string} error @returns {void} */ showError(error: string): void;
36
+ }
@@ -0,0 +1,106 @@
1
+ import { GxWrapper } from '../base.js';
2
+ /** Legacy ZeyOS collapsible groupbox. */
3
+ export declare class Groupbox extends GxWrapper {
4
+ static legacyName: string;
5
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
6
+ constructor(display: Element | string | null, options?: Record<string, any>);
7
+ /** @returns {this} */
8
+ toggle(): this;
9
+ /** @returns {this} */
10
+ open(): this;
11
+ /** @returns {this} */
12
+ close(): this;
13
+ /** @returns {boolean} */
14
+ isOpen(): boolean;
15
+ /** @param {string} title @returns {this} */
16
+ setTitle(title: string): this;
17
+ /** @returns {void} */
18
+ _syncAct(): void;
19
+ }
20
+ /** Legacy positional panel wrapper. */
21
+ export declare class Panel extends GxWrapper {
22
+ static legacyName: string;
23
+ /** @param {Element|string|null} display @param {string} title @param {unknown} content @param {boolean} [open=true] */
24
+ constructor(display: Element | string | null, title?: string, content?: unknown, open?: boolean);
25
+ /** @returns {this} */
26
+ toggle(): this;
27
+ /** @returns {this} */
28
+ open(): this;
29
+ /** @returns {this} */
30
+ close(): this;
31
+ /** @returns {boolean} */
32
+ isOpen(): boolean;
33
+ /** @param {unknown} content @returns {this} */
34
+ setContent(content: unknown): this;
35
+ /** @param {string} title @returns {this} */
36
+ setTitle(title: string): this;
37
+ }
38
+ /** Legacy positional master panel wrapper. */
39
+ export declare class MasterPanel extends GxWrapper {
40
+ static legacyName: string;
41
+ /** @param {Element|string|null} display @param {string} title @param {unknown} content @param {unknown[]} [buttons=[]] */
42
+ constructor(display: Element | string | null, title?: string, content?: unknown, buttons?: unknown[]);
43
+ /** @param {unknown} content @returns {this} */
44
+ setContent(content: unknown): this;
45
+ /** @param {string} title @returns {this} */
46
+ setTitle(title: string): this;
47
+ }
48
+ /** Shared legacy tabbox implementation; subclasses only change warning identity. */
49
+ export declare class Tabbox extends GxWrapper {
50
+ static legacyName: string;
51
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
52
+ constructor(display: Element | string | null, options?: Record<string, any>);
53
+ /** @param {Record<string, any>|string} frame @param {string} [title] @param {unknown} [content] @returns {this} */
54
+ addTab(frame: Record<string, any> | string, title?: string, content?: unknown): this;
55
+ /** @param {string} name @returns {this} */
56
+ closeTab(name: string): this;
57
+ /** @param {string|number} name @returns {this} */
58
+ openTab(name: string | number): this;
59
+ /** @param {string} name @param {string} title @returns {this} */
60
+ setTabTitle(name: string, title: string): this;
61
+ /** @param {string} name @param {unknown} content @param {string} [_style] @returns {this} */
62
+ setHighlight(name: string, content: unknown, _style?: string): this;
63
+ /** @returns {string|null} */
64
+ getActive(): string | null;
65
+ /** @returns {void} */
66
+ _syncAct(): void;
67
+ }
68
+ /** Bootstrap-flavoured tabbox with the same behavior. */
69
+ export declare class BootstrapTabbox extends Tabbox {
70
+ static legacyName: string;
71
+ }
72
+ /** Legacy bootstrap navigation bar. */
73
+ export declare class NavigationBar extends GxWrapper {
74
+ _frames: any[];
75
+ static legacyName: string;
76
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
77
+ constructor(display: Element | string | null, options?: Record<string, any>);
78
+ /** @param {Record<string, any>|string} frame @param {string} [title] @param {unknown} [content] @returns {this} */
79
+ addTab(frame: Record<string, any> | string, title?: string, content?: unknown): this;
80
+ /** @param {string} name @returns {this} */
81
+ closeTab(name: string): this;
82
+ /** @param {string} name @returns {this} */
83
+ openTab(name: string): this;
84
+ /** @param {string|Element} title @returns {this} */
85
+ setTitle(title: string | Element): this;
86
+ /** @param {string} name @param {string} title @returns {this} */
87
+ setTabTitle(name: string, title: string): this;
88
+ /** @param {unknown[]} buttons @returns {this} */
89
+ setNavigationButtons(buttons: unknown[]): this;
90
+ /** @param {string} name @param {unknown} content @param {string} [_style] @returns {this} */
91
+ setHighlight(name: string, content: unknown, _style?: string): this;
92
+ /** @returns {void} */
93
+ _rebuild(): void;
94
+ /** @returns {void} */
95
+ _syncAct(): void;
96
+ }
97
+ /** Legacy standalone search control. */
98
+ export declare class Search extends GxWrapper {
99
+ static legacyName: string;
100
+ /** @param {Record<string, any>} [options={}] */
101
+ constructor(options?: Record<string, any>);
102
+ /** @returns {string} */
103
+ get(): string;
104
+ /** @param {string} value @returns {this} */
105
+ set(value: string): this;
106
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Pure option and event translations shared by the gx compatibility wrappers.
3
+ * Keeping these helpers DOM-free makes the migration contract directly testable in Node.
4
+ * @module gx-compat-options
5
+ */
6
+ /** @type {Readonly<Record<string, string>>} */
7
+ export declare const SELECT_OPTION_MAP: Readonly<Record<string, string>>;
8
+ /** @type {Readonly<Record<string, string>>} */
9
+ export declare const CHECKLIST_OPTION_MAP: Readonly<Record<string, string>>;
10
+ /** @type {Readonly<Record<string, string>>} */
11
+ export declare const TABLE_OPTION_MAP: Readonly<Record<string, string>>;
12
+ /** @type {Readonly<Record<string, string>>} */
13
+ export declare const FORM_OPTION_MAP: Readonly<Record<string, string>>;
14
+ /** @type {Readonly<Record<string, string>>} */
15
+ export declare const FIELD_TYPE_MAP: Readonly<Record<string, string>>;
16
+ /**
17
+ * Renames known keys while retaining unrelated options.
18
+ * @param {Record<string, any>|null|undefined} source Legacy options.
19
+ * @param {Readonly<Record<string, string>>} mapping Rename table.
20
+ * @returns {Record<string, any>} Translated copy.
21
+ */
22
+ export declare function renameOptions(source: Record<string, any> | null | undefined, mapping: Readonly<Record<string, string>>): Record<string, any>;
23
+ /**
24
+ * Converts legacy Select options to their Zx equivalents.
25
+ * @param {Record<string, any>} [options={}] Legacy Select options.
26
+ * @returns {Record<string, any>} Zx Select options.
27
+ */
28
+ export declare function translateSelectOptions(options?: Record<string, any>): Record<string, any>;
29
+ /**
30
+ * Converts legacy Checklist options to Zx Checklist options.
31
+ * @param {Record<string, any>} [options={}] Legacy Checklist options.
32
+ * @returns {Record<string, any>} Zx Checklist options.
33
+ */
34
+ export declare function translateChecklistOptions(options?: Record<string, any>): Record<string, any>;
35
+ /**
36
+ * Converts the legacy Datebox token array to the kernel format string.
37
+ * Existing percent-token format strings pass through unchanged.
38
+ * @param {unknown} format Legacy array or format string.
39
+ * @returns {string} Kernel date format.
40
+ */
41
+ export declare function translateDateboxFormat(format: unknown): string;
42
+ /**
43
+ * Resolves the legacy one-based `show` option to a tab name.
44
+ * @param {Array<{name?: unknown}>} frames Legacy frame list.
45
+ * @param {unknown} show Name or one-based numeric index.
46
+ * @returns {string|null} Resolved name.
47
+ */
48
+ export declare function resolveTabName(frames: Array<{
49
+ name?: unknown;
50
+ }>, show: unknown): string | null;
51
+ /**
52
+ * Converts legacy Tabbox options without normalizing DOM content.
53
+ * @param {Record<string, any>} [options={}] Legacy Tabbox options.
54
+ * @returns {{tabs: Array<Record<string, any>>, active: string|null, height: unknown}}
55
+ */
56
+ export declare function translateTabboxOptions(options?: Record<string, any>): {
57
+ tabs: Array<Record<string, any>>;
58
+ active: string | null;
59
+ height: unknown;
60
+ };
61
+ /**
62
+ * Converts a legacy table column list and its initial filter state.
63
+ * A cell adapter can turn legacy cell objects into DOM nodes in browser wrappers.
64
+ * @param {Record<string, any>} [options={}] Legacy Table options.
65
+ * @param {(cell: unknown) => unknown} [adaptCell=defaultCellAdapter] Cell adapter.
66
+ * @returns {Record<string, any>} Zx Table options.
67
+ */
68
+ export declare function translateTableOptions(options?: Record<string, any>, adaptCell?: (cell: unknown) => unknown): Record<string, any>;
69
+ /**
70
+ * Converts a legacy field descriptor to Zx Field options.
71
+ * Component-specific `props` are completed by the browser wrapper.
72
+ * @param {Record<string, any>} [options={}] Legacy field descriptor.
73
+ * @returns {Record<string, any>} Zx Field options.
74
+ */
75
+ export declare function translateFieldOptions(options?: Record<string, any>): Record<string, any>;
76
+ /**
77
+ * Positional legacy event arguments for the mappings exercised by wrappers.
78
+ * @type {Readonly<Record<string, (detail: Record<string, any>, wrapper: unknown, event?: Event) => unknown[]>>}
79
+ */
80
+ export declare const LEGACY_EVENT_ARGS: Readonly<Record<string, (detail: Record<string, any>, wrapper: unknown, event?: Event) => unknown[]>>;
@@ -0,0 +1,95 @@
1
+ import { GxWrapper } from '../base.js';
2
+ /** Shared Select facade; concrete subclasses choose filtering and warning identity. */
3
+ declare class SelectBase extends GxWrapper {
4
+ _http: any;
5
+ data: any;
6
+ static legacyName: string;
7
+ /** @type {string|false} */
8
+ static filterMode: string | false;
9
+ /** @param {Element|string|null} display @param {Record<string, any>} [options={}] */
10
+ constructor(display: Element | string | null, options?: Record<string, any>);
11
+ /** @param {unknown} selection @param {boolean} [noEvents=false] @returns {this} */
12
+ set(selection: unknown, noEvents?: boolean): this;
13
+ /** @param {unknown} id @param {boolean} [noEvents=false] @returns {this} */
14
+ setId(id: unknown, noEvents?: boolean): this;
15
+ /** @param {unknown} [item] @returns {unknown} */
16
+ getId(item?: unknown): unknown;
17
+ /** @returns {unknown} */
18
+ getValue(): unknown;
19
+ /** @returns {unknown} */
20
+ getSelected(): unknown;
21
+ /** @param {unknown[]} data @returns {this} */
22
+ setData(data: unknown[]): this;
23
+ /** @returns {Element[]} */
24
+ getRows(): Element[];
25
+ /** @param {boolean} [noEvents=false] @returns {this} */
26
+ reset(noEvents?: boolean): this;
27
+ /** @returns {this} */
28
+ enable(): this;
29
+ /** @returns {this} */
30
+ disable(): this;
31
+ /** @returns {this} */
32
+ show(): this;
33
+ /** @returns {this} */
34
+ hide(): this;
35
+ /** @returns {boolean} */
36
+ isOpen(): boolean;
37
+ /** @returns {this} */
38
+ search(): this;
39
+ /** @returns {this} */
40
+ showLoader(): this;
41
+ /** @returns {this} */
42
+ hideLoader(): this;
43
+ /** @param {string} query @returns {Promise<unknown[]>} */
44
+ _load(query: string): Promise<unknown[]>;
45
+ /** @param {string} query @returns {Promise<unknown>} */
46
+ _loadUrl(query: string): Promise<unknown>;
47
+ /** @param {string} query @returns {Promise<unknown>} */
48
+ _loadRest(query: string): Promise<unknown>;
49
+ }
50
+ /** Legacy ZeyOS select. */
51
+ export declare class Select extends SelectBase {
52
+ static legacyName: string;
53
+ }
54
+ /** Legacy ZeyOS locally filterable select. */
55
+ export declare class SelectFilter extends SelectBase {
56
+ static legacyName: string;
57
+ static filterMode: string;
58
+ }
59
+ /** Legacy ZeyOS HTTP-backed select. */
60
+ export declare class SelectDyn extends SelectBase {
61
+ static legacyName: string;
62
+ static filterMode: string;
63
+ }
64
+ /** Legacy ZeyOS priority select. */
65
+ export declare class SelectPrio extends SelectBase {
66
+ static legacyName: string;
67
+ static filterMode: string;
68
+ }
69
+ /** Legacy bootstrap select. */
70
+ export declare class BootstrapSelect extends SelectBase {
71
+ static legacyName: string;
72
+ }
73
+ /** Legacy bootstrap locally filterable select. */
74
+ export declare class BootstrapSelectFilter extends SelectBase {
75
+ static legacyName: string;
76
+ static filterMode: string;
77
+ }
78
+ /** Legacy bootstrap HTTP-backed select. */
79
+ export declare class BootstrapSelectDyn extends SelectBase {
80
+ static legacyName: string;
81
+ static filterMode: string;
82
+ }
83
+ /** Legacy bootstrap REST-backed select. */
84
+ export declare class SelectDynREST extends SelectBase {
85
+ static legacyName: string;
86
+ static filterMode: string;
87
+ /** Loads and selects a REST item by ID when it is not already cached. @param {unknown} id @returns {Promise<void>} */
88
+ setEntityId(id: unknown): Promise<void>;
89
+ }
90
+ /** Legacy bootstrap priority select. */
91
+ export declare class BootstrapSelectPrio extends SelectBase {
92
+ static legacyName: string;
93
+ static filterMode: string;
94
+ }
95
+ export {};
@@ -0,0 +1,32 @@
1
+ /** Direct Settings subclassing is intentionally outside the compatibility contract. */
2
+ export declare const Settings: {
3
+ new (): {};
4
+ };
5
+ /** Direct Container subclassing is intentionally outside the compatibility contract. */
6
+ export declare const Container: {
7
+ new (): {};
8
+ };
9
+ /** Legacy collapse animation stub. */
10
+ export declare const Collapse: {
11
+ new (): {};
12
+ };
13
+ /** Legacy blend animation stub. */
14
+ export declare const Blend: {
15
+ new (): {};
16
+ };
17
+ /** Legacy HUD stub. */
18
+ export declare const Hud: {
19
+ new (): {};
20
+ };
21
+ /** Legacy toggling helper stub. */
22
+ export declare const Toggling: {
23
+ new (): {};
24
+ };
25
+ /** Legacy horizontal group stub. */
26
+ export declare const HGroup: {
27
+ new (): {};
28
+ };
29
+ /** Legacy templates stub. */
30
+ export declare const Templates: {
31
+ new (): {};
32
+ };
@@ -0,0 +1,37 @@
1
+ import { parse } from '../globals.js';
2
+ /** Legacy utility namespace backed by dependency-free implementations. */
3
+ export declare const util: Readonly<{
4
+ initValue: typeof initValue;
5
+ initNum: typeof initNum;
6
+ formatTime: typeof formatTime;
7
+ getMinutes: typeof getMinutes;
8
+ formatNum: typeof formatNum;
9
+ getNumber: typeof getNumber;
10
+ printf: typeof printf;
11
+ parseResult: typeof parseResult;
12
+ Parse: typeof parse;
13
+ isArray: (arg: any) => arg is any[];
14
+ isObject: (value: any) => boolean;
15
+ isFunction: (value: any) => boolean;
16
+ isString: (value: any) => value is string;
17
+ isNumber: (value: any) => boolean;
18
+ isElement: (value: any) => boolean;
19
+ isNode: (value: any) => boolean;
20
+ Console: (source: any, message: any) => void;
21
+ }>;
22
+ /** @param {Record<string, unknown>} object @param {string} key @param {unknown} fallback @returns {unknown} */
23
+ export declare function initValue(object: Record<string, unknown>, key: string, fallback: unknown): unknown;
24
+ /** @param {unknown} value @returns {number} */
25
+ export declare function initNum(value: unknown): number;
26
+ /** @param {unknown} value @returns {string} */
27
+ export declare function formatTime(value: unknown): string;
28
+ /** @param {unknown} value @returns {number} */
29
+ export declare function getMinutes(value: unknown): number;
30
+ /** @param {unknown} value @param {string} [decimal='.'] @param {string} [thousands=','] @param {number} [decimals=2] @returns {string} */
31
+ export declare function formatNum(value: unknown, decimal?: string, thousands?: string, decimals?: number): string;
32
+ /** @param {unknown} value @param {string} [decimal=','] @returns {number} */
33
+ export declare function getNumber(value: unknown, decimal?: string): number;
34
+ /** @param {unknown} template @param {unknown|unknown[]} [values=[]] @returns {string} */
35
+ export declare function printf(template: unknown, values?: unknown | unknown[]): string;
36
+ /** @param {unknown} response @returns {unknown} */
37
+ export declare function parseResult(response: unknown): unknown;
@@ -0,0 +1,5 @@
1
+ /** Browser entry point for the gx compatibility bundle. */
2
+ import * as zx from './index.js';
3
+ import gx from './compat/index.js';
4
+ export { gx, zx };
5
+ export default gx;
@@ -0,0 +1,46 @@
1
+ export type BadgeOptions = {
2
+ /**
3
+ * Visible badge text.
4
+ */
5
+ label?: string;
6
+ /**
7
+ * Icon name from `icons.js`, rendered before the label.
8
+ */
9
+ icon?: string | null;
10
+ /**
11
+ * Semantic intent.
12
+ */
13
+ kind?: 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
14
+ /**
15
+ * Fill treatment.
16
+ */
17
+ variant?: 'soft' | 'solid' | 'outline';
18
+ /**
19
+ * Badge size.
20
+ */
21
+ size?: 'md' | 'sm';
22
+ /**
23
+ * Renders a small leading status dot instead of an icon.
24
+ */
25
+ dot?: boolean;
26
+ /**
27
+ * Native title text; also names an icon-only or dot-only badge.
28
+ */
29
+ title?: string;
30
+ };
31
+ /**
32
+ * Creates a status pill: a small, non-interactive label carrying a semantic colour.
33
+ *
34
+ * The badge is plain text content, so it needs no ARIA of its own. A badge without a label but
35
+ * with a `title` is named for assistive technology through `role="img"`.
36
+ *
37
+ * @param {BadgeOptions} [opts={}] Badge options.
38
+ * @returns {HTMLSpanElement}
39
+ */
40
+ export declare function badge(opts?: BadgeOptions): HTMLSpanElement;
41
+ /**
42
+ * Groups badges into a wrapping row.
43
+ * @param {HTMLSpanElement[]} badges Badges to group.
44
+ * @returns {HTMLSpanElement}
45
+ */
46
+ export declare function badgeGroup(badges: HTMLSpanElement[]): HTMLSpanElement;