@vuetify/nightly 3.7.0-master.2024-08-22 → 3.7.0-master.2024-08-26

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.
Files changed (53) hide show
  1. package/dist/json/importMap-labs.json +20 -20
  2. package/dist/json/importMap.json +148 -148
  3. package/dist/json/web-types.json +1 -1
  4. package/dist/vuetify-labs.css +2811 -2811
  5. package/dist/vuetify-labs.d.ts +1839 -36
  6. package/dist/vuetify-labs.esm.js +5 -3
  7. package/dist/vuetify-labs.esm.js.map +1 -1
  8. package/dist/vuetify-labs.js +5 -3
  9. package/dist/vuetify-labs.min.css +2 -2
  10. package/dist/vuetify.css +1493 -1493
  11. package/dist/vuetify.d.ts +404 -80
  12. package/dist/vuetify.esm.js +5 -3
  13. package/dist/vuetify.esm.js.map +1 -1
  14. package/dist/vuetify.js +5 -3
  15. package/dist/vuetify.js.map +1 -1
  16. package/dist/vuetify.min.css +2 -2
  17. package/dist/vuetify.min.js +3 -3
  18. package/dist/vuetify.min.js.map +1 -1
  19. package/lib/components/VAutocomplete/index.d.mts +45 -3
  20. package/lib/components/VCombobox/index.d.mts +45 -3
  21. package/lib/components/VDialog/index.d.mts +36 -3
  22. package/lib/components/VFileInput/index.d.mts +27 -3
  23. package/lib/components/VForm/index.d.mts +96 -3
  24. package/lib/components/VMenu/index.d.mts +45 -3
  25. package/lib/components/VSelect/index.d.mts +45 -3
  26. package/lib/components/VSnackbar/index.d.mts +36 -3
  27. package/lib/components/VTabs/index.d.mts +15 -3
  28. package/lib/components/VTextField/index.d.mts +33 -3
  29. package/lib/components/VTextarea/index.d.mts +27 -3
  30. package/lib/components/VTooltip/index.d.mts +36 -3
  31. package/lib/components/index.d.mts +351 -27
  32. package/lib/components/index.mjs +1 -1
  33. package/lib/components/index.mjs.map +1 -1
  34. package/lib/composables/forwardRefs.mjs +2 -0
  35. package/lib/composables/forwardRefs.mjs.map +1 -1
  36. package/lib/entry-bundler.mjs +1 -1
  37. package/lib/framework.mjs +1 -1
  38. package/lib/index.d.mts +53 -53
  39. package/lib/labs/VNumberInput/index.d.mts +2273 -794
  40. package/lib/labs/VSnackbarQueue/index.d.mts +36 -3
  41. package/lib/labs/components.d.mts +2293 -781
  42. package/package.json +1 -1
  43. package/lib/components/VTreeview/VTreeview.mjs +0 -350
  44. package/lib/components/VTreeview/VTreeview.mjs.map +0 -1
  45. package/lib/components/VTreeview/VTreeview.sass +0 -128
  46. package/lib/components/VTreeview/VTreeviewNode.mjs +0 -321
  47. package/lib/components/VTreeview/VTreeviewNode.mjs.map +0 -1
  48. package/lib/components/VTreeview/_mixins.sass +0 -18
  49. package/lib/components/VTreeview/_variables.scss +0 -10
  50. package/lib/components/VTreeview/index.mjs +0 -10
  51. package/lib/components/VTreeview/index.mjs.map +0 -1
  52. package/lib/components/VTreeview/util/filterTreeItems.mjs +0 -25
  53. package/lib/components/VTreeview/util/filterTreeItems.mjs.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuetify/nightly",
3
3
  "description": "Vue Material Component Framework",
4
- "version": "3.7.0-master.2024-08-22",
4
+ "version": "3.7.0-master.2024-08-26",
5
5
  "author": {
6
6
  "name": "John Leider",
7
7
  "email": "john@vuetifyjs.com"
@@ -1,350 +0,0 @@
1
- // @ts-nocheck
2
- /* eslint-disable */
3
-
4
- // Styles
5
- import "./VTreeview.css";
6
-
7
- // Types
8
- // Components
9
- import VTreeviewNode, { VTreeviewNodeProps } from "./VTreeviewNode.mjs"; // Mixins
10
- import Themeable from "../../mixins/themeable.mjs";
11
- import { provide as RegistrableProvide } from "../../mixins/registrable.mjs"; // Utils
12
- import { arrayDiff, deepEqual, getObjectValueByPath } from "../../util/helpers.mjs";
13
- import mixins from "../../util/mixins.mjs";
14
- import { consoleWarn } from "../../util/console.mjs";
15
- import { filterTreeItems, filterTreeItem } from "./util/filterTreeItems.mjs";
16
- export default mixins(RegistrableProvide('treeview'), Themeable
17
- /* @vue/component */).extend({
18
- name: 'v-treeview',
19
- provide() {
20
- return {
21
- treeview: this
22
- };
23
- },
24
- props: {
25
- active: {
26
- type: Array,
27
- default: () => []
28
- },
29
- dense: Boolean,
30
- disabled: Boolean,
31
- filter: Function,
32
- hoverable: Boolean,
33
- items: {
34
- type: Array,
35
- default: () => []
36
- },
37
- multipleActive: Boolean,
38
- open: {
39
- type: Array,
40
- default: () => []
41
- },
42
- openAll: Boolean,
43
- returnObject: {
44
- type: Boolean,
45
- default: false // TODO: Should be true in next major
46
- },
47
- search: String,
48
- value: {
49
- type: Array,
50
- default: () => []
51
- },
52
- ...VTreeviewNodeProps
53
- },
54
- data: () => ({
55
- level: -1,
56
- activeCache: new Set(),
57
- nodes: {},
58
- openCache: new Set(),
59
- selectedCache: new Set()
60
- }),
61
- computed: {
62
- excludedItems() {
63
- const excluded = new Set();
64
- if (!this.search) return excluded;
65
- for (let i = 0; i < this.items.length; i++) {
66
- filterTreeItems(this.filter || filterTreeItem, this.items[i], this.search, this.itemKey, this.itemText, this.itemChildren, excluded);
67
- }
68
- return excluded;
69
- }
70
- },
71
- watch: {
72
- items: {
73
- handler() {
74
- const oldKeys = Object.keys(this.nodes).map(k => getObjectValueByPath(this.nodes[k].item, this.itemKey));
75
- const newKeys = this.getKeys(this.items);
76
- const diff = arrayDiff(newKeys, oldKeys);
77
-
78
- // We only want to do stuff if items have changed
79
- if (!diff.length && newKeys.length < oldKeys.length) return;
80
-
81
- // If nodes are removed we need to clear them from this.nodes
82
- diff.forEach(k => delete this.nodes[k]);
83
- const oldSelectedCache = [...this.selectedCache];
84
- this.selectedCache = new Set();
85
- this.activeCache = new Set();
86
- this.openCache = new Set();
87
- this.buildTree(this.items);
88
-
89
- // Only emit selected if selection has changed
90
- // as a result of items changing. This fixes a
91
- // potential double emit when selecting a node
92
- // with dynamic children
93
- if (!deepEqual(oldSelectedCache, [...this.selectedCache])) this.emitSelected();
94
- },
95
- deep: true
96
- },
97
- active(value) {
98
- this.handleNodeCacheWatcher(value, this.activeCache, this.updateActive, this.emitActive);
99
- },
100
- value(value) {
101
- this.handleNodeCacheWatcher(value, this.selectedCache, this.updateSelected, this.emitSelected);
102
- },
103
- open(value) {
104
- this.handleNodeCacheWatcher(value, this.openCache, this.updateOpen, this.emitOpen);
105
- }
106
- },
107
- created() {
108
- const getValue = key => this.returnObject ? getObjectValueByPath(key, this.itemKey) : key;
109
- this.buildTree(this.items);
110
- for (const value of this.value.map(getValue)) {
111
- this.updateSelected(value, true, true);
112
- }
113
- for (const active of this.active.map(getValue)) {
114
- this.updateActive(active, true);
115
- }
116
- },
117
- mounted() {
118
- // Save the developer from themselves
119
- if (this.$slots.prepend || this.$slots.append) {
120
- consoleWarn('The prepend and append slots require a slot-scope attribute', this);
121
- }
122
- if (this.openAll) {
123
- this.updateAll(true);
124
- } else {
125
- this.open.forEach(key => this.updateOpen(this.returnObject ? getObjectValueByPath(key, this.itemKey) : key, true));
126
- this.emitOpen();
127
- }
128
- },
129
- methods: {
130
- /** @public */
131
- updateAll(value) {
132
- Object.keys(this.nodes).forEach(key => this.updateOpen(getObjectValueByPath(this.nodes[key].item, this.itemKey), value));
133
- this.emitOpen();
134
- },
135
- getKeys(items) {
136
- let keys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
137
- for (let i = 0; i < items.length; i++) {
138
- const key = getObjectValueByPath(items[i], this.itemKey);
139
- keys.push(key);
140
- const children = getObjectValueByPath(items[i], this.itemChildren);
141
- if (children) {
142
- keys.push(...this.getKeys(children));
143
- }
144
- }
145
- return keys;
146
- },
147
- buildTree(items) {
148
- let parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
149
- for (let i = 0; i < items.length; i++) {
150
- const item = items[i];
151
- const key = getObjectValueByPath(item, this.itemKey);
152
- const children = getObjectValueByPath(item, this.itemChildren) ?? [];
153
- const oldNode = this.nodes.hasOwnProperty(key) ? this.nodes[key] : {
154
- isSelected: false,
155
- isIndeterminate: false,
156
- isActive: false,
157
- isOpen: false,
158
- vnode: null
159
- };
160
- const node = {
161
- vnode: oldNode.vnode,
162
- parent,
163
- children: children.map(c => getObjectValueByPath(c, this.itemKey)),
164
- item
165
- };
166
- this.buildTree(children, key);
167
-
168
- // This fixed bug with dynamic children resetting selected parent state
169
- if (this.selectionType !== 'independent' && parent !== null && !this.nodes.hasOwnProperty(key) && this.nodes.hasOwnProperty(parent)) {
170
- node.isSelected = this.nodes[parent].isSelected;
171
- } else {
172
- node.isSelected = oldNode.isSelected;
173
- node.isIndeterminate = oldNode.isIndeterminate;
174
- }
175
- node.isActive = oldNode.isActive;
176
- node.isOpen = oldNode.isOpen;
177
- this.nodes[key] = node;
178
- if (children.length && this.selectionType !== 'independent') {
179
- const {
180
- isSelected,
181
- isIndeterminate
182
- } = this.calculateState(key, this.nodes);
183
- node.isSelected = isSelected;
184
- node.isIndeterminate = isIndeterminate;
185
- }
186
-
187
- // Don't forget to rebuild cache
188
- if (this.nodes[key].isSelected && (this.selectionType === 'independent' || node.children.length === 0)) this.selectedCache.add(key);
189
- if (this.nodes[key].isActive) this.activeCache.add(key);
190
- if (this.nodes[key].isOpen) this.openCache.add(key);
191
- this.updateVnodeState(key);
192
- }
193
- },
194
- calculateState(node, state) {
195
- const children = state[node].children;
196
- const counts = children.reduce((counts, child) => {
197
- counts[0] += +Boolean(state[child].isSelected);
198
- counts[1] += +Boolean(state[child].isIndeterminate);
199
- return counts;
200
- }, [0, 0]);
201
- const isSelected = !!children.length && counts[0] === children.length;
202
- const isIndeterminate = !isSelected && (counts[0] > 0 || counts[1] > 0);
203
- return {
204
- isSelected,
205
- isIndeterminate
206
- };
207
- },
208
- emitOpen() {
209
- this.emitNodeCache('update:open', this.openCache);
210
- },
211
- emitSelected() {
212
- this.emitNodeCache('input', this.selectedCache);
213
- },
214
- emitActive() {
215
- this.emitNodeCache('update:active', this.activeCache);
216
- },
217
- emitNodeCache(event, cache) {
218
- this.$emit(event, this.returnObject ? [...cache].map(key => this.nodes[key].item) : [...cache]);
219
- },
220
- handleNodeCacheWatcher(value, cache, updateFn, emitFn) {
221
- value = this.returnObject ? value.map(v => getObjectValueByPath(v, this.itemKey)) : value;
222
- const old = [...cache];
223
- if (deepEqual(old, value)) return;
224
- old.forEach(key => updateFn(key, false));
225
- value.forEach(key => updateFn(key, true));
226
- emitFn();
227
- },
228
- getDescendants(key) {
229
- let descendants = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
230
- const children = this.nodes[key].children;
231
- descendants.push(...children);
232
- for (let i = 0; i < children.length; i++) {
233
- descendants = this.getDescendants(children[i], descendants);
234
- }
235
- return descendants;
236
- },
237
- getParents(key) {
238
- let parent = this.nodes[key].parent;
239
- const parents = [];
240
- while (parent !== null) {
241
- parents.push(parent);
242
- parent = this.nodes[parent].parent;
243
- }
244
- return parents;
245
- },
246
- register(node) {
247
- const key = getObjectValueByPath(node.item, this.itemKey);
248
- this.nodes[key].vnode = node;
249
- this.updateVnodeState(key);
250
- },
251
- unregister(node) {
252
- const key = getObjectValueByPath(node.item, this.itemKey);
253
- if (this.nodes[key]) this.nodes[key].vnode = null;
254
- },
255
- isParent(key) {
256
- return this.nodes[key].children && this.nodes[key].children.length;
257
- },
258
- updateActive(key, isActive) {
259
- if (!this.nodes.hasOwnProperty(key)) return;
260
- if (!this.multipleActive) {
261
- this.activeCache.forEach(active => {
262
- this.nodes[active].isActive = false;
263
- this.updateVnodeState(active);
264
- this.activeCache.delete(active);
265
- });
266
- }
267
- const node = this.nodes[key];
268
- if (!node) return;
269
- if (isActive) this.activeCache.add(key);else this.activeCache.delete(key);
270
- node.isActive = isActive;
271
- this.updateVnodeState(key);
272
- },
273
- updateSelected(key, isSelected) {
274
- let isForced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
275
- if (!this.nodes.hasOwnProperty(key)) return;
276
- const changed = new Map();
277
- if (this.selectionType !== 'independent') {
278
- for (const descendant of this.getDescendants(key)) {
279
- if (!getObjectValueByPath(this.nodes[descendant].item, this.itemDisabled) || isForced) {
280
- this.nodes[descendant].isSelected = isSelected;
281
- this.nodes[descendant].isIndeterminate = false;
282
- changed.set(descendant, isSelected);
283
- }
284
- }
285
- const calculated = this.calculateState(key, this.nodes);
286
- this.nodes[key].isSelected = isSelected;
287
- this.nodes[key].isIndeterminate = calculated.isIndeterminate;
288
- changed.set(key, isSelected);
289
- for (const parent of this.getParents(key)) {
290
- const calculated = this.calculateState(parent, this.nodes);
291
- this.nodes[parent].isSelected = calculated.isSelected;
292
- this.nodes[parent].isIndeterminate = calculated.isIndeterminate;
293
- changed.set(parent, calculated.isSelected);
294
- }
295
- } else {
296
- this.nodes[key].isSelected = isSelected;
297
- this.nodes[key].isIndeterminate = false;
298
- changed.set(key, isSelected);
299
- }
300
- for (const [key, value] of changed.entries()) {
301
- this.updateVnodeState(key);
302
- if (this.selectionType === 'leaf' && this.isParent(key)) continue;
303
- value === true ? this.selectedCache.add(key) : this.selectedCache.delete(key);
304
- }
305
- },
306
- updateOpen(key, isOpen) {
307
- if (!this.nodes.hasOwnProperty(key)) return;
308
- const node = this.nodes[key];
309
- const children = getObjectValueByPath(node.item, this.itemChildren);
310
- if (children && !children.length && node.vnode && !node.vnode.hasLoaded) {
311
- node.vnode.checkChildren().then(() => this.updateOpen(key, isOpen));
312
- } else if (children && children.length) {
313
- node.isOpen = isOpen;
314
- node.isOpen ? this.openCache.add(key) : this.openCache.delete(key);
315
- this.updateVnodeState(key);
316
- }
317
- },
318
- updateVnodeState(key) {
319
- const node = this.nodes[key];
320
- if (node && node.vnode) {
321
- node.vnode.isSelected = node.isSelected;
322
- node.vnode.isIndeterminate = node.isIndeterminate;
323
- node.vnode.isActive = node.isActive;
324
- node.vnode.isOpen = node.isOpen;
325
- }
326
- },
327
- isExcluded(key) {
328
- return !!this.search && this.excludedItems.has(key);
329
- }
330
- },
331
- render(h) {
332
- const children = this.items.length ? this.items.filter(item => {
333
- return !this.isExcluded(getObjectValueByPath(item, this.itemKey));
334
- }).map(item => {
335
- const genChild = VTreeviewNode.options.methods.genChild.bind(this);
336
- return genChild(item, this.disabled || getObjectValueByPath(item, this.itemDisabled));
337
- })
338
- /* istanbul ignore next */ : this.$slots.default; // TODO: remove type annotation with TS 3.2
339
-
340
- return h('div', {
341
- staticClass: 'v-treeview',
342
- class: {
343
- 'v-treeview--hoverable': this.hoverable,
344
- 'v-treeview--dense': this.dense,
345
- ...this.themeClasses
346
- }
347
- }, children);
348
- }
349
- });
350
- //# sourceMappingURL=VTreeview.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VTreeview.mjs","names":["VTreeviewNode","VTreeviewNodeProps","Themeable","provide","RegistrableProvide","arrayDiff","deepEqual","getObjectValueByPath","mixins","consoleWarn","filterTreeItems","filterTreeItem","extend","name","treeview","props","active","type","Array","default","dense","Boolean","disabled","filter","Function","hoverable","items","multipleActive","open","openAll","returnObject","search","String","value","data","level","activeCache","Set","nodes","openCache","selectedCache","computed","excludedItems","excluded","i","length","itemKey","itemText","itemChildren","watch","handler","oldKeys","Object","keys","map","k","item","newKeys","getKeys","diff","forEach","oldSelectedCache","buildTree","emitSelected","deep","handleNodeCacheWatcher","updateActive","emitActive","updateSelected","updateOpen","emitOpen","created","getValue","key","mounted","$slots","prepend","append","updateAll","methods","arguments","undefined","push","children","parent","oldNode","hasOwnProperty","isSelected","isIndeterminate","isActive","isOpen","vnode","node","c","selectionType","calculateState","add","updateVnodeState","state","counts","reduce","child","emitNodeCache","event","cache","$emit","updateFn","emitFn","v","old","getDescendants","descendants","getParents","parents","register","unregister","isParent","delete","isForced","changed","Map","descendant","itemDisabled","set","calculated","entries","hasLoaded","checkChildren","then","isExcluded","has","render","h","genChild","options","bind","staticClass","class","themeClasses"],"sources":["../../../src/components/VTreeview/VTreeview.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\n// Styles\nimport './VTreeview.sass'\n\n// Types\nimport { VNode, VNodeChildrenArrayContents, PropType } from 'vue'\nimport { PropValidator } from 'vue/types/options'\nimport { TreeviewItemFunction } from 'vuetify/types'\n\n// Components\nimport VTreeviewNode, { VTreeviewNodeProps } from './VTreeviewNode'\n\n// Mixins\nimport Themeable from '../../mixins/themeable'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Utils\nimport {\n arrayDiff,\n deepEqual,\n getObjectValueByPath,\n} from '../../util/helpers'\nimport mixins from '../../util/mixins'\nimport { consoleWarn } from '../../util/console'\nimport {\n filterTreeItems,\n filterTreeItem,\n} from './util/filterTreeItems'\n\ntype VTreeviewNodeInstance = InstanceType<typeof VTreeviewNode>\n\ntype NodeCache = Set<string | number>\ntype NodeArray = (string | number)[]\n\ntype NodeState = {\n parent: number | string | null\n children: (number | string)[]\n vnode: VTreeviewNodeInstance | null\n isActive: boolean\n isSelected: boolean\n isIndeterminate: boolean\n isOpen: boolean\n item: any\n}\n\nexport default mixins(\n RegistrableProvide('treeview'),\n Themeable\n /* @vue/component */\n).extend({\n name: 'v-treeview',\n\n provide (): object {\n return { treeview: this }\n },\n\n props: {\n active: {\n type: Array,\n default: () => ([]),\n } as PropValidator<NodeArray>,\n dense: Boolean,\n disabled: Boolean,\n filter: Function as PropType<TreeviewItemFunction>,\n hoverable: Boolean,\n items: {\n type: Array,\n default: () => ([]),\n } as PropValidator<any[]>,\n multipleActive: Boolean,\n open: {\n type: Array,\n default: () => ([]),\n } as PropValidator<NodeArray>,\n openAll: Boolean,\n returnObject: {\n type: Boolean,\n default: false, // TODO: Should be true in next major\n },\n search: String,\n value: {\n type: Array,\n default: () => ([]),\n } as PropValidator<NodeArray>,\n ...VTreeviewNodeProps,\n },\n\n data: () => ({\n level: -1,\n activeCache: new Set() as NodeCache,\n nodes: {} as Record<string | number, NodeState>,\n openCache: new Set() as NodeCache,\n selectedCache: new Set() as NodeCache,\n }),\n\n computed: {\n excludedItems (): Set<string | number> {\n const excluded = new Set<string|number>()\n\n if (!this.search) return excluded\n\n for (let i = 0; i < this.items.length; i++) {\n filterTreeItems(\n this.filter || filterTreeItem,\n this.items[i],\n this.search,\n this.itemKey,\n this.itemText,\n this.itemChildren,\n excluded\n )\n }\n\n return excluded\n },\n },\n\n watch: {\n items: {\n handler () {\n const oldKeys = Object.keys(this.nodes).map(k => getObjectValueByPath(this.nodes[k].item, this.itemKey))\n const newKeys = this.getKeys(this.items)\n const diff = arrayDiff(newKeys, oldKeys)\n\n // We only want to do stuff if items have changed\n if (!diff.length && newKeys.length < oldKeys.length) return\n\n // If nodes are removed we need to clear them from this.nodes\n diff.forEach(k => delete this.nodes[k])\n\n const oldSelectedCache = [...this.selectedCache]\n this.selectedCache = new Set()\n this.activeCache = new Set()\n this.openCache = new Set()\n this.buildTree(this.items)\n\n // Only emit selected if selection has changed\n // as a result of items changing. This fixes a\n // potential double emit when selecting a node\n // with dynamic children\n if (!deepEqual(oldSelectedCache, [...this.selectedCache])) this.emitSelected()\n },\n deep: true,\n },\n active (value: (string | number | any)[]) {\n this.handleNodeCacheWatcher(value, this.activeCache, this.updateActive, this.emitActive)\n },\n value (value: (string | number | any)[]) {\n this.handleNodeCacheWatcher(value, this.selectedCache, this.updateSelected, this.emitSelected)\n },\n open (value: (string | number | any)[]) {\n this.handleNodeCacheWatcher(value, this.openCache, this.updateOpen, this.emitOpen)\n },\n },\n\n created () {\n const getValue = (key: string | number) => this.returnObject ? getObjectValueByPath(key, this.itemKey) : key\n\n this.buildTree(this.items)\n\n for (const value of this.value.map(getValue)) {\n this.updateSelected(value, true, true)\n }\n\n for (const active of this.active.map(getValue)) {\n this.updateActive(active, true)\n }\n },\n\n mounted () {\n // Save the developer from themselves\n if (this.$slots.prepend || this.$slots.append) {\n consoleWarn('The prepend and append slots require a slot-scope attribute', this)\n }\n\n if (this.openAll) {\n this.updateAll(true)\n } else {\n this.open.forEach(key => this.updateOpen(this.returnObject ? getObjectValueByPath(key, this.itemKey) : key, true))\n this.emitOpen()\n }\n },\n\n methods: {\n /** @public */\n updateAll (value: boolean) {\n Object.keys(this.nodes).forEach(key => this.updateOpen(getObjectValueByPath(this.nodes[key].item, this.itemKey), value))\n this.emitOpen()\n },\n getKeys (items: any[], keys: any[] = []) {\n for (let i = 0; i < items.length; i++) {\n const key = getObjectValueByPath(items[i], this.itemKey)\n keys.push(key)\n const children = getObjectValueByPath(items[i], this.itemChildren)\n if (children) {\n keys.push(...this.getKeys(children))\n }\n }\n\n return keys\n },\n buildTree (items: any[], parent: (string | number | null) = null) {\n for (let i = 0; i < items.length; i++) {\n const item = items[i]\n const key = getObjectValueByPath(item, this.itemKey)\n const children = getObjectValueByPath(item, this.itemChildren) ?? []\n const oldNode = this.nodes.hasOwnProperty(key) ? this.nodes[key] : {\n isSelected: false, isIndeterminate: false, isActive: false, isOpen: false, vnode: null,\n } as NodeState\n\n const node: any = {\n vnode: oldNode.vnode,\n parent,\n children: children.map((c: any) => getObjectValueByPath(c, this.itemKey)),\n item,\n }\n\n this.buildTree(children, key)\n\n // This fixed bug with dynamic children resetting selected parent state\n if (\n this.selectionType !== 'independent' &&\n parent !== null &&\n !this.nodes.hasOwnProperty(key) &&\n this.nodes.hasOwnProperty(parent)\n ) {\n node.isSelected = this.nodes[parent].isSelected\n } else {\n node.isSelected = oldNode.isSelected\n node.isIndeterminate = oldNode.isIndeterminate\n }\n\n node.isActive = oldNode.isActive\n node.isOpen = oldNode.isOpen\n\n this.nodes[key] = node\n\n if (children.length && this.selectionType !== 'independent') {\n const { isSelected, isIndeterminate } = this.calculateState(key, this.nodes)\n\n node.isSelected = isSelected\n node.isIndeterminate = isIndeterminate\n }\n\n // Don't forget to rebuild cache\n if (this.nodes[key].isSelected && (this.selectionType === 'independent' || node.children.length === 0)) this.selectedCache.add(key)\n if (this.nodes[key].isActive) this.activeCache.add(key)\n if (this.nodes[key].isOpen) this.openCache.add(key)\n\n this.updateVnodeState(key)\n }\n },\n calculateState (node: string | number, state: Record<string | number, NodeState>) {\n const children = state[node].children\n const counts = children.reduce((counts: number[], child: string | number) => {\n counts[0] += +Boolean(state[child].isSelected)\n counts[1] += +Boolean(state[child].isIndeterminate)\n\n return counts\n }, [0, 0])\n\n const isSelected = !!children.length && counts[0] === children.length\n const isIndeterminate = !isSelected && (counts[0] > 0 || counts[1] > 0)\n\n return {\n isSelected,\n isIndeterminate,\n }\n },\n emitOpen () {\n this.emitNodeCache('update:open', this.openCache)\n },\n emitSelected () {\n this.emitNodeCache('input', this.selectedCache)\n },\n emitActive () {\n this.emitNodeCache('update:active', this.activeCache)\n },\n emitNodeCache (event: string, cache: NodeCache) {\n this.$emit(event, this.returnObject ? [...cache].map(key => this.nodes[key].item) : [...cache])\n },\n handleNodeCacheWatcher (value: any[], cache: NodeCache, updateFn: Function, emitFn: Function) {\n value = this.returnObject ? value.map(v => getObjectValueByPath(v, this.itemKey)) : value\n const old = [...cache]\n if (deepEqual(old, value)) return\n\n old.forEach(key => updateFn(key, false))\n value.forEach(key => updateFn(key, true))\n\n emitFn()\n },\n getDescendants (key: string | number, descendants: NodeArray = []) {\n const children = this.nodes[key].children\n\n descendants.push(...children)\n\n for (let i = 0; i < children.length; i++) {\n descendants = this.getDescendants(children[i], descendants)\n }\n\n return descendants\n },\n getParents (key: string | number) {\n let parent = this.nodes[key].parent\n\n const parents = []\n while (parent !== null) {\n parents.push(parent)\n parent = this.nodes[parent].parent\n }\n\n return parents\n },\n register (node: VTreeviewNodeInstance) {\n const key = getObjectValueByPath(node.item, this.itemKey)\n this.nodes[key].vnode = node\n\n this.updateVnodeState(key)\n },\n unregister (node: VTreeviewNodeInstance) {\n const key = getObjectValueByPath(node.item, this.itemKey)\n if (this.nodes[key]) this.nodes[key].vnode = null\n },\n isParent (key: string | number) {\n return this.nodes[key].children && this.nodes[key].children.length\n },\n updateActive (key: string | number, isActive: boolean) {\n if (!this.nodes.hasOwnProperty(key)) return\n\n if (!this.multipleActive) {\n this.activeCache.forEach(active => {\n this.nodes[active].isActive = false\n this.updateVnodeState(active)\n this.activeCache.delete(active)\n })\n }\n\n const node = this.nodes[key]\n if (!node) return\n\n if (isActive) this.activeCache.add(key)\n else this.activeCache.delete(key)\n\n node.isActive = isActive\n\n this.updateVnodeState(key)\n },\n updateSelected (key: string | number, isSelected: boolean, isForced = false) {\n if (!this.nodes.hasOwnProperty(key)) return\n\n const changed = new Map()\n\n if (this.selectionType !== 'independent') {\n for (const descendant of this.getDescendants(key)) {\n if (!getObjectValueByPath(this.nodes[descendant].item, this.itemDisabled) || isForced) {\n this.nodes[descendant].isSelected = isSelected\n this.nodes[descendant].isIndeterminate = false\n changed.set(descendant, isSelected)\n }\n }\n\n const calculated = this.calculateState(key, this.nodes)\n this.nodes[key].isSelected = isSelected\n this.nodes[key].isIndeterminate = calculated.isIndeterminate\n changed.set(key, isSelected)\n\n for (const parent of this.getParents(key)) {\n const calculated = this.calculateState(parent, this.nodes)\n this.nodes[parent].isSelected = calculated.isSelected\n this.nodes[parent].isIndeterminate = calculated.isIndeterminate\n changed.set(parent, calculated.isSelected)\n }\n } else {\n this.nodes[key].isSelected = isSelected\n this.nodes[key].isIndeterminate = false\n changed.set(key, isSelected)\n }\n\n for (const [key, value] of changed.entries()) {\n this.updateVnodeState(key)\n\n if (this.selectionType === 'leaf' && this.isParent(key)) continue\n\n value === true ? this.selectedCache.add(key) : this.selectedCache.delete(key)\n }\n },\n updateOpen (key: string | number, isOpen: boolean) {\n if (!this.nodes.hasOwnProperty(key)) return\n\n const node = this.nodes[key]\n const children = getObjectValueByPath(node.item, this.itemChildren)\n\n if (children && !children.length && node.vnode && !node.vnode.hasLoaded) {\n node.vnode.checkChildren().then(() => this.updateOpen(key, isOpen))\n } else if (children && children.length) {\n node.isOpen = isOpen\n\n node.isOpen ? this.openCache.add(key) : this.openCache.delete(key)\n\n this.updateVnodeState(key)\n }\n },\n updateVnodeState (key: string | number) {\n const node = this.nodes[key]\n\n if (node && node.vnode) {\n node.vnode.isSelected = node.isSelected\n node.vnode.isIndeterminate = node.isIndeterminate\n node.vnode.isActive = node.isActive\n node.vnode.isOpen = node.isOpen\n }\n },\n isExcluded (key: string | number) {\n return !!this.search && this.excludedItems.has(key)\n },\n },\n\n render (h): VNode {\n const children: VNodeChildrenArrayContents = this.items.length\n ? this.items.filter(item => {\n return !this.isExcluded(getObjectValueByPath(item, this.itemKey))\n }).map(item => {\n const genChild = VTreeviewNode.options.methods.genChild.bind(this)\n\n return genChild(item, this.disabled || getObjectValueByPath(item, this.itemDisabled))\n })\n /* istanbul ignore next */\n : this.$slots.default! // TODO: remove type annotation with TS 3.2\n\n return h('div', {\n staticClass: 'v-treeview',\n class: {\n 'v-treeview--hoverable': this.hoverable,\n 'v-treeview--dense': this.dense,\n ...this.themeClasses,\n },\n }, children)\n },\n})\n"],"mappings":"AAAA;AACA;;AAEA;AACA;;AAEA;AAKA;AAAA,OACOA,aAAa,IAAIC,kBAAkB,+BAE1C;AAAA,OACOC,SAAS;AAAA,SACPC,OAAO,IAAIC,kBAAkB,wCAEtC;AAAA,SAEEC,SAAS,EACTC,SAAS,EACTC,oBAAoB;AAAA,OAEfC,MAAM;AAAA,SACJC,WAAW;AAAA,SAElBC,eAAe,EACfC,cAAc;AAmBhB,eAAeH,MAAM,CACnBJ,kBAAkB,CAAC,UAAU,CAAC,EAC9BF;AACA,oBACF,CAAC,CAACU,MAAM,CAAC;EACPC,IAAI,EAAE,YAAY;EAElBV,OAAOA,CAAA,EAAY;IACjB,OAAO;MAAEW,QAAQ,EAAE;IAAK,CAAC;EAC3B,CAAC;EAEDC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,IAAI,EAAEC,KAAK;MACXC,OAAO,EAAEA,CAAA,KAAO;IAClB,CAA6B;IAC7BC,KAAK,EAAEC,OAAO;IACdC,QAAQ,EAAED,OAAO;IACjBE,MAAM,EAAEC,QAA0C;IAClDC,SAAS,EAAEJ,OAAO;IAClBK,KAAK,EAAE;MACLT,IAAI,EAAEC,KAAK;MACXC,OAAO,EAAEA,CAAA,KAAO;IAClB,CAAyB;IACzBQ,cAAc,EAAEN,OAAO;IACvBO,IAAI,EAAE;MACJX,IAAI,EAAEC,KAAK;MACXC,OAAO,EAAEA,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AI,CAACF,MAAM;MACjC;IACF,CAAC;IACDuC,UAAUA,CAAExD,GAAoB,EAAE;MAChC,OAAO,CAAC,CAAC,IAAI,CAAC1C,MAAM,IAAI,IAAI,CAACW,aAAa,CAACwF,GAAG,CAACzD,GAAG,CAAC;IACrD;EACF,CAAC;EAED0D,MAAMA,CAAEC,CAAC,EAAS;IAChB,MAAMjD,QAAoC,GAAG,IAAI,CAACzD,KAAK,CAACmB,MAAM,GAC1D,IAAI,CAACnB,KAAK,CAACH,MAAM,CAACiC,IAAI,IAAI;MAC1B,OAAO,CAAC,IAAI,CAACyE,UAAU,CAAC1H,oBAAoB,CAACiD,IAAI,EAAE,IAAI,CAACV,OAAO,CAAC,CAAC;IACnE,CAAC,CAAC,CAACQ,GAAG,CAACE,IAAI,IAAI;MACb,MAAM6E,QAAQ,GAAGrI,aAAa,CAACsI,OAAO,CAACvD,OAAO,CAACsD,QAAQ,CAACE,IAAI,CAAC,IAAI,CAAC;MAElE,OAAOF,QAAQ,CAAC7E,IAAI,EAAE,IAAI,CAAClC,QAAQ,IAAIf,oBAAoB,CAACiD,IAAI,EAAE,IAAI,CAACkE,YAAY,CAAC,CAAC;IACvF,CAAC;IACD,6BACE,IAAI,CAAC/C,MAAM,CAACxD,OAAQ,EAAC;;IAEzB,OAAOiH,CAAC,CAAC,KAAK,EAAE;MACdI,WAAW,EAAE,YAAY;MACzBC,KAAK,EAAE;QACL,uBAAuB,EAAE,IAAI,CAAChH,SAAS;QACvC,mBAAmB,EAAE,IAAI,CAACL,KAAK;QAC/B,GAAG,IAAI,CAACsH;MACV;IACF,CAAC,EAAEvD,QAAQ,CAAC;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,128 +0,0 @@
1
- @import './_variables.scss'
2
- @import './_mixins.sass'
3
-
4
- // Theme
5
- @include theme(v-treeview) using ($material)
6
- color: map-deep-get($material, 'text', 'primary')
7
-
8
- &--hoverable .v-treeview-node__root,
9
- .v-treeview-node--click > .v-treeview-node__root
10
- @include states($material)
11
-
12
- .v-treeview-node__root.v-treeview-node--active
13
- @include active-states($material)
14
-
15
- .v-treeview-node--disabled
16
- > .v-treeview-node__root > .v-treeview-node__content
17
- color: map-deep-get($material, 'text', 'disabled') !important
18
-
19
- .v-treeview-node
20
- &.v-treeview-node--shaped
21
- @include treeview-shaped($treeview-node-height, $treeview-node-shaped-margin)
22
-
23
- &.v-treeview-node--rounded
24
- @include treeview-rounded($treeview-node-height, $treeview-node-shaped-margin)
25
-
26
- &--click
27
- > .v-treeview-node__root,
28
- > .v-treeview-node__root > .v-treeview-node__content > *
29
- cursor: pointer
30
- user-select: none
31
-
32
- &.v-treeview-node--active .v-treeview-node__content .v-icon
33
- color: inherit
34
-
35
- .v-treeview-node__root
36
- display: flex
37
- align-items: center
38
- min-height: $treeview-node-height
39
- padding-left: $treeview-node-padding
40
- padding-right: $treeview-node-padding
41
- position: relative
42
-
43
- &::before
44
- background-color: currentColor
45
- bottom: 0
46
- content: ''
47
- left: 0
48
- opacity: 0
49
- pointer-events: none
50
- position: absolute
51
- right: 0
52
- top: 0
53
- transition: $primary-transition
54
-
55
- // Fix for IE11 where min-height does not work with
56
- // align-items: center in flex containers
57
- // https://github.com/philipwalton/flexbugs/issues/231
58
- &::after
59
- content: ''
60
- font-size: 0
61
- min-height: inherit
62
-
63
- .v-treeview-node__children
64
- transition: all $treeview-transition
65
-
66
- .v-treeview--dense
67
- .v-treeview-node__root
68
- min-height: $treeview-node-height-dense
69
-
70
- &.v-treeview-node--shaped
71
- @include treeview-shaped($treeview-node-height-dense, $treeview-node-shaped-margin)
72
-
73
- &.v-treeview-node--rounded
74
- @include treeview-rounded($treeview-node-height-dense, $treeview-node-shaped-margin)
75
-
76
- .v-treeview-node__checkbox
77
- width: $treeview-node-level-width
78
- user-select: none
79
- margin-inline-start: $treeview-node-margin
80
-
81
- .v-treeview-node__toggle
82
- width: $treeview-node-level-width
83
- user-select: none
84
-
85
- &--loading
86
- animation: progress-circular-rotate 1s linear infinite
87
-
88
- @include ltr()
89
- transform: rotate(-90deg)
90
- &--open
91
- transform: none
92
-
93
- @include rtl()
94
- transform: rotate(90deg)
95
- &--open
96
- transform: none
97
-
98
- .v-treeview-node__prepend
99
- min-width: $treeview-node-level-width
100
- margin-inline-end: $treeview-node-margin
101
-
102
- .v-treeview-node__append
103
- min-width: $treeview-node-level-width
104
- margin-inline-start: $treeview-node-margin
105
-
106
- .v-treeview-node__level
107
- width: $treeview-node-level-width
108
-
109
- .v-treeview-node__label
110
- flex: 1
111
- font-size: $treeview-label-font-size
112
- overflow: hidden
113
- text-overflow: ellipsis
114
- white-space: nowrap
115
-
116
- .v-treeview-node__content
117
- align-items: center
118
- display: flex
119
- flex-basis: 0%
120
- flex-grow: 1
121
- flex-shrink: 0
122
- min-width: 0
123
- margin-inline-start: $treeview-node-margin
124
-
125
- // TODO: this is temporary fix for d-flex * shenanigans
126
- .v-btn
127
- flex-grow: 0 !important
128
- flex-shrink: 1 !important