@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.
- package/README.md +71 -71
- package/dist/Accordion/Accordion.vue.js +81 -0
- package/dist/Accordion/Accordion.vue2.js +72 -0
- package/dist/Avatar/Avatar.vue.js +26 -0
- package/dist/Avatar/Avatar.vue2.js +58 -0
- package/dist/Button/Button.vue.js +30 -0
- package/dist/Button/Button.vue2.js +43 -0
- package/dist/CardWithInsights/CardWithInsights.vue.js +60 -0
- package/dist/CardWithInsights/CardWithInsights.vue2.js +32 -0
- package/dist/Checkbox/Checkbox.vue.js +38 -0
- package/dist/Checkbox/Checkbox.vue2.js +73 -0
- package/dist/Checkbox/img/checkmarck.svg.js +4 -0
- package/dist/ColorPicker/ColorPicker.Saturation.vue.js +30 -0
- package/dist/ColorPicker/ColorPicker.Saturation.vue2.js +82 -0
- package/dist/ColorPicker/ColorPicker.vue.js +88 -0
- package/dist/ColorPicker/ColorPicker.vue2.js +180 -0
- package/dist/DataTable/Column/Column.vue.js +37 -0
- package/dist/DataTable/Column/Column.vue2.js +40 -0
- package/dist/DataTable/Column/imgs/filter.svg.js +4 -0
- package/dist/DataTable/Counters/Counters.vue.js +44 -0
- package/dist/DataTable/Counters/Counters.vue2.js +70 -0
- package/dist/DataTable/Counters/imgs/close.svg.js +4 -0
- package/dist/DataTable/DataTable.vue.js +130 -0
- package/dist/DataTable/DataTable.vue2.js +189 -0
- package/dist/DataTable/index.js +11 -0
- package/dist/DatePicker/DatePicker.helper.js +99 -0
- package/dist/DatePicker/DatePicker.vue.js +123 -0
- package/dist/DatePicker/DatePicker.vue2.js +237 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.js +58 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue.js +34 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue2.js +59 -0
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +50 -0
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue2.js +47 -0
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +20 -0
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue2.js +89 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts +2 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts.map +1 -1
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.js +73 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue2.js +71 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.d.ts +16 -16
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.js +151 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue2.js +84 -0
- package/dist/Dropdown/Checklist/draggable.js +68 -0
- package/dist/Dropdown/Dropdown.core.vue.js +47 -0
- package/dist/Dropdown/Dropdown.core.vue2.js +112 -0
- package/dist/Dropdown/DropdownContent/DropdownContent.vue.js +10 -0
- package/dist/Dropdown/DropdownContent/DropdownContent.vue2.js +9 -0
- package/dist/Faq/Faq.vue.js +41 -0
- package/dist/Faq/Faq.vue2.js +41 -0
- package/dist/Faq/FaqItem/FaqItem.vue.js +56 -0
- package/dist/Faq/FaqItem/FaqItem.vue2.js +32 -0
- package/dist/Filter/Filter.vue.js +222 -0
- package/dist/Filter/Filter.vue2.js +129 -0
- package/dist/Icons/icons.d.ts +2 -0
- package/dist/Icons/icons.d.ts.map +1 -1
- package/dist/Icons/icons.js +26 -0
- package/dist/Illustration/Illustration.js +127 -0
- package/dist/Illustration/Illustration.vue.js +17 -0
- package/dist/Illustration/Illustration.vue2.js +32 -0
- package/dist/Input/Input.core.vue.d.ts +2 -0
- package/dist/Input/Input.core.vue.d.ts.map +1 -1
- package/dist/Input/Input.core.vue.js +120 -0
- package/dist/Input/Input.core.vue2.js +239 -0
- package/dist/Input/Text-area.vue.d.ts +2 -0
- package/dist/Input/Text-area.vue.d.ts.map +1 -1
- package/dist/Input/Text-area.vue.js +16 -0
- package/dist/Input/Text-area.vue2.js +14 -0
- package/dist/Input/imgs/error.svg.js +4 -0
- package/dist/Input/index.d.ts +4 -0
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Input/index.js +9 -0
- package/dist/Legend/Legend.vue.js +60 -0
- package/dist/Legend/Legend.vue2.js +51 -0
- package/dist/List/components/List.vue.d.ts +4 -4
- package/dist/List/components/List.vue.js +86 -0
- package/dist/List/components/List.vue2.js +92 -0
- package/dist/Loading/Loading.vue.js +21 -0
- package/dist/Loading/Loading.vue2.js +16 -0
- package/dist/Menu/Menu.vue.d.ts +8 -4
- package/dist/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/Menu/Menu.vue.js +185 -0
- package/dist/Menu/Menu.vue2.js +85 -0
- package/dist/Menu/assets/agrotools.svg.js +4 -0
- package/dist/Menu/assets/at.svg.js +4 -0
- package/dist/Modal/Modal.vue.js +127 -0
- package/dist/Modal/Modal.vue2.js +77 -0
- package/dist/Modal/images/cross.svg.js +4 -0
- package/dist/Notifications/Notification/Notification.vue.js +59 -0
- package/dist/Notifications/Notification/Notification.vue2.js +78 -0
- package/dist/Notifications/Notifications.vue.js +55 -0
- package/dist/Notifications/Notifications.vue2.js +56 -0
- package/dist/Paginator/Paginator.vue.js +119 -0
- package/dist/Paginator/Paginator.vue2.js +110 -0
- package/dist/Paginator/imgs/double-left-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/double-right-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/left-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/right-arrow.svg.js +4 -0
- package/dist/ProgressBar/ProgressBar.vue.js +84 -0
- package/dist/ProgressBar/ProgressBar.vue2.js +83 -0
- package/dist/RadioButton/RadioButton.vue.js +46 -0
- package/dist/RadioButton/RadioButton.vue2.js +57 -0
- package/dist/Search/Search.vue.d.ts +6 -4
- package/dist/Search/Search.vue.d.ts.map +1 -1
- package/dist/Search/Search.vue.js +53 -0
- package/dist/Search/Search.vue2.js +144 -0
- package/dist/Select/Item/Item.vue.js +52 -0
- package/dist/Select/Item/Item.vue2.js +62 -0
- package/dist/Select/Multiple/Select.multiple.vue.d.ts +2 -0
- package/dist/Select/Multiple/Select.multiple.vue.d.ts.map +1 -1
- package/dist/Select/Multiple/Select.multiple.vue.js +59 -0
- package/dist/Select/Multiple/Select.multiple.vue2.js +137 -0
- package/dist/Select/Select.core.vue.d.ts +2 -0
- package/dist/Select/Select.core.vue.d.ts.map +1 -1
- package/dist/Select/Select.core.vue.js +52 -0
- package/dist/Select/Select.core.vue2.js +140 -0
- package/dist/Select/Single/Select.single.vue.d.ts +2 -0
- package/dist/Select/Single/Select.single.vue.d.ts.map +1 -1
- package/dist/Select/Single/Select.single.vue.js +74 -0
- package/dist/Select/Single/Select.single.vue2.js +160 -0
- package/dist/Select/imgs/indicator.svg.js +4 -0
- package/dist/Select/index.d.ts +4 -0
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Select/index.js +9 -0
- package/dist/Skeleton/Skeleton.vue.js +16 -0
- package/dist/Skeleton/Skeleton.vue2.js +19 -0
- package/dist/Stepper/Stepper.vue.js +110 -0
- package/dist/Stepper/Stepper.vue2.js +109 -0
- package/dist/TableConfig/TableConfig.vue.d.ts +20 -20
- package/dist/TableConfig/TableConfig.vue.js +72 -0
- package/dist/TableConfig/TableConfig.vue2.js +108 -0
- package/dist/Tabs/Tab/Tab.vue.d.ts +1 -1
- package/dist/Tabs/Tab/Tab.vue.js +7 -0
- package/dist/Tabs/Tab/Tab.vue2.js +62 -0
- package/dist/Tabs/Tabs.vue.d.ts +1 -1
- package/dist/Tabs/Tabs.vue.js +44 -0
- package/dist/Tabs/Tabs.vue2.js +63 -0
- package/dist/Tag/Tag.vue.js +37 -0
- package/dist/Tag/Tag.vue2.js +86 -0
- package/dist/Tipograph/Paragraph/Paragraph.vue.js +18 -0
- package/dist/Tipograph/Paragraph/Paragraph.vue2.js +21 -0
- package/dist/Tipograph/Title/Title.vue.js +18 -0
- package/dist/Tipograph/Title/Title.vue2.js +21 -0
- package/dist/Tipograph/index.js +9 -0
- package/dist/Toggle/Toggle.vue.js +30 -0
- package/dist/Toggle/Toggle.vue2.js +53 -0
- package/dist/Tooltip/Tooltip.vue.js +66 -0
- package/dist/Tooltip/Tooltip.vue2.js +234 -0
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.d.ts.map +1 -1
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +58 -0
- package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +198 -0
- package/dist/Upload/SingleUpload/SingleUpload.vue.d.ts.map +1 -1
- package/dist/Upload/SingleUpload/SingleUpload.vue.js +51 -0
- package/dist/Upload/SingleUpload/SingleUpload.vue2.js +156 -0
- package/dist/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/Upload/Upload.vue.js +57 -0
- package/dist/Upload/Upload.vue2.js +118 -0
- package/dist/Upload/UploaderHeader/UploaderHeader.vue.js +30 -0
- package/dist/Upload/UploaderHeader/UploaderHeader.vue2.js +51 -0
- package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +31 -0
- package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue2.js +34 -0
- package/dist/Upload/UploaderInput/UploaderInput.vue.js +63 -0
- package/dist/Upload/UploaderInput/UploaderInput.vue2.js +63 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/illustrations/renovabio/biomass.svg.js +4 -0
- package/dist/assets/illustrations/renovabio/volume.svg.js +4 -0
- package/dist/assets/illustrations/system/add-file.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-connection.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-download.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-upload.svg.js +4 -0
- package/dist/assets/illustrations/system/corrupted-file.svg.js +4 -0
- package/dist/assets/illustrations/system/dynamic-production.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-box.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-folder.svg.js +4 -0
- package/dist/assets/illustrations/system/empty.svg.js +4 -0
- package/dist/assets/illustrations/system/error-illustration.svg.js +4 -0
- package/dist/assets/illustrations/system/error.svg.js +4 -0
- package/dist/assets/illustrations/system/file-backup-2.svg.js +4 -0
- package/dist/assets/illustrations/system/file-backup.svg.js +4 -0
- package/dist/assets/illustrations/system/filtering-upload.svg.js +4 -0
- package/dist/assets/illustrations/system/flight.svg.js +4 -0
- package/dist/assets/illustrations/system/fly.svg.js +4 -0
- package/dist/assets/illustrations/system/movies.svg.js +4 -0
- package/dist/assets/illustrations/system/multimedia.svg.js +4 -0
- package/dist/assets/illustrations/system/notification-bell.svg.js +4 -0
- package/dist/assets/illustrations/system/page-2.svg.js +4 -0
- package/dist/assets/illustrations/system/page.svg.js +4 -0
- package/dist/assets/illustrations/system/photos.svg.js +4 -0
- package/dist/assets/illustrations/system/recycle-bin.svg.js +4 -0
- package/dist/assets/illustrations/system/rocket-launch.svg.js +4 -0
- package/dist/assets/illustrations/system/search-territory.svg.js +4 -0
- package/dist/assets/illustrations/system/signal.svg.js +4 -0
- package/dist/assets/illustrations/system/siren.svg.js +4 -0
- package/dist/assets/illustrations/system/wrong.svg.js +4 -0
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +4 -0
- package/dist/assets/illustrations/tools/agriculture.svg.js +4 -0
- package/dist/assets/illustrations/tools/alert-center.svg.js +4 -0
- package/dist/assets/illustrations/tools/area.svg.js +4 -0
- package/dist/assets/illustrations/tools/at-insights.svg.js +4 -0
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +4 -0
- package/dist/assets/illustrations/tools/credit.svg.js +4 -0
- package/dist/assets/illustrations/tools/deforestation.svg.js +4 -0
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +4 -0
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +4 -0
- package/dist/assets/illustrations/tools/extract.svg.js +4 -0
- package/dist/assets/illustrations/tools/farm.svg.js +4 -0
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +4 -0
- package/dist/assets/illustrations/tools/gix.svg.js +4 -0
- package/dist/assets/illustrations/tools/inapto.svg.js +4 -0
- package/dist/assets/illustrations/tools/insurance.svg.js +4 -0
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +4 -0
- package/dist/assets/illustrations/tools/lockdown.svg.js +4 -0
- package/dist/assets/illustrations/tools/map.svg.js +4 -0
- package/dist/assets/illustrations/tools/pasture.svg.js +4 -0
- package/dist/assets/illustrations/tools/rating-2.svg.js +4 -0
- package/dist/assets/illustrations/tools/rating.svg.js +4 -0
- package/dist/assets/illustrations/tools/recurrence.svg.js +4 -0
- package/dist/assets/illustrations/tools/refrigerators.svg.js +4 -0
- package/dist/assets/illustrations/tools/settings.svg.js +4 -0
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +4 -0
- package/dist/assets/illustrations/tools/soil-use.svg.js +4 -0
- package/dist/assets/illustrations/tools/storm.svg.js +4 -0
- package/dist/assets/illustrations/tools/territory-details.svg.js +4 -0
- package/dist/assets/illustrations/tools/timeline.svg.js +4 -0
- package/dist/at-components1.css +1 -0
- package/dist/composables/useBootstrapWrapper.js +7 -0
- package/dist/index.css +1 -3
- package/dist/index.js +68 -16654
- package/package.json +15 -6
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { AtCloseSolidIcon as T, AtSearchIcon as b } from "@agrotools1/at-icons";
|
|
2
|
+
import { defineComponent as E, ref as n, computed as u } from "vue";
|
|
3
|
+
import { AtInput as O } from "../Input/index.js";
|
|
4
|
+
import x from "../List/components/List.vue.js";
|
|
5
|
+
const F = {
|
|
6
|
+
AtSearchIcon: b,
|
|
7
|
+
AtCloseSolidIcon: T
|
|
8
|
+
}, R = E({
|
|
9
|
+
name: "AtSearch",
|
|
10
|
+
components: {
|
|
11
|
+
AtInput: O.Text,
|
|
12
|
+
AtLista: x,
|
|
13
|
+
...F
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
label: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
autoCompleteList: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
withIcon: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
searchEndpoint: {
|
|
33
|
+
type: Function,
|
|
34
|
+
required: !1
|
|
35
|
+
},
|
|
36
|
+
hasAutoComplete: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
hasFilterOption: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
isDisabled: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
error: {
|
|
49
|
+
type: Object,
|
|
50
|
+
default: () => {
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
id: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: !1
|
|
56
|
+
},
|
|
57
|
+
isLoading: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
61
|
+
required: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
arrowIcon: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !1
|
|
68
|
+
},
|
|
69
|
+
msgNoResult: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "Dado não encontrado"
|
|
72
|
+
},
|
|
73
|
+
teleportToBody: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: !0
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
emits: ["update:modelValue", "onSelectedItem", "onClear"],
|
|
79
|
+
setup(t, { emit: a }) {
|
|
80
|
+
const r = n([]), c = n(!1), s = n(null), i = n(null), y = u(() => {
|
|
81
|
+
var e;
|
|
82
|
+
return c.value && t.hasAutoComplete && (!!t.modelValue || t.hasFilterOption) && !(!((e = h.value) != null && e.length) && I.value);
|
|
83
|
+
}), p = (e = "false") => {
|
|
84
|
+
var l;
|
|
85
|
+
if (t.arrowIcon) {
|
|
86
|
+
const f = (l = s.value) == null ? void 0 : l.querySelector(".AT_INPUT_icon_slot");
|
|
87
|
+
if (!(f instanceof HTMLElement)) return;
|
|
88
|
+
f.setAttribute("data-rotate", e);
|
|
89
|
+
}
|
|
90
|
+
}, S = u(
|
|
91
|
+
() => t.arrowIcon ? { name: "AtAngleDownSolidIcon" } : { name: "AtSearchIcon" }
|
|
92
|
+
), g = () => {
|
|
93
|
+
var e;
|
|
94
|
+
c.value = !0, (e = s.value) == null || e.classList.add("focused"), p("true");
|
|
95
|
+
}, L = () => {
|
|
96
|
+
var e;
|
|
97
|
+
setTimeout(() => {
|
|
98
|
+
c.value = !1;
|
|
99
|
+
}, 200), (e = s.value) == null || e.classList.remove("focused"), p();
|
|
100
|
+
}, o = n(!1), A = (e) => {
|
|
101
|
+
a("update:modelValue", e), t.searchEndpoint && (o.value = !0, i.value && clearTimeout(i.value), i.value = setTimeout(async () => {
|
|
102
|
+
t.searchEndpoint && (r.value = await t.searchEndpoint(e)), o.value = !1;
|
|
103
|
+
}, 300));
|
|
104
|
+
}, h = u(
|
|
105
|
+
() => {
|
|
106
|
+
var e;
|
|
107
|
+
if (t.hasFilterOption) {
|
|
108
|
+
const l = (m, v) => m.text.toUpperCase().includes(v.toUpperCase());
|
|
109
|
+
return t.autoCompleteList.filter(
|
|
110
|
+
(m) => l(m, t.modelValue)
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
return (e = r.value) != null && e.length ? r.value : t.autoCompleteList;
|
|
114
|
+
}
|
|
115
|
+
), d = n(), C = (e) => {
|
|
116
|
+
const l = e.text;
|
|
117
|
+
d.value = e, a("onSelectedItem", e), a("update:modelValue", l);
|
|
118
|
+
}, V = () => {
|
|
119
|
+
a("onSelectedItem", null), a("onClear"), a("update:modelValue", ""), o.value = !1, d.value = null;
|
|
120
|
+
}, I = u(
|
|
121
|
+
() => t.withIcon && o.value && !d.value || t.isLoading
|
|
122
|
+
), w = u(
|
|
123
|
+
() => t.isDisabled ? "var(--at-medium-grey)" : ""
|
|
124
|
+
), B = u(() => !!t.modelValue && !o.value);
|
|
125
|
+
return {
|
|
126
|
+
atSearch: s,
|
|
127
|
+
autocompleteListIsOpen: y,
|
|
128
|
+
autoCompleteListFiltered: h,
|
|
129
|
+
isLoading: o,
|
|
130
|
+
showSearchIcon: I,
|
|
131
|
+
getShowNoResultMessage: B,
|
|
132
|
+
getSearchIconColor: w,
|
|
133
|
+
getInputIcon: S,
|
|
134
|
+
clear: V,
|
|
135
|
+
openList: g,
|
|
136
|
+
closeList: L,
|
|
137
|
+
handleChangeValue: A,
|
|
138
|
+
handleSelectedItem: C
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
R as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import p from "./Item.vue2.js";
|
|
2
|
+
import { resolveComponent as m, createElementBlock as t, openBlock as i, normalizeClass as s, createElementVNode as l, toDisplayString as r, createVNode as k } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const d = ["src"];
|
|
6
|
+
function u(o, e, c, b, f, v) {
|
|
7
|
+
const a = m("AtCheckbox");
|
|
8
|
+
return o.type === "text" ? (i(), t("div", {
|
|
9
|
+
key: 0,
|
|
10
|
+
role: "option",
|
|
11
|
+
class: s(["AT-Item_container", o.btnClass]),
|
|
12
|
+
onClick: e[0] || (e[0] = (...n) => o.onClick && o.onClick(...n))
|
|
13
|
+
}, [
|
|
14
|
+
l("span", null, r(o.text), 1)
|
|
15
|
+
], 2)) : o.type === "with-icon" ? (i(), t("div", {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: s(["AT-Item_container", o.btnClass]),
|
|
18
|
+
role: "option",
|
|
19
|
+
onClick: e[1] || (e[1] = (...n) => o.onClick && o.onClick(...n))
|
|
20
|
+
}, [
|
|
21
|
+
l("img", {
|
|
22
|
+
alt: "ícone do item",
|
|
23
|
+
src: o.icon
|
|
24
|
+
}, null, 8, d),
|
|
25
|
+
l("span", null, r(o.text), 1)
|
|
26
|
+
], 2)) : (i(), t("div", {
|
|
27
|
+
key: 2,
|
|
28
|
+
role: "option",
|
|
29
|
+
class: s(["AT-Item_container", o.btnClass]),
|
|
30
|
+
onClick: e[3] || (e[3] = (...n) => o.onClick && o.onClick(...n))
|
|
31
|
+
}, [
|
|
32
|
+
k(a, {
|
|
33
|
+
ref: "checkboxRef",
|
|
34
|
+
size: "12",
|
|
35
|
+
"model-value": o.checkboxValue,
|
|
36
|
+
onClick: e[2] || (e[2] = (n) => {
|
|
37
|
+
o.onCheckboxChange({
|
|
38
|
+
...n,
|
|
39
|
+
item: {
|
|
40
|
+
text: o.text,
|
|
41
|
+
value: o.value
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
})
|
|
45
|
+
}, null, 8, ["model-value"]),
|
|
46
|
+
l("span", null, r(o.text), 1)
|
|
47
|
+
], 2));
|
|
48
|
+
}
|
|
49
|
+
const g = /* @__PURE__ */ C(p, [["render", u], ["__scopeId", "data-v-45cb714b"]]);
|
|
50
|
+
export {
|
|
51
|
+
g as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as e, ref as o } from "vue";
|
|
2
|
+
import n from "../../Checkbox/Checkbox.vue.js";
|
|
3
|
+
const a = e({
|
|
4
|
+
name: "AtSelectItem",
|
|
5
|
+
components: {
|
|
6
|
+
AtCheckbox: n
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
text: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !0,
|
|
12
|
+
validator: (t) => typeof t == "string"
|
|
13
|
+
},
|
|
14
|
+
value: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: !0,
|
|
17
|
+
validator: (t) => typeof t == "string"
|
|
18
|
+
},
|
|
19
|
+
onClick: {
|
|
20
|
+
default: () => {
|
|
21
|
+
},
|
|
22
|
+
type: Function,
|
|
23
|
+
required: !1,
|
|
24
|
+
validator: (t) => typeof t == "function"
|
|
25
|
+
},
|
|
26
|
+
onCheckboxChange: {
|
|
27
|
+
default: () => {
|
|
28
|
+
},
|
|
29
|
+
type: Function,
|
|
30
|
+
required: !1,
|
|
31
|
+
validator: (t) => typeof t == "function"
|
|
32
|
+
},
|
|
33
|
+
checkboxValue: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1,
|
|
36
|
+
validator: (t) => typeof t == "boolean"
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "text",
|
|
41
|
+
validator: (t) => typeof t == "string" && ["text", "multiple", "with-icon"].includes(t)
|
|
42
|
+
},
|
|
43
|
+
icon: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "",
|
|
46
|
+
validator: (t) => typeof t == "string"
|
|
47
|
+
},
|
|
48
|
+
btnClass: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "",
|
|
51
|
+
validator: (t) => typeof t == "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup() {
|
|
55
|
+
return {
|
|
56
|
+
checkboxRef: o(null)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
a as default
|
|
62
|
+
};
|
|
@@ -468,6 +468,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
468
468
|
AtCloundDownloadSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
469
469
|
AtCofreDigitalRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
470
470
|
AtCofreDigitalSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
471
|
+
AtConfigRefreshRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
471
472
|
AtCopilotoRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
472
473
|
AtCopilotoSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
473
474
|
AtCopyRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -562,6 +563,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
562
563
|
AtPinSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
563
564
|
AtPlantRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
564
565
|
AtPlantSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
566
|
+
AtPowerOffRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
565
567
|
AtPrintSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
566
568
|
AtRatingRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
567
569
|
AtRatingSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.multiple.vue.d.ts","sourceRoot":"","sources":["../../../src/Select/Multiple/Select.multiple.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAMzD,MAAM,WAAW,mBAAoB,SAAQ,eAAe;CAAG;;;;;;;cAcxC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;uBAC5C,KAAK,CAAC,eAAe,CAAC;;;;;;;;;;;cAWjB,MAAM,KAAK,CAAC,eAAe,CAAC;uBACjC,KAAK,CAAC,eAAe,CAAC;2BACxB,KAAK,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;kCAmCN,eAAe,aAAa,OAAO;yCAgD5B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjG/B,Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1B/C,wBAwMC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import p from "./Select.multiple.vue2.js";
|
|
2
|
+
import { resolveComponent as i, createElementBlock as t, openBlock as l, createVNode as u, createCommentVNode as m, Fragment as k, renderList as b, createBlock as h } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const f = ["aria-disabled"], v = {
|
|
6
|
+
key: 0,
|
|
7
|
+
role: "group",
|
|
8
|
+
"aria-orientation": "vertical",
|
|
9
|
+
tabindex: "-1",
|
|
10
|
+
class: "AT-SELECT_items-container"
|
|
11
|
+
};
|
|
12
|
+
function g(e, n, I, S, y, A) {
|
|
13
|
+
const c = i("AtSingleCore"), d = i("AtItem");
|
|
14
|
+
return l(), t("div", {
|
|
15
|
+
ref: "containerRef",
|
|
16
|
+
class: "AT-SELECT_wrapper",
|
|
17
|
+
"aria-disabled": e.disabled,
|
|
18
|
+
onClick: n[0] || (n[0] = () => {
|
|
19
|
+
e.isOpen = !e.isOpen, e.rotateIcon();
|
|
20
|
+
})
|
|
21
|
+
}, [
|
|
22
|
+
u(c, {
|
|
23
|
+
"selected-items": e.selectedValues,
|
|
24
|
+
label: e.label,
|
|
25
|
+
"on-selected-item-click": e.onSelectedItemClick,
|
|
26
|
+
items: e.myItems,
|
|
27
|
+
disabled: e.disabled,
|
|
28
|
+
"force-value": !0,
|
|
29
|
+
separator: e.separator,
|
|
30
|
+
required: e.required,
|
|
31
|
+
placeholder: e.placeholder,
|
|
32
|
+
"is-multiple": !0
|
|
33
|
+
}, null, 8, ["selected-items", "label", "on-selected-item-click", "items", "disabled", "separator", "required", "placeholder"]),
|
|
34
|
+
e.isOpen ? (l(), t("div", v, [
|
|
35
|
+
(l(!0), t(k, null, b(e.myItems, (o) => (l(), h(d, {
|
|
36
|
+
key: o.value,
|
|
37
|
+
text: o.text,
|
|
38
|
+
value: o.value,
|
|
39
|
+
icon: o.icon,
|
|
40
|
+
"data-text": o.text,
|
|
41
|
+
"checkbox-value": o.isSelected,
|
|
42
|
+
"on-click": (a) => {
|
|
43
|
+
a.stopPropagation();
|
|
44
|
+
},
|
|
45
|
+
type: "multiple",
|
|
46
|
+
"on-checkbox-change": async (a) => {
|
|
47
|
+
var s;
|
|
48
|
+
e.isInternalChange = !0;
|
|
49
|
+
const r = a.value;
|
|
50
|
+
o.isSelected = r, (s = o.onCheckboxChange) == null || s.call(o, { ...a, item: o }), await e.onSelectedValueChange({ ...o }, r), e.$emit("update:items", e.myItems), e.isInternalChange = !1;
|
|
51
|
+
}
|
|
52
|
+
}, null, 8, ["text", "value", "icon", "data-text", "checkbox-value", "on-click", "on-checkbox-change"]))), 128))
|
|
53
|
+
])) : m("", !0)
|
|
54
|
+
], 8, f);
|
|
55
|
+
}
|
|
56
|
+
const q = /* @__PURE__ */ C(p, [["render", g], ["__scopeId", "data-v-cfeb2cc1"]]);
|
|
57
|
+
export {
|
|
58
|
+
q as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent as V, ref as d, provide as h, computed as A, watch as S, onMounted as w, onUnmounted as C } from "vue";
|
|
2
|
+
import _ from "../imgs/indicator.svg.js";
|
|
3
|
+
import b from "../Item/Item.vue.js";
|
|
4
|
+
import k from "../Select.core.vue.js";
|
|
5
|
+
const j = V({
|
|
6
|
+
name: "AtMultipleSelect",
|
|
7
|
+
components: {
|
|
8
|
+
AtSingleCore: k,
|
|
9
|
+
AtItem: b
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
label: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: [Array],
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
emitValue: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
items: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => [],
|
|
31
|
+
validator: (n) => Array.isArray(n) && n.every((i) => typeof i == "object")
|
|
32
|
+
},
|
|
33
|
+
required: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: !1,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
separator: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ","
|
|
41
|
+
},
|
|
42
|
+
error: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => {
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
placeholder: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:items", "update:selectedItems", "update:modelValue"],
|
|
53
|
+
setup(n, i) {
|
|
54
|
+
const c = d(!1), f = d(null), u = d(n.items), s = d(!1);
|
|
55
|
+
h("error", n.error);
|
|
56
|
+
const o = d([]), g = A(
|
|
57
|
+
() => [...o.value].map((e) => e.value).join(n.separator)
|
|
58
|
+
), m = (e, a) => {
|
|
59
|
+
const l = u.value.find((t) => t.value === e.value);
|
|
60
|
+
if (a) {
|
|
61
|
+
if (o.value.find(
|
|
62
|
+
(r) => r.value === e.value
|
|
63
|
+
)) return;
|
|
64
|
+
o.value.push(e), l && (l.isSelected = !0);
|
|
65
|
+
} else {
|
|
66
|
+
const t = o.value.findIndex(
|
|
67
|
+
(r) => r.value === e.value
|
|
68
|
+
);
|
|
69
|
+
if (t === -1) return;
|
|
70
|
+
o.value.splice(t, 1), l && (l.isSelected = !1);
|
|
71
|
+
}
|
|
72
|
+
i.emit("update:selectedItems", o.value), n.emitValue ? i.emit(
|
|
73
|
+
"update:modelValue",
|
|
74
|
+
o.value.map((t) => t.value)
|
|
75
|
+
) : i.emit(
|
|
76
|
+
"update:modelValue",
|
|
77
|
+
o.value.map((t) => ({ value: t.value, text: t.text }))
|
|
78
|
+
);
|
|
79
|
+
}, I = (e, a = !0) => {
|
|
80
|
+
const l = n.items.find((t) => t.value === e);
|
|
81
|
+
l && (m(l, !1), c.value = a, v());
|
|
82
|
+
}, p = (e) => {
|
|
83
|
+
var l;
|
|
84
|
+
const a = e.target;
|
|
85
|
+
(l = f.value) != null && l.contains(a) || (c.value = !1, v());
|
|
86
|
+
}, y = async (e) => {
|
|
87
|
+
if (!s.value) {
|
|
88
|
+
u.value.forEach((a) => a.isSelected = !1), o.value = [];
|
|
89
|
+
for (const a of e) {
|
|
90
|
+
const l = typeof a == "string" ? a : a.value, t = u.value.find((r) => r.value === l);
|
|
91
|
+
if (!t) {
|
|
92
|
+
console.warn(
|
|
93
|
+
`O valor ${a} ao qual você incluiu no v-model não está contida nos itens disponíveis`
|
|
94
|
+
);
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
s.value = !0, await m(t, !0), t.isSelected = !0, s.value = !1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
S(
|
|
102
|
+
() => n.modelValue,
|
|
103
|
+
(e) => y(e)
|
|
104
|
+
), w(() => {
|
|
105
|
+
y(n.modelValue), window.addEventListener("click", p);
|
|
106
|
+
}), C(() => {
|
|
107
|
+
window.removeEventListener("click", p), u.value.map((e) => e.isSelected = !1);
|
|
108
|
+
});
|
|
109
|
+
const v = () => {
|
|
110
|
+
var a;
|
|
111
|
+
const e = (a = f.value) == null ? void 0 : a.querySelector(".AT_INPUT_icon_slot");
|
|
112
|
+
e instanceof HTMLElement && e.setAttribute("data-rotate", c.value.toString());
|
|
113
|
+
};
|
|
114
|
+
return S(
|
|
115
|
+
() => n.items,
|
|
116
|
+
(e) => {
|
|
117
|
+
s.value || (u.value = e);
|
|
118
|
+
}
|
|
119
|
+
), {
|
|
120
|
+
onSelectedValueChange: m,
|
|
121
|
+
onSelectedItemClick: I,
|
|
122
|
+
rotateIcon: v,
|
|
123
|
+
myItems: u,
|
|
124
|
+
values: g,
|
|
125
|
+
selectedValues: o,
|
|
126
|
+
isInternalChange: s,
|
|
127
|
+
isOpen: c,
|
|
128
|
+
containerRef: f,
|
|
129
|
+
icons: {
|
|
130
|
+
indicatorSvg: _
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export {
|
|
136
|
+
j as default
|
|
137
|
+
};
|
|
@@ -329,6 +329,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
329
329
|
AtCloundDownloadSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
330
330
|
AtCofreDigitalRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
331
331
|
AtCofreDigitalSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
332
|
+
AtConfigRefreshRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
332
333
|
AtCopilotoRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
333
334
|
AtCopilotoSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
334
335
|
AtCopyRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -423,6 +424,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
423
424
|
AtPinSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
424
425
|
AtPlantRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
425
426
|
AtPlantSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
427
|
+
AtPowerOffRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
426
428
|
AtPrintSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
427
429
|
AtRatingRegularIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
428
430
|
AtRatingSolidIcon: import('vue').DefineComponent<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@agrotools1/at-icons/dist/components/IconWrapper/IconWrapper.vue').IconWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.core.vue.d.ts","sourceRoot":"","sources":["../../src/Select/Select.core.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKtD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;IAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnF/B,wBAsLC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import i from "./Select.core.vue2.js";
|
|
2
|
+
import { resolveComponent as l, createElementBlock as s, openBlock as d, createVNode as r, withCtx as p, mergeProps as u } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function c(e, o, b, f, C, h) {
|
|
6
|
+
const t = l("AtInput"), n = l("AtTooltip");
|
|
7
|
+
return d(), s("div", null, [
|
|
8
|
+
r(n, {
|
|
9
|
+
disable: !e.isOverflowing || !e.showTooltipOnOverflow,
|
|
10
|
+
text: e.inputModelValue,
|
|
11
|
+
position: e.tooltipPosition,
|
|
12
|
+
style: { width: "100%" }
|
|
13
|
+
}, {
|
|
14
|
+
default: p(() => [
|
|
15
|
+
r(t, u(e.$props, {
|
|
16
|
+
ref: "atInput",
|
|
17
|
+
modelValue: e.inputModelValue,
|
|
18
|
+
"onUpdate:modelValue": [
|
|
19
|
+
o[0] || (o[0] = (a) => e.inputModelValue = a),
|
|
20
|
+
e.handleTyping
|
|
21
|
+
],
|
|
22
|
+
role: "combobox",
|
|
23
|
+
type: e.type,
|
|
24
|
+
cursor: "pointer",
|
|
25
|
+
"prevent-input-event": !0,
|
|
26
|
+
"on-selected-item-click": e.onSelectedItemClick,
|
|
27
|
+
"selected-items": e.selectedItems,
|
|
28
|
+
label: e.label,
|
|
29
|
+
placeholder: e.placeholder,
|
|
30
|
+
"aria-controls": e.id,
|
|
31
|
+
"aria-label": e.label,
|
|
32
|
+
separator: e.separator,
|
|
33
|
+
required: e.required,
|
|
34
|
+
disabled: e.disabled,
|
|
35
|
+
error: e.getError,
|
|
36
|
+
icon: { name: "AtAngleDownSolidIcon" },
|
|
37
|
+
"aria-autocomplete": "none",
|
|
38
|
+
class: ["AT-SELECT_container", e.inputClass],
|
|
39
|
+
"use-side-clear-button": e.showClearButton,
|
|
40
|
+
onClearInput: e.handleClearInput,
|
|
41
|
+
onClickOutside: e.handleClickOutside,
|
|
42
|
+
onOverflow: e.handleOverflow
|
|
43
|
+
}), null, 16, ["modelValue", "type", "on-selected-item-click", "selected-items", "label", "placeholder", "aria-controls", "aria-label", "separator", "required", "disabled", "error", "class", "use-side-clear-button", "onUpdate:modelValue", "onClearInput", "onClickOutside", "onOverflow"])
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["disable", "text", "position"])
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
const k = /* @__PURE__ */ m(i, [["render", c], ["__scopeId", "data-v-3ac64195"]]);
|
|
50
|
+
export {
|
|
51
|
+
k as default
|
|
52
|
+
};
|