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