bootstrap-vue-next 0.44.4 → 0.44.6
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/{BAutocomplete-Depalqe-.mjs → BAutocomplete-QBIaWPY1.mjs} +2 -2
- package/dist/{BAutocomplete-Depalqe-.mjs.map → BAutocomplete-QBIaWPY1.mjs.map} +1 -1
- package/dist/{BAutocomplete-C7Odx4At.js → BAutocomplete-jAlZC6_t.js} +2 -2
- package/dist/{BAutocomplete-C7Odx4At.js.map → BAutocomplete-jAlZC6_t.js.map} +1 -1
- package/dist/{BForm-IL7Rf_27.mjs → BForm-C8I6v7bU.mjs} +2 -2
- package/dist/{BForm-IL7Rf_27.mjs.map → BForm-C8I6v7bU.mjs.map} +1 -1
- package/dist/{BForm-BqHUnHpU.js → BForm-_h0kYDl7.js} +2 -2
- package/dist/{BForm-BqHUnHpU.js.map → BForm-_h0kYDl7.js.map} +1 -1
- package/dist/{BOtpInput-CSCoKHP9.js → BFormOtp-C1YJvwN8.js} +11 -11
- package/dist/BFormOtp-C1YJvwN8.js.map +1 -0
- package/dist/{BOtpInput-Drfkt3x3.mjs → BFormOtp-DYjsPhQN.mjs} +10 -10
- package/dist/BFormOtp-DYjsPhQN.mjs.map +1 -0
- package/dist/{BFormSelect-Dg6OwMl-.mjs → BFormSelect-Bb8yE8vz.mjs} +2 -2
- package/dist/{BFormSelect-Dg6OwMl-.mjs.map → BFormSelect-Bb8yE8vz.mjs.map} +1 -1
- package/dist/{BFormSelect-DqSojuY_.js → BFormSelect-DIKVsG--.js} +2 -2
- package/dist/{BFormSelect-DqSojuY_.js.map → BFormSelect-DIKVsG--.js.map} +1 -1
- package/dist/{BootstrapVueOptions-BU3rzYio.mjs → BootstrapVueOptions-D3flIVqU.mjs} +2 -2
- package/dist/BootstrapVueOptions-D3flIVqU.mjs.map +1 -0
- package/dist/{BootstrapVueOptions-BC3f7hMU.js → BootstrapVueOptions-DbXZtoXX.js} +2 -2
- package/dist/BootstrapVueOptions-DbXZtoXX.js.map +1 -0
- package/dist/bootstrap-vue-next.css +6 -6
- package/dist/bootstrap-vue-next.mjs +6 -6
- package/dist/bootstrap-vue-next.umd.js +6 -6
- package/dist/components/{BOtpInput/BOtpInput.vue.d.mts → BFormOtp/BFormOtp.vue.d.mts} +3 -3
- package/dist/components/{BOtpInput/BOtpInput.vue.d.ts → BFormOtp/BFormOtp.vue.d.ts} +3 -3
- package/dist/components/BFormOtp/index.d.mts +1 -0
- package/dist/components/BFormOtp/index.d.ts +1 -0
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/src/components/BAutocomplete/index.mjs +1 -1
- package/dist/src/components/BAutocomplete/index.umd.js +1 -1
- package/dist/src/components/BForm/index.mjs +1 -1
- package/dist/src/components/BForm/index.umd.js +1 -1
- package/dist/src/components/BFormOtp/index.mjs +2 -0
- package/dist/src/components/BFormOtp/index.umd.js +3 -0
- package/dist/src/components/BFormSelect/index.mjs +1 -1
- package/dist/src/components/BFormSelect/index.umd.js +1 -1
- package/dist/src/components/index.mjs +6 -6
- package/dist/src/components/index.mjs.map +1 -1
- package/dist/src/components/index.umd.js +6 -6
- package/dist/src/components/index.umd.js.map +1 -1
- package/dist/src/resolvers/index.mjs +1 -1
- package/dist/src/resolvers/index.umd.js +1 -1
- package/dist/src/types/index.mjs +1 -1
- package/dist/src/types/index.umd.js +1 -1
- package/dist/types/BootstrapVueOptions.d.mts +3 -3
- package/dist/types/BootstrapVueOptions.d.ts +3 -3
- package/dist/types/ComponentProps.d.mts +1 -1
- package/dist/types/ComponentProps.d.ts +1 -1
- package/dist/{useFormSelect-nQbGZSi8.js → useFormSelect-CiIMUolC.js} +3 -3
- package/dist/useFormSelect-CiIMUolC.js.map +1 -0
- package/dist/{useFormSelect-CANw3ZJG.mjs → useFormSelect-D3gVO4jJ.mjs} +3 -3
- package/dist/useFormSelect-D3gVO4jJ.mjs.map +1 -0
- package/package.json +1 -1
- package/src/components/{BOtpInput/_otp-input.scss → BFormOtp/_form-otp.scss} +4 -4
- package/src/styles/styles.scss +1 -1
- package/dist/BOtpInput-CSCoKHP9.js.map +0 -1
- package/dist/BOtpInput-Drfkt3x3.mjs.map +0 -1
- package/dist/BootstrapVueOptions-BC3f7hMU.js.map +0 -1
- package/dist/BootstrapVueOptions-BU3rzYio.mjs.map +0 -1
- package/dist/components/BOtpInput/index.d.mts +0 -1
- package/dist/components/BOtpInput/index.d.ts +0 -1
- package/dist/src/components/BOtpInput/index.mjs +0 -2
- package/dist/src/components/BOtpInput/index.umd.js +0 -3
- package/dist/useFormSelect-CANw3ZJG.mjs.map +0 -1
- package/dist/useFormSelect-nQbGZSi8.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BOtpInput-Drfkt3x3.mjs","names":[],"sources":["../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/PinInput/PinInputRoot.js","../../../node_modules/.pnpm/reka-ui@2.9.2_vue@3.5.31_typescript@5.9.3_/node_modules/reka-ui/dist/PinInput/PinInputInput.js","../src/components/BOtpInput/BOtpInput.vue","../src/components/BOtpInput/BOtpInput.vue"],"sourcesContent":["//#region src/shared/useArrowNavigation.ts\nconst ignoredElement = [\"INPUT\", \"TEXTAREA\"];\n/**\n* Allow arrow navigation for every html element with data-reka-collection-item tag\n*\n* @param e Keyboard event\n* @param currentElement Event initiator element or any element that wants to handle the navigation\n* @param parentElement Parent element where contains all the collection items, this will collect every item to be used when nav\n* @param options further options\n* @returns the navigated html element or null if none\n*/\nfunction useArrowNavigation(e, currentElement, parentElement, options = {}) {\n\tif (!currentElement || options.enableIgnoredElement && ignoredElement.includes(currentElement.nodeName)) return null;\n\tconst { arrowKeyOptions = \"both\", attributeName = \"[data-reka-collection-item]\", itemsArray = [], loop = true, dir = \"ltr\", preventScroll = true, focus = false } = options;\n\tconst [right, left, up, down, home, end] = [\n\t\te.key === \"ArrowRight\",\n\t\te.key === \"ArrowLeft\",\n\t\te.key === \"ArrowUp\",\n\t\te.key === \"ArrowDown\",\n\t\te.key === \"Home\",\n\t\te.key === \"End\"\n\t];\n\tconst goingVertical = up || down;\n\tconst goingHorizontal = right || left;\n\tif (!home && !end && (!goingVertical && !goingHorizontal || arrowKeyOptions === \"vertical\" && goingHorizontal || arrowKeyOptions === \"horizontal\" && goingVertical)) return null;\n\tconst allCollectionItems = parentElement ? Array.from(parentElement.querySelectorAll(attributeName)) : itemsArray;\n\tif (!allCollectionItems.length) return null;\n\tif (preventScroll) e.preventDefault();\n\tlet item = null;\n\tif (goingHorizontal || goingVertical) {\n\t\tconst goForward = goingVertical ? down : dir === \"ltr\" ? right : left;\n\t\titem = findNextFocusableElement(allCollectionItems, currentElement, {\n\t\t\tgoForward,\n\t\t\tloop\n\t\t});\n\t} else if (home) item = allCollectionItems.at(0) || null;\n\telse if (end) item = allCollectionItems.at(-1) || null;\n\tif (focus) item?.focus();\n\treturn item;\n}\n/**\n* Recursive function to find the next focusable element to avoid disabled elements\n*\n* @param elements Elements to navigate\n* @param currentElement Current active element\n* @param options\n* @returns next focusable element\n*/\nfunction findNextFocusableElement(elements, currentElement, options, iterations = !elements.includes(currentElement) ? elements.length + 1 : elements.length) {\n\tif (--iterations === 0) return null;\n\tconst index = elements.indexOf(currentElement);\n\tlet newIndex;\n\tif (index === -1) newIndex = options.goForward ? 0 : elements.length - 1;\n\telse newIndex = options.goForward ? index + 1 : index - 1;\n\tif (!options.loop && (newIndex < 0 || newIndex >= elements.length)) return null;\n\tconst adjustedNewIndex = (newIndex + elements.length) % elements.length;\n\tconst candidate = elements[adjustedNewIndex];\n\tif (!candidate) return null;\n\tconst isDisabled = candidate.hasAttribute(\"disabled\") && candidate.getAttribute(\"disabled\") !== \"false\";\n\tif (isDisabled) return findNextFocusableElement(elements, candidate, options, iterations);\n\treturn candidate;\n}\n\n//#endregion\nexport { useArrowNavigation };\n//# sourceMappingURL=useArrowNavigation.js.map","import { createContext } from \"../shared/createContext.js\";\nimport { useDirection } from \"../shared/useDirection.js\";\nimport { useForwardExpose } from \"../shared/useForwardExpose.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { VisuallyHiddenInput_default } from \"../VisuallyHidden/VisuallyHiddenInput.js\";\nimport { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx } from \"vue\";\nimport { useVModel } from \"@vueuse/core\";\n\n//#region src/PinInput/PinInputRoot.vue?vue&type=script&setup=true&lang.ts\nconst [injectPinInputRootContext, providePinInputRootContext] = createContext(\"PinInputRoot\");\nvar PinInputRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\tinheritAttrs: false,\n\t__name: \"PinInputRoot\",\n\tprops: {\n\t\tmodelValue: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t},\n\t\tdefaultValue: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t},\n\t\tplaceholder: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: \"\"\n\t\t},\n\t\tmask: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\totp: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\ttype: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"text\"\n\t\t},\n\t\tdir: {\n\t\t\ttype: String,\n\t\t\trequired: false\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tid: {\n\t\t\ttype: String,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false\n\t\t},\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: false\n\t\t},\n\t\trequired: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t}\n\t},\n\temits: [\"update:modelValue\", \"complete\"],\n\tsetup(__props, { emit: __emit }) {\n\t\tconst props = __props;\n\t\tconst emits = __emit;\n\t\tconst { mask, otp, placeholder, type, disabled, dir: propDir } = toRefs(props);\n\t\tconst { forwardRef } = useForwardExpose();\n\t\tconst dir = useDirection(propDir);\n\t\tconst modelValue = useVModel(props, \"modelValue\", emits, {\n\t\t\tdefaultValue: props.defaultValue ?? [],\n\t\t\tpassive: true,\n\t\t\tdeep: true\n\t\t});\n\t\tconst currentModelValue = computed(() => Array.isArray(modelValue.value) ? [...modelValue.value] : []);\n\t\tconst inputElements = ref(/* @__PURE__ */ new Set());\n\t\tfunction onInputElementChange(el) {\n\t\t\tinputElements.value.add(el);\n\t\t}\n\t\tconst isNumericMode = computed(() => props.type === \"number\");\n\t\tconst isCompleted = computed(() => {\n\t\t\tconst modelValues = currentModelValue.value.filter((i) => !!i || isNumericMode.value && i === 0);\n\t\t\treturn modelValues.length === inputElements.value.size;\n\t\t});\n\t\twatch(modelValue, () => {\n\t\t\tif (isCompleted.value) emits(\"complete\", modelValue.value);\n\t\t}, { deep: true });\n\t\tprovidePinInputRootContext({\n\t\t\tmodelValue,\n\t\t\tcurrentModelValue,\n\t\t\tmask,\n\t\t\totp,\n\t\t\tplaceholder,\n\t\t\ttype,\n\t\t\tdir,\n\t\t\tdisabled,\n\t\t\tisCompleted,\n\t\t\tinputElements,\n\t\t\tonInputElementChange,\n\t\t\tisNumericMode\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), mergeProps(_ctx.$attrs, {\n\t\t\t\tref: unref(forwardRef),\n\t\t\t\tdir: unref(dir),\n\t\t\t\t\"data-complete\": isCompleted.value ? \"\" : void 0,\n\t\t\t\t\"data-disabled\": unref(disabled) ? \"\" : void 0\n\t\t\t}), {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\", { modelValue: unref(modelValue) }), createVNode(VisuallyHiddenInput_default, {\n\t\t\t\t\tid: _ctx.id,\n\t\t\t\t\tas: \"input\",\n\t\t\t\t\tfeature: \"focusable\",\n\t\t\t\t\ttabindex: \"-1\",\n\t\t\t\t\tvalue: currentModelValue.value.join(\"\"),\n\t\t\t\t\tname: _ctx.name ?? \"\",\n\t\t\t\t\tdisabled: unref(disabled),\n\t\t\t\t\trequired: _ctx.required,\n\t\t\t\t\tonFocus: _cache[0] || (_cache[0] = ($event) => Array.from(inputElements.value)?.[0]?.focus())\n\t\t\t\t}, null, 8, [\n\t\t\t\t\t\"id\",\n\t\t\t\t\t\"value\",\n\t\t\t\t\t\"name\",\n\t\t\t\t\t\"disabled\",\n\t\t\t\t\t\"required\"\n\t\t\t\t])]),\n\t\t\t\t_: 3\n\t\t\t}, 16, [\n\t\t\t\t\"dir\",\n\t\t\t\t\"data-complete\",\n\t\t\t\t\"data-disabled\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/PinInput/PinInputRoot.vue\nvar PinInputRoot_default = PinInputRoot_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { PinInputRoot_default, injectPinInputRootContext };\n//# sourceMappingURL=PinInputRoot.js.map","import { getActiveElement } from \"../shared/getActiveElement.js\";\nimport { useArrowNavigation } from \"../shared/useArrowNavigation.js\";\nimport { Primitive } from \"../Primitive/Primitive.js\";\nimport { usePrimitiveElement } from \"../Primitive/usePrimitiveElement.js\";\nimport { injectPinInputRootContext } from \"./PinInputRoot.js\";\nimport { computed, createBlock, defineComponent, nextTick, onMounted, onUnmounted, openBlock, renderSlot, unref, watch, withCtx, withKeys } from \"vue\";\n\n//#region src/PinInput/PinInputInput.vue?vue&type=script&setup=true&lang.ts\nvar PinInputInput_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({\n\t__name: \"PinInputInput\",\n\tprops: {\n\t\tindex: {\n\t\t\ttype: Number,\n\t\t\trequired: true\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tasChild: {\n\t\t\ttype: Boolean,\n\t\t\trequired: false\n\t\t},\n\t\tas: {\n\t\t\ttype: null,\n\t\t\trequired: false,\n\t\t\tdefault: \"input\"\n\t\t}\n\t},\n\tsetup(__props) {\n\t\tconst props = __props;\n\t\tconst context = injectPinInputRootContext();\n\t\tconst inputElements = computed(() => Array.from(context.inputElements.value));\n\t\tconst currentValue = computed(() => context.currentModelValue.value[props.index]);\n\t\tconst disabled = computed(() => props.disabled || context.disabled.value);\n\t\tconst isOtpMode = computed(() => context.otp.value);\n\t\tconst isPasswordMode = computed(() => context.mask.value);\n\t\tconst { primitiveElement, currentElement } = usePrimitiveElement();\n\t\tfunction handleInput(event) {\n\t\t\tconst target = event.target;\n\t\t\tif ((event.data?.length ?? 0) > 1) {\n\t\t\t\thandleMultipleCharacter(target.value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (context.isNumericMode.value && !/^\\d*$/.test(target.value)) {\n\t\t\t\ttarget.value = target.value.replace(/\\D/g, \"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttarget.value = event.data || target.value.slice(-1);\n\t\t\tupdateModelValueAt(props.index, target.value);\n\t\t\tconst nextEl = inputElements.value[props.index + 1];\n\t\t\tif (nextEl) nextEl.focus();\n\t\t}\n\t\tfunction updatePlaceholder() {\n\t\t\tnextTick(() => {\n\t\t\t\tconst target = currentElement.value;\n\t\t\t\tif (!target) return;\n\t\t\t\tif (!target.value && target === getActiveElement()) target.placeholder = \"\";\n\t\t\t\telse target.placeholder = context.placeholder.value;\n\t\t\t});\n\t\t}\n\t\tfunction handleKeydown(event) {\n\t\t\tuseArrowNavigation(event, getActiveElement(), void 0, {\n\t\t\t\titemsArray: inputElements.value,\n\t\t\t\tfocus: true,\n\t\t\t\tloop: false,\n\t\t\t\tarrowKeyOptions: \"horizontal\",\n\t\t\t\tdir: context.dir.value\n\t\t\t});\n\t\t}\n\t\tfunction handleBackspace(event) {\n\t\t\tevent.preventDefault();\n\t\t\tconst target = event.target;\n\t\t\tconst value = target.value;\n\t\t\tif (value) updateModelValueAt(props.index, \"\");\n\t\t\telse {\n\t\t\t\tconst prevEl = inputElements.value[props.index - 1];\n\t\t\t\tif (prevEl) {\n\t\t\t\t\tprevEl.focus();\n\t\t\t\t\tupdateModelValueAt(props.index - 1, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfunction handleDelete(event) {\n\t\t\tif (event.key === \"Delete\") {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tupdateModelValueAt(props.index, \"\");\n\t\t\t}\n\t\t}\n\t\tfunction handleFocus(event) {\n\t\t\tif (context.otp.value) {\n\t\t\t\tconst firstEmptyInputIdx = inputElements.value.findIndex((_, idx) => context.currentModelValue.value[idx] === \"\" || context.currentModelValue.value[idx] === void 0);\n\t\t\t\tif (firstEmptyInputIdx !== -1 && firstEmptyInputIdx < props.index) {\n\t\t\t\t\tinputElements.value[firstEmptyInputIdx].focus();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst target = event.target;\n\t\t\ttarget.setSelectionRange(1, 1);\n\t\t\tupdatePlaceholder();\n\t\t}\n\t\tfunction handleBlur(event) {\n\t\t\tupdatePlaceholder();\n\t\t}\n\t\tfunction handlePaste(event) {\n\t\t\tevent.preventDefault();\n\t\t\tconst clipboardData = event.clipboardData;\n\t\t\tif (!clipboardData) return;\n\t\t\tconst values = clipboardData.getData(\"text\");\n\t\t\thandleMultipleCharacter(values);\n\t\t}\n\t\tfunction handleMultipleCharacter(values) {\n\t\t\tconst tempModelValue = [...context.currentModelValue.value];\n\t\t\tconst initialIndex = values.length >= inputElements.value.length ? 0 : props.index;\n\t\t\tconst lastIndex = Math.min(initialIndex + values.length, inputElements.value.length);\n\t\t\tfor (let i = initialIndex; i < lastIndex; i++) {\n\t\t\t\tconst input = inputElements.value[i];\n\t\t\t\tconst value = values[i - initialIndex];\n\t\t\t\tif (context.isNumericMode.value && !/^\\d*$/.test(value)) continue;\n\t\t\t\ttempModelValue[i] = value;\n\t\t\t\tinput.focus();\n\t\t\t}\n\t\t\tcontext.modelValue.value = tempModelValue;\n\t\t\tinputElements.value[lastIndex]?.focus();\n\t\t}\n\t\tfunction removeTrailingEmptyStrings(input) {\n\t\t\tlet i = input.length - 1;\n\t\t\twhile (i >= 0 && input[i] === \"\") {\n\t\t\t\tinput.pop();\n\t\t\t\ti--;\n\t\t\t}\n\t\t\treturn input;\n\t\t}\n\t\tfunction updateModelValueAt(index, value) {\n\t\t\tconst tempModelValue = [...context.currentModelValue.value];\n\t\t\tif (context.isNumericMode.value) {\n\t\t\t\tconst num = +value;\n\t\t\t\tif (value === \"\" || isNaN(num)) delete tempModelValue[index];\n\t\t\t\telse tempModelValue[index] = num;\n\t\t\t} else tempModelValue[index] = value;\n\t\t\tcontext.modelValue.value = removeTrailingEmptyStrings(tempModelValue);\n\t\t}\n\t\twatch(currentValue, updatePlaceholder);\n\t\tonMounted(() => {\n\t\t\tcontext.onInputElementChange(currentElement.value);\n\t\t});\n\t\tonUnmounted(() => {\n\t\t\tcontext.inputElements?.value.delete(currentElement.value);\n\t\t});\n\t\treturn (_ctx, _cache) => {\n\t\t\treturn openBlock(), createBlock(unref(Primitive), {\n\t\t\t\tref_key: \"primitiveElement\",\n\t\t\t\tref: primitiveElement,\n\t\t\t\tautocapitalize: \"none\",\n\t\t\t\tas: _ctx.as,\n\t\t\t\t\"as-child\": _ctx.asChild,\n\t\t\t\tautocomplete: isOtpMode.value ? \"one-time-code\" : \"false\",\n\t\t\t\ttype: isPasswordMode.value ? \"password\" : \"text\",\n\t\t\t\tinputmode: unref(context).isNumericMode.value ? \"numeric\" : \"text\",\n\t\t\t\tpattern: unref(context).isNumericMode.value ? \"[0-9]*\" : void 0,\n\t\t\t\tplaceholder: unref(context).placeholder.value,\n\t\t\t\tvalue: currentValue.value,\n\t\t\t\tdisabled: disabled.value,\n\t\t\t\t\"data-disabled\": disabled.value ? \"\" : void 0,\n\t\t\t\t\"data-complete\": unref(context).isCompleted.value ? \"\" : void 0,\n\t\t\t\t\"aria-label\": `pin input ${_ctx.index + 1} of ${inputElements.value.length}`,\n\t\t\t\tonInput: _cache[0] || (_cache[0] = ($event) => handleInput($event)),\n\t\t\t\tonKeydown: [\n\t\t\t\t\twithKeys(handleKeydown, [\n\t\t\t\t\t\t\"left\",\n\t\t\t\t\t\t\"right\",\n\t\t\t\t\t\t\"up\",\n\t\t\t\t\t\t\"down\",\n\t\t\t\t\t\t\"home\",\n\t\t\t\t\t\t\"end\"\n\t\t\t\t\t]),\n\t\t\t\t\twithKeys(handleBackspace, [\"backspace\"]),\n\t\t\t\t\twithKeys(handleDelete, [\"delete\"])\n\t\t\t\t],\n\t\t\t\tonFocus: handleFocus,\n\t\t\t\tonBlur: handleBlur,\n\t\t\t\tonPaste: handlePaste\n\t\t\t}, {\n\t\t\t\tdefault: withCtx(() => [renderSlot(_ctx.$slots, \"default\")]),\n\t\t\t\t_: 3\n\t\t\t}, 8, [\n\t\t\t\t\"as\",\n\t\t\t\t\"as-child\",\n\t\t\t\t\"autocomplete\",\n\t\t\t\t\"type\",\n\t\t\t\t\"inputmode\",\n\t\t\t\t\"pattern\",\n\t\t\t\t\"placeholder\",\n\t\t\t\t\"value\",\n\t\t\t\t\"disabled\",\n\t\t\t\t\"data-disabled\",\n\t\t\t\t\"data-complete\",\n\t\t\t\t\"aria-label\"\n\t\t\t]);\n\t\t};\n\t}\n});\n\n//#endregion\n//#region src/PinInput/PinInputInput.vue\nvar PinInputInput_default = PinInputInput_vue_vue_type_script_setup_true_lang_default;\n\n//#endregion\nexport { PinInputInput_default };\n//# sourceMappingURL=PinInputInput.js.map","<template>\n <PinInputRoot\n :id=\"computedId\"\n v-model=\"modelValue\"\n :class=\"rootClasses\"\n :disabled=\"props.disabled\"\n :dir=\"props.dir\"\n :mask=\"props.mask\"\n :name=\"props.name\"\n :otp=\"props.otp\"\n :placeholder=\"props.placeholder\"\n :required=\"props.required\"\n :type=\"props.type\"\n @complete=\"emit('complete', $event)\"\n >\n <PinInputInput\n v-for=\"(_, i) in computedLength\"\n :key=\"i\"\n :index=\"i\"\n :disabled=\"props.disabled\"\n as-child\n >\n <BFormInput\n class=\"b-otp-input-field\"\n :aria-label=\"`${props.ariaLabel || 'Pin'} ${i + 1} of ${computedLength}`\"\n :aria-invalid=\"props.ariaInvalid\"\n :autofocus=\"props.autofocus && i === 0\"\n :disabled=\"props.disabled\"\n :form=\"props.form\"\n :plaintext=\"props.plaintext\"\n :readonly=\"props.readonly\"\n :size=\"props.size\"\n :state=\"props.state\"\n />\n </PinInputInput>\n </PinInputRoot>\n</template>\n\n<script setup lang=\"ts\">\nimport {computed} from 'vue'\nimport {useToNumber} from '@vueuse/core'\nimport {PinInputInput, PinInputRoot} from 'reka-ui'\nimport type {BOtpInputProps} from '../../types'\nimport {useDefaults} from '../../composables/useDefaults'\nimport {useId} from '../../composables/useId'\nimport BFormInput from '../BFormInput/BFormInput.vue'\n\nconst lengthDefault = 6\nconst _props = withDefaults(defineProps<Omit<BOtpInputProps, 'modelValue'>>(), {\n ariaInvalid: undefined,\n ariaLabel: undefined,\n autofocus: false,\n dir: undefined,\n disabled: false,\n form: undefined,\n id: undefined,\n length: lengthDefault,\n mask: false,\n name: undefined,\n otp: false,\n placeholder: '',\n plaintext: false,\n readonly: false,\n required: false,\n size: undefined,\n state: null,\n type: 'text',\n})\nconst props = useDefaults(_props, 'BOtpInput')\nconst emit = defineEmits<{\n complete: [value: string[]]\n}>()\n\nconst modelValue = defineModel<BOtpInputProps['modelValue']>({default: () => []})\n\nconst computedId = useId(() => props.id)\nconst lengthNumber = useToNumber(() => props.length, {nanToZero: true, method: 'parseInt'})\nconst computedLength = computed(() => (lengthNumber.value > 0 ? lengthNumber.value : lengthDefault))\n\nconst rootClasses = computed(() => [\n 'b-otp-input',\n 'd-flex',\n 'gap-2',\n 'align-items-center',\n {\n [`b-otp-input-${props.size}`]: !!props.size,\n },\n])\n</script>\n","<template>\n <PinInputRoot\n :id=\"computedId\"\n v-model=\"modelValue\"\n :class=\"rootClasses\"\n :disabled=\"props.disabled\"\n :dir=\"props.dir\"\n :mask=\"props.mask\"\n :name=\"props.name\"\n :otp=\"props.otp\"\n :placeholder=\"props.placeholder\"\n :required=\"props.required\"\n :type=\"props.type\"\n @complete=\"emit('complete', $event)\"\n >\n <PinInputInput\n v-for=\"(_, i) in computedLength\"\n :key=\"i\"\n :index=\"i\"\n :disabled=\"props.disabled\"\n as-child\n >\n <BFormInput\n class=\"b-otp-input-field\"\n :aria-label=\"`${props.ariaLabel || 'Pin'} ${i + 1} of ${computedLength}`\"\n :aria-invalid=\"props.ariaInvalid\"\n :autofocus=\"props.autofocus && i === 0\"\n :disabled=\"props.disabled\"\n :form=\"props.form\"\n :plaintext=\"props.plaintext\"\n :readonly=\"props.readonly\"\n :size=\"props.size\"\n :state=\"props.state\"\n />\n </PinInputInput>\n </PinInputRoot>\n</template>\n\n<script setup lang=\"ts\">\nimport {computed} from 'vue'\nimport {useToNumber} from '@vueuse/core'\nimport {PinInputInput, PinInputRoot} from 'reka-ui'\nimport type {BOtpInputProps} from '../../types'\nimport {useDefaults} from '../../composables/useDefaults'\nimport {useId} from '../../composables/useId'\nimport BFormInput from '../BFormInput/BFormInput.vue'\n\nconst lengthDefault = 6\nconst _props = withDefaults(defineProps<Omit<BOtpInputProps, 'modelValue'>>(), {\n ariaInvalid: undefined,\n ariaLabel: undefined,\n autofocus: false,\n dir: undefined,\n disabled: false,\n form: undefined,\n id: undefined,\n length: lengthDefault,\n mask: false,\n name: undefined,\n otp: false,\n placeholder: '',\n plaintext: false,\n readonly: false,\n required: false,\n size: undefined,\n state: null,\n type: 'text',\n})\nconst props = useDefaults(_props, 'BOtpInput')\nconst emit = defineEmits<{\n complete: [value: string[]]\n}>()\n\nconst modelValue = defineModel<BOtpInputProps['modelValue']>({default: () => []})\n\nconst computedId = useId(() => props.id)\nconst lengthNumber = useToNumber(() => props.length, {nanToZero: true, method: 'parseInt'})\nconst computedLength = computed(() => (lengthNumber.value > 0 ? lengthNumber.value : lengthDefault))\n\nconst rootClasses = computed(() => [\n 'b-otp-input',\n 'd-flex',\n 'gap-2',\n 'align-items-center',\n {\n [`b-otp-input-${props.size}`]: !!props.size,\n },\n])\n</script>\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;AACA,IAAM,iBAAiB,CAAC,SAAS,WAAW;;;;;;;;;;AAU5C,SAAS,mBAAmB,GAAG,gBAAgB,eAAe,UAAU,EAAE,EAAE;AAC3E,KAAI,CAAC,kBAAkB,QAAQ,wBAAwB,eAAe,SAAS,eAAe,SAAS,CAAE,QAAO;CAChH,MAAM,EAAE,kBAAkB,QAAQ,gBAAgB,+BAA+B,aAAa,EAAE,EAAE,OAAO,MAAM,MAAM,OAAO,gBAAgB,MAAM,QAAQ,UAAU;CACpK,MAAM,CAAC,OAAO,MAAM,IAAI,MAAM,MAAM,OAAO;EAC1C,EAAE,QAAQ;EACV,EAAE,QAAQ;EACV,EAAE,QAAQ;EACV,EAAE,QAAQ;EACV,EAAE,QAAQ;EACV,EAAE,QAAQ;EACV;CACD,MAAM,gBAAgB,MAAM;CAC5B,MAAM,kBAAkB,SAAS;AACjC,KAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,mBAAmB,oBAAoB,cAAc,mBAAmB,oBAAoB,gBAAgB,eAAgB,QAAO;CAC5K,MAAM,qBAAqB,gBAAgB,MAAM,KAAK,cAAc,iBAAiB,cAAc,CAAC,GAAG;AACvG,KAAI,CAAC,mBAAmB,OAAQ,QAAO;AACvC,KAAI,cAAe,GAAE,gBAAgB;CACrC,IAAI,OAAO;AACX,KAAI,mBAAmB,cAEtB,QAAO,yBAAyB,oBAAoB,gBAAgB;EACnE,WAFiB,gBAAgB,OAAO,QAAQ,QAAQ,QAAQ;EAGhE;EACA,C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,MAAK,CAAC;OAChB,MAAM,MAAA,MAAK,CAAC;OACZ,OAAO,MAAA,MAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapVueOptions-BC3f7hMU.js","names":[],"sources":["../src/types/BootstrapVueOptions.ts"],"sourcesContent":["import type * as ExportedComponents from '../components'\nimport type * as ExportedDirectives from '../directives'\nimport type * as ExportedComposables from '../composables'\nimport type * as ComponentProps from './ComponentProps'\n\ntype AllComponentsTyped = typeof ExportedComponents\n\nexport type ComponentType = keyof AllComponentsTyped\nexport type DirectiveType = keyof typeof ExportedDirectives\nexport type ComposableType = keyof typeof ExportedComposables\n\nexport type BvnComponents = {\n [K in ComponentType]: AllComponentsTyped[K]\n}\n\nexport const componentsWithExternalPath = {\n BAspect: '/components/BAspect',\n BAccordion: '/components/BAccordion',\n BAccordionItem: '/components/BAccordion',\n BAlert: '/components/BAlert',\n BApp: '/components/BApp',\n BAutocomplete: '/components/BAutocomplete',\n BAvatar: '/components/BAvatar',\n BAvatarGroup: '/components/BAvatar',\n BBadge: '/components/BBadge',\n BBreadcrumb: '/components/BBreadcrumb',\n BBreadcrumbItem: '/components/BBreadcrumb',\n BButton: '/components/BButton',\n BButtonGroup: '/components/BButton',\n BButtonToolbar: '/components/BButton',\n BCloseButton: '/components/BButton',\n BCard: '/components/BCard',\n BCardBody: '/components/BCard',\n BCardFooter: '/components/BCard',\n BCardGroup: '/components/BCard',\n BCardHeader: '/components/BCard',\n BCardImg: '/components/BCard',\n BCardSubtitle: '/components/BCard',\n BCardText: '/components/BCard',\n BCardTitle: '/components/BCard',\n BCarousel: '/components/BCarousel',\n BCarouselSlide: '/components/BCarousel',\n BCol: '/components/BContainer',\n BCollapse: '/components/BCollapse',\n BContainer: '/components/BContainer',\n BDateField: '/components/BDateField',\n BDatePicker: '/components/BDatePicker',\n BDateRangeField: '/components/BDateField',\n BDateRangePicker: '/components/BDatePicker',\n BDropdown: '/components/BDropdown',\n BDropdownDivider: '/components/BDropdown',\n BDropdownForm: '/components/BDropdown',\n BDropdownGroup: '/components/BDropdown',\n BDropdownHeader: '/components/BDropdown',\n BDropdownItem: '/components/BDropdown',\n BDropdownItemButton: '/components/BDropdown',\n BDropdownText: '/components/BDropdown',\n BForm: '/components/BForm',\n BFormCheckbox: '/components/BFormCheckbox',\n BFormCheckboxGroup: '/components/BFormCheckbox',\n BFormDatalist: '/components/BForm',\n BFormFile: '/components/BFormFile',\n BFormFloatingLabel: '/components/BForm',\n BFormGroup: '/components/BFormGroup',\n BFormInput: '/components/BFormInput',\n BFormInvalidFeedback: '/components/BForm',\n BFormRadio: '/components/BFormRadio',\n BFormRadioGroup: '/components/BFormRadio',\n BFormRating: '/components/BFormRating',\n BFormRow: '/components/BForm',\n BFormSelect: '/components/BFormSelect',\n BFormSelectOption: '/components/BFormSelect',\n BFormSelectOptionGroup: '/components/BFormSelect',\n BFormSpinbutton: '/components/BFormSpinbutton',\n BFormTag: '/components/BFormTags',\n BFormTags: '/components/BFormTags',\n BFormText: '/components/BForm',\n BFormTextarea: '/components/BFormTextarea',\n BFormValidFeedback: '/components/BForm',\n BImg: '/components/BImg',\n BInput: '/components/BFormInput',\n BInputGroup: '/components/BInputGroup',\n BInputGroupText: '/components/BInputGroup',\n BListGroup: '/components/BListGroup',\n BListGroupItem: '/components/BListGroup',\n BModal: '/components/BModal',\n BNav: '/components/BNav',\n BNavForm: '/components/BNav',\n BNavItem: '/components/BNav',\n BNavItemDropdown: '/components/BNav',\n BNavText: '/components/BNav',\n BNavbar: '/components/BNavbar',\n BNavbarBrand: '/components/BNavbar',\n BNavbarNav: '/components/BNavbar',\n BNavbarToggle: '/components/BNavbar',\n BOffcanvas: '/components/BOffcanvas',\n BOtpInput: '/components/BOtpInput',\n BOverlay: '/components/BOverlay',\n BOrchestrator: '/components/BApp',\n BPagination: '/components/BPagination',\n BPlaceholder: '/components/BPlaceholder',\n BPlaceholderButton: '/components/BPlaceholder',\n BPlaceholderCard: '/components/BPlaceholder',\n BPlaceholderTable: '/components/BPlaceholder',\n BPlaceholderWrapper: '/components/BPlaceholder',\n BPopover: '/components/BPopover',\n BProgress: '/components/BProgress',\n BRow: '/components/BContainer',\n BSpinner: '/components/BSpinner',\n BTab: '/components/BTabs',\n BTabs: '/components/BTabs',\n BToast: '/components/BToast',\n BTooltip: '/components/BTooltip',\n BLink: '/components/BLink',\n BProgressBar: '/components/BProgress',\n BTableSimple: '/components/BTable',\n BTableLite: '/components/BTable',\n BTable: '/components/BTable',\n BTbody: '/components/BTable',\n BTd: '/components/BTable',\n BTh: '/components/BTable',\n BThead: '/components/BTable',\n BTfoot: '/components/BTable',\n BTr: '/components/BTable',\n BTimeField: '/components/BTimeField',\n BTimeRangeField: '/components/BDateField',\n} as const satisfies Record<ComponentType, string>\nexport const componentNames = Object.freeze(\n Object.keys(componentsWithExternalPath) as ComponentType[]\n)\n\nexport const directivesWithExternalPath = {\n vBColorMode: '/directives/BColorMode',\n vBModal: '/directives/BModal',\n vBPopover: '/directives/BPopover',\n vBScrollspy: '/directives/BScrollspy',\n vBToggle: '/directives/BToggle',\n vBTooltip: '/directives/BTooltip',\n} as const satisfies Record<DirectiveType, string>\nexport const directiveNames = Object.freeze(\n Object.keys(directivesWithExternalPath) as DirectiveType[]\n)\n\nexport const composablesWithExternalPath = {\n useBreadcrumb: '/composables/useBreadcrumb',\n useColorMode: '/composables/useColorMode',\n useModal: '/composables/useModal',\n useModalController: '/composables/useModal',\n useScrollLock: '/composables/useScrollLock',\n useScrollspy: '/composables/useScrollspy',\n useToast: '/composables/useToast',\n useToastController: '/composables/useToast',\n useToggle: '/composables/useToggle',\n usePopover: '/composables/usePopover',\n usePopoverController: '/composables/usePopover',\n useRegistry: '/composables/useRegistry',\n useProvideDefaults: '/composables/useProvideDefaults',\n useOrchestratorRegistry: '/composables/orchestratorShared',\n} as const satisfies Record<ComposableType, string>\nexport const composableNames = Object.freeze(\n Object.keys(composablesWithExternalPath) as ComposableType[]\n)\n\nexport type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {all: boolean}\nexport interface BootstrapVueOptions {\n /**\n * @default true\n */\n orchestrator?: boolean\n /**\n * @default true\n */\n registries?: boolean\n /**\n * @default false\n */\n rtl?:\n | boolean\n | {\n /**\n * @default false\n */\n rtlInitial: boolean\n /**\n * @default undefined\n */\n localeInitial: string | undefined\n }\n /**\n * @default true\n */\n components?: Partial<\n BvnComponentProps & {\n /**\n * @hint Globally sets all props with the matching name\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n global: Record<string, any>\n }\n >\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype UnmappedComponentProps<BFormSelectOption = any, BTableLite = any, BTable = any> = {\n BAspect: ComponentProps.BAspectProps\n BAutocomplete: ComponentProps.BAutocompleteProps\n BLink: ComponentProps.BLinkProps\n BAccordion: ComponentProps.BAccordionProps\n BApp: ComponentProps.BAppProps\n BDropdownDivider: ComponentProps.BDropdownDividerProps\n BDropdownGroup: ComponentProps.BDropdownGroupProps\n BDropdownItem: ComponentProps.BDropdownItemProps\n BDropdownItemButton: ComponentProps.BDropdownItemButtonProps\n BDropdownText: ComponentProps.BDropdownTextProps\n BFormFloatingLabel: ComponentProps.BFormFloatingLabelProps\n BFormRow: ComponentProps.BFormRowProps\n BFormText: ComponentProps.BFormTextProps\n BFormCheckbox: ComponentProps.BFormCheckboxProps\n BFormCheckboxGroup: ComponentProps.BFormCheckboxGroupProps\n BFormDatalist: ComponentProps.BFormDatalistProps\n BFormFile: ComponentProps.BFormFileProps\n BFormInput: ComponentProps.BFormInputProps\n BFormRadio: ComponentProps.BFormRadioProps\n BFormRadioGroup: ComponentProps.BFormRadioGroupProps\n BFormRating: ComponentProps.BFormRatingProps\n BFormSelect: ComponentProps.BFormSelectProps\n BFormSelectOption: ComponentProps.BFormSelectOptionProps<BFormSelectOption>\n BFormSelectOptionGroup: ComponentProps.BFormSelectOptionGroupProps\n BFormSpinbutton: ComponentProps.BFormSpinbuttonProps\n BFormTag: ComponentProps.BFormTagProps\n BFormTags: ComponentProps.BFormTagsProps\n BFormTextarea: ComponentProps.BFormTextareaProps\n BInputGroup: ComponentProps.BInputGroupProps\n BInputGroupText: ComponentProps.BInputGroupTextProps\n BListGroup: ComponentProps.BListGroupProps\n BListGroupItem: ComponentProps.BListGroupItemProps\n BNav: ComponentProps.BNavProps\n BNavForm: ComponentProps.BNavFormProps\n BNavItem: ComponentProps.BNavItemProps\n BNavText: ComponentProps.BNavTextProps\n BNavbar: ComponentProps.BNavbarProps\n BNavbarBrand: ComponentProps.BNavbarBrandProps\n BNavbarNav: ComponentProps.BNavbarNavProps\n BNavbarToggle: ComponentProps.BNavbarToggleProps\n BOffcanvas: ComponentProps.BOffcanvasProps\n BOrchestrator: ComponentProps.BAppProps\n BOverlay: ComponentProps.BOverlayProps\n BPagination: ComponentProps.BPaginationProps\n BPlaceholder: ComponentProps.BPlaceholderProps\n BPlaceholderButton: ComponentProps.BPlaceholderButtonProps\n BPlaceholderCard: ComponentProps.BPlaceholderCardProps\n BPlaceholderTable: ComponentProps.BPlaceholderTableProps\n BPlaceholderWrapper: ComponentProps.BPlaceholderWrapperProps\n BProgress: ComponentProps.BProgressProps\n BTab: ComponentProps.BTabProps\n BTabs: ComponentProps.BTabsProps\n BCollapse: ComponentProps.BCollapseProps\n BContainer: ComponentProps.BContainerProps\n BSpinner: ComponentProps.BSpinnerProps\n BAccordionItem: ComponentProps.BAccordionItemProps\n BAlert: ComponentProps.BAlertProps\n BAvatar: ComponentProps.BAvatarProps\n BAvatarGroup: ComponentProps.BAvatarGroupProps\n BBadge: ComponentProps.BBadgeProps\n BBreadcrumb: ComponentProps.BBreadcrumbProps\n BBreadcrumbItem: ComponentProps.BBreadcrumbItemProps\n BButton: ComponentProps.BButtonProps\n BButtonGroup: ComponentProps.BButtonGroupProps\n BButtonToolbar: ComponentProps.BButtonToolbarProps\n BCloseButton: ComponentProps.BCloseButtonProps\n BCard: ComponentProps.BCardProps\n BCardBody: ComponentProps.BCardBodyProps\n BCardGroup: ComponentProps.BCardGroupProps\n BCardSubtitle: ComponentProps.BCardSubtitleProps\n BCardText: ComponentProps.BCardTextProps\n BCardTitle: ComponentProps.BCardTitleProps\n BCarousel: ComponentProps.BCarouselProps\n BCarouselSlide: ComponentProps.BCarouselSlideProps\n BImg: ComponentProps.BImgProps\n BForm: ComponentProps.BFormProps\n BTableSimple: ComponentProps.BTableSimpleProps\n BTableLite: ComponentProps.BTableLiteProps<BTableLite>\n BTable: ComponentProps.BTableProps<BTable>\n BTr: ComponentProps.BTrProps\n BThead: ComponentProps.BTheadProps\n BTfoot: ComponentProps.BTfootProps\n BTd: ComponentProps.BTdProps\n BTbody: ComponentProps.BTbodyProps\n BTh: ComponentProps.BThProps\n BProgressBar: ComponentProps.BProgressBarProps\n BInputGroupAddon: ComponentProps.BInputGroupAddonProps\n BDropdown: ComponentProps.BDropdownProps\n BToast: ComponentProps.BToastProps\n BPopover: ComponentProps.BPopoverProps\n BTooltip: ComponentProps.BTooltipProps\n BModal: ComponentProps.BModalProps\n BCardFooter: ComponentProps.BCardFooterProps\n BCardHeader: ComponentProps.BCardHeaderProps\n BCardImg: ComponentProps.BCardImgProps\n BCol: ComponentProps.BColProps\n BDropdownForm: never\n BDropdownHeader: never\n BFormInvalidFeedback: ComponentProps.BFormInvalidFeedbackProps\n BFormValidFeedback: ComponentProps.BFormValidFeedbackProps\n BFormGroup: ComponentProps.BFormGroupProps\n BNavItemDropdown: ComponentProps.BDropdownProps\n BRow: ComponentProps.BRowProps\n BInput: ComponentProps.BFormInputProps\n BTimeField: ComponentProps.BTimeFieldProps\n BOtpInput: ComponentProps.BOtpInputProps\n BDateField: ComponentProps.BDateFieldProps\n BDatePicker: ComponentProps.BDatePickerProps\n BDateRangeField: ComponentProps.BDateRangeFieldProps\n BDateRangePicker: ComponentProps.BDateRangePickerProps\n BTimeRangeField: ComponentProps.BTimeRangeFieldProps\n showHide: ComponentProps.ShowHideProps\n}\n\nexport type BvnComponentProps = {\n [K in ComponentType]: UnmappedComponentProps[K]\n}\n\nexport type showHide = ComponentProps.ShowHideProps\n"],"mappings":";AAeA,IAAa,6BAA6B;CACxC,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,QAAQ;CACR,MAAM;CACN,eAAe;CACf,SAAS;CACT,cAAc;CACd,QAAQ;CACR,aAAa;CACb,iBAAiB;CACjB,SAAS;CACT,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,OAAO;CACP,WAAW;CACX,aAAa;CACb,YAAY;CACZ,aAAa;CACb,UAAU;CACV,eAAe;CACf,WAAW;CACX,YAAY;CACZ,WAAW;CACX,gBAAgB;CAChB,MAAM;CACN,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,WAAW;CACX,kBAAkB;CAClB,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,eAAe;CACf,qBAAqB;CACrB,eAAe;CACf,OAAO;CACP,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf,WAAW;CACX,oBAAoB;CACpB,YAAY;CACZ,YAAY;CACZ,sBAAsB;CACtB,YAAY;CACZ,iBAAiB;CACjB,aAAa;CACb,UAAU;CACV,aAAa;CACb,mBAAmB;CACnB,wBAAwB;CACxB,iBAAiB;CACjB,UAAU;CACV,WAAW;CACX,WAAW;CACX,eAAe;CACf,oBAAoB;CACpB,MAAM;CACN,QAAQ;CACR,aAAa;CACb,iBAAiB;CACjB,YAAY;CACZ,gBAAgB;CAChB,QAAQ;CACR,MAAM;CACN,UAAU;CACV,UAAU;CACV,kBAAkB;CAClB,UAAU;CACV,SAAS;CACT,cAAc;CACd,YAAY;CACZ,eAAe;CACf,YAAY;CACZ,WAAW;CACX,UAAU;CACV,eAAe;CACf,aAAa;CACb,cAAc;CACd,oBAAoB;CACpB,kBAAkB;CAClB,mBAAmB;CACnB,qBAAqB;CACrB,UAAU;CACV,WAAW;CACX,MAAM;CACN,UAAU;CACV,MAAM;CACN,OAAO;CACP,QAAQ;CACR,UAAU;CACV,OAAO;CACP,cAAc;CACd,cAAc;CACd,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,KAAK;CACL,KAAK;CACL,QAAQ;CACR,QAAQ;CACR,KAAK;CACL,YAAY;CACZ,iBAAiB;CAClB;AACD,IAAa,iBAAiB,OAAO,OACnC,OAAO,KAAK,2BAA2B,CACxC;AAED,IAAa,6BAA6B;CACxC,aAAa;CACb,SAAS;CACT,WAAW;CACX,aAAa;CACb,UAAU;CACV,WAAW;CACZ;AACD,IAAa,iBAAiB,OAAO,OACnC,OAAO,KAAK,2BAA2B,CACxC;AAED,IAAa,8BAA8B;CACzC,eAAe;CACf,cAAc;CACd,UAAU;CACV,oBAAoB;CACpB,eAAe;CACf,cAAc;CACd,UAAU;CACV,oBAAoB;CACpB,WAAW;CACX,YAAY;CACZ,sBAAsB;CACtB,aAAa;CACb,oBAAoB;CACpB,yBAAyB;CAC1B;AACD,IAAa,kBAAkB,OAAO,OACpC,OAAO,KAAK,4BAA4B,CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapVueOptions-BU3rzYio.mjs","names":[],"sources":["../src/types/BootstrapVueOptions.ts"],"sourcesContent":["import type * as ExportedComponents from '../components'\nimport type * as ExportedDirectives from '../directives'\nimport type * as ExportedComposables from '../composables'\nimport type * as ComponentProps from './ComponentProps'\n\ntype AllComponentsTyped = typeof ExportedComponents\n\nexport type ComponentType = keyof AllComponentsTyped\nexport type DirectiveType = keyof typeof ExportedDirectives\nexport type ComposableType = keyof typeof ExportedComposables\n\nexport type BvnComponents = {\n [K in ComponentType]: AllComponentsTyped[K]\n}\n\nexport const componentsWithExternalPath = {\n BAspect: '/components/BAspect',\n BAccordion: '/components/BAccordion',\n BAccordionItem: '/components/BAccordion',\n BAlert: '/components/BAlert',\n BApp: '/components/BApp',\n BAutocomplete: '/components/BAutocomplete',\n BAvatar: '/components/BAvatar',\n BAvatarGroup: '/components/BAvatar',\n BBadge: '/components/BBadge',\n BBreadcrumb: '/components/BBreadcrumb',\n BBreadcrumbItem: '/components/BBreadcrumb',\n BButton: '/components/BButton',\n BButtonGroup: '/components/BButton',\n BButtonToolbar: '/components/BButton',\n BCloseButton: '/components/BButton',\n BCard: '/components/BCard',\n BCardBody: '/components/BCard',\n BCardFooter: '/components/BCard',\n BCardGroup: '/components/BCard',\n BCardHeader: '/components/BCard',\n BCardImg: '/components/BCard',\n BCardSubtitle: '/components/BCard',\n BCardText: '/components/BCard',\n BCardTitle: '/components/BCard',\n BCarousel: '/components/BCarousel',\n BCarouselSlide: '/components/BCarousel',\n BCol: '/components/BContainer',\n BCollapse: '/components/BCollapse',\n BContainer: '/components/BContainer',\n BDateField: '/components/BDateField',\n BDatePicker: '/components/BDatePicker',\n BDateRangeField: '/components/BDateField',\n BDateRangePicker: '/components/BDatePicker',\n BDropdown: '/components/BDropdown',\n BDropdownDivider: '/components/BDropdown',\n BDropdownForm: '/components/BDropdown',\n BDropdownGroup: '/components/BDropdown',\n BDropdownHeader: '/components/BDropdown',\n BDropdownItem: '/components/BDropdown',\n BDropdownItemButton: '/components/BDropdown',\n BDropdownText: '/components/BDropdown',\n BForm: '/components/BForm',\n BFormCheckbox: '/components/BFormCheckbox',\n BFormCheckboxGroup: '/components/BFormCheckbox',\n BFormDatalist: '/components/BForm',\n BFormFile: '/components/BFormFile',\n BFormFloatingLabel: '/components/BForm',\n BFormGroup: '/components/BFormGroup',\n BFormInput: '/components/BFormInput',\n BFormInvalidFeedback: '/components/BForm',\n BFormRadio: '/components/BFormRadio',\n BFormRadioGroup: '/components/BFormRadio',\n BFormRating: '/components/BFormRating',\n BFormRow: '/components/BForm',\n BFormSelect: '/components/BFormSelect',\n BFormSelectOption: '/components/BFormSelect',\n BFormSelectOptionGroup: '/components/BFormSelect',\n BFormSpinbutton: '/components/BFormSpinbutton',\n BFormTag: '/components/BFormTags',\n BFormTags: '/components/BFormTags',\n BFormText: '/components/BForm',\n BFormTextarea: '/components/BFormTextarea',\n BFormValidFeedback: '/components/BForm',\n BImg: '/components/BImg',\n BInput: '/components/BFormInput',\n BInputGroup: '/components/BInputGroup',\n BInputGroupText: '/components/BInputGroup',\n BListGroup: '/components/BListGroup',\n BListGroupItem: '/components/BListGroup',\n BModal: '/components/BModal',\n BNav: '/components/BNav',\n BNavForm: '/components/BNav',\n BNavItem: '/components/BNav',\n BNavItemDropdown: '/components/BNav',\n BNavText: '/components/BNav',\n BNavbar: '/components/BNavbar',\n BNavbarBrand: '/components/BNavbar',\n BNavbarNav: '/components/BNavbar',\n BNavbarToggle: '/components/BNavbar',\n BOffcanvas: '/components/BOffcanvas',\n BOtpInput: '/components/BOtpInput',\n BOverlay: '/components/BOverlay',\n BOrchestrator: '/components/BApp',\n BPagination: '/components/BPagination',\n BPlaceholder: '/components/BPlaceholder',\n BPlaceholderButton: '/components/BPlaceholder',\n BPlaceholderCard: '/components/BPlaceholder',\n BPlaceholderTable: '/components/BPlaceholder',\n BPlaceholderWrapper: '/components/BPlaceholder',\n BPopover: '/components/BPopover',\n BProgress: '/components/BProgress',\n BRow: '/components/BContainer',\n BSpinner: '/components/BSpinner',\n BTab: '/components/BTabs',\n BTabs: '/components/BTabs',\n BToast: '/components/BToast',\n BTooltip: '/components/BTooltip',\n BLink: '/components/BLink',\n BProgressBar: '/components/BProgress',\n BTableSimple: '/components/BTable',\n BTableLite: '/components/BTable',\n BTable: '/components/BTable',\n BTbody: '/components/BTable',\n BTd: '/components/BTable',\n BTh: '/components/BTable',\n BThead: '/components/BTable',\n BTfoot: '/components/BTable',\n BTr: '/components/BTable',\n BTimeField: '/components/BTimeField',\n BTimeRangeField: '/components/BDateField',\n} as const satisfies Record<ComponentType, string>\nexport const componentNames = Object.freeze(\n Object.keys(componentsWithExternalPath) as ComponentType[]\n)\n\nexport const directivesWithExternalPath = {\n vBColorMode: '/directives/BColorMode',\n vBModal: '/directives/BModal',\n vBPopover: '/directives/BPopover',\n vBScrollspy: '/directives/BScrollspy',\n vBToggle: '/directives/BToggle',\n vBTooltip: '/directives/BTooltip',\n} as const satisfies Record<DirectiveType, string>\nexport const directiveNames = Object.freeze(\n Object.keys(directivesWithExternalPath) as DirectiveType[]\n)\n\nexport const composablesWithExternalPath = {\n useBreadcrumb: '/composables/useBreadcrumb',\n useColorMode: '/composables/useColorMode',\n useModal: '/composables/useModal',\n useModalController: '/composables/useModal',\n useScrollLock: '/composables/useScrollLock',\n useScrollspy: '/composables/useScrollspy',\n useToast: '/composables/useToast',\n useToastController: '/composables/useToast',\n useToggle: '/composables/useToggle',\n usePopover: '/composables/usePopover',\n usePopoverController: '/composables/usePopover',\n useRegistry: '/composables/useRegistry',\n useProvideDefaults: '/composables/useProvideDefaults',\n useOrchestratorRegistry: '/composables/orchestratorShared',\n} as const satisfies Record<ComposableType, string>\nexport const composableNames = Object.freeze(\n Object.keys(composablesWithExternalPath) as ComposableType[]\n)\n\nexport type ConfigurationOption<T extends string> = Partial<Record<T, boolean>> & {all: boolean}\nexport interface BootstrapVueOptions {\n /**\n * @default true\n */\n orchestrator?: boolean\n /**\n * @default true\n */\n registries?: boolean\n /**\n * @default false\n */\n rtl?:\n | boolean\n | {\n /**\n * @default false\n */\n rtlInitial: boolean\n /**\n * @default undefined\n */\n localeInitial: string | undefined\n }\n /**\n * @default true\n */\n components?: Partial<\n BvnComponentProps & {\n /**\n * @hint Globally sets all props with the matching name\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n global: Record<string, any>\n }\n >\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype UnmappedComponentProps<BFormSelectOption = any, BTableLite = any, BTable = any> = {\n BAspect: ComponentProps.BAspectProps\n BAutocomplete: ComponentProps.BAutocompleteProps\n BLink: ComponentProps.BLinkProps\n BAccordion: ComponentProps.BAccordionProps\n BApp: ComponentProps.BAppProps\n BDropdownDivider: ComponentProps.BDropdownDividerProps\n BDropdownGroup: ComponentProps.BDropdownGroupProps\n BDropdownItem: ComponentProps.BDropdownItemProps\n BDropdownItemButton: ComponentProps.BDropdownItemButtonProps\n BDropdownText: ComponentProps.BDropdownTextProps\n BFormFloatingLabel: ComponentProps.BFormFloatingLabelProps\n BFormRow: ComponentProps.BFormRowProps\n BFormText: ComponentProps.BFormTextProps\n BFormCheckbox: ComponentProps.BFormCheckboxProps\n BFormCheckboxGroup: ComponentProps.BFormCheckboxGroupProps\n BFormDatalist: ComponentProps.BFormDatalistProps\n BFormFile: ComponentProps.BFormFileProps\n BFormInput: ComponentProps.BFormInputProps\n BFormRadio: ComponentProps.BFormRadioProps\n BFormRadioGroup: ComponentProps.BFormRadioGroupProps\n BFormRating: ComponentProps.BFormRatingProps\n BFormSelect: ComponentProps.BFormSelectProps\n BFormSelectOption: ComponentProps.BFormSelectOptionProps<BFormSelectOption>\n BFormSelectOptionGroup: ComponentProps.BFormSelectOptionGroupProps\n BFormSpinbutton: ComponentProps.BFormSpinbuttonProps\n BFormTag: ComponentProps.BFormTagProps\n BFormTags: ComponentProps.BFormTagsProps\n BFormTextarea: ComponentProps.BFormTextareaProps\n BInputGroup: ComponentProps.BInputGroupProps\n BInputGroupText: ComponentProps.BInputGroupTextProps\n BListGroup: ComponentProps.BListGroupProps\n BListGroupItem: ComponentProps.BListGroupItemProps\n BNav: ComponentProps.BNavProps\n BNavForm: ComponentProps.BNavFormProps\n BNavItem: ComponentProps.BNavItemProps\n BNavText: ComponentProps.BNavTextProps\n BNavbar: ComponentProps.BNavbarProps\n BNavbarBrand: ComponentProps.BNavbarBrandProps\n BNavbarNav: ComponentProps.BNavbarNavProps\n BNavbarToggle: ComponentProps.BNavbarToggleProps\n BOffcanvas: ComponentProps.BOffcanvasProps\n BOrchestrator: ComponentProps.BAppProps\n BOverlay: ComponentProps.BOverlayProps\n BPagination: ComponentProps.BPaginationProps\n BPlaceholder: ComponentProps.BPlaceholderProps\n BPlaceholderButton: ComponentProps.BPlaceholderButtonProps\n BPlaceholderCard: ComponentProps.BPlaceholderCardProps\n BPlaceholderTable: ComponentProps.BPlaceholderTableProps\n BPlaceholderWrapper: ComponentProps.BPlaceholderWrapperProps\n BProgress: ComponentProps.BProgressProps\n BTab: ComponentProps.BTabProps\n BTabs: ComponentProps.BTabsProps\n BCollapse: ComponentProps.BCollapseProps\n BContainer: ComponentProps.BContainerProps\n BSpinner: ComponentProps.BSpinnerProps\n BAccordionItem: ComponentProps.BAccordionItemProps\n BAlert: ComponentProps.BAlertProps\n BAvatar: ComponentProps.BAvatarProps\n BAvatarGroup: ComponentProps.BAvatarGroupProps\n BBadge: ComponentProps.BBadgeProps\n BBreadcrumb: ComponentProps.BBreadcrumbProps\n BBreadcrumbItem: ComponentProps.BBreadcrumbItemProps\n BButton: ComponentProps.BButtonProps\n BButtonGroup: ComponentProps.BButtonGroupProps\n BButtonToolbar: ComponentProps.BButtonToolbarProps\n BCloseButton: ComponentProps.BCloseButtonProps\n BCard: ComponentProps.BCardProps\n BCardBody: ComponentProps.BCardBodyProps\n BCardGroup: ComponentProps.BCardGroupProps\n BCardSubtitle: ComponentProps.BCardSubtitleProps\n BCardText: ComponentProps.BCardTextProps\n BCardTitle: ComponentProps.BCardTitleProps\n BCarousel: ComponentProps.BCarouselProps\n BCarouselSlide: ComponentProps.BCarouselSlideProps\n BImg: ComponentProps.BImgProps\n BForm: ComponentProps.BFormProps\n BTableSimple: ComponentProps.BTableSimpleProps\n BTableLite: ComponentProps.BTableLiteProps<BTableLite>\n BTable: ComponentProps.BTableProps<BTable>\n BTr: ComponentProps.BTrProps\n BThead: ComponentProps.BTheadProps\n BTfoot: ComponentProps.BTfootProps\n BTd: ComponentProps.BTdProps\n BTbody: ComponentProps.BTbodyProps\n BTh: ComponentProps.BThProps\n BProgressBar: ComponentProps.BProgressBarProps\n BInputGroupAddon: ComponentProps.BInputGroupAddonProps\n BDropdown: ComponentProps.BDropdownProps\n BToast: ComponentProps.BToastProps\n BPopover: ComponentProps.BPopoverProps\n BTooltip: ComponentProps.BTooltipProps\n BModal: ComponentProps.BModalProps\n BCardFooter: ComponentProps.BCardFooterProps\n BCardHeader: ComponentProps.BCardHeaderProps\n BCardImg: ComponentProps.BCardImgProps\n BCol: ComponentProps.BColProps\n BDropdownForm: never\n BDropdownHeader: never\n BFormInvalidFeedback: ComponentProps.BFormInvalidFeedbackProps\n BFormValidFeedback: ComponentProps.BFormValidFeedbackProps\n BFormGroup: ComponentProps.BFormGroupProps\n BNavItemDropdown: ComponentProps.BDropdownProps\n BRow: ComponentProps.BRowProps\n BInput: ComponentProps.BFormInputProps\n BTimeField: ComponentProps.BTimeFieldProps\n BOtpInput: ComponentProps.BOtpInputProps\n BDateField: ComponentProps.BDateFieldProps\n BDatePicker: ComponentProps.BDatePickerProps\n BDateRangeField: ComponentProps.BDateRangeFieldProps\n BDateRangePicker: ComponentProps.BDateRangePickerProps\n BTimeRangeField: ComponentProps.BTimeRangeFieldProps\n showHide: ComponentProps.ShowHideProps\n}\n\nexport type BvnComponentProps = {\n [K in ComponentType]: UnmappedComponentProps[K]\n}\n\nexport type showHide = ComponentProps.ShowHideProps\n"],"mappings":";AAeA,IAAa,6BAA6B;CACxC,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,QAAQ;CACR,MAAM;CACN,eAAe;CACf,SAAS;CACT,cAAc;CACd,QAAQ;CACR,aAAa;CACb,iBAAiB;CACjB,SAAS;CACT,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,OAAO;CACP,WAAW;CACX,aAAa;CACb,YAAY;CACZ,aAAa;CACb,UAAU;CACV,eAAe;CACf,WAAW;CACX,YAAY;CACZ,WAAW;CACX,gBAAgB;CAChB,MAAM;CACN,WAAW;CACX,YAAY;CACZ,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,kBAAkB;CAClB,WAAW;CACX,kBAAkB;CAClB,eAAe;CACf,gBAAgB;CAChB,iBAAiB;CACjB,eAAe;CACf,qBAAqB;CACrB,eAAe;CACf,OAAO;CACP,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf,WAAW;CACX,oBAA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 -1 +0,0 @@
|
|
|
1
|
-
export { default as BOtpInput } from './BOtpInput.vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BOtpInput } from './BOtpInput.vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSelect-CANw3ZJG.mjs","names":[],"sources":["../src/composables/useFormSelect.ts"],"sourcesContent":["import {computed, type MaybeRefOrGetter, toValue} from 'vue'\nimport {get} from '../utils/object'\nimport type {ComplexSelectOptionRaw, SelectOption} from '../types'\n\nexport const useFormSelect = (\n options: MaybeRefOrGetter<ReadonlyArray<unknown>>,\n props: MaybeRefOrGetter<{\n valueField: string\n textField: string\n disabledField: string\n optionsField?: string\n labelField?: string\n }>\n) => {\n const isComplex = (option: unknown): option is ComplexSelectOptionRaw =>\n typeof option === 'object' && option !== null && 'options' in option\n\n const normalizeOption = (option: unknown): ComplexSelectOptionRaw | SelectOption => {\n const propsValue = toValue(props)\n\n if (typeof option === 'string') {\n return {value: option, text: option} satisfies SelectOption\n }\n if (typeof option === 'number' || typeof option === 'boolean') {\n return {value: option, text: `${option}`} satisfies SelectOption\n }\n if (option instanceof Date) {\n return {value: option, text: option.toLocaleString()} satisfies SelectOption\n }\n\n const value: unknown = get(option, propsValue.valueField)\n const text: string = get(option, propsValue.textField)\n const disabled: boolean = get(option, propsValue.disabledField)\n\n const opts: undefined | unknown[] = propsValue.optionsField\n ? get(option, propsValue.optionsField)\n : undefined\n const label: string | undefined =\n (propsValue.labelField ? get(option, propsValue.labelField) : undefined) || text\n\n if (opts !== undefined) {\n return {\n label,\n options: opts,\n } as ComplexSelectOptionRaw\n }\n\n return {\n ...(typeof option === 'object' ? option : undefined),\n value,\n text,\n disabled,\n } satisfies SelectOption\n }\n\n const normalizeOptions = (\n opts: ReadonlyArray<unknown>\n ): (ComplexSelectOptionRaw | SelectOption)[] => opts.map((option) => normalizeOption(option))\n\n const normalizedOptions = computed(() => normalizeOptions(toValue(options)))\n\n return {normalizedOptions, isComplex}\n}\n"],"mappings":";;;AAIA,IAAa,iBACX,SACA,UAOG;CACH,MAAM,aAAa,WACjB,OAAO,WAAW,YAAY,WAAW,QAAQ,aAAa;CAEhE,MAAM,mBAAmB,WAA2D;EAClF,MAAM,aAAa,QAAQ,MAAM;AAEjC,MAAI,OAAO,WAAW,SACpB,QAAO;GAAC,OAAO;GAAQ,MAAM;GAAO;AAEtC,MAAI,OAAO,WAAW,YAAY,OAAO,WAAW,UAClD,QAAO;GAAC,OAAO;GAAQ,MAAM,GAAG;GAAS;AAE3C,MAAI,kBAAkB,KACpB,QAAO;GAAC,OAAO;GAAQ,MAAM,OAAO,gBAAgB;GAAC;EAGvD,MAAM,QAAiB,IAAI,QAAQ,WAAW,WAAW;EACzD,MAAM,OAAe,IAAI,QAAQ,WAAW,UAAU;EACtD,MAAM,WAAoB,IAAI,QAAQ,WAAW,cAAc;EAE/D,MAAM,OAA8B,WAAW,eAC3C,IAAI,QAAQ,WAAW,aAAa,GACpC,KAAA;EACJ,MAAM,SACH,WAAW,aAAa,IAAI,QAAQ,WAAW,WAAW,GAAG,KAAA,MAAc;AAE9E,MAAI,SAAS,KAAA,EACX,QAAO;GACL;GACA,SAAS;GACV;AAGH,SAAO;GACL,GAAI,OAAO,WAAW,WAAW,SAAS,KAAA;GAC1C;GACA;GACA;GACD;;CAGH,MAAM,oBACJ,SAC8C,KAAK,KAAK,WAAW,gBAAgB,OAAO,CAAC;AAI7F,QAAO;EAAC,mBAFkB,eAAe,iBAAiB,QAAQ,QAAQ,CAAC,CAAC;EAEjD;EAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFormSelect-nQbGZSi8.js","names":[],"sources":["../src/composables/useFormSelect.ts"],"sourcesContent":["import {computed, type MaybeRefOrGetter, toValue} from 'vue'\nimport {get} from '../utils/object'\nimport type {ComplexSelectOptionRaw, SelectOption} from '../types'\n\nexport const useFormSelect = (\n options: MaybeRefOrGetter<ReadonlyArray<unknown>>,\n props: MaybeRefOrGetter<{\n valueField: string\n textField: string\n disabledField: string\n optionsField?: string\n labelField?: string\n }>\n) => {\n const isComplex = (option: unknown): option is ComplexSelectOptionRaw =>\n typeof option === 'object' && option !== null && 'options' in option\n\n const normalizeOption = (option: unknown): ComplexSelectOptionRaw | SelectOption => {\n const propsValue = toValue(props)\n\n if (typeof option === 'string') {\n return {value: option, text: option} satisfies SelectOption\n }\n if (typeof option === 'number' || typeof option === 'boolean') {\n return {value: option, text: `${option}`} satisfies SelectOption\n }\n if (option instanceof Date) {\n return {value: option, text: option.toLocaleString()} satisfies SelectOption\n }\n\n const value: unknown = get(option, propsValue.valueField)\n const text: string = get(option, propsValue.textField)\n const disabled: boolean = get(option, propsValue.disabledField)\n\n const opts: undefined | unknown[] = propsValue.optionsField\n ? get(option, propsValue.optionsField)\n : undefined\n const label: string | undefined =\n (propsValue.labelField ? get(option, propsValue.labelField) : undefined) || text\n\n if (opts !== undefined) {\n return {\n label,\n options: opts,\n } as ComplexSelectOptionRaw\n }\n\n return {\n ...(typeof option === 'object' ? option : undefined),\n value,\n text,\n disabled,\n } satisfies SelectOption\n }\n\n const normalizeOptions = (\n opts: ReadonlyArray<unknown>\n ): (ComplexSelectOptionRaw | SelectOption)[] => opts.map((option) => normalizeOption(option))\n\n const normalizedOptions = computed(() => normalizeOptions(toValue(options)))\n\n return {normalizedOptions, isComplex}\n}\n"],"mappings":";;;;AAIA,IAAa,iBACX,SACA,UAOG;CACH,MAAM,aAAa,WACjB,OAAO,WAAW,YAAY,WAAW,QAAQ,aAAa;CAEhE,MAAM,mBAAmB,WAA2D;EAClF,MAAM,cAAA,GAAA,IAAA,SAAqB,MAAM;AAEjC,MAAI,OAAO,WAAW,SACpB,QAAO;GAAC,OAAO;GAAQ,MAAM;GAAO;AAEtC,MAAI,OAAO,WAAW,YAAY,OAAO,WAAW,UAClD,QAAO;GAAC,OAAO;GAAQ,MAAM,GAAG;GAAS;AAE3C,MAAI,kBAAkB,KACpB,QAAO;GAAC,OAAO;GAAQ,MAAM,OAAO,gBAAgB;GAAC;EAGvD,MAAM,QAAiB,eAAA,IAAI,QAAQ,WAAW,WAAW;EACzD,MAAM,OAAe,eAAA,IAAI,QAAQ,WAAW,UAAU;EACtD,MAAM,WAAoB,eAAA,IAAI,QAAQ,WAAW,cAAc;EAE/D,MAAM,OAA8B,WAAW,eAC3C,eAAA,IAAI,QAAQ,WAAW,aAAa,GACpC,KAAA;EACJ,MAAM,SACH,WAAW,aAAa,eAAA,IAAI,QAAQ,WAAW,WAAW,GAAG,KAAA,MAAc;AAE9E,MAAI,SAAS,KAAA,EACX,QAAO;GACL;GACA,SAAS;GACV;AAGH,SAAO;GACL,GAAI,OAAO,WAAW,WAAW,SAAS,KAAA;GAC1C;GACA;GACA;GACD;;CAGH,MAAM,oBACJ,SAC8C,KAAK,KAAK,WAAW,gBAAgB,OAAO,CAAC;AAI7F,QAAO;EAAC,oBAAA,GAAA,IAAA,gBAFiC,kBAAA,GAAA,IAAA,SAAyB,QAAQ,CAAC,CAAC;EAEjD;EAAU"}
|