@codemonster-ru/vueforge 0.96.0 → 0.98.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 (158) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +0 -3
  3. package/dist/docs/App.vue.d.ts +2 -0
  4. package/dist/docs/DocsAppView.vue.d.ts +4 -0
  5. package/dist/docs/DocsLivePreview.vue.d.ts +7 -0
  6. package/dist/docs/__tests__/docs-app-view.test.d.ts +1 -0
  7. package/dist/docs/docs-markdown.d.ts +10 -0
  8. package/dist/docs/docs-structure.d.ts +28 -0
  9. package/dist/docs/main.d.ts +1 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.d.ts +41 -1
  12. package/dist/index.ts.mjs +22575 -19910
  13. package/dist/index.ts.umd.js +21 -17
  14. package/dist/package/components/__tests__/avatar-group.test.d.ts +1 -0
  15. package/dist/package/components/__tests__/banner.test.d.ts +1 -0
  16. package/dist/package/components/__tests__/bottom-navigation.test.d.ts +1 -0
  17. package/dist/package/components/__tests__/chart-adapter.test.d.ts +1 -0
  18. package/dist/package/components/__tests__/chart-export.test.d.ts +1 -0
  19. package/dist/package/components/__tests__/chart-performance.test.d.ts +1 -0
  20. package/dist/package/components/__tests__/chart-schema.test.d.ts +1 -0
  21. package/dist/package/components/__tests__/chart-security.test.d.ts +1 -0
  22. package/dist/package/components/__tests__/chart-theme-options.test.d.ts +1 -0
  23. package/dist/package/components/__tests__/code-block.test.d.ts +1 -0
  24. package/dist/package/components/__tests__/defaults-provider.test.d.ts +1 -0
  25. package/dist/package/components/__tests__/float-label.test.d.ts +1 -0
  26. package/dist/package/components/__tests__/hotkey.test.d.ts +1 -0
  27. package/dist/package/components/__tests__/hover.test.d.ts +1 -0
  28. package/dist/package/components/__tests__/icon-field-input-icon.test.d.ts +1 -0
  29. package/dist/package/components/__tests__/ifta-label.test.d.ts +1 -0
  30. package/dist/package/components/__tests__/kbd.test.d.ts +1 -0
  31. package/dist/package/components/__tests__/lazy.test.d.ts +1 -0
  32. package/dist/package/components/__tests__/locale-provider.test.d.ts +1 -0
  33. package/dist/package/components/__tests__/main-layout-region.test.d.ts +1 -0
  34. package/dist/package/components/__tests__/no-ssr.test.d.ts +1 -0
  35. package/dist/package/components/__tests__/parallax.test.d.ts +1 -0
  36. package/dist/package/components/__tests__/selection-control.test.d.ts +1 -0
  37. package/dist/package/components/__tests__/sheet.test.d.ts +1 -0
  38. package/dist/package/components/__tests__/slide-group.test.d.ts +1 -0
  39. package/dist/package/components/__tests__/snackbar-queue.test.d.ts +1 -0
  40. package/dist/package/components/__tests__/system-bar.test.d.ts +1 -0
  41. package/dist/package/components/__tests__/theme-mode-switch.test.d.ts +1 -0
  42. package/dist/package/components/__tests__/theme-provider.test.d.ts +1 -0
  43. package/dist/package/components/__tests__/toggle-button.test.d.ts +1 -0
  44. package/dist/package/components/__tests__/validation.test.d.ts +1 -0
  45. package/dist/package/components/__tests__/window.test.d.ts +1 -0
  46. package/dist/package/components/accordion.vue.d.ts +1 -1
  47. package/dist/package/components/app-bar.vue.d.ts +1 -1
  48. package/dist/package/components/area-chart.vue.d.ts +100 -12
  49. package/dist/package/components/avatar-group.vue.d.ts +54 -0
  50. package/dist/package/components/banner.vue.d.ts +59 -0
  51. package/dist/package/components/bar-chart.vue.d.ts +101 -13
  52. package/dist/package/components/bottom-navigation.vue.d.ts +143 -0
  53. package/dist/package/components/bubble-chart.vue.d.ts +100 -12
  54. package/dist/package/components/button.vue.d.ts +1 -1
  55. package/dist/package/components/candlestick-chart.vue.d.ts +100 -12
  56. package/dist/package/components/carousel.vue.d.ts +2 -2
  57. package/dist/package/components/chart-adapter.d.ts +5 -0
  58. package/dist/package/components/chart-export.d.ts +2 -0
  59. package/dist/package/components/chart-performance.d.ts +10 -0
  60. package/dist/package/components/chart-schema.d.ts +48 -0
  61. package/dist/package/components/chart-security.d.ts +2 -0
  62. package/dist/package/components/chart-theme-options.d.ts +25 -0
  63. package/dist/package/components/chart.vue.d.ts +30 -2
  64. package/dist/package/components/code-block.vue.d.ts +58 -0
  65. package/dist/package/components/data-table.vue.d.ts +1 -1
  66. package/dist/package/components/defaults-provider.vue.d.ts +25 -0
  67. package/dist/package/components/diff-viewer.vue.d.ts +1 -1
  68. package/dist/package/components/divider.vue.d.ts +1 -1
  69. package/dist/package/components/donut-chart.vue.d.ts +2 -2
  70. package/dist/package/components/filter-chips.vue.d.ts +1 -1
  71. package/dist/package/components/float-label.vue.d.ts +42 -0
  72. package/dist/package/components/footer.vue.d.ts +2 -2
  73. package/dist/package/components/form.vue.d.ts +4 -3
  74. package/dist/package/components/funnel-chart.vue.d.ts +100 -12
  75. package/dist/package/components/gauge-chart.vue.d.ts +100 -12
  76. package/dist/package/components/heatmap.vue.d.ts +100 -12
  77. package/dist/package/components/hide.vue.d.ts +1 -1
  78. package/dist/package/components/histogram.vue.d.ts +100 -12
  79. package/dist/package/components/hotkey.vue.d.ts +58 -0
  80. package/dist/package/components/hover.vue.d.ts +42 -0
  81. package/dist/package/components/icon-field.vue.d.ts +34 -0
  82. package/dist/package/components/icon.vue.d.ts +1 -1
  83. package/dist/package/components/ifta-label.vue.d.ts +34 -0
  84. package/dist/package/components/image.vue.d.ts +2 -2
  85. package/dist/package/components/input-icon.vue.d.ts +31 -0
  86. package/dist/package/components/kbd.vue.d.ts +35 -0
  87. package/dist/package/components/lazy.vue.d.ts +51 -0
  88. package/dist/package/components/line-chart.vue.d.ts +100 -12
  89. package/dist/package/components/locale-provider.vue.d.ts +25 -0
  90. package/dist/package/components/main-layout-region.vue.d.ts +36 -0
  91. package/dist/package/components/navigation-rail.vue.d.ts +1 -1
  92. package/dist/package/components/no-ssr.vue.d.ts +22 -0
  93. package/dist/package/components/overlay-badge.vue.d.ts +1 -1
  94. package/dist/package/components/overlay-panel.vue.d.ts +2 -2
  95. package/dist/package/components/parallax.vue.d.ts +51 -0
  96. package/dist/package/components/pie-chart.vue.d.ts +100 -12
  97. package/dist/package/components/radar-chart.vue.d.ts +100 -12
  98. package/dist/package/components/resizable-sidebar.vue.d.ts +1 -1
  99. package/dist/package/components/scatter-chart.vue.d.ts +100 -12
  100. package/dist/package/components/scroll-top.vue.d.ts +1 -1
  101. package/dist/package/components/section.vue.d.ts +1 -1
  102. package/dist/package/components/selection-control-context.d.ts +16 -0
  103. package/dist/package/components/selection-control-group.vue.d.ts +44 -0
  104. package/dist/package/components/selection-control.vue.d.ts +53 -0
  105. package/dist/package/components/sheet.vue.d.ts +37 -0
  106. package/dist/package/components/show.vue.d.ts +1 -1
  107. package/dist/package/components/slide-group.vue.d.ts +61 -0
  108. package/dist/package/components/snackbar-queue.vue.d.ts +46 -0
  109. package/dist/package/components/sparkline.vue.d.ts +100 -12
  110. package/dist/package/components/speed-dial.vue.d.ts +2 -2
  111. package/dist/package/components/stepper.vue.d.ts +1 -1
  112. package/dist/package/components/sticky-region.vue.d.ts +1 -1
  113. package/dist/package/components/system-bar.vue.d.ts +43 -0
  114. package/dist/package/components/tabs.vue.d.ts +1 -1
  115. package/dist/package/components/terminal.vue.d.ts +1 -1
  116. package/dist/package/components/theme-mode-switch.vue.d.ts +27 -0
  117. package/dist/package/components/theme-provider.vue.d.ts +29 -0
  118. package/dist/package/components/timeline.vue.d.ts +1 -1
  119. package/dist/package/components/toast.vue.d.ts +1 -1
  120. package/dist/package/components/toggle-button.vue.d.ts +54 -0
  121. package/dist/package/components/toolbar.vue.d.ts +1 -1
  122. package/dist/package/components/tour.vue.d.ts +4 -4
  123. package/dist/package/components/tree-table.vue.d.ts +1 -1
  124. package/dist/package/components/treemap-chart.vue.d.ts +100 -12
  125. package/dist/package/components/use-hotkey.d.ts +21 -0
  126. package/dist/package/components/validation.d.ts +40 -0
  127. package/dist/package/components/window.vue.d.ts +99 -0
  128. package/dist/package/components/wizard.vue.d.ts +2 -2
  129. package/dist/package/config/__tests__/pass-through.test.d.ts +1 -0
  130. package/dist/package/config/defaults-provider.d.ts +5 -0
  131. package/dist/package/config/index.d.ts +4 -2
  132. package/dist/package/config/locale-text.d.ts +77 -0
  133. package/dist/package/config/theme-core.d.ts +418 -0
  134. package/dist/package/themes/default/components/avatar-group.d.ts +10 -0
  135. package/dist/package/themes/default/components/banner.d.ts +42 -0
  136. package/dist/package/themes/default/components/bottom-navigation.d.ts +23 -0
  137. package/dist/package/themes/default/components/chart.d.ts +34 -0
  138. package/dist/package/themes/default/components/code-block.d.ts +36 -0
  139. package/dist/package/themes/default/components/float-label.d.ts +21 -0
  140. package/dist/package/themes/default/components/hover.d.ts +4 -0
  141. package/dist/package/themes/default/components/icon-field.d.ts +9 -0
  142. package/dist/package/themes/default/components/ifta-label.d.ts +18 -0
  143. package/dist/package/themes/default/components/input-icon.d.ts +5 -0
  144. package/dist/package/themes/default/components/kbd.d.ts +27 -0
  145. package/dist/package/themes/default/components/lazy.d.ts +7 -0
  146. package/dist/package/themes/default/components/main-layout-region.d.ts +8 -0
  147. package/dist/package/themes/default/components/parallax.d.ts +7 -0
  148. package/dist/package/themes/default/components/selection-control-group.d.ts +5 -0
  149. package/dist/package/themes/default/components/selection-control.d.ts +29 -0
  150. package/dist/package/themes/default/components/sheet.d.ts +17 -0
  151. package/dist/package/themes/default/components/slide-group.d.ts +21 -0
  152. package/dist/package/themes/default/components/snackbar-queue.d.ts +10 -0
  153. package/dist/package/themes/default/components/system-bar.d.ts +13 -0
  154. package/dist/package/themes/default/components/theme-mode-switch.d.ts +28 -0
  155. package/dist/package/themes/default/components/toggle-button.d.ts +24 -0
  156. package/dist/package/themes/default/components/window.d.ts +20 -0
  157. package/dist/package/themes/default/index.d.ts +396 -0
  158. package/package.json +5 -8
@@ -59,6 +59,18 @@ declare function __VLS_template(): {
59
59
  readonly loadingText?: string | undefined;
60
60
  readonly emptyText?: string | undefined;
61
61
  readonly ariaLabel?: string | undefined;
62
+ readonly a11ySummary?: string | undefined;
63
+ readonly a11yKeyboardHint?: string | undefined;
64
+ readonly a11yTableFallback?: boolean | undefined;
65
+ readonly tableCaption?: string | undefined;
66
+ readonly tableLabelHeader?: string | undefined;
67
+ readonly showTableText?: string | undefined;
68
+ readonly hideTableText?: string | undefined;
69
+ readonly printMode?: boolean | undefined;
70
+ readonly highDensity?: boolean | undefined;
71
+ readonly highDensityPointThreshold?: number | undefined;
72
+ readonly highDensityDecimationAlgorithm?: "lttb" | "min-max" | undefined;
73
+ readonly highDensitySamples?: number | undefined;
62
74
  readonly lazy?: boolean | undefined;
63
75
  readonly lazyRootMargin?: string | undefined;
64
76
  readonly lazyThreshold?: number | undefined;
@@ -90,6 +102,10 @@ declare function __VLS_template(): {
90
102
  }>, {
91
103
  resize: () => void;
92
104
  refresh: () => void;
105
+ exportAsPng: () => string;
106
+ exportAsSvg: () => string;
107
+ exportAsCsv: () => string;
108
+ setPrintMode: (enabled: boolean) => void;
93
109
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
94
110
  error: (error: Error) => any;
95
111
  ready: (instance: ChartAdapterInstance) => any;
@@ -99,16 +115,28 @@ declare function __VLS_template(): {
99
115
  data: import('./chart-adapter').ChartData;
100
116
  ariaLabel: string;
101
117
  loading: boolean;
102
- width: number;
103
- height: number;
104
118
  pt: PassThroughOptions;
105
119
  unstyled: boolean;
120
+ width: number;
121
+ height: number;
106
122
  loadingText: string;
107
123
  emptyText: string;
108
124
  adapter: ChartAdapter;
109
125
  lazyRootMargin: string;
110
126
  lazyThreshold: number;
111
127
  options: Record<string, unknown>;
128
+ a11ySummary: string;
129
+ a11yKeyboardHint: string;
130
+ a11yTableFallback: boolean;
131
+ tableCaption: string;
132
+ tableLabelHeader: string;
133
+ showTableText: string;
134
+ hideTableText: string;
135
+ printMode: boolean;
136
+ highDensity: boolean;
137
+ highDensityPointThreshold: number;
138
+ highDensityDecimationAlgorithm: "lttb" | "min-max";
139
+ highDensitySamples: number;
112
140
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
113
141
  beforeCreate?: (() => void) | (() => void)[];
114
142
  created?: (() => void) | (() => void)[];
@@ -135,22 +163,38 @@ declare function __VLS_template(): {
135
163
  data: import('./chart-adapter').ChartData;
136
164
  ariaLabel: string;
137
165
  loading: boolean;
138
- width: number;
139
- height: number;
140
166
  pt: PassThroughOptions;
141
167
  unstyled: boolean;
168
+ width: number;
169
+ height: number;
142
170
  loadingText: string;
143
171
  emptyText: string;
144
172
  adapter: ChartAdapter;
145
173
  lazyRootMargin: string;
146
174
  lazyThreshold: number;
147
175
  options: Record<string, unknown>;
176
+ a11ySummary: string;
177
+ a11yKeyboardHint: string;
178
+ a11yTableFallback: boolean;
179
+ tableCaption: string;
180
+ tableLabelHeader: string;
181
+ showTableText: string;
182
+ hideTableText: string;
183
+ printMode: boolean;
184
+ highDensity: boolean;
185
+ highDensityPointThreshold: number;
186
+ highDensityDecimationAlgorithm: "lttb" | "min-max";
187
+ highDensitySamples: number;
148
188
  }> & Omit<Readonly<import('./chart.vue').ChartProps> & Readonly<{
149
189
  onError?: ((error: Error) => any) | undefined;
150
190
  onReady?: ((instance: ChartAdapterInstance) => any) | undefined;
151
- }>, "resize" | "refresh" | ("type" | "lazy" | "data" | "ariaLabel" | "loading" | "width" | "height" | "pt" | "unstyled" | "loadingText" | "emptyText" | "adapter" | "lazyRootMargin" | "lazyThreshold" | "options")> & import('vue').ShallowUnwrapRef<{
191
+ }>, "resize" | "refresh" | "exportAsPng" | "exportAsSvg" | "exportAsCsv" | "setPrintMode" | ("type" | "lazy" | "data" | "ariaLabel" | "loading" | "pt" | "unstyled" | "width" | "height" | "loadingText" | "emptyText" | "adapter" | "lazyRootMargin" | "lazyThreshold" | "options" | "a11ySummary" | "a11yKeyboardHint" | "a11yTableFallback" | "tableCaption" | "tableLabelHeader" | "showTableText" | "hideTableText" | "printMode" | "highDensity" | "highDensityPointThreshold" | "highDensityDecimationAlgorithm" | "highDensitySamples")> & import('vue').ShallowUnwrapRef<{
152
192
  resize: () => void;
153
193
  refresh: () => void;
194
+ exportAsPng: () => string;
195
+ exportAsSvg: () => string;
196
+ exportAsCsv: () => string;
197
+ setPrintMode: (enabled: boolean) => void;
154
198
  }> & {} & import('vue').ComponentCustomProperties & {} & {
155
199
  $slots: Readonly<{
156
200
  loading?: () => unknown;
@@ -178,10 +222,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
178
222
  lazy: boolean;
179
223
  ariaLabel: string;
180
224
  loading: boolean;
181
- width: number;
182
- height: number;
183
225
  pt: PassThroughOptions;
184
226
  unstyled: boolean;
227
+ width: number;
228
+ height: number;
185
229
  loadingText: string;
186
230
  emptyText: string;
187
231
  adapter: ChartAdapter;
@@ -205,6 +249,18 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
205
249
  readonly loadingText?: string | undefined;
206
250
  readonly emptyText?: string | undefined;
207
251
  readonly ariaLabel?: string | undefined;
252
+ readonly a11ySummary?: string | undefined;
253
+ readonly a11yKeyboardHint?: string | undefined;
254
+ readonly a11yTableFallback?: boolean | undefined;
255
+ readonly tableCaption?: string | undefined;
256
+ readonly tableLabelHeader?: string | undefined;
257
+ readonly showTableText?: string | undefined;
258
+ readonly hideTableText?: string | undefined;
259
+ readonly printMode?: boolean | undefined;
260
+ readonly highDensity?: boolean | undefined;
261
+ readonly highDensityPointThreshold?: number | undefined;
262
+ readonly highDensityDecimationAlgorithm?: "lttb" | "min-max" | undefined;
263
+ readonly highDensitySamples?: number | undefined;
208
264
  readonly lazy?: boolean | undefined;
209
265
  readonly lazyRootMargin?: string | undefined;
210
266
  readonly lazyThreshold?: number | undefined;
@@ -236,6 +292,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
236
292
  }>, {
237
293
  resize: () => void;
238
294
  refresh: () => void;
295
+ exportAsPng: () => string;
296
+ exportAsSvg: () => string;
297
+ exportAsCsv: () => string;
298
+ setPrintMode: (enabled: boolean) => void;
239
299
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
240
300
  error: (error: Error) => any;
241
301
  ready: (instance: ChartAdapterInstance) => any;
@@ -245,16 +305,28 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
245
305
  data: import('./chart-adapter').ChartData;
246
306
  ariaLabel: string;
247
307
  loading: boolean;
248
- width: number;
249
- height: number;
250
308
  pt: PassThroughOptions;
251
309
  unstyled: boolean;
310
+ width: number;
311
+ height: number;
252
312
  loadingText: string;
253
313
  emptyText: string;
254
314
  adapter: ChartAdapter;
255
315
  lazyRootMargin: string;
256
316
  lazyThreshold: number;
257
317
  options: Record<string, unknown>;
318
+ a11ySummary: string;
319
+ a11yKeyboardHint: string;
320
+ a11yTableFallback: boolean;
321
+ tableCaption: string;
322
+ tableLabelHeader: string;
323
+ showTableText: string;
324
+ hideTableText: string;
325
+ printMode: boolean;
326
+ highDensity: boolean;
327
+ highDensityPointThreshold: number;
328
+ highDensityDecimationAlgorithm: "lttb" | "min-max";
329
+ highDensitySamples: number;
258
330
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
259
331
  beforeCreate?: (() => void) | (() => void)[];
260
332
  created?: (() => void) | (() => void)[];
@@ -281,22 +353,38 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
281
353
  data: import('./chart-adapter').ChartData;
282
354
  ariaLabel: string;
283
355
  loading: boolean;
284
- width: number;
285
- height: number;
286
356
  pt: PassThroughOptions;
287
357
  unstyled: boolean;
358
+ width: number;
359
+ height: number;
288
360
  loadingText: string;
289
361
  emptyText: string;
290
362
  adapter: ChartAdapter;
291
363
  lazyRootMargin: string;
292
364
  lazyThreshold: number;
293
365
  options: Record<string, unknown>;
366
+ a11ySummary: string;
367
+ a11yKeyboardHint: string;
368
+ a11yTableFallback: boolean;
369
+ tableCaption: string;
370
+ tableLabelHeader: string;
371
+ showTableText: string;
372
+ hideTableText: string;
373
+ printMode: boolean;
374
+ highDensity: boolean;
375
+ highDensityPointThreshold: number;
376
+ highDensityDecimationAlgorithm: "lttb" | "min-max";
377
+ highDensitySamples: number;
294
378
  }> & Omit<Readonly<import('./chart.vue').ChartProps> & Readonly<{
295
379
  onError?: ((error: Error) => any) | undefined;
296
380
  onReady?: ((instance: ChartAdapterInstance) => any) | undefined;
297
- }>, "resize" | "refresh" | ("type" | "lazy" | "data" | "ariaLabel" | "loading" | "width" | "height" | "pt" | "unstyled" | "loadingText" | "emptyText" | "adapter" | "lazyRootMargin" | "lazyThreshold" | "options")> & import('vue').ShallowUnwrapRef<{
381
+ }>, "resize" | "refresh" | "exportAsPng" | "exportAsSvg" | "exportAsCsv" | "setPrintMode" | ("type" | "lazy" | "data" | "ariaLabel" | "loading" | "pt" | "unstyled" | "width" | "height" | "loadingText" | "emptyText" | "adapter" | "lazyRootMargin" | "lazyThreshold" | "options" | "a11ySummary" | "a11yKeyboardHint" | "a11yTableFallback" | "tableCaption" | "tableLabelHeader" | "showTableText" | "hideTableText" | "printMode" | "highDensity" | "highDensityPointThreshold" | "highDensityDecimationAlgorithm" | "highDensitySamples")> & import('vue').ShallowUnwrapRef<{
298
382
  resize: () => void;
299
383
  refresh: () => void;
384
+ exportAsPng: () => string;
385
+ exportAsSvg: () => string;
386
+ exportAsCsv: () => string;
387
+ setPrintMode: (enabled: boolean) => void;
300
388
  }> & {} & import('vue').ComponentCustomProperties & {} & {
301
389
  $slots: Readonly<{
302
390
  loading?: () => unknown;
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue';
2
+ type HotkeyEventType = 'keydown' | 'keyup';
3
+ type HotkeyTarget = Window | Document | HTMLElement;
4
+ type MaybeRef<T> = T | Ref<T>;
5
+ export interface UseHotkeyOptions {
6
+ combo: string | Array<string>;
7
+ handler: (event: KeyboardEvent, matchedCombo: string) => void;
8
+ enabled?: MaybeRef<boolean>;
9
+ event?: HotkeyEventType;
10
+ preventDefault?: boolean;
11
+ stopPropagation?: boolean;
12
+ ignoreInputs?: boolean;
13
+ allowInInputs?: boolean;
14
+ exact?: boolean;
15
+ target?: MaybeRef<HotkeyTarget | null | undefined>;
16
+ scopeRef?: Ref<HTMLElement | null>;
17
+ }
18
+ export declare const useHotkey: (options: UseHotkeyOptions) => {
19
+ trigger: (event: KeyboardEvent, matchedCombo: string) => void;
20
+ };
21
+ export {};
@@ -0,0 +1,40 @@
1
+ export type ValidationErrors = Record<string, string>;
2
+ export type ValidationResultInput = ValidationErrors | string | boolean | null | undefined;
3
+ export type ValidationMessageLevel = 'error' | 'warning' | 'info' | 'success';
4
+ export type ValidationStatus = 'idle' | 'valid' | 'invalid' | 'pending';
5
+ export type ValidationMessage = {
6
+ id?: string;
7
+ field?: string;
8
+ text: string;
9
+ level?: ValidationMessageLevel;
10
+ };
11
+ export type ValidationState = {
12
+ status: ValidationStatus;
13
+ invalid: boolean;
14
+ pending: boolean;
15
+ messages: Array<ValidationMessage>;
16
+ describedBy?: string;
17
+ ariaInvalid?: 'true';
18
+ };
19
+ type CreateValidationMessagesOptions = {
20
+ field?: string;
21
+ formKey?: string;
22
+ includeForm?: boolean;
23
+ idPrefix?: string;
24
+ };
25
+ type CreateValidationStateOptions = {
26
+ errors?: ValidationErrors;
27
+ field?: string;
28
+ pending?: boolean;
29
+ includeForm?: boolean;
30
+ describedBy?: string | Array<string | undefined> | null;
31
+ idPrefix?: string;
32
+ };
33
+ export declare const buildValidationDescribedBy: (...parts: Array<string | Array<string | undefined> | null | undefined>) => string | undefined;
34
+ export declare const normalizeValidationErrors: (result: ValidationResultInput, options?: {
35
+ falseMessage?: string;
36
+ formKey?: string;
37
+ }) => ValidationErrors;
38
+ export declare const createValidationMessages: (errors: ValidationErrors, options?: CreateValidationMessagesOptions) => Array<ValidationMessage>;
39
+ export declare const createValidationState: (options?: CreateValidationStateOptions) => ValidationState;
40
+ export {};
@@ -0,0 +1,99 @@
1
+ type WindowValue = string | number;
2
+ type WindowDirection = 'forward' | 'backward';
3
+ type WindowTransition = 'slide-horizontal' | 'slide-vertical' | 'fade' | 'none';
4
+ export interface WindowItem {
5
+ value: WindowValue;
6
+ label?: string;
7
+ disabled?: boolean;
8
+ }
9
+ interface Props {
10
+ modelValue?: WindowValue | null;
11
+ items?: Array<WindowItem>;
12
+ loop?: boolean;
13
+ disabled?: boolean;
14
+ showControls?: boolean;
15
+ keyboard?: boolean;
16
+ transition?: WindowTransition;
17
+ ariaLabel?: string;
18
+ controlsAriaLabel?: string;
19
+ prevLabel?: string;
20
+ nextLabel?: string;
21
+ }
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ controls?(_: {
26
+ index: number;
27
+ item: WindowItem | null;
28
+ canPrev: boolean;
29
+ canNext: boolean;
30
+ prev: () => void;
31
+ next: () => void;
32
+ }): any;
33
+ item?(_: {
34
+ item: WindowItem | null;
35
+ index: number;
36
+ value: WindowValue | null;
37
+ }): any;
38
+ default?(_: {}): any;
39
+ };
40
+ refs: {};
41
+ rootEl: HTMLElement;
42
+ };
43
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
44
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
45
+ change: (payload: {
46
+ value: WindowValue;
47
+ item: WindowItem;
48
+ index: number;
49
+ direction: WindowDirection;
50
+ }) => any;
51
+ "update:modelValue": (value: WindowValue) => any;
52
+ prev: (payload: {
53
+ value: WindowValue;
54
+ item: WindowItem;
55
+ index: number;
56
+ }) => any;
57
+ next: (payload: {
58
+ value: WindowValue;
59
+ item: WindowItem;
60
+ index: number;
61
+ }) => any;
62
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
63
+ onChange?: ((payload: {
64
+ value: WindowValue;
65
+ item: WindowItem;
66
+ index: number;
67
+ direction: WindowDirection;
68
+ }) => any) | undefined;
69
+ "onUpdate:modelValue"?: ((value: WindowValue) => any) | undefined;
70
+ onPrev?: ((payload: {
71
+ value: WindowValue;
72
+ item: WindowItem;
73
+ index: number;
74
+ }) => any) | undefined;
75
+ onNext?: ((payload: {
76
+ value: WindowValue;
77
+ item: WindowItem;
78
+ index: number;
79
+ }) => any) | undefined;
80
+ }>, {
81
+ disabled: boolean;
82
+ modelValue: WindowValue | null;
83
+ ariaLabel: string;
84
+ items: Array<WindowItem>;
85
+ transition: WindowTransition;
86
+ prevLabel: string;
87
+ nextLabel: string;
88
+ loop: boolean;
89
+ showControls: boolean;
90
+ keyboard: boolean;
91
+ controlsAriaLabel: string;
92
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
93
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
94
+ export default _default;
95
+ type __VLS_WithTemplateSlots<T, S> = T & {
96
+ new (): {
97
+ $slots: S;
98
+ };
99
+ };
@@ -47,15 +47,15 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
47
47
  change: (...args: any[]) => void;
48
48
  "update:modelValue": (...args: any[]) => void;
49
49
  complete: (...args: any[]) => void;
50
- next: (...args: any[]) => void;
51
50
  prev: (...args: any[]) => void;
51
+ next: (...args: any[]) => void;
52
52
  invalidStep: (...args: any[]) => void;
53
53
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
54
54
  onChange?: ((...args: any[]) => any) | undefined;
55
55
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
56
56
  onComplete?: ((...args: any[]) => any) | undefined;
57
- onNext?: ((...args: any[]) => any) | undefined;
58
57
  onPrev?: ((...args: any[]) => any) | undefined;
58
+ onNext?: ((...args: any[]) => any) | undefined;
59
59
  onInvalidStep?: ((...args: any[]) => any) | undefined;
60
60
  }>, {
61
61
  disabled: boolean;
@@ -0,0 +1,5 @@
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
+ export type ComponentDefaultsMap = Record<string, Record<string, unknown>>;
3
+ export declare const defaultsProviderKey: InjectionKey<ComputedRef<ComponentDefaultsMap>>;
4
+ export declare const provideComponentDefaults: (local?: ComponentDefaultsMap | Ref<ComponentDefaultsMap | undefined> | ComputedRef<ComponentDefaultsMap | undefined>) => ComputedRef<ComponentDefaultsMap>;
5
+ export declare const useComponentDefaults: <T extends Record<string, unknown>>(componentName: string, explicitProps: T, baseDefaults?: Partial<T>) => ComputedRef<T>;
@@ -2,9 +2,10 @@ import { App } from 'vue';
2
2
  import { ThemeOptions, ThemePreset } from './theme-core';
3
3
  import { getTheme, setTheme, updateTheme } from './theme-runtime';
4
4
  import { DateTimeLocaleOptions, getDateTimeLocale, setDateTimeLocale, updateDateTimeLocale } from './date-time-locale';
5
- import { getLocaleText, LocaleTextOptions, setLocaleText, updateLocaleText } from './locale-text';
5
+ import { getLocaleText, LocaleTextOptions, provideLocaleTextScope, setLocaleText, updateLocaleText } from './locale-text';
6
6
  import { applyUiPreferences, DensityPreset, getDensityPreset, getReducedMotion, getUiPreferences, setDensityPreset, setReducedMotion } from './ui-preferences';
7
7
  import { resolvePassThrough, withPartClass } from './pass-through';
8
+ import { provideComponentDefaults, useComponentDefaults } from './defaults-provider';
8
9
  type VueForgeOptions = {
9
10
  theme?: ThemeOptions | ThemePreset;
10
11
  dateTimeLocale?: DateTimeLocaleOptions;
@@ -12,12 +13,13 @@ type VueForgeOptions = {
12
13
  density?: DensityPreset;
13
14
  reducedMotion?: boolean;
14
15
  };
15
- export { setTheme, updateTheme, getTheme, setDateTimeLocale, updateDateTimeLocale, getDateTimeLocale, setLocaleText, updateLocaleText, getLocaleText, };
16
+ export { setTheme, updateTheme, getTheme, setDateTimeLocale, updateDateTimeLocale, getDateTimeLocale, setLocaleText, updateLocaleText, getLocaleText, provideLocaleTextScope, };
16
17
  export type { DateTimeLocaleOptions };
17
18
  export type { LocaleTextOptions };
18
19
  export { setDensityPreset, getDensityPreset, setReducedMotion, getReducedMotion, getUiPreferences, applyUiPreferences };
19
20
  export type { DensityPreset };
20
21
  export { resolvePassThrough, withPartClass };
22
+ export { provideComponentDefaults, useComponentDefaults };
21
23
  export type { PassThroughAttrs, PassThroughEntry, PassThroughOptions, PassThroughResolverContext, } from './pass-through';
22
24
  declare const _default: {
23
25
  install(_app: App, options?: VueForgeOptions): void;
@@ -1,3 +1,4 @@
1
+ import { ComputedRef, Ref } from 'vue';
1
2
  export type LocaleTextSchema = {
2
3
  common: {
3
4
  loadingText: string;
@@ -82,6 +83,82 @@ export type LocaleTextOptions = DeepPartial<LocaleTextSchema>;
82
83
  export declare const setLocaleText: (options?: LocaleTextOptions) => void;
83
84
  export declare const updateLocaleText: (partial?: LocaleTextOptions) => void;
84
85
  export declare const getLocaleText: () => LocaleTextSchema;
86
+ export declare const provideLocaleTextScope: (options?: LocaleTextOptions | Ref<LocaleTextOptions | undefined> | ComputedRef<LocaleTextOptions | undefined>) => {
87
+ readonly common: {
88
+ readonly loadingText: string;
89
+ readonly emptyText: string;
90
+ };
91
+ readonly dataTable: {
92
+ readonly loadingText: string;
93
+ readonly emptyText: string;
94
+ readonly selectedSuffix: string;
95
+ readonly clearSelectionLabel: string;
96
+ readonly selectAllAriaLabel: string;
97
+ readonly selectRowAriaLabel: string;
98
+ };
99
+ readonly autocomplete: {
100
+ readonly loadingText: string;
101
+ readonly emptyText: string;
102
+ };
103
+ readonly combobox: {
104
+ readonly loadingText: string;
105
+ readonly emptyText: string;
106
+ readonly clearValueAriaLabel: string;
107
+ };
108
+ readonly multiSelect: {
109
+ readonly loadingText: string;
110
+ readonly emptyText: string;
111
+ readonly searchPlaceholder: string;
112
+ readonly clearSelectionAriaLabel: string;
113
+ readonly removeItemAriaLabel: string;
114
+ };
115
+ readonly tagInput: {
116
+ readonly loadingText: string;
117
+ readonly emptyText: string;
118
+ readonly clearTagsAriaLabel: string;
119
+ readonly removeTagAriaLabelPrefix: string;
120
+ };
121
+ readonly treeSelect: {
122
+ readonly loadingText: string;
123
+ readonly emptyText: string;
124
+ readonly searchPlaceholder: string;
125
+ readonly clearSelectionAriaLabel: string;
126
+ };
127
+ readonly mentionInput: {
128
+ readonly loadingText: string;
129
+ readonly emptyText: string;
130
+ };
131
+ readonly commandPalette: {
132
+ readonly placeholder: string;
133
+ readonly emptyText: string;
134
+ readonly ariaLabel: string;
135
+ readonly scopeAllLabel: string;
136
+ readonly recentLabel: string;
137
+ };
138
+ readonly notificationCenter: {
139
+ readonly title: string;
140
+ readonly emptyText: string;
141
+ readonly markAllLabel: string;
142
+ readonly clearLabel: string;
143
+ readonly closeLabel: string;
144
+ readonly readLabel: string;
145
+ readonly unreadLabel: string;
146
+ readonly filterAllLabel: string;
147
+ readonly filterUnreadLabel: string;
148
+ readonly filterReadLabel: string;
149
+ };
150
+ readonly virtualScroller: {
151
+ readonly ariaLabel: string;
152
+ readonly emptyText: string;
153
+ };
154
+ readonly filterChips: {
155
+ readonly clearText: string;
156
+ readonly clearLabel: string;
157
+ };
158
+ readonly chip: {
159
+ readonly closeLabel: string;
160
+ };
161
+ };
85
162
  export declare const useLocaleText: () => {
86
163
  readonly common: {
87
164
  readonly loadingText: string;