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/index35.js
CHANGED
@@ -1,384 +1,132 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
7
|
-
|
8
|
-
import { isNotNil as Je } from "./index130.js";
|
9
|
-
import { last as Ye } from "./index219.js";
|
10
|
-
import { matchAnyKey as j } from "./index227.js";
|
11
|
-
import { useFloating as je } from "./index212.js";
|
12
|
-
import { useIntersectionObserver as Ge } from "./index128.js";
|
13
|
-
import { useLogger as Xe } from "./index204.js";
|
14
|
-
import { useOptions as Ze } from "./index205.js";
|
15
|
-
import { wait as T } from "./index127.js";
|
16
|
-
import { when as et } from "./index209.js";
|
17
|
-
import tt from "./index228.js";
|
18
|
-
/* empty css */
|
19
|
-
import ot from "./index230.js";
|
20
|
-
/* empty css */
|
21
|
-
import nt from "./index221.js";
|
22
|
-
/* empty css */
|
23
|
-
import lt from "./index223.js";
|
24
|
-
import { waitFor as at } from "./index202.js";
|
25
|
-
import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index225.js";
|
26
|
-
const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], dt = /* @__PURE__ */ S("svg", {
|
27
|
-
class: "bb-base-select__chevron",
|
28
|
-
viewBox: "0 0 24 24",
|
29
|
-
xmlns: "http://www.w3.org/2000/svg"
|
30
|
-
}, [
|
31
|
-
/* @__PURE__ */ S("path", {
|
32
|
-
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
|
33
|
-
fill: "currentColor"
|
34
|
-
})
|
35
|
-
], -1), xt = /* @__PURE__ */ Me({
|
36
|
-
__name: "BaseSelect",
|
1
|
+
import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
|
2
|
+
import { booleanishToBoolean as D } from "./index240.js";
|
3
|
+
import { identity as F } from "./index233.js";
|
4
|
+
import { isCssColor as v } from "./index211.js";
|
5
|
+
import { isNotNil as T } from "./index134.js";
|
6
|
+
const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
|
7
|
+
__name: "BaseRating",
|
37
8
|
props: {
|
38
|
-
addOptions: { type: Boolean },
|
39
|
-
allowWriting: { type: [Boolean, String], default: !0 },
|
40
|
-
"append:icon": {},
|
41
9
|
ariaDescribedby: {},
|
42
|
-
autocomplete: {},
|
43
10
|
autofocus: {},
|
44
|
-
|
45
|
-
dependencies: { default: () => [] },
|
46
|
-
depsDebounceTime: { default: 0 },
|
11
|
+
color: {},
|
47
12
|
disabled: { type: Boolean },
|
48
|
-
enforceCoherence: { type: Boolean },
|
49
|
-
filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
|
50
13
|
hasErrors: { type: Boolean },
|
51
14
|
id: {},
|
52
|
-
items: {},
|
53
|
-
itemText: {},
|
54
|
-
itemValue: {},
|
55
|
-
loading: { type: Boolean },
|
56
|
-
loadingText: { default: "Caricamento..." },
|
57
15
|
modelValue: {},
|
58
|
-
modelValueDebounceTime: { default: 0 },
|
59
|
-
multiple: { type: Boolean },
|
60
16
|
name: {},
|
61
|
-
|
62
|
-
placeholder: {},
|
63
|
-
prefill: { type: [Boolean, String], default: "focus" },
|
64
|
-
"prepend:icon": {},
|
65
|
-
queryDebounceTime: { default: 500 },
|
66
|
-
readonly: { type: Boolean },
|
17
|
+
readonly: {},
|
67
18
|
required: { type: Boolean },
|
68
|
-
|
69
|
-
|
70
|
-
transitionDuration: { default: 300 },
|
71
|
-
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
19
|
+
stars: { default: 5 },
|
20
|
+
size: {}
|
72
21
|
},
|
73
|
-
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
|
74
|
-
setup(
|
75
|
-
const
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
() => t.comma ? N.value : x.value
|
80
|
-
), { isMobile: ee } = We(), te = y(
|
81
|
-
() => t.allowWriting === "not-mobile" && ee.value ? "none" : void 0
|
82
|
-
), H = t.id || Ue().id.value;
|
83
|
-
Ge(
|
84
|
-
B,
|
85
|
-
([{ intersectionRatio: e }]) => {
|
86
|
-
e !== 1 && O();
|
22
|
+
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
23
|
+
setup(k, { emit: y }) {
|
24
|
+
const a = k, n = y, u = g(), o = g(!1), _ = {
|
25
|
+
onBlur: (e) => n("blur", e),
|
26
|
+
onChange: (e) => {
|
27
|
+
n("change", e), e.target instanceof HTMLInputElement && e.target.checked && n("update:modelValue", +e.target.value);
|
87
28
|
},
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
var
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
},
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
}, k = async (e) => {
|
117
|
-
if (e.target instanceof Node && A.value && a.value && !A.value.$el.contains(e.target) && !a.value.$el.contains(e.target)) {
|
118
|
-
O(), qe(), document.removeEventListener("click", k), document.removeEventListener("focusin", k), await T(t.transitionDuration), he();
|
119
|
-
return;
|
120
|
-
}
|
121
|
-
}, w = y(() => !(t.readonly || t.disabled || D.value || !u.value && t.multiple)), ue = async () => {
|
122
|
-
var e, o, n;
|
123
|
-
w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusPrevious() : (await V(), await T(t.transitionDuration), (n = a.value) == null || n.focusLastSelected()));
|
124
|
-
}, pe = async () => {
|
125
|
-
var e, o, n;
|
126
|
-
w.value && ((e = u.value) == null || e.blur(), d.value ? (o = a.value) == null || o.focusNext() : (await V(), await T(t.transitionDuration), (n = a.value) == null || n.focusFirstSelected()));
|
127
|
-
}, ce = (e) => {
|
128
|
-
var n, i, f, C;
|
129
|
-
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !v.value.length)) return;
|
130
|
-
(i = u.value) == null || i.focusPrevious();
|
131
|
-
const o = (f = u.value) == null ? void 0 : f.getHighlighted();
|
132
|
-
o && ((C = a.value) == null || C.focusByHash(o.valueHash));
|
133
|
-
}, de = (e) => {
|
134
|
-
var n, i, f, C;
|
135
|
-
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (n = a.value) == null || n.blur(), !v.value.length)) return;
|
136
|
-
(i = u.value) == null || i.focusNext();
|
137
|
-
const o = (f = u.value) == null ? void 0 : f.getHighlighted();
|
138
|
-
o && ((C = a.value) == null || C.focusByHash(o.valueHash));
|
139
|
-
}, fe = async () => {
|
140
|
-
var e, o;
|
141
|
-
if (w.value) {
|
142
|
-
if (!d.value)
|
143
|
-
await V(), await T(t.transitionDuration), v.value.length && ((e = a.value) == null || e.focusFirstSelected());
|
144
|
-
else if ((o = a.value) != null && o.getHighlighted())
|
145
|
-
a.value.confirmOption();
|
146
|
-
else if (t.addOptions) {
|
147
|
-
if (t.itemText || t.itemValue) {
|
148
|
-
const { error: i } = Xe();
|
149
|
-
i(
|
150
|
-
`Adding an option for mapped items is not supported. You can't create an option while passing "item-text" or "item-value".`
|
151
|
-
);
|
152
|
-
return;
|
153
|
-
}
|
154
|
-
const n = l.value.trim();
|
155
|
-
if (De(n)) return;
|
156
|
-
be(), z(Ye(Ve.value));
|
157
|
-
}
|
158
|
-
}
|
159
|
-
}, me = async () => {
|
160
|
-
d.value && await O();
|
161
|
-
}, ve = async () => {
|
162
|
-
var e, o;
|
163
|
-
!w.value || l.value || !v.value.length || ((e = u.value) != null && e.getHighlighted() && u.value.confirmOption(), await Ke(), (o = u.value) == null || o.focusPrevious());
|
164
|
-
}, ye = t.prefill === !0 || !t.multiple && Je(t.modelValue) || t.multiple && !!t.modelValue.length, {
|
165
|
-
query: l,
|
166
|
-
alignQueryToState: he,
|
167
|
-
addCurrentQueryToManualItems: be,
|
168
|
-
innerLoading: P,
|
169
|
-
options: _,
|
170
|
-
selectedOptions: v,
|
171
|
-
selectOption: ge,
|
172
|
-
unselectOption: we,
|
173
|
-
prefillItems: Be,
|
174
|
-
isPrefilling: Oe,
|
175
|
-
hasPrefilled: Ce,
|
176
|
-
updateModelValue: ke,
|
177
|
-
valueIsSelected: De,
|
178
|
-
manualItems: Ve,
|
179
|
-
searchByQuery: Ie
|
180
|
-
} = Ze({
|
181
|
-
emit: h,
|
182
|
-
itemText: t.itemText,
|
183
|
-
itemValue: t.itemValue,
|
184
|
-
modelValue: I(t, "modelValue"),
|
185
|
-
multiple: t.multiple,
|
186
|
-
resetQueryOnOptionSelected: t.resetQueryOnOptionSelected,
|
187
|
-
stash: t.stash,
|
188
|
-
items: I(t, "items"),
|
189
|
-
enforceCoherence: t.enforceCoherence,
|
190
|
-
prefill: ye,
|
191
|
-
modelValueDebounceTime: t.modelValueDebounceTime,
|
192
|
-
dependencies: I(t, "dependencies"),
|
193
|
-
depsDebounceTime: t.depsDebounceTime,
|
194
|
-
queryDebounceTime: t.queryDebounceTime,
|
195
|
-
disabled: I(t, "disabled")
|
196
|
-
}), $e = y(() => v.value.length ? "" : t.placeholder), D = y(() => !!(P.value || t.loading)), Te = y(() => {
|
197
|
-
let e = [];
|
198
|
-
const o = v.value.some(
|
199
|
-
(i) => i.text === l.value
|
200
|
-
);
|
201
|
-
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = _.value.filter((i) => {
|
202
|
-
let f = !1;
|
203
|
-
return typeof t.filterBy == "function" ? f = t.filterBy(i.value, i.item) : Array.isArray(t.filterBy) && t.filterBy.length && (f = f || j(i.item, t.filterBy, l.value.trim())), f || j(i, ["text"], l.value.trim());
|
204
|
-
}) : e = _.value, e;
|
205
|
-
}), z = (e) => {
|
206
|
-
ge(e), E(), t.multiple || O();
|
207
|
-
}, Q = (e) => {
|
208
|
-
we(e), E();
|
209
|
-
}, d = m(!1), K = m(!0), U = m(!1), V = async () => {
|
210
|
-
U.value = !0, await at(() => !!a.value), K.value = !1, d.value = !0;
|
211
|
-
}, O = async () => {
|
212
|
-
var e;
|
213
|
-
d.value = !1, K.value = !0, (e = u.value) == null || e.blur();
|
214
|
-
}, Se = () => d.value ? O() : V(), L = m(!1), Ae = () => {
|
215
|
-
L.value = !0;
|
216
|
-
}, qe = () => {
|
217
|
-
L.value = !1, h("inactive");
|
218
|
-
}, Ee = (e) => {
|
219
|
-
e.preventDefault(), h("click", e), !(t.disabled || t.readonly) && (E(), Se());
|
220
|
-
}, Le = et(
|
221
|
-
(e) => typeof e != "string",
|
222
|
-
JSON.stringify
|
223
|
-
), Fe = y(() => [].concat(t.modelValue).map((e) => {
|
224
|
-
const o = Le(e);
|
29
|
+
onClick: (e) => {
|
30
|
+
n("click", e), e.target instanceof HTMLInputElement && e.target.checked && +e.target.value === a.modelValue && n("update:modelValue", null);
|
31
|
+
},
|
32
|
+
onFocus: (e) => {
|
33
|
+
n("focus", e), o.value || (document.addEventListener("focusin", c, { passive: !0 }), document.addEventListener("click", d, { passive: !0 }), o.value = !0);
|
34
|
+
},
|
35
|
+
onInput: (e) => n("input", e),
|
36
|
+
onKeydown: (e) => n("keydown", e),
|
37
|
+
onMousedown: (e) => n("mousedown", e),
|
38
|
+
onMouseup: (e) => n("mouseup", e)
|
39
|
+
}, c = (e) => {
|
40
|
+
var t;
|
41
|
+
e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
|
42
|
+
}, d = (e) => {
|
43
|
+
var t;
|
44
|
+
e.target instanceof HTMLElement && ((t = u.value) != null && t.contains(e.target) || (n("inactive"), o.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", d)));
|
45
|
+
}, z = {
|
46
|
+
xs: 12,
|
47
|
+
sm: 16,
|
48
|
+
md: 24,
|
49
|
+
lg: 28,
|
50
|
+
xl: 36,
|
51
|
+
xxl: 40
|
52
|
+
}, m = f(() => {
|
53
|
+
let e;
|
54
|
+
return typeof a.size == "string" ? e = z[a.size] ?? parseInt(a.size, 10) : e = a.size, e;
|
55
|
+
}), w = f(() => new Array(a.stars).fill(0).map((e, t) => t + 1).map((e) => {
|
56
|
+
const t = a.id ? [a.id, e].filter(F).join("_") : void 0, s = e === a.modelValue, b = !!(a.modelValue && e <= a.modelValue), L = !!(a.disabled || T(a.readonly) && D(a.readonly));
|
225
57
|
return {
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
58
|
+
checked: s,
|
59
|
+
disabled: L,
|
60
|
+
highlighted: b,
|
61
|
+
id: t,
|
62
|
+
name: a.name,
|
63
|
+
size: m.value,
|
64
|
+
value: e
|
65
|
+
};
|
66
|
+
})), E = f(() => {
|
67
|
+
let e = {};
|
68
|
+
return a.color && v(a.color) && (e["--color"] = a.color), m.value && (e["--size"] = `${m.value}px`), {
|
69
|
+
class: {
|
70
|
+
"bb-base-rating": !0,
|
71
|
+
"bb-base-rating--has-value": a.modelValue,
|
72
|
+
"bb-base-rating--disabled": a.disabled,
|
73
|
+
"bb-base-rating--errors": a.hasErrors,
|
74
|
+
"bb-base-rating--readonly": a.readonly,
|
75
|
+
[`bb-base-rating--${a.color}`]: a.color && !v(a.color)
|
76
|
+
},
|
77
|
+
style: e
|
230
78
|
};
|
231
|
-
})
|
232
|
-
return (e,
|
233
|
-
ref_key: "
|
234
|
-
ref:
|
235
|
-
|
236
|
-
|
237
|
-
"
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
"bb-base-select--errors": e.hasErrors,
|
242
|
-
"bb-base-select--readonly": e.readonly
|
243
|
-
}),
|
244
|
-
onClick: Ee
|
245
|
-
}, {
|
246
|
-
"prepend-outer": r(() => [
|
247
|
-
p(e.$slots, "prepend-outer", { query: s(l) })
|
248
|
-
]),
|
249
|
-
"append-outer": r(() => [
|
250
|
-
p(e.$slots, "append-outer", { query: s(l) })
|
251
|
-
]),
|
252
|
-
default: r(() => [
|
253
|
-
F(nt, {
|
254
|
-
ref_key: "innerContainer",
|
255
|
-
ref: B,
|
256
|
-
"append:icon": t["append:icon"],
|
257
|
-
"prepend:icon": t["prepend:icon"]
|
258
|
-
}, {
|
259
|
-
prepend: r(() => [
|
260
|
-
p(e.$slots, "prepend", { query: s(l) })
|
261
|
-
]),
|
262
|
-
prefix: r(() => [
|
263
|
-
p(e.$slots, "prefix")
|
264
|
-
]),
|
265
|
-
append: r(() => [
|
266
|
-
p(e.$slots, "append", { query: s(l) })
|
267
|
-
]),
|
268
|
-
suffix: r(() => [
|
269
|
-
p(e.$slots, "suffix")
|
270
|
-
]),
|
271
|
-
default: r(() => [
|
272
|
-
F(s(Re), { tag: "span" }, {
|
273
|
-
default: r(() => [
|
274
|
-
S("span", pt, [
|
275
|
-
e.multiple ? (b(), M(R, { key: 0 }, [
|
276
|
-
e.comma ? (b(), $(ot, {
|
277
|
-
key: 0,
|
278
|
-
ref_key: "commaBox",
|
279
|
-
ref: N,
|
280
|
-
options: s(v)
|
281
|
-
}, null, 8, ["options"])) : (b(), $(tt, {
|
282
|
-
key: 1,
|
283
|
-
ref_key: "chipsBox",
|
284
|
-
ref: x,
|
285
|
-
options: s(v),
|
286
|
-
"onOption:unselected": Q
|
287
|
-
}, null, 8, ["options"]))
|
288
|
-
], 64)) : J("", !0),
|
289
|
-
xe(S("input", {
|
290
|
-
id: s(H),
|
291
|
-
ref_key: "input",
|
292
|
-
ref: q,
|
293
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) => He(l) ? l.value = n : null),
|
294
|
-
"aria-autocomplete": "list",
|
295
|
-
"aria-controls": `${s(H)}_listbox`,
|
296
|
-
"aria-describedby": e.ariaDescribedby,
|
297
|
-
"aria-expanded": d.value,
|
298
|
-
autocomplete: e.autocomplete,
|
299
|
-
autofocus: e.autofocus,
|
300
|
-
class: W("bb-base-select__text-input"),
|
301
|
-
disabled: e.disabled,
|
302
|
-
inputmode: te.value,
|
303
|
-
placeholder: $e.value,
|
304
|
-
readonly: e.readonly || !e.allowWriting,
|
305
|
-
required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
|
306
|
-
role: "combobox",
|
307
|
-
type: "text",
|
308
|
-
onBlur: c(ie, ["stop"]),
|
309
|
-
onChange: c(re, ["stop"]),
|
310
|
-
onFocusOnce: c(ae, ["stop"]),
|
311
|
-
onFocus: c(le, ["stop"]),
|
312
|
-
onInput: c(se, ["stop"]),
|
313
|
-
onKeydown: [
|
314
|
-
g(c(ve, ["stop"]), ["delete"]),
|
315
|
-
g(c(ce, ["stop"]), ["left"]),
|
316
|
-
g(c(pe, ["stop", "prevent"]), ["down"]),
|
317
|
-
g(c(fe, ["stop", "prevent"]), ["enter"]),
|
318
|
-
g(c(me, ["stop", "prevent"]), ["esc"]),
|
319
|
-
g(c(ue, ["stop", "prevent"]), ["up"]),
|
320
|
-
g(c(de, ["stop"]), ["right"])
|
321
|
-
]
|
322
|
-
}, null, 40, ct), [
|
323
|
-
[Pe, s(l)]
|
324
|
-
])
|
325
|
-
])
|
326
|
-
]),
|
327
|
-
_: 1
|
328
|
-
}),
|
329
|
-
p(e.$slots, "chevron", {
|
330
|
-
loading: !!s(P),
|
331
|
-
shown: d.value
|
332
|
-
}, () => [
|
333
|
-
dt
|
334
|
-
])
|
335
|
-
]),
|
336
|
-
_: 3
|
337
|
-
}, 8, ["append:icon", "prepend:icon"]),
|
338
|
-
(b(!0), M(R, null, _e(Fe.value, (n) => (b(), M("input", Y({
|
339
|
-
key: n.value,
|
340
|
-
ref_for: !0
|
341
|
-
}, n), null, 16))), 128)),
|
342
|
-
U.value ? (b(), $(ze, {
|
343
|
-
key: 0,
|
344
|
-
to: "body"
|
79
|
+
});
|
80
|
+
return (e, t) => (l(), i("span", h(E.value, {
|
81
|
+
ref_key: "container",
|
82
|
+
ref: u
|
83
|
+
}), [
|
84
|
+
r("span", $, [
|
85
|
+
p(e.$slots, "prepend"),
|
86
|
+
(l(!0), i(I, null, V(w.value, (s, b) => (l(), i("label", {
|
87
|
+
key: s.value,
|
88
|
+
class: B(["bb-base-rating__option", { "bb-base-rating__option--highlighted": s.highlighted }])
|
345
89
|
}, [
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
90
|
+
r("span", q, M(s.value), 1),
|
91
|
+
r("input", h({
|
92
|
+
id: s.id,
|
93
|
+
"aria-describedby": e.ariaDescribedby,
|
94
|
+
autofocus: e.autofocus && !b,
|
95
|
+
checked: s.checked,
|
96
|
+
class: "sr-only",
|
97
|
+
disabled: s.disabled,
|
98
|
+
name: s.name,
|
99
|
+
required: e.required,
|
100
|
+
type: "radio",
|
101
|
+
value: s.value,
|
102
|
+
ref_for: !0
|
103
|
+
}, _), null, 16, x),
|
104
|
+
p(e.$slots, "icon", {
|
105
|
+
id: s.id,
|
106
|
+
checked: s.checked,
|
107
|
+
disabled: s.disabled,
|
108
|
+
size: s.size,
|
109
|
+
value: s.value
|
110
|
+
}, () => [
|
111
|
+
(l(), i("svg", {
|
112
|
+
height: s.size,
|
113
|
+
viewBox: "0 0 24 24",
|
114
|
+
width: s.size,
|
115
|
+
xmlns: "http://www.w3.org/2000/svg"
|
116
|
+
}, t[0] || (t[0] = [
|
117
|
+
r("path", {
|
118
|
+
d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
|
119
|
+
"stroke-linecap": "round",
|
120
|
+
"stroke-linejoin": "round"
|
121
|
+
}, null, -1)
|
122
|
+
]), 8, H))
|
123
|
+
])
|
124
|
+
], 2))), 128)),
|
125
|
+
p(e.$slots, "append")
|
126
|
+
])
|
127
|
+
], 16));
|
380
128
|
}
|
381
129
|
});
|
382
130
|
export {
|
383
|
-
|
131
|
+
J as default
|
384
132
|
};
|