@agrotools1/at-components 0.6.0 → 0.6.12
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/DataTable.d.ts +9 -0
- package/dist/DataTable/DataTable.vue.js +71 -59
- package/dist/DataTable/DataTable.vue2.js +19 -15
- package/dist/DataTable/index.d.ts +9 -0
- package/dist/Faq/Faq.d.ts +1 -0
- package/dist/Faq/Faq.vue.js +21 -42
- package/dist/Faq/Faq.vue2.js +11 -12
- package/dist/Faq/FaqItem/FaqItem.d.ts +35 -0
- package/dist/Faq/FaqItem/FaqItem.vue.js +56 -0
- package/dist/Faq/FaqItem/FaqItem.vue2.js +32 -0
- package/dist/Faq/FaqItem/FaqItem.vue3.js +4 -0
- package/dist/Faq/FaqItem/index.d.ts +1 -0
- package/dist/Modal/Modal.vue2.js +4 -2
- package/dist/Search/Search.d.ts +12 -1
- package/dist/Search/Search.vue.js +1 -1
- package/dist/Search/Search.vue2.js +38 -31
- package/dist/TableConfig/TableConfig.vue.js +5 -5
- package/dist/TableConfig/TableConfig.vue2.js +18 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -46
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -44,6 +44,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: PropType<boolean>;
|
|
45
45
|
default: boolean;
|
|
46
46
|
};
|
|
47
|
+
loadingRowsLength: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
47
51
|
}, {
|
|
48
52
|
reactiveIsLoading: import("vue").ComputedRef<boolean>;
|
|
49
53
|
tableData: import("vue").Ref<{
|
|
@@ -113,6 +117,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
117
|
type: PropType<boolean>;
|
|
114
118
|
default: boolean;
|
|
115
119
|
};
|
|
120
|
+
loadingRowsLength: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
116
124
|
}>> & {
|
|
117
125
|
"onUpdate:selected-items"?: ((items: any[]) => any) | undefined;
|
|
118
126
|
"onUpdate:table-data"?: ((data: TableData) => any) | undefined;
|
|
@@ -133,5 +141,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
141
|
keyExtractor: (item: any) => string;
|
|
134
142
|
columnsClasses: string[];
|
|
135
143
|
isLoading: boolean;
|
|
144
|
+
loadingRowsLength: number;
|
|
136
145
|
}, {}>;
|
|
137
146
|
export default _default;
|
|
@@ -1,101 +1,113 @@
|
|
|
1
1
|
import C from "./DataTable.vue2.js";
|
|
2
|
-
import { resolveComponent as
|
|
2
|
+
import { resolveComponent as p, openBlock as t, createElementBlock as o, Fragment as r, createElementVNode as l, mergeProps as P, createBlock as c, createCommentVNode as u, renderSlot as S, withDirectives as A, renderList as d, normalizeClass as g, withKeys as $, toDisplayString as f, resolveDynamicComponent as w, vShow as D, createVNode as I, pushScopeId as T, popScopeId as E } from "vue";
|
|
3
3
|
import "./DataTable.vue3.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import K from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = (e) => (T("data-v-e6ce8e11"), e = e(), E(), e), z = ["data-align-columns"], L = { role: "rowgroup" }, B = {
|
|
6
6
|
role: "row",
|
|
7
7
|
class: "thead-row"
|
|
8
|
-
},
|
|
8
|
+
}, F = {
|
|
9
9
|
key: 1,
|
|
10
10
|
role: "rowgroup"
|
|
11
|
-
},
|
|
11
|
+
}, N = /* @__PURE__ */ k(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), U = ["onmouseenter"], V = ["data-key", "onClick"], j = { class: "td-container" }, H = ["id", "value", "onKeydown"], O = { key: 1 }, R = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "item-as-array"
|
|
14
|
-
},
|
|
14
|
+
}, q = { key: 0 }, G = /* @__PURE__ */ k(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), J = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "d-flex flex-column gap-2 w-100"
|
|
17
|
-
},
|
|
18
|
-
J
|
|
19
|
-
], Q = {
|
|
17
|
+
}, M = { class: "table-skeleton" }, Q = {
|
|
20
18
|
key: 1,
|
|
21
19
|
style: { display: "flex", "justify-content": "flex-end", "margin-top": "16px" }
|
|
22
20
|
};
|
|
23
|
-
function
|
|
21
|
+
function W(e, X, Y, Z, x, ee) {
|
|
24
22
|
var h;
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
|
|
23
|
+
const _ = p("AtColumn"), v = p("AtText"), b = p("AtPaginator");
|
|
24
|
+
return t(), o(r, null, [
|
|
25
|
+
l("table", P(e.$attrs, {
|
|
28
26
|
role: "table",
|
|
29
27
|
class: "table-content",
|
|
30
|
-
"data-align-columns":
|
|
28
|
+
"data-align-columns": e.alignColumns
|
|
31
29
|
}), [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
l("thead", L, [
|
|
31
|
+
l("tr", B, [
|
|
32
|
+
e.withSelection ? (t(), c(_, {
|
|
35
33
|
key: 0,
|
|
36
34
|
field: "selection",
|
|
37
35
|
label: "Selecione"
|
|
38
|
-
})) :
|
|
39
|
-
S(
|
|
36
|
+
})) : u("", !0),
|
|
37
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
40
38
|
])
|
|
41
39
|
]),
|
|
42
|
-
!
|
|
40
|
+
!e.value || !e.value.length ? (t(), c(v, {
|
|
43
41
|
key: 0,
|
|
44
42
|
as: "h6"
|
|
45
|
-
})) : (
|
|
46
|
-
|
|
47
|
-
(
|
|
48
|
-
key:
|
|
49
|
-
class:
|
|
43
|
+
})) : A((t(), o("tbody", F, [
|
|
44
|
+
N,
|
|
45
|
+
(t(!0), o(r, null, d(e.activeTableData, (i) => (t(), o("tr", {
|
|
46
|
+
key: e.extractKey(i),
|
|
47
|
+
class: g([...e.columnsClasses, "tbody-tr"]),
|
|
50
48
|
role: "row",
|
|
51
49
|
tabindex: "-1",
|
|
52
|
-
onmouseenter: (
|
|
53
|
-
|
|
54
|
-
element:
|
|
55
|
-
item:
|
|
50
|
+
onmouseenter: (n) => {
|
|
51
|
+
e.lastHoveredTr = {
|
|
52
|
+
element: n.target,
|
|
53
|
+
item: i
|
|
56
54
|
};
|
|
57
55
|
}
|
|
58
56
|
}, [
|
|
59
|
-
(
|
|
60
|
-
var
|
|
61
|
-
return
|
|
62
|
-
key:
|
|
63
|
-
"data-key":
|
|
57
|
+
(t(!0), o(r, null, d(e.getEntries(i), ([n, a]) => {
|
|
58
|
+
var y, m;
|
|
59
|
+
return t(), o("td", {
|
|
60
|
+
key: n,
|
|
61
|
+
"data-key": n,
|
|
64
62
|
role: "cell",
|
|
65
|
-
class:
|
|
63
|
+
class: g(`tbody-row ${(y = e.withEditableFields) != null && y.includes(n) ? "with-focus" : ""} `),
|
|
66
64
|
"aria-selected": "false",
|
|
67
|
-
onClick: (
|
|
65
|
+
onClick: (s) => e.handleTrClick(s, n)
|
|
68
66
|
}, [
|
|
69
|
-
|
|
70
|
-
(
|
|
67
|
+
l("div", j, [
|
|
68
|
+
(m = e.withEditableFields) != null && m.includes(n) ? (t(), o("input", {
|
|
71
69
|
key: 0,
|
|
72
|
-
id:
|
|
70
|
+
id: n,
|
|
73
71
|
placeholder: "",
|
|
74
|
-
value:
|
|
75
|
-
onKeydown:
|
|
76
|
-
}, null, 40,
|
|
77
|
-
(
|
|
78
|
-
typeof
|
|
72
|
+
value: a,
|
|
73
|
+
onKeydown: $((s) => e.updateOnKeyDown(s, n), ["enter"])
|
|
74
|
+
}, null, 40, H)) : typeof a == "number" || typeof a == "string" ? (t(), o("span", O, f(a), 1)) : Array.isArray(a) ? (t(), o("div", R, [
|
|
75
|
+
(t(!0), o(r, null, d(a, (s) => (t(), o("div", { key: s }, [
|
|
76
|
+
typeof s == "number" || typeof s == "string" ? (t(), o("span", q, f(s), 1)) : (t(), c(w(typeof s == "function" ? s() : s), { key: 1 }))
|
|
79
77
|
]))), 128))
|
|
80
|
-
])) : (
|
|
78
|
+
])) : (t(), c(w(typeof a == "function" ? a() : a), { key: 3 }))
|
|
81
79
|
])
|
|
82
|
-
], 10,
|
|
80
|
+
], 10, V);
|
|
83
81
|
}), 128))
|
|
84
|
-
], 10,
|
|
85
|
-
|
|
86
|
-
]))
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
], 10, U))), 128)),
|
|
83
|
+
G
|
|
84
|
+
], 512)), [
|
|
85
|
+
[D, !e.reactiveIsLoading]
|
|
86
|
+
])
|
|
87
|
+
], 16, z),
|
|
88
|
+
e.reactiveIsLoading ? (t(), o("div", J, [
|
|
89
|
+
l("div", M, [
|
|
90
|
+
(t(!0), o(r, null, d(e.loadingRowsLength, (i) => (t(), o("div", {
|
|
91
|
+
key: i,
|
|
92
|
+
class: "skeleton-row"
|
|
93
|
+
}, [
|
|
94
|
+
(t(!0), o(r, null, d(e.columns, (n) => (t(), o("div", {
|
|
95
|
+
key: n,
|
|
96
|
+
class: "skeleton-cell"
|
|
97
|
+
}))), 128))
|
|
98
|
+
]))), 128))
|
|
99
|
+
])
|
|
100
|
+
])) : u("", !0),
|
|
101
|
+
e.withPaginator ? (t(), o("div", Q, [
|
|
102
|
+
I(b, {
|
|
103
|
+
"page-size": e.withPaginator.pageSize,
|
|
104
|
+
total: e.withPaginator.total,
|
|
105
|
+
"onUpdate:activePage": (h = e.withPaginator) == null ? void 0 : h.onUpdatePage
|
|
94
106
|
}, null, 8, ["page-size", "total", "onUpdate:activePage"])
|
|
95
|
-
])) :
|
|
107
|
+
])) : u("", !0)
|
|
96
108
|
], 64);
|
|
97
109
|
}
|
|
98
|
-
const
|
|
110
|
+
const ae = /* @__PURE__ */ K(C, [["render", W], ["__scopeId", "data-v-e6ce8e11"]]);
|
|
99
111
|
export {
|
|
100
|
-
|
|
112
|
+
ae as default
|
|
101
113
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as T, ref as d, reactive as k, provide as h, readonly as K, inject as j, watch as E, onMounted as x, watchEffect as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { AtTipograph as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as T, ref as d, reactive as k, provide as h, readonly as K, inject as j, watch as E, onMounted as x, watchEffect as A, h as O, computed as L } from "vue";
|
|
2
|
+
import q from "../Checkbox/Checkbox.vue.js";
|
|
3
|
+
import F from "../Paginator/Paginator.vue.js";
|
|
4
|
+
import { AtTipograph as N } from "../Tipograph/index.js";
|
|
5
|
+
import P from "./Column/Column.vue.js";
|
|
6
6
|
const H = T({
|
|
7
7
|
name: "AtDataTable",
|
|
8
8
|
components: {
|
|
9
|
-
AtText:
|
|
10
|
-
AtColumn:
|
|
11
|
-
AtPaginator:
|
|
9
|
+
AtText: N.Title,
|
|
10
|
+
AtColumn: P,
|
|
11
|
+
AtPaginator: F
|
|
12
12
|
},
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
props: {
|
|
@@ -49,6 +49,10 @@ const H = T({
|
|
|
49
49
|
isLoading: {
|
|
50
50
|
type: Boolean,
|
|
51
51
|
default: !1
|
|
52
|
+
},
|
|
53
|
+
loadingRowsLength: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 10
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
emits: {
|
|
@@ -98,9 +102,9 @@ const H = T({
|
|
|
98
102
|
}, S = (t, a) => {
|
|
99
103
|
var i;
|
|
100
104
|
const o = t.target, { value: l } = o, n = (i = c.value) == null ? void 0 : i.item;
|
|
101
|
-
n && (n[a] = l, u.value = u.value.map((
|
|
102
|
-
const D = s(
|
|
103
|
-
return D === I ? n :
|
|
105
|
+
n && (n[a] = l, u.value = u.value.map((b) => {
|
|
106
|
+
const D = s(b), I = s(n);
|
|
107
|
+
return D === I ? n : b;
|
|
104
108
|
}), m.emit("update:table-data", u.value), m.emit("update:table-cell", {
|
|
105
109
|
field: a,
|
|
106
110
|
value: l
|
|
@@ -113,16 +117,16 @@ const H = T({
|
|
|
113
117
|
}
|
|
114
118
|
), x(() => {
|
|
115
119
|
e.withDefaultSelectedItems && v([...e.withDefaultSelectedItems]);
|
|
116
|
-
}),
|
|
120
|
+
}), A(() => {
|
|
117
121
|
e.withSelection ? u.value = [...e.value].map((t) => ({
|
|
118
|
-
selection: () => O(
|
|
122
|
+
selection: () => O(q, {
|
|
119
123
|
modelValue: f.value,
|
|
120
124
|
"onUpdate:modelValue": (a) => v(a),
|
|
121
125
|
val: s(t)
|
|
122
126
|
}),
|
|
123
127
|
...t
|
|
124
128
|
})) : u.value = [...e.value];
|
|
125
|
-
}),
|
|
129
|
+
}), A(() => {
|
|
126
130
|
const t = [...r], a = [...u.value].map((o) => {
|
|
127
131
|
const l = {}, n = Object.keys({ ...o });
|
|
128
132
|
for (const i of t)
|
|
@@ -131,7 +135,7 @@ const H = T({
|
|
|
131
135
|
});
|
|
132
136
|
p.value = a;
|
|
133
137
|
}), {
|
|
134
|
-
reactiveIsLoading:
|
|
138
|
+
reactiveIsLoading: L(() => e.isLoading),
|
|
135
139
|
tableData: u,
|
|
136
140
|
activeTableData: p,
|
|
137
141
|
columns: w.columns,
|
|
@@ -43,6 +43,10 @@ export declare const AtDataTable: {
|
|
|
43
43
|
type: import("vue").PropType<boolean>;
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
|
+
loadingRowsLength: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
46
50
|
}, {
|
|
47
51
|
reactiveIsLoading: import("vue").ComputedRef<boolean>;
|
|
48
52
|
tableData: import("vue").Ref<{
|
|
@@ -116,6 +120,10 @@ export declare const AtDataTable: {
|
|
|
116
120
|
type: import("vue").PropType<boolean>;
|
|
117
121
|
default: boolean;
|
|
118
122
|
};
|
|
123
|
+
loadingRowsLength: {
|
|
124
|
+
type: NumberConstructor;
|
|
125
|
+
default: number;
|
|
126
|
+
};
|
|
119
127
|
}>> & {
|
|
120
128
|
"onUpdate:selected-items"?: ((items: any[]) => any) | undefined;
|
|
121
129
|
"onUpdate:table-data"?: ((data: {
|
|
@@ -138,6 +146,7 @@ export declare const AtDataTable: {
|
|
|
138
146
|
keyExtractor: (item: any) => string;
|
|
139
147
|
columnsClasses: string[];
|
|
140
148
|
isLoading: boolean;
|
|
149
|
+
loadingRowsLength: number;
|
|
141
150
|
}, {}>;
|
|
142
151
|
Column: import("vue").DefineComponent<{
|
|
143
152
|
field: {
|
package/dist/Faq/Faq.d.ts
CHANGED
package/dist/Faq/Faq.vue.js
CHANGED
|
@@ -1,62 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as e, openBlock as
|
|
1
|
+
import l from "./Faq.vue2.js";
|
|
2
|
+
import { resolveComponent as e, openBlock as d, createElementBlock as m, createElementVNode as p, createVNode as o, withCtx as s, createTextVNode as n, toDisplayString as a } from "vue";
|
|
3
3
|
import "./Faq.vue3.js";
|
|
4
4
|
import "./Faq.vue4.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import _ from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const f = { class: "card" }, u = { class: "faq-title-card" };
|
|
7
|
+
function q(t, A, h, v, B, $) {
|
|
8
|
+
const i = e("AtTitle"), r = e("AtButton"), c = e("AtFaqItem");
|
|
9
|
+
return d(), m("div", f, [
|
|
10
|
+
p("div", u, [
|
|
11
|
+
o(i, {
|
|
12
12
|
as: "h6",
|
|
13
13
|
bold: !0,
|
|
14
14
|
class: "faq-title"
|
|
15
15
|
}, {
|
|
16
|
-
default:
|
|
17
|
-
|
|
16
|
+
default: s(() => [
|
|
17
|
+
n(a(t.title), 1)
|
|
18
18
|
]),
|
|
19
19
|
_: 1
|
|
20
20
|
}),
|
|
21
|
-
|
|
21
|
+
o(r, {
|
|
22
22
|
class: "faq-button",
|
|
23
23
|
variant: "secondary",
|
|
24
|
-
onClick:
|
|
24
|
+
onClick: t.toogleListQuestions
|
|
25
25
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
|
|
26
|
+
default: s(() => [
|
|
27
|
+
n(a(t.$props.faqButtonText), 1)
|
|
28
28
|
]),
|
|
29
29
|
_: 1
|
|
30
30
|
}, 8, ["onClick"])
|
|
31
31
|
]),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
size: "p2",
|
|
37
|
-
style: { "margin-bottom": "0px" }
|
|
38
|
-
}, {
|
|
39
|
-
default: n(() => [
|
|
40
|
-
r(c(d.title), 1)
|
|
41
|
-
]),
|
|
42
|
-
_: 2
|
|
43
|
-
}, 1024),
|
|
44
|
-
t(l, {
|
|
45
|
-
class: "faq-item-button",
|
|
46
|
-
"only-icon": "",
|
|
47
|
-
onClick: d.function
|
|
48
|
-
}, {
|
|
49
|
-
default: n(() => [
|
|
50
|
-
t(m, { size: "16" })
|
|
51
|
-
]),
|
|
52
|
-
_: 2
|
|
53
|
-
}, 1032, ["onClick"])
|
|
54
|
-
])
|
|
55
|
-
]))), 128))
|
|
56
|
-
])
|
|
32
|
+
o(c, {
|
|
33
|
+
items: t.items,
|
|
34
|
+
"full-size": ""
|
|
35
|
+
}, null, 8, ["items"])
|
|
57
36
|
]);
|
|
58
37
|
}
|
|
59
|
-
const
|
|
38
|
+
const N = /* @__PURE__ */ _(l, [["render", q], ["__scopeId", "data-v-f954d523"]]);
|
|
60
39
|
export {
|
|
61
|
-
|
|
40
|
+
N as default
|
|
62
41
|
};
|
package/dist/Faq/Faq.vue2.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as r, ref as o } from "vue";
|
|
2
|
+
import i from "../Button/Button.vue.js";
|
|
3
|
+
import { AtTipograph as a } from "../Tipograph/index.js";
|
|
4
|
+
import n from "./FaqItem/FaqItem.vue.js";
|
|
5
|
+
const l = r({
|
|
6
6
|
name: "Faq",
|
|
7
7
|
components: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
AtButton: n
|
|
8
|
+
AtTitle: a.Title,
|
|
9
|
+
AtButton: i,
|
|
10
|
+
AtFaqItem: n
|
|
12
11
|
},
|
|
13
12
|
props: {
|
|
14
13
|
title: {
|
|
@@ -26,11 +25,11 @@ const f = o({
|
|
|
26
25
|
items: {
|
|
27
26
|
type: Array,
|
|
28
27
|
required: !0,
|
|
29
|
-
validator: (t) => Array.isArray(t) && t.every((
|
|
28
|
+
validator: (t) => Array.isArray(t) && t.every((e) => typeof e == "object")
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
31
|
setup() {
|
|
33
|
-
const t =
|
|
32
|
+
const t = o(!1);
|
|
34
33
|
return {
|
|
35
34
|
buttonInteraction: t,
|
|
36
35
|
toogleListQuestions: () => t.value = !t.value
|
|
@@ -38,5 +37,5 @@ const f = o({
|
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
l as default
|
|
42
41
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { FaqType } from "../Faq";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<FaqType[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
validator: (value: Array<FaqType>) => boolean;
|
|
8
|
+
};
|
|
9
|
+
fullSize: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
fixedTop: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
items: {
|
|
19
|
+
type: PropType<FaqType[]>;
|
|
20
|
+
required: true;
|
|
21
|
+
validator: (value: Array<FaqType>) => boolean;
|
|
22
|
+
};
|
|
23
|
+
fullSize: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
fixedTop: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
fullSize: boolean;
|
|
33
|
+
fixedTop: boolean;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _ from "./FaqItem.vue2.js";
|
|
2
|
+
import { resolveComponent as i, openBlock as n, createBlock as u, Teleport as g, createElementVNode as a, normalizeClass as h, createElementBlock as l, Fragment as A, renderList as b, createVNode as e, withCtx as r, createTextVNode as c, toDisplayString as d } from "vue";
|
|
3
|
+
import "./FaqItem.vue3.js";
|
|
4
|
+
import x from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = { class: "faq-items" }, q = { class: "faq-text" };
|
|
6
|
+
function y(t, z, T, B, C, S) {
|
|
7
|
+
const s = i("AtParagraph"), p = i("AtArrowRightSolidIcon"), m = i("AtButton");
|
|
8
|
+
return n(), u(g, {
|
|
9
|
+
to: "body",
|
|
10
|
+
disabled: !t.fixedTop
|
|
11
|
+
}, [
|
|
12
|
+
a("ul", {
|
|
13
|
+
class: h(["faq-items-list", ["faq-item-list", { fullSize: t.fullSize, fixedTop: t.fixedTop }]])
|
|
14
|
+
}, [
|
|
15
|
+
(n(!0), l(A, null, b(t.items, (o, f) => (n(), l("li", { key: f }, [
|
|
16
|
+
a("div", k, [
|
|
17
|
+
a("div", q, [
|
|
18
|
+
e(s, {
|
|
19
|
+
size: "p2",
|
|
20
|
+
style: { "margin-bottom": "0px" }
|
|
21
|
+
}, {
|
|
22
|
+
default: r(() => [
|
|
23
|
+
c(d(o.title), 1)
|
|
24
|
+
]),
|
|
25
|
+
_: 2
|
|
26
|
+
}, 1024),
|
|
27
|
+
e(s, {
|
|
28
|
+
size: "p2",
|
|
29
|
+
style: { "margin-bottom": "0px" },
|
|
30
|
+
weight: "bold"
|
|
31
|
+
}, {
|
|
32
|
+
default: r(() => [
|
|
33
|
+
c(d(o.actionTitle), 1)
|
|
34
|
+
]),
|
|
35
|
+
_: 2
|
|
36
|
+
}, 1024)
|
|
37
|
+
]),
|
|
38
|
+
e(m, {
|
|
39
|
+
class: "faq-item-button",
|
|
40
|
+
"only-icon": "",
|
|
41
|
+
onClick: o.function
|
|
42
|
+
}, {
|
|
43
|
+
default: r(() => [
|
|
44
|
+
e(p, { size: "16" })
|
|
45
|
+
]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1032, ["onClick"])
|
|
48
|
+
])
|
|
49
|
+
]))), 128))
|
|
50
|
+
], 2)
|
|
51
|
+
], 8, ["disabled"]);
|
|
52
|
+
}
|
|
53
|
+
const N = /* @__PURE__ */ x(_, [["render", y], ["__scopeId", "data-v-dd054ba9"]]);
|
|
54
|
+
export {
|
|
55
|
+
N as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as r } from "vue";
|
|
2
|
+
import { AtArrowRightSolidIcon as e } from "../../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtArrowRightSolidIcon/index.js";
|
|
3
|
+
import { AtTipograph as a } from "../../Tipograph/index.js";
|
|
4
|
+
import p from "../../Button/Button.vue.js";
|
|
5
|
+
const l = r({
|
|
6
|
+
name: "AtFaqItem",
|
|
7
|
+
components: {
|
|
8
|
+
AtArrowRightSolidIcon: e,
|
|
9
|
+
AtButton: p,
|
|
10
|
+
AtParagraph: a.Paragraph
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
items: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: !0,
|
|
16
|
+
validator: (t) => Array.isArray(t) && t.every((o) => typeof o == "object")
|
|
17
|
+
},
|
|
18
|
+
fullSize: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
fixedTop: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup() {
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
l as default
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AtFaqItem } from "./FaqItem";
|
package/dist/Modal/Modal.vue2.js
CHANGED
|
@@ -21,6 +21,8 @@ import "../DatePicker/DatePicker.scss.js";
|
|
|
21
21
|
import "../Faq/Faq.vue2.js";
|
|
22
22
|
import "../Faq/Faq.vue3.js";
|
|
23
23
|
import "../Faq/Faq.vue4.js";
|
|
24
|
+
import "../Faq/FaqItem/FaqItem.vue2.js";
|
|
25
|
+
import "../Faq/FaqItem/FaqItem.vue3.js";
|
|
24
26
|
import "../Filter/components/Filter.vue2.js";
|
|
25
27
|
import "../Filter/components/Filter.vue3.js";
|
|
26
28
|
import "../Illustration/Illustration.vue2.js";
|
|
@@ -68,7 +70,7 @@ import "../Tooltip/Tooltip.vue3.js";
|
|
|
68
70
|
import "../Upload/Upload.vue2.js";
|
|
69
71
|
import "../Upload/Upload.vue3.js";
|
|
70
72
|
import f from "./images/cross.svg.js";
|
|
71
|
-
const
|
|
73
|
+
const zt = a({
|
|
72
74
|
name: "AtModal",
|
|
73
75
|
components: { AtButton: l, AtCheckbox: u },
|
|
74
76
|
props: {
|
|
@@ -130,5 +132,5 @@ const jt = a({
|
|
|
130
132
|
}
|
|
131
133
|
});
|
|
132
134
|
export {
|
|
133
|
-
|
|
135
|
+
zt as default
|
|
134
136
|
};
|