@agrotools1/at-components 0.5.0 → 0.5.1-1

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 +10 -0
  24. package/dist/Loading/Loading.vue.js +18 -0
  25. package/dist/Loading/Loading.vue2.js +11 -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,4 +1,4 @@
1
- import { defineComponent as g, ref as o, computed as l } from "vue";
1
+ import { defineComponent as g, ref as l, computed as o } from "vue";
2
2
  import { AtCircleXMarkSolidIcon as V } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/index.js";
3
3
  import { AtSearchIcon as w } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtSearchIcon/index.js";
4
4
  import { AtInput as x } from "../Input/index.js";
@@ -6,7 +6,7 @@ import B from "../List/components/List.vue.js";
6
6
  const E = {
7
7
  AtSearchIcon: w,
8
8
  AtCircleXMarkSolidIcon: V
9
- }, N = g({
9
+ }, D = g({
10
10
  name: "AtSearch",
11
11
  components: {
12
12
  AtInput: x.Text,
@@ -45,12 +45,16 @@ const E = {
45
45
  isDisabled: {
46
46
  type: Boolean,
47
47
  default: !1
48
+ },
49
+ id: {
50
+ type: String,
51
+ required: !1
48
52
  }
49
53
  },
50
54
  emits: ["update:modelValue", "onSelectedItem"],
51
55
  setup(t, { emit: n }) {
52
- const s = o([]), u = o(!1), c = o(null), f = l(
53
- () => u.value && t.hasAutoComplete
56
+ const s = l([]), u = l(!1), c = l(null), f = o(
57
+ () => u.value && t.hasAutoComplete && !!t.modelValue
54
58
  ), p = () => {
55
59
  var e;
56
60
  u.value = !0, (e = c.value) == null || e.classList.add("focused");
@@ -59,9 +63,9 @@ const E = {
59
63
  setTimeout(() => {
60
64
  u.value = !1;
61
65
  }, 200), (e = c.value) == null || e.classList.remove("focused");
62
- }, a = o(!1), I = async (e) => {
66
+ }, a = l(!1), v = async (e) => {
63
67
  n("update:modelValue", e), t.searchEndpoint && (a.value = !0, s.value = await t.searchEndpoint(e), a.value = !1);
64
- }, v = l(() => {
68
+ }, I = o(() => {
65
69
  var e;
66
70
  if (t.hasFilterOption) {
67
71
  const i = (d, m) => d.text.toUpperCase().includes(m.toUpperCase());
@@ -70,34 +74,34 @@ const E = {
70
74
  );
71
75
  }
72
76
  return (e = s.value) != null && e.length ? s.value : t.autoCompleteList;
73
- }), r = o(), S = (e) => {
77
+ }), r = l(), S = (e) => {
74
78
  const i = e.text;
75
79
  r.value = e, n("onSelectedItem", e), n("update:modelValue", i);
76
80
  }, L = () => {
77
- n("onSelectedItem", null), r.value = null;
78
- }, C = l(
79
- () => t.withIcon && !a.value && !r.value
80
- ), A = l(
81
+ n("onSelectedItem", null), a.value = !1, r.value = null;
82
+ }, C = o(
83
+ () => t.withIcon && a.value && !r.value
84
+ ), y = o(
81
85
  () => t.isDisabled ? "var(--at-medium-grey)" : ""
82
- ), y = l(
86
+ ), A = o(
83
87
  () => !!t.modelValue && !a.value
84
88
  );
85
89
  return {
86
90
  atSearch: c,
87
91
  autocompleteListIsOpen: f,
88
- autoCompleteListFiltered: v,
92
+ autoCompleteListFiltered: I,
89
93
  isLoading: a,
90
94
  showSearchIcon: C,
91
- getShowNoResultMessage: y,
92
- getSearchIconColor: A,
95
+ getShowNoResultMessage: A,
96
+ getSearchIconColor: y,
93
97
  clear: L,
94
98
  openList: p,
95
99
  closeList: h,
96
- handleChangeValue: I,
100
+ handleChangeValue: v,
97
101
  handleSelectedItem: S
98
102
  };
99
103
  }
100
104
  });
101
105
  export {
102
- N as default
106
+ D as default
103
107
  };
@@ -25,6 +25,11 @@ declare const _default: import("vue").DefineComponent<{
25
25
  default: () => SelectItemProps[];
26
26
  validator: (value: Array<SelectItemProps>) => boolean;
27
27
  };
28
+ required: {
29
+ type: BooleanConstructor;
30
+ required: false;
31
+ default: boolean;
32
+ };
28
33
  separator: {
29
34
  type: StringConstructor;
30
35
  default: string;
@@ -82,6 +87,11 @@ declare const _default: import("vue").DefineComponent<{
82
87
  default: () => SelectItemProps[];
83
88
  validator: (value: Array<SelectItemProps>) => boolean;
84
89
  };
90
+ required: {
91
+ type: BooleanConstructor;
92
+ required: false;
93
+ default: boolean;
94
+ };
85
95
  separator: {
86
96
  type: StringConstructor;
87
97
  default: string;
@@ -91,6 +101,7 @@ declare const _default: import("vue").DefineComponent<{
91
101
  "onUpdate:items"?: ((...args: any[]) => any) | undefined;
92
102
  "onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
93
103
  }, {
104
+ required: boolean;
94
105
  label: string;
95
106
  disabled: boolean;
96
107
  modelValue: string[] | SelectItemProps[];
@@ -1,5 +1,5 @@
1
- import p from "./Select.multiple.vue2.js";
2
- import { resolveComponent as i, openBlock as o, createElementBlock as l, createVNode as u, Fragment as m, renderList as k, createBlock as b, createCommentVNode as f } from "vue";
1
+ import u from "./Select.multiple.vue2.js";
2
+ import { resolveComponent as i, openBlock as o, createElementBlock as l, createVNode as p, Fragment as m, renderList as k, createBlock as b, createCommentVNode as f } from "vue";
3
3
  import "./Select.multiple.vue3.js";
4
4
  import C from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  const h = ["aria-disabled"], v = {
@@ -19,7 +19,7 @@ function g(e, n, I, S, y, A) {
19
19
  e.isOpen = !e.isOpen, e.rotateIcon();
20
20
  })
21
21
  }, [
22
- u(c, {
22
+ p(c, {
23
23
  "selected-items": e.selectedValues,
24
24
  label: e.label,
25
25
  "on-selected-item-click": e.onSelectedItemClick,
@@ -27,8 +27,9 @@ function g(e, n, I, S, y, A) {
27
27
  disabled: e.disabled,
28
28
  "force-value": !0,
29
29
  separator: e.separator,
30
+ required: e.required,
30
31
  "is-multiple": !0
31
- }, null, 8, ["selected-items", "label", "on-selected-item-click", "items", "disabled", "separator"]),
32
+ }, null, 8, ["selected-items", "label", "on-selected-item-click", "items", "disabled", "separator", "required"]),
32
33
  e.isOpen ? (o(), l("div", v, [
33
34
  (o(!0), l(m, null, k(e.myItems, (t) => (o(), b(d, {
34
35
  key: t.value,
@@ -42,16 +43,16 @@ function g(e, n, I, S, y, A) {
42
43
  },
43
44
  type: "multiple",
44
45
  "on-checkbox-change": async (a) => {
45
- var r;
46
+ var s;
46
47
  e.isInternalChange = !0;
47
- const s = a.value;
48
- (r = t.onCheckboxChange) == null || r.call(t, { ...a, item: t }), await e.onSelectedValueChange({ ...t }, s), s ? t.isSelected = !0 : t.isSelected = !1, e.$emit("update:items", e.myItems), e.isInternalChange = !1;
48
+ const r = a.value;
49
+ (s = t.onCheckboxChange) == null || s.call(t, { ...a, item: t }), await e.onSelectedValueChange({ ...t }, r), r ? t.isSelected = !0 : t.isSelected = !1, e.$emit("update:items", e.myItems), e.isInternalChange = !1;
49
50
  }
50
51
  }, null, 8, ["text", "value", "icon", "data-text", "checkbox-value", "on-click", "on-checkbox-change"]))), 128))
51
52
  ])) : f("", !0)
52
53
  ], 8, h);
53
54
  }
54
- const B = /* @__PURE__ */ C(p, [["render", g], ["__scopeId", "data-v-23a8d5db"]]);
55
+ const q = /* @__PURE__ */ C(u, [["render", g], ["__scopeId", "data-v-ddf56a71"]]);
55
56
  export {
56
- B as default
57
+ q as default
57
58
  };
@@ -2,7 +2,7 @@ import { defineComponent as V, ref as r, computed as g, watch as A, onMounted as
2
2
  import C from "../Item/Item.vue.js";
3
3
  import _ from "../Select.core.vue.js";
4
4
  import b from "../imgs/indicator.svg.js";
5
- const x = V({
5
+ const T = V({
6
6
  name: "AtMultipleSelect",
7
7
  components: {
8
8
  AtSingleCore: _,
@@ -30,6 +30,11 @@ const x = V({
30
30
  default: () => [],
31
31
  validator: (o) => Array.isArray(o) && o.every((u) => typeof u == "object")
32
32
  },
33
+ required: {
34
+ type: Boolean,
35
+ required: !1,
36
+ default: !1
37
+ },
33
38
  separator: {
34
39
  type: String,
35
40
  default: ","
@@ -116,5 +121,5 @@ const x = V({
116
121
  }
117
122
  });
118
123
  export {
119
- x as default
124
+ T as default
120
125
  };
@@ -40,6 +40,11 @@ declare const _default: import("vue").DefineComponent<{
40
40
  required: false;
41
41
  default: boolean;
42
42
  };
43
+ required: {
44
+ type: BooleanConstructor;
45
+ required: false;
46
+ default: boolean;
47
+ };
43
48
  }, {
44
49
  id: string;
45
50
  handleValue: () => string;
@@ -77,7 +82,13 @@ declare const _default: import("vue").DefineComponent<{
77
82
  required: false;
78
83
  default: boolean;
79
84
  };
85
+ required: {
86
+ type: BooleanConstructor;
87
+ required: false;
88
+ default: boolean;
89
+ };
80
90
  }>>, {
91
+ required: boolean;
81
92
  label: string;
82
93
  disabled: boolean;
83
94
  separator: string;
@@ -1,12 +1,12 @@
1
- import r from "./Select.core.vue2.js";
2
- import { resolveComponent as a, openBlock as n, createBlock as s, mergeProps as i } from "vue";
1
+ import t from "./Select.core.vue2.js";
2
+ import { resolveComponent as a, openBlock as n, createBlock as i, mergeProps as s } from "vue";
3
3
  import p from "../_virtual/_plugin-vue_export-helper.js";
4
- function d(e, o, m, u, c, b) {
4
+ function d(e, o, u, m, c, b) {
5
5
  const l = a("AtInput");
6
- return n(), s(l, i(e.$props, {
6
+ return n(), i(l, s(e.$props, {
7
7
  ref: "atInput",
8
8
  modelValue: e.inputModelValue,
9
- "onUpdate:modelValue": o[0] || (o[0] = (t) => e.inputModelValue = t),
9
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => e.inputModelValue = r),
10
10
  type: "button",
11
11
  role: "combobox",
12
12
  cursor: "pointer",
@@ -17,13 +17,14 @@ function d(e, o, m, u, c, b) {
17
17
  "aria-controls": e.id,
18
18
  "aria-label": e.label,
19
19
  separator: e.separator,
20
+ required: e.required,
20
21
  disabled: e.disabled,
21
22
  icon: { name: "AtAngleDownSolidIcon" },
22
23
  "aria-autocomplete": "none",
23
24
  class: "AT-SELECT_container"
24
- }), null, 16, ["modelValue", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "disabled"]);
25
+ }), null, 16, ["modelValue", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "required", "disabled"]);
25
26
  }
26
- const k = /* @__PURE__ */ p(r, [["render", d]]);
27
+ const k = /* @__PURE__ */ p(t, [["render", d]]);
27
28
  export {
28
29
  k as default
29
30
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as s, ref as r, computed as d, watch as f } from "vue";
1
+ import { defineComponent as d, ref as r, computed as s, watch as f } from "vue";
2
2
  import { AtInput as c } from "../Input/index.js";
3
3
  import "./Item/Item.vue2.js";
4
4
  import "./Item/Item.vue3.js";
5
- const I = s({
5
+ const I = d({
6
6
  name: "AtSelect",
7
7
  components: {
8
8
  AtInput: c.Text
@@ -38,10 +38,15 @@ const I = s({
38
38
  type: Boolean,
39
39
  required: !1,
40
40
  default: !1
41
+ },
42
+ required: {
43
+ type: Boolean,
44
+ required: !1,
45
+ default: !1
41
46
  }
42
47
  },
43
48
  setup(e) {
44
- const i = r(null), l = r(""), u = d(() => {
49
+ const i = r(null), l = r(""), u = s(() => {
45
50
  var t;
46
51
  return typeof e.value == "string" ? e.value : (t = e.value) == null ? void 0 : t.value;
47
52
  }), a = () => {
@@ -13,6 +13,11 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: StringConstructor;
14
14
  default: string;
15
15
  };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ required: false;
19
+ default: boolean;
20
+ };
16
21
  items: {
17
22
  type: () => Array<SelectItemProps>;
18
23
  default: () => SelectItemProps[];
@@ -49,6 +54,11 @@ declare const _default: import("vue").DefineComponent<{
49
54
  type: StringConstructor;
50
55
  default: string;
51
56
  };
57
+ required: {
58
+ type: BooleanConstructor;
59
+ required: false;
60
+ default: boolean;
61
+ };
52
62
  items: {
53
63
  type: () => Array<SelectItemProps>;
54
64
  default: () => SelectItemProps[];
@@ -61,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
61
71
  }>> & {
62
72
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
63
73
  }, {
74
+ required: boolean;
64
75
  label: string;
65
76
  modelValue: string | SelectItemProps;
66
77
  items: SelectItemProps[];
@@ -1,32 +1,33 @@
1
- import c from "./Select.single.vue2.js";
2
- import { resolveComponent as r, openBlock as t, createElementBlock as a, createVNode as u, withModifiers as d, Fragment as f, renderList as v, createBlock as C, createCommentVNode as k } from "vue";
1
+ import u from "./Select.single.vue2.js";
2
+ import { resolveComponent as l, openBlock as t, createElementBlock as r, createVNode as d, withModifiers as c, Fragment as v, renderList as f, createBlock as C, createCommentVNode as k } from "vue";
3
3
  import "./Select.single.vue3.js";
4
4
  import m from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  function g(e, o, A, I, S, y) {
6
- const s = r("AtSingleCore"), i = r("AtItem");
7
- return t(), a("div", {
6
+ const i = l("AtSingleCore"), s = l("AtItem");
7
+ return t(), r("div", {
8
8
  ref: "containerRef",
9
9
  class: "AT-SELECT_wrapper",
10
10
  onClick: o[1] || (o[1] = (n) => {
11
11
  e.open = !e.open, e.rotateIcon();
12
12
  })
13
13
  }, [
14
- u(s, {
14
+ d(i, {
15
15
  value: e.selectedValue,
16
+ required: e.required,
16
17
  label: e.label,
17
18
  items: e.items
18
- }, null, 8, ["value", "label", "items"]),
19
- e.open ? (t(), a("div", {
19
+ }, null, 8, ["value", "required", "label", "items"]),
20
+ e.open ? (t(), r("div", {
20
21
  key: 0,
21
22
  role: "group",
22
23
  "aria-orientation": "vertical",
23
24
  tabindex: "-1",
24
25
  class: "AT-SELECT_items-container",
25
- onClick: o[0] || (o[0] = d((n) => {
26
+ onClick: o[0] || (o[0] = c((n) => {
26
27
  e.open = !1, e.rotateIcon();
27
28
  }, ["stop"]))
28
29
  }, [
29
- (t(!0), a(f, null, v(e.items, (n) => (t(), C(i, {
30
+ (t(!0), r(v, null, f(e.items, (n) => (t(), C(s, {
30
31
  key: n.value,
31
32
  text: n.text,
32
33
  value: n.value,
@@ -35,14 +36,14 @@ function g(e, o, A, I, S, y) {
35
36
  "aria-selected": n.value === e.valueOfModel,
36
37
  "data-text": n.text,
37
38
  "on-click": async (p) => {
38
- var l;
39
- e.isInternalChange = !0, await e.onSelectedValueChange(n), (l = n.onClick) == null || l.call(n, p), e.isInternalChange = !1;
39
+ var a;
40
+ e.isInternalChange = !0, await e.onSelectedValueChange(n), (a = n.onClick) == null || a.call(n, p), e.isInternalChange = !1;
40
41
  }
41
42
  }, null, 8, ["text", "value", "type", "icon", "aria-selected", "data-text", "on-click"]))), 128))
42
43
  ])) : k("", !0)
43
44
  ], 512);
44
45
  }
45
- const V = /* @__PURE__ */ m(c, [["render", g], ["__scopeId", "data-v-24b1ef8c"]]);
46
+ const V = /* @__PURE__ */ m(u, [["render", g], ["__scopeId", "data-v-751e4155"]]);
46
47
  export {
47
48
  V as default
48
49
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, ref as n, computed as v, watch as p } from "vue";
1
+ import { defineComponent as m, ref as n, computed as v, watch as p } from "vue";
2
2
  import y from "../Item/Item.vue.js";
3
3
  import g from "../Select.core.vue.js";
4
- const _ = d({
4
+ const q = m({
5
5
  name: "AtSingleSelect",
6
6
  components: {
7
7
  AtSingleCore: g,
@@ -17,6 +17,11 @@ const _ = d({
17
17
  type: String,
18
18
  default: ""
19
19
  },
20
+ required: {
21
+ type: Boolean,
22
+ required: !1,
23
+ default: !1
24
+ },
20
25
  items: {
21
26
  type: Array,
22
27
  default: () => [],
@@ -30,11 +35,11 @@ const _ = d({
30
35
  emits: ["update:modelValue"],
31
36
  setup(a, { emit: u }) {
32
37
  const s = n(null), r = n(!1), t = n(a.modelValue), o = n(!1), i = (e) => {
33
- t.value = e, r.value = !1, c(), u(
38
+ t.value = e, r.value = !1, f(), u(
34
39
  "update:modelValue",
35
40
  a.emitValue ? t.value.value : t.value
36
41
  );
37
- }, f = v(() => {
42
+ }, c = v(() => {
38
43
  var e;
39
44
  return typeof t.value == "string" ? t.value : (e = t.value) == null ? void 0 : e.value;
40
45
  });
@@ -44,7 +49,7 @@ const _ = d({
44
49
  if (o.value)
45
50
  return;
46
51
  const l = a.items.find(
47
- (m) => m.value === (typeof e == "string" ? e : e.value)
52
+ (d) => d.value === (typeof e == "string" ? e : e.value)
48
53
  );
49
54
  if (!l) {
50
55
  console.warn(
@@ -55,7 +60,7 @@ const _ = d({
55
60
  o.value = !0, await i(l), o.value = !1;
56
61
  }
57
62
  );
58
- const c = () => {
63
+ const f = () => {
59
64
  var l;
60
65
  const e = (l = s.value) == null ? void 0 : l.querySelector(".AT_INPUT_icon_slot");
61
66
  e instanceof HTMLElement && e.setAttribute("data-rotate", r.value.toString());
@@ -64,13 +69,13 @@ const _ = d({
64
69
  onSelectedValueChange: i,
65
70
  selectedValue: t,
66
71
  open: r,
67
- valueOfModel: f,
72
+ valueOfModel: c,
68
73
  containerRef: s,
69
74
  isInternalChange: o,
70
- rotateIcon: c
75
+ rotateIcon: f
71
76
  };
72
77
  }
73
78
  });
74
79
  export {
75
- _ as default
80
+ q as default
76
81
  };
@@ -13,6 +13,11 @@ export declare const AtSelect: {
13
13
  type: StringConstructor;
14
14
  default: string;
15
15
  };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ required: false;
19
+ default: boolean;
20
+ };
16
21
  items: {
17
22
  type: () => ISelectItemProps[];
18
23
  default: () => ISelectItemProps[];
@@ -49,6 +54,11 @@ export declare const AtSelect: {
49
54
  type: StringConstructor;
50
55
  default: string;
51
56
  };
57
+ required: {
58
+ type: BooleanConstructor;
59
+ required: false;
60
+ default: boolean;
61
+ };
52
62
  items: {
53
63
  type: () => ISelectItemProps[];
54
64
  default: () => ISelectItemProps[];
@@ -61,6 +71,7 @@ export declare const AtSelect: {
61
71
  }>> & {
62
72
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
63
73
  }, {
74
+ required: boolean;
64
75
  label: string;
65
76
  modelValue: string | ISelectItemProps;
66
77
  items: ISelectItemProps[];
@@ -88,6 +99,11 @@ export declare const AtSelect: {
88
99
  default: () => ISelectItemProps[];
89
100
  validator: (value: ISelectItemProps[]) => boolean;
90
101
  };
102
+ required: {
103
+ type: BooleanConstructor;
104
+ required: false;
105
+ default: boolean;
106
+ };
91
107
  separator: {
92
108
  type: StringConstructor;
93
109
  default: string;
@@ -145,6 +161,11 @@ export declare const AtSelect: {
145
161
  default: () => ISelectItemProps[];
146
162
  validator: (value: ISelectItemProps[]) => boolean;
147
163
  };
164
+ required: {
165
+ type: BooleanConstructor;
166
+ required: false;
167
+ default: boolean;
168
+ };
148
169
  separator: {
149
170
  type: StringConstructor;
150
171
  default: string;
@@ -154,6 +175,7 @@ export declare const AtSelect: {
154
175
  "onUpdate:items"?: ((...args: any[]) => any) | undefined;
155
176
  "onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
156
177
  }, {
178
+ required: boolean;
157
179
  label: string;
158
180
  disabled: boolean;
159
181
  modelValue: string[] | ISelectItemProps[];
@@ -0,0 +1,25 @@
1
+ export interface SkeletonProps {
2
+ }
3
+ declare const _default: import("vue").DefineComponent<{
4
+ width: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ height: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ width: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ height: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>>, {
22
+ width: string;
23
+ height: string;
24
+ }, {}>;
25
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import o from "./Skeleton.vue2.js";
2
+ import { openBlock as t, createElementBlock as r, createElementVNode as l, normalizeStyle as c } from "vue";
3
+ import n from "../_virtual/_plugin-vue_export-helper.js";
4
+ const s = { class: "card-body placeholder-glow" };
5
+ function a(e, d, i, p, h, m) {
6
+ return t(), r("div", s, [
7
+ l("span", {
8
+ class: "placeholder rounded col-12",
9
+ style: c({ width: e.width, height: e.height })
10
+ }, null, 4)
11
+ ]);
12
+ }
13
+ const $ = /* @__PURE__ */ n(o, [["render", a]]);
14
+ export {
15
+ $ as default
16
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as t } from "vue";
2
+ const n = t({
3
+ name: "AtSkeleton",
4
+ props: {
5
+ width: {
6
+ type: String,
7
+ default: "100%"
8
+ },
9
+ height: {
10
+ type: String,
11
+ default: "100%"
12
+ }
13
+ },
14
+ setup() {
15
+ }
16
+ });
17
+ export {
18
+ n as default
19
+ };
@@ -1,22 +1 @@
1
- export declare const AtSkeleton: import("vue").DefineComponent<{
2
- width: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- height: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
- width: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- height: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- }>>, {
20
- width: string;
21
- height: string;
22
- }, {}>;
1
+ export { default as AtSkeleton, type SkeletonProps } from "./Skeleton";