@agrotools1/at-components1 1.1.1 → 1.1.2-beta.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 (229) 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/composables/useBootstrapWrapper.js +7 -0
  227. package/dist/index.css +1 -3
  228. package/dist/index.js +68 -16654
  229. package/package.json +15 -6
@@ -0,0 +1,151 @@
1
+ import V from "./Dropdown.Checklist.vue2.js";
2
+ import { resolveComponent as b, createElementBlock as r, openBlock as a, createElementVNode as o, createVNode as t, withCtx as i, createTextVNode as c, toDisplayString as u, createCommentVNode as h, Fragment as k, renderList as g, normalizeClass as f, createBlock as C, resolveDynamicComponent as $, normalizeStyle as z } from "vue";
3
+ /* empty css */
4
+ import I from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const D = { class: "atCheckList" }, U = { class: "at-dropdown-header" }, w = { class: "at-dropdown-content" }, L = { class: "item checkall" }, N = {
6
+ for: "checkAll",
7
+ class: "checkall-label"
8
+ }, S = ["for"], T = {
9
+ id: "sortable",
10
+ ref: "sortableList"
11
+ }, B = ["id", "draggable"], x = { class: "left-items" }, E = {
12
+ key: 0,
13
+ class: "ordenable-icon"
14
+ }, M = ["for"];
15
+ function O(l, s, P, R, F, j) {
16
+ const n = b("AtParagraph"), y = b("AtCloseSolidIcon"), m = b("AtCheckbox"), v = b("AtDragOrderRegularIcon");
17
+ return a(), r("div", D, [
18
+ o("div", U, [
19
+ t(n, {
20
+ size: "p1",
21
+ weight: "bold"
22
+ }, {
23
+ default: i(() => [
24
+ c(u(l.title), 1)
25
+ ]),
26
+ _: 1
27
+ }),
28
+ o("span", {
29
+ style: { cursor: "pointer" },
30
+ class: "closeIcon",
31
+ onClick: s[0] || (s[0] = (...e) => l.closeDialog && l.closeDialog(...e))
32
+ }, [
33
+ t(y, { size: "20" })
34
+ ])
35
+ ]),
36
+ o("div", w, [
37
+ l.checkAllText ? (a(), r(k, { key: 0 }, [
38
+ o("div", L, [
39
+ t(m, {
40
+ id: "checkAll",
41
+ modelValue: l.checkAllModel,
42
+ "onUpdate:modelValue": s[1] || (s[1] = (e) => l.checkAllModel = e),
43
+ size: "12",
44
+ labelledby: "checkAll"
45
+ }, null, 8, ["modelValue"]),
46
+ o("label", N, [
47
+ t(n, { size: "p2" }, {
48
+ default: i(() => [
49
+ c(u(l.checkAllText), 1)
50
+ ]),
51
+ _: 1
52
+ })
53
+ ])
54
+ ]),
55
+ s[3] || (s[3] = o("span", { class: "separator" }, null, -1))
56
+ ], 64)) : h("", !0),
57
+ (a(!0), r(k, null, g(l.listSeparator, (e, p) => (a(), r("div", {
58
+ key: `${p}`,
59
+ class: "item-separator"
60
+ }, [
61
+ t(n, {
62
+ size: "p2",
63
+ weight: "bold"
64
+ }, {
65
+ default: i(() => [
66
+ c(u(e.key), 1)
67
+ ]),
68
+ _: 2
69
+ }, 1024),
70
+ s[4] || (s[4] = o("span", { class: "separator" }, null, -1)),
71
+ (a(!0), r(k, null, g(e.value, (d, A) => (a(), r("div", {
72
+ key: `${A}`,
73
+ class: f(["item"])
74
+ }, [
75
+ t(m, {
76
+ id: d.text,
77
+ modelValue: d.value,
78
+ "onUpdate:modelValue": (_) => d.value = _,
79
+ size: "12",
80
+ disabled: d.disabled,
81
+ labelledby: `${d.text}`
82
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "labelledby"]),
83
+ o("label", {
84
+ for: `${d.text}`,
85
+ class: "item-label"
86
+ }, [
87
+ t(n, { size: "p2" }, {
88
+ default: i(() => [
89
+ c(u(l.getItemText(d)), 1)
90
+ ]),
91
+ _: 2
92
+ }, 1024)
93
+ ], 8, S)
94
+ ]))), 128))
95
+ ]))), 128)),
96
+ o("div", T, [
97
+ (a(!0), r(k, null, g(l.listArray, (e, p) => (a(), r("div", {
98
+ id: `listArray-item-${p}-${e.text}`,
99
+ key: `${p}`,
100
+ class: f(["item", [
101
+ l.sortable && !e.disabled ? "draggable" : "",
102
+ e.disabled ? "isDisabled" : "",
103
+ e.className
104
+ ]]),
105
+ draggable: l.sortable && !e.disabled
106
+ }, [
107
+ o("div", x, [
108
+ l.sortable ? (a(), r("span", E, [
109
+ t(v, {
110
+ size: "16",
111
+ color: e.disabled ? "var(--at-disabled-text)" : ""
112
+ }, null, 8, ["color"])
113
+ ])) : h("", !0),
114
+ t(m, {
115
+ id: e.text,
116
+ modelValue: e.value,
117
+ "onUpdate:modelValue": [
118
+ (d) => e.value = d,
119
+ s[2] || (s[2] = () => {
120
+ l.$emit("onUpdateCheckbox", !0);
121
+ })
122
+ ],
123
+ size: "12",
124
+ disabled: e.disabled,
125
+ labelledby: `${e.text}`
126
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "disabled", "labelledby"]),
127
+ o("label", {
128
+ for: `${e.text}`,
129
+ class: "item-label"
130
+ }, [
131
+ t(n, { size: "p2" }, {
132
+ default: i(() => [
133
+ c(u(l.getItemText(e)), 1)
134
+ ]),
135
+ _: 2
136
+ }, 1024)
137
+ ], 8, M)
138
+ ]),
139
+ (a(), C($(l.getLockItem(e)), {
140
+ size: "16",
141
+ style: z(l.getLockIconColor(e))
142
+ }, null, 8, ["style"]))
143
+ ], 10, B))), 128))
144
+ ], 512)
145
+ ])
146
+ ]);
147
+ }
148
+ const K = /* @__PURE__ */ I(V, [["render", O], ["__scopeId", "data-v-e418345f"]]);
149
+ export {
150
+ K as default
151
+ };
@@ -0,0 +1,84 @@
1
+ import { AtUnlockRegularIcon as b, AtLockRegularIcon as g, AtDragOrderRegularIcon as I, AtCloseSolidIcon as x } from "@agrotools1/at-icons";
2
+ import { defineComponent as y, ref as r, onMounted as D, toRaw as S } from "vue";
3
+ import w from "../../Checkbox/Checkbox.vue.js";
4
+ import R from "../../Tipograph/Paragraph/Paragraph.vue.js";
5
+ import M from "./draggable.js";
6
+ const O = {
7
+ AtCloseSolidIcon: x,
8
+ AtDragOrderRegularIcon: I,
9
+ AtLockRegularIcon: g,
10
+ AtUnlockRegularIcon: b
11
+ }, q = y({
12
+ name: "AtChecklist",
13
+ components: { AtParagraph: R, AtCheckbox: w, ...O },
14
+ props: {
15
+ dropDownList: {
16
+ type: Array,
17
+ required: !0
18
+ },
19
+ title: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ checkAllText: {
24
+ type: String
25
+ },
26
+ sortable: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ listItemSeparator: {
31
+ type: String,
32
+ default: " | "
33
+ }
34
+ },
35
+ emits: ["onClose", "onSorted", "onUpdateCheckbox"],
36
+ setup(e, { emit: c }) {
37
+ const h = r(), a = r([]), o = r([]), d = r(null), n = r(e.dropDownList), u = () => {
38
+ a.value = [], o.value = [], n.value.some((t) => "key" in t) ? a.value = n.value : o.value = n.value;
39
+ };
40
+ u();
41
+ const v = (t) => {
42
+ var l, m, f;
43
+ (l = a.value) == null || l.map(
44
+ (s) => s.value.filter((i) => !i.disabled).map((i) => i.value = t)
45
+ ), (f = (m = o.value) == null ? void 0 : m.filter((s) => !s.disabled)) == null || f.map((s) => s.value = t);
46
+ }, A = (t) => t.text, k = () => c("onClose", !0), L = (t) => t.disabled ? g : b, C = (t) => ({ color: t.disabled ? "var(--at-disabled-text)" : "var(--at-primary-color-1)" }), p = () => {
47
+ const t = new M(
48
+ o.value.map((l) => structuredClone(S(l))),
49
+ d.value
50
+ );
51
+ t.onDragIsEnd = () => c("onSorted", t.endList);
52
+ };
53
+ return D(() => {
54
+ e.sortable && p();
55
+ }), {
56
+ checkAllModel: h,
57
+ listSeparator: a,
58
+ listArray: o,
59
+ list: n,
60
+ sortableList: d,
61
+ setAllCheckboxValues: v,
62
+ getItemText: A,
63
+ setListProps: u,
64
+ closeDialog: k,
65
+ getLockItem: L,
66
+ getLockIconColor: C,
67
+ setListOrdenable: p
68
+ };
69
+ },
70
+ watch: {
71
+ dropDownList() {
72
+ this.list = this.dropDownList, this.setListProps();
73
+ },
74
+ sortable(e) {
75
+ e && this.setListOrdenable();
76
+ },
77
+ checkAllModel(e) {
78
+ this.setAllCheckboxValues(e);
79
+ }
80
+ }
81
+ });
82
+ export {
83
+ q as default
84
+ };
@@ -0,0 +1,68 @@
1
+ var g = Object.defineProperty;
2
+ var c = (d, t, e) => t in d ? g(d, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[t] = e;
3
+ var o = (d, t, e) => c(d, typeof t != "symbol" ? t + "" : t, e);
4
+ class l {
5
+ constructor(t, e) {
6
+ o(this, "sortableList");
7
+ o(this, "draggedItem");
8
+ o(this, "listArray");
9
+ o(this, "endList");
10
+ o(this, "mouseOverElement");
11
+ o(this, "onDragIsEnd");
12
+ var r, s, a, i;
13
+ this.draggedItem = null, this.listArray = t, this.sortableList = e ?? document.getElementById("sortable"), (r = this.sortableList) == null || r.addEventListener("dragstart", this.onDragStart.bind(this)), (s = this.sortableList) == null || s.addEventListener("dragend", this.onDragEnd.bind(this)), (a = this.sortableList) == null || a.addEventListener("dragover", this.onDragOver.bind(this)), (i = this.sortableList) == null || i.addEventListener("mouseover", this.onMouseOver.bind(this));
14
+ }
15
+ onMouseOver(t) {
16
+ this.mouseOverElement = t.target;
17
+ }
18
+ onDragStart(t) {
19
+ const e = t.target.attributes.getNamedItem("draggable"), r = this.mouseOverElement.classList.contains("icon-wrapper") || this.mouseOverElement.classList.contains("ordenable-icon");
20
+ if (!(e != null && e.value) || !r)
21
+ return t.preventDefault();
22
+ const a = `
23
+ opacity: .25;
24
+ border: 1px dashed var(--at-primary-color-2);
25
+ border-radius: 3px;
26
+ padding: 15px;
27
+ `;
28
+ this.draggedItem = t.target, setTimeout(() => {
29
+ t.target.setAttribute("style", a);
30
+ }, 0);
31
+ }
32
+ onDragEnd(t) {
33
+ setTimeout(() => {
34
+ var a;
35
+ t.target.setAttribute("style", ""), this.draggedItem = null;
36
+ const r = [].slice.call((a = this.sortableList) == null ? void 0 : a.children).map((i) => {
37
+ var n;
38
+ return Number.parseInt((n = i.id) == null ? void 0 : n.split("-")[2]);
39
+ }), s = [];
40
+ r.forEach((i, n) => {
41
+ s[n] = this.listArray[i];
42
+ }), this.endList = s, this.onDragIsEnd();
43
+ }, 0);
44
+ }
45
+ static getDragAfterElement(t, e) {
46
+ return [...t.querySelectorAll(".item.draggable:not(.dragging)")].reduce(
47
+ (s, a) => {
48
+ const i = a.getBoundingClientRect(), n = e - i.top - i.height / 2;
49
+ return n < 0 && n > s.offset ? {
50
+ offset: n,
51
+ element: a
52
+ } : s;
53
+ },
54
+ {
55
+ offset: Number.NEGATIVE_INFINITY
56
+ }
57
+ ).element;
58
+ }
59
+ onDragOver(t) {
60
+ var r, s;
61
+ t.preventDefault();
62
+ const e = l.getDragAfterElement(this.sortableList, t.clientY);
63
+ e == null ? (r = this.sortableList) == null || r.appendChild(this.draggedItem) : (s = this.sortableList) == null || s.insertBefore(this.draggedItem, e);
64
+ }
65
+ }
66
+ export {
67
+ l as default
68
+ };
@@ -0,0 +1,47 @@
1
+ import a from "./Dropdown.core.vue2.js";
2
+ import { resolveComponent as g, createElementBlock as r, openBlock as o, createElementVNode as l, normalizeClass as i, createCommentVNode as p, createBlock as m, renderSlot as n, Teleport as c, createVNode as f, withCtx as u, normalizeStyle as C } from "vue";
3
+ /* empty css */
4
+ import y from "../_virtual/_plugin-vue_export-helper.js";
5
+ const $ = { class: "container-dialog" }, v = ["id"];
6
+ function D(e, t, k, B, b, w) {
7
+ const s = g("DropdownContent");
8
+ return o(), r("section", $, [
9
+ l("div", {
10
+ class: i(e.getDialogClass)
11
+ }, [
12
+ e.$slots.trigger ? (o(), r("section", {
13
+ key: 0,
14
+ id: "trigger",
15
+ ref: "triggerElem",
16
+ onClick: t[0] || (t[0] = (...d) => e.toggleDialog && e.toggleDialog(...d))
17
+ }, [
18
+ n(e.$slots, "trigger", {}, void 0, !0)
19
+ ], 512)) : p("", !0),
20
+ (o(), m(c, {
21
+ to: "body",
22
+ disabled: !e.teleportToBody
23
+ }, [
24
+ f(s, null, {
25
+ default: u(() => [
26
+ l("div", {
27
+ id: e.id,
28
+ ref: "dialogElem",
29
+ class: i([
30
+ { isOpen: e.dialogIsOpen },
31
+ e.teleportToBody ? "dialog-content" : "dialog-content-static"
32
+ ]),
33
+ style: C(e.dialogStyle)
34
+ }, [
35
+ n(e.$slots, "default", {}, void 0, !0)
36
+ ], 14, v)
37
+ ]),
38
+ _: 3
39
+ })
40
+ ], 8, ["disabled"]))
41
+ ], 2)
42
+ ]);
43
+ }
44
+ const T = /* @__PURE__ */ y(a, [["render", D], ["__scopeId", "data-v-99c07ba7"]]);
45
+ export {
46
+ T as default
47
+ };
@@ -0,0 +1,112 @@
1
+ import { defineComponent as H, ref as i, watch as G, onMounted as J, onUnmounted as K, computed as M } from "vue";
2
+ import Q from "./DropdownContent/DropdownContent.vue.js";
3
+ const V = H({
4
+ name: "AtDropdown",
5
+ components: { DropdownContent: Q },
6
+ props: {
7
+ isOpen: {
8
+ type: Boolean,
9
+ default: !1
10
+ },
11
+ position: {
12
+ type: String,
13
+ default: "left"
14
+ },
15
+ fullSize: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ teleportToBody: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ preventClickOutside: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ id: {
28
+ type: String,
29
+ default: ""
30
+ }
31
+ },
32
+ emits: ["update:isOpen"],
33
+ setup(l, { emit: g }) {
34
+ const c = i(!1);
35
+ c.value = l.isOpen;
36
+ const s = i(), u = i(), r = i(), y = i(0), a = i(), f = i(), d = i(null), n = () => {
37
+ var O, S, b, C, z, B, E, L, T, D, k, W, $;
38
+ y.value = ((O = d.value) == null ? void 0 : O.scrollTop) ?? window.scrollY;
39
+ const e = (b = (S = u.value) == null ? void 0 : S.children[0]) == null ? void 0 : b.querySelector(".AT-INPUT_error-message"), o = 1 / (Number.parseFloat((C = window.getComputedStyle(document.body)) == null ? void 0 : C.zoom) || 1);
40
+ a.value = (z = u.value) == null ? void 0 : z.getBoundingClientRect();
41
+ const N = {
42
+ y: y.value * o
43
+ }, t = {
44
+ top: (((B = a.value) == null ? void 0 : B.top) ?? 0) * o,
45
+ right: (((E = a.value) == null ? void 0 : E.right) ?? 0) * o,
46
+ bottom: (((L = a.value) == null ? void 0 : L.bottom) ?? 0) * o,
47
+ left: (((T = a.value) == null ? void 0 : T.left) ?? 0) * o,
48
+ width: (((D = a.value) == null ? void 0 : D.width) ?? 0) * o,
49
+ height: (((k = a.value) == null ? void 0 : k.height) ?? 0) * o
50
+ }, x = ((t == null ? void 0 : t.bottom) ?? 0) + ((e == null ? void 0 : e.clientHeight) ?? 0) + 8 + A(N), U = {
51
+ left: () => {
52
+ var v, p;
53
+ r.value = {
54
+ x: (t == null ? void 0 : t.left) ?? 0,
55
+ y: x
56
+ }, f.value = {
57
+ top: `${((v = r.value) == null ? void 0 : v.y) || 0}px`,
58
+ left: `${((p = r.value) == null ? void 0 : p.x) || 0}px`,
59
+ zIndex: "2147483641",
60
+ position: "absolute"
61
+ };
62
+ },
63
+ right: () => {
64
+ var v, p, I, P;
65
+ r.value = {
66
+ x: ((t == null ? void 0 : t.left) ?? 0) - ((((v = s.value) == null ? void 0 : v.clientWidth) ?? 0) - (((p = u.value) == null ? void 0 : p.clientWidth) ?? 0)),
67
+ y: x
68
+ }, f.value = {
69
+ top: `${((I = r.value) == null ? void 0 : I.y) || 0}px`,
70
+ left: `${((P = r.value) == null ? void 0 : P.x) || 0}px`,
71
+ zIndex: "2147483641",
72
+ position: "absolute"
73
+ };
74
+ }
75
+ }, F = window.innerWidth - ((t == null ? void 0 : t.right) ?? 0) <= (((W = s.value) == null ? void 0 : W.offsetWidth) ?? 0) ? "right" : l.position;
76
+ U[F](), l.fullSize && (f.value.width = `${(($ = u.value) == null ? void 0 : $.clientWidth) ?? 0}px`);
77
+ }, A = (e) => d.value ? 0 : e.y;
78
+ G(
79
+ () => l.isOpen,
80
+ (e) => {
81
+ c.value = e, e && setTimeout(() => {
82
+ l.teleportToBody && n();
83
+ }, 10);
84
+ }
85
+ );
86
+ const Y = async () => g("update:isOpen", !0), h = async () => g("update:isOpen", !1), w = (e) => {
87
+ var m, o;
88
+ l.preventClickOutside || c.value && !((m = s == null ? void 0 : s.value) != null && m.contains(e.target)) && !((o = u.value) != null && o.contains(e.target)) && h();
89
+ }, _ = () => g("update:isOpen", !c.value);
90
+ J(() => {
91
+ var e;
92
+ document.addEventListener("click", w), l.teleportToBody && (window.addEventListener("resize", n), window.addEventListener("scroll", n, !0), d.value = document.querySelector(".at-scrollable-container") || null, (e = d.value) == null || e.addEventListener("scroll", n), n());
93
+ }), K(() => {
94
+ var e;
95
+ document.removeEventListener("click", w), l.teleportToBody && (window.removeEventListener("resize", n), window.removeEventListener("scroll", n), (e = d.value) == null || e.removeEventListener("scroll", n));
96
+ });
97
+ const q = M(() => ["dialog"]);
98
+ return {
99
+ dialogIsOpen: c,
100
+ getDialogClass: q,
101
+ dialogElem: s,
102
+ triggerElem: u,
103
+ dialogStyle: f,
104
+ toggleDialog: _,
105
+ openDialog: Y,
106
+ closeDialog: h
107
+ };
108
+ }
109
+ });
110
+ export {
111
+ V as default
112
+ };
@@ -0,0 +1,10 @@
1
+ import r from "./DropdownContent.vue2.js";
2
+ import { renderSlot as t } from "vue";
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ function n(o, p, s, f, a, c) {
5
+ return t(o.$slots, "default");
6
+ }
7
+ const i = /* @__PURE__ */ e(r, [["render", n]]);
8
+ export {
9
+ i as default
10
+ };
@@ -0,0 +1,9 @@
1
+ import { defineComponent as n } from "vue";
2
+ const e = n({
3
+ name: "DropdownContent",
4
+ setup() {
5
+ }
6
+ });
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,41 @@
1
+ import l from "./Faq.vue2.js";
2
+ import { resolveComponent as e, createElementBlock as d, openBlock as m, createElementVNode as p, createVNode as o, withCtx as s, createTextVNode as n, toDisplayString as a } from "vue";
3
+ /* empty css */
4
+ /* empty css */
5
+ import _ from "../_virtual/_plugin-vue_export-helper.js";
6
+ const f = { class: "card" }, u = { class: "faq-title-card" };
7
+ function q(t, A, h, v, B, $) {
8
+ const i = e("AtTitle"), r = e("AtButton"), c = e("AtFaqItem");
9
+ return m(), d("div", f, [
10
+ p("div", u, [
11
+ o(i, {
12
+ as: "h6",
13
+ bold: !0,
14
+ class: "faq-title"
15
+ }, {
16
+ default: s(() => [
17
+ n(a(t.title), 1)
18
+ ]),
19
+ _: 1
20
+ }),
21
+ o(r, {
22
+ class: "faq-button",
23
+ variant: "secondary",
24
+ onClick: t.toogleListQuestions
25
+ }, {
26
+ default: s(() => [
27
+ n(a(t.$props.faqButtonText), 1)
28
+ ]),
29
+ _: 1
30
+ }, 8, ["onClick"])
31
+ ]),
32
+ o(c, {
33
+ items: t.items,
34
+ "full-size": ""
35
+ }, null, 8, ["items"])
36
+ ]);
37
+ }
38
+ const N = /* @__PURE__ */ _(l, [["render", q], ["__scopeId", "data-v-5fe3dfde"]]);
39
+ export {
40
+ N as default
41
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as r, ref as o } from "vue";
2
+ import { AtTipograph as i } from "../Tipograph/index.js";
3
+ import a from "./FaqItem/FaqItem.vue.js";
4
+ import n from "../Button/Button.vue.js";
5
+ const l = r({
6
+ name: "Faq",
7
+ components: {
8
+ AtTitle: i.Title,
9
+ AtButton: n,
10
+ AtFaqItem: a
11
+ },
12
+ props: {
13
+ title: {
14
+ type: String,
15
+ required: !0,
16
+ default: "Título padrão",
17
+ validator: (t) => typeof t == "string"
18
+ },
19
+ faqButtonText: {
20
+ type: String,
21
+ required: !1,
22
+ default: "Ver mais",
23
+ validator: (t) => typeof t == "string"
24
+ },
25
+ items: {
26
+ type: Array,
27
+ required: !0,
28
+ validator: (t) => Array.isArray(t) && t.every((e) => typeof e == "object")
29
+ }
30
+ },
31
+ setup() {
32
+ const t = o(!1);
33
+ return {
34
+ buttonInteraction: t,
35
+ toogleListQuestions: () => t.value = !t.value
36
+ };
37
+ }
38
+ });
39
+ export {
40
+ l as default
41
+ };
@@ -0,0 +1,56 @@
1
+ import _ from "./FaqItem.vue2.js";
2
+ import { resolveComponent as i, createBlock as u, openBlock as n, Teleport as g, createElementVNode as a, normalizeClass as h, createElementBlock as l, Fragment as A, renderList as b, createVNode as e, withCtx as r, createTextVNode as c, toDisplayString as d } from "vue";
3
+ /* empty css */
4
+ import x from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const k = { class: "faq-items" }, q = { class: "faq-text" };
6
+ function y(t, z, T, B, C, S) {
7
+ const s = i("AtParagraph"), p = i("AtArrowRightSolidIcon"), m = i("AtButton");
8
+ return n(), u(g, {
9
+ to: "body",
10
+ disabled: !t.fixedTop
11
+ }, [
12
+ a("ul", {
13
+ class: h(["faq-items-list", ["faq-item-list", { fullSize: t.fullSize, fixedTop: t.fixedTop }]])
14
+ }, [
15
+ (n(!0), l(A, null, b(t.items, (o, f) => (n(), l("li", { key: f }, [
16
+ a("div", k, [
17
+ a("div", q, [
18
+ e(s, {
19
+ size: "p2",
20
+ style: { "margin-bottom": "0px" }
21
+ }, {
22
+ default: r(() => [
23
+ c(d(o.title), 1)
24
+ ]),
25
+ _: 2
26
+ }, 1024),
27
+ e(s, {
28
+ size: "p2",
29
+ style: { "margin-bottom": "0px" },
30
+ weight: "bold"
31
+ }, {
32
+ default: r(() => [
33
+ c(d(o.actionTitle), 1)
34
+ ]),
35
+ _: 2
36
+ }, 1024)
37
+ ]),
38
+ e(m, {
39
+ class: "faq-item-button",
40
+ "only-icon": "",
41
+ onClick: o.function
42
+ }, {
43
+ default: r(() => [
44
+ e(p, { size: "16" })
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["onClick"])
48
+ ])
49
+ ]))), 128))
50
+ ], 2)
51
+ ], 8, ["disabled"]);
52
+ }
53
+ const N = /* @__PURE__ */ x(_, [["render", y], ["__scopeId", "data-v-db45a232"]]);
54
+ export {
55
+ N as default
56
+ };
@@ -0,0 +1,32 @@
1
+ import { AtArrowRightSolidIcon as r } from "@agrotools1/at-icons";
2
+ import { defineComponent as e } from "vue";
3
+ import a from "../../Button/Button.vue.js";
4
+ import { AtTipograph as p } from "../../Tipograph/index.js";
5
+ const l = e({
6
+ name: "AtFaqItem",
7
+ components: {
8
+ AtArrowRightSolidIcon: r,
9
+ AtButton: a,
10
+ AtParagraph: p.Paragraph
11
+ },
12
+ props: {
13
+ items: {
14
+ type: Array,
15
+ required: !0,
16
+ validator: (t) => Array.isArray(t) && t.every((o) => typeof o == "object")
17
+ },
18
+ fullSize: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ fixedTop: {
23
+ type: Boolean,
24
+ default: !1
25
+ }
26
+ },
27
+ setup() {
28
+ }
29
+ });
30
+ export {
31
+ l as default
32
+ };