@agrotools1/at-components 1.0.6 → 1.0.7

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,21 +1,21 @@
1
- import { defineComponent as P, ref as n, computed as R, toRaw as V } from "vue";
2
- import { AtCloseSolidIcon as q } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCloseSolidIcon/index.js";
3
- import { AtFilterRegularIcon as B } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtFilterRegularIcon/index.js";
4
- import T 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 U } from "../Tipograph/index.js";
8
- const _ = {
9
- AtCloseSolidIcon: q,
10
- AtFilterRegularIcon: B
11
- }, Q = P({
1
+ import { defineComponent as O, ref as n, computed as P, watch as R, toRaw as V } from "vue";
2
+ import { AtCloseSolidIcon as T } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCloseSolidIcon/index.js";
3
+ import { AtFilterRegularIcon as E } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtFilterRegularIcon/index.js";
4
+ import M from "../Button/Button.vue.js";
5
+ import U from "../Checkbox/Checkbox.vue.js";
6
+ import _ from "../Dropdown/Dropdown.core.vue.js";
7
+ import { AtTipograph as $ } from "../Tipograph/index.js";
8
+ const j = {
9
+ AtCloseSolidIcon: T,
10
+ AtFilterRegularIcon: E
11
+ }, W = O({
12
12
  name: "AtFilter",
13
13
  components: {
14
- AtDropDown: M,
15
- AtParagraph: U.Paragraph,
16
- AtButton: T,
17
- AtCheckbox: E,
18
- ..._
14
+ AtDropDown: _,
15
+ AtParagraph: $.Paragraph,
16
+ AtButton: M,
17
+ AtCheckbox: U,
18
+ ...j
19
19
  },
20
20
  props: {
21
21
  dropDownList: {
@@ -34,17 +34,26 @@ const _ = {
34
34
  id: {
35
35
  type: String,
36
36
  required: !1
37
+ },
38
+ disableSubmit: {
39
+ type: Boolean,
40
+ required: !1
41
+ },
42
+ forceClose: {
43
+ type: Boolean,
44
+ required: !1,
45
+ default: !1
37
46
  }
38
47
  },
39
48
  emits: ["update:isOpen", "onSave", "onCleanUp"],
40
- setup(i, { emit: d, attrs: h }) {
49
+ setup(u, { emit: m, attrs: h }) {
41
50
  const k = (e) => {
42
51
  if (typeof e.text == "string")
43
52
  return e.text;
44
- }, c = n(!1), w = () => {
45
- c.value = !c.value;
46
- }, D = R(() => c.value || u.value > 0 ? "primary" : "secondary"), g = n(!1), p = n([]), A = () => {
47
- p.value = i.dropDownList.map(
53
+ }, i = n(!1), D = () => {
54
+ i.value = !i.value;
55
+ }, I = P(() => i.value || c.value > 0 ? "primary" : "secondary"), g = n(!1), p = n([]), A = () => {
56
+ p.value = u.dropDownList.map(
48
57
  (e) => structuredClone(V(e))
49
58
  );
50
59
  };
@@ -53,65 +62,70 @@ const _ = {
53
62
  s.value = [], l.value = [], p.value.some((e) => "key" in e) ? s.value = p.value : l.value = p.value;
54
63
  };
55
64
  y();
56
- const x = (e) => {
65
+ const C = (e) => {
57
66
  var t, o;
58
67
  (t = s.value) == null || t.map(
59
68
  (a) => a.value.map((r) => r.value = e)
60
69
  ), (o = l.value) == null || o.map((a) => a.value = e);
61
- }, f = () => c.value = !1, L = (e = !0) => {
62
- g.value = !1, x(!1), I(), C(), d("onCleanUp"), e && setTimeout(f, 1);
70
+ }, f = () => i.value = !1, L = (e = !0) => {
71
+ g.value = !1, C(!1), w(), x(), m("onCleanUp"), e && setTimeout(f, 1);
63
72
  }, S = () => {
64
73
  var o, a;
65
74
  const e = (o = s.value) == null ? void 0 : o.reduce(
66
- (r, { key: F, value: v }) => {
67
- const O = v == null ? void 0 : v.filter((m) => m.value).map((m) => m.text);
68
- return r[F] = O, r;
75
+ (r, { key: B, value: v }) => {
76
+ const F = v == null ? void 0 : v.filter((d) => d.value).map((d) => d.text);
77
+ return r[B] = F, r;
69
78
  },
70
79
  {}
71
80
  ), t = (a = l.value) == null ? void 0 : a.filter((r) => r.value).map((r) => r.text);
72
81
  return t != null && t.length ? t : e;
73
- }, C = () => {
82
+ }, x = () => {
74
83
  var t, o;
75
84
  const e = (t = l.value) != null && t.length ? l.value : (
76
85
  // .filter((item) => item.value)
77
86
  s.value
78
87
  );
79
- I(), f(), d(
88
+ w(), f(), m(
80
89
  "onSave",
81
- (o = i.options) != null && o.returnOnlyChecked && (e != null && e.length) ? S() : e
90
+ (o = u.options) != null && o.returnOnlyChecked && (e != null && e.length) ? S() : e
82
91
  );
83
- }, u = n(0), I = () => {
92
+ }, c = n(0), w = () => {
84
93
  var e, t;
85
- u.value = 0, u.value += ((e = l.value) == null ? void 0 : e.filter((o) => o.value).length) ?? 0, (t = s.value) == null || t.forEach(
94
+ c.value = 0, c.value += ((e = l.value) == null ? void 0 : e.filter((o) => o.value).length) ?? 0, (t = s.value) == null || t.forEach(
86
95
  (o) => o.value.forEach(
87
- (a) => a.value ? u.value++ : u
96
+ (a) => a.value ? c.value++ : c
88
97
  )
89
98
  );
90
- }, b = n(0);
91
- return {
92
- props: i,
99
+ }, b = n(0), q = (e) => h.id ? `${h.id}-${e.text}` : e.text;
100
+ return R(
101
+ () => u.forceClose,
102
+ (e) => {
103
+ e && (i.value = !1);
104
+ }
105
+ ), {
106
+ props: u,
93
107
  list: p,
94
108
  listSeparator: s,
95
109
  listArray: l,
96
110
  checkAllModel: g,
97
- isOpen: c,
98
- getButtonColor: D,
99
- count: u,
111
+ isOpen: i,
112
+ getButtonColor: I,
113
+ count: c,
100
114
  keyValue: b,
101
- getItemId: (e) => h.id ? `${h.id}-${e.text}` : e.text,
115
+ getItemId: q,
102
116
  resetList: A,
103
117
  setListProps: y,
104
- toggleDropdown: w,
105
- setAllCheckboxValues: x,
118
+ toggleDropdown: D,
119
+ setAllCheckboxValues: C,
106
120
  clear: L,
107
121
  getItemText: k,
108
122
  closeDialog: f,
109
- save: C
123
+ save: x
110
124
  };
111
125
  },
112
126
  watch: {
113
- checkAllModel(i) {
114
- this.setAllCheckboxValues(i);
127
+ checkAllModel(u) {
128
+ this.setAllCheckboxValues(u);
115
129
  },
116
130
  dropDownList() {
117
131
  this.resetList(), this.clear(!1), this.setListProps(), this.keyValue++;
@@ -119,5 +133,5 @@ const _ = {
119
133
  }
120
134
  });
121
135
  export {
122
- Q as default
136
+ W as default
123
137
  };
@@ -36,6 +36,11 @@ declare const _default: import('vue').DefineComponent<{
36
36
  required: false;
37
37
  default: undefined;
38
38
  };
39
+ as: {
40
+ type: PropType<"input" | "textarea">;
41
+ default: string;
42
+ required: false;
43
+ };
39
44
  forceFocus: {
40
45
  type: BooleanConstructor;
41
46
  default: boolean;
@@ -6280,6 +6285,11 @@ declare const _default: import('vue').DefineComponent<{
6280
6285
  required: false;
6281
6286
  default: undefined;
6282
6287
  };
6288
+ as: {
6289
+ type: PropType<"input" | "textarea">;
6290
+ default: string;
6291
+ required: false;
6292
+ };
6283
6293
  forceFocus: {
6284
6294
  type: BooleanConstructor;
6285
6295
  default: boolean;
@@ -6367,6 +6377,7 @@ declare const _default: import('vue').DefineComponent<{
6367
6377
  onClearInput?: ((...args: any[]) => any) | undefined;
6368
6378
  onOverflow?: ((...args: any[]) => any) | undefined;
6369
6379
  }, {
6380
+ as: "input" | "textarea";
6370
6381
  type: string;
6371
6382
  required: boolean;
6372
6383
  label: string;
@@ -1,19 +1,19 @@
1
- import I from "./Input.core.vue2.js";
2
- import { resolveComponent as v, openBlock as n, createElementBlock as l, createElementVNode as t, createTextVNode as p, toDisplayString as d, createCommentVNode as r, Fragment as C, renderList as k, mergeProps as T, normalizeClass as m, createBlock as i, resolveDynamicComponent as y } from "vue";
1
+ import v from "./Input.core.vue2.js";
2
+ import { resolveComponent as C, openBlock as n, createElementBlock as l, createElementVNode as t, createTextVNode as p, toDisplayString as i, createCommentVNode as r, Fragment as k, renderList as T, createBlock as d, resolveDynamicComponent as m, mergeProps as y, normalizeClass as I } from "vue";
3
3
  import "./Input.core.vue3.js";
4
- import $ from "../_virtual/_plugin-vue_export-helper.js";
5
- const f = ["data-mode", "has-error", "disabled"], h = ["for"], A = {
4
+ import h from "../_virtual/_plugin-vue_export-helper.js";
5
+ const $ = ["data-mode", "has-error", "disabled"], f = ["for"], A = {
6
6
  key: 0,
7
7
  class: "AT-INPUT_required"
8
- }, N = ["title"], b = { class: "AT-INPUT_item_slot" }, F = ["onClick"], O = {
8
+ }, N = ["title"], P = { class: "AT-INPUT_item_slot" }, b = ["onClick"], F = {
9
9
  key: 0,
10
10
  class: "AT-INPUT_items_length"
11
- }, P = {
11
+ }, U = {
12
12
  key: 1,
13
13
  class: "AT_INPUT_button_placeholder"
14
- }, g = ["id", "disabled", "readonly", "type", "placeholder", "name", "value"], U = ["data-mode"], B = ["src"];
15
- function M(e, s, S, z, E, w) {
16
- const u = v("AtCloseSolidIcon");
14
+ }, c = ["data-mode"], g = ["src"];
15
+ function B(e, s, O, M, S, z) {
16
+ const a = C("AtCloseSolidIcon");
17
17
  return n(), l("div", null, [
18
18
  t("div", {
19
19
  ref: "wrapperEl",
@@ -21,85 +21,85 @@ function M(e, s, S, z, E, w) {
21
21
  "has-error": e.error.value,
22
22
  disabled: e.$props.disabled || void 0,
23
23
  class: "AT-INPUT_core",
24
- onMouseover: s[9] || (s[9] = (...o) => e.handleMouseOver && e.handleMouseOver(...o)),
25
- onMouseleave: s[10] || (s[10] = (...o) => e.handleMouseLeave && e.handleMouseLeave(...o))
24
+ onMouseover: s[6] || (s[6] = (...o) => e.handleMouseOver && e.handleMouseOver(...o)),
25
+ onMouseleave: s[7] || (s[7] = (...o) => e.handleMouseLeave && e.handleMouseLeave(...o))
26
26
  }, [
27
27
  t("label", {
28
28
  for: e.id,
29
29
  onClick: s[0] || (s[0] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
30
30
  }, [
31
- p(d(e.label) + " ", 1),
31
+ p(i(e.label) + " ", 1),
32
32
  e.$props.required ? (n(), l("span", A, "*")) : r("", !0)
33
- ], 8, h),
33
+ ], 8, f),
34
34
  e.separator ? (n(), l("div", {
35
35
  key: 0,
36
36
  ref: "containerItemsEl",
37
37
  class: "AT-INPUT_items",
38
38
  onClick: s[1] || (s[1] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
39
39
  }, [
40
- (n(!0), l(C, null, k(e.selectedItemsController.itemsToRender, (o) => (n(), l("span", {
40
+ (n(!0), l(k, null, T(e.selectedItemsController.itemsToRender, (o) => (n(), l("span", {
41
41
  key: o.value,
42
42
  ref_for: !0,
43
43
  ref: "selectedItemsEl",
44
44
  title: o.text,
45
45
  class: "AT-INPUT_item"
46
46
  }, [
47
- t("span", b, d(o.text), 1),
47
+ t("span", P, i(o.text), 1),
48
48
  t("span", {
49
49
  class: "AT-INPUT_item_slot_x",
50
50
  style: { padding: "1px 5px" },
51
51
  onClick: () => {
52
- var a;
53
- (a = e.onSelectedItemClick) == null || a.call(e, o == null ? void 0 : o.value);
52
+ var u;
53
+ (u = e.onSelectedItemClick) == null || u.call(e, o == null ? void 0 : o.value);
54
54
  }
55
- }, "x", 8, F)
55
+ }, "x", 8, b)
56
56
  ], 8, N))), 128)),
57
- e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span", O, "+ " + d(e.selectedItems.length - e.selectedItemsController.supportedItems), 1)) : r("", !0),
58
- e.$props.type === "button" && e.selectedItems.length <= 0 ? (n(), l("div", P, [
59
- t("span", null, d(e.placeholder), 1)
57
+ e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span", F, "+ " + i(e.selectedItems.length - e.selectedItemsController.supportedItems), 1)) : r("", !0),
58
+ e.$props.type === "button" && e.selectedItems.length <= 0 ? (n(), l("div", U, [
59
+ t("span", null, i(e.placeholder), 1)
60
60
  ])) : r("", !0)
61
- ], 512)) : (n(), l("input", T({ key: 1 }, e.$attrs, {
61
+ ], 512)) : (n(), d(m(e.as), y({ key: 1 }, e.$attrs, {
62
62
  id: e.id,
63
63
  ref: "inputEl",
64
64
  style: { cursor: e.cursor },
65
- class: e.inputClass,
65
+ class: [e.inputClass, "AT-INPUT"],
66
66
  disabled: e.$props.disabled || void 0,
67
67
  readonly: e.$props.readonly || void 0,
68
68
  type: e.type,
69
69
  placeholder: e.placeholder,
70
70
  name: e.id,
71
71
  value: e.inputComputedValue,
72
- onInput: s[2] || (s[2] = (...o) => e.onInput && e.onInput(...o)),
73
- onFocus: s[3] || (s[3] = (...o) => e.handleOnFocus && e.handleOnFocus(...o)),
74
- onFocusout: s[4] || (s[4] = (...o) => e.handleOnFocusOut && e.handleOnFocusOut(...o))
75
- }), null, 16, g)),
72
+ onInput: e.onInput,
73
+ onFocus: e.handleOnFocus,
74
+ onFocusout: e.handleOnFocusOut
75
+ }), null, 16, ["id", "style", "class", "disabled", "readonly", "type", "placeholder", "name", "value", "onInput", "onFocus", "onFocusout"])),
76
76
  e.$props.icon ? (n(), l("div", {
77
77
  key: 2,
78
- class: m(["AT_INPUT_side_icon_slot", { clickable: e.useSideClearButton }]),
79
- onClick: s[6] || (s[6] = (o) => e.showSideClearButton ? e.clearInput() : null)
78
+ class: I(["AT_INPUT_side_icon_slot", { clickable: e.useSideClearButton }]),
79
+ onClick: s[3] || (s[3] = (o) => e.showSideClearButton ? e.clearInput() : null)
80
80
  }, [
81
- e.showSideClearButton ? (n(), i(u, {
81
+ e.showSideClearButton ? (n(), d(a, {
82
82
  key: 0,
83
83
  size: "20",
84
- onClick: s[5] || (s[5] = (o) => e.clearInput())
84
+ onClick: s[2] || (s[2] = (o) => e.clearInput())
85
85
  })) : r("", !0)
86
86
  ], 2)) : r("", !0),
87
87
  e.$props.icon ? (n(), l("div", {
88
88
  key: 3,
89
- class: m(["AT_INPUT_icon_slot", { clickable: e.useClearButton && e.isFocused }]),
90
- onClick: s[8] || (s[8] = (o) => e.showClearButton ? e.clearInput() : null)
89
+ class: I(["AT_INPUT_icon_slot", { clickable: e.useClearButton && e.isFocused }]),
90
+ onClick: s[5] || (s[5] = (o) => e.showClearButton ? e.clearInput() : null)
91
91
  }, [
92
- e.showClearButton ? (n(), i(u, {
92
+ e.showClearButton ? (n(), d(a, {
93
93
  key: 0,
94
94
  size: "20",
95
- onClick: s[7] || (s[7] = (o) => e.clearInput())
96
- })) : (n(), i(y(e.icons[e.$props.icon.name]), {
95
+ onClick: s[4] || (s[4] = (o) => e.clearInput())
96
+ })) : (n(), d(m(e.icons[e.$props.icon.name]), {
97
97
  key: 1,
98
98
  size: e.$props.icon.size || "20",
99
99
  color: e.iconColor
100
100
  }, null, 8, ["size", "color"]))
101
101
  ], 2)) : r("", !0)
102
- ], 40, f),
102
+ ], 40, $),
103
103
  e.error.value ? (n(), l("span", {
104
104
  key: 0,
105
105
  class: "AT-INPUT_error-message",
@@ -108,12 +108,12 @@ function M(e, s, S, z, E, w) {
108
108
  t("img", {
109
109
  src: e.icons.error,
110
110
  alt: "error icon"
111
- }, null, 8, B),
112
- p(" " + d(e.error.message), 1)
113
- ], 8, U)) : r("", !0)
111
+ }, null, 8, g),
112
+ p(" " + i(e.error.message), 1)
113
+ ], 8, c)) : r("", !0)
114
114
  ]);
115
115
  }
116
- const j = /* @__PURE__ */ $(I, [["render", M], ["__scopeId", "data-v-a228fa48"]]);
116
+ const D = /* @__PURE__ */ h(v, [["render", B], ["__scopeId", "data-v-3369221a"]]);
117
117
  export {
118
- j as default
118
+ D as default
119
119
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as u, computed as i, onMounted as H, onBeforeUnmount as G, watchEffect as J, watch as B, nextTick as b } from "vue";
1
+ import { defineComponent as P, ref as n, computed as i, onMounted as H, onBeforeUnmount as G, watchEffect as J, watch as B, nextTick as b } from "vue";
2
2
  import { AtCloseSolidIcon as K } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCloseSolidIcon/index.js";
3
3
  import Q from "../Icons/icons.js";
4
4
  import X from "./imgs/error.svg.js";
@@ -18,6 +18,11 @@ const ee = P({
18
18
  required: !1,
19
19
  default: void 0
20
20
  },
21
+ as: {
22
+ type: String,
23
+ default: "input",
24
+ required: !1
25
+ },
21
26
  forceFocus: {
22
27
  type: Boolean,
23
28
  default: !1,
@@ -107,19 +112,19 @@ const ee = P({
107
112
  "overflow"
108
113
  ],
109
114
  setup(e, { emit: s }) {
110
- const F = { ...Q }, S = u(null), f = u(null), v = u(null), E = u(null), L = i(() => e.error), a = u(!1), d = u(""), c = u(!1), M = u(!1), T = i(
115
+ const F = { ...Q }, S = n(null), f = n(null), v = n(null), E = n(null), L = i(() => e.error), a = n(!1), d = n(""), c = n(!1), M = n(!1), T = i(
111
116
  () => e.useClearButton && a.value && e.modelValue && !c.value
112
117
  ), k = i(
113
118
  () => e.useSideClearButton && !e.useClearButton && e.modelValue && !c.value
114
- ), h = u({
119
+ ), g = n({
115
120
  supportedItems: e.selectedItems.length,
116
121
  isCounterActive: !1,
117
122
  itemsToRender: e.selectedItems
118
- }), _ = Math.random().toString(36).substring(2), o = u(!1), W = () => {
123
+ }), _ = Math.random().toString(36).substring(2), o = n(!1), W = () => {
119
124
  o.value = !0;
120
125
  }, x = () => {
121
126
  o.value = !1;
122
- }, g = () => {
127
+ }, h = () => {
123
128
  a.value = !0;
124
129
  }, m = () => {
125
130
  e.forceFocus || (e.forceEventClearButton ? a.value = !0 : A(() => {
@@ -127,28 +132,28 @@ const ee = P({
127
132
  }, 100)());
128
133
  }, I = async () => {
129
134
  var q;
130
- h.value.itemsToRender = e.selectedItems, await b();
135
+ g.value.itemsToRender = e.selectedItems, await b();
131
136
  const t = (q = v.value) == null ? void 0 : q.clientWidth;
132
137
  if (t === void 0)
133
138
  return;
134
- let l = 50, n = 0;
139
+ let l = 50, u = 0;
135
140
  const r = E.value;
136
141
  if (r)
137
142
  for (let y = 0; y < r.length; y++)
138
- l += r[y].clientWidth + 10, l <= t && (n = y + 1);
143
+ l += r[y].clientWidth + 10, l <= t && (u = y + 1);
139
144
  let w;
140
145
  l >= t ? w = {
141
146
  isCounterActive: l > (t || 0),
142
- supportedItems: n,
143
- itemsToRender: e.selectedItems.slice(0, n)
147
+ supportedItems: u,
148
+ itemsToRender: e.selectedItems.slice(0, u)
144
149
  } : w = {
145
150
  isCounterActive: l > (t || 0),
146
151
  supportedItems: e.selectedItems.length,
147
152
  itemsToRender: e.selectedItems
148
- }, h.value = w;
153
+ }, g.value = w;
149
154
  }, O = (t) => {
150
- var l, n;
151
- !((l = S.value) != null && l.contains(t.target)) && !((n = f.value) != null && n.contains(t.target)) && !T.value && !c.value && (m(), a.value = !1, s("clickOutside"));
155
+ var l, u;
156
+ !((l = S.value) != null && l.contains(t.target)) && !((u = f.value) != null && u.contains(t.target)) && !T.value && !c.value && (m(), a.value = !1, s("clickOutside"));
152
157
  }, C = async () => {
153
158
  if (await b(), f.value) {
154
159
  const t = f.value.scrollWidth > f.value.clientWidth;
@@ -157,7 +162,7 @@ const ee = P({
157
162
  };
158
163
  H(() => {
159
164
  var t;
160
- (e.modelValue !== void 0 && ((t = e.modelValue) != null && t.length) || e.forceFocus) && g(), document.addEventListener("click", O), window.addEventListener("resize", I);
165
+ (e.modelValue !== void 0 && ((t = e.modelValue) != null && t.length) || e.forceFocus) && h(), document.addEventListener("click", O), window.addEventListener("resize", I);
161
166
  }), G(() => {
162
167
  document.removeEventListener("click", O), window.removeEventListener("resize", I);
163
168
  });
@@ -171,9 +176,9 @@ const ee = P({
171
176
  s("update:modelValue", t), e.modelValue === void 0 && (d.value = t);
172
177
  };
173
178
  function A(t, l) {
174
- let n;
179
+ let u;
175
180
  return function() {
176
- clearTimeout(n), n = setTimeout(t, l);
181
+ clearTimeout(u), u = setTimeout(t, l);
177
182
  };
178
183
  }
179
184
  const j = () => {
@@ -183,7 +188,7 @@ const ee = P({
183
188
  };
184
189
  J(() => {
185
190
  var t, l;
186
- e.separator && ((e.modelValue !== void 0 ? e.modelValue.split(e.separator).filter((r) => r.length > 1) : d.value.split(e.separator).filter((r) => r.length > 1)).length ? (t = v.value) == null || t.classList.remove("AT-INPUT_items_empty") : ((l = v.value) == null || l.classList.add("AT-INPUT_items_empty"), m(), a.value = !1)), e.forceFocus ? g() : (m(), a.value = !1);
191
+ e.separator && ((e.modelValue !== void 0 ? e.modelValue.split(e.separator).filter((r) => r.length > 1) : d.value.split(e.separator).filter((r) => r.length > 1)).length ? (t = v.value) == null || t.classList.remove("AT-INPUT_items_empty") : ((l = v.value) == null || l.classList.add("AT-INPUT_items_empty"), m(), a.value = !1)), e.forceFocus ? h() : (m(), a.value = !1);
187
192
  }), B(
188
193
  () => e.selectedItems,
189
194
  async () => {
@@ -210,7 +215,7 @@ const ee = P({
210
215
  inputEl: f,
211
216
  inputError: L,
212
217
  inputId: e.id ?? _,
213
- handleOnFocus: g,
218
+ handleOnFocus: h,
214
219
  handleOnFocusOut: m,
215
220
  icons: {
216
221
  error: X,
@@ -230,7 +235,7 @@ const ee = P({
230
235
  inputComputedValue: U,
231
236
  currentMode: N,
232
237
  selectedItemsEl: E,
233
- selectedItemsController: h,
238
+ selectedItemsController: g,
234
239
  resizeSelectedItems: I,
235
240
  inputClass: D,
236
241
  checkOverflow: C
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import o from "./Text-area.vue2.js";
2
+ import { resolveComponent as r, openBlock as p, createBlock as n, mergeProps as a } from "vue";
3
+ import "./Text-area.vue3.js";
4
+ import s from "../_virtual/_plugin-vue_export-helper.js";
5
+ function c(t, m, _, f, i, u) {
6
+ const e = r("AtCoreInput");
7
+ return p(), n(e, a({
8
+ type: "textarea",
9
+ as: "textarea",
10
+ rows: 8
11
+ }, t.$attrs), null, 16);
12
+ }
13
+ const A = /* @__PURE__ */ s(o, [["render", c], ["__scopeId", "data-v-9273f202"]]);
14
+ export {
15
+ A as default
16
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as t } from "vue";
2
+ import e from "./Input.core.vue.js";
3
+ const r = t({
4
+ name: "AtTextArea",
5
+ components: {
6
+ AtCoreInput: e
7
+ },
8
+ setup() {
9
+ return {};
10
+ }
11
+ });
12
+ export {
13
+ r as default
14
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import { InputCoreProps } from './Input.core';
2
2
 
3
3
  export type InputProps = InputCoreProps;
4
- export declare const AtInput: {
4
+ declare const AtInput: {
5
5
  Text: import('vue').DefineComponent<{
6
6
  modelValue: {
7
7
  type: StringConstructor;
@@ -17,6 +17,11 @@ export declare const AtInput: {
17
17
  required: false;
18
18
  default: undefined;
19
19
  };
20
+ as: {
21
+ type: import('vue').PropType<"input" | "textarea">;
22
+ default: string;
23
+ required: false;
24
+ };
20
25
  forceFocus: {
21
26
  type: BooleanConstructor;
22
27
  default: boolean;
@@ -6267,6 +6272,11 @@ export declare const AtInput: {
6267
6272
  required: false;
6268
6273
  default: undefined;
6269
6274
  };
6275
+ as: {
6276
+ type: import('vue').PropType<"input" | "textarea">;
6277
+ default: string;
6278
+ required: false;
6279
+ };
6270
6280
  forceFocus: {
6271
6281
  type: BooleanConstructor;
6272
6282
  default: boolean;
@@ -6360,6 +6370,7 @@ export declare const AtInput: {
6360
6370
  onClearInput?: ((...args: any[]) => any) | undefined;
6361
6371
  onOverflow?: ((...args: any[]) => any) | undefined;
6362
6372
  }, {
6373
+ as: "input" | "textarea";
6363
6374
  type: string;
6364
6375
  required: boolean;
6365
6376
  label: string;
@@ -6386,4 +6397,6 @@ export declare const AtInput: {
6386
6397
  useSideClearButton: boolean;
6387
6398
  forceEventClearButton: boolean;
6388
6399
  }, {}>;
6400
+ TextArea: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
6389
6401
  };
6402
+ export { AtInput };
@@ -1,6 +1,8 @@
1
1
  import t from "./Input.core.vue.js";
2
+ import o from "./Text-area.vue.js";
2
3
  const p = {
3
- Text: t
4
+ Text: t,
5
+ TextArea: o
4
6
  };
5
7
  export {
6
8
  p as AtInput
@@ -29,6 +29,8 @@ import "../Illustration/Illustration.vue2.js";
29
29
  import "../Illustration/Illustration.vue3.js";
30
30
  import "../Input/Input.core.vue2.js";
31
31
  import "../Input/Input.core.vue3.js";
32
+ import "../Input/Text-area.vue2.js";
33
+ import "../Input/Text-area.vue3.js";
32
34
  import "../Legend/Legend.vue2.js";
33
35
  import "../Legend/Legend.vue3.js";
34
36
  import "../List/components/List.vue2.js";
@@ -72,7 +74,7 @@ import "../Tooltip/Tooltip.vue3.js";
72
74
  import "../Upload/Upload.vue2.js";
73
75
  import "../Upload/Upload.vue3.js";
74
76
  import f from "./images/cross.svg.js";
75
- const It = a({
77
+ const Nt = a({
76
78
  name: "AtModal",
77
79
  components: { AtButton: l, AtCheckbox: u },
78
80
  props: {
@@ -139,5 +141,5 @@ const It = a({
139
141
  }
140
142
  });
141
143
  export {
142
- It as default
144
+ Nt as default
143
145
  };
@@ -3,7 +3,7 @@ import { SelectCoreProps } from './Select.core';
3
3
 
4
4
  export type SelectProps = SelectCoreProps;
5
5
  export type SelectItemProps = ISelectItemProps;
6
- export declare const AtSelect: {
6
+ declare const AtSelect: {
7
7
  Single: import('vue').DefineComponent<{
8
8
  modelValue: {
9
9
  type: import('vue').PropType<string | ISelectItemProps>;
@@ -296,3 +296,4 @@ export declare const AtSelect: {
296
296
  emitValue: boolean;
297
297
  }, {}>;
298
298
  };
299
+ export { AtSelect };