@vuetify/nightly 3.7.4-master.2024-11-24 → 3.7.4-master.2024-11-29

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 (58) hide show
  1. package/dist/json/attributes.json +2905 -2905
  2. package/dist/json/importMap-labs.json +26 -26
  3. package/dist/json/importMap.json +158 -158
  4. package/dist/json/web-types.json +5578 -5578
  5. package/dist/vuetify-labs.css +3489 -3489
  6. package/dist/vuetify-labs.d.ts +199 -199
  7. package/dist/vuetify-labs.esm.js +48 -46
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +48 -46
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +1248 -1248
  12. package/dist/vuetify.d.ts +182 -182
  13. package/dist/vuetify.esm.js +42 -39
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +42 -39
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +26 -25
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
  21. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  22. package/lib/components/VAutocomplete/index.d.mts +28 -28
  23. package/lib/components/VChip/VChip.mjs +1 -1
  24. package/lib/components/VChip/VChip.mjs.map +1 -1
  25. package/lib/components/VChip/index.d.mts +9 -9
  26. package/lib/components/VCombobox/VCombobox.mjs +4 -4
  27. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  28. package/lib/components/VCombobox/index.d.mts +28 -28
  29. package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
  30. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  31. package/lib/components/VDatePicker/index.d.mts +6 -6
  32. package/lib/components/VList/VList.mjs +3 -2
  33. package/lib/components/VList/VList.mjs.map +1 -1
  34. package/lib/components/VList/index.d.mts +12 -12
  35. package/lib/components/VSelect/VSelect.mjs +3 -3
  36. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  37. package/lib/components/VSelect/index.d.mts +28 -28
  38. package/lib/components/VStepper/VStepper.mjs +5 -4
  39. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  40. package/lib/components/VStepper/VStepperItem.mjs +5 -4
  41. package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
  42. package/lib/components/VStepper/index.d.mts +58 -52
  43. package/lib/components/index.d.mts +126 -126
  44. package/lib/composables/form.mjs +7 -2
  45. package/lib/composables/form.mjs.map +1 -1
  46. package/lib/composables/validation.mjs +10 -12
  47. package/lib/composables/validation.mjs.map +1 -1
  48. package/lib/entry-bundler.mjs +1 -1
  49. package/lib/framework.mjs +1 -1
  50. package/lib/index.d.mts +56 -56
  51. package/lib/labs/VNumberInput/VNumberInput.mjs +3 -3
  52. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  53. package/lib/labs/VStepperVertical/index.d.mts +51 -51
  54. package/lib/labs/VTreeview/VTreeviewItem.mjs +3 -4
  55. package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
  56. package/lib/labs/VTreeview/index.d.mts +22 -22
  57. package/lib/labs/components.d.mts +73 -73
  58. package/package.json +1 -1
@@ -83,9 +83,9 @@ declare const VStepperVertical: {
83
83
  rounded?: string | number | boolean | undefined;
84
84
  selectedClass?: string | undefined;
85
85
  bgColor?: string | undefined;
86
- completeIcon?: string | undefined;
87
- editIcon?: string | undefined;
88
- errorIcon?: string | undefined;
86
+ completeIcon?: IconValue | undefined;
87
+ editIcon?: IconValue | undefined;
88
+ errorIcon?: IconValue | undefined;
89
89
  } & {
90
90
  $children?: vue.VNodeChild | {
91
91
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -172,9 +172,9 @@ declare const VStepperVertical: {
172
172
  rounded?: string | number | boolean | undefined;
173
173
  selectedClass?: string | undefined;
174
174
  bgColor?: string | undefined;
175
- completeIcon?: string | undefined;
176
- editIcon?: string | undefined;
177
- errorIcon?: string | undefined;
175
+ completeIcon?: IconValue | undefined;
176
+ editIcon?: IconValue | undefined;
177
+ errorIcon?: IconValue | undefined;
178
178
  } & {
179
179
  $children?: vue.VNodeChild | {
180
180
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -308,9 +308,9 @@ declare const VStepperVertical: {
308
308
  rounded?: string | number | boolean | undefined;
309
309
  selectedClass?: string | undefined;
310
310
  bgColor?: string | undefined;
311
- completeIcon?: string | undefined;
312
- editIcon?: string | undefined;
313
- errorIcon?: string | undefined;
311
+ completeIcon?: IconValue | undefined;
312
+ editIcon?: IconValue | undefined;
313
+ errorIcon?: IconValue | undefined;
314
314
  } & {
315
315
  $children?: vue.VNodeChild | {
316
316
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -428,9 +428,9 @@ declare const VStepperVertical: {
428
428
  rounded?: string | number | boolean | undefined;
429
429
  selectedClass?: string | undefined;
430
430
  bgColor?: string | undefined;
431
- completeIcon?: string | undefined;
432
- editIcon?: string | undefined;
433
- errorIcon?: string | undefined;
431
+ completeIcon?: IconValue | undefined;
432
+ editIcon?: IconValue | undefined;
433
+ errorIcon?: IconValue | undefined;
434
434
  } & {
435
435
  $children?: vue.VNodeChild | {
436
436
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -586,10 +586,10 @@ declare const VStepperVertical: {
586
586
  };
587
587
  mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
588
588
  altLabels: BooleanConstructor;
589
- completeIcon: StringConstructor;
590
- editIcon: StringConstructor;
589
+ completeIcon: vue.PropType<IconValue>;
590
+ editIcon: vue.PropType<IconValue>;
591
591
  editable: BooleanConstructor;
592
- errorIcon: StringConstructor;
592
+ errorIcon: vue.PropType<IconValue>;
593
593
  items: {
594
594
  type: vue.PropType<readonly StepperItem[]>;
595
595
  default: () => never[];
@@ -676,10 +676,10 @@ declare const VStepperVertical: {
676
676
  };
677
677
  mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
678
678
  altLabels: BooleanConstructor;
679
- completeIcon: StringConstructor;
680
- editIcon: StringConstructor;
679
+ completeIcon: vue.PropType<IconValue>;
680
+ editIcon: vue.PropType<IconValue>;
681
681
  editable: BooleanConstructor;
682
- errorIcon: StringConstructor;
682
+ errorIcon: vue.PropType<IconValue>;
683
683
  items: {
684
684
  type: vue.PropType<readonly StepperItem[]>;
685
685
  default: () => never[];
@@ -723,10 +723,10 @@ declare const VStepperVerticalItem: {
723
723
  collapseIcon: IconValue;
724
724
  expandIcon: IconValue;
725
725
  hideActions: boolean;
726
- completeIcon: string;
726
+ completeIcon: IconValue;
727
727
  editable: boolean;
728
- editIcon: string;
729
- errorIcon: string;
728
+ editIcon: IconValue;
729
+ errorIcon: IconValue;
730
730
  } & {
731
731
  height?: string | number | undefined;
732
732
  width?: string | number | undefined;
@@ -739,7 +739,7 @@ declare const VStepperVerticalItem: {
739
739
  title?: string | undefined;
740
740
  text?: string | undefined;
741
741
  class?: any;
742
- icon?: string | undefined;
742
+ icon?: IconValue | undefined;
743
743
  elevation?: string | number | undefined;
744
744
  rounded?: string | number | boolean | undefined;
745
745
  selectedClass?: string | undefined;
@@ -810,10 +810,10 @@ declare const VStepperVerticalItem: {
810
810
  collapseIcon: IconValue;
811
811
  expandIcon: IconValue;
812
812
  hideActions: boolean;
813
- completeIcon: string;
813
+ completeIcon: IconValue;
814
814
  editable: boolean;
815
- editIcon: string;
816
- errorIcon: string;
815
+ editIcon: IconValue;
816
+ errorIcon: IconValue;
817
817
  } & {
818
818
  height?: string | number | undefined;
819
819
  width?: string | number | undefined;
@@ -826,7 +826,7 @@ declare const VStepperVerticalItem: {
826
826
  title?: string | undefined;
827
827
  text?: string | undefined;
828
828
  class?: any;
829
- icon?: string | undefined;
829
+ icon?: IconValue | undefined;
830
830
  elevation?: string | number | undefined;
831
831
  rounded?: string | number | boolean | undefined;
832
832
  selectedClass?: string | undefined;
@@ -894,10 +894,10 @@ declare const VStepperVerticalItem: {
894
894
  collapseIcon: IconValue;
895
895
  expandIcon: IconValue;
896
896
  hideActions: boolean;
897
- completeIcon: string;
897
+ completeIcon: IconValue;
898
898
  editable: boolean;
899
- editIcon: string;
900
- errorIcon: string;
899
+ editIcon: IconValue;
900
+ errorIcon: IconValue;
901
901
  }, true, {}, vue.SlotsType<Partial<{
902
902
  default: (arg: StepperItemSlot) => vue.VNode[];
903
903
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -935,10 +935,10 @@ declare const VStepperVerticalItem: {
935
935
  collapseIcon: IconValue;
936
936
  expandIcon: IconValue;
937
937
  hideActions: boolean;
938
- completeIcon: string;
938
+ completeIcon: IconValue;
939
939
  editable: boolean;
940
- editIcon: string;
941
- errorIcon: string;
940
+ editIcon: IconValue;
941
+ errorIcon: IconValue;
942
942
  } & {
943
943
  height?: string | number | undefined;
944
944
  width?: string | number | undefined;
@@ -951,7 +951,7 @@ declare const VStepperVerticalItem: {
951
951
  title?: string | undefined;
952
952
  text?: string | undefined;
953
953
  class?: any;
954
- icon?: string | undefined;
954
+ icon?: IconValue | undefined;
955
955
  elevation?: string | number | undefined;
956
956
  rounded?: string | number | boolean | undefined;
957
957
  selectedClass?: string | undefined;
@@ -1019,10 +1019,10 @@ declare const VStepperVerticalItem: {
1019
1019
  collapseIcon: IconValue;
1020
1020
  expandIcon: IconValue;
1021
1021
  hideActions: boolean;
1022
- completeIcon: string;
1022
+ completeIcon: IconValue;
1023
1023
  editable: boolean;
1024
- editIcon: string;
1025
- errorIcon: string;
1024
+ editIcon: IconValue;
1025
+ errorIcon: IconValue;
1026
1026
  }>;
1027
1027
  __isFragment?: never;
1028
1028
  __isTeleport?: never;
@@ -1045,10 +1045,10 @@ declare const VStepperVerticalItem: {
1045
1045
  collapseIcon: IconValue;
1046
1046
  expandIcon: IconValue;
1047
1047
  hideActions: boolean;
1048
- completeIcon: string;
1048
+ completeIcon: IconValue;
1049
1049
  editable: boolean;
1050
- editIcon: string;
1051
- errorIcon: string;
1050
+ editIcon: IconValue;
1051
+ errorIcon: IconValue;
1052
1052
  } & {
1053
1053
  height?: string | number | undefined;
1054
1054
  width?: string | number | undefined;
@@ -1061,7 +1061,7 @@ declare const VStepperVerticalItem: {
1061
1061
  title?: string | undefined;
1062
1062
  text?: string | undefined;
1063
1063
  class?: any;
1064
- icon?: string | undefined;
1064
+ icon?: IconValue | undefined;
1065
1065
  elevation?: string | number | undefined;
1066
1066
  rounded?: string | number | boolean | undefined;
1067
1067
  selectedClass?: string | undefined;
@@ -1133,10 +1133,10 @@ declare const VStepperVerticalItem: {
1133
1133
  collapseIcon: IconValue;
1134
1134
  expandIcon: IconValue;
1135
1135
  hideActions: boolean;
1136
- completeIcon: string;
1136
+ completeIcon: IconValue;
1137
1137
  editable: boolean;
1138
- editIcon: string;
1139
- errorIcon: string;
1138
+ editIcon: IconValue;
1139
+ errorIcon: IconValue;
1140
1140
  }, {}, string, vue.SlotsType<Partial<{
1141
1141
  default: (arg: StepperItemSlot) => vue.VNode[];
1142
1142
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -1206,20 +1206,20 @@ declare const VStepperVerticalItem: {
1206
1206
  subtitle: StringConstructor;
1207
1207
  complete: BooleanConstructor;
1208
1208
  completeIcon: {
1209
- type: StringConstructor;
1209
+ type: vue.PropType<IconValue>;
1210
1210
  default: string;
1211
1211
  };
1212
1212
  editable: BooleanConstructor;
1213
1213
  editIcon: {
1214
- type: StringConstructor;
1214
+ type: vue.PropType<IconValue>;
1215
1215
  default: string;
1216
1216
  };
1217
1217
  error: BooleanConstructor;
1218
1218
  errorIcon: {
1219
- type: StringConstructor;
1219
+ type: vue.PropType<IconValue>;
1220
1220
  default: string;
1221
1221
  };
1222
- icon: StringConstructor;
1222
+ icon: vue.PropType<IconValue>;
1223
1223
  rules: {
1224
1224
  type: vue.PropType<readonly ValidationRule[]>;
1225
1225
  default: () => never[];
@@ -1282,20 +1282,20 @@ declare const VStepperVerticalItem: {
1282
1282
  subtitle: StringConstructor;
1283
1283
  complete: BooleanConstructor;
1284
1284
  completeIcon: {
1285
- type: StringConstructor;
1285
+ type: vue.PropType<IconValue>;
1286
1286
  default: string;
1287
1287
  };
1288
1288
  editable: BooleanConstructor;
1289
1289
  editIcon: {
1290
- type: StringConstructor;
1290
+ type: vue.PropType<IconValue>;
1291
1291
  default: string;
1292
1292
  };
1293
1293
  error: BooleanConstructor;
1294
1294
  errorIcon: {
1295
- type: StringConstructor;
1295
+ type: vue.PropType<IconValue>;
1296
1296
  default: string;
1297
1297
  };
1298
- icon: StringConstructor;
1298
+ icon: vue.PropType<IconValue>;
1299
1299
  rules: {
1300
1300
  type: vue.PropType<readonly ValidationRule[]>;
1301
1301
  default: () => never[];
@@ -33,9 +33,8 @@ export const VTreeviewItem = genericComponent()({
33
33
  const vListItemRef = ref();
34
34
  const isActivatableGroupActivator = computed(() => vListItemRef.value?.root.activatable.value && vListItemRef.value?.isGroupActivator);
35
35
  const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value || props.value != null && !!vListItemRef.value?.list || isActivatableGroupActivator.value));
36
- function activateItem(e) {
37
- if (!isClickable.value || !isActivatableGroupActivator.value && vListItemRef.value?.isGroupActivator) return;
38
- if (vListItemRef.value?.root.activatable.value) {
36
+ function activateGroupActivator(e) {
37
+ if (isClickable.value && isActivatableGroupActivator.value) {
39
38
  vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e);
40
39
  }
41
40
  }
@@ -54,7 +53,7 @@ export const VTreeviewItem = genericComponent()({
54
53
  'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id)
55
54
  }, props.class],
56
55
  "ripple": false,
57
- "onClick": props.onClick ?? activateItem
56
+ "onClick": props.onClick ?? activateGroupActivator
58
57
  }), {
59
58
  ...slots,
60
59
  prepend: hasPrepend ? slotProps => {
@@ -1 +1 @@
1
- {"version":3,"file":"VTreeviewItem.mjs","names":["VBtn","VListItemAction","makeVListItemProps","VListItem","VProgressCircular","IconValue","useLink","computed","inject","ref","EventProp","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","makeVTreeviewItemProps","loading","Boolean","onToggleExpand","toggleIcon","slim","VTreeviewItem","name","props","setup","_ref","attrs","slots","emit","link","vListItemRef","isActivatableGroupActivator","value","root","activatable","isGroupActivator","isClickable","disabled","list","activateItem","e","activate","isActivated","visibleIds","listItemProps","filterProps","hasPrepend","prepend","_createVNode","_mergeProps","has","id","class","onClick","slotProps","_Fragment","default","loader","undefined"],"sources":["../../../src/labs/VTreeview/VTreeviewItem.tsx"],"sourcesContent":["// Styles\nimport './VTreeviewItem.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VListItemAction } from '@/components/VList'\nimport { makeVListItemProps, VListItem } from '@/components/VList/VListItem'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { useLink } from '@/composables/router'\n\n// Utilities\nimport { computed, inject, ref } from 'vue'\nimport { EventProp, genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\n\nexport const makeVTreeviewItemProps = propsFactory({\n loading: Boolean,\n onToggleExpand: EventProp<[MouseEvent]>(),\n toggleIcon: IconValue,\n\n ...makeVListItemProps({ slim: true }),\n}, 'VTreeviewItem')\n\nexport const VTreeviewItem = genericComponent<VListItemSlots>()({\n name: 'VTreeviewItem',\n\n props: makeVTreeviewItemProps(),\n\n setup (props, { attrs, slots, emit }) {\n const link = useLink(props, attrs)\n const vListItemRef = ref<VListItem>()\n\n const isActivatableGroupActivator = computed(() =>\n (vListItemRef.value?.root.activatable.value) &&\n vListItemRef.value?.isGroupActivator\n )\n\n const isClickable = computed(() =>\n !props.disabled &&\n props.link !== false &&\n (props.link || link.isClickable.value || (props.value != null && !!vListItemRef.value?.list) || isActivatableGroupActivator.value)\n )\n\n function activateItem (e: MouseEvent | KeyboardEvent) {\n if (\n !isClickable.value ||\n (!isActivatableGroupActivator.value && vListItemRef.value?.isGroupActivator)\n ) return\n\n if (vListItemRef.value?.root.activatable.value) {\n vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e)\n }\n }\n\n const visibleIds = inject(VTreeviewSymbol, { visibleIds: ref() }).visibleIds\n\n useRender(() => {\n const listItemProps = omit(VListItem.filterProps(props), ['onClick'])\n const hasPrepend = slots.prepend || props.toggleIcon\n\n return (\n <VListItem\n ref={ vListItemRef }\n { ...listItemProps }\n active={ vListItemRef.value?.isActivated }\n class={[\n 'v-treeview-item',\n {\n 'v-treeview-item--activatable-group-activator': isActivatableGroupActivator.value,\n 'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id),\n },\n props.class,\n ]}\n ripple={ false }\n onClick={ props.onClick ?? activateItem }\n >\n {{\n ...slots,\n prepend: hasPrepend ? slotProps => {\n return (\n <>\n { props.toggleIcon && (\n <VListItemAction start={ false }>\n <VBtn\n density=\"compact\"\n icon={ props.toggleIcon }\n loading={ props.loading }\n variant=\"text\"\n onClick={ props.onToggleExpand }\n >\n {{\n loader () {\n return (\n <VProgressCircular\n indeterminate=\"disable-shrink\"\n size=\"20\"\n width=\"2\"\n />\n )\n },\n }}\n </VBtn>\n </VListItemAction>\n )}\n\n { slots.prepend?.(slotProps) }\n </>\n )\n } : undefined,\n }}\n </VListItem>\n )\n })\n\n return {}\n },\n})\n\nexport type VTreeviewItem = InstanceType<typeof VTreeviewItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,eAAe;AAAA,SACfC,kBAAkB,EAAEC,SAAS;AAAA,SAC7BC,iBAAiB,wDAE1B;AAAA,SACSC,SAAS;AAAA,SACTC,OAAO,wCAEhB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,GAAG,QAAQ,KAAK;AAA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CAAAjD,IAAA;cAAA;cAAA,QAGnBwB,KAAK,CAACJ,UAAU;cAAA,WACbI,KAAK,CAACP,OAAO;cAAA;cAAA,WAEbO,KAAK,CAACL;YAAc;cAG5BuC,MAAMA,CAAA,EAAI;gBACR,OAAAT,YAAA,CAAA7C,iBAAA;kBAAA;kBAAA;kBAAA;gBAAA;cAOF;YAAC;UAAA,EAIR,EAECwB,KAAK,CAACoB,OAAO,GAAGO,SAAS,CAAC;QAGlC,CAAC,GAAGI;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VTreeviewItem.mjs","names":["VBtn","VListItemAction","makeVListItemProps","VListItem","VProgressCircular","IconValue","useLink","computed","inject","ref","EventProp","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","makeVTreeviewItemProps","loading","Boolean","onToggleExpand","toggleIcon","slim","VTreeviewItem","name","props","setup","_ref","attrs","slots","emit","link","vListItemRef","isActivatableGroupActivator","value","root","activatable","isGroupActivator","isClickable","disabled","list","activateGroupActivator","e","activate","isActivated","visibleIds","listItemProps","filterProps","hasPrepend","prepend","_createVNode","_mergeProps","has","id","class","onClick","slotProps","_Fragment","default","loader","undefined"],"sources":["../../../src/labs/VTreeview/VTreeviewItem.tsx"],"sourcesContent":["// Styles\nimport './VTreeviewItem.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VListItemAction } from '@/components/VList'\nimport { makeVListItemProps, VListItem } from '@/components/VList/VListItem'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { useLink } from '@/composables/router'\n\n// Utilities\nimport { computed, inject, ref } from 'vue'\nimport { EventProp, genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\n\nexport const makeVTreeviewItemProps = propsFactory({\n loading: Boolean,\n onToggleExpand: EventProp<[MouseEvent]>(),\n toggleIcon: IconValue,\n\n ...makeVListItemProps({ slim: true }),\n}, 'VTreeviewItem')\n\nexport const VTreeviewItem = genericComponent<VListItemSlots>()({\n name: 'VTreeviewItem',\n\n props: makeVTreeviewItemProps(),\n\n setup (props, { attrs, slots, emit }) {\n const link = useLink(props, attrs)\n const vListItemRef = ref<VListItem>()\n\n const isActivatableGroupActivator = computed(() =>\n (vListItemRef.value?.root.activatable.value) &&\n vListItemRef.value?.isGroupActivator\n )\n\n const isClickable = computed(() =>\n !props.disabled &&\n props.link !== false &&\n (props.link || link.isClickable.value || (props.value != null && !!vListItemRef.value?.list) || isActivatableGroupActivator.value)\n )\n\n function activateGroupActivator (e: MouseEvent | KeyboardEvent) {\n if (isClickable.value && isActivatableGroupActivator.value) {\n vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e)\n }\n }\n\n const visibleIds = inject(VTreeviewSymbol, { visibleIds: ref() }).visibleIds\n\n useRender(() => {\n const listItemProps = omit(VListItem.filterProps(props), ['onClick'])\n const hasPrepend = slots.prepend || props.toggleIcon\n\n return (\n <VListItem\n ref={ vListItemRef }\n { ...listItemProps }\n active={ vListItemRef.value?.isActivated }\n class={[\n 'v-treeview-item',\n {\n 'v-treeview-item--activatable-group-activator': isActivatableGroupActivator.value,\n 'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id),\n },\n props.class,\n ]}\n ripple={ false }\n onClick={ props.onClick ?? activateGroupActivator }\n >\n {{\n ...slots,\n prepend: hasPrepend ? slotProps => {\n return (\n <>\n { props.toggleIcon && (\n <VListItemAction start={ false }>\n <VBtn\n density=\"compact\"\n icon={ props.toggleIcon }\n loading={ props.loading }\n variant=\"text\"\n onClick={ props.onToggleExpand }\n >\n {{\n loader () {\n return (\n <VProgressCircular\n indeterminate=\"disable-shrink\"\n size=\"20\"\n width=\"2\"\n />\n )\n },\n }}\n </VBtn>\n </VListItemAction>\n )}\n\n { slots.prepend?.(slotProps) }\n </>\n )\n } : undefined,\n }}\n </VListItem>\n )\n })\n\n return {}\n },\n})\n\nexport type VTreeviewItem = InstanceType<typeof VTreeviewItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,eAAe;AAAA,SACfC,kBAAkB,EAAEC,SAAS;AAAA,SAC7BC,iBAAiB,wDAE1B;AAAA,SACSC,SAAS;AAAA,SACTC,OAAO,wCAEhB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAClCC,SAAS,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAEnE;AAAA,SACSC,eAAe;AAGxB,OAAO,MAAMC,sBAAsB,GAAGH,YAAY,CAAC;EACjDI,OAAO,EAAEC,OAAO;EAChBC,cAAc,EAAET,SAAS,CAAe,CAAC;EACzCU,UAAU,EAAEf,SAAS;EAErB,GAAGH,kBAAkB,CAAC;IAAEmB,IAAI,EAAE;EAAK,CAAC;AACtC,CAAC,EAAE,eAAe,CAAC;AAEnB,OAAO,MAAMC,aAAa,GAAGX,gBAAgB,CAAiB,CAAC,CAAC;EAC9DY,IAAI,EAAE,eAAe;EAErBC,KAAK,EAAER,sBAAsB,CAAC,CAAC;EAE/BS,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAA0B;IAAA,IAAxB;MAAEC,KAAK;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAAH,IAAA;IAClC,MAAMI,IAAI,GAAGxB,OAAO,CAACkB,KAAK,EAAEG,KAAK,CAAC;IAClC,MAAMI,YAAY,GAAGtB,GAAG,CAAY,CAAC;IAErC,MAAMuB,2BAA2B,GAAGzB,QAAQ,CAAC,MAC1CwB,YAAY,CAACE,KAAK,EAAEC,IAAI,CAACC,WAAW,CAACF,KAAK,IAC3CF,YAAY,CAACE,KAAK,EAAEG,gBACtB,CAAC;IAED,MAAMC,WAAW,GAAG9B,QAAQ,CAAC,MAC3B,CAACi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B;QAG/C,GAAGZ,KAAK;QACRoB,OAAO,EAAED,UAAU,GAAGQ,SAAS,IAAI;UACjC,OAAAN,YAAA,CAAAO,SAAA,SAEMhC,KAAK,CAACJ,UAAU,IAAA6B,YAAA,CAAAhD,eAAA;YAAA,SACS;UAAK;YAAAwD,OAAA,EAAAA,CAAA,MAAAR,YAAA,CAAAjD,IAAA;cAAA;cAAA,QAGnBwB,KAAK,CAACJ,UAAU;cAAA,WACbI,KAAK,CAACP,OAAO;cAAA;cAAA,WAEbO,KAAK,CAACL;YAAc;cAG5BuC,MAAMA,CAAA,EAAI;gBACR,OAAAT,YAAA,CAAA7C,iBAAA;kBAAA;kBAAA;kBAAA;gBAAA;cAOF;YAAC;UAAA,EAIR,EAECwB,KAAK,CAACoB,OAAO,GAAGO,SAAS,CAAC;QAGlC,CAAC,GAAGI;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -191,8 +191,8 @@ declare const VTreeview: {
191
191
  activatable: boolean;
192
192
  selectable: boolean;
193
193
  selectStrategy: SelectStrategyProp;
194
- collapseIcon: string;
195
- expandIcon: string;
194
+ collapseIcon: IconValue;
195
+ expandIcon: IconValue;
196
196
  returnObject: boolean;
197
197
  filterMode: FilterMode;
198
198
  noFilter: boolean;
@@ -289,8 +289,8 @@ declare const VTreeview: {
289
289
  activatable: boolean;
290
290
  selectable: boolean;
291
291
  selectStrategy: SelectStrategyProp;
292
- collapseIcon: string;
293
- expandIcon: string;
292
+ collapseIcon: IconValue;
293
+ expandIcon: IconValue;
294
294
  returnObject: boolean;
295
295
  filterMode: FilterMode;
296
296
  noFilter: boolean;
@@ -373,8 +373,8 @@ declare const VTreeview: {
373
373
  activatable: boolean;
374
374
  selectable: boolean;
375
375
  selectStrategy: SelectStrategyProp;
376
- collapseIcon: string;
377
- expandIcon: string;
376
+ collapseIcon: IconValue;
377
+ expandIcon: IconValue;
378
378
  returnObject: boolean;
379
379
  filterMode: FilterMode;
380
380
  noFilter: boolean;
@@ -435,8 +435,8 @@ declare const VTreeview: {
435
435
  activatable: boolean;
436
436
  selectable: boolean;
437
437
  selectStrategy: SelectStrategyProp;
438
- collapseIcon: string;
439
- expandIcon: string;
438
+ collapseIcon: IconValue;
439
+ expandIcon: IconValue;
440
440
  returnObject: boolean;
441
441
  filterMode: FilterMode;
442
442
  noFilter: boolean;
@@ -519,8 +519,8 @@ declare const VTreeview: {
519
519
  activatable: boolean;
520
520
  selectable: boolean;
521
521
  selectStrategy: SelectStrategyProp;
522
- collapseIcon: string;
523
- expandIcon: string;
522
+ collapseIcon: IconValue;
523
+ expandIcon: IconValue;
524
524
  returnObject: boolean;
525
525
  filterMode: FilterMode;
526
526
  noFilter: boolean;
@@ -552,8 +552,8 @@ declare const VTreeview: {
552
552
  activatable: boolean;
553
553
  selectable: boolean;
554
554
  selectStrategy: SelectStrategyProp;
555
- collapseIcon: string;
556
- expandIcon: string;
555
+ collapseIcon: IconValue;
556
+ expandIcon: IconValue;
557
557
  returnObject: boolean;
558
558
  filterMode: FilterMode;
559
559
  noFilter: boolean;
@@ -651,8 +651,8 @@ declare const VTreeview: {
651
651
  activatable: boolean;
652
652
  selectable: boolean;
653
653
  selectStrategy: SelectStrategyProp;
654
- collapseIcon: string;
655
- expandIcon: string;
654
+ collapseIcon: IconValue;
655
+ expandIcon: IconValue;
656
656
  returnObject: boolean;
657
657
  filterMode: FilterMode;
658
658
  noFilter: boolean;
@@ -771,12 +771,12 @@ declare const VTreeview: {
771
771
  };
772
772
  'onUpdate:opened': vue.PropType<() => void>;
773
773
  collapseIcon: {
774
- type: vue.PropType<string>;
775
- default: string;
774
+ type: vue.PropType<IconValue>;
775
+ default: NonNullable<IconValue>;
776
776
  };
777
777
  expandIcon: {
778
- type: vue.PropType<string>;
779
- default: string;
778
+ type: vue.PropType<IconValue>;
779
+ default: NonNullable<IconValue>;
780
780
  };
781
781
  returnObject: BooleanConstructor;
782
782
  itemTitle: {
@@ -913,12 +913,12 @@ declare const VTreeview: {
913
913
  };
914
914
  'onUpdate:opened': vue.PropType<() => void>;
915
915
  collapseIcon: {
916
- type: vue.PropType<string>;
917
- default: string;
916
+ type: vue.PropType<IconValue>;
917
+ default: NonNullable<IconValue>;
918
918
  };
919
919
  expandIcon: {
920
- type: vue.PropType<string>;
921
- default: string;
920
+ type: vue.PropType<IconValue>;
921
+ default: NonNullable<IconValue>;
922
922
  };
923
923
  returnObject: BooleanConstructor;
924
924
  itemTitle: {