bitboss-ui 2.0.78 → 2.0.80
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/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/OptionsContainer.vue.d.ts +1 -1
- package/dist/index110.js +5 -5
- package/dist/index118.js +25 -21
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +14 -14
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +2 -2
- package/dist/index206.js +4 -8
- package/dist/index207.js +2 -3
- package/dist/index208.js +3 -41
- package/dist/index209.js +41 -6
- package/dist/index21.js +14 -14
- package/dist/index210.js +6 -7
- package/dist/index211.js +7 -5
- package/dist/index212.js +8 -16
- package/dist/index213.js +12 -16
- package/dist/index214.js +53 -19
- package/dist/index216.js +13 -27
- package/dist/index217.js +20 -3
- package/dist/index218.js +4 -2
- package/dist/index219.js +122 -245
- package/dist/index220.js +5 -52
- package/dist/index221.js +125 -44
- package/dist/index222.js +19 -5
- package/dist/index223.js +15 -59
- package/dist/index224.js +15 -52
- package/dist/index225.js +4 -0
- package/dist/index226.js +2 -13
- package/dist/index227.js +5 -164
- package/dist/index228.js +368 -83
- package/dist/index229.js +166 -0
- package/dist/index23.js +188 -187
- package/dist/index230.js +84 -3
- package/dist/index232.js +81 -125
- package/dist/index233.js +19 -2
- package/dist/index234.js +26 -19
- package/dist/index235.js +3 -5
- package/dist/index236.js +246 -366
- package/dist/index237.js +52 -4
- package/dist/index238.js +44 -2
- package/dist/index239.js +5 -4
- package/dist/index240.js +60 -2
- package/dist/index241.js +3 -2
- package/dist/index242.js +1 -1
- package/dist/index244.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index248.js +2 -10
- package/dist/index249.js +9 -2
- package/dist/index25.js +109 -105
- package/dist/index250.js +2 -8
- package/dist/index251.js +6 -23
- package/dist/index252.js +14 -87
- package/dist/index253.js +11 -0
- package/dist/index254.js +23 -6
- package/dist/index255.js +87 -14
- package/dist/index257.js +8 -5
- package/dist/index258.js +4 -2
- package/dist/index259.js +3 -2
- package/dist/index261.js +7 -2
- package/dist/index262.js +176 -2
- package/dist/index263.js +431 -2
- package/dist/index264.js +1 -1
- package/dist/index265.js +89 -2
- package/dist/index266.js +200 -2
- package/dist/index267.js +3 -2
- package/dist/index268.js +12 -28
- package/dist/index269.js +8 -21
- package/dist/index27.js +1 -1
- package/dist/index270.js +11 -0
- package/dist/index271.js +17 -7
- package/dist/index272.js +3 -430
- package/dist/index273.js +280 -88
- package/dist/index274.js +5 -8
- package/dist/index275.js +2 -3
- package/dist/index276.js +4 -0
- package/dist/index277.js +2 -200
- package/dist/index278.js +2 -3
- package/dist/index279.js +2 -12
- package/dist/index280.js +124 -7
- package/dist/index281.js +20 -7
- package/dist/index283.js +435 -3
- package/dist/index284.js +121 -218
- package/dist/index285.js +2 -2
- package/dist/index286.js +2 -126
- package/dist/index287.js +2 -176
- package/dist/index288.js +1 -21
- package/dist/index289.js +4 -0
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -4
- package/dist/index291.js +23 -431
- package/dist/index292.js +21 -126
- package/dist/index294.js +224 -3
- package/dist/index295.js +1 -1
- package/dist/index296.js +3 -5
- package/dist/index297.js +204 -59
- package/dist/index298.js +2 -211
- package/dist/index299.js +5 -5
- package/dist/index300.js +66 -8
- package/dist/index304.js +1 -1
- package/dist/index305.js +4 -3
- package/dist/index306.js +7 -6
- package/dist/index307.js +32 -6
- package/dist/index308.js +3 -18
- package/dist/index309.js +6 -32
- package/dist/index31.js +2 -2
- package/dist/index310.js +46 -10
- package/dist/index311.js +10 -46
- package/dist/index312.js +7 -12
- package/dist/index313.js +19 -480
- package/dist/index314.js +1 -1
- package/dist/index315.js +482 -0
- package/dist/index317.js +1 -1
- package/dist/index318.js +47 -2
- package/dist/index319.js +2 -47
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +97 -96
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +2 -2
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +110 -106
- package/dist/index86.js +1 -1
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/index215.js +0 -21
- package/dist/index231.js +0 -128
- package/dist/index256.js +0 -283
- package/dist/index260.js +0 -4
- package/dist/index282.js +0 -19
- package/dist/index293.js +0 -4
- package/dist/index316.js +0 -4
package/dist/index23.js
CHANGED
@@ -1,27 +1,28 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useFloating as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { identity as
|
9
|
-
import { last as
|
10
|
-
import { useFocusTrap as
|
11
|
-
import { useId as
|
12
|
-
import { useIntersectionObserver as
|
13
|
-
import { useMobile as
|
14
|
-
import { vMaska as
|
15
|
-
import { wait as
|
16
|
-
import { waitFor as
|
17
|
-
import
|
1
|
+
import { defineComponent as te, ref as o, computed as v, watch as ae, openBlock as w, createBlock as V, normalizeClass as B, withCtx as n, renderSlot as d, createVNode as E, withDirectives as oe, createElementVNode as i, mergeProps as I, unref as c, withModifiers as re, toDisplayString as ne, normalizeStyle as le, KeepAlive as ie, createCommentVNode as F } from "vue";
|
2
|
+
import { useFloating as se } from "./index219.js";
|
3
|
+
import r from "./index220.js";
|
4
|
+
import ue from "./index221.js";
|
5
|
+
import de from "./index222.js";
|
6
|
+
import ce from "./index223.js";
|
7
|
+
import pe from "./index224.js";
|
8
|
+
import { identity as me } from "./index225.js";
|
9
|
+
import { last as fe } from "./index226.js";
|
10
|
+
import { useFocusTrap as be } from "./index209.js";
|
11
|
+
import { useId as ve } from "./index8.js";
|
12
|
+
import { useIntersectionObserver as ye } from "./index132.js";
|
13
|
+
import { useMobile as ge } from "./index9.js";
|
14
|
+
import { vMaska as ke } from "./index217.js";
|
15
|
+
import { wait as Me } from "./index131.js";
|
16
|
+
import { waitFor as he } from "./index210.js";
|
17
|
+
import we from "./index21.js";
|
18
18
|
/* empty css */
|
19
|
-
import
|
19
|
+
import Ve from "./index214.js";
|
20
20
|
/* empty css */
|
21
|
-
import
|
22
|
-
import
|
23
|
-
import
|
24
|
-
|
21
|
+
import Ce from "./index216.js";
|
22
|
+
import Ye from "./index227.js";
|
23
|
+
import Ae from "./index213.js";
|
24
|
+
import { autoUpdate as De, flip as Se, offset as $e, shift as _e, hide as Oe } from "./index228.js";
|
25
|
+
const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Ee = ["aria-label", "disabled"], Ie = ["id"], nt = /* @__PURE__ */ te({
|
25
26
|
__name: "BaseDatePickerInput",
|
26
27
|
props: {
|
27
28
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -46,36 +47,36 @@ const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
46
47
|
width: { default: 290 }
|
47
48
|
},
|
48
49
|
emits: ["active", "error", "focus", "inactive", "update:modelValue"],
|
49
|
-
setup(
|
50
|
-
|
51
|
-
const t =
|
50
|
+
setup(L, { emit: W }) {
|
51
|
+
r.extend(ue), r.extend(ce), r.extend(pe), r.locale(de);
|
52
|
+
const t = L, s = W, u = o(null), C = o(null), p = o(null), z = o(null), y = o(null), A = o(), g = t.id || `bdpi_${ve().id.value}`, { isMobile: D } = ge(), j = v(
|
52
53
|
() => t.allowWriting === "not-mobile" && D.value ? "none" : "numeric"
|
53
54
|
), Y = o(!0);
|
54
|
-
|
55
|
+
ye(
|
55
56
|
p,
|
56
57
|
([{ intersectionRatio: e }]) => {
|
57
|
-
e === 1 ? Y.value = !0 : (Y.value = !1, m.value && (
|
58
|
+
e === 1 ? Y.value = !0 : (Y.value = !1, m.value && (O(), p.value && p.value.$el.querySelector(
|
58
59
|
".bb-base-date-picker-input__calendar-btn"
|
59
60
|
).focus(), h()));
|
60
61
|
},
|
61
62
|
{ threshold: [0, 1] }
|
62
63
|
);
|
63
|
-
const
|
64
|
+
const q = v(() => ({
|
64
65
|
"bb-base-date-picker-input": !0,
|
65
66
|
"bb-base-date-picker-input--active": k.value,
|
66
67
|
"bb-base-date-picker-input--errors": t.hasErrors,
|
67
68
|
"bb-base-date-picker-input--loading": t.loading,
|
68
69
|
"bb-base-date-picker-input--readonly": t.readonly,
|
69
70
|
"bb-base-date-picker-input--disabled": t.disabled
|
70
|
-
})),
|
71
|
+
})), G = {
|
71
72
|
onInput: (e) => {
|
72
73
|
if (!t.range && e.target instanceof HTMLInputElement)
|
73
74
|
if (y.value = e.target.value, /\d{2}\/\d{2}\/\d{4}/.test(e.target.value)) {
|
74
|
-
const a =
|
75
|
-
|
75
|
+
const a = r(e.target.value, "DD/MM/YYYY");
|
76
|
+
x(a) ? (e.target.value = "", s("update:modelValue", null), s("error", "invalid_date_typed")) : s("update:modelValue", a.toISOString());
|
76
77
|
} else e.target.value === "" && s("update:modelValue", null);
|
77
78
|
}
|
78
|
-
}, k = o(!1),
|
79
|
+
}, k = o(!1), P = () => {
|
79
80
|
k.value || (s("active"), k.value = !0, document.addEventListener("focusin", M), document.addEventListener("click", M));
|
80
81
|
}, M = (e) => {
|
81
82
|
var a, l;
|
@@ -84,34 +85,34 @@ const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
84
85
|
if (e)
|
85
86
|
if (Array.isArray(e)) {
|
86
87
|
let a, l;
|
87
|
-
return e.length && (a = e[0]), e.length > 1 && (l =
|
88
|
+
return e.length && (a = e[0]), e.length > 1 && (l = fe(e)), [a, l].filter(me).map((ee) => r(ee).format("DD/MM/YYYY")).join(" - ");
|
88
89
|
} else
|
89
|
-
return
|
90
|
+
return r(e).format("DD/MM/YYYY");
|
90
91
|
return null;
|
91
|
-
},
|
92
|
-
|
92
|
+
}, H = v(() => y.value ? y.value : S(t.modelValue));
|
93
|
+
ae(
|
93
94
|
() => t.modelValue,
|
94
95
|
(e) => {
|
95
96
|
y.value = S(e);
|
96
97
|
}
|
97
98
|
);
|
98
|
-
const { floatingStyles: N, placement:
|
99
|
+
const { floatingStyles: N, placement: T } = se(p, u, {
|
99
100
|
placement: "bottom",
|
100
101
|
whileElementsMounted: De,
|
101
|
-
middleware: [Se(), $e(5),
|
102
|
-
}),
|
102
|
+
middleware: [Se(), $e(5), _e({ padding: 6 }), Oe()]
|
103
|
+
}), U = v(() => {
|
103
104
|
const e = {
|
104
105
|
...N.value
|
105
106
|
};
|
106
107
|
return u.value, e;
|
107
|
-
}), m = o(!1),
|
108
|
+
}), m = o(!1), K = async () => {
|
108
109
|
m.value = !0;
|
109
110
|
}, h = async () => {
|
110
111
|
var e;
|
111
112
|
m.value = !1, (e = A.value) == null || e.resetStatus();
|
112
|
-
}, $ = o(!1),
|
113
|
-
f.value || ($.value = !0, await
|
114
|
-
}, f = o(!1), { activate:
|
113
|
+
}, $ = o(!1), _ = async () => {
|
114
|
+
f.value || ($.value = !0, await he(() => !!u.value), await K(), R());
|
115
|
+
}, f = o(!1), { activate: R, deactivate: O } = be(u, {
|
115
116
|
onActivate: () => f.value = !0,
|
116
117
|
// On post activation focus on current date
|
117
118
|
onPostActivate: () => {
|
@@ -121,183 +122,183 @@ const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska",
|
|
121
122
|
)) == null || e.focus();
|
122
123
|
},
|
123
124
|
onPostDeactivate: async () => {
|
124
|
-
await
|
125
|
+
await Me(200), f.value = !1;
|
125
126
|
},
|
126
127
|
/* On esc deactivate the trap, return focus and then close the modal */
|
127
128
|
escapeDeactivates: () => (b.value = !1, h(), !0),
|
128
129
|
clickOutsideDeactivates: () => (b.value = !1, h(), !0),
|
129
130
|
allowOutsideClick: !0,
|
130
131
|
preventScroll: !0
|
131
|
-
}), b = o(!t.allowWriting || t.range),
|
132
|
-
s("focus", e), b.value &&
|
133
|
-
},
|
132
|
+
}), b = o(!t.allowWriting || t.range), Z = async (e) => {
|
133
|
+
s("focus", e), b.value && _(), b.value = !t.allowWriting || t.allowWriting === "not-mobile" && D.value || t.range;
|
134
|
+
}, J = (e) => t.range && Array.isArray(e) && e.length === 2 || !t.range && !!e, Q = {
|
134
135
|
"onUpdate:modelValue": (e) => {
|
135
|
-
s("update:modelValue", e),
|
136
|
+
s("update:modelValue", e), J(e) && (b.value = !1, O({
|
136
137
|
onPostDeactivate: () => {
|
137
138
|
f.value = !1, h();
|
138
139
|
}
|
139
140
|
}));
|
140
141
|
}
|
141
|
-
},
|
142
|
+
}, X = v(() => {
|
142
143
|
if (t.range) {
|
143
144
|
if (!t.modelValue || t.modelValue.length < 2)
|
144
145
|
return "Seleziona un range";
|
145
|
-
const e =
|
146
|
+
const e = r(t.modelValue[0]).format("D MMMM YYYY"), a = r(t.modelValue[1]).format("D MMMM YYYY");
|
146
147
|
if (t.range && t.modelValue.length === 2)
|
147
148
|
return `Cambia selezione, da ${e} a ${a}`;
|
148
149
|
} else if (typeof t.modelValue == "string")
|
149
|
-
return `Cambia selezione, ${
|
150
|
+
return `Cambia selezione, ${r(t.modelValue).format("D MMMM YYYY")}`;
|
150
151
|
return "Seleziona una data";
|
151
|
-
}),
|
152
|
+
}), x = (e) => {
|
152
153
|
let a = !0;
|
153
|
-
return t.min && a && (a = e.isSameOrAfter(
|
154
|
+
return t.min && a && (a = e.isSameOrAfter(r(t.min).startOf("day"))), t.max && a && (a = e.isSameOrBefore(r(t.max).startOf("day"))), typeof t.selectable == "function" && a && (a = t.selectable(e.toDate())), !a;
|
154
155
|
};
|
155
|
-
return (e, a) => (w(), V(
|
156
|
+
return (e, a) => (w(), V(Ce, {
|
156
157
|
ref_key: "outerContainer",
|
157
158
|
ref: C,
|
158
|
-
class: B(
|
159
|
-
onFocusin:
|
159
|
+
class: B(q.value),
|
160
|
+
onFocusin: P
|
160
161
|
}, {
|
161
|
-
"prepend-outer":
|
162
|
+
"prepend-outer": n(() => [
|
162
163
|
d(e.$slots, "prepend-outer")
|
163
164
|
]),
|
164
|
-
"append-outer":
|
165
|
+
"append-outer": n(() => [
|
165
166
|
d(e.$slots, "append-outer")
|
166
167
|
]),
|
167
|
-
default:
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
168
|
+
default: n(() => [
|
169
|
+
E(Ve, {
|
170
|
+
ref_key: "innerContainer",
|
171
|
+
ref: p,
|
172
|
+
"append:icon": t["append:icon"],
|
173
|
+
"prepend:icon": t["prepend:icon"]
|
174
|
+
}, {
|
175
|
+
prepend: n(() => [
|
176
|
+
d(e.$slots, "prepend")
|
177
|
+
]),
|
178
|
+
prefix: n(() => [
|
179
|
+
d(e.$slots, "prefix")
|
180
|
+
]),
|
181
|
+
append: n(() => [
|
182
|
+
d(e.$slots, "append")
|
183
|
+
]),
|
184
|
+
suffix: n(() => [
|
185
|
+
d(e.$slots, "suffix")
|
186
|
+
]),
|
187
|
+
default: n(() => [
|
188
|
+
oe(i("input", I({
|
189
|
+
id: c(g),
|
190
|
+
ref_key: "input",
|
191
|
+
ref: z,
|
192
|
+
"aria-describedby": `bdpi_description_${c(g)}`,
|
193
|
+
autocomplete: e.autocomplete,
|
194
|
+
autofocus: e.autofocus,
|
195
|
+
"data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
196
|
+
disabled: e.disabled,
|
197
|
+
inputmode: j.value,
|
198
|
+
name: e.name,
|
199
|
+
placeholder: e.placeholder,
|
200
|
+
readonly: e.readonly || e.range || !e.allowWriting,
|
201
|
+
required: e.required
|
202
|
+
}, G, {
|
203
|
+
size: "1",
|
204
|
+
type: "text",
|
205
|
+
value: H.value,
|
206
|
+
onFocus: Z
|
207
|
+
}), null, 16, Be), [
|
208
|
+
[c(ke)]
|
178
209
|
]),
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
id: c(g),
|
191
|
-
ref_key: "input",
|
192
|
-
ref: j,
|
193
|
-
"aria-describedby": `bdpi_description_${c(g)}`,
|
194
|
-
autocomplete: e.autocomplete,
|
195
|
-
autofocus: e.autofocus,
|
196
|
-
"data-maska": t.range ? "##/##/#### - ##/##/####" : "##/##/####",
|
197
|
-
disabled: e.disabled,
|
198
|
-
inputmode: q.value,
|
199
|
-
name: e.name,
|
200
|
-
placeholder: e.placeholder,
|
201
|
-
readonly: e.readonly || e.range || !e.allowWriting,
|
202
|
-
required: e.required
|
203
|
-
}, P, {
|
204
|
-
size: "1",
|
205
|
-
type: "text",
|
206
|
-
value: T.value,
|
207
|
-
onFocus: J
|
208
|
-
}), null, 16, Be), [
|
209
|
-
[c(Me)]
|
210
|
-
]),
|
211
|
-
r("button", {
|
212
|
-
class: "bb-base-date-picker-input__calendar-btn",
|
213
|
-
disabled: e.disabled || e.readonly || !Y.value,
|
214
|
-
type: "button",
|
215
|
-
onClick: re(O, ["stop"])
|
210
|
+
i("button", {
|
211
|
+
"aria-label": X.value,
|
212
|
+
class: "bb-base-date-picker-input__calendar-btn",
|
213
|
+
disabled: e.disabled || e.readonly || !Y.value,
|
214
|
+
type: "button",
|
215
|
+
onClick: re(_, ["stop"])
|
216
|
+
}, a[0] || (a[0] = [
|
217
|
+
i("svg", {
|
218
|
+
fill: "none",
|
219
|
+
viewBox: "0 0 16 16",
|
220
|
+
xmlns: "http://www.w3.org/2000/svg"
|
216
221
|
}, [
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
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
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
max:
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
], 6)
|
294
|
-
])) : L("", !0)
|
295
|
-
];
|
296
|
-
}),
|
222
|
+
i("path", {
|
223
|
+
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",
|
224
|
+
stroke: "currentColor",
|
225
|
+
"stroke-linecap": "round",
|
226
|
+
"stroke-linejoin": "round"
|
227
|
+
}),
|
228
|
+
i("path", {
|
229
|
+
d: "M10.6667 1.33333V3.99999",
|
230
|
+
stroke: "currentColor",
|
231
|
+
"stroke-linecap": "round",
|
232
|
+
"stroke-linejoin": "round"
|
233
|
+
}),
|
234
|
+
i("path", {
|
235
|
+
d: "M5.33333 1.33333V3.99999",
|
236
|
+
stroke: "currentColor",
|
237
|
+
"stroke-linecap": "round",
|
238
|
+
"stroke-linejoin": "round"
|
239
|
+
}),
|
240
|
+
i("path", {
|
241
|
+
d: "M2 6.66667H14",
|
242
|
+
stroke: "currentColor",
|
243
|
+
"stroke-linecap": "round",
|
244
|
+
"stroke-linejoin": "round"
|
245
|
+
})
|
246
|
+
], -1)
|
247
|
+
]), 8, Ee),
|
248
|
+
i("span", {
|
249
|
+
id: `bdpi_description_${c(g)}`,
|
250
|
+
class: "bb-base-date-picker-input__accessible-description sr-only"
|
251
|
+
}, "Formato della data " + ne(t.range ? "GG/MM/AAAA - GG/MM/AAAA" : "GG/MM/AAAA"), 9, Ie)
|
252
|
+
]),
|
253
|
+
_: 3
|
254
|
+
}, 8, ["append:icon", "prepend:icon"]),
|
255
|
+
$.value ? (w(), V(Ae, { key: 0 }, {
|
256
|
+
default: n(() => {
|
257
|
+
var l;
|
258
|
+
return [
|
259
|
+
i("span", {
|
260
|
+
ref_key: "calendar",
|
261
|
+
ref: u,
|
262
|
+
class: B(["bb-base-date-picker-input__calendar", {
|
263
|
+
"bb-base-date-picker-input__calendar--shown": m.value
|
264
|
+
}]),
|
265
|
+
style: le(U.value)
|
266
|
+
}, [
|
267
|
+
E(Ye, {
|
268
|
+
direction: (l = c(T)) != null && l.includes("top") ? "bottom" : "top",
|
269
|
+
duration: 300
|
270
|
+
}, {
|
271
|
+
default: n(() => [
|
272
|
+
(w(), V(ie, null, [
|
273
|
+
m.value ? (w(), V(we, I({
|
274
|
+
key: 0,
|
275
|
+
id: c(g)
|
276
|
+
}, Q, {
|
277
|
+
ref_key: "basedatepicker",
|
278
|
+
ref: A,
|
279
|
+
disabled: e.disabled,
|
280
|
+
"first-day-of-week": e.firstDayOfWeek,
|
281
|
+
max: e.max,
|
282
|
+
min: e.min,
|
283
|
+
"model-value": e.modelValue,
|
284
|
+
range: e.range,
|
285
|
+
readonly: e.readonly,
|
286
|
+
selectable: e.selectable
|
287
|
+
}), null, 16, ["id", "disabled", "first-day-of-week", "max", "min", "model-value", "range", "readonly", "selectable"])) : F("", !0)
|
288
|
+
], 1024))
|
289
|
+
]),
|
290
|
+
_: 1
|
291
|
+
}, 8, ["direction"])
|
292
|
+
], 6)
|
293
|
+
];
|
294
|
+
}),
|
295
|
+
_: 1
|
296
|
+
})) : F("", !0)
|
297
|
+
]),
|
297
298
|
_: 3
|
298
299
|
}, 8, ["class"]));
|
299
300
|
}
|
300
301
|
});
|
301
302
|
export {
|
302
|
-
|
303
|
+
nt as default
|
303
304
|
};
|
package/dist/index230.js
CHANGED
@@ -1,5 +1,86 @@
|
|
1
|
-
import r from "
|
2
|
-
const
|
1
|
+
import { defineComponent as b, openBlock as t, createElementBlock as n, normalizeClass as r, createElementVNode as l, renderSlot as s, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
|
2
|
+
const p = { class: "bb-cr-container__container" }, u = {
|
3
|
+
key: 0,
|
4
|
+
class: "bb-cr-container__loading-container"
|
5
|
+
}, g = {
|
6
|
+
key: 1,
|
7
|
+
class: "bb-cr-container__no-data-container"
|
8
|
+
}, f = /* @__PURE__ */ b({
|
9
|
+
__name: "OptionsContainer",
|
10
|
+
props: {
|
11
|
+
direction: {},
|
12
|
+
hasErrors: { type: Boolean },
|
13
|
+
hideLabel: { type: Boolean },
|
14
|
+
loadingText: {},
|
15
|
+
loading: { type: Boolean },
|
16
|
+
noDataText: {},
|
17
|
+
options: {}
|
18
|
+
},
|
19
|
+
setup(k) {
|
20
|
+
return (a, y) => (t(), n("span", {
|
21
|
+
ref: "container",
|
22
|
+
class: r(["bb-cr-container", {
|
23
|
+
"bb-cr-container--errors": a.hasErrors,
|
24
|
+
"bb-cr-container--horizontal": a.direction === "horizontal",
|
25
|
+
"bb-cr-container--vertical": a.direction === "vertical"
|
26
|
+
}])
|
27
|
+
}, [
|
28
|
+
l("span", p, [
|
29
|
+
s(a.$slots, "prepend"),
|
30
|
+
!a.options.length && a.loading ? (t(), n("span", u, [
|
31
|
+
s(a.$slots, "loading", {}, () => [
|
32
|
+
o(d(a.loadingText), 1)
|
33
|
+
])
|
34
|
+
])) : a.options.length ? h("", !0) : (t(), n("span", g, [
|
35
|
+
s(a.$slots, "no-data", {}, () => [
|
36
|
+
o(d(a.noDataText), 1)
|
37
|
+
])
|
38
|
+
])),
|
39
|
+
(t(!0), n(c, null, m(a.options, (e, i) => (t(), n(c, {
|
40
|
+
key: (e == null ? void 0 : e.valueHash) || i
|
41
|
+
}, [
|
42
|
+
s(a.$slots, "option:prepend", {
|
43
|
+
id: e.valueHash,
|
44
|
+
checked: !!e.selected,
|
45
|
+
disabled: !!e.disabled,
|
46
|
+
item: e.item,
|
47
|
+
text: e.text
|
48
|
+
}),
|
49
|
+
l("label", {
|
50
|
+
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
51
|
+
}, [
|
52
|
+
s(a.$slots, "input", {
|
53
|
+
index: i,
|
54
|
+
option: e
|
55
|
+
}),
|
56
|
+
l("span", {
|
57
|
+
class: r({
|
58
|
+
"bb-cr-container-option__text": !0,
|
59
|
+
"sr-only": a.hideLabel
|
60
|
+
})
|
61
|
+
}, [
|
62
|
+
s(a.$slots, "label", {
|
63
|
+
checked: !!e.selected,
|
64
|
+
item: e.item,
|
65
|
+
text: e.text
|
66
|
+
}, () => [
|
67
|
+
o(d(e.text), 1)
|
68
|
+
])
|
69
|
+
], 2)
|
70
|
+
], 2),
|
71
|
+
s(a.$slots, "option:append", {
|
72
|
+
id: e.valueHash,
|
73
|
+
checked: !!e.selected,
|
74
|
+
disabled: !!e.disabled,
|
75
|
+
item: e.item,
|
76
|
+
text: e.text
|
77
|
+
})
|
78
|
+
], 64))), 128)),
|
79
|
+
s(a.$slots, "append")
|
80
|
+
])
|
81
|
+
], 2));
|
82
|
+
}
|
83
|
+
});
|
3
84
|
export {
|
4
|
-
|
85
|
+
f as default
|
5
86
|
};
|