bitboss-ui 2.0.165 → 2.0.167
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 +2 -1
- package/dist/components/BaseButton/RouterComponent.vue.d.ts +2 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +5 -2
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +106 -4
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +4 -3
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +5 -2
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +1 -1
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +3 -1
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +200 -10
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +10 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -2
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +3 -2
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +2 -4
- package/dist/components/BaseRating/BaseRating.vue.d.ts +5 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -4
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +8 -2
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +5 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BaseTag/BaseTag.vue.d.ts +207 -6
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +2 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -2
- package/dist/components/BbBadge/BbBadge.vue.d.ts +3 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -2
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -4
- package/dist/components/BbChip/BbChip.vue.d.ts +3 -2
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +241 -100
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +69 -126
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -2
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +5 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +100 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +10 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +10 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +168 -15
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +2 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +3 -2
- package/dist/components/BbRatio/BbRatio.vue.d.ts +2 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +3 -5
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -4
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +6 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +2 -4
- package/dist/components/BbTab/BbTab.vue.d.ts +6 -2
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
- package/dist/components/BbTeleport.vue.d.ts +2 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +175 -7
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -1
- package/dist/components/ClearableButton.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +6 -2
- package/dist/components/CommonInputInnerContainer.vue.d.ts +5 -2
- package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -4
- package/dist/components/CommonPopover.vue.d.ts +42 -0
- package/dist/components/ErrorIcon.vue.d.ts +1 -1
- package/dist/components/ListBox.vue.d.ts +4 -6
- package/dist/components/OptionsContainer.vue.d.ts +4 -6
- package/dist/components/Transitions/Slide.vue.d.ts +2 -1
- package/dist/composables/useUntil.d.ts +7 -0
- package/dist/{style.css → index.css} +1 -1
- package/dist/index.js +148 -143
- package/dist/index100.js +122 -135
- package/dist/index102.js +100 -0
- package/dist/index104.js +24 -0
- package/dist/index106.js +144 -0
- package/dist/index107.js +106 -59
- package/dist/index109.js +101 -289
- package/dist/index11.js +2 -2
- package/dist/index111.js +37 -476
- package/dist/index113.js +31 -118
- package/dist/index115.js +43 -61
- package/dist/index117.js +86 -78
- package/dist/index119.js +296 -26
- package/dist/index12.js +6 -6
- package/dist/index121.js +470 -138
- package/dist/index123.js +117 -115
- package/dist/index125.js +110 -35
- package/dist/index127.js +115 -45
- package/dist/index129.js +28 -31
- package/dist/index13.js +5 -5
- package/dist/index131.js +117 -21
- package/dist/index133.js +120 -9
- package/dist/index135.js +2 -2
- package/dist/index136.js +21 -5
- package/dist/index137.js +375 -7
- package/dist/index138.js +9 -6
- package/dist/index139.js +25 -3
- package/dist/index140.js +2 -3
- package/dist/index141.js +5 -3
- package/dist/index142.js +9 -3
- package/dist/index143.js +6 -3
- 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 +15 -15
- 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 +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +2 -2
- package/dist/index167.js +5 -0
- package/dist/index168.js +2 -2
- package/dist/index169.js +5 -0
- package/dist/index17.js +6 -6
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +2 -2
- package/dist/index178.js +5 -0
- package/dist/index179.js +3 -2
- package/dist/index180.js +1 -1
- package/dist/index181.js +2 -3
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index188.js +2 -2
- package/dist/index189.js +3 -2
- package/dist/index19.js +10 -10
- package/dist/index190.js +1 -1
- package/dist/index191.js +2 -3
- package/dist/index192.js +1 -1
- package/dist/index193.js +5 -0
- package/dist/index194.js +1 -1
- package/dist/index195.js +5 -0
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index200.js +1 -1
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +100 -77
- package/dist/index208.js +2 -4
- package/dist/index209.js +3 -40
- package/dist/index21.js +17 -17
- package/dist/index210.js +41 -20
- package/dist/index211.js +19 -93
- package/dist/index212.js +96 -0
- package/dist/{index213.js → index214.js} +9 -9
- package/dist/{index215.js → index216.js} +15 -15
- package/dist/index218.js +13 -13
- package/dist/index219.js +13 -5
- package/dist/index220.js +5 -16
- package/dist/index221.js +5 -16
- package/dist/index222.js +5 -19
- package/dist/index223.js +5 -15
- package/dist/index224.js +5 -19
- package/dist/index225.js +5 -27
- package/dist/index226.js +5 -3
- package/dist/index227.js +3 -2
- package/dist/index228.js +2 -8
- package/dist/index229.js +6 -248
- package/dist/index23.js +25 -25
- package/dist/index230.js +240 -42
- package/dist/index231.js +43 -35
- package/dist/index232.js +44 -5
- package/dist/index233.js +5 -60
- package/dist/index234.js +60 -3
- package/dist/index235.js +5 -85
- package/dist/index236.js +9 -0
- package/dist/index237.js +15 -29
- package/dist/index238.js +34 -17
- package/dist/index239.js +86 -51
- package/dist/index241.js +28 -11
- package/dist/index242.js +15 -14
- package/dist/index243.js +50 -124
- package/dist/index244.js +15 -2
- package/dist/index245.js +12 -6
- package/dist/index246.js +16 -2
- package/dist/index247.js +5 -9
- package/dist/index248.js +2 -2
- package/dist/index249.js +2 -4
- package/dist/index25.js +8 -8
- package/dist/index250.js +9 -2
- package/dist/index251.js +18 -7
- package/dist/index252.js +127 -14
- package/dist/index253.js +4 -34
- package/dist/index254.js +106 -2
- package/dist/index256.js +100 -2
- package/dist/index258.js +12 -126
- package/dist/index259.js +211 -89
- package/dist/index260.js +370 -0
- package/dist/index261.js +2 -100
- package/dist/index262.js +4 -0
- package/dist/index263.js +2 -12
- package/dist/index264.js +3 -228
- package/dist/index265.js +162 -354
- package/dist/index266.js +2 -176
- package/dist/index27.js +18 -18
- package/dist/index270.js +11 -23
- package/dist/index271.js +101 -3
- package/dist/index273.js +23 -16
- package/dist/index274.js +6 -281
- package/dist/index275.js +16 -6
- package/dist/index276.js +3 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +8 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +67 -2
- package/dist/index281.js +5 -2
- package/dist/index282.js +5 -2
- package/dist/index283.js +8 -2
- package/dist/index284.js +471 -2
- package/dist/index285.js +3 -2
- package/dist/index286.js +3 -2
- package/dist/index287.js +3 -28
- package/dist/index289.js +9 -0
- package/dist/index29.js +5 -5
- package/dist/index290.js +6 -6
- package/dist/index291.js +11 -7
- package/dist/index292.js +279 -10
- package/dist/index293.js +2 -431
- package/dist/index294.js +16 -3
- package/dist/index295.js +2 -3
- package/dist/index296.js +16 -3
- package/dist/index297.js +4 -0
- package/dist/index298.js +18 -223
- package/dist/index299.js +2 -3
- package/dist/index300.js +15 -17
- package/dist/index301.js +2 -9
- package/dist/index302.js +18 -199
- package/dist/index303.js +2 -2
- package/dist/index304.js +27 -4
- package/dist/index305.js +2 -2
- package/dist/index306.js +1 -1
- package/dist/index307.js +2 -8
- package/dist/index308.js +2 -126
- package/dist/index309.js +2 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +28 -3
- package/dist/index311.js +21 -1
- package/dist/index313.js +199 -126
- package/dist/index314.js +4 -2
- package/dist/index315.js +2 -67
- package/dist/index316.js +6 -5
- package/dist/index317.js +2 -89
- package/dist/index318.js +3 -3
- package/dist/index319.js +17 -3
- package/dist/index320.js +123 -56
- package/dist/index321.js +2 -33
- package/dist/index322.js +128 -27
- package/dist/index323.js +5 -0
- package/dist/index324.js +3 -480
- package/dist/index325.js +2 -7
- package/dist/index326.js +4 -7
- package/dist/index327.js +379 -16
- package/dist/index328.js +125 -7
- package/dist/index329.js +5 -6
- package/dist/index33.js +10 -10
- package/dist/index330.js +3 -8
- package/dist/index331.js +5 -58
- package/dist/index332.js +700 -57
- package/dist/index333.js +354 -5
- package/dist/index334.js +57 -7
- package/dist/index335.js +7 -3
- package/dist/index336.js +5 -46
- package/dist/index337.js +8 -2
- package/dist/index338.js +9 -0
- package/dist/index339.js +32 -2
- package/dist/index340.js +28 -2
- package/dist/index342.js +57 -46
- package/dist/index343.js +60 -0
- package/dist/index344.js +7 -0
- package/dist/index345.js +230 -0
- package/dist/index346.js +4 -0
- package/dist/index347.js +49 -0
- package/dist/index348.js +9 -0
- package/dist/index349.js +21 -0
- package/dist/index35.js +9 -9
- package/dist/index350.js +95 -0
- package/dist/index352.js +5 -0
- package/dist/index353.js +484 -0
- package/dist/index354.js +49 -0
- package/dist/index355.js +483 -0
- package/dist/index356.js +4 -0
- package/dist/index37.js +33 -33
- package/dist/index39.js +15 -15
- package/dist/index41.js +5 -5
- package/dist/index43.js +10 -10
- package/dist/index45.js +25 -25
- package/dist/index47.js +6 -6
- package/dist/index49.js +15 -15
- package/dist/index51.js +4 -4
- package/dist/index53.js +6 -6
- package/dist/index55.js +6 -6
- package/dist/index57.js +16 -16
- package/dist/index59.js +3 -3
- package/dist/index6.js +1 -1
- package/dist/index61.js +9 -9
- package/dist/index63.js +5 -5
- package/dist/index65.js +2 -2
- package/dist/index67.js +35 -107
- package/dist/index69.js +42 -85
- package/dist/index7.js +2 -2
- package/dist/index71.js +47 -56
- package/dist/index73.js +83 -54
- package/dist/index75.js +113 -273
- package/dist/index77.js +50 -158
- package/dist/index79.js +228 -194
- package/dist/index81.js +148 -40
- package/dist/index83.js +221 -0
- package/dist/index85.js +53 -0
- package/dist/index87.js +46 -0
- package/dist/index88.js +125 -184
- package/dist/index9.js +1 -1
- package/dist/index90.js +240 -26
- package/dist/index92.js +230 -86
- package/dist/index94.js +135 -117
- package/dist/index96.js +27 -94
- package/dist/index98.js +85 -15
- package/package.json +27 -28
- package/dist/index101.js +0 -178
- package/dist/index103.js +0 -116
- package/dist/index105.js +0 -100
- package/dist/index126.js +0 -46
- package/dist/index128.js +0 -49
- package/dist/index130.js +0 -4
- package/dist/index132.js +0 -346
- package/dist/index134.js +0 -27
- package/dist/index217.js +0 -15
- package/dist/index240.js +0 -17
- package/dist/index255.js +0 -4
- package/dist/index257.js +0 -20
- package/dist/index272.js +0 -8
- package/dist/index288.js +0 -24
- package/dist/index312.js +0 -438
- package/dist/index341.js +0 -426
- package/dist/index82.js +0 -136
- package/dist/index84.js +0 -247
- package/dist/index86.js +0 -238
package/dist/index109.js
CHANGED
@@ -1,304 +1,116 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import { useRoute as ce } from "./index137.js";
|
4
|
-
import { useRouter as be } from "./index138.js";
|
5
|
-
import { wait as fe } from "./index130.js";
|
6
|
-
import { useScroll as he, useResizeObserver as ye } from "./index132.js";
|
7
|
-
import me from "./index13.js";
|
1
|
+
import { defineComponent as v, ref as y, computed as f, createBlock as B, openBlock as k, withCtx as a, createVNode as w, mergeProps as $, renderSlot as n, normalizeProps as i, guardReactiveProps as l } from "vue";
|
2
|
+
import g from "./index27.js";
|
8
3
|
/* empty css */
|
9
|
-
import
|
10
|
-
/* empty css
|
11
|
-
const
|
12
|
-
__name: "
|
4
|
+
import P from "./index39.js";
|
5
|
+
/* empty css */
|
6
|
+
const S = /* @__PURE__ */ v({
|
7
|
+
__name: "BbSlider",
|
13
8
|
props: {
|
9
|
+
autofocus: {},
|
10
|
+
color: {},
|
11
|
+
compact: { type: Boolean },
|
12
|
+
direction: {},
|
14
13
|
disabled: { type: Boolean },
|
15
|
-
|
14
|
+
errors: {},
|
15
|
+
hasErrors: { type: Boolean },
|
16
|
+
hideLabel: { type: Boolean },
|
17
|
+
hint: {},
|
16
18
|
id: {},
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
label: {},
|
20
|
+
labelPosition: {},
|
21
|
+
max: {},
|
22
|
+
min: {},
|
20
23
|
modelValue: {},
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
+
name: {},
|
25
|
+
persistentHint: { type: Boolean },
|
26
|
+
range: { type: Boolean },
|
27
|
+
readonly: { type: Boolean },
|
28
|
+
required: { type: Boolean },
|
29
|
+
reverse: { type: Boolean },
|
30
|
+
step: {},
|
31
|
+
thumbTranslate: { type: Boolean, default: !0 },
|
32
|
+
ticks: { type: Boolean }
|
24
33
|
},
|
25
|
-
emits: ["update:modelValue"],
|
26
|
-
setup(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
left: V.left,
|
31
|
-
right: V.right
|
32
|
-
})), C = !!((H = (A = te()) == null ? void 0 : A.proxy) != null && H.$inertia), i = n(null), o = $(
|
33
|
-
() => t.items.findIndex((e) => e.key === i.value)
|
34
|
-
), _ = $(() => o.value === 0), w = $(() => o.value === t.items.length - 1);
|
35
|
-
t.items.forEach((e) => {
|
36
|
-
if (!e.key)
|
37
|
-
throw console.error("A tab item has no key", e), new Error("A tab item has no key " + JSON.stringify(e));
|
38
|
-
});
|
39
|
-
const R = () => {
|
40
|
-
var e, a, l, r, s;
|
41
|
-
if (t.navigation && ((a = (e = d.value) == null ? void 0 : e.query) != null && a[t.querykey]))
|
42
|
-
i.value = (r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey];
|
43
|
-
else if (t.navigation && C && ((s = globalThis == null ? void 0 : globalThis.location) != null && s.href) && new URL(globalThis.location.href).searchParams.get(t.querykey))
|
44
|
-
i.value = new URL(globalThis.location.href).searchParams.get(
|
45
|
-
t.querykey
|
46
|
-
);
|
47
|
-
else if (t.modelValue)
|
48
|
-
i.value = t.modelValue;
|
49
|
-
else if (t.items[0]) {
|
50
|
-
const m = t.items.find((Z) => !Z.disabled);
|
51
|
-
if (!m)
|
52
|
-
throw new Error(
|
53
|
-
"No tab has been selected so it defaulted to the first available. Still, all the tabs are disabled so no tab can be selected."
|
54
|
-
);
|
55
|
-
const v = m.key;
|
56
|
-
i.value = v;
|
57
|
-
}
|
58
|
-
};
|
59
|
-
R();
|
60
|
-
const y = async (e, a = !1) => {
|
61
|
-
var l, r, s, m;
|
62
|
-
if (t.navigation && d.value && ((r = (l = d.value) == null ? void 0 : l.query) == null ? void 0 : r[t.querykey]) !== e)
|
63
|
-
q == null || q.push({
|
64
|
-
...d,
|
65
|
-
query: { ...(s = d.value) == null ? void 0 : s.query, [t.querykey]: e },
|
66
|
-
replace: a
|
67
|
-
});
|
68
|
-
else if (t.navigation && C && ((m = globalThis == null ? void 0 : globalThis.location) != null && m.href) && new URL(globalThis.location.href).searchParams.get(t.querykey) !== e) {
|
69
|
-
const v = new URL(globalThis.location.href);
|
70
|
-
v.searchParams.set(t.querykey, e), fe(0).then(() => {
|
71
|
-
a ? history.replaceState({}, "", v.toString()) : history.pushState({}, "", v.toString());
|
72
|
-
});
|
73
|
-
}
|
74
|
-
t.modelValue !== e && Q("update:modelValue", e), i.value = e;
|
75
|
-
};
|
76
|
-
i.value && y(i.value, !0);
|
77
|
-
const u = (e) => {
|
78
|
-
var a = null;
|
79
|
-
switch (e) {
|
80
|
-
case "first":
|
81
|
-
for (a = 0; a < t.items.length - 1 && t.items[a].disabled; )
|
82
|
-
a++;
|
83
|
-
break;
|
84
|
-
case "previous": {
|
85
|
-
let s = 1;
|
86
|
-
for (; s < t.items.length && (a = (o.value + t.items.length - s) % t.items.length, t.items[a].disabled); )
|
87
|
-
s++;
|
88
|
-
break;
|
89
|
-
}
|
90
|
-
case "next": {
|
91
|
-
let s = 1;
|
92
|
-
for (; s < t.items.length && (a = (o.value + s) % t.items.length, t.items[a].disabled); )
|
93
|
-
s++;
|
94
|
-
break;
|
95
|
-
}
|
96
|
-
case "last":
|
97
|
-
for (a = t.items.length - 1; a >= 0 && t.items[a].disabled; )
|
98
|
-
a--;
|
99
|
-
break;
|
100
|
-
}
|
101
|
-
if (a === null)
|
102
|
-
throw new Error("Could not navigate to next tab");
|
103
|
-
if (t.items[a].disabled) return;
|
104
|
-
const l = t.items[a].key, r = document.querySelector(
|
105
|
-
`#${g}_tab_${l}`
|
106
|
-
);
|
107
|
-
r == null || r.focus(), y(l, t.replace);
|
108
|
-
}, Y = (e) => {
|
109
|
-
if (!t.disabled)
|
110
|
-
if (e.key === "ArrowRight")
|
111
|
-
u("next");
|
112
|
-
else if (e.key === "ArrowLeft")
|
113
|
-
u("previous");
|
114
|
-
else if (e.key === "Home")
|
115
|
-
e.preventDefault(), u("first");
|
116
|
-
else if (e.key === "End")
|
117
|
-
e.preventDefault(), u("last");
|
118
|
-
else
|
119
|
-
return;
|
120
|
-
};
|
121
|
-
b(
|
122
|
-
() => t.modelValue,
|
123
|
-
(e) => {
|
124
|
-
e && y(e, t.replace);
|
125
|
-
}
|
126
|
-
), b(
|
127
|
-
() => {
|
128
|
-
var e, a;
|
129
|
-
return (a = (e = d.value) == null ? void 0 : e.query) == null ? void 0 : a[t.querykey];
|
130
|
-
},
|
131
|
-
(e) => {
|
132
|
-
e && typeof e == "string" && y(e, t.replace);
|
133
|
-
}
|
134
|
-
), b(
|
135
|
-
i,
|
136
|
-
async () => {
|
137
|
-
if (S.value) {
|
138
|
-
const e = S.value.querySelector(
|
139
|
-
"[role=tablist] .bb-tab__btn--active"
|
140
|
-
);
|
141
|
-
e && (await le(), e.scrollIntoView({
|
142
|
-
behavior: "smooth",
|
143
|
-
block: "nearest",
|
144
|
-
inline: "nearest"
|
145
|
-
}));
|
146
|
-
}
|
34
|
+
emits: ["click", "focus", "active", "inactive", "keydown", "pointerdown", "pointermove", "pointerup", "update:modelValue"],
|
35
|
+
setup(d, { emit: m }) {
|
36
|
+
const p = d, r = m, s = y(!1), u = f(() => p.persistentHint || s.value), b = {
|
37
|
+
onActive: () => {
|
38
|
+
s.value = !0, r("active");
|
147
39
|
},
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
i,
|
153
|
-
(e, a) => {
|
154
|
-
if (e && a) {
|
155
|
-
const l = t.items.findIndex((s) => s.key === e), r = t.items.findIndex((s) => s.key === a);
|
156
|
-
P.value = l > r ? "right" : "left";
|
157
|
-
}
|
40
|
+
onClick: (e) => r("click", e),
|
41
|
+
onFocus: (e) => r("focus", e),
|
42
|
+
onInactive: () => {
|
43
|
+
s.value = !1, r("inactive");
|
158
44
|
},
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
const e = c.value.querySelector(
|
165
|
-
".bb-tab__btn--active"
|
166
|
-
);
|
167
|
-
e && (D.value = e.offsetLeft, F.value = e.offsetTop, E.value = e.clientWidth, z.value = e.clientHeight, N.value = c.value.scrollWidth);
|
45
|
+
onKeydown: (e) => r("keydown", e),
|
46
|
+
onPointerdown: (e) => r("pointerdown", e),
|
47
|
+
onPointermove: (e) => r("pointermove", e),
|
48
|
+
onPointerup: (e) => r("pointerup", e),
|
49
|
+
"onUpdate:modelValue": (e) => r("update:modelValue", e)
|
168
50
|
};
|
169
|
-
return
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
id: ie(L),
|
188
|
-
ref_key: "tabs",
|
189
|
-
ref: S,
|
190
|
-
class: T(["bb-tab", {
|
191
|
-
[`bb-tab--${e.direction}`]: !0,
|
192
|
-
"bb-tab--disabled": !0
|
193
|
-
}])
|
194
|
-
}, [
|
195
|
-
h("div", ke, [
|
196
|
-
h("span", null, [
|
197
|
-
k(e.$slots, "header:prepend", U(W(B.value)))
|
198
|
-
]),
|
199
|
-
h("ul", {
|
200
|
-
ref_key: "tablist",
|
201
|
-
ref: c,
|
202
|
-
class: "bb-tab__label-container",
|
203
|
-
role: "tablist",
|
204
|
-
style: se({
|
205
|
-
"--inner-width": `${N.value}px`,
|
206
|
-
"--width": `${E.value}px`,
|
207
|
-
"--height": `${z.value}px`,
|
208
|
-
"--left": `${D.value}px`,
|
209
|
-
"--top": `${F.value}px`
|
210
|
-
})
|
211
|
-
}, [
|
212
|
-
(f(!0), p(K, null, O(e.items, (l) => (f(), p("li", {
|
213
|
-
key: l.key,
|
214
|
-
role: "presentation"
|
215
|
-
}, [
|
216
|
-
J(me, {
|
217
|
-
id: `${g}_tab_${l.key}`,
|
218
|
-
"aria-selected": i.value === l.key,
|
219
|
-
class: T(["bb-tab__btn", { "bb-tab__btn--active": i.value === l.key }]),
|
220
|
-
disabled: l.disabled || e.disabled,
|
221
|
-
role: "tab",
|
222
|
-
tabindex: i.value === l.key ? 0 : -1,
|
223
|
-
onClick: (r) => y(l.key, t.replace),
|
224
|
-
onKeydown: Y
|
225
|
-
}, {
|
226
|
-
default: I(() => [
|
227
|
-
k(e.$slots, `label-${l.key}`, {
|
228
|
-
current: i.value,
|
229
|
-
currentIndex: o.value,
|
230
|
-
disabled: !!(l.disabled || e.disabled),
|
231
|
-
goTo: u,
|
232
|
-
isFirst: _.value,
|
233
|
-
isLast: w.value,
|
234
|
-
selected: i.value === l.key,
|
235
|
-
text: l.label,
|
236
|
-
value: l.key
|
237
|
-
}, () => [
|
238
|
-
k(e.$slots, "label", {
|
239
|
-
current: i.value,
|
240
|
-
currentIndex: o.value,
|
241
|
-
disabled: !!(l.disabled || e.disabled),
|
242
|
-
goTo: u,
|
243
|
-
isFirst: _.value,
|
244
|
-
isLast: w.value,
|
245
|
-
selected: i.value === l.key,
|
246
|
-
text: l.label,
|
247
|
-
value: l.key
|
248
|
-
}, () => [
|
249
|
-
h("span", ge, re(l.label), 1)
|
250
|
-
])
|
251
|
-
])
|
252
|
-
]),
|
253
|
-
_: 2
|
254
|
-
}, 1032, ["id", "aria-selected", "class", "disabled", "tabindex", "onClick"])
|
255
|
-
]))), 128))
|
256
|
-
], 4),
|
257
|
-
h("span", null, [
|
258
|
-
k(e.$slots, "header:append", U(W(B.value)))
|
259
|
-
])
|
51
|
+
return (e, V) => (k(), B(g, {
|
52
|
+
id: e.id,
|
53
|
+
class: "bb-slider",
|
54
|
+
compact: e.compact,
|
55
|
+
direction: e.direction,
|
56
|
+
errors: e.errors,
|
57
|
+
"has-errors": e.hasErrors,
|
58
|
+
"hide-label": e.hideLabel,
|
59
|
+
hint: e.hint,
|
60
|
+
label: e.label,
|
61
|
+
"label-position": e.labelPosition,
|
62
|
+
"model-value": e.modelValue,
|
63
|
+
name: e.name,
|
64
|
+
reverse: e.reverse,
|
65
|
+
"show-hint": u.value
|
66
|
+
}, {
|
67
|
+
label: a((t) => [
|
68
|
+
n(e.$slots, "label", i(l(t)))
|
260
69
|
]),
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
currentIndex: o.value,
|
283
|
-
disabled: !!(l.disabled || e.disabled),
|
284
|
-
goTo: u,
|
285
|
-
isFirst: _.value,
|
286
|
-
isLast: w.value,
|
287
|
-
selected: i.value === l.key,
|
288
|
-
text: l.label,
|
289
|
-
value: l.key
|
290
|
-
})
|
291
|
-
], 10, we)) : ue("", !0)
|
292
|
-
]),
|
293
|
-
_: 2
|
294
|
-
}, 1032, ["css", "name"]))), 128))
|
70
|
+
input: a(({ id: t, hasErrors: h, ariaDescribedby: c }) => [
|
71
|
+
w(P, $({
|
72
|
+
id: t,
|
73
|
+
"aria-describedby": c,
|
74
|
+
autofocus: e.autofocus,
|
75
|
+
color: e.color,
|
76
|
+
disabled: e.disabled,
|
77
|
+
"has-errors": h,
|
78
|
+
max: e.max,
|
79
|
+
min: e.min,
|
80
|
+
"model-value": e.modelValue,
|
81
|
+
name: e.name,
|
82
|
+
range: e.range,
|
83
|
+
readonly: e.readonly,
|
84
|
+
required: e.required,
|
85
|
+
step: e.step,
|
86
|
+
"thumb-translate": e.thumbTranslate,
|
87
|
+
ticks: e.ticks
|
88
|
+
}, b), {
|
89
|
+
append: a((o) => [
|
90
|
+
n(e.$slots, "append", i(l(o)))
|
295
91
|
]),
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
92
|
+
prepend: a((o) => [
|
93
|
+
n(e.$slots, "prepend", i(l(o)))
|
94
|
+
]),
|
95
|
+
thumb: a((o) => [
|
96
|
+
n(e.$slots, "thumb", i(l(o)))
|
97
|
+
]),
|
98
|
+
"thumb:lower": a((o) => [
|
99
|
+
n(e.$slots, "thumb:lower", i(l(o)))
|
100
|
+
]),
|
101
|
+
"thumb:higher": a((o) => [
|
102
|
+
n(e.$slots, "thumb:higher", i(l(o)))
|
103
|
+
]),
|
104
|
+
tick: a((o) => [
|
105
|
+
n(e.$slots, "tick", i(l(o)))
|
106
|
+
]),
|
107
|
+
_: 2
|
108
|
+
}, 1040, ["id", "aria-describedby", "autofocus", "color", "disabled", "has-errors", "max", "min", "model-value", "name", "range", "readonly", "required", "step", "thumb-translate", "ticks"])
|
109
|
+
]),
|
110
|
+
_: 3
|
111
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
300
112
|
}
|
301
113
|
});
|
302
114
|
export {
|
303
|
-
|
115
|
+
S as default
|
304
116
|
};
|
package/dist/index11.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { nanoid as p } from "./
|
1
|
+
import { nanoid as p } from "./index138.js";
|
2
2
|
import { reactive as d } from "vue";
|
3
|
-
import { wait as h } from "./
|
3
|
+
import { wait as h } from "./index135.js";
|
4
4
|
const i = d({
|
5
5
|
stack: []
|
6
6
|
}), b = () => {
|