@agrotools1/at-components 0.6.98-test-33 → 0.6.98-test-35

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.
@@ -2,7 +2,7 @@ import n from "./Column.vue2.js";
2
2
  import { openBlock as a, createElementBlock as l, createElementVNode as e, toDisplayString as r, createCommentVNode as s, renderSlot as d } from "vue";
3
3
  import "./Column.vue3.js";
4
4
  import m from "../../_virtual/_plugin-vue_export-helper.js";
5
- const c = ["data-align-columns", "data-filterable"], f = { class: "slot" }, u = ["data-orientation", "data-filterable"], p = ["src"];
5
+ const f = ["data-align-columns", "data-filterable"], u = { class: "slot" }, p = ["data-orientation", "data-filterable"], c = ["src"];
6
6
  function g(t, o, h, b, M, _) {
7
7
  return a(), l("th", {
8
8
  role: "columnheader",
@@ -10,7 +10,7 @@ function g(t, o, h, b, M, _) {
10
10
  "data-align-columns": t.alignColumns,
11
11
  "data-filterable": t.withMaxMinFilter
12
12
  }, [
13
- e("div", f, [
13
+ e("div", u, [
14
14
  e("span", null, r(t.label), 1),
15
15
  t.withMaxMinFilter ? (a(), l("button", {
16
16
  key: 0,
@@ -23,13 +23,13 @@ function g(t, o, h, b, M, _) {
23
23
  e("img", {
24
24
  src: t.filterSvg,
25
25
  alt: "Botão para filtrar valor"
26
- }, null, 8, p)
27
- ], 8, u)) : s("", !0),
26
+ }, null, 8, c)
27
+ ], 8, p)) : s("", !0),
28
28
  d(t.$slots, "default", {}, void 0, !0)
29
29
  ])
30
- ], 8, c);
30
+ ], 8, f);
31
31
  }
32
- const w = /* @__PURE__ */ m(n, [["render", g], ["__scopeId", "data-v-5a5c9f3c"]]);
32
+ const w = /* @__PURE__ */ m(n, [["render", g], ["__scopeId", "data-v-e6f0a71d"]]);
33
33
  export {
34
34
  w as default
35
35
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as l, inject as p, watch as x, onMounted as A } from "vue";
2
- import h from "./imgs/filter.svg.js";
3
- const N = C({
1
+ import { defineComponent as h, ref as l, inject as p, watch as C, onMounted as x } from "vue";
2
+ import A from "./imgs/filter.svg.js";
3
+ const N = h({
4
4
  name: "AtColumn",
5
5
  props: {
6
6
  field: {
@@ -25,7 +25,7 @@ const N = C({
25
25
  ), s = p("tableData", y), g = p("alignColumns", "left"), b = l(g), d = () => {
26
26
  o.value = o.value === "bottom" ? "top" : "bottom";
27
27
  };
28
- x(
28
+ C(
29
29
  () => o.value,
30
30
  () => {
31
31
  v();
@@ -45,6 +45,8 @@ const N = C({
45
45
  } else {
46
46
  if (t && t.children && Array.isArray(t.children))
47
47
  return t.children.map((e) => typeof e == "string" ? e : "").join("");
48
+ if (t && t.children && typeof t.children == "string")
49
+ return t.children;
48
50
  if (t && t.props) {
49
51
  if ("modelValue" in t.props)
50
52
  return t.props.modelValue ? 1 : 0;
@@ -59,8 +61,8 @@ const N = C({
59
61
  const r = u(e[a.field]), n = u(i[a.field]);
60
62
  if (typeof r == "string" && typeof n == "string")
61
63
  return r.localeCompare(n);
62
- const m = Number(r), c = Number(n);
63
- return m < c ? -1 : m > c ? 1 : 0;
64
+ const c = Number(r), m = Number(n);
65
+ return c < m ? -1 : c > m ? 1 : 0;
64
66
  });
65
67
  s.value = t;
66
68
  } else if (o.value === "top") {
@@ -79,11 +81,11 @@ const N = C({
79
81
  s.value = t;
80
82
  }
81
83
  };
82
- return A(() => {
84
+ return x(() => {
83
85
  f(a.field);
84
86
  }), {
85
87
  alignColumns: b,
86
- filterSvg: h,
88
+ filterSvg: A,
87
89
  orientation: o,
88
90
  toggleOrientation: d
89
91
  };
@@ -1,4 +1,4 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
@@ -57,6 +57,10 @@ declare const _default: import('vue').DefineComponent<{
57
57
  type: PropType<boolean>;
58
58
  default: boolean;
59
59
  };
60
+ stickHeader: {
61
+ type: PropType<boolean>;
62
+ default: boolean;
63
+ };
60
64
  }, {
61
65
  reactiveIsLoading: import('vue').ComputedRef<boolean>;
62
66
  tableData: import('vue').Ref<{
@@ -309,6 +313,10 @@ declare const _default: import('vue').DefineComponent<{
309
313
  type: PropType<boolean>;
310
314
  default: boolean;
311
315
  };
316
+ stickHeader: {
317
+ type: PropType<boolean>;
318
+ default: boolean;
319
+ };
312
320
  }>> & {
313
321
  "onUpdate:selected-items"?: ((items: any[]) => any) | undefined;
314
322
  "onUpdate:table-data"?: ((data: TableData) => any) | undefined;
@@ -332,5 +340,6 @@ declare const _default: import('vue').DefineComponent<{
332
340
  columnsClasses: string[];
333
341
  isLoading: boolean;
334
342
  loadingRowsLength: number;
343
+ stickHeader: boolean;
335
344
  }, {}>;
336
345
  export default _default;
@@ -1,14 +1,14 @@
1
- import C from "./DataTable.vue2.js";
2
- import { resolveComponent as p, openBlock as t, createElementBlock as o, Fragment as r, createElementVNode as l, mergeProps as S, createBlock as c, createCommentVNode as u, renderSlot as P, withDirectives as A, renderList as d, normalizeClass as g, withKeys as $, toDisplayString as f, resolveDynamicComponent as w, vShow as D, createVNode as I, pushScopeId as T, popScopeId as E } from "vue";
1
+ import S from "./DataTable.vue2.js";
2
+ import { resolveComponent as p, openBlock as t, createElementBlock as o, Fragment as i, createElementVNode as l, mergeProps as C, createBlock as c, createCommentVNode as u, renderSlot as P, withDirectives as A, renderList as d, normalizeClass as g, withKeys as $, toDisplayString as f, resolveDynamicComponent as w, vShow as D, createVNode as I, pushScopeId as T, popScopeId as E } from "vue";
3
3
  import "./DataTable.vue3.js";
4
4
  import K from "../_virtual/_plugin-vue_export-helper.js";
5
- const b = (e) => (T("data-v-f60f368c"), e = e(), E(), e), z = ["data-align-columns"], L = { role: "rowgroup" }, B = {
5
+ const b = (e) => (T("data-v-ede1caeb"), e = e(), E(), e), z = ["data-align-columns"], L = ["data-isStick"], B = {
6
6
  role: "row",
7
7
  class: "thead-row"
8
8
  }, F = {
9
9
  key: 1,
10
10
  role: "rowgroup"
11
- }, N = /* @__PURE__ */ b(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), U = ["onmouseenter"], V = ["data-key", "onClick"], R = { class: "td-container" }, j = ["id", "value", "onKeydown"], H = { key: 1 }, O = {
11
+ }, N = /* @__PURE__ */ b(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), U = ["onmouseenter"], V = ["data-key", "onClick"], H = { class: "td-container" }, R = ["id", "value", "onKeydown"], j = { key: 1 }, O = {
12
12
  key: 2,
13
13
  class: "item-as-array"
14
14
  }, W = { key: 0 }, q = /* @__PURE__ */ b(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), G = {
@@ -21,13 +21,16 @@ const b = (e) => (T("data-v-f60f368c"), e = e(), E(), e), z = ["data-align-colum
21
21
  function Q(e, X, Y, Z, x, ee) {
22
22
  var h;
23
23
  const k = p("AtColumn"), v = p("AtText"), _ = p("AtPaginator");
24
- return t(), o(r, null, [
25
- l("table", S(e.$attrs, {
24
+ return t(), o(i, null, [
25
+ l("table", C(e.$attrs, {
26
26
  role: "table",
27
27
  class: "table-content",
28
28
  "data-align-columns": e.alignColumns
29
29
  }), [
30
- l("thead", L, [
30
+ l("thead", {
31
+ role: "rowgroup",
32
+ "data-isStick": e.stickHeader
33
+ }, [
31
34
  l("tr", B, [
32
35
  e.withSelection ? (t(), c(k, {
33
36
  key: 0,
@@ -36,25 +39,25 @@ function Q(e, X, Y, Z, x, ee) {
36
39
  })) : u("", !0),
37
40
  P(e.$slots, "default", {}, void 0, !0)
38
41
  ])
39
- ]),
42
+ ], 8, L),
40
43
  !e.value || !e.value.length ? (t(), c(v, {
41
44
  key: 0,
42
45
  as: "h6"
43
46
  })) : A((t(), o("tbody", F, [
44
47
  N,
45
- (t(!0), o(r, null, d(e.activeTableData, (i) => (t(), o("tr", {
46
- key: e.extractKey(i),
48
+ (t(!0), o(i, null, d(e.activeTableData, (r) => (t(), o("tr", {
49
+ key: e.extractKey(r),
47
50
  class: g([...e.columnsClasses, "tbody-tr"]),
48
51
  role: "row",
49
52
  tabindex: "-1",
50
53
  onmouseenter: (s) => {
51
54
  e.lastHoveredTr = {
52
55
  element: s.target,
53
- item: i
56
+ item: r
54
57
  };
55
58
  }
56
59
  }, [
57
- (t(!0), o(r, null, d(e.getEntries(i), ([s, a]) => {
60
+ (t(!0), o(i, null, d(e.getEntries(r), ([s, a]) => {
58
61
  var y, m;
59
62
  return t(), o("td", {
60
63
  key: s,
@@ -64,15 +67,15 @@ function Q(e, X, Y, Z, x, ee) {
64
67
  "aria-selected": "false",
65
68
  onClick: (n) => e.handleTrClick(n, s)
66
69
  }, [
67
- l("div", R, [
70
+ l("div", H, [
68
71
  (m = e.withEditableFields) != null && m.includes(s) ? (t(), o("input", {
69
72
  key: 0,
70
73
  id: s,
71
74
  placeholder: "",
72
75
  value: a,
73
76
  onKeydown: $((n) => e.updateOnKeyDown(n, s), ["enter"])
74
- }, null, 40, j)) : typeof a == "number" || typeof a == "string" ? (t(), o("span", H, f(a), 1)) : Array.isArray(a) ? (t(), o("div", O, [
75
- (t(!0), o(r, null, d(a, (n) => (t(), o("div", { key: n }, [
77
+ }, null, 40, R)) : typeof a == "number" || typeof a == "string" ? (t(), o("span", j, f(a), 1)) : Array.isArray(a) ? (t(), o("div", O, [
78
+ (t(!0), o(i, null, d(a, (n) => (t(), o("div", { key: n }, [
76
79
  typeof n == "number" || typeof n == "string" ? (t(), o("span", W, f(n), 1)) : (t(), c(w(typeof n == "function" ? n() : n), { key: 1 }))
77
80
  ]))), 128))
78
81
  ])) : (t(), c(w(typeof a == "function" ? a() : a), { key: 3 }))
@@ -87,11 +90,11 @@ function Q(e, X, Y, Z, x, ee) {
87
90
  ], 16, z),
88
91
  e.reactiveIsLoading ? (t(), o("div", G, [
89
92
  l("div", J, [
90
- (t(!0), o(r, null, d(e.loadingRowsLength, (i) => (t(), o("div", {
91
- key: i,
93
+ (t(!0), o(i, null, d(e.loadingRowsLength, (r) => (t(), o("div", {
94
+ key: r,
92
95
  class: "skeleton-row"
93
96
  }, [
94
- (t(!0), o(r, null, d(e.columns, (s) => (t(), o("div", {
97
+ (t(!0), o(i, null, d(e.columns, (s) => (t(), o("div", {
95
98
  key: s,
96
99
  class: "skeleton-cell"
97
100
  }))), 128))
@@ -110,7 +113,7 @@ function Q(e, X, Y, Z, x, ee) {
110
113
  ])) : u("", !0)
111
114
  ], 64);
112
115
  }
113
- const ae = /* @__PURE__ */ K(C, [["render", Q], ["__scopeId", "data-v-f60f368c"]]);
116
+ const ae = /* @__PURE__ */ K(S, [["render", Q], ["__scopeId", "data-v-ede1caeb"]]);
114
117
  export {
115
118
  ae as default
116
119
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as k, ref as d, reactive as K, provide as p, readonly as j, inject as E, watch as x, onMounted as O, watchEffect as w, h as P, computed as R } from "vue";
2
- import B from "../Checkbox/Checkbox.vue.js";
1
+ import { defineComponent as T, ref as d, reactive as K, provide as p, readonly as j, inject as E, watch as x, onMounted as B, watchEffect as w, h as O, computed as P } from "vue";
2
+ import R from "../Checkbox/Checkbox.vue.js";
3
3
  import L from "../Paginator/Paginator.vue.js";
4
4
  import { AtTipograph as q } from "../Tipograph/index.js";
5
5
  import F from "./Column/Column.vue.js";
6
- const J = k({
6
+ const J = T({
7
7
  name: "AtDataTable",
8
8
  components: {
9
9
  AtText: q.Title,
@@ -61,6 +61,10 @@ const J = k({
61
61
  disableWithoutCSS: {
62
62
  type: Boolean,
63
63
  default: !1
64
+ },
65
+ stickHeader: {
66
+ type: Boolean,
67
+ default: !1
64
68
  }
65
69
  },
66
70
  emits: {
@@ -111,8 +115,8 @@ const J = k({
111
115
  var u;
112
116
  const o = t.target, { value: l } = o, n = (u = m.value) == null ? void 0 : u.item;
113
117
  n && (n[a] = l, i.value = i.value.map((b) => {
114
- const I = s(b), T = s(n);
115
- return I === T ? n : b;
118
+ const I = s(b), k = s(n);
119
+ return I === k ? n : b;
116
120
  }), r.emit("update:table-data", i.value), r.emit("update:table-cell", {
117
121
  field: a,
118
122
  value: l
@@ -123,11 +127,11 @@ const J = k({
123
127
  (t) => {
124
128
  t && v(e.withDefaultSelectedItems ?? []);
125
129
  }
126
- ), O(() => {
130
+ ), B(() => {
127
131
  e.withDefaultSelectedItems && v([...e.withDefaultSelectedItems]);
128
132
  }), w(() => {
129
133
  e.withSelection ? i.value = [...e.value].map((t) => ({
130
- selection: () => P(B, {
134
+ selection: () => O(R, {
131
135
  modelValue: f.value,
132
136
  "onUpdate:modelValue": (a) => v(a),
133
137
  val: s(t)
@@ -143,7 +147,7 @@ const J = k({
143
147
  });
144
148
  h.value = a;
145
149
  }), {
146
- reactiveIsLoading: R(() => e.isLoading),
150
+ reactiveIsLoading: P(() => e.isLoading),
147
151
  tableData: i,
148
152
  activeTableData: h,
149
153
  columns: g.columns,
@@ -55,6 +55,10 @@ export declare const AtDataTable: {
55
55
  type: import('vue').PropType<boolean>;
56
56
  default: boolean;
57
57
  };
58
+ stickHeader: {
59
+ type: import('vue').PropType<boolean>;
60
+ default: boolean;
61
+ };
58
62
  }, {
59
63
  reactiveIsLoading: import('vue').ComputedRef<boolean>;
60
64
  tableData: import('vue').Ref<{
@@ -311,6 +315,10 @@ export declare const AtDataTable: {
311
315
  type: import('vue').PropType<boolean>;
312
316
  default: boolean;
313
317
  };
318
+ stickHeader: {
319
+ type: import('vue').PropType<boolean>;
320
+ default: boolean;
321
+ };
314
322
  }>> & {
315
323
  "onUpdate:selected-items"?: ((items: any[]) => any) | undefined;
316
324
  "onUpdate:table-data"?: ((data: {
@@ -336,6 +344,7 @@ export declare const AtDataTable: {
336
344
  columnsClasses: string[];
337
345
  isLoading: boolean;
338
346
  loadingRowsLength: number;
347
+ stickHeader: boolean;
339
348
  }, {}>;
340
349
  Column: import('vue').DefineComponent<{
341
350
  field: {
@@ -148,7 +148,7 @@ declare const _default: import('vue').DefineComponent<{
148
148
  color: string;
149
149
  };
150
150
  setListOrdenable: () => void;
151
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onClose" | "onSorted")[], "onClose" | "onSorted", import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
151
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onClose" | "onSorted" | "onUpdateCheckbox")[], "onClose" | "onSorted" | "onUpdateCheckbox", import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
152
152
  dropDownList: {
153
153
  type: PropType<DropdownListItem[] | DropdownList[]>;
154
154
  required: true;
@@ -171,6 +171,7 @@ declare const _default: import('vue').DefineComponent<{
171
171
  }>> & {
172
172
  onOnClose?: ((...args: any[]) => any) | undefined;
173
173
  onOnSorted?: ((...args: any[]) => any) | undefined;
174
+ onOnUpdateCheckbox?: ((...args: any[]) => any) | undefined;
174
175
  }, {
175
176
  title: string | undefined;
176
177
  sortable: boolean | undefined;
@@ -1,52 +1,52 @@
1
- import z from "./Dropdown.Checklist.vue2.js";
2
- import { resolveComponent as b, openBlock as a, createElementBlock as d, createElementVNode as o, createVNode as s, withCtx as n, createTextVNode as c, toDisplayString as i, Fragment as h, createCommentVNode as m, renderList as k, normalizeClass as g, createBlock as C, resolveDynamicComponent as I, normalizeStyle as $, pushScopeId as S, popScopeId as D } from "vue";
1
+ import C from "./Dropdown.Checklist.vue2.js";
2
+ import { resolveComponent as b, openBlock as s, createElementBlock as d, createElementVNode as o, createVNode as a, withCtx as i, createTextVNode as c, toDisplayString as p, Fragment as h, createCommentVNode as m, renderList as k, normalizeClass as f, createBlock as $, resolveDynamicComponent as z, normalizeStyle as I, pushScopeId as S, popScopeId as D } from "vue";
3
3
  import "./Dropdown.Checklist.vue3.js";
4
4
  import w from "../../_virtual/_plugin-vue_export-helper.js";
5
- const f = (l) => (S("data-v-376b6a6a"), l = l(), D(), l), L = { class: "atCheckList" }, N = { class: "at-dropdown-header" }, T = { class: "at-dropdown-content" }, U = { class: "item checkall" }, B = {
5
+ const g = (l) => (S("data-v-136fe706"), l = l(), D(), l), U = { class: "atCheckList" }, L = { class: "at-dropdown-header" }, N = { class: "at-dropdown-content" }, T = { class: "item checkall" }, B = {
6
6
  for: "checkAll",
7
7
  class: "checkall-label"
8
- }, x = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "separator" }, null, -1)), E = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "separator" }, null, -1)), M = ["for"], O = {
8
+ }, x = /* @__PURE__ */ g(() => /* @__PURE__ */ o("span", { class: "separator" }, null, -1)), E = /* @__PURE__ */ g(() => /* @__PURE__ */ o("span", { class: "separator" }, null, -1)), M = ["for"], O = {
9
9
  id: "sortable",
10
10
  ref: "sortableList"
11
11
  }, P = ["id", "draggable"], R = { class: "left-items" }, F = {
12
12
  key: 0,
13
13
  class: "ordenable-icon"
14
14
  }, j = ["for"];
15
- function q(l, p, G, H, J, K) {
16
- const r = b("AtParagraph"), v = b("AtCloseSolidIcon"), _ = b("AtCheckbox"), y = b("AtDragOrderRegularIcon");
17
- return a(), d("div", L, [
18
- o("div", N, [
19
- s(r, {
15
+ function q(l, r, G, H, J, K) {
16
+ const n = b("AtParagraph"), v = b("AtCloseSolidIcon"), _ = b("AtCheckbox"), y = b("AtDragOrderRegularIcon");
17
+ return s(), d("div", U, [
18
+ o("div", L, [
19
+ a(n, {
20
20
  size: "p1",
21
21
  weight: "bold"
22
22
  }, {
23
- default: n(() => [
24
- c(i(l.title), 1)
23
+ default: i(() => [
24
+ c(p(l.title), 1)
25
25
  ]),
26
26
  _: 1
27
27
  }),
28
28
  o("span", {
29
29
  style: { cursor: "pointer" },
30
30
  class: "closeIcon",
31
- onClick: p[0] || (p[0] = (...e) => l.closeDialog && l.closeDialog(...e))
31
+ onClick: r[0] || (r[0] = (...e) => l.closeDialog && l.closeDialog(...e))
32
32
  }, [
33
- s(v, { size: "20" })
33
+ a(v, { size: "20" })
34
34
  ])
35
35
  ]),
36
- o("div", T, [
37
- l.checkAllText ? (a(), d(h, { key: 0 }, [
38
- o("div", U, [
39
- s(_, {
36
+ o("div", N, [
37
+ l.checkAllText ? (s(), d(h, { key: 0 }, [
38
+ o("div", T, [
39
+ a(_, {
40
40
  id: "checkAll",
41
41
  modelValue: l.checkAllModel,
42
- "onUpdate:modelValue": p[1] || (p[1] = (e) => l.checkAllModel = e),
42
+ "onUpdate:modelValue": r[1] || (r[1] = (e) => l.checkAllModel = e),
43
43
  size: "12",
44
44
  labelledby: "checkAll"
45
45
  }, null, 8, ["modelValue"]),
46
46
  o("label", B, [
47
- s(r, { size: "p2" }, {
48
- default: n(() => [
49
- c(i(l.checkAllText), 1)
47
+ a(n, { size: "p2" }, {
48
+ default: i(() => [
49
+ c(p(l.checkAllText), 1)
50
50
  ]),
51
51
  _: 1
52
52
  })
@@ -54,25 +54,25 @@ function q(l, p, G, H, J, K) {
54
54
  ]),
55
55
  x
56
56
  ], 64)) : m("", !0),
57
- (a(!0), d(h, null, k(l.listSeparator, (e, u) => (a(), d("div", {
57
+ (s(!0), d(h, null, k(l.listSeparator, (e, u) => (s(), d("div", {
58
58
  key: `${u}`,
59
59
  class: "item-separator"
60
60
  }, [
61
- s(r, {
61
+ a(n, {
62
62
  size: "p2",
63
63
  weight: "bold"
64
64
  }, {
65
- default: n(() => [
66
- c(i(e.key), 1)
65
+ default: i(() => [
66
+ c(p(e.key), 1)
67
67
  ]),
68
68
  _: 2
69
69
  }, 1024),
70
70
  E,
71
- (a(!0), d(h, null, k(e.value, (t, A) => (a(), d("div", {
71
+ (s(!0), d(h, null, k(e.value, (t, A) => (s(), d("div", {
72
72
  key: `${A}`,
73
- class: g(["item"])
73
+ class: f(["item"])
74
74
  }, [
75
- s(_, {
75
+ a(_, {
76
76
  id: t.text,
77
77
  modelValue: t.value,
78
78
  "onUpdate:modelValue": (V) => t.value = V,
@@ -84,9 +84,9 @@ function q(l, p, G, H, J, K) {
84
84
  for: `${t.text}`,
85
85
  class: "item-label"
86
86
  }, [
87
- s(r, { size: "p2" }, {
88
- default: n(() => [
89
- c(i(l.getItemText(t)), 1)
87
+ a(n, { size: "p2" }, {
88
+ default: i(() => [
89
+ c(p(l.getItemText(t)), 1)
90
90
  ]),
91
91
  _: 2
92
92
  }, 1024)
@@ -94,10 +94,10 @@ function q(l, p, G, H, J, K) {
94
94
  ]))), 128))
95
95
  ]))), 128)),
96
96
  o("div", O, [
97
- (a(!0), d(h, null, k(l.listArray, (e, u) => (a(), d("div", {
97
+ (s(!0), d(h, null, k(l.listArray, (e, u) => (s(), d("div", {
98
98
  id: `listArray-item-${u}-${e.text}`,
99
99
  key: `${u}`,
100
- class: g(["item", [
100
+ class: f(["item", [
101
101
  l.sortable && !e.disabled ? "draggable" : "",
102
102
  e.disabled ? "isDisabled" : "",
103
103
  e.className
@@ -105,16 +105,21 @@ function q(l, p, G, H, J, K) {
105
105
  draggable: l.sortable && !e.disabled
106
106
  }, [
107
107
  o("div", R, [
108
- l.sortable ? (a(), d("span", F, [
109
- s(y, {
108
+ l.sortable ? (s(), d("span", F, [
109
+ a(y, {
110
110
  size: "16",
111
111
  color: e.disabled ? "var(--at-disabled-text)" : ""
112
112
  }, null, 8, ["color"])
113
113
  ])) : m("", !0),
114
- s(_, {
114
+ a(_, {
115
115
  id: e.text,
116
116
  modelValue: e.value,
117
- "onUpdate:modelValue": (t) => e.value = t,
117
+ "onUpdate:modelValue": [
118
+ (t) => e.value = t,
119
+ r[2] || (r[2] = () => {
120
+ l.$emit("onUpdateCheckbox", !0);
121
+ })
122
+ ],
118
123
  size: "12",
119
124
  disabled: e.disabled,
120
125
  labelledby: `${e.text}`
@@ -123,24 +128,24 @@ function q(l, p, G, H, J, K) {
123
128
  for: `${e.text}`,
124
129
  class: "item-label"
125
130
  }, [
126
- s(r, { size: "p2" }, {
127
- default: n(() => [
128
- c(i(l.getItemText(e)), 1)
131
+ a(n, { size: "p2" }, {
132
+ default: i(() => [
133
+ c(p(l.getItemText(e)), 1)
129
134
  ]),
130
135
  _: 2
131
136
  }, 1024)
132
137
  ], 8, j)
133
138
  ]),
134
- (a(), C(I(l.getLockItem(e)), {
139
+ (s(), $(z(l.getLockItem(e)), {
135
140
  size: "16",
136
- style: $(l.getLockIconColor(e))
141
+ style: I(l.getLockIconColor(e))
137
142
  }, null, 8, ["style"]))
138
143
  ], 10, P))), 128))
139
144
  ], 512)
140
145
  ])
141
146
  ]);
142
147
  }
143
- const Z = /* @__PURE__ */ w(z, [["render", q], ["__scopeId", "data-v-376b6a6a"]]);
148
+ const Z = /* @__PURE__ */ w(C, [["render", q], ["__scopeId", "data-v-136fe706"]]);
144
149
  export {
145
150
  Z as default
146
151
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as s, onMounted as y, toRaw as D } from "vue";
2
- import { AtCloseSolidIcon as S } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCloseSolidIcon/index.js";
3
- import { AtDragOrderRegularIcon as x } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtDragOrderRegularIcon/index.js";
1
+ import { defineComponent as C, ref as s, onMounted as x, toRaw as y } from "vue";
2
+ import { AtCloseSolidIcon as D } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCloseSolidIcon/index.js";
3
+ import { AtDragOrderRegularIcon as S } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtDragOrderRegularIcon/index.js";
4
4
  import { AtLockRegularIcon as g } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtLockRegularIcon/index.js";
5
5
  import { AtUnlockRegularIcon as A } from "../../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtUnlockRegularIcon/index.js";
6
6
  import w from "../../Checkbox/Checkbox.vue.js";
@@ -9,8 +9,8 @@ import "../../Filter/Filter.vue3.js";
9
9
  import R from "../../Tipograph/Paragraph/Paragraph.vue.js";
10
10
  import O from "./draggable.js";
11
11
  const M = {
12
- AtCloseSolidIcon: S,
13
- AtDragOrderRegularIcon: x,
12
+ AtCloseSolidIcon: D,
13
+ AtDragOrderRegularIcon: S,
14
14
  AtLockRegularIcon: g,
15
15
  AtUnlockRegularIcon: A
16
16
  }, F = C({
@@ -37,36 +37,36 @@ const M = {
37
37
  default: " | "
38
38
  }
39
39
  },
40
- emits: ["onClose", "onSorted"],
40
+ emits: ["onClose", "onSorted", "onUpdateCheckbox"],
41
41
  setup(e, { emit: c }) {
42
- const b = s(), a = s([]), o = s([]), u = s(null), n = s(e.dropDownList), d = () => {
42
+ const b = s(), a = s([]), o = s([]), d = s(null), n = s(e.dropDownList), u = () => {
43
43
  a.value = [], o.value = [], n.value.some((t) => "key" in t) ? a.value = n.value : o.value = n.value;
44
44
  };
45
- d();
46
- const v = (t) => {
45
+ u();
46
+ const h = (t) => {
47
47
  var r, m, f;
48
48
  (r = a.value) == null || r.map(
49
49
  (l) => l.value.filter((i) => !i.disabled).map((i) => i.value = t)
50
50
  ), (f = (m = o.value) == null ? void 0 : m.filter((l) => !l.disabled)) == null || f.map((l) => l.value = t);
51
- }, h = (t) => t.text, k = () => c("onClose", !0), I = (t) => t.disabled ? g : A, L = (t) => ({ color: t.disabled ? "var(--at-disabled-text)" : "var(--at-primary-color-1)" }), p = () => {
51
+ }, k = (t) => t.text, v = () => c("onClose", !0), I = (t) => t.disabled ? g : A, L = (t) => ({ color: t.disabled ? "var(--at-disabled-text)" : "var(--at-primary-color-1)" }), p = () => {
52
52
  const t = new O(
53
- o.value.map((r) => structuredClone(D(r))),
54
- u.value
53
+ o.value.map((r) => structuredClone(y(r))),
54
+ d.value
55
55
  );
56
56
  t.onDragIsEnd = () => c("onSorted", t.endList);
57
57
  };
58
- return y(() => {
58
+ return x(() => {
59
59
  e.sortable && p();
60
60
  }), {
61
61
  checkAllModel: b,
62
62
  listSeparator: a,
63
63
  listArray: o,
64
64
  list: n,
65
- sortableList: u,
66
- setAllCheckboxValues: v,
67
- getItemText: h,
68
- setListProps: d,
69
- closeDialog: k,
65
+ sortableList: d,
66
+ setAllCheckboxValues: h,
67
+ getItemText: k,
68
+ setListProps: u,
69
+ closeDialog: v,
70
70
  getLockItem: I,
71
71
  getLockIconColor: L,
72
72
  setListOrdenable: p
@@ -1,4 +1,4 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
@@ -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;