@open-xamu-co/ui-components-vue 4.0.0-next.2 → 4.0.0-next.20

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 (54) hide show
  1. package/CHANGELOG.md +312 -0
  2. package/dist/components/action/ButtonLink.vue.d.ts +7 -1
  3. package/dist/components/base/Box.vue.d.ts +3 -3
  4. package/dist/components/base/Wrapper.vue.d.ts +1 -1
  5. package/dist/components/box/Editor.stories.d.ts +6 -0
  6. package/dist/components/box/Editor.vue.d.ts +33 -0
  7. package/dist/components/collapse/Simple.vue.d.ts +4 -2
  8. package/dist/components/form/Input.stories.d.ts +1 -0
  9. package/dist/components/form/InputLoop.vue.d.ts +1 -1
  10. package/dist/components/form/InputNValues.vue.d.ts +1 -1
  11. package/dist/components/form/InputOptions.vue.d.ts +9 -0
  12. package/dist/components/form/Simple.vue.d.ts +2 -2
  13. package/dist/components/input/Code.stories.d.ts +6 -0
  14. package/dist/components/input/Code.vue.d.ts +42 -0
  15. package/dist/components/input/File.stories.d.ts +1 -0
  16. package/dist/components/input/File.vue.d.ts +3 -1
  17. package/dist/components/loader/ContentFetch.vue.d.ts +10 -4
  18. package/dist/components/modal/Simple.stories.d.ts +1 -0
  19. package/dist/components/modal/Simple.vue.d.ts +9 -2
  20. package/dist/components/pagination/Content.vue.d.ts +10 -4
  21. package/dist/components/pagination/ContentTable.vue.d.ts +24 -11
  22. package/dist/components/pagination/Simple.vue.d.ts +2 -2
  23. package/dist/components/table/Body.vue.d.ts +1 -1
  24. package/dist/components/table/HeadActions.vue.d.ts +1 -1
  25. package/dist/components/table/HeadContent.vue.d.ts +1 -1
  26. package/dist/components/table/Simple.stories.d.ts +4 -0
  27. package/dist/components/table/Simple.vue.d.ts +2 -2
  28. package/dist/components/value/Complex.vue.d.ts +10 -1
  29. package/dist/components/value/List.vue.d.ts +13 -2
  30. package/dist/components/value/Simple.vue.d.ts +1 -1
  31. package/dist/composables/async.d.ts +4 -1
  32. package/dist/composables/markdown.d.ts +8 -0
  33. package/dist/composables/theme.d.ts +3 -1
  34. package/dist/index-E6LuoBEt.js +83442 -0
  35. package/dist/index-jf-H2IC0.cjs +75 -0
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.d.ts +3 -0
  38. package/dist/index.js +39 -36
  39. package/dist/plugin.cjs +1 -1
  40. package/dist/plugin.js +118 -110
  41. package/dist/{theme-DWMJmaKP.js → theme-CDT3li7P.js} +1 -0
  42. package/dist/{theme-CChhGSbE.cjs → theme-DQ7tgo8n.cjs} +1 -1
  43. package/dist/theme.cjs +1 -1
  44. package/dist/theme.js +3 -2
  45. package/dist/types/plugin.d.ts +8 -0
  46. package/dist/types/props/base.d.ts +106 -0
  47. package/dist/types/props/index.d.ts +4 -0
  48. package/dist/types/props/modal.d.ts +67 -0
  49. package/dist/types/props/table.d.ts +253 -0
  50. package/dist/types/props/value.d.ts +37 -0
  51. package/package.json +20 -7
  52. package/dist/index-C46FseEI.js +0 -7098
  53. package/dist/index-w1g0Tp05.cjs +0 -4
  54. package/dist/types/props.d.ts +0 -408
package/CHANGELOG.md CHANGED
@@ -1,5 +1,317 @@
1
1
  Xamu UI
2
2
 
3
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.20](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.19...@open-xamu-co/ui-components-vue-v4.0.0-next.20) (2026-05-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **vue:** pass down abort signal on fetch components ([c6063c2](https://github.com/xamu-co/ui/commit/c6063c2818a40a14033b20ddc827b1fc673a4e9b))
9
+
10
+
11
+
12
+
13
+
14
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.20"
15
+ Updating "nuxt"
16
+ Succesfully updated "nuxt" package
17
+
18
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.19](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.18...@open-xamu-co/ui-components-vue-v4.0.0-next.19) (2026-05-09)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **vue:** optional assertion on input swal label ([9c486a4](https://github.com/xamu-co/ui/commit/9c486a4ee5dcda84013898c43988b8567b630e78))
24
+
25
+
26
+ ### Features
27
+
28
+ * **vue:** header slot for collapse ([96467f6](https://github.com/xamu-co/ui/commit/96467f66626f05ba8e5b5e984813ea7fb99ed6a5))
29
+
30
+
31
+
32
+
33
+
34
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.19"
35
+ Updating "nuxt"
36
+ Succesfully updated "nuxt" package
37
+
38
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.18](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.17...@open-xamu-co/ui-components-vue-v4.0.0-next.18) (2026-05-03)
39
+
40
+
41
+ ### Features
42
+
43
+ * **vue:** inherit value table properties from table ([4cc8108](https://github.com/xamu-co/ui/commit/4cc8108c0269f1940dbc0bfa95ecc5c15699905e))
44
+
45
+
46
+
47
+
48
+
49
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.18"
50
+ Updating "nuxt"
51
+ Succesfully updated "nuxt" package
52
+
53
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.17](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.16...@open-xamu-co/ui-components-vue-v4.0.0-next.17) (2026-05-03)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * **vue:** avoid passing classes to table dropdown ([4c9c71d](https://github.com/xamu-co/ui/commit/4c9c71da0bf08dbbecc4bf7ba0f1b2159e31b7ca))
59
+ * **vue:** include hydration errors ([b61e884](https://github.com/xamu-co/ui/commit/b61e884669b32b8935bd8afb213c88f682ae01d5))
60
+ * **vue:** prefer missing options text from meta ([31eb61b](https://github.com/xamu-co/ui/commit/31eb61b9c41221d76b2eadcd2b9b0af754e1e3de))
61
+ * **vue:** prefer prop for select filter placeholder ([594a2c4](https://github.com/xamu-co/ui/commit/594a2c4a9ee198de512c2b7d5805d4e01460a11d))
62
+ * **vue:** prevent duplicate options on select ([f8a8c4f](https://github.com/xamu-co/ui/commit/f8a8c4f28d9b71f64d69674811c765e21a0bc093))
63
+ * handle missing media on file input ([3bf4d1d](https://github.com/xamu-co/ui/commit/3bf4d1d739d70e87254511c942f8064810e93716))
64
+ * show scrollbar on box editor ([0c6b991](https://github.com/xamu-co/ui/commit/0c6b99121bd942ed26c53a867644ce521cdc8399))
65
+ * **vue:** unconditionally hydrate on node deletion ([1f4269f](https://github.com/xamu-co/ui/commit/1f4269f020645d951db85244d7f68bdfb358296f))
66
+
67
+
68
+ ### Features
69
+
70
+ * **vue:** new modal slot to preserve save button ([5c52b40](https://github.com/xamu-co/ui/commit/5c52b406a85bbb12c7460c912774e8b8a1b5c55a))
71
+
72
+
73
+
74
+
75
+
76
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.17"
77
+ Updating "nuxt"
78
+ Succesfully updated "nuxt" package
79
+
80
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.16](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.15...@open-xamu-co/ui-components-vue-v4.0.0-next.16) (2026-04-18)
81
+
82
+
83
+ ### Features
84
+
85
+ * **vue:** nodesDividerTheme ([db4ea76](https://github.com/xamu-co/ui/commit/db4ea760ee64ee9f28998966fa100a856091aa9c))
86
+
87
+
88
+
89
+
90
+
91
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.16"
92
+ Updating "nuxt"
93
+ Succesfully updated "nuxt" package
94
+
95
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.15](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.14...@open-xamu-co/ui-components-vue-v4.0.0-next.15) (2026-04-17)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * **vue:** mixed node selection & children visibility ([c83c1cb](https://github.com/xamu-co/ui/commit/c83c1cb236e766daf7c3c9242f6d95789e7609ec))
101
+
102
+
103
+ ### BREAKING CHANGES
104
+
105
+ * **vue:** splitted table toggling functions
106
+
107
+
108
+
109
+
110
+
111
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.15"
112
+ Updating "nuxt"
113
+ Succesfully updated "nuxt" package
114
+
115
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.14](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.13...@open-xamu-co/ui-components-vue-v4.0.0-next.14) (2026-04-17)
116
+
117
+
118
+ ### Features
119
+
120
+ * preferId for properties tables ([c442c66](https://github.com/xamu-co/ui/commit/c442c66e5f4be5788109ecac0f1610367f4da88d))
121
+ * support video & audio files ([7ffb235](https://github.com/xamu-co/ui/commit/7ffb23596c7cc286c39ecea34796d1d17ea963ff))
122
+
123
+
124
+
125
+
126
+
127
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.14"
128
+ Updating "nuxt"
129
+ Succesfully updated "nuxt" package
130
+
131
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.13](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.12...@open-xamu-co/ui-components-vue-v4.0.0-next.13) (2026-04-10)
132
+
133
+
134
+ ### Bug Fixes
135
+
136
+ * accept nodeFn on table pagination ([f334b10](https://github.com/xamu-co/ui/commit/f334b10c9ad8d5a1fd29a4ca05a9f72dfa5e8697))
137
+ * use wrapper prop instead of el in loader content ([0d5fa02](https://github.com/xamu-co/ui/commit/0d5fa02e9d2da6258e3c93c805cd3d42aa8eccec))
138
+
139
+
140
+
141
+
142
+
143
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.13"
144
+ Updating "nuxt"
145
+ Succesfully updated "nuxt" package
146
+
147
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.12](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.11...@open-xamu-co/ui-components-vue-v4.0.0-next.12) (2026-04-05)
148
+
149
+
150
+ ### Bug Fixes
151
+
152
+ * **vue:** missing theme bindings in editor ([829ef9a](https://github.com/xamu-co/ui/commit/829ef9abec2213cc06952bf1636a13962fb296a2))
153
+
154
+
155
+
156
+
157
+
158
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.12"
159
+ Updating "nuxt"
160
+ Succesfully updated "nuxt" package
161
+
162
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.11](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.10...@open-xamu-co/ui-components-vue-v4.0.0-next.11) (2026-04-03)
163
+
164
+
165
+ ### Bug Fixes
166
+
167
+ * **vue:** conditional editor linewrapping & invert box action inner theme ([654f6e1](https://github.com/xamu-co/ui/commit/654f6e1921f731145a91092ee7a49fadc8b4c455))
168
+ * **vue:** editor with on form ([d9a2879](https://github.com/xamu-co/ui/commit/d9a287904df981afa7dfb89c16e25899443cfc94))
169
+
170
+
171
+
172
+
173
+
174
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.11"
175
+ Updating "nuxt"
176
+ Succesfully updated "nuxt" package
177
+
178
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.10](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.9...@open-xamu-co/ui-components-vue-v4.0.0-next.10) (2026-01-21)
179
+
180
+
181
+ ### Bug Fixes
182
+
183
+ * **vue:** replace broken component import ([59da4be](https://github.com/xamu-co/ui/commit/59da4be748c3833ece2c9248a998f0130e9df1fa))
184
+
185
+
186
+
187
+
188
+
189
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.10"
190
+ Updating "nuxt"
191
+ Succesfully updated "nuxt" package
192
+
193
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.9](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.8...@open-xamu-co/ui-components-vue-v4.0.0-next.9) (2026-01-21)
194
+
195
+
196
+ ### Features
197
+
198
+ * expose useMarkdown composable ([b66ede9](https://github.com/xamu-co/ui/commit/b66ede9b28c3bfb7c811e4528fd7cfa42e7e3221))
199
+
200
+
201
+
202
+
203
+
204
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.9"
205
+ Updating "nuxt"
206
+ Succesfully updated "nuxt" package
207
+
208
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.8](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.7...@open-xamu-co/ui-components-vue-v4.0.0-next.8) (2026-01-21)
209
+
210
+
211
+ ### Bug Fixes
212
+
213
+ * **vue:** properly handle filtered table nodes ([d07540b](https://github.com/xamu-co/ui/commit/d07540b9220731dc345e13080fc322f724869981))
214
+
215
+
216
+
217
+
218
+
219
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.8"
220
+ Updating "nuxt"
221
+ Succesfully updated "nuxt" package
222
+
223
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.7](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.6...@open-xamu-co/ui-components-vue-v4.0.0-next.7) (2026-01-20)
224
+
225
+
226
+ ### Bug Fixes
227
+
228
+ * **vue:** allow tableProps.mapNodes to override mapNode ([3ba5d00](https://github.com/xamu-co/ui/commit/3ba5d00f6f45a5bafc2e6f5e5247d8688eab5ada))
229
+
230
+
231
+
232
+
233
+
234
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.7"
235
+ Updating "nuxt"
236
+ Succesfully updated "nuxt" package
237
+
238
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.6](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.5...@open-xamu-co/ui-components-vue-v4.0.0-next.6) (2026-01-18)
239
+
240
+
241
+ ### Bug Fixes
242
+
243
+ * bump core dependencies ([3d88b97](https://github.com/xamu-co/ui/commit/3d88b97491601c8cfbeb558d5ef5e24ba4e55f08))
244
+
245
+
246
+ ### Features
247
+
248
+ * code editor support ([b08239d](https://github.com/xamu-co/ui/commit/b08239ddef1dd5bc928db630211cddd11ae1ea47))
249
+
250
+
251
+
252
+
253
+
254
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.6"
255
+ Updating "nuxt"
256
+ Succesfully updated "nuxt" package
257
+
258
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.5](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.4...@open-xamu-co/ui-components-vue-v4.0.0-next.5) (2026-01-08)
259
+
260
+
261
+ ### Bug Fixes
262
+
263
+ * whether typos ([1adadf7](https://github.com/xamu-co/ui/commit/1adadf77d5bc1d985c158dd9b8bd36837f724ac0))
264
+
265
+
266
+
267
+
268
+
269
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.5"
270
+ Updating "nuxt"
271
+ Succesfully updated "nuxt" package
272
+
273
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.4](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.3...@open-xamu-co/ui-components-vue-v4.0.0-next.4) (2026-01-06)
274
+
275
+
276
+ ### Features
277
+
278
+ * expose stylesheet preload function on module ([56dbf1f](https://github.com/xamu-co/ui/commit/56dbf1fe6b2fa12b6776add6dcda86524ea84fd1))
279
+
280
+
281
+
282
+
283
+
284
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.4"
285
+ Updating "nuxt"
286
+ Succesfully updated "nuxt" package
287
+
288
+ # [@open-xamu-co/ui-components-vue-v4.0.0-next.3](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.2...@open-xamu-co/ui-components-vue-v4.0.0-next.3) (2026-01-01)
289
+
290
+
291
+ ### Bug Fixes
292
+
293
+ * allow more image types on file input ([73d39bc](https://github.com/xamu-co/ui/commit/73d39bc95c32f801233d442870512f1fc6ac1fe5))
294
+ * do not mix original node with cloned node data ([25a513a](https://github.com/xamu-co/ui/commit/25a513a4765e3565a17da666b040a83def6d939d))
295
+ * restore table mehods typings ([9e4a7a7](https://github.com/xamu-co/ui/commit/9e4a7a72b42fb0b6d3144f931932367603abeb9e))
296
+
297
+
298
+ ### Features
299
+
300
+ * stream like hydration ([cb7f694](https://github.com/xamu-co/ui/commit/cb7f6940643dc358ab863fd4bf692db495e23aee))
301
+
302
+
303
+ ### BREAKING CHANGES
304
+
305
+ * renamed mime types exports
306
+
307
+
308
+
309
+
310
+
311
+ Updating dependant packages with "@open-xamu-co/ui-components-vue" version "4.0.0-next.3"
312
+ Updating "nuxt"
313
+ Succesfully updated "nuxt" package
314
+
3
315
  # [@open-xamu-co/ui-components-vue-v4.0.0-next.2](https://github.com/xamu-co/ui/compare/@open-xamu-co/ui-components-vue-v4.0.0-next.1...@open-xamu-co/ui-components-vue-v4.0.0-next.2) (2025-12-30)
4
316
 
5
317
 
@@ -8,6 +8,10 @@ interface iActionButtonLinkProps extends iActionProps, iUseModifiersProps, iUseS
8
8
  * Reverse behavior
9
9
  */
10
10
  linkButton?: boolean;
11
+ /**
12
+ * Breakpoint to switch between button and link
13
+ */
14
+ breakpoint?: "mobile" | "tablet" | "laptop";
11
15
  }
12
16
  declare var __VLS_8: {
13
17
  isButton: true;
@@ -23,7 +27,9 @@ type __VLS_Slots = {} & {
23
27
  } & {
24
28
  default?: (props: typeof __VLS_26) => any;
25
29
  };
26
- declare const __VLS_base: import("vue").DefineComponent<iActionButtonLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionButtonLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_base: import("vue").DefineComponent<iActionButtonLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iActionButtonLinkProps> & Readonly<{}>, {
31
+ breakpoint: "mobile" | "tablet" | "laptop";
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
33
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
34
  declare const _default: typeof __VLS_export;
29
35
  export default _default;
@@ -5,9 +5,9 @@ interface iBaseBoxProps extends iUseModifiersProps, iUseStateProps, iUseThemePro
5
5
  * Component or tag to render
6
6
  */
7
7
  el?: vComponent | string;
8
- /**
9
- * less padding
10
- */
8
+ /** Input like visuals */
9
+ input?: boolean;
10
+ /** Button like visuals */
11
11
  button?: boolean;
12
12
  dashed?: boolean;
13
13
  solid?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { Teleport } from "vue";
2
2
  import type { vComponent } from "../../types/plugin";
3
3
  type __VLS_Props = {
4
- /** Wheter or not render the wrapper */
4
+ /** Whether or not render the wrapper */
5
5
  wrap: boolean;
6
6
  /** Component or tag to render as wrapper */
7
7
  wrapper?: vComponent | typeof Teleport | string;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import BoxEditor from "./Editor.vue";
3
+ declare const meta: Meta<typeof BoxEditor>;
4
+ type Story = StoryObj<typeof meta>;
5
+ export declare const Sample: Story;
6
+ export default meta;
@@ -0,0 +1,33 @@
1
+ import type { Extension } from "@codemirror/state";
2
+ import type { tFormInput } from "@open-xamu-co/ui-common-types";
3
+ import type { iInputProps, iUseThemeProps } from "../../types/props";
4
+ interface iBoxEditorProps extends iInputProps, iUseThemeProps {
5
+ readonly?: boolean;
6
+ input?: tFormInput;
7
+ modelValue?: string;
8
+ /** Enable code editor extensions */
9
+ code?: string | boolean;
10
+ /** Enable line wrapping */
11
+ lineWrapping?: boolean;
12
+ /** CodeMirror extensions */
13
+ extensions?: Extension[];
14
+ /** Editor theme */
15
+ editorTheme?: Extension;
16
+ }
17
+ declare var __VLS_89: {};
18
+ type __VLS_Slots = {} & {
19
+ submit?: (props: typeof __VLS_89) => any;
20
+ };
21
+ declare const __VLS_base: import("vue").DefineComponent<iBoxEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ "update:model-value": (...args: any[]) => void;
23
+ }, string, import("vue").PublicProps, Readonly<iBoxEditorProps> & Readonly<{
24
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -5,9 +5,11 @@ interface Collapse extends iUseThemeProps {
5
5
  checked?: boolean;
6
6
  el?: vComponent | string;
7
7
  }
8
- declare var __VLS_18: {};
8
+ declare var __VLS_7: {}, __VLS_20: {};
9
9
  type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_18) => any;
10
+ header?: (props: typeof __VLS_7) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_20) => any;
11
13
  };
12
14
  declare const __VLS_base: import("vue").DefineComponent<Collapse, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Collapse> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -3,4 +3,5 @@ import FormInputComponent from "./Input.vue";
3
3
  declare const meta: Meta<typeof FormInputComponent>;
4
4
  type Story = StoryObj<typeof meta>;
5
5
  export declare const Sample: Story;
6
+ export declare const Code: Story;
6
7
  export default meta;
@@ -8,7 +8,7 @@ export interface iFormInputLoop<Ti> extends iUseThemeProps {
8
8
  readonly?: boolean;
9
9
  }
10
10
  declare const __VLS_export: <T extends iFormValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
- props: __VLS_PrettifyLocal<iFormInputLoop<T>> & import("vue").PublicProps & (typeof globalThis extends {
11
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<iFormInputLoop<T>> & (typeof globalThis extends {
12
12
  __VLS_PROPS_FALLBACK: infer P;
13
13
  } ? P : {});
14
14
  expose: (exposed: {}) => void;
@@ -10,7 +10,7 @@ export interface iFormInputNValues<Ti> {
10
10
  refresh?: (...args: any[]) => any;
11
11
  }
12
12
  declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
- props: __VLS_PrettifyLocal<iFormInputNValues<T>> & import("vue").PublicProps & (typeof globalThis extends {
13
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<iFormInputNValues<T>> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
15
15
  } ? P : {});
16
16
  expose: (exposed: {}) => void;
@@ -1,6 +1,15 @@
1
1
  import type { tFormInput } from "@open-xamu-co/ui-common-types";
2
2
  type __VLS_Props = {
3
3
  input: tFormInput;
4
+ /**
5
+ * Currently selected value
6
+ */
7
+ selectedValue?: number | string;
8
+ /**
9
+ * Currently selected values
10
+ * When `input.multiple === true`
11
+ */
12
+ selectedValues?: (number | string)[];
4
13
  };
5
14
  declare var __VLS_1: {
6
15
  key: number;
@@ -20,10 +20,10 @@ export interface iFormSimple<P extends any[]> extends iUseThemeProps {
20
20
  readonly?: boolean;
21
21
  }
22
22
  declare const __VLS_export: <P extends any[] = any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
23
- props: __VLS_PrettifyLocal<iFormSimple<P> & {
23
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<iFormSimple<P> & {
24
24
  "onUpdate:model-value"?: ((args_0: tFormInput<import("@open-xamu-co/ui-common-types").iFormValue | import("@open-xamu-co/ui-common-types").iFormValue[], import("@open-xamu-co/ui-common-enums").eFormTypeBase | eFormTypeSimple | import("@open-xamu-co/ui-common-enums").eFormTypeComplex>[]) => any) | undefined;
25
25
  "onUpdate:invalid"?: ((args_0: iInvalidInput[]) => any) | undefined;
26
- }> & import("vue").PublicProps & (typeof globalThis extends {
26
+ }> & (typeof globalThis extends {
27
27
  __VLS_PROPS_FALLBACK: infer P_1;
28
28
  } ? P_1 : {});
29
29
  expose: (exposed: {}) => void;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import InputCode from "./Code.vue";
3
+ declare const meta: Meta<typeof InputCode>;
4
+ type Story = StoryObj<typeof meta>;
5
+ export declare const Sample: Story;
6
+ export default meta;
@@ -0,0 +1,42 @@
1
+ import { type Extension } from "@codemirror/state";
2
+ import type { iUseThemeProps, iInputProps } from "../../types/props";
3
+ interface iInputCodeProps extends iInputProps, iUseThemeProps {
4
+ /**
5
+ * Enable code editing extensions
6
+ */
7
+ code?: boolean;
8
+ /**
9
+ * Custom extensions
10
+ * Add extensions for specific languages here
11
+ */
12
+ extensions?: Extension[];
13
+ /**
14
+ * Editor theme
15
+ *
16
+ * @default @fsegurai/codemirror-theme-material-light
17
+ *
18
+ * TODO: Workaround JSS to support layers with custom theme
19
+ * Codemirror uses JSS for theming
20
+ */
21
+ editorTheme?: Extension;
22
+ /**
23
+ * Enable line wrapping
24
+ */
25
+ lineWrapping?: boolean;
26
+ /**
27
+ * @private
28
+ */
29
+ modelValue?: string;
30
+ }
31
+ declare const __VLS_export: import("vue").DefineComponent<iInputCodeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ "update:model-value": (...args: any[]) => void;
33
+ editor: (...args: any[]) => void;
34
+ }, string, import("vue").PublicProps, Readonly<iInputCodeProps> & Readonly<{
35
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
36
+ onEditor?: ((...args: any[]) => any) | undefined;
37
+ }>, {
38
+ extensions: Extension[];
39
+ editorTheme: Extension;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
@@ -3,4 +3,5 @@ import InputFile from "./File.vue";
3
3
  declare const meta: Meta<typeof InputFile>;
4
4
  type Story = StoryObj<typeof meta>;
5
5
  export declare const Sample: Story;
6
+ export declare const AcceptVideo: Story;
6
7
  export default meta;
@@ -23,6 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<iInputFileProps, {}, {
23
23
  "update:model-value": (...args: any[]) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<iInputFileProps> & Readonly<{
25
25
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ }>, {
27
+ accept: string[];
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
29
  declare const _default: typeof __VLS_export;
28
30
  export default _default;
@@ -17,7 +17,7 @@ export interface iLoaderContentFetchProps<Ti, Pi extends any[]> extends iUseThem
17
17
  * Make sure to use preventAutoload to avoid invalid fetching.
18
18
  */
19
19
  url?: false | string;
20
- promise?: false | ((...args: Pi) => Promise<Ti>);
20
+ promise?: false | ((...args: [...Pi, AbortSignal | undefined]) => Promise<Ti>);
21
21
  /**
22
22
  * Hydrate values after promise if resolved
23
23
  * Useful with firebase
@@ -26,7 +26,7 @@ export interface iLoaderContentFetchProps<Ti, Pi extends any[]> extends iUseThem
26
26
  *
27
27
  * Hydration is conditioned to the context (disabled, loading...)
28
28
  */
29
- hydratablePromise?: false | ((content: Ref<Ti | null>, errors: Ref<unknown>) => (...args: Pi) => Promise<Ti>);
29
+ hydratablePromise?: false | ((content: Ref<Ti | null>, errors: Ref<unknown>) => (...args: [...Pi, AbortSignal | undefined]) => Promise<Ti>);
30
30
  payload?: Pi;
31
31
  /**
32
32
  * Component or tag to render on loader
@@ -41,13 +41,19 @@ export interface iLoaderContentFetchProps<Ti, Pi extends any[]> extends iUseThem
41
41
  * Whether to fetch data on client side only
42
42
  */
43
43
  client?: boolean;
44
+ /**
45
+ * Whether to cache data
46
+ *
47
+ * @default true
48
+ */
49
+ cache?: boolean;
44
50
  }
45
51
  declare const __VLS_export: <T, P extends any[] = any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
46
- props: __VLS_PrettifyLocal<iLoaderContentFetchProps<T, P> & {
52
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<iLoaderContentFetchProps<T, P> & {
47
53
  onRefresh?: ((...args: any[]) => any) | undefined;
48
54
  "onHas-content"?: ((...args: any[]) => any) | undefined;
49
55
  onHydrate?: ((...args: any[]) => any) | undefined;
50
- }> & import("vue").PublicProps & (typeof globalThis extends {
56
+ }> & (typeof globalThis extends {
51
57
  __VLS_PROPS_FALLBACK: infer P_1;
52
58
  } ? P_1 : {});
53
59
  expose: (exposed: {}) => void;
@@ -3,5 +3,6 @@ import ModalSimple from "./Simple.vue";
3
3
  declare const meta: Meta<typeof ModalSimple>;
4
4
  type Story = StoryObj<typeof meta>;
5
5
  export declare const Sample: Story;
6
+ export declare const WithFormInput: Story;
6
7
  export declare const WithFormStages: Story;
7
8
  export default meta;
@@ -33,7 +33,12 @@ declare var __VLS_8: {
33
33
  modalRef: HTMLDialogElement | undefined;
34
34
  invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
35
35
  save: (e: Event) => void;
36
- }, __VLS_85: {
36
+ }, __VLS_47: {
37
+ toggleModal: typeof toggleModal;
38
+ model: boolean;
39
+ modalRef: HTMLDialogElement | undefined;
40
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
41
+ }, __VLS_87: {
37
42
  toggleModal: typeof toggleModal;
38
43
  model: boolean;
39
44
  modalRef: HTMLDialogElement | undefined;
@@ -52,7 +57,9 @@ type __VLS_Slots = {} & {
52
57
  } & {
53
58
  'footer-actions'?: (props: typeof __VLS_37) => any;
54
59
  } & {
55
- default?: (props: typeof __VLS_85) => any;
60
+ 'footer-actions-extras'?: (props: typeof __VLS_47) => any;
61
+ } & {
62
+ default?: (props: typeof __VLS_87) => any;
56
63
  };
57
64
  declare const __VLS_base: import("vue").DefineComponent<iModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
65
  close: (...args: any[]) => void;