bitboss-ui 2.0.38 → 2.0.39
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 +47 -78
- package/dist/index208.js +13 -2
- package/dist/index209.js +158 -4
- package/dist/index21.js +197 -279
- package/dist/index210.js +84 -2
- package/dist/index212.js +2 -126
- package/dist/index213.js +4 -5
- package/dist/index214.js +2 -123
- package/dist/index215.js +124 -17
- package/dist/index216.js +5 -16
- package/dist/index217.js +122 -13
- package/dist/index218.js +19 -2
- package/dist/index219.js +16 -2
- package/dist/index220.js +14 -172
- package/dist/index221.js +2 -43
- package/dist/index222.js +4 -0
- package/dist/index223.js +40 -12
- package/dist/index224.js +20 -5
- package/dist/index225.js +6 -369
- package/dist/index226.js +5 -2
- package/dist/index227.js +368 -17
- package/dist/index228.js +6 -104
- package/dist/index229.js +21 -0
- package/dist/index23.js +287 -245
- package/dist/index230.js +27 -100
- package/dist/index231.js +5 -0
- package/dist/index232.js +249 -2
- package/dist/index233.js +52 -3
- package/dist/index234.js +44 -19
- package/dist/index235.js +5 -27
- package/dist/index236.js +43 -243
- package/dist/index237.js +3 -52
- package/dist/index238.js +7 -44
- package/dist/index239.js +4 -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 +3 -3
- package/dist/index248.js +9 -11
- package/dist/index249.js +3 -9
- package/dist/index25.js +249 -120
- package/dist/index250.js +3 -9
- package/dist/index251.js +12 -17
- package/dist/index252.js +9 -3
- package/dist/index253.js +8 -8
- package/dist/index254.js +17 -23
- package/dist/index255.js +3 -6
- package/dist/index257.js +7 -9
- package/dist/index258.js +4 -224
- package/dist/index266.js +19 -19
- package/dist/index267.js +431 -3
- package/dist/index268.js +178 -0
- package/dist/index269.js +22 -7
- package/dist/index27.js +119 -142
- package/dist/index272.js +2 -436
- package/dist/index273.js +2 -127
- package/dist/index274.js +2 -3
- package/dist/index275.js +2 -3
- package/dist/index276.js +2 -211
- package/dist/index278.js +22 -2
- package/dist/index280.js +5 -1
- package/dist/index281.js +16 -2
- package/dist/index282.js +3 -2
- package/dist/index283.js +9 -2
- package/dist/index284.js +23 -22
- package/dist/index286.js +200 -2
- package/dist/index287.js +434 -64
- package/dist/index288.js +127 -5
- package/dist/index289.js +8 -14
- 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 +224 -4
- package/dist/index294.js +34 -58
- package/dist/index295.js +66 -11
- package/dist/index296.js +2 -35
- package/dist/index297.js +4 -46
- package/dist/index298.js +7 -6
- package/dist/index299.js +10 -18
- package/dist/index300.js +5 -7
- package/dist/index301.js +4 -2
- package/dist/index302.js +4 -480
- package/dist/index303.js +6 -0
- package/dist/index304.js +53 -415
- package/dist/index305.js +6 -46
- package/dist/index306.js +19 -2
- package/dist/index307.js +9 -0
- package/dist/index308.js +81 -0
- package/dist/index31.js +85 -115
- package/dist/index310.js +49 -0
- package/dist/index311.js +4 -0
- package/dist/index313.js +482 -0
- package/dist/index314.js +426 -0
- package/dist/index315.js +49 -0
- package/dist/index316.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/index211.js +0 -5
- package/dist/index246.js +0 -202
- package/dist/index256.js +0 -18
- package/dist/index270.js +0 -24
- package/dist/index78.js +0 -129
- package/dist/index80.js +0 -238
- /package/dist/{index279.js → index271.js} +0 -0
- /package/dist/{index244.js → index285.js} +0 -0
package/dist/index88.js
CHANGED
@@ -1,94 +1,187 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as F, defineAsyncComponent as S, ref as n, computed as h, openBlock as v, createElementBlock as H, mergeProps as q, createElementVNode as p, renderSlot as k, normalizeProps as A, guardReactiveProps as I, createBlock as y, unref as V, withCtx as C, createCommentVNode as $, nextTick as W } from "vue";
|
2
|
+
import { useFocusTrap as z } from "./index223.js";
|
3
|
+
import { useId as R } from "./index8.js";
|
4
|
+
import { useIntersectionObserver as j } from "./index132.js";
|
5
|
+
import { waitFor as G } from "./index225.js";
|
6
|
+
import J from "./index13.js";
|
3
7
|
/* empty css */
|
4
|
-
|
5
|
-
|
6
|
-
const R = /* @__PURE__ */ f({
|
7
|
-
__name: "BbRadio",
|
8
|
+
const ee = /* @__PURE__ */ F({
|
9
|
+
__name: "BbPopover",
|
8
10
|
props: {
|
9
|
-
|
10
|
-
|
11
|
-
color: {},
|
12
|
-
direction: { default: "auto" },
|
11
|
+
arrowPadding: { default: 10 },
|
12
|
+
block: { type: Boolean },
|
13
13
|
disabled: { type: Boolean },
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
name: {},
|
24
|
-
persistentHint: { type: Boolean },
|
25
|
-
readonly: {},
|
26
|
-
required: { type: Boolean },
|
27
|
-
reverse: { type: Boolean, default: !0 },
|
28
|
-
value: {}
|
14
|
+
eager: { type: Boolean },
|
15
|
+
offset: { default: 3 },
|
16
|
+
padding: { default: 10 },
|
17
|
+
placement: { default: "bottom" },
|
18
|
+
showClose: { type: Boolean, default: !0 },
|
19
|
+
theme: { default: "default" },
|
20
|
+
transitionDuration: { default: 150 },
|
21
|
+
focusTarget: {},
|
22
|
+
width: {}
|
29
23
|
},
|
30
|
-
emits: ["
|
31
|
-
setup(
|
32
|
-
const
|
33
|
-
|
34
|
-
|
24
|
+
emits: ["shown", "hidden"],
|
25
|
+
setup(T, { emit: B }) {
|
26
|
+
const P = S(
|
27
|
+
() => import("./index282.js")
|
28
|
+
), t = T, s = B, { id: _ } = R(), c = `bbp_${_.value}`, r = n(), i = n(), { activate: N, deactivate: D } = z(i, {
|
29
|
+
/**
|
30
|
+
* This traps all clicks outside so we are pressing
|
31
|
+
* the trigger we just allow and process that in its
|
32
|
+
* own click handler.
|
33
|
+
* If we are pressing anything random on the page
|
34
|
+
* close the popover and be done
|
35
|
+
*/
|
36
|
+
clickOutsideDeactivates: (e) => {
|
37
|
+
var w;
|
38
|
+
const o = e.target;
|
39
|
+
return o instanceof HTMLElement && (w = r.value) != null && w.contains(o) || (l(), s("hidden")), !0;
|
35
40
|
},
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
41
|
+
escapeDeactivates: () => (W(async () => {
|
42
|
+
await l(), f(), s("hidden");
|
43
|
+
}), !0),
|
44
|
+
/* We don't return focus so that when
|
45
|
+
* we press a button on tyhe page we can focus
|
46
|
+
* THAT button and not the current trigger
|
47
|
+
*/
|
48
|
+
returnFocusOnDeactivate: !1
|
49
|
+
});
|
50
|
+
j(
|
51
|
+
r,
|
52
|
+
([{ intersectionRatio: e }]) => {
|
53
|
+
e !== 1 && a.value && l();
|
40
54
|
},
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
55
|
+
{ threshold: [0, 1] }
|
56
|
+
);
|
57
|
+
const E = h(() => ({
|
58
|
+
class: {
|
59
|
+
"bb-popover--block": t.block,
|
60
|
+
[`bb-popover--${t.theme}`]: !0
|
61
|
+
}
|
62
|
+
})), d = n(!1), u = n(!1), a = n(!1), m = n(!1), b = n(!0), L = async () => {
|
63
|
+
d.value = !0, await G(() => !!i.value), a.value = !0;
|
64
|
+
}, l = async () => {
|
65
|
+
a.value = !1;
|
66
|
+
}, M = async () => {
|
67
|
+
if (a.value) {
|
68
|
+
await l(), f(), s("hidden");
|
69
|
+
return;
|
70
|
+
}
|
71
|
+
if (u.value || t.disabled) return;
|
72
|
+
d.value = !0, await L();
|
73
|
+
let e = t.focusTarget ?? ".bb-popover__close";
|
74
|
+
N({
|
75
|
+
onPostActivate: () => {
|
76
|
+
if (i.value) {
|
77
|
+
const o = i.value.querySelector(e);
|
78
|
+
o instanceof HTMLElement && (o.focus(), s("shown"));
|
79
|
+
}
|
80
|
+
}
|
81
|
+
});
|
82
|
+
}, f = () => {
|
83
|
+
var o;
|
84
|
+
const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
|
85
|
+
e instanceof HTMLElement && e.focus({ preventScroll: !0 });
|
86
|
+
}, g = async () => {
|
87
|
+
D(), await l(), f(), s("hidden");
|
88
|
+
}, O = h(() => {
|
89
|
+
if (t.width) {
|
90
|
+
let e;
|
91
|
+
if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
|
92
|
+
if (t.width.includes("%")) {
|
93
|
+
if (!r.value) return;
|
94
|
+
e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
|
95
|
+
} else
|
96
|
+
e = t.width;
|
97
|
+
else
|
98
|
+
e = `${t.width}`;
|
99
|
+
return `${e}px`;
|
100
|
+
}
|
101
|
+
});
|
102
|
+
return (e, o) => (v(), H("span", q({ class: "bb-popover" }, E.value), [
|
103
|
+
p("span", {
|
104
|
+
ref_key: "wrapper",
|
105
|
+
ref: r,
|
106
|
+
class: "bb-popover__wrapper"
|
107
|
+
}, [
|
108
|
+
k(e.$slots, "activator", A(I({
|
109
|
+
props: {
|
110
|
+
"aria-controls": `popover_${c}`,
|
111
|
+
"aria-expanded": a.value,
|
112
|
+
onClick: M,
|
113
|
+
id: c,
|
114
|
+
disabled: !!e.disabled
|
115
|
+
},
|
116
|
+
closed: b.value,
|
117
|
+
closing: m.value,
|
118
|
+
disabled: !!e.disabled,
|
119
|
+
open: a.value,
|
120
|
+
opening: u.value,
|
121
|
+
placement: e.placement
|
122
|
+
})))
|
123
|
+
], 512),
|
124
|
+
d.value || e.eager ? (v(), y(V(P), {
|
125
|
+
key: 0,
|
126
|
+
"arrow-padding": e.arrowPadding,
|
127
|
+
"base-class": "bb-popover",
|
128
|
+
"container-attributes": {
|
129
|
+
id: `popover_${c}`,
|
130
|
+
style: { width: O.value }
|
131
|
+
},
|
132
|
+
eager: e.eager,
|
133
|
+
offset: e.offset,
|
134
|
+
open: a.value,
|
135
|
+
padding: e.padding,
|
136
|
+
placement: e.placement,
|
137
|
+
theme: e.theme,
|
138
|
+
"transition-duration": e.transitionDuration,
|
139
|
+
wrapper: r.value
|
140
|
+
}, {
|
141
|
+
default: C(() => [
|
142
|
+
p("div", {
|
143
|
+
ref_key: "content",
|
144
|
+
ref: i,
|
145
|
+
class: "bb-popover__content"
|
146
|
+
}, [
|
147
|
+
e.showClose ? (v(), y(J, {
|
148
|
+
key: 0,
|
149
|
+
class: "bb-popover__close",
|
150
|
+
onClick: g
|
151
|
+
}, {
|
152
|
+
default: C(() => o[0] || (o[0] = [
|
153
|
+
p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
|
154
|
+
p("svg", {
|
155
|
+
fill: "none",
|
156
|
+
viewBox: "0 0 24 24",
|
157
|
+
xmlns: "http://www.w3.org/2000/svg"
|
158
|
+
}, [
|
159
|
+
p("path", {
|
160
|
+
d: "M23 23L1 1M23 1L1 23",
|
161
|
+
stroke: "currentColor",
|
162
|
+
"stroke-linecap": "round",
|
163
|
+
"stroke-width": "2"
|
164
|
+
})
|
165
|
+
], -1)
|
166
|
+
])),
|
167
|
+
_: 1
|
168
|
+
})) : $("", !0),
|
169
|
+
k(e.$slots, "default", {
|
170
|
+
close: g,
|
171
|
+
closed: b.value,
|
172
|
+
closing: m.value,
|
173
|
+
disabled: !!e.disabled,
|
174
|
+
open: a.value,
|
175
|
+
opening: u.value,
|
176
|
+
placement: e.placement
|
177
|
+
})
|
178
|
+
], 512)
|
179
|
+
]),
|
180
|
+
_: 3
|
181
|
+
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : $("", !0)
|
182
|
+
], 16));
|
90
183
|
}
|
91
184
|
});
|
92
185
|
export {
|
93
|
-
|
186
|
+
ee as default
|
94
187
|
};
|
package/dist/index9.js
CHANGED
package/dist/index90.js
CHANGED
@@ -1,129 +1,33 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const E = /* @__PURE__ */ v({
|
7
|
-
__name: "BbRadioGroup",
|
1
|
+
import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
+
import { clamp as p } from "./index204.js";
|
3
|
+
import { getAsPercentageBetween as i } from "./index130.js";
|
4
|
+
const _ = /* @__PURE__ */ r({
|
5
|
+
__name: "BbProgress",
|
8
6
|
props: {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
depsDebounceTime: {},
|
13
|
-
disabled: { type: Boolean },
|
14
|
-
enforceCoherence: { type: Boolean },
|
15
|
-
errors: {},
|
16
|
-
hasErrors: { type: Boolean },
|
17
|
-
hideLabel: { type: Boolean },
|
18
|
-
hideLegend: { type: Boolean },
|
19
|
-
hint: {},
|
20
|
-
id: {},
|
21
|
-
inputDirection: {},
|
22
|
-
items: { type: [Array, Function] },
|
23
|
-
itemText: {},
|
24
|
-
itemValue: {},
|
25
|
-
legend: {},
|
26
|
-
loadingText: {},
|
27
|
-
modelValue: {},
|
28
|
-
modelValueDebounceTime: {},
|
29
|
-
name: {},
|
30
|
-
noDataText: {},
|
31
|
-
persistentHint: { type: Boolean },
|
32
|
-
readonly: {},
|
33
|
-
required: { type: Boolean },
|
34
|
-
reverse: { type: Boolean }
|
7
|
+
modelValue: { default: 0 },
|
8
|
+
min: { default: 0 },
|
9
|
+
max: { default: 100 }
|
35
10
|
},
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
return (e, k) => (B(), $(V, {
|
55
|
-
id: e.id,
|
56
|
-
class: "bb-radio-group",
|
57
|
-
direction: "vertical",
|
58
|
-
errors: e.errors,
|
59
|
-
"has-errors": e.hasErrors,
|
60
|
-
"hide-label": e.hideLegend,
|
61
|
-
hint: e.hint,
|
62
|
-
label: e.legend,
|
63
|
-
"label-tag": "legend",
|
64
|
-
name: e.name,
|
65
|
-
reverse: e.reverse,
|
66
|
-
"show-hint": m.value,
|
67
|
-
tag: "fieldset"
|
68
|
-
}, {
|
69
|
-
label: a((s) => [
|
70
|
-
i(e.$slots, "legend", r(l(s)))
|
71
|
-
]),
|
72
|
-
input: a(({ id: s, name: b, hasErrors: h, ariaDescribedby: f }) => [
|
73
|
-
w(D, T({
|
74
|
-
id: s,
|
75
|
-
"aria-describedby": f,
|
76
|
-
autofocus: e.autofocus,
|
77
|
-
color: e.color,
|
78
|
-
dependencies: e.dependencies,
|
79
|
-
"deps-debounce-time": e.depsDebounceTime,
|
80
|
-
direction: e.inputDirection,
|
81
|
-
disabled: e.disabled,
|
82
|
-
"enforce-coherence": e.enforceCoherence,
|
83
|
-
"has-errors": h,
|
84
|
-
"hide-label": e.hideLabel,
|
85
|
-
"item-text": e.itemText,
|
86
|
-
"item-value": e.itemValue,
|
87
|
-
items: e.items,
|
88
|
-
"loading-text": e.loadingText,
|
89
|
-
"model-value": e.modelValue,
|
90
|
-
"model-value-debounce-time": e.modelValueDebounceTime,
|
91
|
-
name: b,
|
92
|
-
"no-data-text": e.noDataText,
|
93
|
-
readonly: e.readonly,
|
94
|
-
required: e.required
|
95
|
-
}, c), {
|
96
|
-
prepend: a((o) => [
|
97
|
-
i(e.$slots, "prepend", r(l(o)))
|
98
|
-
]),
|
99
|
-
loading: a((o) => [
|
100
|
-
i(e.$slots, "loading", r(l(o)))
|
101
|
-
]),
|
102
|
-
"no-data": a((o) => [
|
103
|
-
i(e.$slots, "no-data", r(l(o)))
|
104
|
-
]),
|
105
|
-
"option:prepend": a((o) => [
|
106
|
-
i(e.$slots, "option:prepend", r(l(o)))
|
107
|
-
]),
|
108
|
-
icon: a((o) => [
|
109
|
-
i(e.$slots, "icon", r(l(o)))
|
110
|
-
]),
|
111
|
-
label: a((o) => [
|
112
|
-
i(e.$slots, "label", r(l(o)))
|
113
|
-
]),
|
114
|
-
"option:append": a((o) => [
|
115
|
-
i(e.$slots, "option:append", r(l(o)))
|
116
|
-
]),
|
117
|
-
append: a((o) => [
|
118
|
-
i(e.$slots, "append", r(l(o)))
|
119
|
-
]),
|
120
|
-
_: 2
|
121
|
-
}, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly", "required"])
|
122
|
-
]),
|
123
|
-
_: 3
|
124
|
-
}, 8, ["id", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
|
11
|
+
setup(t) {
|
12
|
+
const e = t, o = a(
|
13
|
+
() => p(
|
14
|
+
i(e.modelValue || e.min, e.min, e.max),
|
15
|
+
0,
|
16
|
+
100
|
17
|
+
)
|
18
|
+
);
|
19
|
+
return (d, u) => (l(), s("div", {
|
20
|
+
class: m(["bb-progress", {
|
21
|
+
"bb-progress--horizontal": !0
|
22
|
+
}])
|
23
|
+
}, [
|
24
|
+
n("div", {
|
25
|
+
class: "bb-progress-bar",
|
26
|
+
style: c({ width: o.value + "%" })
|
27
|
+
}, null, 4)
|
28
|
+
]));
|
125
29
|
}
|
126
30
|
});
|
127
31
|
export {
|
128
|
-
|
32
|
+
_ as default
|
129
33
|
};
|
package/dist/index92.js
CHANGED
@@ -1,41 +1,42 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import V from "./
|
1
|
+
import { defineComponent as f, ref as v, computed as y, openBlock as k, createBlock as w, withCtx as l, renderSlot as i, normalizeProps as B, guardReactiveProps as g, createVNode as P, mergeProps as n } from "vue";
|
2
|
+
import V from "./index27.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import q from "./index31.js";
|
5
5
|
/* empty css */
|
6
|
-
const
|
7
|
-
__name: "
|
6
|
+
const R = /* @__PURE__ */ f({
|
7
|
+
__name: "BbRadio",
|
8
8
|
props: {
|
9
9
|
autofocus: {},
|
10
|
+
checked: {},
|
10
11
|
color: {},
|
12
|
+
direction: { default: "auto" },
|
11
13
|
disabled: { type: Boolean },
|
12
14
|
errors: {},
|
13
15
|
hasErrors: { type: Boolean },
|
14
|
-
|
16
|
+
hideLabel: { type: Boolean },
|
15
17
|
hint: {},
|
16
18
|
id: {},
|
17
|
-
inputPosition: {
|
18
|
-
|
19
|
-
|
19
|
+
inputPosition: {},
|
20
|
+
label: {},
|
21
|
+
labelPosition: {},
|
20
22
|
modelValue: {},
|
21
23
|
name: {},
|
22
24
|
persistentHint: { type: Boolean },
|
23
25
|
readonly: {},
|
24
|
-
|
25
|
-
|
26
|
-
|
26
|
+
required: { type: Boolean },
|
27
|
+
reverse: { type: Boolean, default: !0 },
|
28
|
+
value: {}
|
27
29
|
},
|
28
|
-
emits: ["blur", "change", "click", "focus", "
|
29
|
-
setup(
|
30
|
-
const
|
31
|
-
onBlur: (e) =>
|
30
|
+
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
31
|
+
setup(s, { emit: t }) {
|
32
|
+
const d = s, o = t, r = v(!1), u = y(() => d.persistentHint || r.value), p = {
|
33
|
+
onBlur: (e) => {
|
34
|
+
r.value = !1, o("blur", e);
|
35
|
+
},
|
32
36
|
onChange: (e) => o("change", e),
|
33
37
|
onClick: (e) => o("click", e),
|
34
38
|
onFocus: (e) => {
|
35
|
-
|
36
|
-
},
|
37
|
-
onInactive: () => {
|
38
|
-
l.value = !1, o("inactive");
|
39
|
+
r.value = !0, o("focus", e);
|
39
40
|
},
|
40
41
|
onInput: (e) => o("input", e),
|
41
42
|
onKeydown: (e) => o("keydown", e),
|
@@ -43,56 +44,51 @@ const M = /* @__PURE__ */ g({
|
|
43
44
|
onMouseup: (e) => o("mouseup", e),
|
44
45
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
45
46
|
};
|
46
|
-
return (e,
|
47
|
+
return (e, C) => (k(), w(V, {
|
47
48
|
id: e.id,
|
48
|
-
class: "bb-
|
49
|
-
direction:
|
49
|
+
class: "bb-radio",
|
50
|
+
direction: e.direction,
|
50
51
|
errors: e.errors,
|
51
52
|
"has-errors": e.hasErrors,
|
52
|
-
"hide-label": e.
|
53
|
+
"hide-label": e.hideLabel,
|
53
54
|
hint: e.hint,
|
54
55
|
"input-position": e.inputPosition,
|
55
|
-
label: e.
|
56
|
-
"label-position": e.
|
57
|
-
"label-tag": "
|
56
|
+
label: e.label,
|
57
|
+
"label-position": e.labelPosition,
|
58
|
+
"label-tag": "span",
|
58
59
|
name: e.name,
|
59
60
|
reverse: e.reverse,
|
60
|
-
"show-hint":
|
61
|
-
tag: "
|
61
|
+
"show-hint": u.value,
|
62
|
+
tag: "label"
|
62
63
|
}, {
|
63
|
-
label:
|
64
|
-
|
64
|
+
label: l((a) => [
|
65
|
+
i(e.$slots, "label", B(g(a)))
|
65
66
|
]),
|
66
|
-
input:
|
67
|
-
|
68
|
-
id:
|
69
|
-
"aria-describedby":
|
67
|
+
input: l(({ id: a, name: m, hasErrors: c, ariaDescribedby: b }) => [
|
68
|
+
P(q, n({
|
69
|
+
id: a,
|
70
|
+
"aria-describedby": b,
|
70
71
|
autofocus: e.autofocus,
|
72
|
+
checked: e.checked,
|
71
73
|
color: e.color,
|
72
74
|
disabled: e.disabled,
|
73
|
-
"has-errors":
|
75
|
+
"has-errors": c,
|
74
76
|
"model-value": e.modelValue,
|
75
|
-
name:
|
77
|
+
name: m,
|
76
78
|
readonly: e.readonly,
|
77
|
-
|
78
|
-
|
79
|
-
},
|
80
|
-
|
81
|
-
|
82
|
-
]),
|
83
|
-
append: s((n) => [
|
84
|
-
r(e.$slots, "append", a(i(n)))
|
85
|
-
]),
|
86
|
-
icon: s((n) => [
|
87
|
-
r(e.$slots, "icon", a(i(n)))
|
79
|
+
required: e.required,
|
80
|
+
value: e.value
|
81
|
+
}, p), {
|
82
|
+
icon: l((h) => [
|
83
|
+
i(e.$slots, "icon", n(h, { text: e.label }))
|
88
84
|
]),
|
89
85
|
_: 2
|
90
|
-
}, 1040, ["id", "aria-describedby", "autofocus", "color", "disabled", "has-errors", "model-value", "name", "readonly", "
|
86
|
+
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
|
91
87
|
]),
|
92
88
|
_: 3
|
93
|
-
}, 8, ["id", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
|
89
|
+
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "input-position", "label", "label-position", "name", "reverse", "show-hint"]));
|
94
90
|
}
|
95
91
|
});
|
96
92
|
export {
|
97
|
-
|
93
|
+
R as default
|
98
94
|
};
|