bitboss-ui 2.0.38 → 2.0.40
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/components/BaseButton/BaseButton.vue.d.ts +14 -31
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +19 -50
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +28 -244
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +100 -0
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +6 -28
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +5 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +30 -31
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +4 -14
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +4 -14
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +168 -52
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +25 -45
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -35
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +16 -49
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -34
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +28 -247
- package/dist/components/BaseRating/BaseRating.vue.d.ts +15 -46
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +348 -59
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +19 -53
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +15 -46
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +32 -244
- package/dist/components/BaseTag/BaseTag.vue.d.ts +214 -50
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +15 -44
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -30
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +31 -45
- package/dist/components/BbAlert/BbAlert.vue.d.ts +26 -43
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -28
- package/dist/components/BbBadge/BbBadge.vue.d.ts +13 -24
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -66
- package/dist/components/BbButton/BbButton.vue.d.ts +13 -31
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +30 -65
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +36 -279
- package/dist/components/BbChip/BbChip.vue.d.ts +15 -32
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -30
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +124 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +36 -51
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -29
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +169 -193
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -209
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +32 -45
- package/dist/components/BbIcon/BbIcon.vue.d.ts +2 -24
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +27 -50
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -54
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +26 -48
- package/dist/components/BbPagination/BbPagination.vue.d.ts +35 -55
- package/dist/components/BbPopover/BbPopover.vue.d.ts +71 -93
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -27
- package/dist/components/BbRadio/BbRadio.vue.d.ts +30 -63
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -281
- package/dist/components/BbRating/BbRating.vue.d.ts +23 -56
- package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -31
- package/dist/components/BbSelect/BbSelect.vue.d.ts +16 -158
- package/dist/components/BbSlider/BbSlider.vue.d.ts +23 -54
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +12 -34
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -24
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +30 -63
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -278
- package/dist/components/BbTab/BbTab.vue.d.ts +92 -107
- package/dist/components/BbTable/BbTable.vue.d.ts +93 -134
- package/dist/components/BbTable/types.d.ts +0 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -46
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -40
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -40
- package/dist/components/BbToast/BbToast.vue.d.ts +3 -24
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +5 -27
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +15 -36
- package/dist/components/BbTree/BbTree.vue.d.ts +9 -29
- package/dist/components/ChipsBox.vue.d.ts +6 -16
- package/dist/components/CommaBox.vue.d.ts +6 -16
- package/dist/components/CommonFloating.vue.d.ts +14 -26
- package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -15
- package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
- package/dist/components/ErrorIcon.vue.d.ts +1 -1
- package/dist/components/ListBox.vue.d.ts +30 -47
- package/dist/components/OptionsContainer.vue.d.ts +30 -90
- package/dist/components/Transitions/Slide.vue.d.ts +12 -30
- package/dist/components/Transitions/SlideBack.vue.d.ts +12 -30
- package/dist/composables/useArray.d.ts +0 -1
- package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
- package/dist/composables/useConfirm.d.ts +0 -1
- package/dist/composables/useOptions.d.ts +0 -1
- package/dist/composables/useRoute.d.ts +0 -1
- package/dist/composables/useRouter.d.ts +0 -1
- package/dist/composables/useToast.d.ts +1 -2
- package/dist/composables/useWizard.d.ts +1 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +142 -136
- package/dist/index100.js +129 -54
- package/dist/index102.js +66 -79
- package/dist/index104.js +85 -280
- package/dist/index106.js +108 -390
- package/dist/index108.js +280 -102
- package/dist/index11.js +1 -1
- package/dist/index110.js +391 -95
- package/dist/index112.js +55 -50
- package/dist/index114.js +106 -23
- package/dist/index116.js +101 -156
- package/dist/index118.js +22 -114
- package/dist/index12.js +6 -6
- package/dist/index120.js +143 -34
- package/dist/index122.js +116 -40
- package/dist/index124.js +36 -31
- package/dist/index125.js +44 -2
- package/dist/index126.js +44 -21
- package/dist/index127.js +47 -2
- package/dist/index128.js +32 -313
- package/dist/index129.js +2 -24
- package/dist/index13.js +1 -1
- package/dist/index130.js +21 -2
- package/dist/index131.js +2 -5
- package/dist/index132.js +315 -7
- package/dist/index133.js +24 -5
- package/dist/index134.js +2 -3
- package/dist/index135.js +5 -3
- package/dist/index136.js +9 -3
- package/dist/index137.js +6 -3
- package/dist/index138.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index15.js +122 -117
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index160.js +2 -2
- package/dist/{index177.js → index161.js} +1 -1
- package/dist/index162.js +2 -2
- package/dist/{index166.js → index163.js} +1 -1
- package/dist/index165.js +2 -2
- package/dist/index167.js +2 -2
- package/dist/index169.js +1 -1
- package/dist/index17.js +119 -118
- package/dist/index170.js +2 -2
- package/dist/{index168.js → index171.js} +1 -1
- package/dist/index172.js +3 -2
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +2 -2
- package/dist/index178.js +2 -3
- package/dist/index179.js +1 -1
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +2 -2
- package/dist/index185.js +5 -0
- package/dist/index186.js +2 -2
- package/dist/index187.js +5 -0
- package/dist/index19.js +121 -211
- package/dist/index190.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +3 -116
- package/dist/index199.js +3 -2
- package/dist/index200.js +3 -3
- package/dist/index201.js +3 -35
- package/dist/index202.js +3 -6
- package/dist/index203.js +3 -7
- package/dist/index204.js +2 -8
- package/dist/index205.js +112 -154
- package/dist/index206.js +3 -84
- package/dist/index207.js +160 -0
- package/dist/index208.js +84 -2
- package/dist/index21.js +197 -279
- package/dist/index210.js +2 -2
- package/dist/index211.js +2 -3
- package/dist/index212.js +3 -126
- package/dist/index213.js +4 -5
- package/dist/index214.js +3 -123
- package/dist/index215.js +40 -18
- package/dist/index216.js +6 -16
- package/dist/index217.js +7 -16
- package/dist/index218.js +8 -2
- package/dist/index219.js +281 -2
- package/dist/index220.js +14 -172
- package/dist/index221.js +16 -43
- package/dist/index222.js +21 -0
- package/dist/index223.js +19 -13
- package/dist/index224.js +27 -5
- package/dist/index225.js +2 -369
- package/dist/index226.js +249 -2
- package/dist/index227.js +50 -16
- package/dist/index228.js +40 -102
- package/dist/index229.js +7 -0
- package/dist/index23.js +287 -245
- package/dist/index230.js +44 -95
- package/dist/index231.js +128 -0
- package/dist/index232.js +125 -2
- package/dist/index233.js +2 -3
- package/dist/index234.js +19 -18
- package/dist/index235.js +52 -26
- package/dist/index237.js +13 -52
- package/dist/index238.js +5 -44
- package/dist/index239.js +369 -5
- package/dist/index240.js +2 -49
- package/dist/index241.js +2 -10
- package/dist/index242.js +17 -2
- package/dist/index243.js +104 -429
- package/dist/index245.js +100 -4
- package/dist/index247.js +4 -3
- package/dist/index248.js +9 -11
- package/dist/index249.js +3 -9
- package/dist/index25.js +249 -120
- package/dist/index250.js +6 -9
- package/dist/index251.js +15 -16
- package/dist/index252.js +224 -3
- package/dist/index253.js +3 -9
- package/dist/index254.js +12 -23
- package/dist/index255.js +9 -6
- package/dist/index256.js +8 -15
- package/dist/index257.js +17 -9
- package/dist/index258.js +26 -222
- package/dist/index259.js +3 -281
- package/dist/index260.js +9 -6
- package/dist/index261.js +23 -2
- package/dist/index262.js +9 -2
- package/dist/index263.js +4 -2
- package/dist/index264.js +6 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -126
- package/dist/index267.js +2 -3
- package/dist/index268.js +4 -0
- package/dist/index269.js +2 -7
- package/dist/index27.js +119 -142
- package/dist/index270.js +2 -22
- package/dist/index271.js +4 -0
- package/dist/index272.js +2 -436
- package/dist/index273.js +2 -127
- package/dist/index274.js +2 -3
- package/dist/index275.js +22 -3
- package/dist/index277.js +7 -28
- package/dist/index278.js +431 -2
- package/dist/index279.js +89 -2
- package/dist/index280.js +2 -2
- package/dist/index281.js +126 -2
- package/dist/index282.js +176 -2
- package/dist/index283.js +3 -2
- package/dist/{index284.js → index285.js} +6 -6
- package/dist/index287.js +199 -65
- package/dist/index288.js +436 -5
- package/dist/index289.js +124 -12
- package/dist/index29.js +139 -84
- package/dist/index290.js +3 -79
- package/dist/{index193.js → index291.js} +1 -1
- package/dist/index292.js +211 -4
- package/dist/index293.js +66 -4
- package/dist/index294.js +2 -59
- package/dist/index295.js +4 -11
- package/dist/index296.js +4 -35
- package/dist/index297.js +57 -45
- package/dist/index298.js +5 -7
- package/dist/index299.js +4 -18
- package/dist/index300.js +7 -6
- package/dist/index301.js +79 -2
- package/dist/index303.js +6 -0
- package/dist/index304.js +6 -420
- package/dist/index305.js +18 -46
- package/dist/index306.js +7 -2
- package/dist/index307.js +37 -0
- package/dist/index308.js +13 -0
- package/dist/index309.js +49 -0
- package/dist/index31.js +85 -115
- package/dist/index310.js +4 -0
- package/dist/{index302.js → index311.js} +2 -2
- package/dist/index313.js +426 -0
- package/dist/index314.js +49 -0
- package/dist/index315.js +4 -0
- package/dist/index33.js +111 -113
- package/dist/index35.js +114 -366
- package/dist/index37.js +361 -284
- package/dist/index39.js +288 -107
- package/dist/index41.js +114 -121
- package/dist/index43.js +113 -201
- package/dist/index45.js +182 -92
- package/dist/index47.js +110 -78
- package/dist/index49.js +89 -54
- package/dist/index51.js +54 -78
- package/dist/index53.js +83 -61
- package/dist/index55.js +59 -40
- package/dist/index57.js +42 -55
- package/dist/index59.js +53 -106
- package/dist/index6.js +1 -1
- package/dist/index61.js +104 -89
- package/dist/index63.js +61 -88
- package/dist/index65.js +119 -77
- package/dist/index67.js +56 -45
- package/dist/index69.js +79 -54
- package/dist/index7.js +2 -2
- package/dist/index71.js +88 -268
- package/dist/index73.js +49 -148
- package/dist/index75.js +259 -204
- package/dist/index77.js +152 -39
- package/dist/index79.js +224 -0
- package/dist/index8.js +6 -14
- package/dist/index81.js +46 -0
- package/dist/index82.js +116 -166
- package/dist/index84.js +222 -171
- package/dist/index86.js +171 -25
- package/dist/index88.js +177 -84
- package/dist/index9.js +1 -1
- package/dist/index90.js +27 -123
- package/dist/index92.js +47 -51
- package/dist/index94.js +120 -15
- package/dist/index96.js +55 -132
- package/dist/index98.js +15 -105
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +0 -1
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -1
- package/dist/types/ExtractGenericFromRef.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
- package/dist/utilities/functions/deburr.d.ts +1 -1
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/groupBy.d.ts +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/dist/utilities/functions/isHex.d.ts +1 -0
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/replace.d.ts +1 -1
- package/dist/utilities/functions/retry.d.ts +1 -1
- package/dist/utilities/functions/throttle.d.ts +2 -2
- package/dist/utilities/functions/tryTo.d.ts +0 -1
- package/package.json +29 -29
- package/dist/index121.js +0 -46
- package/dist/index123.js +0 -49
- package/dist/index191.js +0 -5
- package/dist/index209.js +0 -6
- package/dist/index236.js +0 -251
- package/dist/index244.js +0 -91
- package/dist/index246.js +0 -202
- package/dist/index276.js +0 -213
- package/dist/index286.js +0 -4
- package/dist/index78.js +0 -129
- package/dist/index80.js +0 -238
package/dist/index29.js
CHANGED
@@ -1,100 +1,155 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
__name: "BaseRadio",
|
1
|
+
import { defineComponent as C, computed as M, ref as g, onMounted as E, watch as N, openBlock as x, createBlock as T, normalizeClass as q, withCtx as i, renderSlot as d, createVNode as A, createElementVNode as D, mergeProps as L, withModifiers as S } from "vue";
|
2
|
+
import { clamp as b } from "./index204.js";
|
3
|
+
import j from "./index235.js";
|
4
|
+
/* empty css */
|
5
|
+
import z from "./index237.js";
|
6
|
+
const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "step"], J = /* @__PURE__ */ C({
|
7
|
+
__name: "BaseNumberInput",
|
9
8
|
props: {
|
9
|
+
"append:icon": {},
|
10
10
|
ariaDescribedby: {},
|
11
|
+
autocomplete: {},
|
11
12
|
autofocus: {},
|
12
|
-
checked: {},
|
13
|
-
color: {},
|
14
13
|
disabled: { type: Boolean },
|
15
14
|
hasErrors: { type: Boolean },
|
16
15
|
id: {},
|
16
|
+
loading: { type: Boolean },
|
17
|
+
max: {},
|
18
|
+
min: {},
|
17
19
|
modelValue: {},
|
18
20
|
name: {},
|
21
|
+
placeholder: {},
|
22
|
+
"prepend:icon": {},
|
19
23
|
readonly: {},
|
20
24
|
required: { type: Boolean },
|
21
|
-
|
25
|
+
step: { default: 1 }
|
22
26
|
},
|
23
|
-
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
24
|
-
setup(
|
25
|
-
const
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
}
|
37
|
-
(
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
a("change", o), a("update:modelValue", e.value);
|
46
|
-
},
|
47
|
-
onClick: (o) => a("click", o),
|
48
|
-
onFocus: (o) => {
|
49
|
-
n.value = !0, a("focus", o);
|
50
|
-
},
|
51
|
-
onInput: (o) => a("input", o),
|
52
|
-
onKeydown: (o) => a("keydown", o),
|
53
|
-
onMousedown: (o) => a("mousedown", o),
|
54
|
-
onMouseup: (o) => a("mouseup", o)
|
55
|
-
};
|
56
|
-
return {
|
57
|
-
"aria-describedby": e.ariaDescribedby,
|
58
|
-
autofocus: e.autofocus,
|
59
|
-
checked: c.value,
|
60
|
-
// There is no such thing as readonly radio so we disable and style it with css
|
61
|
-
disabled: e.disabled || e.readonly,
|
62
|
-
id: e.id,
|
63
|
-
name: e.name,
|
64
|
-
required: e.required,
|
65
|
-
tabindex: e.disabled ? -1 : void 0,
|
66
|
-
type: "radio",
|
67
|
-
value: r,
|
68
|
-
...k
|
69
|
-
};
|
70
|
-
}), f = s(() => ({
|
71
|
-
checked: c.value,
|
72
|
-
disabled: e.disabled,
|
73
|
-
focused: n.value,
|
74
|
-
hasErrors: e.hasErrors,
|
75
|
-
id: e.id,
|
76
|
-
name: e.name,
|
77
|
-
parsedValue: d.value.value,
|
78
|
-
readonly: e.readonly,
|
79
|
-
required: e.required,
|
80
|
-
value: e.value
|
81
|
-
})), v = s(() => {
|
82
|
-
let r = {};
|
83
|
-
return e.color && i(e.color) && (r.color = e.color), {
|
84
|
-
class: "bb-base-radio-container__icon",
|
85
|
-
style: r
|
86
|
-
};
|
27
|
+
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
28
|
+
setup(v, { expose: I, emit: V }) {
|
29
|
+
const n = v, l = V, $ = M(() => ({
|
30
|
+
"bb-base-number-input": !0,
|
31
|
+
"bb-base-number-input--disabled": n.disabled,
|
32
|
+
"bb-base-number-input--errors": n.hasErrors,
|
33
|
+
"bb-base-number-input--loading": n.loading,
|
34
|
+
"bb-base-number-input--readonly": n.readonly
|
35
|
+
})), s = g(null), p = g(!1), r = () => {
|
36
|
+
if (n.disabled || n.readonly || p.value) return;
|
37
|
+
const e = typeof n.min > "u" ? -1 / 0 : n.min, t = typeof n.max > "u" ? 1 / 0 : n.max;
|
38
|
+
let o = Math.max(Number(n.modelValue || 0) - n.step, e);
|
39
|
+
o = o === null ? o : b(o, e, t), l("decrease", o), l("update:modelValue", o);
|
40
|
+
}, u = () => {
|
41
|
+
if (n.disabled || n.readonly || p.value) return;
|
42
|
+
const e = typeof n.min > "u" ? -1 / 0 : n.min, t = typeof n.max > "u" ? 1 / 0 : n.max;
|
43
|
+
let o = Math.min(Number(n.modelValue || 0) + +n.step, t);
|
44
|
+
o = o === null ? o : b(o, e, t), l("increase", o), l("update:modelValue", o);
|
45
|
+
};
|
46
|
+
I({
|
47
|
+
increase: u,
|
48
|
+
decrease: r
|
87
49
|
});
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
50
|
+
const k = (e) => {
|
51
|
+
if (e.target instanceof HTMLInputElement) {
|
52
|
+
const t = e.target.value, o = /[,.]/g, m = [...t.matchAll(o)];
|
53
|
+
if (!(m.length === 1 && m.some((a) => a.index === t.length - 1)) && !(m.length && t[t.length - 1] === "0") && t !== "-") {
|
54
|
+
p.value = !1;
|
55
|
+
let a;
|
56
|
+
e.target.value === "" ? a = null : a = y(e.target.value);
|
57
|
+
const c = typeof n.min > "u" ? -1 / 0 : n.min, f = typeof n.max > "u" ? 1 / 0 : n.max;
|
58
|
+
a = a === null ? a : b(a, c, f), l("update:modelValue", a), s.value && (a === null ? s.value.value = "" : s.value.value = `${a}`);
|
59
|
+
} else
|
60
|
+
p.value = !0;
|
61
|
+
l("input", e);
|
62
|
+
}
|
63
|
+
}, y = (e) => {
|
64
|
+
if (typeof e == "number") return e;
|
65
|
+
let t = e.replaceAll(",", "."), a = t.slice(0, 1).concat(t.slice(1).replaceAll("-", "")).replaceAll(/[^\d.-]/g, "").split("."), c = a.slice(0, 1).join("") || 0, f = a.slice(1).join("") || 0, B = `${c}.${f}`;
|
66
|
+
return Number(B);
|
67
|
+
}, w = {
|
68
|
+
onBlur: (e) => l("blur", e),
|
69
|
+
onChange: (e) => l("change", e),
|
70
|
+
onClick: (e) => l("click", e),
|
71
|
+
onFocus: (e) => l("focus", e),
|
72
|
+
onKeydown: (e) => l("keydown", e),
|
73
|
+
onMousedown: (e) => l("mousedown", e),
|
74
|
+
onMouseup: (e) => l("mouseup", e)
|
75
|
+
}, h = (e) => {
|
76
|
+
s.value ? e === null || e === "" || e === void 0 ? s.value.value = "" : typeof e < "u" && (s.value.value = y(e).toString()) : console.error("Could not align input as it is not mounted");
|
77
|
+
};
|
78
|
+
return E(() => {
|
79
|
+
h(n.modelValue);
|
80
|
+
}), N(() => n.modelValue, h), (e, t) => (x(), T(z, {
|
81
|
+
class: q($.value)
|
82
|
+
}, {
|
83
|
+
"prepend-outer": i(() => [
|
84
|
+
d(e.$slots, "prepend-outer", {
|
85
|
+
decrease: r,
|
86
|
+
increase: u
|
87
|
+
})
|
88
|
+
]),
|
89
|
+
"append-outer": i(() => [
|
90
|
+
d(e.$slots, "append-outer", {
|
91
|
+
decrease: r,
|
92
|
+
increase: u
|
93
|
+
})
|
94
|
+
]),
|
95
|
+
default: i(() => [
|
96
|
+
A(j, {
|
97
|
+
"append:icon": n["append:icon"],
|
98
|
+
"prepend:icon": n["prepend:icon"]
|
99
|
+
}, {
|
100
|
+
prepend: i(() => [
|
101
|
+
d(e.$slots, "prepend", {
|
102
|
+
decrease: r,
|
103
|
+
increase: u
|
104
|
+
})
|
105
|
+
]),
|
106
|
+
prefix: i(() => [
|
107
|
+
d(e.$slots, "prefix", {
|
108
|
+
decrease: r,
|
109
|
+
increase: u
|
110
|
+
})
|
111
|
+
]),
|
112
|
+
append: i(() => [
|
113
|
+
d(e.$slots, "append", {
|
114
|
+
decrease: r,
|
115
|
+
increase: u
|
116
|
+
})
|
117
|
+
]),
|
118
|
+
suffix: i(() => [
|
119
|
+
d(e.$slots, "suffix", {
|
120
|
+
decrease: r,
|
121
|
+
increase: u
|
122
|
+
})
|
123
|
+
]),
|
124
|
+
default: i(() => [
|
125
|
+
D("input", L({
|
126
|
+
id: e.id,
|
127
|
+
ref_key: "input",
|
128
|
+
ref: s,
|
129
|
+
"aria-describedby": e.ariaDescribedby,
|
130
|
+
autocomplete: e.autocomplete,
|
131
|
+
autofocus: e.autofocus,
|
132
|
+
class: "bb-base-number-input__input",
|
133
|
+
disabled: e.disabled,
|
134
|
+
inputmode: "decimal",
|
135
|
+
name: e.name,
|
136
|
+
placeholder: e.placeholder,
|
137
|
+
readonly: e.readonly,
|
138
|
+
required: e.required,
|
139
|
+
size: "1",
|
140
|
+
step: e.step,
|
141
|
+
type: "text"
|
142
|
+
}, w, {
|
143
|
+
onInput: S(k, ["stop"])
|
144
|
+
}), null, 16, O)
|
145
|
+
]),
|
146
|
+
_: 3
|
147
|
+
}, 8, ["append:icon", "prepend:icon"])
|
148
|
+
]),
|
149
|
+
_: 3
|
150
|
+
}, 8, ["class"]));
|
96
151
|
}
|
97
152
|
});
|
98
153
|
export {
|
99
|
-
|
154
|
+
J as default
|
100
155
|
};
|
package/dist/index290.js
CHANGED
@@ -1,81 +1,5 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import { useFloating as k, arrow as x } from "./index212.js";
|
4
|
-
import { autoUpdate as B, flip as C, offset as D, shift as P } from "./index225.js";
|
5
|
-
const N = /* @__PURE__ */ _({
|
6
|
-
__name: "CommonFloating",
|
7
|
-
props: {
|
8
|
-
arrowPadding: {},
|
9
|
-
eager: { type: Boolean },
|
10
|
-
offset: {},
|
11
|
-
padding: {},
|
12
|
-
placement: {},
|
13
|
-
theme: {},
|
14
|
-
transitionDuration: {},
|
15
|
-
containerAttributes: { default: () => ({}) },
|
16
|
-
bubbleAttributes: {},
|
17
|
-
wrapper: {},
|
18
|
-
baseClass: {},
|
19
|
-
open: { type: Boolean }
|
20
|
-
},
|
21
|
-
setup(u) {
|
22
|
-
const e = u, f = y(e, "wrapper"), a = p(), l = p(), { floatingStyles: c, placement: d, middlewareData: s } = k(
|
23
|
-
f,
|
24
|
-
a,
|
25
|
-
{
|
26
|
-
placement: e.placement,
|
27
|
-
whileElementsMounted: B,
|
28
|
-
middleware: [
|
29
|
-
C(),
|
30
|
-
D(e.offset),
|
31
|
-
P({ padding: e.padding }),
|
32
|
-
x({
|
33
|
-
element: l,
|
34
|
-
padding: e.arrowPadding
|
35
|
-
})
|
36
|
-
]
|
37
|
-
}
|
38
|
-
), m = o(() => {
|
39
|
-
if (s.value.arrow) {
|
40
|
-
const { x: t, y: i } = s.value.arrow;
|
41
|
-
return {
|
42
|
-
style: {
|
43
|
-
left: `${t}px`,
|
44
|
-
top: `${i}px`
|
45
|
-
}
|
46
|
-
};
|
47
|
-
}
|
48
|
-
}), g = o(() => b({}, e.containerAttributes, {
|
49
|
-
class: {
|
50
|
-
"bb-floating": !0,
|
51
|
-
[`bb-floating--${d.value}`]: !0,
|
52
|
-
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
53
|
-
"bb-floating--hidden": !e.open,
|
54
|
-
"bb-floating--open": e.open
|
55
|
-
},
|
56
|
-
style: {
|
57
|
-
...c.value,
|
58
|
-
"--transition-duration": `${e.transitionDuration}ms`
|
59
|
-
},
|
60
|
-
inert: !e.open
|
61
|
-
})), w = o(() => b({}, e.bubbleAttributes, {}));
|
62
|
-
return (t, i) => (v(), h(A, { to: "body" }, [
|
63
|
-
r("span", n({
|
64
|
-
ref_key: "content",
|
65
|
-
ref: a
|
66
|
-
}, g.value), [
|
67
|
-
r("span", n({
|
68
|
-
ref_key: "bubblearrow",
|
69
|
-
ref: l,
|
70
|
-
class: "bb-floating__arrow"
|
71
|
-
}, m.value), null, 16),
|
72
|
-
r("span", n({ class: "bb-floating__bubble" }, w.value), [
|
73
|
-
$(t.$slots, "default")
|
74
|
-
], 16)
|
75
|
-
], 16)
|
76
|
-
]));
|
77
|
-
}
|
78
|
-
});
|
1
|
+
import o from "./index243.js";
|
2
|
+
/* empty css */
|
79
3
|
export {
|
80
|
-
|
4
|
+
o as default
|
81
5
|
};
|
package/dist/index292.js
CHANGED
@@ -1,6 +1,213 @@
|
|
1
|
-
const a = { "application/prs.cww": ["cww"], "application/prs.xsf+xml": ["xsf"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["*xfdf"], "application/vnd.age": ["age"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["*fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["*mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.pwg-xhtml-print+xml": ["xhtm"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml", "uo"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["*prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["*sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["*aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif", "btf"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.cld": ["cld"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.pytha.pyox": ["pyo", "pyox"], "model/vnd.sap.vds": ["vds"], "model/vnd.usda": ["usda"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.familysearch.gedcom": ["ged"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] };
|
2
|
-
|
3
|
-
|
1
|
+
import { defineComponent as K, ref as b, computed as m, watch as N, openBlock as r, createElementBlock as c, normalizeClass as $, normalizeStyle as h, withModifiers as Q, createElementVNode as x, renderSlot as v, createTextVNode as D, toDisplayString as g, Fragment as U, renderList as X } from "vue";
|
2
|
+
import { isNil as f } from "./index129.js";
|
3
|
+
import { useVirtualizer as Z } from "./index309.js";
|
4
|
+
import { isNotNil as ee } from "./index134.js";
|
5
|
+
import { hash as H } from "./index212.js";
|
6
|
+
const te = { class: "bb-listbox__outer-container scrollbar-border" }, oe = {
|
7
|
+
key: 0,
|
8
|
+
class: "bb-listbox__loading"
|
9
|
+
}, ne = {
|
10
|
+
key: 1,
|
11
|
+
class: "bb-listbox__no-data"
|
12
|
+
}, le = ["aria-selected", "data-index"], ie = { class: "autocomplete-option__content" }, se = { class: "autocomplete-option__label" }, pe = /* @__PURE__ */ K({
|
13
|
+
__name: "ListBox",
|
14
|
+
props: {
|
15
|
+
options: {},
|
16
|
+
open: { type: Boolean },
|
17
|
+
loading: { type: Boolean },
|
18
|
+
transitionDuration: { default: 250 },
|
19
|
+
loadingText: { default: "Caricamento..." },
|
20
|
+
noDataText: { default: "Nessun elemento da visualizzare" }
|
21
|
+
},
|
22
|
+
emits: ["option:selected", "option:unselected"],
|
23
|
+
setup(T, { expose: V, emit: B }) {
|
24
|
+
const o = T, _ = B, s = b(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = m(
|
25
|
+
() => o.options.map((e) => ({ ...e, id: C(e.value) }))
|
26
|
+
), p = Z({
|
27
|
+
get count() {
|
28
|
+
return o.options.length;
|
29
|
+
},
|
30
|
+
getScrollElement: () => s.value,
|
31
|
+
estimateSize: () => 42,
|
32
|
+
overscan: 5
|
33
|
+
}), L = (e) => {
|
34
|
+
e && p.value.measureElement(e);
|
35
|
+
}, O = m(() => p.value.getVirtualItems()), F = m(() => p.value.getTotalSize()), n = b(null), a = m(
|
36
|
+
() => o.open && o.options.some((e) => !e.disabled)
|
37
|
+
), y = (e = 1) => {
|
38
|
+
const l = f(n.value) ? -1 : n.value;
|
39
|
+
let t = (l + e) % o.options.length;
|
40
|
+
for (; o.options[t].disabled && t !== l; )
|
41
|
+
t = y(e + 1);
|
42
|
+
return t;
|
43
|
+
}, M = () => {
|
44
|
+
if (!a.value) return;
|
45
|
+
const e = y();
|
46
|
+
n.value = e, u();
|
47
|
+
}, I = (e = 1) => {
|
48
|
+
const l = f(n.value) ? 0 : n.value;
|
49
|
+
let t = (l - e + o.options.length) % o.options.length;
|
50
|
+
for (; o.options[t].disabled && t !== l; )
|
51
|
+
t = I(e + 1);
|
52
|
+
return t;
|
53
|
+
}, A = async () => {
|
54
|
+
if (!a.value) return;
|
55
|
+
const e = I();
|
56
|
+
n.value = e, u();
|
57
|
+
}, P = () => {
|
58
|
+
if (!a.value) return;
|
59
|
+
let e = 0;
|
60
|
+
for (; o.options[e].disabled; )
|
61
|
+
e++;
|
62
|
+
n.value = e, u();
|
63
|
+
}, R = () => {
|
64
|
+
if (!a.value) return;
|
65
|
+
let e = o.options.length - 1;
|
66
|
+
for (; o.options[e].disabled && e !== 0; )
|
67
|
+
e--;
|
68
|
+
n.value = e, u();
|
69
|
+
}, q = () => {
|
70
|
+
if (!a.value) return;
|
71
|
+
let e = 0;
|
72
|
+
for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
|
73
|
+
e++;
|
74
|
+
n.value = e % o.options.length, u();
|
75
|
+
}, J = () => {
|
76
|
+
if (!a.value) return;
|
77
|
+
let e = o.options.length - 1;
|
78
|
+
for (; o.options[e].selected && e > 0; )
|
79
|
+
e--;
|
80
|
+
n.value = e === -1 ? o.options.length - 1 : e, u();
|
81
|
+
}, W = (e) => {
|
82
|
+
if (!a.value) return;
|
83
|
+
const l = o.options.findIndex(
|
84
|
+
(t) => t.valueHash === e
|
85
|
+
);
|
86
|
+
l >= 0 && (n.value = l), u();
|
87
|
+
}, S = () => {
|
88
|
+
n.value = null;
|
89
|
+
}, u = () => {
|
90
|
+
s.value && ee(n.value) && p.value.scrollToIndex(n.value, {
|
91
|
+
align: "center",
|
92
|
+
behavior: "smooth"
|
93
|
+
});
|
94
|
+
}, k = () => {
|
95
|
+
if (f(n.value) || !o.open) return;
|
96
|
+
const e = o.options[n.value];
|
97
|
+
e.selected ? _("option:unselected", e) : _("option:selected", e);
|
98
|
+
}, w = b(0), z = () => {
|
99
|
+
s.value && (w.value = s.value.scrollHeight);
|
100
|
+
}, Y = (e) => !e.disabled, j = (e) => {
|
101
|
+
if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
|
102
|
+
if (!s.value.querySelector('[role="listbox"]'))
|
103
|
+
throw new Error("Could not find listbox in DOM tree.");
|
104
|
+
let t = e.target, d = t.dataset.index;
|
105
|
+
for (; f(d) && t.parentElement; )
|
106
|
+
t = t.parentElement, d = t.dataset.index;
|
107
|
+
if (d) {
|
108
|
+
const E = o.options[+d];
|
109
|
+
E && Y(E) && (n.value = +d, k());
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}, G = () => f(n.value) ? void 0 : o.options[n.value];
|
113
|
+
return N(
|
114
|
+
() => o.open,
|
115
|
+
() => {
|
116
|
+
z();
|
117
|
+
},
|
118
|
+
{ flush: "post" }
|
119
|
+
), N(
|
120
|
+
() => o.options,
|
121
|
+
(e, l) => {
|
122
|
+
H(e.map((t) => t.valueHash)) !== H(l.map((t) => t.valueHash)) && (p.value.calculateRange(), z(), S());
|
123
|
+
},
|
124
|
+
{
|
125
|
+
flush: "post"
|
126
|
+
}
|
127
|
+
), V({
|
128
|
+
focusNext: M,
|
129
|
+
focusPrevious: A,
|
130
|
+
focusFirst: P,
|
131
|
+
focusFirstSelected: q,
|
132
|
+
focusLast: R,
|
133
|
+
focusLastSelected: J,
|
134
|
+
blur: S,
|
135
|
+
confirmOption: k,
|
136
|
+
focusByHash: W,
|
137
|
+
getHighlighted: G
|
138
|
+
}), (e, l) => (r(), c("div", {
|
139
|
+
class: $(["bb-listbox", {
|
140
|
+
"bb-listbox--open": e.open,
|
141
|
+
"bb-listbox--loading": e.loading,
|
142
|
+
"bb-listbox--no-data": !i.value.length
|
143
|
+
}]),
|
144
|
+
style: h({
|
145
|
+
"--transition-duration": `${e.transitionDuration}ms`,
|
146
|
+
"--overlay-min-height": `${w.value}px`
|
147
|
+
}),
|
148
|
+
onClick: Q(j, ["stop"])
|
149
|
+
}, [
|
150
|
+
x("div", te, [
|
151
|
+
x("div", {
|
152
|
+
ref_key: "inner",
|
153
|
+
ref: s,
|
154
|
+
class: "bb-listbox__inner-container"
|
155
|
+
}, [
|
156
|
+
v(e.$slots, "options:prepend"),
|
157
|
+
e.loading && !e.options.length ? (r(), c("div", oe, [
|
158
|
+
v(e.$slots, "loading", {}, () => [
|
159
|
+
D(g(e.loadingText), 1)
|
160
|
+
])
|
161
|
+
])) : e.options.length ? (r(), c("div", {
|
162
|
+
key: 2,
|
163
|
+
role: "listbox",
|
164
|
+
style: h({
|
165
|
+
height: `${F.value}px`
|
166
|
+
}),
|
167
|
+
tabindex: "-1"
|
168
|
+
}, [
|
169
|
+
(r(!0), c(U, null, X(O.value, (t, d) => (r(), c("div", {
|
170
|
+
key: i.value[t.index].value,
|
171
|
+
ref_for: !0,
|
172
|
+
ref: L,
|
173
|
+
"aria-selected": n.value === d ? !0 : void 0,
|
174
|
+
class: $({
|
175
|
+
"bb-listbox__option autocomplete-option": !0,
|
176
|
+
"autocomplete-option--focused": n.value === t.index,
|
177
|
+
"autocomplete-option--selected": i.value[t.index].selected,
|
178
|
+
"autocomplete-option--disabled": i.value[t.index].disabled
|
179
|
+
}),
|
180
|
+
"data-index": t.index,
|
181
|
+
role: "option",
|
182
|
+
style: h({
|
183
|
+
transform: `translateY(${t.start}px)`
|
184
|
+
})
|
185
|
+
}, [
|
186
|
+
x("span", ie, [
|
187
|
+
v(e.$slots, "option", {
|
188
|
+
disabled: !!i.value[t.index].disabled,
|
189
|
+
focused: n.value === t.index,
|
190
|
+
index: t.index,
|
191
|
+
item: i.value[t.index].item,
|
192
|
+
selected: !!i.value[t.index].selected,
|
193
|
+
text: i.value[t.index].text,
|
194
|
+
value: i.value[t.index].value
|
195
|
+
}, () => [
|
196
|
+
x("span", se, g(i.value[t.index].text), 1)
|
197
|
+
])
|
198
|
+
])
|
199
|
+
], 14, le))), 128))
|
200
|
+
], 4)) : (r(), c("div", ne, [
|
201
|
+
v(e.$slots, "no-data", {}, () => [
|
202
|
+
D(g(e.noDataText), 1)
|
203
|
+
])
|
204
|
+
])),
|
205
|
+
v(e.$slots, "options:append")
|
206
|
+
], 512)
|
207
|
+
])
|
208
|
+
], 6));
|
209
|
+
}
|
210
|
+
});
|
4
211
|
export {
|
5
|
-
|
212
|
+
pe as default
|
6
213
|
};
|