@vuetify/nightly 3.1.2-next-20230113.0 → 3.1.2
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 +15 -2
- package/dist/json/importMap.json +56 -56
- package/dist/vuetify-labs.css +178 -177
- package/dist/vuetify-labs.d.ts +40 -3
- package/dist/vuetify-labs.esm.js +158 -90
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +158 -90
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +203 -202
- package/dist/vuetify.d.ts +56 -19
- package/dist/vuetify.esm.js +105 -74
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +105 -74
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +52 -52
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.mjs +9 -3
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VCard/VCard.mjs +5 -2
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/index.d.ts +8 -2
- package/lib/components/VCombobox/VCombobox.mjs +2 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.css +1 -0
- package/lib/components/VFileInput/VFileInput.sass +1 -0
- package/lib/components/VList/VListItem.css +1 -1
- package/lib/components/VList/VListItem.mjs +5 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItem.sass +1 -1
- package/lib/components/VList/index.d.ts +20 -1
- package/lib/components/VProgressLinear/VProgressLinear.mjs +13 -1
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.ts +18 -0
- package/lib/components/VSelect/VSelect.mjs +1 -0
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSlider/VSliderThumb.mjs +5 -1
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
- package/lib/components/index.d.ts +40 -3
- package/lib/composables/filter.mjs +3 -3
- package/lib/composables/filter.mjs.map +1 -1
- 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.ts +16 -16
- package/lib/labs/VDataTable/VDataTable.mjs +4 -1
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs +3 -3
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +36 -8
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +4 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/group.mjs +9 -4
- package/lib/labs/VDataTable/composables/group.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify-labs.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.1.2
|
|
2
|
+
* Vuetify v3.1.2
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -4384,9 +4384,69 @@ const Ripple = {
|
|
|
4384
4384
|
updated: updated$1
|
|
4385
4385
|
};
|
|
4386
4386
|
|
|
4387
|
+
// Composables
|
|
4388
|
+
|
|
4389
|
+
// Types
|
|
4390
|
+
|
|
4391
|
+
const oppositeMap = {
|
|
4392
|
+
center: 'center',
|
|
4393
|
+
top: 'bottom',
|
|
4394
|
+
bottom: 'top',
|
|
4395
|
+
left: 'right',
|
|
4396
|
+
right: 'left'
|
|
4397
|
+
};
|
|
4398
|
+
const makeLocationProps = propsFactory({
|
|
4399
|
+
location: String
|
|
4400
|
+
}, 'location');
|
|
4401
|
+
function useLocation(props) {
|
|
4402
|
+
let opposite = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4403
|
+
let offset = arguments.length > 2 ? arguments[2] : undefined;
|
|
4404
|
+
const {
|
|
4405
|
+
isRtl
|
|
4406
|
+
} = useRtl();
|
|
4407
|
+
const locationStyles = computed(() => {
|
|
4408
|
+
if (!props.location) return {};
|
|
4409
|
+
const {
|
|
4410
|
+
side,
|
|
4411
|
+
align
|
|
4412
|
+
} = parseAnchor(props.location.split(' ').length > 1 ? props.location : `${props.location} center`, isRtl.value);
|
|
4413
|
+
function getOffset(side) {
|
|
4414
|
+
return offset ? offset(side) : 0;
|
|
4415
|
+
}
|
|
4416
|
+
const styles = {};
|
|
4417
|
+
if (side !== 'center') {
|
|
4418
|
+
if (opposite) styles[oppositeMap[side]] = `calc(100% - ${getOffset(side)}px)`;else styles[side] = 0;
|
|
4419
|
+
}
|
|
4420
|
+
if (align !== 'center') {
|
|
4421
|
+
if (opposite) styles[oppositeMap[align]] = `calc(100% - ${getOffset(align)}px)`;else styles[align] = 0;
|
|
4422
|
+
} else {
|
|
4423
|
+
if (side === 'center') styles.top = styles.left = '50%';else {
|
|
4424
|
+
styles[{
|
|
4425
|
+
top: 'left',
|
|
4426
|
+
bottom: 'left',
|
|
4427
|
+
left: 'top',
|
|
4428
|
+
right: 'top'
|
|
4429
|
+
}[side]] = '50%';
|
|
4430
|
+
}
|
|
4431
|
+
styles.transform = {
|
|
4432
|
+
top: 'translateX(-50%)',
|
|
4433
|
+
bottom: 'translateX(-50%)',
|
|
4434
|
+
left: 'translateY(-50%)',
|
|
4435
|
+
right: 'translateY(-50%)',
|
|
4436
|
+
center: 'translate(-50%, -50%)'
|
|
4437
|
+
}[side];
|
|
4438
|
+
}
|
|
4439
|
+
return styles;
|
|
4440
|
+
});
|
|
4441
|
+
return {
|
|
4442
|
+
locationStyles
|
|
4443
|
+
};
|
|
4444
|
+
}
|
|
4445
|
+
|
|
4387
4446
|
const VProgressLinear = defineComponent({
|
|
4388
4447
|
name: 'VProgressLinear',
|
|
4389
4448
|
props: {
|
|
4449
|
+
absolute: Boolean,
|
|
4390
4450
|
active: {
|
|
4391
4451
|
type: Boolean,
|
|
4392
4452
|
default: true
|
|
@@ -4416,6 +4476,9 @@ const VProgressLinear = defineComponent({
|
|
|
4416
4476
|
stream: Boolean,
|
|
4417
4477
|
striped: Boolean,
|
|
4418
4478
|
roundedBar: Boolean,
|
|
4479
|
+
...makeLocationProps({
|
|
4480
|
+
location: 'top'
|
|
4481
|
+
}),
|
|
4419
4482
|
...makeRoundedProps(),
|
|
4420
4483
|
...makeTagProps(),
|
|
4421
4484
|
...makeThemeProps()
|
|
@@ -4434,6 +4497,9 @@ const VProgressLinear = defineComponent({
|
|
|
4434
4497
|
const {
|
|
4435
4498
|
themeClasses
|
|
4436
4499
|
} = provideTheme(props);
|
|
4500
|
+
const {
|
|
4501
|
+
locationStyles
|
|
4502
|
+
} = useLocation(props);
|
|
4437
4503
|
const {
|
|
4438
4504
|
textColorClasses,
|
|
4439
4505
|
textColorStyles
|
|
@@ -4475,6 +4541,7 @@ const VProgressLinear = defineComponent({
|
|
|
4475
4541
|
useRender(() => createVNode(props.tag, {
|
|
4476
4542
|
"ref": intersectionRef,
|
|
4477
4543
|
"class": ['v-progress-linear', {
|
|
4544
|
+
'v-progress-linear--absolute': props.absolute,
|
|
4478
4545
|
'v-progress-linear--active': props.active && isIntersecting.value,
|
|
4479
4546
|
'v-progress-linear--reverse': isReversed.value,
|
|
4480
4547
|
'v-progress-linear--rounded': props.rounded,
|
|
@@ -4482,8 +4549,11 @@ const VProgressLinear = defineComponent({
|
|
|
4482
4549
|
'v-progress-linear--striped': props.striped
|
|
4483
4550
|
}, roundedClasses.value, themeClasses.value],
|
|
4484
4551
|
"style": {
|
|
4552
|
+
bottom: props.location === 'bottom' ? 0 : undefined,
|
|
4553
|
+
top: props.location === 'top' ? 0 : undefined,
|
|
4485
4554
|
height: props.active ? convertToUnit(height.value) : 0,
|
|
4486
|
-
'--v-progress-linear-height': convertToUnit(height.value)
|
|
4555
|
+
'--v-progress-linear-height': convertToUnit(height.value),
|
|
4556
|
+
...locationStyles.value
|
|
4487
4557
|
},
|
|
4488
4558
|
"role": "progressbar",
|
|
4489
4559
|
"aria-hidden": props.active ? 'false' : 'true',
|
|
@@ -4569,65 +4639,6 @@ function LoaderSlot(props, _ref) {
|
|
|
4569
4639
|
}, null)]);
|
|
4570
4640
|
}
|
|
4571
4641
|
|
|
4572
|
-
// Composables
|
|
4573
|
-
|
|
4574
|
-
// Types
|
|
4575
|
-
|
|
4576
|
-
const oppositeMap = {
|
|
4577
|
-
center: 'center',
|
|
4578
|
-
top: 'bottom',
|
|
4579
|
-
bottom: 'top',
|
|
4580
|
-
left: 'right',
|
|
4581
|
-
right: 'left'
|
|
4582
|
-
};
|
|
4583
|
-
const makeLocationProps = propsFactory({
|
|
4584
|
-
location: String
|
|
4585
|
-
}, 'location');
|
|
4586
|
-
function useLocation(props) {
|
|
4587
|
-
let opposite = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4588
|
-
let offset = arguments.length > 2 ? arguments[2] : undefined;
|
|
4589
|
-
const {
|
|
4590
|
-
isRtl
|
|
4591
|
-
} = useRtl();
|
|
4592
|
-
const locationStyles = computed(() => {
|
|
4593
|
-
if (!props.location) return {};
|
|
4594
|
-
const {
|
|
4595
|
-
side,
|
|
4596
|
-
align
|
|
4597
|
-
} = parseAnchor(props.location.split(' ').length > 1 ? props.location : `${props.location} center`, isRtl.value);
|
|
4598
|
-
function getOffset(side) {
|
|
4599
|
-
return offset ? offset(side) : 0;
|
|
4600
|
-
}
|
|
4601
|
-
const styles = {};
|
|
4602
|
-
if (side !== 'center') {
|
|
4603
|
-
if (opposite) styles[oppositeMap[side]] = `calc(100% - ${getOffset(side)}px)`;else styles[side] = 0;
|
|
4604
|
-
}
|
|
4605
|
-
if (align !== 'center') {
|
|
4606
|
-
if (opposite) styles[oppositeMap[align]] = `calc(100% - ${getOffset(align)}px)`;else styles[align] = 0;
|
|
4607
|
-
} else {
|
|
4608
|
-
if (side === 'center') styles.top = styles.left = '50%';else {
|
|
4609
|
-
styles[{
|
|
4610
|
-
top: 'left',
|
|
4611
|
-
bottom: 'left',
|
|
4612
|
-
left: 'top',
|
|
4613
|
-
right: 'top'
|
|
4614
|
-
}[side]] = '50%';
|
|
4615
|
-
}
|
|
4616
|
-
styles.transform = {
|
|
4617
|
-
top: 'translateX(-50%)',
|
|
4618
|
-
bottom: 'translateX(-50%)',
|
|
4619
|
-
left: 'translateY(-50%)',
|
|
4620
|
-
right: 'translateY(-50%)',
|
|
4621
|
-
center: 'translate(-50%, -50%)'
|
|
4622
|
-
}[side];
|
|
4623
|
-
}
|
|
4624
|
-
return styles;
|
|
4625
|
-
});
|
|
4626
|
-
return {
|
|
4627
|
-
locationStyles
|
|
4628
|
-
};
|
|
4629
|
-
}
|
|
4630
|
-
|
|
4631
4642
|
// Utilities
|
|
4632
4643
|
|
|
4633
4644
|
// Types
|
|
@@ -4833,8 +4844,14 @@ const VBtn = defineComponent({
|
|
|
4833
4844
|
const group = useGroupItem(props, props.symbol, false);
|
|
4834
4845
|
const link = useLink(props, attrs);
|
|
4835
4846
|
const isActive = computed(() => {
|
|
4836
|
-
|
|
4837
|
-
|
|
4847
|
+
if (props.active !== undefined) {
|
|
4848
|
+
return props.active;
|
|
4849
|
+
}
|
|
4850
|
+
if (link.isLink.value) {
|
|
4851
|
+
var _link$isActive;
|
|
4852
|
+
return (_link$isActive = link.isActive) == null ? void 0 : _link$isActive.value;
|
|
4853
|
+
}
|
|
4854
|
+
return group == null ? void 0 : group.isSelected.value;
|
|
4838
4855
|
});
|
|
4839
4856
|
const isDisabled = computed(() => (group == null ? void 0 : group.disabled.value) || props.disabled);
|
|
4840
4857
|
const isElevated = computed(() => {
|
|
@@ -4844,7 +4861,7 @@ const VBtn = defineComponent({
|
|
|
4844
4861
|
useRender(() => {
|
|
4845
4862
|
var _slots$prepend, _slots$default, _slots$append, _slots$loader;
|
|
4846
4863
|
const Tag = link.isLink.value ? 'a' : props.tag;
|
|
4847
|
-
const hasColor = !group ||
|
|
4864
|
+
const hasColor = !group || isActive.value;
|
|
4848
4865
|
const hasPrepend = !!(props.prependIcon || slots.prepend);
|
|
4849
4866
|
const hasAppend = !!(props.appendIcon || slots.append);
|
|
4850
4867
|
const hasIcon = !!(props.icon && props.icon !== true);
|
|
@@ -7579,6 +7596,10 @@ const VListItem = genericComponent()({
|
|
|
7579
7596
|
nav: Boolean,
|
|
7580
7597
|
prependAvatar: String,
|
|
7581
7598
|
prependIcon: IconValue,
|
|
7599
|
+
ripple: {
|
|
7600
|
+
type: Boolean,
|
|
7601
|
+
default: true
|
|
7602
|
+
},
|
|
7582
7603
|
subtitle: [String, Number, Boolean],
|
|
7583
7604
|
title: [String, Number, Boolean],
|
|
7584
7605
|
value: null,
|
|
@@ -7770,7 +7791,7 @@ const VListItem = genericComponent()({
|
|
|
7770
7791
|
"key": "append-avatar"
|
|
7771
7792
|
}, null)])]
|
|
7772
7793
|
})]
|
|
7773
|
-
}), [[resolveDirective("ripple"), isClickable.value]]);
|
|
7794
|
+
}), [[resolveDirective("ripple"), isClickable.value && props.ripple]]);
|
|
7774
7795
|
});
|
|
7775
7796
|
return {};
|
|
7776
7797
|
}
|
|
@@ -9938,6 +9959,7 @@ const VSelect = genericComponent()({
|
|
|
9938
9959
|
"activator": "parent",
|
|
9939
9960
|
"contentClass": "v-select__content",
|
|
9940
9961
|
"eager": props.eager,
|
|
9962
|
+
"maxHeight": 310,
|
|
9941
9963
|
"openOnClick": false,
|
|
9942
9964
|
"closeOnContentClick": false,
|
|
9943
9965
|
"transition": props.transition
|
|
@@ -10053,7 +10075,7 @@ function filterItems(items, query, options) {
|
|
|
10053
10075
|
const customFiltersLength = Object.keys((options == null ? void 0 : options.customKeyFilter) ?? {}).length;
|
|
10054
10076
|
if (!(items != null && items.length)) return array;
|
|
10055
10077
|
loop: for (let i = 0; i < items.length; i++) {
|
|
10056
|
-
const item = items[i]
|
|
10078
|
+
const item = items[i];
|
|
10057
10079
|
const customMatches = {};
|
|
10058
10080
|
const defaultMatches = {};
|
|
10059
10081
|
let match = -1;
|
|
@@ -10093,7 +10115,7 @@ function filterItems(items, query, options) {
|
|
|
10093
10115
|
}
|
|
10094
10116
|
return array;
|
|
10095
10117
|
}
|
|
10096
|
-
function useFilter(props, items, query) {
|
|
10118
|
+
function useFilter(props, items, query, options) {
|
|
10097
10119
|
const strQuery = computed(() => typeof (query == null ? void 0 : query.value) !== 'string' && typeof (query == null ? void 0 : query.value) !== 'number' ? '' : String(query.value));
|
|
10098
10120
|
const filteredItems = ref([]);
|
|
10099
10121
|
const filteredMatches = ref(new Map());
|
|
@@ -10104,7 +10126,7 @@ function useFilter(props, items, query) {
|
|
|
10104
10126
|
const results = filterItems(transformedItems, strQuery.value, {
|
|
10105
10127
|
customKeyFilter: props.customKeyFilter,
|
|
10106
10128
|
default: props.customFilter,
|
|
10107
|
-
filterKeys: props.filterKeys,
|
|
10129
|
+
filterKeys: unref(options == null ? void 0 : options.filterKeys) ?? props.filterKeys,
|
|
10108
10130
|
filterMode: props.filterMode,
|
|
10109
10131
|
noFilter: props.noFilter
|
|
10110
10132
|
});
|
|
@@ -10327,6 +10349,7 @@ const VAutocomplete = genericComponent()({
|
|
|
10327
10349
|
"activator": "parent",
|
|
10328
10350
|
"contentClass": "v-autocomplete__content",
|
|
10329
10351
|
"eager": props.eager,
|
|
10352
|
+
"maxHeight": 310,
|
|
10330
10353
|
"openOnClick": false,
|
|
10331
10354
|
"closeOnContentClick": false,
|
|
10332
10355
|
"transition": props.transition,
|
|
@@ -11035,7 +11058,10 @@ const VCard = defineComponent({
|
|
|
11035
11058
|
},
|
|
11036
11059
|
prependAvatar: String,
|
|
11037
11060
|
prependIcon: IconValue,
|
|
11038
|
-
ripple:
|
|
11061
|
+
ripple: {
|
|
11062
|
+
type: Boolean,
|
|
11063
|
+
default: true
|
|
11064
|
+
},
|
|
11039
11065
|
subtitle: String,
|
|
11040
11066
|
text: String,
|
|
11041
11067
|
title: String,
|
|
@@ -11156,7 +11182,7 @@ const VCard = defineComponent({
|
|
|
11156
11182
|
}), (_slots$default = slots.default) == null ? void 0 : _slots$default.call(slots), slots.actions && createVNode(VCardActions, null, {
|
|
11157
11183
|
default: slots.actions
|
|
11158
11184
|
}), genOverlays(isClickable.value, 'v-card')]
|
|
11159
|
-
}), [[resolveDirective("ripple"), isClickable.value]]);
|
|
11185
|
+
}), [[resolveDirective("ripple"), isClickable.value && props.ripple]]);
|
|
11160
11186
|
});
|
|
11161
11187
|
return {};
|
|
11162
11188
|
}
|
|
@@ -12449,6 +12475,10 @@ const VSliderThumb = defineComponent({
|
|
|
12449
12475
|
position: {
|
|
12450
12476
|
type: Number,
|
|
12451
12477
|
required: true
|
|
12478
|
+
},
|
|
12479
|
+
ripple: {
|
|
12480
|
+
type: Boolean,
|
|
12481
|
+
default: true
|
|
12452
12482
|
}
|
|
12453
12483
|
},
|
|
12454
12484
|
emits: {
|
|
@@ -12549,7 +12579,7 @@ const VSliderThumb = defineComponent({
|
|
|
12549
12579
|
}, null), withDirectives(createVNode("div", {
|
|
12550
12580
|
"class": ['v-slider-thumb__ripple', textColorClasses.value],
|
|
12551
12581
|
"style": textColorStyles.value
|
|
12552
|
-
}, null), [[resolveDirective("ripple"),
|
|
12582
|
+
}, null), [[resolveDirective("ripple"), props.ripple, null, {
|
|
12553
12583
|
circle: true,
|
|
12554
12584
|
center: true
|
|
12555
12585
|
}]]), createVNode(VScaleTransition, {
|
|
@@ -13601,7 +13631,7 @@ const VCombobox = genericComponent()({
|
|
|
13601
13631
|
vTextFieldRef.value.setSelectionRange(0, 0);
|
|
13602
13632
|
}
|
|
13603
13633
|
}
|
|
13604
|
-
if (e.key === 'Enter') {
|
|
13634
|
+
if (e.key === 'Enter' && search.value) {
|
|
13605
13635
|
select(transformItem$1(props, search.value));
|
|
13606
13636
|
search.value = '';
|
|
13607
13637
|
}
|
|
@@ -13690,6 +13720,7 @@ const VCombobox = genericComponent()({
|
|
|
13690
13720
|
"activator": "parent",
|
|
13691
13721
|
"contentClass": "v-combobox__content",
|
|
13692
13722
|
"eager": props.eager,
|
|
13723
|
+
"maxHeight": 310,
|
|
13693
13724
|
"openOnClick": false,
|
|
13694
13725
|
"closeOnContentClick": false,
|
|
13695
13726
|
"transition": props.transition,
|
|
@@ -18519,9 +18550,13 @@ function createGroupBy(props, groupBy, sortBy) {
|
|
|
18519
18550
|
order: val.order ?? false
|
|
18520
18551
|
})).concat(sortBy.value);
|
|
18521
18552
|
});
|
|
18522
|
-
function
|
|
18523
|
-
|
|
18524
|
-
|
|
18553
|
+
function isGroupOpen(group) {
|
|
18554
|
+
return opened.value.has(group.id);
|
|
18555
|
+
}
|
|
18556
|
+
function toggleGroup(group) {
|
|
18557
|
+
const newOpened = new Set(opened.value);
|
|
18558
|
+
if (!isGroupOpen(group)) newOpened.add(group.id);else newOpened.delete(group.id);
|
|
18559
|
+
opened.value = newOpened;
|
|
18525
18560
|
}
|
|
18526
18561
|
function extractRows(items) {
|
|
18527
18562
|
function dive(group) {
|
|
@@ -18554,7 +18589,8 @@ function createGroupBy(props, groupBy, sortBy) {
|
|
|
18554
18589
|
toggleGroup,
|
|
18555
18590
|
opened,
|
|
18556
18591
|
groupBy,
|
|
18557
|
-
extractRows
|
|
18592
|
+
extractRows,
|
|
18593
|
+
isGroupOpen
|
|
18558
18594
|
};
|
|
18559
18595
|
provide(VDataTableGroupSymbol, data);
|
|
18560
18596
|
return data;
|
|
@@ -18640,7 +18676,7 @@ const VDataTableGroupHeaderRow = defineComponent({
|
|
|
18640
18676
|
slots
|
|
18641
18677
|
} = _ref;
|
|
18642
18678
|
const {
|
|
18643
|
-
|
|
18679
|
+
isGroupOpen,
|
|
18644
18680
|
toggleGroup,
|
|
18645
18681
|
extractRows
|
|
18646
18682
|
} = useGroupBy();
|
|
@@ -18663,8 +18699,8 @@ const VDataTableGroupHeaderRow = defineComponent({
|
|
|
18663
18699
|
}, [columns.value.map(column => {
|
|
18664
18700
|
if (column.key === 'data-table-group') {
|
|
18665
18701
|
var _slots$dataTableGro;
|
|
18666
|
-
const icon =
|
|
18667
|
-
const onClick = () => toggleGroup(props.item
|
|
18702
|
+
const icon = isGroupOpen(props.item) ? '$expand' : '$next';
|
|
18703
|
+
const onClick = () => toggleGroup(props.item);
|
|
18668
18704
|
return ((_slots$dataTableGro = slots['data-table-group']) == null ? void 0 : _slots$dataTableGro.call(slots, {
|
|
18669
18705
|
item: props.item,
|
|
18670
18706
|
count: rows.value.length,
|
|
@@ -18857,10 +18893,18 @@ const VDataTableRows = defineComponent({
|
|
|
18857
18893
|
columns
|
|
18858
18894
|
} = useHeaders();
|
|
18859
18895
|
const {
|
|
18860
|
-
|
|
18861
|
-
|
|
18862
|
-
|
|
18896
|
+
expandOnClick,
|
|
18897
|
+
toggleExpand,
|
|
18898
|
+
isExpanded
|
|
18863
18899
|
} = useExpanded();
|
|
18900
|
+
const {
|
|
18901
|
+
isSelected,
|
|
18902
|
+
toggleSelect
|
|
18903
|
+
} = useSelection();
|
|
18904
|
+
const {
|
|
18905
|
+
toggleGroup,
|
|
18906
|
+
isGroupOpen
|
|
18907
|
+
} = useGroupBy();
|
|
18864
18908
|
const {
|
|
18865
18909
|
t
|
|
18866
18910
|
} = useLocale();
|
|
@@ -18879,23 +18923,41 @@ const VDataTableRows = defineComponent({
|
|
|
18879
18923
|
})), props.items.map((item, index) => {
|
|
18880
18924
|
var _slots$expandedRow;
|
|
18881
18925
|
if (item.type === 'group-header') {
|
|
18882
|
-
return
|
|
18926
|
+
return slots['group-header'] ? slots['group-header']({
|
|
18927
|
+
index,
|
|
18928
|
+
item,
|
|
18929
|
+
columns: columns.value,
|
|
18930
|
+
isExpanded,
|
|
18931
|
+
toggleExpand,
|
|
18932
|
+
isSelected,
|
|
18933
|
+
toggleSelect,
|
|
18934
|
+
toggleGroup,
|
|
18935
|
+
isGroupOpen
|
|
18936
|
+
}) : createVNode(VDataTableGroupHeaderRow, {
|
|
18883
18937
|
"key": `group-header_${item.id}`,
|
|
18884
18938
|
"item": item
|
|
18885
18939
|
}, slots);
|
|
18886
18940
|
}
|
|
18887
|
-
return createVNode(Fragment, null, [
|
|
18941
|
+
return createVNode(Fragment, null, [slots.item ? slots.item({
|
|
18942
|
+
index,
|
|
18943
|
+
item,
|
|
18944
|
+
columns: columns.value,
|
|
18945
|
+
isExpanded,
|
|
18946
|
+
toggleExpand,
|
|
18947
|
+
isSelected,
|
|
18948
|
+
toggleSelect
|
|
18949
|
+
}) : createVNode(VDataTableRow, {
|
|
18888
18950
|
"key": `item_${item.value}`,
|
|
18889
18951
|
"onClick": event => {
|
|
18890
18952
|
if (expandOnClick.value) {
|
|
18891
|
-
|
|
18953
|
+
toggleExpand(item.value);
|
|
18892
18954
|
}
|
|
18893
18955
|
emit('click:row', event, {
|
|
18894
18956
|
item
|
|
18895
18957
|
});
|
|
18896
18958
|
},
|
|
18897
18959
|
"item": item
|
|
18898
|
-
}, slots),
|
|
18960
|
+
}, slots), isExpanded(item.value) && ((_slots$expandedRow = slots['expanded-row']) == null ? void 0 : _slots$expandedRow.call(slots, {
|
|
18899
18961
|
item,
|
|
18900
18962
|
columns: columns.value
|
|
18901
18963
|
}))]);
|
|
@@ -19193,9 +19255,12 @@ const VDataTable = defineComponent({
|
|
|
19193
19255
|
const {
|
|
19194
19256
|
items
|
|
19195
19257
|
} = useDataTableItems(props, columns);
|
|
19258
|
+
const filterKeys = computed(() => columns.value.map(c => 'columns.' + c.key));
|
|
19196
19259
|
const {
|
|
19197
19260
|
filteredItems
|
|
19198
|
-
} = useFilter(props, items, toRef(props, 'search')
|
|
19261
|
+
} = useFilter(props, items, toRef(props, 'search'), {
|
|
19262
|
+
filterKeys
|
|
19263
|
+
});
|
|
19199
19264
|
const {
|
|
19200
19265
|
sortBy
|
|
19201
19266
|
} = createSort(props);
|
|
@@ -19385,9 +19450,12 @@ const VDataTableVirtual = defineComponent({
|
|
|
19385
19450
|
const {
|
|
19386
19451
|
items
|
|
19387
19452
|
} = useDataTableItems(props, columns);
|
|
19453
|
+
const filterKeys = computed(() => columns.value.map(c => 'columns.' + c.key));
|
|
19388
19454
|
const {
|
|
19389
19455
|
filteredItems
|
|
19390
|
-
} = useFilter(props, items, toRef(props, 'search')
|
|
19456
|
+
} = useFilter(props, items, toRef(props, 'search'), {
|
|
19457
|
+
filterKeys
|
|
19458
|
+
});
|
|
19391
19459
|
const {
|
|
19392
19460
|
sortBy
|
|
19393
19461
|
} = createSort(props);
|
|
@@ -20085,7 +20153,7 @@ function createVuetify$1() {
|
|
|
20085
20153
|
locale
|
|
20086
20154
|
};
|
|
20087
20155
|
}
|
|
20088
|
-
const version$1 = "3.1.2
|
|
20156
|
+
const version$1 = "3.1.2";
|
|
20089
20157
|
createVuetify$1.version = version$1;
|
|
20090
20158
|
|
|
20091
20159
|
// Vue's inject() can only be used in setup
|
|
@@ -20098,7 +20166,7 @@ function inject(key) {
|
|
|
20098
20166
|
}
|
|
20099
20167
|
}
|
|
20100
20168
|
|
|
20101
|
-
const version = "3.1.2
|
|
20169
|
+
const version = "3.1.2";
|
|
20102
20170
|
|
|
20103
20171
|
const createVuetify = function () {
|
|
20104
20172
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|