@gen-epix/ui-client-common 4.7.0 → 4.8.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/_chunks/CrudPage.js +235 -234
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -0
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +3 -3
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +1021 -703
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +5108 -160
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +10 -6
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/query.js +37 -37
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/tableStore.js +248 -228
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -2
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +5 -5
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/BooleanFilter.d.ts +1 -0
- package/dist/classes/filters/DateFilter.d.ts +1 -1
- package/dist/classes/filters/GeoFilter.d.ts +1 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +1 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
- package/dist/classes/filters/TextFilter.d.ts +1 -0
- package/dist/components/app/App/index.js +3 -2
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
- package/dist/components/ui/Table/index.d.ts +1 -0
- package/dist/components/ui/Table/index.js +1 -1
- package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
- package/dist/locale/en.json +14 -0
- package/dist/locale/nl.json +14 -0
- package/dist/models/table.models.d.ts +1 -0
- package/dist/models/table.models.js.map +1 -1
- package/dist/stores/tableStore/tableStore.d.ts +3 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +5 -0
- package/package.json +19 -21
- package/dist/_chunks/useColumnsMenu.js +0 -159
- package/dist/_chunks/useColumnsMenu.js.map +0 -1
- package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
- package/dist/hooks/useColumnsMenu/index.js +0 -1
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
|
@@ -10,13 +10,13 @@ import { n as u, t as d } from "./middleware.js";
|
|
|
10
10
|
import { DEFAULT_FILTER_GROUP as f, FILTER_MODE as p } from "../classes/abstracts/FilterAbstract/index.js";
|
|
11
11
|
import { TableEventBus as m } from "../classes/TableEventBus/index.js";
|
|
12
12
|
import { t as h } from "./TableUtil.js";
|
|
13
|
-
import { container as
|
|
14
|
-
import { WindowService as
|
|
15
|
-
import { createContext as
|
|
16
|
-
import { ObjectUtil as
|
|
17
|
-
import { jsx as
|
|
13
|
+
import { container as g } from "tsyringe";
|
|
14
|
+
import { WindowService as ee } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
15
|
+
import { createContext as te, use as ne } from "react";
|
|
16
|
+
import { ObjectUtil as re } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
17
|
+
import { jsx as ie } from "react/jsx-runtime";
|
|
18
18
|
// ../../node_modules/.pnpm/immer@11.2.10/node_modules/immer/dist/immer.mjs
|
|
19
|
-
var
|
|
19
|
+
var ae = Symbol.for("immer-nothing"), oe = Symbol.for("immer-draftable"), _ = Symbol.for("immer-state"), se = process.env.NODE_ENV === "production" ? [] : [
|
|
20
20
|
function(e) {
|
|
21
21
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
22
22
|
},
|
|
@@ -44,99 +44,99 @@ var oe = Symbol.for("immer-nothing"), se = Symbol.for("immer-draftable"), g = Sy
|
|
|
44
44
|
return `'original' expects a draft, got: ${e}`;
|
|
45
45
|
}
|
|
46
46
|
];
|
|
47
|
-
function
|
|
47
|
+
function v(e, ...t) {
|
|
48
48
|
if (process.env.NODE_ENV !== "production") {
|
|
49
|
-
let n =
|
|
49
|
+
let n = se[e], r = I(n) ? n.apply(null, t) : n;
|
|
50
50
|
throw Error(`[Immer] ${r}`);
|
|
51
51
|
}
|
|
52
52
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return e ?
|
|
54
|
+
var y = Object, b = y.getPrototypeOf, x = "constructor", S = "prototype", ce = "configurable", C = "enumerable", w = "writable", T = "value", E = (e) => !!e && !!e[_];
|
|
55
|
+
function D(e) {
|
|
56
|
+
return e ? de(e) || N(e) || !!e[oe] || !!e[x]?.[oe] || P(e) || F(e) : !1;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
if (!e || !
|
|
61
|
-
let t =
|
|
62
|
-
if (t === null || t ===
|
|
63
|
-
let n =
|
|
58
|
+
var le = y[S][x].toString(), ue = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
function de(e) {
|
|
60
|
+
if (!e || !pe(e)) return !1;
|
|
61
|
+
let t = b(e);
|
|
62
|
+
if (t === null || t === y[S]) return !0;
|
|
63
|
+
let n = y.hasOwnProperty.call(t, x) && t[x];
|
|
64
64
|
if (n === Object) return !0;
|
|
65
65
|
if (!I(n)) return !1;
|
|
66
|
-
let r =
|
|
67
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
66
|
+
let r = ue.get(n);
|
|
67
|
+
return r === void 0 && (r = Function.toString.call(n), ue.set(n, r)), r === le;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function O(e, t, n = !0) {
|
|
70
|
+
k(e) === 0 ? (n ? Reflect.ownKeys(e) : y.keys(e)).forEach((n) => {
|
|
71
71
|
t(n, e[n], e);
|
|
72
72
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
let t = e[
|
|
76
|
-
return t ? t.type_ :
|
|
74
|
+
function k(e) {
|
|
75
|
+
let t = e[_];
|
|
76
|
+
return t ? t.type_ : N(e) ? 1 : P(e) ? 2 : F(e) ? 3 : 0;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var A = (e, t, n = k(e)) => n === 2 ? e.has(t) : y[S].hasOwnProperty.call(e, t), j = (e, t, n = k(e)) => n === 2 ? e.get(t) : e[t], M = (e, t, n, r = k(e)) => {
|
|
79
79
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function fe(e, t) {
|
|
82
82
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var N = Array.isArray, P = (e) => e instanceof Map, F = (e) => e instanceof Set, pe = (e) => typeof e == "object", I = (e) => typeof e == "function", me = (e) => typeof e == "boolean";
|
|
85
85
|
function he(e) {
|
|
86
86
|
let t = +e;
|
|
87
87
|
return Number.isInteger(t) && String(t) === e;
|
|
88
88
|
}
|
|
89
89
|
var L = (e) => e.copy_ || e.base_, ge = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
if (
|
|
93
|
-
if (
|
|
94
|
-
let n =
|
|
90
|
+
function R(e, t) {
|
|
91
|
+
if (P(e)) return new Map(e);
|
|
92
|
+
if (F(e)) return new Set(e);
|
|
93
|
+
if (N(e)) return Array[S].slice.call(e);
|
|
94
|
+
let n = de(e);
|
|
95
95
|
if (t === !0 || t === "class_only" && !n) {
|
|
96
|
-
let t =
|
|
97
|
-
delete t[
|
|
96
|
+
let t = y.getOwnPropertyDescriptors(e);
|
|
97
|
+
delete t[_];
|
|
98
98
|
let n = Reflect.ownKeys(t);
|
|
99
99
|
for (let r = 0; r < n.length; r++) {
|
|
100
100
|
let i = n[r], a = t[i];
|
|
101
|
-
a[
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
105
|
-
[
|
|
101
|
+
a[w] === !1 && (a[w] = !0, a[ce] = !0), (a.get || a.set) && (t[i] = {
|
|
102
|
+
[ce]: !0,
|
|
103
|
+
[w]: !0,
|
|
104
|
+
[C]: a[C],
|
|
105
|
+
[T]: e[i]
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return y.create(b(e), t);
|
|
109
109
|
}
|
|
110
110
|
{
|
|
111
|
-
let t =
|
|
111
|
+
let t = b(e);
|
|
112
112
|
if (t !== null && n) return { ...e };
|
|
113
|
-
let r =
|
|
114
|
-
return
|
|
113
|
+
let r = y.create(t);
|
|
114
|
+
return y.assign(r, e);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
119
|
-
set:
|
|
120
|
-
add:
|
|
121
|
-
clear:
|
|
122
|
-
delete:
|
|
123
|
-
}),
|
|
124
|
-
|
|
117
|
+
function z(e, t = !1) {
|
|
118
|
+
return V(e) || E(e) || !D(e) || (k(e) > 1 && y.defineProperties(e, {
|
|
119
|
+
set: B,
|
|
120
|
+
add: B,
|
|
121
|
+
clear: B,
|
|
122
|
+
delete: B
|
|
123
|
+
}), y.freeze(e), t && O(e, (e, t) => {
|
|
124
|
+
z(t, !0);
|
|
125
125
|
}, !1)), e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function _e() {
|
|
128
|
+
v(2);
|
|
129
129
|
}
|
|
130
|
-
var
|
|
131
|
-
function
|
|
132
|
-
return e === null || !
|
|
130
|
+
var B = { [T]: _e };
|
|
131
|
+
function V(e) {
|
|
132
|
+
return e === null || !pe(e) || y.isFrozen(e);
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
136
|
-
let t =
|
|
137
|
-
return t ||
|
|
134
|
+
var H = "MapSet", U = "Patches", ve = "ArrayMethods", ye = {};
|
|
135
|
+
function W(e) {
|
|
136
|
+
let t = ye[e];
|
|
137
|
+
return t || v(0, e), t;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var be = (e) => !!ye[e], G, xe = () => G, Se = (e, t) => ({
|
|
140
140
|
drafts_: [],
|
|
141
141
|
parent_: e,
|
|
142
142
|
immer_: t,
|
|
@@ -144,114 +144,114 @@ var xe = (e) => !!be[e], W, Se = () => W, Ce = (e, t) => ({
|
|
|
144
144
|
unfinalizedDrafts_: 0,
|
|
145
145
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
146
146
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
147
|
-
mapSetPlugin_:
|
|
148
|
-
arrayMethodsPlugin_:
|
|
147
|
+
mapSetPlugin_: be(H) ? W(H) : void 0,
|
|
148
|
+
arrayMethodsPlugin_: be(ve) ? W(ve) : void 0
|
|
149
149
|
});
|
|
150
|
-
function
|
|
151
|
-
t && (e.patchPlugin_ = U
|
|
152
|
-
}
|
|
153
|
-
function G(e) {
|
|
154
|
-
K(e), e.drafts_.forEach(Ee), e.drafts_ = null;
|
|
150
|
+
function Ce(e, t) {
|
|
151
|
+
t && (e.patchPlugin_ = W(U), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
155
152
|
}
|
|
156
153
|
function K(e) {
|
|
157
|
-
e
|
|
154
|
+
q(e), e.drafts_.forEach(Te), e.drafts_ = null;
|
|
155
|
+
}
|
|
156
|
+
function q(e) {
|
|
157
|
+
e === G && (G = e.parent_);
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
let t = e[
|
|
159
|
+
var we = (e) => G = Se(G, e);
|
|
160
|
+
function Te(e) {
|
|
161
|
+
let t = e[_];
|
|
162
162
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ee(e, t) {
|
|
165
165
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
166
166
|
let n = t.drafts_[0];
|
|
167
167
|
if (e !== void 0 && e !== n) {
|
|
168
|
-
n[
|
|
168
|
+
n[_].modified_ && (K(t), v(4)), D(e) && (e = De(t, e));
|
|
169
169
|
let { patchPlugin_: r } = t;
|
|
170
|
-
r && r.generateReplacementPatches_(n[
|
|
171
|
-
} else e =
|
|
172
|
-
return
|
|
173
|
-
}
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
176
|
-
let n = t[
|
|
177
|
-
if (!n) return
|
|
178
|
-
if (!
|
|
170
|
+
r && r.generateReplacementPatches_(n[_].base_, e, t);
|
|
171
|
+
} else e = De(t, n);
|
|
172
|
+
return Oe(t, e, !0), K(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === ae ? void 0 : e;
|
|
173
|
+
}
|
|
174
|
+
function De(e, t) {
|
|
175
|
+
if (V(t)) return t;
|
|
176
|
+
let n = t[_];
|
|
177
|
+
if (!n) return Y(t, e.handledSet_, e);
|
|
178
|
+
if (!J(n, e)) return t;
|
|
179
179
|
if (!n.modified_) return n.base_;
|
|
180
180
|
if (!n.finalized_) {
|
|
181
181
|
let { callbacks_: t } = n;
|
|
182
182
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
183
|
-
|
|
183
|
+
Ne(n, e);
|
|
184
184
|
}
|
|
185
185
|
return n.copy_;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
187
|
+
function Oe(e, t, n = !1) {
|
|
188
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && z(t, n);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function ke(e) {
|
|
191
191
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
193
|
+
var J = (e, t) => e.scope_ === t, Ae = [];
|
|
194
|
+
function je(e, t, n, r) {
|
|
195
195
|
let i = L(e), a = e.type_;
|
|
196
|
-
if (r !== void 0 &&
|
|
197
|
-
|
|
196
|
+
if (r !== void 0 && j(i, r, a) === t) {
|
|
197
|
+
M(i, r, n, a);
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
if (!e.draftLocations_) {
|
|
201
201
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
202
|
-
|
|
203
|
-
if (
|
|
202
|
+
O(i, (e, n) => {
|
|
203
|
+
if (E(n)) {
|
|
204
204
|
let r = t.get(n) || [];
|
|
205
205
|
r.push(e), t.set(n, r);
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
let o = e.draftLocations_.get(t) ??
|
|
210
|
-
for (let e of o)
|
|
209
|
+
let o = e.draftLocations_.get(t) ?? Ae;
|
|
210
|
+
for (let e of o) M(i, e, n, a);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Me(e, t, n) {
|
|
213
213
|
e.callbacks_.push(function(r) {
|
|
214
214
|
let i = t;
|
|
215
|
-
if (!i || !
|
|
215
|
+
if (!i || !J(i, r)) return;
|
|
216
216
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
217
217
|
let a = ge(i);
|
|
218
|
-
|
|
218
|
+
je(e, i.draft_ ?? i, a, n), Ne(i, r);
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ne(e, t) {
|
|
222
222
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
223
223
|
let { patchPlugin_: n } = t;
|
|
224
224
|
if (n) {
|
|
225
225
|
let r = n.getPath(e);
|
|
226
226
|
r && n.generatePatches_(e, r, t);
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
ke(e);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Pe(e, t, n) {
|
|
232
232
|
let { scope_: r } = e;
|
|
233
|
-
if (
|
|
234
|
-
let i = n[
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
if (E(n)) {
|
|
234
|
+
let i = n[_];
|
|
235
|
+
J(i, r) && i.callbacks_.push(function() {
|
|
236
|
+
Q(e), je(e, n, ge(i), t);
|
|
237
237
|
});
|
|
238
|
-
} else
|
|
238
|
+
} else D(n) && e.callbacks_.push(function() {
|
|
239
239
|
let i = L(e);
|
|
240
|
-
e.type_ === 3 ? i.has(n) &&
|
|
240
|
+
e.type_ === 3 ? i.has(n) && Y(n, r.handledSet_, r) : j(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && Y(j(e.copy_, t, e.type_), r.handledSet_, r);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
245
|
-
if (
|
|
246
|
-
let t = i[
|
|
247
|
-
|
|
248
|
-
} else
|
|
243
|
+
function Y(e, t, n) {
|
|
244
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || E(e) || t.has(e) || !D(e) || V(e) || (t.add(e), O(e, (r, i) => {
|
|
245
|
+
if (E(i)) {
|
|
246
|
+
let t = i[_];
|
|
247
|
+
J(t, n) && (M(e, r, ge(t), e.type_), ke(t));
|
|
248
|
+
} else D(i) && Y(i, t, n);
|
|
249
249
|
})), e;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
let n =
|
|
251
|
+
function Fe(e, t) {
|
|
252
|
+
let n = N(e), r = {
|
|
253
253
|
type_: +!!n,
|
|
254
|
-
scope_: t ? t.scope_ :
|
|
254
|
+
scope_: t ? t.scope_ : xe(),
|
|
255
255
|
modified_: !1,
|
|
256
256
|
finalized_: !1,
|
|
257
257
|
assigned_: void 0,
|
|
@@ -262,23 +262,23 @@ function Ie(e, t) {
|
|
|
262
262
|
revoke_: null,
|
|
263
263
|
isManual_: !1,
|
|
264
264
|
callbacks_: void 0
|
|
265
|
-
}, i = r, a =
|
|
266
|
-
n && (i = [r], a =
|
|
265
|
+
}, i = r, a = X;
|
|
266
|
+
n && (i = [r], a = Z);
|
|
267
267
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
268
268
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
269
269
|
}
|
|
270
|
-
var
|
|
270
|
+
var X = {
|
|
271
271
|
get(e, t) {
|
|
272
|
-
if (t ===
|
|
272
|
+
if (t === _) return e;
|
|
273
273
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
274
274
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
275
275
|
let i = L(e);
|
|
276
|
-
if (!
|
|
276
|
+
if (!A(i, t, e.type_)) return Re(e, i, t);
|
|
277
277
|
let a = i[t];
|
|
278
|
-
if (e.finalized_ || !
|
|
279
|
-
if (a ===
|
|
280
|
-
|
|
281
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
278
|
+
if (e.finalized_ || !D(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && he(t)) return a;
|
|
279
|
+
if (a === Ie(e.base_, t) || Le(e, t, a)) {
|
|
280
|
+
Q(e);
|
|
281
|
+
let n = e.type_ === 1 ? +t : t, r = He(e.scope_, a, e, n);
|
|
282
282
|
return e.copy_[n] = r;
|
|
283
283
|
}
|
|
284
284
|
return a;
|
|
@@ -290,77 +290,77 @@ var Y = {
|
|
|
290
290
|
return Reflect.ownKeys(L(e));
|
|
291
291
|
},
|
|
292
292
|
set(e, t, n) {
|
|
293
|
-
let r =
|
|
293
|
+
let r = ze(L(e), t);
|
|
294
294
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
295
295
|
if (!e.modified_) {
|
|
296
|
-
let r =
|
|
296
|
+
let r = Ie(L(e), t), i = r?.[_];
|
|
297
297
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.delete(t), !0;
|
|
298
|
-
if (
|
|
299
|
-
|
|
298
|
+
if (fe(n, r) && (n !== void 0 || A(e.base_, t, e.type_))) return !0;
|
|
299
|
+
Q(e), Be(e);
|
|
300
300
|
}
|
|
301
|
-
return e.copy_[t] === n && (n !== void 0 ||
|
|
301
|
+
return e.copy_[t] === n && (n !== void 0 || A(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), Pe(e, t, n)), !0;
|
|
302
302
|
},
|
|
303
303
|
deleteProperty(e, t) {
|
|
304
|
-
return
|
|
304
|
+
return Q(e), Ie(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Be(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
305
305
|
},
|
|
306
306
|
getOwnPropertyDescriptor(e, t) {
|
|
307
307
|
let n = L(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
308
308
|
return r && {
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
309
|
+
[w]: !0,
|
|
310
|
+
[ce]: e.type_ !== 1 || t !== "length",
|
|
311
|
+
[C]: r[C],
|
|
312
|
+
[T]: n[t]
|
|
313
313
|
};
|
|
314
314
|
},
|
|
315
315
|
defineProperty() {
|
|
316
|
-
|
|
316
|
+
v(11);
|
|
317
317
|
},
|
|
318
318
|
getPrototypeOf(e) {
|
|
319
|
-
return
|
|
319
|
+
return b(e.base_);
|
|
320
320
|
},
|
|
321
321
|
setPrototypeOf() {
|
|
322
|
-
|
|
322
|
+
v(12);
|
|
323
323
|
}
|
|
324
|
-
},
|
|
325
|
-
for (let e in
|
|
326
|
-
let t =
|
|
327
|
-
|
|
324
|
+
}, Z = {};
|
|
325
|
+
for (let e in X) {
|
|
326
|
+
let t = X[e];
|
|
327
|
+
Z[e] = function() {
|
|
328
328
|
let e = arguments;
|
|
329
329
|
return e[0] = e[0][0], t.apply(this, e);
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
334
|
-
},
|
|
335
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
332
|
+
Z.deleteProperty = function(e, t) {
|
|
333
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && v(13), Z.set.call(this, e, t, void 0);
|
|
334
|
+
}, Z.set = function(e, t, n) {
|
|
335
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && v(14), X.set.call(this, e[0], t, n, e[0]);
|
|
336
336
|
};
|
|
337
|
-
function
|
|
338
|
-
let n = e[
|
|
337
|
+
function Ie(e, t) {
|
|
338
|
+
let n = e[_];
|
|
339
339
|
return (n ? L(n) : e)[t];
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return e.type_ !== 1 || !e.allIndicesReassigned_ || !
|
|
341
|
+
function Le(e, t, n) {
|
|
342
|
+
return e.type_ !== 1 || !e.allIndicesReassigned_ || !D(n) || n[_] ? !1 : e.baseRefs_.has(n);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
let r =
|
|
346
|
-
return r ?
|
|
344
|
+
function Re(e, t, n) {
|
|
345
|
+
let r = ze(t, n);
|
|
346
|
+
return r ? T in r ? r[T] : r.get?.call(e.draft_) : void 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function ze(e, t) {
|
|
349
349
|
if (!(t in e)) return;
|
|
350
|
-
let n =
|
|
350
|
+
let n = b(e);
|
|
351
351
|
for (; n;) {
|
|
352
352
|
let e = Object.getOwnPropertyDescriptor(n, t);
|
|
353
353
|
if (e) return e;
|
|
354
|
-
n =
|
|
354
|
+
n = b(n);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
357
|
+
function Be(e) {
|
|
358
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Be(e.parent_));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
360
|
+
function Q(e) {
|
|
361
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), R(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var Ve = class {
|
|
364
364
|
constructor(e) {
|
|
365
365
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
366
366
|
if (I(e) && !I(t)) {
|
|
@@ -371,28 +371,28 @@ var He = class {
|
|
|
371
371
|
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
I(t) ||
|
|
374
|
+
I(t) || v(6), n !== void 0 && !I(n) && v(7);
|
|
375
375
|
let r;
|
|
376
|
-
if (
|
|
377
|
-
let i =
|
|
376
|
+
if (D(e)) {
|
|
377
|
+
let i = we(this), a = He(i, e, void 0), o = !0;
|
|
378
378
|
try {
|
|
379
379
|
r = t(a), o = !1;
|
|
380
380
|
} finally {
|
|
381
|
-
o ?
|
|
381
|
+
o ? K(i) : q(i);
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return Ce(i, n), Ee(r, i);
|
|
384
384
|
}
|
|
385
|
-
if (!e || !
|
|
386
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
385
|
+
if (!e || !pe(e)) {
|
|
386
|
+
if (r = t(e), r === void 0 && (r = e), r === ae && (r = void 0), this.autoFreeze_ && z(r, !0), n) {
|
|
387
387
|
let t = [], i = [];
|
|
388
|
-
U
|
|
388
|
+
W(U).generateReplacementPatches_(e, r, {
|
|
389
389
|
patches_: t,
|
|
390
390
|
inversePatches_: i
|
|
391
391
|
}), n(t, i);
|
|
392
392
|
}
|
|
393
393
|
return r;
|
|
394
394
|
}
|
|
395
|
-
|
|
395
|
+
v(1, e);
|
|
396
396
|
}, this.produceWithPatches = (e, t) => {
|
|
397
397
|
if (I(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
398
398
|
let n, r;
|
|
@@ -408,15 +408,15 @@ var He = class {
|
|
|
408
408
|
(me(t) || t === "class_only") && this.setUseStrictShallowCopy(t), me(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
409
409
|
}
|
|
410
410
|
createDraft(e) {
|
|
411
|
-
|
|
412
|
-
let t =
|
|
413
|
-
return n[
|
|
411
|
+
D(e) || v(8), E(e) && (e = Ue(e));
|
|
412
|
+
let t = we(this), n = He(t, e, void 0);
|
|
413
|
+
return n[_].isManual_ = !0, q(t), n;
|
|
414
414
|
}
|
|
415
415
|
finishDraft(e, t) {
|
|
416
|
-
let n = e && e[
|
|
417
|
-
n && n.isManual_ ||
|
|
416
|
+
let n = e && e[_];
|
|
417
|
+
n && n.isManual_ || v(9);
|
|
418
418
|
let { scope_: r } = n;
|
|
419
|
-
return
|
|
419
|
+
return Ce(r, t), Ee(void 0, r);
|
|
420
420
|
}
|
|
421
421
|
setAutoFreeze(e) {
|
|
422
422
|
this.autoFreeze_ = e;
|
|
@@ -440,35 +440,35 @@ var He = class {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
n > -1 && (t = t.slice(n + 1));
|
|
443
|
-
let r = U
|
|
444
|
-
return
|
|
443
|
+
let r = W(U).applyPatches_;
|
|
444
|
+
return E(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
|
-
function
|
|
448
|
-
let [i, a] =
|
|
449
|
-
return (n?.scope_ ??
|
|
447
|
+
function He(e, t, n, r) {
|
|
448
|
+
let [i, a] = P(t) ? W(H).proxyMap_(t, n) : F(t) ? W(H).proxySet_(t, n) : Fe(t, n);
|
|
449
|
+
return (n?.scope_ ?? xe()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Me(n, a, r) : a.callbacks_.push(function(e) {
|
|
450
450
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
451
451
|
let { patchPlugin_: t } = e;
|
|
452
452
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
453
453
|
}), i;
|
|
454
454
|
}
|
|
455
455
|
function Ue(e) {
|
|
456
|
-
return
|
|
456
|
+
return E(e) || v(10, e), We(e);
|
|
457
457
|
}
|
|
458
458
|
function We(e) {
|
|
459
|
-
if (!
|
|
460
|
-
let t = e[
|
|
459
|
+
if (!D(e) || V(e)) return e;
|
|
460
|
+
let t = e[_], n, r = !0;
|
|
461
461
|
if (t) {
|
|
462
462
|
if (!t.modified_) return t.base_;
|
|
463
|
-
t.finalized_ = !0, n =
|
|
464
|
-
} else n =
|
|
463
|
+
t.finalized_ = !0, n = R(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
464
|
+
} else n = R(e, !0);
|
|
465
465
|
let i = n;
|
|
466
|
-
return
|
|
467
|
-
|
|
466
|
+
return F(n) && (n = /* @__PURE__ */ new Set()), O(i, (e, t) => {
|
|
467
|
+
M(n, e, We(t));
|
|
468
468
|
}, r), t && (t.finalized_ = !1), n;
|
|
469
469
|
}
|
|
470
470
|
globalThis.Iterator?.from;
|
|
471
|
-
var Ge = new
|
|
471
|
+
var Ge = new Ve().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
472
472
|
function n(e) {
|
|
473
473
|
return e && e.length ? e[0] : void 0;
|
|
474
474
|
}
|
|
@@ -540,11 +540,11 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
540
540
|
n(e, r, t);
|
|
541
541
|
});
|
|
542
542
|
})), rt = /* @__PURE__ */ e(qe(), 1), it = /* @__PURE__ */ e(r(), 1), at = /* @__PURE__ */ e(nt(), 1), ot = /* @__PURE__ */ e(l(), 1), st = (e) => {
|
|
543
|
-
let { defaultSortByField: t, defaultSortDirection: n, idSelectorCallback: r, isRowEnabledCallback: i, navigatorFunction: a } = e,
|
|
543
|
+
let { defaultSortByField: t, defaultSortDirection: n, idSelectorCallback: r, isRowEnabledCallback: i, navigatorFunction: a, showMissingValuesFilter: o } = e, s = new URL(document.location.href).searchParams, c = t, l = n;
|
|
544
544
|
if (a) {
|
|
545
|
-
|
|
546
|
-
let e =
|
|
547
|
-
(e === "asc" || e === "desc") && (
|
|
545
|
+
s.get("sortByField") && (c = s.get("sortByField"));
|
|
546
|
+
let e = s.get("sortDirection");
|
|
547
|
+
(e === "asc" || e === "desc") && (l = e);
|
|
548
548
|
}
|
|
549
549
|
return {
|
|
550
550
|
backendFilters: [],
|
|
@@ -573,8 +573,9 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
573
573
|
isRowEnabledCallback: i,
|
|
574
574
|
navigateFunction: a,
|
|
575
575
|
selectedIds: [],
|
|
576
|
-
|
|
577
|
-
|
|
576
|
+
showMissingValuesFilter: o ?? !1,
|
|
577
|
+
sortByField: c,
|
|
578
|
+
sortDirection: l,
|
|
578
579
|
sortedData: [],
|
|
579
580
|
sortedIds: null,
|
|
580
581
|
visibleFilterWithinDimensions: {}
|
|
@@ -633,7 +634,7 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
633
634
|
reloadFilterPriorityData: (e, n) => {
|
|
634
635
|
let { columns: r, dataContext: i, frontendFilters: a } = t(), o = a[e], s = (0, at.default)(r, "id");
|
|
635
636
|
return n.filter((e, t) => o.every((n) => {
|
|
636
|
-
if (n.
|
|
637
|
+
if (!n.isFilterActive()) return !0;
|
|
637
638
|
let r = s[n.id], a = r.valueGetter ? r.valueGetter({
|
|
638
639
|
column: r,
|
|
639
640
|
dataContext: i,
|
|
@@ -641,7 +642,7 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
641
642
|
row: e,
|
|
642
643
|
rowIndex: t
|
|
643
644
|
}) : e[r.id];
|
|
644
|
-
return n.
|
|
645
|
+
return n.matchRowValueIncludingMissingValues(a, (e) => n.matchRowValue(e));
|
|
645
646
|
}));
|
|
646
647
|
},
|
|
647
648
|
reloadSelectedIds: () => {
|
|
@@ -676,10 +677,10 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
676
677
|
i(h.createInitialVisualColumnSettings(e)), r(n ? h.createCondensedVisualColumnSettingsFromColumnSettings(e, t().columnVisualSettingsUncondensed) : null);
|
|
677
678
|
},
|
|
678
679
|
resetFilters: async () => {
|
|
679
|
-
let {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}), await
|
|
680
|
+
let { filters: e, setFilterValues: n, showMissingValuesFilter: r } = t(), i = {};
|
|
681
|
+
e.forEach((e) => {
|
|
682
|
+
i[e.id] = e.initialFilterValue, r && (i[e.includeMissingValuesFormFieldName] = !1);
|
|
683
|
+
}), await n(i);
|
|
683
684
|
},
|
|
684
685
|
selectId: (e) => {
|
|
685
686
|
let { selectedIds: n, setSelectedIds: r } = t();
|
|
@@ -706,48 +707,67 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
706
707
|
n(r ? { columnVisualSettingsCondensed: e } : { columnVisualSettingsUncondensed: e });
|
|
707
708
|
},
|
|
708
709
|
setFilters: (e, r, i) => {
|
|
709
|
-
let { navigateFunction: a } = t();
|
|
710
|
-
if (
|
|
710
|
+
let { navigateFunction: a, showMissingValuesFilter: o } = t();
|
|
711
|
+
if (e.forEach((e) => {
|
|
712
|
+
e.setIncludeMissingValues(!1);
|
|
713
|
+
}), n({
|
|
711
714
|
filterDimensions: r,
|
|
712
715
|
filters: e,
|
|
713
716
|
frontendFilterPriorities: i
|
|
714
717
|
}), n({ backendFilters: e.filter((e) => e.filterMode === p.BACKEND) }), n({ frontendFilters: Object.fromEntries(i.map((t) => [t, e.filter((e) => e.filterPriority === t)])) }), a) {
|
|
715
|
-
let t = new URLSearchParams(
|
|
718
|
+
let t = new URLSearchParams(g.resolve(ee).window.document.location.search);
|
|
716
719
|
e.forEach((e) => {
|
|
717
720
|
let n = t.get(e.id);
|
|
718
|
-
n && e.setFilterValue(e.fromURLSearchParameterValue(n));
|
|
721
|
+
n && (e.setFilterValue(e.fromURLSearchParameterValue(n)), o || e.setIncludeMissingValues(!1));
|
|
719
722
|
});
|
|
720
723
|
}
|
|
721
724
|
},
|
|
722
|
-
setFilterValue: async (e, n) => {
|
|
723
|
-
let { filterDimensions:
|
|
724
|
-
if (
|
|
725
|
-
t.id === e ? (
|
|
726
|
-
}),
|
|
727
|
-
let e =
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}),
|
|
725
|
+
setFilterValue: async (e, n, r) => {
|
|
726
|
+
let { filterDimensions: i, filters: a, setFilterValues: o, setVisibleFilterWithinDimension: s, showMissingValuesFilter: c } = t(), l = {}, u;
|
|
727
|
+
if (a.forEach((t) => {
|
|
728
|
+
t.id === e ? (l[e] = n, u = t) : l[t.id] = t.filterValue, c && (l[t.includeMissingValuesFormFieldName] = t.id === e ? r ?? t.includeMissingValues : t.includeMissingValues);
|
|
729
|
+
}), u?.filterDimensionId) {
|
|
730
|
+
let e = i.find((e) => e.id === u.filterDimensionId);
|
|
731
|
+
a.filter((t) => t.filterDimensionId === e.id && t.id !== u.id).forEach((e) => {
|
|
732
|
+
l[e.id] = e.initialFilterValue, c && (l[e.includeMissingValuesFormFieldName] = !1);
|
|
733
|
+
}), s(u.filterDimensionId, u.id);
|
|
731
734
|
}
|
|
732
|
-
await
|
|
735
|
+
await o(l);
|
|
733
736
|
},
|
|
734
737
|
setFilterValues: async (e) => {
|
|
735
|
-
let { fetchData: r, filters: i, frontendFilterPriorities: a, navigateFunction: o, reloadFilterData: s, reloadSelectedIds: c,
|
|
738
|
+
let { fetchData: r, filters: i, frontendFilterPriorities: a, navigateFunction: o, reloadFilterData: s, reloadSelectedIds: c, showMissingValuesFilter: l, updateUrl: u } = t(), d = {}, f = {}, m = {}, h = {};
|
|
736
739
|
i.forEach((e) => {
|
|
737
|
-
e.filterMode === p.BACKEND && (
|
|
740
|
+
e.filterMode === p.BACKEND && (m[e.id] = {
|
|
741
|
+
filterValue: e.filterValue,
|
|
742
|
+
includeMissingValues: e.includeMissingValues
|
|
743
|
+
}), e.filterMode === p.FRONTEND && (h[e.filterPriority] = h[e.filterPriority] || {}, h[e.filterPriority][e.id] = {
|
|
744
|
+
filterValue: e.filterValue,
|
|
745
|
+
includeMissingValues: e.includeMissingValues
|
|
746
|
+
});
|
|
738
747
|
});
|
|
739
|
-
let
|
|
748
|
+
let g = Ge(i, (t) => (t.forEach((t) => {
|
|
740
749
|
e[t.id] !== void 0 && t.setFilterValue(e[t.id]);
|
|
750
|
+
let n = e[t.includeMissingValuesFormFieldName];
|
|
751
|
+
if (l && n !== void 0) {
|
|
752
|
+
if (typeof n != "boolean") throw TypeError("Missing-value filter setting must be a boolean.");
|
|
753
|
+
t.setIncludeMissingValues(n);
|
|
754
|
+
}
|
|
741
755
|
}), t));
|
|
742
|
-
if (n({ filters:
|
|
756
|
+
if (n({ filters: g }), o) {
|
|
743
757
|
let e = new URL(document.location.href).searchParams;
|
|
744
|
-
|
|
745
|
-
t.
|
|
746
|
-
}), await
|
|
758
|
+
g.forEach((t) => {
|
|
759
|
+
t.isFilterActive() ? e = $(t.id, t.toURLSearchParameterValue(), e) : e.delete(t.id);
|
|
760
|
+
}), await u(e);
|
|
747
761
|
}
|
|
748
|
-
|
|
749
|
-
e.filterMode === p.BACKEND && (
|
|
750
|
-
|
|
762
|
+
g.forEach((e) => {
|
|
763
|
+
e.filterMode === p.BACKEND && (d[e.id] = {
|
|
764
|
+
filterValue: e.filterValue,
|
|
765
|
+
includeMissingValues: e.includeMissingValues
|
|
766
|
+
}), e.filterMode === p.FRONTEND && (f[e.filterPriority] = f[e.filterPriority] || {}, f[e.filterPriority][e.id] = {
|
|
767
|
+
filterValue: e.filterValue,
|
|
768
|
+
includeMissingValues: e.includeMissingValues
|
|
769
|
+
});
|
|
770
|
+
}), re.getObjectDiff(m, d).length > 0 ? await r() : (s(a.find((e) => re.getObjectDiff(h[e], f[e]).length > 0 ? e : null)), c());
|
|
751
771
|
},
|
|
752
772
|
setIsCondensed: (e) => {
|
|
753
773
|
let { columns: r } = t();
|
|
@@ -807,13 +827,13 @@ var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
807
827
|
set: e
|
|
808
828
|
})
|
|
809
829
|
}));
|
|
810
|
-
}, dt =
|
|
830
|
+
}, dt = te(null), ft = (e) => {
|
|
811
831
|
let { children: t, store: n } = e;
|
|
812
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ ie(dt, {
|
|
813
833
|
value: n,
|
|
814
834
|
children: t
|
|
815
835
|
});
|
|
816
|
-
}, pt = () =>
|
|
836
|
+
}, pt = () => ne(dt);
|
|
817
837
|
export { lt as a, $ as c, ut as i, Ge as l, ft as n, st as o, dt as r, ct as s, pt as t };
|
|
818
838
|
|
|
819
839
|
//# sourceMappingURL=tableStore.js.map
|