vuetify 3.9.3 → 3.9.5
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 +3354 -3342
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +150 -150
- package/dist/json/tags.json +5 -2
- package/dist/json/web-types.json +6563 -6534
- package/dist/vuetify-labs.cjs +222 -119
- package/dist/vuetify-labs.css +4072 -4024
- package/dist/vuetify-labs.d.ts +167 -135
- package/dist/vuetify-labs.esm.js +222 -119
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +222 -119
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +163 -94
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +4249 -4216
- package/dist/vuetify.d.ts +50 -63
- package/dist/vuetify.esm.js +163 -94
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +163 -94
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +483 -482
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +9 -2
- package/lib/components/VAlert/VAlert.js +2 -2
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAlert/VAlert.sass +10 -3
- package/lib/components/VAlert/_variables.scss +1 -1
- package/lib/components/VApp/VApp.d.ts +0 -25
- package/lib/components/VApp/VApp.js +6 -5
- package/lib/components/VApp/VApp.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.css +1 -0
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +1 -0
- package/lib/components/VColorPicker/VColorPickerEdit.css +5 -0
- package/lib/components/VColorPicker/VColorPickerEdit.js +8 -1
- package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.sass +5 -0
- package/lib/components/VColorPicker/VColorPickerPreview.js +8 -1
- package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/lib/components/VColorPicker/util/index.d.ts +1 -0
- package/lib/components/VColorPicker/util/index.js +20 -10
- package/lib/components/VColorPicker/util/index.js.map +1 -1
- package/lib/components/VConfirmEdit/VConfirmEdit.js +1 -1
- package/lib/components/VConfirmEdit/VConfirmEdit.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.css +2 -1
- package/lib/components/VDataTable/VDataTable.sass +2 -1
- package/lib/components/VDataTable/composables/headers.js +53 -42
- package/lib/components/VDataTable/composables/headers.js.map +1 -1
- package/lib/components/VDataTable/composables/sort.js +1 -1
- package/lib/components/VDataTable/composables/sort.js.map +1 -1
- package/lib/components/VNumberInput/VNumberInput.js +1 -0
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOverlay/scrollStrategies.js +7 -7
- package/lib/components/VOverlay/scrollStrategies.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +1 -1
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSlider/VSliderThumb.css +2 -2
- package/lib/components/VSlider/VSliderThumb.sass +2 -2
- package/lib/components/VStepper/VStepperItem.css +9 -4
- package/lib/components/VStepper/VStepperItem.sass +8 -7
- package/lib/components/VTable/VTable.css +2 -2
- package/lib/components/VTable/VTable.js +32 -20
- package/lib/components/VTable/VTable.js.map +1 -1
- package/lib/components/VTable/VTable.sass +4 -4
- package/lib/components/VTextField/VTextField.js +1 -0
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewItem.css +6 -0
- package/lib/components/VTreeview/VTreeviewItem.sass +7 -0
- package/lib/components/VWindow/VWindow.css +8 -0
- package/lib/components/VWindow/VWindow.sass +9 -0
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +49 -49
- package/lib/framework.js +1 -1
- package/lib/labs/VColorInput/VColorInput.css +15 -0
- package/lib/labs/VColorInput/VColorInput.d.ts +287 -215
- package/lib/labs/VColorInput/VColorInput.js +24 -10
- package/lib/labs/VColorInput/VColorInput.js.map +1 -1
- package/lib/labs/VColorInput/VColorInput.sass +8 -0
- package/lib/labs/VColorInput/_variables.scss +2 -0
- package/lib/labs/VVideo/VVideo.css +4 -4
- package/lib/labs/VVideo/VVideo.d.ts +10 -0
- package/lib/labs/VVideo/VVideo.js +6 -3
- package/lib/labs/VVideo/VVideo.js.map +1 -1
- package/lib/labs/VVideo/VVideo.sass +4 -2
- package/lib/labs/VVideo/VVideoControls.js +33 -16
- package/lib/labs/VVideo/VVideoControls.js.map +1 -1
- package/lib/labs/VVideo/VVideoVolume.js +1 -1
- package/lib/labs/VVideo/VVideoVolume.js.map +1 -1
- package/lib/labs/VVideo/_variables.scss +3 -2
- package/lib/labs/rules/rules.d.ts +10 -3
- package/lib/labs/rules/rules.js +13 -5
- package/lib/labs/rules/rules.js.map +1 -1
- package/lib/locale/af.d.ts +17 -0
- package/lib/locale/af.js +17 -0
- package/lib/locale/af.js.map +1 -1
- package/lib/locale/ar.d.ts +17 -0
- package/lib/locale/ar.js +17 -0
- package/lib/locale/ar.js.map +1 -1
- package/lib/locale/az.d.ts +17 -0
- package/lib/locale/az.js +17 -0
- package/lib/locale/az.js.map +1 -1
- package/lib/locale/bg.d.ts +17 -0
- package/lib/locale/bg.js +17 -0
- package/lib/locale/bg.js.map +1 -1
- package/lib/locale/ca.d.ts +17 -0
- package/lib/locale/ca.js +17 -0
- package/lib/locale/ca.js.map +1 -1
- package/lib/locale/ckb.d.ts +17 -0
- package/lib/locale/ckb.js +17 -0
- package/lib/locale/ckb.js.map +1 -1
- package/lib/locale/cs.d.ts +17 -0
- package/lib/locale/cs.js +17 -0
- package/lib/locale/cs.js.map +1 -1
- package/lib/locale/da.d.ts +17 -0
- package/lib/locale/da.js +17 -0
- package/lib/locale/da.js.map +1 -1
- package/lib/locale/de.d.ts +17 -0
- package/lib/locale/de.js +17 -0
- package/lib/locale/de.js.map +1 -1
- package/lib/locale/el.d.ts +17 -0
- package/lib/locale/el.js +17 -0
- package/lib/locale/el.js.map +1 -1
- package/lib/locale/en.d.ts +17 -0
- package/lib/locale/en.js +17 -0
- package/lib/locale/en.js.map +1 -1
- package/lib/locale/es.d.ts +17 -0
- package/lib/locale/es.js +17 -0
- package/lib/locale/es.js.map +1 -1
- package/lib/locale/et.d.ts +17 -0
- package/lib/locale/et.js +17 -0
- package/lib/locale/et.js.map +1 -1
- package/lib/locale/fa.d.ts +17 -0
- package/lib/locale/fa.js +17 -0
- package/lib/locale/fa.js.map +1 -1
- package/lib/locale/fi.d.ts +17 -0
- package/lib/locale/fi.js +17 -0
- package/lib/locale/fi.js.map +1 -1
- package/lib/locale/fr.d.ts +17 -0
- package/lib/locale/fr.js +17 -0
- package/lib/locale/fr.js.map +1 -1
- package/lib/locale/he.d.ts +17 -0
- package/lib/locale/he.js +17 -0
- package/lib/locale/he.js.map +1 -1
- package/lib/locale/hr.d.ts +17 -0
- package/lib/locale/hr.js +17 -0
- package/lib/locale/hr.js.map +1 -1
- package/lib/locale/hu.d.ts +17 -0
- package/lib/locale/hu.js +17 -0
- package/lib/locale/hu.js.map +1 -1
- package/lib/locale/id.d.ts +17 -0
- package/lib/locale/id.js +17 -0
- package/lib/locale/id.js.map +1 -1
- package/lib/locale/it.d.ts +17 -0
- package/lib/locale/it.js +17 -0
- package/lib/locale/it.js.map +1 -1
- package/lib/locale/ja.d.ts +17 -0
- package/lib/locale/ja.js +17 -0
- package/lib/locale/ja.js.map +1 -1
- package/lib/locale/km.d.ts +17 -0
- package/lib/locale/km.js +17 -0
- package/lib/locale/km.js.map +1 -1
- package/lib/locale/ko.d.ts +17 -0
- package/lib/locale/ko.js +17 -0
- package/lib/locale/ko.js.map +1 -1
- package/lib/locale/lt.d.ts +17 -0
- package/lib/locale/lt.js +17 -0
- package/lib/locale/lt.js.map +1 -1
- package/lib/locale/lv.d.ts +17 -0
- package/lib/locale/lv.js +17 -0
- package/lib/locale/lv.js.map +1 -1
- package/lib/locale/nl.d.ts +17 -0
- package/lib/locale/nl.js +17 -0
- package/lib/locale/nl.js.map +1 -1
- package/lib/locale/no.d.ts +17 -0
- package/lib/locale/no.js +17 -0
- package/lib/locale/no.js.map +1 -1
- package/lib/locale/pl.d.ts +17 -0
- package/lib/locale/pl.js +17 -0
- package/lib/locale/pl.js.map +1 -1
- package/lib/locale/pt.d.ts +17 -0
- package/lib/locale/pt.js +17 -0
- package/lib/locale/pt.js.map +1 -1
- package/lib/locale/ro.d.ts +17 -0
- package/lib/locale/ro.js +17 -0
- package/lib/locale/ro.js.map +1 -1
- package/lib/locale/ru.d.ts +17 -0
- package/lib/locale/ru.js +17 -0
- package/lib/locale/ru.js.map +1 -1
- package/lib/locale/sk.d.ts +17 -0
- package/lib/locale/sk.js +17 -0
- package/lib/locale/sk.js.map +1 -1
- package/lib/locale/sl.d.ts +17 -0
- package/lib/locale/sl.js +17 -0
- package/lib/locale/sl.js.map +1 -1
- package/lib/locale/sr-Cyrl.d.ts +17 -0
- package/lib/locale/sr-Cyrl.js +17 -0
- package/lib/locale/sr-Cyrl.js.map +1 -1
- package/lib/locale/sr-Latn.d.ts +17 -0
- package/lib/locale/sr-Latn.js +17 -0
- package/lib/locale/sr-Latn.js.map +1 -1
- package/lib/locale/sv.d.ts +17 -0
- package/lib/locale/sv.js +17 -0
- package/lib/locale/sv.js.map +1 -1
- package/lib/locale/th.d.ts +17 -0
- package/lib/locale/th.js +17 -0
- package/lib/locale/th.js.map +1 -1
- package/lib/locale/tr.d.ts +17 -0
- package/lib/locale/tr.js +17 -0
- package/lib/locale/tr.js.map +1 -1
- package/lib/locale/uk.d.ts +17 -0
- package/lib/locale/uk.js +17 -0
- package/lib/locale/uk.js.map +1 -1
- package/lib/locale/vi.d.ts +17 -0
- package/lib/locale/vi.js +17 -0
- package/lib/locale/vi.js.map +1 -1
- package/lib/locale/zh-Hans.d.ts +17 -0
- package/lib/locale/zh-Hans.js +17 -0
- package/lib/locale/zh-Hans.js.map +1 -1
- package/lib/locale/zh-Hant.d.ts +17 -0
- package/lib/locale/zh-Hant.js +17 -0
- package/lib/locale/zh-Hant.js.map +1 -1
- package/lib/util/getScrollParent.js +3 -1
- package/lib/util/getScrollParent.js.map +1 -1
- package/package.json +2 -2
package/dist/vuetify-labs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.9.
|
|
2
|
+
* Vuetify v3.9.5
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1653,7 +1653,9 @@
|
|
|
1653
1653
|
function hasScrollbar(el) {
|
|
1654
1654
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
|
1655
1655
|
const style = window.getComputedStyle(el);
|
|
1656
|
-
|
|
1656
|
+
const hasVerticalScrollbar = style.overflowY === 'scroll' || style.overflowY === 'auto' && el.scrollHeight > el.clientHeight;
|
|
1657
|
+
const hasHorizontalScrollbar = style.overflowX === 'scroll' || style.overflowX === 'auto' && el.scrollWidth > el.clientWidth;
|
|
1658
|
+
return hasVerticalScrollbar || hasHorizontalScrollbar;
|
|
1657
1659
|
}
|
|
1658
1660
|
function isPotentiallyScrollable(el) {
|
|
1659
1661
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return false;
|
|
@@ -2257,6 +2259,23 @@
|
|
|
2257
2259
|
unmute: 'Unmute',
|
|
2258
2260
|
enterFullscreen: 'Full screen',
|
|
2259
2261
|
exitFullscreen: 'Exit full screen'
|
|
2262
|
+
},
|
|
2263
|
+
colorPicker: {
|
|
2264
|
+
ariaLabel: {
|
|
2265
|
+
eyedropper: 'Select color with eyedropper',
|
|
2266
|
+
hueSlider: 'Hue',
|
|
2267
|
+
alphaSlider: 'Alpha',
|
|
2268
|
+
redInput: 'Red value',
|
|
2269
|
+
greenInput: 'Green value',
|
|
2270
|
+
blueInput: 'Blue value',
|
|
2271
|
+
alphaInput: 'Alpha value',
|
|
2272
|
+
hueInput: 'Hue value',
|
|
2273
|
+
saturationInput: 'Saturation value',
|
|
2274
|
+
lightnessInput: 'Lightness value',
|
|
2275
|
+
hexInput: 'HEX value',
|
|
2276
|
+
hexaInput: 'HEX with alpha value',
|
|
2277
|
+
changeFormat: 'Change color format'
|
|
2278
|
+
}
|
|
2260
2279
|
}
|
|
2261
2280
|
};
|
|
2262
2281
|
|
|
@@ -2855,9 +2874,7 @@
|
|
|
2855
2874
|
|
|
2856
2875
|
const makeVAppProps = propsFactory({
|
|
2857
2876
|
...makeComponentProps(),
|
|
2858
|
-
...makeLayoutProps(
|
|
2859
|
-
fullHeight: true
|
|
2860
|
-
}),
|
|
2877
|
+
...omit(makeLayoutProps(), ['fullHeight']),
|
|
2861
2878
|
...makeThemeProps()
|
|
2862
2879
|
}, 'VApp');
|
|
2863
2880
|
const VApp = genericComponent()({
|
|
@@ -2873,7 +2890,10 @@
|
|
|
2873
2890
|
getLayoutItem,
|
|
2874
2891
|
items,
|
|
2875
2892
|
layoutRef
|
|
2876
|
-
} = createLayout(
|
|
2893
|
+
} = createLayout({
|
|
2894
|
+
...props,
|
|
2895
|
+
fullHeight: true
|
|
2896
|
+
});
|
|
2877
2897
|
const {
|
|
2878
2898
|
rtlClasses
|
|
2879
2899
|
} = useRtl();
|
|
@@ -6246,7 +6266,7 @@
|
|
|
6246
6266
|
});
|
|
6247
6267
|
const {
|
|
6248
6268
|
iconSize
|
|
6249
|
-
} = useIconSizes(props, () => props.prominent ? 44 :
|
|
6269
|
+
} = useIconSizes(props, () => props.prominent ? 44 : undefined);
|
|
6250
6270
|
const {
|
|
6251
6271
|
themeClasses
|
|
6252
6272
|
} = provideTheme(props);
|
|
@@ -6297,7 +6317,7 @@
|
|
|
6297
6317
|
const iconProps = {
|
|
6298
6318
|
density: props.density,
|
|
6299
6319
|
icon: icon.value,
|
|
6300
|
-
size: iconSize.value
|
|
6320
|
+
size: props.iconSize || props.prominent ? iconSize.value : undefined
|
|
6301
6321
|
};
|
|
6302
6322
|
return isActive.value && vue.createVNode(props.tag, {
|
|
6303
6323
|
"class": vue.normalizeClass(['v-alert', props.border && {
|
|
@@ -7080,9 +7100,14 @@
|
|
|
7080
7100
|
// Utilities
|
|
7081
7101
|
const RulesSymbol = Symbol.for('vuetify:rules');
|
|
7082
7102
|
function useRules(fn) {
|
|
7083
|
-
const
|
|
7084
|
-
if (!
|
|
7085
|
-
|
|
7103
|
+
const rules = vue.inject(RulesSymbol, null);
|
|
7104
|
+
if (!fn) {
|
|
7105
|
+
if (!rules) {
|
|
7106
|
+
throw new Error('Could not find Vuetify rules injection');
|
|
7107
|
+
}
|
|
7108
|
+
return rules.aliases;
|
|
7109
|
+
}
|
|
7110
|
+
return rules?.resolve(fn) ?? vue.toRef(fn);
|
|
7086
7111
|
}
|
|
7087
7112
|
|
|
7088
7113
|
// Composables
|
|
@@ -10908,11 +10933,11 @@
|
|
|
10908
10933
|
function onScroll(e) {
|
|
10909
10934
|
data.isActive.value = false;
|
|
10910
10935
|
}
|
|
10911
|
-
bindScroll(data.target.value
|
|
10936
|
+
bindScroll(getTargetEl(data.target.value, data.contentEl.value), onScroll);
|
|
10912
10937
|
}
|
|
10913
10938
|
function blockScrollStrategy(data, props) {
|
|
10914
10939
|
const offsetParent = data.root.value?.offsetParent;
|
|
10915
|
-
const target =
|
|
10940
|
+
const target = getTargetEl(data.target.value, data.contentEl.value);
|
|
10916
10941
|
const scrollElements = [...new Set([...getScrollParents(target, props.contained ? offsetParent : undefined), ...getScrollParents(data.contentEl.value, props.contained ? offsetParent : undefined)])].filter(el => !el.classList.contains('v-overlay-scroll-blocked'));
|
|
10917
10942
|
const scrollbarWidth = window.innerWidth - document.documentElement.offsetWidth;
|
|
10918
10943
|
const scrollableParent = (el => hasScrollbar(el) && el)(offsetParent || document.documentElement);
|
|
@@ -10960,7 +10985,7 @@
|
|
|
10960
10985
|
}
|
|
10961
10986
|
ric = (typeof requestIdleCallback === 'undefined' ? cb => cb() : requestIdleCallback)(() => {
|
|
10962
10987
|
scope.run(() => {
|
|
10963
|
-
bindScroll(data.target.value
|
|
10988
|
+
bindScroll(getTargetEl(data.target.value, data.contentEl.value), e => {
|
|
10964
10989
|
if (slow) {
|
|
10965
10990
|
// If the position calculation is slow,
|
|
10966
10991
|
// defer updates until scrolling is finished.
|
|
@@ -10983,10 +11008,10 @@
|
|
|
10983
11008
|
cancelAnimationFrame(raf);
|
|
10984
11009
|
});
|
|
10985
11010
|
}
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
11011
|
+
function getTargetEl(target, contentEl) {
|
|
11012
|
+
return Array.isArray(target) ? document.elementsFromPoint(...target).find(el => !contentEl?.contains(el)) : target ?? contentEl;
|
|
11013
|
+
}
|
|
11014
|
+
function bindScroll(el, onScroll) {
|
|
10990
11015
|
const scrollElements = [document, ...getScrollParents(el)];
|
|
10991
11016
|
scrollElements.forEach(el => {
|
|
10992
11017
|
el.addEventListener('scroll', onScroll, {
|
|
@@ -12548,6 +12573,7 @@
|
|
|
12548
12573
|
"name": props.name,
|
|
12549
12574
|
"placeholder": props.placeholder,
|
|
12550
12575
|
"size": 1,
|
|
12576
|
+
"role": props.role,
|
|
12551
12577
|
"type": props.type,
|
|
12552
12578
|
"onFocus": focus,
|
|
12553
12579
|
"onBlur": blur
|
|
@@ -13323,7 +13349,7 @@
|
|
|
13323
13349
|
return vue.createVNode(VTextField, vue.mergeProps({
|
|
13324
13350
|
"ref": vTextFieldRef
|
|
13325
13351
|
}, textFieldProps, {
|
|
13326
|
-
"modelValue": model.value.map(v => v.props.
|
|
13352
|
+
"modelValue": model.value.map(v => v.props.title).join(', '),
|
|
13327
13353
|
"onUpdate:modelValue": onModelUpdate,
|
|
13328
13354
|
"focused": isFocused.value,
|
|
13329
13355
|
"onUpdate:focused": $event => isFocused.value = $event,
|
|
@@ -15982,7 +16008,8 @@
|
|
|
15982
16008
|
getColor: (c, v) => ({
|
|
15983
16009
|
...c,
|
|
15984
16010
|
r: Number(v)
|
|
15985
|
-
})
|
|
16011
|
+
}),
|
|
16012
|
+
localeKey: 'redInput'
|
|
15986
16013
|
}, {
|
|
15987
16014
|
label: 'G',
|
|
15988
16015
|
max: 255,
|
|
@@ -15991,7 +16018,8 @@
|
|
|
15991
16018
|
getColor: (c, v) => ({
|
|
15992
16019
|
...c,
|
|
15993
16020
|
g: Number(v)
|
|
15994
|
-
})
|
|
16021
|
+
}),
|
|
16022
|
+
localeKey: 'greenInput'
|
|
15995
16023
|
}, {
|
|
15996
16024
|
label: 'B',
|
|
15997
16025
|
max: 255,
|
|
@@ -16000,7 +16028,8 @@
|
|
|
16000
16028
|
getColor: (c, v) => ({
|
|
16001
16029
|
...c,
|
|
16002
16030
|
b: Number(v)
|
|
16003
|
-
})
|
|
16031
|
+
}),
|
|
16032
|
+
localeKey: 'blueInput'
|
|
16004
16033
|
}, {
|
|
16005
16034
|
label: 'A',
|
|
16006
16035
|
max: 1,
|
|
@@ -16014,7 +16043,8 @@
|
|
|
16014
16043
|
getColor: (c, v) => ({
|
|
16015
16044
|
...c,
|
|
16016
16045
|
a: Number(v)
|
|
16017
|
-
})
|
|
16046
|
+
}),
|
|
16047
|
+
localeKey: 'alphaInput'
|
|
16018
16048
|
}],
|
|
16019
16049
|
to: HSVtoRGB,
|
|
16020
16050
|
from: RGBtoHSV
|
|
@@ -16036,7 +16066,8 @@
|
|
|
16036
16066
|
getColor: (c, v) => ({
|
|
16037
16067
|
...c,
|
|
16038
16068
|
h: Number(v)
|
|
16039
|
-
})
|
|
16069
|
+
}),
|
|
16070
|
+
localeKey: 'hueInput'
|
|
16040
16071
|
}, {
|
|
16041
16072
|
label: 'S',
|
|
16042
16073
|
max: 1,
|
|
@@ -16045,7 +16076,8 @@
|
|
|
16045
16076
|
getColor: (c, v) => ({
|
|
16046
16077
|
...c,
|
|
16047
16078
|
s: Number(v)
|
|
16048
|
-
})
|
|
16079
|
+
}),
|
|
16080
|
+
localeKey: 'saturationInput'
|
|
16049
16081
|
}, {
|
|
16050
16082
|
label: 'L',
|
|
16051
16083
|
max: 1,
|
|
@@ -16054,7 +16086,8 @@
|
|
|
16054
16086
|
getColor: (c, v) => ({
|
|
16055
16087
|
...c,
|
|
16056
16088
|
l: Number(v)
|
|
16057
|
-
})
|
|
16089
|
+
}),
|
|
16090
|
+
localeKey: 'lightnessInput'
|
|
16058
16091
|
}, {
|
|
16059
16092
|
label: 'A',
|
|
16060
16093
|
max: 1,
|
|
@@ -16068,7 +16101,8 @@
|
|
|
16068
16101
|
getColor: (c, v) => ({
|
|
16069
16102
|
...c,
|
|
16070
16103
|
a: Number(v)
|
|
16071
|
-
})
|
|
16104
|
+
}),
|
|
16105
|
+
localeKey: 'alphaInput'
|
|
16072
16106
|
}],
|
|
16073
16107
|
to: HSVtoHSL,
|
|
16074
16108
|
from: HSLtoHSV
|
|
@@ -16084,7 +16118,8 @@
|
|
|
16084
16118
|
inputs: [{
|
|
16085
16119
|
label: 'HEXA',
|
|
16086
16120
|
getValue: c => c,
|
|
16087
|
-
getColor: (c, v) => v
|
|
16121
|
+
getColor: (c, v) => v,
|
|
16122
|
+
localeKey: 'hexaInput'
|
|
16088
16123
|
}],
|
|
16089
16124
|
to: HSVtoHex,
|
|
16090
16125
|
from: HexToHSV
|
|
@@ -16094,7 +16129,8 @@
|
|
|
16094
16129
|
inputs: [{
|
|
16095
16130
|
label: 'HEX',
|
|
16096
16131
|
getValue: c => c.slice(0, 7),
|
|
16097
|
-
getColor: (c, v) => v
|
|
16132
|
+
getColor: (c, v) => v,
|
|
16133
|
+
localeKey: 'hexInput'
|
|
16098
16134
|
}]
|
|
16099
16135
|
};
|
|
16100
16136
|
const modes = {
|
|
@@ -16143,6 +16179,9 @@
|
|
|
16143
16179
|
let {
|
|
16144
16180
|
emit
|
|
16145
16181
|
} = _ref2;
|
|
16182
|
+
const {
|
|
16183
|
+
t
|
|
16184
|
+
} = useLocale();
|
|
16146
16185
|
const enabledModes = vue.computed(() => {
|
|
16147
16186
|
return props.modes.map(key => ({
|
|
16148
16187
|
...modes[key],
|
|
@@ -16157,11 +16196,13 @@
|
|
|
16157
16196
|
let {
|
|
16158
16197
|
getValue,
|
|
16159
16198
|
getColor,
|
|
16199
|
+
localeKey,
|
|
16160
16200
|
...inputProps
|
|
16161
16201
|
} = _ref3;
|
|
16162
16202
|
return {
|
|
16163
16203
|
...mode.inputProps,
|
|
16164
16204
|
...inputProps,
|
|
16205
|
+
ariaLabel: t(`$vuetify.colorPicker.ariaLabel.${localeKey}`),
|
|
16165
16206
|
disabled: props.disabled,
|
|
16166
16207
|
value: color && getValue(color),
|
|
16167
16208
|
onChange: e => {
|
|
@@ -16179,6 +16220,7 @@
|
|
|
16179
16220
|
"icon": "$unfold",
|
|
16180
16221
|
"size": "x-small",
|
|
16181
16222
|
"variant": "plain",
|
|
16223
|
+
"aria-label": t('$vuetify.colorPicker.ariaLabel.changeFormat'),
|
|
16182
16224
|
"onClick": () => {
|
|
16183
16225
|
const mi = enabledModes.value.findIndex(m => m.name === props.mode);
|
|
16184
16226
|
emit('update:mode', enabledModes.value[(mi + 1) % enabledModes.value.length].name);
|
|
@@ -16944,6 +16986,9 @@
|
|
|
16944
16986
|
let {
|
|
16945
16987
|
emit
|
|
16946
16988
|
} = _ref;
|
|
16989
|
+
const {
|
|
16990
|
+
t
|
|
16991
|
+
} = useLocale();
|
|
16947
16992
|
const abortController = new AbortController();
|
|
16948
16993
|
vue.onUnmounted(() => abortController.abort());
|
|
16949
16994
|
async function openEyeDropper() {
|
|
@@ -16969,6 +17014,7 @@
|
|
|
16969
17014
|
"class": "v-color-picker-preview__eye-dropper",
|
|
16970
17015
|
"key": "eyeDropper"
|
|
16971
17016
|
}, [vue.createVNode(VBtn, {
|
|
17017
|
+
"aria-label": t('$vuetify.colorPicker.ariaLabel.eyedropper'),
|
|
16972
17018
|
"density": "comfortable",
|
|
16973
17019
|
"disabled": props.disabled,
|
|
16974
17020
|
"icon": "$eyeDropper",
|
|
@@ -16984,6 +17030,7 @@
|
|
|
16984
17030
|
"class": "v-color-picker-preview__sliders"
|
|
16985
17031
|
}, [vue.createVNode(VSlider, {
|
|
16986
17032
|
"class": "v-color-picker-preview__track v-color-picker-preview__hue",
|
|
17033
|
+
"name": t('$vuetify.colorPicker.ariaLabel.hueSlider'),
|
|
16987
17034
|
"modelValue": props.color?.h,
|
|
16988
17035
|
"onUpdate:modelValue": h => emit('update:color', {
|
|
16989
17036
|
...(props.color ?? nullColor),
|
|
@@ -16999,6 +17046,7 @@
|
|
|
16999
17046
|
"hideDetails": true
|
|
17000
17047
|
}, null), !props.hideAlpha && vue.createVNode(VSlider, {
|
|
17001
17048
|
"class": "v-color-picker-preview__track v-color-picker-preview__alpha",
|
|
17049
|
+
"name": t('$vuetify.colorPicker.ariaLabel.alphaSlider'),
|
|
17002
17050
|
"modelValue": props.color?.a ?? 1,
|
|
17003
17051
|
"onUpdate:modelValue": a => emit('update:color', {
|
|
17004
17052
|
...(props.color ?? nullColor),
|
|
@@ -20863,11 +20911,16 @@
|
|
|
20863
20911
|
if (item.fixed === true) {
|
|
20864
20912
|
item.fixed = 'start';
|
|
20865
20913
|
}
|
|
20866
|
-
const orderedChildren = side === 'start' ? item.children?.toReversed() : item.children;
|
|
20867
20914
|
if (item.fixed === side) {
|
|
20868
|
-
if (
|
|
20869
|
-
|
|
20870
|
-
|
|
20915
|
+
if (item.children) {
|
|
20916
|
+
if (side === 'start') {
|
|
20917
|
+
for (let i = item.children.length - 1; i >= 0; i--) {
|
|
20918
|
+
setFixed(item.children[i], side, side);
|
|
20919
|
+
}
|
|
20920
|
+
} else {
|
|
20921
|
+
for (let i = 0; i < item.children.length; i++) {
|
|
20922
|
+
setFixed(item.children[i], side, side);
|
|
20923
|
+
}
|
|
20871
20924
|
}
|
|
20872
20925
|
} else {
|
|
20873
20926
|
if (!seenFixed && side === 'start') {
|
|
@@ -20882,57 +20935,63 @@
|
|
|
20882
20935
|
seenFixed = true;
|
|
20883
20936
|
}
|
|
20884
20937
|
} else {
|
|
20885
|
-
if (
|
|
20886
|
-
|
|
20887
|
-
|
|
20938
|
+
if (item.children) {
|
|
20939
|
+
if (side === 'start') {
|
|
20940
|
+
for (let i = item.children.length - 1; i >= 0; i--) {
|
|
20941
|
+
setFixed(item.children[i], side);
|
|
20942
|
+
}
|
|
20943
|
+
} else {
|
|
20944
|
+
for (let i = 0; i < item.children.length; i++) {
|
|
20945
|
+
setFixed(item.children[i], side);
|
|
20946
|
+
}
|
|
20888
20947
|
}
|
|
20889
20948
|
} else {
|
|
20890
20949
|
seenFixed = false;
|
|
20891
20950
|
}
|
|
20892
20951
|
}
|
|
20893
20952
|
}
|
|
20894
|
-
for (
|
|
20895
|
-
setFixed(
|
|
20953
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
20954
|
+
setFixed(items[i], 'start');
|
|
20896
20955
|
}
|
|
20897
|
-
for (
|
|
20898
|
-
setFixed(
|
|
20899
|
-
}
|
|
20900
|
-
function setFixedOffset(item) {
|
|
20901
|
-
let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
20902
|
-
if (!item) return offset;
|
|
20903
|
-
if (item.children) {
|
|
20904
|
-
item.fixedOffset = offset;
|
|
20905
|
-
for (const child of item.children) {
|
|
20906
|
-
offset = setFixedOffset(child, offset);
|
|
20907
|
-
}
|
|
20908
|
-
} else if (item.fixed && item.fixed !== 'end') {
|
|
20909
|
-
item.fixedOffset = offset;
|
|
20910
|
-
offset += parseFloat(item.width || '0') || 0;
|
|
20911
|
-
}
|
|
20912
|
-
return offset;
|
|
20956
|
+
for (let i = 0; i < items.length; i++) {
|
|
20957
|
+
setFixed(items[i], 'end');
|
|
20913
20958
|
}
|
|
20914
20959
|
let fixedOffset = 0;
|
|
20915
|
-
for (
|
|
20916
|
-
fixedOffset = setFixedOffset(
|
|
20960
|
+
for (let i = 0; i < items.length; i++) {
|
|
20961
|
+
fixedOffset = setFixedOffset(items[i], fixedOffset);
|
|
20917
20962
|
}
|
|
20918
|
-
|
|
20919
|
-
|
|
20920
|
-
|
|
20921
|
-
|
|
20922
|
-
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20963
|
+
let fixedEndOffset = 0;
|
|
20964
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
20965
|
+
fixedEndOffset = setFixedEndOffset(items[i], fixedEndOffset);
|
|
20966
|
+
}
|
|
20967
|
+
}
|
|
20968
|
+
function setFixedOffset(item) {
|
|
20969
|
+
let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
20970
|
+
if (!item) return offset;
|
|
20971
|
+
if (item.children) {
|
|
20972
|
+
item.fixedOffset = offset;
|
|
20973
|
+
for (const child of item.children) {
|
|
20974
|
+
offset = setFixedOffset(child, offset);
|
|
20929
20975
|
}
|
|
20930
|
-
|
|
20976
|
+
} else if (item.fixed && item.fixed !== 'end') {
|
|
20977
|
+
item.fixedOffset = offset;
|
|
20978
|
+
offset += parseFloat(item.width || '0') || 0;
|
|
20931
20979
|
}
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20980
|
+
return offset;
|
|
20981
|
+
}
|
|
20982
|
+
function setFixedEndOffset(item) {
|
|
20983
|
+
let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
20984
|
+
if (!item) return offset;
|
|
20985
|
+
if (item.children) {
|
|
20986
|
+
item.fixedEndOffset = offset;
|
|
20987
|
+
for (const child of item.children) {
|
|
20988
|
+
offset = setFixedEndOffset(child, offset);
|
|
20989
|
+
}
|
|
20990
|
+
} else if (item.fixed === 'end') {
|
|
20991
|
+
item.fixedEndOffset = offset;
|
|
20992
|
+
offset += parseFloat(item.width || '0') || 0;
|
|
20935
20993
|
}
|
|
20994
|
+
return offset;
|
|
20936
20995
|
}
|
|
20937
20996
|
function parse(items, maxDepth) {
|
|
20938
20997
|
const headers = [];
|
|
@@ -21634,8 +21693,6 @@
|
|
|
21634
21693
|
}
|
|
21635
21694
|
});
|
|
21636
21695
|
|
|
21637
|
-
// Types
|
|
21638
|
-
|
|
21639
21696
|
const makeVTableProps = propsFactory({
|
|
21640
21697
|
fixedHeader: Boolean,
|
|
21641
21698
|
fixedFooter: Boolean,
|
|
@@ -21665,26 +21722,37 @@
|
|
|
21665
21722
|
const {
|
|
21666
21723
|
densityClasses
|
|
21667
21724
|
} = useDensity(props);
|
|
21668
|
-
useRender(() =>
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
|
|
21672
|
-
'v-table--fixed-footer': props.fixedFooter,
|
|
21673
|
-
'v-table--has-top': !!slots.top,
|
|
21674
|
-
'v-table--has-bottom': !!slots.bottom,
|
|
21675
|
-
'v-table--hover': props.hover,
|
|
21676
|
-
'v-table--striped-even': props.striped === 'even',
|
|
21677
|
-
'v-table--striped-odd': props.striped === 'odd'
|
|
21678
|
-
}, themeClasses.value, densityClasses.value, props.class]),
|
|
21679
|
-
"style": vue.normalizeStyle(props.style)
|
|
21680
|
-
}, {
|
|
21681
|
-
default: () => [slots.top?.(), slots.default ? vue.createElementVNode("div", {
|
|
21682
|
-
"class": "v-table__wrapper",
|
|
21683
|
-
"style": {
|
|
21684
|
-
height: convertToUnit(props.height)
|
|
21725
|
+
useRender(() => {
|
|
21726
|
+
const tableContentDefaults = {
|
|
21727
|
+
VCheckboxBtn: {
|
|
21728
|
+
density: props.density
|
|
21685
21729
|
}
|
|
21686
|
-
}
|
|
21687
|
-
|
|
21730
|
+
};
|
|
21731
|
+
return vue.createVNode(props.tag, {
|
|
21732
|
+
"class": vue.normalizeClass(['v-table', {
|
|
21733
|
+
'v-table--fixed-height': !!props.height,
|
|
21734
|
+
'v-table--fixed-header': props.fixedHeader,
|
|
21735
|
+
'v-table--fixed-footer': props.fixedFooter,
|
|
21736
|
+
'v-table--has-top': !!slots.top,
|
|
21737
|
+
'v-table--has-bottom': !!slots.bottom,
|
|
21738
|
+
'v-table--hover': props.hover,
|
|
21739
|
+
'v-table--striped-even': props.striped === 'even',
|
|
21740
|
+
'v-table--striped-odd': props.striped === 'odd'
|
|
21741
|
+
}, themeClasses.value, densityClasses.value, props.class]),
|
|
21742
|
+
"style": vue.normalizeStyle(props.style)
|
|
21743
|
+
}, {
|
|
21744
|
+
default: () => [slots.top?.(), vue.createVNode(VDefaultsProvider, {
|
|
21745
|
+
"defaults": tableContentDefaults
|
|
21746
|
+
}, {
|
|
21747
|
+
default: () => [slots.default ? vue.createElementVNode("div", {
|
|
21748
|
+
"class": "v-table__wrapper",
|
|
21749
|
+
"style": {
|
|
21750
|
+
height: convertToUnit(props.height)
|
|
21751
|
+
}
|
|
21752
|
+
}, [vue.createElementVNode("table", null, [slots.default()])]) : slots.wrapper?.()]
|
|
21753
|
+
}), slots.bottom?.()]
|
|
21754
|
+
});
|
|
21755
|
+
});
|
|
21688
21756
|
return {};
|
|
21689
21757
|
}
|
|
21690
21758
|
});
|
|
@@ -26017,6 +26085,7 @@
|
|
|
26017
26085
|
if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) || e.ctrlKey) return;
|
|
26018
26086
|
if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
|
26019
26087
|
e.preventDefault();
|
|
26088
|
+
e.stopPropagation();
|
|
26020
26089
|
clampModel();
|
|
26021
26090
|
// _model is controlled, so need to wait until props['modelValue'] is updated
|
|
26022
26091
|
await vue.nextTick();
|
|
@@ -31346,12 +31415,23 @@
|
|
|
31346
31415
|
|
|
31347
31416
|
// Types
|
|
31348
31417
|
|
|
31418
|
+
const availablePipLocations = ['prepend', 'prepend-inner', 'append', 'append-inner'];
|
|
31349
31419
|
const makeVColorInputProps = propsFactory({
|
|
31350
|
-
|
|
31420
|
+
hidePip: Boolean,
|
|
31421
|
+
colorPip: Boolean,
|
|
31351
31422
|
pipIcon: {
|
|
31352
31423
|
type: String,
|
|
31353
31424
|
default: '$color'
|
|
31354
31425
|
},
|
|
31426
|
+
pipLocation: {
|
|
31427
|
+
type: String,
|
|
31428
|
+
default: 'prepend',
|
|
31429
|
+
validator: v => availablePipLocations.includes(v)
|
|
31430
|
+
},
|
|
31431
|
+
pipVariant: {
|
|
31432
|
+
type: String,
|
|
31433
|
+
default: 'text'
|
|
31434
|
+
},
|
|
31355
31435
|
...makeFocusProps(),
|
|
31356
31436
|
...makeVConfirmEditProps(),
|
|
31357
31437
|
...makeVTextFieldProps(),
|
|
@@ -31395,8 +31475,15 @@
|
|
|
31395
31475
|
useRender(() => {
|
|
31396
31476
|
const confirmEditProps = VConfirmEdit.filterProps(props);
|
|
31397
31477
|
const colorPickerProps = VColorPicker.filterProps(omit(props, ['active', 'color']));
|
|
31398
|
-
const textFieldProps = VTextField.filterProps(
|
|
31399
|
-
const
|
|
31478
|
+
const textFieldProps = VTextField.filterProps(props);
|
|
31479
|
+
const slotWithPip = props.hidePip ? undefined : {
|
|
31480
|
+
[props.pipLocation]: arg => vue.createElementVNode(vue.Fragment, null, [vue.createVNode(VAvatar, {
|
|
31481
|
+
"class": "v-color-input__pip",
|
|
31482
|
+
"color": props.colorPip ? model.value : undefined,
|
|
31483
|
+
"variant": props.pipVariant,
|
|
31484
|
+
"icon": props.pipIcon
|
|
31485
|
+
}, null), slots[props.pipLocation]?.(arg)])
|
|
31486
|
+
};
|
|
31400
31487
|
return vue.createVNode(VTextField, vue.mergeProps(textFieldProps, {
|
|
31401
31488
|
"class": ['v-color-input', props.class],
|
|
31402
31489
|
"style": props.style,
|
|
@@ -31412,10 +31499,7 @@
|
|
|
31412
31499
|
}
|
|
31413
31500
|
}), {
|
|
31414
31501
|
...slots,
|
|
31415
|
-
|
|
31416
|
-
"color": props.pip ? model.value : undefined,
|
|
31417
|
-
"icon": props.pipIcon
|
|
31418
|
-
}, null), slots.prepend?.(arg)]) : undefined,
|
|
31502
|
+
...slotWithPip,
|
|
31419
31503
|
default: () => vue.createElementVNode(vue.Fragment, null, [vue.createVNode(VMenu, {
|
|
31420
31504
|
"modelValue": menu.value,
|
|
31421
31505
|
"onUpdate:modelValue": $event => menu.value = $event,
|
|
@@ -31447,8 +31531,7 @@
|
|
|
31447
31531
|
}
|
|
31448
31532
|
return vue.createVNode(VColorPicker, vue.mergeProps(colorPickerProps, {
|
|
31449
31533
|
"modelValue": props.hideActions ? model.value : proxyModel.value,
|
|
31450
|
-
"onUpdate:modelValue": value => onUpdateModel(value)
|
|
31451
|
-
"onMousedown": e => e.preventDefault()
|
|
31534
|
+
"onUpdate:modelValue": value => onUpdateModel(value)
|
|
31452
31535
|
}), {
|
|
31453
31536
|
actions: !props.hideActions ? () => slots.actions?.({
|
|
31454
31537
|
save,
|
|
@@ -34145,7 +34228,8 @@
|
|
|
34145
34228
|
t
|
|
34146
34229
|
} = useLocale();
|
|
34147
34230
|
const {
|
|
34148
|
-
themeClasses
|
|
34231
|
+
themeClasses,
|
|
34232
|
+
current: currentTheme
|
|
34149
34233
|
} = provideTheme(props);
|
|
34150
34234
|
const {
|
|
34151
34235
|
densityClasses
|
|
@@ -34160,6 +34244,13 @@
|
|
|
34160
34244
|
const fallbackBackground = props.detached ? 'surface' : undefined;
|
|
34161
34245
|
return props.backgroundColor ?? fallbackBackground;
|
|
34162
34246
|
});
|
|
34247
|
+
const trackColor = vue.toRef(() => {
|
|
34248
|
+
if (props.trackColor) {
|
|
34249
|
+
return props.trackColor;
|
|
34250
|
+
}
|
|
34251
|
+
const fallback = currentTheme.value.dark || !props.pills ? undefined : 'surface';
|
|
34252
|
+
return (props.pills ? props.backgroundColor : props.color) ?? fallback;
|
|
34253
|
+
});
|
|
34163
34254
|
const playing = useProxiedModel(props, 'playing');
|
|
34164
34255
|
const progress = useProxiedModel(props, 'progress');
|
|
34165
34256
|
const volume = useProxiedModel(props, 'volume', 0, v => Number(v ?? 0));
|
|
@@ -34220,7 +34311,8 @@
|
|
|
34220
34311
|
};
|
|
34221
34312
|
const regularBtnSize = innerDefaults.VIconBtn.size;
|
|
34222
34313
|
const playBtnSize = props.pills ? regularBtnSize + 8 : regularBtnSize;
|
|
34223
|
-
const pillClasses = ['v-video-control__pill', props.pills ? elevationClasses.value : []];
|
|
34314
|
+
const pillClasses = ['v-video-control__pill', props.pills ? elevationClasses.value : [], props.pills ? backgroundColorClasses.value : []];
|
|
34315
|
+
const pillStyles = props.pills ? backgroundColorStyles.value : [];
|
|
34224
34316
|
const slotProps = {
|
|
34225
34317
|
play,
|
|
34226
34318
|
pause,
|
|
@@ -34243,30 +34335,34 @@
|
|
|
34243
34335
|
'v-video-controls--floating': props.floating
|
|
34244
34336
|
}, {
|
|
34245
34337
|
'v-video-controls--split-time': props.splitTime
|
|
34246
|
-
}, backgroundColorClasses.value, props.detached && !props.pills ? elevationClasses.value : [], densityClasses.value, themeClasses.value]),
|
|
34247
|
-
"style": vue.normalizeStyle([backgroundColorStyles.value, {
|
|
34338
|
+
}, !props.pills ? backgroundColorClasses.value : [], props.detached && !props.pills ? elevationClasses.value : [], densityClasses.value, themeClasses.value]),
|
|
34339
|
+
"style": vue.normalizeStyle([!props.pills ? backgroundColorStyles.value : [], {
|
|
34248
34340
|
'--v-video-controls-pill-height': `${regularBtnSize}px`
|
|
34249
34341
|
}])
|
|
34250
34342
|
}, [vue.createVNode(VDefaultsProvider, {
|
|
34251
34343
|
"defaults": innerDefaults
|
|
34252
34344
|
}, {
|
|
34253
34345
|
default: () => [slots.default?.(slotProps) ?? vue.createElementVNode(vue.Fragment, null, [props.variant !== 'mini' && vue.createElementVNode(vue.Fragment, null, [!props.hidePlay && vue.createElementVNode("div", {
|
|
34254
|
-
"class": vue.normalizeClass([pillClasses, 'v-video__action-play'])
|
|
34346
|
+
"class": vue.normalizeClass([pillClasses, 'v-video__action-play']),
|
|
34347
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34255
34348
|
}, [vue.withDirectives(vue.createVNode(VIconBtn, {
|
|
34256
34349
|
"icon": playing.value ? '$pause' : '$play',
|
|
34257
34350
|
"size": playBtnSize,
|
|
34258
34351
|
"aria-label": labels.value.playAction,
|
|
34259
34352
|
"onClick": () => playing.value = !playing.value
|
|
34260
34353
|
}, null), [[Tooltip, labels.value.playAction, 'top']])]), slots.prepend && vue.createElementVNode("div", {
|
|
34261
|
-
"class": vue.normalizeClass(pillClasses)
|
|
34354
|
+
"class": vue.normalizeClass(pillClasses),
|
|
34355
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34262
34356
|
}, [slots.prepend(slotProps)]), props.splitTime ? vue.createElementVNode("span", {
|
|
34263
|
-
"class": vue.normalizeClass([pillClasses, 'v-video__time'])
|
|
34357
|
+
"class": vue.normalizeClass([pillClasses, 'v-video__time']),
|
|
34358
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34264
34359
|
}, [currentTime.value.elapsed]) : props.variant !== 'default' ? vue.createElementVNode("span", {
|
|
34265
|
-
"class": vue.normalizeClass([pillClasses, 'v-video__time'])
|
|
34360
|
+
"class": vue.normalizeClass([pillClasses, 'v-video__time']),
|
|
34361
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34266
34362
|
}, [currentTime.value.elapsed, vue.createTextVNode(" / "), currentTime.value.total]) : '', vue.createVNode(VSlider, {
|
|
34267
34363
|
"modelValue": props.progress,
|
|
34268
34364
|
"noKeyboard": true,
|
|
34269
|
-
"color":
|
|
34365
|
+
"color": trackColor.value ?? 'surface-variant',
|
|
34270
34366
|
"trackColor": props.variant === 'tube' ? 'white' : undefined,
|
|
34271
34367
|
"class": "v-video__track",
|
|
34272
34368
|
"thumbLabel": "always",
|
|
@@ -34275,18 +34371,22 @@
|
|
|
34275
34371
|
}, {
|
|
34276
34372
|
'thumb-label': () => currentTime.value.elapsed
|
|
34277
34373
|
}), props.variant === 'tube' && vue.createVNode(VSpacer, null, null), props.splitTime ? vue.createElementVNode("span", {
|
|
34278
|
-
"class": vue.normalizeClass([pillClasses, 'v-video__time'])
|
|
34374
|
+
"class": vue.normalizeClass([pillClasses, 'v-video__time']),
|
|
34375
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34279
34376
|
}, [currentTime.value.remaining]) : '']), props.variant === 'mini' && vue.createElementVNode(vue.Fragment, null, [vue.createVNode(VSpacer, null, null), slots.prepend && vue.createElementVNode("div", {
|
|
34280
|
-
"class": vue.normalizeClass(pillClasses)
|
|
34377
|
+
"class": vue.normalizeClass(pillClasses),
|
|
34378
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34281
34379
|
}, [slots.prepend(slotProps)]), !props.hidePlay && vue.createElementVNode("div", {
|
|
34282
|
-
"class": vue.normalizeClass([pillClasses, 'v-video__action-play'])
|
|
34380
|
+
"class": vue.normalizeClass([pillClasses, 'v-video__action-play']),
|
|
34381
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34283
34382
|
}, [vue.withDirectives(vue.createVNode(VIconBtn, {
|
|
34284
34383
|
"icon": playing.value ? '$pause' : '$play',
|
|
34285
34384
|
"size": playBtnSize,
|
|
34286
34385
|
"aria-label": labels.value.playAction,
|
|
34287
34386
|
"onClick": () => playing.value = !playing.value
|
|
34288
34387
|
}, null), [[Tooltip, labels.value.playAction, 'top']])])]), (!props.hideVolume || !props.hideFullscreen || slots.append) && vue.createElementVNode("div", {
|
|
34289
|
-
"class": vue.normalizeClass(pillClasses)
|
|
34388
|
+
"class": vue.normalizeClass(pillClasses),
|
|
34389
|
+
"style": vue.normalizeStyle(pillStyles)
|
|
34290
34390
|
}, [!props.hideVolume && vue.createVNode(VVideoVolume, vue.mergeProps({
|
|
34291
34391
|
"key": "volume-control",
|
|
34292
34392
|
"sliderProps": {
|
|
@@ -34313,6 +34413,7 @@
|
|
|
34313
34413
|
|
|
34314
34414
|
const allowedVariants = ['background', 'player'];
|
|
34315
34415
|
const makeVVideoProps = propsFactory({
|
|
34416
|
+
aspectRatio: [String, Number],
|
|
34316
34417
|
autoplay: Boolean,
|
|
34317
34418
|
muted: Boolean,
|
|
34318
34419
|
eager: Boolean,
|
|
@@ -34629,7 +34730,9 @@
|
|
|
34629
34730
|
"class": vue.normalizeClass(['v-video', `v-video--variant-${props.variant}`, `v-video--${state.value}`, {
|
|
34630
34731
|
'v-video--playing': playing.value
|
|
34631
34732
|
}, themeClasses.value, densityClasses.value, roundedContainerClasses.value, props.class]),
|
|
34632
|
-
"style": vue.normalizeStyle([
|
|
34733
|
+
"style": vue.normalizeStyle([{
|
|
34734
|
+
'--v-video-aspect-ratio': props.aspectRatio
|
|
34735
|
+
}, props.variant === 'background' ? [] : pick(dimensionStyles.value, ['width', 'minWidth', 'maxWidth']), props.style]),
|
|
34633
34736
|
"onKeydown": onKeydown,
|
|
34634
34737
|
"onClick": onClick
|
|
34635
34738
|
}, [vue.createElementVNode("div", {
|
|
@@ -34679,9 +34782,9 @@
|
|
|
34679
34782
|
}, {
|
|
34680
34783
|
default: () => [vue.createElementVNode("div", {
|
|
34681
34784
|
"class": vue.normalizeClass(['v-video__overlay-fill', ...roundedContainerClasses.value])
|
|
34682
|
-
}, [overlayPlayIcon])]
|
|
34785
|
+
}, [props.variant === 'player' && overlayPlayIcon])]
|
|
34683
34786
|
})]
|
|
34684
|
-
}), vue.createVNode(VOverlay, vue.mergeProps({
|
|
34787
|
+
}), props.variant === 'player' && vue.createVNode(VOverlay, vue.mergeProps({
|
|
34685
34788
|
"key": "loading-overlay",
|
|
34686
34789
|
"modelValue": state.value === 'loading' || waiting.value,
|
|
34687
34790
|
"opacity": ".1"
|
|
@@ -35143,7 +35246,7 @@
|
|
|
35143
35246
|
};
|
|
35144
35247
|
});
|
|
35145
35248
|
}
|
|
35146
|
-
const version$1 = "3.9.
|
|
35249
|
+
const version$1 = "3.9.5";
|
|
35147
35250
|
createVuetify$1.version = version$1;
|
|
35148
35251
|
|
|
35149
35252
|
// Vue's inject() can only be used in setup
|
|
@@ -35441,7 +35544,7 @@
|
|
|
35441
35544
|
|
|
35442
35545
|
/* eslint-disable local-rules/sort-imports */
|
|
35443
35546
|
|
|
35444
|
-
const version = "3.9.
|
|
35547
|
+
const version = "3.9.5";
|
|
35445
35548
|
|
|
35446
35549
|
/* eslint-disable local-rules/sort-imports */
|
|
35447
35550
|
|