vuetify 3.7.9 → 3.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +1041 -1037
- package/dist/json/importMap-labs.json +14 -14
- package/dist/json/importMap.json +154 -154
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +2437 -2427
- package/dist/vuetify-labs.css +4911 -4911
- package/dist/vuetify-labs.d.ts +41 -118
- package/dist/vuetify-labs.esm.js +72 -9
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +71 -8
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +4741 -4741
- package/dist/vuetify.d.ts +81 -173
- package/dist/vuetify.esm.js +61 -8
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +60 -7
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +462 -459
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +10 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +11 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs +2 -1
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.mjs +5 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.mts +52 -119
- package/lib/components/index.d.mts +26 -118
- package/lib/components/transitions/expand-transition.mjs +2 -0
- package/lib/components/transitions/expand-transition.mjs.map +1 -1
- package/lib/composables/mousedown.mjs +30 -0
- package/lib/composables/mousedown.mjs.map +1 -0
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +55 -55
- package/lib/labs/VTreeview/VTreeview.mjs +1 -1
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +13 -2
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +15 -0
- package/lib/labs/components.d.mts +15 -0
- package/lib/locale/da.mjs +5 -5
- package/lib/locale/da.mjs.map +1 -1
- package/lib/locale/de.mjs +3 -3
- package/lib/locale/de.mjs.map +1 -1
- package/lib/locale/fi.mjs +5 -5
- package/lib/locale/fi.mjs.map +1 -1
- package/package.json +2 -2
package/lib/framework.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,UAAU,EAAEC,UAAU;AAAA,SACtBC,WAAW,EAAEC,UAAU;AAAA,SACvBC,YAAY,EAAEC,YAAY;AAAA,SAC1BC,WAAW,EAAEC,WAAW,mCAEjC;AACA,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC/BC,eAAe,EAAEC,MAAM,EAAEC,UAAU,EAAEC,SAAS,4BAEvD;AAAA;AA6BA,OAAO,SAASC,aAAaA,CAAA,EAAgC;EAAA,IAA9BC,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD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,CAAC;IAEd,IAAI,OAAOC,mBAAmB,KAAK,SAAS,IAAIA,mBAAmB,EAAE;MACnEd,GAAG,CAACe,KAAK,CAAC;QACRC,QAAQ,EAAE;UACRC,QAAQA,CAAA,EAAI;YACV,OAAO1C,QAAQ,CAAC;cACdgB,QAAQ,EAAE2B,MAAM,CAACC,IAAI,CAAC,IAAI,EAAExD,cAAc,CAAC;cAC3C6B,OAAO,EAAE0B,MAAM,CAACC,IAAI,CAAC,IAAI,EAAEtD,aAAa,CAAC;cACzC6B,KAAK,EAAEwB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE9C,WAAW,CAAC;cACrCsB,KAAK,EAAEuB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAElD,UAAU,CAAC;cACpC2B,MAAM,EAAEsB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAEhD,YAAY,CAAC;cACvC0B,IAAI,EAAEqB,MAAM,CAACC,IAAI,CAAC,IAAI,EAAE3D,iBAAiB;YAC3C,CAAC,CAAC;UACJ;QACF;MACF,CAAC,CAAC;IACJ;EACF,CAAC;EAED,OAAO;IACLuC,OAAO;IACPR,QAAQ;IACRC,OAAO;IACPE,KAAK;IACLC,KAAK;IACLC,MAAM;IACNC,IAAI;IACJC;EACF,CAAC;AACH;AAEA,OAAO,MAAMsB,OAAO,
|
|
1
|
+
{"version":3,"file":"framework.mjs","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","getUid","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","reset","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, getUid, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n const install = (app: App) => {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n theme.install(app)\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n getUid.reset()\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n return {\n install,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,UAAU,E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B,GAA+B,EAAE;EAC/E,MAAMW,EAAE,GAAG,IAAI,CAACS,CAAC;EAEjB,MAAMC,QAAQ,GAAGV,EAAE,CAACW,MAAM,EAAED,QAAQ,IAAIV,EAAE,CAACY,KAAK,CAACC,UAAU,EAAEH,QAAQ;EAErE,IAAIA,QAAQ,IAAKrB,GAAG,IAAYqB,QAAQ,EAAE;IACxC,OAAOA,QAAQ,CAAErB,GAAG,CAAY;EAClC;AACF","ignoreList":[]}
|
package/lib/index.d.mts
CHANGED
|
@@ -486,43 +486,42 @@ declare module 'vue' {
|
|
|
486
486
|
$children?: VNodeChild
|
|
487
487
|
}
|
|
488
488
|
export interface GlobalComponents {
|
|
489
|
-
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
490
|
-
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
491
|
-
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
492
489
|
VApp: typeof import('vuetify/components')['VApp']
|
|
493
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
494
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
|
495
490
|
VAlert: typeof import('vuetify/components')['VAlert']
|
|
496
491
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
497
|
-
|
|
492
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
498
493
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
499
494
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
500
495
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
496
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
497
|
+
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
498
|
+
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
499
|
+
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
500
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
504
501
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
505
502
|
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
506
|
-
|
|
503
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
|
507
504
|
VCard: typeof import('vuetify/components')['VCard']
|
|
508
505
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
509
506
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
510
507
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
511
508
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
512
509
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
510
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
511
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
512
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
513
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
518
514
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
519
515
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
520
|
-
|
|
516
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
521
517
|
VChip: typeof import('vuetify/components')['VChip']
|
|
522
518
|
VCode: typeof import('vuetify/components')['VCode']
|
|
519
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
520
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
521
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
523
522
|
VCounter: typeof import('vuetify/components')['VCounter']
|
|
524
523
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
525
|
-
|
|
524
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
526
525
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
527
526
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
528
527
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
@@ -530,36 +529,34 @@ declare module 'vue' {
|
|
|
530
529
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
531
530
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
532
531
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
532
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
|
533
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
|
533
534
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
534
535
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
535
536
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
536
537
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
537
538
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
538
539
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
540
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
541
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
539
542
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
540
543
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
541
544
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
542
545
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
543
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
544
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
545
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
|
546
546
|
VFab: typeof import('vuetify/components')['VFab']
|
|
547
547
|
VField: typeof import('vuetify/components')['VField']
|
|
548
548
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
549
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
|
549
550
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
550
551
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
551
552
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
552
553
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
553
554
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
554
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
|
555
555
|
VImg: typeof import('vuetify/components')['VImg']
|
|
556
556
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
557
557
|
VItem: typeof import('vuetify/components')['VItem']
|
|
558
|
-
VInput: typeof import('vuetify/components')['VInput']
|
|
559
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
|
560
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
|
561
|
-
VMain: typeof import('vuetify/components')['VMain']
|
|
562
558
|
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
559
|
+
VInput: typeof import('vuetify/components')['VInput']
|
|
563
560
|
VList: typeof import('vuetify/components')['VList']
|
|
564
561
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
565
562
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -569,71 +566,74 @@ declare module 'vue' {
|
|
|
569
566
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
570
567
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
571
568
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
572
|
-
|
|
573
|
-
|
|
569
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
|
570
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
571
|
+
VMain: typeof import('vuetify/components')['VMain']
|
|
574
572
|
VMenu: typeof import('vuetify/components')['VMenu']
|
|
575
|
-
|
|
573
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
|
574
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
576
575
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
577
|
-
|
|
576
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
578
577
|
VPagination: typeof import('vuetify/components')['VPagination']
|
|
578
|
+
VRating: typeof import('vuetify/components')['VRating']
|
|
579
579
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
580
580
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
581
|
-
|
|
582
|
-
VRating: typeof import('vuetify/components')['VRating']
|
|
583
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
|
584
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
581
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
585
582
|
VSelect: typeof import('vuetify/components')['VSelect']
|
|
583
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
584
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
585
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
586
586
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
587
587
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
588
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
|
588
589
|
VSlider: typeof import('vuetify/components')['VSlider']
|
|
589
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
590
590
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
591
591
|
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
592
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
593
|
+
VTable: typeof import('vuetify/components')['VTable']
|
|
594
|
+
VTab: typeof import('vuetify/components')['VTab']
|
|
595
|
+
VTabs: typeof import('vuetify/components')['VTabs']
|
|
596
|
+
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
597
|
+
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
592
598
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
593
599
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
594
600
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
595
601
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
596
602
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
597
603
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
VTabs: typeof import('vuetify/components')['VTabs']
|
|
601
|
-
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
602
|
-
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
604
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
605
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
603
606
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
604
|
-
|
|
607
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
605
608
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
606
609
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
607
610
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
608
|
-
|
|
609
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
610
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
611
|
-
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
611
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
|
612
612
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
613
613
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
614
|
-
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
615
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
615
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
617
|
+
VForm: typeof import('vuetify/components')['VForm']
|
|
617
618
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
618
619
|
VCol: typeof import('vuetify/components')['VCol']
|
|
619
620
|
VRow: typeof import('vuetify/components')['VRow']
|
|
620
621
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
621
622
|
VHover: typeof import('vuetify/components')['VHover']
|
|
622
|
-
VForm: typeof import('vuetify/components')['VForm']
|
|
623
|
-
VLayout: typeof import('vuetify/components')['VLayout']
|
|
624
|
-
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
625
623
|
VLazy: typeof import('vuetify/components')['VLazy']
|
|
626
624
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
625
|
+
VLayout: typeof import('vuetify/components')['VLayout']
|
|
626
|
+
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
627
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
|
629
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
|
630
630
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
631
631
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
632
|
-
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
633
632
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
|
634
|
-
|
|
635
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
|
633
|
+
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
636
634
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
|
635
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
|
636
|
+
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
637
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
|
638
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
|
639
639
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
|
@@ -656,14 +656,14 @@ declare module 'vue' {
|
|
|
656
656
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
|
657
657
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
|
658
658
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
|
659
|
-
|
|
659
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
660
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
661
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
660
662
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
661
663
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
664
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
|
662
665
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
663
666
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
664
|
-
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
665
|
-
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
666
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
667
667
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
|
668
668
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
|
669
669
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
|
@@ -27,7 +27,7 @@ export const makeVTreeviewProps = propsFactory({
|
|
|
27
27
|
collapseIcon: '$treeviewCollapse',
|
|
28
28
|
expandIcon: '$treeviewExpand',
|
|
29
29
|
slim: true
|
|
30
|
-
}), ['
|
|
30
|
+
}), ['nav', 'openStrategy']),
|
|
31
31
|
modelValue: {
|
|
32
32
|
type: Array,
|
|
33
33
|
default: () => []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRaw","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","modelValue","type","Array","default","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","model","_selected","selected","get","set","vListRef","opened","flatItems","filteredItems","visibleIds","getPath","Set","flatMap","itemVal","returnObject","raw","getChildren","map","id","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event"],"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, toRaw, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { InternalListItem } from '@/components/VList/VList'\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 }), ['itemType', 'nav', 'openStrategy']),\n modelValue: {\n type: Array,\n default: () => ([]),\n },\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 'update:modelValue': (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 model = useProxiedModel(props, 'modelValue')\n const _selected = useProxiedModel(props, 'selected', props.modelValue)\n\n const selected = computed({\n get: () => _selected.value,\n set (val) {\n _selected.value = val\n model.value = val\n },\n })\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) return null\n const getPath = vListRef.value?.getPath\n if (!getPath) return null\n return new Set(filteredItems.value.flatMap(item => {\n const itemVal = props.returnObject ? item.raw : item.props.value\n return [\n ...getPath(itemVal),\n ...getChildren(itemVal),\n ].map(toRaw)\n }))\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 (items: InternalListItem<any>[]) {\n let ids: any[] = []\n\n for (const i of items) {\n if (!i.children) continue\n\n ids.push(props.returnObject ? toRaw(i.raw) : 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 open-strategy=\"multiple\"\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 returnObject={ props.returnObject }\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,E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AAGpF,KAAK,CAACqF,WAAW,CAAC9C,KAAK,CAAC;MAE1C,MAAM+C,qBAAqB,GAAGzF,iBAAiB,CAACwF,WAAW,CAAC9C,KAAK,CAAC;MAElE,OAAAgD,YAAA,CAAAvF,KAAA,EAAAwF,WAAA;QAAA,OAEUjC;MAAQ,GACT6B,SAAS;QAAA,SACP,CACL,YAAY,EACZ7C,KAAK,CAACkD,KAAK,CACZ;QAAA;QAAA,SAEOlD,KAAK,CAACmD,KAAK;QAAA,UACVlC,MAAM,CAACd,KAAK;QAAA,aACDO,SAAS,CAACP,KAAK;QAAA,sBAAAiD,MAAA,IAAf1C,SAAS,CAACP,KAAK,GAAAiD,MAAA;QAAA,YAChBvC,QAAQ,CAACV,KAAK;QAAA,qBAAAiD,MAAA,IAAdvC,QAAQ,CAACV,KAAK,GAAAiD;MAAA;QAAAvD,OAAA,EAAAA,CAAA,MAAAmD,YAAA,CAAA1F,iBAAA,EAAA2F,WAAA,CAG1BF,qBAAqB;UAAA,gBACX/C,KAAK,CAACyB,YAAY;UAAA,SACzBhD,KAAK,CAAC0B;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO,CAAE,CAAC;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRaw","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","modelValue","type","Array","default","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","model","_selected","selected","get","set","vListRef","opened","flatItems","filteredItems","visibleIds","getPath","Set","flatMap","itemVal","returnObject","raw","getChildren","map","id","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event"],"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, toRaw, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { InternalListItem } from '@/components/VList/VList'\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', 'openStrategy']),\n modelValue: {\n type: Array,\n default: () => ([]),\n },\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 'update:modelValue': (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 model = useProxiedModel(props, 'modelValue')\n const _selected = useProxiedModel(props, 'selected', props.modelValue)\n\n const selected = computed({\n get: () => _selected.value,\n set (val) {\n _selected.value = val\n model.value = val\n },\n })\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) return null\n const getPath = vListRef.value?.getPath\n if (!getPath) return null\n return new Set(filteredItems.value.flatMap(item => {\n const itemVal = props.returnObject ? item.raw : item.props.value\n return [\n ...getPath(itemVal),\n ...getChildren(itemVal),\n ].map(toRaw)\n }))\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 (items: InternalListItem<any>[]) {\n let ids: any[] = []\n\n for (const i of items) {\n if (!i.children) continue\n\n ids.push(props.returnObject ? toRaw(i.raw) : 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 open-strategy=\"multiple\"\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 returnObject={ props.returnObject }\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,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAMxB,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,EAAEN,IAAI,CAAC;EACjD;EACA,OAAOA,IAAI;AACb;AAEA,OAAO,MAAMO,kBAAkB,GAAGZ,YAAY,CAAC;EAC7Ca,OAAO,EAAEC,OAAO;EAChBC,MAAM,EAAEC,MAAM;EAEd,GAAG1B,eAAe,CAAC;IAAE2B,UAAU,EAAE,CAAC,OAAO;EAAE,CAAC,CAAC;EAC7C,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D,KAAK,CAAC0B;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO,CAAE,CAAC;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { mergeProps as _mergeProps, resolveDirective as _resolveDirective,
|
|
1
|
+
import { mergeProps as _mergeProps, resolveDirective as _resolveDirective, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
|
2
2
|
// Components
|
|
3
3
|
import { VTreeviewGroup } from "./VTreeviewGroup.mjs";
|
|
4
4
|
import { VTreeviewItem } from "./VTreeviewItem.mjs";
|
|
5
|
-
import { VCheckboxBtn } from "../../components/VCheckbox/index.mjs";
|
|
5
|
+
import { VCheckboxBtn } from "../../components/VCheckbox/index.mjs";
|
|
6
|
+
import { VDivider } from "../../components/VDivider/index.mjs"; // Composables
|
|
6
7
|
import { IconValue } from "../../composables/icons.mjs"; // Utilities
|
|
7
8
|
import { computed, reactive, toRaw, withModifiers } from 'vue';
|
|
8
9
|
import { genericComponent, propsFactory } from "../../util/index.mjs"; // Types
|
|
@@ -55,6 +56,11 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
return () => slots.default?.() ?? props.items?.map(item => {
|
|
59
|
+
if (item.type === 'divider') {
|
|
60
|
+
return slots.divider?.({
|
|
61
|
+
props: item.props
|
|
62
|
+
}) ?? _createVNode(VDivider, item.props, null);
|
|
63
|
+
}
|
|
58
64
|
const {
|
|
59
65
|
children,
|
|
60
66
|
props: itemProps
|
|
@@ -91,6 +97,11 @@ export const VTreeviewChildren = genericComponent()({
|
|
|
91
97
|
...slotProps,
|
|
92
98
|
item: item.raw,
|
|
93
99
|
internalItem: item
|
|
100
|
+
}) : undefined,
|
|
101
|
+
subtitle: slots.subtitle ? slotProps => slots.subtitle?.({
|
|
102
|
+
...slotProps,
|
|
103
|
+
item: item.raw,
|
|
104
|
+
internalItem: item
|
|
94
105
|
}) : undefined
|
|
95
106
|
};
|
|
96
107
|
const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTreeviewChildren.mjs","names":["VTreeviewGroup","VTreeviewItem","VCheckboxBtn","IconValue","computed","reactive","toRaw","withModifiers","genericComponent","propsFactory","makeVTreeviewChildrenProps","disabled","Boolean","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","selectable","selectedColor","selectStrategy","Object","VTreeviewChildren","name","props","setup","_ref","slots","isLoading","Set","isClickOnOpen","checkChildren","item","length","children","add","value","raw","delete","selectItem","select","isSelected","map","itemProps","loading","has","slotsWithItem","prepend","slotProps","_createVNode","_Fragment","includes","isIndeterminate","e","key","stopPropagation","internalItem","append","title","treeviewGroupProps","filterProps","treeviewChildrenProps","_mergeProps","activator","_ref2","activatorProps","listItemProps","onToggleExpand","onClick"],"sources":["../../../src/labs/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, reactive, toRaw, withModifiers } from 'vue'\nimport { genericComponent, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VListItemSlots, 'default'>]: VListItemSlots[K] & {\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}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\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 selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n}, 'VTreeviewChildren')\n\nexport const VTreeviewChildren = genericComponent<new <T extends InternalListItem>(\n props: {\n items?: readonly T[]\n },\n slots: VTreeviewChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeviewChildren',\n\n props: makeVTreeviewChildrenProps(),\n\n setup (props, { slots }) {\n const isLoading = reactive(new Set<unknown>())\n\n const isClickOnOpen = computed(() => !props.disabled && (props.openOnClick != null ? props.openOnClick : props.selectable))\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 => {\n const { children, props: itemProps } = item\n const loading = isLoading.has(item.value)\n const slotsWithItem = {\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <div>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n disabled={ props.disabled }\n loading={ loading }\n color={ props.selectedColor }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onClick={ withModifiers(() => selectItem(slotProps.select, slotProps.isSelected), ['stop']) }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </div>\n )}\n\n { slots.prepend?.({ ...slotProps, item: item.raw, internalItem: item }) }\n </>\n ),\n append: slots.append ? slotProps => slots.append?.({ ...slotProps, item: item.raw, internalItem: item }) : undefined,\n title: slots.title ? slotProps => slots.title?.({ ...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)\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item.raw : treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,\n onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] as any : undefined,\n }\n\n return (\n <VTreeviewItem\n { ...listItemProps }\n value={ props.returnObject ? item.raw : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n },\n default: () => (\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n ),\n }}\n </VTreeviewGroup>\n ) : (\n slots.item?.({ props: itemProps, item: item.raw, internalItem: item }) ?? (\n <VTreeviewItem\n { ...itemProps }\n value={ props.returnObject ? toRaw(item.raw) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n ))\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,aAAa;AAAA,SACbC,YAAY,gDAErB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,aAAa,QAAQ,KAAK;AAAA,SACrDC,gBAAgB,EAAEC,YAAY,gCAEvC;AAqBA,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S,EAAEC,KAAA,IAA+B;UAAA,IAA9B;YAAExC,KAAK,EAAEyC;UAAe,CAAC,GAAAD,KAAA;UACnC,MAAME,aAAa,GAAG;YACpB,GAAGvB,SAAS;YACZ,GAAGsB,cAAc;YACjB7B,KAAK,EAAEO,SAAS,EAAEP,KAAK;YACvB+B,cAAc,EAAE,CAAC,MAAMpC,aAAa,CAACC,IAAI,CAAC,EAAEiC,cAAc,CAACG,OAAO,CAAQ;YAC1EA,OAAO,EAAEtC,aAAa,CAACM,KAAK,GAAG,CAAC,MAAML,aAAa,CAACC,IAAI,CAAC,EAAEiC,cAAc,CAACG,OAAO,CAAC,GAAUvD;UAC9F,CAAC;UAED,OAAAoC,YAAA,CAAAzD,aAAA,EAAAsE,WAAA,CAESI,aAAa;YAAA,SACV1C,KAAK,CAACP,YAAY,GAAGe,IAAI,CAACK,GAAG,GAAGM,SAAS,CAACP,KAAK;YAAA,WAC7CQ;UAAO,IACPE,aAAa;QAG7B,CAAC;QACDrC,OAAO,EAAEA,CAAA,KAAAwC,YAAA,CAAA3B,iBAAA,EAAAwC,WAAA,CAEAD,qBAAqB;UAAA,SAClB3B,QAAQ;UAAA,gBACDV,KAAK,CAACP;QAAY,IACvBU,KAAK;MAElB,KAILA,KAAK,CAACK,IAAI,GAAG;QAAER,KAAK,EAAEmB,SAAS;QAAEX,IAAI,EAAEA,IAAI,CAACK,GAAG;QAAEmB,YAAY,EAAExB;MAAK,CAAC,CAAC,IAAAiB,YAAA,CAAAzD,aAAA,EAAAsE,WAAA,CAE7DnB,SAAS;QAAA,SACNnB,KAAK,CAACP,YAAY,GAAGpB,KAAK,CAACmC,IAAI,CAACK,GAAG,CAAC,GAAGM,SAAS,CAACP;MAAK,IACpDU,aAAa,CAEzB;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VTreeviewChildren.mjs","names":["VTreeviewGroup","VTreeviewItem","VCheckboxBtn","VDivider","IconValue","computed","reactive","toRaw","withModifiers","genericComponent","propsFactory","makeVTreeviewChildrenProps","disabled","Boolean","loadChildren","Function","loadingIcon","type","String","default","items","Array","openOnClick","undefined","indeterminateIcon","falseIcon","trueIcon","returnObject","selectable","selectedColor","selectStrategy","Object","VTreeviewChildren","name","props","setup","_ref","slots","isLoading","Set","isClickOnOpen","checkChildren","item","length","children","add","value","raw","delete","selectItem","select","isSelected","map","divider","_createVNode","itemProps","loading","has","slotsWithItem","prepend","slotProps","_Fragment","includes","isIndeterminate","e","key","stopPropagation","internalItem","append","title","subtitle","treeviewGroupProps","filterProps","treeviewChildrenProps","_mergeProps","activator","_ref2","activatorProps","listItemProps","onToggleExpand","onClick"],"sources":["../../../src/labs/VTreeview/VTreeviewChildren.tsx"],"sourcesContent":["// Components\nimport { VTreeviewGroup } from './VTreeviewGroup'\nimport { VTreeviewItem } from './VTreeviewItem'\nimport { VCheckboxBtn } from '@/components/VCheckbox'\nimport { VDivider } from '@/components/VDivider'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\n\n// Utilities\nimport { computed, reactive, toRaw, withModifiers } from 'vue'\nimport { genericComponent, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { InternalListItem } from '@/components/VList/VList'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\nimport type { SelectStrategyProp } from '@/composables/nested/nested'\nimport type { GenericProps } from '@/util'\n\nexport type VTreeviewChildrenSlots<T> = {\n [K in keyof Omit<VListItemSlots, 'default'>]: VListItemSlots[K] & {\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 divider: { props: InternalListItem['props'] }\n subheader: { props: InternalListItem['props'] }\n header: { props: InternalListItem['props'] }\n}\n\nexport const makeVTreeviewChildrenProps = propsFactory({\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 selectable: Boolean,\n selectedColor: String,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n}, 'VTreeviewChildren')\n\nexport const VTreeviewChildren = genericComponent<new <T extends InternalListItem>(\n props: {\n items?: readonly T[]\n },\n slots: VTreeviewChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeviewChildren',\n\n props: makeVTreeviewChildrenProps(),\n\n setup (props, { slots }) {\n const isLoading = reactive(new Set<unknown>())\n\n const isClickOnOpen = computed(() => !props.disabled && (props.openOnClick != null ? props.openOnClick : props.selectable))\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 => {\n if (item.type === 'divider') {\n return slots.divider?.({ props: item.props }) ?? (\n <VDivider { ...item.props } />\n )\n }\n\n const { children, props: itemProps } = item\n const loading = isLoading.has(item.value)\n const slotsWithItem = {\n prepend: slotProps => (\n <>\n { props.selectable && (!children || (children && !['leaf', 'single-leaf'].includes(props.selectStrategy as string))) && (\n <div>\n <VCheckboxBtn\n key={ item.value }\n modelValue={ slotProps.isSelected }\n disabled={ props.disabled }\n loading={ loading }\n color={ props.selectedColor }\n indeterminate={ slotProps.isIndeterminate }\n indeterminateIcon={ props.indeterminateIcon }\n falseIcon={ props.falseIcon }\n trueIcon={ props.trueIcon }\n onClick={ withModifiers(() => selectItem(slotProps.select, slotProps.isSelected), ['stop']) }\n onKeydown={ (e: KeyboardEvent) => {\n if (!['Enter', 'Space'].includes(e.key)) return\n e.stopPropagation()\n selectItem(slotProps.select, slotProps.isSelected)\n }}\n />\n </div>\n )}\n\n { slots.prepend?.({ ...slotProps, item: item.raw, internalItem: item }) }\n </>\n ),\n append: slots.append ? slotProps => slots.append?.({ ...slotProps, item: item.raw, internalItem: item }) : 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)\n\n return children ? (\n <VTreeviewGroup\n { ...treeviewGroupProps }\n value={ props.returnObject ? item.raw : treeviewGroupProps?.value }\n >\n {{\n activator: ({ props: activatorProps }) => {\n const listItemProps = {\n ...itemProps,\n ...activatorProps,\n value: itemProps?.value,\n onToggleExpand: [() => checkChildren(item), activatorProps.onClick] as any,\n onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] as any : undefined,\n }\n\n return (\n <VTreeviewItem\n { ...listItemProps }\n value={ props.returnObject ? item.raw : itemProps.value }\n loading={ loading }\n v-slots={ slotsWithItem }\n />\n )\n },\n default: () => (\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ children }\n returnObject={ props.returnObject }\n v-slots={ slots }\n />\n ),\n }}\n </VTreeviewGroup>\n ) : (\n slots.item?.({ props: itemProps, item: item.raw, internalItem: item }) ?? (\n <VTreeviewItem\n { ...itemProps }\n value={ props.returnObject ? toRaw(item.raw) : itemProps.value }\n v-slots={ slotsWithItem }\n />\n ))\n })\n },\n})\n"],"mappings":";AAAA;AAAA,SACSA,cAAc;AAAA,SACdC,aAAa;AAAA,SACbC,YAAY;AAAA,SACZC,QAAQ,+CAEjB;AAAA,SACSC,SAAS,uCAElB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,K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QAAY,IACvBU,KAAK;MAElB,KAILA,KAAK,CAACK,IAAI,GAAG;QAAER,KAAK,EAAEqB,SAAS;QAAEb,IAAI,EAAEA,IAAI,CAACK,GAAG;QAAEoB,YAAY,EAAEzB;MAAK,CAAC,CAAC,IAAAY,YAAA,CAAArD,aAAA,EAAAyE,WAAA,CAE7DnB,SAAS;QAAA,SACNrB,KAAK,CAACP,YAAY,GAAGpB,KAAK,CAACmC,IAAI,CAACK,GAAG,CAAC,GAAGQ,SAAS,CAACT;MAAK,IACpDY,aAAa,CAEzB;IACN,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -201,6 +201,7 @@ declare const VTreeview: {
|
|
|
201
201
|
itemValue: SelectItemKey;
|
|
202
202
|
itemChildren: SelectItemKey;
|
|
203
203
|
itemProps: SelectItemKey;
|
|
204
|
+
itemType: string;
|
|
204
205
|
loadingIcon: string;
|
|
205
206
|
openAll: boolean;
|
|
206
207
|
} & {
|
|
@@ -299,6 +300,7 @@ declare const VTreeview: {
|
|
|
299
300
|
itemValue: SelectItemKey;
|
|
300
301
|
itemChildren: SelectItemKey;
|
|
301
302
|
itemProps: SelectItemKey;
|
|
303
|
+
itemType: string;
|
|
302
304
|
loadingIcon: string;
|
|
303
305
|
openAll: boolean;
|
|
304
306
|
} & {
|
|
@@ -383,6 +385,7 @@ declare const VTreeview: {
|
|
|
383
385
|
itemValue: SelectItemKey;
|
|
384
386
|
itemChildren: SelectItemKey;
|
|
385
387
|
itemProps: SelectItemKey;
|
|
388
|
+
itemType: string;
|
|
386
389
|
openOnClick: boolean;
|
|
387
390
|
loadingIcon: string;
|
|
388
391
|
openAll: boolean;
|
|
@@ -445,6 +448,7 @@ declare const VTreeview: {
|
|
|
445
448
|
itemValue: SelectItemKey;
|
|
446
449
|
itemChildren: SelectItemKey;
|
|
447
450
|
itemProps: SelectItemKey;
|
|
451
|
+
itemType: string;
|
|
448
452
|
loadingIcon: string;
|
|
449
453
|
openAll: boolean;
|
|
450
454
|
} & {
|
|
@@ -529,6 +533,7 @@ declare const VTreeview: {
|
|
|
529
533
|
itemValue: SelectItemKey;
|
|
530
534
|
itemChildren: SelectItemKey;
|
|
531
535
|
itemProps: SelectItemKey;
|
|
536
|
+
itemType: string;
|
|
532
537
|
openOnClick: boolean;
|
|
533
538
|
loadingIcon: string;
|
|
534
539
|
openAll: boolean;
|
|
@@ -562,6 +567,7 @@ declare const VTreeview: {
|
|
|
562
567
|
itemValue: SelectItemKey;
|
|
563
568
|
itemChildren: SelectItemKey;
|
|
564
569
|
itemProps: SelectItemKey;
|
|
570
|
+
itemType: string;
|
|
565
571
|
loadingIcon: string;
|
|
566
572
|
openAll: boolean;
|
|
567
573
|
} & {
|
|
@@ -661,6 +667,7 @@ declare const VTreeview: {
|
|
|
661
667
|
itemValue: SelectItemKey;
|
|
662
668
|
itemChildren: SelectItemKey;
|
|
663
669
|
itemProps: SelectItemKey;
|
|
670
|
+
itemType: string;
|
|
664
671
|
openOnClick: boolean;
|
|
665
672
|
loadingIcon: string;
|
|
666
673
|
openAll: boolean;
|
|
@@ -805,6 +812,10 @@ declare const VTreeview: {
|
|
|
805
812
|
value: boolean;
|
|
806
813
|
path: unknown[];
|
|
807
814
|
}) => void>;
|
|
815
|
+
itemType: {
|
|
816
|
+
type: StringConstructor;
|
|
817
|
+
default: string;
|
|
818
|
+
};
|
|
808
819
|
loadChildren: vue.PropType<(item: unknown) => Promise<void>>;
|
|
809
820
|
loadingIcon: {
|
|
810
821
|
type: StringConstructor;
|
|
@@ -947,6 +958,10 @@ declare const VTreeview: {
|
|
|
947
958
|
value: boolean;
|
|
948
959
|
path: unknown[];
|
|
949
960
|
}) => void>;
|
|
961
|
+
itemType: {
|
|
962
|
+
type: StringConstructor;
|
|
963
|
+
default: string;
|
|
964
|
+
};
|
|
950
965
|
loadChildren: vue.PropType<(item: unknown) => Promise<void>>;
|
|
951
966
|
loadingIcon: {
|
|
952
967
|
type: StringConstructor;
|
|
@@ -16891,6 +16891,7 @@ declare const VTreeview: {
|
|
|
16891
16891
|
itemValue: SelectItemKey;
|
|
16892
16892
|
itemChildren: SelectItemKey;
|
|
16893
16893
|
itemProps: SelectItemKey;
|
|
16894
|
+
itemType: string;
|
|
16894
16895
|
loadingIcon: string;
|
|
16895
16896
|
openAll: boolean;
|
|
16896
16897
|
} & {
|
|
@@ -16989,6 +16990,7 @@ declare const VTreeview: {
|
|
|
16989
16990
|
itemValue: SelectItemKey;
|
|
16990
16991
|
itemChildren: SelectItemKey;
|
|
16991
16992
|
itemProps: SelectItemKey;
|
|
16993
|
+
itemType: string;
|
|
16992
16994
|
loadingIcon: string;
|
|
16993
16995
|
openAll: boolean;
|
|
16994
16996
|
} & {
|
|
@@ -17073,6 +17075,7 @@ declare const VTreeview: {
|
|
|
17073
17075
|
itemValue: SelectItemKey;
|
|
17074
17076
|
itemChildren: SelectItemKey;
|
|
17075
17077
|
itemProps: SelectItemKey;
|
|
17078
|
+
itemType: string;
|
|
17076
17079
|
openOnClick: boolean;
|
|
17077
17080
|
loadingIcon: string;
|
|
17078
17081
|
openAll: boolean;
|
|
@@ -17135,6 +17138,7 @@ declare const VTreeview: {
|
|
|
17135
17138
|
itemValue: SelectItemKey;
|
|
17136
17139
|
itemChildren: SelectItemKey;
|
|
17137
17140
|
itemProps: SelectItemKey;
|
|
17141
|
+
itemType: string;
|
|
17138
17142
|
loadingIcon: string;
|
|
17139
17143
|
openAll: boolean;
|
|
17140
17144
|
} & {
|
|
@@ -17219,6 +17223,7 @@ declare const VTreeview: {
|
|
|
17219
17223
|
itemValue: SelectItemKey;
|
|
17220
17224
|
itemChildren: SelectItemKey;
|
|
17221
17225
|
itemProps: SelectItemKey;
|
|
17226
|
+
itemType: string;
|
|
17222
17227
|
openOnClick: boolean;
|
|
17223
17228
|
loadingIcon: string;
|
|
17224
17229
|
openAll: boolean;
|
|
@@ -17252,6 +17257,7 @@ declare const VTreeview: {
|
|
|
17252
17257
|
itemValue: SelectItemKey;
|
|
17253
17258
|
itemChildren: SelectItemKey;
|
|
17254
17259
|
itemProps: SelectItemKey;
|
|
17260
|
+
itemType: string;
|
|
17255
17261
|
loadingIcon: string;
|
|
17256
17262
|
openAll: boolean;
|
|
17257
17263
|
} & {
|
|
@@ -17351,6 +17357,7 @@ declare const VTreeview: {
|
|
|
17351
17357
|
itemValue: SelectItemKey;
|
|
17352
17358
|
itemChildren: SelectItemKey;
|
|
17353
17359
|
itemProps: SelectItemKey;
|
|
17360
|
+
itemType: string;
|
|
17354
17361
|
openOnClick: boolean;
|
|
17355
17362
|
loadingIcon: string;
|
|
17356
17363
|
openAll: boolean;
|
|
@@ -17495,6 +17502,10 @@ declare const VTreeview: {
|
|
|
17495
17502
|
value: boolean;
|
|
17496
17503
|
path: unknown[];
|
|
17497
17504
|
}) => void>;
|
|
17505
|
+
itemType: {
|
|
17506
|
+
type: StringConstructor;
|
|
17507
|
+
default: string;
|
|
17508
|
+
};
|
|
17498
17509
|
loadChildren: vue.PropType<(item: unknown) => Promise<void>>;
|
|
17499
17510
|
loadingIcon: {
|
|
17500
17511
|
type: StringConstructor;
|
|
@@ -17637,6 +17648,10 @@ declare const VTreeview: {
|
|
|
17637
17648
|
value: boolean;
|
|
17638
17649
|
path: unknown[];
|
|
17639
17650
|
}) => void>;
|
|
17651
|
+
itemType: {
|
|
17652
|
+
type: StringConstructor;
|
|
17653
|
+
default: string;
|
|
17654
|
+
};
|
|
17640
17655
|
loadChildren: vue.PropType<(item: unknown) => Promise<void>>;
|
|
17641
17656
|
loadingIcon: {
|
|
17642
17657
|
type: StringConstructor;
|
package/lib/locale/da.mjs
CHANGED
|
@@ -38,13 +38,13 @@ export default {
|
|
|
38
38
|
datePicker: {
|
|
39
39
|
itemsSelected: '{0} selected',
|
|
40
40
|
range: {
|
|
41
|
-
title: '
|
|
42
|
-
header: '
|
|
41
|
+
title: 'Vælg datoer',
|
|
42
|
+
header: 'Indtast datoer'
|
|
43
43
|
},
|
|
44
|
-
title: '
|
|
45
|
-
header: '
|
|
44
|
+
title: 'Vælg dato',
|
|
45
|
+
header: 'Indtast dato',
|
|
46
46
|
input: {
|
|
47
|
-
placeholder: '
|
|
47
|
+
placeholder: 'Indtast dato'
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
noDataText: 'Ingen data tilgængelig',
|