@agrotools1/at-components1 1.1.0 → 1.1.2-beta.0

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 (236) hide show
  1. package/README.md +71 -71
  2. package/dist/Accordion/Accordion.vue.js +81 -0
  3. package/dist/Accordion/Accordion.vue2.js +72 -0
  4. package/dist/Avatar/Avatar.vue.js +26 -0
  5. package/dist/Avatar/Avatar.vue2.js +58 -0
  6. package/dist/Button/Button.vue.js +30 -0
  7. package/dist/Button/Button.vue2.js +43 -0
  8. package/dist/CardWithInsights/CardWithInsights.vue.js +60 -0
  9. package/dist/CardWithInsights/CardWithInsights.vue2.js +32 -0
  10. package/dist/Checkbox/Checkbox.vue.js +38 -0
  11. package/dist/Checkbox/Checkbox.vue2.js +73 -0
  12. package/dist/Checkbox/img/checkmarck.svg.js +4 -0
  13. package/dist/ColorPicker/ColorPicker.Saturation.vue.js +30 -0
  14. package/dist/ColorPicker/ColorPicker.Saturation.vue2.js +82 -0
  15. package/dist/ColorPicker/ColorPicker.vue.js +88 -0
  16. package/dist/ColorPicker/ColorPicker.vue2.js +180 -0
  17. package/dist/DataTable/Column/Column.vue.js +37 -0
  18. package/dist/DataTable/Column/Column.vue2.js +40 -0
  19. package/dist/DataTable/Column/imgs/filter.svg.js +4 -0
  20. package/dist/DataTable/Counters/Counters.vue.js +44 -0
  21. package/dist/DataTable/Counters/Counters.vue2.js +70 -0
  22. package/dist/DataTable/Counters/imgs/close.svg.js +4 -0
  23. package/dist/DataTable/DataTable.vue.js +130 -0
  24. package/dist/DataTable/DataTable.vue2.js +189 -0
  25. package/dist/DataTable/index.js +11 -0
  26. package/dist/DatePicker/DatePicker.helper.js +99 -0
  27. package/dist/DatePicker/DatePicker.vue.js +123 -0
  28. package/dist/DatePicker/DatePicker.vue2.js +237 -0
  29. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.js +58 -0
  30. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue.js +34 -0
  31. package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue2.js +59 -0
  32. package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +50 -0
  33. package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue2.js +47 -0
  34. package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +20 -0
  35. package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue2.js +89 -0
  36. package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts +2 -0
  37. package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts.map +1 -1
  38. package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.js +73 -0
  39. package/dist/DatePicker/DatePickerTime/DatePickerTime.vue2.js +71 -0
  40. package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.d.ts +16 -16
  41. package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.js +151 -0
  42. package/dist/Dropdown/Checklist/Dropdown.Checklist.vue2.js +84 -0
  43. package/dist/Dropdown/Checklist/draggable.js +68 -0
  44. package/dist/Dropdown/Dropdown.core.vue.js +47 -0
  45. package/dist/Dropdown/Dropdown.core.vue2.js +112 -0
  46. package/dist/Dropdown/DropdownContent/DropdownContent.vue.js +10 -0
  47. package/dist/Dropdown/DropdownContent/DropdownContent.vue2.js +9 -0
  48. package/dist/Faq/Faq.vue.js +41 -0
  49. package/dist/Faq/Faq.vue2.js +41 -0
  50. package/dist/Faq/FaqItem/FaqItem.vue.js +56 -0
  51. package/dist/Faq/FaqItem/FaqItem.vue2.js +32 -0
  52. package/dist/Filter/Filter.vue.js +222 -0
  53. package/dist/Filter/Filter.vue2.js +129 -0
  54. package/dist/Icons/icons.d.ts +2 -0
  55. package/dist/Icons/icons.d.ts.map +1 -1
  56. package/dist/Icons/icons.js +26 -0
  57. package/dist/Illustration/Illustration.js +127 -0
  58. package/dist/Illustration/Illustration.vue.js +17 -0
  59. package/dist/Illustration/Illustration.vue2.js +32 -0
  60. package/dist/Input/Input.core.vue.d.ts +2 -0
  61. package/dist/Input/Input.core.vue.d.ts.map +1 -1
  62. package/dist/Input/Input.core.vue.js +120 -0
  63. package/dist/Input/Input.core.vue2.js +239 -0
  64. package/dist/Input/Text-area.vue.d.ts +2 -0
  65. package/dist/Input/Text-area.vue.d.ts.map +1 -1
  66. package/dist/Input/Text-area.vue.js +16 -0
  67. package/dist/Input/Text-area.vue2.js +14 -0
  68. package/dist/Input/imgs/error.svg.js +4 -0
  69. package/dist/Input/index.d.ts +4 -0
  70. package/dist/Input/index.d.ts.map +1 -1
  71. package/dist/Input/index.js +9 -0
  72. package/dist/Legend/Legend.vue.js +60 -0
  73. package/dist/Legend/Legend.vue2.js +51 -0
  74. package/dist/List/components/List.vue.d.ts +4 -4
  75. package/dist/List/components/List.vue.js +86 -0
  76. package/dist/List/components/List.vue2.js +92 -0
  77. package/dist/Loading/Loading.vue.js +21 -0
  78. package/dist/Loading/Loading.vue2.js +16 -0
  79. package/dist/Menu/Menu.vue.d.ts +8 -4
  80. package/dist/Menu/Menu.vue.d.ts.map +1 -1
  81. package/dist/Menu/Menu.vue.js +185 -0
  82. package/dist/Menu/Menu.vue2.js +85 -0
  83. package/dist/Menu/assets/agrotools.svg.js +4 -0
  84. package/dist/Menu/assets/at.svg.js +4 -0
  85. package/dist/Modal/Modal.vue.js +127 -0
  86. package/dist/Modal/Modal.vue2.js +77 -0
  87. package/dist/Modal/images/cross.svg.js +4 -0
  88. package/dist/Notifications/Notification/Notification.vue.js +59 -0
  89. package/dist/Notifications/Notification/Notification.vue2.js +78 -0
  90. package/dist/Notifications/Notifications.vue.js +55 -0
  91. package/dist/Notifications/Notifications.vue2.js +56 -0
  92. package/dist/Paginator/Paginator.vue.js +119 -0
  93. package/dist/Paginator/Paginator.vue2.js +110 -0
  94. package/dist/Paginator/imgs/double-left-arrow.svg.js +4 -0
  95. package/dist/Paginator/imgs/double-right-arrow.svg.js +4 -0
  96. package/dist/Paginator/imgs/left-arrow.svg.js +4 -0
  97. package/dist/Paginator/imgs/right-arrow.svg.js +4 -0
  98. package/dist/ProgressBar/ProgressBar.vue.js +84 -0
  99. package/dist/ProgressBar/ProgressBar.vue2.js +83 -0
  100. package/dist/RadioButton/RadioButton.vue.js +46 -0
  101. package/dist/RadioButton/RadioButton.vue2.js +57 -0
  102. package/dist/Search/Search.vue.d.ts +6 -4
  103. package/dist/Search/Search.vue.d.ts.map +1 -1
  104. package/dist/Search/Search.vue.js +53 -0
  105. package/dist/Search/Search.vue2.js +144 -0
  106. package/dist/Select/Item/Item.vue.js +52 -0
  107. package/dist/Select/Item/Item.vue2.js +62 -0
  108. package/dist/Select/Multiple/Select.multiple.vue.d.ts +2 -0
  109. package/dist/Select/Multiple/Select.multiple.vue.d.ts.map +1 -1
  110. package/dist/Select/Multiple/Select.multiple.vue.js +59 -0
  111. package/dist/Select/Multiple/Select.multiple.vue2.js +137 -0
  112. package/dist/Select/Select.core.vue.d.ts +2 -0
  113. package/dist/Select/Select.core.vue.d.ts.map +1 -1
  114. package/dist/Select/Select.core.vue.js +52 -0
  115. package/dist/Select/Select.core.vue2.js +140 -0
  116. package/dist/Select/Single/Select.single.vue.d.ts +2 -0
  117. package/dist/Select/Single/Select.single.vue.d.ts.map +1 -1
  118. package/dist/Select/Single/Select.single.vue.js +74 -0
  119. package/dist/Select/Single/Select.single.vue2.js +160 -0
  120. package/dist/Select/imgs/indicator.svg.js +4 -0
  121. package/dist/Select/index.d.ts +4 -0
  122. package/dist/Select/index.d.ts.map +1 -1
  123. package/dist/Select/index.js +9 -0
  124. package/dist/Skeleton/Skeleton.vue.js +16 -0
  125. package/dist/Skeleton/Skeleton.vue2.js +19 -0
  126. package/dist/Stepper/Stepper.vue.js +110 -0
  127. package/dist/Stepper/Stepper.vue2.js +109 -0
  128. package/dist/TableConfig/TableConfig.vue.d.ts +20 -20
  129. package/dist/TableConfig/TableConfig.vue.js +72 -0
  130. package/dist/TableConfig/TableConfig.vue2.js +108 -0
  131. package/dist/Tabs/Tab/Tab.vue.d.ts +1 -1
  132. package/dist/Tabs/Tab/Tab.vue.js +7 -0
  133. package/dist/Tabs/Tab/Tab.vue2.js +62 -0
  134. package/dist/Tabs/Tabs.vue.d.ts +1 -1
  135. package/dist/Tabs/Tabs.vue.js +44 -0
  136. package/dist/Tabs/Tabs.vue2.js +63 -0
  137. package/dist/Tag/Tag.vue.js +37 -0
  138. package/dist/Tag/Tag.vue2.js +86 -0
  139. package/dist/Tipograph/Paragraph/Paragraph.vue.js +18 -0
  140. package/dist/Tipograph/Paragraph/Paragraph.vue2.js +21 -0
  141. package/dist/Tipograph/Title/Title.vue.js +18 -0
  142. package/dist/Tipograph/Title/Title.vue2.js +21 -0
  143. package/dist/Tipograph/index.js +9 -0
  144. package/dist/Toggle/Toggle.vue.js +30 -0
  145. package/dist/Toggle/Toggle.vue2.js +53 -0
  146. package/dist/Tooltip/Tooltip.vue.js +66 -0
  147. package/dist/Tooltip/Tooltip.vue2.js +234 -0
  148. package/dist/Upload/MultipleUpload/MultipleUpload.vue.d.ts.map +1 -1
  149. package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +58 -0
  150. package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +198 -0
  151. package/dist/Upload/SingleUpload/SingleUpload.vue.d.ts.map +1 -1
  152. package/dist/Upload/SingleUpload/SingleUpload.vue.js +51 -0
  153. package/dist/Upload/SingleUpload/SingleUpload.vue2.js +156 -0
  154. package/dist/Upload/Upload.vue.d.ts.map +1 -1
  155. package/dist/Upload/Upload.vue.js +57 -0
  156. package/dist/Upload/Upload.vue2.js +118 -0
  157. package/dist/Upload/UploaderHeader/UploaderHeader.vue.js +30 -0
  158. package/dist/Upload/UploaderHeader/UploaderHeader.vue2.js +51 -0
  159. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +31 -0
  160. package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue2.js +34 -0
  161. package/dist/Upload/UploaderInput/UploaderInput.vue.js +63 -0
  162. package/dist/Upload/UploaderInput/UploaderInput.vue2.js +63 -0
  163. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  164. package/dist/assets/illustrations/renovabio/biomass.svg.js +4 -0
  165. package/dist/assets/illustrations/renovabio/volume.svg.js +4 -0
  166. package/dist/assets/illustrations/system/add-file.svg.js +4 -0
  167. package/dist/assets/illustrations/system/cloud-connection.svg.js +4 -0
  168. package/dist/assets/illustrations/system/cloud-download.svg.js +4 -0
  169. package/dist/assets/illustrations/system/cloud-upload.svg.js +4 -0
  170. package/dist/assets/illustrations/system/corrupted-file.svg.js +4 -0
  171. package/dist/assets/illustrations/system/dynamic-production.svg.js +4 -0
  172. package/dist/assets/illustrations/system/empty-box.svg.js +4 -0
  173. package/dist/assets/illustrations/system/empty-folder-2.svg.js +4 -0
  174. package/dist/assets/illustrations/system/empty-folder.svg.js +4 -0
  175. package/dist/assets/illustrations/system/empty.svg.js +4 -0
  176. package/dist/assets/illustrations/system/error-illustration.svg.js +4 -0
  177. package/dist/assets/illustrations/system/error.svg.js +4 -0
  178. package/dist/assets/illustrations/system/file-backup-2.svg.js +4 -0
  179. package/dist/assets/illustrations/system/file-backup.svg.js +4 -0
  180. package/dist/assets/illustrations/system/filtering-upload.svg.js +4 -0
  181. package/dist/assets/illustrations/system/flight.svg.js +4 -0
  182. package/dist/assets/illustrations/system/fly.svg.js +4 -0
  183. package/dist/assets/illustrations/system/movies.svg.js +4 -0
  184. package/dist/assets/illustrations/system/multimedia.svg.js +4 -0
  185. package/dist/assets/illustrations/system/notification-bell.svg.js +4 -0
  186. package/dist/assets/illustrations/system/page-2.svg.js +4 -0
  187. package/dist/assets/illustrations/system/page.svg.js +4 -0
  188. package/dist/assets/illustrations/system/photos.svg.js +4 -0
  189. package/dist/assets/illustrations/system/recycle-bin.svg.js +4 -0
  190. package/dist/assets/illustrations/system/rocket-launch.svg.js +4 -0
  191. package/dist/assets/illustrations/system/search-territory.svg.js +4 -0
  192. package/dist/assets/illustrations/system/signal.svg.js +4 -0
  193. package/dist/assets/illustrations/system/siren.svg.js +4 -0
  194. package/dist/assets/illustrations/system/wrong.svg.js +4 -0
  195. package/dist/assets/illustrations/tools/advanced-analysis.svg.js +4 -0
  196. package/dist/assets/illustrations/tools/agriculture.svg.js +4 -0
  197. package/dist/assets/illustrations/tools/alert-center.svg.js +4 -0
  198. package/dist/assets/illustrations/tools/area.svg.js +4 -0
  199. package/dist/assets/illustrations/tools/at-insights.svg.js +4 -0
  200. package/dist/assets/illustrations/tools/conservation-unit.svg.js +4 -0
  201. package/dist/assets/illustrations/tools/credit.svg.js +4 -0
  202. package/dist/assets/illustrations/tools/deforestation.svg.js +4 -0
  203. package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +4 -0
  204. package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +4 -0
  205. package/dist/assets/illustrations/tools/extract.svg.js +4 -0
  206. package/dist/assets/illustrations/tools/farm.svg.js +4 -0
  207. package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +4 -0
  208. package/dist/assets/illustrations/tools/gix.svg.js +4 -0
  209. package/dist/assets/illustrations/tools/inapto.svg.js +4 -0
  210. package/dist/assets/illustrations/tools/insurance.svg.js +4 -0
  211. package/dist/assets/illustrations/tools/land-appreciation.svg.js +4 -0
  212. package/dist/assets/illustrations/tools/lockdown.svg.js +4 -0
  213. package/dist/assets/illustrations/tools/map.svg.js +4 -0
  214. package/dist/assets/illustrations/tools/pasture.svg.js +4 -0
  215. package/dist/assets/illustrations/tools/rating-2.svg.js +4 -0
  216. package/dist/assets/illustrations/tools/rating.svg.js +4 -0
  217. package/dist/assets/illustrations/tools/recurrence.svg.js +4 -0
  218. package/dist/assets/illustrations/tools/refrigerators.svg.js +4 -0
  219. package/dist/assets/illustrations/tools/settings.svg.js +4 -0
  220. package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +4 -0
  221. package/dist/assets/illustrations/tools/soil-use.svg.js +4 -0
  222. package/dist/assets/illustrations/tools/storm.svg.js +4 -0
  223. package/dist/assets/illustrations/tools/territory-details.svg.js +4 -0
  224. package/dist/assets/illustrations/tools/timeline.svg.js +4 -0
  225. package/dist/at-components1.css +1 -0
  226. package/dist/{bootstrap-encapsulated.css → bootstrap.css} +2 -2
  227. package/dist/bootstrap.css.map +1 -0
  228. package/dist/composables/useBootstrapWrapper.js +7 -0
  229. package/dist/index.css +3 -1
  230. package/dist/index.js +68 -16654
  231. package/dist/theme.css +1 -0
  232. package/dist/theme.css.map +1 -0
  233. package/package.json +14 -7
  234. package/dist/agrotools-theme.css +0 -5
  235. package/dist/agrotools-theme.css.map +0 -1
  236. package/dist/bootstrap-encapsulated.css.map +0 -1
@@ -0,0 +1,30 @@
1
+ import r from "./Toggle.vue2.js";
2
+ import { createElementBlock as a, openBlock as t, normalizeStyle as o, normalizeClass as d, createElementVNode as l } from "vue";
3
+ /* empty css */
4
+ import n from "../_virtual/_plugin-vue_export-helper.js";
5
+ const p = ["data-state", "aria-pressed", "disabled"];
6
+ function f(e, s, m, c, u, z) {
7
+ return t(), a("button", {
8
+ ref: "buttonRef",
9
+ type: "button",
10
+ "data-state": e.isChecked ? "on" : "off",
11
+ "aria-pressed": e.isChecked,
12
+ class: d(e.size),
13
+ disabled: e.isDisabled,
14
+ style: o({
15
+ borderRadius: e.borderSizeMap[e.size]
16
+ }),
17
+ onClick: s[0] || (s[0] = (...i) => e.onClick && e.onClick(...i))
18
+ }, [
19
+ l("span", {
20
+ style: o({
21
+ width: e.circleSizeMap[e.size],
22
+ height: e.circleSizeMap[e.size]
23
+ })
24
+ }, null, 4)
25
+ ], 14, p);
26
+ }
27
+ const y = /* @__PURE__ */ n(r, [["render", f], ["__scopeId", "data-v-750c342e"]]);
28
+ export {
29
+ y as default
30
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as m, ref as t, computed as p, watch as s } from "vue";
2
+ const c = m({
3
+ name: "AtToggle",
4
+ props: {
5
+ modelValue: {
6
+ type: Boolean,
7
+ default: !1
8
+ },
9
+ size: {
10
+ type: String,
11
+ default: "g",
12
+ validator: (e) => ["p", "m", "g"].includes(e)
13
+ },
14
+ disabled: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ preventDefault: {
19
+ type: Boolean,
20
+ default: !1
21
+ }
22
+ },
23
+ emits: ["update:modelValue"],
24
+ setup(e, a) {
25
+ const u = t(null), o = p(() => e.disabled), l = t(e.modelValue), d = {
26
+ p: "9px",
27
+ m: "9px",
28
+ g: "13px"
29
+ }, n = {
30
+ p: "33px",
31
+ m: "66px",
32
+ g: "100px"
33
+ }, i = () => {
34
+ e.preventDefault || (l.value = !l.value, a.emit("update:modelValue", l.value));
35
+ };
36
+ return s(
37
+ () => e.modelValue,
38
+ () => {
39
+ l.value = e.modelValue, a.emit("update:modelValue", e.modelValue);
40
+ }
41
+ ), {
42
+ isChecked: l,
43
+ isDisabled: o,
44
+ onClick: i,
45
+ circleSizeMap: d,
46
+ borderSizeMap: n,
47
+ buttonRef: u
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ c as default
53
+ };
@@ -0,0 +1,66 @@
1
+ import u from "./Tooltip.vue2.js";
2
+ import { resolveComponent as a, createElementBlock as l, openBlock as s, createElementVNode as r, createBlock as m, createCommentVNode as n, renderSlot as f, Teleport as y, normalizeStyle as c, normalizeClass as v, createVNode as i, withCtx as k } from "vue";
3
+ /* empty css */
4
+ import C from "../_virtual/_plugin-vue_export-helper.js";
5
+ const M = {
6
+ ref: "wrapper",
7
+ class: "at-tooltip-wrapper"
8
+ }, b = {
9
+ ref: "tooltipChildren",
10
+ class: "at-slot-content"
11
+ }, h = ["innerHTML"];
12
+ function w(o, e, $, T, A, S) {
13
+ const p = a("AtCopySolidIcon"), d = a("AtParagraph");
14
+ return s(), l("div", {
15
+ class: "at-tooltip-container",
16
+ onMouseenter: e[2] || (e[2] = (...t) => o.show && o.show(...t)),
17
+ onMouseleave: e[3] || (e[3] = (...t) => o.handleMouseOut && o.handleMouseOut(...t))
18
+ }, [
19
+ r("div", M, [
20
+ r("div", b, [
21
+ f(o.$slots, "default", {}, void 0, !0)
22
+ ], 512)
23
+ ], 512),
24
+ o.$props.disable ? n("", !0) : (s(), m(y, {
25
+ key: 0,
26
+ to: "body"
27
+ }, [
28
+ o.visible ? (s(), l("div", {
29
+ key: 0,
30
+ ref: "tooltip",
31
+ class: v(["at-tooltip", o.tooltipClass]),
32
+ style: c(o.tooltipStyle),
33
+ onMouseleave: e[1] || (e[1] = (...t) => o.handleMouseOut && o.handleMouseOut(...t))
34
+ }, [
35
+ i(d, {
36
+ size: "p3",
37
+ weight: "regular",
38
+ class: "m-0"
39
+ }, {
40
+ default: k(() => [
41
+ r("span", {
42
+ class: "at-tooltip-text",
43
+ style: { "word-break": "break-all" },
44
+ innerHTML: o.formatedText
45
+ }, null, 8, h),
46
+ o.copy ? (s(), l("span", {
47
+ key: 0,
48
+ class: "at-tooltip-copy-icon",
49
+ onClick: e[0] || (e[0] = (t) => o.copyText(o.text))
50
+ }, [
51
+ i(p, {
52
+ color: "#FFF",
53
+ size: "16"
54
+ })
55
+ ])) : n("", !0)
56
+ ]),
57
+ _: 1
58
+ })
59
+ ], 38)) : n("", !0)
60
+ ]))
61
+ ], 32);
62
+ }
63
+ const F = /* @__PURE__ */ C(u, [["render", w], ["__scopeId", "data-v-bbe2fccb"]]);
64
+ export {
65
+ F as default
66
+ };
@@ -0,0 +1,234 @@
1
+ import { AtCopySolidIcon as et } from "@agrotools1/at-icons";
2
+ import { defineComponent as at, ref as i, onMounted as ot, onBeforeUnmount as lt, computed as nt } from "vue";
3
+ import { AtTipograph as rt } from "../Tipograph/index.js";
4
+ const pt = at({
5
+ name: "AtTooltip",
6
+ components: {
7
+ AtParagraph: rt.Paragraph,
8
+ AtCopySolidIcon: et
9
+ },
10
+ props: {
11
+ text: {
12
+ required: !0,
13
+ type: String,
14
+ default: "bottom-left"
15
+ },
16
+ maxTextLength: {
17
+ required: !1,
18
+ type: Number,
19
+ default: 0
20
+ },
21
+ copy: {
22
+ type: Boolean,
23
+ required: !1,
24
+ default: !1
25
+ },
26
+ position: {
27
+ required: !1,
28
+ type: String,
29
+ default: "",
30
+ validator: (n) => [
31
+ "bottom-left",
32
+ "bottom-center",
33
+ "bottom-right",
34
+ "top-left",
35
+ "top-center",
36
+ "top-right",
37
+ "left-bottom",
38
+ "left-center",
39
+ "right-bottom",
40
+ "right-center"
41
+ ].includes(n)
42
+ },
43
+ disable: {
44
+ type: Boolean,
45
+ required: !1,
46
+ default: !1
47
+ }
48
+ },
49
+ emits: ["copiedText"],
50
+ setup(n, { emit: Q }) {
51
+ const v = i(), f = i(), y = i(), e = i(), d = i(0), r = i(), l = i(), h = i(""), c = i(!1), s = () => {
52
+ var p, x, b, g, $, w, T, k, X, C, L, S, Y, q, z, A, P, B, E, j, F, I, M, N, R, _, O, U, D, G, H, J, K;
53
+ d.value = window.scrollY;
54
+ const a = 1 / (Number.parseFloat((p = window.getComputedStyle(document.body)) == null ? void 0 : p.zoom) || 1);
55
+ r.value = (b = (x = v.value) == null ? void 0 : x.getBoundingClientRect) == null ? void 0 : b.call(x);
56
+ const o = {
57
+ y: d.value * a
58
+ }, t = {
59
+ top: (((g = r.value) == null ? void 0 : g.top) ?? 0) * a,
60
+ right: ((($ = r.value) == null ? void 0 : $.right) ?? 0) * a,
61
+ bottom: (((w = r.value) == null ? void 0 : w.bottom) ?? 0) * a,
62
+ left: (((T = r.value) == null ? void 0 : T.left) ?? 0) * a,
63
+ x: (((k = r.value) == null ? void 0 : k.x) ?? 0) * a,
64
+ y: (((X = r.value) == null ? void 0 : X.y) ?? 0) * a,
65
+ width: (((C = r.value) == null ? void 0 : C.width) ?? 0) * a,
66
+ height: (((L = r.value) == null ? void 0 : L.height) ?? 0) * a
67
+ };
68
+ switch (n.position) {
69
+ case "bottom-left":
70
+ e.value = {
71
+ x: t.x + 32,
72
+ y: t.y + t.height + 16 + o.y
73
+ }, l.value = {
74
+ position: "absolute",
75
+ top: `${((S = e.value) == null ? void 0 : S.y) || 0}px`,
76
+ left: `${((Y = e.value) == null ? void 0 : Y.x) || 0}px`,
77
+ transform: "translateX(-100%)"
78
+ };
79
+ break;
80
+ case "bottom-center":
81
+ e.value = {
82
+ x: t.x + t.width / 2,
83
+ y: t.y + t.height + 16 + o.y
84
+ }, l.value = {
85
+ position: "absolute",
86
+ top: `${((q = e.value) == null ? void 0 : q.y) || 0}px`,
87
+ left: `${((z = e.value) == null ? void 0 : z.x) || 0}px`,
88
+ transform: "translateX(-50%)"
89
+ };
90
+ break;
91
+ case "bottom-right":
92
+ e.value = {
93
+ x: t.x - 32,
94
+ y: t.y + t.height + 16 + o.y
95
+ }, l.value = {
96
+ position: "absolute",
97
+ top: `${((A = e.value) == null ? void 0 : A.y) || 0}px`,
98
+ left: `${((P = e.value) == null ? void 0 : P.x) || 0}px`,
99
+ transform: `translateX(${t.width}px)`
100
+ };
101
+ break;
102
+ case "top-left":
103
+ e.value = {
104
+ x: t.x + 32,
105
+ y: t.y - t.height + 24 + o.y
106
+ }, l.value = {
107
+ position: "absolute",
108
+ top: `${((B = e.value) == null ? void 0 : B.y) || 0}px`,
109
+ left: `${((E = e.value) == null ? void 0 : E.x) || 0}px`,
110
+ transform: "translateX(-100%) translateY(-100%)"
111
+ };
112
+ break;
113
+ case "top-center":
114
+ e.value = {
115
+ x: t.x + t.width / 2,
116
+ y: t.y - t.height + 24 + o.y
117
+ }, l.value = {
118
+ position: "absolute",
119
+ top: `${((j = e.value) == null ? void 0 : j.y) || 0}px`,
120
+ left: `${((F = e.value) == null ? void 0 : F.x) || 0}px`,
121
+ transform: "translateX(-50%) translateY(-100%)"
122
+ };
123
+ break;
124
+ case "top-right":
125
+ e.value = {
126
+ x: t.x - 32,
127
+ y: t.y - t.height + 24 + o.y
128
+ }, l.value = {
129
+ position: "absolute",
130
+ top: `${((I = e.value) == null ? void 0 : I.y) || 0}px`,
131
+ left: `${((M = e.value) == null ? void 0 : M.x) || 0}px`,
132
+ transform: `translateX(${t.width}px) translateY(-100%)`
133
+ };
134
+ break;
135
+ case "left-bottom":
136
+ e.value = {
137
+ x: t.x - 16,
138
+ y: t.y + o.y
139
+ }, l.value = {
140
+ position: "absolute",
141
+ top: `${((N = e.value) == null ? void 0 : N.y) || 0}px`,
142
+ left: `${((R = e.value) == null ? void 0 : R.x) || 0}px`,
143
+ transform: "translateX(-100%)"
144
+ };
145
+ break;
146
+ case "left-center":
147
+ e.value = {
148
+ x: t.x - 16,
149
+ y: t.y + t.height / 2 + o.y
150
+ }, l.value = {
151
+ position: "absolute",
152
+ top: `${((_ = e.value) == null ? void 0 : _.y) || 0}px`,
153
+ left: `${((O = e.value) == null ? void 0 : O.x) || 0}px`,
154
+ transform: "translateX(-100%) translateY(-50%)"
155
+ };
156
+ break;
157
+ case "right-bottom":
158
+ e.value = {
159
+ x: t.x + 16,
160
+ y: t.y + o.y
161
+ }, l.value = {
162
+ position: "absolute",
163
+ top: `${((U = e.value) == null ? void 0 : U.y) || 0}px`,
164
+ left: `${((D = e.value) == null ? void 0 : D.x) || 0}px`,
165
+ transform: `translateX(${t.width}px)`
166
+ };
167
+ break;
168
+ case "right-center":
169
+ e.value = {
170
+ x: t.x + 16,
171
+ y: t.y + t.height / 2 + o.y
172
+ }, l.value = {
173
+ position: "absolute",
174
+ top: `${((G = e.value) == null ? void 0 : G.y) || 0}px`,
175
+ left: `${((H = e.value) == null ? void 0 : H.x) || 0}px`,
176
+ transform: `translateX(${t.width}px) translateY(-50%)`
177
+ };
178
+ break;
179
+ default:
180
+ e.value = {
181
+ x: t.x + 32,
182
+ y: t.y + t.height + 16
183
+ }, l.value = {
184
+ position: "absolute",
185
+ top: `${((J = e.value) == null ? void 0 : J.y) || 0}px`,
186
+ left: `${((K = e.value) == null ? void 0 : K.x) || 0}px`,
187
+ transform: "translateX(-100%)"
188
+ };
189
+ break;
190
+ }
191
+ h.value = `at-tooltip-${n.position}`;
192
+ };
193
+ ot(() => {
194
+ window.addEventListener("resize", s), window.addEventListener("scroll", s);
195
+ }), lt(() => {
196
+ window.removeEventListener("resize", s), window.removeEventListener("scroll", s);
197
+ });
198
+ const V = () => {
199
+ c.value = !0, s();
200
+ }, m = () => {
201
+ c.value = !1;
202
+ }, W = (u) => {
203
+ var o, t, p;
204
+ const { relatedTarget: a } = u;
205
+ a && ((o = f.value) != null && o.contains(a) || (t = v.value) != null && t.contains(a) || (p = y.value) != null && p.contains(a)) || m();
206
+ }, Z = async (u) => {
207
+ if (navigator && navigator.clipboard)
208
+ try {
209
+ await navigator.clipboard.writeText(u), Q("copiedText", u);
210
+ } catch (a) {
211
+ console.error("Failed to copy: ", a);
212
+ }
213
+ else
214
+ console.warn("Clipboard API not supported");
215
+ }, tt = nt(() => !n.maxTextLength || n.text.length <= n.maxTextLength ? n.text : `${n.text.substring(0, n.maxTextLength)}...`);
216
+ return {
217
+ tooltipChildren: v,
218
+ contentPosition: e,
219
+ tooltipStyle: l,
220
+ tooltipClass: h,
221
+ visible: c,
222
+ wrapper: f,
223
+ tooltip: y,
224
+ formatedText: tt,
225
+ show: V,
226
+ hide: m,
227
+ handleMouseOut: W,
228
+ copyText: Z
229
+ };
230
+ }
231
+ });
232
+ export {
233
+ pt as default
234
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"MultipleUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/Upload/MultipleUpload/MultipleUpload.vue"],"names":[],"mappings":"AAoYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;;;;;;2BAmBV,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;;;;;;2BAaN,OAAO;;;;;;2BAMP,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;cAGV,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;2BAWd,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;w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;;;;;;;;;;;;;;;;;AAuK3G,wBAiSC"}
@@ -0,0 +1,58 @@
1
+ import m from "./MultipleUpload.vue2.js";
2
+ import { resolveComponent as r, createElementBlock as t, openBlock as n, createVNode as l, createElementVNode as o, normalizeStyle as i, createCommentVNode as f, Fragment as v, renderList as h } from "vue";
3
+ /* empty css */
4
+ import y from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const $ = { class: "at-uploader-multiple-input-container" }, g = {
6
+ key: 0,
7
+ class: "at-uploader-file-container"
8
+ }, U = { class: "at-uploader-files" };
9
+ function w(e, p, T, I, P, B) {
10
+ const s = r("UploaderHeader"), d = r("UploaderInput"), u = r("AtProgressBar");
11
+ return n(), t("div", null, [
12
+ l(s, {
13
+ "warning-text-upload": e.$props.warningTextUpload,
14
+ "interactive-text-button": e.$props.interactiveTextButton,
15
+ "interactive-texthref": e.$props.interactiveTexthref,
16
+ "interactive-text-download-name": e.$props.interactiveTextDownloadName,
17
+ "warning-function": e.$props.warningFunction
18
+ }, null, 8, ["warning-text-upload", "interactive-text-button", "interactive-texthref", "interactive-text-download-name", "warning-function"]),
19
+ o("div", {
20
+ class: "at-uploader-multiple",
21
+ style: i(e.uploaderContainerStyle)
22
+ }, [
23
+ o("div", $, [
24
+ l(d, {
25
+ style: i(e.inputStyle),
26
+ "handle-drop": e.handleDrop,
27
+ "upload-text": e.$props.uploadText,
28
+ "upload-interaction-text": e.$props.uploadInteractionText,
29
+ "multiple-select": e.$props.multipleSelect,
30
+ "accept-types": e.$props.acceptTypes,
31
+ "accept-types-input": e.$props.acceptTypesInput,
32
+ "handle-file-upload": e.handleFileUpload
33
+ }, null, 8, ["style", "handle-drop", "upload-text", "upload-interaction-text", "multiple-select", "accept-types", "accept-types-input", "handle-file-upload"])
34
+ ]),
35
+ e.files && e.files.length ? (n(), t("div", g, [
36
+ p[0] || (p[0] = o("span", null, "Arquivos", -1)),
37
+ o("div", U, [
38
+ (n(!0), t(v, null, h(e.files, (a, c) => (n(), t("div", {
39
+ key: a.name + c,
40
+ class: "at-uploader-file"
41
+ }, [
42
+ l(u, {
43
+ file: a,
44
+ "handle-remove-file": () => e.handleRemove(a),
45
+ "is-only-use": !1,
46
+ interval: e.$props.progressInterval,
47
+ onUpdateProgress: e.handleUpdateProgressOnParent
48
+ }, null, 8, ["file", "handle-remove-file", "interval", "onUpdateProgress"])
49
+ ]))), 128))
50
+ ])
51
+ ])) : f("", !0)
52
+ ], 4)
53
+ ]);
54
+ }
55
+ const C = /* @__PURE__ */ y(m, [["render", w], ["__scopeId", "data-v-ae758af2"]]);
56
+ export {
57
+ C as default
58
+ };
@@ -0,0 +1,198 @@
1
+ import { defineComponent as q, ref as g, computed as v } from "vue";
2
+ import S from "../../ProgressBar/ProgressBar.vue.js";
3
+ import z from "../UploaderHeader/UploaderHeader.vue.js";
4
+ import w from "../UploaderInput/UploaderInput.vue.js";
5
+ const N = q({
6
+ name: "MultipleUpload",
7
+ components: {
8
+ AtProgressBar: S,
9
+ UploaderHeader: z,
10
+ UploaderInput: w
11
+ },
12
+ props: {
13
+ warningTextUpload: {
14
+ type: String,
15
+ required: !1,
16
+ default: "Texto de aviso sobre o upload",
17
+ validator: (e) => typeof e == "string"
18
+ },
19
+ loadingText: {
20
+ type: String,
21
+ required: !1,
22
+ default: "Estamos analisando o arquivo, em breve, retornaremos com os resultados.",
23
+ validator: (e) => typeof e == "string"
24
+ },
25
+ completeText: {
26
+ type: String,
27
+ required: !1,
28
+ default: "O upload foi concluído!",
29
+ validator: (e) => typeof e == "string"
30
+ },
31
+ progressInterval: {
32
+ type: Number,
33
+ required: !1,
34
+ default: 1e3,
35
+ validator: (e) => typeof e == "number"
36
+ },
37
+ interactiveTextButton: {
38
+ type: String,
39
+ required: !1,
40
+ default: "",
41
+ validator: (e) => typeof e == "string"
42
+ },
43
+ interactiveTexthref: {
44
+ type: String,
45
+ required: !1,
46
+ default: "",
47
+ validator: (e) => typeof e == "string"
48
+ },
49
+ interactiveTextDownloadName: {
50
+ type: String,
51
+ required: !1,
52
+ default: "",
53
+ validator: (e) => typeof e == "string"
54
+ },
55
+ warningFunction: {
56
+ type: Function,
57
+ required: !1,
58
+ default: () => {
59
+ console.warn("This is a warning");
60
+ }
61
+ },
62
+ multipleSelect: {
63
+ type: Boolean,
64
+ required: !1,
65
+ default: !1,
66
+ validator: (e) => typeof e == "boolean"
67
+ },
68
+ uploadText: {
69
+ type: String,
70
+ required: !1,
71
+ default: "Importe seu arquivo aqui",
72
+ validator: (e) => typeof e == "string"
73
+ },
74
+ uploadInteractionText: {
75
+ type: String,
76
+ required: !1,
77
+ default: "Arraste ou clique para fazer upload do arquivo",
78
+ validator: (e) => typeof e == "string"
79
+ },
80
+ uploadProgress: {
81
+ type: Number,
82
+ required: !1,
83
+ default: 0,
84
+ validator: (e) => typeof e == "number"
85
+ },
86
+ acceptTypes: {
87
+ type: Array,
88
+ default: () => []
89
+ },
90
+ acceptTypesInput: {
91
+ type: String,
92
+ default: "*"
93
+ },
94
+ maxFileSize: {
95
+ type: Number,
96
+ required: !1,
97
+ default: void 0,
98
+ validator: (e) => typeof e == "number"
99
+ },
100
+ maxTotalSize: {
101
+ type: Number,
102
+ required: !1,
103
+ default: void 0,
104
+ validator: (e) => typeof e == "number"
105
+ },
106
+ maxFiles: {
107
+ type: Number,
108
+ required: !1,
109
+ default: void 0,
110
+ validator: (e) => typeof e == "number"
111
+ }
112
+ },
113
+ emits: ["updateFile", "updateProgress", "uploadError"],
114
+ setup(e, { emit: n }) {
115
+ const i = g([]), u = g(e.uploadProgress), x = (t) => {
116
+ if (t.preventDefault(), t.dataTransfer) {
117
+ const a = Array.from(t.dataTransfer.files), o = d(a);
118
+ if (o.length) {
119
+ const r = y(o);
120
+ r.length && (i.value.push(...r), n("updateFile", i.value));
121
+ }
122
+ }
123
+ }, d = (t) => {
124
+ const a = [];
125
+ if (!f(t) || !m(t)) return [];
126
+ const o = t.filter((r) => {
127
+ const l = c(r), s = p(r);
128
+ return l || a.push({
129
+ file: r,
130
+ type: "unsupported_type",
131
+ message: `O tipo (${r.type}) do arquivo ${r.name} não é suportado. `
132
+ }), s || a.push({
133
+ file: r,
134
+ type: "exceeded_file_size",
135
+ message: `O tamanho do arquivo ${r.name} excedeu o limite permitido. `
136
+ }), l && s;
137
+ });
138
+ return a.length && (console.warn(a.map((r) => r.message).join(`
139
+ `)), n("uploadError", a)), o;
140
+ }, p = (t) => e.maxFileSize ? t.size < e.maxFileSize : !0, c = (t) => {
141
+ if (!e.acceptTypes.length && (!e.acceptTypesInput || e.acceptTypesInput === "*"))
142
+ return !0;
143
+ if (e.acceptTypes.length)
144
+ return e.acceptTypes.map((l) => l.toLowerCase()).includes(t.type.toLowerCase());
145
+ const a = t.name.split(".").pop();
146
+ return e.acceptTypesInput.split(",").some((r) => r.includes(a || ""));
147
+ }, f = (t) => {
148
+ const a = [], o = t.length + i.value.length;
149
+ return e.maxFiles && o > e.maxFiles ? (a.push({
150
+ file: t[0],
151
+ type: "exceeded_file_length",
152
+ message: `O tamanho limite de arquivos foi excedido (${e.maxFiles})`
153
+ }), console.warn(a.map((r) => r.message).join(`
154
+ `)), n("uploadError", a), !1) : !0;
155
+ }, m = (t) => {
156
+ const a = [], o = i.value.reduce((l, s) => l + s.size, 0), r = t.reduce((l, s) => l + s.size, 0);
157
+ return e.maxTotalSize && r + o > e.maxTotalSize ? (a.push({
158
+ file: t[0],
159
+ type: "exceeded_total_size",
160
+ message: `A soma de tamanho dos arquivos foi excedida, máximo permitido: ${e.maxTotalSize} B `
161
+ }), console.warn(a.map((l) => l.message).join(`
162
+ `)), n("uploadError", a), !1) : !0;
163
+ }, h = async (t) => {
164
+ const a = t.target.files;
165
+ if (!a) return;
166
+ const o = d(Array.from(a));
167
+ if (o.length) {
168
+ const r = y(o);
169
+ r.length && (i.value.push(...r), n("updateFile", i.value));
170
+ }
171
+ }, T = (t) => {
172
+ const a = i.value.indexOf(t);
173
+ a !== -1 && (i.value.splice(a, 1), i.value.length === 0 && (u.value = 0, n("updateProgress", 0)), n("updateFile", i.value));
174
+ }, F = (t) => {
175
+ u.value = t, n("updateProgress", u.value);
176
+ }, y = (t) => t.filter(
177
+ (a) => !i.value.some((o) => o.name === a.name && o.size === a.size)
178
+ );
179
+ return {
180
+ handleDrop: x,
181
+ handleFileUpload: h,
182
+ handleRemove: T,
183
+ handleUpdateProgressOnParent: F,
184
+ getAcceptedFiles: d,
185
+ isMaxTotalFilesSizeInRange: m,
186
+ isMaxFilesInRange: f,
187
+ isTypeAccepted: c,
188
+ isSizeAccepted: p,
189
+ files: i,
190
+ progress: u,
191
+ inputStyle: v(() => i.value.length > 0 ? { height: "256px", width: "256px" } : { width: "100%" }),
192
+ uploaderContainerStyle: v(() => i.value.length <= 0 ? { width: "100%", padding: "0px" } : {})
193
+ };
194
+ }
195
+ });
196
+ export {
197
+ N as default
198
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SingleUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/Upload/SingleUpload/SingleUpload.vue"],"names":[],"mappings":"AAwSA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;;;;;;2BAqBV,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;;;;;;2BAaN,OAAO;;;;;;2BAMP,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;cAGV,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;2BAWd,MAAM;;;wBAQA,SAAS;8BA2EG,KAAK;;6CAmBI,MAAM;8BAhFrB,IAAI,EAAE;2BAkCT,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAzIb,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;2BAMN,MAAM;;;;;;;;;;;2BAaN,OAA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