@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
@@ -27,6 +27,14 @@ declare const _default: import("vue").DefineComponent<{
27
27
  type: ObjectConstructor;
28
28
  default: () => void;
29
29
  };
30
+ fullSize: {
31
+ type: PropType<boolean | undefined>;
32
+ default: boolean;
33
+ };
34
+ id: {
35
+ type: PropType<string | undefined>;
36
+ default: string;
37
+ };
30
38
  }, {
31
39
  listItems: import("vue").Ref<{
32
40
  value: boolean | string[];
@@ -77,13 +85,23 @@ declare const _default: import("vue").DefineComponent<{
77
85
  type: ObjectConstructor;
78
86
  default: () => void;
79
87
  };
88
+ fullSize: {
89
+ type: PropType<boolean | undefined>;
90
+ default: boolean;
91
+ };
92
+ id: {
93
+ type: PropType<string | undefined>;
94
+ default: string;
95
+ };
80
96
  }>> & {
81
97
  "onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
82
98
  onOnSave?: ((...args: any[]) => any) | undefined;
83
99
  onItemClicked?: ((...args: any[]) => any) | undefined;
84
100
  }, {
85
101
  isOpen: boolean;
102
+ id: string | undefined;
86
103
  position: "left" | "right" | undefined;
104
+ fullSize: boolean | undefined;
87
105
  trigger: Record<string, any>;
88
106
  dropDownList: DropdownListItem[];
89
107
  isMultiple: boolean | undefined;
@@ -9,4 +9,6 @@ export interface AtDpListProps {
9
9
  isMultiple?: boolean;
10
10
  position?: "left" | "right";
11
11
  showNoResultMessage: boolean;
12
+ fullSize?: boolean;
13
+ id?: string;
12
14
  }
@@ -1,81 +1,84 @@
1
1
  import h from "./List.vue2.js";
2
- import { resolveComponent as i, openBlock as t, createBlock as n, withCtx as s, resolveDynamicComponent as a, createElementBlock as l, createVNode as d, createTextVNode as u, createCommentVNode as r, Fragment as k, renderList as y, normalizeStyle as m, createElementVNode as C, toDisplayString as _ } from "vue";
2
+ import { resolveComponent as r, openBlock as t, createBlock as n, withCtx as l, renderSlot as k, resolveDynamicComponent as a, createElementBlock as s, createVNode as p, createTextVNode as u, createCommentVNode as i, Fragment as y, renderList as C, normalizeStyle as f, createElementVNode as v, toDisplayString as z } from "vue";
3
3
  import "./List.vue3.js";
4
4
  import V from "../../_virtual/_plugin-vue_export-helper.js";
5
- const v = {
5
+ const I = {
6
6
  key: 0,
7
7
  class: "noResult"
8
- }, I = ["onClick"], A = ["for"];
9
- function N(e, z, b, D, L, R) {
10
- const c = i("AtParagraph"), f = i("AtCheckbox"), g = i("AtDropdown");
8
+ }, A = ["onClick"], N = ["for"];
9
+ function _(e, $, b, D, L, R) {
10
+ const c = r("AtParagraph"), m = r("AtCheckbox"), g = r("AtDropdown");
11
11
  return t(), n(g, {
12
+ id: e.id,
12
13
  "is-open": e.isOpen,
13
14
  position: e.position,
15
+ "full-size": e.fullSize,
14
16
  "onUpdate:isOpen": e.handleIsOpen
15
17
  }, {
16
- trigger: s(() => [
18
+ trigger: l(() => [
19
+ k(e.$slots, "default", {}, void 0, !0),
17
20
  (t(), n(a(e.trigger)))
18
21
  ]),
19
- default: s(() => [
20
- (t(), l("div", {
22
+ default: l(() => [
23
+ (t(), s("div", {
21
24
  key: e.keyValue,
22
25
  class: "list"
23
26
  }, [
24
- e.showNoResult ? (t(), l("section", v, [
25
- d(c, { size: "p2" }, {
26
- default: s(() => [
27
+ e.showNoResult ? (t(), s("section", I, [
28
+ p(c, { size: "p2" }, {
29
+ default: l(() => [
27
30
  u(" Dado não encontrado ")
28
31
  ]),
29
32
  _: 1
30
33
  })
31
- ])) : r("", !0),
32
- (t(!0), l(k, null, y(e.listItems, (o) => (t(), l("div", {
34
+ ])) : i("", !0),
35
+ (t(!0), s(y, null, C(e.listItems, (o) => (t(), s("div", {
33
36
  key: o.text,
34
37
  class: "item",
35
- onClick: (p) => e.selectItem(o)
38
+ onClick: (d) => e.selectItem(o)
36
39
  }, [
37
- e.isMultiple ? (t(), n(f, {
40
+ e.isMultiple ? (t(), n(m, {
38
41
  key: 0,
39
42
  id: o.text,
40
43
  modelValue: o.value,
41
- "onUpdate:modelValue": (p) => o.value = p,
44
+ "onUpdate:modelValue": (d) => o.value = d,
42
45
  class: "item-check",
43
46
  size: "12"
44
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue"])) : r("", !0),
47
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue"])) : i("", !0),
45
48
  o.iconLeft ? (t(), n(a(e.icons[e.getIconName(o.iconLeft)]), {
46
49
  key: 1,
47
50
  size: "16",
48
51
  class: "icon-left",
49
- style: m({ color: e.getIconColor(o.iconLeft) })
50
- }, null, 8, ["style"])) : r("", !0),
51
- C("label", {
52
+ style: f({ color: e.getIconColor(o.iconLeft) })
53
+ }, null, 8, ["style"])) : i("", !0),
54
+ v("label", {
52
55
  for: o.text,
53
56
  class: "item-label"
54
57
  }, [
55
- d(c, { size: "p2" }, {
56
- default: s(() => [
57
- u(_(o.text), 1)
58
+ p(c, { size: "p2" }, {
59
+ default: l(() => [
60
+ u(z(o.text), 1)
58
61
  ]),
59
62
  _: 2
60
63
  }, 1024)
61
- ], 8, A),
64
+ ], 8, N),
62
65
  o.iconRight ? (t(), n(a(e.icons[e.getIconName(o.iconRight)]), {
63
66
  key: 2,
64
67
  class: "icon-right",
65
- style: m({
68
+ style: f({
66
69
  color: e.getIconColor(o.iconRight),
67
70
  position: "abosulte",
68
71
  right: "16px"
69
72
  }),
70
73
  size: "16"
71
- }, null, 8, ["style"])) : r("", !0)
72
- ], 8, I))), 128))
74
+ }, null, 8, ["style"])) : i("", !0)
75
+ ], 8, A))), 128))
73
76
  ]))
74
77
  ]),
75
- _: 1
76
- }, 8, ["is-open", "position", "onUpdate:isOpen"]);
78
+ _: 3
79
+ }, 8, ["id", "is-open", "position", "full-size", "onUpdate:isOpen"]);
77
80
  }
78
- const B = /* @__PURE__ */ V(h, [["render", N], ["__scopeId", "data-v-01658f6d"]]);
81
+ const B = /* @__PURE__ */ V(h, [["render", _], ["__scopeId", "data-v-f2acaa9c"]]);
79
82
  export {
80
83
  B as default
81
84
  };
@@ -1,11 +1,11 @@
1
1
  import * as g from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/index.js";
2
- import { defineComponent as h, ref as l, computed as v } from "vue";
3
- import y from "../../Checkbox/Checkbox.vue.js";
2
+ import { defineComponent as h, ref as l, computed as y } from "vue";
3
+ import v from "../../Checkbox/Checkbox.vue.js";
4
4
  import I from "../../Dropdown/Dropdown.core.vue.js";
5
5
  import { AtTipograph as O } from "../../Tipograph/index.js";
6
6
  const D = h({
7
7
  name: "AtList",
8
- components: { AtDropdown: I, AtParagraph: O.Paragraph, AtCheckbox: y },
8
+ components: { AtDropdown: I, AtParagraph: O.Paragraph, AtCheckbox: v },
9
9
  props: {
10
10
  isOpen: {
11
11
  type: Boolean,
@@ -21,7 +21,7 @@ const D = h({
21
21
  },
22
22
  position: {
23
23
  type: String,
24
- default: "bottom"
24
+ default: "left"
25
25
  },
26
26
  showNoResultMessage: {
27
27
  type: Boolean,
@@ -31,24 +31,32 @@ const D = h({
31
31
  type: Object,
32
32
  default: () => {
33
33
  }
34
+ },
35
+ fullSize: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ id: {
40
+ type: String,
41
+ default: ""
34
42
  }
35
43
  },
36
44
  emits: ["update:isOpen", "onSave", "itemClicked"],
37
45
  setup(t, { emit: o }) {
38
46
  const a = l(
39
47
  Object.assign([], t.dropDownList)
40
- ), s = l(), r = () => o("update:isOpen", !1), p = ({ text: e, value: n }) => {
48
+ ), s = l(), r = () => o("update:isOpen", !1), i = ({ text: e, value: n }) => {
41
49
  s.value = { text: e, value: n }, o("onSave", s.value);
42
- }, i = () => {
50
+ }, p = () => {
43
51
  s.value = a.value.filter((e) => e.value).map(({ text: e, value: n }) => ({ text: e, value: n })), o("onSave", s.value);
44
52
  }, u = (e) => {
45
53
  if (e.onClick && (e.onClick(e), o("itemClicked", e)), t.isMultiple)
46
- return i();
47
- p(e), r();
48
- }, c = (e) => typeof e == "string" ? e : e.name, f = (e) => {
54
+ return p();
55
+ i(e), r();
56
+ }, f = (e) => typeof e == "string" ? e : e.name, c = (e) => {
49
57
  if (typeof e != "string")
50
58
  return e.color;
51
- }, d = v(
59
+ }, d = y(
52
60
  () => {
53
61
  var e;
54
62
  return !((e = a.value) != null && e.length) && t.showNoResultMessage;
@@ -64,8 +72,8 @@ const D = h({
64
72
  o("update:isOpen", e);
65
73
  },
66
74
  selectItem: u,
67
- getIconName: c,
68
- getIconColor: f
75
+ getIconName: f,
76
+ getIconColor: c
69
77
  };
70
78
  },
71
79
  watch: {
@@ -0,0 +1,10 @@
1
+ export interface LoadingProps {
2
+ }
3
+ declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
4
+ [x: string]: unknown;
5
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
6
+ [x: string]: unknown;
7
+ }>>>>, {
8
+ readonly [x: number]: string;
9
+ } | {}, {}>;
10
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import t from "./Loading.vue2.js";
2
+ import { openBlock as s, createElementBlock as o, createElementVNode as e } from "vue";
3
+ import "./Loading.vue3.js";
4
+ import n from "../_virtual/_plugin-vue_export-helper.js";
5
+ const r = { class: "d-flex align-items-center justify-content-center h-100 w-100" }, c = /* @__PURE__ */ e("div", { class: "d-flex flex-row align-items-center" }, [
6
+ /* @__PURE__ */ e("span", { class: "ATLOADING-bar1" }),
7
+ /* @__PURE__ */ e("span", { class: "ATLOADING-bar2" }),
8
+ /* @__PURE__ */ e("span", { class: "ATLOADING-bar3" })
9
+ ], -1), a = [
10
+ c
11
+ ];
12
+ function i(l, p, _, d, f, m) {
13
+ return s(), o("div", r, a);
14
+ }
15
+ const L = /* @__PURE__ */ n(t, [["render", i]]);
16
+ export {
17
+ L as default
18
+ };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e } from "vue";
2
+ const o = e({
3
+ name: "AtLoading",
4
+ props: {},
5
+ setup() {
6
+ return {};
7
+ }
8
+ });
9
+ export {
10
+ o as default
11
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1 @@
1
+ export { default as AtLoading, type LoadingProps } from "./Loading";
@@ -32,6 +32,8 @@ import "../Legend/Legend.vue2.js";
32
32
  import "../Legend/Legend.vue3.js";
33
33
  import "../List/components/List.vue2.js";
34
34
  import "../List/components/List.vue3.js";
35
+ import "../Loading/Loading.vue2.js";
36
+ import "../Loading/Loading.vue3.js";
35
37
  import "../Map/Map.vue2.js";
36
38
  import "../Map/Map.vue3.js";
37
39
  import "./Modal.vue3.js";
@@ -47,6 +49,7 @@ import "../Select/Multiple/Select.multiple.vue2.js";
47
49
  import "../Select/Multiple/Select.multiple.vue3.js";
48
50
  import "../Select/Single/Select.single.vue2.js";
49
51
  import "../Select/Single/Select.single.vue3.js";
52
+ import "../Skeleton/Skeleton.vue2.js";
50
53
  import "../Stepper/Stepper.vue2.js";
51
54
  import "../Stepper/Stepper.vue3.js";
52
55
  import "../TableConfig/TableConfig.vue2.js";
@@ -65,7 +68,7 @@ import "../Tooltip/Tooltip.vue2.js";
65
68
  import "../Tooltip/Tooltip.vue3.js";
66
69
  import "../Upload/Upload.vue2.js";
67
70
  import "../Upload/Upload.vue3.js";
68
- const xt = p({
71
+ const Bt = p({
69
72
  name: "AtModal",
70
73
  components: { AtButton: n, AtCheckbox: s },
71
74
  props: {
@@ -114,5 +117,5 @@ const xt = p({
114
117
  }
115
118
  });
116
119
  export {
117
- xt as default
120
+ Bt as default
118
121
  };
@@ -42,11 +42,11 @@ declare const _default: import("vue").DefineComponent<{
42
42
  progress: Ref<number>;
43
43
  uploadBytes: Ref<number>;
44
44
  handleFileName: (fileName: string | undefined) => string;
45
- handleFileSize: (fileSize: number | undefined) => number;
45
+ handleFileSize: (fileSize: number | undefined) => string;
46
46
  handleProgressBar: (document: File | null) => void;
47
47
  handleRemoveFileC: () => void;
48
48
  handleClick: () => unknown;
49
- handleUploadBytes: () => number | Ref<number>;
49
+ handleUploadBytes: () => string | Ref<number>;
50
50
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateProgress" | "update:file")[], "updateProgress" | "update:file", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
51
  file: {
52
52
  type: {
@@ -3,7 +3,7 @@ import { resolveComponent as t, openBlock as _, createElementBlock as f, createE
3
3
  import "./ProgressBar.vue3.js";
4
4
  import u from "../_virtual/_plugin-vue_export-helper.js";
5
5
  const h = { class: "analyser-upload-container" }, v = { class: "analyser-upload" }, C = { style: { display: "flex", gap: "6px" } }, g = { class: "d-flex" }, k = { class: "upload-bar" }, y = ["value"];
6
- function A(e, d, z, B, $, S) {
6
+ function A(e, d, z, $, S, B) {
7
7
  const c = t("AtExcelSolidIcon"), a = t("AtParagraph"), p = t("AtCircleXMarkSolidIcon");
8
8
  return _(), f("div", h, [
9
9
  s("div", v, [
@@ -60,14 +60,14 @@ function A(e, d, z, B, $, S) {
60
60
  default: r(() => {
61
61
  var o;
62
62
  return [
63
- i(n(`${e.handleUploadBytes()} MB / ${e.handleFileSize((o = e.fileC.file) == null ? void 0 : o.size)}MB`), 1)
63
+ i(n(`${e.handleUploadBytes()} / ${e.handleFileSize((o = e.fileC.file) == null ? void 0 : o.size)}`), 1)
64
64
  ];
65
65
  }),
66
66
  _: 1
67
67
  })
68
68
  ]);
69
69
  }
70
- const M = /* @__PURE__ */ u(m, [["render", A], ["__scopeId", "data-v-8445e42e"]]);
70
+ const N = /* @__PURE__ */ u(m, [["render", A], ["__scopeId", "data-v-59295a33"]]);
71
71
  export {
72
- M as default
72
+ N as default
73
73
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as c, ref as d, reactive as v, onMounted as p } from "vue";
2
- import { AtCircleXMarkSolidIcon as h } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/index.js";
3
- import { AtExcelSolidIcon as m } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtExcelSolidIcon/index.js";
4
- import { AtTipograph as y } from "../Tipograph/index.js";
5
- const q = c({
1
+ import { defineComponent as h, ref as c, reactive as g, onMounted as F } from "vue";
2
+ import { AtCircleXMarkSolidIcon as y } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/index.js";
3
+ import { AtExcelSolidIcon as M } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtExcelSolidIcon/index.js";
4
+ import { AtTipograph as P } from "../Tipograph/index.js";
5
+ const x = h({
6
6
  name: "AtProgressBar",
7
7
  components: {
8
- AtParagraph: y.Paragraph,
9
- AtCircleXMarkSolidIcon: h,
10
- AtExcelSolidIcon: m
8
+ AtParagraph: P.Paragraph,
9
+ AtCircleXMarkSolidIcon: y,
10
+ AtExcelSolidIcon: M
11
11
  },
12
12
  props: {
13
13
  file: {
14
14
  type: File,
15
15
  required: !1,
16
16
  default: null,
17
- validator: (l) => l instanceof File
17
+ validator: (t) => t instanceof File
18
18
  },
19
19
  isOnlyUse: {
20
20
  type: Boolean,
@@ -30,46 +30,56 @@ const q = c({
30
30
  type: Number,
31
31
  required: !1,
32
32
  default: 1e3,
33
- validator: (l) => typeof l == "number"
33
+ validator: (t) => typeof t == "number"
34
34
  }
35
35
  },
36
36
  emits: ["updateProgress", "update:file"],
37
- setup(l, { emit: r }) {
38
- const o = d(0), a = d(0), t = v({ file: l.file });
39
- p(() => {
40
- r("update:file", t.file), i(t.file);
37
+ setup(t, { emit: r }) {
38
+ const n = c(0), l = c(0), o = g({ file: t.file });
39
+ F(() => {
40
+ r("update:file", o.file), d(o.file);
41
41
  });
42
- const i = (e) => {
43
- if (e !== null && a.value === 0) {
44
- const n = e.size, u = 5e4, f = setInterval(() => {
45
- a.value + u > n ? (a.value = n, o.value = 100, r("updateProgress", 100), clearInterval(f)) : (a.value += u, o.value = Math.floor(a.value * 100 / n), r(
42
+ const d = (e) => {
43
+ if (e !== null && l.value === 0) {
44
+ const a = e.size, u = 5e4, s = setInterval(() => {
45
+ l.value + u > a ? (l.value = a, n.value = 100, r("updateProgress", 100), clearInterval(s)) : (l.value += u, n.value = Math.floor(l.value * 100 / a), r(
46
46
  "updateProgress",
47
- Math.floor(a.value * 100 / n)
47
+ Math.floor(l.value * 100 / a)
48
48
  ));
49
- }, l.interval);
49
+ }, t.interval);
50
50
  }
51
- }, s = () => {
52
- t.file = null, o.value = 0, a.value = 0, r("update:file", t.file), r("updateProgress", 0);
51
+ }, f = () => {
52
+ o.file = null, n.value = 0, l.value = 0, r("update:file", o.file), r("updateProgress", 0);
53
+ }, v = (e) => e !== "" && e !== void 0 ? e : "Nome_do_arquivo.tipo", p = (e) => i(e !== void 0 ? e : 0), m = () => {
54
+ var e;
55
+ return t.isOnlyUse ? f() : (e = t.handleRemoveFile) == null ? void 0 : e.call(t);
56
+ }, B = () => {
57
+ var e;
58
+ return ((e = o.file) == null ? void 0 : e.size) === 0 ? i(0) : i(l.value);
53
59
  };
60
+ function i(e) {
61
+ if (e === 0)
62
+ return "0 B";
63
+ const a = 1024, u = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], s = Math.floor(
64
+ Math.log(e) / Math.log(a)
65
+ );
66
+ return `${Number.parseFloat(
67
+ (e / a ** s).toFixed(2)
68
+ )} ${u[s]}`;
69
+ }
54
70
  return {
55
- fileC: t,
56
- progress: o,
57
- uploadBytes: a,
58
- handleFileName: (e) => e !== "" && e !== void 0 ? e : "Nome_do_arquivo.tipo",
59
- handleFileSize: (e) => e !== void 0 ? e : 0,
60
- handleProgressBar: i,
61
- handleRemoveFileC: s,
62
- handleClick: () => {
63
- var e;
64
- return l.isOnlyUse ? s() : (e = l.handleRemoveFile) == null ? void 0 : e.call(l);
65
- },
66
- handleUploadBytes: () => {
67
- var e;
68
- return ((e = t.file) == null ? void 0 : e.size) === 0 ? 0 : a.value;
69
- }
71
+ fileC: o,
72
+ progress: n,
73
+ uploadBytes: l,
74
+ handleFileName: v,
75
+ handleFileSize: p,
76
+ handleProgressBar: d,
77
+ handleRemoveFileC: f,
78
+ handleClick: m,
79
+ handleUploadBytes: B
70
80
  };
71
81
  }
72
82
  });
73
83
  export {
74
- q as default
84
+ x as default
75
85
  };
@@ -4,10 +4,10 @@ export interface SearchProps {
4
4
  label: string;
5
5
  modelValue: string;
6
6
  autoCompleteList: DropdownListItem[];
7
- withIcon: boolean | true;
8
- hasAutoComplete: boolean | true;
9
- hasFilterOption: boolean | true;
10
- isDisabled: boolean | false;
7
+ withIcon?: boolean | true;
8
+ hasAutoComplete?: boolean | true;
9
+ hasFilterOption?: boolean | true;
10
+ isDisabled?: boolean | false;
11
11
  }
12
12
  declare const _default: import("vue").DefineComponent<{
13
13
  label: {
@@ -39,9 +39,13 @@ declare const _default: import("vue").DefineComponent<{
39
39
  default: boolean;
40
40
  };
41
41
  isDisabled: {
42
- type: PropType<boolean>;
42
+ type: PropType<boolean | undefined>;
43
43
  default: boolean;
44
44
  };
45
+ id: {
46
+ type: StringConstructor;
47
+ required: false;
48
+ };
45
49
  }, {
46
50
  atSearch: import("vue").Ref<HTMLDivElement | null>;
47
51
  autocompleteListIsOpen: ComputedRef<boolean>;
@@ -85,9 +89,13 @@ declare const _default: import("vue").DefineComponent<{
85
89
  default: boolean;
86
90
  };
87
91
  isDisabled: {
88
- type: PropType<boolean>;
92
+ type: PropType<boolean | undefined>;
89
93
  default: boolean;
90
94
  };
95
+ id: {
96
+ type: StringConstructor;
97
+ required: false;
98
+ };
91
99
  }>> & {
92
100
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
93
101
  onOnSelectedItem?: ((...args: any[]) => any) | undefined;
@@ -96,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
96
104
  withIcon: boolean;
97
105
  modelValue: string;
98
106
  autoCompleteList: DropdownListItem[];
99
- isDisabled: boolean;
107
+ isDisabled: boolean | undefined;
100
108
  hasAutoComplete: boolean;
101
109
  hasFilterOption: boolean;
102
110
  }, {}>;
@@ -1,36 +1,47 @@
1
- import n from "./Search.vue2.js";
2
- import { resolveComponent as o, openBlock as a, createElementBlock as s, normalizeClass as r, createVNode as d, createBlock as u, createCommentVNode as p } from "vue";
1
+ import r from "./Search.vue2.js";
2
+ import { resolveComponent as o, openBlock as s, createElementBlock as a, normalizeClass as d, createVNode as n, withCtx as i, mergeProps as u, createCommentVNode as p } from "vue";
3
3
  import "./Search.vue3.js";
4
- import i from "../_virtual/_plugin-vue_export-helper.js";
5
- function m(e, c, h, f, b, C) {
6
- const l = o("AtInput"), t = o("AtLista");
7
- return a(), s("section", {
4
+ import m from "../_virtual/_plugin-vue_export-helper.js";
5
+ const c = {
6
+ key: 0,
7
+ class: "spinner"
8
+ };
9
+ function h(e, f, b, I, S, C) {
10
+ const t = o("AtInput"), l = o("AtLista");
11
+ return s(), a("section", {
8
12
  ref: "atSearch",
9
- class: r(["atSearch", { disabled: e.isDisabled }])
13
+ class: d(["atSearch", { disabled: e.isDisabled }])
10
14
  }, [
11
- d(l, {
12
- id: e.label,
13
- label: e.label,
14
- "model-value": e.modelValue,
15
- autocomplete: "off",
16
- disabled: e.isDisabled,
17
- "use-clear-button": !0,
18
- icon: { name: "AtSearchIcon" },
19
- "onUpdate:modelValue": e.handleChangeValue,
20
- onFocus: e.openList,
21
- onFocusout: e.closeList,
22
- onClearInput: e.clear
23
- }, null, 8, ["id", "label", "model-value", "disabled", "onUpdate:modelValue", "onFocus", "onFocusout", "onClearInput"]),
24
- e.hasAutoComplete ? (a(), u(t, {
25
- key: 0,
15
+ n(l, {
16
+ id: e.id,
26
17
  "drop-down-list": e.autoCompleteListFiltered,
27
18
  "is-open": e.autocompleteListIsOpen,
28
19
  "show-no-result-message": e.getShowNoResultMessage,
20
+ "full-size": !0,
29
21
  onOnSave: e.handleSelectedItem
30
- }, null, 8, ["drop-down-list", "is-open", "show-no-result-message", "onOnSave"])) : p("", !0)
22
+ }, {
23
+ default: i(() => [
24
+ n(t, u({
25
+ id: e.label,
26
+ label: e.label,
27
+ "model-value": e.modelValue,
28
+ autocomplete: "off",
29
+ disabled: e.isDisabled,
30
+ "use-clear-button": !0,
31
+ icon: { name: "AtSearchIcon" }
32
+ }, e.$attrs, {
33
+ "onUpdate:modelValue": e.handleChangeValue,
34
+ onFocus: e.openList,
35
+ onFocusout: e.closeList,
36
+ onClearInput: e.clear
37
+ }), null, 16, ["id", "label", "model-value", "disabled", "onUpdate:modelValue", "onFocus", "onFocusout", "onClearInput"]),
38
+ e.showSearchIcon ? (s(), a("span", c)) : p("", !0)
39
+ ]),
40
+ _: 1
41
+ }, 8, ["id", "drop-down-list", "is-open", "show-no-result-message", "onOnSave"])
31
42
  ], 2);
32
43
  }
33
- const L = /* @__PURE__ */ i(n, [["render", m], ["__scopeId", "data-v-54456581"]]);
44
+ const V = /* @__PURE__ */ m(r, [["render", h], ["__scopeId", "data-v-c23ecb4b"]]);
34
45
  export {
35
- L as default
46
+ V as default
36
47
  };