bitboss-ui 2.0.172 → 2.0.174
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 +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +16 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +18 -4
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +16 -2
- package/dist/components/CommonPopover.vue.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index106.js +6 -6
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +9 -9
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +40 -39
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +35 -34
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index209.js +2 -10
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -3
- package/dist/index211.js +2 -13
- package/dist/index212.js +13 -34
- package/dist/index213.js +65 -12
- package/dist/index215.js +36 -0
- package/dist/index216.js +4 -2
- package/dist/index217.js +13 -4
- package/dist/index218.js +11 -2
- package/dist/index219.js +20 -2
- package/dist/index220.js +200 -41
- package/dist/index222.js +120 -7
- package/dist/index224.js +2 -5
- package/dist/index225.js +2 -9
- package/dist/index226.js +3 -5
- package/dist/index227.js +5 -5
- package/dist/index228.js +3 -3
- package/dist/index229.js +2 -2
- package/dist/index23.js +114 -125
- package/dist/index230.js +5 -5
- package/dist/index231.js +5 -2
- package/dist/index232.js +5 -2
- package/dist/index233.js +2 -11
- package/dist/index234.js +2 -20
- package/dist/index235.js +2 -105
- package/dist/{index241.js → index236.js} +3 -3
- package/dist/index237.js +17 -86
- package/dist/index238.js +108 -0
- package/dist/index240.js +100 -17
- package/dist/index242.js +86 -15
- package/dist/index244.js +28 -11
- package/dist/index246.js +15 -4
- package/dist/index247.js +12 -200
- package/dist/index248.js +43 -0
- package/dist/index249.js +6 -18
- package/dist/index25.js +5 -5
- package/dist/index250.js +7 -12
- package/dist/index251.js +11 -102
- package/dist/index252.js +179 -0
- package/dist/index253.js +5 -100
- package/dist/index254.js +7 -0
- package/dist/index255.js +6 -226
- package/dist/index256.js +250 -2
- package/dist/index257.js +50 -175
- package/dist/index258.js +44 -3
- package/dist/index259.js +5 -2
- package/dist/index260.js +60 -5
- package/dist/index261.js +18 -5
- package/dist/index262.js +12 -8
- package/dist/index263.js +216 -238
- package/dist/index264.js +3 -52
- package/dist/index265.js +6 -44
- package/dist/index266.js +16 -5
- package/dist/index267.js +10 -60
- package/dist/index268.js +2 -8
- package/dist/index269.js +3 -23
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -6
- package/dist/index271.js +8 -15
- package/dist/index272.js +23 -3
- package/dist/index273.js +1 -1
- package/dist/index275.js +5 -2
- package/dist/index276.js +1 -1
- package/dist/index277.js +2 -5
- package/dist/index278.js +4 -7
- package/dist/index279.js +8 -5
- package/dist/index280.js +3 -6
- package/dist/index282.js +7 -2
- package/dist/index283.js +5 -0
- package/dist/index284.js +2 -7
- package/dist/index285.js +1 -1
- package/dist/index286.js +3 -4
- package/dist/index287.js +7 -3
- package/dist/index288.js +11 -17
- package/dist/index289.js +3 -27
- package/dist/index29.js +2 -2
- package/dist/index290.js +27 -3
- package/dist/index291.js +276 -467
- package/dist/index292.js +2 -2
- package/dist/index293.js +125 -3
- package/dist/index294.js +2 -3
- package/dist/index295.js +13 -278
- package/dist/index296.js +2 -2
- package/dist/index297.js +12 -121
- package/dist/index298.js +2 -2
- package/dist/index299.js +11 -10
- package/dist/index301.js +15 -12
- package/dist/index303.js +5 -15
- package/dist/index304.js +3 -2
- package/dist/index305.js +3 -19
- package/dist/index306.js +17 -2
- package/dist/index307.js +3 -200
- package/dist/index308.js +470 -5
- package/dist/index309.js +2 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +200 -3
- package/dist/index311.js +19 -2
- package/dist/index312.js +2 -5
- package/dist/index313.js +23 -15
- package/dist/index315.js +2 -27
- package/dist/index316.js +2 -2
- package/dist/index317.js +1 -1
- package/dist/index318.js +1 -1
- package/dist/index319.js +21 -1
- package/dist/index321.js +1 -21
- package/dist/index322.js +7 -0
- package/dist/index323.js +701 -5
- package/dist/index324.js +352 -699
- package/dist/index325.js +58 -354
- package/dist/index326.js +5 -58
- package/dist/index328.js +8 -58
- package/dist/index329.js +6 -58
- package/dist/index33.js +7 -7
- package/dist/index330.js +7 -32
- package/dist/index331.js +128 -27
- package/dist/index332.js +371 -0
- package/dist/index333.js +32 -46
- package/dist/index334.js +28 -7
- package/dist/index336.js +6 -5
- package/dist/index337.js +19 -8
- package/dist/index338.js +227 -6
- package/dist/index339.js +45 -17
- package/dist/index340.js +6 -227
- package/dist/index341.js +57 -127
- package/dist/index342.js +56 -366
- package/dist/index343.js +1 -1
- package/dist/index345.js +1 -1
- package/dist/index346.js +123 -476
- package/dist/index347.js +429 -40
- package/dist/index348.js +121 -123
- package/dist/index349.js +469 -369
- package/dist/index35.js +4 -4
- package/dist/index350.js +43 -122
- package/dist/index37.js +19 -19
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- 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 +106 -112
- 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 +56 -56
- package/package.json +1 -1
- package/dist/index214.js +0 -68
- package/dist/index221.js +0 -8
- package/dist/index223.js +0 -17
- package/dist/index239.js +0 -31
- package/dist/index243.js +0 -5
- package/dist/index281.js +0 -13
- package/dist/index320.js +0 -4
- package/dist/index335.js +0 -10
package/dist/index23.js
CHANGED
@@ -1,29 +1,27 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { _config as
|
3
|
-
import o from "./
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import
|
18
|
-
import { vMaska as ye } from "./index234.js";
|
19
|
-
import ve from "./index21.js";
|
1
|
+
import { defineComponent as K, watchEffect as Q, ref as l, computed as k, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as i, createVNode as B, unref as r, createCommentVNode as X, withDirectives as x, createElementVNode as s, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
|
2
|
+
import { _config as te } from "./index4.js";
|
3
|
+
import o from "./index227.js";
|
4
|
+
import ae from "./index228.js";
|
5
|
+
import oe from "./index229.js";
|
6
|
+
import re from "./index230.js";
|
7
|
+
import ne from "./index231.js";
|
8
|
+
import le from "./index232.js";
|
9
|
+
import { identity as ie } from "./index233.js";
|
10
|
+
import { isEmpty as se } from "./index234.js";
|
11
|
+
import { last as de } from "./index235.js";
|
12
|
+
import { useId as ue } from "./index8.js";
|
13
|
+
import { useLocale as pe } from "./index217.js";
|
14
|
+
import { useMobile as ce } from "./index9.js";
|
15
|
+
import { useUntil as me } from "./index218.js";
|
16
|
+
import { vMaska as fe } from "./index219.js";
|
17
|
+
import be from "./index21.js";
|
20
18
|
/* empty css */
|
21
|
-
import
|
19
|
+
import ge from "./index213.js";
|
22
20
|
/* empty css */
|
23
|
-
import
|
24
|
-
import
|
21
|
+
import ke from "./index212.js";
|
22
|
+
import ye from "./index222.js";
|
25
23
|
/* empty css */
|
26
|
-
const
|
24
|
+
const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Me = ["aria-label", "disabled"], he = ["id"], ze = /* @__PURE__ */ K({
|
27
25
|
__name: "BaseDatePickerInput",
|
28
26
|
props: {
|
29
27
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -51,72 +49,63 @@ const De = ["inert"], Ce = ["id", "aria-describedby", "autocomplete", "autofocus
|
|
51
49
|
},
|
52
50
|
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
53
51
|
setup(I, { emit: $ }) {
|
54
|
-
const L = { it:
|
55
|
-
o.extend(
|
56
|
-
o.locale(L[
|
52
|
+
const L = { it: le, en: oe };
|
53
|
+
o.extend(ae), o.extend(re), o.extend(ne), Q(() => {
|
54
|
+
o.locale(L[te.locale]);
|
57
55
|
});
|
58
|
-
const t = I,
|
59
|
-
() => t.allowWriting === "not-mobile" &&
|
60
|
-
)
|
61
|
-
fe(
|
62
|
-
// @ts-expect-error wrong inferred type
|
63
|
-
m,
|
64
|
-
re(() => {
|
65
|
-
s.value && (m.value && m.value.$el.querySelector(
|
66
|
-
".bb-base-date-picker-input__calendar-btn"
|
67
|
-
).focus({ preventScroll: !0 }), V());
|
68
|
-
}, 100),
|
69
|
-
{ threshold: [0, 1] }
|
70
|
-
);
|
71
|
-
const F = y(() => ({
|
56
|
+
const t = I, d = $, { t: u } = pe(), v = l(null), y = l(null), O = l(null), _ = l(null), m = l(null), V = l(), f = t.id || `bdpi-${ue().id.value}`, { isMobile: P } = ce(), F = k(
|
57
|
+
() => t.allowWriting === "not-mobile" && P.value ? "none" : "numeric"
|
58
|
+
), j = k(() => ({
|
72
59
|
"bb-base-date-picker-input": !0,
|
73
|
-
"bb-base-date-picker-input--active":
|
60
|
+
"bb-base-date-picker-input--active": b.value,
|
74
61
|
"bb-base-date-picker-input--errors": t.hasErrors,
|
75
62
|
"bb-base-date-picker-input--loading": t.loading,
|
76
63
|
"bb-base-date-picker-input--readonly": t.readonly,
|
77
64
|
"bb-base-date-picker-input--disabled": t.disabled,
|
78
65
|
"bb-base-date-picker-input--compact": t.compact
|
79
|
-
})),
|
66
|
+
})), A = {
|
80
67
|
onInput: (e) => {
|
81
68
|
if (!t.range && e.target instanceof HTMLInputElement)
|
82
|
-
if (
|
69
|
+
if (m.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
83
70
|
const a = o(e.target.value, "DD/MM/YYYY");
|
84
|
-
|
85
|
-
} else e.target.value === "" &&
|
71
|
+
Z(a) ? (e.target.value = "", d("update:modelValue", null), d("error", "invalid_date_typed")) : d("update:modelValue", a.toISOString());
|
72
|
+
} else e.target.value === "" && d("update:modelValue", null);
|
86
73
|
}
|
87
|
-
},
|
88
|
-
|
74
|
+
}, b = l(!1), H = () => {
|
75
|
+
b.value || (d("active"), b.value = !0, document.addEventListener("focusin", g), document.addEventListener("click", g));
|
89
76
|
}, g = (e) => {
|
90
|
-
var a,
|
91
|
-
e.target instanceof HTMLElement && (a =
|
92
|
-
},
|
77
|
+
var a, p;
|
78
|
+
e.target instanceof HTMLElement && (a = y.value) != null && a.$el && !y.value.$el.contains(e.target) && !((p = v.value) != null && p.contains(e.target)) && (b.value = !1, d("inactive"), document.removeEventListener("focusin", g), document.removeEventListener("click", g));
|
79
|
+
}, M = (e) => {
|
93
80
|
if (e)
|
94
81
|
if (Array.isArray(e)) {
|
95
|
-
let a,
|
96
|
-
return e.length && (a = e[0]), e.length > 1 && (
|
82
|
+
let a, p;
|
83
|
+
return e.length && (a = e[0]), e.length > 1 && (p = de(e)), [a, p].filter(ie).map((J) => o(J).format("DD/MM/YYYY")).join(" - ");
|
97
84
|
} else
|
98
85
|
return o(e).format("DD/MM/YYYY");
|
99
86
|
return null;
|
100
|
-
},
|
101
|
-
|
87
|
+
}, W = k(() => m.value ? m.value : M(t.modelValue));
|
88
|
+
D(
|
102
89
|
() => t.modelValue,
|
103
90
|
(e) => {
|
104
|
-
|
91
|
+
m.value = M(e);
|
105
92
|
}
|
106
93
|
);
|
107
|
-
const
|
94
|
+
const n = l(!1), q = me(n), h = (e) => {
|
108
95
|
const a = e.target;
|
109
|
-
a && a instanceof HTMLDialogElement &&
|
110
|
-
},
|
111
|
-
t.disabled || t.readonly || (
|
112
|
-
}
|
113
|
-
|
114
|
-
|
115
|
-
|
96
|
+
a && a instanceof HTMLDialogElement && (n.value = !1);
|
97
|
+
}, R = async () => {
|
98
|
+
t.disabled || t.readonly || (n.value = !0);
|
99
|
+
};
|
100
|
+
D(n, (e) => {
|
101
|
+
var a;
|
102
|
+
e ? document.addEventListener("click", h, { passive: !0 }) : ((a = V.value) == null || a.resetStatus(), document.removeEventListener("click", h));
|
103
|
+
});
|
104
|
+
const T = l(!t.allowWriting || t.range), N = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, U = {
|
116
105
|
"onUpdate:modelValue": (e) => {
|
117
|
-
|
106
|
+
d("update:modelValue", e), N(e) && (T.value = !1, n.value = !1);
|
118
107
|
}
|
119
|
-
},
|
108
|
+
}, z = k(() => {
|
120
109
|
if (t.range) {
|
121
110
|
if (!t.modelValue || t.modelValue.length < 2)
|
122
111
|
return u("baseDatePickerInput.emptyRange").value;
|
@@ -128,67 +117,67 @@ const De = ["inert"], Ce = ["id", "aria-describedby", "autocomplete", "autofocus
|
|
128
117
|
return u("baseDatePickerInput.changeSelection", e).value;
|
129
118
|
}
|
130
119
|
return u("baseDatePickerInput.emptySelection").value;
|
131
|
-
}),
|
120
|
+
}), Z = (e) => {
|
132
121
|
let a = !0;
|
133
122
|
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;
|
134
|
-
},
|
123
|
+
}, G = () => {
|
135
124
|
let e = null;
|
136
|
-
t.range && (e = []),
|
125
|
+
t.range && (e = []), d("update:modelValue", e);
|
137
126
|
};
|
138
|
-
return (e, a) => (
|
127
|
+
return (e, a) => (Y(), C(ke, {
|
139
128
|
ref_key: "outerContainer",
|
140
|
-
ref:
|
141
|
-
class:
|
142
|
-
onFocusin:
|
129
|
+
ref: y,
|
130
|
+
class: w(j.value),
|
131
|
+
onFocusin: H
|
143
132
|
}, {
|
144
|
-
"prepend-outer":
|
145
|
-
|
133
|
+
"prepend-outer": i(() => [
|
134
|
+
c(e.$slots, "prepend-outer")
|
146
135
|
]),
|
147
|
-
"append-outer":
|
148
|
-
|
136
|
+
"append-outer": i(() => [
|
137
|
+
c(e.$slots, "append-outer")
|
149
138
|
]),
|
150
|
-
default:
|
151
|
-
|
139
|
+
default: i(() => [
|
140
|
+
B(ge, {
|
152
141
|
ref_key: "innerContainer",
|
153
|
-
ref:
|
142
|
+
ref: O,
|
154
143
|
"append:icon": t["append:icon"],
|
155
|
-
clearable: t.clearable && !r(
|
144
|
+
clearable: t.clearable && !r(se)(e.modelValue),
|
156
145
|
"prepend:icon": t["prepend:icon"],
|
157
|
-
"onClick:clear":
|
146
|
+
"onClick:clear": G
|
158
147
|
}, {
|
159
|
-
prepend:
|
160
|
-
|
148
|
+
prepend: i(() => [
|
149
|
+
c(e.$slots, "prepend")
|
161
150
|
]),
|
162
|
-
prefix:
|
163
|
-
|
151
|
+
prefix: i(() => [
|
152
|
+
c(e.$slots, "prefix")
|
164
153
|
]),
|
165
|
-
append:
|
166
|
-
|
154
|
+
append: i(() => [
|
155
|
+
c(e.$slots, "append")
|
167
156
|
]),
|
168
|
-
suffix:
|
169
|
-
|
157
|
+
suffix: i(() => [
|
158
|
+
c(e.$slots, "suffix")
|
170
159
|
]),
|
171
|
-
default:
|
172
|
-
|
173
|
-
|
174
|
-
|
160
|
+
default: i(() => [
|
161
|
+
r(q) ? (Y(), C(ye, {
|
162
|
+
key: 0,
|
163
|
+
modelValue: n.value,
|
164
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p),
|
175
165
|
block: !0,
|
176
166
|
dialog: "",
|
177
167
|
offset: 4
|
178
168
|
}, {
|
179
|
-
default:
|
180
|
-
|
181
|
-
key: 0,
|
169
|
+
default: i(() => [
|
170
|
+
s("div", {
|
182
171
|
ref_key: "calendar",
|
183
|
-
ref:
|
184
|
-
class:
|
185
|
-
"bb-base-date-picker-input__calendar--shown":
|
172
|
+
ref: v,
|
173
|
+
class: w(["bb-base-date-picker-input__calendar", {
|
174
|
+
"bb-base-date-picker-input__calendar--shown": n.value
|
186
175
|
}]),
|
187
|
-
inert: !
|
176
|
+
inert: !n.value
|
188
177
|
}, [
|
189
|
-
|
178
|
+
B(be, S({ id: r(f) }, U, {
|
190
179
|
ref_key: "basedatepicker",
|
191
|
-
ref:
|
180
|
+
ref: V,
|
192
181
|
disabled: e.disabled,
|
193
182
|
"first-day-of-week": e.firstDayOfWeek,
|
194
183
|
max: e.max,
|
@@ -198,73 +187,73 @@ const De = ["inert"], Ce = ["id", "aria-describedby", "autocomplete", "autofocus
|
|
198
187
|
readonly: e.readonly,
|
199
188
|
selectable: e.selectable
|
200
189
|
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
|
201
|
-
], 10,
|
190
|
+
], 10, ve)
|
202
191
|
]),
|
203
192
|
_: 1
|
204
|
-
}, 8, ["modelValue"]),
|
205
|
-
x(
|
206
|
-
id: r(
|
193
|
+
}, 8, ["modelValue"])) : X("", !0),
|
194
|
+
x(s("input", S({
|
195
|
+
id: r(f),
|
207
196
|
ref_key: "input",
|
208
197
|
ref: _,
|
209
|
-
"aria-describedby": `bdpi-description_${r(
|
198
|
+
"aria-describedby": `bdpi-description_${r(f)}`,
|
210
199
|
autocomplete: e.autocomplete,
|
211
200
|
autofocus: e.autofocus,
|
212
201
|
"data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
213
202
|
disabled: e.disabled,
|
214
|
-
inputmode:
|
203
|
+
inputmode: F.value,
|
215
204
|
name: e.name,
|
216
205
|
placeholder: e.placeholder,
|
217
206
|
readonly: e.readonly || e.range || !e.allowWriting,
|
218
207
|
required: e.required
|
219
|
-
},
|
208
|
+
}, A, {
|
220
209
|
size: "1",
|
221
210
|
type: "text",
|
222
|
-
value:
|
223
|
-
}), null, 16,
|
224
|
-
[r(
|
211
|
+
value: W.value
|
212
|
+
}), null, 16, Ve), [
|
213
|
+
[r(fe)]
|
225
214
|
]),
|
226
|
-
|
227
|
-
"aria-label":
|
215
|
+
s("button", {
|
216
|
+
"aria-label": z.value,
|
228
217
|
class: "bb-base-date-picker-input__calendar-btn",
|
229
218
|
disabled: e.disabled || e.readonly,
|
230
219
|
type: "button",
|
231
|
-
onClick:
|
220
|
+
onClick: ee(R, ["stop"])
|
232
221
|
}, a[1] || (a[1] = [
|
233
|
-
|
222
|
+
s("svg", {
|
234
223
|
fill: "none",
|
235
224
|
viewBox: "0 0 16 16",
|
236
225
|
xmlns: "http://www.w3.org/2000/svg"
|
237
226
|
}, [
|
238
|
-
|
227
|
+
s("path", {
|
239
228
|
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",
|
240
229
|
stroke: "currentColor",
|
241
230
|
"stroke-linecap": "round",
|
242
231
|
"stroke-linejoin": "round"
|
243
232
|
}),
|
244
|
-
|
233
|
+
s("path", {
|
245
234
|
d: "M10.6667 1.33333V3.99999",
|
246
235
|
stroke: "currentColor",
|
247
236
|
"stroke-linecap": "round",
|
248
237
|
"stroke-linejoin": "round"
|
249
238
|
}),
|
250
|
-
|
239
|
+
s("path", {
|
251
240
|
d: "M5.33333 1.33333V3.99999",
|
252
241
|
stroke: "currentColor",
|
253
242
|
"stroke-linecap": "round",
|
254
243
|
"stroke-linejoin": "round"
|
255
244
|
}),
|
256
|
-
|
245
|
+
s("path", {
|
257
246
|
d: "M2 6.66667H14",
|
258
247
|
stroke: "currentColor",
|
259
248
|
"stroke-linecap": "round",
|
260
249
|
"stroke-linejoin": "round"
|
261
250
|
})
|
262
251
|
], -1)
|
263
|
-
]), 8,
|
264
|
-
|
265
|
-
id: `bdpi-description_${r(
|
252
|
+
]), 8, Me),
|
253
|
+
s("span", {
|
254
|
+
id: `bdpi-description_${r(f)}`,
|
266
255
|
class: "bb-base-date-picker-input__accessible-description sr-only"
|
267
|
-
}, E(r(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? r(u)("baseDatePickerInput.dateFormatRange") : r(u)("baseDatePickerInput.dateFormatSingle")), 9,
|
256
|
+
}, E(r(u)("baseDatePickerInput.dateFormat")) + " " + E(t.range ? r(u)("baseDatePickerInput.dateFormatRange") : r(u)("baseDatePickerInput.dateFormatSingle")), 9, he)
|
268
257
|
]),
|
269
258
|
_: 3
|
270
259
|
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
@@ -274,5 +263,5 @@ const De = ["inert"], Ce = ["id", "aria-describedby", "autocomplete", "autofocus
|
|
274
263
|
}
|
275
264
|
});
|
276
265
|
export {
|
277
|
-
|
266
|
+
ze as default
|
278
267
|
};
|
package/dist/index230.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { getDefaultExportFromCjs as r } from "./
|
2
|
-
import { __require as
|
3
|
-
var
|
4
|
-
const
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as e } from "./index297.js";
|
3
|
+
var t = e();
|
4
|
+
const m = /* @__PURE__ */ r(t);
|
5
5
|
export {
|
6
|
-
|
6
|
+
m as default
|
7
7
|
};
|
package/dist/index231.js
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as e } from "./index299.js";
|
3
|
+
var o = e();
|
4
|
+
const m = /* @__PURE__ */ r(o);
|
2
5
|
export {
|
3
|
-
|
6
|
+
m as default
|
4
7
|
};
|
package/dist/index232.js
CHANGED
package/dist/index233.js
CHANGED
@@ -1,13 +1,4 @@
|
|
1
|
-
|
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());
|
7
|
-
}
|
8
|
-
);
|
9
|
-
return t;
|
10
|
-
};
|
1
|
+
const e = (t) => t;
|
11
2
|
export {
|
12
|
-
|
3
|
+
e as identity
|
13
4
|
};
|
package/dist/index234.js
CHANGED
@@ -1,22 +1,4 @@
|
|
1
|
-
|
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));
|
19
|
-
};
|
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;
|
20
2
|
export {
|
21
|
-
|
3
|
+
n as isEmpty
|
22
4
|
};
|
package/dist/index235.js
CHANGED
@@ -1,107 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useFloating as V, arrow as S } from "./index341.js";
|
3
|
-
import { flip as z, offset as E, shift as F, autoUpdate as N } from "./index342.js";
|
4
|
-
const U = { class: "bb-common-popover__bubble" }, I = /* @__PURE__ */ C({
|
5
|
-
__name: "CommonPopover",
|
6
|
-
props: /* @__PURE__ */ M({
|
7
|
-
arrowPadding: {},
|
8
|
-
offset: {},
|
9
|
-
block: { type: Boolean },
|
10
|
-
padding: {},
|
11
|
-
placement: {},
|
12
|
-
transitionDuration: { default: 250 },
|
13
|
-
containerAttributes: {},
|
14
|
-
dialog: { type: Boolean },
|
15
|
-
tag: { default: "span" }
|
16
|
-
}, {
|
17
|
-
modelValue: { type: Boolean, default: !1 },
|
18
|
-
modelModifiers: {}
|
19
|
-
}),
|
20
|
-
emits: ["update:modelValue"],
|
21
|
-
setup(i) {
|
22
|
-
const o = i, t = P(i, "modelValue"), p = n(), a = n(), d = n(), { floatingStyles: k, placement: _, middlewareData: r } = V(
|
23
|
-
p,
|
24
|
-
a,
|
25
|
-
{
|
26
|
-
placement: o.placement,
|
27
|
-
whileElementsMounted: N,
|
28
|
-
middleware: [
|
29
|
-
z(),
|
30
|
-
E(o.offset),
|
31
|
-
F({ padding: o.padding }),
|
32
|
-
S({
|
33
|
-
element: d,
|
34
|
-
padding: o.arrowPadding
|
35
|
-
})
|
36
|
-
],
|
37
|
-
strategy: "fixed"
|
38
|
-
}
|
39
|
-
);
|
40
|
-
B(t, (e) => {
|
41
|
-
e ? a.value && (o.dialog ? a.value.showModal() : a.value.showPopover()) : a.value && (o.dialog ? a.value.close() : a.value.hidePopover());
|
42
|
-
});
|
43
|
-
const $ = x(() => {
|
44
|
-
if (r.value.arrow) {
|
45
|
-
const { x: e, y: l } = r.value.arrow;
|
46
|
-
return {
|
47
|
-
style: {
|
48
|
-
left: `${e}px`,
|
49
|
-
top: `${l}px`
|
50
|
-
}
|
51
|
-
};
|
52
|
-
}
|
53
|
-
});
|
54
|
-
return (e, l) => (c(), b(v(e.dialog ? "div" : e.tag), {
|
55
|
-
ref_key: "wrapper",
|
56
|
-
ref: p,
|
57
|
-
class: D(["bb-common-popover", {
|
58
|
-
"bb-common-popover--open": t.value,
|
59
|
-
"bb-common-popover--block": o.block,
|
60
|
-
[`bb-common-popover--${s(_)}`]: !0
|
61
|
-
}]),
|
62
|
-
style: A({
|
63
|
-
"--transition-duration": `${o.transitionDuration}ms`
|
64
|
-
})
|
65
|
-
}, {
|
66
|
-
default: g(() => {
|
67
|
-
var m, u, f;
|
68
|
-
return [
|
69
|
-
w(e.$slots, "activator"),
|
70
|
-
(c(), b(v(e.dialog ? "dialog" : e.tag), y({
|
71
|
-
ref_key: "content",
|
72
|
-
ref: a,
|
73
|
-
class: ["bb-common-popover__bubble-container", {
|
74
|
-
"bb-common-popover__bubble-container--open": t.value
|
75
|
-
}],
|
76
|
-
popover: "manual",
|
77
|
-
style: {
|
78
|
-
...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
|
79
|
-
...s(k),
|
80
|
-
"--arrow-offset-x": Math.round(((f = (u = s(r)) == null ? void 0 : u.arrow) == null ? void 0 : f.x) ?? 0) + "px",
|
81
|
-
"--page-padding": `${e.padding}px`
|
82
|
-
},
|
83
|
-
tabindex: t.value ? void 0 : -1
|
84
|
-
}, e.containerAttributes, {
|
85
|
-
onClose: l[0] || (l[0] = (j) => t.value = !1)
|
86
|
-
}), {
|
87
|
-
default: g(() => [
|
88
|
-
h("span", y({
|
89
|
-
ref_key: "bubblearrow",
|
90
|
-
ref: d,
|
91
|
-
class: "bb-common-popover__arrow"
|
92
|
-
}, $.value), null, 16),
|
93
|
-
h("span", U, [
|
94
|
-
w(e.$slots, "default")
|
95
|
-
])
|
96
|
-
]),
|
97
|
-
_: 3
|
98
|
-
}, 16, ["class", "style", "tabindex"]))
|
99
|
-
];
|
100
|
-
}),
|
101
|
-
_: 3
|
102
|
-
}, 8, ["class", "style"]));
|
103
|
-
}
|
104
|
-
});
|
1
|
+
const e = (t) => t[t.length - 1];
|
105
2
|
export {
|
106
|
-
|
3
|
+
e as last
|
107
4
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { computed as l, unref as o } from "vue";
|
2
|
-
import { useItemText as x } from "./
|
2
|
+
import { useItemText as x } from "./index306.js";
|
3
3
|
import { useItemValue as w } from "./index273.js";
|
4
|
-
import { hash as y } from "./
|
5
|
-
import { useLogger as D } from "./
|
4
|
+
import { hash as y } from "./index226.js";
|
5
|
+
import { useLogger as D } from "./index255.js";
|
6
6
|
const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
|
7
7
|
items: u,
|
8
8
|
disabled: c,
|