gitea push
This commit is contained in:
+53
-24
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Vuetify v4.0.6
|
||||
* Vuetify v4.0.7
|
||||
* Forged by John Leider
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
@@ -463,21 +463,21 @@ function getNextElement(elements, location, condition) {
|
||||
} while ((!_el || _el.offsetParent == null || !(condition?.(_el) ?? true)) && idx < elements.length && idx >= 0);
|
||||
return _el;
|
||||
}
|
||||
function focusChild(el, location) {
|
||||
function focusChild(el, location, options) {
|
||||
const focusable = focusableChildren(el);
|
||||
if (location == null) {
|
||||
if (el === document.activeElement || !el.contains(document.activeElement)) {
|
||||
focusable[0]?.focus();
|
||||
focusable[0]?.focus(options);
|
||||
}
|
||||
} else if (location === 'first') {
|
||||
focusable[0]?.focus();
|
||||
focusable[0]?.focus(options);
|
||||
} else if (location === 'last') {
|
||||
focusable.at(-1)?.focus();
|
||||
focusable.at(-1)?.focus(options);
|
||||
} else if (typeof location === 'number') {
|
||||
focusable[location]?.focus();
|
||||
focusable[location]?.focus(options);
|
||||
} else {
|
||||
const _el = getNextElement(focusable, location);
|
||||
if (_el) _el.focus();else focusChild(el, location === 'next' ? 'first' : 'last');
|
||||
if (_el) _el.focus();else focusChild(el, location === 'next' ? 'first' : 'last', options);
|
||||
}
|
||||
}
|
||||
function isEmpty(val) {
|
||||
@@ -5471,8 +5471,10 @@ function useChunks(props, containerWidth) {
|
||||
}
|
||||
const gapRelativeSize = 100 * chunkGap.value / containerSize;
|
||||
const chunkRelativeSize = 100 * (chunkWidth.value + chunkGap.value) / containerSize;
|
||||
const filledChunks = Math.floor((val + gapRelativeSize) / chunkRelativeSize);
|
||||
return clamp(0, filledChunks * chunkRelativeSize - gapRelativeSize / 2, 100);
|
||||
|
||||
// low-effort workaround to floating-point rounding in the division
|
||||
const filledChunks = Math.floor((val + gapRelativeSize) / chunkRelativeSize + 1e-9);
|
||||
return clamp(filledChunks * chunkRelativeSize - gapRelativeSize / 2, 0, 100);
|
||||
}
|
||||
return {
|
||||
hasChunks,
|
||||
@@ -9608,7 +9610,8 @@ const makeNestedProps = propsFactory({
|
||||
const useNested = (props, {
|
||||
items,
|
||||
returnObject,
|
||||
scrollToActive
|
||||
scrollToActive,
|
||||
valueComparator
|
||||
}) => {
|
||||
let isUnmounted = false;
|
||||
const children = shallowRef(new Map());
|
||||
@@ -9663,8 +9666,28 @@ const useNested = (props, {
|
||||
return multipleOpenStrategy;
|
||||
}
|
||||
});
|
||||
const activated = useProxiedModel(props, 'activated', props.activated, v => activeStrategy.value.in(v, children.value, parents.value), v => activeStrategy.value.out(v, children.value, parents.value));
|
||||
const selected = useProxiedModel(props, 'selected', props.selected, v => selectStrategy.value.in(v, children.value, parents.value, disabled.value), v => selectStrategy.value.out(v, children.value, parents.value));
|
||||
const flatItems = computed(() => {
|
||||
const flat = [];
|
||||
const stack = [...items.value];
|
||||
while (stack.length) {
|
||||
const item = stack.pop();
|
||||
flat.push(item);
|
||||
if (item.children) stack.push(...item.children);
|
||||
}
|
||||
return flat;
|
||||
});
|
||||
function resolveValue(value) {
|
||||
const comparator = toValue(valueComparator);
|
||||
if (!comparator) return value;
|
||||
const _returnObject = toValue(returnObject);
|
||||
for (const item of flatItems.value) {
|
||||
const itemVal = _returnObject ? toRaw(item.raw) : item.value;
|
||||
if (comparator(value, itemVal)) return itemVal;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
const activated = useProxiedModel(props, 'activated', props.activated, v => activeStrategy.value.in(Array.isArray(v) ? v.map(resolveValue) : v, children.value, parents.value), v => activeStrategy.value.out(v, children.value, parents.value));
|
||||
const selected = useProxiedModel(props, 'selected', props.selected, v => selectStrategy.value.in(Array.isArray(v) ? v.map(resolveValue) : v, children.value, parents.value, disabled.value), v => selectStrategy.value.out(v, children.value, parents.value));
|
||||
onBeforeUnmount(() => {
|
||||
isUnmounted = true;
|
||||
});
|
||||
@@ -10792,7 +10815,8 @@ const VList = genericComponent()({
|
||||
} = useNested(props, {
|
||||
items,
|
||||
returnObject: toRef(() => props.returnObject),
|
||||
scrollToActive: toRef(() => props.navigationStrategy === 'track')
|
||||
scrollToActive: toRef(() => props.navigationStrategy === 'track'),
|
||||
valueComparator: toRef(() => props.valueComparator)
|
||||
});
|
||||
const lineClasses = toRef(() => props.lines ? `v-list--${props.lines}-line` : undefined);
|
||||
const activeColor = toRef(() => props.activeColor);
|
||||
@@ -10917,9 +10941,9 @@ const VList = genericComponent()({
|
||||
function onMousedown(e) {
|
||||
isFocused.value = true;
|
||||
}
|
||||
function focus(location) {
|
||||
function focus(location, options) {
|
||||
if (contentRef.value) {
|
||||
return focusChild(contentRef.value, location);
|
||||
return focusChild(contentRef.value, location, options);
|
||||
}
|
||||
}
|
||||
useRender(() => {
|
||||
@@ -14479,7 +14503,9 @@ const VSelect = genericComponent()({
|
||||
}
|
||||
if (listRef.value && isFocused.value) {
|
||||
const index = getSelectedFocusableIndex();
|
||||
listRef.value.focus(index >= 0 ? index : 'first');
|
||||
listRef.value.focus(index >= 0 ? index : 'first', {
|
||||
focusVisible: false
|
||||
});
|
||||
}
|
||||
}
|
||||
function onAfterLeave() {
|
||||
@@ -14575,7 +14601,6 @@ const VSelect = genericComponent()({
|
||||
"modelValue": menu.value,
|
||||
"onUpdate:modelValue": $event => menu.value = $event,
|
||||
"activator": "parent",
|
||||
"contentClass": "v-select__content",
|
||||
"disabled": menuDisabled.value,
|
||||
"eager": props.eager,
|
||||
"maxHeight": 310,
|
||||
@@ -14584,7 +14609,9 @@ const VSelect = genericComponent()({
|
||||
"transition": props.transition,
|
||||
"onAfterEnter": onAfterEnter,
|
||||
"onAfterLeave": onAfterLeave
|
||||
}, computedMenuProps.value), {
|
||||
}, computedMenuProps.value, {
|
||||
"contentClass": ['v-select__content', computedMenuProps.value.contentClass]
|
||||
}), {
|
||||
default: () => [createVNode(VSheet, {
|
||||
"elevation": props.menuElevation,
|
||||
"onFocusin": onFocusin,
|
||||
@@ -15112,7 +15139,6 @@ const VAutocomplete = genericComponent()({
|
||||
"modelValue": menu.value,
|
||||
"onUpdate:modelValue": $event => menu.value = $event,
|
||||
"activator": "parent",
|
||||
"contentClass": "v-autocomplete__content",
|
||||
"disabled": menuDisabled.value,
|
||||
"eager": props.eager,
|
||||
"maxHeight": 310,
|
||||
@@ -15120,7 +15146,9 @@ const VAutocomplete = genericComponent()({
|
||||
"closeOnContentClick": false,
|
||||
"onAfterEnter": onAfterEnter,
|
||||
"onAfterLeave": onAfterLeave
|
||||
}, props.menuProps), {
|
||||
}, props.menuProps, {
|
||||
"contentClass": ['v-autocomplete__content', props.menuProps?.contentClass]
|
||||
}), {
|
||||
default: () => [createVNode(VSheet, {
|
||||
"elevation": props.menuElevation,
|
||||
"onFocusin": onFocusin,
|
||||
@@ -23124,7 +23152,6 @@ const VCombobox = genericComponent()({
|
||||
"modelValue": menu.value,
|
||||
"onUpdate:modelValue": $event => menu.value = $event,
|
||||
"activator": "parent",
|
||||
"contentClass": "v-combobox__content",
|
||||
"disabled": menuDisabled.value,
|
||||
"eager": props.eager,
|
||||
"maxHeight": 310,
|
||||
@@ -23132,7 +23159,9 @@ const VCombobox = genericComponent()({
|
||||
"closeOnContentClick": false,
|
||||
"onAfterEnter": onAfterEnter,
|
||||
"onAfterLeave": onAfterLeave
|
||||
}, props.menuProps), {
|
||||
}, props.menuProps, {
|
||||
"contentClass": ['v-combobox__content', props.menuProps?.contentClass]
|
||||
}), {
|
||||
default: () => [createVNode(VSheet, {
|
||||
"elevation": props.menuElevation,
|
||||
"onFocusin": onFocusin,
|
||||
@@ -40971,7 +41000,7 @@ function createVuetify$1(vuetify = {}) {
|
||||
};
|
||||
});
|
||||
}
|
||||
const version$1 = "4.0.6";
|
||||
const version$1 = "4.0.7";
|
||||
createVuetify$1.version = version$1;
|
||||
|
||||
// Vue's inject() can only be used in setup
|
||||
@@ -41306,7 +41335,7 @@ var index = /*#__PURE__*/Object.freeze({
|
||||
|
||||
/* eslint-disable local-rules/sort-imports */
|
||||
|
||||
const version = "4.0.6";
|
||||
const version = "4.0.7";
|
||||
|
||||
/* eslint-disable local-rules/sort-imports */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user