@agrotools1/at-components 0.6.28 → 0.6.31
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/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +1 -1
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue2.js +5 -3
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.d.ts +1 -0
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +7 -7
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue2.js +11 -7
- package/dist/Dropdown/Dropdown.core.vue.js +2 -2
- package/dist/Dropdown/Dropdown.core.vue2.js +57 -48
- package/dist/Dropdown/Dropdown.core.vue3.js +2 -2
- package/dist/Modal/Modal.vue2.js +4 -2
- package/dist/Stepper/Stepper.vue.js +37 -37
- package/dist/Stepper/Stepper.vue2.js +53 -48
- package/dist/Tooltip/Tooltip.vue.js +5 -5
- package/dist/Tooltip/Tooltip.vue2.js +124 -109
- package/dist/Tooltip/Tooltip.vue3.js +2 -2
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +2 -2
- package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +55 -44
- package/dist/Upload/SingleUpload/SingleUpload.vue.js +4 -4
- package/dist/Upload/SingleUpload/SingleUpload.vue2.js +45 -34
- package/dist/index.d.ts +1 -0
- package/dist/index.js +36 -34
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -33,10 +33,12 @@ const c = o({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["update:datePickerMode", "simpleArrows"],
|
|
36
|
-
setup(e,
|
|
36
|
+
setup(e, r) {
|
|
37
37
|
return {
|
|
38
|
-
updateDatePickerMode: (
|
|
39
|
-
|
|
38
|
+
updateDatePickerMode: (t) => {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
e.datePickerMode === t && (t = "calendar"), r.emit("update:datePickerMode", t);
|
|
41
|
+
}, 100);
|
|
40
42
|
}
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -44,6 +44,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
44
44
|
changingIndex: import('vue').Ref<boolean>;
|
|
45
45
|
currentPage: import('vue').ComputedRef<ISelection[]>;
|
|
46
46
|
displayElements: import('vue').ComputedRef<ISelection[][]>;
|
|
47
|
+
delayedEmit: (elValue: string) => void;
|
|
47
48
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("updateCurrentPageIndex" | "elementSelected" | "updateCurrentSelector")[], "updateCurrentPageIndex" | "elementSelected" | "updateCurrentSelector", import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
49
|
elements: {
|
|
49
50
|
required: true;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import o from "./DatePickerListSelector.vue2.js";
|
|
2
2
|
import { openBlock as r, createElementBlock as n, Fragment as a, renderList as s, normalizeClass as i, normalizeStyle as c, toDisplayString as l } from "vue";
|
|
3
3
|
import "./DatePickerListSelector.scss.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function p(t, _, f,
|
|
7
|
-
return r(), n("div",
|
|
4
|
+
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = { class: "AT-DATEPICKER_SELECTOR_container" }, u = ["disabled", "onClick"];
|
|
6
|
+
function p(t, _, f, k, v, C) {
|
|
7
|
+
return r(), n("div", m, [
|
|
8
8
|
(r(!0), n(a, null, s(t.currentPage, (e) => (r(), n("button", {
|
|
9
9
|
key: e.value,
|
|
10
10
|
class: i({ current: e.value === t.currentPageValue }),
|
|
11
11
|
disabled: !e.name,
|
|
12
12
|
style: c({ width: `${100 / t.numColumns}%` }),
|
|
13
|
-
onClick: (
|
|
13
|
+
onClick: (E) => t.delayedEmit(e.value)
|
|
14
14
|
}, l(e.name), 15, u))), 128))
|
|
15
15
|
]);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const h = /* @__PURE__ */ d(o, [["render", p], ["__scopeId", "data-v-6bc96a05"]]);
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
h as default
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as v, computed as o, onMounted as h, watch as c } from "vue";
|
|
2
|
+
const I = y({
|
|
3
3
|
name: "AtDatePickerListSelector",
|
|
4
4
|
props: {
|
|
5
5
|
elements: {
|
|
@@ -44,9 +44,9 @@ const x = p({
|
|
|
44
44
|
if (t !== void 0 && t.length < e.sizeLimit) {
|
|
45
45
|
const i = Array.from({
|
|
46
46
|
length: e.sizeLimit - t.length
|
|
47
|
-
}).map((
|
|
47
|
+
}).map((P, p) => ({
|
|
48
48
|
name: "",
|
|
49
|
-
value: String(
|
|
49
|
+
value: String(p)
|
|
50
50
|
}));
|
|
51
51
|
a.push(t.concat(i));
|
|
52
52
|
} else
|
|
@@ -60,10 +60,14 @@ const x = p({
|
|
|
60
60
|
), a = u.value.indexOf(r);
|
|
61
61
|
l("updateCurrentPageIndex", a);
|
|
62
62
|
}
|
|
63
|
+
}, g = (n) => {
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
l("elementSelected", n);
|
|
66
|
+
}, 100);
|
|
63
67
|
}, u = o(
|
|
64
68
|
() => f(e.elements, e.sizeLimit)
|
|
65
69
|
), d = o(() => e.currentPageIndex >= 0 ? u.value[e.currentPageIndex] : u.value[0]);
|
|
66
|
-
return
|
|
70
|
+
return h(() => m()), c(
|
|
67
71
|
() => e.currentPageIndex,
|
|
68
72
|
(n) => {
|
|
69
73
|
n < 0 ? l("updateCurrentPageIndex", 0) : n >= u.value.length && l("updateCurrentPageIndex", u.value.length - 1);
|
|
@@ -78,9 +82,9 @@ const x = p({
|
|
|
78
82
|
}
|
|
79
83
|
},
|
|
80
84
|
{ deep: !0, immediate: !0 }
|
|
81
|
-
), { changingIndex: s, currentPage: d, displayElements: u };
|
|
85
|
+
), { changingIndex: s, currentPage: d, displayElements: u, delayedEmit: g };
|
|
82
86
|
}
|
|
83
87
|
});
|
|
84
88
|
export {
|
|
85
|
-
|
|
89
|
+
I as default
|
|
86
90
|
};
|
|
@@ -35,7 +35,7 @@ function _(e, t, k, y, w, E) {
|
|
|
35
35
|
], 2)
|
|
36
36
|
]);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const h = /* @__PURE__ */ $(a, [["render", _], ["__scopeId", "data-v-fa8d077e"]]);
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
h as default
|
|
41
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as q, ref as l, watch as F, onMounted as H, computed as U } from "vue";
|
|
2
|
+
import G from "./DropdownContent/DropdownContent.vue.js";
|
|
3
|
+
const M = q({
|
|
4
4
|
name: "AtDropdown",
|
|
5
|
-
components: { DropdownContent:
|
|
5
|
+
components: { DropdownContent: G },
|
|
6
6
|
props: {
|
|
7
7
|
isOpen: {
|
|
8
8
|
type: Boolean,
|
|
@@ -22,66 +22,75 @@ const q = A({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:isOpen"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
var
|
|
25
|
+
setup(r, { emit: f }) {
|
|
26
|
+
const u = l(!1);
|
|
27
|
+
u.value = r.isOpen;
|
|
28
|
+
const i = l(), a = l(), s = l(), h = l(0), n = l(), v = l(), g = () => {
|
|
29
|
+
var w, x, O, S, C, b, z, D, W, $, P, B;
|
|
30
30
|
h.value = window.scrollY;
|
|
31
|
-
const
|
|
31
|
+
const o = (x = (w = a.value) == null ? void 0 : w.children[0]) == null ? void 0 : x.querySelector(
|
|
32
32
|
".AT-INPUT_error-message"
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
const
|
|
33
|
+
), e = 1 / (Number.parseFloat((O = window.getComputedStyle(document.body)) == null ? void 0 : O.zoom) || 1);
|
|
34
|
+
n.value = (S = a.value) == null ? void 0 : S.getBoundingClientRect();
|
|
35
|
+
const I = {
|
|
36
|
+
y: h.value * e
|
|
37
|
+
}, t = {
|
|
38
|
+
top: (((C = n.value) == null ? void 0 : C.top) ?? 0) * e,
|
|
39
|
+
right: (((b = n.value) == null ? void 0 : b.right) ?? 0) * e,
|
|
40
|
+
bottom: (((z = n.value) == null ? void 0 : z.bottom) ?? 0) * e,
|
|
41
|
+
left: (((D = n.value) == null ? void 0 : D.left) ?? 0) * e,
|
|
42
|
+
width: (((W = n.value) == null ? void 0 : W.width) ?? 0) * e,
|
|
43
|
+
height: ((($ = n.value) == null ? void 0 : $.height) ?? 0) * e
|
|
44
|
+
}, y = ((t == null ? void 0 : t.bottom) ?? 0) + ((o == null ? void 0 : o.clientHeight) ?? 0) + 8 + I.y, L = {
|
|
36
45
|
left: () => {
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
x: (
|
|
40
|
-
y
|
|
41
|
-
},
|
|
42
|
-
top: `${((c =
|
|
43
|
-
left: `${((
|
|
46
|
+
var c, p;
|
|
47
|
+
s.value = {
|
|
48
|
+
x: (t == null ? void 0 : t.left) ?? 0,
|
|
49
|
+
y
|
|
50
|
+
}, v.value = {
|
|
51
|
+
top: `${((c = s.value) == null ? void 0 : c.y) || 0}px`,
|
|
52
|
+
left: `${((p = s.value) == null ? void 0 : p.x) || 0}px`
|
|
44
53
|
};
|
|
45
54
|
},
|
|
46
55
|
right: () => {
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
x: ((
|
|
50
|
-
y
|
|
51
|
-
},
|
|
52
|
-
top: `${((
|
|
53
|
-
left: `${((
|
|
56
|
+
var c, p, T, Y;
|
|
57
|
+
s.value = {
|
|
58
|
+
x: ((t == null ? void 0 : t.left) ?? 0) - ((((c = i.value) == null ? void 0 : c.clientWidth) ?? 0) - (((p = a.value) == null ? void 0 : p.clientWidth) ?? 0)),
|
|
59
|
+
y
|
|
60
|
+
}, v.value = {
|
|
61
|
+
top: `${((T = s.value) == null ? void 0 : T.y) || 0}px`,
|
|
62
|
+
left: `${((Y = s.value) == null ? void 0 : Y.x) || 0}px`
|
|
54
63
|
};
|
|
55
64
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
65
|
+
}, N = window.innerWidth - ((t == null ? void 0 : t.right) ?? 0) <= (((P = i.value) == null ? void 0 : P.offsetWidth) ?? 0) ? "right" : r.position;
|
|
66
|
+
L[N](), r.fullSize && (v.value.width = `${((B = a.value) == null ? void 0 : B.clientWidth) ?? 0}px`);
|
|
58
67
|
};
|
|
59
|
-
|
|
60
|
-
() =>
|
|
61
|
-
(
|
|
62
|
-
|
|
68
|
+
F(
|
|
69
|
+
() => r.isOpen,
|
|
70
|
+
(o) => {
|
|
71
|
+
u.value = o, o && setTimeout(() => g(), 10);
|
|
63
72
|
}
|
|
64
73
|
);
|
|
65
|
-
const
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
},
|
|
74
|
+
const _ = async () => f("update:isOpen", !0), m = async () => f("update:isOpen", !1), k = (o) => {
|
|
75
|
+
var d, e;
|
|
76
|
+
u.value && !((d = i == null ? void 0 : i.value) != null && d.contains(o.target)) && !((e = a.value) != null && e.contains(o.target)) && m();
|
|
77
|
+
}, A = () => f("update:isOpen", !u.value);
|
|
69
78
|
H(() => {
|
|
70
|
-
document.addEventListener("click",
|
|
79
|
+
document.addEventListener("click", k), window.addEventListener("resize", g), g();
|
|
71
80
|
});
|
|
72
|
-
const
|
|
81
|
+
const E = U(() => ["dialog"]);
|
|
73
82
|
return {
|
|
74
|
-
dialogIsOpen:
|
|
75
|
-
getDialogClass:
|
|
76
|
-
dialogElem:
|
|
77
|
-
triggerElem:
|
|
78
|
-
dialogStyle:
|
|
79
|
-
toggleDialog:
|
|
80
|
-
openDialog:
|
|
81
|
-
closeDialog:
|
|
83
|
+
dialogIsOpen: u,
|
|
84
|
+
getDialogClass: E,
|
|
85
|
+
dialogElem: i,
|
|
86
|
+
triggerElem: a,
|
|
87
|
+
dialogStyle: v,
|
|
88
|
+
toggleDialog: A,
|
|
89
|
+
openDialog: _,
|
|
90
|
+
closeDialog: m
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
});
|
|
85
94
|
export {
|
|
86
|
-
|
|
95
|
+
M as default
|
|
87
96
|
};
|
package/dist/Modal/Modal.vue2.js
CHANGED
|
@@ -40,6 +40,8 @@ import "../Menu/Menu.vue3.js";
|
|
|
40
40
|
import "./Modal.vue3.js";
|
|
41
41
|
import "../Notifications/Notifications.vue2.js";
|
|
42
42
|
import "../Notifications/Notifications.vue3.js";
|
|
43
|
+
import "../Paginator/Paginator.vue2.js";
|
|
44
|
+
import "../Paginator/Paginator.vue3.js";
|
|
43
45
|
import "../ProgressBar/ProgressBar.vue2.js";
|
|
44
46
|
import "../ProgressBar/ProgressBar.vue3.js";
|
|
45
47
|
import "../RadioButton/RadioButton.vue2.js";
|
|
@@ -70,7 +72,7 @@ import "../Tooltip/Tooltip.vue3.js";
|
|
|
70
72
|
import "../Upload/Upload.vue2.js";
|
|
71
73
|
import "../Upload/Upload.vue3.js";
|
|
72
74
|
import f from "./images/cross.svg.js";
|
|
73
|
-
const
|
|
75
|
+
const It = a({
|
|
74
76
|
name: "AtModal",
|
|
75
77
|
components: { AtButton: l, AtCheckbox: u },
|
|
76
78
|
props: {
|
|
@@ -132,5 +134,5 @@ const zt = a({
|
|
|
132
134
|
}
|
|
133
135
|
});
|
|
134
136
|
export {
|
|
135
|
-
|
|
137
|
+
It as default
|
|
136
138
|
};
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as m, openBlock as
|
|
1
|
+
import I from "./Stepper.vue2.js";
|
|
2
|
+
import { resolveComponent as m, openBlock as t, createElementBlock as p, normalizeClass as o, createElementVNode as a, normalizeStyle as C, Fragment as v, renderList as f, createBlock as n, resolveDynamicComponent as c, createCommentVNode as i, toDisplayString as l, createVNode as y, withCtx as d, createTextVNode as u } from "vue";
|
|
3
3
|
import "./Stepper.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
function A(e,
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
-
class:
|
|
4
|
+
import S from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function A(e, E, g, w, N, b) {
|
|
6
|
+
const z = m("AtParagraph"), h = m("AtTitle");
|
|
7
|
+
return t(), p("div", {
|
|
8
|
+
class: o(e.$props.direction === "vertical" ? "stepper-vertical" : "")
|
|
9
9
|
}, [
|
|
10
10
|
a("div", {
|
|
11
11
|
ref: "stepperElementCollection",
|
|
12
|
-
class:
|
|
12
|
+
class: o([
|
|
13
13
|
"stepper",
|
|
14
14
|
e.$props.direction === "vertical" ? "vertical-stepper" : "horizontal-stepper"
|
|
15
15
|
])
|
|
16
16
|
}, [
|
|
17
17
|
a("div", {
|
|
18
|
-
class:
|
|
18
|
+
class: o([
|
|
19
19
|
"stepper-line",
|
|
20
20
|
e.$props.direction === "vertical" ? "vertical-stepper-line" : "horizontal-stepper-line"
|
|
21
21
|
]),
|
|
22
|
-
style:
|
|
22
|
+
style: C(e.handleDirection)
|
|
23
23
|
}, null, 6),
|
|
24
|
-
(
|
|
25
|
-
key:
|
|
24
|
+
(t(!0), p(v, null, f(e.stepper, (r, s) => (t(), p("div", {
|
|
25
|
+
key: s,
|
|
26
26
|
ref_for: !0,
|
|
27
27
|
ref: "stepperItemElementCollection",
|
|
28
|
-
class:
|
|
28
|
+
class: o(["stepper-item", {
|
|
29
29
|
"stepper-item-horizontal": e.$props.direction === "horizontal" ? !0 : ""
|
|
30
30
|
}])
|
|
31
31
|
}, [
|
|
32
32
|
a("div", {
|
|
33
|
-
class:
|
|
34
|
-
current: e.$props.step ===
|
|
33
|
+
class: o(["stepper-item-counter", {
|
|
34
|
+
current: e.$props.step === s,
|
|
35
35
|
success: r.isSuccess === !0 && r.isError === !1,
|
|
36
36
|
error: r.isError
|
|
37
37
|
}])
|
|
38
38
|
}, [
|
|
39
|
-
e
|
|
39
|
+
e.showStepIcon(r, s) ? (t(), n(c(r.stepIcon), {
|
|
40
40
|
key: 0,
|
|
41
41
|
size: "20",
|
|
42
42
|
class: "step-icon",
|
|
43
43
|
color: "var(--at-primary-color-1)"
|
|
44
|
-
})) :
|
|
45
|
-
e
|
|
44
|
+
})) : i("", !0),
|
|
45
|
+
e.showStepInactiveItem(r, s) ? (t(), n(c(r.stepInactiveIcon), {
|
|
46
46
|
key: 1,
|
|
47
47
|
size: "20",
|
|
48
48
|
color: "var(--at-dark-grey)"
|
|
49
|
-
})) :
|
|
50
|
-
r.isSuccess && r.isError === !1 ? (
|
|
49
|
+
})) : i("", !0),
|
|
50
|
+
r.isSuccess && r.isError === !1 ? (t(), n(c(e.AtCheckCircleSolidIcon), {
|
|
51
51
|
key: 2,
|
|
52
52
|
size: "20",
|
|
53
53
|
color: "var(--at-white)"
|
|
54
|
-
})) :
|
|
55
|
-
r.isError ? (
|
|
54
|
+
})) : i("", !0),
|
|
55
|
+
r.isError ? (t(), n(c(e.AtWarningSolidIcon), {
|
|
56
56
|
key: 3,
|
|
57
57
|
id: "errorIcon",
|
|
58
58
|
size: "20",
|
|
59
59
|
color: "var(--at-white )"
|
|
60
|
-
})) :
|
|
61
|
-
e
|
|
60
|
+
})) : i("", !0),
|
|
61
|
+
e.showCurrentNumber(r) ? (t(), p("span", {
|
|
62
62
|
key: 4,
|
|
63
|
-
class:
|
|
64
|
-
},
|
|
63
|
+
class: o(["number", e.$props.step === s ? "current-number" : ""])
|
|
64
|
+
}, l(s + 1), 3)) : i("", !0)
|
|
65
65
|
], 2),
|
|
66
66
|
a("div", {
|
|
67
|
-
class:
|
|
67
|
+
class: o(["stepper-item-counter-content", {
|
|
68
68
|
"stepper-item-counter-content-horizontal": e.$props.direction === "horizontal"
|
|
69
69
|
}])
|
|
70
70
|
}, [
|
|
71
|
-
|
|
71
|
+
y(z, {
|
|
72
72
|
size: "p2",
|
|
73
73
|
weight: "bold",
|
|
74
74
|
class: "stepper-item-counter-content-title"
|
|
75
75
|
}, {
|
|
76
76
|
default: d(() => [
|
|
77
|
-
u(
|
|
77
|
+
u(l(r.title), 1)
|
|
78
78
|
]),
|
|
79
79
|
_: 2
|
|
80
80
|
}, 1024),
|
|
81
|
-
Array.isArray(r.description) ? (
|
|
82
|
-
|
|
81
|
+
Array.isArray(r.description) ? (t(!0), p(v, { key: 0 }, f(r.description, (k, $) => (t(), p("div", { key: $ }, [
|
|
82
|
+
y(h, {
|
|
83
83
|
as: "h6",
|
|
84
|
-
class:
|
|
84
|
+
class: o(["stepper-item-counter-content-description", {
|
|
85
85
|
"horizontal-step-item-description": e.$props.direction === "horizontal"
|
|
86
86
|
}])
|
|
87
87
|
}, {
|
|
88
88
|
default: d(() => [
|
|
89
|
-
u(
|
|
89
|
+
u(l(k), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 2
|
|
92
92
|
}, 1032, ["class"])
|
|
93
|
-
]))), 128)) : (
|
|
93
|
+
]))), 128)) : (t(), n(h, {
|
|
94
94
|
key: 1,
|
|
95
95
|
as: "h6",
|
|
96
|
-
class:
|
|
96
|
+
class: o(["stepper-item-counter-content-description", {
|
|
97
97
|
"horizontal-step-item-description": e.$props.direction === "horizontal"
|
|
98
98
|
}])
|
|
99
99
|
}, {
|
|
100
100
|
default: d(() => [
|
|
101
|
-
u(
|
|
101
|
+
u(l(r.description), 1)
|
|
102
102
|
]),
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["class"]))
|
|
@@ -107,7 +107,7 @@ function A(e, I, b, g, w, N) {
|
|
|
107
107
|
], 2)
|
|
108
108
|
], 2);
|
|
109
109
|
}
|
|
110
|
-
const P = /* @__PURE__ */
|
|
110
|
+
const P = /* @__PURE__ */ S(I, [["render", A], ["__scopeId", "data-v-3fd92058"]]);
|
|
111
111
|
export {
|
|
112
112
|
P as default
|
|
113
113
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AtCheckCircleSolidIcon as
|
|
3
|
-
import { AtCircleQuestionSolidIcon as
|
|
4
|
-
import { AtWarningSolidIcon as
|
|
1
|
+
import { defineComponent as g, ref as c, reactive as I, watch as A, onMounted as C, watchEffect as b, computed as E } from "vue";
|
|
2
|
+
import { AtCheckCircleSolidIcon as d } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCheckCircleSolidIcon/index.js";
|
|
3
|
+
import { AtCircleQuestionSolidIcon as i } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtCircleQuestionSolidIcon/index.js";
|
|
4
|
+
import { AtWarningSolidIcon as p } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtWarningSolidIcon/index.js";
|
|
5
5
|
import { AtTipograph as h } from "../Tipograph/index.js";
|
|
6
|
-
const
|
|
6
|
+
const W = g({
|
|
7
7
|
name: "Stepper",
|
|
8
8
|
components: {
|
|
9
9
|
AtTitle: h.Title,
|
|
10
10
|
AtParagraph: h.Paragraph,
|
|
11
|
-
AtCheckCircleSolidIcon:
|
|
12
|
-
AtCircleQuestionSolidIcon:
|
|
13
|
-
AtWarningSolidIcon:
|
|
11
|
+
AtCheckCircleSolidIcon: d,
|
|
12
|
+
AtCircleQuestionSolidIcon: i,
|
|
13
|
+
AtWarningSolidIcon: p
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
steps: {
|
|
@@ -18,22 +18,22 @@ const q = v({
|
|
|
18
18
|
default: () => [
|
|
19
19
|
{
|
|
20
20
|
title: "Step 1",
|
|
21
|
-
stepIcon:
|
|
22
|
-
stepInactiveIcon:
|
|
21
|
+
stepIcon: i,
|
|
22
|
+
stepInactiveIcon: i,
|
|
23
23
|
isSuccess: !1,
|
|
24
24
|
isError: !1
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
title: "Step 2",
|
|
28
|
-
stepIcon:
|
|
29
|
-
stepInactiveIcon:
|
|
28
|
+
stepIcon: i,
|
|
29
|
+
stepInactiveIcon: i,
|
|
30
30
|
isSuccess: !1,
|
|
31
31
|
isError: !1
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
title: "Step 3",
|
|
35
|
-
stepIcon:
|
|
36
|
-
stepInactiveIcon:
|
|
35
|
+
stepIcon: i,
|
|
36
|
+
stepInactiveIcon: i,
|
|
37
37
|
isSuccess: !1,
|
|
38
38
|
isError: !1
|
|
39
39
|
}
|
|
@@ -44,7 +44,7 @@ const q = v({
|
|
|
44
44
|
type: Number,
|
|
45
45
|
default: 0,
|
|
46
46
|
required: !0,
|
|
47
|
-
validator: (
|
|
47
|
+
validator: (t) => typeof t == "number"
|
|
48
48
|
},
|
|
49
49
|
direction: {
|
|
50
50
|
type: String,
|
|
@@ -55,52 +55,57 @@ const q = v({
|
|
|
55
55
|
type: Boolean,
|
|
56
56
|
required: !1,
|
|
57
57
|
default: !1,
|
|
58
|
-
validator: (
|
|
58
|
+
validator: (t) => typeof t == "boolean"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
setup(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
() =>
|
|
61
|
+
setup(t) {
|
|
62
|
+
const n = c(t.steps), f = c(null), r = I([]), l = c(0), o = c("");
|
|
63
|
+
A(
|
|
64
|
+
() => t.step,
|
|
65
65
|
() => {
|
|
66
|
-
|
|
66
|
+
t.step <= n.value.length && t.step >= 0 && a();
|
|
67
67
|
}
|
|
68
|
-
),
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
|
|
68
|
+
), C(() => {
|
|
69
|
+
const e = f.value, s = r[r.length - 1];
|
|
70
|
+
if (t.direction === "vertical")
|
|
71
|
+
l.value = (e == null ? void 0 : e.offsetHeight) - (s == null ? void 0 : s.offsetHeight) + 34;
|
|
72
72
|
else {
|
|
73
|
-
const u =
|
|
74
|
-
|
|
73
|
+
const u = r[0];
|
|
74
|
+
l.value = (u == null ? void 0 : u.offsetWidth) * (n.value.length - 1);
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
t.step >= 0 && a();
|
|
77
77
|
});
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
for (;
|
|
81
|
-
|
|
78
|
+
const a = () => {
|
|
79
|
+
let e = t.step;
|
|
80
|
+
for (; e !== 0; )
|
|
81
|
+
e--, e <= n.value.length - 1 && n.value[e].isError === !1 && (n.value[e].isSuccess = !0);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
|
|
83
|
+
b(() => {
|
|
84
|
+
if (t.direction === "vertical") {
|
|
85
|
+
const e = `height:${t.steps.length > 1 ? l.value - 34 : 0}px; left: 15px; right: auto;`;
|
|
86
|
+
o.value = e;
|
|
87
87
|
} else {
|
|
88
|
-
const
|
|
89
|
-
|
|
88
|
+
const e = 18 * n.value.length, s = `width:${t.steps.length > 1 ? l.value + e : 0}px; left: 42px;`;
|
|
89
|
+
o.value = s;
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
t.steps && (n.value = t.steps ?? []);
|
|
92
|
+
});
|
|
93
|
+
const S = (e, s) => t.step !== s && e.isSuccess === !1 && e.isError === !1 && t.numberedStep === !1, v = (e, s) => t.step === s && e.isSuccess === !1 && e.isError === !1 && t.numberedStep === !1, m = (e) => t.numberedStep && e.isSuccess === !1 && e.isError === !1;
|
|
94
|
+
return {
|
|
95
|
+
stepper: E(() => n.value),
|
|
96
|
+
incrementStep: a,
|
|
97
|
+
handleDirection: o,
|
|
98
|
+
barSize: l,
|
|
97
99
|
stepperElementCollection: f,
|
|
98
|
-
stepperItemElementCollection:
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
stepperItemElementCollection: r,
|
|
101
|
+
showStepInactiveItem: S,
|
|
102
|
+
showStepIcon: v,
|
|
103
|
+
showCurrentNumber: m,
|
|
104
|
+
AtCheckCircleSolidIcon: d,
|
|
105
|
+
AtWarningSolidIcon: p
|
|
101
106
|
};
|
|
102
107
|
}
|
|
103
108
|
});
|
|
104
109
|
export {
|
|
105
|
-
|
|
110
|
+
W as default
|
|
106
111
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import u from "./Tooltip.vue2.js";
|
|
2
|
-
import { resolveComponent as n, openBlock as l, createElementBlock as s, createElementVNode as r, renderSlot as m, createBlock as f, Teleport as
|
|
2
|
+
import { resolveComponent as n, openBlock as l, createElementBlock as s, createElementVNode as r, renderSlot as m, createBlock as f, Teleport as c, normalizeClass as y, normalizeStyle as v, createVNode as a, withCtx as C, createCommentVNode as i } from "vue";
|
|
3
3
|
import "./Tooltip.vue3.js";
|
|
4
4
|
import M from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const k = {
|
|
@@ -9,7 +9,7 @@ const k = {
|
|
|
9
9
|
ref: "tooltipChildren",
|
|
10
10
|
class: "at-slot-content"
|
|
11
11
|
}, w = ["innerHTML"];
|
|
12
|
-
function T(o, e, $,
|
|
12
|
+
function T(o, e, $, S, b, g) {
|
|
13
13
|
const p = n("AtCopySolidIcon"), d = n("AtParagraph");
|
|
14
14
|
return l(), s("div", {
|
|
15
15
|
class: "at-tooltip-container",
|
|
@@ -21,11 +21,11 @@ function T(o, e, $, b, S, g) {
|
|
|
21
21
|
m(o.$slots, "default", {}, void 0, !0)
|
|
22
22
|
], 512)
|
|
23
23
|
], 512),
|
|
24
|
-
(l(), f(
|
|
24
|
+
(l(), f(c, { to: "body" }, [
|
|
25
25
|
o.visible ? (l(), s("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
ref: "tooltip",
|
|
28
|
-
class:
|
|
28
|
+
class: y(["at-tooltip", o.tooltipClass]),
|
|
29
29
|
style: v(o.tooltipStyle),
|
|
30
30
|
onMouseleave: e[1] || (e[1] = (...t) => o.handleMouseOut && o.handleMouseOut(...t))
|
|
31
31
|
}, [
|
|
@@ -57,7 +57,7 @@ function T(o, e, $, b, S, g) {
|
|
|
57
57
|
]))
|
|
58
58
|
], 32);
|
|
59
59
|
}
|
|
60
|
-
const F = /* @__PURE__ */ M(u, [["render", T], ["__scopeId", "data-v-
|
|
60
|
+
const F = /* @__PURE__ */ M(u, [["render", T], ["__scopeId", "data-v-5d74ca38"]]);
|
|
61
61
|
export {
|
|
62
62
|
F as default
|
|
63
63
|
};
|