@antcde/component-library 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/node_modules/vuetify/dist/json/attributes.json +2538 -2534
  2. package/node_modules/vuetify/dist/json/importMap-labs.json +28 -28
  3. package/node_modules/vuetify/dist/json/importMap.json +152 -152
  4. package/node_modules/vuetify/dist/json/tags.json +3 -2
  5. package/node_modules/vuetify/dist/json/web-types.json +4773 -4741
  6. package/node_modules/vuetify/dist/vuetify-labs.css +3461 -3460
  7. package/node_modules/vuetify/dist/vuetify-labs.d.ts +435 -197
  8. package/node_modules/vuetify/dist/vuetify-labs.esm.js +155 -123
  9. package/node_modules/vuetify/dist/vuetify-labs.esm.js.map +1 -1
  10. package/node_modules/vuetify/dist/vuetify-labs.js +154 -122
  11. package/node_modules/vuetify/dist/vuetify-labs.min.css +2 -2
  12. package/node_modules/vuetify/dist/vuetify.css +4307 -4306
  13. package/node_modules/vuetify/dist/vuetify.d.ts +383 -203
  14. package/node_modules/vuetify/dist/vuetify.esm.js +100 -65
  15. package/node_modules/vuetify/dist/vuetify.esm.js.map +1 -1
  16. package/node_modules/vuetify/dist/vuetify.js +99 -64
  17. package/node_modules/vuetify/dist/vuetify.js.map +1 -1
  18. package/node_modules/vuetify/dist/vuetify.min.css +2 -2
  19. package/node_modules/vuetify/dist/vuetify.min.js +470 -469
  20. package/node_modules/vuetify/dist/vuetify.min.js.map +1 -1
  21. package/node_modules/vuetify/lib/components/VAppBar/index.d.mts +15 -6
  22. package/node_modules/vuetify/lib/components/VAutocomplete/index.d.mts +23 -8
  23. package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs +2 -2
  24. package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs.map +1 -1
  25. package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs +6 -3
  26. package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs.map +1 -1
  27. package/node_modules/vuetify/lib/components/VBtn/index.d.mts +15 -6
  28. package/node_modules/vuetify/lib/components/VCard/VCard.mjs +12 -3
  29. package/node_modules/vuetify/lib/components/VCard/VCard.mjs.map +1 -1
  30. package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs +11 -4
  31. package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs.map +1 -1
  32. package/node_modules/vuetify/lib/components/VCard/index.d.mts +75 -30
  33. package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs +1 -1
  34. package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  35. package/node_modules/vuetify/lib/components/VChip/VChip.mjs +6 -3
  36. package/node_modules/vuetify/lib/components/VChip/VChip.mjs.map +1 -1
  37. package/node_modules/vuetify/lib/components/VChip/index.d.mts +15 -6
  38. package/node_modules/vuetify/lib/components/VCombobox/index.d.mts +23 -8
  39. package/node_modules/vuetify/lib/components/VDataIterator/index.d.mts +2 -2
  40. package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs +3 -1
  41. package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs.map +1 -1
  42. package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs +2 -2
  43. package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
  44. package/node_modules/vuetify/lib/components/VDataTable/index.d.mts +34 -34
  45. package/node_modules/vuetify/lib/components/VDataTable/types.mjs.map +1 -1
  46. package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs +5 -5
  47. package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
  48. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
  49. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
  50. package/node_modules/vuetify/lib/components/VDialog/index.d.mts +21 -6
  51. package/node_modules/vuetify/lib/components/VFab/index.d.mts +15 -6
  52. package/node_modules/vuetify/lib/components/VField/VField.mjs +1 -6
  53. package/node_modules/vuetify/lib/components/VField/VField.mjs.map +1 -1
  54. package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs +2 -2
  55. package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  56. package/node_modules/vuetify/lib/components/VList/VListItem.mjs +11 -5
  57. package/node_modules/vuetify/lib/components/VList/VListItem.mjs.map +1 -1
  58. package/node_modules/vuetify/lib/components/VList/index.d.mts +32 -14
  59. package/node_modules/vuetify/lib/components/VMenu/index.d.mts +21 -6
  60. package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs +10 -1
  61. package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  62. package/node_modules/vuetify/lib/components/VOverlay/index.d.mts +6 -0
  63. package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +3 -3
  64. package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs.map +1 -1
  65. package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs +1 -1
  66. package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs.map +1 -1
  67. package/node_modules/vuetify/lib/components/VRating/VRating.mjs +1 -1
  68. package/node_modules/vuetify/lib/components/VRating/VRating.mjs.map +1 -1
  69. package/node_modules/vuetify/lib/components/VSelect/index.d.mts +23 -8
  70. package/node_modules/vuetify/lib/components/VSlider/slider.mjs +1 -1
  71. package/node_modules/vuetify/lib/components/VSlider/slider.mjs.map +1 -1
  72. package/node_modules/vuetify/lib/components/VSnackbar/index.d.mts +21 -6
  73. package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs +1 -1
  74. package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs.map +1 -1
  75. package/node_modules/vuetify/lib/components/VTabs/index.d.mts +39 -24
  76. package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +2 -2
  77. package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs.map +1 -1
  78. package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +4 -4
  79. package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  80. package/node_modules/vuetify/lib/components/VToolbar/VToolbar.css +1 -0
  81. package/node_modules/vuetify/lib/components/VToolbar/VToolbar.sass +1 -0
  82. package/node_modules/vuetify/lib/components/VTooltip/index.d.mts +21 -6
  83. package/node_modules/vuetify/lib/components/index.d.mts +330 -150
  84. package/node_modules/vuetify/lib/composables/stack.mjs +2 -2
  85. package/node_modules/vuetify/lib/composables/stack.mjs.map +1 -1
  86. package/node_modules/vuetify/lib/composables/theme.mjs +1 -1
  87. package/node_modules/vuetify/lib/composables/theme.mjs.map +1 -1
  88. package/node_modules/vuetify/lib/composables/validation.mjs +2 -2
  89. package/node_modules/vuetify/lib/composables/validation.mjs.map +1 -1
  90. package/node_modules/vuetify/lib/entry-bundler.mjs +1 -1
  91. package/node_modules/vuetify/lib/framework.mjs +1 -1
  92. package/node_modules/vuetify/lib/index.d.mts +53 -53
  93. package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs +4 -3
  94. package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  95. package/node_modules/vuetify/lib/labs/VDateInput/index.d.mts +10 -10
  96. package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs +3 -2
  97. package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs.map +1 -1
  98. package/node_modules/vuetify/lib/labs/VFileUpload/index.d.mts +32 -14
  99. package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs +5 -5
  100. package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  101. package/node_modules/vuetify/lib/labs/VSnackbarQueue/index.d.mts +21 -6
  102. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs +30 -31
  103. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs.map +1 -1
  104. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs +14 -13
  105. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
  106. package/node_modules/vuetify/lib/labs/VTimePicker/index.d.mts +35 -13
  107. package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs +2 -0
  108. package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs.map +1 -0
  109. package/node_modules/vuetify/lib/labs/VTreeview/index.d.mts +32 -14
  110. package/node_modules/vuetify/lib/labs/components.d.mts +128 -55
  111. package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs +1 -1
  112. package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs.map +1 -1
  113. package/node_modules/vuetify/lib/util/animation.mjs +8 -8
  114. package/node_modules/vuetify/lib/util/animation.mjs.map +1 -1
  115. package/node_modules/vuetify/lib/util/helpers.mjs +6 -4
  116. package/node_modules/vuetify/lib/util/helpers.mjs.map +1 -1
  117. package/node_modules/vuetify/package.json +2 -2
  118. package/package.json +3 -3
  119. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
  120. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
  121. package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs +0 -10
  122. package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs.map +0 -1
@@ -136,8 +136,8 @@ type DataTableHeader<T = Record<string, any>> = {
136
136
  fixed?: boolean;
137
137
  align?: 'start' | 'end' | 'center';
138
138
  width?: number | string;
139
- minWidth?: string;
140
- maxWidth?: string;
139
+ minWidth?: number | string;
140
+ maxWidth?: number | string;
141
141
  nowrap?: boolean;
142
142
  headerProps?: Record<string, any>;
143
143
  cellProps?: HeaderCellProps;
@@ -2070,8 +2070,8 @@ declare const VDataTableVirtual: {
2070
2070
  readonly fixed?: boolean | undefined;
2071
2071
  readonly align?: ("start" | "end" | "center") | undefined;
2072
2072
  readonly width?: (number | string) | undefined;
2073
- readonly minWidth?: string | undefined;
2074
- readonly maxWidth?: string | undefined;
2073
+ readonly minWidth?: (number | string) | undefined;
2074
+ readonly maxWidth?: (number | string) | undefined;
2075
2075
  readonly nowrap?: boolean | undefined;
2076
2076
  readonly headerProps?: {
2077
2077
  readonly [x: string]: any;
@@ -2090,8 +2090,8 @@ declare const VDataTableVirtual: {
2090
2090
  readonly fixed?: boolean | undefined;
2091
2091
  readonly align?: ("start" | "end" | "center") | undefined;
2092
2092
  readonly width?: (number | string) | undefined;
2093
- readonly minWidth?: string | undefined;
2094
- readonly maxWidth?: string | undefined;
2093
+ readonly minWidth?: (number | string) | undefined;
2094
+ readonly maxWidth?: (number | string) | undefined;
2095
2095
  readonly nowrap?: boolean | undefined;
2096
2096
  readonly headerProps?: {
2097
2097
  readonly [x: string]: any;
@@ -2170,8 +2170,8 @@ declare const VDataTableVirtual: {
2170
2170
  readonly fixed?: boolean | undefined;
2171
2171
  readonly align?: ("start" | "end" | "center") | undefined;
2172
2172
  readonly width?: (number | string) | undefined;
2173
- readonly minWidth?: string | undefined;
2174
- readonly maxWidth?: string | undefined;
2173
+ readonly minWidth?: (number | string) | undefined;
2174
+ readonly maxWidth?: (number | string) | undefined;
2175
2175
  readonly nowrap?: boolean | undefined;
2176
2176
  readonly headerProps?: {
2177
2177
  readonly [x: string]: any;
@@ -2190,8 +2190,8 @@ declare const VDataTableVirtual: {
2190
2190
  readonly fixed?: boolean | undefined;
2191
2191
  readonly align?: ("start" | "end" | "center") | undefined;
2192
2192
  readonly width?: (number | string) | undefined;
2193
- readonly minWidth?: string | undefined;
2194
- readonly maxWidth?: string | undefined;
2193
+ readonly minWidth?: (number | string) | undefined;
2194
+ readonly maxWidth?: (number | string) | undefined;
2195
2195
  readonly nowrap?: boolean | undefined;
2196
2196
  readonly headerProps?: {
2197
2197
  readonly [x: string]: any;
@@ -2344,8 +2344,8 @@ declare const VDataTableVirtual: {
2344
2344
  readonly fixed?: boolean | undefined;
2345
2345
  readonly align?: ("start" | "end" | "center") | undefined;
2346
2346
  readonly width?: (number | string) | undefined;
2347
- readonly minWidth?: string | undefined;
2348
- readonly maxWidth?: string | undefined;
2347
+ readonly minWidth?: (number | string) | undefined;
2348
+ readonly maxWidth?: (number | string) | undefined;
2349
2349
  readonly nowrap?: boolean | undefined;
2350
2350
  readonly headerProps?: {
2351
2351
  readonly [x: string]: any;
@@ -2364,8 +2364,8 @@ declare const VDataTableVirtual: {
2364
2364
  readonly fixed?: boolean | undefined;
2365
2365
  readonly align?: ("start" | "end" | "center") | undefined;
2366
2366
  readonly width?: (number | string) | undefined;
2367
- readonly minWidth?: string | undefined;
2368
- readonly maxWidth?: string | undefined;
2367
+ readonly minWidth?: (number | string) | undefined;
2368
+ readonly maxWidth?: (number | string) | undefined;
2369
2369
  readonly nowrap?: boolean | undefined;
2370
2370
  readonly headerProps?: {
2371
2371
  readonly [x: string]: any;
@@ -2474,8 +2474,8 @@ declare const VDataTableVirtual: {
2474
2474
  readonly fixed?: boolean | undefined;
2475
2475
  readonly align?: ("start" | "end" | "center") | undefined;
2476
2476
  readonly width?: (number | string) | undefined;
2477
- readonly minWidth?: string | undefined;
2478
- readonly maxWidth?: string | undefined;
2477
+ readonly minWidth?: (number | string) | undefined;
2478
+ readonly maxWidth?: (number | string) | undefined;
2479
2479
  readonly nowrap?: boolean | undefined;
2480
2480
  readonly headerProps?: {
2481
2481
  readonly [x: string]: any;
@@ -2494,8 +2494,8 @@ declare const VDataTableVirtual: {
2494
2494
  readonly fixed?: boolean | undefined;
2495
2495
  readonly align?: ("start" | "end" | "center") | undefined;
2496
2496
  readonly width?: (number | string) | undefined;
2497
- readonly minWidth?: string | undefined;
2498
- readonly maxWidth?: string | undefined;
2497
+ readonly minWidth?: (number | string) | undefined;
2498
+ readonly maxWidth?: (number | string) | undefined;
2499
2499
  readonly nowrap?: boolean | undefined;
2500
2500
  readonly headerProps?: {
2501
2501
  readonly [x: string]: any;
@@ -2899,8 +2899,8 @@ declare const VDataTableServer: {
2899
2899
  readonly fixed?: boolean | undefined;
2900
2900
  readonly align?: ("start" | "end" | "center") | undefined;
2901
2901
  readonly width?: (number | string) | undefined;
2902
- readonly minWidth?: string | undefined;
2903
- readonly maxWidth?: string | undefined;
2902
+ readonly minWidth?: (number | string) | undefined;
2903
+ readonly maxWidth?: (number | string) | undefined;
2904
2904
  readonly nowrap?: boolean | undefined;
2905
2905
  readonly headerProps?: {
2906
2906
  readonly [x: string]: any;
@@ -2919,8 +2919,8 @@ declare const VDataTableServer: {
2919
2919
  readonly fixed?: boolean | undefined;
2920
2920
  readonly align?: ("start" | "end" | "center") | undefined;
2921
2921
  readonly width?: (number | string) | undefined;
2922
- readonly minWidth?: string | undefined;
2923
- readonly maxWidth?: string | undefined;
2922
+ readonly minWidth?: (number | string) | undefined;
2923
+ readonly maxWidth?: (number | string) | undefined;
2924
2924
  readonly nowrap?: boolean | undefined;
2925
2925
  readonly headerProps?: {
2926
2926
  readonly [x: string]: any;
@@ -3015,8 +3015,8 @@ declare const VDataTableServer: {
3015
3015
  readonly fixed?: boolean | undefined;
3016
3016
  readonly align?: ("start" | "end" | "center") | undefined;
3017
3017
  readonly width?: (number | string) | undefined;
3018
- readonly minWidth?: string | undefined;
3019
- readonly maxWidth?: string | undefined;
3018
+ readonly minWidth?: (number | string) | undefined;
3019
+ readonly maxWidth?: (number | string) | undefined;
3020
3020
  readonly nowrap?: boolean | undefined;
3021
3021
  readonly headerProps?: {
3022
3022
  readonly [x: string]: any;
@@ -3035,8 +3035,8 @@ declare const VDataTableServer: {
3035
3035
  readonly fixed?: boolean | undefined;
3036
3036
  readonly align?: ("start" | "end" | "center") | undefined;
3037
3037
  readonly width?: (number | string) | undefined;
3038
- readonly minWidth?: string | undefined;
3039
- readonly maxWidth?: string | undefined;
3038
+ readonly minWidth?: (number | string) | undefined;
3039
+ readonly maxWidth?: (number | string) | undefined;
3040
3040
  readonly nowrap?: boolean | undefined;
3041
3041
  readonly headerProps?: {
3042
3042
  readonly [x: string]: any;
@@ -3221,8 +3221,8 @@ declare const VDataTableServer: {
3221
3221
  readonly fixed?: boolean | undefined;
3222
3222
  readonly align?: ("start" | "end" | "center") | undefined;
3223
3223
  readonly width?: (number | string) | undefined;
3224
- readonly minWidth?: string | undefined;
3225
- readonly maxWidth?: string | undefined;
3224
+ readonly minWidth?: (number | string) | undefined;
3225
+ readonly maxWidth?: (number | string) | undefined;
3226
3226
  readonly nowrap?: boolean | undefined;
3227
3227
  readonly headerProps?: {
3228
3228
  readonly [x: string]: any;
@@ -3241,8 +3241,8 @@ declare const VDataTableServer: {
3241
3241
  readonly fixed?: boolean | undefined;
3242
3242
  readonly align?: ("start" | "end" | "center") | undefined;
3243
3243
  readonly width?: (number | string) | undefined;
3244
- readonly minWidth?: string | undefined;
3245
- readonly maxWidth?: string | undefined;
3244
+ readonly minWidth?: (number | string) | undefined;
3245
+ readonly maxWidth?: (number | string) | undefined;
3246
3246
  readonly nowrap?: boolean | undefined;
3247
3247
  readonly headerProps?: {
3248
3248
  readonly [x: string]: any;
@@ -3379,8 +3379,8 @@ declare const VDataTableServer: {
3379
3379
  readonly fixed?: boolean | undefined;
3380
3380
  readonly align?: ("start" | "end" | "center") | undefined;
3381
3381
  readonly width?: (number | string) | undefined;
3382
- readonly minWidth?: string | undefined;
3383
- readonly maxWidth?: string | undefined;
3382
+ readonly minWidth?: (number | string) | undefined;
3383
+ readonly maxWidth?: (number | string) | undefined;
3384
3384
  readonly nowrap?: boolean | undefined;
3385
3385
  readonly headerProps?: {
3386
3386
  readonly [x: string]: any;
@@ -3399,8 +3399,8 @@ declare const VDataTableServer: {
3399
3399
  readonly fixed?: boolean | undefined;
3400
3400
  readonly align?: ("start" | "end" | "center") | undefined;
3401
3401
  readonly width?: (number | string) | undefined;
3402
- readonly minWidth?: string | undefined;
3403
- readonly maxWidth?: string | undefined;
3402
+ readonly minWidth?: (number | string) | undefined;
3403
+ readonly maxWidth?: (number | string) | undefined;
3404
3404
  readonly nowrap?: boolean | undefined;
3405
3405
  readonly headerProps?: {
3406
3406
  readonly [x: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/VDataTable/types.ts"],"sourcesContent":["// Types\nimport type { provideExpanded } from './composables/expand'\nimport type { Group, GroupableItem, provideGroupBy } from './composables/group'\nimport type { provideSelection, SelectableItem } from './composables/select'\nimport type { FilterFunction, InternalItem } from '@/composables/filter'\nimport type { SelectItemKey } from '@/util'\n\nexport type DataTableCompareFunction<T = any> = (a: T, b: T) => number | null\n\nexport type DataTableHeader<T = Record<string, any>> = {\n key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {})\n value?: SelectItemKey<T>\n title?: string\n\n fixed?: boolean\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: string\n maxWidth?: string\n nowrap?: boolean\n\n headerProps?: Record<string, any>\n cellProps?: HeaderCellProps\n\n sortable?: boolean\n sort?: DataTableCompareFunction\n sortRaw?: DataTableCompareFunction\n filter?: FilterFunction\n\n children?: DataTableHeader<T>[]\n}\n\nexport type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {\n key: string | null\n value: SelectItemKey | null\n sortable: boolean\n fixedOffset?: number\n lastFixed?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends InternalItem<T>, GroupableItem<T>, SelectableItem {\n key: any\n index: number\n columns: {\n [key: string]: any\n }\n}\n\nexport type GroupHeaderSlot = {\n index: number\n item: Group\n columns: InternalDataTableHeader[]\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup']\n isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen']\n}\n\ntype ItemSlotBase<T> = {\n index: number\n item: T\n internalItem: DataTableItem<T>\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n}\n\nexport type ItemSlot<T> = ItemSlotBase<T> & {\n columns: InternalDataTableHeader[]\n}\n\nexport type ItemKeySlot<T> = ItemSlotBase<T> & {\n value: any\n column: InternalDataTableHeader\n}\n\nexport type RowProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>)\n\nexport type CellProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>)\n\nexport type HeaderCellProps =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>)\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/VDataTable/types.ts"],"sourcesContent":["// Types\nimport type { provideExpanded } from './composables/expand'\nimport type { Group, GroupableItem, provideGroupBy } from './composables/group'\nimport type { provideSelection, SelectableItem } from './composables/select'\nimport type { FilterFunction, InternalItem } from '@/composables/filter'\nimport type { SelectItemKey } from '@/util'\n\nexport type DataTableCompareFunction<T = any> = (a: T, b: T) => number | null\n\nexport type DataTableHeader<T = Record<string, any>> = {\n key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {})\n value?: SelectItemKey<T>\n title?: string\n\n fixed?: boolean\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: number | string\n maxWidth?: number | string\n nowrap?: boolean\n\n headerProps?: Record<string, any>\n cellProps?: HeaderCellProps\n\n sortable?: boolean\n sort?: DataTableCompareFunction\n sortRaw?: DataTableCompareFunction\n filter?: FilterFunction\n\n children?: DataTableHeader<T>[]\n}\n\nexport type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {\n key: string | null\n value: SelectItemKey | null\n sortable: boolean\n fixedOffset?: number\n lastFixed?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends InternalItem<T>, GroupableItem<T>, SelectableItem {\n key: any\n index: number\n columns: {\n [key: string]: any\n }\n}\n\nexport type GroupHeaderSlot = {\n index: number\n item: Group\n columns: InternalDataTableHeader[]\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup']\n isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen']\n}\n\ntype ItemSlotBase<T> = {\n index: number\n item: T\n internalItem: DataTableItem<T>\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n}\n\nexport type ItemSlot<T> = ItemSlotBase<T> & {\n columns: InternalDataTableHeader[]\n}\n\nexport type ItemKeySlot<T> = ItemSlotBase<T> & {\n value: any\n column: InternalDataTableHeader\n}\n\nexport type RowProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>)\n\nexport type CellProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>)\n\nexport type HeaderCellProps =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>)\n"],"mappings":"","ignoreList":[]}
@@ -79,30 +79,30 @@ export const VDatePickerControls = genericComponent()({
79
79
  "class": ['v-date-picker-controls']
80
80
  }, [_createVNode(VBtn, {
81
81
  "class": "v-date-picker-controls__month-btn",
82
+ "data-testid": "month-btn",
82
83
  "disabled": disableMonth.value,
83
84
  "text": props.text,
84
85
  "variant": "text",
85
86
  "rounded": true,
86
87
  "onClick": onClickMonth
87
88
  }, null), _createVNode(VBtn, {
88
- "key": "mode-btn",
89
89
  "class": "v-date-picker-controls__mode-btn",
90
+ "data-testid": "year-btn",
90
91
  "disabled": disableYear.value,
91
92
  "density": "comfortable",
92
93
  "icon": props.modeIcon,
93
94
  "variant": "text",
94
95
  "onClick": onClickYear
95
- }, null), _createVNode(VSpacer, {
96
- "key": "mode-spacer"
97
- }, null), _createVNode("div", {
98
- "key": "month-buttons",
96
+ }, null), _createVNode(VSpacer, null, null), _createVNode("div", {
99
97
  "class": "v-date-picker-controls__month"
100
98
  }, [_createVNode(VBtn, {
99
+ "data-testid": "prev-month",
101
100
  "disabled": disablePrev.value,
102
101
  "icon": props.prevIcon,
103
102
  "variant": "text",
104
103
  "onClick": onClickPrev
105
104
  }, null), _createVNode(VBtn, {
105
+ "data-testid": "next-month",
106
106
  "disabled": disableNext.value,
107
107
  "icon": props.nextIcon,
108
108
  "variant": "text",
@@ -1 +1 @@
1
- {"version":3,"file":"VDatePickerControls.mjs","names":["VBtn","VSpacer","IconValue","computed","genericComponent","propsFactory","useRender","makeVDatePickerControlsProps","active","type","String","Array","default","undefined","disabled","Boolean","nextIcon","prevIcon","modeIcon","text","viewMode","VDatePickerControls","name","props","emits","click:year","click:month","click:prev","click:next","click:text","setup","_ref","emit","disableMonth","isArray","includes","disableYear","disablePrev","disableNext","onClickPrev","onClickNext","onClickYear","onClickMonth","_createVNode","value"],"sources":["../../../src/components/VDatePicker/VDatePickerControls.tsx"],"sourcesContent":["// Styles\nimport './VDatePickerControls.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VSpacer } from '@/components/VGrid'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed } from 'vue'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const makeVDatePickerControlsProps = propsFactory({\n active: {\n type: [String, Array] as PropType<string | string[]>,\n default: undefined,\n },\n disabled: {\n type: [Boolean, String, Array] as PropType<boolean | string | string[] | null>,\n default: null,\n },\n nextIcon: {\n type: IconValue,\n default: '$next',\n },\n prevIcon: {\n type: IconValue,\n default: '$prev',\n },\n modeIcon: {\n type: IconValue,\n default: '$subgroup',\n },\n text: String,\n viewMode: {\n type: String as PropType<'month' | 'months' | 'year'>,\n default: 'month',\n },\n}, 'VDatePickerControls')\n\nexport const VDatePickerControls = genericComponent()({\n name: 'VDatePickerControls',\n\n props: makeVDatePickerControlsProps(),\n\n emits: {\n 'click:year': () => true,\n 'click:month': () => true,\n 'click:prev': () => true,\n 'click:next': () => true,\n 'click:text': () => true,\n },\n\n setup (props, { emit }) {\n const disableMonth = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('text')\n : !!props.disabled\n })\n const disableYear = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('mode')\n : !!props.disabled\n })\n const disablePrev = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('prev')\n : !!props.disabled\n })\n const disableNext = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('next')\n : !!props.disabled\n })\n\n function onClickPrev () {\n emit('click:prev')\n }\n\n function onClickNext () {\n emit('click:next')\n }\n\n function onClickYear () {\n emit('click:year')\n }\n\n function onClickMonth () {\n emit('click:month')\n }\n\n useRender(() => {\n // TODO: add slot support and scope defaults\n return (\n <div\n class={[\n 'v-date-picker-controls',\n ]}\n >\n <VBtn\n class=\"v-date-picker-controls__month-btn\"\n disabled={ disableMonth.value }\n text={ props.text }\n variant=\"text\"\n rounded\n onClick={ onClickMonth }\n ></VBtn>\n\n <VBtn\n key=\"mode-btn\"\n class=\"v-date-picker-controls__mode-btn\"\n disabled={ disableYear.value }\n density=\"comfortable\"\n icon={ props.modeIcon }\n variant=\"text\"\n onClick={ onClickYear }\n />\n\n <VSpacer key=\"mode-spacer\" />\n\n <div\n key=\"month-buttons\"\n class=\"v-date-picker-controls__month\"\n >\n <VBtn\n disabled={ disablePrev.value }\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ onClickPrev }\n />\n\n <VBtn\n disabled={ disableNext.value }\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ onClickNext }\n />\n </div>\n </div>\n )\n })\n\n return {}\n },\n})\n\nexport type VDatePickerControls = InstanceType<typeof VDatePickerControls>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,OAAO,8BAEhB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAGA,OAAO,MAAMC,4BAA4B,GAAGF,YAAY,CAAC;EACvDG,MAAM,EAAE;IACNC,IAAI,EAAE,CAACC,MAAM,EAAEC,KAAK,CAAgC;IACpDC,OAAO,EAAEC;EACX,CAAC;EACDC,QAAQ,EAAE;IACRL,IAAI,EAAE,CAACM,OAAO,EAAEL,MAAM,EAAEC,KAAK,CAAiD;IAC9EC,OAAO,EAAE;EACX,CAAC;EACDI,QAAQ,EAAE;IACRP,IAAI,EAAEP,SAAS;IACfU,OAAO,EAAE;EACX,CAAC;EACDK,QAAQ,EAAE;IACRR,IAAI,EAAEP,SAAS;IACfU,OAAO,EAAE;EACX,CAAC;EACDM,QAAQ,EAAE;IACRT,IAAI,EAAEP,SAAS;IACfU,OAAO,EAAE;EACX,CAAC;EACDO,IAAI,EAAET,MAAM;EACZU,QAAQ,EAAE;IACRX,IAAI,EAAEC,MAA+C;IACrDE,OAAO,EAAE;EACX;AACF,CAAC,EAAE,qBAAqB,CAAC;AAEzB,OAAO,MAAMS,mBAAmB,GAAGjB,gBAAgB,CAAC,CAAC,CAAC;EACpDk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,CAAC,CAACZ,KAAK,CAACT,QAAQ;IACtB,CAAC,CAAC;IAEF,SAASyB,WAAWA,CAAA,EAAI;MACtBP,IAAI,CAAC,YAAY,CAAC;IACpB;IAEA,SAASQ,WAAWA,CAAA,EAAI;MACtBR,IAAI,CAAC,YAAY,CAAC;IACpB;IAEA,SAASS,WAAWA,CAAA,EAAI;MACtBT,IAAI,CAAC,YAAY,CAAC;IACpB;IAEA,SAASU,YAAYA,CAAA,EAAI;MACvBV,IAAI,CAAC,aAAa,CAAC;IACrB;IAEA1B,SAAS,CAAC,MAAM;MACd;MACA,OAAAqC,YAAA;QAAA,SAEW,CACL,wBAAwB;MACzB,IAAAA,YAAA,CAAA3C,IAAA;QAAA;QAAA,YAIYiC,YAAY,CAACW,KAAK;QAAA,QACtBrB,KAAK,CAACJ,IAAI;QAAA;QAAA;QAAA,WAGPuB;MAAY,UAAAC,YAAA,CAAA3C,IAAA;QAAA;QAAA;QAAA,YAMXoC,WAAW,CAACQ,KAAK;QAAA;QAAA,QAErBrB,KAAK,CAACL,QAAQ;QAAA;QAAA,WAEXuB;MAAW,UAAAE,YAAA,CAAA1C,OAAA;QAAA;MAAA,UAAA0C,YAAA;QAAA;QAAA;MAAA,IAAAA,YAAA,CAAA3C,IAAA;QAAA,YAURqC,WAAW,CAACO,KAAK;QAAA,QACrBrB,KAAK,CAACN,QAAQ;QAAA;QAAA,WAEXsB;MAAW,UAAAI,YAAA,CAAA3C,IAAA;QAAA,YAIVsC,WAAW,CAACM,KAAK;QAAA,QACrBrB,KAAK,CAACP,QAAQ;QAAA;QAAA,WAEXwB;MAAW;IAK/B,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VDatePickerControls.mjs","names":["VBtn","VSpacer","IconValue","computed","genericComponent","propsFactory","useRender","makeVDatePickerControlsProps","active","type","String","Array","default","undefined","disabled","Boolean","nextIcon","prevIcon","modeIcon","text","viewMode","VDatePickerControls","name","props","emits","click:year","click:month","click:prev","click:next","click:text","setup","_ref","emit","disableMonth","isArray","includes","disableYear","disablePrev","disableNext","onClickPrev","onClickNext","onClickYear","onClickMonth","_createVNode","value"],"sources":["../../../src/components/VDatePicker/VDatePickerControls.tsx"],"sourcesContent":["// Styles\nimport './VDatePickerControls.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VSpacer } from '@/components/VGrid'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed } from 'vue'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const makeVDatePickerControlsProps = propsFactory({\n active: {\n type: [String, Array] as PropType<string | string[]>,\n default: undefined,\n },\n disabled: {\n type: [Boolean, String, Array] as PropType<boolean | string | string[] | null>,\n default: null,\n },\n nextIcon: {\n type: IconValue,\n default: '$next',\n },\n prevIcon: {\n type: IconValue,\n default: '$prev',\n },\n modeIcon: {\n type: IconValue,\n default: '$subgroup',\n },\n text: String,\n viewMode: {\n type: String as PropType<'month' | 'months' | 'year'>,\n default: 'month',\n },\n}, 'VDatePickerControls')\n\nexport const VDatePickerControls = genericComponent()({\n name: 'VDatePickerControls',\n\n props: makeVDatePickerControlsProps(),\n\n emits: {\n 'click:year': () => true,\n 'click:month': () => true,\n 'click:prev': () => true,\n 'click:next': () => true,\n 'click:text': () => true,\n },\n\n setup (props, { emit }) {\n const disableMonth = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('text')\n : !!props.disabled\n })\n const disableYear = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('mode')\n : !!props.disabled\n })\n const disablePrev = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('prev')\n : !!props.disabled\n })\n const disableNext = computed(() => {\n return Array.isArray(props.disabled)\n ? props.disabled.includes('next')\n : !!props.disabled\n })\n\n function onClickPrev () {\n emit('click:prev')\n }\n\n function onClickNext () {\n emit('click:next')\n }\n\n function onClickYear () {\n emit('click:year')\n }\n\n function onClickMonth () {\n emit('click:month')\n }\n\n useRender(() => {\n // TODO: add slot support and scope defaults\n return (\n <div\n class={[\n 'v-date-picker-controls',\n ]}\n >\n <VBtn\n class=\"v-date-picker-controls__month-btn\"\n data-testid=\"month-btn\"\n disabled={ disableMonth.value }\n text={ props.text }\n variant=\"text\"\n rounded\n onClick={ onClickMonth }\n ></VBtn>\n\n <VBtn\n class=\"v-date-picker-controls__mode-btn\"\n data-testid=\"year-btn\"\n disabled={ disableYear.value }\n density=\"comfortable\"\n icon={ props.modeIcon }\n variant=\"text\"\n onClick={ onClickYear }\n />\n\n <VSpacer />\n\n <div class=\"v-date-picker-controls__month\">\n <VBtn\n data-testid=\"prev-month\"\n disabled={ disablePrev.value }\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ onClickPrev }\n />\n\n <VBtn\n data-testid=\"next-month\"\n disabled={ disableNext.value }\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ onClickNext }\n />\n </div>\n </div>\n )\n })\n\n return {}\n },\n})\n\nexport type VDatePickerControls = InstanceType<typeof VDatePickerControls>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,OAAO,8BAEhB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAGA,OAAO,MAAMC,4BAA4B,GAAGF,YAAY,CAAC;EACvDG,MAAM,EAAE;IACNC,IAAI,EAAE,CAACC,MAAM,EAAEC,KAAK,CAAgC;IACpDC,OAAO,EAAEC;EACX,CAAC;EACDC,QAAQ,EAAE;IACRL,IAAI,EAAE,CAACM,OAAO,EAAEL,MAAM,EAAEC,KAAK,CAAiD;IAC9EC,OAAO,EAAE;EACX,CAAC;EACDI,QAAQ,EAAE;IACRP,IAAI,EAAEP,SAAS;IACfU,OAAO,EAAE;EACX,CAAC;EACDK,QAAQ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QAAA,YAKVsC,WAAW,CAACM,KAAK;QAAA,QACrBrB,KAAK,CAACP,QAAQ;QAAA;QAAA,WAEXwB;MAAW;IAK/B,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
2
+ // Components
3
+ import { VDialog } from "../VDialog.mjs"; // Utilities
4
+ import { render, screen, userEvent } from '@test';
5
+ import { nextTick, ref } from 'vue';
6
+
7
+ // Tests
8
+ describe('VDialog', () => {
9
+ it('should render correctly', async () => {
10
+ const model = ref(false);
11
+ const {
12
+ element
13
+ } = render(() => _createVNode("div", null, [_createVNode(VDialog, {
14
+ "modelValue": model.value,
15
+ "onUpdate:modelValue": $event => model.value = $event,
16
+ "data-testid": "dialog"
17
+ }, {
18
+ default: () => [_createVNode("div", {
19
+ "data-testid": "content"
20
+ }, [_createTextVNode("Content")])]
21
+ })]));
22
+ expect(screen.queryByTestId('dialog')).toBeNull();
23
+ model.value = true;
24
+ await nextTick();
25
+ await expect(screen.findByTestId('dialog')).resolves.toBeVisible();
26
+ await expect.element(await screen.findByTestId('content')).toBeVisible();
27
+ await userEvent.click(element);
28
+ await expect.poll(() => model.value).toBeFalsy();
29
+ await expect.poll(() => screen.queryByTestId('dialog')).toBeNull();
30
+ await expect.poll(() => screen.queryByTestId('content')).toBeNull();
31
+ });
32
+ it('should emit afterLeave', async () => {
33
+ const model = ref(true);
34
+ const onAfterLeave = vi.fn();
35
+ const {
36
+ element
37
+ } = render(() => _createVNode("div", null, [_createVNode(VDialog, {
38
+ "modelValue": model.value,
39
+ "onUpdate:modelValue": $event => model.value = $event,
40
+ "onAfterLeave": onAfterLeave
41
+ }, {
42
+ default: () => [_createVNode("div", {
43
+ "data-test": "content"
44
+ }, [_createTextVNode("Content")])]
45
+ })]));
46
+ await userEvent.click(element);
47
+ await expect.poll(() => onAfterLeave).toHaveBeenCalledTimes(1);
48
+ });
49
+ });
50
+ //# sourceMappingURL=VDialog.spec.browser.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VDialog.spec.browser.mjs","names":["VDialog","render","screen","userEvent","nextTick","ref","describe","it","model","element","_createVNode","value","$event","default","_createTextVNode","expect","queryByTestId","toBeNull","findByTestId","resolves","toBeVisible","click","poll","toBeFalsy","onAfterLeave","vi","fn","toHaveBeenCalledTimes"],"sources":["../../../../src/components/VDialog/__test__/VDialog.spec.browser.tsx"],"sourcesContent":["// Components\nimport { VDialog } from '../VDialog'\n\n// Utilities\nimport { render, screen, userEvent } from '@test'\nimport { nextTick, ref } from 'vue'\n\n// Tests\ndescribe('VDialog', () => {\n it('should render correctly', async () => {\n const model = ref(false)\n const { element } = render(() => (\n <div>\n <VDialog v-model={ model.value } data-testid=\"dialog\">\n <div data-testid=\"content\">Content</div>\n </VDialog>\n </div>\n ))\n\n expect(screen.queryByTestId('dialog')).toBeNull()\n\n model.value = true\n await nextTick()\n await expect(screen.findByTestId('dialog')).resolves.toBeVisible()\n await expect.element(await screen.findByTestId('content')).toBeVisible()\n\n await userEvent.click(element)\n await expect.poll(() => model.value).toBeFalsy()\n await expect.poll(() => screen.queryByTestId('dialog')).toBeNull()\n await expect.poll(() => screen.queryByTestId('content')).toBeNull()\n })\n\n it('should emit afterLeave', async () => {\n const model = ref(true)\n const onAfterLeave = vi.fn()\n const { element } = render(() => (\n <div>\n <VDialog v-model={ model.value } onAfterLeave={ onAfterLeave }>\n <div data-test=\"content\">Content</div>\n </VDialog>\n </div>\n ))\n\n await userEvent.click(element)\n await expect.poll(() => onAfterLeave).toHaveBeenCalledTimes(1)\n })\n})\n"],"mappings":";AAAA;AAAA,SACSA,OAAO,0BAEhB;AACA,SAASC,MAAM,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACjD,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;;AAEnC;AACAC,QAAQ,CAAC,SAAS,EAAE,MAAM;EACxBC,E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MmB,YAAY,GAAGC,EAAE,CAACC,EAAE,CAAC,CAAC;IAC5B,MAAM;MAAEjB;IAAQ,CAAC,GAAGR,MAAM,CAAC,MAAAS,YAAA,eAAAA,YAAA,CAAAV,OAAA;MAAA,cAEJQ,KAAK,CAACG,KAAK;MAAA,uBAAAC,MAAA,IAAXJ,KAAK,CAACG,KAAK,GAAAC,MAAA;MAAA,gBAAkBY;IAAY;MAAAX,OAAA,EAAAA,CAAA,MAAAH,YAAA;QAAA;MAAA,IAAAI,gBAAA;IAAA,IAI/D,CAAC;IAEF,MAAMX,SAAS,CAACkB,KAAK,CAACZ,OAAO,CAAC;IAC9B,MAAMM,MAAM,CAACO,IAAI,CAAC,MAAME,YAAY,CAAC,CAACG,qBAAqB,CAAC,CAAC,CAAC;EAChE,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -284,6 +284,7 @@ declare const VDialog: {
284
284
  }) => vue.VNodeChild) | undefined;
285
285
  onAfterEnter?: (() => any) | undefined;
286
286
  onAfterLeave?: (() => any) | undefined;
287
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
287
288
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
288
289
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
289
290
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -366,6 +367,7 @@ declare const VDialog: {
366
367
  } & {
367
368
  onAfterEnter?: (() => any) | undefined;
368
369
  onAfterLeave?: (() => any) | undefined;
370
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
369
371
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
370
372
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
371
373
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -387,7 +389,7 @@ declare const VDialog: {
387
389
  }>;
388
390
  $root: vue.ComponentPublicInstance | null;
389
391
  $parent: vue.ComponentPublicInstance | null;
390
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
392
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
391
393
  $el: any;
392
394
  $options: vue.ComponentOptionsBase<{
393
395
  absolute: boolean;
@@ -469,6 +471,7 @@ declare const VDialog: {
469
471
  } & {
470
472
  onAfterEnter?: (() => any) | undefined;
471
473
  onAfterLeave?: (() => any) | undefined;
474
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
472
475
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
473
476
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
474
477
  }, {
@@ -483,6 +486,7 @@ declare const VDialog: {
483
486
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
484
487
  'click:outside': (e: MouseEvent) => true;
485
488
  'update:modelValue': (value: boolean) => true;
489
+ keydown: (e: KeyboardEvent) => true;
486
490
  afterEnter: () => true;
487
491
  afterLeave: () => true;
488
492
  }, string, {
@@ -621,6 +625,7 @@ declare const VDialog: {
621
625
  } & {
622
626
  onAfterEnter?: (() => any) | undefined;
623
627
  onAfterLeave?: (() => any) | undefined;
628
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
624
629
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
625
630
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
626
631
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -632,7 +637,7 @@ declare const VDialog: {
632
637
  globalTop: Readonly<vue.Ref<boolean>>;
633
638
  localTop: vue.ComputedRef<boolean>;
634
639
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
635
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
640
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
636
641
  _allExposed: {
637
642
  activatorEl: vue.Ref<HTMLElement | undefined>;
638
643
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -970,6 +975,7 @@ declare const VDialog: {
970
975
  }) => vue.VNodeChild) | undefined;
971
976
  onAfterEnter?: (() => any) | undefined;
972
977
  onAfterLeave?: (() => any) | undefined;
978
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
973
979
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
974
980
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
975
981
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -1052,6 +1058,7 @@ declare const VDialog: {
1052
1058
  } & {
1053
1059
  onAfterEnter?: (() => any) | undefined;
1054
1060
  onAfterLeave?: (() => any) | undefined;
1061
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1055
1062
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1056
1063
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1057
1064
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -1073,7 +1080,7 @@ declare const VDialog: {
1073
1080
  }>;
1074
1081
  $root: vue.ComponentPublicInstance | null;
1075
1082
  $parent: vue.ComponentPublicInstance | null;
1076
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1083
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1077
1084
  $el: any;
1078
1085
  $options: vue.ComponentOptionsBase<{
1079
1086
  absolute: boolean;
@@ -1155,6 +1162,7 @@ declare const VDialog: {
1155
1162
  } & {
1156
1163
  onAfterEnter?: (() => any) | undefined;
1157
1164
  onAfterLeave?: (() => any) | undefined;
1165
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1158
1166
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1159
1167
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1160
1168
  }, {
@@ -1169,6 +1177,7 @@ declare const VDialog: {
1169
1177
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1170
1178
  'click:outside': (e: MouseEvent) => true;
1171
1179
  'update:modelValue': (value: boolean) => true;
1180
+ keydown: (e: KeyboardEvent) => true;
1172
1181
  afterEnter: () => true;
1173
1182
  afterLeave: () => true;
1174
1183
  }, string, {
@@ -1307,6 +1316,7 @@ declare const VDialog: {
1307
1316
  } & {
1308
1317
  onAfterEnter?: (() => any) | undefined;
1309
1318
  onAfterLeave?: (() => any) | undefined;
1319
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1310
1320
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1311
1321
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1312
1322
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -1318,7 +1328,7 @@ declare const VDialog: {
1318
1328
  globalTop: Readonly<vue.Ref<boolean>>;
1319
1329
  localTop: vue.ComputedRef<boolean>;
1320
1330
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
1321
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1331
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1322
1332
  _allExposed: {
1323
1333
  activatorEl: vue.Ref<HTMLElement | undefined>;
1324
1334
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -1555,6 +1565,7 @@ declare const VDialog: {
1555
1565
  }) => vue.VNodeChild) | undefined;
1556
1566
  onAfterEnter?: (() => any) | undefined;
1557
1567
  onAfterLeave?: (() => any) | undefined;
1568
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1558
1569
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1559
1570
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1560
1571
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -1637,6 +1648,7 @@ declare const VDialog: {
1637
1648
  } & {
1638
1649
  onAfterEnter?: (() => any) | undefined;
1639
1650
  onAfterLeave?: (() => any) | undefined;
1651
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1640
1652
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1641
1653
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1642
1654
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -1658,7 +1670,7 @@ declare const VDialog: {
1658
1670
  }>;
1659
1671
  $root: vue.ComponentPublicInstance | null;
1660
1672
  $parent: vue.ComponentPublicInstance | null;
1661
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1673
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1662
1674
  $el: any;
1663
1675
  $options: vue.ComponentOptionsBase<{
1664
1676
  absolute: boolean;
@@ -1740,6 +1752,7 @@ declare const VDialog: {
1740
1752
  } & {
1741
1753
  onAfterEnter?: (() => any) | undefined;
1742
1754
  onAfterLeave?: (() => any) | undefined;
1755
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1743
1756
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1744
1757
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1745
1758
  }, {
@@ -1754,6 +1767,7 @@ declare const VDialog: {
1754
1767
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1755
1768
  'click:outside': (e: MouseEvent) => true;
1756
1769
  'update:modelValue': (value: boolean) => true;
1770
+ keydown: (e: KeyboardEvent) => true;
1757
1771
  afterEnter: () => true;
1758
1772
  afterLeave: () => true;
1759
1773
  }, string, {
@@ -1892,6 +1906,7 @@ declare const VDialog: {
1892
1906
  } & {
1893
1907
  onAfterEnter?: (() => any) | undefined;
1894
1908
  onAfterLeave?: (() => any) | undefined;
1909
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1895
1910
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1896
1911
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1897
1912
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -1903,7 +1918,7 @@ declare const VDialog: {
1903
1918
  globalTop: Readonly<vue.Ref<boolean>>;
1904
1919
  localTop: vue.ComputedRef<boolean>;
1905
1920
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
1906
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1921
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1907
1922
  _allExposed: {
1908
1923
  activatorEl: vue.Ref<HTMLElement | undefined>;
1909
1924
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -107,7 +107,7 @@ declare const VFab: {
107
107
  position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
108
108
  value?: any;
109
109
  loading?: string | boolean | undefined;
110
- text?: string | undefined;
110
+ text?: string | number | boolean | undefined;
111
111
  class?: any;
112
112
  theme?: string | undefined;
113
113
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -178,7 +178,7 @@ declare const VFab: {
178
178
  position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
179
179
  value?: any;
180
180
  loading?: string | boolean | undefined;
181
- text?: string | undefined;
181
+ text?: string | number | boolean | undefined;
182
182
  class?: any;
183
183
  theme?: string | undefined;
184
184
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -217,6 +217,7 @@ declare const VFab: {
217
217
  component?: vue.Component;
218
218
  });
219
219
  style: vue.StyleValue;
220
+ text: string | number | boolean;
220
221
  disabled: boolean;
221
222
  size: string | number;
222
223
  readonly: boolean;
@@ -288,7 +289,7 @@ declare const VFab: {
288
289
  position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
289
290
  value?: any;
290
291
  loading?: string | boolean | undefined;
291
- text?: string | undefined;
292
+ text?: string | number | boolean | undefined;
292
293
  class?: any;
293
294
  theme?: string | undefined;
294
295
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -327,6 +328,7 @@ declare const VFab: {
327
328
  component?: vue.Component;
328
329
  });
329
330
  style: vue.StyleValue;
331
+ text: string | number | boolean;
330
332
  disabled: boolean;
331
333
  size: string | number;
332
334
  readonly: boolean;
@@ -393,7 +395,7 @@ declare const VFab: {
393
395
  position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
394
396
  value?: any;
395
397
  loading?: string | boolean | undefined;
396
- text?: string | undefined;
398
+ text?: string | number | boolean | undefined;
397
399
  class?: any;
398
400
  theme?: string | undefined;
399
401
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -434,6 +436,7 @@ declare const VFab: {
434
436
  component?: vue.Component;
435
437
  });
436
438
  style: vue.StyleValue;
439
+ text: string | number | boolean;
437
440
  disabled: boolean;
438
441
  size: string | number;
439
442
  readonly: boolean;
@@ -518,7 +521,10 @@ declare const VFab: {
518
521
  type: vue.PropType<vue.StyleValue>;
519
522
  default: null;
520
523
  };
521
- text: StringConstructor;
524
+ text: {
525
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
526
+ default: undefined;
527
+ };
522
528
  disabled: BooleanConstructor;
523
529
  size: {
524
530
  type: (StringConstructor | NumberConstructor)[];
@@ -636,7 +642,10 @@ declare const VFab: {
636
642
  type: vue.PropType<vue.StyleValue>;
637
643
  default: null;
638
644
  };
639
- text: StringConstructor;
645
+ text: {
646
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
647
+ default: undefined;
648
+ };
640
649
  disabled: BooleanConstructor;
641
650
  size: {
642
651
  type: (StringConstructor | NumberConstructor)[];
@@ -16,7 +16,7 @@ import { useRtl } from "../../composables/locale.mjs";
16
16
  import { makeRoundedProps, useRounded } from "../../composables/rounded.mjs";
17
17
  import { makeThemeProps, provideTheme } from "../../composables/theme.mjs"; // Utilities
18
18
  import { computed, ref, toRef, watch } from 'vue';
19
- import { animate, convertToUnit, EventProp, genericComponent, getUid, isOn, nullifyTransforms, pick, propsFactory, standardEasing, useRender } from "../../util/index.mjs"; // Types
19
+ import { animate, convertToUnit, EventProp, genericComponent, getUid, nullifyTransforms, propsFactory, standardEasing, useRender } from "../../util/index.mjs"; // Types
20
20
  const allowedVariants = ['underlined', 'outlined', 'filled', 'solo', 'solo-inverted', 'solo-filled', 'plain'];
21
21
  export const makeVFieldProps = propsFactory({
22
22
  appendInnerIcon: IconValue,
@@ -301,9 +301,4 @@ export const VField = genericComponent()({
301
301
  };
302
302
  }
303
303
  });
304
- // TODO: this is kinda slow, might be better to implicitly inherit props instead
305
- export function filterFieldProps(attrs) {
306
- const keys = Object.keys(VField.props).filter(k => !isOn(k) && k !== 'class' && k !== 'style');
307
- return pick(attrs, keys);
308
- }
309
304
  //# sourceMappingURL=VField.mjs.map