@honed/table 0.11.1 → 0.13.0
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/index.d.ts +25 -23
- package/dist/index.es.js +462 -437
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,692 +1,717 @@
|
|
|
1
|
-
import { ref as ee, computed as v, reactive as Z, toValue as
|
|
2
|
-
import { router as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{ ...o, id: s ?? void 0 },
|
|
18
|
-
m
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
function ne(l, d, s, o = {}) {
|
|
22
|
-
return l.map((m) => ({
|
|
23
|
-
...m,
|
|
24
|
-
execute: (u = {}, i = {}) => _(m, d, s, u, { ...o, ...i })
|
|
25
|
-
}));
|
|
1
|
+
import { ref as ee, computed as v, reactive as Z, toValue as X } from "vue";
|
|
2
|
+
import { router as b } from "@inertiajs/vue3";
|
|
3
|
+
import Y from "axios";
|
|
4
|
+
function N(a, m = {}, c = {}) {
|
|
5
|
+
if (!a.href || !a.method)
|
|
6
|
+
return !1;
|
|
7
|
+
if (a.type === "inertia")
|
|
8
|
+
a.method === "delete" ? b.delete(a.href, c) : b[a.method](a.href, m, c);
|
|
9
|
+
else {
|
|
10
|
+
const i = (p) => {
|
|
11
|
+
var u;
|
|
12
|
+
return (u = c.onError) == null ? void 0 : u.call(c, p);
|
|
13
|
+
};
|
|
14
|
+
a.method === "get" ? window.location.href = a.href : a.method === "delete" ? Y.delete(a.href).catch(i) : Y[a.method](a.href, m).catch(i);
|
|
15
|
+
}
|
|
16
|
+
return !0;
|
|
26
17
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
18
|
+
function te() {
|
|
19
|
+
const a = ee({
|
|
29
20
|
all: !1,
|
|
30
21
|
only: /* @__PURE__ */ new Set(),
|
|
31
22
|
except: /* @__PURE__ */ new Set()
|
|
32
23
|
});
|
|
33
|
-
function
|
|
34
|
-
|
|
24
|
+
function m() {
|
|
25
|
+
a.value.all = !0, a.value.only.clear(), a.value.except.clear();
|
|
35
26
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
27
|
+
function c() {
|
|
28
|
+
a.value.all = !1, a.value.only.clear(), a.value.except.clear();
|
|
38
29
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
30
|
+
function i(...d) {
|
|
31
|
+
d.forEach((h) => a.value.except.delete(h)), d.forEach((h) => a.value.only.add(h));
|
|
41
32
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
33
|
+
function p(...d) {
|
|
34
|
+
d.forEach((h) => a.value.except.add(h)), d.forEach((h) => a.value.only.delete(h));
|
|
44
35
|
}
|
|
45
|
-
function u(
|
|
46
|
-
if (
|
|
47
|
-
if (!
|
|
36
|
+
function u(d, h) {
|
|
37
|
+
if (s(d) || h === !1) return p(d);
|
|
38
|
+
if (!s(d) || h === !0) return i(d);
|
|
48
39
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
40
|
+
function s(d) {
|
|
41
|
+
return a.value.all ? !a.value.except.has(d) : a.value.only.has(d);
|
|
51
42
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
43
|
+
const r = v(() => a.value.all && a.value.except.size === 0), x = v(() => a.value.only.size > 0 || r.value);
|
|
44
|
+
function k(d) {
|
|
54
45
|
return {
|
|
55
|
-
"onUpdate:modelValue": (
|
|
56
|
-
|
|
46
|
+
"onUpdate:modelValue": (h) => {
|
|
47
|
+
h ? i(d) : p(d);
|
|
57
48
|
},
|
|
58
|
-
modelValue:
|
|
59
|
-
value:
|
|
49
|
+
modelValue: s(d),
|
|
50
|
+
value: d
|
|
60
51
|
};
|
|
61
52
|
}
|
|
62
|
-
function
|
|
53
|
+
function _() {
|
|
63
54
|
return {
|
|
64
|
-
"onUpdate:modelValue": (
|
|
65
|
-
|
|
55
|
+
"onUpdate:modelValue": (d) => {
|
|
56
|
+
d ? m() : c();
|
|
66
57
|
},
|
|
67
|
-
modelValue:
|
|
58
|
+
modelValue: r.value
|
|
68
59
|
};
|
|
69
60
|
}
|
|
70
61
|
return {
|
|
71
|
-
allSelected:
|
|
72
|
-
selection:
|
|
62
|
+
allSelected: r,
|
|
63
|
+
selection: a,
|
|
73
64
|
hasSelected: x,
|
|
74
|
-
selectAll:
|
|
75
|
-
deselectAll:
|
|
76
|
-
select:
|
|
77
|
-
deselect:
|
|
65
|
+
selectAll: m,
|
|
66
|
+
deselectAll: c,
|
|
67
|
+
select: i,
|
|
68
|
+
deselect: p,
|
|
78
69
|
toggle: u,
|
|
79
|
-
selected:
|
|
80
|
-
bind:
|
|
81
|
-
bindAll:
|
|
70
|
+
selected: s,
|
|
71
|
+
bind: k,
|
|
72
|
+
bindAll: _
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
85
76
|
const Q = () => {
|
|
86
77
|
};
|
|
87
|
-
function
|
|
88
|
-
function
|
|
89
|
-
return new Promise((
|
|
90
|
-
Promise.resolve(
|
|
78
|
+
function ne(a, m) {
|
|
79
|
+
function c(...i) {
|
|
80
|
+
return new Promise((p, u) => {
|
|
81
|
+
Promise.resolve(a(() => m.apply(this, i), { fn: m, thisArg: this, args: i })).then(p).catch(u);
|
|
91
82
|
});
|
|
92
83
|
}
|
|
93
|
-
return
|
|
84
|
+
return c;
|
|
94
85
|
}
|
|
95
|
-
function
|
|
96
|
-
let
|
|
97
|
-
const u = (
|
|
98
|
-
clearTimeout(
|
|
86
|
+
function le(a, m = {}) {
|
|
87
|
+
let c, i, p = Q;
|
|
88
|
+
const u = (r) => {
|
|
89
|
+
clearTimeout(r), p(), p = Q;
|
|
99
90
|
};
|
|
100
|
-
let
|
|
101
|
-
return (
|
|
102
|
-
const x =
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
|
|
91
|
+
let s;
|
|
92
|
+
return (r) => {
|
|
93
|
+
const x = X(a), k = X(m.maxWait);
|
|
94
|
+
return c && u(c), x <= 0 || k !== void 0 && k <= 0 ? (i && (u(i), i = null), Promise.resolve(r())) : new Promise((_, d) => {
|
|
95
|
+
p = m.rejectOnCancel ? d : _, s = r, k && !i && (i = setTimeout(() => {
|
|
96
|
+
c && u(c), i = null, _(s());
|
|
97
|
+
}, k)), c = setTimeout(() => {
|
|
98
|
+
i && u(i), i = null, _(r());
|
|
108
99
|
}, x);
|
|
109
100
|
});
|
|
110
101
|
};
|
|
111
102
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
function K(a, m = 200, c = {}) {
|
|
104
|
+
return ne(
|
|
105
|
+
le(m, c),
|
|
106
|
+
a
|
|
116
107
|
);
|
|
117
108
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!(
|
|
109
|
+
function ae(a, m, c = {}) {
|
|
110
|
+
if (!(a != null && a[m]))
|
|
120
111
|
throw new Error("The refine must be provided with valid props and key.");
|
|
121
|
-
const
|
|
112
|
+
const i = v(() => a[m]), p = v(() => !!i.value._sort_key), u = v(() => !!i.value._search_key), s = v(() => !!i.value._match_key), r = v(
|
|
122
113
|
() => {
|
|
123
|
-
var
|
|
124
|
-
return (
|
|
114
|
+
var t;
|
|
115
|
+
return (t = i.value.filters) == null ? void 0 : t.map((n) => ({
|
|
125
116
|
...n,
|
|
126
|
-
apply: (
|
|
127
|
-
clear: (
|
|
128
|
-
bind: () =>
|
|
117
|
+
apply: (o, e = {}) => A(n, o, e),
|
|
118
|
+
clear: (o = {}) => $(n, o),
|
|
119
|
+
bind: () => C(n.name)
|
|
129
120
|
}));
|
|
130
121
|
}
|
|
131
122
|
), x = v(
|
|
132
123
|
() => {
|
|
133
|
-
var
|
|
134
|
-
return (
|
|
124
|
+
var t;
|
|
125
|
+
return (t = i.value.sorts) == null ? void 0 : t.map((n) => ({
|
|
135
126
|
...n,
|
|
136
|
-
apply: (
|
|
137
|
-
clear: (
|
|
138
|
-
bind: () =>
|
|
127
|
+
apply: (o = {}) => g(n, n.direction, o),
|
|
128
|
+
clear: (o = {}) => D(o),
|
|
129
|
+
bind: () => O(n)
|
|
139
130
|
}));
|
|
140
131
|
}
|
|
141
|
-
),
|
|
132
|
+
), k = v(
|
|
142
133
|
() => {
|
|
143
|
-
var
|
|
144
|
-
return (
|
|
134
|
+
var t;
|
|
135
|
+
return (t = i.value.searches) == null ? void 0 : t.map((n) => ({
|
|
145
136
|
...n,
|
|
146
|
-
apply: (
|
|
147
|
-
clear: (
|
|
148
|
-
bind: () =>
|
|
137
|
+
apply: (o = {}) => F(n, o),
|
|
138
|
+
clear: (o = {}) => F(n, o),
|
|
139
|
+
bind: () => G(n)
|
|
149
140
|
}));
|
|
150
141
|
}
|
|
151
|
-
),
|
|
152
|
-
() =>
|
|
153
|
-
),
|
|
154
|
-
() => x.value.find(({ active:
|
|
155
|
-
),
|
|
156
|
-
() =>
|
|
142
|
+
), _ = v(
|
|
143
|
+
() => r.value.filter(({ active: t }) => t)
|
|
144
|
+
), d = v(
|
|
145
|
+
() => x.value.find(({ active: t }) => t)
|
|
146
|
+
), h = v(
|
|
147
|
+
() => k.value.filter(({ active: t }) => t)
|
|
157
148
|
);
|
|
158
|
-
function
|
|
159
|
-
return Array.isArray(
|
|
149
|
+
function P(t) {
|
|
150
|
+
return Array.isArray(t) ? t.join(i.value._delimiter) : t;
|
|
160
151
|
}
|
|
161
|
-
function
|
|
162
|
-
return typeof
|
|
152
|
+
function L(t) {
|
|
153
|
+
return typeof t != "string" ? t : t.trim().replace(/\s+/g, "+");
|
|
163
154
|
}
|
|
164
|
-
function V(
|
|
165
|
-
if (!["", null, void 0, []].includes(
|
|
166
|
-
return
|
|
155
|
+
function V(t) {
|
|
156
|
+
if (!["", null, void 0, []].includes(t))
|
|
157
|
+
return t;
|
|
167
158
|
}
|
|
168
|
-
function
|
|
169
|
-
return [
|
|
170
|
-
(n,
|
|
171
|
-
|
|
159
|
+
function W(t) {
|
|
160
|
+
return [P, L, V].reduce(
|
|
161
|
+
(n, o) => o(n),
|
|
162
|
+
t
|
|
172
163
|
);
|
|
173
164
|
}
|
|
174
|
-
function
|
|
175
|
-
return n = Array.isArray(n) ? n : [n], n.includes(
|
|
165
|
+
function z(t, n) {
|
|
166
|
+
return n = Array.isArray(n) ? n : [n], n.includes(t) ? n.filter((o) => o !== t) : [...n, t];
|
|
176
167
|
}
|
|
177
|
-
function
|
|
178
|
-
return typeof
|
|
168
|
+
function R(t) {
|
|
169
|
+
return typeof t != "string" ? t : r.value.find(({ name: n }) => n === t);
|
|
179
170
|
}
|
|
180
|
-
function
|
|
181
|
-
return typeof
|
|
182
|
-
({ name:
|
|
171
|
+
function T(t, n = null) {
|
|
172
|
+
return typeof t != "string" ? t : x.value.find(
|
|
173
|
+
({ name: o, direction: e }) => o === t && e === n
|
|
183
174
|
);
|
|
184
175
|
}
|
|
185
|
-
function
|
|
186
|
-
return typeof
|
|
176
|
+
function j(t) {
|
|
177
|
+
return typeof t != "string" ? t : k.value.find(({ name: n }) => n === t);
|
|
187
178
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
179
|
+
function q(t) {
|
|
180
|
+
return t ? typeof t == "string" ? _.value.some((n) => n.name === t) : t.active : !!_.value.length;
|
|
190
181
|
}
|
|
191
|
-
function
|
|
182
|
+
function H(t) {
|
|
192
183
|
var n;
|
|
193
|
-
return
|
|
184
|
+
return t ? typeof t == "string" ? ((n = d.value) == null ? void 0 : n.name) === t : t.active : !!d.value;
|
|
194
185
|
}
|
|
195
|
-
function
|
|
186
|
+
function y(t) {
|
|
196
187
|
var n;
|
|
197
|
-
return
|
|
188
|
+
return t ? typeof t == "string" ? (n = h.value) == null ? void 0 : n.some((o) => o.name === t) : t.active : !!i.value.term;
|
|
198
189
|
}
|
|
199
|
-
function
|
|
200
|
-
const
|
|
201
|
-
Object.entries(
|
|
190
|
+
function B(t, n = {}) {
|
|
191
|
+
const o = Object.fromEntries(
|
|
192
|
+
Object.entries(t).map(([e, l]) => [e, W(l)])
|
|
202
193
|
);
|
|
203
|
-
|
|
204
|
-
...
|
|
194
|
+
b.reload({
|
|
195
|
+
...c,
|
|
205
196
|
...n,
|
|
206
|
-
data:
|
|
197
|
+
data: o
|
|
207
198
|
});
|
|
208
199
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
if (!
|
|
212
|
-
|
|
213
|
-
...
|
|
214
|
-
...
|
|
200
|
+
function A(t, n, o = {}) {
|
|
201
|
+
const e = R(t);
|
|
202
|
+
if (!e) return console.warn(`Filter [${t}] does not exist.`);
|
|
203
|
+
b.reload({
|
|
204
|
+
...c,
|
|
205
|
+
...o,
|
|
215
206
|
data: {
|
|
216
|
-
[
|
|
207
|
+
[e.name]: W(n)
|
|
217
208
|
}
|
|
218
209
|
});
|
|
219
210
|
}
|
|
220
|
-
function
|
|
221
|
-
if (!
|
|
211
|
+
function g(t, n = null, o = {}) {
|
|
212
|
+
if (!p.value)
|
|
222
213
|
return console.warn("Refine cannot perform sorting.");
|
|
223
|
-
const
|
|
224
|
-
if (!
|
|
225
|
-
|
|
226
|
-
...
|
|
227
|
-
...
|
|
214
|
+
const e = T(t, n);
|
|
215
|
+
if (!e) return console.warn(`Sort [${t}] does not exist.`);
|
|
216
|
+
b.reload({
|
|
217
|
+
...c,
|
|
218
|
+
...o,
|
|
228
219
|
data: {
|
|
229
|
-
[
|
|
220
|
+
[i.value._sort_key]: V(e.next)
|
|
230
221
|
}
|
|
231
222
|
});
|
|
232
223
|
}
|
|
233
|
-
function
|
|
224
|
+
function w(t, n = {}) {
|
|
234
225
|
if (!u.value)
|
|
235
226
|
return console.warn("Refine cannot perform searching.");
|
|
236
|
-
|
|
237
|
-
(
|
|
238
|
-
|
|
239
|
-
),
|
|
240
|
-
...
|
|
227
|
+
t = [L, V].reduce(
|
|
228
|
+
(o, e) => e(o),
|
|
229
|
+
t
|
|
230
|
+
), b.reload({
|
|
231
|
+
...c,
|
|
241
232
|
...n,
|
|
242
233
|
data: {
|
|
243
|
-
[
|
|
234
|
+
[i.value._search_key]: t
|
|
244
235
|
}
|
|
245
236
|
});
|
|
246
237
|
}
|
|
247
|
-
function
|
|
248
|
-
if (!
|
|
238
|
+
function F(t, n = {}) {
|
|
239
|
+
if (!s.value || !u.value)
|
|
249
240
|
return console.warn("Refine cannot perform matching.");
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
241
|
+
const o = j(t);
|
|
242
|
+
if (!o) return console.warn(`Match [${t}] does not exist.`);
|
|
243
|
+
const e = z(
|
|
244
|
+
o.name,
|
|
245
|
+
h.value.map(({ name: l }) => l)
|
|
255
246
|
);
|
|
256
|
-
|
|
257
|
-
...
|
|
247
|
+
b.reload({
|
|
248
|
+
...c,
|
|
258
249
|
...n,
|
|
259
250
|
data: {
|
|
260
|
-
[
|
|
251
|
+
[i.value._match_key]: P(e)
|
|
261
252
|
}
|
|
262
253
|
});
|
|
263
254
|
}
|
|
264
|
-
function
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
...
|
|
255
|
+
function $(t, n = {}) {
|
|
256
|
+
if (t) return A(t, null, n);
|
|
257
|
+
b.reload({
|
|
258
|
+
...c,
|
|
268
259
|
...n,
|
|
269
260
|
data: Object.fromEntries(
|
|
270
|
-
|
|
261
|
+
_.value.map(({ name: o }) => [o, null])
|
|
271
262
|
)
|
|
272
263
|
});
|
|
273
264
|
}
|
|
274
|
-
function
|
|
275
|
-
if (!
|
|
265
|
+
function D(t = {}) {
|
|
266
|
+
if (!p.value)
|
|
276
267
|
return console.warn("Refine cannot perform sorting.");
|
|
277
|
-
|
|
278
|
-
...
|
|
279
|
-
...
|
|
268
|
+
b.reload({
|
|
269
|
+
...c,
|
|
270
|
+
...t,
|
|
280
271
|
data: {
|
|
281
|
-
[
|
|
272
|
+
[i.value._sort_key]: null
|
|
282
273
|
}
|
|
283
274
|
});
|
|
284
275
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
276
|
+
function I(t = {}) {
|
|
277
|
+
w(null, t);
|
|
287
278
|
}
|
|
288
|
-
function
|
|
289
|
-
if (!
|
|
279
|
+
function M(t = {}) {
|
|
280
|
+
if (!s.value)
|
|
290
281
|
return console.warn("Refine cannot perform matching.");
|
|
291
|
-
|
|
292
|
-
...
|
|
293
|
-
...
|
|
282
|
+
b.reload({
|
|
283
|
+
...c,
|
|
284
|
+
...t,
|
|
294
285
|
data: {
|
|
295
|
-
[
|
|
286
|
+
[i.value._match_key]: null
|
|
296
287
|
}
|
|
297
288
|
});
|
|
298
289
|
}
|
|
299
|
-
function
|
|
290
|
+
function U(t = {}) {
|
|
300
291
|
var n;
|
|
301
|
-
|
|
302
|
-
...
|
|
303
|
-
...
|
|
292
|
+
b.reload({
|
|
293
|
+
...c,
|
|
294
|
+
...t,
|
|
304
295
|
data: {
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
[
|
|
296
|
+
[i.value._search_key ?? ""]: void 0,
|
|
297
|
+
[i.value._sort_key ?? ""]: void 0,
|
|
298
|
+
[i.value._match_key ?? ""]: void 0,
|
|
308
299
|
...Object.fromEntries(
|
|
309
|
-
((n =
|
|
310
|
-
|
|
300
|
+
((n = i.value.filters) == null ? void 0 : n.map((o) => [
|
|
301
|
+
o.name,
|
|
311
302
|
void 0
|
|
312
303
|
])) ?? []
|
|
313
304
|
)
|
|
314
305
|
}
|
|
315
306
|
});
|
|
316
307
|
}
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
if (!
|
|
308
|
+
function C(t, n = {}) {
|
|
309
|
+
const o = R(t);
|
|
310
|
+
if (!o) return console.warn(`Filter [${t}] does not exist.`);
|
|
320
311
|
const {
|
|
321
|
-
debounce:
|
|
322
|
-
transform:
|
|
323
|
-
...
|
|
312
|
+
debounce: e = 150,
|
|
313
|
+
transform: l = (S) => S,
|
|
314
|
+
...f
|
|
324
315
|
} = n;
|
|
325
316
|
return {
|
|
326
|
-
"onUpdate:modelValue":
|
|
327
|
-
|
|
328
|
-
},
|
|
329
|
-
modelValue:
|
|
317
|
+
"onUpdate:modelValue": K((S) => {
|
|
318
|
+
A(o, l(S), f);
|
|
319
|
+
}, e),
|
|
320
|
+
modelValue: o.value
|
|
330
321
|
};
|
|
331
322
|
}
|
|
332
|
-
function
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
const
|
|
323
|
+
function O(t, n = {}) {
|
|
324
|
+
if (!p.value)
|
|
325
|
+
return console.warn("Refine cannot perform sorting.");
|
|
326
|
+
const o = T(t);
|
|
327
|
+
if (!o) return console.warn(`Sort [${t}] does not exist.`);
|
|
328
|
+
const { debounce: e = 0, transform: l, ...f } = n;
|
|
336
329
|
return {
|
|
337
|
-
onClick:
|
|
338
|
-
var
|
|
339
|
-
|
|
340
|
-
},
|
|
330
|
+
onClick: K(() => {
|
|
331
|
+
var S;
|
|
332
|
+
g(o, (S = d.value) == null ? void 0 : S.direction, f);
|
|
333
|
+
}, e)
|
|
341
334
|
};
|
|
342
335
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
336
|
+
function J(t = {}) {
|
|
337
|
+
if (!u.value)
|
|
338
|
+
return console.warn("Refine cannot perform searching.");
|
|
339
|
+
const { debounce: n = 700, transform: o, ...e } = t;
|
|
345
340
|
return {
|
|
346
|
-
"onUpdate:modelValue":
|
|
347
|
-
(
|
|
348
|
-
|
|
341
|
+
"onUpdate:modelValue": K(
|
|
342
|
+
(l) => {
|
|
343
|
+
w(l, e);
|
|
349
344
|
},
|
|
350
345
|
n
|
|
351
346
|
),
|
|
352
|
-
modelValue:
|
|
347
|
+
modelValue: i.value.term ?? ""
|
|
353
348
|
};
|
|
354
349
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const
|
|
350
|
+
function G(t, n = {}) {
|
|
351
|
+
if (!s.value)
|
|
352
|
+
return console.warn("Refine cannot perform matching.");
|
|
353
|
+
const o = j(t);
|
|
354
|
+
if (!o) return console.warn(`Match [${t}] does not exist.`);
|
|
355
|
+
const { debounce: e = 0, transform: l, ...f } = n;
|
|
359
356
|
return {
|
|
360
|
-
"onUpdate:modelValue":
|
|
361
|
-
|
|
362
|
-
},
|
|
363
|
-
modelValue:
|
|
364
|
-
value:
|
|
357
|
+
"onUpdate:modelValue": K((S) => {
|
|
358
|
+
F(S, f);
|
|
359
|
+
}, e),
|
|
360
|
+
modelValue: y(o),
|
|
361
|
+
value: o.name
|
|
365
362
|
};
|
|
366
363
|
}
|
|
367
364
|
return Z({
|
|
368
|
-
filters:
|
|
365
|
+
filters: r,
|
|
369
366
|
sorts: x,
|
|
370
|
-
searches:
|
|
371
|
-
currentFilters:
|
|
372
|
-
currentSort:
|
|
373
|
-
currentSearches:
|
|
374
|
-
isSortable:
|
|
367
|
+
searches: k,
|
|
368
|
+
currentFilters: _,
|
|
369
|
+
currentSort: d,
|
|
370
|
+
currentSearches: h,
|
|
371
|
+
isSortable: p,
|
|
375
372
|
isSearchable: u,
|
|
376
|
-
isMatchable:
|
|
377
|
-
isFiltering:
|
|
378
|
-
isSorting:
|
|
379
|
-
isSearching:
|
|
380
|
-
getFilter:
|
|
381
|
-
getSort:
|
|
382
|
-
getSearch:
|
|
383
|
-
apply:
|
|
384
|
-
applyFilter:
|
|
385
|
-
applySort:
|
|
386
|
-
applySearch:
|
|
387
|
-
applyMatch:
|
|
388
|
-
clearFilter:
|
|
389
|
-
clearSort:
|
|
390
|
-
clearSearch:
|
|
391
|
-
clearMatch:
|
|
392
|
-
reset:
|
|
393
|
-
bindFilter:
|
|
394
|
-
bindSort:
|
|
395
|
-
bindSearch:
|
|
396
|
-
bindMatch:
|
|
397
|
-
stringValue:
|
|
373
|
+
isMatchable: s,
|
|
374
|
+
isFiltering: q,
|
|
375
|
+
isSorting: H,
|
|
376
|
+
isSearching: y,
|
|
377
|
+
getFilter: R,
|
|
378
|
+
getSort: T,
|
|
379
|
+
getSearch: j,
|
|
380
|
+
apply: B,
|
|
381
|
+
applyFilter: A,
|
|
382
|
+
applySort: g,
|
|
383
|
+
applySearch: w,
|
|
384
|
+
applyMatch: F,
|
|
385
|
+
clearFilter: $,
|
|
386
|
+
clearSort: D,
|
|
387
|
+
clearSearch: I,
|
|
388
|
+
clearMatch: M,
|
|
389
|
+
reset: U,
|
|
390
|
+
bindFilter: C,
|
|
391
|
+
bindSort: O,
|
|
392
|
+
bindSearch: J,
|
|
393
|
+
bindMatch: G,
|
|
394
|
+
stringValue: L,
|
|
398
395
|
omitValue: V,
|
|
399
|
-
toggleValue:
|
|
400
|
-
delimitArray:
|
|
396
|
+
toggleValue: z,
|
|
397
|
+
delimitArray: P
|
|
401
398
|
});
|
|
402
399
|
}
|
|
403
|
-
function
|
|
404
|
-
if (!(
|
|
400
|
+
function ue(a, m, c = {}) {
|
|
401
|
+
if (!(a != null && a[m]))
|
|
405
402
|
throw new Error("The table must be provided with valid props and key.");
|
|
406
|
-
const { recordOperations:
|
|
407
|
-
only: [...
|
|
408
|
-
...
|
|
409
|
-
}, u = v(() =>
|
|
410
|
-
() => u.value.
|
|
411
|
-
|
|
403
|
+
const { recordOperations: i = {}, ...p } = {
|
|
404
|
+
only: [...c.only ?? [], m.toString()],
|
|
405
|
+
...c
|
|
406
|
+
}, u = v(() => a[m]), s = te(), r = ae(a, m, p), x = v(() => u.value.meta), k = v(() => u.value.views ?? []), _ = v(() => u.value.state ?? null), d = v(() => u.value.placeholder ?? null), h = v(() => !!u.value.state), P = v(
|
|
407
|
+
() => !!u.value._page_key && !!u.value._record_key
|
|
408
|
+
), L = v(() => !!u.value._column_key), V = v(
|
|
409
|
+
() => u.value.columns.filter(({ active: e, hidden: l }) => e && !l).map((e) => {
|
|
410
|
+
var l;
|
|
412
411
|
return {
|
|
413
|
-
...
|
|
414
|
-
isSorting: !!((
|
|
415
|
-
toggleSort: (
|
|
412
|
+
...e,
|
|
413
|
+
isSorting: !!((l = e.sort) != null && l.active),
|
|
414
|
+
toggleSort: (f = {}) => r.applySort(e.sort, null, f)
|
|
416
415
|
};
|
|
417
416
|
})
|
|
418
|
-
),
|
|
419
|
-
() => u.value.columns.filter(({ hidden:
|
|
420
|
-
...
|
|
421
|
-
toggle: (
|
|
417
|
+
), W = v(
|
|
418
|
+
() => u.value.columns.filter(({ hidden: e }) => !e).map((e) => ({
|
|
419
|
+
...e,
|
|
420
|
+
toggle: (l = {}) => G(e.name, l)
|
|
422
421
|
}))
|
|
423
|
-
),
|
|
424
|
-
() => u.value.records.map((
|
|
422
|
+
), z = v(
|
|
423
|
+
() => u.value.records.map((e) => ({
|
|
424
|
+
...e,
|
|
425
425
|
/** The operations available for the record */
|
|
426
|
-
operations:
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
operations: e.operations.map((l) => ({
|
|
427
|
+
...l,
|
|
428
|
+
execute: (f = {}) => U(l, e, f)
|
|
429
|
+
})),
|
|
430
|
+
/** Determine if the record is selected */
|
|
431
|
+
selected: s.selected(g(e)),
|
|
429
432
|
/** Perform this operation when the record is clicked */
|
|
430
|
-
default: (
|
|
431
|
-
const
|
|
432
|
-
({ default:
|
|
433
|
+
default: (l = {}) => {
|
|
434
|
+
const f = e.operations.find(
|
|
435
|
+
({ default: S }) => S
|
|
433
436
|
);
|
|
434
|
-
|
|
437
|
+
f && U(f, e, l);
|
|
435
438
|
},
|
|
436
439
|
/** Selects this record */
|
|
437
|
-
select: () =>
|
|
440
|
+
select: () => s.select(g(e)),
|
|
438
441
|
/** Deselects this record */
|
|
439
|
-
deselect: () =>
|
|
442
|
+
deselect: () => s.deselect(g(e)),
|
|
440
443
|
/** Toggles the selection of this record */
|
|
441
|
-
toggle: () =>
|
|
442
|
-
/** Determine if the record is selected */
|
|
443
|
-
selected: i.selected(g(t)),
|
|
444
|
+
toggle: () => s.toggle(g(e)),
|
|
444
445
|
/** Bind the record to a checkbox */
|
|
445
|
-
bind: () =>
|
|
446
|
+
bind: () => s.bind(g(e)),
|
|
446
447
|
/** Get the entry of the record for the column */
|
|
447
|
-
entry: (
|
|
448
|
+
entry: (l) => w(e, l),
|
|
448
449
|
/** Get the value of the record for the column */
|
|
449
|
-
value: (
|
|
450
|
+
value: (l) => F(e, l),
|
|
450
451
|
/** Get the extra data of the record for the column */
|
|
451
|
-
extra: (
|
|
452
|
+
extra: (l) => $(e, l)
|
|
452
453
|
}))
|
|
453
|
-
), R = v(() => !!u.value.operations.inline),
|
|
454
|
-
() => u.value.
|
|
455
|
-
|
|
454
|
+
), R = v(() => !!u.value.operations.inline), T = v(
|
|
455
|
+
() => u.value.operations.bulk.map((e) => ({
|
|
456
|
+
...e,
|
|
457
|
+
execute: (l = {}) => C(e, l)
|
|
458
|
+
}))
|
|
459
|
+
), j = v(
|
|
460
|
+
() => u.value.operations.page.map((e) => ({
|
|
461
|
+
...e,
|
|
462
|
+
execute: (l = {}) => O(e, l)
|
|
463
|
+
}))
|
|
464
|
+
), q = v(
|
|
465
|
+
() => u.value.pages.find(({ active: e }) => e)
|
|
466
|
+
), H = v(() => u.value.pages), y = v(() => ({
|
|
456
467
|
...u.value.paginate,
|
|
457
|
-
next: (
|
|
458
|
-
"nextLink" in
|
|
468
|
+
next: (e = {}) => {
|
|
469
|
+
"nextLink" in y.value && y.value.nextLink && M(y.value.nextLink, e);
|
|
459
470
|
},
|
|
460
|
-
previous: (
|
|
461
|
-
"prevLink" in
|
|
471
|
+
previous: (e = {}) => {
|
|
472
|
+
"prevLink" in y.value && y.value.prevLink && M(y.value.prevLink, e);
|
|
462
473
|
},
|
|
463
|
-
first: (
|
|
464
|
-
"firstLink" in
|
|
474
|
+
first: (e = {}) => {
|
|
475
|
+
"firstLink" in y.value && y.value.firstLink && M(y.value.firstLink, e);
|
|
465
476
|
},
|
|
466
|
-
last: (
|
|
467
|
-
"lastLink" in
|
|
477
|
+
last: (e = {}) => {
|
|
478
|
+
"lastLink" in y.value && y.value.lastLink && M(y.value.lastLink, e);
|
|
468
479
|
},
|
|
469
480
|
..."links" in u.value.paginate && u.value.paginate.links ? {
|
|
470
|
-
links: u.value.paginate.links.map((
|
|
471
|
-
...
|
|
472
|
-
navigate: (
|
|
481
|
+
links: u.value.paginate.links.map((e) => ({
|
|
482
|
+
...e,
|
|
483
|
+
navigate: (l = {}) => e.url && M(e.url, l)
|
|
473
484
|
}))
|
|
474
485
|
} : {}
|
|
475
|
-
})),
|
|
486
|
+
})), B = v(
|
|
476
487
|
() => u.value.records.length > 0 && u.value.records.every(
|
|
477
|
-
(
|
|
488
|
+
(e) => s.selected(g(e))
|
|
478
489
|
)
|
|
479
490
|
);
|
|
480
|
-
function
|
|
481
|
-
return typeof
|
|
491
|
+
function A(e) {
|
|
492
|
+
return typeof e == "string" ? e : e.name;
|
|
482
493
|
}
|
|
483
|
-
function g(
|
|
484
|
-
|
|
485
|
-
return (r = A(t, u.value.key)) == null ? void 0 : r.v;
|
|
494
|
+
function g(e) {
|
|
495
|
+
return e._key;
|
|
486
496
|
}
|
|
487
|
-
function
|
|
488
|
-
const
|
|
489
|
-
return
|
|
497
|
+
function w(e, l) {
|
|
498
|
+
const f = A(l);
|
|
499
|
+
return e[f];
|
|
490
500
|
}
|
|
491
|
-
function
|
|
492
|
-
var
|
|
493
|
-
return ((
|
|
501
|
+
function F(e, l) {
|
|
502
|
+
var f;
|
|
503
|
+
return ((f = w(e, l)) == null ? void 0 : f.v) ?? null;
|
|
494
504
|
}
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
return (
|
|
505
|
+
function $(e, l) {
|
|
506
|
+
var f;
|
|
507
|
+
return (f = w(e, l)) == null ? void 0 : f.e;
|
|
498
508
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
501
|
-
...m,
|
|
502
|
-
...c
|
|
503
|
-
});
|
|
509
|
+
function D(e) {
|
|
510
|
+
return { id: g(e) };
|
|
504
511
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
);
|
|
512
|
+
function I() {
|
|
513
|
+
return {
|
|
514
|
+
all: s.selection.value.all,
|
|
515
|
+
only: Array.from(s.selection.value.only),
|
|
516
|
+
except: Array.from(s.selection.value.except)
|
|
517
|
+
};
|
|
512
518
|
}
|
|
513
|
-
function
|
|
514
|
-
|
|
519
|
+
function M(e, l = {}) {
|
|
520
|
+
b.visit(e, {
|
|
515
521
|
preserveScroll: !0,
|
|
516
522
|
preserveState: !0,
|
|
517
|
-
...
|
|
518
|
-
...
|
|
523
|
+
...p,
|
|
524
|
+
...l,
|
|
519
525
|
method: "get"
|
|
520
526
|
});
|
|
521
527
|
}
|
|
522
|
-
function
|
|
523
|
-
var
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
all: i.selection.value.all,
|
|
537
|
-
only: Array.from(i.selection.value.only),
|
|
538
|
-
except: Array.from(i.selection.value.except)
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
...r,
|
|
542
|
-
onSuccess: (c) => {
|
|
543
|
-
var L;
|
|
544
|
-
(L = r.onSuccess) == null || L.call(r, c), t.keepSelected || i.deselectAll();
|
|
545
|
-
}
|
|
528
|
+
function U(e, l, f = {}) {
|
|
529
|
+
var E;
|
|
530
|
+
N(e, D(l), {
|
|
531
|
+
...c,
|
|
532
|
+
...f
|
|
533
|
+
}) || (E = i == null ? void 0 : i[e.name]) == null || E.call(i, l);
|
|
534
|
+
}
|
|
535
|
+
function C(e, l = {}) {
|
|
536
|
+
return N(e, I(), {
|
|
537
|
+
...c,
|
|
538
|
+
...l,
|
|
539
|
+
onSuccess: (f) => {
|
|
540
|
+
var S, E;
|
|
541
|
+
(S = l.onSuccess) == null || S.call(l, f), (E = c.onSuccess) == null || E.call(c, f), e.keep || s.deselectAll();
|
|
546
542
|
}
|
|
547
|
-
);
|
|
543
|
+
});
|
|
548
544
|
}
|
|
549
|
-
function
|
|
550
|
-
return
|
|
545
|
+
function O(e, l = {}, f = {}) {
|
|
546
|
+
return N(e, l, { ...c, ...f });
|
|
551
547
|
}
|
|
552
|
-
function
|
|
553
|
-
if (!
|
|
548
|
+
function J(e, l = {}) {
|
|
549
|
+
if (!P.value)
|
|
554
550
|
return console.warn("The table does not support pagination changes.");
|
|
555
|
-
|
|
556
|
-
...
|
|
557
|
-
...
|
|
551
|
+
b.reload({
|
|
552
|
+
...p,
|
|
553
|
+
...l,
|
|
558
554
|
data: {
|
|
559
|
-
[u.value.
|
|
560
|
-
[u.value.
|
|
555
|
+
[u.value._record_key]: e.value,
|
|
556
|
+
[u.value._page_key]: void 0
|
|
561
557
|
}
|
|
562
558
|
});
|
|
563
559
|
}
|
|
564
|
-
function e
|
|
565
|
-
if (!
|
|
560
|
+
function G(e, l = {}) {
|
|
561
|
+
if (!L.value)
|
|
566
562
|
return console.warn("The table does not support column toggling.");
|
|
567
|
-
const
|
|
568
|
-
if (!
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
563
|
+
const f = A(e);
|
|
564
|
+
if (!f) return console.log(`Column [${e}] does not exist.`);
|
|
565
|
+
const S = r.toggleValue(
|
|
566
|
+
f,
|
|
567
|
+
V.value.map(({ name: E }) => E)
|
|
572
568
|
);
|
|
573
|
-
|
|
574
|
-
...
|
|
575
|
-
...
|
|
569
|
+
b.reload({
|
|
570
|
+
...p,
|
|
571
|
+
...l,
|
|
576
572
|
data: {
|
|
577
|
-
[u.value.
|
|
573
|
+
[u.value._column_key]: r.delimitArray(S)
|
|
578
574
|
}
|
|
579
575
|
});
|
|
580
576
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
577
|
+
function t() {
|
|
578
|
+
s.select(
|
|
583
579
|
...u.value.records.map(
|
|
584
|
-
(
|
|
580
|
+
(e) => g(e)
|
|
585
581
|
)
|
|
586
582
|
);
|
|
587
583
|
}
|
|
588
|
-
function
|
|
589
|
-
|
|
584
|
+
function n() {
|
|
585
|
+
s.deselect(
|
|
590
586
|
...u.value.records.map(
|
|
591
|
-
(
|
|
587
|
+
(e) => g(e)
|
|
592
588
|
)
|
|
593
589
|
);
|
|
594
590
|
}
|
|
595
|
-
function
|
|
591
|
+
function o() {
|
|
596
592
|
return {
|
|
597
|
-
"onUpdate:modelValue": (
|
|
598
|
-
|
|
593
|
+
"onUpdate:modelValue": (e) => {
|
|
594
|
+
e ? t() : n();
|
|
599
595
|
},
|
|
600
|
-
modelValue:
|
|
596
|
+
modelValue: B.value
|
|
601
597
|
};
|
|
602
598
|
}
|
|
603
599
|
return Z({
|
|
604
|
-
/** The identifier of the table */
|
|
605
|
-
id: x,
|
|
606
600
|
/** Table-specific metadata */
|
|
607
|
-
meta:
|
|
601
|
+
meta: x,
|
|
608
602
|
/** The views for the table */
|
|
609
603
|
views: k,
|
|
610
604
|
/** The empty state for the table */
|
|
611
|
-
emptyState:
|
|
605
|
+
emptyState: _,
|
|
612
606
|
/** The placeholder for the search term.*/
|
|
613
|
-
placeholder:
|
|
607
|
+
placeholder: d,
|
|
614
608
|
/** Whether the table is empty */
|
|
615
|
-
isEmpty:
|
|
609
|
+
isEmpty: h,
|
|
616
610
|
/** Whether the table supports changing the number of records to display per page */
|
|
617
|
-
isPageable:
|
|
611
|
+
isPageable: P,
|
|
618
612
|
/** Whether the table supports toggling columns */
|
|
619
|
-
isToggleable:
|
|
613
|
+
isToggleable: L,
|
|
620
614
|
/** Get the entry of the record for the column */
|
|
621
|
-
getEntry:
|
|
615
|
+
getEntry: w,
|
|
622
616
|
/** Get the value of the record for the column */
|
|
623
|
-
getValue:
|
|
617
|
+
getValue: F,
|
|
624
618
|
/** Get the extra data of the record for the column */
|
|
625
|
-
getExtra:
|
|
619
|
+
getExtra: $,
|
|
626
620
|
/** Retrieve a record's identifier */
|
|
627
621
|
getRecordKey: g,
|
|
628
622
|
/** The heading columns for the table */
|
|
629
|
-
headings:
|
|
623
|
+
headings: V,
|
|
630
624
|
/** All of the table's columns */
|
|
631
|
-
columns:
|
|
625
|
+
columns: W,
|
|
632
626
|
/** The records of the table */
|
|
633
|
-
records:
|
|
627
|
+
records: z,
|
|
634
628
|
/** Whether the table has record operations */
|
|
635
629
|
inline: R,
|
|
636
630
|
/** The available bulk operations */
|
|
637
|
-
bulk:
|
|
631
|
+
bulk: T,
|
|
638
632
|
/** The available page operations */
|
|
639
|
-
page:
|
|
633
|
+
page: j,
|
|
640
634
|
/** The available number of records to display per page */
|
|
641
|
-
pages:
|
|
635
|
+
pages: H,
|
|
642
636
|
/** The current record per page item */
|
|
643
|
-
currentPage:
|
|
637
|
+
currentPage: q,
|
|
644
638
|
/** The pagination metadata */
|
|
645
|
-
paginator:
|
|
639
|
+
paginator: y,
|
|
646
640
|
/** Execute an inline operation */
|
|
647
|
-
executeInline:
|
|
641
|
+
executeInline: U,
|
|
648
642
|
/** Execute a bulk operation */
|
|
649
|
-
executeBulk:
|
|
643
|
+
executeBulk: C,
|
|
650
644
|
/** Execute a page operation */
|
|
651
|
-
executePage:
|
|
645
|
+
executePage: O,
|
|
652
646
|
/** Apply a new page by changing the number of records to display */
|
|
653
|
-
applyPage:
|
|
647
|
+
applyPage: J,
|
|
654
648
|
/** The current selection of records */
|
|
655
|
-
selection:
|
|
649
|
+
selection: s.selection,
|
|
656
650
|
/** Select the given records */
|
|
657
|
-
select: (
|
|
651
|
+
select: (e) => s.select(g(e)),
|
|
658
652
|
/** Deselect the given records */
|
|
659
|
-
deselect: (
|
|
653
|
+
deselect: (e) => s.deselect(g(e)),
|
|
660
654
|
/** Select records on the current page */
|
|
661
|
-
selectPage:
|
|
655
|
+
selectPage: t,
|
|
662
656
|
/** Deselect records on the current page */
|
|
663
|
-
deselectPage:
|
|
657
|
+
deselectPage: n,
|
|
664
658
|
/** Toggle the selection of the given records */
|
|
665
|
-
toggle: (
|
|
659
|
+
toggle: (e) => s.toggle(g(e)),
|
|
666
660
|
/** Determine if the given record is selected */
|
|
667
|
-
selected: (
|
|
661
|
+
selected: (e) => s.selected(g(e)),
|
|
668
662
|
/** Select all records */
|
|
669
|
-
selectAll:
|
|
663
|
+
selectAll: s.selectAll,
|
|
670
664
|
/** Deselect all records */
|
|
671
|
-
deselectAll:
|
|
665
|
+
deselectAll: s.deselectAll,
|
|
672
666
|
/** Whether all records on the current page are selected */
|
|
673
|
-
isPageSelected:
|
|
667
|
+
isPageSelected: B,
|
|
674
668
|
/** Determine if any records are selected */
|
|
675
|
-
hasSelected:
|
|
669
|
+
hasSelected: s.hasSelected,
|
|
676
670
|
/** Bind the given record to a checkbox */
|
|
677
|
-
bindCheckbox: (
|
|
671
|
+
bindCheckbox: (e) => s.bind(g(e)),
|
|
678
672
|
/** Bind the select all checkbox to the current page */
|
|
679
|
-
bindPage:
|
|
673
|
+
bindPage: o,
|
|
680
674
|
/** Bind select all records to the checkbox */
|
|
681
|
-
bindAll:
|
|
682
|
-
|
|
683
|
-
|
|
675
|
+
bindAll: s.bindAll,
|
|
676
|
+
filters: r.filters,
|
|
677
|
+
sorts: r.sorts,
|
|
678
|
+
searches: r.searches,
|
|
679
|
+
currentFilters: r.currentFilters,
|
|
680
|
+
currentSort: r.currentSort,
|
|
681
|
+
currentSearches: r.currentSearches,
|
|
682
|
+
isSortable: r.isSortable,
|
|
683
|
+
isSearchable: r.isSearchable,
|
|
684
|
+
isMatchable: r.isMatchable,
|
|
685
|
+
isFiltering: r.isFiltering,
|
|
686
|
+
isSorting: r.isSorting,
|
|
687
|
+
isSearching: r.isSearching,
|
|
688
|
+
getFilter: r.getFilter,
|
|
689
|
+
getSort: r.getSort,
|
|
690
|
+
getSearch: r.getSearch,
|
|
691
|
+
apply: r.apply,
|
|
692
|
+
applyFilter: r.applyFilter,
|
|
693
|
+
applySort: r.applySort,
|
|
694
|
+
applySearch: r.applySearch,
|
|
695
|
+
applyMatch: r.applyMatch,
|
|
696
|
+
clearFilter: r.clearFilter,
|
|
697
|
+
clearSort: r.clearSort,
|
|
698
|
+
clearSearch: r.clearSearch,
|
|
699
|
+
clearMatch: r.clearMatch,
|
|
700
|
+
reset: r.reset,
|
|
701
|
+
bindFilter: r.bindFilter,
|
|
702
|
+
bindSort: r.bindSort,
|
|
703
|
+
bindSearch: r.bindSearch,
|
|
704
|
+
bindMatch: r.bindMatch,
|
|
705
|
+
stringValue: r.stringValue,
|
|
706
|
+
omitValue: r.omitValue,
|
|
707
|
+
toggleValue: r.toggleValue,
|
|
708
|
+
delimitArray: r.delimitArray
|
|
684
709
|
});
|
|
685
710
|
}
|
|
686
|
-
function
|
|
687
|
-
return
|
|
711
|
+
function ce(a, m) {
|
|
712
|
+
return a ? typeof a == "object" ? a.type === m : a === m : !1;
|
|
688
713
|
}
|
|
689
714
|
export {
|
|
690
|
-
|
|
691
|
-
|
|
715
|
+
ce as is,
|
|
716
|
+
ue as useTable
|
|
692
717
|
};
|