@agrotools1/at-components 0.5.0 → 0.5.1-2

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.
Files changed (59) hide show
  1. package/dist/Checkbox/Checkbox.vue.js +1 -1
  2. package/dist/DataTable/DataTable.d.ts +10 -0
  3. package/dist/DataTable/DataTable.vue.js +56 -50
  4. package/dist/DataTable/DataTable.vue2.js +31 -26
  5. package/dist/DataTable/index.d.ts +10 -0
  6. package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +2 -0
  7. package/dist/Dropdown/Dropdown.core.d.ts +22 -3
  8. package/dist/Dropdown/Dropdown.core.vue.js +23 -20
  9. package/dist/Dropdown/Dropdown.core.vue2.js +62 -26
  10. package/dist/Dropdown/Dropdown.core.vue3.js +2 -2
  11. package/dist/Dropdown/Dropdown.types.d.ts +2 -0
  12. package/dist/Filter/components/Filter.types.d.ts +2 -0
  13. package/dist/Filter/components/Filter.vue.js +64 -62
  14. package/dist/Filter/components/Filter.vue2.js +57 -52
  15. package/dist/Input/Input.core.d.ts +9 -0
  16. package/dist/Input/Input.core.vue.js +25 -19
  17. package/dist/Input/Input.core.vue2.js +9 -5
  18. package/dist/Input/index.d.ts +9 -0
  19. package/dist/List/components/List.d.ts +18 -0
  20. package/dist/List/components/List.types.d.ts +2 -0
  21. package/dist/List/components/List.vue.js +33 -30
  22. package/dist/List/components/List.vue2.js +20 -12
  23. package/dist/Loading/Loading.d.ts +4 -0
  24. package/dist/Loading/Loading.vue.js +18 -0
  25. package/dist/Loading/Loading.vue2.js +10 -0
  26. package/dist/Loading/Loading.vue3.js +4 -0
  27. package/dist/Loading/index.d.ts +1 -0
  28. package/dist/Modal/Modal.vue2.js +5 -2
  29. package/dist/ProgressBar/ProgressBar.d.ts +2 -2
  30. package/dist/ProgressBar/ProgressBar.vue.js +4 -4
  31. package/dist/ProgressBar/ProgressBar.vue2.js +48 -38
  32. package/dist/Search/Search.d.ts +15 -7
  33. package/dist/Search/Search.vue.js +36 -25
  34. package/dist/Search/Search.vue2.js +21 -17
  35. package/dist/Select/Multiple/Select.multiple.d.ts +11 -0
  36. package/dist/Select/Multiple/Select.multiple.vue.js +10 -9
  37. package/dist/Select/Multiple/Select.multiple.vue2.js +7 -2
  38. package/dist/Select/Select.core.d.ts +11 -0
  39. package/dist/Select/Select.core.vue.js +8 -7
  40. package/dist/Select/Select.core.vue2.js +8 -3
  41. package/dist/Select/Single/Select.single.d.ts +11 -0
  42. package/dist/Select/Single/Select.single.vue.js +13 -12
  43. package/dist/Select/Single/Select.single.vue2.js +14 -9
  44. package/dist/Select/index.d.ts +22 -0
  45. package/dist/Skeleton/Skeleton.d.ts +25 -0
  46. package/dist/Skeleton/Skeleton.vue.js +16 -0
  47. package/dist/Skeleton/Skeleton.vue2.js +19 -0
  48. package/dist/Skeleton/index.d.ts +1 -22
  49. package/dist/Stepper/Stepper.vue.js +10 -10
  50. package/dist/TableConfig/TableConfig.d.ts +9 -0
  51. package/dist/TableConfig/TableConfig.vue.js +7 -6
  52. package/dist/TableConfig/TableConfig.vue2.js +10 -6
  53. package/dist/Tabs/Tabs.d.ts +13 -0
  54. package/dist/Tabs/Tabs.vue.js +21 -17
  55. package/dist/Tabs/Tabs.vue2.js +31 -22
  56. package/dist/index.d.ts +2 -0
  57. package/dist/index.js +50 -46
  58. package/dist/style.css +1 -1
  59. package/package.json +1 -1
@@ -1,74 +1,72 @@
1
- import $ from "./Filter.vue2.js";
2
- import { resolveComponent as m, openBlock as n, createElementBlock as a, createVNode as l, withCtx as s, createElementVNode as t, createTextVNode as i, toDisplayString as d, createCommentVNode as h, Fragment as k, renderList as _, pushScopeId as w, popScopeId as S } from "vue";
1
+ import w from "./Filter.vue2.js";
2
+ import { resolveComponent as m, openBlock as n, createElementBlock as a, createVNode as l, withCtx as s, createElementVNode as t, createTextVNode as d, toDisplayString as i, createCommentVNode as b, Fragment as f, renderList as g, pushScopeId as S, popScopeId as D } from "vue";
3
3
  import "./Filter.vue3.js";
4
- import D from "../../_virtual/_plugin-vue_export-helper.js";
5
- const C = (e) => (w("data-v-38de30e6"), e = e(), S(), e), T = {
4
+ import T from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const y = (e) => (S("data-v-a64d3c70"), e = e(), D(), e), B = {
6
6
  key: 1,
7
7
  class: "badge"
8
- }, B = { class: "filter" }, F = { class: "at-dropdown-header" }, U = { class: "at-dropdown-content" }, N = { class: "item" }, O = {
9
- for: "checkAll",
10
- class: "checkall-label"
11
- }, E = /* @__PURE__ */ C(() => /* @__PURE__ */ t("span", { class: "separator" }, null, -1)), L = /* @__PURE__ */ C(() => /* @__PURE__ */ t("span", { class: "separator" }, null, -1)), M = ["for"], P = ["for"], j = { class: "at-dropdown-footer" };
8
+ }, $ = { class: "filter" }, F = { class: "at-dropdown-header" }, U = { class: "at-dropdown-content" }, N = { class: "item" }, O = ["for"], E = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "separator" }, null, -1)), L = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "separator" }, null, -1)), M = ["for"], P = ["for"], j = { class: "at-dropdown-footer" };
12
9
  function q(e, r, G, H, J, K) {
13
- var y;
14
- const V = m("AtFilterSolidIcon"), A = m("AtCloseSolidIcon"), u = m("AtParagraph"), b = m("AtButton"), f = m("AtCheckbox"), g = m("AtDropDown");
10
+ var A;
11
+ const C = m("AtFilterSolidIcon"), h = m("AtCloseSolidIcon"), c = m("AtParagraph"), k = m("AtButton"), I = m("AtCheckbox"), V = m("AtDropDown");
15
12
  return n(), a("div", { key: e.keyValue }, [
16
- l(g, {
13
+ l(V, {
14
+ id: e.id,
17
15
  "is-open": e.isOpen,
18
- "onUpdate:isOpen": r[3] || (r[3] = (c) => e.isOpen = c),
19
- position: (y = e.options) == null ? void 0 : y.position
16
+ position: (A = e.options) == null ? void 0 : A.position,
17
+ "onUpdate:isOpen": r[3] || (r[3] = (u) => e.isOpen = u)
20
18
  }, {
21
19
  trigger: s(() => [
22
- l(b, {
20
+ l(k, {
23
21
  id: "dropdown-button",
24
22
  variant: e.getButtonColor
25
23
  }, {
26
24
  default: s(() => {
27
- var c;
25
+ var u;
28
26
  return [
29
27
  t("section", null, [
30
- l(V, {
28
+ l(C, {
31
29
  size: "16",
32
30
  class: "me-1"
33
31
  }),
34
- i(" " + d(((c = e.options) == null ? void 0 : c.buttonText) ?? "Filtros"), 1)
32
+ d(" " + i(((u = e.options) == null ? void 0 : u.buttonText) ?? "Filtros"), 1)
35
33
  ]),
36
34
  e.count > 0 ? (n(), a("span", {
37
35
  key: 0,
38
36
  class: "clear-icon",
39
37
  onClick: r[0] || (r[0] = () => e.clear())
40
38
  }, [
41
- l(A, {
39
+ l(h, {
42
40
  size: "20",
43
41
  onClick: e.closeDialog
44
42
  }, null, 8, ["onClick"])
45
- ])) : h("", !0),
46
- e.count > 0 ? (n(), a("span", T, [
47
- l(u, { size: "p3" }, {
43
+ ])) : b("", !0),
44
+ e.count > 0 ? (n(), a("span", B, [
45
+ l(c, { size: "p3" }, {
48
46
  default: s(() => [
49
- i(d(e.count), 1)
47
+ d(i(e.count), 1)
50
48
  ]),
51
49
  _: 1
52
50
  })
53
- ])) : h("", !0)
51
+ ])) : b("", !0)
54
52
  ];
55
53
  }),
56
54
  _: 1
57
55
  }, 8, ["variant"])
58
56
  ]),
59
57
  default: s(() => {
60
- var c;
58
+ var u;
61
59
  return [
62
- t("div", B, [
60
+ t("div", $, [
63
61
  t("div", F, [
64
- l(u, {
62
+ l(c, {
65
63
  size: "p1",
66
64
  weight: "bold"
67
65
  }, {
68
66
  default: s(() => {
69
67
  var o;
70
68
  return [
71
- i(d((o = e.options) == null ? void 0 : o.title), 1)
69
+ d(i((o = e.options) == null ? void 0 : o.title), 1)
72
70
  ];
73
71
  }),
74
72
  _: 1
@@ -78,89 +76,93 @@ function q(e, r, G, H, J, K) {
78
76
  class: "closeIcon",
79
77
  onClick: r[1] || (r[1] = (...o) => e.closeDialog && e.closeDialog(...o))
80
78
  }, [
81
- l(A, { size: "20" })
79
+ l(h, { size: "20" })
82
80
  ])
83
81
  ]),
84
82
  t("div", U, [
85
- (c = e.options) != null && c.checkAllText ? (n(), a(k, { key: 0 }, [
83
+ (u = e.options) != null && u.checkAllText ? (n(), a(f, { key: 0 }, [
86
84
  t("div", N, [
87
- l(f, {
88
- id: "checkAll",
85
+ l(I, {
86
+ id: e.getItemId({ text: "checkAll", value: !1 }),
89
87
  modelValue: e.checkAllModel,
90
88
  "onUpdate:modelValue": r[2] || (r[2] = (o) => e.checkAllModel = o),
89
+ "prevent-default": !0,
91
90
  size: "12",
92
91
  labelledby: "checkAll"
93
- }, null, 8, ["modelValue"]),
94
- t("label", O, [
95
- l(u, { size: "p2" }, {
92
+ }, null, 8, ["id", "modelValue"]),
93
+ t("label", {
94
+ for: e.getItemId({ text: "checkAll", value: !1 }),
95
+ class: "checkall-label"
96
+ }, [
97
+ l(c, { size: "p2" }, {
96
98
  default: s(() => {
97
99
  var o;
98
100
  return [
99
- i(d((o = e.options) == null ? void 0 : o.checkAllText), 1)
101
+ d(i((o = e.options) == null ? void 0 : o.checkAllText), 1)
100
102
  ];
101
103
  }),
102
104
  _: 1
103
105
  })
104
- ])
106
+ ], 8, O)
105
107
  ]),
106
108
  E
107
- ], 64)) : h("", !0),
108
- (n(!0), a(k, null, _(e.listSeparator, (o, v) => (n(), a("div", {
109
+ ], 64)) : b("", !0),
110
+ (n(!0), a(f, null, g(e.listSeparator, (o, v) => (n(), a("div", {
109
111
  key: `${v}`,
110
112
  class: "item-separator"
111
113
  }, [
112
- l(u, {
114
+ l(c, {
113
115
  size: "p2",
114
116
  weight: "bold"
115
117
  }, {
116
118
  default: s(() => [
117
- i(d(o.key), 1)
119
+ d(i(o.key), 1)
118
120
  ]),
119
121
  _: 2
120
122
  }, 1024),
121
123
  L,
122
- (n(!0), a(k, null, _(o.value, (p, z) => (n(), a("div", {
124
+ (n(!0), a(f, null, g(o.value, (p, z) => (n(), a("div", {
123
125
  key: `${z}`,
124
126
  class: "item"
125
127
  }, [
126
- l(f, {
127
- id: p.text,
128
+ l(I, {
129
+ id: e.getItemId(p),
128
130
  modelValue: p.value,
129
- "onUpdate:modelValue": (I) => p.value = I,
130
- size: "12",
131
- labelledby: `${p.text}`
131
+ "onUpdate:modelValue": (_) => p.value = _,
132
+ labelledby: e.getItemId(p),
133
+ size: "12"
132
134
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "labelledby"]),
133
135
  t("label", {
134
- for: `${p.text}`,
136
+ for: e.getItemId(p),
135
137
  class: "item-label"
136
138
  }, [
137
- l(u, { size: "p2" }, {
139
+ l(c, { size: "p2" }, {
138
140
  default: s(() => [
139
- i(d(e.getItemText(p)), 1)
141
+ d(i(e.getItemText(p)), 1)
140
142
  ]),
141
143
  _: 2
142
144
  }, 1024)
143
145
  ], 8, M)
144
146
  ]))), 128))
145
147
  ]))), 128)),
146
- (n(!0), a(k, null, _(e.listArray, (o, v) => (n(), a("div", {
148
+ (n(!0), a(f, null, g(e.listArray, (o, v) => (n(), a("div", {
147
149
  key: `${v}`,
148
150
  class: "item"
149
151
  }, [
150
- l(f, {
151
- id: o.text,
152
+ l(I, {
153
+ id: e.getItemId(o),
152
154
  modelValue: o.value,
153
155
  "onUpdate:modelValue": (p) => o.value = p,
154
156
  size: "12",
155
- labelledby: `${o.text}`
157
+ labelledby: e.getItemId(o)
156
158
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "labelledby"]),
157
159
  t("label", {
158
- for: `${o.text}`,
160
+ for: e.getItemId(o),
159
161
  class: "item-label"
160
162
  }, [
161
- l(u, { size: "p2" }, {
163
+ l(c, { size: "p2" }, {
162
164
  default: s(() => [
163
- i(d(e.getItemText(o)), 1)
165
+ d(i(e.getItemText(o)), 1)
164
166
  ]),
165
167
  _: 2
166
168
  }, 1024)
@@ -168,7 +170,7 @@ function q(e, r, G, H, J, K) {
168
170
  ]))), 128))
169
171
  ]),
170
172
  t("div", j, [
171
- l(b, {
173
+ l(k, {
172
174
  variant: "secondary",
173
175
  class: "clear-button",
174
176
  onClick: e.clear
@@ -176,19 +178,19 @@ function q(e, r, G, H, J, K) {
176
178
  default: s(() => {
177
179
  var o;
178
180
  return [
179
- i(d(((o = e.options) == null ? void 0 : o.cancelBtnText) ?? "Limpar"), 1)
181
+ d(i(((o = e.options) == null ? void 0 : o.cancelBtnText) ?? "Limpar"), 1)
180
182
  ];
181
183
  }),
182
184
  _: 1
183
185
  }, 8, ["onClick"]),
184
- l(b, {
186
+ l(k, {
185
187
  class: "save-button",
186
188
  onClick: e.save
187
189
  }, {
188
190
  default: s(() => {
189
191
  var o;
190
192
  return [
191
- i(d(((o = e.options) == null ? void 0 : o.saveBtnText) ?? "Filtrar"), 1)
193
+ d(i(((o = e.options) == null ? void 0 : o.saveBtnText) ?? "Filtrar"), 1)
192
194
  ];
193
195
  }),
194
196
  _: 1
@@ -198,10 +200,10 @@ function q(e, r, G, H, J, K) {
198
200
  ];
199
201
  }),
200
202
  _: 1
201
- }, 8, ["is-open", "position"])
203
+ }, 8, ["id", "is-open", "position"])
202
204
  ]);
203
205
  }
204
- const Y = /* @__PURE__ */ D($, [["render", q], ["__scopeId", "data-v-38de30e6"]]);
206
+ const Y = /* @__PURE__ */ T(w, [["render", q], ["__scopeId", "data-v-a64d3c70"]]);
205
207
  export {
206
208
  Y as default
207
209
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as O, ref as n, computed as P, toRaw as V } from "vue";
1
+ import { defineComponent as P, ref as n, computed as V, toRaw as q } from "vue";
2
2
  import { AtCloseSolidIcon as T } from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCloseSolidIcon/index.js";
3
- import { AtFilterSolidIcon as q } from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtFilterSolidIcon/index.js";
4
- import B from "../../Button/Button.vue.js";
5
- import E from "../../Checkbox/Checkbox.vue.js";
6
- import M from "../../Dropdown/Dropdown.core.vue.js";
7
- import { AtTipograph as R } from "../../Tipograph/index.js";
8
- const _ = {
3
+ import { AtFilterSolidIcon as B } from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtFilterSolidIcon/index.js";
4
+ import E from "../../Button/Button.vue.js";
5
+ import M from "../../Checkbox/Checkbox.vue.js";
6
+ import R from "../../Dropdown/Dropdown.core.vue.js";
7
+ import { AtTipograph as _ } from "../../Tipograph/index.js";
8
+ const $ = {
9
9
  AtCloseSolidIcon: T,
10
- AtFilterSolidIcon: q
11
- }, Q = O({
10
+ AtFilterSolidIcon: B
11
+ }, U = P({
12
12
  name: "AtFilter",
13
13
  components: {
14
- AtDropDown: M,
15
- AtParagraph: R.Paragraph,
16
- AtButton: B,
17
- AtCheckbox: E,
18
- ..._
14
+ AtDropDown: R,
15
+ AtParagraph: _.Paragraph,
16
+ AtButton: E,
17
+ AtCheckbox: M,
18
+ ...$
19
19
  },
20
20
  props: {
21
21
  dropDownList: {
@@ -25,74 +25,79 @@ const _ = {
25
25
  options: {
26
26
  type: Object,
27
27
  required: !1
28
+ },
29
+ id: {
30
+ type: String,
31
+ required: !1
28
32
  }
29
33
  },
30
34
  emits: ["update:isOpen", "onSave"],
31
- setup(c, { emit: x }) {
35
+ setup(i, { emit: k, attrs: d }) {
32
36
  const C = (e) => {
33
37
  if (typeof e.text == "string")
34
38
  return e.text;
35
- }, i = n(!1), w = () => {
36
- i.value = !i.value;
37
- }, D = P(() => i.value || u.value > 0 ? "primary" : "secondary"), d = n(!1), p = n([]), h = () => {
38
- p.value = c.dropDownList.map(
39
- (e) => structuredClone(V(e))
39
+ }, c = n(!1), w = () => {
40
+ c.value = !c.value;
41
+ }, D = V(() => c.value || u.value > 0 ? "primary" : "secondary"), h = n(!1), p = n([]), g = () => {
42
+ p.value = i.dropDownList.map(
43
+ (e) => structuredClone(q(e))
40
44
  );
41
45
  };
42
- h();
43
- const r = n(), l = n(), A = () => {
44
- r.value = [], l.value = [], p.value.some((e) => "key" in e) ? r.value = p.value : l.value = p.value;
46
+ g();
47
+ const a = n(), l = n(), A = () => {
48
+ a.value = [], l.value = [], p.value.some((e) => "key" in e) ? a.value = p.value : l.value = p.value;
45
49
  };
46
50
  A();
47
- const g = (e) => {
51
+ const x = (e) => {
48
52
  var t, o;
49
- (t = r.value) == null || t.map(
50
- (s) => s.value.map((a) => a.value = e)
51
- ), (o = l.value) == null || o.map((s) => s.value = e);
52
- }, v = () => i.value = !1, L = (e = !0) => {
53
- d.value = !1, g(!1), k(), y(), e && setTimeout(v, 1);
53
+ (t = a.value) == null || t.map(
54
+ (r) => r.value.map((s) => s.value = e)
55
+ ), (o = l.value) == null || o.map((r) => r.value = e);
56
+ }, v = () => c.value = !1, L = (e = !0) => {
57
+ h.value = !1, x(!1), I(), y(), e && setTimeout(v, 1);
54
58
  }, S = () => {
55
- var o, s;
56
- const e = (o = r.value) == null ? void 0 : o.reduce(
57
- (a, { key: b, value: m }) => {
58
- const F = m == null ? void 0 : m.filter((f) => f.value).map((f) => f.text);
59
- return a[b] = F, a;
59
+ var o, r;
60
+ const e = (o = a.value) == null ? void 0 : o.reduce(
61
+ (s, { key: F, value: f }) => {
62
+ const O = f == null ? void 0 : f.filter((m) => m.value).map((m) => m.text);
63
+ return s[F] = O, s;
60
64
  },
61
65
  {}
62
- ), t = (s = l.value) == null ? void 0 : s.filter((a) => a.value).map((a) => a.text);
66
+ ), t = (r = l.value) == null ? void 0 : r.filter((s) => s.value).map((s) => s.text);
63
67
  return t != null && t.length ? t : e;
64
68
  }, y = () => {
65
69
  var t, o;
66
70
  const e = (t = l.value) != null && t.length ? l.value : (
67
71
  // .filter((item) => item.value)
68
- r.value
72
+ a.value
69
73
  );
70
- k(), v(), x(
74
+ I(), v(), k(
71
75
  "onSave",
72
- (o = c.options) != null && o.returnOnlyChecked && (e != null && e.length) ? S() : e
76
+ (o = i.options) != null && o.returnOnlyChecked && (e != null && e.length) ? S() : e
73
77
  );
74
- }, u = n(0), k = () => {
78
+ }, u = n(0), I = () => {
75
79
  var e, t;
76
- u.value = 0, u.value += ((e = l.value) == null ? void 0 : e.filter((o) => o.value).length) ?? 0, (t = r.value) == null || t.forEach(
80
+ u.value = 0, u.value += ((e = l.value) == null ? void 0 : e.filter((o) => o.value).length) ?? 0, (t = a.value) == null || t.forEach(
77
81
  (o) => o.value.forEach(
78
- (s) => s.value ? u.value++ : u
82
+ (r) => r.value ? u.value++ : u
79
83
  )
80
84
  );
81
- }, I = n(0);
85
+ }, b = n(0);
82
86
  return {
83
- props: c,
87
+ props: i,
84
88
  list: p,
85
- listSeparator: r,
89
+ listSeparator: a,
86
90
  listArray: l,
87
- checkAllModel: d,
88
- isOpen: i,
91
+ checkAllModel: h,
92
+ isOpen: c,
89
93
  getButtonColor: D,
90
94
  count: u,
91
- keyValue: I,
92
- resetList: h,
95
+ keyValue: b,
96
+ getItemId: (e) => d.id ? `${d.id}-${e.text}` : e.text,
97
+ resetList: g,
93
98
  setListProps: A,
94
99
  toggleDropdown: w,
95
- setAllCheckboxValues: g,
100
+ setAllCheckboxValues: x,
96
101
  clear: L,
97
102
  getItemText: C,
98
103
  closeDialog: v,
@@ -100,8 +105,8 @@ const _ = {
100
105
  };
101
106
  },
102
107
  watch: {
103
- checkAllModel(c) {
104
- this.setAllCheckboxValues(c);
108
+ checkAllModel(i) {
109
+ this.setAllCheckboxValues(i);
105
110
  },
106
111
  dropDownList() {
107
112
  this.resetList(), this.clear(!1), this.setListProps(), this.keyValue++;
@@ -109,5 +114,5 @@ const _ = {
109
114
  }
110
115
  });
111
116
  export {
112
- Q as default
117
+ U as default
113
118
  };
@@ -54,6 +54,10 @@ declare const _default: import("vue").DefineComponent<{
54
54
  type: BooleanConstructor;
55
55
  default: boolean;
56
56
  };
57
+ required: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
57
61
  readonly: {
58
62
  type: BooleanConstructor;
59
63
  default: boolean;
@@ -4686,6 +4690,10 @@ declare const _default: import("vue").DefineComponent<{
4686
4690
  type: BooleanConstructor;
4687
4691
  default: boolean;
4688
4692
  };
4693
+ required: {
4694
+ type: BooleanConstructor;
4695
+ default: boolean;
4696
+ };
4689
4697
  readonly: {
4690
4698
  type: BooleanConstructor;
4691
4699
  default: boolean;
@@ -4742,6 +4750,7 @@ declare const _default: import("vue").DefineComponent<{
4742
4750
  onClearInput?: ((...args: any[]) => any) | undefined;
4743
4751
  }, {
4744
4752
  type: string;
4753
+ required: boolean;
4745
4754
  label: string;
4746
4755
  error: {
4747
4756
  value: boolean;
@@ -1,16 +1,19 @@
1
- import p from "./Input.core.vue2.js";
2
- import { resolveComponent as m, openBlock as n, createElementBlock as l, createElementVNode as r, toDisplayString as i, Fragment as I, renderList as v, createCommentVNode as d, mergeProps as C, normalizeClass as k, createBlock as u, resolveDynamicComponent as y, createTextVNode as T } from "vue";
1
+ import m from "./Input.core.vue2.js";
2
+ import { resolveComponent as I, openBlock as n, createElementBlock as l, createElementVNode as r, createTextVNode as u, toDisplayString as i, createCommentVNode as d, Fragment as v, renderList as k, mergeProps as C, normalizeClass as T, createBlock as a, resolveDynamicComponent as y } from "vue";
3
3
  import "./Input.core.vue3.js";
4
4
  import f from "../_virtual/_plugin-vue_export-helper.js";
5
- const h = ["data-mode", "disabled"], F = ["for"], O = ["title"], $ = { class: "AT-INPUT_item_slot" }, b = ["onClick"], A = {
5
+ const h = ["data-mode", "disabled"], b = ["for"], $ = {
6
+ key: 0,
7
+ class: "AT-INPUT_required"
8
+ }, A = ["title"], F = { class: "AT-INPUT_item_slot" }, N = ["onClick"], O = {
6
9
  key: 0,
7
10
  class: "AT-INPUT_items_length"
8
- }, N = ["id", "disabled", "readonly", "type", "placeholder", "name", "value"], g = {
11
+ }, g = ["id", "disabled", "readonly", "type", "placeholder", "name", "value"], P = {
9
12
  key: 0,
10
13
  class: "AT-INPUT_error-message"
11
14
  }, M = ["src"];
12
- function P(e, s, U, B, E, z) {
13
- const a = m("AtCircleXMarkSolidIcon");
15
+ function U(e, s, c, B, E, z) {
16
+ const p = I("AtCircleXMarkSolidIcon");
14
17
  return n(), l("div", null, [
15
18
  r("div", {
16
19
  ref: "wrapperEl",
@@ -23,21 +26,24 @@ function P(e, s, U, B, E, z) {
23
26
  r("label", {
24
27
  for: e.id,
25
28
  onClick: s[0] || (s[0] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
26
- }, i(e.label), 9, F),
29
+ }, [
30
+ u(i(e.label) + " ", 1),
31
+ e.$props.required ? (n(), l("span", $, "*")) : d("", !0)
32
+ ], 8, b),
27
33
  e.separator ? (n(), l("div", {
28
34
  key: 0,
29
35
  ref: "containerItemsEl",
30
36
  class: "AT-INPUT_items",
31
37
  onClick: s[1] || (s[1] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
32
38
  }, [
33
- (n(!0), l(I, null, v(e.selectedItemsController.itemsToRender, (o) => (n(), l("span", {
39
+ (n(!0), l(v, null, k(e.selectedItemsController.itemsToRender, (o) => (n(), l("span", {
34
40
  key: o.value,
35
41
  ref_for: !0,
36
42
  ref: "selectedItemsEl",
37
43
  title: o.text,
38
44
  class: "AT-INPUT_item"
39
45
  }, [
40
- r("span", $, i(o.text), 1),
46
+ r("span", F, i(o.text), 1),
41
47
  r("span", {
42
48
  class: "AT-INPUT_item_slot_x",
43
49
  style: { padding: "1px 5px" },
@@ -45,9 +51,9 @@ function P(e, s, U, B, E, z) {
45
51
  var t;
46
52
  (t = e.onSelectedItemClick) == null || t.call(e, o == null ? void 0 : o.value);
47
53
  }
48
- }, "x", 8, b)
49
- ], 8, O))), 128)),
50
- e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span", A, "+ " + i(e.selectedItems.length - e.selectedItemsController.supportedItems), 1)) : d("", !0)
54
+ }, "x", 8, N)
55
+ ], 8, A))), 128)),
56
+ e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span", O, "+ " + i(e.selectedItems.length - e.selectedItemsController.supportedItems), 1)) : d("", !0)
51
57
  ], 512)) : (n(), l("input", C({ key: 1 }, e.$attrs, {
52
58
  id: e.id,
53
59
  ref: "inputEl",
@@ -61,32 +67,32 @@ function P(e, s, U, B, E, z) {
61
67
  onInput: s[2] || (s[2] = (...o) => e.onInput && e.onInput(...o)),
62
68
  onFocus: s[3] || (s[3] = (...o) => e.handleOnFocus && e.handleOnFocus(...o)),
63
69
  onFocusout: s[4] || (s[4] = (...o) => e.handleOnFocusOut && e.handleOnFocusOut(...o))
64
- }), null, 16, N)),
70
+ }), null, 16, g)),
65
71
  e.$props.icon ? (n(), l("div", {
66
72
  key: 2,
67
- class: k(["AT_INPUT_icon_slot", { clickable: e.useClearButton && e.isFocused }]),
73
+ class: T(["AT_INPUT_icon_slot", { clickable: e.useClearButton && e.isFocused }]),
68
74
  onClick: s[5] || (s[5] = (o) => e.showClearButton ? e.clearInput() : null)
69
75
  }, [
70
- e.showClearButton ? (n(), u(a, {
76
+ e.showClearButton ? (n(), a(p, {
71
77
  key: 0,
72
78
  size: "20"
73
- })) : (n(), u(y(e.icons[e.$props.icon.name]), {
79
+ })) : (n(), a(y(e.icons[e.$props.icon.name]), {
74
80
  key: 1,
75
81
  size: e.$props.icon.size || "20",
76
82
  color: e.iconColor
77
83
  }, null, 8, ["size", "color"]))
78
84
  ], 2)) : d("", !0)
79
85
  ], 40, h),
80
- e.error.value ? (n(), l("span", g, [
86
+ e.error.value ? (n(), l("span", P, [
81
87
  r("img", {
82
88
  src: e.icons.error,
83
89
  alt: "error icon"
84
90
  }, null, 8, M),
85
- T(" " + i(e.error.message), 1)
91
+ u(" " + i(e.error.message), 1)
86
92
  ])) : d("", !0)
87
93
  ]);
88
94
  }
89
- const D = /* @__PURE__ */ f(p, [["render", P], ["__scopeId", "data-v-0bd09748"]]);
95
+ const D = /* @__PURE__ */ f(m, [["render", U], ["__scopeId", "data-v-bc1b9b88"]]);
90
96
  export {
91
97
  D as default
92
98
  };
@@ -37,6 +37,10 @@ const Y = j({
37
37
  type: Boolean,
38
38
  default: !1
39
39
  },
40
+ required: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
40
44
  readonly: {
41
45
  type: Boolean,
42
46
  default: !1
@@ -100,9 +104,9 @@ const Y = j({
100
104
  supportedItems: e.selectedItems.length,
101
105
  isCounterActive: !1,
102
106
  itemsToRender: e.selectedItems
103
- }), F = Math.random().toString(36).substring(2), o = a(!1), M = () => {
107
+ }), q = Math.random().toString(36).substring(2), o = a(!1), F = () => {
104
108
  o.value = !0;
105
- }, q = () => {
109
+ }, M = () => {
106
110
  o.value = !1;
107
111
  }, g = () => {
108
112
  u.value = !0;
@@ -182,7 +186,7 @@ const Y = j({
182
186
  wrapperEl: b,
183
187
  inputEl: V,
184
188
  inputError: A,
185
- inputId: e.id ?? F,
189
+ inputId: e.id ?? q,
186
190
  handleOnFocus: g,
187
191
  handleOnFocusOut: m,
188
192
  icons: {
@@ -196,8 +200,8 @@ const Y = j({
196
200
  onInput: L,
197
201
  iconColor: x,
198
202
  isFocused: u,
199
- handleMouseOver: M,
200
- handleMouseLeave: q,
203
+ handleMouseOver: F,
204
+ handleMouseLeave: M,
201
205
  isHovered: o,
202
206
  inputComputedValue: W,
203
207
  currentMode: R,
@@ -35,6 +35,10 @@ export declare const AtInput: {
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
37
37
  };
38
+ required: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
38
42
  readonly: {
39
43
  type: BooleanConstructor;
40
44
  default: boolean;
@@ -4673,6 +4677,10 @@ export declare const AtInput: {
4673
4677
  type: BooleanConstructor;
4674
4678
  default: boolean;
4675
4679
  };
4680
+ required: {
4681
+ type: BooleanConstructor;
4682
+ default: boolean;
4683
+ };
4676
4684
  readonly: {
4677
4685
  type: BooleanConstructor;
4678
4686
  default: boolean;
@@ -4735,6 +4743,7 @@ export declare const AtInput: {
4735
4743
  onClearInput?: ((...args: any[]) => any) | undefined;
4736
4744
  }, {
4737
4745
  type: string;
4746
+ required: boolean;
4738
4747
  label: string;
4739
4748
  error: {
4740
4749
  value: boolean;