@agrotools1/at-components 0.6.69 → 0.6.71
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/README.md +7 -7
- package/dist/Accordion/Accordion.vue.js +5 -5
- package/dist/Avatar/Avatar.vue.js +1 -1
- package/dist/Avatar/Avatar.vue3.js +2 -2
- package/dist/Button/Button.vue.js +1 -1
- package/dist/Button/Button.vue3.js +2 -2
- package/dist/CardWithInsights/CardWithInsights.vue.js +8 -8
- package/dist/CardWithInsights/CardWithInsights.vue4.js +2 -2
- package/dist/Checkbox/Checkbox.vue.js +1 -1
- package/dist/Checkbox/img/checkmarck.svg.js +1 -1
- package/dist/ColorPicker/ColorPicker.Saturation.vue.js +10 -10
- package/dist/ColorPicker/ColorPicker.Saturation.vue3.js +2 -2
- package/dist/ColorPicker/ColorPicker.vue.js +4 -4
- package/dist/DataTable/Column/Column.vue.js +6 -6
- package/dist/DataTable/Column/Column.vue3.js +2 -2
- package/dist/DataTable/Column/imgs/filter.svg.js +1 -1
- package/dist/DataTable/Counters/Counters.vue.js +1 -1
- package/dist/DataTable/Counters/imgs/close.svg.js +1 -1
- package/dist/DataTable/DataTable.vue.js +2 -2
- package/dist/DatePicker/DatePicker.scss.js +2 -2
- package/dist/DatePicker/DatePicker.vue.js +4 -4
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue.js +3 -3
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +7 -7
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +7 -7
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.js +4 -4
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.js +20 -20
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue3.js +2 -2
- package/dist/Dropdown/Dropdown.core.vue.js +1 -1
- package/dist/Dropdown/Dropdown.core.vue3.js +2 -2
- package/dist/Faq/Faq.vue.js +5 -5
- package/dist/Faq/FaqItem/FaqItem.vue.js +1 -1
- package/dist/Filter/components/Filter.vue.js +14 -14
- package/dist/Illustration/Illustration.vue.js +5 -5
- package/dist/Illustration/images/renovabio-illustrations/biomass.svg.js +1 -1
- package/dist/Illustration/images/renovabio-illustrations/volume.svg.js +1 -1
- package/dist/Illustration/images/system-images/add-file.svg.js +1 -1
- package/dist/Illustration/images/system-images/cloud-connection.svg.js +1 -1
- package/dist/Illustration/images/system-images/cloud-download.svg.js +1 -1
- package/dist/Illustration/images/system-images/cloud-upload.svg.js +1 -1
- package/dist/Illustration/images/system-images/corrupted-file.svg.js +1 -1
- package/dist/Illustration/images/system-images/empty-box.svg.js +1 -1
- package/dist/Illustration/images/system-images/empty-folder-2.svg.js +1 -1
- package/dist/Illustration/images/system-images/empty-folder.svg.js +1 -1
- package/dist/Illustration/images/system-images/empty.svg.js +1 -1
- package/dist/Illustration/images/system-images/error-illustration.svg.js +1 -1
- package/dist/Illustration/images/system-images/file-backup-2.svg.js +1 -1
- package/dist/Illustration/images/system-images/file-backup.svg.js +1 -1
- package/dist/Illustration/images/system-images/filtering-upload.svg.js +1 -1
- package/dist/Illustration/images/system-images/flight.svg.js +1 -1
- package/dist/Illustration/images/system-images/fly.svg.js +1 -1
- package/dist/Illustration/images/system-images/movies.svg.js +1 -1
- package/dist/Illustration/images/system-images/multimedia.svg.js +1 -1
- package/dist/Illustration/images/system-images/notification-bell.svg.js +1 -1
- package/dist/Illustration/images/system-images/page-2.svg.js +1 -1
- package/dist/Illustration/images/system-images/page.svg.js +1 -1
- package/dist/Illustration/images/system-images/photos.svg.js +1 -1
- package/dist/Illustration/images/system-images/recycle-bin.svg.js +1 -1
- package/dist/Illustration/images/system-images/rocket-launch.svg.js +1 -1
- package/dist/Illustration/images/system-images/signal.svg.js +1 -1
- package/dist/Illustration/images/system-images/wrong.svg.js +1 -1
- package/dist/Illustration/images/tools-images/advanced-analysis.svg.js +1 -1
- package/dist/Illustration/images/tools-images/agriculture.svg.js +1 -1
- package/dist/Illustration/images/tools-images/alert-center.svg.js +1 -1
- package/dist/Illustration/images/tools-images/area.svg.js +1 -1
- package/dist/Illustration/images/tools-images/at-insights.svg.js +1 -1
- package/dist/Illustration/images/tools-images/conservation-unit.svg.js +1 -1
- package/dist/Illustration/images/tools-images/credit.svg.js +2 -2
- package/dist/Illustration/images/tools-images/deforestation.svg.js +1 -1
- package/dist/Illustration/images/tools-images/distance-proximity-rivers.svg.js +1 -1
- package/dist/Illustration/images/tools-images/estimated-productivity-penalty.svg.js +1 -1
- package/dist/Illustration/images/tools-images/extract.svg.js +1 -1
- package/dist/Illustration/images/tools-images/farm.svg.js +1 -1
- package/dist/Illustration/images/tools-images/geographical-consultation-municipalities.svg.js +1 -1
- package/dist/Illustration/images/tools-images/gix.svg.js +1 -1
- package/dist/Illustration/images/tools-images/insurance.svg.js +1 -1
- package/dist/Illustration/images/tools-images/land-appreciation.svg.js +1 -1
- package/dist/Illustration/images/tools-images/lockdown.svg.js +1 -1
- package/dist/Illustration/images/tools-images/map.svg.js +1 -1
- package/dist/Illustration/images/tools-images/pasture.svg.js +1 -1
- package/dist/Illustration/images/tools-images/rating-2.svg.js +1 -1
- package/dist/Illustration/images/tools-images/rating.svg.js +1 -1
- package/dist/Illustration/images/tools-images/recurrence.svg.js +1 -1
- package/dist/Illustration/images/tools-images/refrigerators.svg.js +1 -1
- package/dist/Illustration/images/tools-images/settings.svg.js +1 -1
- package/dist/Illustration/images/tools-images/socio-environmental-analysis.svg.js +1 -1
- package/dist/Illustration/images/tools-images/soil-use.svg.js +1 -1
- package/dist/Illustration/images/tools-images/storm.svg.js +1 -1
- package/dist/Illustration/images/tools-images/territory-details.svg.js +1 -1
- package/dist/Illustration/images/tools-images/timeline.svg.js +1 -1
- package/dist/Input/Input.core.d.ts +10 -0
- package/dist/Input/Input.core.vue.js +46 -35
- package/dist/Input/Input.core.vue2.js +63 -56
- package/dist/Input/imgs/error.svg.js +2 -2
- package/dist/Input/index.d.ts +10 -0
- package/dist/Legend/Legend.vue.js +4 -4
- package/dist/List/components/List.vue.js +1 -1
- package/dist/List/components/List.vue3.js +2 -2
- package/dist/Menu/Menu.vue.js +4 -4
- package/dist/Menu/assets/agrotools.svg.js +1 -1
- package/dist/Menu/assets/at.svg.js +1 -1
- package/dist/Modal/Modal.vue.js +16 -16
- package/dist/Modal/Modal.vue3.js +2 -2
- package/dist/Modal/images/cross.svg.js +1 -1
- package/dist/Notifications/Notification/Notification.vue.js +4 -4
- package/dist/Notifications/Notifications.vue.js +6 -6
- package/dist/Notifications/Notifications.vue3.js +2 -2
- package/dist/Paginator/Paginator.vue.js +4 -4
- package/dist/Paginator/Paginator.vue3.js +2 -2
- package/dist/Paginator/imgs/double-left-arrow.svg.js +1 -1
- package/dist/Paginator/imgs/double-right-arrow.svg.js +1 -1
- package/dist/Paginator/imgs/left-arrow.svg.js +1 -1
- package/dist/Paginator/imgs/right-arrow.svg.js +1 -1
- package/dist/ProgressBar/ProgressBar.vue.js +1 -1
- package/dist/RadioButton/RadioButton.vue.js +1 -1
- package/dist/RadioButton/RadioButton.vue3.js +2 -2
- package/dist/Search/Search.d.ts +1 -1
- package/dist/Search/Search.vue.js +1 -1
- package/dist/Search/Search.vue2.js +46 -44
- package/dist/Select/Item/Item.vue.js +16 -16
- package/dist/Select/Multiple/Select.multiple.vue.js +13 -13
- package/dist/Select/Select.core.d.ts +46 -2
- package/dist/Select/Select.core.vue.js +17 -11
- package/dist/Select/Select.core.vue2.js +49 -18
- package/dist/Select/Single/Select.single.d.ts +43 -1
- package/dist/Select/Single/Select.single.vue.js +33 -17
- package/dist/Select/Single/Select.single.vue2.js +86 -39
- package/dist/Select/imgs/indicator.svg.js +1 -1
- package/dist/Select/index.d.ts +43 -1
- package/dist/Stepper/Stepper.vue.js +1 -1
- package/dist/TableConfig/TableConfig.vue.js +8 -8
- package/dist/Tabs/Tab/Tab.vue.js +1 -1
- package/dist/Tabs/Tab/Tab.vue3.js +2 -2
- package/dist/Tabs/Tabs.vue.js +7 -7
- package/dist/Tabs/Tabs.vue3.js +2 -2
- package/dist/Tag/Tag.vue.js +2 -2
- package/dist/Tipograph/Paragraph/Paragraph.vue.js +2 -2
- package/dist/Tipograph/Paragraph/Paragraph.vue3.js +2 -2
- package/dist/Tipograph/Title/Title.vue.js +2 -2
- package/dist/Toggle/Toggle.vue.js +4 -4
- package/dist/Tooltip/Tooltip.vue.js +3 -3
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +4 -4
- package/dist/Upload/SingleUpload/SingleUpload.vue.js +1 -1
- package/dist/Upload/Upload.vue.js +1 -1
- package/dist/Upload/UploaderHeader/UploaderHeader.vue.js +4 -4
- package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +1 -1
- package/dist/Upload/UploaderInput/UploaderInput.vue.js +2 -2
- package/dist/agrotools-theme.css +1 -1
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import I from "./Input.core.vue2.js";
|
|
2
|
+
import { resolveComponent as k, openBlock as n, createElementBlock as l, createElementVNode as i, createTextVNode as a, toDisplayString as t, createCommentVNode as r, Fragment as C, renderList as v, mergeProps as T, normalizeClass as m, createBlock as d, resolveDynamicComponent as y } from "vue";
|
|
3
3
|
import "./Input.core.vue3.js";
|
|
4
4
|
import f from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const $ = ["data-mode", "disabled"],
|
|
5
|
+
const $ = ["data-mode", "disabled"], A = ["for"], N = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "AT-INPUT_required"
|
|
8
|
-
},
|
|
8
|
+
}, b = ["title"], F = { class: "AT-INPUT_item_slot" }, O = ["onClick"], P = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "AT-INPUT_items_length"
|
|
11
|
-
}, g = ["id", "disabled", "readonly", "type", "placeholder", "name", "value"],
|
|
11
|
+
}, g = ["id", "disabled", "readonly", "type", "placeholder", "name", "value"], h = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "AT-INPUT_error-message"
|
|
14
|
-
},
|
|
15
|
-
function
|
|
16
|
-
const
|
|
14
|
+
}, U = ["src"];
|
|
15
|
+
function B(e, s, M, S, z, E) {
|
|
16
|
+
const u = k("AtCircleXMarkSolidIcon");
|
|
17
17
|
return n(), l("div", null, [
|
|
18
|
-
|
|
18
|
+
i("div", {
|
|
19
19
|
ref: "wrapperEl",
|
|
20
20
|
"data-mode": e.currentMode,
|
|
21
21
|
disabled: e.$props.disabled || void 0,
|
|
22
22
|
class: "AT-INPUT_core",
|
|
23
|
-
onMouseover: s[
|
|
24
|
-
onMouseleave: s[
|
|
23
|
+
onMouseover: s[9] || (s[9] = (...o) => e.handleMouseOver && e.handleMouseOver(...o)),
|
|
24
|
+
onMouseleave: s[10] || (s[10] = (...o) => e.handleMouseLeave && e.handleMouseLeave(...o))
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
i("label", {
|
|
27
27
|
for: e.id,
|
|
28
28
|
onClick: s[0] || (s[0] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
e.$props.required ? (n(), l("span",
|
|
32
|
-
], 8,
|
|
30
|
+
a(t(e.label) + " ", 1),
|
|
31
|
+
e.$props.required ? (n(), l("span", N, "*")) : r("", !0)
|
|
32
|
+
], 8, A),
|
|
33
33
|
e.separator ? (n(), l("div", {
|
|
34
34
|
key: 0,
|
|
35
35
|
ref: "containerItemsEl",
|
|
36
36
|
class: "AT-INPUT_items",
|
|
37
37
|
onClick: s[1] || (s[1] = (...o) => e.handleOnFocus && e.handleOnFocus(...o))
|
|
38
38
|
}, [
|
|
39
|
-
(n(!0), l(
|
|
39
|
+
(n(!0), l(C, null, v(e.selectedItemsController.itemsToRender, (o) => (n(), l("span", {
|
|
40
40
|
key: o.value,
|
|
41
41
|
ref_for: !0,
|
|
42
42
|
ref: "selectedItemsEl",
|
|
43
43
|
title: o.text,
|
|
44
44
|
class: "AT-INPUT_item"
|
|
45
45
|
}, [
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
i("span", F, t(o.text), 1),
|
|
47
|
+
i("span", {
|
|
48
48
|
class: "AT-INPUT_item_slot_x",
|
|
49
49
|
style: { padding: "1px 5px" },
|
|
50
50
|
onClick: () => {
|
|
51
|
-
var
|
|
52
|
-
(
|
|
51
|
+
var p;
|
|
52
|
+
(p = e.onSelectedItemClick) == null || p.call(e, o == null ? void 0 : o.value);
|
|
53
53
|
}
|
|
54
54
|
}, "x", 8, O)
|
|
55
|
-
], 8,
|
|
56
|
-
e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span",
|
|
57
|
-
], 512)) : (n(), l("input",
|
|
55
|
+
], 8, b))), 128)),
|
|
56
|
+
e.selectedItems.length > e.selectedItemsController.supportedItems ? (n(), l("span", P, "+ " + t(e.selectedItems.length - e.selectedItemsController.supportedItems), 1)) : r("", !0)
|
|
57
|
+
], 512)) : (n(), l("input", T({ key: 1 }, e.$attrs, {
|
|
58
58
|
id: e.id,
|
|
59
59
|
ref: "inputEl",
|
|
60
60
|
style: { cursor: e.cursor },
|
|
@@ -70,30 +70,41 @@ function U(e, s, B, E, z, S) {
|
|
|
70
70
|
}), null, 16, g)),
|
|
71
71
|
e.$props.icon ? (n(), l("div", {
|
|
72
72
|
key: 2,
|
|
73
|
-
class:
|
|
74
|
-
onClick: s[6] || (s[6] = (o) => e.
|
|
73
|
+
class: m(["AT_INPUT_side_icon_slot", { clickable: e.useSideClearButton }]),
|
|
74
|
+
onClick: s[6] || (s[6] = (o) => e.showSideClearButton ? e.clearInput() : null)
|
|
75
75
|
}, [
|
|
76
|
-
e.
|
|
76
|
+
e.showSideClearButton ? (n(), d(u, {
|
|
77
77
|
key: 0,
|
|
78
78
|
size: "20",
|
|
79
79
|
onClick: s[5] || (s[5] = (o) => e.clearInput())
|
|
80
|
-
})) : (
|
|
80
|
+
})) : r("", !0)
|
|
81
|
+
], 2)) : r("", !0),
|
|
82
|
+
e.$props.icon ? (n(), l("div", {
|
|
83
|
+
key: 3,
|
|
84
|
+
class: m(["AT_INPUT_icon_slot", { clickable: e.useClearButton && e.isFocused }]),
|
|
85
|
+
onClick: s[8] || (s[8] = (o) => e.showClearButton ? e.clearInput() : null)
|
|
86
|
+
}, [
|
|
87
|
+
e.showClearButton ? (n(), d(u, {
|
|
88
|
+
key: 0,
|
|
89
|
+
size: "20",
|
|
90
|
+
onClick: s[7] || (s[7] = (o) => e.clearInput())
|
|
91
|
+
})) : (n(), d(y(e.icons[e.$props.icon.name]), {
|
|
81
92
|
key: 1,
|
|
82
93
|
size: e.$props.icon.size || "20",
|
|
83
94
|
color: e.iconColor
|
|
84
95
|
}, null, 8, ["size", "color"]))
|
|
85
|
-
], 2)) :
|
|
96
|
+
], 2)) : r("", !0)
|
|
86
97
|
], 40, $),
|
|
87
|
-
e.error.value ? (n(), l("span",
|
|
88
|
-
|
|
98
|
+
e.error.value ? (n(), l("span", h, [
|
|
99
|
+
i("img", {
|
|
89
100
|
src: e.icons.error,
|
|
90
101
|
alt: "error icon"
|
|
91
|
-
}, null, 8,
|
|
92
|
-
|
|
93
|
-
])) :
|
|
102
|
+
}, null, 8, U),
|
|
103
|
+
a(" " + t(e.error.message), 1)
|
|
104
|
+
])) : r("", !0)
|
|
94
105
|
]);
|
|
95
106
|
}
|
|
96
|
-
const
|
|
107
|
+
const X = /* @__PURE__ */ f(I, [["render", B], ["__scopeId", "data-v-7185ef0b"]]);
|
|
97
108
|
export {
|
|
98
|
-
|
|
109
|
+
X as default
|
|
99
110
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AtCircleXMarkSolidIcon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as u, computed as s, onMounted as N, onBeforeUnmount as U, watchEffect as D, watch as T, nextTick as P } from "vue";
|
|
2
|
+
import { AtCircleXMarkSolidIcon as X } from "../node_modules/.pnpm/@agrotools1_at-icons@0.2.11/node_modules/@agrotools1/at-icons/dist/AtCircleXMarkSolidIcon/index.js";
|
|
3
|
+
import H from "../Icons/icons.js";
|
|
4
|
+
import G from "./imgs/error.svg.js";
|
|
5
|
+
const Z = z({
|
|
6
6
|
name: "AtCoreInput",
|
|
7
7
|
components: {
|
|
8
|
-
AtCircleXMarkSolidIcon:
|
|
8
|
+
AtCircleXMarkSolidIcon: X
|
|
9
9
|
},
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: {
|
|
@@ -85,6 +85,10 @@ const Y = j({
|
|
|
85
85
|
type: Boolean,
|
|
86
86
|
default: !1
|
|
87
87
|
},
|
|
88
|
+
useSideClearButton: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
88
92
|
forceEventClearButton: {
|
|
89
93
|
type: Boolean,
|
|
90
94
|
default: !1
|
|
@@ -97,34 +101,36 @@ const Y = j({
|
|
|
97
101
|
"clearInput",
|
|
98
102
|
"mouseover"
|
|
99
103
|
],
|
|
100
|
-
setup(e, { emit:
|
|
101
|
-
const A = { ...
|
|
102
|
-
() => e.useClearButton && a.value && e.modelValue && !
|
|
104
|
+
setup(e, { emit: c }) {
|
|
105
|
+
const A = { ...H }, B = u(null), V = u(null), f = u(null), b = u(null), O = s(() => e.error), a = u(!1), i = u(""), d = u(!1), E = s(
|
|
106
|
+
() => e.useClearButton && a.value && e.modelValue && !d.value
|
|
107
|
+
), q = s(
|
|
108
|
+
() => e.useSideClearButton && !e.useClearButton && e.modelValue && !d.value
|
|
103
109
|
), y = u({
|
|
104
110
|
supportedItems: e.selectedItems.length,
|
|
105
111
|
isCounterActive: !1,
|
|
106
112
|
itemsToRender: e.selectedItems
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
113
|
+
}), F = Math.random().toString(36).substring(2), o = u(!1), M = () => {
|
|
114
|
+
o.value = !0;
|
|
115
|
+
}, L = () => {
|
|
116
|
+
o.value = !1;
|
|
111
117
|
}, g = () => {
|
|
112
118
|
a.value = !0;
|
|
113
119
|
}, v = () => {
|
|
114
|
-
e.forceFocus || (e.forceEventClearButton ? a.value = !0 :
|
|
120
|
+
e.forceFocus || (e.forceEventClearButton ? a.value = !0 : k(() => {
|
|
115
121
|
a.value = !1;
|
|
116
122
|
}, 100)());
|
|
117
123
|
}, m = async () => {
|
|
118
|
-
var
|
|
119
|
-
y.value.itemsToRender = e.selectedItems, await
|
|
120
|
-
const t = (
|
|
124
|
+
var w;
|
|
125
|
+
y.value.itemsToRender = e.selectedItems, await P();
|
|
126
|
+
const t = (w = f.value) == null ? void 0 : w.clientWidth;
|
|
121
127
|
if (t === void 0)
|
|
122
128
|
return;
|
|
123
129
|
let l = 50, n = 0;
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
for (let I = 0; I <
|
|
127
|
-
l +=
|
|
130
|
+
const r = b.value;
|
|
131
|
+
if (r)
|
|
132
|
+
for (let I = 0; I < r.length; I++)
|
|
133
|
+
l += r[I].clientWidth + 10, l <= t && (n = I + 1);
|
|
128
134
|
let C;
|
|
129
135
|
l >= t ? C = {
|
|
130
136
|
isCounterActive: l > (t || 0),
|
|
@@ -135,37 +141,37 @@ const Y = j({
|
|
|
135
141
|
supportedItems: e.selectedItems.length,
|
|
136
142
|
itemsToRender: e.selectedItems
|
|
137
143
|
}, y.value = C;
|
|
138
|
-
},
|
|
144
|
+
}, S = (t) => {
|
|
139
145
|
var l, n;
|
|
140
|
-
!((l =
|
|
146
|
+
!((l = B.value) != null && l.contains(t.target)) && !((n = V.value) != null && n.contains(t.target)) && !E.value && !d.value && (v(), a.value = !1, c("clickOutside"));
|
|
141
147
|
};
|
|
142
|
-
|
|
148
|
+
N(() => {
|
|
143
149
|
var t;
|
|
144
|
-
(e.modelValue !== void 0 && ((t = e.modelValue) != null && t.length) || e.forceFocus) && g(), document.addEventListener("click",
|
|
145
|
-
}),
|
|
146
|
-
document.removeEventListener("click",
|
|
150
|
+
(e.modelValue !== void 0 && ((t = e.modelValue) != null && t.length) || e.forceFocus) && g(), document.addEventListener("click", S), window.addEventListener("resize", m);
|
|
151
|
+
}), U(() => {
|
|
152
|
+
document.removeEventListener("click", S), window.removeEventListener("resize", m);
|
|
147
153
|
});
|
|
148
|
-
const
|
|
154
|
+
const _ = (t) => {
|
|
149
155
|
e.preventInputEvent && t.preventDefault();
|
|
150
156
|
const l = t.target.value;
|
|
151
|
-
|
|
157
|
+
c("input", t), e.debounce > 0 ? k(() => h(l), e.debounce)() : h(l);
|
|
152
158
|
}, h = (t) => {
|
|
153
|
-
|
|
159
|
+
c("update:modelValue", t), e.modelValue === void 0 && (i.value = t);
|
|
154
160
|
};
|
|
155
|
-
function
|
|
161
|
+
function k(t, l) {
|
|
156
162
|
let n;
|
|
157
163
|
return function() {
|
|
158
164
|
clearTimeout(n), n = setTimeout(t, l);
|
|
159
165
|
};
|
|
160
166
|
}
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
e.forceEventClearButton || h(""),
|
|
167
|
+
const x = () => {
|
|
168
|
+
d.value = !0, a.value = !1, c("clearInput"), setTimeout(() => {
|
|
169
|
+
e.forceEventClearButton || h(""), d.value = !1;
|
|
164
170
|
}, 100);
|
|
165
171
|
};
|
|
166
|
-
|
|
172
|
+
D(() => {
|
|
167
173
|
var t, l;
|
|
168
|
-
e.separator && ((e.modelValue !== void 0 ? e.modelValue.split(e.separator).filter((
|
|
174
|
+
e.separator && ((e.modelValue !== void 0 ? e.modelValue.split(e.separator).filter((r) => r.length > 1) : i.value.split(e.separator).filter((r) => r.length > 1)).length ? (t = f.value) == null || t.classList.remove("AT-INPUT_items_empty") : ((l = f.value) == null || l.classList.add("AT-INPUT_items_empty"), v(), a.value = !1)), e.forceFocus ? g() : (v(), a.value = !1);
|
|
169
175
|
}), T(
|
|
170
176
|
() => e.selectedItems,
|
|
171
177
|
async () => {
|
|
@@ -173,44 +179,45 @@ const Y = j({
|
|
|
173
179
|
},
|
|
174
180
|
{ deep: !0 }
|
|
175
181
|
), T(
|
|
176
|
-
() =>
|
|
182
|
+
() => o.value,
|
|
177
183
|
() => {
|
|
178
|
-
|
|
184
|
+
c("mouseover", o.value);
|
|
179
185
|
}
|
|
180
186
|
);
|
|
181
|
-
const
|
|
187
|
+
const R = s(() => {
|
|
182
188
|
var t;
|
|
183
|
-
return e.disabled ? "var(--at-medium-grey)" : e.selectedItems.length > 0 ? "var(--at-black)" : a.value ? "var(--at-primary-color-2)" : e.error.value ? "var(--at-error)" :
|
|
184
|
-
}),
|
|
189
|
+
return e.disabled ? "var(--at-medium-grey)" : e.selectedItems.length > 0 ? "var(--at-black)" : a.value ? "var(--at-primary-color-2)" : e.error.value ? "var(--at-error)" : o.value || (t = e.icon) != null && t.color || e.modelValue !== void 0 && e.modelValue.length > 0 || i.value.length > 0 ? "var(--at-black)" : "var(--at-dark-grey)";
|
|
190
|
+
}), W = s(() => e.disabled ? "disabled" : e.selectedItems.length > 0 ? "filled" : a.value ? "focused" : e.error.value ? "error" : o.value ? "hover" : e.modelValue !== void 0 && e.modelValue.length > 0 || i.value.length > 0 ? "filled" : "default"), j = s(() => e.modelValue !== void 0 ? e.modelValue : i.value ? i.value : null);
|
|
185
191
|
return {
|
|
186
|
-
wrapperEl:
|
|
192
|
+
wrapperEl: B,
|
|
187
193
|
inputEl: V,
|
|
188
194
|
inputError: O,
|
|
189
|
-
inputId: e.id ??
|
|
195
|
+
inputId: e.id ?? F,
|
|
190
196
|
handleOnFocus: g,
|
|
191
197
|
handleOnFocusOut: v,
|
|
192
198
|
icons: {
|
|
193
|
-
error:
|
|
199
|
+
error: G,
|
|
194
200
|
...A
|
|
195
201
|
},
|
|
196
|
-
clickedClear:
|
|
197
|
-
showClearButton:
|
|
198
|
-
|
|
202
|
+
clickedClear: d,
|
|
203
|
+
showClearButton: E,
|
|
204
|
+
showSideClearButton: q,
|
|
205
|
+
clearInput: x,
|
|
199
206
|
containerItemsEl: f,
|
|
200
|
-
onInput:
|
|
201
|
-
iconColor:
|
|
207
|
+
onInput: _,
|
|
208
|
+
iconColor: R,
|
|
202
209
|
isFocused: a,
|
|
203
|
-
handleMouseOver:
|
|
204
|
-
handleMouseLeave:
|
|
205
|
-
isHovered:
|
|
206
|
-
inputComputedValue:
|
|
207
|
-
currentMode:
|
|
208
|
-
selectedItemsEl:
|
|
210
|
+
handleMouseOver: M,
|
|
211
|
+
handleMouseLeave: L,
|
|
212
|
+
isHovered: o,
|
|
213
|
+
inputComputedValue: j,
|
|
214
|
+
currentMode: W,
|
|
215
|
+
selectedItemsEl: b,
|
|
209
216
|
selectedItemsController: y,
|
|
210
217
|
resizeSelectedItems: m
|
|
211
218
|
};
|
|
212
219
|
}
|
|
213
220
|
});
|
|
214
221
|
export {
|
|
215
|
-
|
|
222
|
+
Z as default
|
|
216
223
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const M = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxMCAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aA0KICAgICAgICBkPSJNNi41NDQ1OCA0LjU0NDU4TDUuNTg5MTcgNS41TDYuNTQ0NTggNi40NTU0MkM2LjcwNzUgNi42MTgzMyA2LjcwNzUgNi44ODE2NyA2LjU0NDU4IDcuMDQ0NThDNi40NjMzMyA3LjEyNTgzIDYuMzU2NjcgNy4xNjY2NyA2LjI1IDcuMTY2NjdDNi4xNDMzMyA3LjE2NjY3IDYuMDM2NjcgNy4xMjU4MyA1Ljk1NTQyIDcuMDQ0NThMNSA2LjA4OTE3TDQuMDQ0NTggNy4wNDQ1OEMzLjk2MzMzIDcuMTI1ODMgMy44NTY2NyA3LjE2NjY3IDMuNzUgNy4xNjY2N0MzLjY0MzMzIDcuMTY2NjcgMy41MzY2NyA3LjEyNTgzIDMuNDU1NDIgNy4wNDQ1OEMzLjI5MjUgNi44ODE2NyAzLjI5MjUgNi42MTgzMyAzLjQ1NTQyIDYuNDU1NDJMNC40MTA4MyA1LjVMMy40NTU0MiA0LjU0NDU4QzMuMjkyNSA0LjM4MTY3IDMuMjkyNSA0LjExODMzIDMuNDU1NDIgMy45NTU0MkMzLjYxODMzIDMuNzkyNSAzLjg4MTY3IDMuNzkyNSA0LjA0NDU4IDMuOTU1NDJMNSA0LjkxMDgzTDUuOTU1NDIgMy45NTU0MkM2LjExODMzIDMuNzkyNSA2LjM4MTY3IDMuNzkyNSA2LjU0NDU4IDMuOTU1NDJDNi43MDc1IDQuMTE4MzMgNi43MDc1IDQuMzgxNjcgNi41NDQ1OCA0LjU0NDU4Wk0xMCA1LjVDMTAgOC4yNTcwOCA3Ljc1NzA4IDEwLjUgNSAxMC41QzIuMjQyOTIgMTAuNSAwIDguMjU3MDggMCA1LjVDMCAyLjc0MjkyIDIuMjQyOTIgMC41IDUgMC41QzcuNzU3MDggMC41IDEwIDIuNzQyOTIgMTAgNS41Wk05LjE2NjY3IDUuNUM5LjE2NjY3IDMuMjAyNSA3LjI5NzUgMS4zMzMzMyA1IDEuMzMzMzNDMi43MDI1IDEuMzMzMzMgMC44MzMzMzMgMy4yMDI1IDAuODMzMzMzIDUuNUMwLjgzMzMzMyA3Ljc5NzUgMi43MDI1IDkuNjY2NjcgNSA5LjY2NjY3QzcuMjk3NSA5LjY2NjY3IDkuMTY2NjcgNy43OTc1IDkuMTY2NjcgNS41WiINCiAgICAgICAgZmlsbD0iI0NCNEE1MCIgLz4NCjwvc3ZnPg==";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
M as default
|
|
4
4
|
};
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -90,6 +90,10 @@ export declare const AtInput: {
|
|
|
90
90
|
type: BooleanConstructor;
|
|
91
91
|
default: boolean;
|
|
92
92
|
};
|
|
93
|
+
useSideClearButton: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
93
97
|
forceEventClearButton: {
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: boolean;
|
|
@@ -6214,6 +6218,7 @@ export declare const AtInput: {
|
|
|
6214
6218
|
};
|
|
6215
6219
|
clickedClear: import('vue').Ref<boolean>;
|
|
6216
6220
|
showClearButton: import('vue').ComputedRef<boolean | "" | undefined>;
|
|
6221
|
+
showSideClearButton: import('vue').ComputedRef<boolean | "" | undefined>;
|
|
6217
6222
|
clearInput: () => void;
|
|
6218
6223
|
containerItemsEl: import('vue').Ref<HTMLDivElement | null>;
|
|
6219
6224
|
onInput: (event: InputEvent) => void;
|
|
@@ -6328,6 +6333,10 @@ export declare const AtInput: {
|
|
|
6328
6333
|
type: BooleanConstructor;
|
|
6329
6334
|
default: boolean;
|
|
6330
6335
|
};
|
|
6336
|
+
useSideClearButton: {
|
|
6337
|
+
type: BooleanConstructor;
|
|
6338
|
+
default: boolean;
|
|
6339
|
+
};
|
|
6331
6340
|
forceEventClearButton: {
|
|
6332
6341
|
type: BooleanConstructor;
|
|
6333
6342
|
default: boolean;
|
|
@@ -6361,6 +6370,7 @@ export declare const AtInput: {
|
|
|
6361
6370
|
cursor: string;
|
|
6362
6371
|
selectedItems: import('../Select/Item/Item').SelectItemProps[];
|
|
6363
6372
|
useClearButton: boolean;
|
|
6373
|
+
useSideClearButton: boolean;
|
|
6364
6374
|
forceEventClearButton: boolean;
|
|
6365
6375
|
}, {}>;
|
|
6366
6376
|
};
|
|
@@ -2,15 +2,15 @@ import _ from "./Legend.vue2.js";
|
|
|
2
2
|
import { resolveComponent as l, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as g, renderList as m, normalizeStyle as k, toDisplayString as d, createBlock as r, createCommentVNode as c, withCtx as v, createTextVNode as y } from "vue";
|
|
3
3
|
import "./Legend.vue3.js";
|
|
4
4
|
import f from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const h = { class: "legend-block" }, b = { class: "d-block" }, C = { class: "d-flex justify-content-start align-items-center" }, B = { class: "d-flex flex-grow-1" }, I = ["onClick"], $ = { class: "d-flex legend-button pr-elm" };
|
|
6
6
|
function A(n, a, E, x, w, R) {
|
|
7
7
|
const i = l("AtEyeAtivoRegularIcon"), u = l("AtEyeInativoRegularIcon"), p = l("AtButton");
|
|
8
|
-
return t(), s("div",
|
|
8
|
+
return t(), s("div", h, [
|
|
9
9
|
o("ul", null, [
|
|
10
10
|
(t(!0), s(g, null, m(n.legendItems, (e) => (t(), s("li", {
|
|
11
11
|
key: e.name
|
|
12
12
|
}, [
|
|
13
|
-
o("div",
|
|
13
|
+
o("div", b, [
|
|
14
14
|
o("div", C, [
|
|
15
15
|
o("div", {
|
|
16
16
|
class: "color-bullet",
|
|
@@ -54,7 +54,7 @@ function A(n, a, E, x, w, R) {
|
|
|
54
54
|
])
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
|
-
const T = /* @__PURE__ */ f(_, [["render", A], ["__scopeId", "data-v-
|
|
57
|
+
const T = /* @__PURE__ */ f(_, [["render", A], ["__scopeId", "data-v-a274a5cb"]]);
|
|
58
58
|
export {
|
|
59
59
|
T as default
|
|
60
60
|
};
|
|
@@ -78,7 +78,7 @@ function b(e, R, L, _, w, D) {
|
|
|
78
78
|
_: 3
|
|
79
79
|
}, 8, ["id", "is-open", "position", "full-size", "onUpdate:isOpen"]);
|
|
80
80
|
}
|
|
81
|
-
const P = /* @__PURE__ */ I(k, [["render", b], ["__scopeId", "data-v-
|
|
81
|
+
const P = /* @__PURE__ */ I(k, [["render", b], ["__scopeId", "data-v-72600db9"]]);
|
|
82
82
|
export {
|
|
83
83
|
P as default
|
|
84
84
|
};
|
package/dist/Menu/Menu.vue.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { openBlock as t, createElementBlock as o, createElementVNode as n, Fragment as l, renderList as i, normalizeClass as h, withModifiers as d, createBlock as p, resolveDynamicComponent as m, createCommentVNode as u, toDisplayString as r, createStaticVNode as
|
|
1
|
+
import b from "./Menu.vue2.js";
|
|
2
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n, Fragment as l, renderList as i, normalizeClass as h, withModifiers as d, createBlock as p, resolveDynamicComponent as m, createCommentVNode as u, toDisplayString as r, createStaticVNode as I, pushScopeId as y, popScopeId as M } from "vue";
|
|
3
3
|
import g from "./assets/at.svg.js";
|
|
4
4
|
import f from "./assets/agrotools.svg.js";
|
|
5
5
|
import "./Menu.vue3.js";
|
|
6
6
|
import $ from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const q = (e) => (y("data-v-
|
|
7
|
+
const q = (e) => (y("data-v-827cadb4"), e = e(), M(), e), z = { class: "aside-container" }, E = /* @__PURE__ */ I('<div class="item" data-v-827cadb4><div class="uniq logo" style="height:48px;" data-v-827cadb4><span class="at-icon-logo" data-v-827cadb4><img alt="at logo" src="' + g + '" data-v-827cadb4></span><span class="at-logo" data-v-827cadb4><img alt="agrotools" src="' + f + '" data-v-827cadb4></span></div><div class="divider" data-v-827cadb4></div></div>', 1), S = { class: "item menu-scroll-container" }, B = { class: "uniq menu-scroll" }, L = {
|
|
8
8
|
class: "actions",
|
|
9
9
|
"aria-label": "Site menu"
|
|
10
10
|
}, N = { class: "menu" }, V = ["data-active", "disabled", "onClick"], w = ["onClick"], A = {
|
|
@@ -152,7 +152,7 @@ function _s(e, k, vs, hs, ks, ps) {
|
|
|
152
152
|
])
|
|
153
153
|
], 32);
|
|
154
154
|
}
|
|
155
|
-
const gs = /* @__PURE__ */ $(
|
|
155
|
+
const gs = /* @__PURE__ */ $(b, [["render", _s], ["__scopeId", "data-v-827cadb4"]]);
|
|
156
156
|
export {
|
|
157
157
|
gs as default
|
|
158
158
|
};
|