bitboss-ui 2.1.32 → 2.1.33
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 +6 -6
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +27 -36
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +5 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
- package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
- package/dist/composables/useCancelableFunction.d.ts +17 -0
- 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 +11 -11
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +111 -93
- package/dist/index133.js +1 -1
- package/dist/index135.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index140.js +292 -250
- package/dist/index141.js +1 -1
- package/dist/index142.js +2 -2
- package/dist/index15.js +72 -74
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +15 -15
- package/dist/index212.js +3 -3
- package/dist/index213.js +2 -2
- package/dist/index214.js +2 -2
- package/dist/index215.js +13 -4
- package/dist/index216.js +2 -2
- package/dist/index217.js +7 -5
- package/dist/index218.js +3 -20
- package/dist/index219.js +80 -191
- package/dist/index221.js +28 -116
- package/dist/index222.js +19 -0
- package/dist/index223.js +49 -32
- package/dist/index224.js +15 -86
- package/dist/index225.js +5 -0
- package/dist/index226.js +11 -28
- package/dist/index227.js +14 -15
- package/dist/index228.js +2 -51
- package/dist/index229.js +2 -15
- package/dist/index23.js +153 -153
- package/dist/index230.js +6 -3
- package/dist/index231.js +16 -12
- package/dist/index232.js +9 -15
- package/dist/index233.js +3 -2
- package/dist/index234.js +9 -2
- package/dist/index235.js +121 -2
- package/dist/index237.js +23 -5
- package/dist/index238.js +4 -5
- package/dist/index239.js +23 -5
- package/dist/index240.js +5 -5
- package/dist/index241.js +5 -5
- package/dist/index242.js +5 -5
- package/dist/index243.js +5 -2
- package/dist/index244.js +5 -8
- package/dist/index245.js +5 -250
- package/dist/index246.js +5 -52
- package/dist/index247.js +2 -44
- package/dist/index248.js +8 -5
- package/dist/index249.js +243 -53
- package/dist/index25.js +1 -1
- package/dist/index250.js +52 -4
- package/dist/index251.js +44 -3
- package/dist/index252.js +5 -13
- package/dist/index253.js +54 -100
- package/dist/index254.js +108 -0
- package/dist/{index255.js → index256.js} +2 -2
- package/dist/index258.js +2 -183
- package/dist/index259.js +4 -7
- package/dist/index260.js +5 -2
- package/dist/index261.js +2 -2
- package/dist/index262.js +19 -6
- package/dist/index263.js +2 -7
- package/dist/index264.js +6 -17
- package/dist/index265.js +7 -12
- package/dist/index266.js +33 -5
- package/dist/index267.js +2 -229
- package/dist/index268.js +18 -5
- package/dist/index269.js +11 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +229 -3
- package/dist/index271.js +3 -9
- package/dist/index272.js +4 -23
- package/dist/index273.js +197 -3
- package/dist/index275.js +183 -6
- package/dist/index276.js +7 -16
- package/dist/index277.js +9 -9
- package/dist/index278.js +9 -8
- package/dist/index279.js +8 -33
- package/dist/index280.js +33 -28
- package/dist/index281.js +30 -0
- package/dist/index283.js +2 -5
- package/dist/index284.js +5 -8
- package/dist/index285.js +67 -2
- package/dist/index286.js +7 -5
- package/dist/index287.js +11 -3
- package/dist/index288.js +5 -3
- package/dist/index289.js +3 -7
- package/dist/index29.js +3 -3
- package/dist/index290.js +17 -11
- package/dist/index291.js +28 -2
- package/dist/index292.js +718 -4
- package/dist/index293.js +366 -3
- package/dist/index294.js +55 -14
- package/dist/index295.js +3 -28
- package/dist/index296.js +280 -4
- package/dist/index297.js +2 -5
- package/dist/index298.js +13 -277
- package/dist/index299.js +2 -2
- package/dist/index300.js +9 -9
- package/dist/index302.js +17 -14
- package/dist/index304.js +12 -16
- package/dist/index306.js +15 -11
- package/dist/index308.js +23 -15
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -27
- package/dist/index311.js +2 -2
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +21 -1
- package/dist/index316.js +3 -22
- package/dist/index317.js +5 -0
- package/dist/index318.js +6 -3
- package/dist/index319.js +4 -3
- package/dist/index320.js +124 -5
- package/dist/index321.js +2 -2
- package/dist/index322.js +2 -125
- package/dist/index324.js +3 -5
- package/dist/index325.js +5 -718
- package/dist/index326.js +8 -366
- package/dist/index327.js +2 -58
- package/dist/index328.js +7 -0
- package/dist/index329.js +1 -1
- package/dist/index33.js +8 -8
- package/dist/index330.js +4 -2
- package/dist/index331.js +92 -7
- package/dist/index332.js +34 -5
- package/dist/index333.js +6 -8
- package/dist/index334.js +128 -57
- package/dist/index335.js +367 -56
- package/dist/index336.js +56 -6
- package/dist/index337.js +57 -128
- package/dist/index338.js +2 -369
- package/dist/index339.js +6 -6
- package/dist/index340.js +6 -18
- package/dist/index341.js +17 -226
- package/dist/index342.js +46 -6
- package/dist/index343.js +7 -46
- package/dist/index344.js +5 -92
- package/dist/index345.js +7 -128
- package/dist/index346.js +223 -431
- package/dist/index347.js +123 -121
- package/dist/index348.js +421 -473
- package/dist/index349.js +125 -48
- package/dist/index35.js +3 -3
- package/dist/index350.js +490 -0
- package/dist/index351.js +52 -0
- package/dist/index37.js +263 -271
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +2 -2
- package/dist/index79.js +206 -182
- 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 +1 -1
- package/dist/index92.js +1 -1
- package/dist/index94.js +121 -117
- package/dist/index96.js +1 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
- package/dist/utilities/functions/parseWidthString.d.ts +6 -0
- package/package.json +2 -2
- package/dist/index236.js +0 -7
- package/dist/index257.js +0 -4
- package/dist/index274.js +0 -11
- package/dist/index282.js +0 -69
- package/dist/index315.js +0 -4
- package/dist/index323.js +0 -4
package/dist/index226.js
CHANGED
@@ -1,31 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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--;
|
20
|
-
}
|
21
|
-
}, c = f(n, u.debounce || 0);
|
22
|
-
return {
|
23
|
-
getter: n,
|
24
|
-
debouncedGetter: c,
|
25
|
-
items: t,
|
26
|
-
loading: s(() => !!e.value)
|
27
|
-
};
|
1
|
+
import { hash as e } from "./index225.js";
|
2
|
+
import { debouncedWatch as s } from "./index212.js";
|
3
|
+
const n = (o, c, h) => {
|
4
|
+
s(
|
5
|
+
o,
|
6
|
+
(r, t) => {
|
7
|
+
e(r) !== e(t) && c(r, t);
|
8
|
+
},
|
9
|
+
h
|
10
|
+
);
|
28
11
|
};
|
29
12
|
export {
|
30
|
-
|
13
|
+
n as useHashedWatcher
|
31
14
|
};
|
package/dist/index227.js
CHANGED
@@ -1,19 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
});
|
12
|
-
return {
|
13
|
-
data: n,
|
14
|
-
get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
|
1
|
+
import { isNotNil as n } from "./index143.js";
|
2
|
+
import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
|
3
|
+
const h = ({
|
4
|
+
fn: i,
|
5
|
+
onStart: s,
|
6
|
+
multiple: f,
|
7
|
+
currentValue: o
|
8
|
+
}) => {
|
9
|
+
const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
|
10
|
+
e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
|
15
11
|
};
|
12
|
+
return a && (u(r), c(async () => {
|
13
|
+
l.value || await r();
|
14
|
+
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
16
15
|
};
|
17
16
|
export {
|
18
|
-
|
17
|
+
h as usePrefill
|
19
18
|
};
|
package/dist/index228.js
CHANGED
@@ -1,53 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useItemText as x } from "./index294.js";
|
3
|
-
import { useItemValue as w } from "./index277.js";
|
4
|
-
import { hash as y } from "./index230.js";
|
5
|
-
import { useLogger as D } from "./index244.js";
|
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
|
-
items: u,
|
8
|
-
disabled: c,
|
9
|
-
selectable: m,
|
10
|
-
itemText: a,
|
11
|
-
itemValue: d,
|
12
|
-
selectedIndexedByHash: r,
|
13
|
-
max: b = 1 / 0
|
14
|
-
}) => {
|
15
|
-
const v = l(() => o(c)), p = l(() => o(u)), h = l(
|
16
|
-
() => Object.keys(r.value).length
|
17
|
-
), g = o(b), f = (e) => {
|
18
|
-
const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
|
19
|
-
e,
|
20
|
-
v.value,
|
21
|
-
m,
|
22
|
-
g,
|
23
|
-
h.value,
|
24
|
-
s
|
25
|
-
);
|
26
|
-
return {
|
27
|
-
item: e,
|
28
|
-
text: i,
|
29
|
-
value: n,
|
30
|
-
valueHash: t,
|
31
|
-
selected: s,
|
32
|
-
disabled: o(I)
|
33
|
-
};
|
34
|
-
};
|
35
|
-
return {
|
36
|
-
options: l(() => {
|
37
|
-
const e = [], n = /* @__PURE__ */ new Set();
|
38
|
-
for (let t = 0; t < p.value.length; t++) {
|
39
|
-
const i = p.value[t];
|
40
|
-
i.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 = f(i);
|
44
|
-
n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
|
45
|
-
}
|
46
|
-
return e;
|
47
|
-
}),
|
48
|
-
createOption: f
|
49
|
-
};
|
50
|
-
};
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
51
2
|
export {
|
52
|
-
|
3
|
+
s as isCssColor
|
53
4
|
};
|
package/dist/index229.js
CHANGED
@@ -1,17 +1,4 @@
|
|
1
|
-
|
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
|
-
};
|
1
|
+
const r = (e) => typeof e > "u" || e === null;
|
15
2
|
export {
|
16
|
-
|
3
|
+
r as isNil
|
17
4
|
};
|
package/dist/index23.js
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { _config as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import { identity as
|
10
|
-
import { isEmpty as
|
11
|
-
import { last as
|
12
|
-
import { useId as
|
13
|
-
import { useLocale as
|
14
|
-
import { useMobile as
|
15
|
-
import {
|
16
|
-
import
|
17
|
-
import be from "./index21.js";
|
1
|
+
import { defineComponent as Z, watchEffect as G, ref as r, computed as k, watch as C, createBlock as J, openBlock as K, normalizeClass as w, withCtx as i, createElementVNode as o, createVNode as y, unref as l, withDirectives as Q, mergeProps as B, withModifiers as X, toDisplayString as S, renderSlot as c } from "vue";
|
2
|
+
import { _config as x } from "./index4.js";
|
3
|
+
import n from "./index240.js";
|
4
|
+
import ee from "./index260.js";
|
5
|
+
import ae from "./index244.js";
|
6
|
+
import te from "./index241.js";
|
7
|
+
import ne from "./index242.js";
|
8
|
+
import oe from "./index243.js";
|
9
|
+
import { identity as re } from "./index261.js";
|
10
|
+
import { isEmpty as ie } from "./index258.js";
|
11
|
+
import { last as le } from "./index247.js";
|
12
|
+
import { useId as se } from "./index8.js";
|
13
|
+
import { useLocale as de } from "./index216.js";
|
14
|
+
import { useMobile as ue } from "./index9.js";
|
15
|
+
import { vMaska as pe } from "./index262.js";
|
16
|
+
import ce from "./index21.js";
|
18
17
|
/* empty css */
|
19
|
-
import
|
18
|
+
import me from "./index135.js";
|
20
19
|
/* empty css */
|
21
|
-
import
|
22
|
-
import
|
20
|
+
import fe from "./index137.js";
|
21
|
+
import be from "./index235.js";
|
23
22
|
/* empty css */
|
24
|
-
const
|
23
|
+
const ge = { class: "bb-base-date-picker-input__inner-wrapper" }, ke = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], ve = ["aria-label", "disabled"], ye = ["id"], he = ["inert"], Te = /* @__PURE__ */ Z({
|
25
24
|
__name: "BaseDatePickerInput",
|
26
25
|
props: {
|
27
26
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -44,225 +43,226 @@ const ve = { class: "bb-base-date-picker-input__inner-wrapper" }, Ve = ["id", "a
|
|
44
43
|
range: { type: Boolean },
|
45
44
|
readonly: { type: Boolean },
|
46
45
|
required: { type: Boolean },
|
47
|
-
selectable: {}
|
46
|
+
selectable: {},
|
47
|
+
transitionDuration: {}
|
48
48
|
},
|
49
49
|
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
50
|
-
setup(
|
51
|
-
const
|
52
|
-
|
53
|
-
|
50
|
+
setup(E, { emit: I }) {
|
51
|
+
const _ = { it: oe, en: ae };
|
52
|
+
n.extend(ee), n.extend(te), n.extend(ne), G(() => {
|
53
|
+
n.locale(_[x.locale]);
|
54
54
|
});
|
55
|
-
const
|
56
|
-
() =>
|
57
|
-
),
|
55
|
+
const a = E, s = I, { t: u } = de(), h = r(null), v = r(null), V = r(null), $ = r(null), m = r(null), M = r(), f = a.id || `bdpi-${se().id.value}`, { isMobile: L } = ue(), O = k(
|
56
|
+
() => a.allowWriting === "not-mobile" && L.value ? "none" : "numeric"
|
57
|
+
), P = k(() => ({
|
58
58
|
"bb-base-date-picker-input": !0,
|
59
59
|
"bb-base-date-picker-input--active": b.value,
|
60
|
-
"bb-base-date-picker-input--errors":
|
61
|
-
"bb-base-date-picker-input--loading":
|
62
|
-
"bb-base-date-picker-input--readonly":
|
63
|
-
"bb-base-date-picker-input--disabled":
|
64
|
-
"bb-base-date-picker-input--compact":
|
65
|
-
})),
|
60
|
+
"bb-base-date-picker-input--errors": a.hasErrors,
|
61
|
+
"bb-base-date-picker-input--loading": a.loading,
|
62
|
+
"bb-base-date-picker-input--readonly": a.readonly,
|
63
|
+
"bb-base-date-picker-input--disabled": a.disabled,
|
64
|
+
"bb-base-date-picker-input--compact": a.compact
|
65
|
+
})), F = {
|
66
66
|
onInput: (e) => {
|
67
|
-
if (!
|
67
|
+
if (!a.range && e.target instanceof HTMLInputElement)
|
68
68
|
if (m.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
69
|
-
const
|
70
|
-
|
71
|
-
} else e.target.value === "" &&
|
69
|
+
const t = n(e.target.value, "DD/MM/YYYY");
|
70
|
+
z(t) ? (e.target.value = "", s("update:modelValue", null), s("error", "invalid_date_typed")) : s("update:modelValue", t.toISOString());
|
71
|
+
} else e.target.value === "" && s("update:modelValue", null);
|
72
72
|
}
|
73
|
-
}, b =
|
74
|
-
b.value || (
|
75
|
-
},
|
76
|
-
var
|
77
|
-
e.target instanceof HTMLElement && (
|
78
|
-
},
|
73
|
+
}, b = r(!1), j = () => {
|
74
|
+
b.value || (s("active"), b.value = !0, document.addEventListener("focusin", g), document.addEventListener("click", g));
|
75
|
+
}, g = (e) => {
|
76
|
+
var t, p;
|
77
|
+
e.target instanceof HTMLElement && (t = v.value) != null && t.$el && !v.value.$el.contains(e.target) && !((p = h.value) != null && p.contains(e.target)) && (b.value = !1, s("inactive"), document.removeEventListener("focusin", g), document.removeEventListener("click", g));
|
78
|
+
}, D = (e) => {
|
79
79
|
if (e)
|
80
80
|
if (Array.isArray(e)) {
|
81
|
-
let
|
82
|
-
return e.length && (
|
81
|
+
let t, p;
|
82
|
+
return e.length && (t = e[0]), e.length > 1 && (p = le(e)), [t, p].filter(re).map((U) => n(U).format("DD/MM/YYYY")).join(" - ");
|
83
83
|
} else
|
84
|
-
return
|
84
|
+
return n(e).format("DD/MM/YYYY");
|
85
85
|
return null;
|
86
|
-
},
|
87
|
-
|
88
|
-
() =>
|
86
|
+
}, A = k(() => m.value ? m.value : D(a.modelValue));
|
87
|
+
C(
|
88
|
+
() => a.modelValue,
|
89
89
|
(e) => {
|
90
|
-
m.value =
|
90
|
+
m.value = D(e);
|
91
91
|
}
|
92
92
|
);
|
93
|
-
const
|
94
|
-
const
|
95
|
-
|
96
|
-
},
|
97
|
-
|
93
|
+
const d = r(!1), Y = (e) => {
|
94
|
+
const t = e.target;
|
95
|
+
t && t instanceof HTMLDialogElement && (d.value = !1);
|
96
|
+
}, H = async () => {
|
97
|
+
a.disabled || a.readonly || (d.value = !0);
|
98
98
|
};
|
99
|
-
|
100
|
-
var
|
101
|
-
e ? document.addEventListener("click",
|
99
|
+
C(d, (e) => {
|
100
|
+
var t;
|
101
|
+
e ? document.addEventListener("click", Y, { passive: !0 }) : ((t = M.value) == null || t.resetStatus(), document.removeEventListener("click", Y));
|
102
102
|
});
|
103
|
-
const
|
103
|
+
const W = r(!a.allowWriting || a.range), q = (e) => a.range && Array.isArray(e) && e.length === 2 || !a.range && !!e, R = {
|
104
104
|
"onUpdate:modelValue": (e) => {
|
105
|
-
|
105
|
+
s("update:modelValue", e), q(e) && (W.value = !1, d.value = !1);
|
106
106
|
}
|
107
|
-
},
|
108
|
-
if (
|
109
|
-
if (!
|
107
|
+
}, T = k(() => {
|
108
|
+
if (a.range) {
|
109
|
+
if (!a.modelValue || a.modelValue.length < 2)
|
110
110
|
return u("baseDatePickerInput.emptyRange").value;
|
111
|
-
const e =
|
112
|
-
if (
|
113
|
-
return u("baseDatePickerInput.changeSelectionRange", e,
|
114
|
-
} else if (typeof
|
115
|
-
const e =
|
111
|
+
const e = n(a.modelValue[0]).format("D MMMM YYYY"), t = n(a.modelValue[1]).format("D MMMM YYYY");
|
112
|
+
if (a.range && a.modelValue.length === 2)
|
113
|
+
return u("baseDatePickerInput.changeSelectionRange", e, t).value;
|
114
|
+
} else if (typeof a.modelValue == "string") {
|
115
|
+
const e = n(a.modelValue).format("D MMMM YYYY");
|
116
116
|
return u("baseDatePickerInput.changeSelection", e).value;
|
117
117
|
}
|
118
118
|
return u("baseDatePickerInput.emptySelection").value;
|
119
|
-
}),
|
120
|
-
let
|
121
|
-
return
|
122
|
-
},
|
119
|
+
}), z = (e) => {
|
120
|
+
let t = !0;
|
121
|
+
return a.min && t && (t = e.isSameOrAfter(n(a.min).startOf("day"))), a.max && t && (t = e.isSameOrBefore(n(a.max).startOf("day"))), typeof a.selectable == "function" && t && (t = a.selectable(e.toDate())), !t;
|
122
|
+
}, N = () => {
|
123
123
|
let e = null;
|
124
|
-
|
124
|
+
a.range && (e = []), s("update:modelValue", e);
|
125
125
|
};
|
126
|
-
return (e,
|
126
|
+
return (e, t) => (K(), J(fe, {
|
127
127
|
ref_key: "outerContainer",
|
128
|
-
ref:
|
129
|
-
class: w(
|
130
|
-
onFocusin:
|
128
|
+
ref: v,
|
129
|
+
class: w(P.value),
|
130
|
+
onFocusin: j
|
131
131
|
}, {
|
132
|
-
"prepend-outer":
|
132
|
+
"prepend-outer": i(() => [
|
133
133
|
c(e.$slots, "prepend-outer")
|
134
134
|
]),
|
135
|
-
"append-outer":
|
135
|
+
"append-outer": i(() => [
|
136
136
|
c(e.$slots, "append-outer")
|
137
137
|
]),
|
138
|
-
default:
|
139
|
-
|
140
|
-
|
138
|
+
default: i(() => [
|
139
|
+
o("div", ge, [
|
140
|
+
y(me, {
|
141
141
|
ref_key: "innerContainer",
|
142
|
-
ref:
|
143
|
-
"append:icon":
|
144
|
-
clearable:
|
145
|
-
"prepend:icon":
|
146
|
-
"onClick:clear":
|
142
|
+
ref: V,
|
143
|
+
"append:icon": a["append:icon"],
|
144
|
+
clearable: a.clearable && !l(ie)(e.modelValue),
|
145
|
+
"prepend:icon": a["prepend:icon"],
|
146
|
+
"onClick:clear": N
|
147
147
|
}, {
|
148
|
-
prepend:
|
148
|
+
prepend: i(() => [
|
149
149
|
c(e.$slots, "prepend")
|
150
150
|
]),
|
151
|
-
prefix:
|
151
|
+
prefix: i(() => [
|
152
152
|
c(e.$slots, "prefix")
|
153
153
|
]),
|
154
|
-
append:
|
154
|
+
append: i(() => [
|
155
155
|
c(e.$slots, "append")
|
156
156
|
]),
|
157
|
-
suffix:
|
157
|
+
suffix: i(() => [
|
158
158
|
c(e.$slots, "suffix")
|
159
159
|
]),
|
160
|
-
default:
|
161
|
-
|
162
|
-
id:
|
160
|
+
default: i(() => [
|
161
|
+
Q(o("input", B({
|
162
|
+
id: l(f),
|
163
163
|
ref_key: "input",
|
164
|
-
ref:
|
165
|
-
"aria-describedby": `bdpi-description_${
|
164
|
+
ref: $,
|
165
|
+
"aria-describedby": `bdpi-description_${l(f)}`,
|
166
166
|
autocomplete: e.autocomplete,
|
167
167
|
autofocus: e.autofocus,
|
168
|
-
"data-maska":
|
168
|
+
"data-maska": a.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
169
169
|
disabled: e.disabled,
|
170
|
-
inputmode:
|
170
|
+
inputmode: O.value,
|
171
171
|
name: e.name,
|
172
172
|
placeholder: e.placeholder,
|
173
173
|
readonly: e.readonly || e.range || !e.allowWriting,
|
174
174
|
required: e.required
|
175
|
-
},
|
175
|
+
}, F, {
|
176
176
|
size: "1",
|
177
177
|
type: "text",
|
178
|
-
value:
|
179
|
-
}), null, 16,
|
180
|
-
[
|
178
|
+
value: A.value
|
179
|
+
}), null, 16, ke), [
|
180
|
+
[l(pe)]
|
181
181
|
]),
|
182
|
-
|
183
|
-
"aria-label":
|
182
|
+
o("button", {
|
183
|
+
"aria-label": T.value,
|
184
184
|
class: "bb-base-date-picker-input__calendar-btn",
|
185
185
|
disabled: e.disabled || e.readonly,
|
186
186
|
type: "button",
|
187
|
-
onClick:
|
188
|
-
},
|
189
|
-
|
187
|
+
onClick: X(H, ["stop"])
|
188
|
+
}, t[1] || (t[1] = [
|
189
|
+
o("svg", {
|
190
190
|
fill: "none",
|
191
191
|
viewBox: "0 0 16 16",
|
192
192
|
xmlns: "http://www.w3.org/2000/svg"
|
193
193
|
}, [
|
194
|
-
|
194
|
+
o("path", {
|
195
195
|
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",
|
196
196
|
stroke: "currentColor",
|
197
197
|
"stroke-linecap": "round",
|
198
198
|
"stroke-linejoin": "round"
|
199
199
|
}),
|
200
|
-
|
200
|
+
o("path", {
|
201
201
|
d: "M10.6667 1.33333V3.99999",
|
202
202
|
stroke: "currentColor",
|
203
203
|
"stroke-linecap": "round",
|
204
204
|
"stroke-linejoin": "round"
|
205
205
|
}),
|
206
|
-
|
206
|
+
o("path", {
|
207
207
|
d: "M5.33333 1.33333V3.99999",
|
208
208
|
stroke: "currentColor",
|
209
209
|
"stroke-linecap": "round",
|
210
210
|
"stroke-linejoin": "round"
|
211
211
|
}),
|
212
|
-
|
212
|
+
o("path", {
|
213
213
|
d: "M2 6.66667H14",
|
214
214
|
stroke: "currentColor",
|
215
215
|
"stroke-linecap": "round",
|
216
216
|
"stroke-linejoin": "round"
|
217
217
|
})
|
218
218
|
], -1)
|
219
|
-
]), 8,
|
220
|
-
|
221
|
-
id: `bdpi-description_${
|
219
|
+
]), 8, ve),
|
220
|
+
o("span", {
|
221
|
+
id: `bdpi-description_${l(f)}`,
|
222
222
|
class: "bb-base-date-picker-input__accessible-description sr-only"
|
223
|
-
},
|
223
|
+
}, S(l(u)("baseDatePickerInput.dateFormat")) + " " + S(a.range ? l(u)("baseDatePickerInput.dateFormatRange") : l(u)("baseDatePickerInput.dateFormatSingle")), 9, ye)
|
224
224
|
]),
|
225
225
|
_: 3
|
226
|
-
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
])
|
258
|
-
|
259
|
-
|
260
|
-
])
|
226
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
227
|
+
]),
|
228
|
+
y(be, {
|
229
|
+
modelValue: d.value,
|
230
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => d.value = p),
|
231
|
+
anchor: V.value,
|
232
|
+
dialog: "",
|
233
|
+
offset: 4,
|
234
|
+
"transition-duration": e.transitionDuration
|
235
|
+
}, {
|
236
|
+
default: i(() => [
|
237
|
+
o("div", {
|
238
|
+
ref_key: "calendar",
|
239
|
+
ref: h,
|
240
|
+
class: w(["bb-base-date-picker-input__calendar", {
|
241
|
+
"bb-base-date-picker-input__calendar--shown": d.value
|
242
|
+
}]),
|
243
|
+
inert: !d.value
|
244
|
+
}, [
|
245
|
+
y(ce, B({ id: l(f) }, R, {
|
246
|
+
ref_key: "basedatepicker",
|
247
|
+
ref: M,
|
248
|
+
disabled: e.disabled,
|
249
|
+
"first-day-of-week": e.firstDayOfWeek,
|
250
|
+
max: e.max,
|
251
|
+
min: e.min,
|
252
|
+
"model-value": e.modelValue,
|
253
|
+
range: e.range,
|
254
|
+
readonly: e.readonly,
|
255
|
+
selectable: e.selectable
|
256
|
+
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])
|
257
|
+
], 10, he)
|
258
|
+
]),
|
259
|
+
_: 1
|
260
|
+
}, 8, ["modelValue", "anchor", "transition-duration"])
|
261
261
|
]),
|
262
262
|
_: 3
|
263
263
|
}, 8, ["class"]));
|
264
264
|
}
|
265
265
|
});
|
266
266
|
export {
|
267
|
-
|
267
|
+
Te as default
|
268
268
|
};
|
package/dist/index230.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import e from "./index292.js";
|
2
|
+
import o from "./index293.js";
|
3
|
+
import r from "./index294.js";
|
4
|
+
const f = new r(o, e)._freeze();
|
3
5
|
export {
|
4
|
-
|
6
|
+
r as Mime,
|
7
|
+
f as default
|
5
8
|
};
|
package/dist/index231.js
CHANGED
@@ -1,14 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
2
|
+
if (t) return t;
|
3
|
+
if (f(n))
|
4
|
+
return n;
|
5
|
+
if (r in n) {
|
6
|
+
const i = e(
|
7
|
+
[].concat(n[r]),
|
8
|
+
r,
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
13
|
+
}
|
14
|
+
return t;
|
15
|
+
}, null);
|
12
16
|
export {
|
13
|
-
|
17
|
+
e as findInTree
|
14
18
|
};
|
package/dist/index232.js
CHANGED
@@ -1,18 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
|
10
|
-
e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
|
11
|
-
};
|
12
|
-
return a && (u(r), c(async () => {
|
13
|
-
l.value || await r();
|
14
|
-
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
1
|
+
const o = (t, r) => {
|
2
|
+
const e = {};
|
3
|
+
for (const c in t)
|
4
|
+
if (Object.prototype.hasOwnProperty.call(t, c)) {
|
5
|
+
const n = t[c];
|
6
|
+
r(n, c, t) && (e[c] = n);
|
7
|
+
}
|
8
|
+
return e;
|
15
9
|
};
|
16
10
|
export {
|
17
|
-
|
11
|
+
o as pickBy
|
18
12
|
};
|