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