bitboss-ui 0.1.2 → 0.1.4
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/BaseDatePicker/BaseDatePicker.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +151 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +96 -0
- package/dist/components/BbRatio/BbRatio.vue.d.ts +12 -0
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +104 -98
- package/dist/index.js.map +1 -1
- package/dist/index10.js +123 -95
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +43 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index103.js +2 -2
- package/dist/index104.js +2 -2
- package/dist/index105.js +2 -2
- package/dist/index106.js +2 -2
- package/dist/index107.js +2 -2
- package/dist/index108.js +2 -2
- package/dist/index109.js +2 -2
- package/dist/index110.js +2 -2
- package/dist/index111.js +2 -2
- package/dist/index112.js +2 -2
- package/dist/index113.js +2 -2
- package/dist/index114.js +2 -2
- package/dist/index115.js +2 -2
- package/dist/index116.js +2 -2
- package/dist/index117.js +2 -2
- package/dist/index118.js +2 -2
- package/dist/index119.js +3 -2
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +4 -4
- package/dist/index120.js +2 -2
- package/dist/index121.js +3 -2
- package/dist/index121.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.js +2 -3
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -3
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index129.js +3 -2
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index131.js +2 -2
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -3
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +6 -6
- package/dist/index140.js +3 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index142.js +3 -2
- package/dist/index142.js.map +1 -1
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index148.js +2 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -2
- package/dist/index150.js +2 -2
- package/dist/index151.js +3 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +3 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +3 -8
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +3 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +348 -17
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +131 -17
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -29
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +19 -2
- package/dist/index160.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +184 -14
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -13
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +23 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +328 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +16 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +12 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -350
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -134
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -186
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -23
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +8 -328
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +29 -21
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +2 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +3 -3
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -38
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -28
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.js +2 -13
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +20 -8
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -96
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +3 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +38 -295
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -6
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +96 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +28 -2
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -2
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +6 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -235
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +294 -88
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +2 -117
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +111 -100
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +105 -78
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +4 -224
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +226 -249
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -38
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -2
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +4 -4
- package/dist/index200.js +89 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +79 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +49 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +223 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +261 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +41 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +5 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +5 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +12 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +9 -0
- package/dist/index209.js.map +1 -0
- package/dist/index210.js +5 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +14 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +434 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +12 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +203 -0
- package/dist/index214.js.map +1 -0
- package/dist/index22.js +14 -14
- package/dist/index24.js +4 -4
- package/dist/index26.js +2 -2
- package/dist/index28.js +4 -4
- package/dist/index34.js +2 -2
- package/dist/index36.js +50 -37
- package/dist/index36.js.map +1 -1
- package/dist/index38.js +39 -39
- package/dist/index38.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +36 -82
- package/dist/index40.js.map +1 -1
- package/dist/index42.js +44 -57
- package/dist/index42.js.map +1 -1
- package/dist/index44.js +98 -79
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +79 -81
- package/dist/index46.js.map +1 -1
- package/dist/index48.js +80 -40
- package/dist/index48.js.map +1 -1
- package/dist/index50.js +40 -283
- package/dist/index50.js.map +1 -1
- package/dist/index52.js +279 -95
- package/dist/index52.js.map +1 -1
- package/dist/index54.js +98 -212
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +213 -44
- package/dist/index56.js.map +1 -1
- package/dist/index58.js +45 -40
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -96
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +44 -2
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +89 -211
- package/dist/index61.js.map +1 -1
- package/dist/index63.js +210 -130
- package/dist/index63.js.map +1 -1
- package/dist/index65.js +134 -18
- package/dist/index65.js.map +1 -1
- package/dist/index67.js +145 -74
- package/dist/index67.js.map +1 -1
- package/dist/index69.js +18 -98
- package/dist/index69.js.map +1 -1
- package/dist/index71.js +77 -17
- package/dist/index71.js.map +1 -1
- package/dist/index73.js +48 -66
- package/dist/index73.js.map +1 -1
- package/dist/index75.js +21 -78
- package/dist/index75.js.map +1 -1
- package/dist/index77.js +77 -46
- package/dist/index77.js.map +1 -1
- package/dist/index79.js +44 -61
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +188 -181
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +82 -106
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +88 -370
- package/dist/index83.js.map +1 -1
- package/dist/index85.js +106 -74
- package/dist/index85.js.map +1 -1
- package/dist/index87.js +371 -68
- package/dist/index87.js.map +1 -1
- package/dist/index89.js +75 -111
- package/dist/index89.js.map +1 -1
- package/dist/index91.js +76 -87
- package/dist/index91.js.map +1 -1
- package/dist/index93.js +111 -32
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +2 -37
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +87 -42
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +2 -43
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +38 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +37 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +47 -3
- package/dist/index99.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index61.js
CHANGED
|
@@ -1,221 +1,99 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
-
}, [
|
|
10
|
-
/* @__PURE__ */ o("path", {
|
|
11
|
-
d: "M23 23L1 1M23 1L1 23",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
"stroke-width": "2",
|
|
14
|
-
"stroke-linecap": "round"
|
|
15
|
-
})
|
|
16
|
-
])
|
|
17
|
-
], -1), ae = /* @__PURE__ */ o("div", { style: { flex: "10000 10000 0%" } }, null, -1), re = /* @__PURE__ */ q({
|
|
18
|
-
__name: "BbOffCanvas",
|
|
1
|
+
import { defineComponent as m, openBlock as b, createBlock as c, withCtx as l, renderSlot as r, normalizeProps as s, guardReactiveProps as d, createVNode as h, mergeProps as f, createSlots as y, renderList as B } from "vue";
|
|
2
|
+
import P from "./index14.js";
|
|
3
|
+
import "./index15.js";
|
|
4
|
+
import V from "./index16.js";
|
|
5
|
+
import "./index17.js";
|
|
6
|
+
const I = /* @__PURE__ */ m({
|
|
7
|
+
__name: "BbNumberInput",
|
|
19
8
|
props: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
autocomplete: {},
|
|
10
|
+
autofocus: { type: Boolean },
|
|
11
|
+
direction: {},
|
|
23
12
|
disabled: { type: Boolean },
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
errors: {},
|
|
14
|
+
handles: { type: Boolean },
|
|
15
|
+
hasErrors: { type: Boolean },
|
|
16
|
+
hideLabel: { type: Boolean },
|
|
17
|
+
id: {},
|
|
18
|
+
inputPosition: {},
|
|
19
|
+
label: {},
|
|
20
|
+
labelPosition: {},
|
|
21
|
+
labelTag: {},
|
|
22
|
+
max: {},
|
|
23
|
+
min: {},
|
|
24
|
+
modelValue: {},
|
|
25
|
+
name: {},
|
|
26
|
+
placeholder: {},
|
|
27
|
+
readonly: { type: Boolean },
|
|
28
|
+
reverse: { type: Boolean },
|
|
29
|
+
step: {},
|
|
30
|
+
tag: {}
|
|
36
31
|
},
|
|
37
|
-
emits: ["
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
|
33
|
+
setup(g, { emit: o }) {
|
|
34
|
+
const i = {
|
|
35
|
+
onBlur: (e) => o("blur", e),
|
|
36
|
+
onChange: (e) => o("change", e),
|
|
37
|
+
onClick: (e) => o("click", e),
|
|
38
|
+
onDecrease: (e) => o("decrease", e),
|
|
39
|
+
onFocus: (e) => o("focus", e),
|
|
40
|
+
onIncrease: (e) => o("increase", e),
|
|
41
|
+
onInput: (e) => o("input", e),
|
|
42
|
+
onKeydown: (e) => o("keydown", e),
|
|
43
|
+
onMousedown: (e) => o("mousedown", e),
|
|
44
|
+
onMouseup: (e) => o("mouseup", e),
|
|
45
|
+
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
|
49
46
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
e.overlayClasses
|
|
93
|
-
].flat(), a = {
|
|
94
|
-
onClick: H,
|
|
95
|
-
onScroll: b,
|
|
96
|
-
onTouchmove: b,
|
|
97
|
-
onWheel: b,
|
|
98
|
-
onKeydown: b
|
|
99
|
-
}, n = {
|
|
100
|
-
transitionDuration: e.transitionDuration / 1e3 + "s"
|
|
101
|
-
};
|
|
102
|
-
return {
|
|
103
|
-
class: t,
|
|
104
|
-
style: n,
|
|
105
|
-
...a,
|
|
106
|
-
...x
|
|
107
|
-
};
|
|
108
|
-
}), P = y(() => {
|
|
109
|
-
const t = [
|
|
110
|
-
{
|
|
111
|
-
"bb-offcanvas__panel": !0,
|
|
112
|
-
"bb-offcanvas__panel--compact": e.compact
|
|
113
|
-
},
|
|
114
|
-
e.panelClasses
|
|
115
|
-
].flat(), a = {
|
|
116
|
-
role: "dialog",
|
|
117
|
-
"aria-modal": !0,
|
|
118
|
-
"aria-labelledby": v
|
|
119
|
-
};
|
|
120
|
-
e.description && (a["aria-describedby"] = h);
|
|
121
|
-
let n, U, r;
|
|
122
|
-
const m = {
|
|
123
|
-
sm: 384,
|
|
124
|
-
md: 652,
|
|
125
|
-
lg: 896
|
|
126
|
-
};
|
|
127
|
-
e.position === "left" || e.position === "right" ? e.fullscreen ? n = "100%" : typeof e.size == "number" ? n = e.size + "px" : e.size in m ? n = m[e.size] + "px" : n = e.size + "px" : e.fullscreen ? r = "100%" : typeof e.size == "number" ? r = e.size + "px" : e.size in m ? r = m[e.size] + "px" : Number.isNaN(Number(e.size)) ? e.size === "auto" && (r = "auto") : r = e.size + "px";
|
|
128
|
-
const j = {
|
|
129
|
-
maxWidth: n,
|
|
130
|
-
maxHeight: U,
|
|
131
|
-
height: r,
|
|
132
|
-
transitionDuration: e.transitionDuration / 1e3 + "s"
|
|
133
|
-
};
|
|
134
|
-
return {
|
|
135
|
-
class: t,
|
|
136
|
-
style: j,
|
|
137
|
-
...a
|
|
138
|
-
};
|
|
139
|
-
});
|
|
140
|
-
return (t, a) => (_(), X(Y, { to: "body" }, [
|
|
141
|
-
o("div", D(K.value, {
|
|
142
|
-
ref_key: "overlay",
|
|
143
|
-
ref: p
|
|
144
|
-
}), [
|
|
145
|
-
o("div", D(P.value, {
|
|
146
|
-
ref_key: "panel",
|
|
147
|
-
ref: i
|
|
148
|
-
}), [
|
|
149
|
-
k.value ? (_(), z("div", {
|
|
150
|
-
key: 0,
|
|
151
|
-
class: "bb-offcanvas__content",
|
|
152
|
-
ref_key: "content",
|
|
153
|
-
ref: A
|
|
154
|
-
}, [
|
|
155
|
-
l(t.$slots, "content", {}, () => [
|
|
156
|
-
o("div", {
|
|
157
|
-
class: "bb-offcanvas__header",
|
|
158
|
-
ref_key: "header",
|
|
159
|
-
ref: M
|
|
160
|
-
}, [
|
|
161
|
-
l(t.$slots, "header", { titleId: v }, () => [
|
|
162
|
-
o("span", {
|
|
163
|
-
class: "bb-offcanvas__title",
|
|
164
|
-
id: v
|
|
165
|
-
}, [
|
|
166
|
-
l(t.$slots, "title", { titleId: v }, () => [
|
|
167
|
-
Z(B(t.title), 1)
|
|
168
|
-
])
|
|
169
|
-
]),
|
|
170
|
-
o("span", ee, [
|
|
171
|
-
t.showClose ? (_(), z("button", {
|
|
172
|
-
key: 0,
|
|
173
|
-
onClick: I,
|
|
174
|
-
type: "button"
|
|
175
|
-
}, [
|
|
176
|
-
l(t.$slots, "close", {}, () => [
|
|
177
|
-
o("span", te, [
|
|
178
|
-
o("span", oe, B(R.value), 1),
|
|
179
|
-
se
|
|
180
|
-
])
|
|
181
|
-
])
|
|
182
|
-
])) : V("", !0)
|
|
183
|
-
])
|
|
184
|
-
])
|
|
185
|
-
], 512),
|
|
186
|
-
o("div", {
|
|
187
|
-
class: "bb-offcanvas__body",
|
|
188
|
-
ref_key: "body",
|
|
189
|
-
ref: T
|
|
190
|
-
}, [
|
|
191
|
-
l(t.$slots, "description", {
|
|
192
|
-
descriptionId: h,
|
|
193
|
-
description: t.description
|
|
194
|
-
}, () => [
|
|
195
|
-
t.description ? (_(), z("div", {
|
|
196
|
-
key: 0,
|
|
197
|
-
id: h,
|
|
198
|
-
class: "bb-offcanvas__description"
|
|
199
|
-
}, B(t.description), 1)) : V("", !0)
|
|
200
|
-
]),
|
|
201
|
-
l(t.$slots, "default")
|
|
202
|
-
], 512),
|
|
203
|
-
ae,
|
|
204
|
-
o("div", {
|
|
205
|
-
class: "bb-offcanvas__footer",
|
|
206
|
-
ref_key: "footer",
|
|
207
|
-
ref: W
|
|
208
|
-
}, [
|
|
209
|
-
l(t.$slots, "footer")
|
|
210
|
-
], 512)
|
|
47
|
+
return (e, k) => (b(), c(P, {
|
|
48
|
+
class: "bb-number-input",
|
|
49
|
+
direction: e.direction,
|
|
50
|
+
errors: e.errors,
|
|
51
|
+
hasErrors: e.hasErrors,
|
|
52
|
+
hideLabel: e.hideLabel,
|
|
53
|
+
id: e.id,
|
|
54
|
+
inputPosition: e.inputPosition,
|
|
55
|
+
label: e.label,
|
|
56
|
+
labelPosition: e.labelPosition,
|
|
57
|
+
modelValue: e.modelValue,
|
|
58
|
+
name: e.name,
|
|
59
|
+
reverse: e.reverse
|
|
60
|
+
}, {
|
|
61
|
+
label: l((a) => [
|
|
62
|
+
r(e.$slots, "label", s(d(a)))
|
|
63
|
+
]),
|
|
64
|
+
input: l(({
|
|
65
|
+
id: a,
|
|
66
|
+
name: u,
|
|
67
|
+
hasErrors: p
|
|
68
|
+
}) => [
|
|
69
|
+
h(V, f({
|
|
70
|
+
autocomplete: e.autocomplete,
|
|
71
|
+
autofocus: e.autofocus,
|
|
72
|
+
disabled: e.disabled,
|
|
73
|
+
handles: e.handles,
|
|
74
|
+
hasErrors: p,
|
|
75
|
+
id: a,
|
|
76
|
+
max: e.max,
|
|
77
|
+
min: e.min,
|
|
78
|
+
modelValue: e.modelValue,
|
|
79
|
+
name: u,
|
|
80
|
+
placeholder: e.placeholder,
|
|
81
|
+
readonly: e.readonly,
|
|
82
|
+
step: e.step
|
|
83
|
+
}, i), y({ _: 2 }, [
|
|
84
|
+
B(e.$slots, (w, n) => ({
|
|
85
|
+
name: n,
|
|
86
|
+
fn: l((t) => [
|
|
87
|
+
r(e.$slots, n, s(d(t)))
|
|
211
88
|
])
|
|
212
|
-
|
|
213
|
-
],
|
|
214
|
-
],
|
|
215
|
-
|
|
89
|
+
}))
|
|
90
|
+
]), 1040, ["autocomplete", "autofocus", "disabled", "handles", "hasErrors", "id", "max", "min", "modelValue", "name", "placeholder", "readonly", "step"])
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "inputPosition", "label", "labelPosition", "modelValue", "name", "reverse"]));
|
|
216
94
|
}
|
|
217
95
|
});
|
|
218
96
|
export {
|
|
219
|
-
|
|
97
|
+
I as default
|
|
220
98
|
};
|
|
221
99
|
//# sourceMappingURL=index61.js.map
|
package/dist/index61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index61.js","sources":["../src/components/BbOffCanvas/BbOffCanvas.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-offcanvas-close\" }\nconst _hoisted_2 = { class: \"bb-offcanvas-close__content\" }\nconst _hoisted_3 = { class: \"bb-offcanvas-close__label\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-offcanvas-close__icon\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n ])\n], -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex\":\"10000 10000 0%\"} }, null, -1)\n\nimport { nanoid } from \"nanoid\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useAttrs,\n watch,\n} from \"vue\";\nimport BbIcon from \"../BbIcon/BbIcon.vue\";\nimport type { Classes } from \"@/types/Classes\";\n\nexport type Sizes = {\n sm: number;\n md: number;\n lg: number;\n};\n\nexport interface BbOffCanvasProps {\n closeLabel?: string;\n compact?: boolean;\n description?: string;\n disabled?: boolean;\n eager?: boolean;\n fullscreen?: boolean;\n modelValue?: boolean | null;\n panelClasses?: Classes;\n overlayClasses?: Classes;\n persistent?: boolean;\n position?: \"left\" | \"top\" | \"right\" | \"bottom\";\n showClose?: boolean;\n size?: keyof Sizes | string | number;\n title?: string;\n transition?: string;\n transitionDuration?: number;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbOffCanvas',\n props: {\n closeLabel: { default: \"Chiudi\" },\n compact: { type: Boolean },\n description: {},\n disabled: { type: Boolean },\n eager: { type: Boolean },\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] },\n panelClasses: { default: () => [] },\n overlayClasses: { default: () => [] },\n persistent: { type: Boolean },\n position: { default: \"left\" },\n showClose: { type: Boolean, default: true },\n size: { default: \"sm\" },\n title: {},\n transition: { default: \"fade\" },\n transitionDuration: { default: 350 }\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\nconst props = __props;\n\n\n\n\n\nconst titleId = `title_${nanoid()}`;\nconst descriptionId = `description_${nanoid()}`;\n\nconst overlay = ref<HTMLElement | null>(null);\nconst panel = ref<HTMLElement | null>(null);\nconst content = ref<HTMLElement | null>(null);\nconst header = ref<HTMLElement | null>(null);\nconst body = ref<HTMLElement | null>(null);\nconst footer = ref<HTMLElement | null>(null);\nconst attrs = useAttrs();\n\nconst closeLabel = computed(() => props.closeLabel);\n\nonMounted(async () => {\n document.addEventListener(\"keydown\", onEsc);\n});\nonBeforeUnmount(() => {\n document.removeEventListener(\"keydown\", onEsc);\n document.removeEventListener(\"focus\", onFocus);\n});\n\nconst open = ref(false);\nconst opening = ref(false);\nconst closed = ref(true);\nconst closing = ref(false);\nconst hasRenderedAtLeastOnce = ref(props.eager || props.modelValue);\nconst lastFocusedElement = ref<Element | null>(null);\n\nconst busy = computed(() => opening.value || closing.value);\n\n/**\n * Listen to esc key and close the modal.\n * If disabled the modal can only be controlled from outside.\n * If persistent ignore escape key.\n */\nconst onEsc = (event: KeyboardEvent) => {\n if (busy.value) return;\n if (open.value) {\n if (!props.persistent && !props.disabled) {\n if (event.key === \"Escape\") {\n emit(\"update:modelValue\", false);\n }\n }\n }\n};\n\n/**\n * Every time focus changes if the focussed element is not in the modal\n * bring the focus to the modal itself (This makes\n * the focus cycle among the content of the modal)\n */\nconst onFocus = (event: FocusEvent) => {\n if (busy.value) return;\n if (panel.value && open.value) {\n if (event.target instanceof Node) {\n if (!panel.value.contains(event.target)) {\n event.preventDefault();\n panel.value.focus();\n }\n }\n }\n};\n\nonMounted(() => {\n if (props.modelValue) {\n alignToModelValue();\n }\n});\n\n/**\n * Every time modelValue changes align the display to it\n */\nwatch(\n () => props.modelValue,\n () => {\n alignToModelValue();\n }\n);\n\n/**\n * When modelValue becomes true if the component wasn't rendered render it\n * and wait for it to be on the page (or transitions would not work).\n * Stash the latest focused element so we can return it later when it closes.\n * Focus on the panel upon opening.\n * ---\n * Notice all interactions update modelValue and then this function aligns the display to it\n */\nconst alignToModelValue = async () => {\n if (props.modelValue) {\n if (!hasRenderedAtLeastOnce.value) {\n hasRenderedAtLeastOnce.value = true;\n }\n if (document.activeElement) {\n lastFocusedElement.value = document.activeElement;\n }\n\n closed.value = false;\n closing.value = false;\n opening.value = true;\n\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n currentlyOpenCanvases++;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n const scrollBarWidth =\n window.innerWidth - document.documentElement.clientWidth;\n document.body.style.overflow = \"hidden\";\n document.body.style.paddingRight = `${scrollBarWidth}px`;\n\n await wait(props.transitionDuration);\n\n opening.value = false;\n open.value = true;\n emit(\"shown\");\n if (panel.value) {\n panel.value.focus();\n }\n } else {\n opening.value = false;\n open.value = false;\n closing.value = true;\n\n await wait(props.transitionDuration);\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n currentlyOpenCanvases--;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n if (!currentlyOpenCanvases) {\n document.body.style.overflow = \"auto\";\n document.body.style.paddingRight = \"0px\";\n }\n closing.value = false;\n closed.value = true;\n emit(\"hidden\");\n if (lastFocusedElement.value instanceof HTMLElement) {\n lastFocusedElement.value.focus();\n }\n }\n};\n\n/**\n * Disable scrolling\n */\nconst onOverlayScroll = (event: UIEvent) => {\n if (event.target === overlay.value) {\n event.preventDefault();\n }\n};\n\n/**\n * Close the modal on overlay click if not persistent\n */\nconst onOverlayClick = (event: MouseEvent) => {\n if (props.disabled || busy.value) return;\n if (overlay.value) {\n if (event.target === overlay.value) {\n if (!props.persistent) {\n emit(\"update:modelValue\", false);\n }\n }\n }\n};\n\n/**\n * On click on the X button\n */\nconst onCloseClick = () => {\n if (props.disabled) return;\n emit(\"update:modelValue\", false);\n};\n\nconst overlayAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas bb-offcanvas__overlay\": true,\n \"bb-offcanvas--fullscreen\": props.fullscreen,\n \"bb-offcanvas--open\": open.value,\n \"bb-offcanvas--opening\": opening.value,\n \"bb-offcanvas--closed\": closed.value,\n \"bb-offcanvas--closing\": closing.value,\n [`bb-offcanvas--transition-${props.transition}`]: true,\n [`bb-offcanvas--${props.position}`]: true,\n },\n props.overlayClasses,\n ].flat();\n const eventListeners = {\n onClick: onOverlayClick,\n onScroll: onOverlayScroll,\n onTouchmove: onOverlayScroll,\n onWheel: onOverlayScroll,\n onKeydown: onOverlayScroll,\n };\n\n const style = {\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n return {\n class: classes,\n style,\n ...eventListeners,\n ...attrs,\n };\n});\n\nconst panelAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas__panel\": true,\n \"bb-offcanvas__panel--compact\": props.compact,\n },\n props.panelClasses,\n ].flat();\n\n const accessibilityAttrs: {\n [key: string]: string | boolean;\n } = {\n role: \"dialog\",\n \"aria-modal\": true,\n \"aria-labelledby\": titleId,\n };\n if (props.description) accessibilityAttrs[\"aria-describedby\"] = descriptionId;\n\n let maxWidth;\n let maxHeight;\n let height;\n const sizes: Sizes = {\n sm: 384,\n md: 652,\n lg: 896,\n };\n if (props.position === \"left\" || props.position === \"right\") {\n if (props.fullscreen) maxWidth = \"100%\";\n else if (typeof props.size === \"number\") maxWidth = props.size + \"px\";\n else if (props.size in sizes)\n maxWidth = sizes[props.size as keyof Sizes] + \"px\";\n else maxWidth = props.size + \"px\";\n } else {\n if (props.fullscreen) height = \"100%\";\n else if (typeof props.size === \"number\") height = props.size + \"px\";\n else if (props.size in sizes)\n height = sizes[props.size as keyof Sizes] + \"px\";\n else if (!Number.isNaN(Number(props.size))) height = props.size + \"px\";\n else if (props.size === \"auto\") height = \"auto\";\n }\n\n const style = {\n maxWidth,\n maxHeight,\n height,\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n\n return {\n class: classes,\n style,\n ...accessibilityAttrs,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", _mergeProps(overlayAttributes.value, {\n ref_key: \"overlay\",\n ref: overlay\n }), [\n _createElementVNode(\"div\", _mergeProps(panelAttributes.value, {\n ref_key: \"panel\",\n ref: panel\n }), [\n (hasRenderedAtLeastOnce.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"bb-offcanvas__content\",\n ref_key: \"content\",\n ref: content\n }, [\n _renderSlot(_ctx.$slots, \"content\", {}, () => [\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__header\",\n ref_key: \"header\",\n ref: header\n }, [\n _renderSlot(_ctx.$slots, \"header\", { titleId: titleId }, () => [\n _createElementVNode(\"span\", {\n class: \"bb-offcanvas__title\",\n id: titleId\n }, [\n _renderSlot(_ctx.$slots, \"title\", { titleId: titleId }, () => [\n _createTextVNode(_toDisplayString(_ctx.title), 1)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: onCloseClick,\n type: \"button\"\n }, [\n _renderSlot(_ctx.$slots, \"close\", {}, () => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(closeLabel.value), 1),\n _hoisted_4\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512),\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__body\",\n ref_key: \"body\",\n ref: body\n }, [\n _renderSlot(_ctx.$slots, \"description\", {\n descriptionId: descriptionId,\n description: _ctx.description\n }, () => [\n (_ctx.description)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: descriptionId,\n class: \"bb-offcanvas__description\"\n }, _toDisplayString(_ctx.description), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ], 512),\n _hoisted_5,\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__footer\",\n ref_key: \"footer\",\n ref: footer\n }, [\n _renderSlot(_ctx.$slots, \"footer\")\n ], 512)\n ])\n ], 512))\n : _createCommentVNode(\"\", true)\n ], 16)\n ], 16)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","emit","props","titleId","nanoid","descriptionId","overlay","ref","panel","content","header","body","footer","attrs","useAttrs","closeLabel","computed","onMounted","onEsc","onBeforeUnmount","onFocus","open","opening","closed","closing","hasRenderedAtLeastOnce","lastFocusedElement","busy","event","alignToModelValue","watch","currentlyOpenCanvases","scrollBarWidth","wait","onOverlayScroll","onOverlayClick","onCloseClick","overlayAttributes","classes","eventListeners","style","panelAttributes","accessibilityAttrs","maxWidth","maxHeight","height","sizes","_ctx","_cache","_openBlock","_createBlock","_Teleport","_mergeProps","_createElementBlock","_renderSlot","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;AAGA,MAAMA,KAAa,EAAE,OAAO,wBACtBC,KAAa,EAAE,OAAO,iCACtBC,KAAa,EAAE,OAAO,+BACtBC,KAA8CC,gBAAAA,EAAA,QAAQ,EAAE,OAAO,8BAA8B;AAAA,oBAChE,OAAO;AAAA,IACtC,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,GACN;AAAA,sBACgC,QAAQ;AAAA,MACvC,GAAG;AAAA,MACH,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,kBAAkB;AAAA,IAAA,CACnB;AAAA,EAAA,CACF;AACH,GAAG,EAAE,GACCC,KAA8CD,gBAAAA,EAAA,OAAO,EAAE,OAAO,EAAC,MAAO,mBAAqB,GAAA,MAAM,EAAE,GAyC7EE,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,EAAE,SAAS,SAAS;AAAA,IAChC,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA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,KAAK,GAAG,CAAC;AAAA,0BAC7EpB;AAAA,wBAAA,CACD;AAAA,sBAAA,CACF;AAAA,oBAAA,CACF,KACD8D,EAAoB,IAAI,EAAI;AAAA,kBAAA,CACjC;AAAA,gBAAA,CACF;AAAA,iBACA,GAAG;AAAA,cACN7D,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKe;AAAA,cAAA,GACJ;AAAA,gBACD2C,EAAYP,EAAK,QAAQ,eAAe;AAAA,kBACtC,eAAA1C;AAAA,kBACA,aAAa0C,EAAK;AAAA,gBAAA,GACjB,MAAM;AAAA,kBACNA,EAAK,eACDE,KAAcI,EAAoB,OAAO;AAAA,oBACxC,KAAK;AAAA,oBACL,IAAIhD;AAAA,oBACJ,OAAO;AAAA,kBAAA,GACNmD,EAAiBT,EAAK,WAAW,GAAG,CAAC,KACxCU,EAAoB,IAAI,EAAI;AAAA,gBAAA,CACjC;AAAA,gBACDH,EAAYP,EAAK,QAAQ,SAAS;AAAA,iBACjC,GAAG;AAAA,cACNlD;AAAA,cACAD,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKgB;AAAA,cAAA,GACJ;AAAA,gBACD0C,EAAYP,EAAK,QAAQ,QAAQ;AAAA,iBAChC,GAAG;AAAA,YAAA,CACP;AAAA,UACA,GAAA,GAAG,KACNU,EAAoB,IAAI,EAAI;AAAA,WAC/B,EAAE;AAAA,SACJ,EAAE;AAAA,IAAA,CACN;AAAA,EAEH;AAEA,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index61.js","sources":["../src/components/BbNumberInput/BbNumberInput.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseNumberInput from \"../BaseNumberInput/BaseNumberInput.vue\";\nimport type { BaseNumberInputEvents } from \"../BaseNumberInput/BaseNumberInput.vue\"\n\nexport interface BbNumberInputProps {\n autocomplete?: string;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n handles?: boolean;\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n inputPosition?: \"left\" | \"center\" | \"right\";\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n labelTag?: string;\n max?: number;\n min?: number;\n modelValue?: number | string | null;\n name?: string;\n placeholder?: string;\n readonly?: boolean;\n reverse?: boolean;\n step?: number;\n tag?: string;\n}\n\nexport type BbNumberInputEvents = BaseNumberInputEvents;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbNumberInput',\n props: {\n autocomplete: {},\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n handles: { type: Boolean },\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n inputPosition: {},\n label: {},\n labelPosition: {},\n labelTag: {},\n max: {},\n min: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean },\n step: {},\n tag: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"decrease\", \"focus\", \"increase\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit }) {\n\n\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onDecrease: (event: number) => emit(\"decrease\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onIncrease: (event: number) => emit(\"increase\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: number | null) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-number-input\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n inputPosition: _ctx.inputPosition,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({\n id,\n name,\n hasErrors,\n }) => [\n _createVNode(BaseNumberInput, _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n handles: _ctx.handles,\n hasErrors: hasErrors,\n id: id,\n max: _ctx.max,\n min: _ctx.min,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly,\n step: _ctx.step\n }, eventListeners), _createSlots({ _: 2 }, [\n _renderList(_ctx.$slots, (_, name) => {\n return {\n name: name,\n fn: _withCtx((data) => [\n _renderSlot(_ctx.$slots, name, _normalizeProps(_guardReactiveProps(data)))\n ])\n }\n })\n ]), 1040, [\"autocomplete\", \"autofocus\", \"disabled\", \"handles\", \"hasErrors\", \"id\", \"max\", \"min\", \"modelValue\", \"name\", \"placeholder\", \"readonly\", \"step\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"inputPosition\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseNumberInput","_mergeProps","_createSlots","_renderList","_"],"mappings":";;;;;AAmCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,eAAe,CAAC;AAAA,IAChB,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,MAAM,CAAC;AAAA,IACP,KAAK,CAAC;AAAA,EACR;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,YAAY,SAAS,YAAY,SAAS,WAAW,aAAa,WAAW,mBAAmB;AAAA,EACnI,MAAMC,GAAc,EAAE,MAAAC,KAAQ;AAShC,UAAMC,IAAiB;AAAA,MACrB,QAAQ,CAACC,MAAsBF,EAAK,QAAQE,CAAK;AAAA,MACjD,UAAU,CAACA,MAAiBF,EAAK,UAAUE,CAAK;AAAA,MAChD,SAAS,CAACA,MAAsBF,EAAK,SAASE,CAAK;AAAA,MACnD,YAAY,CAACA,MAAkBF,EAA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