@agrotools1/at-components 0.5.0-4 → 0.5.0-6
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/Checkbox/Checkbox.vue.js +1 -1
- package/dist/DataTable/DataTable.d.ts +10 -0
- package/dist/DataTable/DataTable.vue.js +56 -50
- package/dist/DataTable/DataTable.vue2.js +31 -26
- package/dist/DataTable/index.d.ts +10 -0
- package/dist/Dropdown/Dropdown.core.d.ts +24 -0
- package/dist/Dropdown/Dropdown.core.vue.js +22 -19
- package/dist/Dropdown/Dropdown.core.vue2.js +48 -23
- package/dist/Dropdown/Dropdown.types.d.ts +2 -0
- package/dist/Filter/components/Filter.types.d.ts +1 -0
- package/dist/Filter/components/Filter.vue.js +64 -62
- package/dist/Filter/components/Filter.vue2.js +57 -52
- package/dist/Input/Input.core.d.ts +9 -0
- package/dist/Input/Input.core.vue.js +25 -19
- package/dist/Input/Input.core.vue2.js +9 -5
- package/dist/Input/index.d.ts +9 -0
- package/dist/List/components/List.d.ts +18 -0
- package/dist/List/components/List.types.d.ts +2 -0
- package/dist/List/components/List.vue.js +33 -30
- package/dist/List/components/List.vue2.js +20 -12
- package/dist/Search/Search.d.ts +15 -7
- package/dist/Search/Search.vue.js +36 -25
- package/dist/Search/Search.vue2.js +17 -13
- package/dist/Select/Multiple/Select.multiple.d.ts +11 -0
- package/dist/Select/Multiple/Select.multiple.vue.js +10 -9
- package/dist/Select/Multiple/Select.multiple.vue2.js +7 -2
- package/dist/Select/Select.core.d.ts +11 -0
- package/dist/Select/Select.core.vue.js +8 -7
- package/dist/Select/Select.core.vue2.js +8 -3
- package/dist/Select/Single/Select.single.d.ts +11 -0
- package/dist/Select/Single/Select.single.vue.js +13 -12
- package/dist/Select/Single/Select.single.vue2.js +14 -9
- package/dist/Select/index.d.ts +22 -0
- package/dist/Stepper/Stepper.vue.js +10 -10
- package/dist/TableConfig/TableConfig.d.ts +9 -0
- package/dist/TableConfig/TableConfig.vue.js +7 -6
- package/dist/TableConfig/TableConfig.vue2.js +10 -6
- package/dist/Tabs/Tabs.d.ts +11 -0
- package/dist/Tabs/Tabs.vue.js +22 -18
- package/dist/Tabs/Tabs.vue2.js +23 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
type: ObjectConstructor;
|
|
28
28
|
default: () => void;
|
|
29
29
|
};
|
|
30
|
+
fullSize: {
|
|
31
|
+
type: PropType<boolean | undefined>;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
id: {
|
|
35
|
+
type: PropType<string | undefined>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
30
38
|
}, {
|
|
31
39
|
listItems: import("vue").Ref<{
|
|
32
40
|
value: boolean | string[];
|
|
@@ -77,13 +85,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
85
|
type: ObjectConstructor;
|
|
78
86
|
default: () => void;
|
|
79
87
|
};
|
|
88
|
+
fullSize: {
|
|
89
|
+
type: PropType<boolean | undefined>;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
id: {
|
|
93
|
+
type: PropType<string | undefined>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
80
96
|
}>> & {
|
|
81
97
|
"onUpdate:isOpen"?: ((...args: any[]) => any) | undefined;
|
|
82
98
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
83
99
|
onItemClicked?: ((...args: any[]) => any) | undefined;
|
|
84
100
|
}, {
|
|
85
101
|
isOpen: boolean;
|
|
102
|
+
id: string | undefined;
|
|
86
103
|
position: "left" | "right" | undefined;
|
|
104
|
+
fullSize: boolean | undefined;
|
|
87
105
|
trigger: Record<string, any>;
|
|
88
106
|
dropDownList: DropdownListItem[];
|
|
89
107
|
isMultiple: boolean | undefined;
|
|
@@ -1,81 +1,84 @@
|
|
|
1
1
|
import h from "./List.vue2.js";
|
|
2
|
-
import { resolveComponent as
|
|
2
|
+
import { resolveComponent as r, openBlock as t, createBlock as n, withCtx as l, renderSlot as k, resolveDynamicComponent as a, createElementBlock as s, createVNode as p, createTextVNode as u, createCommentVNode as i, Fragment as y, renderList as C, normalizeStyle as f, createElementVNode as v, toDisplayString as z } from "vue";
|
|
3
3
|
import "./List.vue3.js";
|
|
4
4
|
import V from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const I = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "noResult"
|
|
8
|
-
},
|
|
9
|
-
function
|
|
10
|
-
const c =
|
|
8
|
+
}, A = ["onClick"], N = ["for"];
|
|
9
|
+
function _(e, $, b, D, L, R) {
|
|
10
|
+
const c = r("AtParagraph"), m = r("AtCheckbox"), g = r("AtDropdown");
|
|
11
11
|
return t(), n(g, {
|
|
12
|
+
id: e.id,
|
|
12
13
|
"is-open": e.isOpen,
|
|
13
14
|
position: e.position,
|
|
15
|
+
"full-size": e.fullSize,
|
|
14
16
|
"onUpdate:isOpen": e.handleIsOpen
|
|
15
17
|
}, {
|
|
16
|
-
trigger:
|
|
18
|
+
trigger: l(() => [
|
|
19
|
+
k(e.$slots, "default", {}, void 0, !0),
|
|
17
20
|
(t(), n(a(e.trigger)))
|
|
18
21
|
]),
|
|
19
|
-
default:
|
|
20
|
-
(t(),
|
|
22
|
+
default: l(() => [
|
|
23
|
+
(t(), s("div", {
|
|
21
24
|
key: e.keyValue,
|
|
22
25
|
class: "list"
|
|
23
26
|
}, [
|
|
24
|
-
e.showNoResult ? (t(),
|
|
25
|
-
|
|
26
|
-
default:
|
|
27
|
+
e.showNoResult ? (t(), s("section", I, [
|
|
28
|
+
p(c, { size: "p2" }, {
|
|
29
|
+
default: l(() => [
|
|
27
30
|
u(" Dado não encontrado ")
|
|
28
31
|
]),
|
|
29
32
|
_: 1
|
|
30
33
|
})
|
|
31
|
-
])) :
|
|
32
|
-
(t(!0),
|
|
34
|
+
])) : i("", !0),
|
|
35
|
+
(t(!0), s(y, null, C(e.listItems, (o) => (t(), s("div", {
|
|
33
36
|
key: o.text,
|
|
34
37
|
class: "item",
|
|
35
|
-
onClick: (
|
|
38
|
+
onClick: (d) => e.selectItem(o)
|
|
36
39
|
}, [
|
|
37
|
-
e.isMultiple ? (t(), n(
|
|
40
|
+
e.isMultiple ? (t(), n(m, {
|
|
38
41
|
key: 0,
|
|
39
42
|
id: o.text,
|
|
40
43
|
modelValue: o.value,
|
|
41
|
-
"onUpdate:modelValue": (
|
|
44
|
+
"onUpdate:modelValue": (d) => o.value = d,
|
|
42
45
|
class: "item-check",
|
|
43
46
|
size: "12"
|
|
44
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue"])) :
|
|
47
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue"])) : i("", !0),
|
|
45
48
|
o.iconLeft ? (t(), n(a(e.icons[e.getIconName(o.iconLeft)]), {
|
|
46
49
|
key: 1,
|
|
47
50
|
size: "16",
|
|
48
51
|
class: "icon-left",
|
|
49
|
-
style:
|
|
50
|
-
}, null, 8, ["style"])) :
|
|
51
|
-
|
|
52
|
+
style: f({ color: e.getIconColor(o.iconLeft) })
|
|
53
|
+
}, null, 8, ["style"])) : i("", !0),
|
|
54
|
+
v("label", {
|
|
52
55
|
for: o.text,
|
|
53
56
|
class: "item-label"
|
|
54
57
|
}, [
|
|
55
|
-
|
|
56
|
-
default:
|
|
57
|
-
u(
|
|
58
|
+
p(c, { size: "p2" }, {
|
|
59
|
+
default: l(() => [
|
|
60
|
+
u(z(o.text), 1)
|
|
58
61
|
]),
|
|
59
62
|
_: 2
|
|
60
63
|
}, 1024)
|
|
61
|
-
], 8,
|
|
64
|
+
], 8, N),
|
|
62
65
|
o.iconRight ? (t(), n(a(e.icons[e.getIconName(o.iconRight)]), {
|
|
63
66
|
key: 2,
|
|
64
67
|
class: "icon-right",
|
|
65
|
-
style:
|
|
68
|
+
style: f({
|
|
66
69
|
color: e.getIconColor(o.iconRight),
|
|
67
70
|
position: "abosulte",
|
|
68
71
|
right: "16px"
|
|
69
72
|
}),
|
|
70
73
|
size: "16"
|
|
71
|
-
}, null, 8, ["style"])) :
|
|
72
|
-
], 8,
|
|
74
|
+
}, null, 8, ["style"])) : i("", !0)
|
|
75
|
+
], 8, A))), 128))
|
|
73
76
|
]))
|
|
74
77
|
]),
|
|
75
|
-
_:
|
|
76
|
-
}, 8, ["is-open", "position", "onUpdate:isOpen"]);
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, ["id", "is-open", "position", "full-size", "onUpdate:isOpen"]);
|
|
77
80
|
}
|
|
78
|
-
const B = /* @__PURE__ */ V(h, [["render",
|
|
81
|
+
const B = /* @__PURE__ */ V(h, [["render", _], ["__scopeId", "data-v-f2acaa9c"]]);
|
|
79
82
|
export {
|
|
80
83
|
B as default
|
|
81
84
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as g from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/index.js";
|
|
2
|
-
import { defineComponent as h, ref as l, computed as
|
|
3
|
-
import
|
|
2
|
+
import { defineComponent as h, ref as l, computed as y } from "vue";
|
|
3
|
+
import v from "../../Checkbox/Checkbox.vue.js";
|
|
4
4
|
import I from "../../Dropdown/Dropdown.core.vue.js";
|
|
5
5
|
import { AtTipograph as O } from "../../Tipograph/index.js";
|
|
6
6
|
const D = h({
|
|
7
7
|
name: "AtList",
|
|
8
|
-
components: { AtDropdown: I, AtParagraph: O.Paragraph, AtCheckbox:
|
|
8
|
+
components: { AtDropdown: I, AtParagraph: O.Paragraph, AtCheckbox: v },
|
|
9
9
|
props: {
|
|
10
10
|
isOpen: {
|
|
11
11
|
type: Boolean,
|
|
@@ -21,7 +21,7 @@ const D = h({
|
|
|
21
21
|
},
|
|
22
22
|
position: {
|
|
23
23
|
type: String,
|
|
24
|
-
default: "
|
|
24
|
+
default: "left"
|
|
25
25
|
},
|
|
26
26
|
showNoResultMessage: {
|
|
27
27
|
type: Boolean,
|
|
@@ -31,24 +31,32 @@ const D = h({
|
|
|
31
31
|
type: Object,
|
|
32
32
|
default: () => {
|
|
33
33
|
}
|
|
34
|
+
},
|
|
35
|
+
fullSize: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
id: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
34
42
|
}
|
|
35
43
|
},
|
|
36
44
|
emits: ["update:isOpen", "onSave", "itemClicked"],
|
|
37
45
|
setup(t, { emit: o }) {
|
|
38
46
|
const a = l(
|
|
39
47
|
Object.assign([], t.dropDownList)
|
|
40
|
-
), s = l(), r = () => o("update:isOpen", !1),
|
|
48
|
+
), s = l(), r = () => o("update:isOpen", !1), i = ({ text: e, value: n }) => {
|
|
41
49
|
s.value = { text: e, value: n }, o("onSave", s.value);
|
|
42
|
-
},
|
|
50
|
+
}, p = () => {
|
|
43
51
|
s.value = a.value.filter((e) => e.value).map(({ text: e, value: n }) => ({ text: e, value: n })), o("onSave", s.value);
|
|
44
52
|
}, u = (e) => {
|
|
45
53
|
if (e.onClick && (e.onClick(e), o("itemClicked", e)), t.isMultiple)
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
},
|
|
54
|
+
return p();
|
|
55
|
+
i(e), r();
|
|
56
|
+
}, f = (e) => typeof e == "string" ? e : e.name, c = (e) => {
|
|
49
57
|
if (typeof e != "string")
|
|
50
58
|
return e.color;
|
|
51
|
-
}, d =
|
|
59
|
+
}, d = y(
|
|
52
60
|
() => {
|
|
53
61
|
var e;
|
|
54
62
|
return !((e = a.value) != null && e.length) && t.showNoResultMessage;
|
|
@@ -64,8 +72,8 @@ const D = h({
|
|
|
64
72
|
o("update:isOpen", e);
|
|
65
73
|
},
|
|
66
74
|
selectItem: u,
|
|
67
|
-
getIconName:
|
|
68
|
-
getIconColor:
|
|
75
|
+
getIconName: f,
|
|
76
|
+
getIconColor: c
|
|
69
77
|
};
|
|
70
78
|
},
|
|
71
79
|
watch: {
|
package/dist/Search/Search.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export interface SearchProps {
|
|
|
4
4
|
label: string;
|
|
5
5
|
modelValue: string;
|
|
6
6
|
autoCompleteList: DropdownListItem[];
|
|
7
|
-
withIcon
|
|
8
|
-
hasAutoComplete
|
|
9
|
-
hasFilterOption
|
|
10
|
-
isDisabled
|
|
7
|
+
withIcon?: boolean | true;
|
|
8
|
+
hasAutoComplete?: boolean | true;
|
|
9
|
+
hasFilterOption?: boolean | true;
|
|
10
|
+
isDisabled?: boolean | false;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import("vue").DefineComponent<{
|
|
13
13
|
label: {
|
|
@@ -39,9 +39,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
41
|
isDisabled: {
|
|
42
|
-
type: PropType<boolean>;
|
|
42
|
+
type: PropType<boolean | undefined>;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
+
id: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
45
49
|
}, {
|
|
46
50
|
atSearch: import("vue").Ref<HTMLDivElement | null>;
|
|
47
51
|
autocompleteListIsOpen: ComputedRef<boolean>;
|
|
@@ -85,9 +89,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
89
|
default: boolean;
|
|
86
90
|
};
|
|
87
91
|
isDisabled: {
|
|
88
|
-
type: PropType<boolean>;
|
|
92
|
+
type: PropType<boolean | undefined>;
|
|
89
93
|
default: boolean;
|
|
90
94
|
};
|
|
95
|
+
id: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: false;
|
|
98
|
+
};
|
|
91
99
|
}>> & {
|
|
92
100
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
101
|
onOnSelectedItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -96,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
104
|
withIcon: boolean;
|
|
97
105
|
modelValue: string;
|
|
98
106
|
autoCompleteList: DropdownListItem[];
|
|
99
|
-
isDisabled: boolean;
|
|
107
|
+
isDisabled: boolean | undefined;
|
|
100
108
|
hasAutoComplete: boolean;
|
|
101
109
|
hasFilterOption: boolean;
|
|
102
110
|
}, {}>;
|
|
@@ -1,36 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as o, openBlock as
|
|
1
|
+
import r from "./Search.vue2.js";
|
|
2
|
+
import { resolveComponent as o, openBlock as s, createElementBlock as a, normalizeClass as d, createCommentVNode as i, createVNode as n, withCtx as u, mergeProps as p } from "vue";
|
|
3
3
|
import "./Search.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const c = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "spinner"
|
|
8
|
+
};
|
|
9
|
+
function h(e, f, b, I, S, C) {
|
|
10
|
+
const t = o("AtInput"), l = o("AtLista");
|
|
11
|
+
return s(), a("section", {
|
|
8
12
|
ref: "atSearch",
|
|
9
|
-
class:
|
|
13
|
+
class: d(["atSearch", { disabled: e.isDisabled }])
|
|
10
14
|
}, [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"model-value": e.modelValue,
|
|
15
|
-
autocomplete: "off",
|
|
16
|
-
disabled: e.isDisabled,
|
|
17
|
-
"use-clear-button": !0,
|
|
18
|
-
icon: { name: "AtSearchIcon" },
|
|
19
|
-
"onUpdate:modelValue": e.handleChangeValue,
|
|
20
|
-
onFocus: e.openList,
|
|
21
|
-
onFocusout: e.closeList,
|
|
22
|
-
onClearInput: e.clear
|
|
23
|
-
}, null, 8, ["id", "label", "model-value", "disabled", "onUpdate:modelValue", "onFocus", "onFocusout", "onClearInput"]),
|
|
24
|
-
e.hasAutoComplete ? (a(), u(t, {
|
|
25
|
-
key: 0,
|
|
15
|
+
e.showSearchIcon ? (s(), a("span", c)) : i("", !0),
|
|
16
|
+
n(l, {
|
|
17
|
+
id: e.id,
|
|
26
18
|
"drop-down-list": e.autoCompleteListFiltered,
|
|
27
19
|
"is-open": e.autocompleteListIsOpen,
|
|
28
20
|
"show-no-result-message": e.getShowNoResultMessage,
|
|
21
|
+
"full-size": !0,
|
|
29
22
|
onOnSave: e.handleSelectedItem
|
|
30
|
-
},
|
|
23
|
+
}, {
|
|
24
|
+
default: u(() => [
|
|
25
|
+
n(t, p({
|
|
26
|
+
id: e.label,
|
|
27
|
+
label: e.label,
|
|
28
|
+
"model-value": e.modelValue,
|
|
29
|
+
autocomplete: "off",
|
|
30
|
+
disabled: e.isDisabled,
|
|
31
|
+
"use-clear-button": !0,
|
|
32
|
+
icon: { name: "AtSearchIcon" }
|
|
33
|
+
}, e.$attrs, {
|
|
34
|
+
"onUpdate:modelValue": e.handleChangeValue,
|
|
35
|
+
onFocus: e.openList,
|
|
36
|
+
onFocusout: e.closeList,
|
|
37
|
+
onClearInput: e.clear
|
|
38
|
+
}), null, 16, ["id", "label", "model-value", "disabled", "onUpdate:modelValue", "onFocus", "onFocusout", "onClearInput"])
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["id", "drop-down-list", "is-open", "show-no-result-message", "onOnSave"])
|
|
31
42
|
], 2);
|
|
32
43
|
}
|
|
33
|
-
const
|
|
44
|
+
const V = /* @__PURE__ */ m(r, [["render", h], ["__scopeId", "data-v-950efa46"]]);
|
|
34
45
|
export {
|
|
35
|
-
|
|
46
|
+
V as default
|
|
36
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
1
|
+
import { defineComponent as g, ref as l, computed as o } from "vue";
|
|
2
2
|
import { AtCircleXMarkSolidIcon as V } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleXMarkSolidIcon/index.js";
|
|
3
3
|
import { AtSearchIcon as w } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtSearchIcon/index.js";
|
|
4
4
|
import { AtInput as x } from "../Input/index.js";
|
|
@@ -6,7 +6,7 @@ import B from "../List/components/List.vue.js";
|
|
|
6
6
|
const E = {
|
|
7
7
|
AtSearchIcon: w,
|
|
8
8
|
AtCircleXMarkSolidIcon: V
|
|
9
|
-
},
|
|
9
|
+
}, D = g({
|
|
10
10
|
name: "AtSearch",
|
|
11
11
|
components: {
|
|
12
12
|
AtInput: x.Text,
|
|
@@ -45,12 +45,16 @@ const E = {
|
|
|
45
45
|
isDisabled: {
|
|
46
46
|
type: Boolean,
|
|
47
47
|
default: !1
|
|
48
|
+
},
|
|
49
|
+
id: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: !1
|
|
48
52
|
}
|
|
49
53
|
},
|
|
50
54
|
emits: ["update:modelValue", "onSelectedItem"],
|
|
51
55
|
setup(t, { emit: n }) {
|
|
52
|
-
const s =
|
|
53
|
-
() => u.value && t.hasAutoComplete
|
|
56
|
+
const s = l([]), u = l(!1), c = l(null), f = o(
|
|
57
|
+
() => u.value && t.hasAutoComplete && !!t.modelValue
|
|
54
58
|
), p = () => {
|
|
55
59
|
var e;
|
|
56
60
|
u.value = !0, (e = c.value) == null || e.classList.add("focused");
|
|
@@ -59,9 +63,9 @@ const E = {
|
|
|
59
63
|
setTimeout(() => {
|
|
60
64
|
u.value = !1;
|
|
61
65
|
}, 200), (e = c.value) == null || e.classList.remove("focused");
|
|
62
|
-
}, a =
|
|
66
|
+
}, a = l(!1), I = async (e) => {
|
|
63
67
|
n("update:modelValue", e), t.searchEndpoint && (a.value = !0, s.value = await t.searchEndpoint(e), a.value = !1);
|
|
64
|
-
}, v =
|
|
68
|
+
}, v = o(() => {
|
|
65
69
|
var e;
|
|
66
70
|
if (t.hasFilterOption) {
|
|
67
71
|
const i = (d, m) => d.text.toUpperCase().includes(m.toUpperCase());
|
|
@@ -70,16 +74,16 @@ const E = {
|
|
|
70
74
|
);
|
|
71
75
|
}
|
|
72
76
|
return (e = s.value) != null && e.length ? s.value : t.autoCompleteList;
|
|
73
|
-
}), r =
|
|
77
|
+
}), r = l(), S = (e) => {
|
|
74
78
|
const i = e.text;
|
|
75
79
|
r.value = e, n("onSelectedItem", e), n("update:modelValue", i);
|
|
76
80
|
}, L = () => {
|
|
77
81
|
n("onSelectedItem", null), r.value = null;
|
|
78
|
-
}, C =
|
|
82
|
+
}, C = o(
|
|
79
83
|
() => t.withIcon && !a.value && !r.value
|
|
80
|
-
),
|
|
84
|
+
), y = o(
|
|
81
85
|
() => t.isDisabled ? "var(--at-medium-grey)" : ""
|
|
82
|
-
),
|
|
86
|
+
), A = o(
|
|
83
87
|
() => !!t.modelValue && !a.value
|
|
84
88
|
);
|
|
85
89
|
return {
|
|
@@ -88,8 +92,8 @@ const E = {
|
|
|
88
92
|
autoCompleteListFiltered: v,
|
|
89
93
|
isLoading: a,
|
|
90
94
|
showSearchIcon: C,
|
|
91
|
-
getShowNoResultMessage:
|
|
92
|
-
getSearchIconColor:
|
|
95
|
+
getShowNoResultMessage: A,
|
|
96
|
+
getSearchIconColor: y,
|
|
93
97
|
clear: L,
|
|
94
98
|
openList: p,
|
|
95
99
|
closeList: h,
|
|
@@ -99,5 +103,5 @@ const E = {
|
|
|
99
103
|
}
|
|
100
104
|
});
|
|
101
105
|
export {
|
|
102
|
-
|
|
106
|
+
D as default
|
|
103
107
|
};
|
|
@@ -25,6 +25,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
default: () => SelectItemProps[];
|
|
26
26
|
validator: (value: Array<SelectItemProps>) => boolean;
|
|
27
27
|
};
|
|
28
|
+
required: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
28
33
|
separator: {
|
|
29
34
|
type: StringConstructor;
|
|
30
35
|
default: string;
|
|
@@ -82,6 +87,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
87
|
default: () => SelectItemProps[];
|
|
83
88
|
validator: (value: Array<SelectItemProps>) => boolean;
|
|
84
89
|
};
|
|
90
|
+
required: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
required: false;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
85
95
|
separator: {
|
|
86
96
|
type: StringConstructor;
|
|
87
97
|
default: string;
|
|
@@ -91,6 +101,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
101
|
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
92
102
|
"onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
|
|
93
103
|
}, {
|
|
104
|
+
required: boolean;
|
|
94
105
|
label: string;
|
|
95
106
|
disabled: boolean;
|
|
96
107
|
modelValue: string[] | SelectItemProps[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as i, openBlock as o, createElementBlock as l, createVNode as
|
|
1
|
+
import u from "./Select.multiple.vue2.js";
|
|
2
|
+
import { resolveComponent as i, openBlock as o, createElementBlock as l, createVNode as p, Fragment as m, renderList as k, createBlock as b, createCommentVNode as f } from "vue";
|
|
3
3
|
import "./Select.multiple.vue3.js";
|
|
4
4
|
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const h = ["aria-disabled"], v = {
|
|
@@ -19,7 +19,7 @@ function g(e, n, I, S, y, A) {
|
|
|
19
19
|
e.isOpen = !e.isOpen, e.rotateIcon();
|
|
20
20
|
})
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
p(c, {
|
|
23
23
|
"selected-items": e.selectedValues,
|
|
24
24
|
label: e.label,
|
|
25
25
|
"on-selected-item-click": e.onSelectedItemClick,
|
|
@@ -27,8 +27,9 @@ function g(e, n, I, S, y, A) {
|
|
|
27
27
|
disabled: e.disabled,
|
|
28
28
|
"force-value": !0,
|
|
29
29
|
separator: e.separator,
|
|
30
|
+
required: e.required,
|
|
30
31
|
"is-multiple": !0
|
|
31
|
-
}, null, 8, ["selected-items", "label", "on-selected-item-click", "items", "disabled", "separator"]),
|
|
32
|
+
}, null, 8, ["selected-items", "label", "on-selected-item-click", "items", "disabled", "separator", "required"]),
|
|
32
33
|
e.isOpen ? (o(), l("div", v, [
|
|
33
34
|
(o(!0), l(m, null, k(e.myItems, (t) => (o(), b(d, {
|
|
34
35
|
key: t.value,
|
|
@@ -42,16 +43,16 @@ function g(e, n, I, S, y, A) {
|
|
|
42
43
|
},
|
|
43
44
|
type: "multiple",
|
|
44
45
|
"on-checkbox-change": async (a) => {
|
|
45
|
-
var
|
|
46
|
+
var s;
|
|
46
47
|
e.isInternalChange = !0;
|
|
47
|
-
const
|
|
48
|
-
(
|
|
48
|
+
const r = a.value;
|
|
49
|
+
(s = t.onCheckboxChange) == null || s.call(t, { ...a, item: t }), await e.onSelectedValueChange({ ...t }, r), r ? t.isSelected = !0 : t.isSelected = !1, e.$emit("update:items", e.myItems), e.isInternalChange = !1;
|
|
49
50
|
}
|
|
50
51
|
}, null, 8, ["text", "value", "icon", "data-text", "checkbox-value", "on-click", "on-checkbox-change"]))), 128))
|
|
51
52
|
])) : f("", !0)
|
|
52
53
|
], 8, h);
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
+
const q = /* @__PURE__ */ C(u, [["render", g], ["__scopeId", "data-v-ddf56a71"]]);
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
q as default
|
|
57
58
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as V, ref as r, computed as g, watch as A, onMounted as
|
|
|
2
2
|
import C from "../Item/Item.vue.js";
|
|
3
3
|
import _ from "../Select.core.vue.js";
|
|
4
4
|
import b from "../imgs/indicator.svg.js";
|
|
5
|
-
const
|
|
5
|
+
const T = V({
|
|
6
6
|
name: "AtMultipleSelect",
|
|
7
7
|
components: {
|
|
8
8
|
AtSingleCore: _,
|
|
@@ -30,6 +30,11 @@ const x = V({
|
|
|
30
30
|
default: () => [],
|
|
31
31
|
validator: (o) => Array.isArray(o) && o.every((u) => typeof u == "object")
|
|
32
32
|
},
|
|
33
|
+
required: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: !1,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
33
38
|
separator: {
|
|
34
39
|
type: String,
|
|
35
40
|
default: ","
|
|
@@ -116,5 +121,5 @@ const x = V({
|
|
|
116
121
|
}
|
|
117
122
|
});
|
|
118
123
|
export {
|
|
119
|
-
|
|
124
|
+
T as default
|
|
120
125
|
};
|
|
@@ -40,6 +40,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
required: false;
|
|
41
41
|
default: boolean;
|
|
42
42
|
};
|
|
43
|
+
required: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
43
48
|
}, {
|
|
44
49
|
id: string;
|
|
45
50
|
handleValue: () => string;
|
|
@@ -77,7 +82,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
82
|
required: false;
|
|
78
83
|
default: boolean;
|
|
79
84
|
};
|
|
85
|
+
required: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
required: false;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
80
90
|
}>>, {
|
|
91
|
+
required: boolean;
|
|
81
92
|
label: string;
|
|
82
93
|
disabled: boolean;
|
|
83
94
|
separator: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as a, openBlock as n, createBlock as
|
|
1
|
+
import t from "./Select.core.vue2.js";
|
|
2
|
+
import { resolveComponent as a, openBlock as n, createBlock as i, mergeProps as s } from "vue";
|
|
3
3
|
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
function d(e, o,
|
|
4
|
+
function d(e, o, u, m, c, b) {
|
|
5
5
|
const l = a("AtInput");
|
|
6
|
-
return n(),
|
|
6
|
+
return n(), i(l, s(e.$props, {
|
|
7
7
|
ref: "atInput",
|
|
8
8
|
modelValue: e.inputModelValue,
|
|
9
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
9
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.inputModelValue = r),
|
|
10
10
|
type: "button",
|
|
11
11
|
role: "combobox",
|
|
12
12
|
cursor: "pointer",
|
|
@@ -17,13 +17,14 @@ function d(e, o, m, u, c, b) {
|
|
|
17
17
|
"aria-controls": e.id,
|
|
18
18
|
"aria-label": e.label,
|
|
19
19
|
separator: e.separator,
|
|
20
|
+
required: e.required,
|
|
20
21
|
disabled: e.disabled,
|
|
21
22
|
icon: { name: "AtAngleDownSolidIcon" },
|
|
22
23
|
"aria-autocomplete": "none",
|
|
23
24
|
class: "AT-SELECT_container"
|
|
24
|
-
}), null, 16, ["modelValue", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "disabled"]);
|
|
25
|
+
}), null, 16, ["modelValue", "on-selected-item-click", "selected-items", "label", "aria-controls", "aria-label", "separator", "required", "disabled"]);
|
|
25
26
|
}
|
|
26
|
-
const k = /* @__PURE__ */ p(
|
|
27
|
+
const k = /* @__PURE__ */ p(t, [["render", d]]);
|
|
27
28
|
export {
|
|
28
29
|
k as default
|
|
29
30
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, ref as r, computed as s, watch as f } from "vue";
|
|
2
2
|
import { AtInput as c } from "../Input/index.js";
|
|
3
3
|
import "./Item/Item.vue2.js";
|
|
4
4
|
import "./Item/Item.vue3.js";
|
|
5
|
-
const I =
|
|
5
|
+
const I = d({
|
|
6
6
|
name: "AtSelect",
|
|
7
7
|
components: {
|
|
8
8
|
AtInput: c.Text
|
|
@@ -38,10 +38,15 @@ const I = s({
|
|
|
38
38
|
type: Boolean,
|
|
39
39
|
required: !1,
|
|
40
40
|
default: !1
|
|
41
|
+
},
|
|
42
|
+
required: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: !1,
|
|
45
|
+
default: !1
|
|
41
46
|
}
|
|
42
47
|
},
|
|
43
48
|
setup(e) {
|
|
44
|
-
const i = r(null), l = r(""), u =
|
|
49
|
+
const i = r(null), l = r(""), u = s(() => {
|
|
45
50
|
var t;
|
|
46
51
|
return typeof e.value == "string" ? e.value : (t = e.value) == null ? void 0 : t.value;
|
|
47
52
|
}), a = () => {
|