@agrotools1/at-components 0.1.8 → 0.2.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.
- package/dist/Button/Button.d.ts +7 -93
- package/dist/Legend/Legend.d.ts +73 -0
- package/dist/Legend/index.d.ts +1 -0
- package/dist/RadioButton/RadioButton.d.ts +87 -0
- package/dist/RadioButton/index.d.ts +1 -0
- package/dist/Stepper/index.d.ts +1 -0
- package/dist/Tabs/Tab/Tab.d.ts +21 -9
- package/dist/index.d.ts +11 -8
- package/dist/index.js +10179 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtAngleDownSolidIcon/AtAngleDownSolidIcon.vue.js +0 -33
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtAngleDownSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtAngleUpSolidIcon/AtAngleUpSolidIcon.vue.js +0 -33
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtAngleUpSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCheckCircleSolidIcon/AtCheckCircleSolidIcon.vue.js +0 -45
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCheckCircleSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleMinusSolidIcon/AtCircleMinusSolidIcon.vue.js +0 -45
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleMinusSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/AtCircleXMarkSolidIcon.vue.js +0 -45
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtWarningSolidIcon/AtWarningSolidIcon.vue.js +0 -33
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtWarningSolidIcon/index.js +0 -5
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/components/IconWrapper/IconWrapper.vue.js +0 -6
- package/dist/node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/components/IconWrapper/IconWrapper.vue2.js +0 -27
- package/dist/packages/at-components/src/Accordion/Accordion.vue.js +0 -77
- package/dist/packages/at-components/src/Accordion/Accordion.vue2.js +0 -51
- package/dist/packages/at-components/src/Accordion/Accordion.vue3.js +0 -4
- package/dist/packages/at-components/src/Avatar/Avatar.vue.js +0 -26
- package/dist/packages/at-components/src/Avatar/Avatar.vue2.js +0 -58
- package/dist/packages/at-components/src/Avatar/Avatar.vue3.js +0 -4
- package/dist/packages/at-components/src/Button/Button.vue.js +0 -35
- package/dist/packages/at-components/src/Button/Button.vue2.js +0 -86
- package/dist/packages/at-components/src/Button/Button.vue3.js +0 -4
- package/dist/packages/at-components/src/CardWithInsights/CardWithInsights.vue.js +0 -52
- package/dist/packages/at-components/src/CardWithInsights/CardWithInsights.vue2.js +0 -36
- package/dist/packages/at-components/src/CardWithInsights/CardWithInsights.vue3.js +0 -4
- package/dist/packages/at-components/src/CardWithInsights/CardWithInsights.vue4.js +0 -4
- package/dist/packages/at-components/src/Checkbox/Checkbox.vue.js +0 -38
- package/dist/packages/at-components/src/Checkbox/Checkbox.vue2.js +0 -73
- package/dist/packages/at-components/src/Checkbox/Checkbox.vue3.js +0 -4
- package/dist/packages/at-components/src/Checkbox/img/checkmarck.svg.js +0 -4
- package/dist/packages/at-components/src/DataTable/Column/Column.vue.js +0 -35
- package/dist/packages/at-components/src/DataTable/Column/Column.vue2.js +0 -67
- package/dist/packages/at-components/src/DataTable/Column/Column.vue3.js +0 -4
- package/dist/packages/at-components/src/DataTable/Column/imgs/filter.svg.js +0 -4
- package/dist/packages/at-components/src/DataTable/Counters/Counters.vue.js +0 -44
- package/dist/packages/at-components/src/DataTable/Counters/Counters.vue2.js +0 -71
- package/dist/packages/at-components/src/DataTable/Counters/Counters.vue3.js +0 -4
- package/dist/packages/at-components/src/DataTable/Counters/imgs/close.svg.js +0 -4
- package/dist/packages/at-components/src/DataTable/DataTable.vue.js +0 -94
- package/dist/packages/at-components/src/DataTable/DataTable.vue2.js +0 -125
- package/dist/packages/at-components/src/DataTable/DataTable.vue3.js +0 -4
- package/dist/packages/at-components/src/DataTable/index.js +0 -11
- package/dist/packages/at-components/src/Faq/Faq.vue.js +0 -46
- package/dist/packages/at-components/src/Faq/Faq.vue2.js +0 -40
- package/dist/packages/at-components/src/Faq/Faq.vue3.js +0 -4
- package/dist/packages/at-components/src/Faq/Faq.vue4.js +0 -4
- package/dist/packages/at-components/src/Illustration/Illustration.js +0 -117
- package/dist/packages/at-components/src/Illustration/Illustration.vue.js +0 -17
- package/dist/packages/at-components/src/Illustration/Illustration.vue2.js +0 -32
- package/dist/packages/at-components/src/Illustration/Illustration.vue3.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/renovabio-illustrations/biomass.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/renovabio-illustrations/volume.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/add-file.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/cloud-connection.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/cloud-download.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/cloud-upload.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/corrupted-file.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/empty-box.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/empty-folder-2.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/empty-folder.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/empty.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/error-illustration.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/file-backup-2.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/file-backup.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/filtering-upload.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/flight.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/fly.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/movies.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/multimedia.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/notification-bell.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/page-2.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/page.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/photos.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/recycle-bin.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/rocket-launch.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/signal.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/system-images/wrong.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/advanced-analysis.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/agriculture.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/alert-center.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/area.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/at-insights.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/conservation-unit.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/credit.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/deforestation.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/distance-proximity-rivers.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/estimated-productivity-penalty.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/extract.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/farm.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/geographical-consultation-municipalities.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/gix.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/insurance.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/land-appreciation.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/lockdown.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/map.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/pasture.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/rating-2.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/rating.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/recurrence.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/refrigerators.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/settings.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/socio-environmental-analysis.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/soil-use.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/storm.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/territory-details.svg.js +0 -4
- package/dist/packages/at-components/src/Illustration/images/tools-images/timeline.svg.js +0 -4
- package/dist/packages/at-components/src/Input/Input.core.vue.js +0 -67
- package/dist/packages/at-components/src/Input/Input.core.vue2.js +0 -107
- package/dist/packages/at-components/src/Input/Input.core.vue3.js +0 -4
- package/dist/packages/at-components/src/Input/imgs/error.svg.js +0 -4
- package/dist/packages/at-components/src/Input/index.js +0 -7
- package/dist/packages/at-components/src/Modal/Modal.vue.js +0 -88
- package/dist/packages/at-components/src/Modal/Modal.vue2.js +0 -92
- package/dist/packages/at-components/src/Modal/Modal.vue3.js +0 -4
- package/dist/packages/at-components/src/Modal/images/cross.svg.js +0 -4
- package/dist/packages/at-components/src/Paginator/Paginator.vue.js +0 -102
- package/dist/packages/at-components/src/Paginator/Paginator.vue2.js +0 -74
- package/dist/packages/at-components/src/Paginator/Paginator.vue3.js +0 -4
- package/dist/packages/at-components/src/Paginator/imgs/double-left-arrow.svg.js +0 -4
- package/dist/packages/at-components/src/Paginator/imgs/double-right-arrow.svg.js +0 -4
- package/dist/packages/at-components/src/Paginator/imgs/left-arrow.svg.js +0 -4
- package/dist/packages/at-components/src/Paginator/imgs/right-arrow.svg.js +0 -4
- package/dist/packages/at-components/src/ProgressBar/ProgressBar.vue.js +0 -69
- package/dist/packages/at-components/src/ProgressBar/ProgressBar.vue2.js +0 -72
- package/dist/packages/at-components/src/ProgressBar/ProgressBar.vue3.js +0 -4
- package/dist/packages/at-components/src/Select/Item/Item.vue.js +0 -52
- package/dist/packages/at-components/src/Select/Item/Item.vue2.js +0 -57
- package/dist/packages/at-components/src/Select/Item/Item.vue3.js +0 -4
- package/dist/packages/at-components/src/Select/Select.core.vue.js +0 -25
- package/dist/packages/at-components/src/Select/Select.core.vue2.js +0 -59
- package/dist/packages/at-components/src/Select/Select.multiple.vue.js +0 -60
- package/dist/packages/at-components/src/Select/Select.multiple.vue2.js +0 -97
- package/dist/packages/at-components/src/Select/Select.multiple.vue3.js +0 -4
- package/dist/packages/at-components/src/Select/Select.single.vue.js +0 -47
- package/dist/packages/at-components/src/Select/Select.single.vue2.js +0 -41
- package/dist/packages/at-components/src/Select/Select.single.vue3.js +0 -4
- package/dist/packages/at-components/src/Select/imgs/indicator.svg.js +0 -4
- package/dist/packages/at-components/src/Select/index.js +0 -9
- package/dist/packages/at-components/src/Tabs/Tab/Tab.vue.js +0 -30
- package/dist/packages/at-components/src/Tabs/Tab/Tab.vue2.js +0 -40
- package/dist/packages/at-components/src/Tabs/Tab/Tab.vue3.js +0 -4
- package/dist/packages/at-components/src/Tabs/Tabs.vue.js +0 -37
- package/dist/packages/at-components/src/Tabs/Tabs.vue2.js +0 -33
- package/dist/packages/at-components/src/Tabs/Tabs.vue3.js +0 -4
- package/dist/packages/at-components/src/Tabs/imgs/check.svg.js +0 -4
- package/dist/packages/at-components/src/Tabs/imgs/warning.svg.js +0 -4
- package/dist/packages/at-components/src/Tipograph/Paragraph/Paragraph.vue.js +0 -18
- package/dist/packages/at-components/src/Tipograph/Paragraph/Paragraph.vue2.js +0 -21
- package/dist/packages/at-components/src/Tipograph/Paragraph/Paragraph.vue3.js +0 -4
- package/dist/packages/at-components/src/Tipograph/Title/Title.vue.js +0 -18
- package/dist/packages/at-components/src/Tipograph/Title/Title.vue2.js +0 -21
- package/dist/packages/at-components/src/Tipograph/Title/Title.vue3.js +0 -4
- package/dist/packages/at-components/src/Tipograph/index.js +0 -9
- package/dist/packages/at-components/src/Toggle/Toggle.vue.js +0 -30
- package/dist/packages/at-components/src/Toggle/Toggle.vue2.js +0 -40
- package/dist/packages/at-components/src/Toggle/Toggle.vue3.js +0 -4
- package/dist/packages/at-components/src/Upload/Upload.vue.js +0 -91
- package/dist/packages/at-components/src/Upload/Upload.vue2.js +0 -96
- package/dist/packages/at-components/src/Upload/Upload.vue3.js +0 -4
- package/dist/packages/at-components/src/index.js +0 -34
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, computed as n } from "vue";
|
|
2
|
-
const p = f({
|
|
3
|
-
name: "AtAvatar",
|
|
4
|
-
props: {
|
|
5
|
-
imgBase64: {
|
|
6
|
-
required: !1,
|
|
7
|
-
type: String,
|
|
8
|
-
default: null,
|
|
9
|
-
validator: (e) => typeof e == "string"
|
|
10
|
-
},
|
|
11
|
-
withIcon: {
|
|
12
|
-
required: !1,
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: !1,
|
|
15
|
-
validator: (e) => typeof e == "boolean"
|
|
16
|
-
},
|
|
17
|
-
username: {
|
|
18
|
-
required: !0,
|
|
19
|
-
type: String,
|
|
20
|
-
default: null,
|
|
21
|
-
validator: (e) => typeof e == "string"
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
required: !1,
|
|
25
|
-
type: String,
|
|
26
|
-
default: "M",
|
|
27
|
-
validator: (e) => typeof e == "string" && ["P", "M", "G"].includes(e)
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
setup(e) {
|
|
31
|
-
const s = n(() => {
|
|
32
|
-
switch (e.size) {
|
|
33
|
-
case "P":
|
|
34
|
-
return 24;
|
|
35
|
-
case "M":
|
|
36
|
-
return 32;
|
|
37
|
-
case "G":
|
|
38
|
-
return 44;
|
|
39
|
-
default:
|
|
40
|
-
return 32;
|
|
41
|
-
}
|
|
42
|
-
}), a = n(() => `${s.value / 2}px`), i = () => {
|
|
43
|
-
if (e.username.length) {
|
|
44
|
-
const t = e.username.split(" "), o = t[0], r = t == null ? void 0 : t[1], l = o[0], u = (r == null ? void 0 : r[0]) || "";
|
|
45
|
-
return `${l}${u}`.toUpperCase();
|
|
46
|
-
}
|
|
47
|
-
return "";
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
slotSize: n(() => `${s.value}px`),
|
|
51
|
-
fontSize: a,
|
|
52
|
-
text: i()
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
p as default
|
|
58
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import a from "./Button.vue2.js";
|
|
2
|
-
import { openBlock as o, createElementBlock as t, normalizeStyle as n, normalizeClass as i, createCommentVNode as s, toDisplayString as l } from "vue";
|
|
3
|
-
import "./Button.vue3.js";
|
|
4
|
-
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const d = ["disabled", "aria-label", "aria-disabled"], c = {
|
|
6
|
-
key: 0,
|
|
7
|
-
ref: "leftIconSlotEl",
|
|
8
|
-
class: "icon-slot"
|
|
9
|
-
}, p = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "spinner"
|
|
12
|
-
}, f = { key: 2 }, m = {
|
|
13
|
-
key: 3,
|
|
14
|
-
ref: "iconSlotEl",
|
|
15
|
-
class: "icon-slot"
|
|
16
|
-
};
|
|
17
|
-
function b(e, u, _, h, y, k) {
|
|
18
|
-
return o(), t("button", {
|
|
19
|
-
ref: "buttonRef",
|
|
20
|
-
style: n({ width: e.size.width }),
|
|
21
|
-
class: i(e.variant),
|
|
22
|
-
disabled: e.disabled,
|
|
23
|
-
role: "button",
|
|
24
|
-
"aria-label": e.text,
|
|
25
|
-
"aria-disabled": e.disabled
|
|
26
|
-
}, [
|
|
27
|
-
e.iconLeft ? (o(), t("span", c, null, 512)) : s("", !0),
|
|
28
|
-
e.loading ? (o(), t("span", p)) : (o(), t("span", f, l(e.text), 1)),
|
|
29
|
-
e.icon ? (o(), t("span", m, null, 512)) : s("", !0)
|
|
30
|
-
], 14, d);
|
|
31
|
-
}
|
|
32
|
-
const E = /* @__PURE__ */ r(a, [["render", b], ["__scopeId", "data-v-55cfef3b"]]);
|
|
33
|
-
export {
|
|
34
|
-
E as default
|
|
35
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as o, onMounted as E, onUnmounted as G } from "vue";
|
|
2
|
-
const b = m({
|
|
3
|
-
name: "AtButton",
|
|
4
|
-
props: {
|
|
5
|
-
isToggle: {
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: !1,
|
|
8
|
-
validator: (e) => typeof e == "boolean"
|
|
9
|
-
},
|
|
10
|
-
text: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0,
|
|
13
|
-
default: "Clique aqui",
|
|
14
|
-
validator: (e) => typeof e == "string" && e.length > 0
|
|
15
|
-
},
|
|
16
|
-
variant: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "primary",
|
|
19
|
-
validator: (e) => ["primary", "secondary", "danger", "header"].includes(e)
|
|
20
|
-
},
|
|
21
|
-
loading: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1,
|
|
24
|
-
validator: (e) => typeof e == "boolean"
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1,
|
|
29
|
-
validator: (e) => typeof e == "boolean"
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
type: Object,
|
|
33
|
-
default: () => ({
|
|
34
|
-
width: "max-content"
|
|
35
|
-
}),
|
|
36
|
-
validator: (e) => typeof e.width == "string"
|
|
37
|
-
},
|
|
38
|
-
icon: {
|
|
39
|
-
type: [SVGSVGElement, String],
|
|
40
|
-
default: "",
|
|
41
|
-
required: !1,
|
|
42
|
-
validator: (e) => e instanceof SVGSVGElement || typeof e == "string"
|
|
43
|
-
},
|
|
44
|
-
iconLeft: {
|
|
45
|
-
type: [SVGSVGElement, String],
|
|
46
|
-
default: "",
|
|
47
|
-
required: !1,
|
|
48
|
-
validator: (e) => e instanceof SVGSVGElement || typeof e == "string"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
setup(e) {
|
|
52
|
-
const t = o(), r = o(), s = o(), l = o(!1);
|
|
53
|
-
E(() => {
|
|
54
|
-
var n, f, u, c;
|
|
55
|
-
a(e.icon, r), a(e.iconLeft, s), (f = t.value) == null || f.style.setProperty(
|
|
56
|
-
"--ATHOST-initial-width",
|
|
57
|
-
`${(n = t.value) == null ? void 0 : n.offsetWidth}px`
|
|
58
|
-
), (u = t.value) == null || u.addEventListener("click", d), e.isToggle && ((c = t.value) == null || c.setAttribute("aria-pressed", "false"));
|
|
59
|
-
function a(i, p) {
|
|
60
|
-
var g, v;
|
|
61
|
-
if (i)
|
|
62
|
-
if (i instanceof SVGSVGElement)
|
|
63
|
-
(g = p.value) == null || g.appendChild(i);
|
|
64
|
-
else {
|
|
65
|
-
const S = i, y = document.createElement("img");
|
|
66
|
-
y.src = S, (v = p.value) == null || v.appendChild(y);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}), G(() => {
|
|
70
|
-
var a;
|
|
71
|
-
(a = t.value) == null || a.removeEventListener("click", d);
|
|
72
|
-
});
|
|
73
|
-
const d = (a) => {
|
|
74
|
-
var n;
|
|
75
|
-
a.preventDefault(), l.value = !l.value, e.isToggle && ((n = t.value) == null || n.setAttribute("aria-pressed", String(l.value)));
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
buttonRef: t,
|
|
79
|
-
iconSlotEl: r,
|
|
80
|
-
leftIconSlotEl: s
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
b as default
|
|
86
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import d from "./CardWithInsights.vue2.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as n, createElementBlock as s, normalizeStyle as u, Fragment as p, renderList as h, createVNode as r, createElementVNode as i, toDisplayString as l, withCtx as _, createTextVNode as g } from "vue";
|
|
3
|
-
import "./CardWithInsights.vue3.js";
|
|
4
|
-
import "./CardWithInsights.vue4.js";
|
|
5
|
-
import m from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const f = { class: "insight-container" }, v = { class: "circle-question-container" }, $ = ["src", "onClick"], w = {
|
|
7
|
-
id: "insight-value",
|
|
8
|
-
class: "insight-value"
|
|
9
|
-
};
|
|
10
|
-
function y(t, C, k, I, A, V) {
|
|
11
|
-
const a = o("AtIllustration"), c = o("AtParagraph");
|
|
12
|
-
return n(), s("div", {
|
|
13
|
-
class: "card-with-insights-container",
|
|
14
|
-
style: u({
|
|
15
|
-
width: t.$props.fullWidth === !0 ? "100%" : "max-content",
|
|
16
|
-
justifyContent: t.$props.fullWidth === !0 ? "space-between" : "flex-start"
|
|
17
|
-
})
|
|
18
|
-
}, [
|
|
19
|
-
(n(!0), s(p, null, h(t.insightsList, (e) => (n(), s("div", {
|
|
20
|
-
key: e.index,
|
|
21
|
-
class: "card-with-insights-list"
|
|
22
|
-
}, [
|
|
23
|
-
r(a, {
|
|
24
|
-
illustration: e.image
|
|
25
|
-
}, null, 8, ["illustration"]),
|
|
26
|
-
i("div", f, [
|
|
27
|
-
i("div", v, [
|
|
28
|
-
i("img", {
|
|
29
|
-
alt: "circle-question",
|
|
30
|
-
src: t.$props.iconQuestion,
|
|
31
|
-
class: "circle-question-icon",
|
|
32
|
-
onClick: e.myFunction
|
|
33
|
-
}, null, 8, $)
|
|
34
|
-
]),
|
|
35
|
-
i("h3", w, l(t.renderInsightValue(e.value)), 1),
|
|
36
|
-
r(c, {
|
|
37
|
-
size: "p2",
|
|
38
|
-
weight: "light"
|
|
39
|
-
}, {
|
|
40
|
-
default: _(() => [
|
|
41
|
-
g(l(e.insightTitle), 1)
|
|
42
|
-
]),
|
|
43
|
-
_: 2
|
|
44
|
-
}, 1024)
|
|
45
|
-
])
|
|
46
|
-
]))), 128))
|
|
47
|
-
], 4);
|
|
48
|
-
}
|
|
49
|
-
const B = /* @__PURE__ */ m(d, [["render", y], ["__scopeId", "data-v-28800341"]]);
|
|
50
|
-
export {
|
|
51
|
-
B as default
|
|
52
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i } from "vue";
|
|
2
|
-
import { AtTipograph as s } from "../Tipograph/index.js";
|
|
3
|
-
import l from "../Illustration/Illustration.vue.js";
|
|
4
|
-
const h = i({
|
|
5
|
-
name: "AtCardWithInsights",
|
|
6
|
-
components: {
|
|
7
|
-
AtParagraph: s.Paragraph,
|
|
8
|
-
AtIllustration: l
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
insightsList: {
|
|
12
|
-
type: Array,
|
|
13
|
-
required: !0,
|
|
14
|
-
validator: (r) => Array.isArray(r) && r.every((e) => typeof e == "object")
|
|
15
|
-
},
|
|
16
|
-
iconQuestion: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: !1,
|
|
19
|
-
default: "",
|
|
20
|
-
validator: (r) => typeof r == "string"
|
|
21
|
-
},
|
|
22
|
-
fullWidth: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
required: !1,
|
|
25
|
-
default: !1,
|
|
26
|
-
validator: (r) => typeof r == "boolean"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup() {
|
|
30
|
-
const e = (t) => t % 1 !== 0, n = (t) => t.toFixed(2), a = (t) => t < 0 ? 0 : t, o = (t) => t > 1e9 ? 1e9 : t;
|
|
31
|
-
return { renderInsightValue: (t) => (t = o(t), e(t) ? n(t) : a(t)), handleFloatValue: n };
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
h as default
|
|
36
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import r from "./Checkbox.vue2.js";
|
|
2
|
-
import { openBlock as d, createElementBlock as t, Fragment as i, createElementVNode as o, mergeProps as a, createCommentVNode as s, normalizeStyle as c } from "vue";
|
|
3
|
-
import "./Checkbox.vue3.js";
|
|
4
|
-
import n from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const l = ["aria-checked", "disabled"], h = ["src"], u = ["checked", "disabled"];
|
|
6
|
-
function m(e, p, b, k, f, y) {
|
|
7
|
-
return d(), t(i, null, [
|
|
8
|
-
o("button", a({ ref: "buttonRef" }, e.$attrs, {
|
|
9
|
-
type: "button",
|
|
10
|
-
role: "checkbox",
|
|
11
|
-
"aria-checked": e.isCheckedValue,
|
|
12
|
-
disabled: e.disabled,
|
|
13
|
-
style: {
|
|
14
|
-
width: e.computedSize,
|
|
15
|
-
height: e.computedSize,
|
|
16
|
-
borderRadius: e.borderRadius
|
|
17
|
-
}
|
|
18
|
-
}), [
|
|
19
|
-
e.isCheckedValue ? (d(), t("img", {
|
|
20
|
-
key: 0,
|
|
21
|
-
src: e.checkmarck
|
|
22
|
-
}, null, 8, h)) : s("", !0)
|
|
23
|
-
], 16, l),
|
|
24
|
-
o("input", {
|
|
25
|
-
ref: "inputRef",
|
|
26
|
-
tabindex: "-1",
|
|
27
|
-
"aria-hidden": "true",
|
|
28
|
-
type: "checkbox",
|
|
29
|
-
checked: e.isCheckedValue,
|
|
30
|
-
disabled: e.disabled,
|
|
31
|
-
style: c({ width: e.size, height: e.size })
|
|
32
|
-
}, null, 12, u)
|
|
33
|
-
], 64);
|
|
34
|
-
}
|
|
35
|
-
const $ = /* @__PURE__ */ n(r, [["render", m], ["__scopeId", "data-v-8d89aa90"]]);
|
|
36
|
-
export {
|
|
37
|
-
$ as default
|
|
38
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as i, computed as n, onMounted as y, onBeforeUnmount as b } from "vue";
|
|
2
|
-
import V from "./img/checkmarck.svg.js";
|
|
3
|
-
const A = s({
|
|
4
|
-
name: "AtCheckbox",
|
|
5
|
-
props: {
|
|
6
|
-
disabled: {
|
|
7
|
-
required: !1,
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: !1,
|
|
10
|
-
validator: (e) => typeof e == "boolean"
|
|
11
|
-
},
|
|
12
|
-
modelValue: {
|
|
13
|
-
required: !1,
|
|
14
|
-
type: [Boolean, Array],
|
|
15
|
-
default: void 0,
|
|
16
|
-
validator: (e) => Array.isArray(e) || typeof e == "boolean"
|
|
17
|
-
},
|
|
18
|
-
val: {
|
|
19
|
-
required: !1,
|
|
20
|
-
type: String,
|
|
21
|
-
default: void 0
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
required: !1,
|
|
25
|
-
type: String,
|
|
26
|
-
default: "24",
|
|
27
|
-
validator: (e) => ["12", "16", "20", "24", "28"].includes(e)
|
|
28
|
-
},
|
|
29
|
-
labelledby: {
|
|
30
|
-
required: !1,
|
|
31
|
-
type: String,
|
|
32
|
-
default: "",
|
|
33
|
-
validator: (e) => typeof e == "string"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["click", "update:modelValue"],
|
|
37
|
-
setup(e, { emit: o }) {
|
|
38
|
-
const a = i(null), r = i(null), u = i(!1), f = n(() => `${e.size}px`), c = n(
|
|
39
|
-
() => ({
|
|
40
|
-
12: "3px",
|
|
41
|
-
16: "4px",
|
|
42
|
-
20: "6px",
|
|
43
|
-
24: "6px",
|
|
44
|
-
28: "8px"
|
|
45
|
-
})[e.size]
|
|
46
|
-
);
|
|
47
|
-
function m() {
|
|
48
|
-
return e.val !== void 0 && Array.isArray(e.modelValue) ? e.modelValue.includes(e.val) ? e.modelValue.filter((l) => l !== e.val) : [...e.modelValue, e.val] : !e.modelValue;
|
|
49
|
-
}
|
|
50
|
-
const d = (l) => {
|
|
51
|
-
let t;
|
|
52
|
-
e.modelValue === void 0 ? (t = !u.value, u.value = t) : t = m(), o("update:modelValue", t), o("click", { event: l, value: t });
|
|
53
|
-
}, v = n(() => e.modelValue === void 0 ? u.value : e.val === void 0 || typeof e.modelValue == "boolean" ? !!e.modelValue : e.modelValue.includes(e.val));
|
|
54
|
-
return y(() => {
|
|
55
|
-
var l;
|
|
56
|
-
a.value && e.labelledby && a.value.setAttribute("aria-labelledby", e.labelledby), (l = a.value) == null || l.addEventListener("click", d);
|
|
57
|
-
}), b(() => {
|
|
58
|
-
var l;
|
|
59
|
-
(l = a.value) == null || l.removeEventListener("click", d);
|
|
60
|
-
}), {
|
|
61
|
-
checkmarck: V,
|
|
62
|
-
buttonRef: a,
|
|
63
|
-
inputRef: r,
|
|
64
|
-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wNzY0IDAuMDIwNzgyNSA3LjIwNjM4QzAuMDIwNzgyNSA3LjMwNTEyIDAuMDQwMjggNy40MDI4OSAwLjA3ODE1NjIgNy40OTQwOEMwLjExNjAzMiA3LjU4NTI2IDAuMTcxNTQyIDcuNjY4MDggMC4yNDE0OTkgNy43Mzc3Nkw0LjI1MSAxMS43NDY1QzQuNjczOTYgMTIuMTY4NyA1LjI0NzE1IDEyLjQwNTggNS44NDQ3NSAxMi40MDU4QzYuNDQyMzUgMTIuNDA1OCA3LjAxNTU0IDEyLjE2ODcgNy40Mzg1IDExLjc0NjVMMTcuODAyIDEuMzg1MjZDMTcuODcxOCAxLjMxNTU5IDE3LjkyNzMgMS4yMzI4MiAxNy45NjUxIDEuMTQxNzFDMTguMDAyOSAxLjA1MDU5IDE4LjAyMjMgMC45NTI5MDcgMTguMDIyMyAwLjg1NDI1NkMxOC4wMjIzIDAuNzU1NjA1IDE4LjAwMjkgMC42NTc5MjMgMTcuOTY1MSAwLjU2NjgwNkMxNy45MjczIDAuNDc1Njg4IDE3Ljg3MTggMC4zOTI5MjUgMTcuODAyIDAuMzIzMjU2QzE3LjczMjMgMC4yNTMyOTkgMTcuNjQ5NSAwLjE5Nzc4OSAxNy41NTgzIDAuMTU5OTEzQzE3LjQ2NzEgMC4xMjIwMzcgMTcuMzY5NCAwLjEwMjUzOSAxNy4yNzA2IDAuMTAyNTM5QzE3LjE3MTkgMC4xMDI1MzkgMTcuMDc0MSAwLjEyMjAzNyAxNi45ODI5IDAuMTU5OTEzQzE2Ljg5MTcgMC4xOTc3ODkgMTYuODA4OSAwLjI1MzI5OSAxNi43MzkzIDAuMzIzMjU2WiINCiAgICAgICAgZmlsbD0id2hpdGUiIC8+DQo8L3N2Zz4=";
|
|
2
|
-
export {
|
|
3
|
-
M as default
|
|
4
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import n from "./Column.vue2.js";
|
|
2
|
-
import { openBlock as a, createElementBlock as l, createElementVNode as o, toDisplayString as r, createCommentVNode as s, renderSlot as d } from "vue";
|
|
3
|
-
import "./Column.vue3.js";
|
|
4
|
-
import m from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const c = ["data-align-columns", "data-filterable"], u = { class: "slot" }, f = ["data-orientation", "data-filterable"], p = ["src"];
|
|
6
|
-
function h(t, e, b, g, k, C) {
|
|
7
|
-
return a(), l("th", {
|
|
8
|
-
role: "columnheader",
|
|
9
|
-
class: "column",
|
|
10
|
-
"data-align-columns": t.alignColumns,
|
|
11
|
-
"data-filterable": t.withMaxMinFilter
|
|
12
|
-
}, [
|
|
13
|
-
o("div", u, [
|
|
14
|
-
o("span", null, r(t.label), 1),
|
|
15
|
-
t.withMaxMinFilter ? (a(), l("button", {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "filter-icon",
|
|
18
|
-
type: "button",
|
|
19
|
-
"data-orientation": t.orientation,
|
|
20
|
-
"data-filterable": t.withMaxMinFilter,
|
|
21
|
-
onClick: e[0] || (e[0] = (...i) => t.onClick && t.onClick(...i))
|
|
22
|
-
}, [
|
|
23
|
-
o("img", {
|
|
24
|
-
src: t.filterSvg,
|
|
25
|
-
alt: "Botão para filtrar valor"
|
|
26
|
-
}, null, 8, p)
|
|
27
|
-
], 8, f)) : s("", !0),
|
|
28
|
-
d(t.$slots, "default", {}, void 0, !0)
|
|
29
|
-
])
|
|
30
|
-
], 8, c);
|
|
31
|
-
}
|
|
32
|
-
const w = /* @__PURE__ */ m(n, [["render", h], ["__scopeId", "data-v-9233182d"]]);
|
|
33
|
-
export {
|
|
34
|
-
w as default
|
|
35
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, ref as u, inject as f, onMounted as y } from "vue";
|
|
2
|
-
import F from "./imgs/filter.svg.js";
|
|
3
|
-
const M = C({
|
|
4
|
-
name: "AtColumn",
|
|
5
|
-
props: {
|
|
6
|
-
field: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: !0
|
|
9
|
-
},
|
|
10
|
-
label: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
withMaxMinFilter: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: void 0
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(n) {
|
|
20
|
-
const o = u("bottom"), { updateColumn: c } = f("columns", {
|
|
21
|
-
updateColumn: () => {
|
|
22
|
-
}
|
|
23
|
-
}), d = u(
|
|
24
|
-
[]
|
|
25
|
-
), i = f("tableData", d), b = f("alignColumns", "left"), p = u(b), g = () => {
|
|
26
|
-
o.value = o.value === "top" ? "bottom" : "top", v();
|
|
27
|
-
};
|
|
28
|
-
/* istanbul ignore next -- @preserve */
|
|
29
|
-
const v = () => {
|
|
30
|
-
if (o.value === "bottom") {
|
|
31
|
-
const l = [...i.value].sort((r, a) => {
|
|
32
|
-
const t = r[n.field], e = a[n.field];
|
|
33
|
-
if (typeof t == "string" && typeof e == "string")
|
|
34
|
-
return t.localeCompare(e);
|
|
35
|
-
const s = Number(t), m = Number(e);
|
|
36
|
-
return s < m ? -1 : s > m ? 1 : 0;
|
|
37
|
-
});
|
|
38
|
-
i.value = l;
|
|
39
|
-
} else if (o.value === "top") {
|
|
40
|
-
const l = [...i.value].sort((r, a) => {
|
|
41
|
-
const t = r[n.field], e = a[n.field];
|
|
42
|
-
if (typeof t == "string" && typeof e == "string")
|
|
43
|
-
return e.localeCompare(t);
|
|
44
|
-
if (typeof t == "number" && typeof e == "number") {
|
|
45
|
-
if (t > e)
|
|
46
|
-
return -1;
|
|
47
|
-
if (t < e)
|
|
48
|
-
return 1;
|
|
49
|
-
}
|
|
50
|
-
return 0;
|
|
51
|
-
});
|
|
52
|
-
i.value = l;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return y(() => {
|
|
56
|
-
c(n.field);
|
|
57
|
-
}), {
|
|
58
|
-
alignColumns: p,
|
|
59
|
-
filterSvg: F,
|
|
60
|
-
orientation: o,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4yNTQzWiINCiAgICAgICAgICAgIGZpbGw9IndoaXRlIiAvPg0KICAgIDwvZz4NCiAgICA8ZGVmcz4NCiAgICAgICAgPGNsaXBQYXRoIGlkPSJjbGlwMF8yODM0XzEyMjIxIj4NCiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgZmlsbD0id2hpdGUiIC8+DQogICAgICAgIDwvY2xpcFBhdGg+DQogICAgPC9kZWZzPg0KPC9zdmc+";
|
|
2
|
-
export {
|
|
3
|
-
M as default
|
|
4
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import d from "./Counters.vue2.js";
|
|
2
|
-
import { openBlock as o, createElementBlock as s, toDisplayString as r, createCommentVNode as a, createElementVNode as c, Fragment as i, renderList as u } from "vue";
|
|
3
|
-
import "./Counters.vue3.js";
|
|
4
|
-
import p from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = { class: "at-counters_container" }, f = {
|
|
6
|
-
key: 1,
|
|
7
|
-
ref: "itemsRef",
|
|
8
|
-
class: "at-counters_items"
|
|
9
|
-
}, k = ["src"], _ = {
|
|
10
|
-
class: "at-counters_item-label",
|
|
11
|
-
style: { "margin-bottom": "10px" }
|
|
12
|
-
};
|
|
13
|
-
function g(e, n, y, C, h, v) {
|
|
14
|
-
return o(), s("div", m, [
|
|
15
|
-
e.list.length ? (o(), s("span", {
|
|
16
|
-
key: 0,
|
|
17
|
-
ref: "countersQuantityRef",
|
|
18
|
-
class: "at-counters_quantity",
|
|
19
|
-
onClick: n[0] || (n[0] = (...t) => e.toggleClick && e.toggleClick(...t))
|
|
20
|
-
}, " +" + r(e.list.length), 513)) : a("", !0),
|
|
21
|
-
e.isOpened ? (o(), s("div", f, [
|
|
22
|
-
c("img", {
|
|
23
|
-
src: e.closeIcon,
|
|
24
|
-
alt: "ícone para fechar o componente",
|
|
25
|
-
class: "at-counters_close",
|
|
26
|
-
onClick: n[1] || (n[1] = (...t) => e.handleClose && e.handleClose(...t))
|
|
27
|
-
}, null, 8, k),
|
|
28
|
-
(o(!0), s(i, null, u(e.computedItems, (t) => (o(), s("div", {
|
|
29
|
-
key: t.label,
|
|
30
|
-
class: "at-counters_item"
|
|
31
|
-
}, [
|
|
32
|
-
c("h3", _, r(t.label), 1),
|
|
33
|
-
(o(!0), s(i, null, u(t.value, (l) => (o(), s("span", {
|
|
34
|
-
key: l[t.key],
|
|
35
|
-
class: "at-counters_item-value"
|
|
36
|
-
}, r(l[t.key]), 1))), 128))
|
|
37
|
-
]))), 128))
|
|
38
|
-
], 512)) : a("", !0)
|
|
39
|
-
]);
|
|
40
|
-
}
|
|
41
|
-
const I = /* @__PURE__ */ p(d, [["render", g], ["__scopeId", "data-v-c10a49a3"]]);
|
|
42
|
-
export {
|
|
43
|
-
I as default
|
|
44
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as c, computed as y, watchEffect as w, onMounted as h, onBeforeUnmount as k } from "vue";
|
|
2
|
-
import C from "./imgs/close.svg.js";
|
|
3
|
-
const I = p({
|
|
4
|
-
name: "AtCounters",
|
|
5
|
-
props: {
|
|
6
|
-
columns: {
|
|
7
|
-
type: Array,
|
|
8
|
-
required: !0
|
|
9
|
-
},
|
|
10
|
-
list: {
|
|
11
|
-
type: Array,
|
|
12
|
-
required: !0
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(r) {
|
|
16
|
-
const n = c(null), d = c(null), f = y(() => {
|
|
17
|
-
var t;
|
|
18
|
-
return (t = r.columns) == null ? void 0 : t.map((e) => {
|
|
19
|
-
var s;
|
|
20
|
-
return {
|
|
21
|
-
label: e.label,
|
|
22
|
-
key: e.key,
|
|
23
|
-
value: (s = r.list) == null ? void 0 : s.filter((i) => i[e.key])
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
/* istanbul ignore next -- @preserve */
|
|
28
|
-
const u = () => {
|
|
29
|
-
if (!n.value)
|
|
30
|
-
return;
|
|
31
|
-
const t = n.value.getBoundingClientRect();
|
|
32
|
-
t.right > window.innerWidth && (n.value.style.right = "2rem"), t.bottom > window.innerHeight && (n.value.style.bottom = "2rem"), t.left < 0 && (n.value.style.left = "2rem"), t.top < 0 && (n.value.style.top = "2rem");
|
|
33
|
-
}, o = c(!1), m = () => {
|
|
34
|
-
document.dispatchEvent(
|
|
35
|
-
new CustomEvent("at-counters:opened", {
|
|
36
|
-
detail: {
|
|
37
|
-
isOpened: !1
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
), o.value = !o.value;
|
|
41
|
-
}, v = () => {
|
|
42
|
-
o.value = !1;
|
|
43
|
-
}, a = (t) => {
|
|
44
|
-
var s, i;
|
|
45
|
-
const e = t.target;
|
|
46
|
-
!((s = e == null ? void 0 : e.closest) != null && s.call(e, ".at-counters_container")) && !((i = e == null ? void 0 : e.closest) != null && i.call(e, ".at-counters_items")) && (o.value = !1);
|
|
47
|
-
}, l = (t) => {
|
|
48
|
-
o.value = t.detail.isOpened;
|
|
49
|
-
};
|
|
50
|
-
return w(() => {
|
|
51
|
-
o.value && u();
|
|
52
|
-
}), h(() => {
|
|
53
|
-
window.addEventListener("at-counters:opened", l), document.addEventListener("click", a);
|
|
54
|
-
}), k(() => {
|
|
55
|
-
window.removeEventListener("at-counters:opened", l), document.removeEventListener("click", a);
|
|
56
|
-
}), {
|
|
57
|
-
isOpened: o,
|
|
58
|
-
toggleClick: m,
|
|
59
|
-
handleClose: v,
|
|
60
|
-
countersQuantityRef: d,
|
|
61
|
-
computedItems: f,
|
|
62
|
-
itemsRef: n,
|
|
63
|
-
closeIcon: C,
|
|
64
|
-
checkIfContainerIsWithinViewport: u,
|
|
65
|
-
onDispatchEvent: l
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
I as default
|
|
71
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const M = "data:image/svg+xml;base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