@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
|
@@ -13,6 +13,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
required: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
16
21
|
items: {
|
|
17
22
|
type: () => Array<SelectItemProps>;
|
|
18
23
|
default: () => SelectItemProps[];
|
|
@@ -49,6 +54,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
54
|
type: StringConstructor;
|
|
50
55
|
default: string;
|
|
51
56
|
};
|
|
57
|
+
required: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
52
62
|
items: {
|
|
53
63
|
type: () => Array<SelectItemProps>;
|
|
54
64
|
default: () => SelectItemProps[];
|
|
@@ -61,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
71
|
}>> & {
|
|
62
72
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
73
|
}, {
|
|
74
|
+
required: boolean;
|
|
64
75
|
label: string;
|
|
65
76
|
modelValue: string | SelectItemProps;
|
|
66
77
|
items: SelectItemProps[];
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import u from "./Select.single.vue2.js";
|
|
2
|
+
import { resolveComponent as l, openBlock as t, createElementBlock as r, createVNode as d, withModifiers as c, Fragment as v, renderList as f, createBlock as C, createCommentVNode as k } from "vue";
|
|
3
3
|
import "./Select.single.vue3.js";
|
|
4
4
|
import m from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
function g(e, o, A, I, S, y) {
|
|
6
|
-
const
|
|
7
|
-
return t(),
|
|
6
|
+
const i = l("AtSingleCore"), s = l("AtItem");
|
|
7
|
+
return t(), r("div", {
|
|
8
8
|
ref: "containerRef",
|
|
9
9
|
class: "AT-SELECT_wrapper",
|
|
10
10
|
onClick: o[1] || (o[1] = (n) => {
|
|
11
11
|
e.open = !e.open, e.rotateIcon();
|
|
12
12
|
})
|
|
13
13
|
}, [
|
|
14
|
-
|
|
14
|
+
d(i, {
|
|
15
15
|
value: e.selectedValue,
|
|
16
|
+
required: e.required,
|
|
16
17
|
label: e.label,
|
|
17
18
|
items: e.items
|
|
18
|
-
}, null, 8, ["value", "label", "items"]),
|
|
19
|
-
e.open ? (t(),
|
|
19
|
+
}, null, 8, ["value", "required", "label", "items"]),
|
|
20
|
+
e.open ? (t(), r("div", {
|
|
20
21
|
key: 0,
|
|
21
22
|
role: "group",
|
|
22
23
|
"aria-orientation": "vertical",
|
|
23
24
|
tabindex: "-1",
|
|
24
25
|
class: "AT-SELECT_items-container",
|
|
25
|
-
onClick: o[0] || (o[0] =
|
|
26
|
+
onClick: o[0] || (o[0] = c((n) => {
|
|
26
27
|
e.open = !1, e.rotateIcon();
|
|
27
28
|
}, ["stop"]))
|
|
28
29
|
}, [
|
|
29
|
-
(t(!0),
|
|
30
|
+
(t(!0), r(v, null, f(e.items, (n) => (t(), C(s, {
|
|
30
31
|
key: n.value,
|
|
31
32
|
text: n.text,
|
|
32
33
|
value: n.value,
|
|
@@ -35,14 +36,14 @@ function g(e, o, A, I, S, y) {
|
|
|
35
36
|
"aria-selected": n.value === e.valueOfModel,
|
|
36
37
|
"data-text": n.text,
|
|
37
38
|
"on-click": async (p) => {
|
|
38
|
-
var
|
|
39
|
-
e.isInternalChange = !0, await e.onSelectedValueChange(n), (
|
|
39
|
+
var a;
|
|
40
|
+
e.isInternalChange = !0, await e.onSelectedValueChange(n), (a = n.onClick) == null || a.call(n, p), e.isInternalChange = !1;
|
|
40
41
|
}
|
|
41
42
|
}, null, 8, ["text", "value", "type", "icon", "aria-selected", "data-text", "on-click"]))), 128))
|
|
42
43
|
])) : k("", !0)
|
|
43
44
|
], 512);
|
|
44
45
|
}
|
|
45
|
-
const V = /* @__PURE__ */ m(
|
|
46
|
+
const V = /* @__PURE__ */ m(u, [["render", g], ["__scopeId", "data-v-751e4155"]]);
|
|
46
47
|
export {
|
|
47
48
|
V as default
|
|
48
49
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as n, computed as v, watch as p } from "vue";
|
|
2
2
|
import y from "../Item/Item.vue.js";
|
|
3
3
|
import g from "../Select.core.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const q = m({
|
|
5
5
|
name: "AtSingleSelect",
|
|
6
6
|
components: {
|
|
7
7
|
AtSingleCore: g,
|
|
@@ -17,6 +17,11 @@ const _ = d({
|
|
|
17
17
|
type: String,
|
|
18
18
|
default: ""
|
|
19
19
|
},
|
|
20
|
+
required: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: !1,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
20
25
|
items: {
|
|
21
26
|
type: Array,
|
|
22
27
|
default: () => [],
|
|
@@ -30,11 +35,11 @@ const _ = d({
|
|
|
30
35
|
emits: ["update:modelValue"],
|
|
31
36
|
setup(a, { emit: u }) {
|
|
32
37
|
const s = n(null), r = n(!1), t = n(a.modelValue), o = n(!1), i = (e) => {
|
|
33
|
-
t.value = e, r.value = !1,
|
|
38
|
+
t.value = e, r.value = !1, f(), u(
|
|
34
39
|
"update:modelValue",
|
|
35
40
|
a.emitValue ? t.value.value : t.value
|
|
36
41
|
);
|
|
37
|
-
},
|
|
42
|
+
}, c = v(() => {
|
|
38
43
|
var e;
|
|
39
44
|
return typeof t.value == "string" ? t.value : (e = t.value) == null ? void 0 : e.value;
|
|
40
45
|
});
|
|
@@ -44,7 +49,7 @@ const _ = d({
|
|
|
44
49
|
if (o.value)
|
|
45
50
|
return;
|
|
46
51
|
const l = a.items.find(
|
|
47
|
-
(
|
|
52
|
+
(d) => d.value === (typeof e == "string" ? e : e.value)
|
|
48
53
|
);
|
|
49
54
|
if (!l) {
|
|
50
55
|
console.warn(
|
|
@@ -55,7 +60,7 @@ const _ = d({
|
|
|
55
60
|
o.value = !0, await i(l), o.value = !1;
|
|
56
61
|
}
|
|
57
62
|
);
|
|
58
|
-
const
|
|
63
|
+
const f = () => {
|
|
59
64
|
var l;
|
|
60
65
|
const e = (l = s.value) == null ? void 0 : l.querySelector(".AT_INPUT_icon_slot");
|
|
61
66
|
e instanceof HTMLElement && e.setAttribute("data-rotate", r.value.toString());
|
|
@@ -64,13 +69,13 @@ const _ = d({
|
|
|
64
69
|
onSelectedValueChange: i,
|
|
65
70
|
selectedValue: t,
|
|
66
71
|
open: r,
|
|
67
|
-
valueOfModel:
|
|
72
|
+
valueOfModel: c,
|
|
68
73
|
containerRef: s,
|
|
69
74
|
isInternalChange: o,
|
|
70
|
-
rotateIcon:
|
|
75
|
+
rotateIcon: f
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
});
|
|
74
79
|
export {
|
|
75
|
-
|
|
80
|
+
q as default
|
|
76
81
|
};
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export declare const AtSelect: {
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
required: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
16
21
|
items: {
|
|
17
22
|
type: () => ISelectItemProps[];
|
|
18
23
|
default: () => ISelectItemProps[];
|
|
@@ -49,6 +54,11 @@ export declare const AtSelect: {
|
|
|
49
54
|
type: StringConstructor;
|
|
50
55
|
default: string;
|
|
51
56
|
};
|
|
57
|
+
required: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
52
62
|
items: {
|
|
53
63
|
type: () => ISelectItemProps[];
|
|
54
64
|
default: () => ISelectItemProps[];
|
|
@@ -61,6 +71,7 @@ export declare const AtSelect: {
|
|
|
61
71
|
}>> & {
|
|
62
72
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
73
|
}, {
|
|
74
|
+
required: boolean;
|
|
64
75
|
label: string;
|
|
65
76
|
modelValue: string | ISelectItemProps;
|
|
66
77
|
items: ISelectItemProps[];
|
|
@@ -88,6 +99,11 @@ export declare const AtSelect: {
|
|
|
88
99
|
default: () => ISelectItemProps[];
|
|
89
100
|
validator: (value: ISelectItemProps[]) => boolean;
|
|
90
101
|
};
|
|
102
|
+
required: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
required: false;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
91
107
|
separator: {
|
|
92
108
|
type: StringConstructor;
|
|
93
109
|
default: string;
|
|
@@ -145,6 +161,11 @@ export declare const AtSelect: {
|
|
|
145
161
|
default: () => ISelectItemProps[];
|
|
146
162
|
validator: (value: ISelectItemProps[]) => boolean;
|
|
147
163
|
};
|
|
164
|
+
required: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
required: false;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
148
169
|
separator: {
|
|
149
170
|
type: StringConstructor;
|
|
150
171
|
default: string;
|
|
@@ -154,6 +175,7 @@ export declare const AtSelect: {
|
|
|
154
175
|
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
155
176
|
"onUpdate:selectedItems"?: ((...args: any[]) => any) | undefined;
|
|
156
177
|
}, {
|
|
178
|
+
required: boolean;
|
|
157
179
|
label: string;
|
|
158
180
|
disabled: boolean;
|
|
159
181
|
modelValue: string[] | ISelectItemProps[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import $ from "./Stepper.vue2.js";
|
|
2
|
-
import { resolveComponent as u, openBlock as s, createElementBlock as n, normalizeClass as o, createElementVNode as
|
|
2
|
+
import { resolveComponent as u, openBlock as s, createElementBlock as n, normalizeClass as o, createElementVNode as i, normalizeStyle as z, Fragment as S, renderList as y, createBlock as a, resolveDynamicComponent as l, createCommentVNode as p, toDisplayString as c, createVNode as d, withCtx as f, createTextVNode as m } from "vue";
|
|
3
3
|
import "./Stepper.vue3.js";
|
|
4
4
|
import k from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
function E(e, C, I, g, b, A) {
|
|
@@ -7,14 +7,14 @@ function E(e, C, I, g, b, A) {
|
|
|
7
7
|
return s(), n("div", {
|
|
8
8
|
class: o(e.$props.direction === "vertical" ? "stepper-vertical" : "")
|
|
9
9
|
}, [
|
|
10
|
-
|
|
10
|
+
i("div", {
|
|
11
11
|
ref: "stepperElementCollection",
|
|
12
12
|
class: o([
|
|
13
13
|
"stepper",
|
|
14
14
|
e.$props.direction === "vertical" ? "vertical-stepper" : "horizontal-stepper"
|
|
15
15
|
])
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
i("div", {
|
|
18
18
|
class: o([
|
|
19
19
|
"stepper-line",
|
|
20
20
|
e.$props.direction === "vertical" ? "vertical-stepper-line" : "horizontal-stepper-line"
|
|
@@ -29,30 +29,30 @@ function E(e, C, I, g, b, A) {
|
|
|
29
29
|
"stepper-item-horizontal": e.$props.direction === "horizontal" ? !0 : ""
|
|
30
30
|
}])
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
i("div", {
|
|
33
33
|
class: o(["stepper-item-counter", {
|
|
34
34
|
current: e.$props.step === t,
|
|
35
35
|
success: r.isSuccess === !0 && r.isError === !1,
|
|
36
36
|
error: r.isError
|
|
37
37
|
}])
|
|
38
38
|
}, [
|
|
39
|
-
e.$props.step === t && r.isSuccess === !1 && r.isError === !1 && e.$props.numberedStep === !1 ? (s(),
|
|
39
|
+
e.$props.step === t && r.isSuccess === !1 && r.isError === !1 && e.$props.numberedStep === !1 ? (s(), a(l(r.stepIcon), {
|
|
40
40
|
key: 0,
|
|
41
41
|
size: "20",
|
|
42
42
|
class: "step-icon",
|
|
43
43
|
color: "var(--at-primary-color-1)"
|
|
44
44
|
})) : p("", !0),
|
|
45
|
-
e.$props.step !== t && r.isSuccess === !1 && r.isError === !1 && e.$props.numberedStep === !1 ? (s(),
|
|
45
|
+
e.$props.step !== t && r.isSuccess === !1 && r.isError === !1 && e.$props.numberedStep === !1 ? (s(), a(l(r.stepInactiveIcon), {
|
|
46
46
|
key: 1,
|
|
47
47
|
size: "20",
|
|
48
48
|
color: "var(--at-dark-grey)"
|
|
49
49
|
})) : p("", !0),
|
|
50
|
-
r.isSuccess && r.isError === !1 ? (s(),
|
|
50
|
+
r.isSuccess && r.isError === !1 ? (s(), a(l(e.AtCheckCircleSolidIcon), {
|
|
51
51
|
key: 2,
|
|
52
52
|
size: "20",
|
|
53
53
|
color: "var(--at-white)"
|
|
54
54
|
})) : p("", !0),
|
|
55
|
-
r.isError ? (s(),
|
|
55
|
+
r.isError ? (s(), a(l(e.AtWarningSolidIcon), {
|
|
56
56
|
key: 3,
|
|
57
57
|
id: "errorIcon",
|
|
58
58
|
size: "20",
|
|
@@ -63,7 +63,7 @@ function E(e, C, I, g, b, A) {
|
|
|
63
63
|
class: o(["number", e.$props.step === t ? "current-number" : ""])
|
|
64
64
|
}, c(t + 1), 3)) : p("", !0)
|
|
65
65
|
], 2),
|
|
66
|
-
|
|
66
|
+
i("div", {
|
|
67
67
|
class: o(["stepper-item-counter-content", {
|
|
68
68
|
"stepper-item-counter-content-horizontal": e.$props.direction === "horizontal"
|
|
69
69
|
}])
|
|
@@ -94,7 +94,7 @@ function E(e, C, I, g, b, A) {
|
|
|
94
94
|
], 2)
|
|
95
95
|
], 2);
|
|
96
96
|
}
|
|
97
|
-
const D = /* @__PURE__ */ k($, [["render", E], ["__scopeId", "data-v-
|
|
97
|
+
const D = /* @__PURE__ */ k($, [["render", E], ["__scopeId", "data-v-de902772"]]);
|
|
98
98
|
export {
|
|
99
99
|
D as default
|
|
100
100
|
};
|
|
@@ -11,6 +11,7 @@ export interface TableConfigProps {
|
|
|
11
11
|
resumedResponse?: boolean;
|
|
12
12
|
checkAllText?: string;
|
|
13
13
|
position?: "left" | "right";
|
|
14
|
+
id?: string;
|
|
14
15
|
}
|
|
15
16
|
declare const _default: import("vue").DefineComponent<{
|
|
16
17
|
dropDownList: {
|
|
@@ -49,6 +50,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
50
|
type: PropType<"left" | "right" | undefined>;
|
|
50
51
|
default: string;
|
|
51
52
|
};
|
|
53
|
+
id: {
|
|
54
|
+
type: PropType<string | undefined>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
52
57
|
}, {
|
|
53
58
|
isDialogOpen: import("vue").Ref<boolean>;
|
|
54
59
|
getButtonColor: import("vue").ComputedRef<"primary" | "secondary">;
|
|
@@ -111,6 +116,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
116
|
type: PropType<"left" | "right" | undefined>;
|
|
112
117
|
default: string;
|
|
113
118
|
};
|
|
119
|
+
id: {
|
|
120
|
+
type: PropType<string | undefined>;
|
|
121
|
+
required: false;
|
|
122
|
+
};
|
|
114
123
|
}>> & {
|
|
115
124
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
116
125
|
}, {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as n, openBlock as
|
|
1
|
+
import m from "./TableConfig.vue2.js";
|
|
2
|
+
import { resolveComponent as n, openBlock as f, createElementBlock as C, createVNode as t, withCtx as e, createElementVNode as s, createTextVNode as i, toDisplayString as a } from "vue";
|
|
3
3
|
import "./TableConfig.vue3.js";
|
|
4
4
|
import k from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const g = { class: "tableConfig" }, v = { class: "at-dropdown-footer" };
|
|
6
|
-
function
|
|
6
|
+
function h(o, r, A, b, S, _) {
|
|
7
7
|
const d = n("AtSettingsSolidIcon"), l = n("AtButton"), c = n("AtChecklist"), p = n("AtDropdown");
|
|
8
|
-
return
|
|
8
|
+
return f(), C("section", null, [
|
|
9
9
|
t(p, {
|
|
10
|
+
id: o.id,
|
|
10
11
|
"is-open": o.isDialogOpen,
|
|
11
12
|
"onUpdate:isOpen": r[0] || (r[0] = (u) => o.isDialogOpen = u),
|
|
12
13
|
position: o.position
|
|
@@ -59,10 +60,10 @@ function b(o, r, h, A, _, S) {
|
|
|
59
60
|
])
|
|
60
61
|
]),
|
|
61
62
|
_: 1
|
|
62
|
-
}, 8, ["is-open", "position"])
|
|
63
|
+
}, 8, ["id", "is-open", "position"])
|
|
63
64
|
]);
|
|
64
65
|
}
|
|
65
|
-
const D = /* @__PURE__ */ k(
|
|
66
|
+
const D = /* @__PURE__ */ k(m, [["render", h], ["__scopeId", "data-v-4326c741"]]);
|
|
66
67
|
export {
|
|
67
68
|
D as default
|
|
68
69
|
};
|
|
@@ -5,7 +5,7 @@ import x from "../Dropdown/Checklist/Dropdown.Checklist.vue.js";
|
|
|
5
5
|
import A from "../Dropdown/Dropdown.core.vue.js";
|
|
6
6
|
const C = {
|
|
7
7
|
AtSettingsSolidIcon: y
|
|
8
|
-
},
|
|
8
|
+
}, q = g({
|
|
9
9
|
name: "AtTableConfig",
|
|
10
10
|
components: {
|
|
11
11
|
AtChecklist: x,
|
|
@@ -49,6 +49,10 @@ const C = {
|
|
|
49
49
|
position: {
|
|
50
50
|
type: String,
|
|
51
51
|
default: "left"
|
|
52
|
+
},
|
|
53
|
+
id: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: !1
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
emits: ["onSave"],
|
|
@@ -59,9 +63,9 @@ const C = {
|
|
|
59
63
|
s.value = JSON.parse(JSON.stringify(i.dropDownList)), n.value = JSON.parse(JSON.stringify(s.value));
|
|
60
64
|
};
|
|
61
65
|
a();
|
|
62
|
-
const r = () => t.value = !1,
|
|
66
|
+
const r = () => t.value = !1, d = () => {
|
|
63
67
|
r();
|
|
64
|
-
},
|
|
68
|
+
}, f = () => {
|
|
65
69
|
const e = [];
|
|
66
70
|
return n.value.forEach((o, m) => {
|
|
67
71
|
e[m] = s.value.find((S) => S.text === o.text) ?? {};
|
|
@@ -72,12 +76,12 @@ const C = {
|
|
|
72
76
|
getButtonColor: u,
|
|
73
77
|
list: s,
|
|
74
78
|
toggleDropdown: p,
|
|
75
|
-
handleClose:
|
|
79
|
+
handleClose: d,
|
|
76
80
|
handleSorted: (e) => {
|
|
77
81
|
n.value = e;
|
|
78
82
|
},
|
|
79
83
|
save: () => {
|
|
80
|
-
const e =
|
|
84
|
+
const e = f();
|
|
81
85
|
c("onSave", e), r();
|
|
82
86
|
},
|
|
83
87
|
cancel: () => {
|
|
@@ -93,5 +97,5 @@ const C = {
|
|
|
93
97
|
}
|
|
94
98
|
});
|
|
95
99
|
export {
|
|
96
|
-
|
|
100
|
+
q as default
|
|
97
101
|
};
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ type AtTabProp = {
|
|
|
18
18
|
export type AtTabsProps = {
|
|
19
19
|
tabs: AtTabProp[];
|
|
20
20
|
selectedTabIndex?: number;
|
|
21
|
+
fullSize?: boolean;
|
|
21
22
|
};
|
|
22
23
|
declare const _default: import("vue").DefineComponent<{
|
|
23
24
|
tabs: {
|
|
@@ -29,6 +30,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
30
|
type: NumberConstructor;
|
|
30
31
|
default: number;
|
|
31
32
|
};
|
|
33
|
+
fullSize: {
|
|
34
|
+
type: PropType<boolean | undefined>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
32
37
|
}, {
|
|
33
38
|
tabsList: import("vue").ComputedRef<AtTabProp[]>;
|
|
34
39
|
selectedTab: import("vue").Ref<{
|
|
@@ -41,6 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
46
|
icon?: "AtAngleUpSolidIcon" | "AtAngleDownSolidIcon" | "AtCheckCircleSolidIcon" | "AtWarningSolidIcon" | "AtCircleXMarkSolidIcon" | "AtCircleMinusSolidIcon" | "AtCircleQuestionSolidIcon" | "AtArrowRightSolidIcon" | "AtAnalisesRegularIcon" | "AtAnalisesSolidIcon" | "AtAngleLeftSolidIcon" | "AtAngleRightSolidIcon" | "AtArrowDownSolidIcon" | "AtArrowLeftSolidIcon" | "AtArrowUpSolidIcon" | "AtArvoreRegularIcon" | "AtArvoreSolidIcon" | "AtCurralRegularIcon" | "AtCurralSolidIcon" | "AtBellRegularIcon" | "AtBellSolidIcon" | "AtBoldRegularIcon" | "AtBookmarkRegularIcon" | "AtBookmarkSolidIcon" | "AtCadastroRegularIcon" | "AtCadastroSolidIcon" | "AtCalculadoraDeCarbonoIcon" | "AtCalendarRegularIcon" | "AtCalendarSolidIcon" | "AtCarbonoSolidIcon" | "AtCentralAlertasRegularIcon" | "AtCentralAlertasSolidIcon" | "AtCentralFornecimentoRegularIcon" | "AtCentralFornecimentoSolidIcon" | "AtCheckCircleRegularIcon" | "AtCheckSolidIcon" | "AtChuvaRegularIcon" | "AtChuvaSolidIcon" | "AtCircleExclamationRegularIcon" | "AtCircleExclamationSolidIcon" | "AtCircleMinusRegularIcon" | "AtCirclePlusRegularIcon" | "AtCirclePlusSolidIcon" | "AtCircleQuestionRegularIcon" | "AtCircleXMarkRegularIcon" | "AtClipeRegularIcon" | "AtCloseSolidIcon" | "AtCloudDownloadRegularIcon" | "AtCloundDownloadSolidIcon" | "AtCofreDigitalRegularIcon" | "AtCofreDigitalSolidIcon" | "AtCopilotoRegularIcon" | "AtCopilotoSolidIcon" | "AtCopyRegularIcon" | "AtCopySolidIcon" | "AtDesmatamentoSolidIcon" | "AtDoubleArrowLeftSolidIcon" | "AtDoubleArrowRightSolidIcon" | "AtDownloadSolidIcon" | "AtDragOrderRegularIcon" | "AtDrawGeometryRegularIcon" | "AtDrawGeometrySolidIcon" | "AtDrawPolygonRegularIcon" | "AtEdicaoGeometriaRegularIcon" | "AtEdicaoGeometriaSolidIcon" | "AtEditRegularIcon" | "AtEditSolidIcon" | "AtEllipsesHorizontalSolidIcon" | "AtEllipsesVerticalSolidIcon" | "AtEnergyRegularIcon" | "AtEnergySolidIcon" | "AtExcelRegularIcon" | "AtExcelSolidIcon" | "AtExitRegularIcon" | "AtEyeAtivoRegularIcon" | "AtEyeAtivoSolidIcon" | "AtEyeInativoRegularIcon" | "AtEyeInativoSolidIcon" | "AtFavoritasRegularIcon" | "AtFavoritasSolidIcon" | "AtFenceRegularIcon" | "AtFenceSolidIcon" | "AtFilterRegularIcon" | "AtFilterSolidIcon" | "AtFireRegularIcon" | "AtFireSolidIcon" | "AtFolderRegularIcon" | "AtFolderSolidIcon" | "AtGasRegularIcon" | "AtGasSolidIcon" | "AtGeadaRegularIcon" | "AtGeadaSolidIcon" | "AtGraficoRegularIcon" | "AtGroupRegularIcon" | "AtGroupSolidIcon" | "AtHeadsetRegularIcon" | "AtHeadsetSolidIcon" | "AtHelpRegularIcon" | "AtHelpSolidIcon" | "AtHomeRegularIcon" | "AtHomeSolidIcon" | "AtIdentificarRegularIcon" | "AtIdentificarSolidIcon" | "AtImagensRegularIcon" | "AtImagensSolidIcon" | "AtInfoRegularIcon" | "AtInfoSolidIcon" | "AtItalicoRegularIcon" | "AtKeyboardRegularIcon" | "AtKeyboardSolidIcon" | "AtLayersRegularIcon" | "AtLayersSolidIcon" | "AtLegendaMapaRegularIcon" | "AtLegendaMapaSolidIcon" | "AtListRegularIcon" | "AtLocationCrosshairsRegularIcon" | "AtLocationCrosshairsSolidIcon" | "AtLockRegularIcon" | "AtLockSolidIcon" | "AtMailIcon" | "AtMapRegularIcon" | "AtMapSolidIcon" | "AtMarkerRegularIcon" | "AtMarkerSolidIcon" | "AtMirrorRegularIcon" | "AtMonitoramentoRegularIcon" | "AtMonitoramentoSolidIcon" | "AtMoveRegularIcon" | "AtOpacityRegularIcon" | "AtOrdenacaoRegularIcon" | "AtOrdenarRegularIcon" | "AtPdfRegularIcon" | "AtPdfSolidIcon" | "AtPinRegularIcon" | "AtPinSolidIcon" | "AtPlantRegularIcon" | "AtPlantSolidIcon" | "AtPrintSolidIcon" | "AtRatingRegularIcon" | "AtRatingSolidIcon" | "AtRefreshSolidIcon" | "AtUserRegularIcon" | "AtRenovabioSolidIcon" | "AtRulerRegularIcon" | "AtRulerSolidIcon" | "AtSateliteRegularIcon" | "AtSateliteSolidIcon" | "AtSaveRegularIcon" | "AtSaveSolidIcon" | "AtSearchIcon" | "AtSecaRegularIcon" | "AtSecaSolidIcon" | "AtSettingsRegularIcon" | "AtSettingsSolidIcon" | "AtSobreposicaoRegularIcon" | "AtSobreposicaoSolidIcon" | "AtSublinhadoRegularIcon" | "AtSubterritorioRegularIcon" | "AtSubterritorioSolidIcon" | "AtTelephoneIcon" | "AtTemperatureRegularIcon" | "AtTemperatureSolidIcon" | "AtTempestadeRegularIcon" | "AtTempestadeSolidIcon" | "AtTimelineRegularIcon" | "AtTimelineSolidIcon" | "AtToolRegularIcon" | "AtToolSolidIcon" | "AtTrashRegularIcon" | "AtTrashSolidIcon" | "AtUnlockRegularIcon" | "AtUnlockSolidIcon" | "AtUploadSolidIcon" | "AtUserMinusRegularIcon" | "AtUserMinusSolidIcon" | "AtUserPlusRegularIcon" | "AtUserPlusSolidIcon" | "AtUserSolidIcon" | "AtVentosRegularIcon" | "AtWarningRegularIcon" | "AtWorldSolidIcon" | "AtWorldRegularIcon" | "AtZoomInAreaSolidIcon" | "AtFlagBrazilIcon" | "AtFlagSpainIcon" | "AtFlagUnitedStatesIcon" | undefined;
|
|
42
47
|
}>;
|
|
43
48
|
selectedTabIndexRef: import("vue").Ref<number>;
|
|
49
|
+
contentStyle: import("vue").Ref<any>;
|
|
44
50
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
51
|
tabs: {
|
|
46
52
|
type: PropType<AtTabProp[]>;
|
|
@@ -51,7 +57,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
57
|
type: NumberConstructor;
|
|
52
58
|
default: number;
|
|
53
59
|
};
|
|
60
|
+
fullSize: {
|
|
61
|
+
type: PropType<boolean | undefined>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
54
64
|
}>>, {
|
|
65
|
+
fullSize: boolean | undefined;
|
|
55
66
|
tabs: AtTabProp[];
|
|
56
67
|
selectedTabIndex: number;
|
|
57
68
|
}, {}>;
|
package/dist/Tabs/Tabs.vue.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import m from "./Tabs.vue2.js";
|
|
2
|
+
import { resolveComponent as p, openBlock as n, createElementBlock as c, createElementVNode as a, Fragment as _, renderList as f, createBlock as l, normalizeStyle as u, resolveDynamicComponent as T } from "vue";
|
|
3
3
|
import "./Tabs.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import b from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = { class: "Tabs_container" }, y = {
|
|
6
6
|
class: "Tabs_tablist",
|
|
7
7
|
role: "tablist",
|
|
8
8
|
"aria-orientation": "horizontal",
|
|
9
9
|
"tab-index": "0"
|
|
10
|
-
}
|
|
11
|
-
function B(t, v, $, C, I
|
|
12
|
-
var
|
|
13
|
-
const
|
|
14
|
-
return n(), c("section",
|
|
15
|
-
a("div",
|
|
16
|
-
(n(!0), c(
|
|
10
|
+
};
|
|
11
|
+
function B(t, h, v, $, C, I) {
|
|
12
|
+
var i;
|
|
13
|
+
const r = p("TabButton");
|
|
14
|
+
return n(), c("section", k, [
|
|
15
|
+
a("div", y, [
|
|
16
|
+
(n(!0), c(_, null, f(t.tabsList, (e, o) => (n(), l(r, {
|
|
17
17
|
key: o,
|
|
18
18
|
"is-selected": o === t.selectedTabIndexRef,
|
|
19
19
|
title: e.title,
|
|
@@ -21,17 +21,21 @@ function B(t, v, $, C, I, y) {
|
|
|
21
21
|
icon: e.icon,
|
|
22
22
|
"data-index": o,
|
|
23
23
|
"on-click": (d) => {
|
|
24
|
-
var
|
|
25
|
-
(
|
|
24
|
+
var s;
|
|
25
|
+
(s = e.onClick) == null || s.call(e, d), t.selectedTabIndexRef = o;
|
|
26
26
|
}
|
|
27
27
|
}, null, 8, ["is-selected", "title", "notifications", "icon", "data-index", "on-click"]))), 128))
|
|
28
28
|
]),
|
|
29
|
-
a("main",
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
a("main", {
|
|
30
|
+
id: "tab-content",
|
|
31
|
+
class: "Tabs_content",
|
|
32
|
+
style: u(t.contentStyle)
|
|
33
|
+
}, [
|
|
34
|
+
(n(), l(T((i = t.selectedTab) == null ? void 0 : i.slot)))
|
|
35
|
+
], 4)
|
|
32
36
|
]);
|
|
33
37
|
}
|
|
34
|
-
const
|
|
38
|
+
const S = /* @__PURE__ */ b(m, [["render", B], ["__scopeId", "data-v-d99c9ce4"]]);
|
|
35
39
|
export {
|
|
36
|
-
|
|
40
|
+
S as default
|
|
37
41
|
};
|
package/dist/Tabs/Tabs.vue2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const T =
|
|
1
|
+
import { defineComponent as x, ref as s, computed as h, onMounted as g, watch as f } from "vue";
|
|
2
|
+
import p from "./Tab/Tab.vue.js";
|
|
3
|
+
const T = x({
|
|
4
4
|
name: "AtTabs",
|
|
5
5
|
components: {
|
|
6
|
-
TabButton:
|
|
6
|
+
TabButton: p
|
|
7
7
|
},
|
|
8
8
|
props: {
|
|
9
9
|
tabs: {
|
|
@@ -14,34 +14,42 @@ const T = f({
|
|
|
14
14
|
selectedTabIndex: {
|
|
15
15
|
type: Number,
|
|
16
16
|
default: 0
|
|
17
|
+
},
|
|
18
|
+
fullSize: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
setup(a) {
|
|
20
|
-
const e =
|
|
21
|
-
|
|
24
|
+
const e = s(a.selectedTabIndex ?? 0), o = window.history.state, t = h(() => a.tabs), d = s(a.tabs[e.value ?? 0]), c = s(), r = () => {
|
|
25
|
+
var i;
|
|
26
|
+
const l = o == null ? void 0 : o.current, u = t.value.findIndex((m) => m.routeName === l);
|
|
22
27
|
u !== -1 ? e.value = u : e.value = 0;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
const n = (i = document.getElementById("tab-content")) == null ? void 0 : i.getBoundingClientRect(), b = window.innerHeight - ((n == null ? void 0 : n.top) ?? 0) - 24;
|
|
29
|
+
a.fullSize && (c.value = { height: `${b}px` });
|
|
30
|
+
}, v = () => {
|
|
31
|
+
const l = t.value.findIndex(
|
|
32
|
+
(u, n) => n === e.value
|
|
26
33
|
);
|
|
27
|
-
|
|
34
|
+
l !== -1 ? e.value = l : e.value = 0;
|
|
28
35
|
};
|
|
29
|
-
return
|
|
36
|
+
return g(() => {
|
|
30
37
|
r();
|
|
31
|
-
}),
|
|
38
|
+
}), f(
|
|
32
39
|
() => e.value,
|
|
33
40
|
() => {
|
|
34
41
|
d.value = t.value[e.value];
|
|
35
42
|
}
|
|
36
|
-
),
|
|
43
|
+
), f(
|
|
37
44
|
() => t.value,
|
|
38
45
|
() => {
|
|
39
|
-
|
|
46
|
+
v();
|
|
40
47
|
}
|
|
41
48
|
), {
|
|
42
49
|
tabsList: t,
|
|
43
50
|
selectedTab: d,
|
|
44
|
-
selectedTabIndexRef: e
|
|
51
|
+
selectedTabIndexRef: e,
|
|
52
|
+
contentStyle: c
|
|
45
53
|
};
|
|
46
54
|
}
|
|
47
55
|
});
|