@agrotools1/at-components 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +7 -7
  2. package/dist/Accordion/Accordion.vue.js +8 -8
  3. package/dist/Accordion/Accordion.vue3.js +2 -2
  4. package/dist/Avatar/Avatar.vue.js +1 -1
  5. package/dist/Avatar/Avatar.vue3.js +2 -2
  6. package/dist/Button/Button.vue.js +1 -1
  7. package/dist/Button/Button.vue3.js +2 -2
  8. package/dist/CardWithInsights/CardWithInsights.vue.js +6 -6
  9. package/dist/CardWithInsights/CardWithInsights.vue4.js +2 -2
  10. package/dist/Checkbox/Checkbox.vue.js +1 -1
  11. package/dist/Checkbox/img/checkmarck.svg.js +1 -1
  12. package/dist/ColorPicker/ColorPicker.Saturation.vue.js +10 -10
  13. package/dist/ColorPicker/ColorPicker.Saturation.vue3.js +2 -2
  14. package/dist/ColorPicker/ColorPicker.vue.js +4 -4
  15. package/dist/DataTable/Column/Column.vue.js +6 -6
  16. package/dist/DataTable/Column/imgs/filter.svg.js +1 -1
  17. package/dist/DataTable/Counters/Counters.vue.js +1 -1
  18. package/dist/DataTable/Counters/imgs/close.svg.js +1 -1
  19. package/dist/DataTable/DataTable.vue.js +46 -46
  20. package/dist/DatePicker/DatePicker.d.ts +3 -2
  21. package/dist/DatePicker/DatePicker.vue.js +35 -35
  22. package/dist/DatePicker/DatePicker.vue2.js +61 -58
  23. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue.js +3 -3
  24. package/dist/DatePicker/DatePickerHeader/DatePickerHeader.scss.js +2 -2
  25. package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +4 -4
  26. package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +5 -5
  27. package/dist/DatePicker/DatePickerTime/DatePickerTime.scss.js +2 -2
  28. package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.js +8 -8
  29. package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.js +20 -20
  30. package/dist/Dropdown/Dropdown.core.vue.js +1 -1
  31. package/dist/Dropdown/Dropdown.core.vue3.js +2 -2
  32. package/dist/Faq/Faq.vue.js +2 -2
  33. package/dist/Filter/components/Filter.vue.js +14 -14
  34. package/dist/Illustration/Illustration.vue.js +5 -5
  35. package/dist/Illustration/images/renovabio-illustrations/biomass.svg.js +1 -1
  36. package/dist/Illustration/images/renovabio-illustrations/volume.svg.js +1 -1
  37. package/dist/Illustration/images/system-images/add-file.svg.js +1 -1
  38. package/dist/Illustration/images/system-images/cloud-connection.svg.js +1 -1
  39. package/dist/Illustration/images/system-images/cloud-download.svg.js +1 -1
  40. package/dist/Illustration/images/system-images/cloud-upload.svg.js +1 -1
  41. package/dist/Illustration/images/system-images/corrupted-file.svg.js +1 -1
  42. package/dist/Illustration/images/system-images/empty-box.svg.js +1 -1
  43. package/dist/Illustration/images/system-images/empty-folder-2.svg.js +1 -1
  44. package/dist/Illustration/images/system-images/empty-folder.svg.js +1 -1
  45. package/dist/Illustration/images/system-images/empty.svg.js +1 -1
  46. package/dist/Illustration/images/system-images/error-illustration.svg.js +1 -1
  47. package/dist/Illustration/images/system-images/file-backup-2.svg.js +1 -1
  48. package/dist/Illustration/images/system-images/file-backup.svg.js +1 -1
  49. package/dist/Illustration/images/system-images/filtering-upload.svg.js +1 -1
  50. package/dist/Illustration/images/system-images/flight.svg.js +1 -1
  51. package/dist/Illustration/images/system-images/fly.svg.js +1 -1
  52. package/dist/Illustration/images/system-images/movies.svg.js +1 -1
  53. package/dist/Illustration/images/system-images/multimedia.svg.js +1 -1
  54. package/dist/Illustration/images/system-images/notification-bell.svg.js +1 -1
  55. package/dist/Illustration/images/system-images/page-2.svg.js +1 -1
  56. package/dist/Illustration/images/system-images/page.svg.js +1 -1
  57. package/dist/Illustration/images/system-images/photos.svg.js +1 -1
  58. package/dist/Illustration/images/system-images/recycle-bin.svg.js +1 -1
  59. package/dist/Illustration/images/system-images/rocket-launch.svg.js +1 -1
  60. package/dist/Illustration/images/system-images/signal.svg.js +1 -1
  61. package/dist/Illustration/images/system-images/wrong.svg.js +1 -1
  62. package/dist/Illustration/images/tools-images/advanced-analysis.svg.js +1 -1
  63. package/dist/Illustration/images/tools-images/agriculture.svg.js +1 -1
  64. package/dist/Illustration/images/tools-images/alert-center.svg.js +1 -1
  65. package/dist/Illustration/images/tools-images/area.svg.js +1 -1
  66. package/dist/Illustration/images/tools-images/at-insights.svg.js +1 -1
  67. package/dist/Illustration/images/tools-images/conservation-unit.svg.js +1 -1
  68. package/dist/Illustration/images/tools-images/credit.svg.js +2 -2
  69. package/dist/Illustration/images/tools-images/deforestation.svg.js +1 -1
  70. package/dist/Illustration/images/tools-images/distance-proximity-rivers.svg.js +1 -1
  71. package/dist/Illustration/images/tools-images/estimated-productivity-penalty.svg.js +1 -1
  72. package/dist/Illustration/images/tools-images/extract.svg.js +1 -1
  73. package/dist/Illustration/images/tools-images/farm.svg.js +1 -1
  74. package/dist/Illustration/images/tools-images/geographical-consultation-municipalities.svg.js +1 -1
  75. package/dist/Illustration/images/tools-images/gix.svg.js +1 -1
  76. package/dist/Illustration/images/tools-images/insurance.svg.js +1 -1
  77. package/dist/Illustration/images/tools-images/land-appreciation.svg.js +1 -1
  78. package/dist/Illustration/images/tools-images/lockdown.svg.js +1 -1
  79. package/dist/Illustration/images/tools-images/map.svg.js +1 -1
  80. package/dist/Illustration/images/tools-images/pasture.svg.js +1 -1
  81. package/dist/Illustration/images/tools-images/rating-2.svg.js +1 -1
  82. package/dist/Illustration/images/tools-images/rating.svg.js +1 -1
  83. package/dist/Illustration/images/tools-images/recurrence.svg.js +1 -1
  84. package/dist/Illustration/images/tools-images/refrigerators.svg.js +1 -1
  85. package/dist/Illustration/images/tools-images/settings.svg.js +1 -1
  86. package/dist/Illustration/images/tools-images/socio-environmental-analysis.svg.js +1 -1
  87. package/dist/Illustration/images/tools-images/soil-use.svg.js +1 -1
  88. package/dist/Illustration/images/tools-images/storm.svg.js +1 -1
  89. package/dist/Illustration/images/tools-images/territory-details.svg.js +1 -1
  90. package/dist/Illustration/images/tools-images/timeline.svg.js +1 -1
  91. package/dist/Input/Input.core.vue.js +10 -10
  92. package/dist/Input/imgs/error.svg.js +2 -2
  93. package/dist/Legend/Legend.vue.js +6 -6
  94. package/dist/List/components/List.vue.js +24 -24
  95. package/dist/List/components/List.vue3.js +2 -2
  96. package/dist/Map/Map.d.ts +3 -2
  97. package/dist/Map/Map.vue2.js +43 -39
  98. package/dist/Modal/Modal.vue.js +6 -6
  99. package/dist/Modal/images/cross.svg.js +1 -1
  100. package/dist/Notifications/Notification/Notification.vue.js +4 -4
  101. package/dist/Notifications/Notifications.vue.js +4 -4
  102. package/dist/Paginator/Paginator.vue.js +2 -2
  103. package/dist/Paginator/imgs/double-left-arrow.svg.js +1 -1
  104. package/dist/Paginator/imgs/double-right-arrow.svg.js +1 -1
  105. package/dist/Paginator/imgs/left-arrow.svg.js +1 -1
  106. package/dist/Paginator/imgs/right-arrow.svg.js +1 -1
  107. package/dist/ProgressBar/ProgressBar.vue.js +2 -2
  108. package/dist/RadioButton/RadioButton.vue.js +1 -1
  109. package/dist/RadioButton/RadioButton.vue3.js +2 -2
  110. package/dist/Search/Search.vue.js +7 -6
  111. package/dist/Search/Search.vue2.js +12 -12
  112. package/dist/Select/Item/Item.vue.js +16 -16
  113. package/dist/Select/Multiple/Select.multiple.vue.js +4 -4
  114. package/dist/Select/Multiple/Select.multiple.vue2.js +35 -30
  115. package/dist/Select/Single/Select.single.vue.js +3 -3
  116. package/dist/Select/imgs/indicator.svg.js +1 -1
  117. package/dist/Stepper/Stepper.vue.js +2 -2
  118. package/dist/TableConfig/TableConfig.vue.js +4 -4
  119. package/dist/Tabs/Tab/Tab.vue.js +1 -1
  120. package/dist/Tabs/Tab/Tab.vue3.js +2 -2
  121. package/dist/Tabs/Tabs.vue.js +6 -6
  122. package/dist/Tabs/Tabs.vue2.js +23 -27
  123. package/dist/Tabs/Tabs.vue3.js +2 -2
  124. package/dist/Tag/Tag.vue.js +1 -1
  125. package/dist/Tipograph/Paragraph/Paragraph.vue.js +2 -2
  126. package/dist/Tipograph/Paragraph/Paragraph.vue3.js +2 -2
  127. package/dist/Tipograph/Title/Title.vue.js +2 -2
  128. package/dist/Toggle/Toggle.vue.js +2 -2
  129. package/dist/Tooltip/Tooltip.vue.js +5 -5
  130. package/dist/Tooltip/Tooltip.vue3.js +2 -2
  131. package/dist/Upload/MultipleUpload/MultipleUpload.d.ts +213 -0
  132. package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +58 -0
  133. package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +138 -0
  134. package/dist/Upload/MultipleUpload/MultipleUpload.vue3.js +4 -0
  135. package/dist/Upload/SingleUpload/SingleUpload.d.ts +199 -0
  136. package/dist/Upload/SingleUpload/SingleUpload.vue.js +50 -0
  137. package/dist/Upload/SingleUpload/SingleUpload.vue2.js +135 -0
  138. package/dist/Upload/SingleUpload/SingleUpload.vue3.js +4 -0
  139. package/dist/Upload/Upload.d.ts +28 -53
  140. package/dist/Upload/Upload.vue.js +32 -121
  141. package/dist/Upload/Upload.vue2.js +18 -47
  142. package/dist/Upload/UploaderHeader/UploaderHeader.d.ts +68 -0
  143. package/dist/Upload/UploaderHeader/UploaderHeader.vue.js +30 -0
  144. package/dist/Upload/UploaderHeader/UploaderHeader.vue2.js +51 -0
  145. package/dist/Upload/UploaderHeader/UploaderHeader.vue3.js +4 -0
  146. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.d.ts +44 -0
  147. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +44 -0
  148. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue2.js +36 -0
  149. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue3.js +4 -0
  150. package/dist/Upload/UploaderInput/UploaderInput.d.ts +79 -0
  151. package/dist/Upload/UploaderInput/UploaderInput.vue.js +57 -0
  152. package/dist/Upload/UploaderInput/UploaderInput.vue2.js +56 -0
  153. package/dist/Upload/UploaderInput/UploaderInput.vue3.js +4 -0
  154. package/dist/style.css +1 -1
  155. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { type PropType } from "vue";
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  warningTextUpload: {
3
4
  type: StringConstructor;
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
13
14
  };
14
15
  uploadInteractionText: {
15
16
  type: StringConstructor;
16
- required: true;
17
+ required: false;
17
18
  default: string;
18
19
  validator: (value: string) => boolean;
19
20
  };
@@ -52,18 +53,6 @@ declare const _default: import("vue").DefineComponent<{
52
53
  default: number;
53
54
  validator: (value: number) => boolean;
54
55
  };
55
- uploadContainerWidth: {
56
- type: StringConstructor;
57
- required: false;
58
- default: string;
59
- validator: (value: string) => boolean;
60
- };
61
- uploadContainerHeight: {
62
- type: StringConstructor;
63
- required: false;
64
- default: string;
65
- validator: (value: string) => boolean;
66
- };
67
56
  progressInterval: {
68
57
  type: NumberConstructor;
69
58
  required: false;
@@ -82,25 +71,15 @@ declare const _default: import("vue").DefineComponent<{
82
71
  default: string;
83
72
  validator: (value: string) => boolean;
84
73
  };
85
- }, {
86
- file: import("vue").Ref<{
87
- readonly lastModified: number;
88
- readonly name: string;
89
- readonly webkitRelativePath: string;
90
- readonly size: number;
91
- readonly type: string;
92
- arrayBuffer: () => Promise<ArrayBuffer>;
93
- slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
94
- stream: () => ReadableStream<Uint8Array>;
95
- text: () => Promise<string>;
96
- } | null>;
97
- progress: import("vue").Ref<number>;
98
- uploadBytes: import("vue").Ref<number>;
99
- handleFileUpload: (event: Event) => Promise<void>;
100
- handleDrop: (event: DragEvent) => void;
101
- handleRemove: () => void;
102
- handleUpdateProgressOnParent: (newValue: number) => void;
103
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateProgress" | "updateFile")[], "updateProgress" | "updateFile", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
74
+ acceptTypes: {
75
+ type: PropType<string[]>;
76
+ default: () => never[];
77
+ };
78
+ acceptTypesInput: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateProgress" | "updateFile")[], "updateProgress" | "updateFile", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
83
  warningTextUpload: {
105
84
  type: StringConstructor;
106
85
  required: true;
@@ -115,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
115
94
  };
116
95
  uploadInteractionText: {
117
96
  type: StringConstructor;
118
- required: true;
97
+ required: false;
119
98
  default: string;
120
99
  validator: (value: string) => boolean;
121
100
  };
@@ -154,18 +133,6 @@ declare const _default: import("vue").DefineComponent<{
154
133
  default: number;
155
134
  validator: (value: number) => boolean;
156
135
  };
157
- uploadContainerWidth: {
158
- type: StringConstructor;
159
- required: false;
160
- default: string;
161
- validator: (value: string) => boolean;
162
- };
163
- uploadContainerHeight: {
164
- type: StringConstructor;
165
- required: false;
166
- default: string;
167
- validator: (value: string) => boolean;
168
- };
169
136
  progressInterval: {
170
137
  type: NumberConstructor;
171
138
  required: false;
@@ -184,23 +151,31 @@ declare const _default: import("vue").DefineComponent<{
184
151
  default: string;
185
152
  validator: (value: string) => boolean;
186
153
  };
154
+ acceptTypes: {
155
+ type: PropType<string[]>;
156
+ default: () => never[];
157
+ };
158
+ acceptTypesInput: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
187
162
  }>> & {
188
163
  onUpdateProgress?: ((...args: any[]) => any) | undefined;
189
164
  onUpdateFile?: ((...args: any[]) => any) | undefined;
190
165
  }, {
191
166
  warningTextUpload: string;
192
- uploadText: string;
193
- uploadInteractionText: string;
194
- multipleSelect: boolean;
195
167
  interactiveTextButton: string;
196
- warningFunction: Function;
197
168
  interactiveTexthref: string;
198
169
  interactiveTextDownloadName: string;
199
- uploadProgress: number;
200
- uploadContainerWidth: string;
201
- uploadContainerHeight: string;
202
- progressInterval: number;
170
+ warningFunction: Function;
171
+ uploadText: string;
172
+ uploadInteractionText: string;
173
+ multipleSelect: boolean;
174
+ acceptTypes: string[];
175
+ acceptTypesInput: string;
203
176
  loadingText: string;
204
177
  completeText: string;
178
+ progressInterval: number;
179
+ uploadProgress: number;
205
180
  }, {}>;
206
181
  export default _default;
@@ -1,126 +1,37 @@
1
- import h from "./Upload.vue2.js";
2
- import { resolveComponent as d, openBlock as n, createElementBlock as i, normalizeStyle as v, createElementVNode as a, createVNode as o, createTextVNode as s, toDisplayString as r, createCommentVNode as $, withModifiers as m, withCtx as u } from "vue";
1
+ import a from "./Upload.vue2.js";
2
+ import { resolveComponent as l, openBlock as o, createElementBlock as i, createBlock as r } from "vue";
3
3
  import "./Upload.vue3.js";
4
- import w from "../_virtual/_plugin-vue_export-helper.js";
5
- const y = { class: "warning-upload" }, T = { class: "warning-text-upload" }, k = ["href", "download"], C = ["multiple"], A = {
6
- for: "inputFile",
7
- class: "input-file-label"
8
- }, P = {
9
- key: 1,
10
- class: "input-container loading-input-container"
11
- }, U = {
12
- key: 0,
13
- class: "loading-container"
14
- }, B = {
15
- key: 1,
16
- class: "complete-container"
17
- };
18
- function D(e, t, I, z, b, F) {
19
- const g = d("AtCircleExclamationRegularIcon"), f = d("AtIllustration"), p = d("AtParagraph"), c = d("AtProgressBar");
20
- return n(), i("div", {
21
- class: "container",
22
- style: v({
23
- width: `${e.$props.uploadContainerWidth}`,
24
- height: `${e.$props.uploadContainerHeight}`
25
- })
26
- }, [
27
- a("div", y, [
28
- o(g, {
29
- style: { width: "22px", height: "22px" },
30
- color: "var(--at-primary-color-1)"
31
- }),
32
- a("p", T, [
33
- s(r(e.$props.warningTextUpload) + " ", 1),
34
- e.$props.interactiveTextButton !== "" ? (n(), i("a", {
35
- key: 0,
36
- href: e.$props.interactiveTexthref,
37
- download: e.$props.interactiveTextDownloadName,
38
- class: "interactive-text",
39
- onClick: t[0] || (t[0] = (l) => {
40
- e.$props.interactiveTexthref === "" && l.preventDefault(), e.$props.warningFunction && e.$props.warningFunction();
41
- })
42
- }, r(e.$props.interactiveTextButton), 9, k)) : $("", !0)
43
- ])
44
- ]),
45
- e.file === null ? (n(), i("div", {
4
+ import d from "../_virtual/_plugin-vue_export-helper.js";
5
+ const u = { class: "at-uploader-container" };
6
+ function m(e, p, g, c, $, y) {
7
+ const s = l("SingleUpload"), n = l("MultipleUpload");
8
+ return o(), i("div", u, [
9
+ e.$props.multipleSelect ? (o(), r(n, {
10
+ key: 1,
11
+ "complete-text": e.$props.completeText,
12
+ "loading-text": e.$props.loadingText,
13
+ "progress-interval": e.$props.progressInterval,
14
+ "warning-text-upload": e.$props.warningTextUpload,
15
+ "multiple-select": e.$props.multipleSelect,
16
+ "accept-types": e.$props.acceptTypes,
17
+ "accept-types-input": e.$props.acceptTypesInput,
18
+ onUpdateFile: p[2] || (p[2] = (t) => e.$emit("updateFile", t)),
19
+ onUpdateProgress: p[3] || (p[3] = (t) => e.$emit("updateProgress", t))
20
+ }, null, 8, ["complete-text", "loading-text", "progress-interval", "warning-text-upload", "multiple-select", "accept-types", "accept-types-input"])) : (o(), r(s, {
46
21
  key: 0,
47
- class: "input-container",
48
- onDragover: t[2] || (t[2] = m(() => {
49
- }, ["prevent"])),
50
- onDragenter: t[3] || (t[3] = m(() => {
51
- }, ["prevent"])),
52
- onDrop: t[4] || (t[4] = (l) => e.handleDrop(l))
53
- }, [
54
- o(f, { illustration: "cloudUpload" }),
55
- a("input", {
56
- id: "inputFile",
57
- class: "input-file",
58
- multiple: e.$props.multipleSelect,
59
- type: "file",
60
- label: "",
61
- onChange: t[1] || (t[1] = (l) => e.handleFileUpload(l))
62
- }, null, 40, C),
63
- a("div", null, [
64
- a("label", A, [
65
- o(p, {
66
- size: "p1",
67
- weight: "bold",
68
- class: "upload-text"
69
- }, {
70
- default: u(() => [
71
- s(r(e.$props.uploadText), 1)
72
- ]),
73
- _: 1
74
- }),
75
- o(p, {
76
- size: "p2",
77
- class: "upload-interaction-text"
78
- }, {
79
- default: u(() => [
80
- s(r(e.$props.uploadInteractionText), 1)
81
- ]),
82
- _: 1
83
- })
84
- ])
85
- ])
86
- ], 32)) : (n(), i("div", P, [
87
- e.progress < 100 ? (n(), i("div", U, [
88
- o(f, {
89
- illustration: "filteringUpload",
90
- style: { "margin-bottom": "24px" }
91
- }),
92
- o(p, {
93
- size: "p1",
94
- style: { "font-weight": "500", "font-size": "16px", margin: "0", width: "max-content" }
95
- }, {
96
- default: u(() => [
97
- s(r(e.$props.loadingText), 1)
98
- ]),
99
- _: 1
100
- })
101
- ])) : (n(), i("div", B, [
102
- o(f, { illustration: "fileBackup" }),
103
- o(p, {
104
- size: "p1",
105
- style: { "font-weight": "500", margin: "0" }
106
- }, {
107
- default: u(() => [
108
- s(r(e.$props.completeText), 1)
109
- ]),
110
- _: 1
111
- })
112
- ])),
113
- o(c, {
114
- file: e.file,
115
- "handle-remove-file": e.handleRemove,
116
- "is-only-use": !1,
117
- interval: e.$props.progressInterval,
118
- onUpdateProgress: e.handleUpdateProgressOnParent
119
- }, null, 8, ["file", "handle-remove-file", "interval", "onUpdateProgress"])
120
- ]))
121
- ], 4);
22
+ "complete-text": e.$props.completeText,
23
+ "loading-text": e.$props.loadingText,
24
+ "progress-interval": e.$props.progressInterval,
25
+ "warning-text-upload": e.$props.warningTextUpload,
26
+ "multiple-select": e.$props.multipleSelect,
27
+ "accept-types": e.$props.acceptTypes,
28
+ "accept-types-input": e.$props.acceptTypesInput,
29
+ onUpdateFile: p[0] || (p[0] = (t) => e.$emit("updateFile", t)),
30
+ onUpdateProgress: p[1] || (p[1] = (t) => e.$emit("updateProgress", t))
31
+ }, null, 8, ["complete-text", "loading-text", "progress-interval", "warning-text-upload", "multiple-select", "accept-types", "accept-types-input"]))
32
+ ]);
122
33
  }
123
- const x = /* @__PURE__ */ w(h, [["render", D], ["__scopeId", "data-v-f19f8853"]]);
34
+ const w = /* @__PURE__ */ d(a, [["render", m], ["__scopeId", "data-v-f2418a33"]]);
124
35
  export {
125
- x as default
36
+ w as default
126
37
  };
@@ -1,19 +1,15 @@
1
- import { defineComponent as d, ref as n } from "vue";
2
- import { AtCircleExclamationRegularIcon as u } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleExclamationRegularIcon/index.js";
3
- import s from "../Illustration/Illustration.vue.js";
4
- import p from "../ProgressBar/ProgressBar.vue.js";
5
- import { AtTipograph as f } from "../Tipograph/index.js";
6
- const P = d({
1
+ import { defineComponent as t } from "vue";
2
+ import r from "./MultipleUpload/MultipleUpload.vue.js";
3
+ import a from "./SingleUpload/SingleUpload.vue.js";
4
+ const n = t({
7
5
  test: {
8
6
  globals: !0,
9
7
  environment: "jsdom"
10
8
  },
11
9
  name: "Upload",
12
10
  components: {
13
- AtParagraph: f.Paragraph,
14
- AtProgressBar: p,
15
- AtIllustration: s,
16
- AtCircleExclamationRegularIcon: u
11
+ SingleUpload: a,
12
+ MultipleUpload: r
17
13
  },
18
14
  props: {
19
15
  warningTextUpload: {
@@ -30,7 +26,7 @@ const P = d({
30
26
  },
31
27
  uploadInteractionText: {
32
28
  type: String,
33
- required: !0,
29
+ required: !1,
34
30
  default: "Arraste ou clique para fazer upload do arquivo",
35
31
  validator: (e) => typeof e == "string"
36
32
  },
@@ -71,18 +67,6 @@ const P = d({
71
67
  default: 0,
72
68
  validator: (e) => typeof e == "number"
73
69
  },
74
- uploadContainerWidth: {
75
- type: String,
76
- required: !1,
77
- default: "816px",
78
- validator: (e) => typeof e == "string"
79
- },
80
- uploadContainerHeight: {
81
- type: String,
82
- required: !1,
83
- default: "484px",
84
- validator: (e) => typeof e == "string"
85
- },
86
70
  progressInterval: {
87
71
  type: Number,
88
72
  required: !1,
@@ -100,34 +84,21 @@ const P = d({
100
84
  required: !1,
101
85
  default: "O upload foi concluído.",
102
86
  validator: (e) => typeof e == "string"
87
+ },
88
+ acceptTypes: {
89
+ type: Array,
90
+ default: () => []
91
+ },
92
+ acceptTypesInput: {
93
+ type: String,
94
+ default: "*"
103
95
  }
104
96
  },
105
97
  emits: ["updateProgress", "updateFile"],
106
- setup(e, { emit: o }) {
107
- const r = n(null), l = n(e.uploadProgress), i = n(0);
108
- return {
109
- file: r,
110
- progress: l,
111
- uploadBytes: i,
112
- handleFileUpload: async (a) => {
113
- const t = a.target.files;
114
- t != null && t.length && (r.value = t[0], o("updateFile", r.value));
115
- },
116
- handleDrop: (a) => {
117
- if (a.preventDefault(), a.dataTransfer) {
118
- const t = a.dataTransfer.files;
119
- t != null && t.length && (r.value = t[0], o("updateFile", r.value));
120
- }
121
- },
122
- handleRemove: () => {
123
- r.value = null, l.value = 0, o("updateFile", null), o("updateProgress", 0);
124
- },
125
- handleUpdateProgressOnParent: (a) => {
126
- l.value = a, o("updateProgress", l.value);
127
- }
128
- };
98
+ setup() {
99
+ return {};
129
100
  }
130
101
  });
131
102
  export {
132
- P as default
103
+ n as default
133
104
  };
@@ -0,0 +1,68 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ warningTextUpload: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ default: string;
6
+ validator: (value: string) => boolean;
7
+ };
8
+ interactiveTextButton: {
9
+ type: StringConstructor;
10
+ required: false;
11
+ default: string;
12
+ validator: (value: string) => boolean;
13
+ };
14
+ interactiveTexthref: {
15
+ type: StringConstructor;
16
+ required: false;
17
+ default: string;
18
+ validator: (value: string) => boolean;
19
+ };
20
+ interactiveTextDownloadName: {
21
+ type: StringConstructor;
22
+ required: false;
23
+ default: string;
24
+ validator: (value: string) => boolean;
25
+ };
26
+ warningFunction: {
27
+ type: FunctionConstructor;
28
+ required: false;
29
+ default: () => void;
30
+ };
31
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ warningTextUpload: {
33
+ type: StringConstructor;
34
+ required: true;
35
+ default: string;
36
+ validator: (value: string) => boolean;
37
+ };
38
+ interactiveTextButton: {
39
+ type: StringConstructor;
40
+ required: false;
41
+ default: string;
42
+ validator: (value: string) => boolean;
43
+ };
44
+ interactiveTexthref: {
45
+ type: StringConstructor;
46
+ required: false;
47
+ default: string;
48
+ validator: (value: string) => boolean;
49
+ };
50
+ interactiveTextDownloadName: {
51
+ type: StringConstructor;
52
+ required: false;
53
+ default: string;
54
+ validator: (value: string) => boolean;
55
+ };
56
+ warningFunction: {
57
+ type: FunctionConstructor;
58
+ required: false;
59
+ default: () => void;
60
+ };
61
+ }>>, {
62
+ warningTextUpload: string;
63
+ interactiveTextButton: string;
64
+ interactiveTexthref: string;
65
+ interactiveTextDownloadName: string;
66
+ warningFunction: Function;
67
+ }, {}>;
68
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import i from "./UploaderHeader.vue2.js";
2
+ import { resolveComponent as s, openBlock as o, createElementBlock as r, createVNode as c, createElementVNode as l, createTextVNode as d, toDisplayString as n, createCommentVNode as m } from "vue";
3
+ import "./UploaderHeader.vue3.js";
4
+ import u from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const f = { class: "at-uploader-warning" }, $ = { class: "at-uploader-warning-text" }, v = ["href", "download"];
6
+ function g(e, t, h, w, x, _) {
7
+ const a = s("AtCircleExclamationRegularIcon");
8
+ return o(), r("div", f, [
9
+ c(a, {
10
+ style: { width: "22px", height: "22px" },
11
+ color: "var(--at-primary-color-1)"
12
+ }),
13
+ l("p", $, [
14
+ d(n(e.$props.warningTextUpload) + " ", 1),
15
+ e.$props.interactiveTextButton !== "" ? (o(), r("a", {
16
+ key: 0,
17
+ href: e.$props.interactiveTexthref,
18
+ download: e.$props.interactiveTextDownloadName,
19
+ class: "at-uploader-interactive-text",
20
+ onClick: t[0] || (t[0] = (p) => {
21
+ e.$props.interactiveTexthref === "" && p.preventDefault(), e.$props.warningFunction && e.$props.warningFunction();
22
+ })
23
+ }, n(e.$props.interactiveTextButton), 9, v)) : m("", !0)
24
+ ])
25
+ ]);
26
+ }
27
+ const y = /* @__PURE__ */ u(i, [["render", g], ["__scopeId", "data-v-342d92f9"]]);
28
+ export {
29
+ y as default
30
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as t } from "vue";
2
+ import { AtCircleExclamationRegularIcon as r } from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleExclamationRegularIcon/index.js";
3
+ const i = t({
4
+ test: {
5
+ globals: !0,
6
+ environment: "jsdom"
7
+ },
8
+ name: "UploaderHeader",
9
+ components: {
10
+ AtCircleExclamationRegularIcon: r
11
+ },
12
+ props: {
13
+ warningTextUpload: {
14
+ type: String,
15
+ required: !0,
16
+ default: "Texto de aviso sobre o upload",
17
+ validator: (e) => typeof e == "string"
18
+ },
19
+ interactiveTextButton: {
20
+ type: String,
21
+ required: !1,
22
+ default: "",
23
+ validator: (e) => typeof e == "string"
24
+ },
25
+ interactiveTexthref: {
26
+ type: String,
27
+ required: !1,
28
+ default: "",
29
+ validator: (e) => typeof e == "string"
30
+ },
31
+ interactiveTextDownloadName: {
32
+ type: String,
33
+ required: !1,
34
+ default: "",
35
+ validator: (e) => typeof e == "string"
36
+ },
37
+ warningFunction: {
38
+ type: Function,
39
+ required: !1,
40
+ default: () => {
41
+ console.warn("This is a warning");
42
+ }
43
+ }
44
+ },
45
+ setup() {
46
+ return {};
47
+ }
48
+ });
49
+ export {
50
+ i as default
51
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,44 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ loadingText: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ validator: (value: string) => boolean;
7
+ };
8
+ completeText: {
9
+ type: StringConstructor;
10
+ required: false;
11
+ default: string;
12
+ validator: (value: string) => boolean;
13
+ };
14
+ progress: {
15
+ type: NumberConstructor;
16
+ required: true;
17
+ validator: (value: number) => boolean;
18
+ };
19
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleRemove" | "handleUpdateProgressOnParent")[], "handleRemove" | "handleUpdateProgressOnParent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ loadingText: {
21
+ type: StringConstructor;
22
+ required: false;
23
+ default: string;
24
+ validator: (value: string) => boolean;
25
+ };
26
+ completeText: {
27
+ type: StringConstructor;
28
+ required: false;
29
+ default: string;
30
+ validator: (value: string) => boolean;
31
+ };
32
+ progress: {
33
+ type: NumberConstructor;
34
+ required: true;
35
+ validator: (value: number) => boolean;
36
+ };
37
+ }>> & {
38
+ onHandleRemove?: ((...args: any[]) => any) | undefined;
39
+ onHandleUpdateProgressOnParent?: ((...args: any[]) => any) | undefined;
40
+ }, {
41
+ loadingText: string;
42
+ completeText: string;
43
+ }, {}>;
44
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import c from "./UploaderInfoProgress.vue2.js";
2
+ import { resolveComponent as a, openBlock as n, createElementBlock as s, createVNode as t, withCtx as i, createTextVNode as p, toDisplayString as l } from "vue";
3
+ import "./UploaderInfoProgress.vue3.js";
4
+ import d from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const m = {
6
+ key: 0,
7
+ class: "at-uploader-loading-container"
8
+ }, _ = {
9
+ key: 1,
10
+ class: "at-uploader-complete-container"
11
+ };
12
+ function f(o, g, u, h, x, $) {
13
+ const e = a("AtIllustration"), r = a("AtParagraph");
14
+ return o.$props.progress < 100 ? (n(), s("div", m, [
15
+ t(e, {
16
+ illustration: "filteringUpload",
17
+ style: { "margin-bottom": "24px" }
18
+ }),
19
+ t(r, {
20
+ size: "p1",
21
+ style: { "font-weight": "500", "font-size": "16px", margin: "0", width: "max-content" }
22
+ }, {
23
+ default: i(() => [
24
+ p(l(o.$props.loadingText), 1)
25
+ ]),
26
+ _: 1
27
+ })
28
+ ])) : (n(), s("div", _, [
29
+ t(e, { illustration: "fileBackup" }),
30
+ t(r, {
31
+ size: "p1",
32
+ style: { "font-weight": "500", margin: "0" }
33
+ }, {
34
+ default: i(() => [
35
+ p(l(o.$props.completeText), 1)
36
+ ]),
37
+ _: 1
38
+ })
39
+ ]));
40
+ }
41
+ const A = /* @__PURE__ */ d(c, [["render", f], ["__scopeId", "data-v-12db28eb"]]);
42
+ export {
43
+ A as default
44
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as r } from "vue";
2
+ import o from "../../Illustration/Illustration.vue.js";
3
+ import { AtTipograph as t } from "../../Tipograph/index.js";
4
+ const p = r({
5
+ name: "UploaderInfoProgress",
6
+ components: {
7
+ AtIllustration: o,
8
+ AtParagraph: t.Paragraph
9
+ },
10
+ props: {
11
+ loadingText: {
12
+ type: String,
13
+ required: !1,
14
+ default: "Estamos analisando o arquivo, em breve, retornaremos com os resultados.",
15
+ validator: (e) => typeof e == "string"
16
+ },
17
+ completeText: {
18
+ type: String,
19
+ required: !1,
20
+ default: "O upload foi concluído.",
21
+ validator: (e) => typeof e == "string"
22
+ },
23
+ progress: {
24
+ type: Number,
25
+ required: !0,
26
+ validator: (e) => typeof e == "number"
27
+ }
28
+ },
29
+ emits: ["handleRemove", "handleUpdateProgressOnParent"],
30
+ setup() {
31
+ return {};
32
+ }
33
+ });
34
+ export {
35
+ p as default
36
+ };