@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.
@@ -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 i, openBlock as e, createElementBlock as o, Fragment as n, createElementVNode as d, mergeProps as P, createBlock as r, createCommentVNode as p, renderSlot as S, renderList as f, normalizeClass as u, withKeys as A, toDisplayString as g, resolveDynamicComponent as w, createVNode as x, pushScopeId as $, popScopeId as T, createStaticVNode as D } from "vue";
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 E from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = (a) => ($("data-v-af87f1a2"), a = a(), T(), a), I = ["data-align-columns"], K = { role: "rowgroup" }, z = {
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
- }, N = {
8
+ }, F = {
9
9
  key: 1,
10
10
  role: "rowgroup"
11
- }, V = /* @__PURE__ */ m(() => /* @__PURE__ */ d("tr", { class: "empty-space" }, null, -1)), B = ["onmouseenter"], F = ["data-key", "onClick"], U = { class: "td-container" }, L = ["id", "value", "onKeydown"], j = { key: 1 }, H = {
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
- }, O = { key: 0 }, q = /* @__PURE__ */ m(() => /* @__PURE__ */ d("tr", { class: "empty-space" }, null, -1)), G = {
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
- }, J = /* @__PURE__ */ D('<div class="d-flex flex-row gap-2 w-100" data-v-af87f1a2><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div></div><div class="d-flex flex-row gap-2 w-100" data-v-af87f1a2><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div></div><div class="d-flex flex-row gap-2 w-100" data-v-af87f1a2><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div><div class="card-body placeholder-glow" data-v-af87f1a2><span class="placeholder col-12 rounded" style="height:40px;" data-v-af87f1a2></span></div></div>', 3), M = [
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 R(a, W, X, Y, Z, aa) {
21
+ function W(e, X, Y, Z, x, ee) {
24
22
  var h;
25
- const b = i("AtColumn"), _ = i("AtText"), k = i("AtPaginator");
26
- return e(), o(n, null, [
27
- d("table", P(a.$attrs, {
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": a.alignColumns
28
+ "data-align-columns": e.alignColumns
31
29
  }), [
32
- d("thead", K, [
33
- d("tr", z, [
34
- a.withSelection ? (e(), r(b, {
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
- })) : p("", !0),
39
- S(a.$slots, "default", {}, void 0, !0)
36
+ })) : u("", !0),
37
+ S(e.$slots, "default", {}, void 0, !0)
40
38
  ])
41
39
  ]),
42
- !a.value || !a.value.length ? (e(), r(_, {
40
+ !e.value || !e.value.length ? (t(), c(v, {
43
41
  key: 0,
44
42
  as: "h6"
45
- })) : (e(), o("tbody", N, [
46
- V,
47
- (e(!0), o(n, null, f(a.activeTableData, (c) => (e(), o("tr", {
48
- key: a.extractKey(c),
49
- class: u([...a.columnsClasses, "tbody-tr"]),
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: (l) => {
53
- a.lastHoveredTr = {
54
- element: l.target,
55
- item: c
50
+ onmouseenter: (n) => {
51
+ e.lastHoveredTr = {
52
+ element: n.target,
53
+ item: i
56
54
  };
57
55
  }
58
56
  }, [
59
- (e(!0), o(n, null, f(a.getEntries(c), ([l, s]) => {
60
- var v, y;
61
- return e(), o("td", {
62
- key: l,
63
- "data-key": l,
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: u(`tbody-row ${(v = a.withEditableFields) != null && v.includes(l) ? "with-focus" : ""} `),
63
+ class: g(`tbody-row ${(y = e.withEditableFields) != null && y.includes(n) ? "with-focus" : ""} `),
66
64
  "aria-selected": "false",
67
- onClick: (t) => a.handleTrClick(t, l)
65
+ onClick: (s) => e.handleTrClick(s, n)
68
66
  }, [
69
- d("div", U, [
70
- (y = a.withEditableFields) != null && y.includes(l) ? (e(), o("input", {
67
+ l("div", j, [
68
+ (m = e.withEditableFields) != null && m.includes(n) ? (t(), o("input", {
71
69
  key: 0,
72
- id: l,
70
+ id: n,
73
71
  placeholder: "",
74
- value: s,
75
- onKeydown: A((t) => a.updateOnKeyDown(t, l), ["enter"])
76
- }, null, 40, L)) : typeof s == "number" || typeof s == "string" ? (e(), o("span", j, g(s), 1)) : Array.isArray(s) ? (e(), o("div", H, [
77
- (e(!0), o(n, null, f(s, (t) => (e(), o("div", { key: t }, [
78
- typeof t == "number" || typeof t == "string" ? (e(), o("span", O, g(t), 1)) : (e(), r(w(typeof t == "function" ? t() : t), { key: 1 }))
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
- ])) : (e(), r(w(typeof s == "function" ? s() : s), { key: 3 }))
78
+ ])) : (t(), c(w(typeof a == "function" ? a() : a), { key: 3 }))
81
79
  ])
82
- ], 10, F);
80
+ ], 10, V);
83
81
  }), 128))
84
- ], 10, B))), 128)),
85
- q
86
- ]))
87
- ], 16, I),
88
- a.reactiveIsLoading ? (e(), o("div", G, M)) : p("", !0),
89
- a.withPaginator ? (e(), o("div", Q, [
90
- x(k, {
91
- "page-size": a.withPaginator.pageSize,
92
- total: a.withPaginator.total,
93
- "onUpdate:activePage": (h = a.withPaginator) == null ? void 0 : h.onUpdatePage
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
- ])) : p("", !0)
107
+ ])) : u("", !0)
96
108
  ], 64);
97
109
  }
98
- const sa = /* @__PURE__ */ E(C, [["render", R], ["__scopeId", "data-v-af87f1a2"]]);
110
+ const ae = /* @__PURE__ */ K(C, [["render", W], ["__scopeId", "data-v-e6ce8e11"]]);
99
111
  export {
100
- sa as default
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 b, h as O, computed as q } from "vue";
2
- import F from "../Checkbox/Checkbox.vue.js";
3
- import L from "../Paginator/Paginator.vue.js";
4
- import { AtTipograph as P } from "../Tipograph/index.js";
5
- import V from "./Column/Column.vue.js";
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: P.Title,
10
- AtColumn: V,
11
- AtPaginator: L
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((A) => {
102
- const D = s(A), I = s(n);
103
- return D === I ? n : A;
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
- }), b(() => {
120
+ }), A(() => {
117
121
  e.withSelection ? u.value = [...e.value].map((t) => ({
118
- selection: () => O(F, {
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
- }), b(() => {
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: q(() => e.isLoading),
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
@@ -1,5 +1,6 @@
1
1
  export type FaqType = {
2
2
  index?: number;
3
3
  title: string;
4
+ actionTitle?: string;
4
5
  function: () => void;
5
6
  };
@@ -1,62 +1,41 @@
1
- import u from "./Faq.vue2.js";
2
- import { resolveComponent as e, openBlock as s, createElementBlock as a, createElementVNode as i, createVNode as t, withCtx as n, createTextVNode as r, toDisplayString as c, Fragment as h, renderList as A } from "vue";
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 g from "../_virtual/_plugin-vue_export-helper.js";
6
- const q = { class: "card" }, k = { class: "faq-title-card" }, v = { class: "faq-items-list" }, C = { class: "faq-items" };
7
- function y(o, B, $, b, T, w) {
8
- const _ = e("AtTitle"), l = e("AtButton"), p = e("AtParagraph"), m = e("AtArrowRightSolidIcon");
9
- return s(), a("div", q, [
10
- i("div", k, [
11
- t(_, {
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: n(() => [
17
- r(c(o.title), 1)
16
+ default: s(() => [
17
+ n(a(t.title), 1)
18
18
  ]),
19
19
  _: 1
20
20
  }),
21
- t(l, {
21
+ o(r, {
22
22
  class: "faq-button",
23
23
  variant: "secondary",
24
- onClick: o.toogleListQuestions
24
+ onClick: t.toogleListQuestions
25
25
  }, {
26
- default: n(() => [
27
- r(c(o.$props.faqButtonText), 1)
26
+ default: s(() => [
27
+ n(a(t.$props.faqButtonText), 1)
28
28
  ]),
29
29
  _: 1
30
30
  }, 8, ["onClick"])
31
31
  ]),
32
- i("ul", v, [
33
- (s(!0), a(h, null, A(o.items, (d, f) => (s(), a("li", { key: f }, [
34
- i("div", C, [
35
- t(p, {
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 z = /* @__PURE__ */ g(u, [["render", y], ["__scopeId", "data-v-55f5d381"]]);
38
+ const N = /* @__PURE__ */ _(l, [["render", q], ["__scopeId", "data-v-f954d523"]]);
60
39
  export {
61
- z as default
40
+ N as default
62
41
  };
@@ -1,14 +1,13 @@
1
- import { defineComponent as o, ref as i } from "vue";
2
- import { AtArrowRightSolidIcon as a } from "../node_modules/.pnpm/agrotools-icons@0.2.6/node_modules/agrotools-icons/dist/AtArrowRightSolidIcon/index.js";
3
- import n from "../Button/Button.vue.js";
4
- import { AtTipograph as e } from "../Tipograph/index.js";
5
- const f = o({
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
- AtArrowRightSolidIcon: a,
9
- AtTitle: e.Title,
10
- AtParagraph: e.Paragraph,
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((r) => typeof r == "object")
28
+ validator: (t) => Array.isArray(t) && t.every((e) => typeof e == "object")
30
29
  }
31
30
  },
32
31
  setup() {
33
- const t = i(!1);
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
- f as default
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,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1 @@
1
+ export { default as AtFaqItem } from "./FaqItem";
@@ -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 jt = a({
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
- jt as default
135
+ zt as default
134
136
  };