bitboss-ui 2.0.116 → 2.0.117
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 +4 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +17 -3
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +17 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
- package/dist/components/ClearableButton.vue.d.ts +2 -0
- package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
- package/dist/index100.js +8 -8
- package/dist/index101.js +37 -35
- package/dist/index111.js +12 -12
- package/dist/index113.js +6 -4
- package/dist/index115.js +17 -15
- package/dist/index117.js +14 -12
- package/dist/index119.js +2 -2
- package/dist/index121.js +59 -61
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +36 -31
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index205.js +115 -2
- package/dist/index206.js +2 -3
- package/dist/index207.js +41 -29
- package/dist/index209.js +1 -1
- package/dist/index21.js +16 -16
- package/dist/index210.js +20 -2
- package/dist/index211.js +4 -4
- package/dist/index212.js +13 -2
- package/dist/index213.js +3 -86
- package/dist/index214.js +128 -0
- package/dist/index215.js +5 -25
- package/dist/index216.js +123 -15
- package/dist/index217.js +15 -50
- package/dist/index218.js +16 -15
- package/dist/index219.js +19 -3
- package/dist/index220.js +15 -12
- package/dist/index221.js +2 -16
- package/dist/index222.js +2 -126
- package/dist/index223.js +41 -5
- package/dist/index224.js +6 -125
- package/dist/index225.js +15 -16
- package/dist/index226.js +5 -16
- package/dist/index227.js +2 -19
- package/dist/index228.js +368 -14
- package/dist/index229.js +86 -2
- package/dist/index23.js +115 -110
- package/dist/index231.js +24 -40
- package/dist/index232.js +17 -13
- package/dist/index233.js +49 -18
- package/dist/index234.js +15 -6
- package/dist/index235.js +3 -15
- package/dist/index236.js +12 -5
- package/dist/index237.js +15 -368
- package/dist/index238.js +2 -19
- package/dist/index239.js +4 -27
- package/dist/index240.js +2 -8
- package/dist/index241.js +17 -248
- package/dist/index242.js +26 -51
- package/dist/index243.js +6 -42
- package/dist/index244.js +250 -5
- package/dist/index245.js +43 -51
- package/dist/index246.js +44 -3
- package/dist/index247.js +5 -7
- package/dist/index248.js +60 -4
- package/dist/index249.js +3 -115
- package/dist/index25.js +7 -7
- package/dist/index250.js +7 -2
- package/dist/index251.js +2 -2
- package/dist/index252.js +2 -2
- package/dist/index253.js +2 -18
- package/dist/index254.js +17 -105
- package/dist/index255.js +108 -0
- package/dist/{index256.js → index257.js} +2 -2
- package/dist/index259.js +11 -9
- package/dist/index260.js +9 -2
- package/dist/index261.js +2 -8
- package/dist/index262.js +6 -23
- package/dist/index263.js +15 -89
- package/dist/index264.js +11 -0
- package/dist/index265.js +23 -6
- package/dist/index266.js +89 -15
- package/dist/index268.js +9 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -7
- package/dist/index272.js +7 -3
- package/dist/index273.js +174 -15
- package/dist/index274.js +7 -9
- package/dist/index275.js +10 -27
- package/dist/index285.js +1 -1
- package/dist/index286.js +2 -176
- package/dist/index287.js +21 -1
- package/dist/index289.js +5 -0
- package/dist/index29.js +49 -41
- package/dist/index290.js +17 -7
- package/dist/index291.js +9 -11
- package/dist/index292.js +28 -2
- package/dist/index293.js +4 -2
- package/dist/index294.js +436 -2
- package/dist/index295.js +127 -2
- package/dist/index296.js +200 -2
- package/dist/index297.js +2 -2
- package/dist/index298.js +2 -22
- package/dist/index299.js +4 -0
- package/dist/index300.js +2 -9
- package/dist/index301.js +2 -200
- package/dist/index302.js +2 -436
- package/dist/index303.js +21 -126
- package/dist/index306.js +89 -3
- package/dist/index307.js +1 -1
- package/dist/index308.js +3 -214
- package/dist/index309.js +214 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -3
- package/dist/index311.js +3 -67
- package/dist/index312.js +3 -5
- package/dist/index313.js +58 -3
- package/dist/index314.js +5 -3
- package/dist/index315.js +65 -56
- package/dist/index316.js +6 -32
- package/dist/index317.js +18 -4
- package/dist/index318.js +3 -8
- package/dist/index319.js +32 -3
- package/dist/index320.js +25 -6
- package/dist/index321.js +52 -18
- package/dist/index322.js +28 -28
- package/dist/index323.js +5 -53
- package/dist/index324.js +7 -6
- package/dist/index325.js +6 -46
- package/dist/index326.js +4 -2
- package/dist/index327.js +47 -480
- package/dist/index328.js +4 -0
- package/dist/index33.js +8 -8
- package/dist/index331.js +480 -2
- package/dist/{index329.js → index332.js} +1 -1
- package/dist/index334.js +4 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +148 -138
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +92 -85
- package/dist/index47.js +40 -36
- package/dist/index49.js +38 -34
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +11 -10
- package/dist/index67.js +14 -12
- package/dist/index71.js +5 -3
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +11 -9
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +5 -5
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index230.js +0 -4
- package/dist/index258.js +0 -14
- package/dist/index271.js +0 -6
- package/dist/index288.js +0 -24
- package/dist/index304.js +0 -91
- /package/dist/{index267.js → index269.js} +0 -0
- /package/dist/{index330.js → index333.js} +0 -0
package/dist/index23.js
CHANGED
@@ -1,37 +1,39 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useFloating as ce } from "./
|
3
|
-
import
|
4
|
-
import pe from "./
|
5
|
-
import me from "./
|
6
|
-
import fe from "./
|
7
|
-
import be from "./
|
8
|
-
import ve from "./
|
9
|
-
import { identity as
|
10
|
-
import { last as
|
11
|
-
import { useFocusTrap as ke } from "./
|
1
|
+
import { defineComponent as oe, watchEffect as ne, ref as r, computed as v, watch as le, openBlock as D, createBlock as V, normalizeClass as $, withCtx as n, renderSlot as p, createVNode as E, unref as l, withDirectives as ie, createElementVNode as s, mergeProps as P, withModifiers as se, toDisplayString as _, normalizeStyle as ue, KeepAlive as de, createCommentVNode as A } from "vue";
|
2
|
+
import { useFloating as ce } from "./index214.js";
|
3
|
+
import o from "./index215.js";
|
4
|
+
import pe from "./index216.js";
|
5
|
+
import me from "./index217.js";
|
6
|
+
import fe from "./index218.js";
|
7
|
+
import be from "./index219.js";
|
8
|
+
import ve from "./index220.js";
|
9
|
+
import { identity as ye } from "./index221.js";
|
10
|
+
import { last as ge } from "./index222.js";
|
11
|
+
import { useFocusTrap as ke } from "./index223.js";
|
12
12
|
import { useId as he } from "./index8.js";
|
13
13
|
import { useIntersectionObserver as Me } from "./index132.js";
|
14
|
-
import { useLocale as De } from "./
|
15
|
-
import { useMobile as
|
16
|
-
import { vMaska as
|
17
|
-
import { wait as
|
18
|
-
import { waitFor as
|
14
|
+
import { useLocale as De } from "./index212.js";
|
15
|
+
import { useMobile as Ve } from "./index9.js";
|
16
|
+
import { vMaska as we } from "./index210.js";
|
17
|
+
import { wait as Ce } from "./index130.js";
|
18
|
+
import { waitFor as Ye } from "./index224.js";
|
19
19
|
import Se from "./index21.js";
|
20
20
|
/* empty css */
|
21
|
-
import
|
22
|
-
import
|
21
|
+
import Be from "./index225.js";
|
22
|
+
import Ie from "./index207.js";
|
23
23
|
/* empty css */
|
24
24
|
import Oe from "./index209.js";
|
25
|
-
import $e from "./
|
26
|
-
import { _config as
|
27
|
-
import {
|
28
|
-
|
25
|
+
import $e from "./index226.js";
|
26
|
+
import { _config as Ee } from "./index4.js";
|
27
|
+
import { isEmpty as Pe } from "./index227.js";
|
28
|
+
import { autoUpdate as _e, flip as Ae, offset as Fe, shift as Le, hide as je } from "./index228.js";
|
29
|
+
const qe = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], We = ["aria-label", "disabled"], He = ["id"], vt = /* @__PURE__ */ oe({
|
29
30
|
__name: "BaseDatePickerInput",
|
30
31
|
props: {
|
31
32
|
allowWriting: { type: [Boolean, String], default: !0 },
|
32
33
|
"append:icon": {},
|
33
34
|
autocomplete: { default: "off" },
|
34
35
|
autofocus: {},
|
36
|
+
clearable: { type: Boolean },
|
35
37
|
compact: { type: Boolean },
|
36
38
|
disabled: { type: Boolean },
|
37
39
|
firstDayOfWeek: {},
|
@@ -51,76 +53,77 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
51
53
|
teleportTarget: {}
|
52
54
|
},
|
53
55
|
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
54
|
-
setup(
|
55
|
-
const
|
56
|
-
|
57
|
-
|
56
|
+
setup(F, { emit: L }) {
|
57
|
+
const j = { it: be, en: ve };
|
58
|
+
o.extend(pe), o.extend(me), o.extend(fe), ne(() => {
|
59
|
+
o.locale(j[Ee.locale]);
|
58
60
|
});
|
59
|
-
const t =
|
60
|
-
() => t.allowWriting === "not-mobile" &&
|
61
|
-
), C =
|
61
|
+
const t = F, u = L, { t: d } = De(), c = r(null), w = r(null), m = r(null), q = r(null), y = r(null), S = r(), g = t.id || `bdpi-${he().id.value}`, { isMobile: W } = Ve(), H = v(
|
62
|
+
() => t.allowWriting === "not-mobile" && W.value ? "none" : "numeric"
|
63
|
+
), C = r(!0);
|
62
64
|
Me(
|
65
|
+
// @ts-expect-error wrong inferred type
|
63
66
|
m,
|
64
67
|
([{ intersectionRatio: e }]) => {
|
65
|
-
e === 1 ? C.value = !0 : (C.value = !1, f.value && (
|
68
|
+
e === 1 ? C.value = !0 : (C.value = !1, f.value && (O(), m.value && m.value.$el.querySelector(
|
66
69
|
".bb-base-date-picker-input__calendar-btn"
|
67
|
-
).focus(),
|
70
|
+
).focus(), M()));
|
68
71
|
},
|
69
72
|
{ threshold: [0, 1] }
|
70
73
|
);
|
71
|
-
const
|
74
|
+
const T = v(() => ({
|
72
75
|
"bb-base-date-picker-input": !0,
|
73
|
-
"bb-base-date-picker-input--active":
|
76
|
+
"bb-base-date-picker-input--active": k.value,
|
74
77
|
"bb-base-date-picker-input--errors": t.hasErrors,
|
75
78
|
"bb-base-date-picker-input--loading": t.loading,
|
76
79
|
"bb-base-date-picker-input--readonly": t.readonly,
|
77
80
|
"bb-base-date-picker-input--disabled": t.disabled,
|
78
81
|
"bb-base-date-picker-input--compact": t.compact
|
79
|
-
})),
|
82
|
+
})), R = {
|
80
83
|
onInput: (e) => {
|
81
84
|
if (!t.range && e.target instanceof HTMLInputElement)
|
82
85
|
if (y.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
83
|
-
const a =
|
84
|
-
|
86
|
+
const a = o(e.target.value, "DD/MM/YYYY");
|
87
|
+
te(a) ? (e.target.value = "", u("update:modelValue", null), u("error", "invalid_date_typed")) : u("update:modelValue", a.toISOString());
|
85
88
|
} else e.target.value === "" && u("update:modelValue", null);
|
86
89
|
}
|
87
|
-
},
|
88
|
-
|
89
|
-
},
|
90
|
-
var a,
|
91
|
-
b.value || e.target instanceof HTMLElement && (a =
|
90
|
+
}, k = r(!1), z = () => {
|
91
|
+
k.value || (u("active"), k.value = !0, document.addEventListener("focusin", h), document.addEventListener("click", h));
|
92
|
+
}, h = (e) => {
|
93
|
+
var a, i;
|
94
|
+
b.value || e.target instanceof HTMLElement && (a = w.value) != null && a.$el && !w.value.$el.contains(e.target) && !((i = c.value) != null && i.contains(e.target)) && (k.value = !1, u("inactive"), document.removeEventListener("focusin", h), document.removeEventListener("click", h));
|
92
95
|
}, B = (e) => {
|
93
96
|
if (e)
|
94
97
|
if (Array.isArray(e)) {
|
95
|
-
let a,
|
96
|
-
return e.length && (a = e[0]), e.length > 1 && (
|
98
|
+
let a, i;
|
99
|
+
return e.length && (a = e[0]), e.length > 1 && (i = ge(e)), [a, i].filter(ye).map((re) => o(re).format("DD/MM/YYYY")).join(" - ");
|
97
100
|
} else
|
98
|
-
return
|
101
|
+
return o(e).format("DD/MM/YYYY");
|
99
102
|
return null;
|
100
|
-
},
|
103
|
+
}, N = v(() => y.value ? y.value : B(t.modelValue));
|
101
104
|
le(
|
102
105
|
() => t.modelValue,
|
103
106
|
(e) => {
|
104
107
|
y.value = B(e);
|
105
108
|
}
|
106
109
|
);
|
107
|
-
const { floatingStyles:
|
110
|
+
const { floatingStyles: U, placement: K } = ce(m, c, {
|
108
111
|
placement: "bottom",
|
109
|
-
whileElementsMounted:
|
110
|
-
middleware: [
|
111
|
-
}),
|
112
|
+
whileElementsMounted: _e,
|
113
|
+
middleware: [Ae(), Fe(5), Le({ padding: 6 }), je()]
|
114
|
+
}), Z = v(() => {
|
112
115
|
const e = {
|
113
|
-
...
|
116
|
+
...U.value
|
114
117
|
};
|
115
118
|
return c.value, e;
|
116
|
-
}), f =
|
119
|
+
}), f = r(!1), G = async () => {
|
117
120
|
f.value = !0;
|
118
|
-
},
|
121
|
+
}, M = async () => {
|
119
122
|
var e;
|
120
123
|
f.value = !1, (e = S.value) == null || e.resetStatus();
|
121
|
-
},
|
122
|
-
b.value || (
|
123
|
-
}, b =
|
124
|
+
}, I = r(!1), J = async () => {
|
125
|
+
b.value || (I.value = !0, await Ye(() => !!c.value), await G(), Q());
|
126
|
+
}, b = r(!1), { activate: Q, deactivate: O } = ke(c, {
|
124
127
|
onActivate: () => b.value = !0,
|
125
128
|
// On post activation focus on current date
|
126
129
|
onPostActivate: () => {
|
@@ -130,44 +133,45 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
130
133
|
)) == null || e.focus();
|
131
134
|
},
|
132
135
|
onPostDeactivate: async () => {
|
133
|
-
await
|
136
|
+
await Ce(200), b.value = !1;
|
134
137
|
},
|
135
138
|
/* On esc deactivate the trap, return focus and then close the modal */
|
136
|
-
escapeDeactivates: () => (
|
137
|
-
clickOutsideDeactivates: () => (
|
139
|
+
escapeDeactivates: () => (Y.value = !1, M(), !0),
|
140
|
+
clickOutsideDeactivates: () => (Y.value = !1, M(), !0),
|
138
141
|
allowOutsideClick: !0,
|
139
142
|
preventScroll: !0
|
140
|
-
}),
|
141
|
-
u("focus", e), v.value && $(), v.value = !t.allowWriting || t.allowWriting === "not-mobile" && I.value || t.range;
|
142
|
-
}, x = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, ee = {
|
143
|
+
}), Y = r(!t.allowWriting || t.range), X = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, x = {
|
143
144
|
"onUpdate:modelValue": (e) => {
|
144
|
-
u("update:modelValue", e),
|
145
|
+
u("update:modelValue", e), X(e) && (Y.value = !1, O({
|
145
146
|
onPostDeactivate: () => {
|
146
|
-
b.value = !1,
|
147
|
+
b.value = !1, M();
|
147
148
|
}
|
148
149
|
}));
|
149
150
|
}
|
150
|
-
},
|
151
|
+
}, ee = v(() => {
|
151
152
|
if (t.range) {
|
152
153
|
if (!t.modelValue || t.modelValue.length < 2)
|
153
154
|
return d("baseDatePickerInput.emptyRange").value;
|
154
|
-
const e =
|
155
|
+
const e = o(t.modelValue[0]).format("D MMMM YYYY"), a = o(t.modelValue[1]).format("D MMMM YYYY");
|
155
156
|
if (t.range && t.modelValue.length === 2)
|
156
157
|
return d("baseDatePickerInput.changeSelectionRange", e, a).value;
|
157
158
|
} else if (typeof t.modelValue == "string") {
|
158
|
-
const e =
|
159
|
+
const e = o(t.modelValue).format("D MMMM YYYY");
|
159
160
|
return d("baseDatePickerInput.changeSelection", e).value;
|
160
161
|
}
|
161
162
|
return d("baseDatePickerInput.emptySelection").value;
|
162
|
-
}),
|
163
|
+
}), te = (e) => {
|
163
164
|
let a = !0;
|
164
|
-
return t.min && a && (a = e.isSameOrAfter(
|
165
|
+
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;
|
166
|
+
}, ae = () => {
|
167
|
+
let e = null;
|
168
|
+
t.range && (e = []), u("update:modelValue", e);
|
165
169
|
};
|
166
|
-
return (e, a) => (
|
170
|
+
return (e, a) => (D(), V(Oe, {
|
167
171
|
ref_key: "outerContainer",
|
168
|
-
ref:
|
169
|
-
class:
|
170
|
-
onFocusin:
|
172
|
+
ref: w,
|
173
|
+
class: $(T.value),
|
174
|
+
onFocusin: z
|
171
175
|
}, {
|
172
176
|
"prepend-outer": n(() => [
|
173
177
|
p(e.$slots, "prepend-outer")
|
@@ -176,11 +180,13 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
176
180
|
p(e.$slots, "append-outer")
|
177
181
|
]),
|
178
182
|
default: n(() => [
|
179
|
-
E(
|
183
|
+
E(Ie, {
|
180
184
|
ref_key: "innerContainer",
|
181
185
|
ref: m,
|
182
186
|
"append:icon": t["append:icon"],
|
183
|
-
|
187
|
+
clearable: t.clearable && !l(Pe)(e.modelValue),
|
188
|
+
"prepend:icon": t["prepend:icon"],
|
189
|
+
"onClick:clear": ae
|
184
190
|
}, {
|
185
191
|
prepend: n(() => [
|
186
192
|
p(e.$slots, "prepend")
|
@@ -195,98 +201,97 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
195
201
|
p(e.$slots, "suffix")
|
196
202
|
]),
|
197
203
|
default: n(() => [
|
198
|
-
ie(
|
199
|
-
id:
|
204
|
+
ie(s("input", P({
|
205
|
+
id: l(g),
|
200
206
|
ref_key: "input",
|
201
|
-
ref:
|
202
|
-
"aria-describedby": `bdpi-description_${
|
207
|
+
ref: q,
|
208
|
+
"aria-describedby": `bdpi-description_${l(g)}`,
|
203
209
|
autocomplete: e.autocomplete,
|
204
210
|
autofocus: e.autofocus,
|
205
211
|
"data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
206
212
|
disabled: e.disabled,
|
207
|
-
inputmode:
|
213
|
+
inputmode: H.value,
|
208
214
|
name: e.name,
|
209
215
|
placeholder: e.placeholder,
|
210
216
|
readonly: e.readonly || e.range || !e.allowWriting,
|
211
217
|
required: e.required
|
212
|
-
},
|
218
|
+
}, R, {
|
213
219
|
size: "1",
|
214
220
|
type: "text",
|
215
|
-
value:
|
216
|
-
|
217
|
-
|
218
|
-
[s(Ve)]
|
221
|
+
value: N.value
|
222
|
+
}), null, 16, qe), [
|
223
|
+
[l(we)]
|
219
224
|
]),
|
220
|
-
|
221
|
-
"aria-label":
|
225
|
+
s("button", {
|
226
|
+
"aria-label": ee.value,
|
222
227
|
class: "bb-base-date-picker-input__calendar-btn",
|
223
228
|
disabled: e.disabled || e.readonly || !C.value,
|
224
229
|
type: "button",
|
225
|
-
onClick: se(
|
230
|
+
onClick: se(J, ["stop"])
|
226
231
|
}, a[0] || (a[0] = [
|
227
|
-
|
232
|
+
s("svg", {
|
228
233
|
fill: "none",
|
229
234
|
viewBox: "0 0 16 16",
|
230
235
|
xmlns: "http://www.w3.org/2000/svg"
|
231
236
|
}, [
|
232
|
-
|
237
|
+
s("path", {
|
233
238
|
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",
|
234
239
|
stroke: "currentColor",
|
235
240
|
"stroke-linecap": "round",
|
236
241
|
"stroke-linejoin": "round"
|
237
242
|
}),
|
238
|
-
|
243
|
+
s("path", {
|
239
244
|
d: "M10.6667 1.33333V3.99999",
|
240
245
|
stroke: "currentColor",
|
241
246
|
"stroke-linecap": "round",
|
242
247
|
"stroke-linejoin": "round"
|
243
248
|
}),
|
244
|
-
|
249
|
+
s("path", {
|
245
250
|
d: "M5.33333 1.33333V3.99999",
|
246
251
|
stroke: "currentColor",
|
247
252
|
"stroke-linecap": "round",
|
248
253
|
"stroke-linejoin": "round"
|
249
254
|
}),
|
250
|
-
|
255
|
+
s("path", {
|
251
256
|
d: "M2 6.66667H14",
|
252
257
|
stroke: "currentColor",
|
253
258
|
"stroke-linecap": "round",
|
254
259
|
"stroke-linejoin": "round"
|
255
260
|
})
|
256
261
|
], -1)
|
257
|
-
]), 8,
|
258
|
-
|
259
|
-
id: `bdpi-description_${
|
262
|
+
]), 8, We),
|
263
|
+
s("span", {
|
264
|
+
id: `bdpi-description_${l(g)}`,
|
260
265
|
class: "bb-base-date-picker-input__accessible-description sr-only"
|
261
|
-
},
|
266
|
+
}, _(l(d)("baseDatePickerInput.dateFormat")) + " " + _(t.range ? l(d)("baseDatePickerInput.dateFormatRange") : l(d)("baseDatePickerInput.dateFormatSingle")), 9, He)
|
262
267
|
]),
|
263
268
|
_: 3
|
264
|
-
}, 8, ["append:icon", "prepend:icon"]),
|
265
|
-
|
269
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
270
|
+
I.value ? (D(), V(Be, {
|
266
271
|
key: 0,
|
267
272
|
target: e.teleportTarget
|
268
273
|
}, {
|
269
274
|
default: n(() => {
|
270
|
-
var
|
275
|
+
var i;
|
271
276
|
return [
|
272
|
-
|
277
|
+
s("div", {
|
273
278
|
ref_key: "calendar",
|
274
279
|
ref: c,
|
275
|
-
class:
|
280
|
+
class: $(["bb-base-date-picker-input__calendar", {
|
276
281
|
"bb-base-date-picker-input__calendar--shown": f.value
|
277
282
|
}]),
|
278
|
-
style: ue(
|
283
|
+
style: ue(Z.value)
|
279
284
|
}, [
|
280
285
|
E($e, {
|
281
|
-
direction: (
|
286
|
+
direction: (i = l(K)) != null && i.includes("top") ? "bottom" : "top",
|
282
287
|
duration: 300
|
283
288
|
}, {
|
284
289
|
default: n(() => [
|
285
|
-
(
|
286
|
-
f.value ? (
|
290
|
+
(D(), V(de, null, [
|
291
|
+
f.value ? (D(), V(Se, P({
|
287
292
|
key: 0,
|
288
|
-
id:
|
289
|
-
},
|
293
|
+
id: l(g)
|
294
|
+
}, x, {
|
290
295
|
ref_key: "basedatepicker",
|
291
296
|
ref: S,
|
292
297
|
disabled: e.disabled,
|
@@ -297,7 +302,7 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
297
302
|
range: e.range,
|
298
303
|
readonly: e.readonly,
|
299
304
|
selectable: e.selectable
|
300
|
-
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])) :
|
305
|
+
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])) : A("", !0)
|
301
306
|
], 1024))
|
302
307
|
]),
|
303
308
|
_: 1
|
@@ -306,12 +311,12 @@ const We = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
306
311
|
];
|
307
312
|
}),
|
308
313
|
_: 1
|
309
|
-
}, 8, ["target"])) :
|
314
|
+
}, 8, ["target"])) : A("", !0)
|
310
315
|
]),
|
311
316
|
_: 3
|
312
317
|
}, 8, ["class"]));
|
313
318
|
}
|
314
319
|
});
|
315
320
|
export {
|
316
|
-
|
321
|
+
vt as default
|
317
322
|
};
|
package/dist/index231.js
CHANGED
@@ -1,43 +1,27 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
});
|
18
|
-
return
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
onActivate() {
|
24
|
-
r.value = !0, a.onActivate && a.onActivate();
|
25
|
-
},
|
26
|
-
onDeactivate() {
|
27
|
-
r.value = !1, a.onDeactivate && a.onDeactivate();
|
28
|
-
}
|
29
|
-
}), l && c());
|
30
|
-
},
|
31
|
-
{ flush: "post" }
|
32
|
-
), y(() => u()), {
|
33
|
-
hasFocus: r,
|
34
|
-
isPaused: s,
|
35
|
-
activate: c,
|
36
|
-
deactivate: u,
|
37
|
-
pause: v,
|
38
|
-
unpause: m
|
1
|
+
import { ref as n, computed as a, unref as v } from "vue";
|
2
|
+
import { useDebounceFn as f } from "./index205.js";
|
3
|
+
const p = (o) => {
|
4
|
+
const e = n(0), r = a(() => v(o.items)), t = n([]), u = async (...s) => {
|
5
|
+
if (Array.isArray(r.value))
|
6
|
+
t.value = r.value;
|
7
|
+
else if (typeof r.value == "function") {
|
8
|
+
const l = ++e.value;
|
9
|
+
try {
|
10
|
+
if (t.value = await r.value(...s), l < e.value)
|
11
|
+
return;
|
12
|
+
} catch (i) {
|
13
|
+
console.error(i);
|
14
|
+
}
|
15
|
+
e.value--;
|
16
|
+
}
|
17
|
+
}, c = f(u, o.debounce || 0);
|
18
|
+
return {
|
19
|
+
getter: u,
|
20
|
+
debouncedGetter: c,
|
21
|
+
items: t,
|
22
|
+
loading: a(() => !!e.value)
|
39
23
|
};
|
40
|
-
}
|
24
|
+
};
|
41
25
|
export {
|
42
|
-
|
26
|
+
p as useItemsGetter
|
43
27
|
};
|
package/dist/index232.js
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { computed as i, unref as m } from "vue";
|
2
|
+
import { hash as s } from "./index235.js";
|
3
|
+
const p = ({ items: a, key: r }) => {
|
4
|
+
const n = i(() => {
|
5
|
+
const t = {}, c = new Array().concat(m(a));
|
6
|
+
for (let e = 0; e < c.length; e++) {
|
7
|
+
const o = c[e], u = r ? String(o[r]) : s(o);
|
8
|
+
t[u] = o;
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
});
|
12
|
+
return {
|
13
|
+
data: n,
|
14
|
+
get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
|
15
|
+
};
|
16
|
+
};
|
13
17
|
export {
|
14
|
-
|
18
|
+
p as useIndexById
|
15
19
|
};
|
package/dist/index233.js
CHANGED
@@ -1,22 +1,53 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
},
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { computed as c, unref as n } from "vue";
|
2
|
+
import { useItemText as y } from "./index290.js";
|
3
|
+
import { useItemValue as x } from "./index291.js";
|
4
|
+
import { hash as w } from "./index235.js";
|
5
|
+
import { useLogger as D } from "./index243.js";
|
6
|
+
const { getItemText: O } = y(), { getItemValue: V } = x(), { warn: H } = D(), T = (i, d, t, a, f, u) => u ? !1 : d || i.disabled ? !0 : typeof t == "function" ? !t(i) : !!(typeof t == "boolean" && !t || a && f >= a), q = ({
|
7
|
+
items: i,
|
8
|
+
disabled: d,
|
9
|
+
selectable: t,
|
10
|
+
itemText: a,
|
11
|
+
itemValue: f,
|
12
|
+
selectedIndexedByHash: u,
|
13
|
+
max: b = 1 / 0
|
14
|
+
}) => {
|
15
|
+
const v = c(() => n(d)), p = c(() => n(i)), h = c(
|
16
|
+
() => Object.keys(u.value).length
|
17
|
+
), g = n(b), m = (e) => {
|
18
|
+
const r = V(e, n(f)), o = w(r), l = O(e, n(a)), s = u.value[o] !== void 0, I = T(
|
19
|
+
e,
|
20
|
+
v.value,
|
21
|
+
t,
|
22
|
+
g,
|
23
|
+
h.value,
|
24
|
+
s
|
25
|
+
);
|
26
|
+
return {
|
27
|
+
item: e,
|
28
|
+
text: l,
|
29
|
+
value: r,
|
30
|
+
valueHash: o,
|
31
|
+
selected: s,
|
32
|
+
disabled: n(I)
|
15
33
|
};
|
16
|
-
|
17
|
-
|
18
|
-
|
34
|
+
};
|
35
|
+
return {
|
36
|
+
options: c(() => {
|
37
|
+
const e = [], r = /* @__PURE__ */ new Set();
|
38
|
+
for (let o = 0; o < p.value.length; o++) {
|
39
|
+
const l = p.value[o];
|
40
|
+
l.disabled && H(
|
41
|
+
"Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
|
42
|
+
);
|
43
|
+
const s = m(l);
|
44
|
+
r.has(s.valueHash) || (r.add(s.valueHash), e.push(s));
|
45
|
+
}
|
46
|
+
return e;
|
47
|
+
}),
|
48
|
+
createOption: m
|
49
|
+
};
|
19
50
|
};
|
20
51
|
export {
|
21
|
-
|
52
|
+
q as useBaseOptions
|
22
53
|
};
|
package/dist/index234.js
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { isNil as f } from "./index252.js";
|
2
|
+
import { computed as t, unref as o } from "vue";
|
3
|
+
const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
|
4
|
+
const i = t(
|
5
|
+
() => new Array().concat(o(e))
|
6
|
+
), s = t(() => i.value.reduce(
|
7
|
+
(r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
|
8
|
+
{ coherent: [], incoherent: [] }
|
9
|
+
)), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
|
10
|
+
return {
|
11
|
+
status: s,
|
12
|
+
coherent: c
|
13
|
+
};
|
14
|
+
};
|
6
15
|
export {
|
7
|
-
|
16
|
+
a as useCoherence
|
8
17
|
};
|
package/dist/index235.js
CHANGED
@@ -1,17 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
const
|
3
|
-
__name: "BbTeleport",
|
4
|
-
props: {
|
5
|
-
target: {}
|
6
|
-
},
|
7
|
-
setup(o) {
|
8
|
-
var t, e;
|
9
|
-
const r = o, n = !!((e = (t = c()) == null ? void 0 : t.proxy) != null && e.$nuxt), p = r.target || (n ? "#teleports" : "body");
|
10
|
-
return (s, _) => (l(), u(f, { to: d(p) }, [
|
11
|
-
m(s.$slots, "default")
|
12
|
-
], 8, ["to"]));
|
13
|
-
}
|
14
|
-
});
|
1
|
+
import { hash as o } from "./index292.js";
|
2
|
+
const t = (r, h = "bb") => `${h}${o(r)}`;
|
15
3
|
export {
|
16
|
-
|
4
|
+
t as hash
|
17
5
|
};
|