@agrotools1/at-components 1.0.77 → 1.0.79
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/DataTable/Column/Column.vue.js +1 -1
- package/dist/DataTable/Column/Column.vue3.js +2 -2
- package/dist/DataTable/DataTable.vue.js +2 -2
- package/dist/Filter/Filter.vue.js +14 -14
- package/dist/Filter/Filter.vue2.js +12 -12
- package/dist/agrotools-theme.css +3 -3
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ function b(t, o, _, v, M, $) {
|
|
|
31
31
|
])
|
|
32
32
|
], 16, p);
|
|
33
33
|
}
|
|
34
|
-
const B = /* @__PURE__ */ f(r, [["render", b], ["__scopeId", "data-v-
|
|
34
|
+
const B = /* @__PURE__ */ f(r, [["render", b], ["__scopeId", "data-v-ad350b02"]]);
|
|
35
35
|
export {
|
|
36
36
|
B as default
|
|
37
37
|
};
|
|
@@ -2,7 +2,7 @@ import A from "./DataTable.vue2.js";
|
|
|
2
2
|
import { resolveComponent as c, openBlock as t, createElementBlock as o, Fragment as r, createElementVNode as i, mergeProps as P, createBlock as u, withCtx as $, createVNode as g, createCommentVNode as p, renderSlot as D, withDirectives as I, renderList as d, normalizeClass as f, withKeys as T, toDisplayString as w, resolveDynamicComponent as k, vShow as z, pushScopeId as E, popScopeId as K } from "vue";
|
|
3
3
|
import "./DataTable.vue3.js";
|
|
4
4
|
import V from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const b = (e) => (E("data-v-
|
|
5
|
+
const b = (e) => (E("data-v-cd05acc6"), e = e(), K(), e), L = ["data-align-columns"], U = ["data-isStick"], B = {
|
|
6
6
|
role: "row",
|
|
7
7
|
class: "thead-row"
|
|
8
8
|
}, F = {
|
|
@@ -124,7 +124,7 @@ function Y(e, h, Z, x, ee, te) {
|
|
|
124
124
|
])) : p("", !0)
|
|
125
125
|
], 64);
|
|
126
126
|
}
|
|
127
|
-
const le = /* @__PURE__ */ V(A, [["render", Y], ["__scopeId", "data-v-
|
|
127
|
+
const le = /* @__PURE__ */ V(A, [["render", Y], ["__scopeId", "data-v-cd05acc6"]]);
|
|
128
128
|
export {
|
|
129
129
|
le as default
|
|
130
130
|
};
|
|
@@ -2,7 +2,7 @@ import D from "./Filter.vue2.js";
|
|
|
2
2
|
import { resolveComponent as c, openBlock as t, createElementBlock as s, createVNode as l, withCtx as n, createElementVNode as a, createBlock as C, createTextVNode as i, toDisplayString as d, createCommentVNode as I, renderSlot as F, Fragment as k, renderList as g, pushScopeId as T, popScopeId as $ } from "vue";
|
|
3
3
|
import "./Filter.vue3.js";
|
|
4
4
|
import U from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const V = (e) => (T("data-v-
|
|
5
|
+
const V = (e) => (T("data-v-ab14f849"), e = e(), $(), e), O = { class: "d-flex align-items-center gap-2" }, N = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "badge"
|
|
8
8
|
}, E = { class: "filter" }, L = { class: "at-dropdown-header" }, M = {
|
|
@@ -14,9 +14,9 @@ const V = (e) => (T("data-v-c5537e4a"), e = e(), $(), e), O = { class: "d-flex a
|
|
|
14
14
|
}, R = { class: "item" }, j = ["for"], q = /* @__PURE__ */ V(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), G = /* @__PURE__ */ V(() => /* @__PURE__ */ a("span", { class: "separator" }, null, -1)), H = ["for"], J = ["for"], K = { class: "at-dropdown-footer" };
|
|
15
15
|
function Q(e, r, W, X, Y, Z) {
|
|
16
16
|
var y, A;
|
|
17
|
-
const w = c("AtFilterSolidIcon"), z = c("AtFilterRegularIcon"), h = c("AtCloseSolidIcon"), m = c("AtParagraph"), f = c("AtButton"),
|
|
17
|
+
const w = c("AtFilterSolidIcon"), z = c("AtFilterRegularIcon"), h = c("AtCloseSolidIcon"), m = c("AtParagraph"), f = c("AtButton"), b = c("AtCheckbox"), _ = c("AtDropDown");
|
|
18
18
|
return t(), s("div", { key: e.keyValue }, [
|
|
19
|
-
l(
|
|
19
|
+
l(_, {
|
|
20
20
|
id: e.id,
|
|
21
21
|
"is-open": e.isOpen,
|
|
22
22
|
position: (y = e.options) == null ? void 0 : y.position,
|
|
@@ -32,7 +32,7 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
32
32
|
var u;
|
|
33
33
|
return [
|
|
34
34
|
a("section", O, [
|
|
35
|
-
e.
|
|
35
|
+
e.isOpen ? (t(), C(w, {
|
|
36
36
|
key: 0,
|
|
37
37
|
size: "16"
|
|
38
38
|
})) : (t(), C(z, {
|
|
@@ -94,7 +94,7 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
94
94
|
])) : (t(), s("div", P, [
|
|
95
95
|
(u = e.options) != null && u.checkAllText ? (t(), s(k, { key: 0 }, [
|
|
96
96
|
a("div", R, [
|
|
97
|
-
l(
|
|
97
|
+
l(b, {
|
|
98
98
|
id: e.getItemId({ text: "checkAll", value: !1 }),
|
|
99
99
|
modelValue: e.checkAllModel,
|
|
100
100
|
"onUpdate:modelValue": r[2] || (r[2] = (o) => e.checkAllModel = o),
|
|
@@ -119,8 +119,8 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
119
119
|
]),
|
|
120
120
|
q
|
|
121
121
|
], 64)) : I("", !0),
|
|
122
|
-
(t(!0), s(k, null, g(e.listSeparator, (o,
|
|
123
|
-
key: `${
|
|
122
|
+
(t(!0), s(k, null, g(e.listSeparator, (o, v) => (t(), s("div", {
|
|
123
|
+
key: `${v}`,
|
|
124
124
|
class: "item-separator"
|
|
125
125
|
}, [
|
|
126
126
|
l(m, {
|
|
@@ -133,11 +133,11 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
133
133
|
_: 2
|
|
134
134
|
}, 1024),
|
|
135
135
|
G,
|
|
136
|
-
(t(!0), s(k, null, g(o.value, (p,
|
|
137
|
-
key: `${
|
|
136
|
+
(t(!0), s(k, null, g(o.value, (p, S) => (t(), s("div", {
|
|
137
|
+
key: `${S}`,
|
|
138
138
|
class: "item"
|
|
139
139
|
}, [
|
|
140
|
-
l(
|
|
140
|
+
l(b, {
|
|
141
141
|
id: e.getItemId(p),
|
|
142
142
|
modelValue: p.value,
|
|
143
143
|
"onUpdate:modelValue": (B) => p.value = B,
|
|
@@ -157,11 +157,11 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
157
157
|
], 8, H)
|
|
158
158
|
]))), 128))
|
|
159
159
|
]))), 128)),
|
|
160
|
-
(t(!0), s(k, null, g(e.listArray, (o,
|
|
161
|
-
key: `${
|
|
160
|
+
(t(!0), s(k, null, g(e.listArray, (o, v) => (t(), s("div", {
|
|
161
|
+
key: `${v}`,
|
|
162
162
|
class: "item"
|
|
163
163
|
}, [
|
|
164
|
-
l(
|
|
164
|
+
l(b, {
|
|
165
165
|
id: e.getItemId(o),
|
|
166
166
|
modelValue: o.value,
|
|
167
167
|
"onUpdate:modelValue": (p) => o.value = p,
|
|
@@ -216,7 +216,7 @@ function Q(e, r, W, X, Y, Z) {
|
|
|
216
216
|
}, 8, ["id", "is-open", "position", "prevent-click-outside"])
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
|
-
const te = /* @__PURE__ */ U(D, [["render", Q], ["__scopeId", "data-v-
|
|
219
|
+
const te = /* @__PURE__ */ U(D, [["render", Q], ["__scopeId", "data-v-ab14f849"]]);
|
|
220
220
|
export {
|
|
221
221
|
te as default
|
|
222
222
|
};
|
|
@@ -48,20 +48,20 @@ const z = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
emits: ["update:isOpen", "onSave", "onCleanUp"],
|
|
51
|
-
setup(u, { emit:
|
|
51
|
+
setup(u, { emit: v, attrs: h }) {
|
|
52
52
|
const I = (e) => {
|
|
53
53
|
if (typeof e.text == "string")
|
|
54
54
|
return e.text;
|
|
55
55
|
}, i = n(!1), S = () => {
|
|
56
56
|
i.value = !i.value;
|
|
57
|
-
}, k = P(() => i.value
|
|
58
|
-
|
|
57
|
+
}, k = P(() => i.value ? "primary" : "secondary"), A = n(!1), c = n([]), g = () => {
|
|
58
|
+
c.value = u.dropDownList.map(
|
|
59
59
|
(e) => structuredClone(V(e))
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
g();
|
|
63
63
|
const s = n(), l = n(), y = () => {
|
|
64
|
-
s.value = [], l.value = [],
|
|
64
|
+
s.value = [], l.value = [], c.value.some((e) => "key" in e) ? s.value = c.value : l.value = c.value;
|
|
65
65
|
};
|
|
66
66
|
y();
|
|
67
67
|
const C = (e) => {
|
|
@@ -70,12 +70,12 @@ const z = {
|
|
|
70
70
|
(a) => a.value.map((r) => r.value = e)
|
|
71
71
|
), (o = l.value) == null || o.map((a) => a.value = e);
|
|
72
72
|
}, f = () => i.value = !1, D = (e = !0) => {
|
|
73
|
-
A.value = !1, C(!1), w(), x(),
|
|
73
|
+
A.value = !1, C(!1), w(), x(), v("onCleanUp"), e && setTimeout(f, 1);
|
|
74
74
|
}, L = () => {
|
|
75
75
|
var o, a;
|
|
76
76
|
const e = (o = s.value) == null ? void 0 : o.reduce(
|
|
77
77
|
(r, { key: q, value: d }) => {
|
|
78
|
-
const B = d == null ? void 0 : d.filter((
|
|
78
|
+
const B = d == null ? void 0 : d.filter((m) => m.value).map((m) => m.text);
|
|
79
79
|
return r[q] = B, r;
|
|
80
80
|
},
|
|
81
81
|
{}
|
|
@@ -87,15 +87,15 @@ const z = {
|
|
|
87
87
|
// .filter((item) => item.value)
|
|
88
88
|
s.value
|
|
89
89
|
);
|
|
90
|
-
w(), f(),
|
|
90
|
+
w(), f(), v(
|
|
91
91
|
"onSave",
|
|
92
92
|
(o = u.options) != null && o.returnOnlyChecked && (e != null && e.length) ? L() : e
|
|
93
93
|
);
|
|
94
|
-
},
|
|
94
|
+
}, p = n(0), w = () => {
|
|
95
95
|
var e, t;
|
|
96
|
-
|
|
96
|
+
p.value = 0, p.value += ((e = l.value) == null ? void 0 : e.filter((o) => o.value).length) ?? 0, (t = s.value) == null || t.forEach(
|
|
97
97
|
(o) => o.value.forEach(
|
|
98
|
-
(a) => a.value ?
|
|
98
|
+
(a) => a.value ? p.value++ : p
|
|
99
99
|
)
|
|
100
100
|
);
|
|
101
101
|
}, b = n(0), F = (e) => h.id ? `${h.id}-${e.text}` : e.text;
|
|
@@ -106,13 +106,13 @@ const z = {
|
|
|
106
106
|
}
|
|
107
107
|
), {
|
|
108
108
|
props: u,
|
|
109
|
-
list:
|
|
109
|
+
list: c,
|
|
110
110
|
listSeparator: s,
|
|
111
111
|
listArray: l,
|
|
112
112
|
checkAllModel: A,
|
|
113
113
|
isOpen: i,
|
|
114
114
|
getButtonColor: k,
|
|
115
|
-
count:
|
|
115
|
+
count: p,
|
|
116
116
|
keyValue: b,
|
|
117
117
|
getItemId: F,
|
|
118
118
|
resetList: g,
|