Major overhaul to the theme and now functioning.
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
import {
|
||||
propsFactory
|
||||
} from "./chunk-LZ5T2ERG.js";
|
||||
import {
|
||||
shallowRef,
|
||||
toRef,
|
||||
useId
|
||||
} from "./chunk-2MKFL3BX.js";
|
||||
|
||||
// node_modules/vuetify/lib/composables/autocomplete.js
|
||||
var makeAutocompleteProps = propsFactory({
|
||||
autocomplete: String
|
||||
}, "autocomplete");
|
||||
function useAutocomplete(props) {
|
||||
const uniqueId = useId();
|
||||
const reloadTrigger = shallowRef(0);
|
||||
const isSuppressing = toRef(() => props.autocomplete === "suppress");
|
||||
const fieldName = toRef(() => {
|
||||
if (!props.name) return void 0;
|
||||
return isSuppressing.value ? `${props.name}-${uniqueId}-${reloadTrigger.value}` : props.name;
|
||||
});
|
||||
const fieldAutocomplete = toRef(() => {
|
||||
return isSuppressing.value ? "off" : props.autocomplete;
|
||||
});
|
||||
return {
|
||||
isSuppressing,
|
||||
fieldAutocomplete,
|
||||
fieldName,
|
||||
update: () => reloadTrigger.value = (/* @__PURE__ */ new Date()).getTime()
|
||||
};
|
||||
}
|
||||
|
||||
// node_modules/vuetify/lib/composables/autofocus.js
|
||||
function useAutofocus(props) {
|
||||
function onIntersect(isIntersecting, entries) {
|
||||
if (!props.autofocus || !isIntersecting) return;
|
||||
const el = entries[0].target;
|
||||
const target = el.matches("input,textarea") ? el : el.querySelector("input,textarea");
|
||||
target?.focus();
|
||||
}
|
||||
return {
|
||||
onIntersect
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
makeAutocompleteProps,
|
||||
useAutocomplete,
|
||||
useAutofocus
|
||||
};
|
||||
//# sourceMappingURL=chunk-IZQZFEAL.js.map
|
||||
Reference in New Issue
Block a user