vuetify 3.7.1 → 3.7.2
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.
- package/dist/json/attributes.json +3 -3
- package/dist/json/importMap-labs.json +24 -24
- package/dist/json/importMap.json +124 -124
- package/dist/json/web-types.json +4 -4
- package/dist/vuetify-labs.css +2653 -2650
- package/dist/vuetify-labs.d.ts +1056 -999
- package/dist/vuetify-labs.esm.js +83 -99
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +83 -99
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2736 -2733
- package/dist/vuetify.d.ts +1016 -959
- package/dist/vuetify.esm.js +62 -43
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +62 -43
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +284 -284
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +10 -10
- package/lib/components/VAppBar/index.d.mts +18 -18
- package/lib/components/VAutocomplete/index.d.mts +112 -109
- package/lib/components/VAvatar/index.d.mts +4 -4
- package/lib/components/VBadge/index.d.mts +4 -4
- package/lib/components/VBanner/index.d.mts +14 -14
- package/lib/components/VBottomNavigation/index.d.mts +4 -4
- package/lib/components/VBottomSheet/index.d.mts +11 -11
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +3 -5
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +4 -4
- package/lib/components/VBtn/VBtn.mjs +3 -4
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.mts +14 -14
- package/lib/components/VBtnGroup/index.d.mts +4 -4
- package/lib/components/VBtnToggle/index.d.mts +4 -4
- package/lib/components/VCard/VCard.mjs +3 -4
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/index.d.mts +14 -14
- package/lib/components/VCarousel/index.d.mts +13 -13
- package/lib/components/VCheckbox/index.d.mts +4 -4
- package/lib/components/VChip/VChip.mjs +2 -3
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +8 -8
- package/lib/components/VChipGroup/index.d.mts +4 -4
- package/lib/components/VColorPicker/index.d.mts +22 -22
- package/lib/components/VCombobox/index.d.mts +112 -109
- package/lib/components/VDataTable/index.d.mts +14 -14
- package/lib/components/VDatePicker/index.d.mts +12 -12
- package/lib/components/VDialog/VDialog.css +4 -1
- package/lib/components/VDialog/VDialog.mjs +1 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +2 -1
- package/lib/components/VDialog/index.d.mts +50 -50
- package/lib/components/VEmptyState/index.d.mts +8 -8
- package/lib/components/VExpansionPanel/index.d.mts +4 -4
- package/lib/components/VFab/index.d.mts +18 -18
- package/lib/components/VFileInput/index.d.mts +6 -6
- package/lib/components/VFooter/index.d.mts +4 -4
- package/lib/components/VIcon/index.d.mts +4 -4
- package/lib/components/VInput/index.d.mts +2 -2
- package/lib/components/VItemGroup/index.d.mts +4 -4
- package/lib/components/VLabel/index.d.mts +4 -4
- package/lib/components/VList/VList.mjs +4 -2
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +8 -6
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +80 -23
- package/lib/components/VMenu/index.d.mts +50 -50
- package/lib/components/VMessages/index.d.mts +8 -8
- package/lib/components/VNavigationDrawer/index.d.mts +18 -18
- package/lib/components/VOtpInput/index.d.mts +4 -4
- package/lib/components/VOverlay/index.d.mts +11 -11
- package/lib/components/VPagination/index.d.mts +4 -4
- package/lib/components/VProgressCircular/index.d.mts +4 -4
- package/lib/components/VRadioGroup/index.d.mts +2 -2
- package/lib/components/VRangeSlider/index.d.mts +8 -8
- package/lib/components/VSelect/index.d.mts +112 -109
- package/lib/components/VSheet/index.d.mts +10 -10
- package/lib/components/VSkeletonLoader/index.d.mts +4 -4
- package/lib/components/VSlider/index.d.mts +8 -8
- package/lib/components/VSnackbar/index.d.mts +62 -62
- package/lib/components/VSpeedDial/index.d.mts +11 -11
- package/lib/components/VStepper/index.d.mts +12 -12
- package/lib/components/VSwitch/index.d.mts +2 -2
- package/lib/components/VSystemBar/index.d.mts +4 -4
- package/lib/components/VTabs/index.d.mts +53 -53
- package/lib/components/VTextField/index.d.mts +13 -13
- package/lib/components/VTextarea/index.d.mts +10 -10
- package/lib/components/VTimeline/index.d.mts +4 -4
- package/lib/components/VToolbar/index.d.mts +4 -4
- package/lib/components/VTooltip/index.d.mts +45 -45
- package/lib/components/VWindow/index.d.mts +6 -6
- package/lib/components/index.d.mts +867 -810
- package/lib/composables/directiveComponent.mjs +1 -1
- package/lib/composables/directiveComponent.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +18 -6
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/openStrategies.mjs +2 -4
- package/lib/composables/nested/openStrategies.mjs.map +1 -1
- package/lib/composables/router.mjs +19 -9
- package/lib/composables/router.mjs.map +1 -1
- package/lib/directives/tooltip/index.mjs +1 -1
- package/lib/directives/tooltip/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +45 -45
- package/lib/labs/VDateInput/index.d.mts +12 -12
- package/lib/labs/VNumberInput/index.d.mts +67 -67
- package/lib/labs/VPicker/index.d.mts +10 -10
- package/lib/labs/VSnackbarQueue/index.d.mts +95 -95
- package/lib/labs/VStepperVertical/index.d.mts +6 -6
- package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
- package/lib/labs/VTimePicker/VTimePicker.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +2 -2
- package/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
- package/lib/labs/VTimePicker/index.d.mts +26 -26
- package/lib/labs/VTimePicker/util.mjs +5 -0
- package/lib/labs/VTimePicker/util.mjs.map +1 -0
- package/lib/labs/VTreeview/VTreeview.mjs +3 -12
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.mjs +9 -20
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +40 -40
- package/lib/labs/components.d.mts +256 -256
- package/package.json +7 -9
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs +0 -21
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs.map +0 -1
- package/lib/components/VDatePicker/util/eventHelpers.mjs +0 -22
- package/lib/components/VDatePicker/util/eventHelpers.mjs.map +0 -1
- package/lib/components/VDatePicker/util/index.mjs +0 -9
- package/lib/components/VDatePicker/util/index.mjs.map +0 -1
- package/lib/components/VDatePicker/util/isDateAllowed.mjs +0 -7
- package/lib/components/VDatePicker/util/isDateAllowed.mjs.map +0 -1
- package/lib/components/VDatePicker/util/monthChange.mjs +0 -18
- package/lib/components/VDatePicker/util/monthChange.mjs.map +0 -1
- package/lib/components/VDatePicker/util/pad.mjs +0 -21
- package/lib/components/VDatePicker/util/pad.mjs.map +0 -1
- package/lib/components/VDatePicker/util/sanitizeDateString.mjs +0 -12
- package/lib/components/VDatePicker/util/sanitizeDateString.mjs.map +0 -1
- package/lib/services/goto/easing-patterns.mjs +0 -27
- package/lib/services/goto/easing-patterns.mjs.map +0 -1
- package/lib/services/goto/index.mjs +0 -73
- package/lib/services/goto/index.mjs.map +0 -1
- package/lib/services/goto/util.mjs +0 -39
- package/lib/services/goto/util.mjs.map +0 -1
|
@@ -105,7 +105,7 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
105
105
|
...itemProps,
|
|
106
106
|
...activatorProps,
|
|
107
107
|
value: itemProps?.value,
|
|
108
|
-
onToggleExpand: activatorProps.onClick,
|
|
108
|
+
onToggleExpand: [() => checkChildren(item), activatorProps.onClick],
|
|
109
109
|
onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : undefined
|
|
110
110
|
};
|
|
111
111
|
return _createVNode(VTreeviewItem, _mergeProps(listItemProps, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTreeviewChildren.mjs","names":["VTreeviewGroup","VTreeviewItem","VCheckboxBtn","IconValue","computed","shallowRef","toRaw","withModifiers","genericComponent","propsFactory","makeVTreeviewChildrenProps","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","Boolean","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","selectable","selectedColor","selectStrategy","Object","VTreeviewChildren","name","props","setup","_ref","emit","slots","isLoading","isClickOnOpen","checkChildren","item","Promise","resolve","length","children","value","then","finally","selectItem","select","isSelected","map","_ref2","itemProps","raw","loading","slotsWithItem","prepend","slotProps","_createVNode","_Fragment","includes","isIndeterminate","e","key","stopPropagation","append","title","treeviewGroupProps","filterProps","treeviewChildrenProps","_mergeProps","activator","_ref3","activatorProps","listItemProps","onToggleExpand","onClick"],"sources":["../../../src/labs/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, shallowRef, toRaw, withModifiers } from 'vue'\nimport { genericComponent, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VListItemSlots, 'default'>]: VListItemSlots[K] & { item: T }\n} & {\n default: never\n item: { props: InternalListItem['props'] }\n}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\n loadChildren: Function as PropType<(item: unknown) => Promise<void>>,\n loadingIcon: {\n type: String,\n default: '$loading',\n },\n items: Array as PropType<readonly InternalListItem[]>,\n openOnClick: {\n type: Boolean,\n default: undefined,\n },\n indeterminateIcon: {\n type: IconValue,\n default: '$checkboxIndeterminate',\n },\n falseIcon: IconValue,\n trueIcon: IconValue,\n returnObject: Boolean,\n selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n}, 'VTreeviewChildren')\n\nexport const VTreeviewChildren = genericComponent<new <T extends InternalListItem>(\n props: {\n items?: readonly T[]\n },\n slots: VTreeviewChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeviewChildren',\n\n props: makeVTreeviewChildrenProps(),\n\n setup (props, { emit, slots }) {\n const isLoading = shallowRef(null)\n\n const isClickOnOpen = computed(() => props.openOnClick != null ? props.openOnClick : props.selectable)\n\n function checkChildren (item: any) {\n return new Promise<void>(resolve => {\n if (!props.items?.length || !props.loadChildren) return resolve()\n\n if (item?.children?.length === 0) {\n isLoading.value = item.value\n props.loadChildren(item).then(resolve)\n\n return\n }\n\n resolve()\n }).finally(() => {\n isLoading.value = null\n })\n }\n\n function selectItem (select: (value: boolean) => void, isSelected: boolean) {\n if (props.selectable) {\n select(!isSelected)\n }\n }\n\n return () => slots.default?.() ?? props.items?.map(({ children, props: itemProps, raw: item }) => {\n const loading = isLoading.value === item.value\n const slotsWithItem = {\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <div>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n loading={ loading }\n color={ props.selectedColor }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onClick={ withModifiers(() => selectItem(slotProps.select, slotProps.isSelected), ['stop']) }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </div>\n )}\n\n { slots.prepend?.({ ...slotProps, item }) }\n </>\n ),\n append: slots.append ? slotProps => slots.append?.({ ...slotProps, item }) : undefined,\n title: slots.title ? slotProps => slots.title?.({ ...slotProps, item }) : undefined,\n } satisfies VTreeviewItem['$props']['$children']\n\n const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps)\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item : treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n onToggleExpand: activatorProps.onClick as any,\n onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] as any : undefined,\n }\n\n return (\n <VTreeviewItem\n { ...listItemProps }\n value={ props.returnObject ? toRaw(item) : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n },\n default: () => (\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n ),\n }}\n </VTreeviewGroup>\n ) : (\n slots.item?.({ props: itemProps }) ?? (\n <VTreeviewItem\n { ...itemProps }\n value={ props.returnObject ? toRaw(item) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n ))\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,aAAa;AAAA,SACbC,YAAY,gDAErB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,aAAa,QAAQ,KAAK;AAAA,SACvDC,gBAAgB,EAAEC,YAAY,gCAE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GAAGqB,cAAc;YACjB7B,KAAK,EAAEQ,SAAS,EAAER,KAAK;YACvB+B,cAAc,EAAEF,cAAc,CAACG,OAAc;YAC7CA,OAAO,EAAEvC,aAAa,CAACO,KAAK,GAAG,CAAC,MAAMN,aAAa,CAACC,IAAI,CAAC,EAAEkC,cAAc,CAACG,OAAO,CAAC,GAAUxD;UAC9F,CAAC;UAED,OAAAsC,YAAA,CAAA1D,aAAA,EAAAsE,WAAA,CAESI,aAAa;YAAA,SACV3C,KAAK,CAACP,YAAY,GAAGnB,KAAK,CAACkC,IAAI,CAAC,GAAGa,SAAS,CAACR,KAAK;YAAA,WAChDU;UAAO,IACPC,aAAa;QAG7B,CAAC;QACDxC,OAAO,EAAEA,CAAA,KAAA2C,YAAA,CAAA7B,iBAAA,EAAAyC,WAAA,CAEAD,qBAAqB;UAAA,SAClB1B,QAAQ;UAAA,gBACDZ,KAAK,CAACP;QAAY,IACvBW,KAAK;MAElB,KAILA,KAAK,CAACI,IAAI,GAAG;QAAER,KAAK,EAAEqB;MAAU,CAAC,CAAC,IAAAM,YAAA,CAAA1D,aAAA,EAAAsE,WAAA,CAEzBlB,SAAS;QAAA,SACNrB,KAAK,CAACP,YAAY,GAAGnB,KAAK,CAACkC,IAAI,CAAC,GAAGa,SAAS,CAACR;MAAK,IAChDW,aAAa,CAEzB;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VTreeviewChildren.mjs","names":["VTreeviewGroup","VTreeviewItem","VCheckboxBtn","IconValue","computed","shallowRef","toRaw","withModifiers","genericComponent","propsFactory","makeVTreeviewChildrenProps","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","Boolean","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","selectable","selectedColor","selectStrategy","Object","VTreeviewChildren","name","props","setup","_ref","emit","slots","isLoading","isClickOnOpen","checkChildren","item","Promise","resolve","length","children","value","then","finally","selectItem","select","isSelected","map","_ref2","itemProps","raw","loading","slotsWithItem","prepend","slotProps","_createVNode","_Fragment","includes","isIndeterminate","e","key","stopPropagation","append","title","treeviewGroupProps","filterProps","treeviewChildrenProps","_mergeProps","activator","_ref3","activatorProps","listItemProps","onToggleExpand","onClick"],"sources":["../../../src/labs/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, shallowRef, toRaw, withModifiers } from 'vue'\nimport { genericComponent, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VListItemSlots, 'default'>]: VListItemSlots[K] & { item: T }\n} & {\n default: never\n item: { props: InternalListItem['props'] }\n}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\n loadChildren: Function as PropType<(item: unknown) => Promise<void>>,\n loadingIcon: {\n type: String,\n default: '$loading',\n },\n items: Array as PropType<readonly InternalListItem[]>,\n openOnClick: {\n type: Boolean,\n default: undefined,\n },\n indeterminateIcon: {\n type: IconValue,\n default: '$checkboxIndeterminate',\n },\n falseIcon: IconValue,\n trueIcon: IconValue,\n returnObject: Boolean,\n selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n}, 'VTreeviewChildren')\n\nexport const VTreeviewChildren = genericComponent<new <T extends InternalListItem>(\n props: {\n items?: readonly T[]\n },\n slots: VTreeviewChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeviewChildren',\n\n props: makeVTreeviewChildrenProps(),\n\n setup (props, { emit, slots }) {\n const isLoading = shallowRef(null)\n\n const isClickOnOpen = computed(() => props.openOnClick != null ? props.openOnClick : props.selectable)\n\n function checkChildren (item: any) {\n return new Promise<void>(resolve => {\n if (!props.items?.length || !props.loadChildren) return resolve()\n\n if (item?.children?.length === 0) {\n isLoading.value = item.value\n props.loadChildren(item).then(resolve)\n\n return\n }\n\n resolve()\n }).finally(() => {\n isLoading.value = null\n })\n }\n\n function selectItem (select: (value: boolean) => void, isSelected: boolean) {\n if (props.selectable) {\n select(!isSelected)\n }\n }\n\n return () => slots.default?.() ?? props.items?.map(({ children, props: itemProps, raw: item }) => {\n const loading = isLoading.value === item.value\n const slotsWithItem = {\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <div>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n loading={ loading }\n color={ props.selectedColor }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onClick={ withModifiers(() => selectItem(slotProps.select, slotProps.isSelected), ['stop']) }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </div>\n )}\n\n { slots.prepend?.({ ...slotProps, item }) }\n </>\n ),\n append: slots.append ? slotProps => slots.append?.({ ...slotProps, item }) : undefined,\n title: slots.title ? slotProps => slots.title?.({ ...slotProps, item }) : undefined,\n } satisfies VTreeviewItem['$props']['$children']\n\n const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps)\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item : treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,\n onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] as any : undefined,\n }\n\n return (\n <VTreeviewItem\n { ...listItemProps }\n value={ props.returnObject ? toRaw(item) : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n },\n default: () => (\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n ),\n }}\n </VTreeviewGroup>\n ) : (\n slots.item?.({ props: itemProps }) ?? (\n <VTreeviewItem\n { ...itemProps }\n value={ props.returnObject ? toRaw(item) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n ))\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,aAAa;AAAA,SACbC,YAAY,gDAErB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,aAAa,QAAQ,KAAK;AAAA,SACvDC,gBAAgB,EAAEC,YAAY,gCAEvC;AAcA,OAAO,MAAMC,0BAA0B,GAAGD,YAAY,CAAC;EACrDE,YAAY,EAAEC,QAAsD;EACpEC,WAAW,EAAE;IACXC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEC,KAA8C;EACrDC,WAAW,EAAE;IACXL,IAAI,EAAEM,OAAO;IACbJ,OAAO,EAAEK;EACX,CAAC;EACDC,iBAAiB,EAAE;IACjBR,IAAI,EAAEX,SAAS;IACfa,OAAO,EAAE;EACX,CAAC;EACDO,SAAS,EAAEpB,SAAS;EACpBqB,QAAQ,EAAErB,SAAS;EACnBsB,YAAY,EAAEL,OAAO;EACrBM,UAAU,EAAEN,OAAO;EACnBO,aAAa,EAAEZ,MAAM;EACrBa,cAAc,EAAE,CAACb,MAAM,EAAEH,QAAQ,EAAEiB,MAAM;AAC3C,CAAC,EAAE,mBAAmB,CAAC;AAEvB,OAAO,MAAMC,i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QAAQ;UAAA,gBACDZ,KAAK,CAACP;QAAY,IACvBW,KAAK;MAElB,KAILA,KAAK,CAACI,IAAI,GAAG;QAAER,KAAK,EAAEqB;MAAU,CAAC,CAAC,IAAAM,YAAA,CAAA1D,aAAA,EAAAsE,WAAA,CAEzBlB,SAAS;QAAA,SACNrB,KAAK,CAACP,YAAY,GAAGnB,KAAK,CAACkC,IAAI,CAAC,GAAGa,SAAS,CAACR;MAAK,IAChDW,aAAa,CAEzB;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,6 @@ import { VListItemAction } from "../../components/VList/index.mjs";
|
|
|
8
8
|
import { makeVListItemProps, VListItem } from "../../components/VList/VListItem.mjs";
|
|
9
9
|
import { VProgressCircular } from "../../components/VProgressCircular/index.mjs"; // Composables
|
|
10
10
|
import { IconValue } from "../../composables/icons.mjs";
|
|
11
|
-
import { useNestedItem } from "../../composables/nested/nested.mjs";
|
|
12
11
|
import { useLink } from "../../composables/router.mjs"; // Utilities
|
|
13
12
|
import { computed, inject, ref } from 'vue';
|
|
14
13
|
import { EventProp, genericComponent, omit, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
|
@@ -31,25 +30,13 @@ export const VTreeviewItem = genericComponent()({
|
|
|
31
30
|
emit
|
|
32
31
|
} = _ref;
|
|
33
32
|
const link = useLink(props, attrs);
|
|
34
|
-
const rawId = computed(() => props.value === undefined ? link.href.value : props.value);
|
|
35
33
|
const vListItemRef = ref();
|
|
36
|
-
const
|
|
37
|
-
activate,
|
|
38
|
-
isActivated,
|
|
39
|
-
isGroupActivator,
|
|
40
|
-
root,
|
|
41
|
-
id
|
|
42
|
-
} = useNestedItem(rawId, false);
|
|
43
|
-
const isActivatableGroupActivator = computed(() => root.activatable.value && isGroupActivator);
|
|
34
|
+
const isActivatableGroupActivator = computed(() => vListItemRef.value?.root.activatable.value && vListItemRef.value?.isGroupActivator);
|
|
44
35
|
const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value || props.value != null && !!vListItemRef.value?.list || isActivatableGroupActivator.value));
|
|
45
36
|
function activateItem(e) {
|
|
46
|
-
if (!isClickable.value || !isActivatableGroupActivator.value && isGroupActivator) return;
|
|
47
|
-
if (root.activatable.value) {
|
|
48
|
-
|
|
49
|
-
activate(!isActivated.value, e);
|
|
50
|
-
} else {
|
|
51
|
-
vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e);
|
|
52
|
-
}
|
|
37
|
+
if (!isClickable.value || !isActivatableGroupActivator.value && vListItemRef.value?.isGroupActivator) return;
|
|
38
|
+
if (vListItemRef.value?.root.activatable.value) {
|
|
39
|
+
vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e);
|
|
53
40
|
}
|
|
54
41
|
}
|
|
55
42
|
const visibleIds = inject(VTreeviewSymbol, {
|
|
@@ -58,11 +45,13 @@ export const VTreeviewItem = genericComponent()({
|
|
|
58
45
|
useRender(() => {
|
|
59
46
|
const listItemProps = omit(VListItem.filterProps(props), ['onClick']);
|
|
60
47
|
const hasPrepend = slots.prepend || props.toggleIcon;
|
|
61
|
-
return _createVNode(VListItem, _mergeProps(
|
|
62
|
-
"
|
|
48
|
+
return _createVNode(VListItem, _mergeProps({
|
|
49
|
+
"ref": vListItemRef
|
|
50
|
+
}, listItemProps, {
|
|
51
|
+
"active": vListItemRef.value?.isActivated,
|
|
63
52
|
"class": ['v-treeview-item', {
|
|
64
53
|
'v-treeview-item--activatable-group-activator': isActivatableGroupActivator.value,
|
|
65
|
-
'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(
|
|
54
|
+
'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id)
|
|
66
55
|
}, props.class],
|
|
67
56
|
"ripple": false,
|
|
68
57
|
"onClick": props.onClick ?? activateItem
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTreeviewItem.mjs","names":["VBtn","VListItemAction","makeVListItemProps","VListItem","VProgressCircular","IconValue","
|
|
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,QAA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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":[]}
|
|
@@ -180,6 +180,7 @@ declare const VTreeview: {
|
|
|
180
180
|
style: vue.StyleValue;
|
|
181
181
|
disabled: boolean;
|
|
182
182
|
tag: string;
|
|
183
|
+
lines: false | "one" | "two" | "three";
|
|
183
184
|
mandatory: boolean;
|
|
184
185
|
modelValue: unknown[];
|
|
185
186
|
tile: boolean;
|
|
@@ -192,7 +193,6 @@ declare const VTreeview: {
|
|
|
192
193
|
selectStrategy: SelectStrategyProp;
|
|
193
194
|
collapseIcon: string;
|
|
194
195
|
expandIcon: string;
|
|
195
|
-
lines: false | "one" | "two" | "three";
|
|
196
196
|
returnObject: boolean;
|
|
197
197
|
filterMode: FilterMode;
|
|
198
198
|
noFilter: boolean;
|
|
@@ -215,10 +215,11 @@ declare const VTreeview: {
|
|
|
215
215
|
minWidth?: string | number | undefined;
|
|
216
216
|
activated?: any;
|
|
217
217
|
class?: any;
|
|
218
|
+
theme?: string | undefined;
|
|
218
219
|
selected?: any;
|
|
219
220
|
elevation?: string | number | undefined;
|
|
220
|
-
theme?: string | undefined;
|
|
221
221
|
rounded?: string | number | boolean | undefined;
|
|
222
|
+
openOnClick?: boolean | undefined;
|
|
222
223
|
baseColor?: string | undefined;
|
|
223
224
|
bgColor?: string | undefined;
|
|
224
225
|
activeColor?: string | undefined;
|
|
@@ -240,7 +241,6 @@ declare const VTreeview: {
|
|
|
240
241
|
value: boolean;
|
|
241
242
|
path: unknown[];
|
|
242
243
|
}) => void) | undefined;
|
|
243
|
-
openOnClick?: boolean | undefined;
|
|
244
244
|
selectedColor?: string | undefined;
|
|
245
245
|
loadChildren?: ((item: unknown) => Promise<void>) | undefined;
|
|
246
246
|
} & {
|
|
@@ -278,6 +278,7 @@ declare const VTreeview: {
|
|
|
278
278
|
style: vue.StyleValue;
|
|
279
279
|
disabled: boolean;
|
|
280
280
|
tag: string;
|
|
281
|
+
lines: false | "one" | "two" | "three";
|
|
281
282
|
mandatory: boolean;
|
|
282
283
|
modelValue: unknown[];
|
|
283
284
|
tile: boolean;
|
|
@@ -290,7 +291,6 @@ declare const VTreeview: {
|
|
|
290
291
|
selectStrategy: SelectStrategyProp;
|
|
291
292
|
collapseIcon: string;
|
|
292
293
|
expandIcon: string;
|
|
293
|
-
lines: false | "one" | "two" | "three";
|
|
294
294
|
returnObject: boolean;
|
|
295
295
|
filterMode: FilterMode;
|
|
296
296
|
noFilter: boolean;
|
|
@@ -313,10 +313,11 @@ declare const VTreeview: {
|
|
|
313
313
|
minWidth?: string | number | undefined;
|
|
314
314
|
activated?: any;
|
|
315
315
|
class?: any;
|
|
316
|
+
theme?: string | undefined;
|
|
316
317
|
selected?: any;
|
|
317
318
|
elevation?: string | number | undefined;
|
|
318
|
-
theme?: string | undefined;
|
|
319
319
|
rounded?: string | number | boolean | undefined;
|
|
320
|
+
openOnClick?: boolean | undefined;
|
|
320
321
|
baseColor?: string | undefined;
|
|
321
322
|
bgColor?: string | undefined;
|
|
322
323
|
activeColor?: string | undefined;
|
|
@@ -338,7 +339,6 @@ declare const VTreeview: {
|
|
|
338
339
|
value: boolean;
|
|
339
340
|
path: unknown[];
|
|
340
341
|
}) => void) | undefined;
|
|
341
|
-
openOnClick?: boolean | undefined;
|
|
342
342
|
selectedColor?: string | undefined;
|
|
343
343
|
loadChildren?: ((item: unknown) => Promise<void>) | undefined;
|
|
344
344
|
} & {
|
|
@@ -361,9 +361,11 @@ declare const VTreeview: {
|
|
|
361
361
|
style: vue.StyleValue;
|
|
362
362
|
disabled: boolean;
|
|
363
363
|
tag: string;
|
|
364
|
+
lines: false | "one" | "two" | "three";
|
|
364
365
|
mandatory: boolean;
|
|
365
366
|
modelValue: unknown[];
|
|
366
367
|
rounded: string | number | boolean;
|
|
368
|
+
openOnClick: boolean;
|
|
367
369
|
tile: boolean;
|
|
368
370
|
density: Density;
|
|
369
371
|
slim: boolean;
|
|
@@ -374,7 +376,6 @@ declare const VTreeview: {
|
|
|
374
376
|
selectStrategy: SelectStrategyProp;
|
|
375
377
|
collapseIcon: string;
|
|
376
378
|
expandIcon: string;
|
|
377
|
-
lines: false | "one" | "two" | "three";
|
|
378
379
|
returnObject: boolean;
|
|
379
380
|
filterMode: FilterMode;
|
|
380
381
|
noFilter: boolean;
|
|
@@ -383,7 +384,6 @@ declare const VTreeview: {
|
|
|
383
384
|
itemValue: SelectItemKey;
|
|
384
385
|
itemChildren: SelectItemKey;
|
|
385
386
|
itemProps: SelectItemKey;
|
|
386
|
-
openOnClick: boolean;
|
|
387
387
|
loadingIcon: string;
|
|
388
388
|
openAll: boolean;
|
|
389
389
|
}, true, {}, vue.SlotsType<Partial<{
|
|
@@ -424,6 +424,7 @@ declare const VTreeview: {
|
|
|
424
424
|
style: vue.StyleValue;
|
|
425
425
|
disabled: boolean;
|
|
426
426
|
tag: string;
|
|
427
|
+
lines: false | "one" | "two" | "three";
|
|
427
428
|
mandatory: boolean;
|
|
428
429
|
modelValue: unknown[];
|
|
429
430
|
tile: boolean;
|
|
@@ -436,7 +437,6 @@ declare const VTreeview: {
|
|
|
436
437
|
selectStrategy: SelectStrategyProp;
|
|
437
438
|
collapseIcon: string;
|
|
438
439
|
expandIcon: string;
|
|
439
|
-
lines: false | "one" | "two" | "three";
|
|
440
440
|
returnObject: boolean;
|
|
441
441
|
filterMode: FilterMode;
|
|
442
442
|
noFilter: boolean;
|
|
@@ -459,10 +459,11 @@ declare const VTreeview: {
|
|
|
459
459
|
minWidth?: string | number | undefined;
|
|
460
460
|
activated?: any;
|
|
461
461
|
class?: any;
|
|
462
|
+
theme?: string | undefined;
|
|
462
463
|
selected?: any;
|
|
463
464
|
elevation?: string | number | undefined;
|
|
464
|
-
theme?: string | undefined;
|
|
465
465
|
rounded?: string | number | boolean | undefined;
|
|
466
|
+
openOnClick?: boolean | undefined;
|
|
466
467
|
baseColor?: string | undefined;
|
|
467
468
|
bgColor?: string | undefined;
|
|
468
469
|
activeColor?: string | undefined;
|
|
@@ -484,7 +485,6 @@ declare const VTreeview: {
|
|
|
484
485
|
value: boolean;
|
|
485
486
|
path: unknown[];
|
|
486
487
|
}) => void) | undefined;
|
|
487
|
-
openOnClick?: boolean | undefined;
|
|
488
488
|
selectedColor?: string | undefined;
|
|
489
489
|
loadChildren?: ((item: unknown) => Promise<void>) | undefined;
|
|
490
490
|
} & {
|
|
@@ -507,9 +507,11 @@ declare const VTreeview: {
|
|
|
507
507
|
style: vue.StyleValue;
|
|
508
508
|
disabled: boolean;
|
|
509
509
|
tag: string;
|
|
510
|
+
lines: false | "one" | "two" | "three";
|
|
510
511
|
mandatory: boolean;
|
|
511
512
|
modelValue: unknown[];
|
|
512
513
|
rounded: string | number | boolean;
|
|
514
|
+
openOnClick: boolean;
|
|
513
515
|
tile: boolean;
|
|
514
516
|
density: Density;
|
|
515
517
|
slim: boolean;
|
|
@@ -520,7 +522,6 @@ declare const VTreeview: {
|
|
|
520
522
|
selectStrategy: SelectStrategyProp;
|
|
521
523
|
collapseIcon: string;
|
|
522
524
|
expandIcon: string;
|
|
523
|
-
lines: false | "one" | "two" | "three";
|
|
524
525
|
returnObject: boolean;
|
|
525
526
|
filterMode: FilterMode;
|
|
526
527
|
noFilter: boolean;
|
|
@@ -529,7 +530,6 @@ declare const VTreeview: {
|
|
|
529
530
|
itemValue: SelectItemKey;
|
|
530
531
|
itemChildren: SelectItemKey;
|
|
531
532
|
itemProps: SelectItemKey;
|
|
532
|
-
openOnClick: boolean;
|
|
533
533
|
loadingIcon: string;
|
|
534
534
|
openAll: boolean;
|
|
535
535
|
}>;
|
|
@@ -541,6 +541,7 @@ declare const VTreeview: {
|
|
|
541
541
|
style: vue.StyleValue;
|
|
542
542
|
disabled: boolean;
|
|
543
543
|
tag: string;
|
|
544
|
+
lines: false | "one" | "two" | "three";
|
|
544
545
|
mandatory: boolean;
|
|
545
546
|
modelValue: unknown[];
|
|
546
547
|
tile: boolean;
|
|
@@ -553,7 +554,6 @@ declare const VTreeview: {
|
|
|
553
554
|
selectStrategy: SelectStrategyProp;
|
|
554
555
|
collapseIcon: string;
|
|
555
556
|
expandIcon: string;
|
|
556
|
-
lines: false | "one" | "two" | "three";
|
|
557
557
|
returnObject: boolean;
|
|
558
558
|
filterMode: FilterMode;
|
|
559
559
|
noFilter: boolean;
|
|
@@ -576,10 +576,11 @@ declare const VTreeview: {
|
|
|
576
576
|
minWidth?: string | number | undefined;
|
|
577
577
|
activated?: any;
|
|
578
578
|
class?: any;
|
|
579
|
+
theme?: string | undefined;
|
|
579
580
|
selected?: any;
|
|
580
581
|
elevation?: string | number | undefined;
|
|
581
|
-
theme?: string | undefined;
|
|
582
582
|
rounded?: string | number | boolean | undefined;
|
|
583
|
+
openOnClick?: boolean | undefined;
|
|
583
584
|
baseColor?: string | undefined;
|
|
584
585
|
bgColor?: string | undefined;
|
|
585
586
|
activeColor?: string | undefined;
|
|
@@ -601,7 +602,6 @@ declare const VTreeview: {
|
|
|
601
602
|
value: boolean;
|
|
602
603
|
path: unknown[];
|
|
603
604
|
}) => void) | undefined;
|
|
604
|
-
openOnClick?: boolean | undefined;
|
|
605
605
|
selectedColor?: string | undefined;
|
|
606
606
|
loadChildren?: ((item: unknown) => Promise<void>) | undefined;
|
|
607
607
|
} & {
|
|
@@ -639,9 +639,11 @@ declare const VTreeview: {
|
|
|
639
639
|
style: vue.StyleValue;
|
|
640
640
|
disabled: boolean;
|
|
641
641
|
tag: string;
|
|
642
|
+
lines: false | "one" | "two" | "three";
|
|
642
643
|
mandatory: boolean;
|
|
643
644
|
modelValue: unknown[];
|
|
644
645
|
rounded: string | number | boolean;
|
|
646
|
+
openOnClick: boolean;
|
|
645
647
|
tile: boolean;
|
|
646
648
|
density: Density;
|
|
647
649
|
slim: boolean;
|
|
@@ -652,7 +654,6 @@ declare const VTreeview: {
|
|
|
652
654
|
selectStrategy: SelectStrategyProp;
|
|
653
655
|
collapseIcon: string;
|
|
654
656
|
expandIcon: string;
|
|
655
|
-
lines: false | "one" | "two" | "three";
|
|
656
657
|
returnObject: boolean;
|
|
657
658
|
filterMode: FilterMode;
|
|
658
659
|
noFilter: boolean;
|
|
@@ -661,7 +662,6 @@ declare const VTreeview: {
|
|
|
661
662
|
itemValue: SelectItemKey;
|
|
662
663
|
itemChildren: SelectItemKey;
|
|
663
664
|
itemProps: SelectItemKey;
|
|
664
|
-
openOnClick: boolean;
|
|
665
665
|
loadingIcon: string;
|
|
666
666
|
openAll: boolean;
|
|
667
667
|
}, {}, string, vue.SlotsType<Partial<{
|
|
@@ -720,17 +720,21 @@ declare const VTreeview: {
|
|
|
720
720
|
disabled: BooleanConstructor;
|
|
721
721
|
activated: null;
|
|
722
722
|
class: vue.PropType<ClassValue>;
|
|
723
|
+
theme: StringConstructor;
|
|
723
724
|
tag: {
|
|
724
725
|
type: StringConstructor;
|
|
725
726
|
default: string;
|
|
726
727
|
};
|
|
728
|
+
lines: {
|
|
729
|
+
type: vue.PropType<"one" | "two" | "three" | false>;
|
|
730
|
+
default: string;
|
|
731
|
+
};
|
|
727
732
|
mandatory: BooleanConstructor;
|
|
728
733
|
selected: null;
|
|
729
734
|
elevation: {
|
|
730
735
|
type: (StringConstructor | NumberConstructor)[];
|
|
731
736
|
validator(v: any): boolean;
|
|
732
737
|
};
|
|
733
|
-
theme: StringConstructor;
|
|
734
738
|
rounded: {
|
|
735
739
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
736
740
|
default: undefined;
|
|
@@ -774,10 +778,6 @@ declare const VTreeview: {
|
|
|
774
778
|
type: vue.PropType<string>;
|
|
775
779
|
default: string;
|
|
776
780
|
};
|
|
777
|
-
lines: {
|
|
778
|
-
type: vue.PropType<"one" | "two" | "three" | false>;
|
|
779
|
-
default: string;
|
|
780
|
-
};
|
|
781
781
|
returnObject: BooleanConstructor;
|
|
782
782
|
itemTitle: {
|
|
783
783
|
type: vue.PropType<SelectItemKey>;
|
|
@@ -862,17 +862,21 @@ declare const VTreeview: {
|
|
|
862
862
|
disabled: BooleanConstructor;
|
|
863
863
|
activated: null;
|
|
864
864
|
class: vue.PropType<ClassValue>;
|
|
865
|
+
theme: StringConstructor;
|
|
865
866
|
tag: {
|
|
866
867
|
type: StringConstructor;
|
|
867
868
|
default: string;
|
|
868
869
|
};
|
|
870
|
+
lines: {
|
|
871
|
+
type: vue.PropType<"one" | "two" | "three" | false>;
|
|
872
|
+
default: string;
|
|
873
|
+
};
|
|
869
874
|
mandatory: BooleanConstructor;
|
|
870
875
|
selected: null;
|
|
871
876
|
elevation: {
|
|
872
877
|
type: (StringConstructor | NumberConstructor)[];
|
|
873
878
|
validator(v: any): boolean;
|
|
874
879
|
};
|
|
875
|
-
theme: StringConstructor;
|
|
876
880
|
rounded: {
|
|
877
881
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
878
882
|
default: undefined;
|
|
@@ -916,10 +920,6 @@ declare const VTreeview: {
|
|
|
916
920
|
type: vue.PropType<string>;
|
|
917
921
|
default: string;
|
|
918
922
|
};
|
|
919
|
-
lines: {
|
|
920
|
-
type: vue.PropType<"one" | "two" | "three" | false>;
|
|
921
|
-
default: string;
|
|
922
|
-
};
|
|
923
923
|
returnObject: BooleanConstructor;
|
|
924
924
|
itemTitle: {
|
|
925
925
|
type: vue.PropType<SelectItemKey>;
|
|
@@ -1009,12 +1009,13 @@ declare const VTreeviewItem: {
|
|
|
1009
1009
|
value?: any;
|
|
1010
1010
|
title?: string | number | undefined;
|
|
1011
1011
|
class?: any;
|
|
1012
|
+
theme?: string | undefined;
|
|
1013
|
+
to?: vue_router.RouteLocationRaw | undefined;
|
|
1014
|
+
lines?: false | "one" | "two" | "three" | undefined;
|
|
1012
1015
|
onClick?: ((args_0: MouseEvent | KeyboardEvent) => void) | undefined;
|
|
1013
1016
|
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
1014
1017
|
href?: string | undefined;
|
|
1015
1018
|
elevation?: string | number | undefined;
|
|
1016
|
-
to?: vue_router.RouteLocationRaw | undefined;
|
|
1017
|
-
theme?: string | undefined;
|
|
1018
1019
|
rounded?: string | number | boolean | undefined;
|
|
1019
1020
|
baseColor?: string | undefined;
|
|
1020
1021
|
activeColor?: string | undefined;
|
|
@@ -1024,7 +1025,6 @@ declare const VTreeviewItem: {
|
|
|
1024
1025
|
appendAvatar?: string | undefined;
|
|
1025
1026
|
prependAvatar?: string | undefined;
|
|
1026
1027
|
subtitle?: string | number | undefined;
|
|
1027
|
-
lines?: false | "one" | "two" | "three" | undefined;
|
|
1028
1028
|
toggleIcon?: IconValue | undefined;
|
|
1029
1029
|
onToggleExpand?: ((args_0: MouseEvent) => void) | undefined;
|
|
1030
1030
|
} & {
|
|
@@ -1077,12 +1077,13 @@ declare const VTreeviewItem: {
|
|
|
1077
1077
|
value?: any;
|
|
1078
1078
|
title?: string | number | undefined;
|
|
1079
1079
|
class?: any;
|
|
1080
|
+
theme?: string | undefined;
|
|
1081
|
+
to?: vue_router.RouteLocationRaw | undefined;
|
|
1082
|
+
lines?: false | "one" | "two" | "three" | undefined;
|
|
1080
1083
|
onClick?: ((args_0: MouseEvent | KeyboardEvent) => void) | undefined;
|
|
1081
1084
|
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
1082
1085
|
href?: string | undefined;
|
|
1083
1086
|
elevation?: string | number | undefined;
|
|
1084
|
-
to?: vue_router.RouteLocationRaw | undefined;
|
|
1085
|
-
theme?: string | undefined;
|
|
1086
1087
|
rounded?: string | number | boolean | undefined;
|
|
1087
1088
|
baseColor?: string | undefined;
|
|
1088
1089
|
activeColor?: string | undefined;
|
|
@@ -1092,7 +1093,6 @@ declare const VTreeviewItem: {
|
|
|
1092
1093
|
appendAvatar?: string | undefined;
|
|
1093
1094
|
prependAvatar?: string | undefined;
|
|
1094
1095
|
subtitle?: string | number | undefined;
|
|
1095
|
-
lines?: false | "one" | "two" | "three" | undefined;
|
|
1096
1096
|
toggleIcon?: IconValue | undefined;
|
|
1097
1097
|
onToggleExpand?: ((args_0: MouseEvent) => void) | undefined;
|
|
1098
1098
|
} & {
|
|
@@ -1176,12 +1176,13 @@ declare const VTreeviewItem: {
|
|
|
1176
1176
|
value?: any;
|
|
1177
1177
|
title?: string | number | undefined;
|
|
1178
1178
|
class?: any;
|
|
1179
|
+
theme?: string | undefined;
|
|
1180
|
+
to?: vue_router.RouteLocationRaw | undefined;
|
|
1181
|
+
lines?: false | "one" | "two" | "three" | undefined;
|
|
1179
1182
|
onClick?: ((args_0: MouseEvent | KeyboardEvent) => void) | undefined;
|
|
1180
1183
|
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
1181
1184
|
href?: string | undefined;
|
|
1182
1185
|
elevation?: string | number | undefined;
|
|
1183
|
-
to?: vue_router.RouteLocationRaw | undefined;
|
|
1184
|
-
theme?: string | undefined;
|
|
1185
1186
|
rounded?: string | number | boolean | undefined;
|
|
1186
1187
|
baseColor?: string | undefined;
|
|
1187
1188
|
activeColor?: string | undefined;
|
|
@@ -1191,7 +1192,6 @@ declare const VTreeviewItem: {
|
|
|
1191
1192
|
appendAvatar?: string | undefined;
|
|
1192
1193
|
prependAvatar?: string | undefined;
|
|
1193
1194
|
subtitle?: string | number | undefined;
|
|
1194
|
-
lines?: false | "one" | "two" | "three" | undefined;
|
|
1195
1195
|
toggleIcon?: IconValue | undefined;
|
|
1196
1196
|
onToggleExpand?: ((args_0: MouseEvent) => void) | undefined;
|
|
1197
1197
|
} & {
|
|
@@ -1266,12 +1266,13 @@ declare const VTreeviewItem: {
|
|
|
1266
1266
|
value?: any;
|
|
1267
1267
|
title?: string | number | undefined;
|
|
1268
1268
|
class?: any;
|
|
1269
|
+
theme?: string | undefined;
|
|
1270
|
+
to?: vue_router.RouteLocationRaw | undefined;
|
|
1271
|
+
lines?: false | "one" | "two" | "three" | undefined;
|
|
1269
1272
|
onClick?: ((args_0: MouseEvent | KeyboardEvent) => void) | undefined;
|
|
1270
1273
|
onClickOnce?: ((args_0: MouseEvent) => void) | undefined;
|
|
1271
1274
|
href?: string | undefined;
|
|
1272
1275
|
elevation?: string | number | undefined;
|
|
1273
|
-
to?: vue_router.RouteLocationRaw | undefined;
|
|
1274
|
-
theme?: string | undefined;
|
|
1275
1276
|
rounded?: string | number | boolean | undefined;
|
|
1276
1277
|
baseColor?: string | undefined;
|
|
1277
1278
|
activeColor?: string | undefined;
|
|
@@ -1281,7 +1282,6 @@ declare const VTreeviewItem: {
|
|
|
1281
1282
|
appendAvatar?: string | undefined;
|
|
1282
1283
|
prependAvatar?: string | undefined;
|
|
1283
1284
|
subtitle?: string | number | undefined;
|
|
1284
|
-
lines?: false | "one" | "two" | "three" | undefined;
|
|
1285
1285
|
toggleIcon?: IconValue | undefined;
|
|
1286
1286
|
onToggleExpand?: ((args_0: MouseEvent) => void) | undefined;
|
|
1287
1287
|
} & {
|