@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.
@@ -1,13 +1,13 @@
1
- import { defineComponent as U, ref as u, computed as r, watch as m } from "vue";
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 h, weekInitialsObject as L, cancelTranslation as J, saveTranslation as K, isUsing12HourFormat as Q, placeholderTranslation as M } from "./DatePicker.helper.js";
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 ce = U({
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(), i = u({ ...e.value }), o = u(e.forceFocus), s = u(/* @__PURE__ */ new Date()), v = u("calendar"), q = r(() => s.value.getMonth() + 1), D = r(() => s.value.getFullYear()), w = u(""), y = u(-1), c = u(D.value), H = u(null), f = u(!1), B = u(!1), S = r(() => h && e.setLanguage in h ? h[e.setLanguage] : []), P = r(
101
- () => S.value.map((t, a) => ({
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: `${c.value}-${a + 1}`
108
+ value: `${d.value}-${a + 1}`
104
109
  }))
105
- ), A = u(
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 = r(() => L && e.setLanguage in L ? L[e.setLanguage] : []), C = 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 = r(() => {
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 b = e.force12HourTime ? l.toLocaleTimeString("en-us") : l.toLocaleTimeString();
120
- g += ` ${b}`;
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()}` : e.label ? "" : ` - ${M[e.setLanguage].dateEnd}`;
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 ? i.value : e.value, g = l.startDate ? a(l.startDate) : t(), b = e.useRange ? n(l.endDate) : "";
126
- return g + b;
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 = r(() => Q() || e.force12HourTime), O = (t, a = !1) => {
130
- const n = new Date(s.value);
131
- v.value === "calendar" ? a ? n.setMonth(n.getMonth() + t) : n.setMonth(t - 1) : v.value === "monthSelector" ? a ? c.value += t : c.value = t : a ? y.value += t : y.value = t, s.value = n;
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(s.value);
136
- n.setFullYear(a[0]), a.length > 1 && n.setMonth(a[1] - 1), s.value = n;
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 <= S.value.length ? S.value[t - 1] : String(t), d = (t, a = !1) => {
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
- i.value = { ...t };
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
- f.value || F(!1);
171
+ c.value || F(!1);
148
172
  }, V = () => {
149
- f.value = !0, setTimeout(() => f.value = !1, 100);
173
+ c.value = !0, setTimeout(() => c.value = !1, 100);
150
174
  }, _ = () => {
151
- d(i.value, !0), T.emit("confirmBoxConfirmed");
175
+ f(s.value, !0), T.emit("confirmBoxConfirmed");
152
176
  }, I = () => {
153
- d(
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, i.value = { ...l }, d(l, !0);
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
- c.value = t;
210
+ d.value = t;
187
211
  }), {
188
212
  displayModal: o,
189
- auxValue: i,
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: c,
220
+ selectedMonthYear: d,
197
221
  monthList: P,
198
222
  yearList: A,
199
- clickedOnModal: f,
223
+ clickedOnModal: c,
200
224
  display12HourFormat: x,
201
225
  updateDatePeriod: O,
202
226
  updateMonthYear: $,
203
227
  displayValue: Y,
204
- currentMenuDate: s,
228
+ currentMenuDate: i,
205
229
  getMonthName: j,
206
230
  weekInitials: R,
207
- updateValue: d,
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
- ce as default
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 s = g("DropdownContent");
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] = (...d) => e.toggleDialog && e.toggleDialog(...d))
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(s, null, {
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-91f4014e"]]);
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 l, watch as G, onMounted as J, onUnmounted as K, computed as M } from "vue";
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(n, { emit: g }) {
30
- const c = l(!1);
31
- c.value = n.isOpen;
32
- const a = l(), s = l(), u = l(), y = l(0), i = l(), f = l(), v = l(null), r = () => {
33
- var S, b, O, z, B, C, T, D, E, L, W, $, I;
34
- y.value = ((S = v.value) == null ? void 0 : S.scrollTop) ?? window.scrollY;
35
- const e = (O = (b = s.value) == null ? void 0 : b.children[0]) == null ? void 0 : O.querySelector(
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((z = window.getComputedStyle(document.body)) == null ? void 0 : z.zoom) || 1);
38
- i.value = (B = s.value) == null ? void 0 : B.getBoundingClientRect();
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: (((C = i.value) == null ? void 0 : C.top) ?? 0) * o,
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: (((W = i.value) == null ? void 0 : W.height) ?? 0) * o
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 d, p;
51
- u.value = {
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: `${((d = u.value) == null ? void 0 : d.y) || 0}px`,
56
- left: `${((p = u.value) == null ? void 0 : p.x) || 0}px`,
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 d, p, P, k;
63
- u.value = {
64
- x: ((t == null ? void 0 : t.left) ?? 0) - ((((d = a.value) == null ? void 0 : d.clientWidth) ?? 0) - (((p = s.value) == null ? void 0 : p.clientWidth) ?? 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: `${((P = u.value) == null ? void 0 : P.y) || 0}px`,
68
- left: `${((k = u.value) == null ? void 0 : k.x) || 0}px`,
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) <= ((($ = a.value) == null ? void 0 : $.offsetWidth) ?? 0) ? "right" : n.position;
74
- U[F](), n.fullSize && (f.value.width = `${((I = s.value) == null ? void 0 : I.clientWidth) ?? 0}px`);
75
- }, A = (e) => v.value ? 0 : e.y;
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
- () => n.isOpen,
81
+ () => l.isOpen,
78
82
  (e) => {
79
83
  c.value = e, e && setTimeout(() => {
80
- n.teleportToBody && r();
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 = s.value) != null && o.contains(e.target)) && h();
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), n.teleportToBody && (window.addEventListener("resize", r), v.value = document.querySelector(".at-scrollable-container") || null, (e = v.value) == null || e.addEventListener("scroll", r), r());
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), n.teleportToBody && (window.removeEventListener("resize", r), (e = v.value) == null || e.removeEventListener("scroll", r));
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: s,
104
+ triggerElem: u,
101
105
  dialogStyle: f,
102
106
  toggleDialog: _,
103
107
  openDialog: Y,
@@ -15,6 +15,7 @@ export interface DropdownListItem {
15
15
  export interface DropdownCoreProps {
16
16
  isOpen: boolean;
17
17
  position: "right" | "left";
18
+ preventClickOutside?: boolean;
18
19
  fullSize?: boolean;
19
20
  teleportToBody?: boolean;
20
21
  id?: string;
@@ -1,37 +1,38 @@
1
- import z 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 S, Fragment as f, renderList as b, pushScopeId as D, popScopeId as T } from "vue";
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 $ from "../_virtual/_plugin-vue_export-helper.js";
5
- const A = (e) => (D("data-v-d929a747"), e = e(), T(), e), B = { class: "d-flex align-items-center gap-2" }, F = {
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
- }, U = { class: "filter" }, N = { class: "at-dropdown-header" }, O = {
8
+ }, N = { class: "filter" }, O = { class: "at-dropdown-header" }, E = {
9
9
  key: 0,
10
10
  class: "at-dropdown-content"
11
- }, E = {
11
+ }, L = {
12
12
  key: 1,
13
13
  class: "at-dropdown-content"
14
- }, L = { class: "item" }, M = ["for"], P = /* @__PURE__ */ A(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), R = /* @__PURE__ */ A(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), j = ["for"], q = ["for"], G = { class: "at-dropdown-footer" };
15
- function H(e, r, J, K, Q, W) {
16
- var y;
17
- const C = m("AtFilterRegularIcon"), h = m("AtCloseSolidIcon"), c = m("AtParagraph"), k = m("AtButton"), v = m("AtCheckbox"), V = m("AtDropDown");
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(V, {
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(k, {
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", B, [
34
- l(C, { size: "16" }),
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", F, [
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", U, [
64
- a("div", N, [
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", O, [
86
- S(e.$slots, "default", {}, void 0, !0)
87
- ])) : (t(), s("div", E, [
88
- (u = e.options) != null && u.checkAllText ? (t(), s(f, { key: 0 }, [
89
- a("div", L, [
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, M)
112
+ ], 8, P)
112
113
  ]),
113
- P
114
+ R
114
115
  ], 64)) : I("", !0),
115
- (t(!0), s(f, null, b(e.listSeparator, (o, g) => (t(), s("div", {
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
- R,
129
- (t(!0), s(f, null, b(o.value, (p, w) => (t(), s("div", {
130
- key: `${w}`,
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": (_) => p.value = _,
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, j)
151
+ ], 8, q)
151
152
  ]))), 128))
152
153
  ]))), 128)),
153
- (t(!0), s(f, null, b(e.listArray, (o, g) => (t(), s("div", {
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, q)
175
+ ], 8, G)
175
176
  ]))), 128))
176
177
  ])),
177
- a("div", G, [
178
- l(k, {
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(k, {
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 ee = /* @__PURE__ */ $(z, [["render", H], ["__scopeId", "data-v-d929a747"]]);
212
+ const oe = /* @__PURE__ */ B(S, [["render", J], ["__scopeId", "data-v-4d0535a3"]]);
212
213
  export {
213
- ee as default
214
+ oe as default
214
215
  };