bitboss-ui 2.0.38 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseButton/BaseButton.vue.d.ts +14 -31
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +19 -50
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +28 -244
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +100 -0
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +6 -28
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +5 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +30 -31
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +4 -14
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +4 -14
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +168 -52
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +25 -45
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +10 -35
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +16 -49
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +15 -34
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +28 -247
- package/dist/components/BaseRating/BaseRating.vue.d.ts +15 -46
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +348 -59
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +19 -53
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +15 -46
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +32 -244
- package/dist/components/BaseTag/BaseTag.vue.d.ts +214 -50
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +15 -44
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +13 -30
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +31 -45
- package/dist/components/BbAlert/BbAlert.vue.d.ts +26 -43
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +15 -28
- package/dist/components/BbBadge/BbBadge.vue.d.ts +13 -24
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +51 -66
- package/dist/components/BbButton/BbButton.vue.d.ts +13 -31
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +30 -65
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +36 -279
- package/dist/components/BbChip/BbChip.vue.d.ts +15 -32
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +13 -30
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +124 -0
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +24 -17
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +36 -51
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -29
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +169 -193
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +190 -209
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +32 -45
- package/dist/components/BbIcon/BbIcon.vue.d.ts +2 -24
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +27 -50
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +102 -54
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +26 -48
- package/dist/components/BbPagination/BbPagination.vue.d.ts +35 -55
- package/dist/components/BbPopover/BbPopover.vue.d.ts +71 -93
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -27
- package/dist/components/BbRadio/BbRadio.vue.d.ts +30 -63
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +38 -281
- package/dist/components/BbRating/BbRating.vue.d.ts +23 -56
- package/dist/components/BbRatio/BbRatio.vue.d.ts +14 -31
- package/dist/components/BbSelect/BbSelect.vue.d.ts +16 -158
- package/dist/components/BbSlider/BbSlider.vue.d.ts +23 -54
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +12 -34
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +2 -24
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +30 -63
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -278
- package/dist/components/BbTab/BbTab.vue.d.ts +92 -107
- package/dist/components/BbTable/BbTable.vue.d.ts +93 -134
- package/dist/components/BbTable/types.d.ts +0 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +13 -46
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +21 -40
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +21 -40
- package/dist/components/BbToast/BbToast.vue.d.ts +3 -24
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +5 -27
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +15 -36
- package/dist/components/BbTree/BbTree.vue.d.ts +9 -29
- package/dist/components/ChipsBox.vue.d.ts +6 -16
- package/dist/components/CommaBox.vue.d.ts +6 -16
- package/dist/components/CommonFloating.vue.d.ts +14 -26
- package/dist/components/CommonInputInnerContainer.vue.d.ts +16 -15
- package/dist/components/CommonInputOuterContainer.vue.d.ts +12 -5
- package/dist/components/ErrorIcon.vue.d.ts +1 -1
- package/dist/components/ListBox.vue.d.ts +30 -47
- package/dist/components/OptionsContainer.vue.d.ts +30 -90
- package/dist/components/Transitions/Slide.vue.d.ts +12 -30
- package/dist/components/Transitions/SlideBack.vue.d.ts +12 -30
- package/dist/composables/useArray.d.ts +0 -1
- package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
- package/dist/composables/useConfirm.d.ts +0 -1
- package/dist/composables/useOptions.d.ts +0 -1
- package/dist/composables/useRoute.d.ts +0 -1
- package/dist/composables/useRouter.d.ts +0 -1
- package/dist/composables/useToast.d.ts +1 -2
- package/dist/composables/useWizard.d.ts +1 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +142 -136
- package/dist/index100.js +129 -54
- package/dist/index102.js +66 -79
- package/dist/index104.js +85 -280
- package/dist/index106.js +108 -390
- package/dist/index108.js +280 -102
- package/dist/index11.js +1 -1
- package/dist/index110.js +391 -95
- package/dist/index112.js +55 -50
- package/dist/index114.js +106 -23
- package/dist/index116.js +101 -156
- package/dist/index118.js +22 -114
- package/dist/index12.js +6 -6
- package/dist/index120.js +143 -34
- package/dist/index122.js +116 -40
- package/dist/index124.js +36 -31
- package/dist/index125.js +44 -2
- package/dist/index126.js +44 -21
- package/dist/index127.js +47 -2
- package/dist/index128.js +32 -313
- package/dist/index129.js +2 -24
- package/dist/index13.js +1 -1
- package/dist/index130.js +21 -2
- package/dist/index131.js +2 -5
- package/dist/index132.js +315 -7
- package/dist/index133.js +24 -5
- package/dist/index134.js +2 -3
- package/dist/index135.js +5 -3
- package/dist/index136.js +9 -3
- package/dist/index137.js +6 -3
- package/dist/index138.js +1 -1
- package/dist/index139.js +1 -1
- package/dist/index140.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index145.js +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.js +1 -1
- package/dist/index149.js +1 -1
- package/dist/index15.js +122 -117
- package/dist/index150.js +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index160.js +2 -2
- package/dist/{index177.js → index161.js} +1 -1
- package/dist/index162.js +2 -2
- package/dist/{index166.js → index163.js} +1 -1
- package/dist/index165.js +2 -2
- package/dist/index167.js +2 -2
- package/dist/index169.js +1 -1
- package/dist/index17.js +119 -118
- package/dist/index170.js +2 -2
- package/dist/{index168.js → index171.js} +1 -1
- package/dist/index172.js +3 -2
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +2 -2
- package/dist/index178.js +2 -3
- package/dist/index179.js +1 -1
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +1 -1
- package/dist/index184.js +2 -2
- package/dist/index185.js +5 -0
- package/dist/index186.js +2 -2
- package/dist/index187.js +5 -0
- package/dist/index19.js +121 -211
- package/dist/index190.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index194.js +1 -1
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +3 -116
- package/dist/index199.js +3 -2
- package/dist/index200.js +3 -3
- package/dist/index201.js +3 -35
- package/dist/index202.js +3 -6
- package/dist/index203.js +3 -7
- package/dist/index204.js +2 -8
- package/dist/index205.js +112 -154
- package/dist/index206.js +3 -84
- package/dist/index207.js +160 -0
- package/dist/index208.js +84 -2
- package/dist/index21.js +197 -279
- package/dist/index210.js +2 -2
- package/dist/index211.js +2 -3
- package/dist/index212.js +3 -126
- package/dist/index213.js +4 -5
- package/dist/index214.js +3 -123
- package/dist/index215.js +40 -18
- package/dist/index216.js +6 -16
- package/dist/index217.js +7 -16
- package/dist/index218.js +8 -2
- package/dist/index219.js +281 -2
- package/dist/index220.js +14 -172
- package/dist/index221.js +16 -43
- package/dist/index222.js +21 -0
- package/dist/index223.js +19 -13
- package/dist/index224.js +27 -5
- package/dist/index225.js +2 -369
- package/dist/index226.js +249 -2
- package/dist/index227.js +50 -16
- package/dist/index228.js +40 -102
- package/dist/index229.js +7 -0
- package/dist/index23.js +287 -245
- package/dist/index230.js +44 -95
- package/dist/index231.js +128 -0
- package/dist/index232.js +125 -2
- package/dist/index233.js +2 -3
- package/dist/index234.js +19 -18
- package/dist/index235.js +52 -26
- package/dist/index237.js +13 -52
- package/dist/index238.js +5 -44
- package/dist/index239.js +369 -5
- package/dist/index240.js +2 -49
- package/dist/index241.js +2 -10
- package/dist/index242.js +17 -2
- package/dist/index243.js +104 -429
- package/dist/index245.js +100 -4
- package/dist/index247.js +4 -3
- package/dist/index248.js +9 -11
- package/dist/index249.js +3 -9
- package/dist/index25.js +249 -120
- package/dist/index250.js +6 -9
- package/dist/index251.js +15 -16
- package/dist/index252.js +224 -3
- package/dist/index253.js +3 -9
- package/dist/index254.js +12 -23
- package/dist/index255.js +9 -6
- package/dist/index256.js +8 -15
- package/dist/index257.js +17 -9
- package/dist/index258.js +26 -222
- package/dist/index259.js +3 -281
- package/dist/index260.js +9 -6
- package/dist/index261.js +23 -2
- package/dist/index262.js +9 -2
- package/dist/index263.js +4 -2
- package/dist/index264.js +6 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -126
- package/dist/index267.js +2 -3
- package/dist/index268.js +4 -0
- package/dist/index269.js +2 -7
- package/dist/index27.js +119 -142
- package/dist/index270.js +2 -22
- package/dist/index271.js +4 -0
- package/dist/index272.js +2 -436
- package/dist/index273.js +2 -127
- package/dist/index274.js +2 -3
- package/dist/index275.js +22 -3
- package/dist/index277.js +7 -28
- package/dist/index278.js +431 -2
- package/dist/index279.js +89 -2
- package/dist/index280.js +2 -2
- package/dist/index281.js +126 -2
- package/dist/index282.js +176 -2
- package/dist/index283.js +3 -2
- package/dist/{index284.js → index285.js} +6 -6
- package/dist/index287.js +199 -65
- package/dist/index288.js +436 -5
- package/dist/index289.js +124 -12
- package/dist/index29.js +139 -84
- package/dist/index290.js +3 -79
- package/dist/{index193.js → index291.js} +1 -1
- package/dist/index292.js +211 -4
- package/dist/index293.js +66 -4
- package/dist/index294.js +2 -59
- package/dist/index295.js +4 -11
- package/dist/index296.js +4 -35
- package/dist/index297.js +57 -45
- package/dist/index298.js +5 -7
- package/dist/index299.js +4 -18
- package/dist/index300.js +7 -6
- package/dist/index301.js +79 -2
- package/dist/index303.js +6 -0
- package/dist/index304.js +6 -420
- package/dist/index305.js +18 -46
- package/dist/index306.js +7 -2
- package/dist/index307.js +37 -0
- package/dist/index308.js +13 -0
- package/dist/index309.js +49 -0
- package/dist/index31.js +85 -115
- package/dist/index310.js +4 -0
- package/dist/{index302.js → index311.js} +2 -2
- package/dist/index313.js +426 -0
- package/dist/index314.js +49 -0
- package/dist/index315.js +4 -0
- package/dist/index33.js +111 -113
- package/dist/index35.js +114 -366
- package/dist/index37.js +361 -284
- package/dist/index39.js +288 -107
- package/dist/index41.js +114 -121
- package/dist/index43.js +113 -201
- package/dist/index45.js +182 -92
- package/dist/index47.js +110 -78
- package/dist/index49.js +89 -54
- package/dist/index51.js +54 -78
- package/dist/index53.js +83 -61
- package/dist/index55.js +59 -40
- package/dist/index57.js +42 -55
- package/dist/index59.js +53 -106
- package/dist/index6.js +1 -1
- package/dist/index61.js +104 -89
- package/dist/index63.js +61 -88
- package/dist/index65.js +119 -77
- package/dist/index67.js +56 -45
- package/dist/index69.js +79 -54
- package/dist/index7.js +2 -2
- package/dist/index71.js +88 -268
- package/dist/index73.js +49 -148
- package/dist/index75.js +259 -204
- package/dist/index77.js +152 -39
- package/dist/index79.js +224 -0
- package/dist/index8.js +6 -14
- package/dist/index81.js +46 -0
- package/dist/index82.js +116 -166
- package/dist/index84.js +222 -171
- package/dist/index86.js +171 -25
- package/dist/index88.js +177 -84
- package/dist/index9.js +1 -1
- package/dist/index90.js +27 -123
- package/dist/index92.js +47 -51
- package/dist/index94.js +120 -15
- package/dist/index96.js +55 -132
- package/dist/index98.js +15 -105
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +0 -1
- package/dist/types/ExtractGenericFromComputedRef.d.ts +0 -1
- package/dist/types/ExtractGenericFromRef.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
- package/dist/utilities/functions/deburr.d.ts +1 -1
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/groupBy.d.ts +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/dist/utilities/functions/isHex.d.ts +1 -0
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/replace.d.ts +1 -1
- package/dist/utilities/functions/retry.d.ts +1 -1
- package/dist/utilities/functions/throttle.d.ts +2 -2
- package/dist/utilities/functions/tryTo.d.ts +0 -1
- package/package.json +29 -29
- package/dist/index121.js +0 -46
- package/dist/index123.js +0 -49
- package/dist/index191.js +0 -5
- package/dist/index209.js +0 -6
- package/dist/index236.js +0 -251
- package/dist/index244.js +0 -91
- package/dist/index246.js +0 -202
- package/dist/index276.js +0 -213
- package/dist/index286.js +0 -4
- package/dist/index78.js +0 -129
- package/dist/index80.js +0 -238
package/dist/index118.js
CHANGED
@@ -1,120 +1,28 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
1
|
+
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
|
2
|
+
import { state as k, useToast as C } from "./index11.js";
|
3
|
+
import B from "./index293.js";
|
4
|
+
const N = /* @__PURE__ */ s({
|
5
|
+
__name: "BbToast",
|
5
6
|
props: {
|
6
|
-
|
7
|
-
parent: {},
|
8
|
-
identifier: { default: "id" },
|
9
|
-
depth: { default: 0 },
|
10
|
-
expandable: { type: [Boolean, Function] }
|
7
|
+
placement: { default: "bottom" }
|
11
8
|
},
|
12
|
-
setup(
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
n = n + T([d], "children").length;
|
18
|
-
let o = !1;
|
19
|
-
return typeof p < "u" && (typeof p == "function" ? o = p(d, r.depth, r.parent) : o = p), {
|
20
|
-
children: d.children,
|
21
|
-
depth: r.depth,
|
22
|
-
expandable: o,
|
23
|
-
identifier: d[r.identifier],
|
24
|
-
offset: a,
|
25
|
-
index: l,
|
26
|
-
open: e,
|
27
|
-
original: d,
|
28
|
-
parent: r.parent
|
29
|
-
};
|
30
|
-
});
|
31
|
-
});
|
32
|
-
return (n, d) => {
|
33
|
-
const l = y("BbTree", !0);
|
34
|
-
return f(!0), i(k, null, h(x.value, (e) => (f(), i("div", {
|
35
|
-
key: e.identifier,
|
36
|
-
class: b(["bb-tree", {
|
37
|
-
[`bb-tree--depth-${e.depth}`]: !0,
|
38
|
-
"bb-tree--open": e.open
|
39
|
-
}])
|
9
|
+
setup(T) {
|
10
|
+
const { dismiss: n } = C();
|
11
|
+
return (a, h) => (e(), o(l, { to: "body" }, [
|
12
|
+
c("div", {
|
13
|
+
class: m(["bb-toast", { [`bb-toast--${a.placement}`]: !0 }])
|
40
14
|
}, [
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
key:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
parent: e.parent
|
53
|
-
}) : n.$slots[e.depth] ? t(n.$slots, e.depth, {
|
54
|
-
key: 1,
|
55
|
-
depth: e.depth,
|
56
|
-
expandable: e.expandable,
|
57
|
-
identifier: e.identifier,
|
58
|
-
index: e.index,
|
59
|
-
item: e.original,
|
60
|
-
offset: e.offset,
|
61
|
-
open: e.open,
|
62
|
-
parent: e.parent
|
63
|
-
}) : t(n.$slots, "default", {
|
64
|
-
key: 2,
|
65
|
-
depth: e.depth,
|
66
|
-
expandable: e.expandable,
|
67
|
-
identifier: e.identifier,
|
68
|
-
index: e.index,
|
69
|
-
item: e.original,
|
70
|
-
offset: e.offset,
|
71
|
-
open: e.open,
|
72
|
-
parent: e.parent
|
73
|
-
})
|
74
|
-
])
|
75
|
-
]),
|
76
|
-
s("div", {
|
77
|
-
class: b(`bb-tree--depth-${e.depth}-children`)
|
78
|
-
}, [
|
79
|
-
t(n.$slots, `${e.identifier}-children`, {
|
80
|
-
depth: e.depth,
|
81
|
-
expandable: e.expandable,
|
82
|
-
identifier: e.identifier,
|
83
|
-
index: e.index,
|
84
|
-
item: e.original,
|
85
|
-
offset: e.offset,
|
86
|
-
open: e.open,
|
87
|
-
parent: e.parent
|
88
|
-
}, () => [
|
89
|
-
t(n.$slots, `${e.depth}-children`, {
|
90
|
-
depth: e.depth,
|
91
|
-
expandable: e.expandable,
|
92
|
-
identifier: e.identifier,
|
93
|
-
index: e.index,
|
94
|
-
item: e.original,
|
95
|
-
offset: e.offset,
|
96
|
-
open: e.open,
|
97
|
-
parent: e.parent
|
98
|
-
}, () => [
|
99
|
-
v(l, {
|
100
|
-
depth: e.depth + 1,
|
101
|
-
expandable: n.expandable,
|
102
|
-
identifier: r.identifier,
|
103
|
-
items: e.children,
|
104
|
-
parent: e
|
105
|
-
}, B({ _: 2 }, [
|
106
|
-
h(n.$slots, (p, a) => ({
|
107
|
-
name: a,
|
108
|
-
fn: _((o) => [
|
109
|
-
t(n.$slots, a, C({ ref_for: !0 }, o))
|
110
|
-
])
|
111
|
-
}))
|
112
|
-
]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
|
113
|
-
])
|
114
|
-
])
|
115
|
-
], 2)
|
116
|
-
], 2))), 128);
|
117
|
-
};
|
15
|
+
i(p, { name: "toast" }, {
|
16
|
+
default: u(() => [
|
17
|
+
(e(!0), f(d, null, _(r(k).stack, (t) => (e(), o(B, b({
|
18
|
+
key: t.id,
|
19
|
+
ref_for: !0
|
20
|
+
}, t, { "onClick:close": r(n) }), null, 16, ["onClick:close"]))), 128))
|
21
|
+
]),
|
22
|
+
_: 1
|
23
|
+
})
|
24
|
+
], 2)
|
25
|
+
]));
|
118
26
|
}
|
119
27
|
});
|
120
28
|
export {
|
package/dist/index12.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { copy as D } from "./
|
1
|
+
import { copy as D } from "./index133.js";
|
2
2
|
import { reactive as G, watch as v, toValue as H, computed as g, provide as Q } from "vue";
|
3
|
-
import { isNotNil as a } from "./
|
4
|
-
import { mapValues as X } from "./
|
5
|
-
import { useRoute as Z } from "./
|
6
|
-
import { useRouter as _ } from "./
|
7
|
-
import { useStepper as ee } from "./
|
3
|
+
import { isNotNil as a } from "./index134.js";
|
4
|
+
import { mapValues as X } from "./index135.js";
|
5
|
+
import { useRoute as Z } from "./index136.js";
|
6
|
+
import { useRouter as _ } from "./index137.js";
|
7
|
+
import { useStepper as ee } from "./index132.js";
|
8
8
|
const te = Symbol(), x = /((step\/)(?<step>[\s\S]+?)(?=[/?]))|((step\/)(?<step2>[\s\S]+))/, O = (i) => {
|
9
9
|
var r, u;
|
10
10
|
const e = i.match(x);
|
package/dist/index120.js
CHANGED
@@ -1,42 +1,151 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
], C = /* @__PURE__ */ c({
|
13
|
-
__name: "BbChip",
|
1
|
+
import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
|
2
|
+
import { useFloating as q, arrow as G } from "./index231.js";
|
3
|
+
import { useId as J } from "./index8.js";
|
4
|
+
import { wait as P } from "./index131.js";
|
5
|
+
import K from "./index13.js";
|
6
|
+
/* empty css */
|
7
|
+
import { throttle as b } from "./index214.js";
|
8
|
+
import { waitFor as Q } from "./index216.js";
|
9
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index239.js";
|
10
|
+
const ue = /* @__PURE__ */ z({
|
11
|
+
__name: "BbTooltip",
|
14
12
|
props: {
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
arrowPadding: { default: 10 },
|
14
|
+
block: { type: Boolean },
|
15
|
+
disabled: { type: Boolean },
|
16
|
+
eager: { type: Boolean },
|
17
|
+
id: {},
|
18
|
+
offset: {},
|
19
|
+
padding: { default: 10 },
|
20
|
+
placement: { default: "top" },
|
21
|
+
showClose: { type: Boolean, default: !0 },
|
22
|
+
theme: { default: "default" },
|
23
|
+
transitionDuration: { default: 250 }
|
18
24
|
},
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
25
|
+
setup(F) {
|
26
|
+
const O = A(
|
27
|
+
() => import("./index259.js")
|
28
|
+
), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
|
29
|
+
placement: t.placement,
|
30
|
+
whileElementsMounted: X,
|
31
|
+
middleware: [
|
32
|
+
Y(),
|
33
|
+
Z({ padding: t.padding }),
|
34
|
+
G({
|
35
|
+
element: _,
|
36
|
+
padding: t.arrowPadding
|
37
|
+
}),
|
38
|
+
x()
|
39
|
+
]
|
40
|
+
});
|
41
|
+
let h = () => {
|
23
42
|
};
|
24
|
-
|
25
|
-
t("
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
43
|
+
const k = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), y = () => {
|
44
|
+
r.value || n.value || t.disabled || (N(), document.addEventListener("mouseover", C, { passive: !0 }), document.addEventListener("keydown", B, { passive: !0 }));
|
45
|
+
}, T = y, C = b((e) => {
|
46
|
+
const o = e.target;
|
47
|
+
if (o && o instanceof HTMLElement) {
|
48
|
+
let m = !0;
|
49
|
+
s.value && s.value.contains(o) && (m = !1), d.value && d.value.contains(o) && (m = !1), m && i();
|
50
|
+
}
|
51
|
+
}, t.transitionDuration), B = (e) => {
|
52
|
+
r.value && e.key === "Escape" && i();
|
53
|
+
}, H = () => {
|
54
|
+
k.value = !1, i();
|
55
|
+
}, f = a(!1), N = b(async () => {
|
56
|
+
k.value && (f.value = !0, p.value = !1, l.value = !1, n.value = !0, await P(50), r.value = !0, n.value = !1, h = I(
|
57
|
+
() => {
|
58
|
+
var e;
|
59
|
+
return (e = $.value.hide) == null ? void 0 : e.referenceHidden;
|
60
|
+
},
|
61
|
+
async (e) => {
|
62
|
+
!l.value && !p.value && e && await i();
|
63
|
+
}
|
64
|
+
));
|
65
|
+
}, t.transitionDuration), i = b(async () => {
|
66
|
+
await Q(() => !n.value), document.removeEventListener("mouseover", C), document.removeEventListener("keydown", B), r.value = !1, n.value = !1, l.value = !0, await P(t.transitionDuration), l.value = !1, p.value = !0, h();
|
67
|
+
}, t.transitionDuration), V = R(() => ({
|
68
|
+
class: {
|
69
|
+
"bb-tooltip--block": t.block,
|
70
|
+
[`bb-tooltip--theme-${t.theme}`]: t.theme
|
71
|
+
}
|
72
|
+
}));
|
73
|
+
return (e, o) => (v(), S("span", U({ class: "bb-tooltip" }, V.value), [
|
74
|
+
c("span", {
|
75
|
+
ref_key: "wrapper",
|
76
|
+
ref: s,
|
77
|
+
class: "bb-tooltip__wrapper"
|
78
|
+
}, [
|
79
|
+
E(e.$slots, "activator", W(j({
|
80
|
+
props: {
|
81
|
+
...f.value ? { "aria-describedby": w } : {},
|
82
|
+
onMouseenter: y,
|
83
|
+
onFocus: u(T),
|
84
|
+
onBlur: u(i),
|
85
|
+
disabled: e.disabled
|
86
|
+
},
|
87
|
+
closed: p.value,
|
88
|
+
closing: l.value,
|
89
|
+
disabled: e.disabled,
|
90
|
+
open: r.value,
|
91
|
+
opening: n.value,
|
92
|
+
placement: u(g)
|
93
|
+
})))
|
94
|
+
], 512),
|
95
|
+
f.value || e.eager ? (v(), D(u(O), {
|
31
96
|
key: 0,
|
32
|
-
"
|
33
|
-
class: "bb-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
97
|
+
"arrow-padding": e.arrowPadding,
|
98
|
+
"base-class": "bb-tooltip",
|
99
|
+
"container-attributes": {
|
100
|
+
id: w
|
101
|
+
},
|
102
|
+
eager: e.eager,
|
103
|
+
offset: e.offset,
|
104
|
+
open: r.value,
|
105
|
+
padding: e.padding,
|
106
|
+
placement: u(g),
|
107
|
+
theme: e.theme,
|
108
|
+
"transition-duration": e.transitionDuration,
|
109
|
+
wrapper: s.value
|
110
|
+
}, {
|
111
|
+
default: L(() => [
|
112
|
+
c("span", {
|
113
|
+
ref_key: "content",
|
114
|
+
ref: d,
|
115
|
+
class: "bb-tooltip__content"
|
116
|
+
}, [
|
117
|
+
e.showClose ? (v(), D(K, {
|
118
|
+
key: 0,
|
119
|
+
"aria-hidden": "true",
|
120
|
+
"aria-label": "Chiudi",
|
121
|
+
class: "bb-tooltip__close",
|
122
|
+
tabindex: "-1",
|
123
|
+
onClick: H
|
124
|
+
}, {
|
125
|
+
default: L(() => o[0] || (o[0] = [
|
126
|
+
c("svg", {
|
127
|
+
fill: "none",
|
128
|
+
viewBox: "0 0 24 24",
|
129
|
+
xmlns: "http://www.w3.org/2000/svg"
|
130
|
+
}, [
|
131
|
+
c("path", {
|
132
|
+
d: "M23 23L1 1M23 1L1 23",
|
133
|
+
stroke: "currentColor",
|
134
|
+
"stroke-linecap": "round",
|
135
|
+
"stroke-width": "2"
|
136
|
+
})
|
137
|
+
], -1)
|
138
|
+
])),
|
139
|
+
_: 1
|
140
|
+
})) : M("", !0),
|
141
|
+
E(e.$slots, "default")
|
142
|
+
], 512)
|
143
|
+
]),
|
144
|
+
_: 3
|
145
|
+
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : M("", !0)
|
146
|
+
], 16));
|
38
147
|
}
|
39
148
|
});
|
40
149
|
export {
|
41
|
-
|
150
|
+
ue as default
|
42
151
|
};
|
package/dist/index122.js
CHANGED
@@ -1,46 +1,122 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
const
|
4
|
-
__name: "
|
1
|
+
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
+
import { flattenTree as T } from "./index298.js";
|
3
|
+
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
|
+
__name: "BbTree",
|
5
5
|
props: {
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
items: { default: () => [] },
|
7
|
+
parent: {},
|
8
|
+
identifier: { default: "id" },
|
9
|
+
depth: { default: 0 },
|
10
|
+
expandable: { type: [Boolean, Function] }
|
9
11
|
},
|
10
|
-
setup(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
12
|
+
setup(c) {
|
13
|
+
const r = c, u = (n) => typeof n.open > "u" ? !0 : n.open, x = g(() => {
|
14
|
+
let n = 0;
|
15
|
+
return r.items.map((d, l) => {
|
16
|
+
const e = u(d), p = d.expandable ?? r.expandable, a = n + 1;
|
17
|
+
n = n + T([d], "children").length;
|
18
|
+
let o = !1;
|
19
|
+
return typeof p < "u" && (typeof p == "function" ? o = p(d, r.depth, r.parent) : o = p), {
|
20
|
+
children: d.children,
|
21
|
+
depth: r.depth,
|
22
|
+
expandable: o,
|
23
|
+
identifier: d[r.identifier],
|
24
|
+
offset: a,
|
25
|
+
index: l,
|
26
|
+
open: e,
|
27
|
+
original: d,
|
28
|
+
parent: r.parent
|
29
|
+
};
|
30
|
+
});
|
31
|
+
});
|
32
|
+
return (n, d) => {
|
33
|
+
const l = y("BbTree", !0);
|
34
|
+
return f(!0), i(k, null, h(x.value, (e) => (f(), i("div", {
|
35
|
+
key: e.identifier,
|
36
|
+
class: b(["bb-tree", {
|
37
|
+
[`bb-tree--depth-${e.depth}`]: !0,
|
38
|
+
"bb-tree--open": e.open
|
39
|
+
}])
|
40
|
+
}, [
|
41
|
+
s("div", w, [
|
42
|
+
s("div", E, [
|
43
|
+
n.$slots[e.identifier] ? t(n.$slots, e.identifier, {
|
44
|
+
key: 0,
|
45
|
+
depth: e.depth,
|
46
|
+
expandable: e.expandable,
|
47
|
+
identifier: e.identifier,
|
48
|
+
index: e.index,
|
49
|
+
item: e.original,
|
50
|
+
offset: e.offset,
|
51
|
+
open: e.open,
|
52
|
+
parent: e.parent
|
53
|
+
}) : n.$slots[e.depth] ? t(n.$slots, e.depth, {
|
54
|
+
key: 1,
|
55
|
+
depth: e.depth,
|
56
|
+
expandable: e.expandable,
|
57
|
+
identifier: e.identifier,
|
58
|
+
index: e.index,
|
59
|
+
item: e.original,
|
60
|
+
offset: e.offset,
|
61
|
+
open: e.open,
|
62
|
+
parent: e.parent
|
63
|
+
}) : t(n.$slots, "default", {
|
64
|
+
key: 2,
|
65
|
+
depth: e.depth,
|
66
|
+
expandable: e.expandable,
|
67
|
+
identifier: e.identifier,
|
68
|
+
index: e.index,
|
69
|
+
item: e.original,
|
70
|
+
offset: e.offset,
|
71
|
+
open: e.open,
|
72
|
+
parent: e.parent
|
73
|
+
})
|
74
|
+
])
|
75
|
+
]),
|
76
|
+
s("div", {
|
77
|
+
class: b(`bb-tree--depth-${e.depth}-children`)
|
78
|
+
}, [
|
79
|
+
t(n.$slots, `${e.identifier}-children`, {
|
80
|
+
depth: e.depth,
|
81
|
+
expandable: e.expandable,
|
82
|
+
identifier: e.identifier,
|
83
|
+
index: e.index,
|
84
|
+
item: e.original,
|
85
|
+
offset: e.offset,
|
86
|
+
open: e.open,
|
87
|
+
parent: e.parent
|
88
|
+
}, () => [
|
89
|
+
t(n.$slots, `${e.depth}-children`, {
|
90
|
+
depth: e.depth,
|
91
|
+
expandable: e.expandable,
|
92
|
+
identifier: e.identifier,
|
93
|
+
index: e.index,
|
94
|
+
item: e.original,
|
95
|
+
offset: e.offset,
|
96
|
+
open: e.open,
|
97
|
+
parent: e.parent
|
98
|
+
}, () => [
|
99
|
+
v(l, {
|
100
|
+
depth: e.depth + 1,
|
101
|
+
expandable: n.expandable,
|
102
|
+
identifier: r.identifier,
|
103
|
+
items: e.children,
|
104
|
+
parent: e
|
105
|
+
}, B({ _: 2 }, [
|
106
|
+
h(n.$slots, (p, a) => ({
|
107
|
+
name: a,
|
108
|
+
fn: _((o) => [
|
109
|
+
t(n.$slots, a, C({ ref_for: !0 }, o))
|
110
|
+
])
|
111
|
+
}))
|
112
|
+
]), 1032, ["depth", "expandable", "identifier", "items", "parent"])
|
113
|
+
])
|
114
|
+
])
|
115
|
+
], 2)
|
116
|
+
], 2))), 128);
|
117
|
+
};
|
42
118
|
}
|
43
119
|
});
|
44
120
|
export {
|
45
|
-
|
121
|
+
N as default
|
46
122
|
};
|
package/dist/index124.js
CHANGED
@@ -1,37 +1,42 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
4
|
-
y
|
5
|
-
], g = /* @__PURE__ */ p({
|
6
|
-
__name: "BbSpinner",
|
1
|
+
import { defineComponent as c, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as i, createTextVNode as p, toDisplayString as b, withModifiers as d, createCommentVNode as m } from "vue";
|
2
|
+
const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-label"], k = /* @__PURE__ */ c({
|
3
|
+
__name: "BbChip",
|
7
4
|
props: {
|
8
|
-
|
9
|
-
|
5
|
+
text: {},
|
6
|
+
clearable: { type: Boolean, default: !0 },
|
7
|
+
clearableLabel: { default: "Elimina" }
|
10
8
|
},
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
9
|
+
emits: ["click:clear"],
|
10
|
+
setup(h, { emit: r }) {
|
11
|
+
const n = r, s = (e) => {
|
12
|
+
n("click:clear", e);
|
13
|
+
};
|
14
|
+
return (e, l) => (o(), a("span", u, [
|
15
|
+
t("span", _, [
|
16
|
+
i(e.$slots, "default", {}, () => [
|
17
|
+
p(b(e.text), 1)
|
18
|
+
])
|
19
|
+
]),
|
20
|
+
e.clearable ? (o(), a("button", {
|
21
|
+
key: 0,
|
22
|
+
"aria-label": e.clearableLabel,
|
23
|
+
class: "bb-chip__clear-button",
|
24
|
+
type: "button",
|
25
|
+
onClick: d(s, ["stop", "prevent"])
|
26
|
+
}, l[0] || (l[0] = [
|
27
|
+
t("svg", {
|
28
|
+
viewBox: "0 0 24 24",
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
30
|
+
}, [
|
31
|
+
t("path", {
|
32
|
+
d: "M6.4 19L5 17.6l5.6-5.6L5 6.4L6.4 5l5.6 5.6L17.6 5L19 6.4L13.4 12l5.6 5.6l-1.4 1.4l-5.6-5.6z",
|
33
|
+
fill: "currentColor"
|
34
|
+
})
|
35
|
+
], -1)
|
36
|
+
]), 8, f)) : m("", !0)
|
37
|
+
]));
|
33
38
|
}
|
34
39
|
});
|
35
40
|
export {
|
36
|
-
|
41
|
+
k as default
|
37
42
|
};
|
package/dist/index125.js
CHANGED
@@ -1,4 +1,46 @@
|
|
1
|
-
|
1
|
+
import { defineComponent as d, ref as n, watch as m, computed as b, openBlock as s, createBlock as r, resolveDynamicComponent as u, normalizeProps as f, guardReactiveProps as v, withCtx as i, normalizeStyle as y, renderSlot as g, createCommentVNode as V } from "vue";
|
2
|
+
const C = /* @__PURE__ */ d({
|
3
|
+
__name: "BbCollapsible",
|
4
|
+
props: {
|
5
|
+
eager: { type: Boolean },
|
6
|
+
transitionDuration: { default: 250 },
|
7
|
+
modelValue: { type: Boolean },
|
8
|
+
tag: { default: "div" }
|
9
|
+
},
|
10
|
+
setup(c) {
|
11
|
+
const l = c, a = n(l.modelValue), t = n(a.value), p = m(
|
12
|
+
() => l.modelValue,
|
13
|
+
(e) => {
|
14
|
+
e && !t.value && (t.value = !0);
|
15
|
+
}
|
16
|
+
);
|
17
|
+
a.value && p();
|
18
|
+
const o = b(() => ({
|
19
|
+
class: {
|
20
|
+
"bb-collapsible": !0,
|
21
|
+
"bb-collapsible--open": l.modelValue,
|
22
|
+
"bb-collapsible--closed": !l.modelValue
|
23
|
+
},
|
24
|
+
style: {
|
25
|
+
transitionDuration: l.transitionDuration + "ms"
|
26
|
+
}
|
27
|
+
}));
|
28
|
+
return (e, _) => (s(), r(u(e.tag), f(v(o.value)), {
|
29
|
+
default: i(() => [
|
30
|
+
(s(), r(u(e.tag), {
|
31
|
+
class: "bb-collapsible__content",
|
32
|
+
style: y(o.value.style)
|
33
|
+
}, {
|
34
|
+
default: i(() => [
|
35
|
+
e.eager || t.value ? g(e.$slots, "default", { key: 0 }) : V("", !0)
|
36
|
+
]),
|
37
|
+
_: 3
|
38
|
+
}, 8, ["style"]))
|
39
|
+
]),
|
40
|
+
_: 3
|
41
|
+
}, 16));
|
42
|
+
}
|
43
|
+
});
|
2
44
|
export {
|
3
|
-
|
45
|
+
C as default
|
4
46
|
};
|