@agrotools1/at-components 0.6.98-test-32 → 0.6.98-test-34
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/DataTable/Column/Column.vue.js +6 -6
- package/dist/DataTable/Column/Column.vue2.js +10 -8
- package/dist/DataTable/Column/Column.vue3.js +2 -2
- package/dist/DataTable/DataTable.d.ts +9 -0
- package/dist/DataTable/DataTable.vue.js +22 -19
- package/dist/DataTable/DataTable.vue2.js +12 -8
- package/dist/DataTable/index.d.ts +9 -0
- package/dist/DatePicker/DatePicker.d.ts +11 -0
- package/dist/DatePicker/DatePicker.helper.d.ts +1 -0
- package/dist/DatePicker/DatePicker.vue.js +19 -18
- package/dist/DatePicker/DatePicker.vue2.js +58 -34
- package/dist/Dropdown/Dropdown.core.d.ts +9 -0
- package/dist/Dropdown/Dropdown.core.vue.js +4 -4
- package/dist/Dropdown/Dropdown.core.vue2.js +34 -30
- package/dist/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/Filter/Filter.vue.js +39 -38
- package/dist/Filter/Filter.vue2.js +26 -26
- package/dist/Filter/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +11 -0
- package/dist/Modal/Modal.vue.js +32 -31
- package/dist/Modal/Modal.vue2.js +5 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as U, ref as
|
|
1
|
+
import { defineComponent as U, ref as r, computed as u, watch as m } from "vue";
|
|
2
2
|
import z from "../Button/Button.vue.js";
|
|
3
3
|
import G from "../Input/Input.core.vue.js";
|
|
4
|
-
import { monthTranslationObj as
|
|
4
|
+
import { monthTranslationObj as b, weekInitialsObject as L, cancelTranslation as J, saveTranslation as K, isUsing12HourFormat as Q, placeholderTranslation as M } from "./DatePicker.helper.js";
|
|
5
5
|
import W from "../Dropdown/Dropdown.core.vue.js";
|
|
6
6
|
import X from "./DatePickerCalendar/DatePickerCalendar.vue.js";
|
|
7
7
|
import Z from "./DatePickerHeader/DatePickerHeader.vue.js";
|
|
8
8
|
import p from "./DatePickerListSelector/DatePickerListSelector.vue.js";
|
|
9
9
|
import ee from "./DatePickerTime/DatePickerTime.vue.js";
|
|
10
|
-
const
|
|
10
|
+
const de = U({
|
|
11
11
|
name: "AtDatePicker",
|
|
12
12
|
components: {
|
|
13
13
|
AtButton: z,
|
|
@@ -33,6 +33,11 @@ const ce = U({
|
|
|
33
33
|
default: "",
|
|
34
34
|
required: !1
|
|
35
35
|
},
|
|
36
|
+
placeholder: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "",
|
|
39
|
+
required: !1
|
|
40
|
+
},
|
|
36
41
|
disabled: {
|
|
37
42
|
required: !1,
|
|
38
43
|
type: Boolean,
|
|
@@ -97,60 +102,79 @@ const ce = U({
|
|
|
97
102
|
},
|
|
98
103
|
emits: ["update:value", "confirmBoxConfirmed"],
|
|
99
104
|
setup(e, T) {
|
|
100
|
-
const k = /* @__PURE__ */ new Date(),
|
|
101
|
-
() =>
|
|
105
|
+
const k = /* @__PURE__ */ new Date(), s = r({ ...e.value }), o = r(e.forceFocus), i = r(/* @__PURE__ */ new Date()), v = r("calendar"), q = u(() => i.value.getMonth() + 1), D = u(() => i.value.getFullYear()), w = r(""), y = r(-1), d = r(D.value), H = r(null), c = r(!1), B = r(!1), h = u(() => b && e.setLanguage in b ? b[e.setLanguage] : []), P = u(
|
|
106
|
+
() => h.value.map((t, a) => ({
|
|
102
107
|
name: t.slice(0, 3),
|
|
103
|
-
value: `${
|
|
108
|
+
value: `${d.value}-${a + 1}`
|
|
104
109
|
}))
|
|
105
|
-
), A =
|
|
110
|
+
), A = r(
|
|
106
111
|
Array.from({ length: 101 }, () => k.getFullYear() - 50).map(
|
|
107
112
|
(t, a) => ({
|
|
108
113
|
name: String(t + a),
|
|
109
114
|
value: String(t + a)
|
|
110
115
|
})
|
|
111
116
|
)
|
|
112
|
-
), R =
|
|
117
|
+
), R = u(() => L && e.setLanguage in L ? L[e.setLanguage] : []), C = u(() => ({
|
|
113
118
|
cancel: J[e.setLanguage],
|
|
114
119
|
save: K[e.setLanguage]
|
|
115
|
-
})), Y =
|
|
120
|
+
})), Y = u(() => {
|
|
116
121
|
const t = () => e.label ? "" : e.useRange ? M[e.setLanguage].dateStart : M[e.setLanguage].date, a = (l) => {
|
|
117
|
-
let g = l.toLocaleDateString(
|
|
122
|
+
let g = l.toLocaleDateString("en-us", {
|
|
123
|
+
day: "2-digit",
|
|
124
|
+
month: "2-digit",
|
|
125
|
+
year: "numeric"
|
|
126
|
+
});
|
|
118
127
|
if (e.useTimeInput && !e.useRange) {
|
|
119
|
-
const
|
|
120
|
-
|
|
128
|
+
const S = e.force12HourTime ? l.toLocaleTimeString("en-us", {
|
|
129
|
+
day: "2-digit",
|
|
130
|
+
month: "2-digit",
|
|
131
|
+
year: "numeric"
|
|
132
|
+
}) : (
|
|
133
|
+
// add zero padding to hours
|
|
134
|
+
l.toLocaleTimeString("en-us", {
|
|
135
|
+
day: "2-digit",
|
|
136
|
+
month: "2-digit",
|
|
137
|
+
year: "numeric"
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
g += ` ${S}`;
|
|
121
141
|
}
|
|
122
142
|
return g;
|
|
123
|
-
}, n = (l) => l ? ` - ${l.toLocaleDateString(
|
|
143
|
+
}, n = (l) => l ? ` - ${l.toLocaleDateString("en-us", {
|
|
144
|
+
day: "2-digit",
|
|
145
|
+
month: "2-digit",
|
|
146
|
+
year: "numeric"
|
|
147
|
+
})}` : e.label ? "" : ` - ${M[e.setLanguage].dateEnd}`;
|
|
124
148
|
if (B.value || o.value || e.value.startDate) {
|
|
125
|
-
const l = e.useConfirmBox ?
|
|
126
|
-
return g +
|
|
149
|
+
const l = e.useConfirmBox ? s.value : e.value, g = l.startDate ? a(l.startDate) : t(), S = e.useRange ? n(l.endDate) : "";
|
|
150
|
+
return g + S;
|
|
127
151
|
}
|
|
128
152
|
return "";
|
|
129
|
-
}), x =
|
|
130
|
-
const n = new Date(
|
|
131
|
-
v.value === "calendar" ? a ? n.setMonth(n.getMonth() + t) : n.setMonth(t - 1) : v.value === "monthSelector" ? a ?
|
|
153
|
+
}), x = u(() => Q() || e.force12HourTime), O = (t, a = !1) => {
|
|
154
|
+
const n = new Date(i.value);
|
|
155
|
+
v.value === "calendar" ? a ? n.setMonth(n.getMonth() + t) : n.setMonth(t - 1) : v.value === "monthSelector" ? a ? d.value += t : d.value = t : a ? y.value += t : y.value = t, i.value = n;
|
|
132
156
|
}, $ = (t) => {
|
|
133
157
|
const a = t.split("-").map((n) => Number.parseInt(n));
|
|
134
158
|
if (a.length > 0) {
|
|
135
|
-
const n = new Date(
|
|
136
|
-
n.setFullYear(a[0]), a.length > 1 && n.setMonth(a[1] - 1),
|
|
159
|
+
const n = new Date(i.value);
|
|
160
|
+
n.setFullYear(a[0]), a.length > 1 && n.setMonth(a[1] - 1), i.value = n;
|
|
137
161
|
}
|
|
138
|
-
}, j = (t) => t >= 1 && t <=
|
|
162
|
+
}, j = (t) => t >= 1 && t <= h.value.length ? h.value[t - 1] : String(t), f = (t, a = !1) => {
|
|
139
163
|
if (a || !e.useConfirmBox) {
|
|
140
164
|
const n = e.value;
|
|
141
165
|
n.startDate = t.startDate, n.endDate = t.endDate, T.emit("update:value", n), (!e.useTimeInput && n.endDate || a) && (o.value = !1);
|
|
142
166
|
}
|
|
143
|
-
|
|
167
|
+
s.value = { ...t };
|
|
144
168
|
}, F = (t) => {
|
|
145
169
|
e.disabled || (o.value = t, t || e.useRange && !e.value.endDate && I());
|
|
146
170
|
}, N = () => {
|
|
147
|
-
|
|
171
|
+
c.value || F(!1);
|
|
148
172
|
}, V = () => {
|
|
149
|
-
|
|
173
|
+
c.value = !0, setTimeout(() => c.value = !1, 100);
|
|
150
174
|
}, _ = () => {
|
|
151
|
-
|
|
175
|
+
f(s.value, !0), T.emit("confirmBoxConfirmed");
|
|
152
176
|
}, I = () => {
|
|
153
|
-
|
|
177
|
+
f(
|
|
154
178
|
{
|
|
155
179
|
startDate: null,
|
|
156
180
|
endDate: null
|
|
@@ -169,7 +193,7 @@ const ce = U({
|
|
|
169
193
|
startDate: new Date(e.value.startDate),
|
|
170
194
|
endDate: new Date(e.value.endDate)
|
|
171
195
|
};
|
|
172
|
-
(a = l.startDate) == null || a.setHours(0), (n = l.startDate) == null || n.setMinutes(0), l.endDate = t ? null : l.startDate,
|
|
196
|
+
(a = l.startDate) == null || a.setHours(0), (n = l.startDate) == null || n.setMinutes(0), l.endDate = t ? null : l.startDate, s.value = { ...l }, f(l, !0);
|
|
173
197
|
}
|
|
174
198
|
}
|
|
175
199
|
), m(
|
|
@@ -183,28 +207,28 @@ const ce = U({
|
|
|
183
207
|
o.value = t;
|
|
184
208
|
}
|
|
185
209
|
), m(D, (t) => {
|
|
186
|
-
|
|
210
|
+
d.value = t;
|
|
187
211
|
}), {
|
|
188
212
|
displayModal: o,
|
|
189
|
-
auxValue:
|
|
213
|
+
auxValue: s,
|
|
190
214
|
datePickerMode: v,
|
|
191
215
|
confirmInput: _,
|
|
192
216
|
currentMonth: q,
|
|
193
217
|
currentYear: D,
|
|
194
218
|
currentYearRange: w,
|
|
195
219
|
currentYearPageIndex: y,
|
|
196
|
-
selectedMonthYear:
|
|
220
|
+
selectedMonthYear: d,
|
|
197
221
|
monthList: P,
|
|
198
222
|
yearList: A,
|
|
199
|
-
clickedOnModal:
|
|
223
|
+
clickedOnModal: c,
|
|
200
224
|
display12HourFormat: x,
|
|
201
225
|
updateDatePeriod: O,
|
|
202
226
|
updateMonthYear: $,
|
|
203
227
|
displayValue: Y,
|
|
204
|
-
currentMenuDate:
|
|
228
|
+
currentMenuDate: i,
|
|
205
229
|
getMonthName: j,
|
|
206
230
|
weekInitials: R,
|
|
207
|
-
updateValue:
|
|
231
|
+
updateValue: f,
|
|
208
232
|
updateFocus: F,
|
|
209
233
|
buttonNames: C,
|
|
210
234
|
coreInput: H,
|
|
@@ -217,5 +241,5 @@ const ce = U({
|
|
|
217
241
|
}
|
|
218
242
|
});
|
|
219
243
|
export {
|
|
220
|
-
|
|
244
|
+
de as default
|
|
221
245
|
};
|
|
@@ -17,6 +17,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
type: PropType<boolean | undefined>;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
+
preventClickOutside: {
|
|
21
|
+
type: PropType<boolean | undefined>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
20
24
|
id: {
|
|
21
25
|
type: PropType<string | undefined>;
|
|
22
26
|
default: string;
|
|
@@ -47,6 +51,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
47
51
|
type: PropType<boolean | undefined>;
|
|
48
52
|
default: boolean;
|
|
49
53
|
};
|
|
54
|
+
preventClickOutside: {
|
|
55
|
+
type: PropType<boolean | undefined>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
50
58
|
id: {
|
|
51
59
|
type: PropType<string | undefined>;
|
|
52
60
|
default: string;
|
|
@@ -59,5 +67,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
59
67
|
position: "left" | "right";
|
|
60
68
|
fullSize: boolean | undefined;
|
|
61
69
|
teleportToBody: boolean | undefined;
|
|
70
|
+
preventClickOutside: boolean | undefined;
|
|
62
71
|
}, {}>;
|
|
63
72
|
export default _default;
|
|
@@ -4,7 +4,7 @@ import "./Dropdown.core.vue3.js";
|
|
|
4
4
|
import y from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const $ = { class: "container-dialog" }, v = ["id"];
|
|
6
6
|
function D(e, t, k, B, w, E) {
|
|
7
|
-
const
|
|
7
|
+
const d = g("DropdownContent");
|
|
8
8
|
return o(), r("section", $, [
|
|
9
9
|
l("div", {
|
|
10
10
|
class: i(e.getDialogClass)
|
|
@@ -13,7 +13,7 @@ function D(e, t, k, B, w, E) {
|
|
|
13
13
|
key: 0,
|
|
14
14
|
id: "trigger",
|
|
15
15
|
ref: "triggerElem",
|
|
16
|
-
onClick: t[0] || (t[0] = (...
|
|
16
|
+
onClick: t[0] || (t[0] = (...s) => e.toggleDialog && e.toggleDialog(...s))
|
|
17
17
|
}, [
|
|
18
18
|
n(e.$slots, "trigger", {}, void 0, !0)
|
|
19
19
|
], 512)) : p("", !0),
|
|
@@ -21,7 +21,7 @@ function D(e, t, k, B, w, E) {
|
|
|
21
21
|
to: "body",
|
|
22
22
|
disabled: !e.teleportToBody
|
|
23
23
|
}, [
|
|
24
|
-
f(
|
|
24
|
+
f(d, null, {
|
|
25
25
|
default: u(() => [
|
|
26
26
|
l("div", {
|
|
27
27
|
id: e.id,
|
|
@@ -41,7 +41,7 @@ function D(e, t, k, B, w, E) {
|
|
|
41
41
|
], 2)
|
|
42
42
|
]);
|
|
43
43
|
}
|
|
44
|
-
const T = /* @__PURE__ */ y(a, [["render", D], ["__scopeId", "data-v-
|
|
44
|
+
const T = /* @__PURE__ */ y(a, [["render", D], ["__scopeId", "data-v-7e3ddf63"]]);
|
|
45
45
|
export {
|
|
46
46
|
T as default
|
|
47
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
1
|
+
import { defineComponent as H, ref as n, watch as G, onMounted as J, onUnmounted as K, computed as M } from "vue";
|
|
2
2
|
import Q from "./DropdownContent/DropdownContent.vue.js";
|
|
3
3
|
const V = H({
|
|
4
4
|
name: "AtDropdown",
|
|
@@ -20,84 +20,88 @@ const V = H({
|
|
|
20
20
|
type: Boolean,
|
|
21
21
|
default: !0
|
|
22
22
|
},
|
|
23
|
+
preventClickOutside: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
23
27
|
id: {
|
|
24
28
|
type: String,
|
|
25
29
|
default: ""
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
emits: ["update:isOpen"],
|
|
29
|
-
setup(
|
|
30
|
-
const c =
|
|
31
|
-
c.value =
|
|
32
|
-
const a =
|
|
33
|
-
var S, b,
|
|
34
|
-
y.value = ((
|
|
35
|
-
const e = (
|
|
33
|
+
setup(l, { emit: g }) {
|
|
34
|
+
const c = n(!1);
|
|
35
|
+
c.value = l.isOpen;
|
|
36
|
+
const a = n(), u = n(), s = n(), y = n(0), i = n(), f = n(), d = n(null), r = () => {
|
|
37
|
+
var O, S, b, C, z, B, T, D, E, L, k, W, $;
|
|
38
|
+
y.value = ((O = d.value) == null ? void 0 : O.scrollTop) ?? window.scrollY;
|
|
39
|
+
const e = (b = (S = u.value) == null ? void 0 : S.children[0]) == null ? void 0 : b.querySelector(
|
|
36
40
|
".AT-INPUT_error-message"
|
|
37
|
-
), o = 1 / (Number.parseFloat((
|
|
38
|
-
i.value = (
|
|
41
|
+
), o = 1 / (Number.parseFloat((C = window.getComputedStyle(document.body)) == null ? void 0 : C.zoom) || 1);
|
|
42
|
+
i.value = (z = u.value) == null ? void 0 : z.getBoundingClientRect();
|
|
39
43
|
const N = {
|
|
40
44
|
y: y.value * o
|
|
41
45
|
}, t = {
|
|
42
|
-
top: (((
|
|
46
|
+
top: (((B = i.value) == null ? void 0 : B.top) ?? 0) * o,
|
|
43
47
|
right: (((T = i.value) == null ? void 0 : T.right) ?? 0) * o,
|
|
44
48
|
bottom: (((D = i.value) == null ? void 0 : D.bottom) ?? 0) * o,
|
|
45
49
|
left: (((E = i.value) == null ? void 0 : E.left) ?? 0) * o,
|
|
46
50
|
width: (((L = i.value) == null ? void 0 : L.width) ?? 0) * o,
|
|
47
|
-
height: (((
|
|
51
|
+
height: (((k = i.value) == null ? void 0 : k.height) ?? 0) * o
|
|
48
52
|
}, x = ((t == null ? void 0 : t.bottom) ?? 0) + ((e == null ? void 0 : e.clientHeight) ?? 0) + 8 + A(N), U = {
|
|
49
53
|
left: () => {
|
|
50
|
-
var
|
|
51
|
-
|
|
54
|
+
var v, p;
|
|
55
|
+
s.value = {
|
|
52
56
|
x: (t == null ? void 0 : t.left) ?? 0,
|
|
53
57
|
y: x
|
|
54
58
|
}, f.value = {
|
|
55
|
-
top: `${((
|
|
56
|
-
left: `${((p =
|
|
59
|
+
top: `${((v = s.value) == null ? void 0 : v.y) || 0}px`,
|
|
60
|
+
left: `${((p = s.value) == null ? void 0 : p.x) || 0}px`,
|
|
57
61
|
zIndex: "2147483641",
|
|
58
62
|
position: "absolute"
|
|
59
63
|
};
|
|
60
64
|
},
|
|
61
65
|
right: () => {
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
x: ((t == null ? void 0 : t.left) ?? 0) - ((((
|
|
66
|
+
var v, p, I, P;
|
|
67
|
+
s.value = {
|
|
68
|
+
x: ((t == null ? void 0 : t.left) ?? 0) - ((((v = a.value) == null ? void 0 : v.clientWidth) ?? 0) - (((p = u.value) == null ? void 0 : p.clientWidth) ?? 0)),
|
|
65
69
|
y: x
|
|
66
70
|
}, f.value = {
|
|
67
|
-
top: `${((
|
|
68
|
-
left: `${((
|
|
71
|
+
top: `${((I = s.value) == null ? void 0 : I.y) || 0}px`,
|
|
72
|
+
left: `${((P = s.value) == null ? void 0 : P.x) || 0}px`,
|
|
69
73
|
zIndex: "2147483641",
|
|
70
74
|
position: "absolute"
|
|
71
75
|
};
|
|
72
76
|
}
|
|
73
|
-
}, F = window.innerWidth - ((t == null ? void 0 : t.right) ?? 0) <= (((
|
|
74
|
-
U[F](),
|
|
75
|
-
}, A = (e) =>
|
|
77
|
+
}, F = window.innerWidth - ((t == null ? void 0 : t.right) ?? 0) <= (((W = a.value) == null ? void 0 : W.offsetWidth) ?? 0) ? "right" : l.position;
|
|
78
|
+
U[F](), l.fullSize && (f.value.width = `${(($ = u.value) == null ? void 0 : $.clientWidth) ?? 0}px`);
|
|
79
|
+
}, A = (e) => d.value ? 0 : e.y;
|
|
76
80
|
G(
|
|
77
|
-
() =>
|
|
81
|
+
() => l.isOpen,
|
|
78
82
|
(e) => {
|
|
79
83
|
c.value = e, e && setTimeout(() => {
|
|
80
|
-
|
|
84
|
+
l.teleportToBody && r();
|
|
81
85
|
}, 10);
|
|
82
86
|
}
|
|
83
87
|
);
|
|
84
88
|
const Y = async () => g("update:isOpen", !0), h = async () => g("update:isOpen", !1), w = (e) => {
|
|
85
89
|
var m, o;
|
|
86
|
-
c.value && !((m = a == null ? void 0 : a.value) != null && m.contains(e.target)) && !((o =
|
|
90
|
+
l.preventClickOutside || c.value && !((m = a == null ? void 0 : a.value) != null && m.contains(e.target)) && !((o = u.value) != null && o.contains(e.target)) && h();
|
|
87
91
|
}, _ = () => g("update:isOpen", !c.value);
|
|
88
92
|
J(() => {
|
|
89
93
|
var e;
|
|
90
|
-
document.addEventListener("click", w),
|
|
94
|
+
document.addEventListener("click", w), l.teleportToBody && (window.addEventListener("resize", r), d.value = document.querySelector(".at-scrollable-container") || null, (e = d.value) == null || e.addEventListener("scroll", r), r());
|
|
91
95
|
}), K(() => {
|
|
92
96
|
var e;
|
|
93
|
-
document.removeEventListener("click", w),
|
|
97
|
+
document.removeEventListener("click", w), l.teleportToBody && (window.removeEventListener("resize", r), (e = d.value) == null || e.removeEventListener("scroll", r));
|
|
94
98
|
});
|
|
95
99
|
const q = M(() => ["dialog"]);
|
|
96
100
|
return {
|
|
97
101
|
dialogIsOpen: c,
|
|
98
102
|
getDialogClass: q,
|
|
99
103
|
dialogElem: a,
|
|
100
|
-
triggerElem:
|
|
104
|
+
triggerElem: u,
|
|
101
105
|
dialogStyle: f,
|
|
102
106
|
toggleDialog: _,
|
|
103
107
|
openDialog: Y,
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as m, openBlock as t, createElementBlock as s, createVNode as l, withCtx as n, createElementVNode as a, createTextVNode as d, toDisplayString as i, createCommentVNode as I, renderSlot as
|
|
1
|
+
import S from "./Filter.vue2.js";
|
|
2
|
+
import { resolveComponent as m, openBlock as t, createElementBlock as s, createVNode as l, withCtx as n, createElementVNode as a, createTextVNode as d, toDisplayString as i, createCommentVNode as I, renderSlot as D, Fragment as k, renderList as b, pushScopeId as T, popScopeId as $ } from "vue";
|
|
3
3
|
import "./Filter.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const C = (e) => (T("data-v-4d0535a3"), e = e(), $(), e), F = { class: "d-flex align-items-center gap-2" }, U = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "badge"
|
|
8
|
-
},
|
|
8
|
+
}, N = { class: "filter" }, O = { class: "at-dropdown-header" }, E = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "at-dropdown-content"
|
|
11
|
-
},
|
|
11
|
+
}, L = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "at-dropdown-content"
|
|
14
|
-
},
|
|
15
|
-
function
|
|
16
|
-
var y;
|
|
17
|
-
const
|
|
14
|
+
}, M = { class: "item" }, P = ["for"], R = /* @__PURE__ */ C(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), j = /* @__PURE__ */ C(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), q = ["for"], G = ["for"], H = { class: "at-dropdown-footer" };
|
|
15
|
+
function J(e, r, K, Q, W, X) {
|
|
16
|
+
var y, A;
|
|
17
|
+
const V = m("AtFilterRegularIcon"), h = m("AtCloseSolidIcon"), c = m("AtParagraph"), f = m("AtButton"), v = m("AtCheckbox"), w = m("AtDropDown");
|
|
18
18
|
return t(), s("div", { key: e.keyValue }, [
|
|
19
|
-
l(
|
|
19
|
+
l(w, {
|
|
20
20
|
id: e.id,
|
|
21
21
|
"is-open": e.isOpen,
|
|
22
22
|
position: (y = e.options) == null ? void 0 : y.position,
|
|
23
|
+
"prevent-click-outside": (A = e.options) == null ? void 0 : A.preventClickOutside,
|
|
23
24
|
"onUpdate:isOpen": r[3] || (r[3] = (u) => e.isOpen = u)
|
|
24
25
|
}, {
|
|
25
26
|
trigger: n(() => [
|
|
26
|
-
l(
|
|
27
|
+
l(f, {
|
|
27
28
|
id: "dropdown-button",
|
|
28
29
|
variant: e.getButtonColor
|
|
29
30
|
}, {
|
|
30
31
|
default: n(() => {
|
|
31
32
|
var u;
|
|
32
33
|
return [
|
|
33
|
-
a("section",
|
|
34
|
-
l(
|
|
34
|
+
a("section", F, [
|
|
35
|
+
l(V, { size: "16" }),
|
|
35
36
|
d(" " + i(((u = e.options) == null ? void 0 : u.buttonText) ?? "Filtros"), 1)
|
|
36
37
|
]),
|
|
37
38
|
e.count > 0 ? (t(), s("span", {
|
|
@@ -44,7 +45,7 @@ function H(e, r, J, K, Q, W) {
|
|
|
44
45
|
onClick: e.closeDialog
|
|
45
46
|
}, null, 8, ["onClick"])
|
|
46
47
|
])) : I("", !0),
|
|
47
|
-
e.count > 0 ? (t(), s("span",
|
|
48
|
+
e.count > 0 ? (t(), s("span", U, [
|
|
48
49
|
l(c, { size: "p3" }, {
|
|
49
50
|
default: n(() => [
|
|
50
51
|
d(i(e.count), 1)
|
|
@@ -60,8 +61,8 @@ function H(e, r, J, K, Q, W) {
|
|
|
60
61
|
default: n(() => {
|
|
61
62
|
var u;
|
|
62
63
|
return [
|
|
63
|
-
a("div",
|
|
64
|
-
a("div",
|
|
64
|
+
a("div", N, [
|
|
65
|
+
a("div", O, [
|
|
65
66
|
l(c, {
|
|
66
67
|
size: "p1",
|
|
67
68
|
weight: "bold"
|
|
@@ -82,11 +83,11 @@ function H(e, r, J, K, Q, W) {
|
|
|
82
83
|
l(h, { size: "20" })
|
|
83
84
|
])
|
|
84
85
|
]),
|
|
85
|
-
e.withSlot ? (t(), s("div",
|
|
86
|
-
|
|
87
|
-
])) : (t(), s("div",
|
|
88
|
-
(u = e.options) != null && u.checkAllText ? (t(), s(
|
|
89
|
-
a("div",
|
|
86
|
+
e.withSlot ? (t(), s("div", E, [
|
|
87
|
+
D(e.$slots, "default", {}, void 0, !0)
|
|
88
|
+
])) : (t(), s("div", L, [
|
|
89
|
+
(u = e.options) != null && u.checkAllText ? (t(), s(k, { key: 0 }, [
|
|
90
|
+
a("div", M, [
|
|
90
91
|
l(v, {
|
|
91
92
|
id: e.getItemId({ text: "checkAll", value: !1 }),
|
|
92
93
|
modelValue: e.checkAllModel,
|
|
@@ -108,11 +109,11 @@ function H(e, r, J, K, Q, W) {
|
|
|
108
109
|
}),
|
|
109
110
|
_: 1
|
|
110
111
|
})
|
|
111
|
-
], 8,
|
|
112
|
+
], 8, P)
|
|
112
113
|
]),
|
|
113
|
-
|
|
114
|
+
R
|
|
114
115
|
], 64)) : I("", !0),
|
|
115
|
-
(t(!0), s(
|
|
116
|
+
(t(!0), s(k, null, b(e.listSeparator, (o, g) => (t(), s("div", {
|
|
116
117
|
key: `${g}`,
|
|
117
118
|
class: "item-separator"
|
|
118
119
|
}, [
|
|
@@ -125,15 +126,15 @@ function H(e, r, J, K, Q, W) {
|
|
|
125
126
|
]),
|
|
126
127
|
_: 2
|
|
127
128
|
}, 1024),
|
|
128
|
-
|
|
129
|
-
(t(!0), s(
|
|
130
|
-
key: `${
|
|
129
|
+
j,
|
|
130
|
+
(t(!0), s(k, null, b(o.value, (p, _) => (t(), s("div", {
|
|
131
|
+
key: `${_}`,
|
|
131
132
|
class: "item"
|
|
132
133
|
}, [
|
|
133
134
|
l(v, {
|
|
134
135
|
id: e.getItemId(p),
|
|
135
136
|
modelValue: p.value,
|
|
136
|
-
"onUpdate:modelValue": (
|
|
137
|
+
"onUpdate:modelValue": (z) => p.value = z,
|
|
137
138
|
labelledby: e.getItemId(p),
|
|
138
139
|
size: "12"
|
|
139
140
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "labelledby"]),
|
|
@@ -147,10 +148,10 @@ function H(e, r, J, K, Q, W) {
|
|
|
147
148
|
]),
|
|
148
149
|
_: 2
|
|
149
150
|
}, 1024)
|
|
150
|
-
], 8,
|
|
151
|
+
], 8, q)
|
|
151
152
|
]))), 128))
|
|
152
153
|
]))), 128)),
|
|
153
|
-
(t(!0), s(
|
|
154
|
+
(t(!0), s(k, null, b(e.listArray, (o, g) => (t(), s("div", {
|
|
154
155
|
key: `${g}`,
|
|
155
156
|
class: "item"
|
|
156
157
|
}, [
|
|
@@ -171,11 +172,11 @@ function H(e, r, J, K, Q, W) {
|
|
|
171
172
|
]),
|
|
172
173
|
_: 2
|
|
173
174
|
}, 1024)
|
|
174
|
-
], 8,
|
|
175
|
+
], 8, G)
|
|
175
176
|
]))), 128))
|
|
176
177
|
])),
|
|
177
|
-
a("div",
|
|
178
|
-
l(
|
|
178
|
+
a("div", H, [
|
|
179
|
+
l(f, {
|
|
179
180
|
variant: "secondary",
|
|
180
181
|
class: "clear-button w-100",
|
|
181
182
|
onClick: e.clear
|
|
@@ -188,7 +189,7 @@ function H(e, r, J, K, Q, W) {
|
|
|
188
189
|
}),
|
|
189
190
|
_: 1
|
|
190
191
|
}, 8, ["onClick"]),
|
|
191
|
-
l(
|
|
192
|
+
l(f, {
|
|
192
193
|
class: "save-button w-100",
|
|
193
194
|
onClick: e.save
|
|
194
195
|
}, {
|
|
@@ -205,10 +206,10 @@ function H(e, r, J, K, Q, W) {
|
|
|
205
206
|
];
|
|
206
207
|
}),
|
|
207
208
|
_: 3
|
|
208
|
-
}, 8, ["id", "is-open", "position"])
|
|
209
|
+
}, 8, ["id", "is-open", "position", "prevent-click-outside"])
|
|
209
210
|
]);
|
|
210
211
|
}
|
|
211
|
-
const
|
|
212
|
+
const oe = /* @__PURE__ */ B(S, [["render", J], ["__scopeId", "data-v-4d0535a3"]]);
|
|
212
213
|
export {
|
|
213
|
-
|
|
214
|
+
oe as default
|
|
214
215
|
};
|