@vuetify/nightly 3.6.9-master.2024-06-18 → 3.6.10-master.2024-06-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -10
- package/dist/json/importMap-labs.json +24 -24
- package/dist/json/importMap.json +166 -166
- package/dist/json/web-types.json +3 -3
- package/dist/vuetify-labs.css +2374 -2374
- package/dist/vuetify-labs.d.ts +18 -30
- package/dist/vuetify-labs.esm.js +6 -13
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +6 -13
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1164 -1164
- package/dist/vuetify.d.ts +56 -56
- package/dist/vuetify.esm.js +3 -3
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +3 -3
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- 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 +56 -56
- package/lib/labs/VTreeview/VTreeview.mjs +5 -12
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +18 -30
- package/lib/labs/components.d.mts +18 -30
- package/package.json +1 -1
package/dist/vuetify.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.6.
|
2
|
+
* Vuetify v3.6.10-master.2024-06-20
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -2088,9 +2088,9 @@ else{const{mount:a}=e
|
|
2088
2088
|
e.mount=function(){const l=a(...arguments)
|
2089
2089
|
return t.nextTick((()=>c.update())),e.mount=a,l}}ft.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:af.call(this,gt),display:af.call(this,dn),theme:af.call(this,ma),icons:af.call(this,Dt),locale:af.call(this,ca),date:af.call(this,cu)})}}})}
|
2090
2090
|
return{install:g,defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function af(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
|
2091
|
-
if(a&&e in a)return a[e]}tf.version="3.6.
|
2091
|
+
if(a&&e in a)return a[e]}tf.version="3.6.10-master.2024-06-20"
|
2092
2092
|
const lf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
2093
|
-
return tf({components:Yp,directives:ef,...e})},of="3.6.
|
2093
|
+
return tf({components:Yp,directives:ef,...e})},of="3.6.10-master.2024-06-20"
|
2094
2094
|
lf.version=of,e.blueprints=Yt,e.components=Yp,e.createVuetify=lf,e.directives=ef,e.useDate=pu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
|
2095
2095
|
const{props:a,provideSubDefaults:l}=wt(e,t)
|
2096
2096
|
return l(),a},e.useDisplay=yn,e.useGoTo=xn,e.useLayout=Qt,e.useLocale=va,e.useRtl=fa,e.useTheme=ba,e.version=of}))
|
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.
|
19
|
+
export const version = "3.6.10-master.2024-06-20";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entry-bundler.mjs","names":["blueprints","components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as blueprints from './blueprints'\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,
|
1
|
+
{"version":3,"file":"entry-bundler.mjs","names":["blueprints","components","directives","createVuetify","_createVuetify","options","arguments","length","undefined","version"],"sources":["../src/entry-bundler.ts"],"sourcesContent":["/* eslint-disable local-rules/sort-imports */\n\n// Styles\nimport './styles/main.sass'\n\n// Components\nimport * as blueprints from './blueprints'\nimport * as components from './components'\nimport * as directives from './directives'\nimport { createVuetify as _createVuetify } from './framework'\n\n// Types\nimport type { VuetifyOptions } from './framework'\n\nexport const createVuetify = (options: VuetifyOptions = {}) => {\n return _createVuetify({ components, directives, ...options })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\nexport {\n blueprints,\n components,\n directives,\n}\nexport * from './composables'\n"],"mappings":"AAAA;;AAEA;AACA;;AAEA;AAAA,OACO,KAAKA,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,OACf,KAAKC,UAAU;AAAA,SACbC,aAAa,IAAIC,cAAc,2BAExC;AAGA,OAAO,MAAMD,aAAa,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCE,OAAuB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACxD,OAAOF,cAAc,CAAC;IAAEH,UAAU;IAAEC,UAAU;IAAE,GAAGG;EAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,MAAMI,OAAO,6BAAsB;AAC1CN,aAAa,CAACM,OAAO,GAAGA,OAAO;AAE/B,SACET,UAAU,EACVC,UAAU,EACVC,UAAU;AACX","ignoreList":[]}
|
package/lib/framework.mjs
CHANGED
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,SAAA,QAAAE,SAAA,GAAAF,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BAAmB,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,EAAEC,UAAU;AAAA,SACtBC,WAAW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,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
@@ -492,14 +492,16 @@ declare module '@vue/runtime-core' {
|
|
492
492
|
}
|
493
493
|
|
494
494
|
export interface GlobalComponents {
|
495
|
-
VApp: typeof import('vuetify/components')['VApp']
|
496
495
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
497
496
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
498
497
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
499
|
-
|
498
|
+
VApp: typeof import('vuetify/components')['VApp']
|
500
499
|
VAlert: typeof import('vuetify/components')['VAlert']
|
501
500
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
502
501
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
502
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
503
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
504
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
503
505
|
VBanner: typeof import('vuetify/components')['VBanner']
|
504
506
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
505
507
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
@@ -507,33 +509,24 @@ declare module '@vue/runtime-core' {
|
|
507
509
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
508
510
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
509
511
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
510
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
511
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
512
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
513
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
514
512
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
513
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
515
514
|
VCard: typeof import('vuetify/components')['VCard']
|
516
515
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
517
516
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
518
517
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
519
518
|
VCardText: typeof import('vuetify/components')['VCardText']
|
520
519
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
520
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
521
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
521
522
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
522
523
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
524
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
523
525
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
524
526
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
525
527
|
VCode: typeof import('vuetify/components')['VCode']
|
526
|
-
VChip: typeof import('vuetify/components')['VChip']
|
527
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
528
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
529
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
530
|
-
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
531
|
-
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
532
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
533
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
534
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
535
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
536
528
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
529
|
+
VChip: typeof import('vuetify/components')['VChip']
|
537
530
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
538
531
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
539
532
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -541,27 +534,40 @@ declare module '@vue/runtime-core' {
|
|
541
534
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
542
535
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
543
536
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
544
|
-
|
537
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
538
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
539
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
540
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
541
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
542
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
543
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
545
544
|
VDialog: typeof import('vuetify/components')['VDialog']
|
546
545
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
546
|
+
VFab: typeof import('vuetify/components')['VFab']
|
547
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
548
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
547
549
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
548
550
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
549
551
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
550
552
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
551
|
-
VFab: typeof import('vuetify/components')['VFab']
|
552
|
-
VField: typeof import('vuetify/components')['VField']
|
553
|
-
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
554
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
555
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
556
553
|
VIcon: typeof import('vuetify/components')['VIcon']
|
557
554
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
558
555
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
559
556
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
560
557
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
558
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
559
|
+
VField: typeof import('vuetify/components')['VField']
|
560
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
561
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
561
562
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
562
563
|
VItem: typeof import('vuetify/components')['VItem']
|
563
564
|
VImg: typeof import('vuetify/components')['VImg']
|
564
|
-
|
565
|
+
VInput: typeof import('vuetify/components')['VInput']
|
566
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
567
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
568
|
+
VMain: typeof import('vuetify/components')['VMain']
|
569
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
570
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
565
571
|
VList: typeof import('vuetify/components')['VList']
|
566
572
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
567
573
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -571,72 +577,67 @@ declare module '@vue/runtime-core' {
|
|
571
577
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
572
578
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
573
579
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
574
|
-
VInput: typeof import('vuetify/components')['VInput']
|
575
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
576
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
577
|
-
VMain: typeof import('vuetify/components')['VMain']
|
578
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
579
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
580
580
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
581
581
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
582
582
|
VPagination: typeof import('vuetify/components')['VPagination']
|
583
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
584
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
585
|
-
VRating: typeof import('vuetify/components')['VRating']
|
586
583
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
584
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
585
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
587
586
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
588
|
-
|
589
|
-
VSelect: typeof import('vuetify/components')['VSelect']
|
587
|
+
VRating: typeof import('vuetify/components')['VRating']
|
590
588
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
591
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
592
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
593
589
|
VSheet: typeof import('vuetify/components')['VSheet']
|
590
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
591
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
594
592
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
595
593
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
596
594
|
VSlider: typeof import('vuetify/components')['VSlider']
|
597
|
-
|
595
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
596
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
597
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
598
598
|
VStepper: typeof import('vuetify/components')['VStepper']
|
599
599
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
600
600
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
601
601
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
602
602
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
603
603
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
604
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
605
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
606
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
607
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
608
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
609
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
610
604
|
VTab: typeof import('vuetify/components')['VTab']
|
611
605
|
VTabs: typeof import('vuetify/components')['VTabs']
|
612
606
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
613
607
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
614
|
-
|
615
|
-
|
616
|
-
|
608
|
+
VTable: typeof import('vuetify/components')['VTable']
|
609
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
610
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
611
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
617
612
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
618
613
|
VWindow: typeof import('vuetify/components')['VWindow']
|
619
614
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
615
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
616
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
617
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
618
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
619
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
620
620
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
621
621
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
622
622
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
623
|
-
VForm: typeof import('vuetify/components')['VForm']
|
624
623
|
VContainer: typeof import('vuetify/components')['VContainer']
|
625
624
|
VCol: typeof import('vuetify/components')['VCol']
|
626
625
|
VRow: typeof import('vuetify/components')['VRow']
|
627
626
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
627
|
+
VForm: typeof import('vuetify/components')['VForm']
|
628
628
|
VHover: typeof import('vuetify/components')['VHover']
|
629
629
|
VLazy: typeof import('vuetify/components')['VLazy']
|
630
630
|
VLayout: typeof import('vuetify/components')['VLayout']
|
631
631
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
632
|
-
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
633
632
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
633
|
+
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
634
634
|
VParallax: typeof import('vuetify/components')['VParallax']
|
635
635
|
VRadio: typeof import('vuetify/components')['VRadio']
|
636
636
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
637
637
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
638
|
-
VSparkline: typeof import('vuetify/components')['VSparkline']
|
639
638
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
639
|
+
VSparkline: typeof import('vuetify/components')['VSparkline']
|
640
|
+
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
640
641
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
641
642
|
VValidation: typeof import('vuetify/components')['VValidation']
|
642
643
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
@@ -655,25 +656,24 @@ declare module '@vue/runtime-core' {
|
|
655
656
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
656
657
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
657
658
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
658
|
-
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
659
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
660
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
661
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
662
659
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
663
660
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
664
661
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
665
662
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
666
663
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
667
664
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
665
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
666
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
667
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
668
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
669
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
670
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
668
671
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
669
672
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
670
673
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
671
674
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
672
675
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
673
676
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
674
|
-
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
675
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
676
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
677
677
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
678
678
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
679
679
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
@@ -5,8 +5,8 @@ import { makeVListProps, useListItems, VList } from "../../components/VList/VLis
|
|
5
5
|
import { provideDefaults } from "../../composables/defaults.mjs";
|
6
6
|
import { makeFilterProps, useFilter } from "../../composables/filter.mjs";
|
7
7
|
import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
|
8
|
-
import { computed, provide, ref, toRef
|
9
|
-
import { genericComponent,
|
8
|
+
import { computed, provide, ref, toRef } from 'vue';
|
9
|
+
import { genericComponent, omit, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
10
10
|
import { VTreeviewSymbol } from "./shared.mjs";
|
11
11
|
function flatten(items) {
|
12
12
|
let flat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
@@ -26,8 +26,6 @@ export const makeVTreeviewProps = propsFactory({
|
|
26
26
|
...omit(makeVListProps({
|
27
27
|
collapseIcon: '$treeviewCollapse',
|
28
28
|
expandIcon: '$treeviewExpand',
|
29
|
-
selectStrategy: 'classic',
|
30
|
-
openStrategy: 'multiple',
|
31
29
|
slim: true
|
32
30
|
}), ['nav'])
|
33
31
|
}, 'VTreeview');
|
@@ -45,17 +43,16 @@ export const VTreeview = genericComponent()({
|
|
45
43
|
let {
|
46
44
|
slots
|
47
45
|
} = _ref;
|
48
|
-
const vm = getCurrentInstance('VTreeview');
|
49
46
|
const {
|
50
47
|
items
|
51
48
|
} = useListItems(props);
|
52
49
|
const activeColor = toRef(props, 'activeColor');
|
53
50
|
const baseColor = toRef(props, 'baseColor');
|
54
51
|
const color = toRef(props, 'color');
|
55
|
-
const opened = useProxiedModel(props, 'opened');
|
56
52
|
const activated = useProxiedModel(props, 'activated');
|
57
53
|
const selected = useProxiedModel(props, 'selected');
|
58
54
|
const vListRef = ref();
|
55
|
+
const opened = computed(() => props.openAll ? openAll(items.value) : props.opened);
|
59
56
|
const flatItems = computed(() => flatten(items.value));
|
60
57
|
const search = toRef(props, 'search');
|
61
58
|
const {
|
@@ -89,11 +86,6 @@ export const VTreeview = genericComponent()({
|
|
89
86
|
}
|
90
87
|
return arr;
|
91
88
|
}
|
92
|
-
watch(() => props.openAll, val => {
|
93
|
-
opened.value = val ? openAll(items.value) : [];
|
94
|
-
}, {
|
95
|
-
immediate: true
|
96
|
-
});
|
97
89
|
function openAll(item) {
|
98
90
|
let ids = [];
|
99
91
|
for (const i of item) {
|
@@ -128,13 +120,14 @@ export const VTreeview = genericComponent()({
|
|
128
120
|
}
|
129
121
|
});
|
130
122
|
useRender(() => {
|
131
|
-
const listProps = VList.filterProps(
|
123
|
+
const listProps = VList.filterProps(props);
|
132
124
|
const treeviewChildrenProps = VTreeviewChildren.filterProps(props);
|
133
125
|
return _createVNode(VList, _mergeProps({
|
134
126
|
"ref": vListRef
|
135
127
|
}, listProps, {
|
136
128
|
"class": ['v-treeview', props.class],
|
137
129
|
"style": props.style,
|
130
|
+
"opened": opened.value,
|
138
131
|
"activated": activated.value,
|
139
132
|
"onUpdate:activated": $event => activated.value = $event,
|
140
133
|
"selected": selected.value,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","watch","genericComponent","getCurrentInstance","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","selectStrategy","openStrategy","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","vm","activeColor","baseColor","color","opened","activated","selected","vListRef","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","immediate","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","vnode","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, watch } from 'vue'\nimport { genericComponent, getCurrentInstance, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ExtractPublicPropTypes } from 'vue'\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 selectStrategy: 'classic' as const,\n openStrategy: 'multiple' as const,\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 vm = getCurrentInstance('VTreeview')\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 opened = useProxiedModel(props, 'opened')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\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 watch(() => props.openAll, val => {\n opened.value = val ? openAll(items.value) : []\n }, { immediate: true })\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(vm.vnode.props! as ExtractPublicPropTypes<typeof makeVTreeviewProps>)\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 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,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,kBAAkB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAE5E;AAAA,SAESC,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,EAAEN,IAAI,CAAC;EACjD;EACA,OAAOA,IAAI;AACb;AAEA,OAAO,MAAMO,kBAAkB,GAAGZ,YAAY,CAAC;EAC7Ca,OAAO,EAAEC,OAAO;EAChBC,MAAM,EAAEC,MAAM;EAE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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,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,kB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QACTC,KAAK;QACL6B,OAAO,EAAEhE,KAAK,CAAC0B,KAAK,EAAE,SAAS,CAAC;QAChCuC,QAAQ,EAAEjE,KAAK,CAAC0B,KAAK,EAAE,UAAU,CAAC;QAClCwC,KAAK,EAAElE,KAAK,CAAC0B,KAAK,EAAE,OAAO,CAAC;QAC5ByC,OAAO,EAAEnE,KAAK,CAAC0B,KAAK,EAAE,SAAS;MACjC;IACF,CAAC,CAAC;IAEFtB,SAAS,CAAC,MAAM;MACd,MAAMgE,SAAS,GAAG5E,KAAK,CAAC6E,WAAW,CAAC3C,KAAK,CAAC;MAE1C,MAAM4C,qBAAqB,GAAGjF,iBAAiB,CAACgF,WAAW,CAAC3C,KAAK,CAAC;MAElE,OAAA6C,YAAA,CAAA/E,KAAA,EAAAgF,WAAA;QAAA,OAEUlC;MAAQ,GACT8B,SAAS;QAAA,SACP,CACL,YAAY,EACZ1C,KAAK,CAAC+C,KAAK,CACZ;QAAA,SACO/C,KAAK,CAACgD,KAAK;QAAA,UACVnC,MAAM,CAACV,KAAK;QAAA,aACDO,SAAS,CAACP,KAAK;QAAA,sBAAA8C,MAAA,IAAfvC,SAAS,CAACP,KAAK,GAAA8C,MAAA;QAAA,YAChBtC,QAAQ,CAACR,KAAK;QAAA,qBAAA8C,MAAA,IAAdtC,QAAQ,CAACR,KAAK,GAAA8C;MAAA;QAAAC,OAAA,EAAAA,CAAA,MAAAL,YAAA,CAAAlF,iBAAA,EAAAmF,WAAA,CAG1BF,qBAAqB;UAAA,SAClB/D,KAAK,CAACsB;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO;MACL6C;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -181,8 +181,8 @@ declare const VTreeview: {
|
|
181
181
|
valueComparator: typeof deepEqual;
|
182
182
|
activatable: boolean;
|
183
183
|
selectable: boolean;
|
184
|
-
selectStrategy: NonNullable<
|
185
|
-
openStrategy: NonNullable<
|
184
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
185
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
186
186
|
collapseIcon: string;
|
187
187
|
expandIcon: string;
|
188
188
|
lines: false | "one" | "two" | "three";
|
@@ -275,8 +275,8 @@ declare const VTreeview: {
|
|
275
275
|
valueComparator: typeof deepEqual;
|
276
276
|
activatable: boolean;
|
277
277
|
selectable: boolean;
|
278
|
-
selectStrategy: NonNullable<
|
279
|
-
openStrategy: NonNullable<
|
278
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
279
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
280
280
|
collapseIcon: string;
|
281
281
|
expandIcon: string;
|
282
282
|
lines: false | "one" | "two" | "three";
|
@@ -354,8 +354,8 @@ declare const VTreeview: {
|
|
354
354
|
valueComparator: typeof deepEqual;
|
355
355
|
activatable: boolean;
|
356
356
|
selectable: boolean;
|
357
|
-
selectStrategy: NonNullable<
|
358
|
-
openStrategy: NonNullable<
|
357
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
358
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
359
359
|
collapseIcon: string;
|
360
360
|
expandIcon: string;
|
361
361
|
lines: false | "one" | "two" | "three";
|
@@ -449,8 +449,8 @@ declare const VTreeview: {
|
|
449
449
|
valueComparator: typeof deepEqual;
|
450
450
|
activatable: boolean;
|
451
451
|
selectable: boolean;
|
452
|
-
selectStrategy: NonNullable<
|
453
|
-
openStrategy: NonNullable<
|
452
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
453
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
454
454
|
collapseIcon: string;
|
455
455
|
expandIcon: string;
|
456
456
|
lines: false | "one" | "two" | "three";
|
@@ -530,8 +530,8 @@ declare const VTreeview: {
|
|
530
530
|
valueComparator: typeof deepEqual;
|
531
531
|
activatable: boolean;
|
532
532
|
selectable: boolean;
|
533
|
-
selectStrategy: NonNullable<
|
534
|
-
openStrategy: NonNullable<
|
533
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
534
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
535
535
|
collapseIcon: string;
|
536
536
|
expandIcon: string;
|
537
537
|
lines: false | "one" | "two" | "three";
|
@@ -562,8 +562,8 @@ declare const VTreeview: {
|
|
562
562
|
valueComparator: typeof deepEqual;
|
563
563
|
activatable: boolean;
|
564
564
|
selectable: boolean;
|
565
|
-
selectStrategy: NonNullable<
|
566
|
-
openStrategy: NonNullable<
|
565
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
566
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
567
567
|
collapseIcon: string;
|
568
568
|
expandIcon: string;
|
569
569
|
lines: false | "one" | "two" | "three";
|
@@ -657,8 +657,8 @@ declare const VTreeview: {
|
|
657
657
|
valueComparator: typeof deepEqual;
|
658
658
|
activatable: boolean;
|
659
659
|
selectable: boolean;
|
660
|
-
selectStrategy: NonNullable<
|
661
|
-
openStrategy: NonNullable<
|
660
|
+
selectStrategy: NonNullable<SelectStrategyProp>;
|
661
|
+
openStrategy: NonNullable<OpenStrategyProp>;
|
662
662
|
collapseIcon: string;
|
663
663
|
expandIcon: string;
|
664
664
|
lines: false | "one" | "two" | "three";
|
@@ -801,19 +801,13 @@ declare const VTreeview: {
|
|
801
801
|
activatable: BooleanConstructor;
|
802
802
|
selectable: BooleanConstructor;
|
803
803
|
activeStrategy: vue.PropType<ActiveStrategyProp>;
|
804
|
-
selectStrategy:
|
804
|
+
selectStrategy: {
|
805
805
|
type: vue.PropType<NonNullable<SelectStrategyProp>>;
|
806
806
|
default: NonNullable<SelectStrategyProp>;
|
807
|
-
}, "default" | "type"> & {
|
808
|
-
type: vue.PropType<NonNullable<NonNullable<SelectStrategyProp>>>;
|
809
|
-
default: NonNullable<NonNullable<SelectStrategyProp>>;
|
810
807
|
};
|
811
|
-
openStrategy:
|
808
|
+
openStrategy: {
|
812
809
|
type: vue.PropType<NonNullable<OpenStrategyProp>>;
|
813
810
|
default: NonNullable<OpenStrategyProp>;
|
814
|
-
}, "default" | "type"> & {
|
815
|
-
type: vue.PropType<NonNullable<NonNullable<OpenStrategyProp>>>;
|
816
|
-
default: NonNullable<NonNullable<OpenStrategyProp>>;
|
817
811
|
};
|
818
812
|
'onUpdate:opened': vue.PropType<() => void>;
|
819
813
|
activeColor: StringConstructor;
|
@@ -942,19 +936,13 @@ declare const VTreeview: {
|
|
942
936
|
activatable: BooleanConstructor;
|
943
937
|
selectable: BooleanConstructor;
|
944
938
|
activeStrategy: vue.PropType<ActiveStrategyProp>;
|
945
|
-
selectStrategy:
|
939
|
+
selectStrategy: {
|
946
940
|
type: vue.PropType<NonNullable<SelectStrategyProp>>;
|
947
941
|
default: NonNullable<SelectStrategyProp>;
|
948
|
-
}, "default" | "type"> & {
|
949
|
-
type: vue.PropType<NonNullable<NonNullable<SelectStrategyProp>>>;
|
950
|
-
default: NonNullable<NonNullable<SelectStrategyProp>>;
|
951
942
|
};
|
952
|
-
openStrategy:
|
943
|
+
openStrategy: {
|
953
944
|
type: vue.PropType<NonNullable<OpenStrategyProp>>;
|
954
945
|
default: NonNullable<OpenStrategyProp>;
|
955
|
-
}, "default" | "type"> & {
|
956
|
-
type: vue.PropType<NonNullable<NonNullable<OpenStrategyProp>>>;
|
957
|
-
default: NonNullable<NonNullable<OpenStrategyProp>>;
|
958
946
|
};
|
959
947
|
'onUpdate:opened': vue.PropType<() => void>;
|
960
948
|
activeColor: StringConstructor;
|