bitboss-ui 2.0.170 → 2.0.172
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/BaseColorInput/BaseColorInput.vue.d.ts +95 -5
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +12 -6
- package/dist/components/BbPopover/BbPopover.vue.d.ts +14 -8
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +12 -6
- package/dist/components/CommonPopover.vue.d.ts +5 -4
- package/dist/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +12 -12
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +129 -142
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +10 -5
- package/dist/index21.js +16 -16
- package/dist/index210.js +3 -5
- package/dist/index211.js +13 -5
- package/dist/index212.js +34 -5
- package/dist/index213.js +13 -5
- package/dist/index214.js +66 -5
- package/dist/index216.js +2 -3
- package/dist/index217.js +4 -2
- package/dist/index218.js +2 -8
- package/dist/index219.js +2 -250
- package/dist/index220.js +41 -52
- package/dist/index221.js +5 -43
- package/dist/index222.js +7 -5
- package/dist/index223.js +11 -56
- package/dist/index224.js +5 -13
- package/dist/index225.js +9 -2
- package/dist/index226.js +5 -4
- package/dist/index227.js +5 -2
- package/dist/index228.js +5 -34
- package/dist/index229.js +5 -2
- package/dist/index23.js +136 -159
- package/dist/index230.js +5 -2
- package/dist/index231.js +2 -86
- package/dist/index232.js +4 -0
- package/dist/index233.js +9 -27
- package/dist/index234.js +19 -16
- package/dist/index235.js +103 -49
- package/dist/index237.js +86 -12
- package/dist/index239.js +29 -3
- package/dist/index240.js +17 -4
- package/dist/index241.js +50 -40
- package/dist/index242.js +14 -19
- package/dist/index243.js +3 -94
- package/dist/index244.js +14 -0
- package/dist/index245.js +16 -200
- package/dist/index246.js +6 -0
- package/dist/index247.js +192 -58
- package/dist/index249.js +18 -13
- package/dist/index25.js +5 -5
- package/dist/index250.js +12 -6
- package/dist/index251.js +106 -7
- package/dist/index253.js +99 -17
- package/dist/index255.js +211 -89
- package/dist/index256.js +4 -0
- package/dist/index257.js +176 -99
- package/dist/index258.js +5 -0
- package/dist/index259.js +2 -12
- package/dist/index260.js +5 -2
- package/dist/index261.js +5 -228
- package/dist/index262.js +7 -367
- package/dist/index263.js +250 -2
- package/dist/index264.js +52 -5
- package/dist/index265.js +44 -9
- package/dist/index266.js +5 -177
- package/dist/index267.js +59 -8
- package/dist/index268.js +8 -10
- package/dist/index269.js +23 -101
- package/dist/index27.js +1 -1
- package/dist/index270.js +8 -0
- package/dist/index271.js +16 -23
- package/dist/index272.js +3 -10
- package/dist/index273.js +9 -3
- package/dist/index274.js +8 -6
- package/dist/index275.js +2 -16
- package/dist/index276.js +67 -3
- package/dist/index277.js +5 -9
- package/dist/index278.js +8 -8
- package/dist/index279.js +5 -2
- package/dist/index280.js +7 -67
- package/dist/index281.js +11 -5
- package/dist/index282.js +2 -5
- package/dist/index284.js +7 -280
- package/dist/index285.js +3 -2
- package/dist/index286.js +4 -16
- package/dist/index287.js +3 -2
- package/dist/index288.js +17 -16
- package/dist/index289.js +28 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +3 -18
- package/dist/index291.js +471 -2
- package/dist/index292.js +2 -15
- package/dist/index293.js +3 -2
- package/dist/index294.js +3 -19
- package/dist/index295.js +280 -2
- package/dist/index296.js +2 -27
- package/dist/index297.js +125 -2
- package/dist/index298.js +2 -2
- package/dist/index299.js +15 -2
- package/dist/index300.js +2 -2
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -28
- package/dist/index303.js +16 -22
- package/dist/index305.js +19 -7
- package/dist/index306.js +2 -7
- package/dist/index307.js +200 -11
- package/dist/index308.js +6 -4
- package/dist/index309.js +3 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -6
- package/dist/index311.js +2 -4
- package/dist/index312.js +5 -3
- package/dist/index313.js +19 -17
- package/dist/index314.js +2 -5
- package/dist/index315.js +25 -469
- package/dist/index316.js +2 -3
- package/dist/index317.js +2 -3
- package/dist/index318.js +2 -3
- package/dist/index319.js +4 -0
- package/dist/index320.js +2 -200
- package/dist/index321.js +21 -1
- package/dist/index323.js +5 -3
- package/dist/index324.js +701 -3
- package/dist/index325.js +354 -2
- package/dist/index326.js +51 -375
- package/dist/index327.js +2 -126
- package/dist/index328.js +58 -125
- package/dist/index329.js +58 -2
- package/dist/index33.js +8 -8
- package/dist/index330.js +32 -2
- package/dist/index331.js +28 -5
- package/dist/index333.js +47 -354
- package/dist/index334.js +6 -57
- package/dist/index335.js +8 -2
- package/dist/index336.js +5 -6
- package/dist/index337.js +8 -19
- package/dist/index338.js +6 -6
- package/dist/index339.js +18 -32
- package/dist/index340.js +227 -27
- package/dist/{index254.js → index341.js} +4 -4
- package/dist/index342.js +360 -220
- package/dist/index343.js +92 -57
- package/dist/index345.js +3 -8
- package/dist/index346.js +480 -4
- package/dist/index347.js +45 -6
- package/dist/index348.js +129 -5
- package/dist/index349.js +379 -44
- package/dist/index35.js +4 -4
- package/dist/index350.js +124 -91
- package/dist/index37.js +230 -240
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +41 -40
- package/dist/index96.js +1 -1
- package/package.json +1 -1
- package/dist/components/CommonFloating.vue.d.ts +0 -38
- package/dist/index215.js +0 -7
- package/dist/index236.js +0 -17
- package/dist/index238.js +0 -18
- package/dist/index252.js +0 -17
- package/dist/index283.js +0 -10
- package/dist/index322.js +0 -131
- package/dist/index332.js +0 -703
- package/dist/index344.js +0 -60
- package/dist/index352.js +0 -5
- package/dist/index353.js +0 -484
- package/dist/index354.js +0 -49
- package/dist/index355.js +0 -483
- /package/dist/{index356.js → index304.js} +0 -0
package/dist/index23.js
CHANGED
@@ -1,31 +1,29 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
1
|
+
import { defineComponent as J, watchEffect as K, ref as n, computed as y, watch as Q, createBlock as X, openBlock as w, normalizeClass as S, withCtx as l, createVNode as h, unref as r, withDirectives as x, createElementVNode as d, createElementBlock as ee, createCommentVNode as te, mergeProps as B, withModifiers as ae, toDisplayString as E, renderSlot as p } from "vue";
|
2
|
+
import { _config as oe } from "./index4.js";
|
3
|
+
import o from "./index224.js";
|
4
|
+
import { debounce as re } from "./index225.js";
|
5
|
+
import ne from "./index226.js";
|
6
|
+
import le from "./index227.js";
|
7
|
+
import ie from "./index228.js";
|
8
|
+
import se from "./index229.js";
|
9
|
+
import de from "./index230.js";
|
10
|
+
import { identity as ue } from "./index219.js";
|
11
|
+
import { isEmpty as ce } from "./index231.js";
|
12
|
+
import { last as pe } from "./index232.js";
|
13
|
+
import { useId as me } from "./index8.js";
|
14
|
+
import { useIntersectionObserver as fe } from "./index137.js";
|
15
|
+
import { useLocale as be } from "./index211.js";
|
14
16
|
import { useMobile as ke } from "./index9.js";
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import
|
18
|
-
import De from "./index21.js";
|
17
|
+
import { useUntil as ge } from "./index233.js";
|
18
|
+
import { vMaska as ye } from "./index234.js";
|
19
|
+
import ve from "./index21.js";
|
19
20
|
/* empty css */
|
20
|
-
import
|
21
|
+
import Ve from "./index214.js";
|
21
22
|
/* empty css */
|
22
|
-
import
|
23
|
+
import he from "./index213.js";
|
24
|
+
import Me from "./index235.js";
|
23
25
|
/* empty css */
|
24
|
-
|
25
|
-
import { _config as Ce } from "./index4.js";
|
26
|
-
import { isEmpty as Ye } from "./index260.js";
|
27
|
-
import { debounce as Se } from "./index265.js";
|
28
|
-
const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Be = ["aria-label", "disabled"], Oe = ["id"], $e = ["inert"], nt = /* @__PURE__ */ ee({
|
26
|
+
const De = ["inert"], Ce = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Ye = ["aria-label", "disabled"], we = ["id"], Xe = /* @__PURE__ */ J({
|
29
27
|
__name: "BaseDatePickerInput",
|
30
28
|
props: {
|
31
29
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -52,93 +50,73 @@ const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
52
50
|
teleportTarget: {}
|
53
51
|
},
|
54
52
|
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
55
|
-
setup(
|
56
|
-
const
|
57
|
-
o.extend(
|
58
|
-
o.locale(
|
53
|
+
setup(I, { emit: $ }) {
|
54
|
+
const L = { it: de, en: le };
|
55
|
+
o.extend(ne), o.extend(ie), o.extend(se), K(() => {
|
56
|
+
o.locale(L[oe.locale]);
|
59
57
|
});
|
60
|
-
const t =
|
61
|
-
() => t.allowWriting === "not-mobile" &&
|
62
|
-
)
|
63
|
-
|
58
|
+
const t = I, i = $, { t: u } = be(), M = n(null), v = n(null), m = n(null), _ = n(null), f = n(null), D = n(), b = t.id || `bdpi-${me().id.value}`, { isMobile: O } = ke(), P = y(
|
59
|
+
() => t.allowWriting === "not-mobile" && O.value ? "none" : "numeric"
|
60
|
+
);
|
61
|
+
fe(
|
64
62
|
// @ts-expect-error wrong inferred type
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
m,
|
64
|
+
re(() => {
|
65
|
+
s.value && (m.value && m.value.$el.querySelector(
|
68
66
|
".bb-base-date-picker-input__calendar-btn"
|
69
|
-
).focus({ preventScroll: !0 }),
|
67
|
+
).focus({ preventScroll: !0 }), V());
|
70
68
|
}, 100),
|
71
69
|
{ threshold: [0, 1] }
|
72
70
|
);
|
73
|
-
const
|
71
|
+
const F = y(() => ({
|
74
72
|
"bb-base-date-picker-input": !0,
|
75
|
-
"bb-base-date-picker-input--active":
|
73
|
+
"bb-base-date-picker-input--active": k.value,
|
76
74
|
"bb-base-date-picker-input--errors": t.hasErrors,
|
77
75
|
"bb-base-date-picker-input--loading": t.loading,
|
78
76
|
"bb-base-date-picker-input--readonly": t.readonly,
|
79
77
|
"bb-base-date-picker-input--disabled": t.disabled,
|
80
78
|
"bb-base-date-picker-input--compact": t.compact
|
81
|
-
})),
|
79
|
+
})), j = {
|
82
80
|
onInput: (e) => {
|
83
81
|
if (!t.range && e.target instanceof HTMLInputElement)
|
84
|
-
if (
|
82
|
+
if (f.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
85
83
|
const a = o(e.target.value, "DD/MM/YYYY");
|
86
|
-
|
87
|
-
} else e.target.value === "" &&
|
84
|
+
z(a) ? (e.target.value = "", i("update:modelValue", null), i("error", "invalid_date_typed")) : i("update:modelValue", a.toISOString());
|
85
|
+
} else e.target.value === "" && i("update:modelValue", null);
|
88
86
|
}
|
89
|
-
},
|
90
|
-
|
91
|
-
},
|
87
|
+
}, k = n(!1), A = () => {
|
88
|
+
k.value || (i("active"), k.value = !0, document.addEventListener("focusin", g), document.addEventListener("click", g));
|
89
|
+
}, g = (e) => {
|
92
90
|
var a, c;
|
93
|
-
|
94
|
-
},
|
91
|
+
e.target instanceof HTMLElement && (a = v.value) != null && a.$el && !v.value.$el.contains(e.target) && !((c = M.value) != null && c.contains(e.target)) && (k.value = !1, i("inactive"), document.removeEventListener("focusin", g), document.removeEventListener("click", g));
|
92
|
+
}, C = (e) => {
|
95
93
|
if (e)
|
96
94
|
if (Array.isArray(e)) {
|
97
95
|
let a, c;
|
98
|
-
return e.length && (a = e[0]), e.length > 1 && (c = pe(e)), [a, c].filter(
|
96
|
+
return e.length && (a = e[0]), e.length > 1 && (c = pe(e)), [a, c].filter(ue).map((G) => o(G).format("DD/MM/YYYY")).join(" - ");
|
99
97
|
} else
|
100
98
|
return o(e).format("DD/MM/YYYY");
|
101
99
|
return null;
|
102
|
-
},
|
103
|
-
|
100
|
+
}, H = y(() => f.value ? f.value : C(t.modelValue));
|
101
|
+
Q(
|
104
102
|
() => t.modelValue,
|
105
103
|
(e) => {
|
106
|
-
|
104
|
+
f.value = C(e);
|
107
105
|
}
|
108
106
|
);
|
109
|
-
const
|
110
|
-
|
111
|
-
|
107
|
+
const s = n(!1), W = ge(s), Y = (e) => {
|
108
|
+
const a = e.target;
|
109
|
+
a && a instanceof HTMLDialogElement && V();
|
110
|
+
}, q = async () => {
|
111
|
+
t.disabled || t.readonly || (s.value = !0, document.addEventListener("click", Y, { passive: !0 }));
|
112
|
+
}, V = async () => {
|
112
113
|
var e;
|
113
|
-
|
114
|
-
},
|
115
|
-
b.value || (S.value = !0, await he(() => !!m.value), await z(), Z());
|
116
|
-
}, b = r(!1), { activate: Z, deactivate: I } = me(m, {
|
117
|
-
onActivate: () => b.value = !0,
|
118
|
-
// On post activation focus on current date
|
119
|
-
onPostActivate: () => {
|
120
|
-
var e;
|
121
|
-
(e = m.value.querySelector(
|
122
|
-
".bb-base-date-picker-date--current button"
|
123
|
-
)) == null || e.focus();
|
124
|
-
},
|
125
|
-
onPostDeactivate: async () => {
|
126
|
-
await ye(200), b.value = !1;
|
127
|
-
},
|
128
|
-
/* On esc deactivate the trap, return focus and then close the modal */
|
129
|
-
escapeDeactivates: () => (w.value = !1, h(), !0),
|
130
|
-
clickOutsideDeactivates: () => (w.value = !1, h(), !0),
|
131
|
-
allowOutsideClick: !0,
|
132
|
-
preventScroll: !0
|
133
|
-
}), w = r(!t.allowWriting || t.range), G = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, J = {
|
114
|
+
s.value = !1, (e = D.value) == null || e.resetStatus(), document.removeEventListener("click", Y);
|
115
|
+
}, R = n(!t.allowWriting || t.range), T = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, N = {
|
134
116
|
"onUpdate:modelValue": (e) => {
|
135
|
-
|
136
|
-
onPostDeactivate: () => {
|
137
|
-
b.value = !1, h();
|
138
|
-
}
|
139
|
-
}));
|
117
|
+
i("update:modelValue", e), T(e) && (R.value = !1, V());
|
140
118
|
}
|
141
|
-
},
|
119
|
+
}, U = y(() => {
|
142
120
|
if (t.range) {
|
143
121
|
if (!t.modelValue || t.modelValue.length < 2)
|
144
122
|
return u("baseDatePickerInput.emptyRange").value;
|
@@ -150,152 +128,151 @@ const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
150
128
|
return u("baseDatePickerInput.changeSelection", e).value;
|
151
129
|
}
|
152
130
|
return u("baseDatePickerInput.emptySelection").value;
|
153
|
-
}),
|
131
|
+
}), z = (e) => {
|
154
132
|
let a = !0;
|
155
133
|
return t.min && a && (a = e.isSameOrAfter(o(t.min).startOf("day"))), t.max && a && (a = e.isSameOrBefore(o(t.max).startOf("day"))), typeof t.selectable == "function" && a && (a = t.selectable(e.toDate())), !a;
|
156
|
-
},
|
134
|
+
}, Z = () => {
|
157
135
|
let e = null;
|
158
|
-
t.range && (e = []),
|
136
|
+
t.range && (e = []), i("update:modelValue", e);
|
159
137
|
};
|
160
|
-
return (e, a) => (
|
138
|
+
return (e, a) => (w(), X(he, {
|
161
139
|
ref_key: "outerContainer",
|
162
|
-
ref:
|
163
|
-
class:
|
164
|
-
onFocusin:
|
140
|
+
ref: v,
|
141
|
+
class: S(F.value),
|
142
|
+
onFocusin: A
|
165
143
|
}, {
|
166
|
-
"prepend-outer":
|
144
|
+
"prepend-outer": l(() => [
|
167
145
|
p(e.$slots, "prepend-outer")
|
168
146
|
]),
|
169
|
-
"append-outer":
|
147
|
+
"append-outer": l(() => [
|
170
148
|
p(e.$slots, "append-outer")
|
171
149
|
]),
|
172
|
-
default:
|
173
|
-
|
150
|
+
default: l(() => [
|
151
|
+
h(Ve, {
|
174
152
|
ref_key: "innerContainer",
|
175
|
-
ref:
|
153
|
+
ref: m,
|
176
154
|
"append:icon": t["append:icon"],
|
177
|
-
clearable: t.clearable && !
|
155
|
+
clearable: t.clearable && !r(ce)(e.modelValue),
|
178
156
|
"prepend:icon": t["prepend:icon"],
|
179
|
-
"onClick:clear":
|
157
|
+
"onClick:clear": Z
|
180
158
|
}, {
|
181
|
-
prepend:
|
159
|
+
prepend: l(() => [
|
182
160
|
p(e.$slots, "prepend")
|
183
161
|
]),
|
184
|
-
prefix:
|
162
|
+
prefix: l(() => [
|
185
163
|
p(e.$slots, "prefix")
|
186
164
|
]),
|
187
|
-
append:
|
165
|
+
append: l(() => [
|
188
166
|
p(e.$slots, "append")
|
189
167
|
]),
|
190
|
-
suffix:
|
168
|
+
suffix: l(() => [
|
191
169
|
p(e.$slots, "suffix")
|
192
170
|
]),
|
193
|
-
default:
|
194
|
-
|
195
|
-
|
171
|
+
default: l(() => [
|
172
|
+
h(Me, {
|
173
|
+
modelValue: s.value,
|
174
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => s.value = c),
|
175
|
+
block: !0,
|
176
|
+
dialog: "",
|
177
|
+
offset: 4
|
178
|
+
}, {
|
179
|
+
default: l(() => [
|
180
|
+
r(W) ? (w(), ee("div", {
|
181
|
+
key: 0,
|
182
|
+
ref_key: "calendar",
|
183
|
+
ref: M,
|
184
|
+
class: S(["bb-base-date-picker-input__calendar", {
|
185
|
+
"bb-base-date-picker-input__calendar--shown": s.value
|
186
|
+
}]),
|
187
|
+
inert: !s.value
|
188
|
+
}, [
|
189
|
+
h(ve, B({ id: r(b) }, N, {
|
190
|
+
ref_key: "basedatepicker",
|
191
|
+
ref: D,
|
192
|
+
disabled: e.disabled,
|
193
|
+
"first-day-of-week": e.firstDayOfWeek,
|
194
|
+
max: e.max,
|
195
|
+
min: e.min,
|
196
|
+
"model-value": e.modelValue,
|
197
|
+
range: e.range,
|
198
|
+
readonly: e.readonly,
|
199
|
+
selectable: e.selectable
|
200
|
+
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
|
201
|
+
], 10, De)) : te("", !0)
|
202
|
+
]),
|
203
|
+
_: 1
|
204
|
+
}, 8, ["modelValue"]),
|
205
|
+
x(d("input", B({
|
206
|
+
id: r(b),
|
196
207
|
ref_key: "input",
|
197
|
-
ref:
|
198
|
-
"aria-describedby": `bdpi-description_${
|
208
|
+
ref: _,
|
209
|
+
"aria-describedby": `bdpi-description_${r(b)}`,
|
199
210
|
autocomplete: e.autocomplete,
|
200
211
|
autofocus: e.autofocus,
|
201
212
|
"data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
202
213
|
disabled: e.disabled,
|
203
|
-
inputmode:
|
214
|
+
inputmode: P.value,
|
204
215
|
name: e.name,
|
205
216
|
placeholder: e.placeholder,
|
206
217
|
readonly: e.readonly || e.range || !e.allowWriting,
|
207
218
|
required: e.required
|
208
|
-
},
|
219
|
+
}, j, {
|
209
220
|
size: "1",
|
210
221
|
type: "text",
|
211
|
-
value:
|
212
|
-
}), null, 16,
|
213
|
-
[
|
222
|
+
value: H.value
|
223
|
+
}), null, 16, Ce), [
|
224
|
+
[r(ye)]
|
214
225
|
]),
|
215
|
-
|
216
|
-
"aria-label":
|
226
|
+
d("button", {
|
227
|
+
"aria-label": U.value,
|
217
228
|
class: "bb-base-date-picker-input__calendar-btn",
|
218
|
-
disabled: e.disabled || e.readonly
|
229
|
+
disabled: e.disabled || e.readonly,
|
219
230
|
type: "button",
|
220
|
-
onClick:
|
221
|
-
}, a[
|
222
|
-
|
231
|
+
onClick: ae(q, ["stop"])
|
232
|
+
}, a[1] || (a[1] = [
|
233
|
+
d("svg", {
|
223
234
|
fill: "none",
|
224
235
|
viewBox: "0 0 16 16",
|
225
236
|
xmlns: "http://www.w3.org/2000/svg"
|
226
237
|
}, [
|
227
|
-
|
238
|
+
d("path", {
|
228
239
|
d: "M12.6667 2.66667H3.33333C2.59695 2.66667 2 3.26363 2 4.00001V13.3333C2 14.0697 2.59695 14.6667 3.33333 14.6667H12.6667C13.403 14.6667 14 14.0697 14 13.3333V4.00001C14 3.26363 13.403 2.66667 12.6667 2.66667Z",
|
229
240
|
stroke: "currentColor",
|
230
241
|
"stroke-linecap": "round",
|
231
242
|
"stroke-linejoin": "round"
|
232
243
|
}),
|
233
|
-
|
244
|
+
d("path", {
|
234
245
|
d: "M10.6667 1.33333V3.99999",
|
235
246
|
stroke: "currentColor",
|
236
247
|
"stroke-linecap": "round",
|
237
248
|
"stroke-linejoin": "round"
|
238
249
|
}),
|
239
|
-
|
250
|
+
d("path", {
|
240
251
|
d: "M5.33333 1.33333V3.99999",
|
241
252
|
stroke: "currentColor",
|
242
253
|
"stroke-linecap": "round",
|
243
254
|
"stroke-linejoin": "round"
|
244
255
|
}),
|
245
|
-
|
256
|
+
d("path", {
|
246
257
|
d: "M2 6.66667H14",
|
247
258
|
stroke: "currentColor",
|
248
259
|
"stroke-linecap": "round",
|
249
260
|
"stroke-linejoin": "round"
|
250
261
|
})
|
251
262
|
], -1)
|
252
|
-
]), 8,
|
253
|
-
|
254
|
-
id: `bdpi-description_${
|
263
|
+
]), 8, Ye),
|
264
|
+
d("span", {
|
265
|
+
id: `bdpi-description_${r(b)}`,
|
255
266
|
class: "bb-base-date-picker-input__accessible-description sr-only"
|
256
|
-
}, E(
|
267
|
+
}, E(r(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? r(u)("baseDatePickerInput.dateFormatRange") : r(u)("baseDatePickerInput.dateFormatSingle")), 9, we)
|
257
268
|
]),
|
258
269
|
_: 3
|
259
|
-
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
260
|
-
S.value ? (O(), B(Me, {
|
261
|
-
key: 0,
|
262
|
-
"base-class": "bb-base-date-picker-input",
|
263
|
-
offset: 4,
|
264
|
-
open: d.value,
|
265
|
-
"teleport-target": e.teleportTarget,
|
266
|
-
"transition-duration": 300,
|
267
|
-
wrapper: f.value
|
268
|
-
}, {
|
269
|
-
default: n(() => [
|
270
|
-
i("div", {
|
271
|
-
ref_key: "calendar",
|
272
|
-
ref: m,
|
273
|
-
class: $(["bb-base-date-picker-input__calendar", {
|
274
|
-
"bb-base-date-picker-input__calendar--shown": d.value
|
275
|
-
}]),
|
276
|
-
inert: !d.value
|
277
|
-
}, [
|
278
|
-
_(De, P({ id: l(k) }, J, {
|
279
|
-
ref_key: "basedatepicker",
|
280
|
-
ref: C,
|
281
|
-
disabled: e.disabled,
|
282
|
-
"first-day-of-week": e.firstDayOfWeek,
|
283
|
-
max: e.max,
|
284
|
-
min: e.min,
|
285
|
-
"model-value": e.modelValue,
|
286
|
-
range: e.range,
|
287
|
-
readonly: e.readonly,
|
288
|
-
selectable: e.selectable
|
289
|
-
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
|
290
|
-
], 10, $e)
|
291
|
-
]),
|
292
|
-
_: 1
|
293
|
-
}, 8, ["open", "teleport-target", "wrapper"])) : re("", !0)
|
270
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
294
271
|
]),
|
295
272
|
_: 3
|
296
273
|
}, 8, ["class"]));
|
297
274
|
}
|
298
275
|
});
|
299
276
|
export {
|
300
|
-
|
277
|
+
Xe as default
|
301
278
|
};
|
package/dist/index230.js
CHANGED
package/dist/index231.js
CHANGED
@@ -1,88 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useLocale as g } from "./index224.js";
|
3
|
-
const k = { class: "bb-cr-container__container" }, y = {
|
4
|
-
key: 0,
|
5
|
-
class: "bb-cr-container__loading-container"
|
6
|
-
}, $ = {
|
7
|
-
key: 1,
|
8
|
-
class: "bb-cr-container__no-data-container"
|
9
|
-
}, C = /* @__PURE__ */ h({
|
10
|
-
__name: "OptionsContainer",
|
11
|
-
props: {
|
12
|
-
direction: {},
|
13
|
-
hasErrors: { type: Boolean },
|
14
|
-
hideLabel: { type: Boolean },
|
15
|
-
loadingText: {},
|
16
|
-
loading: { type: Boolean },
|
17
|
-
noDataText: {},
|
18
|
-
options: {}
|
19
|
-
},
|
20
|
-
setup(f) {
|
21
|
-
const { t: i } = g();
|
22
|
-
return (a, T) => (s(), n("span", {
|
23
|
-
ref: "container",
|
24
|
-
class: r(["bb-cr-container", {
|
25
|
-
"bb-cr-container--errors": a.hasErrors,
|
26
|
-
"bb-cr-container--horizontal": a.direction === "horizontal",
|
27
|
-
"bb-cr-container--vertical": a.direction === "vertical"
|
28
|
-
}])
|
29
|
-
}, [
|
30
|
-
l("span", k, [
|
31
|
-
t(a.$slots, "prepend"),
|
32
|
-
!a.options.length && a.loading ? (s(), n("span", y, [
|
33
|
-
t(a.$slots, "loading", {}, () => [
|
34
|
-
o(d(a.loadingText || b(i)("common.loadingText")), 1)
|
35
|
-
])
|
36
|
-
])) : a.options.length ? p("", !0) : (s(), n("span", $, [
|
37
|
-
t(a.$slots, "no-data", {}, () => [
|
38
|
-
o(d(a.noDataText || b(i)("common.noDataText")), 1)
|
39
|
-
])
|
40
|
-
])),
|
41
|
-
(s(!0), n(m, null, u(a.options, (e, c) => (s(), n(m, {
|
42
|
-
key: (e == null ? void 0 : e.valueHash) || c
|
43
|
-
}, [
|
44
|
-
t(a.$slots, "option:prepend", {
|
45
|
-
id: e.valueHash,
|
46
|
-
checked: !!e.selected,
|
47
|
-
disabled: !!e.disabled,
|
48
|
-
item: e.item,
|
49
|
-
text: e.text
|
50
|
-
}),
|
51
|
-
l("label", {
|
52
|
-
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
53
|
-
}, [
|
54
|
-
t(a.$slots, "input", {
|
55
|
-
index: c,
|
56
|
-
option: e
|
57
|
-
}),
|
58
|
-
l("span", {
|
59
|
-
class: r({
|
60
|
-
"bb-cr-container-option__text": !0,
|
61
|
-
"sr-only": a.hideLabel
|
62
|
-
})
|
63
|
-
}, [
|
64
|
-
t(a.$slots, "label", {
|
65
|
-
checked: !!e.selected,
|
66
|
-
item: e.item,
|
67
|
-
text: e.text
|
68
|
-
}, () => [
|
69
|
-
o(d(e.text), 1)
|
70
|
-
])
|
71
|
-
], 2)
|
72
|
-
], 2),
|
73
|
-
t(a.$slots, "option:append", {
|
74
|
-
id: e.valueHash,
|
75
|
-
checked: !!e.selected,
|
76
|
-
disabled: !!e.disabled,
|
77
|
-
item: e.item,
|
78
|
-
text: e.text
|
79
|
-
})
|
80
|
-
], 64))), 128)),
|
81
|
-
t(a.$slots, "append")
|
82
|
-
])
|
83
|
-
], 2));
|
84
|
-
}
|
85
|
-
});
|
1
|
+
const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
|
86
2
|
export {
|
87
|
-
|
3
|
+
n as isEmpty
|
88
4
|
};
|
package/dist/index232.js
ADDED
package/dist/index233.js
CHANGED
@@ -1,31 +1,13 @@
|
|
1
|
-
import { ref as a,
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
t.value = r
|
7
|
-
else if (typeof r.value == "function") {
|
8
|
-
const i = ++e.value;
|
9
|
-
try {
|
10
|
-
const o = await r.value(...l);
|
11
|
-
if (i < e.value) {
|
12
|
-
e.value--;
|
13
|
-
return;
|
14
|
-
} else
|
15
|
-
t.value = o;
|
16
|
-
} catch (o) {
|
17
|
-
console.error(o);
|
18
|
-
}
|
19
|
-
e.value--;
|
1
|
+
import { ref as a, watch as c, toValue as u } from "vue";
|
2
|
+
const i = (e, { initialValue: o = !1, nextValue: r = !0 } = {}) => {
|
3
|
+
const t = a(o), n = c(
|
4
|
+
() => u(e),
|
5
|
+
(s) => {
|
6
|
+
s && (t.value = r, n());
|
20
7
|
}
|
21
|
-
|
22
|
-
return
|
23
|
-
getter: n,
|
24
|
-
debouncedGetter: c,
|
25
|
-
items: t,
|
26
|
-
loading: s(() => !!e.value)
|
27
|
-
};
|
8
|
+
);
|
9
|
+
return t;
|
28
10
|
};
|
29
11
|
export {
|
30
|
-
|
12
|
+
i as useUntil
|
31
13
|
};
|
package/dist/index234.js
CHANGED
@@ -1,19 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
import { MaskInput as r } from "./index257.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
16
19
|
};
|
17
20
|
export {
|
18
|
-
|
21
|
+
k as vMaska
|
19
22
|
};
|