@vuetify/nightly 3.10.4-dev.2025-10-01 → 3.10.4-dev.2025-10-02
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/CHANGELOG.md +8 -3
- package/dist/json/attributes.json +4040 -4040
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +164 -164
- package/dist/json/web-types.json +7205 -7201
- package/dist/vuetify-labs.cjs +16 -8
- package/dist/vuetify-labs.css +4832 -4832
- package/dist/vuetify-labs.d.ts +65 -56
- package/dist/vuetify-labs.esm.js +16 -8
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +16 -8
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +16 -8
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +4299 -4299
- package/dist/vuetify.d.ts +65 -56
- package/dist/vuetify.esm.js +16 -8
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +16 -8
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +6 -8
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.d.ts +6 -0
- package/lib/components/VTreeview/VTreeviewChildren.d.ts +9 -0
- package/lib/components/VTreeview/VTreeviewChildren.js +6 -1
- package/lib/components/VTreeview/VTreeviewChildren.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +56 -56
- package/lib/framework.js +1 -1
- package/lib/util/indentLines.d.ts +1 -0
- package/lib/util/indentLines.js +7 -4
- package/lib/util/indentLines.js.map +1 -1
- package/package.json +1 -1
|
@@ -715,6 +715,9 @@ export declare const VTreeview: {
|
|
|
715
715
|
[key: string]: any;
|
|
716
716
|
}>[];
|
|
717
717
|
footer: (arg: {
|
|
718
|
+
props: {
|
|
719
|
+
indentLines?: import("../../util/index.js").IndentLineType[] | undefined;
|
|
720
|
+
};
|
|
718
721
|
item: unknown;
|
|
719
722
|
internalItem: InternalListItem<unknown>;
|
|
720
723
|
loading: boolean;
|
|
@@ -1073,6 +1076,9 @@ export declare const VTreeview: {
|
|
|
1073
1076
|
[key: string]: any;
|
|
1074
1077
|
}>[];
|
|
1075
1078
|
footer: (arg: {
|
|
1079
|
+
props: {
|
|
1080
|
+
indentLines?: import("../../util/index.js").IndentLineType[] | undefined;
|
|
1081
|
+
};
|
|
1076
1082
|
item: unknown;
|
|
1077
1083
|
internalItem: InternalListItem<unknown>;
|
|
1078
1084
|
loading: boolean;
|
|
@@ -24,6 +24,9 @@ export type VTreeviewChildrenSlots<T> = {
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
};
|
|
26
26
|
footer: {
|
|
27
|
+
props: {
|
|
28
|
+
indentLines?: IndentLineType[];
|
|
29
|
+
};
|
|
27
30
|
item: T;
|
|
28
31
|
internalItem: InternalListItem<T>;
|
|
29
32
|
loading: boolean;
|
|
@@ -282,6 +285,9 @@ export declare const VTreeviewChildren: {
|
|
|
282
285
|
[key: string]: any;
|
|
283
286
|
}>[];
|
|
284
287
|
footer: (arg: {
|
|
288
|
+
props: {
|
|
289
|
+
indentLines?: IndentLineType[] | undefined;
|
|
290
|
+
};
|
|
285
291
|
item: InternalListItem<any>;
|
|
286
292
|
internalItem: InternalListItem<InternalListItem<any>>;
|
|
287
293
|
loading: boolean;
|
|
@@ -455,6 +461,9 @@ export declare const VTreeviewChildren: {
|
|
|
455
461
|
[key: string]: any;
|
|
456
462
|
}>[];
|
|
457
463
|
footer: (arg: {
|
|
464
|
+
props: {
|
|
465
|
+
indentLines?: IndentLineType[] | undefined;
|
|
466
|
+
};
|
|
458
467
|
item: InternalListItem<any>;
|
|
459
468
|
internalItem: InternalListItem<InternalListItem<any>>;
|
|
460
469
|
loading: boolean;
|
|
@@ -155,6 +155,10 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
155
155
|
...props,
|
|
156
156
|
...treeItemProps
|
|
157
157
|
});
|
|
158
|
+
const footerProps = {
|
|
159
|
+
hideActions: props.hideActions,
|
|
160
|
+
indentLines: indentLines.footer
|
|
161
|
+
};
|
|
158
162
|
return children ? _createVNode(VTreeviewGroup, _mergeProps(treeviewGroupProps, {
|
|
159
163
|
"value": props.returnObject ? item.raw : treeviewGroupProps?.value,
|
|
160
164
|
"rawId": treeviewGroupProps?.value
|
|
@@ -167,6 +171,7 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
167
171
|
...itemProps,
|
|
168
172
|
...activatorProps,
|
|
169
173
|
value: itemProps?.value,
|
|
174
|
+
hideActions: props.hideActions,
|
|
170
175
|
indentLines: indentLines.node,
|
|
171
176
|
onToggleExpand: [() => checkChildren(item), activatorProps.onClick],
|
|
172
177
|
onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : () => selectItem(activatorItems.value[index]?.select, !activatorItems.value[index]?.isSelected)
|
|
@@ -180,7 +185,6 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
180
185
|
"ref": el => activatorItems.value[index] = el
|
|
181
186
|
}, listItemProps, {
|
|
182
187
|
"hasCustomPrepend": !!slots.prepend,
|
|
183
|
-
"hideActions": props.hideActions,
|
|
184
188
|
"value": props.returnObject ? item.raw : itemProps.value,
|
|
185
189
|
"loading": loading
|
|
186
190
|
}), slotsWithItem));
|
|
@@ -192,6 +196,7 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
192
196
|
"isLastGroup": nextItemHasChildren,
|
|
193
197
|
"returnObject": props.returnObject
|
|
194
198
|
}), slots), slots.footer?.({
|
|
199
|
+
props: footerProps,
|
|
195
200
|
item: item.raw,
|
|
196
201
|
internalItem: item,
|
|
197
202
|
loading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTreeviewChildren.js","names":["VTreeviewGroup","makeVTreeviewItemProps","VTreeviewItem","VCheckboxBtn","VDivider","VListItemAction","VListSubheader","makeDensityProps","IconValue","computed","reactive","ref","toRaw","genericComponent","getIndentLines","pick","propsFactory","renderSlot","makeVTreeviewChildrenProps","fluid","Boolean","disabled","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","activatable","selectable","selectedColor","selectStrategy","Object","index","Number","isLastGroup","separateRoots","parentIndentLines","indentLinesVariant","path","VTreeviewChildren","name","props","setup","_ref","slots","isLoading","Set","activatorItems","isClickOnOpen","checkChildren","item","length","children","add","value","raw","delete","selectItem","select","isSelected","map","itemProps","loading","has","nextItemHasChildren","at","depth","isLast","treeItemProps","isFirst","hideAction","hideActions","indentLines","leafLinks","variant","slotsWithItem","toggle","slotProps","internalItem","prepend","_createElementVNode","_Fragment","includes","_createVNode","density","isIndeterminate","v","e","stopPropagation","key","append","title","subtitle","treeviewGroupProps","filterProps","treeviewChildrenProps","_mergeProps","activator","_ref2","activatorProps","listItemProps","node","onToggleExpand","onClick","header","el","footer","divider","subheader","leaf"],"sources":["../../../src/components/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { makeVTreeviewItemProps, VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\nimport { VDivider } from '@/components/VDivider'\nimport { VListItemAction, VListSubheader } from '@/components/VList'\n\n// Composables\nimport { makeDensityProps } from '@/composables/density'\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, reactive, ref, toRaw } from 'vue'\nimport { genericComponent, getIndentLines, pick, propsFactory, renderSlot } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VTreeviewItemSlots } from './VTreeviewItem'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps, IndentLinesVariant, IndentLineType } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VTreeviewItemSlots, 'default'>]: VTreeviewItemSlots[K] & {\n item: T\n internalItem: InternalListItem<T>\n }\n} & {\n default: never\n item: {\n props: InternalListItem['props']\n item: T\n internalItem: InternalListItem<T>\n }\n header: {\n props: InternalListItem['props']\n item: T\n internalItem: InternalListItem<T>\n loading: boolean\n }\n footer: {\n item: T\n internalItem: InternalListItem<T>\n loading: boolean\n }\n divider: { props: InternalListItem['props'] }\n subheader: { props: InternalListItem['props'] }\n}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\n fluid: Boolean,\n disabled: Boolean,\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 activatable: Boolean,\n selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n index: Number,\n isLastGroup: Boolean,\n separateRoots: Boolean,\n parentIndentLines: Array as PropType<IndentLineType[]>,\n indentLinesVariant: String as PropType<IndentLinesVariant>,\n path: {\n type: Array as PropType<number[]>,\n default: () => [],\n },\n ...pick(makeVTreeviewItemProps(), ['hideActions']),\n ...makeDensityProps(),\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, { slots }) {\n const isLoading = reactive(new Set<unknown>())\n const activatorItems = ref<VTreeviewItem[]>([])\n\n const isClickOnOpen = computed(() => (\n !props.disabled && (\n props.openOnClick != null\n ? props.openOnClick\n : props.selectable && !props.activatable\n )))\n\n async function checkChildren (item: InternalListItem) {\n try {\n if (!props.items?.length || !props.loadChildren) return\n\n if (item?.children?.length === 0) {\n isLoading.add(item.value)\n await props.loadChildren(item.raw)\n }\n } finally {\n isLoading.delete(item.value)\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((item, index, items) => {\n const { children, props: itemProps } = item\n const loading = isLoading.has(item.value)\n const nextItemHasChildren = !!items.at(index + 1)?.children\n\n const depth = props.path?.length ?? 0\n const isLast = items.length - 1 === index\n const treeItemProps = {\n index,\n depth,\n isFirst: index === 0,\n isLast,\n path: [...props.path, index],\n hideAction: props.hideActions,\n }\n\n const indentLines = getIndentLines({\n depth,\n isLast,\n isLastGroup: props.isLastGroup,\n leafLinks: !props.hideActions && !props.fluid,\n separateRoots: props.separateRoots,\n parentIndentLines: props.parentIndentLines,\n variant: props.indentLinesVariant,\n })\n\n const slotsWithItem = {\n toggle: slots.toggle\n ? slotProps => slots.toggle?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item, loading })\n : undefined,\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <VListItemAction start>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n disabled={ props.disabled }\n loading={ loading }\n color={ props.selectedColor }\n density={ props.density }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onUpdate:modelValue={ v => selectItem(slotProps.select, v) }\n onClick={ (e: PointerEvent) => e.stopPropagation() }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </VListItemAction>\n )}\n\n { slots.prepend?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item }) }\n </>\n ),\n append: slots.append\n ? slotProps => slots.append?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item })\n : undefined,\n title: slots.title ? slotProps => slots.title?.({ ...slotProps, item: item.raw, internalItem: item }) : undefined,\n subtitle: slots.subtitle ? slotProps => slots.subtitle?.({ ...slotProps, item: item.raw, internalItem: item }) : undefined,\n } satisfies VTreeviewItem['$props']['$children']\n\n const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps)\n const treeviewChildrenProps = VTreeviewChildren.filterProps({ ...props, ...treeItemProps })\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item.raw : treeviewGroupProps?.value }\n rawId={ treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n indentLines: indentLines.node,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,\n onClick: isClickOnOpen.value\n ? [() => checkChildren(item), activatorProps.onClick] as any\n : () => selectItem(activatorItems.value[index]?.select, !activatorItems.value[index]?.isSelected),\n }\n\n return renderSlot(\n slots.header,\n { props: listItemProps, item: item.raw, internalItem: item, loading },\n () => (\n <VTreeviewItem\n ref={ el => activatorItems.value[index] = el as VTreeviewItem }\n { ...listItemProps }\n hasCustomPrepend={ !!slots.prepend }\n hideActions={ props.hideActions }\n value={ props.returnObject ? item.raw : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n )\n },\n default: () => (\n <>\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n indentLinesVariant={ props.indentLinesVariant }\n parentIndentLines={ indentLines.children }\n isLastGroup={ nextItemHasChildren }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n { slots.footer?.({ item: item.raw, internalItem: item, loading }) }\n </>\n ),\n }}\n </VTreeviewGroup>\n ) : renderSlot(\n slots.item,\n { props: itemProps, item: item.raw, internalItem: item },\n () => {\n if (item.type === 'divider') {\n return renderSlot(\n slots.divider,\n { props: item.raw },\n () => <VDivider { ...item.props } />,\n )\n }\n if (item.type === 'subheader') {\n return renderSlot(\n slots.subheader,\n { props: item.raw },\n () => <VListSubheader { ...item.props } />,\n )\n }\n return (\n <VTreeviewItem\n { ...itemProps }\n hasCustomPrepend={ !!slots.prepend }\n hideActions={ props.hideActions }\n indentLines={ indentLines.leaf }\n value={ props.returnObject ? toRaw(item.raw) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n )\n })\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,sBAAsB,EAAEC,aAAa;AAAA,SACrCC,YAAY;AAAA,SACZC,QAAQ;AAAA,SACRC,eAAe,EAAEC,cAAc,6BAExC;AAAA,SACSC,gBAAgB;AAAA,SAChBC,SAAS,sCAElB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC3CC,gBAAgB,EAAEC,cAAc,EAAEC,IAAI,EAAEC,YAAY,EAAEC,UAAU,+BAEzE;AAkCA,OAAO,MAAMC,0BAA0B,GAAGF,YAAY,CAAC;EACrDG,KAAK,EAAEC,OAAO;EACdC,QAAQ,EAAED,OAAO;EACjBE,YAAY,EAAEC,QAAsD;EACpEC,WAAW,EAAE;IACXC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEC,KAA8C;EACrDC,WAAW,EAAE;IACXL,IAAI,EAAEL,OAAO;IACbO,OAAO,EAAEI;EACX,CAAC;EACDC,iBAAiB,EAAE;IACjBP,IAAI,EAAEjB,SAAS;IACfmB,OAAO,EAAE;EACX,CAAC;EACDM,SAAS,EAAEzB,SAAS;EACpB0B,QAAQ,EAAE1B,SAAS;EACnB2B,YAAY,EAAEf,OAAO;EACrBgB,WAAW,EAAEhB,OAAO;EACpBiB,UAAU,EAAEjB,OAAO;EACnBkB,aAAa,EAAEZ,MAAM;EACrBa,cAAc,EAAE,CAACb,MAAM,EAAEH,QAAQ,EAAEiB,MAAM,CAAiC;EAC1EC,KAAK,EAAEC,MAAM;EACbC,WAAW,EAA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,SACtBpE,KAAK,CAACf,YAAY,GAAGvB,KAAK,CAAC+C,IAAI,CAACK,GAAG,CAAC,GAAGM,SAAS,CAACP;QAAK,IACpDqB,aAAa;MAG7B,CAAC,CAAC;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VTreeviewChildren.js","names":["VTreeviewGroup","makeVTreeviewItemProps","VTreeviewItem","VCheckboxBtn","VDivider","VListItemAction","VListSubheader","makeDensityProps","IconValue","computed","reactive","ref","toRaw","genericComponent","getIndentLines","pick","propsFactory","renderSlot","makeVTreeviewChildrenProps","fluid","Boolean","disabled","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","activatable","selectable","selectedColor","selectStrategy","Object","index","Number","isLastGroup","separateRoots","parentIndentLines","indentLinesVariant","path","VTreeviewChildren","name","props","setup","_ref","slots","isLoading","Set","activatorItems","isClickOnOpen","checkChildren","item","length","children","add","value","raw","delete","selectItem","select","isSelected","map","itemProps","loading","has","nextItemHasChildren","at","depth","isLast","treeItemProps","isFirst","hideAction","hideActions","indentLines","leafLinks","variant","slotsWithItem","toggle","slotProps","internalItem","prepend","_createElementVNode","_Fragment","includes","_createVNode","density","isIndeterminate","v","e","stopPropagation","key","append","title","subtitle","treeviewGroupProps","filterProps","treeviewChildrenProps","footerProps","footer","_mergeProps","activator","_ref2","activatorProps","listItemProps","node","onToggleExpand","onClick","header","el","divider","subheader","leaf"],"sources":["../../../src/components/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { makeVTreeviewItemProps, VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\nimport { VDivider } from '@/components/VDivider'\nimport { VListItemAction, VListSubheader } from '@/components/VList'\n\n// Composables\nimport { makeDensityProps } from '@/composables/density'\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, reactive, ref, toRaw } from 'vue'\nimport { genericComponent, getIndentLines, pick, propsFactory, renderSlot } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VTreeviewItemSlots } from './VTreeviewItem'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps, IndentLinesVariant, IndentLineType } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VTreeviewItemSlots, 'default'>]: VTreeviewItemSlots[K] & {\n item: T\n internalItem: InternalListItem<T>\n }\n} & {\n default: never\n item: {\n props: InternalListItem['props']\n item: T\n internalItem: InternalListItem<T>\n }\n header: {\n props: InternalListItem['props']\n item: T\n internalItem: InternalListItem<T>\n loading: boolean\n }\n footer: {\n props: { indentLines?: IndentLineType[] }\n item: T\n internalItem: InternalListItem<T>\n loading: boolean\n }\n divider: { props: InternalListItem['props'] }\n subheader: { props: InternalListItem['props'] }\n}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\n fluid: Boolean,\n disabled: Boolean,\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 activatable: Boolean,\n selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n index: Number,\n isLastGroup: Boolean,\n separateRoots: Boolean,\n parentIndentLines: Array as PropType<IndentLineType[]>,\n indentLinesVariant: String as PropType<IndentLinesVariant>,\n path: {\n type: Array as PropType<number[]>,\n default: () => [],\n },\n ...pick(makeVTreeviewItemProps(), ['hideActions']),\n ...makeDensityProps(),\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, { slots }) {\n const isLoading = reactive(new Set<unknown>())\n const activatorItems = ref<VTreeviewItem[]>([])\n\n const isClickOnOpen = computed(() => (\n !props.disabled && (\n props.openOnClick != null\n ? props.openOnClick\n : props.selectable && !props.activatable\n )))\n\n async function checkChildren (item: InternalListItem) {\n try {\n if (!props.items?.length || !props.loadChildren) return\n\n if (item?.children?.length === 0) {\n isLoading.add(item.value)\n await props.loadChildren(item.raw)\n }\n } finally {\n isLoading.delete(item.value)\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((item, index, items) => {\n const { children, props: itemProps } = item\n const loading = isLoading.has(item.value)\n const nextItemHasChildren = !!items.at(index + 1)?.children\n\n const depth = props.path?.length ?? 0\n const isLast = items.length - 1 === index\n const treeItemProps = {\n index,\n depth,\n isFirst: index === 0,\n isLast,\n path: [...props.path, index],\n hideAction: props.hideActions,\n }\n\n const indentLines = getIndentLines({\n depth,\n isLast,\n isLastGroup: props.isLastGroup,\n leafLinks: !props.hideActions && !props.fluid,\n separateRoots: props.separateRoots,\n parentIndentLines: props.parentIndentLines,\n variant: props.indentLinesVariant,\n })\n\n const slotsWithItem = {\n toggle: slots.toggle\n ? slotProps => slots.toggle?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item, loading })\n : undefined,\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <VListItemAction start>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n disabled={ props.disabled }\n loading={ loading }\n color={ props.selectedColor }\n density={ props.density }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onUpdate:modelValue={ v => selectItem(slotProps.select, v) }\n onClick={ (e: PointerEvent) => e.stopPropagation() }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </VListItemAction>\n )}\n\n { slots.prepend?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item }) }\n </>\n ),\n append: slots.append\n ? slotProps => slots.append?.({ ...slotProps, ...treeItemProps, item: item.raw, internalItem: item })\n : undefined,\n title: slots.title ? slotProps => slots.title?.({ ...slotProps, item: item.raw, internalItem: item }) : undefined,\n subtitle: slots.subtitle ? slotProps => slots.subtitle?.({ ...slotProps, item: item.raw, internalItem: item }) : undefined,\n } satisfies VTreeviewItem['$props']['$children']\n\n const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps)\n const treeviewChildrenProps = VTreeviewChildren.filterProps({ ...props, ...treeItemProps })\n\n const footerProps = {\n hideActions: props.hideActions,\n indentLines: indentLines.footer,\n }\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item.raw : treeviewGroupProps?.value }\n rawId={ treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n hideActions: props.hideActions,\n indentLines: indentLines.node,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,\n onClick: isClickOnOpen.value\n ? [() => checkChildren(item), activatorProps.onClick] as any\n : () => selectItem(activatorItems.value[index]?.select, !activatorItems.value[index]?.isSelected),\n }\n\n return renderSlot(\n slots.header,\n { props: listItemProps, item: item.raw, internalItem: item, loading },\n () => (\n <VTreeviewItem\n ref={ el => activatorItems.value[index] = el as VTreeviewItem }\n { ...listItemProps }\n hasCustomPrepend={ !!slots.prepend }\n value={ props.returnObject ? item.raw : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n )\n },\n default: () => (\n <>\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n indentLinesVariant={ props.indentLinesVariant }\n parentIndentLines={ indentLines.children }\n isLastGroup={ nextItemHasChildren }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n { slots.footer?.({ props: footerProps, item: item.raw, internalItem: item, loading }) }\n </>\n ),\n }}\n </VTreeviewGroup>\n ) : renderSlot(\n slots.item,\n { props: itemProps, item: item.raw, internalItem: item },\n () => {\n if (item.type === 'divider') {\n return renderSlot(\n slots.divider,\n { props: item.raw },\n () => <VDivider { ...item.props } />,\n )\n }\n if (item.type === 'subheader') {\n return renderSlot(\n slots.subheader,\n { props: item.raw },\n () => <VListSubheader { ...item.props } />,\n )\n }\n return (\n <VTreeviewItem\n { ...itemProps }\n hasCustomPrepend={ !!slots.prepend }\n hideActions={ props.hideActions }\n indentLines={ indentLines.leaf }\n value={ props.returnObject ? toRaw(item.raw) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n )\n })\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,sBAAsB,EAAEC,aAAa;AAAA,SACrCC,YAAY;AAAA,SACZC,QAAQ;AAAA,SACRC,eAAe,EAAEC,cAAc,6BAExC;AAAA,SACSC,gBAAgB;AAAA,SAChBC,SAAS,sCAElB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC3CC,gBAAgB,EAAEC,cAAc,EAAEC,IAAI,EAAEC,YAAY,EAAEC,UAAU,+BAEzE;AAmCA,OAAO,MAAMC,0BAA0B,GAAGF,YAAY,CAAC;EACrDG,KAAK,EAAEC,OAAO;EACdC,QAAQ,EAAED,OAAO;EACjBE,YAAY,EAAEC,QAAsD;EACpEC,WAAW,EAAE;IACXC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK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ClC,IAAI,KAAK,SAAS,EAAE;UAC3B,OAAOR,UAAU,CACfoC,KAAK,CAACgE,OAAO,EACb;YAAEnE,KAAK,EAAES,IAAI,CAACK;UAAI,CAAC,EACnB,MAAA4B,YAAA,CAAAxF,QAAA,EAAqBuD,IAAI,CAACT,KAAK,OACjC,CAAC;QACH;QACA,IAAIS,IAAI,CAAClC,IAAI,KAAK,WAAW,EAAE;UAC7B,OAAOR,UAAU,CACfoC,KAAK,CAACiE,SAAS,EACf;YAAEpE,KAAK,EAAES,IAAI,CAACK;UAAI,CAAC,EACnB,MAAA4B,YAAA,CAAAtF,cAAA,EAA2BqD,IAAI,CAACT,KAAK,OACvC,CAAC;QACH;QACA,OAAA0C,YAAA,CAAA1F,aAAA,EAAAyG,WAAA,CAESrC,SAAS;UAAA,oBACK,CAAC,CAACjB,KAAK,CAACmC,OAAO;UAAA,eACpBtC,KAAK,CAAC8B,WAAW;UAAA,eACjBC,WAAW,CAACsC,IAAI;UAAA,SACtBrE,KAAK,CAACf,YAAY,GAAGvB,KAAK,CAAC+C,IAAI,CAACK,GAAG,CAAC,GAAGM,SAAS,CAACP;QAAK,IACpDqB,aAAa;MAG7B,CAAC,CAAC;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/entry-bundler.js
CHANGED
|
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
|
16
16
|
...options
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
export const version = "3.10.4-dev.2025-10-
|
|
19
|
+
export const version = "3.10.4-dev.2025-10-02";
|
|
20
20
|
createVuetify.version = version;
|
|
21
21
|
export { blueprints, components, directives };
|
|
22
22
|
export * from "./composables/index.js";
|
package/lib/framework.d.ts
CHANGED
|
@@ -2712,25 +2712,28 @@ declare module 'vue' {
|
|
|
2712
2712
|
$children?: VNodeChild
|
|
2713
2713
|
}
|
|
2714
2714
|
export interface GlobalComponents {
|
|
2715
|
-
VApp: typeof import('vuetify/components')['VApp']
|
|
2716
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
|
2717
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
2718
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2719
2715
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
2720
2716
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
2721
2717
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
2722
2718
|
VBadge: typeof import('vuetify/components')['VBadge']
|
|
2719
|
+
VApp: typeof import('vuetify/components')['VApp']
|
|
2720
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
|
2721
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
2723
2722
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
2724
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
2725
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
2726
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
|
2727
2723
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
2728
2724
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
2729
2725
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
2726
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2727
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
2730
2728
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
2731
2729
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
2732
2730
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
2733
2731
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
2732
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
2733
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
2734
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
2735
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
2736
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
2734
2737
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
2735
2738
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
2736
2739
|
VCard: typeof import('vuetify/components')['VCard']
|
|
@@ -2739,28 +2742,20 @@ declare module 'vue' {
|
|
|
2739
2742
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
2740
2743
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
2741
2744
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
2742
|
-
|
|
2743
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
2744
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
2745
|
-
VChip: typeof import('vuetify/components')['VChip']
|
|
2745
|
+
VCode: typeof import('vuetify/components')['VCode']
|
|
2746
2746
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
2747
|
-
|
|
2748
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
2749
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
|
2747
|
+
VChip: typeof import('vuetify/components')['VChip']
|
|
2750
2748
|
VDialog: typeof import('vuetify/components')['VDialog']
|
|
2749
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
|
2750
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
2751
2751
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
2752
2752
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
2753
2753
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
2754
2754
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
2755
2755
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
2756
2756
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
2757
|
-
|
|
2757
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
2758
2758
|
VDivider: typeof import('vuetify/components')['VDivider']
|
|
2759
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
2760
|
-
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
2761
|
-
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
2762
|
-
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
2763
|
-
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
2764
2759
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
2765
2760
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
2766
2761
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
@@ -2768,22 +2763,29 @@ declare module 'vue' {
|
|
|
2768
2763
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
2769
2764
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
2770
2765
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
2766
|
+
VFab: typeof import('vuetify/components')['VFab']
|
|
2771
2767
|
VField: typeof import('vuetify/components')['VField']
|
|
2772
2768
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
2773
|
-
|
|
2769
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
2770
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
2771
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
2772
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
2773
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
2774
2774
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
2775
2775
|
VImg: typeof import('vuetify/components')['VImg']
|
|
2776
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
|
2776
2777
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
2777
2778
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
2778
2779
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
2779
2780
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
2780
2781
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
2781
2782
|
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
2782
|
-
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
2783
|
-
VItem: typeof import('vuetify/components')['VItem']
|
|
2784
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
|
2785
2783
|
VKbd: typeof import('vuetify/components')['VKbd']
|
|
2786
2784
|
VInput: typeof import('vuetify/components')['VInput']
|
|
2785
|
+
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
2786
|
+
VItem: typeof import('vuetify/components')['VItem']
|
|
2787
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
2788
|
+
VMain: typeof import('vuetify/components')['VMain']
|
|
2787
2789
|
VList: typeof import('vuetify/components')['VList']
|
|
2788
2790
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
2789
2791
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -2793,73 +2795,71 @@ declare module 'vue' {
|
|
|
2793
2795
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
2794
2796
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
2795
2797
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
2796
|
-
|
|
2797
|
-
VMain: typeof import('vuetify/components')['VMain']
|
|
2798
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
|
2798
2799
|
VMessages: typeof import('vuetify/components')['VMessages']
|
|
2799
2800
|
VNumberInput: typeof import('vuetify/components')['VNumberInput']
|
|
2800
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
|
2801
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
2802
2801
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
2802
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
2803
2803
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
2804
|
-
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
2805
|
-
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
2806
2804
|
VPagination: typeof import('vuetify/components')['VPagination']
|
|
2805
|
+
VRating: typeof import('vuetify/components')['VRating']
|
|
2806
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
2807
2807
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
2808
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
2808
2809
|
VSelect: typeof import('vuetify/components')['VSelect']
|
|
2810
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
|
2811
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
2809
2812
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
2810
|
-
VRating: typeof import('vuetify/components')['VRating']
|
|
2811
|
-
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
2812
|
-
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
2813
2813
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
2814
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
2815
2814
|
VSlider: typeof import('vuetify/components')['VSlider']
|
|
2816
|
-
|
|
2815
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
2816
|
+
VTable: typeof import('vuetify/components')['VTable']
|
|
2817
|
+
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
2818
|
+
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
2817
2819
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
2818
2820
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
2819
2821
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
2820
2822
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
2821
2823
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
2822
2824
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
2823
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
|
2824
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
2825
2825
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
2826
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
2827
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
2828
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
|
2830
2829
|
VTab: typeof import('vuetify/components')['VTab']
|
|
2831
2830
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
2832
2831
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
2833
2832
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
2834
|
-
|
|
2835
|
-
|
|
2833
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
2834
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
2835
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
2836
2836
|
VTimePicker: typeof import('vuetify/components')['VTimePicker']
|
|
2837
2837
|
VTimePickerClock: typeof import('vuetify/components')['VTimePickerClock']
|
|
2838
2838
|
VTimePickerControls: typeof import('vuetify/components')['VTimePickerControls']
|
|
2839
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
|
2840
2839
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
2840
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
2841
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
2842
|
+
VWindow: typeof import('vuetify/components')['VWindow']
|
|
2843
|
+
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
2841
2844
|
VTreeview: typeof import('vuetify/components')['VTreeview']
|
|
2842
2845
|
VTreeviewItem: typeof import('vuetify/components')['VTreeviewItem']
|
|
2843
2846
|
VTreeviewGroup: typeof import('vuetify/components')['VTreeviewGroup']
|
|
2844
|
-
VWindow: typeof import('vuetify/components')['VWindow']
|
|
2845
|
-
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
2846
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
2847
2847
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
2848
2848
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
2849
2849
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
2850
2850
|
VForm: typeof import('vuetify/components')['VForm']
|
|
2851
|
-
VHover: typeof import('vuetify/components')['VHover']
|
|
2852
|
-
VLayout: typeof import('vuetify/components')['VLayout']
|
|
2853
|
-
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
2854
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
|
2855
2851
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
2856
2852
|
VCol: typeof import('vuetify/components')['VCol']
|
|
2857
2853
|
VRow: typeof import('vuetify/components')['VRow']
|
|
2858
2854
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
2855
|
+
VHover: typeof import('vuetify/components')['VHover']
|
|
2856
|
+
VLayout: typeof import('vuetify/components')['VLayout']
|
|
2857
|
+
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
2859
2858
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
2859
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
|
2860
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
|
2860
2861
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
2861
2862
|
VParallax: typeof import('vuetify/components')['VParallax']
|
|
2862
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
|
2863
2863
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
2864
2864
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
2865
2865
|
VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
|
|
@@ -2885,22 +2885,22 @@ declare module 'vue' {
|
|
|
2885
2885
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
2886
2886
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
2887
2887
|
VColorInput: typeof import('vuetify/labs/components')['VColorInput']
|
|
2888
|
-
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
2889
2888
|
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
|
2890
2889
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
2891
2890
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
2891
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
2892
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
2893
|
+
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
2892
2894
|
VPie: typeof import('vuetify/labs/components')['VPie']
|
|
2893
2895
|
VPieSegment: typeof import('vuetify/labs/components')['VPieSegment']
|
|
2894
2896
|
VPieTooltip: typeof import('vuetify/labs/components')['VPieTooltip']
|
|
2895
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
2896
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
2897
2897
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
2898
2898
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
2899
2899
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
2900
|
+
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2900
2901
|
VVideo: typeof import('vuetify/labs/components')['VVideo']
|
|
2901
2902
|
VVideoControls: typeof import('vuetify/labs/components')['VVideoControls']
|
|
2902
2903
|
VVideoVolume: typeof import('vuetify/labs/components')['VVideoVolume']
|
|
2903
|
-
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2904
2904
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
2905
2905
|
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
|
2906
2906
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
package/lib/framework.js
CHANGED
|
@@ -14,5 +14,6 @@ export type IndentLines = {
|
|
|
14
14
|
leaf: IndentLineType[] | undefined;
|
|
15
15
|
node: IndentLineType[] | undefined;
|
|
16
16
|
children: IndentLineType[] | undefined;
|
|
17
|
+
footer: IndentLineType[] | undefined;
|
|
17
18
|
};
|
|
18
19
|
export declare function getIndentLines({ depth, isLast, isLastGroup, leafLinks, separateRoots, parentIndentLines, variant }: IndentLinesOptions): IndentLines;
|
package/lib/util/indentLines.js
CHANGED
|
@@ -10,25 +10,28 @@ export function getIndentLines(_ref) {
|
|
|
10
10
|
parentIndentLines,
|
|
11
11
|
variant
|
|
12
12
|
} = _ref;
|
|
13
|
+
const isLastLeaf = isLast && (!isLastGroup || separateRoots || depth > 1);
|
|
13
14
|
if (!parentIndentLines || !depth) {
|
|
14
15
|
return {
|
|
15
16
|
leaf: undefined,
|
|
16
17
|
node: undefined,
|
|
17
|
-
children: parentIndentLines
|
|
18
|
+
children: parentIndentLines,
|
|
19
|
+
footer: parentIndentLines && (!isLastLeaf || variant === 'simple') ? [...parentIndentLines, separateRoots ? 'none' : 'line'] : ['none']
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
if (variant === 'simple') {
|
|
21
23
|
return {
|
|
22
24
|
leaf: [...parentIndentLines, 'line'],
|
|
23
25
|
node: [...parentIndentLines, 'line'],
|
|
24
|
-
children: [...parentIndentLines, 'line']
|
|
26
|
+
children: [...parentIndentLines, 'line'],
|
|
27
|
+
footer: [...parentIndentLines, 'line', 'line']
|
|
25
28
|
};
|
|
26
29
|
}
|
|
27
|
-
const isLastLeaf = isLast && (!isLastGroup || separateRoots || depth > 1);
|
|
28
30
|
return {
|
|
29
31
|
leaf: [...parentIndentLines, isLastLeaf ? 'last-leaf' : 'leaf', ...(leafLinks ? ['leaf-link'] : [])],
|
|
30
32
|
node: [...parentIndentLines, isLastLeaf ? 'last-leaf' : 'leaf'],
|
|
31
|
-
children: [...parentIndentLines, isLastLeaf ? 'none' : 'line']
|
|
33
|
+
children: [...parentIndentLines, isLastLeaf ? 'none' : 'line'],
|
|
34
|
+
footer: [...parentIndentLines, isLastLeaf ? 'none' : 'line']
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=indentLines.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indentLines.js","names":["getIndentLines","_ref","depth","isLast","isLastGroup","leafLinks","separateRoots","parentIndentLines","variant","leaf","undefined","node","children","
|
|
1
|
+
{"version":3,"file":"indentLines.js","names":["getIndentLines","_ref","depth","isLast","isLastGroup","leafLinks","separateRoots","parentIndentLines","variant","isLastLeaf","leaf","undefined","node","children","footer"],"sources":["../../src/util/indentLines.ts"],"sourcesContent":["// Types\nexport type IndentLinesVariant = 'default' | 'simple'\nexport type IndentLineType = 'leaf' | 'last-leaf' | 'line' | 'leaf-link' | 'none'\n\nexport type IndentLinesOptions = {\n depth: number\n isLast: boolean\n isLastGroup: boolean\n leafLinks: boolean\n separateRoots: boolean\n parentIndentLines: IndentLineType[] | undefined\n variant: IndentLinesVariant | undefined\n}\n\nexport type IndentLines = {\n leaf: IndentLineType[] | undefined\n node: IndentLineType[] | undefined\n children: IndentLineType[] | undefined\n footer: IndentLineType[] | undefined\n}\n\nexport function getIndentLines ({\n depth,\n isLast,\n isLastGroup,\n leafLinks,\n separateRoots,\n parentIndentLines,\n variant,\n}: IndentLinesOptions): IndentLines {\n const isLastLeaf = isLast && (!isLastGroup || separateRoots || depth > 1)\n\n if (!parentIndentLines || !depth) {\n return {\n leaf: undefined,\n node: undefined,\n children: parentIndentLines,\n footer: parentIndentLines && (!isLastLeaf || variant === 'simple')\n ? [...parentIndentLines, separateRoots ? 'none' : 'line']\n : ['none'],\n }\n }\n\n if (variant === 'simple') {\n return {\n leaf: [...parentIndentLines, 'line'],\n node: [...parentIndentLines, 'line'],\n children: [...parentIndentLines, 'line'],\n footer: [...parentIndentLines, 'line', 'line'],\n }\n }\n\n return {\n leaf: [\n ...parentIndentLines,\n isLastLeaf ? 'last-leaf' : 'leaf',\n ...leafLinks ? ['leaf-link'] as IndentLineType[] : [],\n ],\n node: [\n ...parentIndentLines,\n isLastLeaf ? 'last-leaf' : 'leaf',\n ],\n children: [\n ...parentIndentLines,\n isLastLeaf ? 'none' : 'line',\n ],\n footer: [\n ...parentIndentLines,\n isLastLeaf ? 'none' : 'line',\n ],\n }\n}\n"],"mappings":"AAAA;;AAqBA,OAAO,SAASA,cAAcA,CAAAC,IAAA,EAQM;EAAA,IARJ;IAC9BC,KAAK;IACLC,MAAM;IACNC,WAAW;IACXC,SAAS;IACTC,aAAa;IACbC,iBAAiB;IACjBC;EACkB,CAAC,GAAAP,IAAA;EACnB,MAAMQ,UAAU,GAAGN,MAAM,KAAK,CAACC,WAAW,IAAIE,aAAa,IAAIJ,KAAK,GAAG,CAAC,CAAC;EAEzE,IAAI,CAACK,iBAAiB,IAAI,CAACL,KAAK,EAAE;IAChC,OAAO;MACLQ,IAAI,EAAEC,SAAS;MACfC,IAAI,EAAED,SAAS;MACfE,QAAQ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