@gen-epix/ui-client-common 4.0.0 → 4.0.1
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/@types/{ui.d.ts → ui-client-common.d.ts} +1 -1
- package/dist/_chunks/ApplicationFooter.js +1 -1
- package/dist/_chunks/ApplicationFooter.js.map +1 -1
- package/dist/_chunks/Breadcrumbs.js +1 -1
- package/dist/_chunks/Breadcrumbs.js.map +1 -1
- package/dist/_chunks/CrudPage.js +293 -293
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -1
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js.map +1 -1
- package/dist/_chunks/OutageList.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +79 -66
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +953 -945
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +4 -4
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +110 -110
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/_baseFlatten.js +1 -1
- package/dist/_chunks/_baseGet.js +26 -26
- package/dist/_chunks/_baseGet.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +25 -26
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +1041 -1128
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
- package/dist/_chunks/format.js +199 -198
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/index.esm.js +797 -692
- package/dist/_chunks/index.esm.js.map +1 -1
- package/dist/_chunks/isArrayLike.js +1 -2
- package/dist/_chunks/isArrayLike.js.map +1 -1
- package/dist/_chunks/isObject.js +38 -2
- package/dist/_chunks/isObject.js.map +1 -1
- package/dist/_chunks/isSymbol.js +2 -2
- package/dist/_chunks/middleware.js +11 -9
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/oidc-client-ts.js +12 -9
- package/dist/_chunks/oidc-client-ts.js.map +1 -1
- package/dist/_chunks/omit.js +38 -39
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +210 -228
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react-oidc-context.js +1 -1
- package/dist/_chunks/react-oidc-context.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/rolldown-runtime.js +2 -2
- package/dist/_chunks/tableStore.js +79 -78
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/toDate.js +1 -1
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/uniq.js +1 -1
- package/dist/_chunks/uniq.js.map +1 -1
- package/dist/_chunks/useColumnsMenu.js +7 -6
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +19 -16
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +156 -169
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +5 -5
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/filters/GeoFilter.d.ts +1 -1
- package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
- package/dist/classes/services/AuthenticationService/index.js +41 -44
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/InactivityService/index.js +10 -11
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/RouterService/index.js +1 -1
- package/dist/components/app/App/index.js +48 -38
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrap/index.js +54 -54
- package/dist/components/app/ApplicationBootstrap/index.js.map +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +45 -45
- package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
- package/dist/components/app/AuthorizationWrapper/index.js +7 -7
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +53 -53
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +2 -2
- package/dist/components/epi/EpiContactDetailsDialog/index.js +28 -26
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
- package/dist/components/filters/BooleanFilterField/index.js +1 -1
- package/dist/components/filters/BooleanFilterField/index.js.map +1 -1
- package/dist/components/filters/DateFilterField/index.js +1 -1
- package/dist/components/filters/DateFilterField/index.js.map +1 -1
- package/dist/components/filters/GeoFilterField/index.js +2 -2
- package/dist/components/filters/GeoFilterField/index.js.map +1 -1
- package/dist/components/filters/MultiSelectFilterField/index.js +2 -2
- package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -1
- package/dist/components/filters/NumberRangeFilterField/index.js +1 -1
- package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -1
- package/dist/components/filters/TextFilterField/index.js +1 -1
- package/dist/components/filters/TextFilterField/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +132 -132
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +2 -2
- package/dist/components/ui/ConsentDialog/index.js +11 -11
- package/dist/components/ui/ConsentDialog/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
- package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +2 -2
- package/dist/components/ui/LicensesDialog/index.js +40 -40
- package/dist/components/ui/LicensesDialog/index.js.map +1 -1
- package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +2 -2
- package/dist/components/ui/MyPermissionsDialog/index.js +21 -21
- package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -1
- package/dist/components/ui/NavLink/index.js +1 -1
- package/dist/components/ui/NavLink/index.js.map +1 -1
- package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +2 -2
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +43 -43
- package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
- package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +2 -2
- package/dist/components/ui/OutagesDialog/index.js +14 -14
- package/dist/components/ui/OutagesDialog/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.js +2 -2
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/ResponseHandler/index.js +8 -8
- package/dist/components/ui/ResponseHandler/index.js.map +1 -1
- package/dist/components/ui/Sidebar/index.js.map +1 -1
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +2 -2
- package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +2 -2
- package/dist/components/ui/UserFeedbackDialog/index.js +38 -38
- package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -1
- package/dist/components/ui/UserInactivityConfirmation/index.js +14 -14
- package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
- package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContext.d.ts +5 -0
- package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +6 -0
- package/dist/context/uiClientCommonConfigContext/index.d.ts +3 -0
- package/dist/context/uiClientCommonConfigContext/index.js +18 -0
- package/dist/context/uiClientCommonConfigContext/index.js.map +1 -0
- package/dist/context/uiClientCommonConfigContext/useUiClientCommonConfigContext.d.ts +2 -0
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +4 -4
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +4 -4
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +4 -4
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +4 -4
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +4 -4
- package/dist/dataHooks/useOrganizationsQuery/index.js +4 -4
- package/dist/dataHooks/useUsersQuery/index.js +4 -4
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +1 -1
- package/dist/hooks/useEditMutation/index.js +6 -6
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useItemQuery/index.js +8 -8
- package/dist/hooks/useItemQuery/index.js.map +1 -1
- package/dist/locale/en.json +0 -10
- package/dist/locale/nl.json +0 -10
- package/dist/models/dataHooks.d.ts +1 -1
- package/dist/models/table.d.ts +1 -1
- package/dist/models/table.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +5 -5
- package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
- package/dist/pages/AdminPage/index.js +1 -1
- package/dist/pages/AdminPage/index.js.map +1 -1
- package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
- package/dist/pages/CrudPage/CrudPage.d.ts +2 -2
- package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +2 -2
- package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +4 -4
- package/dist/pages/ErrorPage/index.js.map +1 -1
- package/dist/pages/IdentifierIssuersAdminPage/index.js +2 -2
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationContactsAdminPage/index.js +3 -3
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +3 -3
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationsAdminPage/index.js +2 -2
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +2 -2
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/PostLoginPage/index.js.map +1 -1
- package/dist/pages/PostLogoutPage/index.js.map +1 -1
- package/dist/pages/RouterErrorPage/index.js +1 -1
- package/dist/pages/RouterErrorPage/index.js.map +1 -1
- package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +2 -2
- package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +2 -2
- package/dist/pages/UsersAdminPage/index.js +47 -47
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/setup/setup.js +1 -1
- package/dist/setup/setup.js.map +1 -1
- package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +1 -1
- package/dist/utils/MenuDataUtil/index.js.map +1 -1
- package/dist/utils/StandardConfigUtil/index.js +4 -4
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
- package/dist/_chunks/isObjectLike.js +0 -43
- package/dist/_chunks/isObjectLike.js.map +0 -1
- package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +0 -5
- package/dist/components/ui/BackdropSpinner/index.d.ts +0 -1
- package/dist/components/ui/BackdropSpinner/index.js +0 -19
- package/dist/components/ui/BackdropSpinner/index.js.map +0 -1
- package/dist/components/ui/Confirmation/Confirmation.d.ts +0 -2
- package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +0 -11
- package/dist/components/ui/Confirmation/index.d.ts +0 -2
- package/dist/components/ui/Confirmation/index.js +0 -58
- package/dist/components/ui/Confirmation/index.js.map +0 -1
- package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +0 -13
- package/dist/components/ui/CopyToClipboardButton/index.d.ts +0 -1
- package/dist/components/ui/CopyToClipboardButton/index.js +0 -101
- package/dist/components/ui/CopyToClipboardButton/index.js.map +0 -1
- package/dist/components/ui/Dialog/Dialog.d.ts +0 -27
- package/dist/components/ui/Dialog/index.d.ts +0 -1
- package/dist/components/ui/Dialog/index.js +0 -83
- package/dist/components/ui/Dialog/index.js.map +0 -1
- package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +0 -5
- package/dist/components/ui/LinearProgressWithLabel/index.d.ts +0 -1
- package/dist/components/ui/LinearProgressWithLabel/index.js +0 -31
- package/dist/components/ui/LinearProgressWithLabel/index.js.map +0 -1
- package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +0 -2
- package/dist/components/ui/LoadingIndicator/index.d.ts +0 -1
- package/dist/components/ui/LoadingIndicator/index.js +0 -12
- package/dist/components/ui/LoadingIndicator/index.js.map +0 -1
- package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +0 -18
- package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +0 -17
- package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +0 -22
- package/dist/components/ui/NestedMenu/index.d.ts +0 -4
- package/dist/components/ui/NestedMenu/index.js +0 -240
- package/dist/components/ui/NestedMenu/index.js.map +0 -1
- package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +0 -11
- package/dist/components/ui/Spinner/Spinner.d.ts +0 -11
- package/dist/components/ui/Spinner/index.d.ts +0 -1
- package/dist/components/ui/Spinner/index.js +0 -63
- package/dist/components/ui/Spinner/index.js.map +0 -1
- package/dist/components/ui/Stepper/Stepper.d.ts +0 -17
- package/dist/components/ui/Stepper/index.d.ts +0 -2
- package/dist/components/ui/Stepper/index.js +0 -126
- package/dist/components/ui/Stepper/index.js.map +0 -1
- package/dist/components/ui/Stepper/stepperModel.d.ts +0 -4
- package/dist/hoc/withDialog/index.d.ts +0 -1
- package/dist/hoc/withDialog/index.js +0 -69
- package/dist/hoc/withDialog/index.js.map +0 -1
- package/dist/hoc/withDialog/withDialog.d.ts +0 -33
- package/dist/models/nestedMenu.d.ts +0 -17
- package/dist/models/nestedMenu.js +0 -0
|
@@ -14,7 +14,7 @@ import { WindowService as ee } from "@gen-epix/ui-core/classes/services/WindowSe
|
|
|
14
14
|
import { createContext as te, use as ne } from "react";
|
|
15
15
|
import { ObjectUtil as re } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
16
16
|
import { jsx as ie } from "react/jsx-runtime";
|
|
17
|
-
//#region ../../node_modules/.pnpm/immer@11.1.
|
|
17
|
+
//#region ../../node_modules/.pnpm/immer@11.1.18/node_modules/immer/dist/immer.mjs
|
|
18
18
|
var ae = Symbol.for("immer-nothing"), oe = Symbol.for("immer-draftable"), g = Symbol.for("immer-state"), se = process.env.NODE_ENV === "production" ? [] : [
|
|
19
19
|
function(e) {
|
|
20
20
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -74,7 +74,7 @@ function k(e) {
|
|
|
74
74
|
let t = e[g];
|
|
75
75
|
return t ? t.type_ : M(e) ? 1 : N(e) ? 2 : P(e) ? 3 : 0;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var A = (e, t, n = k(e)) => n === 2 ? e.has(t) : v[x].hasOwnProperty.call(e, t), de = (e, t, n = k(e)) => n === 2 ? e.get(t) : e[t], j = (e, t, n, r = k(e)) => {
|
|
78
78
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
79
79
|
};
|
|
80
80
|
function fe(e, t) {
|
|
@@ -105,7 +105,8 @@ function B(e, t) {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
return v.create(y(e), t);
|
|
108
|
-
}
|
|
108
|
+
}
|
|
109
|
+
{
|
|
109
110
|
let t = y(e);
|
|
110
111
|
if (t !== null && n) return { ...e };
|
|
111
112
|
let r = v.create(t);
|
|
@@ -127,7 +128,7 @@ function me() {
|
|
|
127
128
|
}
|
|
128
129
|
var H = { [T]: me };
|
|
129
130
|
function U(e) {
|
|
130
|
-
return e === null || !F(e)
|
|
131
|
+
return e === null || !F(e) || v.isFrozen(e);
|
|
131
132
|
}
|
|
132
133
|
var W = "MapSet", G = "Patches", he = "ArrayMethods", ge = {};
|
|
133
134
|
function K(e) {
|
|
@@ -191,7 +192,7 @@ function Oe(e) {
|
|
|
191
192
|
var J = (e, t) => e.scope_ === t, ke = [];
|
|
192
193
|
function Ae(e, t, n, r) {
|
|
193
194
|
let i = R(e), a = e.type_;
|
|
194
|
-
if (r !== void 0 &&
|
|
195
|
+
if (r !== void 0 && de(i, r, a) === t) {
|
|
195
196
|
j(i, r, n, a);
|
|
196
197
|
return;
|
|
197
198
|
}
|
|
@@ -235,7 +236,7 @@ function Ne(e, t, n) {
|
|
|
235
236
|
});
|
|
236
237
|
} else D(n) && e.callbacks_.push(function() {
|
|
237
238
|
let i = R(e);
|
|
238
|
-
e.type_ === 3 ? i.has(n) && Y(n, r.handledSet_, r) :
|
|
239
|
+
e.type_ === 3 ? i.has(n) && Y(n, r.handledSet_, r) : de(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && Y(de(e.copy_, t, e.type_), r.handledSet_, r);
|
|
239
240
|
});
|
|
240
241
|
}
|
|
241
242
|
function Y(e, t, n) {
|
|
@@ -268,47 +269,38 @@ function Pe(e, t) {
|
|
|
268
269
|
var X = {
|
|
269
270
|
get(e, t) {
|
|
270
271
|
if (t === g) return e;
|
|
271
|
-
if (t === "constructor" || t === "__proto__") {
|
|
272
|
-
let n = R(e)[t];
|
|
273
|
-
return new Proxy(n || {}, {
|
|
274
|
-
get: (e, t) => t === "__proto__" || t === "prototype" ? Object.freeze(/* @__PURE__ */ Object.create(null)) : Reflect.get(e, t),
|
|
275
|
-
set: () => !0,
|
|
276
|
-
apply: (e, t, n) => Reflect.apply(e, t, n)
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
272
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
280
273
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
281
274
|
let i = R(e);
|
|
282
|
-
if (!
|
|
275
|
+
if (!A(i, t, e.type_)) return Le(e, i, t);
|
|
283
276
|
let a = i[t];
|
|
284
277
|
if (e.finalized_ || !D(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && pe(t)) return a;
|
|
285
|
-
if (a === Fe(e.base_, t)) {
|
|
278
|
+
if (a === Fe(e.base_, t) || Ie(e, t, a)) {
|
|
286
279
|
Q(e);
|
|
287
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
280
|
+
let n = e.type_ === 1 ? +t : t, r = Ve(e.scope_, a, e, n);
|
|
288
281
|
return e.copy_[n] = r;
|
|
289
282
|
}
|
|
290
283
|
return a;
|
|
291
284
|
},
|
|
292
285
|
has(e, t) {
|
|
293
|
-
return t
|
|
286
|
+
return t in R(e);
|
|
294
287
|
},
|
|
295
288
|
ownKeys(e) {
|
|
296
289
|
return Reflect.ownKeys(R(e));
|
|
297
290
|
},
|
|
298
291
|
set(e, t, n) {
|
|
299
|
-
|
|
300
|
-
let r = Le(R(e), t);
|
|
292
|
+
let r = Re(R(e), t);
|
|
301
293
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
302
294
|
if (!e.modified_) {
|
|
303
295
|
let r = Fe(R(e), t), i = r?.[g];
|
|
304
296
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
305
|
-
if (fe(n, r) && (n !== void 0 ||
|
|
306
|
-
Q(e),
|
|
297
|
+
if (fe(n, r) && (n !== void 0 || A(e.base_, t, e.type_))) return !0;
|
|
298
|
+
Q(e), ze(e);
|
|
307
299
|
}
|
|
308
|
-
return e.copy_[t] === n && (n !== void 0 || t
|
|
300
|
+
return e.copy_[t] === n && (n !== void 0 || A(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Ne(e, t, n), !0);
|
|
309
301
|
},
|
|
310
302
|
deleteProperty(e, t) {
|
|
311
|
-
return Q(e), Fe(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1),
|
|
303
|
+
return Q(e), Fe(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), ze(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
312
304
|
},
|
|
313
305
|
getOwnPropertyDescriptor(e, t) {
|
|
314
306
|
let n = R(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
@@ -346,10 +338,13 @@ function Fe(e, t) {
|
|
|
346
338
|
return (n ? R(n) : e)[t];
|
|
347
339
|
}
|
|
348
340
|
function Ie(e, t, n) {
|
|
349
|
-
|
|
341
|
+
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !D(n) || n[g] ? !1 : e.baseRefs_.has(n);
|
|
342
|
+
}
|
|
343
|
+
function Le(e, t, n) {
|
|
344
|
+
let r = Re(t, n);
|
|
350
345
|
return r ? T in r ? r[T] : r.get?.call(e.draft_) : void 0;
|
|
351
346
|
}
|
|
352
|
-
function
|
|
347
|
+
function Re(e, t) {
|
|
353
348
|
if (!(t in e)) return;
|
|
354
349
|
let n = y(e);
|
|
355
350
|
for (; n;) {
|
|
@@ -358,13 +353,13 @@ function Le(e, t) {
|
|
|
358
353
|
n = y(n);
|
|
359
354
|
}
|
|
360
355
|
}
|
|
361
|
-
function
|
|
362
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
356
|
+
function ze(e) {
|
|
357
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && ze(e.parent_));
|
|
363
358
|
}
|
|
364
359
|
function Q(e) {
|
|
365
360
|
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), B(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
366
361
|
}
|
|
367
|
-
var
|
|
362
|
+
var Be = class {
|
|
368
363
|
constructor(e) {
|
|
369
364
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
370
365
|
if (I(e) && !I(t)) {
|
|
@@ -378,14 +373,15 @@ var ze = class {
|
|
|
378
373
|
I(t) || _(6), n !== void 0 && !I(n) && _(7);
|
|
379
374
|
let r;
|
|
380
375
|
if (D(e)) {
|
|
381
|
-
let i = Ce(this), a =
|
|
376
|
+
let i = Ce(this), a = Ve(i, e, void 0), o = !0;
|
|
382
377
|
try {
|
|
383
378
|
r = t(a), o = !1;
|
|
384
379
|
} finally {
|
|
385
380
|
o ? xe(i) : Se(i);
|
|
386
381
|
}
|
|
387
382
|
return be(i, n), Te(r, i);
|
|
388
|
-
}
|
|
383
|
+
}
|
|
384
|
+
if (!e || !F(e)) {
|
|
389
385
|
if (r = t(e), r === void 0 && (r = e), r === ae && (r = void 0), this.autoFreeze_ && V(r, !0), n) {
|
|
390
386
|
let t = [], i = [];
|
|
391
387
|
K(G).generateReplacementPatches_(e, r, {
|
|
@@ -394,7 +390,8 @@ var ze = class {
|
|
|
394
390
|
}), n(t, i);
|
|
395
391
|
}
|
|
396
392
|
return r;
|
|
397
|
-
}
|
|
393
|
+
}
|
|
394
|
+
_(1, e);
|
|
398
395
|
}, this.produceWithPatches = (e, t) => {
|
|
399
396
|
if (I(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
400
397
|
let n, r;
|
|
@@ -408,8 +405,8 @@ var ze = class {
|
|
|
408
405
|
}, L(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), L(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), L(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
409
406
|
}
|
|
410
407
|
createDraft(e) {
|
|
411
|
-
D(e) || _(8), E(e) && (e =
|
|
412
|
-
let t = Ce(this), n =
|
|
408
|
+
D(e) || _(8), E(e) && (e = He(e));
|
|
409
|
+
let t = Ce(this), n = Ve(t, e, void 0);
|
|
413
410
|
return n[g].isManual_ = !0, Se(t), n;
|
|
414
411
|
}
|
|
415
412
|
finishDraft(e, t) {
|
|
@@ -444,7 +441,7 @@ var ze = class {
|
|
|
444
441
|
return E(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
445
442
|
}
|
|
446
443
|
};
|
|
447
|
-
function
|
|
444
|
+
function Ve(e, t, n, r) {
|
|
448
445
|
let [i, a] = N(t) ? K(W).proxyMap_(t, n) : P(t) ? K(W).proxySet_(t, n) : Pe(t, n);
|
|
449
446
|
return (n?.scope_ ?? ve()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? je(n, a, r) : a.callbacks_.push(function(e) {
|
|
450
447
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
@@ -452,10 +449,10 @@ function Be(e, t, n, r) {
|
|
|
452
449
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
453
450
|
}), i;
|
|
454
451
|
}
|
|
455
|
-
function Ve(e) {
|
|
456
|
-
return E(e) || _(10, e), He(e);
|
|
457
|
-
}
|
|
458
452
|
function He(e) {
|
|
453
|
+
return E(e) || _(10, e), Ue(e);
|
|
454
|
+
}
|
|
455
|
+
function Ue(e) {
|
|
459
456
|
if (!D(e) || U(e)) return e;
|
|
460
457
|
let t = e[g], n, r = !0;
|
|
461
458
|
if (t) {
|
|
@@ -463,17 +460,18 @@ function He(e) {
|
|
|
463
460
|
t.finalized_ = !0, n = B(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
464
461
|
} else n = B(e, !0);
|
|
465
462
|
return O(n, (e, t) => {
|
|
466
|
-
j(n, e,
|
|
463
|
+
j(n, e, Ue(t));
|
|
467
464
|
}, r), t && (t.finalized_ = !1), n;
|
|
468
465
|
}
|
|
469
|
-
|
|
466
|
+
globalThis.Iterator?.from;
|
|
467
|
+
var We = new Be().produce, Ge = /* @__PURE__ */ t(((e, t) => {
|
|
470
468
|
function n(e) {
|
|
471
469
|
return e && e.length ? e[0] : void 0;
|
|
472
470
|
}
|
|
473
471
|
t.exports = n;
|
|
474
|
-
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
475
|
-
t.exports = We();
|
|
476
472
|
})), Ke = /* @__PURE__ */ t(((e, t) => {
|
|
473
|
+
t.exports = Ge();
|
|
474
|
+
})), qe = /* @__PURE__ */ t(((e, t) => {
|
|
477
475
|
function n(e, t, n, r) {
|
|
478
476
|
for (var i = -1, a = e == null ? 0 : e.length; ++i < a;) {
|
|
479
477
|
var o = e[i];
|
|
@@ -482,7 +480,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
482
480
|
return r;
|
|
483
481
|
}
|
|
484
482
|
t.exports = n;
|
|
485
|
-
})),
|
|
483
|
+
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
486
484
|
function n(e) {
|
|
487
485
|
return function(t, n, r) {
|
|
488
486
|
for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
|
|
@@ -493,15 +491,15 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
493
491
|
};
|
|
494
492
|
}
|
|
495
493
|
t.exports = n;
|
|
496
|
-
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
497
|
-
t.exports = qe()();
|
|
498
494
|
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
499
|
-
|
|
495
|
+
t.exports = Je()();
|
|
496
|
+
})), Xe = /* @__PURE__ */ t(((e, t) => {
|
|
497
|
+
var n = Ye(), r = o();
|
|
500
498
|
function i(e, t) {
|
|
501
499
|
return e && n(e, t, r);
|
|
502
500
|
}
|
|
503
501
|
t.exports = i;
|
|
504
|
-
})),
|
|
502
|
+
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
505
503
|
var n = a();
|
|
506
504
|
function r(e, t) {
|
|
507
505
|
return function(r, i) {
|
|
@@ -512,19 +510,19 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
512
510
|
};
|
|
513
511
|
}
|
|
514
512
|
t.exports = r;
|
|
515
|
-
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
516
|
-
var n = Ye();
|
|
517
|
-
t.exports = Xe()(n);
|
|
518
513
|
})), Qe = /* @__PURE__ */ t(((e, t) => {
|
|
519
|
-
var n =
|
|
514
|
+
var n = Xe();
|
|
515
|
+
t.exports = Ze()(n);
|
|
516
|
+
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
517
|
+
var n = Qe();
|
|
520
518
|
function r(e, t, r, i) {
|
|
521
519
|
return n(e, function(e, n, a) {
|
|
522
520
|
t(i, e, r(e), a);
|
|
523
521
|
}), i;
|
|
524
522
|
}
|
|
525
523
|
t.exports = r;
|
|
526
|
-
})),
|
|
527
|
-
var n =
|
|
524
|
+
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
525
|
+
var n = qe(), r = $e(), a = s(), o = i();
|
|
528
526
|
function c(e, t) {
|
|
529
527
|
return function(i, s) {
|
|
530
528
|
var c = o(i) ? n : r, l = t ? t() : {};
|
|
@@ -532,12 +530,12 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
532
530
|
};
|
|
533
531
|
}
|
|
534
532
|
t.exports = c;
|
|
535
|
-
})),
|
|
533
|
+
})), tt = /* @__PURE__ */ t(((e, t) => {
|
|
536
534
|
var n = d();
|
|
537
|
-
t.exports =
|
|
535
|
+
t.exports = et()(function(e, t, r) {
|
|
538
536
|
n(e, r, t);
|
|
539
537
|
});
|
|
540
|
-
})),
|
|
538
|
+
})), nt = /* @__PURE__ */ e(Ke(), 1), rt = /* @__PURE__ */ e(n(), 1), it = /* @__PURE__ */ e(tt(), 1), at = /* @__PURE__ */ e(f(), 1), ot = (e) => {
|
|
541
539
|
let { defaultSortByField: t, defaultSortDirection: n, idSelectorCallback: r, isRowEnabledCallback: i, navigatorFunction: a } = e, o = new URL(document.location.href).searchParams, s = t, l = n;
|
|
542
540
|
return a && (o.get("sortByField") && (s = o.get("sortByField")), o.get("sortDirection") && (l = o.get("sortDirection"))), {
|
|
543
541
|
backendFilters: [],
|
|
@@ -575,7 +573,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
575
573
|
}, $ = (e, t, n) => {
|
|
576
574
|
let r;
|
|
577
575
|
return r = n || new URL(document.location.href).searchParams, r.set(e, t), r;
|
|
578
|
-
},
|
|
576
|
+
}, st = (e, t, n) => ({
|
|
579
577
|
name: `GENEPIX-TableStore-${e}`,
|
|
580
578
|
partialize: (e) => ({
|
|
581
579
|
columnVisualSettingsCondensed: e.columnVisualSettingsCondensed,
|
|
@@ -587,7 +585,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
587
585
|
}),
|
|
588
586
|
storage: m(() => localStorage),
|
|
589
587
|
version: t
|
|
590
|
-
}),
|
|
588
|
+
}), ct = (e) => {
|
|
591
589
|
let { get: t, set: n } = e;
|
|
592
590
|
return {
|
|
593
591
|
addEventListener: (e, n) => t().eventBus.addEventListener(e, n),
|
|
@@ -616,7 +614,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
616
614
|
e.addEventListener("abort", h), await m($("sortByField", f)), await m($("sortDirection", p)), await c(), n({ isInitialized: !0 });
|
|
617
615
|
},
|
|
618
616
|
reloadFilterData: (e) => {
|
|
619
|
-
let { baseData: r, filteredData: i, frontendFilterPriorities: a, reloadFilterPriorityData: o, reloadSortedData: s } = t(), c = e || (0,
|
|
617
|
+
let { baseData: r, filteredData: i, frontendFilterPriorities: a, reloadFilterPriorityData: o, reloadSortedData: s } = t(), c = e || (0, nt.default)(a), l = Object.fromEntries(a.map((e) => [e, []])), u = r;
|
|
620
618
|
e && a.slice(0, a.indexOf(c)).forEach((e) => {
|
|
621
619
|
l[e] = i[e], u = i[e];
|
|
622
620
|
}), a.slice(a.indexOf(c)).forEach((e) => {
|
|
@@ -624,7 +622,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
624
622
|
}), n({ filteredData: l }), s();
|
|
625
623
|
},
|
|
626
624
|
reloadFilterPriorityData: (e, n) => {
|
|
627
|
-
let { columns: r, dataContext: i, frontendFilters: a } = t(), o = a[e], s = (0,
|
|
625
|
+
let { columns: r, dataContext: i, frontendFilters: a } = t(), o = a[e], s = (0, it.default)(r, "id");
|
|
628
626
|
return n.filter((e, t) => o.every((n) => {
|
|
629
627
|
if (n.isInitialFilterValue(n.filterValue)) return !0;
|
|
630
628
|
let r = s[n.id], a = r.valueGetter ? r.valueGetter({
|
|
@@ -639,10 +637,10 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
639
637
|
},
|
|
640
638
|
reloadSelectedIds: () => {
|
|
641
639
|
let { idSelectorCallback: e, selectedIds: n, setSelectedIds: r, sortedData: i } = t();
|
|
642
|
-
r((0,
|
|
640
|
+
r((0, rt.default)(n, i.map((t) => e(t))));
|
|
643
641
|
},
|
|
644
642
|
reloadSortedData: () => {
|
|
645
|
-
let { columns: e, dataContext: r, defaultSortByField: i, defaultSortDirection: a, filteredData: o, frontendFilterPriorities: s, idSelectorCallback: c, sortByField: l, sortDirection: u, sortedIds: d } = t(), f = o[(0,
|
|
643
|
+
let { columns: e, dataContext: r, defaultSortByField: i, defaultSortDirection: a, filteredData: o, frontendFilterPriorities: s, idSelectorCallback: c, sortByField: l, sortDirection: u, sortedIds: d } = t(), f = o[(0, at.default)(s)], p = l, m = u;
|
|
646
644
|
if ((!p || !u) && !d) {
|
|
647
645
|
n({ sortedData: f });
|
|
648
646
|
return;
|
|
@@ -657,14 +655,17 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
657
655
|
column: t,
|
|
658
656
|
dataContext: r,
|
|
659
657
|
direction: m
|
|
660
|
-
});
|
|
661
|
-
n({ sortedData:
|
|
658
|
+
}), s = f.toSorted((e, n) => t.comparatorFactory ? o(e, n) : 0);
|
|
659
|
+
n({ sortedData: s });
|
|
662
660
|
return;
|
|
663
661
|
}
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
|
|
667
|
-
|
|
662
|
+
if (d) {
|
|
663
|
+
let e = f.toSorted((e, t) => {
|
|
664
|
+
let n = c(e), r = c(t);
|
|
665
|
+
return (d.includes(n) ? d.indexOf(n) : Infinity) - (d.includes(r) ? d.indexOf(r) : Infinity);
|
|
666
|
+
});
|
|
667
|
+
n({ sortedData: e });
|
|
668
|
+
}
|
|
668
669
|
},
|
|
669
670
|
resetColumns: () => {
|
|
670
671
|
let { columns: e, isCondensed: n, setColumnVisualSettingsCondensed: i, setColumnVisualSettingsUncondensed: a } = t();
|
|
@@ -730,7 +731,7 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
730
731
|
i.forEach((e) => {
|
|
731
732
|
e.filterMode === l.BACKEND && (p[e.id] = e.filterValue), e.filterMode === l.FRONTEND && (m[e.filterPriority] = m[e.filterPriority] || {}, m[e.filterPriority][e.id] = e.filterValue);
|
|
732
733
|
});
|
|
733
|
-
let h =
|
|
734
|
+
let h = We(i, (t) => (t.forEach((t) => {
|
|
734
735
|
e[t.id] !== void 0 && t.setFilterValue(e[t.id]);
|
|
735
736
|
}), t));
|
|
736
737
|
if (n({ filters: h }), o) {
|
|
@@ -794,29 +795,29 @@ var Ue = new ze().produce, We = /* @__PURE__ */ t(((e, t) => {
|
|
|
794
795
|
n && await n(`${location.pathname}?${e.toString()}`, { replace: !0 });
|
|
795
796
|
}
|
|
796
797
|
};
|
|
797
|
-
},
|
|
798
|
-
let { storageNamePostFix: t, storageVersion: n, ...r } = e, i =
|
|
798
|
+
}, lt = (e) => {
|
|
799
|
+
let { storageNamePostFix: t, storageVersion: n, ...r } = e, i = ot(r);
|
|
799
800
|
return t ? u()(p((e, t) => ({
|
|
800
801
|
...i,
|
|
801
|
-
...
|
|
802
|
+
...ct({
|
|
802
803
|
get: t,
|
|
803
804
|
set: e
|
|
804
805
|
})
|
|
805
|
-
}),
|
|
806
|
+
}), st(t, n))) : u()((e, t) => ({
|
|
806
807
|
...i,
|
|
807
|
-
...
|
|
808
|
+
...ct({
|
|
808
809
|
get: t,
|
|
809
810
|
set: e
|
|
810
811
|
})
|
|
811
812
|
}));
|
|
812
|
-
},
|
|
813
|
+
}, ut = te(null), dt = (e) => {
|
|
813
814
|
let { children: t, store: n } = e;
|
|
814
|
-
return /* @__PURE__ */ ie(
|
|
815
|
+
return /* @__PURE__ */ ie(ut, {
|
|
815
816
|
value: n,
|
|
816
817
|
children: t
|
|
817
818
|
});
|
|
818
|
-
},
|
|
819
|
+
}, ft = () => ne(ut);
|
|
819
820
|
//#endregion
|
|
820
|
-
export {
|
|
821
|
+
export { ct as a, $ as c, lt as i, We as l, dt as n, ot as o, ut as r, st as s, ft as t };
|
|
821
822
|
|
|
822
823
|
//# sourceMappingURL=tableStore.js.map
|