vuetify 3.1.5 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +562 -34
- package/dist/json/importMap.json +36 -36
- package/dist/json/tags.json +136 -2
- package/dist/json/web-types.json +2163 -85
- package/dist/vuetify-labs.css +30 -25
- package/dist/vuetify-labs.d.ts +3455 -146
- package/dist/vuetify-labs.esm.js +123 -73
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +123 -73
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +89 -84
- package/dist/vuetify.d.ts +1928 -77
- package/dist/vuetify.esm.js +102 -63
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +102 -63
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +674 -669
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.ts +22 -0
- package/lib/components/VApp/index.d.ts +6 -0
- package/lib/components/VAppBar/index.d.ts +36 -0
- package/lib/components/VAutocomplete/index.d.ts +117 -6
- package/lib/components/VAvatar/index.d.ts +6 -0
- package/lib/components/VBadge/index.d.ts +8 -0
- package/lib/components/VBanner/index.d.ts +24 -0
- package/lib/components/VBottomNavigation/index.d.ts +6 -0
- package/lib/components/VBreadcrumbs/index.d.ts +28 -4
- package/lib/components/VBtn/index.d.ts +12 -0
- package/lib/components/VBtnGroup/index.d.ts +6 -0
- package/lib/components/VBtnToggle/index.d.ts +6 -0
- package/lib/components/VCard/index.d.ts +60 -0
- package/lib/components/VCarousel/index.d.ts +60 -0
- package/lib/components/VCheckbox/index.d.ts +38 -0
- package/lib/components/VChip/index.d.ts +12 -0
- package/lib/components/VChipGroup/index.d.ts +6 -0
- package/lib/components/VCode/index.d.ts +6 -0
- package/lib/components/VColorPicker/VColorPicker.mjs +9 -1
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.css +2 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +36 -18
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +2 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +4 -4
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/util/index.mjs +2 -5
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +117 -6
- package/lib/components/VCounter/index.d.ts +24 -0
- package/lib/components/VDefaultsProvider/index.d.ts +6 -0
- package/lib/components/VDialog/index.d.ts +64 -1
- package/lib/components/VDivider/index.d.ts +6 -0
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.ts +49 -12
- package/lib/components/VField/index.d.ts +20 -6
- package/lib/components/VFileInput/index.d.ts +43 -1
- package/lib/components/VFooter/index.d.ts +7 -1
- package/lib/components/VForm/index.d.ts +6 -0
- package/lib/components/VGrid/index.d.ts +24 -0
- package/lib/components/VHover/index.d.ts +12 -0
- package/lib/components/VIcon/index.d.ts +12 -0
- package/lib/components/VImg/index.d.ts +12 -0
- package/lib/components/VInput/index.d.ts +12 -0
- package/lib/components/VItemGroup/index.d.ts +12 -0
- package/lib/components/VKbd/index.d.ts +6 -0
- package/lib/components/VLabel/index.d.ts +6 -0
- package/lib/components/VLayout/index.d.ts +12 -0
- package/lib/components/VLazy/index.d.ts +6 -0
- package/lib/components/VList/index.d.ts +77 -6
- package/lib/components/VLocaleProvider/index.d.ts +6 -0
- package/lib/components/VMain/index.d.ts +6 -0
- package/lib/components/VMenu/index.d.ts +64 -1
- package/lib/components/VMessages/index.d.ts +24 -0
- package/lib/components/VNavigationDrawer/index.d.ts +12 -0
- package/lib/components/VNoSsr/index.d.ts +6 -0
- package/lib/components/VOverlay/index.d.ts +18 -0
- package/lib/components/VOverlay/scrollStrategies.mjs +1 -1
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +14 -0
- package/lib/components/VParallax/index.d.ts +12 -0
- package/lib/components/VProgressCircular/index.d.ts +6 -0
- package/lib/components/VProgressLinear/index.d.ts +12 -0
- package/lib/components/VRadio/index.d.ts +16 -0
- package/lib/components/VRadioGroup/index.d.ts +22 -0
- package/lib/components/VRangeSlider/index.d.ts +16 -0
- package/lib/components/VRating/index.d.ts +8 -0
- package/lib/components/VResponsive/index.d.ts +8 -0
- package/lib/components/VSelect/index.d.ts +183 -6
- package/lib/components/VSelectionControl/index.d.ts +14 -6
- package/lib/components/VSelectionControlGroup/index.d.ts +6 -0
- package/lib/components/VSheet/VSheet.mjs +22 -12
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.ts +7 -1
- package/lib/components/VSlideGroup/index.d.ts +26 -0
- package/lib/components/VSlider/index.d.ts +16 -0
- package/lib/components/VSnackbar/index.d.ts +44 -1
- package/lib/components/VSwitch/index.d.ts +22 -0
- package/lib/components/VSystemBar/VSystemBar.css +5 -1
- package/lib/components/VSystemBar/VSystemBar.sass +5 -1
- package/lib/components/VSystemBar/_variables.scss +4 -1
- package/lib/components/VSystemBar/index.d.ts +6 -0
- package/lib/components/VTable/index.d.ts +12 -0
- package/lib/components/VTabs/index.d.ts +12 -0
- package/lib/components/VTextField/index.d.ts +54 -6
- package/lib/components/VTextarea/index.d.ts +39 -1
- package/lib/components/VThemeProvider/index.d.ts +6 -0
- package/lib/components/VTimeline/index.d.ts +16 -0
- package/lib/components/VToolbar/index.d.ts +30 -0
- package/lib/components/VTooltip/index.d.ts +46 -1
- package/lib/components/VValidation/index.d.ts +6 -0
- package/lib/components/VWindow/index.d.ts +34 -0
- package/lib/components/index.d.ts +1918 -67
- package/lib/components/transitions/index.d.ts +96 -0
- package/lib/composables/nested/nested.mjs +2 -2
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs +7 -1
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +1 -1
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/composables/theme.mjs +21 -13
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +9 -9
- package/lib/labs/VDataTable/VDataTableRows.mjs +4 -6
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +2 -2
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +1503 -48
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs +18 -5
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/labs/VVirtualScroll/index.d.ts +9 -6
- package/lib/labs/components.d.ts +1512 -54
- package/lib/util/colorUtils.mjs +4 -5
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +4 -4
package/dist/vuetify.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.1.
|
|
2
|
+
* Vuetify v3.1.7
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -780,11 +780,12 @@ function RGBtoHex(_ref2) {
|
|
|
780
780
|
b,
|
|
781
781
|
a
|
|
782
782
|
} = _ref2;
|
|
783
|
-
return `#${[toHex(r), toHex(g), toHex(b), a !== undefined ? toHex(Math.round(a * 255)) : '
|
|
783
|
+
return `#${[toHex(r), toHex(g), toHex(b), a !== undefined ? toHex(Math.round(a * 255)) : ''].join('')}`;
|
|
784
784
|
}
|
|
785
785
|
function HexToRGB(hex) {
|
|
786
|
+
hex = parseHex(hex);
|
|
786
787
|
let [r, g, b, a] = chunk(hex, 2).map(c => parseInt(c, 16));
|
|
787
|
-
a = a === undefined ? a :
|
|
788
|
+
a = a === undefined ? a : a / 255;
|
|
788
789
|
return {
|
|
789
790
|
r,
|
|
790
791
|
g,
|
|
@@ -807,9 +808,7 @@ function parseHex(hex) {
|
|
|
807
808
|
if (hex.length === 3 || hex.length === 4) {
|
|
808
809
|
hex = hex.split('').map(x => x + x).join('');
|
|
809
810
|
}
|
|
810
|
-
if (hex.length
|
|
811
|
-
hex = padEnd(hex, 8, 'F');
|
|
812
|
-
} else {
|
|
811
|
+
if (hex.length !== 6) {
|
|
813
812
|
hex = padEnd(padEnd(hex, 6), 8, 'F');
|
|
814
813
|
}
|
|
815
814
|
return hex;
|
|
@@ -1695,22 +1694,30 @@ function createTheme(options) {
|
|
|
1695
1694
|
lines.push(...bgLines, ...fgLines);
|
|
1696
1695
|
return lines.map((str, i) => i === 0 ? str : ` ${str}`).join('');
|
|
1697
1696
|
});
|
|
1697
|
+
function getHead() {
|
|
1698
|
+
return {
|
|
1699
|
+
style: [{
|
|
1700
|
+
children: styles.value,
|
|
1701
|
+
id: 'vuetify-theme-stylesheet',
|
|
1702
|
+
nonce: parsedOptions.cspNonce || false
|
|
1703
|
+
}]
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1698
1706
|
function install(app) {
|
|
1699
1707
|
const head = app._context.provides.usehead;
|
|
1700
1708
|
if (head) {
|
|
1701
|
-
head.
|
|
1702
|
-
const
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
if (
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
watchEffect(() => head.updateDOM());
|
|
1709
|
+
if (head.push) {
|
|
1710
|
+
const entry = head.push(getHead);
|
|
1711
|
+
watch(styles, () => {
|
|
1712
|
+
entry.patch(getHead);
|
|
1713
|
+
});
|
|
1714
|
+
} else {
|
|
1715
|
+
if (IN_BROWSER) {
|
|
1716
|
+
head.addHeadObjs(computed(getHead));
|
|
1717
|
+
watchEffect(() => head.updateDOM());
|
|
1718
|
+
} else {
|
|
1719
|
+
head.addHeadObjs(getHead());
|
|
1720
|
+
}
|
|
1714
1721
|
}
|
|
1715
1722
|
} else {
|
|
1716
1723
|
let styleEl = IN_BROWSER ? document.getElementById('vuetify-theme-stylesheet') : null;
|
|
@@ -1812,7 +1819,7 @@ function useProxiedModel(props, prop, defaultValue) {
|
|
|
1812
1819
|
});
|
|
1813
1820
|
const model = computed({
|
|
1814
1821
|
get() {
|
|
1815
|
-
return transformIn(
|
|
1822
|
+
return transformIn(isControlled.value ? props[prop] : internal.value);
|
|
1816
1823
|
},
|
|
1817
1824
|
set(internalValue) {
|
|
1818
1825
|
const newValue = transformOut(internalValue);
|
|
@@ -7068,7 +7075,6 @@ const listOpenStrategy = {
|
|
|
7068
7075
|
};
|
|
7069
7076
|
|
|
7070
7077
|
/* eslint-disable sonarjs/no-identical-functions */
|
|
7071
|
-
|
|
7072
7078
|
const independentSelectStrategy = mandatory => {
|
|
7073
7079
|
const strategy = {
|
|
7074
7080
|
select: _ref => {
|
|
@@ -7077,6 +7083,8 @@ const independentSelectStrategy = mandatory => {
|
|
|
7077
7083
|
value,
|
|
7078
7084
|
selected
|
|
7079
7085
|
} = _ref;
|
|
7086
|
+
id = toRaw(id);
|
|
7087
|
+
|
|
7080
7088
|
// When mandatory and we're trying to deselect when id
|
|
7081
7089
|
// is the only currently selected item then do nothing
|
|
7082
7090
|
if (mandatory && !value) {
|
|
@@ -7121,6 +7129,7 @@ const independentSingleSelectStrategy = mandatory => {
|
|
|
7121
7129
|
id,
|
|
7122
7130
|
...rest
|
|
7123
7131
|
} = _ref3;
|
|
7132
|
+
id = toRaw(id);
|
|
7124
7133
|
const singleSelected = selected.has(id) ? new Map([[id, selected.get(id)]]) : new Map();
|
|
7125
7134
|
return parentStrategy.select({
|
|
7126
7135
|
...rest,
|
|
@@ -7151,6 +7160,7 @@ const leafSelectStrategy = mandatory => {
|
|
|
7151
7160
|
children,
|
|
7152
7161
|
...rest
|
|
7153
7162
|
} = _ref4;
|
|
7163
|
+
id = toRaw(id);
|
|
7154
7164
|
if (children.has(id)) return selected;
|
|
7155
7165
|
return parentStrategy.select({
|
|
7156
7166
|
id,
|
|
@@ -7174,6 +7184,7 @@ const leafSingleSelectStrategy = mandatory => {
|
|
|
7174
7184
|
children,
|
|
7175
7185
|
...rest
|
|
7176
7186
|
} = _ref5;
|
|
7187
|
+
id = toRaw(id);
|
|
7177
7188
|
if (children.has(id)) return selected;
|
|
7178
7189
|
return parentStrategy.select({
|
|
7179
7190
|
id,
|
|
@@ -7197,6 +7208,7 @@ const classicSelectStrategy = mandatory => {
|
|
|
7197
7208
|
children,
|
|
7198
7209
|
parents
|
|
7199
7210
|
} = _ref6;
|
|
7211
|
+
id = toRaw(id);
|
|
7200
7212
|
const original = new Map(selected);
|
|
7201
7213
|
const items = [id];
|
|
7202
7214
|
while (items.length) {
|
|
@@ -7418,7 +7430,7 @@ const useNestedItem = (id, isGroup) => {
|
|
|
7418
7430
|
isOpen: computed(() => parent.root.opened.value.has(computedId.value)),
|
|
7419
7431
|
parent: computed(() => parent.root.parents.value.get(computedId.value)),
|
|
7420
7432
|
select: (selected, e) => parent.root.select(computedId.value, selected, e),
|
|
7421
|
-
isSelected: computed(() => parent.root.selected.value.get(computedId.value) === 'on'),
|
|
7433
|
+
isSelected: computed(() => parent.root.selected.value.get(toRaw(computedId.value)) === 'on'),
|
|
7422
7434
|
isIndeterminate: computed(() => parent.root.selected.value.get(computedId.value) === 'indeterminate'),
|
|
7423
7435
|
isLeaf: computed(() => !parent.root.children.value.get(computedId.value)),
|
|
7424
7436
|
isGroupActivator: parent.isGroupActivator
|
|
@@ -9061,7 +9073,7 @@ function repositionScrollStrategy(data, props, scope) {
|
|
|
9061
9073
|
});
|
|
9062
9074
|
});
|
|
9063
9075
|
onScopeDispose(() => {
|
|
9064
|
-
cancelIdleCallback(ric);
|
|
9076
|
+
typeof cancelIdleCallback !== 'undefined' && cancelIdleCallback(ric);
|
|
9065
9077
|
cancelAnimationFrame(raf);
|
|
9066
9078
|
});
|
|
9067
9079
|
}
|
|
@@ -11697,6 +11709,19 @@ const VColorPickerCanvas = defineComponent({
|
|
|
11697
11709
|
};
|
|
11698
11710
|
});
|
|
11699
11711
|
const canvasRef = ref();
|
|
11712
|
+
const canvasWidth = ref(parseFloat(props.width));
|
|
11713
|
+
const canvasHeight = ref(parseFloat(props.height));
|
|
11714
|
+
const {
|
|
11715
|
+
resizeRef
|
|
11716
|
+
} = useResizeObserver(entries => {
|
|
11717
|
+
if (!resizeRef.value?.offsetParent) return;
|
|
11718
|
+
const {
|
|
11719
|
+
width,
|
|
11720
|
+
height
|
|
11721
|
+
} = entries[0].contentRect;
|
|
11722
|
+
canvasWidth.value = width;
|
|
11723
|
+
canvasHeight.value = height;
|
|
11724
|
+
});
|
|
11700
11725
|
function updateDotPosition(x, y, rect) {
|
|
11701
11726
|
const {
|
|
11702
11727
|
left,
|
|
@@ -11741,18 +11766,14 @@ const VColorPickerCanvas = defineComponent({
|
|
|
11741
11766
|
return;
|
|
11742
11767
|
}
|
|
11743
11768
|
if (!canvasRef.value) return;
|
|
11744
|
-
const {
|
|
11745
|
-
width,
|
|
11746
|
-
height
|
|
11747
|
-
} = canvasRef.value.getBoundingClientRect();
|
|
11748
11769
|
const {
|
|
11749
11770
|
x,
|
|
11750
11771
|
y
|
|
11751
11772
|
} = dotPosition.value;
|
|
11752
11773
|
emit('update:color', {
|
|
11753
11774
|
h: props.color?.h ?? 0,
|
|
11754
|
-
s: clamp(x, 0,
|
|
11755
|
-
v: 1 - clamp(y, 0,
|
|
11775
|
+
s: clamp(x, 0, canvasWidth.value) / canvasWidth.value,
|
|
11776
|
+
v: 1 - clamp(y, 0, canvasHeight.value) / canvasHeight.value,
|
|
11756
11777
|
a: props.color?.a ?? 1
|
|
11757
11778
|
});
|
|
11758
11779
|
});
|
|
@@ -11775,16 +11796,27 @@ const VColorPickerCanvas = defineComponent({
|
|
|
11775
11796
|
watch(() => props.color?.h, updateCanvas, {
|
|
11776
11797
|
immediate: true
|
|
11777
11798
|
});
|
|
11799
|
+
watch(() => [canvasWidth.value, canvasHeight.value], (newVal, oldVal) => {
|
|
11800
|
+
updateCanvas();
|
|
11801
|
+
dotPosition.value = {
|
|
11802
|
+
x: dotPosition.value.x * newVal[0] / oldVal[0],
|
|
11803
|
+
y: dotPosition.value.y * newVal[1] / oldVal[1]
|
|
11804
|
+
};
|
|
11805
|
+
}, {
|
|
11806
|
+
flush: 'post'
|
|
11807
|
+
});
|
|
11778
11808
|
watch(() => props.color, () => {
|
|
11779
11809
|
if (isInteracting.value) {
|
|
11780
11810
|
isInteracting.value = false;
|
|
11781
11811
|
return;
|
|
11782
11812
|
}
|
|
11783
|
-
if (!props.color) return;
|
|
11784
11813
|
isOutsideUpdate.value = true;
|
|
11785
|
-
dotPosition.value = {
|
|
11786
|
-
x: props.color.s *
|
|
11787
|
-
y: (1 - props.color.v) *
|
|
11814
|
+
dotPosition.value = props.color ? {
|
|
11815
|
+
x: props.color.s * canvasWidth.value,
|
|
11816
|
+
y: (1 - props.color.v) * canvasHeight.value
|
|
11817
|
+
} : {
|
|
11818
|
+
x: 0,
|
|
11819
|
+
y: 0
|
|
11788
11820
|
};
|
|
11789
11821
|
}, {
|
|
11790
11822
|
deep: true,
|
|
@@ -11792,19 +11824,16 @@ const VColorPickerCanvas = defineComponent({
|
|
|
11792
11824
|
});
|
|
11793
11825
|
onMounted(() => updateCanvas());
|
|
11794
11826
|
useRender(() => createVNode("div", {
|
|
11827
|
+
"ref": resizeRef,
|
|
11795
11828
|
"class": "v-color-picker-canvas",
|
|
11796
|
-
"style": {
|
|
11797
|
-
width: convertToUnit(props.width),
|
|
11798
|
-
height: convertToUnit(props.height)
|
|
11799
|
-
},
|
|
11800
11829
|
"onClick": handleClick,
|
|
11801
11830
|
"onMousedown": handleMouseDown,
|
|
11802
11831
|
"onTouchstart": handleMouseDown
|
|
11803
11832
|
}, [createVNode("canvas", {
|
|
11804
11833
|
"ref": canvasRef,
|
|
11805
|
-
"width":
|
|
11806
|
-
"height":
|
|
11807
|
-
}, null), createVNode("div", {
|
|
11834
|
+
"width": canvasWidth.value,
|
|
11835
|
+
"height": canvasHeight.value
|
|
11836
|
+
}, null), props.color && createVNode("div", {
|
|
11808
11837
|
"class": ['v-color-picker-canvas__dot', {
|
|
11809
11838
|
'v-color-picker-canvas__dot--disabled': props.disabled
|
|
11810
11839
|
}],
|
|
@@ -11837,10 +11866,7 @@ function parseColor(color) {
|
|
|
11837
11866
|
hsva = color;
|
|
11838
11867
|
}
|
|
11839
11868
|
}
|
|
11840
|
-
return hsva
|
|
11841
|
-
...hsva,
|
|
11842
|
-
a: hsva.a ?? 1
|
|
11843
|
-
} : null;
|
|
11869
|
+
return hsva;
|
|
11844
11870
|
}
|
|
11845
11871
|
function stripAlpha(color, stripAlpha) {
|
|
11846
11872
|
if (stripAlpha) {
|
|
@@ -11860,7 +11886,7 @@ function extractColor(color, input) {
|
|
|
11860
11886
|
if (typeof input === 'object') {
|
|
11861
11887
|
let converted;
|
|
11862
11888
|
if (has(input, ['r', 'g', 'b'])) converted = HSVtoRGB(color);else if (has(input, ['h', 's', 'l'])) converted = HSVtoHSL(color);else if (has(input, ['h', 's', 'v'])) converted = color;
|
|
11863
|
-
return stripAlpha(converted, !has(input, ['a']));
|
|
11889
|
+
return stripAlpha(converted, !has(input, ['a']) && color.a === 1);
|
|
11864
11890
|
}
|
|
11865
11891
|
return color;
|
|
11866
11892
|
}
|
|
@@ -12051,7 +12077,7 @@ const VColorPickerEdit = defineComponent({
|
|
|
12051
12077
|
const inputs = computed(() => {
|
|
12052
12078
|
const mode = enabledModes.value.find(m => m.name === props.mode);
|
|
12053
12079
|
if (!mode) return [];
|
|
12054
|
-
const color = props.color ? mode.to(props.color) :
|
|
12080
|
+
const color = props.color ? mode.to(props.color) : null;
|
|
12055
12081
|
return mode.inputs?.map(_ref3 => {
|
|
12056
12082
|
let {
|
|
12057
12083
|
getValue,
|
|
@@ -12062,11 +12088,11 @@ const VColorPickerEdit = defineComponent({
|
|
|
12062
12088
|
...mode.inputProps,
|
|
12063
12089
|
...inputProps,
|
|
12064
12090
|
disabled: props.disabled,
|
|
12065
|
-
value: getValue(color),
|
|
12091
|
+
value: color && getValue(color),
|
|
12066
12092
|
onChange: e => {
|
|
12067
12093
|
const target = e.target;
|
|
12068
12094
|
if (!target) return;
|
|
12069
|
-
emit('update:color', mode.from(getColor(color, target.value)));
|
|
12095
|
+
emit('update:color', mode.from(getColor(color ?? nullColor, target.value)));
|
|
12070
12096
|
}
|
|
12071
12097
|
};
|
|
12072
12098
|
});
|
|
@@ -12765,12 +12791,12 @@ const VColorPickerPreview = defineComponent({
|
|
|
12765
12791
|
"hideDetails": true
|
|
12766
12792
|
}, null), !props.hideAlpha && createVNode(VSlider, {
|
|
12767
12793
|
"class": "v-color-picker-preview__track v-color-picker-preview__alpha",
|
|
12768
|
-
"modelValue": props.color?.a,
|
|
12794
|
+
"modelValue": props.color?.a ?? 1,
|
|
12769
12795
|
"onUpdate:modelValue": a => emit('update:color', {
|
|
12770
12796
|
...(props.color ?? nullColor),
|
|
12771
12797
|
a
|
|
12772
12798
|
}),
|
|
12773
|
-
"step":
|
|
12799
|
+
"step": 1 / 256,
|
|
12774
12800
|
"min": 0,
|
|
12775
12801
|
"max": 1,
|
|
12776
12802
|
"disabled": props.disabled,
|
|
@@ -13155,18 +13181,23 @@ const VColorPickerSwatches = defineComponent({
|
|
|
13155
13181
|
}
|
|
13156
13182
|
});
|
|
13157
13183
|
|
|
13184
|
+
// Types
|
|
13185
|
+
|
|
13186
|
+
const makeVSheetProps = propsFactory({
|
|
13187
|
+
color: String,
|
|
13188
|
+
...makeBorderProps(),
|
|
13189
|
+
...makeDimensionProps(),
|
|
13190
|
+
...makeElevationProps(),
|
|
13191
|
+
...makeLocationProps(),
|
|
13192
|
+
...makePositionProps(),
|
|
13193
|
+
...makeRoundedProps(),
|
|
13194
|
+
...makeTagProps(),
|
|
13195
|
+
...makeThemeProps()
|
|
13196
|
+
}, 'v-sheet');
|
|
13158
13197
|
const VSheet = genericComponent()({
|
|
13159
13198
|
name: 'VSheet',
|
|
13160
13199
|
props: {
|
|
13161
|
-
|
|
13162
|
-
...makeBorderProps(),
|
|
13163
|
-
...makeDimensionProps(),
|
|
13164
|
-
...makeElevationProps(),
|
|
13165
|
-
...makeLocationProps(),
|
|
13166
|
-
...makePositionProps(),
|
|
13167
|
-
...makeRoundedProps(),
|
|
13168
|
-
...makeTagProps(),
|
|
13169
|
-
...makeThemeProps()
|
|
13200
|
+
...makeVSheetProps()
|
|
13170
13201
|
},
|
|
13171
13202
|
setup(props, _ref) {
|
|
13172
13203
|
let {
|
|
@@ -13197,10 +13228,11 @@ const VSheet = genericComponent()({
|
|
|
13197
13228
|
const {
|
|
13198
13229
|
roundedClasses
|
|
13199
13230
|
} = useRounded(props);
|
|
13200
|
-
|
|
13231
|
+
useRender(() => createVNode(props.tag, {
|
|
13201
13232
|
"class": ['v-sheet', themeClasses.value, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, positionClasses.value, roundedClasses.value],
|
|
13202
13233
|
"style": [backgroundColorStyles.value, dimensionStyles.value, locationStyles.value]
|
|
13203
|
-
}, slots);
|
|
13234
|
+
}, slots));
|
|
13235
|
+
return {};
|
|
13204
13236
|
}
|
|
13205
13237
|
});
|
|
13206
13238
|
|
|
@@ -13277,6 +13309,13 @@ const VColorPicker = defineComponent({
|
|
|
13277
13309
|
onMounted(() => {
|
|
13278
13310
|
if (!props.modes.includes(mode.value)) mode.value = props.modes[0];
|
|
13279
13311
|
});
|
|
13312
|
+
provideDefaults({
|
|
13313
|
+
VSlider: {
|
|
13314
|
+
color: undefined,
|
|
13315
|
+
trackColor: undefined,
|
|
13316
|
+
trackFillColor: undefined
|
|
13317
|
+
}
|
|
13318
|
+
});
|
|
13280
13319
|
useRender(() => createVNode(VSheet, {
|
|
13281
13320
|
"rounded": props.rounded,
|
|
13282
13321
|
"elevation": props.elevation,
|
|
@@ -18179,7 +18218,7 @@ function createVuetify$1() {
|
|
|
18179
18218
|
locale
|
|
18180
18219
|
};
|
|
18181
18220
|
}
|
|
18182
|
-
const version$1 = "3.1.
|
|
18221
|
+
const version$1 = "3.1.7";
|
|
18183
18222
|
createVuetify$1.version = version$1;
|
|
18184
18223
|
|
|
18185
18224
|
// Vue's inject() can only be used in setup
|
|
@@ -18199,7 +18238,7 @@ const createVuetify = function () {
|
|
|
18199
18238
|
...options
|
|
18200
18239
|
});
|
|
18201
18240
|
};
|
|
18202
|
-
const version = "3.1.
|
|
18241
|
+
const version = "3.1.7";
|
|
18203
18242
|
createVuetify.version = version;
|
|
18204
18243
|
|
|
18205
18244
|
export { components, createVuetify, directives, useDisplay, useLayout, useLocale, useRtl, useTheme, version };
|