@agrotools1/at-components 0.6.5-6.1 → 0.6.7
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 +55 -8
- package/dist/DataTable/DataTable.vue.js +25 -25
- package/dist/DataTable/DataTable.vue2.js +39 -44
- package/dist/DataTable/index.d.ts +51 -4
- package/dist/Paginator/Paginator.d.ts +3 -10
- package/dist/Paginator/Paginator.vue.js +4 -4
- package/dist/Paginator/Paginator.vue2.js +49 -52
- package/dist/Paginator/Paginator.vue3.js +2 -2
- package/dist/Select/Single/Select.single.d.ts +9 -0
- package/dist/Select/Single/Select.single.vue.js +29 -26
- package/dist/Select/Single/Select.single.vue2.js +35 -25
- package/dist/Select/index.d.ts +9 -0
- package/dist/agrotools-theme.css +1 -1
- package/dist/agrotools-theme.css.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
|
|
3
3
|
type TableData = Array<{
|
|
4
4
|
[key: string]: unknown;
|
|
@@ -26,7 +26,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
total: number;
|
|
27
27
|
pageSize: number;
|
|
28
28
|
onUpdatePage: (page: number) => void;
|
|
29
|
-
modelValue?: Ref<number> | undefined;
|
|
30
29
|
} | undefined>;
|
|
31
30
|
default: undefined;
|
|
32
31
|
};
|
|
@@ -56,18 +55,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
56
55
|
};
|
|
57
56
|
}, {
|
|
58
57
|
reactiveIsLoading: import('vue').ComputedRef<boolean>;
|
|
59
|
-
|
|
60
|
-
tableData: Ref<{
|
|
58
|
+
tableData: import('vue').Ref<{
|
|
61
59
|
[key: string]: unknown;
|
|
62
60
|
}[]>;
|
|
63
|
-
activeTableData: Ref<{
|
|
61
|
+
activeTableData: import('vue').Ref<{
|
|
64
62
|
[key: string]: unknown;
|
|
65
63
|
}[]>;
|
|
66
64
|
columns: string[];
|
|
67
65
|
updateColumn: (column: string) => void;
|
|
68
66
|
internalUpdateColumn: (column: string) => void;
|
|
69
67
|
internalColumns: string[];
|
|
70
|
-
lastHoveredTr: Ref<{
|
|
68
|
+
lastHoveredTr: import('vue').Ref<{
|
|
71
69
|
element: HTMLTableRowElement;
|
|
72
70
|
item: any;
|
|
73
71
|
} | null>;
|
|
@@ -75,6 +73,57 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
75
73
|
extractKey: (item: any) => string | undefined;
|
|
76
74
|
updateOnKeyDown: (event: KeyboardEvent, field: string) => void;
|
|
77
75
|
handleTrClick: (event: MouseEvent, field: string) => void;
|
|
76
|
+
paginatorRef: import('vue').Ref<import('vue').DefineComponent<{
|
|
77
|
+
total: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
pageSize: {
|
|
82
|
+
type: NumberConstructor;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
disable: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
activePage: import('vue').Ref<number>;
|
|
91
|
+
activeChunk: import('vue').Ref<number>;
|
|
92
|
+
pageChunks: import('vue').ComputedRef<number[][]>;
|
|
93
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
94
|
+
pages: import('vue').ComputedRef<number[]>;
|
|
95
|
+
icons: {
|
|
96
|
+
arrowLeft: string;
|
|
97
|
+
arrowRight: string;
|
|
98
|
+
doubleLeft: string;
|
|
99
|
+
doubleRight: string;
|
|
100
|
+
};
|
|
101
|
+
nextChunk: () => void;
|
|
102
|
+
nextPage: () => void;
|
|
103
|
+
previousPage: () => void;
|
|
104
|
+
previousChunk: () => void;
|
|
105
|
+
}, unknown, {}, {
|
|
106
|
+
setPage(page: number): void;
|
|
107
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
108
|
+
"update:activePage": (page: number) => boolean;
|
|
109
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
110
|
+
total: {
|
|
111
|
+
type: NumberConstructor;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
pageSize: {
|
|
115
|
+
type: NumberConstructor;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
disable: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
}>> & {
|
|
123
|
+
"onUpdate:activePage"?: ((page: number) => any) | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
disable: boolean;
|
|
126
|
+
}, {}> | null>;
|
|
78
127
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
128
|
"update:selected-items": (items: Array<any>) => boolean;
|
|
80
129
|
"update:table-data": (data: TableData) => boolean;
|
|
@@ -105,7 +154,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
105
154
|
total: number;
|
|
106
155
|
pageSize: number;
|
|
107
156
|
onUpdatePage: (page: number) => void;
|
|
108
|
-
modelValue?: Ref<number> | undefined;
|
|
109
157
|
} | undefined>;
|
|
110
158
|
default: undefined;
|
|
111
159
|
};
|
|
@@ -150,7 +198,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
150
198
|
total: number;
|
|
151
199
|
pageSize: number;
|
|
152
200
|
onUpdatePage: (page: number) => void;
|
|
153
|
-
modelValue?: Ref<number> | undefined;
|
|
154
201
|
} | undefined;
|
|
155
202
|
keyExtractor: (item: any) => string;
|
|
156
203
|
columnsClasses: string[];
|
|
@@ -2,25 +2,25 @@ import C from "./DataTable.vue2.js";
|
|
|
2
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
4
|
import K from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const b = (e) => (T("data-v-0c74a78b"), 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__ */ b(() => /* @__PURE__ */ l("tr", { class: "empty-space" }, null, -1)), U = ["onmouseenter"], V = ["data-key", "onClick"], R = { class: "td-container" }, j = ["id", "value", "onKeydown"], H = { key: 1 }, O = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "item-as-array"
|
|
14
|
-
},
|
|
14
|
+
}, q = { key: 0 }, G = /* @__PURE__ */ b(() => /* @__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
|
-
},
|
|
17
|
+
}, M = { class: "table-skeleton" }, Q = {
|
|
18
18
|
key: 1,
|
|
19
19
|
style: { display: "flex", "justify-content": "flex-end", "margin-top": "16px" }
|
|
20
20
|
};
|
|
21
21
|
function W(e, X, Y, Z, x, ee) {
|
|
22
22
|
var h;
|
|
23
|
-
const
|
|
23
|
+
const k = p("AtColumn"), v = p("AtText"), _ = p("AtPaginator");
|
|
24
24
|
return t(), o(r, null, [
|
|
25
25
|
l("table", P(e.$attrs, {
|
|
26
26
|
role: "table",
|
|
@@ -28,8 +28,8 @@ function W(e, X, Y, Z, x, ee) {
|
|
|
28
28
|
"data-align-columns": e.alignColumns
|
|
29
29
|
}), [
|
|
30
30
|
l("thead", L, [
|
|
31
|
-
l("tr",
|
|
32
|
-
e.withSelection ? (t(), c(
|
|
31
|
+
l("tr", B, [
|
|
32
|
+
e.withSelection ? (t(), c(k, {
|
|
33
33
|
key: 0,
|
|
34
34
|
field: "selection",
|
|
35
35
|
label: "Selecione"
|
|
@@ -37,11 +37,11 @@ function W(e, X, Y, Z, x, ee) {
|
|
|
37
37
|
S(e.$slots, "default", {}, void 0, !0)
|
|
38
38
|
])
|
|
39
39
|
]),
|
|
40
|
-
!e.value || !e.value.length ? (t(), c(
|
|
40
|
+
!e.value || !e.value.length ? (t(), c(v, {
|
|
41
41
|
key: 0,
|
|
42
42
|
as: "h6"
|
|
43
|
-
})) : A((t(), o("tbody",
|
|
44
|
-
|
|
43
|
+
})) : A((t(), o("tbody", F, [
|
|
44
|
+
N,
|
|
45
45
|
(t(!0), o(r, null, d(e.activeTableData, (i) => (t(), o("tr", {
|
|
46
46
|
key: e.extractKey(i),
|
|
47
47
|
class: g([...e.columnsClasses, "tbody-tr"]),
|
|
@@ -55,38 +55,38 @@ function W(e, X, Y, Z, x, ee) {
|
|
|
55
55
|
}
|
|
56
56
|
}, [
|
|
57
57
|
(t(!0), o(r, null, d(e.getEntries(i), ([n, a]) => {
|
|
58
|
-
var
|
|
58
|
+
var y, m;
|
|
59
59
|
return t(), o("td", {
|
|
60
60
|
key: n,
|
|
61
61
|
"data-key": n,
|
|
62
62
|
role: "cell",
|
|
63
|
-
class: g(`tbody-row ${(
|
|
63
|
+
class: g(`tbody-row ${(y = e.withEditableFields) != null && y.includes(n) ? "with-focus" : ""} `),
|
|
64
64
|
"aria-selected": "false",
|
|
65
65
|
onClick: (s) => e.handleTrClick(s, n)
|
|
66
66
|
}, [
|
|
67
|
-
l("div",
|
|
68
|
-
(
|
|
67
|
+
l("div", R, [
|
|
68
|
+
(m = e.withEditableFields) != null && m.includes(n) ? (t(), o("input", {
|
|
69
69
|
key: 0,
|
|
70
70
|
id: n,
|
|
71
71
|
placeholder: "",
|
|
72
72
|
value: a,
|
|
73
73
|
onKeydown: $((s) => e.updateOnKeyDown(s, n), ["enter"])
|
|
74
|
-
}, null, 40,
|
|
74
|
+
}, null, 40, j)) : typeof a == "number" || typeof a == "string" ? (t(), o("span", H, f(a), 1)) : Array.isArray(a) ? (t(), o("div", O, [
|
|
75
75
|
(t(!0), o(r, null, d(a, (s) => (t(), o("div", { key: s }, [
|
|
76
|
-
typeof s == "number" || typeof s == "string" ? (t(), o("span",
|
|
76
|
+
typeof s == "number" || typeof s == "string" ? (t(), o("span", q, f(s), 1)) : (t(), c(w(typeof s == "function" ? s() : s), { key: 1 }))
|
|
77
77
|
]))), 128))
|
|
78
78
|
])) : (t(), c(w(typeof a == "function" ? a() : a), { key: 3 }))
|
|
79
79
|
])
|
|
80
|
-
], 10,
|
|
80
|
+
], 10, V);
|
|
81
81
|
}), 128))
|
|
82
|
-
], 10,
|
|
83
|
-
|
|
82
|
+
], 10, U))), 128)),
|
|
83
|
+
G
|
|
84
84
|
], 512)), [
|
|
85
85
|
[D, !e.reactiveIsLoading]
|
|
86
86
|
])
|
|
87
87
|
], 16, z),
|
|
88
|
-
e.reactiveIsLoading ? (t(), o("div",
|
|
89
|
-
l("div",
|
|
88
|
+
e.reactiveIsLoading ? (t(), o("div", J, [
|
|
89
|
+
l("div", M, [
|
|
90
90
|
(t(!0), o(r, null, d(e.loadingRowsLength, (i) => (t(), o("div", {
|
|
91
91
|
key: i,
|
|
92
92
|
class: "skeleton-row"
|
|
@@ -100,16 +100,16 @@ function W(e, X, Y, Z, x, ee) {
|
|
|
100
100
|
])) : u("", !0),
|
|
101
101
|
e.withPaginator ? (t(), o("div", Q, [
|
|
102
102
|
I(_, {
|
|
103
|
+
ref: "paginatorRef",
|
|
103
104
|
"page-size": e.withPaginator.pageSize,
|
|
104
105
|
total: e.withPaginator.total,
|
|
105
106
|
disable: e.disable,
|
|
106
|
-
"model-value": e.paginatorModelValue,
|
|
107
107
|
"onUpdate:activePage": (h = e.withPaginator) == null ? void 0 : h.onUpdatePage
|
|
108
|
-
}, null, 8, ["page-size", "total", "disable", "
|
|
108
|
+
}, null, 8, ["page-size", "total", "disable", "onUpdate:activePage"])
|
|
109
109
|
])) : u("", !0)
|
|
110
110
|
], 64);
|
|
111
111
|
}
|
|
112
|
-
const ae = /* @__PURE__ */ K(C, [["render", W], ["__scopeId", "data-v-
|
|
112
|
+
const ae = /* @__PURE__ */ K(C, [["render", W], ["__scopeId", "data-v-0c74a78b"]]);
|
|
113
113
|
export {
|
|
114
114
|
ae as default
|
|
115
115
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { AtTipograph as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as k, ref as c, reactive as K, provide as p, readonly as j, inject as E, watch as x, onMounted as O, watchEffect as g, h as L, computed as R } from "vue";
|
|
2
|
+
import q from "../Checkbox/Checkbox.vue.js";
|
|
3
|
+
import B from "../Paginator/Paginator.vue.js";
|
|
4
|
+
import { AtTipograph as F } from "../Tipograph/index.js";
|
|
5
|
+
import N from "./Column/Column.vue.js";
|
|
6
|
+
const J = k({
|
|
7
7
|
name: "AtDataTable",
|
|
8
8
|
components: {
|
|
9
|
-
AtText:
|
|
10
|
-
AtColumn:
|
|
11
|
-
AtPaginator:
|
|
9
|
+
AtText: F.Title,
|
|
10
|
+
AtColumn: N,
|
|
11
|
+
AtPaginator: B
|
|
12
12
|
},
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
props: {
|
|
@@ -65,30 +65,25 @@ const H = K({
|
|
|
65
65
|
"update:table-cell": (e) => typeof e == "object"
|
|
66
66
|
},
|
|
67
67
|
setup(e, m) {
|
|
68
|
-
const u =
|
|
68
|
+
const u = c(e.value), h = c([...u.value]), f = c([]), A = c(null), d = c(
|
|
69
69
|
null
|
|
70
|
-
),
|
|
71
|
-
() => {
|
|
72
|
-
var t, a;
|
|
73
|
-
return ((a = (t = e.withPaginator) == null ? void 0 : t.modelValue) == null ? void 0 : a.value) ?? 1;
|
|
74
|
-
}
|
|
75
|
-
), r = j([]), y = (t) => {
|
|
70
|
+
), r = K([]), y = (t) => {
|
|
76
71
|
r.includes(t) || r.push(t);
|
|
77
72
|
};
|
|
78
|
-
|
|
79
|
-
columns:
|
|
73
|
+
p("columns", {
|
|
74
|
+
columns: j(r),
|
|
80
75
|
updateColumn: y
|
|
81
|
-
}),
|
|
82
|
-
const
|
|
76
|
+
}), p("alignColumns", e.alignColumns), p("tableData", u);
|
|
77
|
+
const w = E("columns", {
|
|
83
78
|
columns: r,
|
|
84
79
|
updateColumn: y
|
|
85
|
-
}),
|
|
80
|
+
}), C = (t) => Object.entries(t), s = (t) => {
|
|
86
81
|
try {
|
|
87
82
|
return e.keyExtractor(t);
|
|
88
83
|
} catch (a) {
|
|
89
84
|
console.warn("AtDataTable: Não foi possível extrair a key: ", a);
|
|
90
85
|
}
|
|
91
|
-
},
|
|
86
|
+
}, S = (t, a) => {
|
|
92
87
|
var l;
|
|
93
88
|
const o = t.target;
|
|
94
89
|
if ((l = e.withEditableFields) != null && l.includes(a)) {
|
|
@@ -101,65 +96,65 @@ const H = K({
|
|
|
101
96
|
const l = s(o);
|
|
102
97
|
return [...f.value].includes(l);
|
|
103
98
|
});
|
|
104
|
-
if (
|
|
105
|
-
const { element: o, item: l } =
|
|
99
|
+
if (d.value) {
|
|
100
|
+
const { element: o, item: l } = d.value, n = a.find(
|
|
106
101
|
(i) => s(i) === s(l)
|
|
107
102
|
);
|
|
108
103
|
o.setAttribute("aria-selected", JSON.stringify(!!n));
|
|
109
104
|
}
|
|
110
105
|
m.emit("update:selected-items", Array.from(a));
|
|
111
|
-
},
|
|
106
|
+
}, D = (t, a) => {
|
|
112
107
|
var i;
|
|
113
|
-
const o = t.target, { value: l } = o, n = (i =
|
|
108
|
+
const o = t.target, { value: l } = o, n = (i = d.value) == null ? void 0 : i.item;
|
|
114
109
|
n && (n[a] = l, u.value = u.value.map((b) => {
|
|
115
|
-
const
|
|
116
|
-
return
|
|
110
|
+
const I = s(b), T = s(n);
|
|
111
|
+
return I === T ? n : b;
|
|
117
112
|
}), m.emit("update:table-data", u.value), m.emit("update:table-cell", {
|
|
118
113
|
field: a,
|
|
119
114
|
value: l
|
|
120
115
|
}));
|
|
121
116
|
};
|
|
122
|
-
return
|
|
117
|
+
return x(
|
|
123
118
|
() => e.withDefaultSelectedItems,
|
|
124
119
|
(t) => {
|
|
125
120
|
t && v(e.withDefaultSelectedItems ?? []);
|
|
126
121
|
}
|
|
127
|
-
),
|
|
122
|
+
), O(() => {
|
|
128
123
|
e.withDefaultSelectedItems && v([...e.withDefaultSelectedItems]);
|
|
129
|
-
}),
|
|
124
|
+
}), g(() => {
|
|
130
125
|
e.withSelection ? u.value = [...e.value].map((t) => ({
|
|
131
|
-
selection: () => L(
|
|
126
|
+
selection: () => L(q, {
|
|
132
127
|
modelValue: f.value,
|
|
133
128
|
"onUpdate:modelValue": (a) => v(a),
|
|
134
129
|
val: s(t)
|
|
135
130
|
}),
|
|
136
131
|
...t
|
|
137
132
|
})) : u.value = [...e.value];
|
|
138
|
-
}),
|
|
133
|
+
}), g(() => {
|
|
139
134
|
const t = [...r], a = [...u.value].map((o) => {
|
|
140
135
|
const l = {}, n = Object.keys({ ...o });
|
|
141
136
|
for (const i of t)
|
|
142
137
|
n.includes(i) && (l[i] = o[i]);
|
|
143
138
|
return l;
|
|
144
139
|
});
|
|
145
|
-
|
|
140
|
+
h.value = a;
|
|
146
141
|
}), {
|
|
147
|
-
reactiveIsLoading:
|
|
148
|
-
paginatorModelValue: C,
|
|
142
|
+
reactiveIsLoading: R(() => e.isLoading),
|
|
149
143
|
tableData: u,
|
|
150
|
-
activeTableData:
|
|
151
|
-
columns:
|
|
152
|
-
updateColumn:
|
|
144
|
+
activeTableData: h,
|
|
145
|
+
columns: w.columns,
|
|
146
|
+
updateColumn: w.updateColumn,
|
|
153
147
|
internalUpdateColumn: y,
|
|
154
148
|
internalColumns: r,
|
|
155
|
-
lastHoveredTr:
|
|
156
|
-
getEntries:
|
|
149
|
+
lastHoveredTr: d,
|
|
150
|
+
getEntries: C,
|
|
157
151
|
extractKey: s,
|
|
158
|
-
updateOnKeyDown:
|
|
159
|
-
handleTrClick:
|
|
152
|
+
updateOnKeyDown: D,
|
|
153
|
+
handleTrClick: S,
|
|
154
|
+
paginatorRef: A
|
|
160
155
|
};
|
|
161
156
|
}
|
|
162
157
|
});
|
|
163
158
|
export {
|
|
164
|
-
|
|
159
|
+
J as default
|
|
165
160
|
};
|
|
@@ -24,7 +24,6 @@ export declare const AtDataTable: {
|
|
|
24
24
|
total: number;
|
|
25
25
|
pageSize: number;
|
|
26
26
|
onUpdatePage: (page: number) => void;
|
|
27
|
-
modelValue?: import('vue').Ref<number> | undefined;
|
|
28
27
|
} | undefined>;
|
|
29
28
|
default: undefined;
|
|
30
29
|
};
|
|
@@ -54,7 +53,6 @@ export declare const AtDataTable: {
|
|
|
54
53
|
};
|
|
55
54
|
}, {
|
|
56
55
|
reactiveIsLoading: import('vue').ComputedRef<boolean>;
|
|
57
|
-
paginatorModelValue: import('vue').ComputedRef<number>;
|
|
58
56
|
tableData: import('vue').Ref<{
|
|
59
57
|
[key: string]: unknown;
|
|
60
58
|
}[]>;
|
|
@@ -73,6 +71,57 @@ export declare const AtDataTable: {
|
|
|
73
71
|
extractKey: (item: any) => string | undefined;
|
|
74
72
|
updateOnKeyDown: (event: KeyboardEvent, field: string) => void;
|
|
75
73
|
handleTrClick: (event: MouseEvent, field: string) => void;
|
|
74
|
+
paginatorRef: import('vue').Ref<import('vue').DefineComponent<{
|
|
75
|
+
total: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
pageSize: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
disable: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
activePage: import('vue').Ref<number>;
|
|
89
|
+
activeChunk: import('vue').Ref<number>;
|
|
90
|
+
pageChunks: import('vue').ComputedRef<number[][]>;
|
|
91
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
92
|
+
pages: import('vue').ComputedRef<number[]>;
|
|
93
|
+
icons: {
|
|
94
|
+
arrowLeft: string;
|
|
95
|
+
arrowRight: string;
|
|
96
|
+
doubleLeft: string;
|
|
97
|
+
doubleRight: string;
|
|
98
|
+
};
|
|
99
|
+
nextChunk: () => void;
|
|
100
|
+
nextPage: () => void;
|
|
101
|
+
previousPage: () => void;
|
|
102
|
+
previousChunk: () => void;
|
|
103
|
+
}, unknown, {}, {
|
|
104
|
+
setPage(page: number): void;
|
|
105
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
106
|
+
"update:activePage": (page: number) => boolean;
|
|
107
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
108
|
+
total: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
pageSize: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
disable: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
}>> & {
|
|
121
|
+
"onUpdate:activePage"?: ((page: number) => any) | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
disable: boolean;
|
|
124
|
+
}, {}> | null>;
|
|
76
125
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
126
|
"update:selected-items": (items: any[]) => boolean;
|
|
78
127
|
"update:table-data": (data: {
|
|
@@ -107,7 +156,6 @@ export declare const AtDataTable: {
|
|
|
107
156
|
total: number;
|
|
108
157
|
pageSize: number;
|
|
109
158
|
onUpdatePage: (page: number) => void;
|
|
110
|
-
modelValue?: import('vue').Ref<number> | undefined;
|
|
111
159
|
} | undefined>;
|
|
112
160
|
default: undefined;
|
|
113
161
|
};
|
|
@@ -154,7 +202,6 @@ export declare const AtDataTable: {
|
|
|
154
202
|
total: number;
|
|
155
203
|
pageSize: number;
|
|
156
204
|
onUpdatePage: (page: number) => void;
|
|
157
|
-
modelValue?: import('vue').Ref<number> | undefined;
|
|
158
205
|
} | undefined;
|
|
159
206
|
keyExtractor: (item: any) => string;
|
|
160
207
|
columnsClasses: string[];
|
|
@@ -15,10 +15,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
|
-
modelValue: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
default: number;
|
|
21
|
-
};
|
|
22
18
|
}, {
|
|
23
19
|
activePage: import('vue').Ref<number>;
|
|
24
20
|
activeChunk: import('vue').Ref<number>;
|
|
@@ -35,7 +31,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
35
31
|
nextPage: () => void;
|
|
36
32
|
previousPage: () => void;
|
|
37
33
|
previousChunk: () => void;
|
|
38
|
-
}, unknown, {}, {
|
|
34
|
+
}, unknown, {}, {
|
|
35
|
+
setPage(page: number): void;
|
|
36
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
37
|
"update:activePage": (page: number) => boolean;
|
|
40
38
|
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
39
|
total: {
|
|
@@ -50,14 +48,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
48
|
type: BooleanConstructor;
|
|
51
49
|
default: boolean;
|
|
52
50
|
};
|
|
53
|
-
modelValue: {
|
|
54
|
-
type: NumberConstructor;
|
|
55
|
-
default: number;
|
|
56
|
-
};
|
|
57
51
|
}>> & {
|
|
58
52
|
"onUpdate:activePage"?: ((page: number) => any) | undefined;
|
|
59
53
|
}, {
|
|
60
|
-
modelValue: number;
|
|
61
54
|
disable: boolean;
|
|
62
55
|
}, {}>;
|
|
63
56
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import r from "./Paginator.vue2.js";
|
|
|
2
2
|
import { openBlock as t, createElementBlock as o, createElementVNode as s, createCommentVNode as n, Fragment as u, renderList as b, toDisplayString as d, pushScopeId as p, popScopeId as g } from "vue";
|
|
3
3
|
import "./Paginator.vue3.js";
|
|
4
4
|
import h from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const l = (a) => (p("data-v-
|
|
5
|
+
const l = (a) => (p("data-v-3574b741"), a = a(), g(), a), v = { class: "paginator-content" }, k = { class: "paginator-btn-slot" }, c = ["aria-disabled"], C = ["src"], m = ["aria-disabled"], P = ["src"], f = { class: "pages" }, D = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "initial-pages"
|
|
8
8
|
}, S = ["disabled"], $ = /* @__PURE__ */ l(() => /* @__PURE__ */ s("span", { class: "dots" }, "...", -1)), y = { class: "list-pages" }, I = ["aria-label", "data-page", "disabled", "aria-selected", "onClick"], w = {
|
|
@@ -11,7 +11,7 @@ const l = (a) => (p("data-v-ae9c9bed"), a = a(), g(), a), v = { class: "paginato
|
|
|
11
11
|
}, E = /* @__PURE__ */ l(() => /* @__PURE__ */ s("span", { class: "dots" }, "...", -1)), L = ["disabled"], q = { class: "paginator-btn-slot" }, B = ["disabled", "aria-disabled"], N = ["src"], R = ["disabled", "aria-disabled"], V = ["src"];
|
|
12
12
|
function F(a, i, j, z, A, G) {
|
|
13
13
|
return t(), o("div", v, [
|
|
14
|
-
s("div",
|
|
14
|
+
s("div", k, [
|
|
15
15
|
s("button", {
|
|
16
16
|
role: "button",
|
|
17
17
|
class: "previous-chunk page-state-btn",
|
|
@@ -22,7 +22,7 @@ function F(a, i, j, z, A, G) {
|
|
|
22
22
|
src: a.icons.doubleLeft,
|
|
23
23
|
alt: "Seta dupla para a esquerda"
|
|
24
24
|
}, null, 8, C)
|
|
25
|
-
], 8,
|
|
25
|
+
], 8, c),
|
|
26
26
|
s("button", {
|
|
27
27
|
role: "button",
|
|
28
28
|
class: "previous-page page-state-btn",
|
|
@@ -101,7 +101,7 @@ function F(a, i, j, z, A, G) {
|
|
|
101
101
|
])
|
|
102
102
|
]);
|
|
103
103
|
}
|
|
104
|
-
const O = /* @__PURE__ */ h(r, [["render", F], ["__scopeId", "data-v-
|
|
104
|
+
const O = /* @__PURE__ */ h(r, [["render", F], ["__scopeId", "data-v-3574b741"]]);
|
|
105
105
|
export {
|
|
106
106
|
O as default
|
|
107
107
|
};
|