bitboss-ui 2.0.165 → 2.0.166
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/index207.js +2 -2
- package/dist/index208.js +2 -4
- package/dist/index209.js +2 -41
- package/dist/index21.js +17 -17
- package/dist/index210.js +4 -20
- package/dist/index211.js +2 -94
- package/dist/index212.js +43 -0
- package/dist/index213.js +5 -199
- package/dist/index215.js +11 -62
- package/dist/index216.js +15 -0
- package/dist/index217.js +34 -13
- package/dist/index218.js +4 -13
- package/dist/index219.js +20 -5
- package/dist/index220.js +94 -16
- package/dist/index222.js +199 -18
- package/dist/index224.js +65 -18
- package/dist/index226.js +13 -3
- package/dist/index227.js +2 -2
- package/dist/index228.js +6 -8
- package/dist/index229.js +14 -248
- package/dist/index23.js +25 -25
- package/dist/index230.js +8 -51
- package/dist/index231.js +11 -44
- package/dist/index232.js +101 -5
- package/dist/index234.js +23 -3
- package/dist/index235.js +2 -86
- package/dist/index236.js +179 -0
- package/dist/index237.js +3 -29
- package/dist/index238.js +5 -17
- package/dist/index239.js +5 -51
- package/dist/index240.js +5 -15
- package/dist/index241.js +5 -12
- package/dist/index242.js +5 -16
- package/dist/index243.js +5 -125
- package/dist/index244.js +2 -2
- package/dist/index245.js +2 -6
- package/dist/index246.js +9 -2
- package/dist/index247.js +3 -9
- package/dist/index248.js +51 -2
- package/dist/index249.js +17 -4
- package/dist/index25.js +8 -8
- package/dist/index250.js +106 -2
- package/dist/index252.js +96 -11
- package/dist/index254.js +2 -2
- package/dist/index255.js +3 -2
- package/dist/index256.js +86 -2
- package/dist/index258.js +26 -123
- package/dist/index259.js +15 -106
- package/dist/index260.js +14 -0
- package/dist/index261.js +16 -100
- package/dist/index262.js +12 -0
- package/dist/index263.js +2 -11
- package/dist/index264.js +17 -227
- package/dist/index265.js +112 -353
- package/dist/index266.js +11 -175
- package/dist/index267.js +228 -10
- package/dist/index268.js +367 -2
- package/dist/index269.js +5 -9
- package/dist/index27.js +18 -18
- package/dist/index270.js +5 -23
- package/dist/index271.js +8 -3
- package/dist/index272.js +250 -6
- package/dist/index273.js +50 -14
- package/dist/index274.js +43 -280
- package/dist/index275.js +5 -6
- package/dist/index276.js +60 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +8 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +5 -2
- package/dist/index281.js +67 -2
- package/dist/index282.js +4 -2
- package/dist/index283.js +471 -2
- package/dist/index284.js +1 -1
- package/dist/index285.js +7 -2
- package/dist/index286.js +11 -2
- package/dist/index287.js +2 -28
- package/dist/index288.js +3 -22
- package/dist/index289.js +5 -0
- package/dist/index29.js +6 -6
- package/dist/index290.js +3 -7
- package/dist/index292.js +7 -11
- package/dist/index293.js +189 -420
- package/dist/index294.js +701 -3
- package/dist/index295.js +354 -3
- package/dist/index296.js +58 -3
- package/dist/index297.js +5 -0
- package/dist/index298.js +5 -224
- package/dist/index299.js +280 -3
- package/dist/index300.js +2 -17
- package/dist/index301.js +125 -9
- package/dist/index302.js +2 -200
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -4
- package/dist/index305.js +16 -2
- package/dist/index306.js +2 -2
- package/dist/index307.js +19 -8
- package/dist/index308.js +2 -126
- package/dist/index309.js +15 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +2 -3
- package/dist/index311.js +5 -2
- package/dist/index312.js +3 -436
- package/dist/index313.js +3 -127
- package/dist/index314.js +17 -2
- package/dist/index315.js +6 -67
- package/dist/index316.js +5 -5
- package/dist/index317.js +7 -88
- package/dist/index318.js +28 -3
- package/dist/index319.js +3 -3
- package/dist/index320.js +3 -57
- package/dist/index321.js +18 -32
- package/dist/index322.js +2 -28
- package/dist/index323.js +29 -0
- package/dist/index324.js +2 -480
- package/dist/index325.js +2 -7
- package/dist/index326.js +2 -7
- package/dist/index327.js +2 -19
- package/dist/index328.js +2 -8
- package/dist/index329.js +22 -6
- package/dist/index33.js +10 -10
- package/dist/index331.js +128 -57
- package/dist/index332.js +2 -58
- package/dist/index333.js +381 -4
- package/dist/index334.js +125 -7
- package/dist/index335.js +2 -4
- package/dist/index336.js +92 -46
- package/dist/index337.js +58 -2
- package/dist/index338.js +60 -0
- package/dist/index339.js +228 -3
- package/dist/index340.js +8 -2
- package/dist/index341.js +5 -423
- package/dist/index342.js +6 -45
- package/dist/index343.js +9 -0
- package/dist/index344.js +7 -0
- package/dist/index345.js +35 -0
- package/dist/index346.js +30 -0
- package/dist/index348.js +9 -0
- package/dist/index349.js +21 -0
- package/dist/index35.js +9 -9
- package/dist/index350.js +49 -0
- package/dist/index352.js +5 -0
- package/dist/index353.js +483 -0
- package/dist/index354.js +4 -0
- package/dist/index355.js +484 -0
- package/dist/index356.js +49 -0
- package/dist/index37.js +33 -33
- package/dist/index39.js +16 -16
- 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 +11 -11
- 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 +26 -27
- 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/index221.js +0 -18
- package/dist/index223.js +0 -17
- package/dist/index225.js +0 -29
- package/dist/index233.js +0 -62
- package/dist/index253.js +0 -36
- package/dist/index257.js +0 -20
- package/dist/index291.js +0 -9
- package/dist/index330.js +0 -10
- package/dist/index82.js +0 -136
- package/dist/index84.js +0 -247
- package/dist/index86.js +0 -238
- /package/dist/{index251.js → index214.js} +0 -0
package/dist/index75.js
CHANGED
@@ -1,284 +1,124 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import { useId as ne } from "./index8.js";
|
4
|
-
import { wait as oe } from "./index130.js";
|
5
|
-
import { useIntersectionObserver as ae } from "./index132.js";
|
6
|
-
import le from "./index13.js";
|
1
|
+
import { defineComponent as u, ref as c, computed as f, createBlock as b, openBlock as h, withCtx as o, createVNode as v, mergeProps as y, renderSlot as a, normalizeProps as w, guardReactiveProps as g } from "vue";
|
2
|
+
import B from "./index23.js";
|
7
3
|
/* empty css */
|
8
|
-
import
|
9
|
-
|
10
|
-
/*
|
11
|
-
|
12
|
-
/* empty css */
|
13
|
-
const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
14
|
-
__name: "BbDropdown",
|
4
|
+
import $ from "./index27.js";
|
5
|
+
/* empty css */
|
6
|
+
const E = /* @__PURE__ */ u({
|
7
|
+
__name: "BbDatePickerInput",
|
15
8
|
props: {
|
16
|
-
|
17
|
-
|
9
|
+
allowWriting: { type: [Boolean, String], default: !0 },
|
10
|
+
"append:icon": {},
|
11
|
+
autocomplete: {},
|
12
|
+
autofocus: {},
|
13
|
+
clearable: { type: Boolean },
|
14
|
+
compact: { type: Boolean },
|
15
|
+
direction: {},
|
18
16
|
disabled: { type: Boolean },
|
19
|
-
|
17
|
+
errors: {},
|
18
|
+
firstDayOfWeek: {},
|
19
|
+
hasErrors: { type: Boolean },
|
20
|
+
hideLabel: { type: Boolean },
|
21
|
+
hint: {},
|
20
22
|
id: {},
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
label: {},
|
24
|
+
labelPosition: {},
|
25
|
+
loading: { type: Boolean },
|
26
|
+
max: {},
|
27
|
+
min: {},
|
28
|
+
modelValue: {},
|
29
|
+
name: {},
|
30
|
+
persistentHint: { type: Boolean },
|
31
|
+
placeholder: {},
|
32
|
+
"prepend:icon": {},
|
33
|
+
range: { type: Boolean },
|
34
|
+
readonly: { type: Boolean },
|
35
|
+
required: { type: Boolean },
|
36
|
+
reverse: { type: Boolean },
|
37
|
+
selectable: {},
|
38
|
+
width: {}
|
29
39
|
},
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
if (l) l instanceof HTMLElement && l.focus();
|
41
|
-
else return;
|
42
|
-
q && q();
|
43
|
-
}, Q = (l) => {
|
44
|
-
if (l.target instanceof HTMLElement && l.target.dataset.dropdownItem) {
|
45
|
-
if (!a.value) return;
|
46
|
-
if (l.key === "ArrowDown") {
|
47
|
-
if (l.preventDefault(), a.value && n !== o) {
|
48
|
-
const d = a.value.querySelector(
|
49
|
-
N.map((w) => `#${i} ~ ${w}`).join(",")
|
50
|
-
);
|
51
|
-
d && d instanceof HTMLElement && d.focus();
|
52
|
-
}
|
53
|
-
} else if (l.key === "ArrowUp") {
|
54
|
-
if (l.preventDefault(), a.value && n !== e) {
|
55
|
-
const d = H(r.items, (E, T) => T < n && !E.disabled), k = Array.from(
|
56
|
-
a.value.querySelectorAll(".bb-dropdown__item")
|
57
|
-
)[d];
|
58
|
-
k && k instanceof HTMLElement && k.focus();
|
59
|
-
}
|
60
|
-
} else if (l.key === "Tab") {
|
61
|
-
if (n === o && !l.shiftKey) {
|
62
|
-
const d = N.join(","), w = Array.from(
|
63
|
-
document.querySelectorAll(d)
|
64
|
-
), k = w.findIndex(
|
65
|
-
(T) => T.id === u
|
66
|
-
), E = w[k + 1];
|
67
|
-
if (E) E instanceof HTMLElement && (l.preventDefault(), b(), E.focus());
|
68
|
-
else return;
|
69
|
-
} else if (n === e && l.shiftKey) {
|
70
|
-
const d = document.querySelector(`#${u}`);
|
71
|
-
if (d) d instanceof HTMLElement && (l.preventDefault(), d.focus());
|
72
|
-
else return;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
}
|
76
|
-
};
|
77
|
-
return {
|
78
|
-
...C,
|
79
|
-
original: t,
|
80
|
-
key: t.key.split(/\W+/g).join("_").toLowerCase(),
|
81
|
-
disabled: C.disabled || r.disabled,
|
82
|
-
id: i,
|
83
|
-
onClick: J,
|
84
|
-
onKeydown: Q
|
85
|
-
};
|
86
|
-
});
|
87
|
-
}), v = y(), a = y();
|
88
|
-
ae(
|
89
|
-
v,
|
90
|
-
([{ intersectionRatio: e }]) => {
|
91
|
-
e !== 1 && s.value && b();
|
40
|
+
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
41
|
+
setup(i, { emit: p }) {
|
42
|
+
const s = i, r = p, l = c(!1), t = f(() => s.persistentHint || l.value), d = {
|
43
|
+
onError: (e) => r("error", e),
|
44
|
+
onFocus: (e) => r("focus", e),
|
45
|
+
onActive: () => {
|
46
|
+
l.value = !0, r("active");
|
47
|
+
},
|
48
|
+
onInactive: () => {
|
49
|
+
l.value = !1, r("inactive");
|
92
50
|
},
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
}
|
124
|
-
}, M = (e) => {
|
125
|
-
const o = e.target;
|
126
|
-
if (o && o instanceof HTMLElement) {
|
127
|
-
let t = !0;
|
128
|
-
v.value && v.value.contains(o) && (t = !1), a.value && a.value.contains(o) && (t = !1), t && b();
|
129
|
-
}
|
130
|
-
}, S = (e) => {
|
131
|
-
var o;
|
132
|
-
if (s.value && e.key === "Escape") {
|
133
|
-
if (((o = document.activeElement) == null ? void 0 : o.id) !== u) {
|
134
|
-
const t = document.querySelector(`#${u}`);
|
135
|
-
t instanceof HTMLElement && t.focus();
|
136
|
-
}
|
137
|
-
b();
|
138
|
-
}
|
139
|
-
}, W = y(!1), L = async () => {
|
140
|
-
W.value = !0, await oe(50), s.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
|
141
|
-
}, b = async () => {
|
142
|
-
s.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
|
143
|
-
}, G = F(() => ({
|
144
|
-
class: {
|
145
|
-
"bb-dropdown--block": r.block,
|
146
|
-
[`bb-dropdown--${r.theme}`]: r.theme
|
147
|
-
}
|
148
|
-
}));
|
149
|
-
return (e, o) => (h(), D("span", A({ class: "bb-dropdown" }, G.value), [
|
150
|
-
_("span", {
|
151
|
-
ref_key: "wrapper",
|
152
|
-
ref: v,
|
153
|
-
class: "bb-dropdown__wrapper"
|
154
|
-
}, [
|
155
|
-
g(e.$slots, "activator", Y(Z({
|
156
|
-
props: {
|
157
|
-
"aria-expanded": s.value,
|
158
|
-
"aria-controls": `menu_${$(u)}`,
|
159
|
-
id: $(u),
|
160
|
-
onClick: R,
|
161
|
-
onKeydown: U,
|
162
|
-
disabled: e.disabled
|
163
|
-
},
|
164
|
-
closed: f.value,
|
165
|
-
closing: p.value,
|
51
|
+
"onUpdate:modelValue": (e) => r("update:modelValue", e)
|
52
|
+
};
|
53
|
+
return (e, k) => (h(), b($, {
|
54
|
+
id: e.id,
|
55
|
+
class: "bb-date-picker-input",
|
56
|
+
compact: e.compact,
|
57
|
+
direction: e.direction,
|
58
|
+
errors: e.errors,
|
59
|
+
"has-errors": e.hasErrors,
|
60
|
+
"hide-label": e.hideLabel,
|
61
|
+
hint: e.hint,
|
62
|
+
label: e.label,
|
63
|
+
"label-position": e.labelPosition,
|
64
|
+
"model-value": e.modelValue,
|
65
|
+
name: e.name,
|
66
|
+
reverse: e.reverse,
|
67
|
+
"show-hint": t.value
|
68
|
+
}, {
|
69
|
+
label: o((n) => [
|
70
|
+
a(e.$slots, "label", w(g(n)))
|
71
|
+
]),
|
72
|
+
input: o(({ id: n, hasErrors: m }) => [
|
73
|
+
v(B, y({
|
74
|
+
id: n,
|
75
|
+
"allow-writing": e.allowWriting,
|
76
|
+
"append:icon": e.$props["append:icon"],
|
77
|
+
autocomplete: e.autocomplete,
|
78
|
+
autofocus: e.autofocus,
|
79
|
+
clearable: e.clearable,
|
80
|
+
compact: e.compact,
|
166
81
|
disabled: e.disabled,
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
(h(!0), D(K, null, ee(m.value, (t, n) => (h(), D(K, {
|
206
|
-
key: t.key
|
207
|
-
}, [
|
208
|
-
g(e.$slots, "item:prepend", {
|
209
|
-
closed: f.value,
|
210
|
-
closing: p.value,
|
211
|
-
disabled: t.disabled,
|
212
|
-
index: n,
|
213
|
-
item: e.items[n],
|
214
|
-
open: s.value,
|
215
|
-
opening: c.value,
|
216
|
-
placement: e.placement,
|
217
|
-
text: t.text
|
218
|
-
}),
|
219
|
-
B(le, A({
|
220
|
-
"aria-role": "menuitem",
|
221
|
-
class: ["bb-dropdown__item", {
|
222
|
-
"bb-dropdown__item--first": n === 0,
|
223
|
-
"bb-dropdown__item--last": n === e.items.length - 1
|
224
|
-
}],
|
225
|
-
"data-dropdown-item": !0,
|
226
|
-
ref_for: !0
|
227
|
-
}, t), {
|
228
|
-
default: O(() => [
|
229
|
-
g(e.$slots, t.key, {
|
230
|
-
closed: f.value,
|
231
|
-
closing: p.value,
|
232
|
-
disabled: t.disabled,
|
233
|
-
index: n,
|
234
|
-
item: t.original,
|
235
|
-
open: s.value,
|
236
|
-
opening: c.value,
|
237
|
-
placement: e.placement,
|
238
|
-
text: t.text
|
239
|
-
}, () => [
|
240
|
-
t["prepend:icon"] ? (h(), P(V, {
|
241
|
-
key: 0,
|
242
|
-
class: "item__prepend-icon",
|
243
|
-
type: t["prepend:icon"]
|
244
|
-
}, null, 8, ["type"])) : j("", !0),
|
245
|
-
_("span", ie, te(t.text), 1),
|
246
|
-
t["append:icon"] ? (h(), P(V, {
|
247
|
-
key: 1,
|
248
|
-
class: "item__append-icon",
|
249
|
-
type: t["append:icon"]
|
250
|
-
}, null, 8, ["type"])) : j("", !0)
|
251
|
-
])
|
252
|
-
]),
|
253
|
-
_: 2
|
254
|
-
}, 1040, ["class"]),
|
255
|
-
g(e.$slots, "item:append", {
|
256
|
-
closed: f.value,
|
257
|
-
closing: p.value,
|
258
|
-
disabled: t.disabled,
|
259
|
-
index: n,
|
260
|
-
item: e.items[n],
|
261
|
-
open: s.value,
|
262
|
-
opening: c.value,
|
263
|
-
placement: e.placement,
|
264
|
-
text: t.text
|
265
|
-
})
|
266
|
-
], 64))), 128)),
|
267
|
-
g(e.$slots, "append", {
|
268
|
-
closed: f.value,
|
269
|
-
closing: p.value,
|
270
|
-
disabled: e.disabled,
|
271
|
-
open: s.value,
|
272
|
-
opening: c.value,
|
273
|
-
placement: e.placement
|
274
|
-
})
|
275
|
-
], 4)
|
276
|
-
]),
|
277
|
-
_: 3
|
278
|
-
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
|
279
|
-
], 16));
|
82
|
+
"first-day-of-week": e.firstDayOfWeek,
|
83
|
+
"has-errors": m,
|
84
|
+
loading: e.loading,
|
85
|
+
max: e.max,
|
86
|
+
min: e.min,
|
87
|
+
"model-value": e.modelValue,
|
88
|
+
name: e.name,
|
89
|
+
placeholder: e.placeholder,
|
90
|
+
"prepend:icon": e.$props["prepend:icon"],
|
91
|
+
range: e.range,
|
92
|
+
readonly: e.readonly,
|
93
|
+
required: e.required,
|
94
|
+
selectable: e.selectable,
|
95
|
+
width: e.width
|
96
|
+
}, d), {
|
97
|
+
"prepend-outer": o(() => [
|
98
|
+
a(e.$slots, "prepend-outer")
|
99
|
+
]),
|
100
|
+
prepend: o(() => [
|
101
|
+
a(e.$slots, "prepend")
|
102
|
+
]),
|
103
|
+
prefix: o(() => [
|
104
|
+
a(e.$slots, "prefix")
|
105
|
+
]),
|
106
|
+
suffix: o(() => [
|
107
|
+
a(e.$slots, "suffix")
|
108
|
+
]),
|
109
|
+
append: o(() => [
|
110
|
+
a(e.$slots, "append")
|
111
|
+
]),
|
112
|
+
"append-outer": o(() => [
|
113
|
+
a(e.$slots, "append-outer")
|
114
|
+
]),
|
115
|
+
_: 2
|
116
|
+
}, 1040, ["id", "allow-writing", "append:icon", "autocomplete", "autofocus", "clearable", "compact", "disabled", "first-day-of-week", "has-errors", "loading", "max", "min", "model-value", "name", "placeholder", "prepend:icon", "range", "readonly", "required", "selectable", "width"])
|
117
|
+
]),
|
118
|
+
_: 3
|
119
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
280
120
|
}
|
281
121
|
});
|
282
122
|
export {
|
283
|
-
|
123
|
+
E as default
|
284
124
|
};
|
package/dist/index77.js
CHANGED
@@ -1,168 +1,60 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as d, computed as u, createBlock as m, openBlock as f, mergeProps as y, withCtx as l, renderSlot as t, normalizeProps as a, guardReactiveProps as r } from "vue";
|
2
|
+
import $ from "./index25.js";
|
3
3
|
/* empty css */
|
4
|
-
|
5
|
-
|
6
|
-
/* empty css */
|
7
|
-
/* empty css */
|
8
|
-
import S from "./index127.js";
|
9
|
-
/* empty css */
|
10
|
-
import R from "./index129.js";
|
11
|
-
/* empty css */
|
12
|
-
import { useLocale as T } from "./index218.js";
|
13
|
-
const Z = { class: "bb-dropdown-button__content" }, q = {
|
14
|
-
key: 1,
|
15
|
-
class: "bb-dropdown-button__loading-label sr-only"
|
16
|
-
}, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, ne = /* @__PURE__ */ E({
|
17
|
-
__name: "BbDropdownButton",
|
4
|
+
const g = /* @__PURE__ */ d({
|
5
|
+
__name: "BbDialog",
|
18
6
|
props: {
|
19
|
-
|
20
|
-
|
7
|
+
closeLabel: {},
|
8
|
+
compact: { type: Boolean },
|
21
9
|
disabled: { type: Boolean },
|
22
10
|
eager: { type: Boolean },
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
11
|
+
panelClasses: {},
|
12
|
+
overlayClasses: {},
|
13
|
+
persistent: { type: Boolean },
|
14
|
+
showClose: { type: Boolean, default: !0 },
|
15
|
+
title: {},
|
16
|
+
transition: {},
|
29
17
|
transitionDuration: {},
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"prepend:icon": {},
|
36
|
-
size: {}
|
18
|
+
size: {},
|
19
|
+
description: {},
|
20
|
+
focusTarget: {},
|
21
|
+
fullscreen: { type: [Boolean, String] },
|
22
|
+
modelValue: { type: [Boolean, null] }
|
37
23
|
},
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
key: 0,
|
71
|
-
class: "bb-dropdown-button__prepend-icon",
|
72
|
-
type: t["prepend:icon"]
|
73
|
-
}, null, 8, ["type"])) : v("", !0),
|
74
|
-
b("span", Z, h(k.value.text), 1),
|
75
|
-
f.value ? (l(), z("span", q, h(d(m)("common.loadingText").value), 1)) : v("", !0),
|
76
|
-
t["append:icon"] ? (l(), P(d(S), {
|
77
|
-
key: 2,
|
78
|
-
class: "bb-dropdown-button__append-icon",
|
79
|
-
type: t["append:icon"]
|
80
|
-
}, null, 8, ["type"])) : v("", !0)
|
81
|
-
]),
|
82
|
-
_: 1
|
83
|
-
}, 16),
|
84
|
-
u(O, {
|
85
|
-
id: e.id,
|
86
|
-
"arrow-padding": e.arrowPadding,
|
87
|
-
disabled: e.disabled,
|
88
|
-
eager: e.eager,
|
89
|
-
items: w.value,
|
90
|
-
offset: e.offset,
|
91
|
-
padding: e.padding,
|
92
|
-
placement: e.placement,
|
93
|
-
theme: e.theme,
|
94
|
-
"transition-duration": e.transitionDuration,
|
95
|
-
width: e.width
|
96
|
-
}, I({
|
97
|
-
activator: n(({
|
98
|
-
props: o,
|
99
|
-
opening: i,
|
100
|
-
open: g,
|
101
|
-
closed: B,
|
102
|
-
closing: $,
|
103
|
-
disabled: L,
|
104
|
-
placement: C
|
105
|
-
}) => [
|
106
|
-
r(e.$slots, "activator", {
|
107
|
-
closed: B,
|
108
|
-
closing: $,
|
109
|
-
disabled: L,
|
110
|
-
open: g,
|
111
|
-
opening: i,
|
112
|
-
placement: C,
|
113
|
-
props: o
|
114
|
-
}, () => [
|
115
|
-
u(D, _(o, { class: "bb-dropdown-button__dropdown-btn" }), {
|
116
|
-
default: n(() => [
|
117
|
-
b("span", F, h(g || i ? d(m)("dropdownButton.close").value : d(m)("dropdownButton.open").value), 1),
|
118
|
-
r(e.$slots, "right-btn", {
|
119
|
-
closed: B,
|
120
|
-
closing: $,
|
121
|
-
disabled: L,
|
122
|
-
open: g,
|
123
|
-
opening: i,
|
124
|
-
placement: C
|
125
|
-
}, () => [
|
126
|
-
a[0] || (a[0] = b("svg", {
|
127
|
-
class: "bb-dropdown-button__dropdown-chevron",
|
128
|
-
viewBox: "0 0 24 24",
|
129
|
-
xmlns: "http://www.w3.org/2000/svg"
|
130
|
-
}, [
|
131
|
-
b("path", {
|
132
|
-
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
|
133
|
-
fill: "currentColor"
|
134
|
-
})
|
135
|
-
], -1))
|
136
|
-
])
|
137
|
-
]),
|
138
|
-
_: 2
|
139
|
-
}, 1040)
|
140
|
-
])
|
141
|
-
]),
|
142
|
-
prepend: n((o) => [
|
143
|
-
r(e.$slots, "prepend", s(p(o)))
|
144
|
-
]),
|
145
|
-
"item:prepend": n((o) => [
|
146
|
-
r(e.$slots, "item:prepend", s(p(o)))
|
147
|
-
]),
|
148
|
-
"item:append": n((o) => [
|
149
|
-
r(e.$slots, "item:append", s(p(o)))
|
150
|
-
]),
|
151
|
-
append: n((o) => [
|
152
|
-
r(e.$slots, "append", s(p(o)))
|
153
|
-
]),
|
154
|
-
_: 2
|
155
|
-
}, [
|
156
|
-
M(w.value, (o) => ({
|
157
|
-
name: o.key,
|
158
|
-
fn: n((i) => [
|
159
|
-
r(e.$slots, o.key, s(p(i)))
|
160
|
-
])
|
161
|
-
}))
|
162
|
-
]), 1032, ["id", "arrow-padding", "disabled", "eager", "items", "offset", "padding", "placement", "theme", "transition-duration", "width"])
|
163
|
-
], 16));
|
24
|
+
emits: ["shown", "hidden", "update:modelValue"],
|
25
|
+
setup(i) {
|
26
|
+
const n = i, p = u(() => {
|
27
|
+
let e = ["bb-dialog"];
|
28
|
+
return n.overlayClasses && (e = e.concat(n.overlayClasses)), e;
|
29
|
+
});
|
30
|
+
return (e, s) => (f(), m($, y(e.$props, {
|
31
|
+
"overlay-classes": p.value,
|
32
|
+
onHidden: s[0] || (s[0] = () => e.$emit("hidden")),
|
33
|
+
onShown: s[1] || (s[1] = () => e.$emit("shown")),
|
34
|
+
"onUpdate:modelValue": s[2] || (s[2] = (o) => e.$emit("update:modelValue", o))
|
35
|
+
}), {
|
36
|
+
close: l((o) => [
|
37
|
+
t(e.$slots, "close", a(r(o)))
|
38
|
+
]),
|
39
|
+
default: l((o) => [
|
40
|
+
t(e.$slots, "default", a(r(o)))
|
41
|
+
]),
|
42
|
+
description: l((o) => [
|
43
|
+
t(e.$slots, "description", a(r(o)))
|
44
|
+
]),
|
45
|
+
footer: l((o) => [
|
46
|
+
t(e.$slots, "footer", a(r(o)))
|
47
|
+
]),
|
48
|
+
header: l((o) => [
|
49
|
+
t(e.$slots, "header", a(r(o)))
|
50
|
+
]),
|
51
|
+
title: l((o) => [
|
52
|
+
t(e.$slots, "title", a(r(o)))
|
53
|
+
]),
|
54
|
+
_: 3
|
55
|
+
}, 16, ["overlay-classes"]));
|
164
56
|
}
|
165
57
|
});
|
166
58
|
export {
|
167
|
-
|
59
|
+
g as default
|
168
60
|
};
|