@agrotools1/at-components 1.0.67 → 1.0.68

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 (40) hide show
  1. package/dist/Accordion/Accordion.d.ts +84 -0
  2. package/dist/Button/Button.d.ts +1 -1
  3. package/dist/Checkbox/Checkbox.d.ts +88 -0
  4. package/dist/ColorPicker/ColorPicker.Saturation.d.ts +29 -0
  5. package/dist/DataTable/Counters/Counters.d.ts +41 -0
  6. package/dist/DataTable/DataTable.d.ts +347 -0
  7. package/dist/DataTable/index.d.ts +427 -0
  8. package/dist/DatePicker/DatePicker.d.ts +412 -0
  9. package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +180 -0
  10. package/dist/Input/Input.core.d.ts +6407 -0
  11. package/dist/Input/Input.core.vue.js +42 -42
  12. package/dist/Input/Input.core.vue2.js +24 -19
  13. package/dist/Input/Text-area.d.ts +2 -0
  14. package/dist/Input/Text-area.vue.js +16 -0
  15. package/dist/Input/Text-area.vue2.js +14 -0
  16. package/dist/Input/Text-area.vue3.js +4 -0
  17. package/dist/Input/index.d.ts +6402 -0
  18. package/dist/Input/index.js +3 -1
  19. package/dist/Modal/Modal.d.ts +1 -1
  20. package/dist/Modal/Modal.vue2.js +4 -2
  21. package/dist/Notifications/Notification/Notification.d.ts +188 -0
  22. package/dist/Notifications/Notifications.d.ts +334 -0
  23. package/dist/Search/Search.d.ts +180 -0
  24. package/dist/Select/Multiple/Select.multiple.d.ts +133 -0
  25. package/dist/Select/Single/Select.single.d.ts +172 -0
  26. package/dist/Select/index.d.ts +299 -0
  27. package/dist/Tag/Tag.d.ts +60 -0
  28. package/dist/Toggle/Toggle.d.ts +63 -0
  29. package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +5 -5
  30. package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +1 -1
  31. package/dist/Upload/SingleUpload/SingleUpload.vue.js +4 -4
  32. package/dist/Upload/SingleUpload/SingleUpload.vue2.js +1 -1
  33. package/dist/Upload/Upload.vue.js +1 -1
  34. package/dist/Upload/Upload.vue2.js +1 -1
  35. package/dist/Upload/Upload.vue3.js +2 -2
  36. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +10 -10
  37. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue2.js +1 -1
  38. package/dist/Upload/UploaderInput/UploaderInput.d.ts +86 -0
  39. package/dist/style.css +1 -1
  40. package/package.json +1 -1
@@ -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, d, i) {
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-383d7748"]]);
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
+ };