@vuetify/nightly 3.6.14-master.2024-08-02 → 3.6.14-master.2024-08-04
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/importMap-labs.json +16 -16
- package/dist/json/importMap.json +136 -136
- package/dist/json/web-types.json +1 -1
- package/dist/vuetify-labs.css +2939 -2939
- package/dist/vuetify-labs.d.ts +4 -10
- package/dist/vuetify-labs.esm.js +6 -8
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +6 -8
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3002 -3002
- package/dist/vuetify.d.ts +48 -48
- package/dist/vuetify.esm.js +5 -5
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +5 -5
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +5 -5
- package/dist/vuetify.min.js.map +1 -1
- package/lib/composables/teleport.mjs +1 -1
- package/lib/composables/teleport.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +1 -1
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/directives/index.d.mts +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +47 -47
- package/lib/labs/VTreeview/VTreeview.mjs +1 -3
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +3 -9
- package/lib/labs/components.d.mts +3 -9
- package/package.json +1 -1
@@ -10,7 +10,7 @@ export function useTeleport(target) {
|
|
10
10
|
warn(`Unable to locate target ${_target}`);
|
11
11
|
return undefined;
|
12
12
|
}
|
13
|
-
let container = targetElement.
|
13
|
+
let container = [...targetElement.children].find(el => el.matches('.v-overlay-container'));
|
14
14
|
if (!container) {
|
15
15
|
container = document.createElement('div');
|
16
16
|
container.className = 'v-overlay-container';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"teleport.mjs","names":["computed","warn","IN_BROWSER","useTeleport","target","teleportTarget","_target","undefined","targetElement","document","body","querySelector","container","createElement","className","appendChild"],"sources":["../../src/composables/teleport.ts"],"sourcesContent":["// Utilities\nimport { computed, warn } from 'vue'\nimport { IN_BROWSER } from '@/util'\n\nexport function useTeleport (target: () => (boolean | string | ParentNode)) {\n const teleportTarget = computed(() => {\n const _target = target()\n\n if (_target === true || !IN_BROWSER) return undefined\n\n const targetElement =\n _target === false ? document.body\n : typeof _target === 'string' ? document.querySelector(_target)\n : _target\n\n if (targetElement == null) {\n warn(`Unable to locate target ${_target}`)\n return undefined\n }\n\n let container = targetElement.
|
1
|
+
{"version":3,"file":"teleport.mjs","names":["computed","warn","IN_BROWSER","useTeleport","target","teleportTarget","_target","undefined","targetElement","document","body","querySelector","container","children","find","el","matches","createElement","className","appendChild"],"sources":["../../src/composables/teleport.ts"],"sourcesContent":["// Utilities\nimport { computed, warn } from 'vue'\nimport { IN_BROWSER } from '@/util'\n\nexport function useTeleport (target: () => (boolean | string | ParentNode)) {\n const teleportTarget = computed(() => {\n const _target = target()\n\n if (_target === true || !IN_BROWSER) return undefined\n\n const targetElement =\n _target === false ? document.body\n : typeof _target === 'string' ? document.querySelector(_target)\n : _target\n\n if (targetElement == null) {\n warn(`Unable to locate target ${_target}`)\n return undefined\n }\n\n let container = [...targetElement.children].find(el => el.matches('.v-overlay-container'))\n\n if (!container) {\n container = document.createElement('div')\n container.className = 'v-overlay-container'\n targetElement.appendChild(container)\n }\n\n return container\n })\n\n return { teleportTarget }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,KAAK;AAAA,SAC3BC,UAAU;AAEnB,OAAO,SAASC,WAAWA,CAAEC,MAA6C,EAAE;EAC1E,MAAMC,cAAc,GAAGL,QAAQ,CAAC,MAAM;IACpC,MAAMM,OAAO,GAAGF,MAAM,CAAC,CAAC;IAExB,IAAIE,OAAO,KAAK,IAAI,IAAI,CAACJ,UAAU,EAAE,OAAOK,SAAS;IAErD,MAAMC,aAAa,GACjBF,OAAO,KAAK,KAAK,GAAGG,QAAQ,CAACC,IAAI,GAC/B,OAAOJ,OAAO,KAAK,QAAQ,GAAGG,QAAQ,CAACE,aAAa,CAACL,OAAO,CAAC,GAC7DA,OAAO;IAEX,IAAIE,aAAa,IAAI,IAAI,EAAE;MACzBP,IAAI,CAAC,2BAA2BK,OAAO,EAAE,CAAC;MAC1C,OAAOC,SAAS;IAClB;IAEA,IAAIK,SAAS,GAAG,CAAC,GAAGJ,aAAa,CAACK,QAAQ,CAAC,CAACC,IAAI,CAACC,EAAE,IAAIA,EAAE,CAACC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE1F,IAAI,CAACJ,SAAS,EAAE;MACdA,SAAS,GAAGH,QAAQ,CAACQ,aAAa,CAAC,KAAK,CAAC;MACzCL,SAAS,CAACM,SAAS,GAAG,qBAAqB;MAC3CV,aAAa,CAACW,WAAW,CAACP,SAAS,CAAC;IACtC;IAEA,OAAOA,SAAS;EAClB,CAAC,CAAC;EAEF,OAAO;IAAEP;EAAe,CAAC;AAC3B","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["attachedRoot","defaultConditional","checkEvent","e","el","binding","checkIsActive","root","ShadowRoot","host","target","elements","value","include","push","some","contains","isActive","closeConditional","directive","handler","_clickOutside","lastMousedownWasOutside","setTimeout","handleShadow","callback","document","ClickOutside","mounted","onClick","onMousedown","app","addEventListener","instance","$","uid","
|
1
|
+
{"version":3,"file":"index.mjs","names":["attachedRoot","defaultConditional","checkEvent","e","el","binding","checkIsActive","root","ShadowRoot","host","target","elements","value","include","push","some","contains","isActive","closeConditional","directive","handler","_clickOutside","lastMousedownWasOutside","setTimeout","handleShadow","callback","document","ClickOutside","mounted","onClick","onMousedown","app","addEventListener","instance","$","uid","beforeUnmount","removeEventListener"],"sources":["../../../src/directives/click-outside/index.ts"],"sourcesContent":["// Utilities\nimport { attachedRoot } from '@/util'\n\n// Types\nimport type { DirectiveBinding } from 'vue'\n\ninterface ClickOutsideBindingArgs {\n handler: (e: MouseEvent) => void\n closeConditional?: (e: Event) => boolean\n include?: () => HTMLElement[]\n}\n\ninterface ClickOutsideDirectiveBinding extends DirectiveBinding {\n value: ((e: MouseEvent) => void) | ClickOutsideBindingArgs\n}\n\nfunction defaultConditional () {\n return true\n}\n\nfunction checkEvent (e: MouseEvent, el: HTMLElement, binding: ClickOutsideDirectiveBinding): boolean {\n // The include element callbacks below can be expensive\n // so we should avoid calling them when we're not active.\n // Explicitly check for false to allow fallback compatibility\n // with non-toggleable components\n if (!e || checkIsActive(e, binding) === false) return false\n\n // If we're clicking inside the shadowroot, then the app root doesn't get the same\n // level of introspection as to _what_ we're clicking. We want to check to see if\n // our target is the shadowroot parent container, and if it is, ignore.\n const root = attachedRoot(el)\n if (\n typeof ShadowRoot !== 'undefined' &&\n root instanceof ShadowRoot &&\n root.host === e.target\n ) return false\n\n // Check if additional elements were passed to be included in check\n // (click must be outside all included elements, if any)\n const elements = ((typeof binding.value === 'object' && binding.value.include) || (() => []))()\n // Add the root element for the component this directive was defined on\n elements.push(el)\n\n // Check if it's a click outside our elements, and then if our callback returns true.\n // Non-toggleable components should take action in their callback and return falsy.\n // Toggleable can return true if it wants to deactivate.\n // Note that, because we're in the capture phase, this callback will occur before\n // the bubbling click event on any outside elements.\n return !elements.some(el => el?.contains(e.target as Node))\n}\n\nfunction checkIsActive (e: MouseEvent, binding: ClickOutsideDirectiveBinding): boolean | void {\n const isActive = (typeof binding.value === 'object' && binding.value.closeConditional) || defaultConditional\n\n return isActive(e)\n}\n\nfunction directive (e: MouseEvent, el: HTMLElement, binding: ClickOutsideDirectiveBinding) {\n const handler = typeof binding.value === 'function' ? binding.value : binding.value.handler\n\n el._clickOutside!.lastMousedownWasOutside && checkEvent(e, el, binding) && setTimeout(() => {\n checkIsActive(e, binding) && handler && handler(e)\n }, 0)\n}\n\nfunction handleShadow (el: HTMLElement, callback: Function): void {\n const root = attachedRoot(el)\n\n callback(document)\n\n if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot) {\n callback(root)\n }\n}\n\nexport const ClickOutside = {\n // [data-app] may not be found\n // if using bind, inserted makes\n // sure that the root element is\n // available, iOS does not support\n // clicks on body\n mounted (el: HTMLElement, binding: ClickOutsideDirectiveBinding) {\n const onClick = (e: Event) => directive(e as MouseEvent, el, binding)\n const onMousedown = (e: Event) => {\n el._clickOutside!.lastMousedownWasOutside = checkEvent(e as MouseEvent, el, binding)\n }\n\n handleShadow(el, (app: HTMLElement) => {\n app.addEventListener('click', onClick, true)\n app.addEventListener('mousedown', onMousedown, true)\n })\n\n if (!el._clickOutside) {\n el._clickOutside = {\n lastMousedownWasOutside: false,\n }\n }\n\n el._clickOutside[binding.instance!.$.uid] = {\n onClick,\n onMousedown,\n }\n },\n\n beforeUnmount (el: HTMLElement, binding: ClickOutsideDirectiveBinding) {\n if (!el._clickOutside) return\n\n handleShadow(el, (app: HTMLElement) => {\n if (!app || !el._clickOutside?.[binding.instance!.$.uid]) return\n\n const { onClick, onMousedown } = el._clickOutside[binding.instance!.$.uid]!\n\n app.removeEventListener('click', onClick, true)\n app.removeEventListener('mousedown', onMousedown, true)\n })\n\n delete el._clickOutside[binding.instance!.$.uid]\n },\n}\n\nexport default ClickOutside\n"],"mappings":"AAAA;AAAA,SACSA,YAAY,gCAErB;AAaA,SAASC,kBAAkBA,CAAA,EAAI;EAC7B,OAAO,IAAI;AACb;AAEA,SAASC,UAAUA,CAAEC,CAAa,EAAEC,EAAe,EAAEC,OAAqC,EAAW;EACnG;EACA;EACA;EACA;EACA,IAAI,CAACF,CAAC,IAAIG,aAAa,CAACH,CAAC,EAAEE,OAAO,CAAC,KAAK,KAAK,EAAE,OAAO,KAAK;;EAE3D;EACA;EACA;EACA,MAAME,IAAI,GAAGP,YAAY,CAACI,EAAE,CAAC;EAC7B,IACE,OAAOI,UAAU,KAAK,WAAW,IACjCD,IAAI,YAAYC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1D,MAAM;QAAEN,OAAO;QAAEC;MAAY,CAAC,GAAG1B,EAAE,CAACiB,aAAa,CAAChB,OAAO,CAAC4B,QAAQ,CAAEC,CAAC,CAACC,GAAG,CAAE;MAE3EJ,GAAG,CAACM,mBAAmB,CAAC,OAAO,EAAER,OAAO,EAAE,IAAI,CAAC;MAC/CE,GAAG,CAACM,mBAAmB,CAAC,WAAW,EAAEP,WAAW,EAAE,IAAI,CAAC;IACzD,CAAC,CAAC;IAEF,OAAO1B,EAAE,CAACiB,aAAa,CAAChB,OAAO,CAAC4B,QAAQ,CAAEC,CAAC,CAACC,GAAG,CAAC;EAClD;AACF,CAAC;AAED,eAAeR,YAAY","ignoreList":[]}
|
@@ -10,7 +10,7 @@ interface ClickOutsideDirectiveBinding extends DirectiveBinding {
|
|
10
10
|
}
|
11
11
|
declare const ClickOutside: {
|
12
12
|
mounted(el: HTMLElement, binding: ClickOutsideDirectiveBinding): void;
|
13
|
-
|
13
|
+
beforeUnmount(el: HTMLElement, binding: ClickOutsideDirectiveBinding): void;
|
14
14
|
};
|
15
15
|
|
16
16
|
type ObserveHandler = (isIntersecting: boolean, entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.6.14-master.2024-08-
|
19
|
+
export const version = "3.6.14-master.2024-08-04";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -464,42 +464,41 @@ declare global {
|
|
464
464
|
}
|
465
465
|
}
|
466
466
|
interface _GlobalComponents {
|
467
|
-
VApp: typeof import('vuetify/components')['VApp']
|
468
467
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
469
468
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
470
469
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
470
|
+
VApp: typeof import('vuetify/components')['VApp']
|
471
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
472
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
471
473
|
VAlert: typeof import('vuetify/components')['VAlert']
|
472
474
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
473
475
|
VBanner: typeof import('vuetify/components')['VBanner']
|
474
476
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
475
477
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
476
|
-
|
477
|
-
|
478
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
479
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
478
480
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
479
481
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
480
482
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
481
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
482
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
483
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
484
483
|
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
485
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
486
484
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
487
|
-
|
488
|
-
|
485
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
486
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
489
487
|
VCard: typeof import('vuetify/components')['VCard']
|
490
488
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
491
489
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
492
490
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
493
491
|
VCardText: typeof import('vuetify/components')['VCardText']
|
494
492
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
495
|
-
|
496
|
-
|
497
|
-
VCode: typeof import('vuetify/components')['VCode']
|
493
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
494
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
498
495
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
499
496
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
500
|
-
|
497
|
+
VCode: typeof import('vuetify/components')['VCode']
|
498
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
499
|
+
VChip: typeof import('vuetify/components')['VChip']
|
501
500
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
502
|
-
|
501
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
503
502
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
504
503
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
505
504
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -507,6 +506,7 @@ interface _GlobalComponents {
|
|
507
506
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
508
507
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
509
508
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
509
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
510
510
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
511
511
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
512
512
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
@@ -516,26 +516,26 @@ interface _GlobalComponents {
|
|
516
516
|
VDialog: typeof import('vuetify/components')['VDialog']
|
517
517
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
518
518
|
VDivider: typeof import('vuetify/components')['VDivider']
|
519
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
520
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
519
521
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
520
522
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
521
523
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
522
524
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
523
|
-
VFab: typeof import('vuetify/components')['VFab']
|
524
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
525
525
|
VField: typeof import('vuetify/components')['VField']
|
526
526
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
527
|
-
|
527
|
+
VFab: typeof import('vuetify/components')['VFab']
|
528
528
|
VIcon: typeof import('vuetify/components')['VIcon']
|
529
529
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
530
530
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
531
531
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
532
532
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
533
|
-
VImg: typeof import('vuetify/components')['VImg']
|
534
533
|
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
534
|
+
VImg: typeof import('vuetify/components')['VImg']
|
535
|
+
VInput: typeof import('vuetify/components')['VInput']
|
536
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
535
537
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
536
538
|
VItem: typeof import('vuetify/components')['VItem']
|
537
|
-
VInput: typeof import('vuetify/components')['VInput']
|
538
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
539
539
|
VList: typeof import('vuetify/components')['VList']
|
540
540
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
541
541
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -545,64 +545,70 @@ interface _GlobalComponents {
|
|
545
545
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
546
546
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
547
547
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
548
|
-
|
548
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
549
549
|
VMain: typeof import('vuetify/components')['VMain']
|
550
550
|
VMenu: typeof import('vuetify/components')['VMenu']
|
551
551
|
VMessages: typeof import('vuetify/components')['VMessages']
|
552
552
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
553
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
554
553
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
554
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
555
555
|
VPagination: typeof import('vuetify/components')['VPagination']
|
556
556
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
557
557
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
558
|
-
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
559
558
|
VRating: typeof import('vuetify/components')['VRating']
|
559
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
560
560
|
VSelect: typeof import('vuetify/components')['VSelect']
|
561
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
562
561
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
563
562
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
564
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
565
563
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
564
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
565
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
566
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
566
567
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
567
568
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
568
|
-
|
569
|
-
|
570
|
-
|
569
|
+
VStepper: typeof import('vuetify/components')['VStepper']
|
570
|
+
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
571
|
+
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
572
|
+
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
573
|
+
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
574
|
+
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
571
575
|
VTab: typeof import('vuetify/components')['VTab']
|
572
576
|
VTabs: typeof import('vuetify/components')['VTabs']
|
573
577
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
574
578
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
575
|
-
|
576
|
-
|
577
|
-
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
578
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
579
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
580
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
579
581
|
VTable: typeof import('vuetify/components')['VTable']
|
580
582
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
581
|
-
VTooltip: typeof import('vuetify/components')['VTooltip']
|
582
583
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
583
584
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
585
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
586
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
587
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
588
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
589
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
584
590
|
VWindow: typeof import('vuetify/components')['VWindow']
|
585
591
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
586
592
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
587
593
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
588
594
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
589
|
-
VForm: typeof import('vuetify/components')['VForm']
|
590
595
|
VContainer: typeof import('vuetify/components')['VContainer']
|
591
596
|
VCol: typeof import('vuetify/components')['VCol']
|
592
597
|
VRow: typeof import('vuetify/components')['VRow']
|
593
598
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
599
|
+
VForm: typeof import('vuetify/components')['VForm']
|
594
600
|
VHover: typeof import('vuetify/components')['VHover']
|
595
601
|
VLayout: typeof import('vuetify/components')['VLayout']
|
596
602
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
597
603
|
VLazy: typeof import('vuetify/components')['VLazy']
|
598
604
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
599
605
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
600
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
601
606
|
VRadio: typeof import('vuetify/components')['VRadio']
|
602
|
-
|
607
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
603
608
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
604
|
-
|
609
|
+
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
605
610
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
611
|
+
VSparkline: typeof import('vuetify/components')['VSparkline']
|
606
612
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
607
613
|
VValidation: typeof import('vuetify/components')['VValidation']
|
608
614
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
@@ -622,24 +628,18 @@ interface _GlobalComponents {
|
|
622
628
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
623
629
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
624
630
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
625
|
-
VStepper: typeof import('vuetify/components')['VStepper']
|
626
|
-
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
627
|
-
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
628
|
-
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
629
|
-
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
630
|
-
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
631
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
632
631
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
633
632
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
634
633
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
635
634
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
636
635
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
637
636
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
637
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
638
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
639
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
638
640
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
639
641
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
640
642
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
641
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
642
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
643
643
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
644
644
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
645
645
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
@@ -647,8 +647,8 @@ interface _GlobalComponents {
|
|
647
647
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
648
648
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
649
649
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
650
|
-
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
651
650
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
651
|
+
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
652
652
|
}
|
653
653
|
declare module 'vue' {
|
654
654
|
export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","selected","vListRef","opened","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default","open"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const opened = computed(() => props.openAll ? openAll(items.value) : props.opened)\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return {\n open,\n }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC1CC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAKxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,M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;IAEF,OAAO;MACL6C;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","selected","vListRef","opened","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const opened = computed(() => props.openAll ? openAll(items.value) : props.opened)\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return { }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC1CC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAKxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACxD,KAAK,MAAMG,IAAI,IAAIL,KAAK,EAAE;IACxBC,IAAI,CAACK,IAAI,CAACD,IAAI,CAAC;IACf,IAAIA,IAAI,CAACE,QAAQ,EAAER,OAAO,CAACM,IAAI,CAACE,QAAQ,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}, {
|
251
|
-
open: typeof open;
|
252
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
250
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
253
251
|
'update:opened': (val: unknown) => boolean;
|
254
252
|
'update:activated': (val: unknown) => boolean;
|
255
253
|
'update:selected': (val: unknown) => boolean;
|
@@ -515,9 +513,7 @@ declare const VTreeview: {
|
|
515
513
|
value: boolean;
|
516
514
|
path: unknown[];
|
517
515
|
}) => any) | undefined;
|
518
|
-
}, {
|
519
|
-
open: typeof open;
|
520
|
-
}, {}, {}, {}, {
|
516
|
+
}, {}, {}, {}, {}, {
|
521
517
|
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
522
518
|
style: vue.StyleValue;
|
523
519
|
disabled: boolean;
|
@@ -628,9 +624,7 @@ declare const VTreeview: {
|
|
628
624
|
value: boolean;
|
629
625
|
path: unknown[];
|
630
626
|
}) => any) | undefined;
|
631
|
-
}, {
|
632
|
-
open: typeof open;
|
633
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
627
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
634
628
|
'update:opened': (val: unknown) => boolean;
|
635
629
|
'update:activated': (val: unknown) => boolean;
|
636
630
|
'update:selected': (val: unknown) => boolean;
|
@@ -9839,9 +9839,7 @@ declare const VTreeview: {
|
|
9839
9839
|
value: boolean;
|
9840
9840
|
path: unknown[];
|
9841
9841
|
}) => any) | undefined;
|
9842
|
-
}, {
|
9843
|
-
open: typeof open;
|
9844
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
9842
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
9845
9843
|
'update:opened': (val: unknown) => boolean;
|
9846
9844
|
'update:activated': (val: unknown) => boolean;
|
9847
9845
|
'update:selected': (val: unknown) => boolean;
|
@@ -10107,9 +10105,7 @@ declare const VTreeview: {
|
|
10107
10105
|
value: boolean;
|
10108
10106
|
path: unknown[];
|
10109
10107
|
}) => any) | undefined;
|
10110
|
-
}, {
|
10111
|
-
open: typeof open;
|
10112
|
-
}, {}, {}, {}, {
|
10108
|
+
}, {}, {}, {}, {}, {
|
10113
10109
|
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
10114
10110
|
style: vue.StyleValue;
|
10115
10111
|
disabled: boolean;
|
@@ -10220,9 +10216,7 @@ declare const VTreeview: {
|
|
10220
10216
|
value: boolean;
|
10221
10217
|
path: unknown[];
|
10222
10218
|
}) => any) | undefined;
|
10223
|
-
}, {
|
10224
|
-
open: typeof open;
|
10225
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
10219
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
10226
10220
|
'update:opened': (val: unknown) => boolean;
|
10227
10221
|
'update:activated': (val: unknown) => boolean;
|
10228
10222
|
'update:selected': (val: unknown) => boolean;
|
package/package.json
CHANGED