@gen-epix/ui-client-common 4.5.1 → 4.6.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/mui.d.ts +13 -11
- package/dist/_chunks/ApplicationFooter.js +32 -23
- package/dist/_chunks/ApplicationFooter.js.map +1 -1
- package/dist/_chunks/Breadcrumbs.js +1 -2
- package/dist/_chunks/CrudPage.js +221 -226
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -2
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js +1 -2
- package/dist/_chunks/OutageList.js +1 -2
- package/dist/_chunks/OutageList.js.map +1 -1
- package/dist/_chunks/OutageUtil.js +3 -6
- package/dist/_chunks/OutageUtil.js.map +1 -1
- package/dist/_chunks/QueryClientProvider.js +1 -2
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +6 -8
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Reflect.js +1 -2
- package/dist/_chunks/Table.js +5 -10
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +2 -4
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +4 -8
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +1 -2
- package/dist/_chunks/UserManagerUtil.js +2 -4
- package/dist/_chunks/UserManagerUtil.js.map +1 -1
- package/dist/_chunks/_baseAssignValue.js +1 -2
- package/dist/_chunks/_baseFlatten.js +1 -2
- package/dist/_chunks/_baseGet.js +1 -2
- package/dist/_chunks/_baseIteratee.js +1 -2
- package/dist/_chunks/_baseUnset.js +1 -2
- package/dist/_chunks/_cacheHas.js +1 -2
- package/dist/_chunks/_setToString.js +1 -2
- package/dist/_chunks/decorate.js +1 -2
- package/dist/_chunks/decorateParam.js +1 -2
- package/dist/_chunks/format.js +27 -54
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/isArrayLike.js +1 -2
- package/dist/_chunks/isObject.js +1 -2
- package/dist/_chunks/isSymbol.js +1 -2
- package/dist/_chunks/last.js +1 -2
- package/dist/_chunks/middleware.js +2 -3
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +1 -2
- package/dist/_chunks/query.js +8 -15
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +2 -3
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/rolldown-runtime.js +2 -3
- package/dist/_chunks/tableStore.js +171 -171
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/toDate.js +8 -14
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/uniq.js +1 -2
- package/dist/_chunks/useColumnsMenu.js +3 -6
- package/dist/_chunks/useColumnsMenu.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -4
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +8 -14
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -2
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -4
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/TableEventBus/index.js +1 -2
- package/dist/classes/abstracts/FilterAbstract/index.js +1 -2
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/services/AuthenticationService/index.js +0 -1
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/index.js +1 -2
- package/dist/classes/services/BackendVersionService/index.js +1 -2
- package/dist/classes/services/BreadcrumbService/index.js +1 -2
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/index.js +1 -2
- package/dist/classes/services/FeatureFlagsService/index.js +1 -2
- package/dist/classes/services/I18nService/index.js +1 -2
- package/dist/classes/services/InactivityService/index.js +1 -2
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/index.js +1 -2
- package/dist/classes/services/NavigationHistoryService/index.js +1 -2
- package/dist/classes/services/NotificationService/index.js +1 -2
- package/dist/classes/services/PageEventBusService/index.js +1 -2
- package/dist/classes/services/RouterService/index.js +1 -2
- package/dist/classes/services/UserSettingsService/index.js +1 -2
- package/dist/components/app/App/index.js +1 -2
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +1 -2
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +1 -2
- package/dist/components/app/AuthenticationWrapper/index.js +1 -2
- package/dist/components/app/AuthorizationWrapper/index.js +1 -2
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +1 -2
- package/dist/components/epi/EpiContactDetailsDialog/index.js +1 -2
- package/dist/components/filters/BooleanFilterField/index.js +1 -2
- package/dist/components/filters/DateFilterField/index.js +1 -2
- package/dist/components/filters/GeoFilterField/index.js +1 -2
- package/dist/components/filters/MultiSelectFilterField/index.js +1 -2
- package/dist/components/filters/NumberRangeFilterField/index.js +1 -2
- package/dist/components/filters/TextFilterField/index.js +1 -2
- package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +4 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +5 -0
- package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +6 -0
- package/dist/components/ui/ApplicationBar/index.js +109 -95
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +3 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +3 -0
- package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +4 -0
- package/dist/components/ui/ConsentDialog/index.js +1 -2
- package/dist/components/ui/GenericErrorMessage/index.js +1 -2
- package/dist/components/ui/LicensesDialog/index.js +1 -2
- package/dist/components/ui/MyPermissionsDialog/index.js +1 -2
- package/dist/components/ui/NavLink/index.js +1 -2
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +1 -2
- package/dist/components/ui/OutagesDialog/index.js +1 -2
- package/dist/components/ui/PageContainer/index.js +1 -2
- package/dist/components/ui/ResponseHandler/index.js +1 -2
- package/dist/components/ui/Sidebar/index.js +1 -2
- package/dist/components/ui/UserFeedbackDialog/index.js +1 -2
- package/dist/components/ui/UserInactivityConfirmation/index.js +1 -2
- package/dist/constants/api.constants.js +1 -2
- package/dist/constants/config.constants.js +1 -2
- package/dist/constants/query.constants.js +1 -2
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +1 -2
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +1 -2
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +1 -2
- package/dist/dataHooks/useOrganizationsQuery/index.js +1 -2
- package/dist/dataHooks/useUsersQuery/index.js +1 -2
- package/dist/hoc/withPermissions/index.js +1 -2
- package/dist/hooks/useConfig/index.js +1 -2
- package/dist/hooks/useCreateMutation/index.js +1 -2
- package/dist/hooks/useDeleteMutation/index.js +1 -2
- package/dist/hooks/useEditMutation/index.js +37 -42
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/useEditMutation.d.ts +1 -2
- package/dist/hooks/useInitializeTableStore/index.js +1 -2
- package/dist/hooks/useItemQuery/index.js +1 -2
- package/dist/hooks/useUpdateBreadcrumb/index.js +1 -2
- package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
- package/dist/models/admin.models.js +1 -2
- package/dist/models/admin.models.js.map +1 -1
- package/dist/models/table.models.js +1 -2
- package/dist/models/table.models.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +1 -2
- package/dist/pages/AdminPage/index.js +1 -2
- package/dist/pages/ChooseIdentityProviderPage/index.js +1 -2
- package/dist/pages/ErrorPage/index.js +1 -2
- package/dist/pages/IdentifierIssuersAdminPage/index.js +1 -2
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -2
- package/dist/pages/OrganizationContactsAdminPage/index.js +1 -2
- package/dist/pages/OrganizationSitesAdminPage/index.js +1 -2
- package/dist/pages/OrganizationsAdminPage/index.js +1 -2
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +1 -2
- package/dist/pages/PostLoginPage/index.js +2 -3
- package/dist/pages/PostLoginPage/index.js.map +1 -1
- package/dist/pages/PostLogoutPage/index.js +1 -2
- package/dist/pages/RouterErrorPage/index.js +1 -2
- package/dist/pages/UsersAdminPage/index.js +1 -2
- package/dist/routes/index.js +1 -2
- package/dist/setup/setup.js +1 -2
- package/dist/stores/oidcStore/index.js +1 -2
- package/dist/stores/outagesStore/index.js +1 -2
- package/dist/theme/demoTheme/index.js +16 -9
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/AxiosUtil/index.js +1 -2
- package/dist/utils/DataHookUtil/index.js +1 -2
- package/dist/utils/DependencyContainerUtil/index.js +0 -1
- package/dist/utils/LoadableUtil/index.js +1 -2
- package/dist/utils/MenuDataUtil/index.js +1 -2
- package/dist/utils/NotificationUtil/index.js +1 -2
- package/dist/utils/StandardConfigUtil/index.js +1 -2
- package/dist/utils/TimeUtil/index.js +1 -2
- package/dist/utils/UserUtil/index.js +1 -2
- package/package.json +25 -29
- package/dist/models/theme.models.d.ts +0 -20
- package/dist/models/theme.models.js +0 -0
|
@@ -15,7 +15,7 @@ import { WindowService as te } from "@gen-epix/ui-core/classes/services/WindowSe
|
|
|
15
15
|
import { createContext as ne, use as re } from "react";
|
|
16
16
|
import { ObjectUtil as ie } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
17
17
|
import { jsx as ae } from "react/jsx-runtime";
|
|
18
|
-
|
|
18
|
+
// ../../node_modules/.pnpm/immer@11.2.9/node_modules/immer/dist/immer.mjs
|
|
19
19
|
var oe = Symbol.for("immer-nothing"), se = Symbol.for("immer-draftable"), g = Symbol.for("immer-state"), ce = 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.`;
|
|
@@ -46,63 +46,63 @@ var oe = Symbol.for("immer-nothing"), se = Symbol.for("immer-draftable"), g = Sy
|
|
|
46
46
|
];
|
|
47
47
|
function _(e, ...t) {
|
|
48
48
|
if (process.env.NODE_ENV !== "production") {
|
|
49
|
-
let n = ce[e], r =
|
|
49
|
+
let n = ce[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 v = Object, y = v.getPrototypeOf, b = "constructor", x = "prototype",
|
|
55
|
-
function
|
|
56
|
-
return e ?
|
|
54
|
+
var v = Object, y = v.getPrototypeOf, b = "constructor", x = "prototype", le = "configurable", S = "enumerable", C = "writable", w = "value", T = (e) => !!e && !!e[g];
|
|
55
|
+
function E(e) {
|
|
56
|
+
return e ? fe(e) || M(e) || !!e[se] || !!e[b]?.[se] || N(e) || P(e) : !1;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
if (!e || !
|
|
58
|
+
var ue = v[x][b].toString(), de = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
function fe(e) {
|
|
60
|
+
if (!e || !F(e)) return !1;
|
|
61
61
|
let t = y(e);
|
|
62
62
|
if (t === null || t === v[x]) return !0;
|
|
63
63
|
let n = v.hasOwnProperty.call(t, b) && t[b];
|
|
64
64
|
if (n === Object) return !0;
|
|
65
|
-
if (!
|
|
66
|
-
let r =
|
|
67
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
65
|
+
if (!I(n)) return !1;
|
|
66
|
+
let r = de.get(n);
|
|
67
|
+
return r === void 0 && (r = Function.toString.call(n), de.set(n, r)), r === ue;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function D(e, t, n = !0) {
|
|
70
|
+
O(e) === 0 ? (n ? Reflect.ownKeys(e) : v.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
|
|
74
|
+
function O(e) {
|
|
75
75
|
let t = e[g];
|
|
76
|
-
return t ? t.type_ :
|
|
76
|
+
return t ? t.type_ : M(e) ? 1 : N(e) ? 2 : P(e) ? 3 : 0;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var k = (e, t, n = O(e)) => n === 2 ? e.has(t) : v[x].hasOwnProperty.call(e, t), A = (e, t, n = O(e)) => n === 2 ? e.get(t) : e[t], j = (e, t, n, r = O(e)) => {
|
|
79
79
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function pe(e, t) {
|
|
82
82
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
function
|
|
84
|
+
var M = Array.isArray, N = (e) => e instanceof Map, P = (e) => e instanceof Set, F = (e) => typeof e == "object", I = (e) => typeof e == "function", me = (e) => typeof e == "boolean";
|
|
85
|
+
function he(e) {
|
|
86
86
|
let t = +e;
|
|
87
87
|
return Number.isInteger(t) && String(t) === e;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
if (
|
|
93
|
-
if (
|
|
94
|
-
let n =
|
|
89
|
+
var L = (e) => e.copy_ || e.base_, ge = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
90
|
+
function _e(e, t) {
|
|
91
|
+
if (N(e)) return new Map(e);
|
|
92
|
+
if (P(e)) return new Set(e);
|
|
93
|
+
if (M(e)) return Array[x].slice.call(e);
|
|
94
|
+
let n = fe(e);
|
|
95
95
|
if (t === !0 || t === "class_only" && !n) {
|
|
96
96
|
let t = v.getOwnPropertyDescriptors(e);
|
|
97
97
|
delete t[g];
|
|
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[C] === !1 && (a[C] = !0, a[le] = !0), (a.get || a.set) && (t[i] = {
|
|
102
|
+
[le]: !0,
|
|
103
|
+
[C]: !0,
|
|
104
|
+
[S]: a[S],
|
|
105
|
+
[w]: e[i]
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
return v.create(y(e), t);
|
|
@@ -114,29 +114,29 @@ function V(e, t) {
|
|
|
114
114
|
return v.assign(r, e);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
119
|
-
set:
|
|
120
|
-
add:
|
|
121
|
-
clear:
|
|
122
|
-
delete:
|
|
123
|
-
}), v.freeze(e), t &&
|
|
124
|
-
|
|
117
|
+
function R(e, t = !1) {
|
|
118
|
+
return B(e) || T(e) || !E(e) || (O(e) > 1 && v.defineProperties(e, {
|
|
119
|
+
set: z,
|
|
120
|
+
add: z,
|
|
121
|
+
clear: z,
|
|
122
|
+
delete: z
|
|
123
|
+
}), v.freeze(e), t && D(e, (e, t) => {
|
|
124
|
+
R(t, !0);
|
|
125
125
|
}, !1)), e;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ve() {
|
|
128
128
|
_(2);
|
|
129
129
|
}
|
|
130
|
-
var
|
|
131
|
-
function
|
|
132
|
-
return e === null || !
|
|
130
|
+
var z = { [w]: ve };
|
|
131
|
+
function B(e) {
|
|
132
|
+
return e === null || !F(e) || v.isFrozen(e);
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
136
|
-
let t =
|
|
134
|
+
var V = "MapSet", H = "Patches", ye = "ArrayMethods", be = {};
|
|
135
|
+
function U(e) {
|
|
136
|
+
let t = be[e];
|
|
137
137
|
return t || _(0, e), t;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var xe = (e) => !!be[e], W, Se = () => W, Ce = (e, t) => ({
|
|
140
140
|
drafts_: [],
|
|
141
141
|
parent_: e,
|
|
142
142
|
immer_: t,
|
|
@@ -144,114 +144,114 @@ var ve = (e) => !!_e[e], q, ye = () => q, be = (e, t) => ({
|
|
|
144
144
|
unfinalizedDrafts_: 0,
|
|
145
145
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
146
146
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
147
|
-
mapSetPlugin_:
|
|
148
|
-
arrayMethodsPlugin_:
|
|
147
|
+
mapSetPlugin_: xe(V) ? U(V) : void 0,
|
|
148
|
+
arrayMethodsPlugin_: xe(ye) ? U(ye) : void 0
|
|
149
149
|
});
|
|
150
|
-
function
|
|
151
|
-
t && (e.patchPlugin_ =
|
|
150
|
+
function we(e, t) {
|
|
151
|
+
t && (e.patchPlugin_ = U(H), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
153
|
+
function G(e) {
|
|
154
|
+
K(e), e.drafts_.forEach(Ee), e.drafts_ = null;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
e ===
|
|
156
|
+
function K(e) {
|
|
157
|
+
e === W && (W = e.parent_);
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
159
|
+
var Te = (e) => W = Ce(W, e);
|
|
160
|
+
function Ee(e) {
|
|
161
161
|
let t = e[g];
|
|
162
162
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function De(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[g].modified_ && (
|
|
168
|
+
n[g].modified_ && (G(t), _(4)), E(e) && (e = Oe(t, e));
|
|
169
169
|
let { patchPlugin_: r } = t;
|
|
170
170
|
r && r.generateReplacementPatches_(n[g].base_, e, t);
|
|
171
|
-
} else e =
|
|
172
|
-
return
|
|
171
|
+
} else e = Oe(t, n);
|
|
172
|
+
return ke(t, e, !0), G(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === oe ? void 0 : e;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
174
|
+
function Oe(e, t) {
|
|
175
|
+
if (B(t)) return t;
|
|
176
176
|
let n = t[g];
|
|
177
|
-
if (!n) return
|
|
178
|
-
if (!
|
|
177
|
+
if (!n) return J(t, e.handledSet_, e);
|
|
178
|
+
if (!q(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
|
+
Pe(n, e);
|
|
184
184
|
}
|
|
185
185
|
return n.copy_;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
187
|
+
function ke(e, t, n = !1) {
|
|
188
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && R(t, n);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Ae(e) {
|
|
191
191
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
195
|
-
let i =
|
|
196
|
-
if (r !== void 0 &&
|
|
197
|
-
|
|
193
|
+
var q = (e, t) => e.scope_ === t, je = [];
|
|
194
|
+
function Me(e, t, n, r) {
|
|
195
|
+
let i = L(e), a = e.type_;
|
|
196
|
+
if (r !== void 0 && A(i, r, a) === t) {
|
|
197
|
+
j(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
|
+
D(i, (e, n) => {
|
|
203
|
+
if (T(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) ?? je;
|
|
210
|
+
for (let e of o) j(i, e, n, a);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ne(e, t, n) {
|
|
213
213
|
e.callbacks_.push(function(r) {
|
|
214
214
|
let i = t;
|
|
215
|
-
if (!i || !
|
|
215
|
+
if (!i || !q(i, r)) return;
|
|
216
216
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
217
|
-
let a =
|
|
218
|
-
|
|
217
|
+
let a = ge(i);
|
|
218
|
+
Me(e, i.draft_ ?? i, a, n), Pe(i, r);
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Pe(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
|
+
Ae(e);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Fe(e, t, n) {
|
|
232
232
|
let { scope_: r } = e;
|
|
233
|
-
if (
|
|
233
|
+
if (T(n)) {
|
|
234
234
|
let i = n[g];
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
q(i, r) && i.callbacks_.push(function() {
|
|
236
|
+
Z(e), Me(e, n, ge(i), t);
|
|
237
237
|
});
|
|
238
|
-
} else
|
|
239
|
-
let i =
|
|
240
|
-
e.type_ === 3 ? i.has(n) &&
|
|
238
|
+
} else E(n) && e.callbacks_.push(function() {
|
|
239
|
+
let i = L(e);
|
|
240
|
+
e.type_ === 3 ? i.has(n) && J(n, r.handledSet_, r) : A(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && J(A(e.copy_, t, e.type_), r.handledSet_, r);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
245
|
-
if (
|
|
243
|
+
function J(e, t, n) {
|
|
244
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || T(e) || t.has(e) || !E(e) || B(e) || (t.add(e), D(e, (r, i) => {
|
|
245
|
+
if (T(i)) {
|
|
246
246
|
let t = i[g];
|
|
247
|
-
|
|
248
|
-
} else
|
|
247
|
+
q(t, n) && (j(e, r, ge(t), e.type_), Ae(t));
|
|
248
|
+
} else E(i) && J(i, t, n);
|
|
249
249
|
})), e;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
let n =
|
|
251
|
+
function Ie(e, t) {
|
|
252
|
+
let n = M(e), r = {
|
|
253
253
|
type_: +!!n,
|
|
254
|
-
scope_: t ? t.scope_ :
|
|
254
|
+
scope_: t ? t.scope_ : Se(),
|
|
255
255
|
modified_: !1,
|
|
256
256
|
finalized_: !1,
|
|
257
257
|
assigned_: void 0,
|
|
@@ -262,54 +262,54 @@ function Fe(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 = Y;
|
|
266
|
+
n && (i = [r], a = X);
|
|
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 Y = {
|
|
271
271
|
get(e, t) {
|
|
272
272
|
if (t === g) 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
|
-
let i =
|
|
276
|
-
if (!
|
|
275
|
+
let i = L(e);
|
|
276
|
+
if (!k(i, t, e.type_)) return ze(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_ || !E(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && he(t)) return a;
|
|
279
|
+
if (a === Le(e.base_, t) || Re(e, t, a)) {
|
|
280
|
+
Z(e);
|
|
281
|
+
let n = e.type_ === 1 ? +t : t, r = Q(e.scope_, a, e, n);
|
|
282
282
|
return e.copy_[n] = r;
|
|
283
283
|
}
|
|
284
284
|
return a;
|
|
285
285
|
},
|
|
286
286
|
has(e, t) {
|
|
287
|
-
return t in
|
|
287
|
+
return t in L(e);
|
|
288
288
|
},
|
|
289
289
|
ownKeys(e) {
|
|
290
|
-
return Reflect.ownKeys(
|
|
290
|
+
return Reflect.ownKeys(L(e));
|
|
291
291
|
},
|
|
292
292
|
set(e, t, n) {
|
|
293
|
-
let r =
|
|
293
|
+
let r = Be(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 = Le(L(e), t), i = r?.[g];
|
|
297
297
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.delete(t), !0;
|
|
298
|
-
if (
|
|
299
|
-
|
|
298
|
+
if (pe(n, r) && (n !== void 0 || k(e.base_, t, e.type_))) return !0;
|
|
299
|
+
Z(e), Ve(e);
|
|
300
300
|
}
|
|
301
|
-
return e.copy_[t] === n && (n !== void 0 ||
|
|
301
|
+
return e.copy_[t] === n && (n !== void 0 || k(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_.set(t, !0), Fe(e, t, n)), !0;
|
|
302
302
|
},
|
|
303
303
|
deleteProperty(e, t) {
|
|
304
|
-
return
|
|
304
|
+
return Z(e), Le(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), Ve(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
305
305
|
},
|
|
306
306
|
getOwnPropertyDescriptor(e, t) {
|
|
307
|
-
let n =
|
|
307
|
+
let n = L(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
308
308
|
return r && {
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
309
|
+
[C]: !0,
|
|
310
|
+
[le]: e.type_ !== 1 || t !== "length",
|
|
311
|
+
[S]: r[S],
|
|
312
|
+
[w]: n[t]
|
|
313
313
|
};
|
|
314
314
|
},
|
|
315
315
|
defineProperty() {
|
|
@@ -321,31 +321,31 @@ var X = {
|
|
|
321
321
|
setPrototypeOf() {
|
|
322
322
|
_(12);
|
|
323
323
|
}
|
|
324
|
-
},
|
|
325
|
-
for (let e in
|
|
326
|
-
let t =
|
|
327
|
-
|
|
324
|
+
}, X = {};
|
|
325
|
+
for (let e in Y) {
|
|
326
|
+
let t = Y[e];
|
|
327
|
+
X[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)) && _(13),
|
|
334
|
-
},
|
|
335
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && _(14),
|
|
332
|
+
X.deleteProperty = function(e, t) {
|
|
333
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && _(13), X.set.call(this, e, t, void 0);
|
|
334
|
+
}, X.set = function(e, t, n) {
|
|
335
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && _(14), Y.set.call(this, e[0], t, n, e[0]);
|
|
336
336
|
};
|
|
337
|
-
function
|
|
337
|
+
function Le(e, t) {
|
|
338
338
|
let n = e[g];
|
|
339
|
-
return (n ?
|
|
340
|
-
}
|
|
341
|
-
function Le(e, t, n) {
|
|
342
|
-
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !D(n) || n[g] ? !1 : e.baseRefs_.has(n);
|
|
339
|
+
return (n ? L(n) : e)[t];
|
|
343
340
|
}
|
|
344
341
|
function Re(e, t, n) {
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
return e.type_ !== 1 || !e.allIndicesReassigned_ || !E(n) || n[g] ? !1 : e.baseRefs_.has(n);
|
|
343
|
+
}
|
|
344
|
+
function ze(e, t, n) {
|
|
345
|
+
let r = Be(t, n);
|
|
346
|
+
return r ? w in r ? r[w] : r.get?.call(e.draft_) : void 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Be(e, t) {
|
|
349
349
|
if (!(t in e)) return;
|
|
350
350
|
let n = y(e);
|
|
351
351
|
for (; n;) {
|
|
@@ -354,16 +354,16 @@ function ze(e, t) {
|
|
|
354
354
|
n = y(n);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
357
|
+
function Ve(e) {
|
|
358
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Ve(e.parent_));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
360
|
+
function Z(e) {
|
|
361
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), _e(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var He = class {
|
|
364
364
|
constructor(e) {
|
|
365
365
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
366
|
-
if (
|
|
366
|
+
if (I(e) && !I(t)) {
|
|
367
367
|
let n = t;
|
|
368
368
|
t = e;
|
|
369
369
|
let r = this;
|
|
@@ -371,21 +371,21 @@ var Ve = class {
|
|
|
371
371
|
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
I(t) || _(6), n !== void 0 && !I(n) && _(7);
|
|
375
375
|
let r;
|
|
376
|
-
if (
|
|
377
|
-
let i =
|
|
376
|
+
if (E(e)) {
|
|
377
|
+
let i = Te(this), a = Q(i, e, void 0), o = !0;
|
|
378
378
|
try {
|
|
379
379
|
r = t(a), o = !1;
|
|
380
380
|
} finally {
|
|
381
|
-
o ?
|
|
381
|
+
o ? G(i) : K(i);
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return we(i, n), De(r, i);
|
|
384
384
|
}
|
|
385
|
-
if (!e || !
|
|
386
|
-
if (r = t(e), r === void 0 && (r = e), r === oe && (r = void 0), this.autoFreeze_ &&
|
|
385
|
+
if (!e || !F(e)) {
|
|
386
|
+
if (r = t(e), r === void 0 && (r = e), r === oe && (r = void 0), this.autoFreeze_ && R(r, !0), n) {
|
|
387
387
|
let t = [], i = [];
|
|
388
|
-
|
|
388
|
+
U(H).generateReplacementPatches_(e, r, {
|
|
389
389
|
patches_: t,
|
|
390
390
|
inversePatches_: i
|
|
391
391
|
}), n(t, i);
|
|
@@ -394,7 +394,7 @@ var Ve = class {
|
|
|
394
394
|
}
|
|
395
395
|
_(1, e);
|
|
396
396
|
}, this.produceWithPatches = (e, t) => {
|
|
397
|
-
if (
|
|
397
|
+
if (I(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
398
398
|
let n, r;
|
|
399
399
|
return [
|
|
400
400
|
this.produce(e, t, (e, t) => {
|
|
@@ -403,18 +403,18 @@ var Ve = class {
|
|
|
403
403
|
n,
|
|
404
404
|
r
|
|
405
405
|
];
|
|
406
|
-
},
|
|
406
|
+
}, me(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), me(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), me(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
407
407
|
}
|
|
408
408
|
createDraft(e) {
|
|
409
|
-
|
|
410
|
-
let t =
|
|
411
|
-
return n[g].isManual_ = !0,
|
|
409
|
+
E(e) || _(8), T(e) && (e = Ue(e));
|
|
410
|
+
let t = Te(this), n = Q(t, e, void 0);
|
|
411
|
+
return n[g].isManual_ = !0, K(t), n;
|
|
412
412
|
}
|
|
413
413
|
finishDraft(e, t) {
|
|
414
414
|
let n = e && e[g];
|
|
415
|
-
|
|
415
|
+
n && n.isManual_ || _(9);
|
|
416
416
|
let { scope_: r } = n;
|
|
417
|
-
return
|
|
417
|
+
return we(r, t), De(void 0, r);
|
|
418
418
|
}
|
|
419
419
|
setAutoFreeze(e) {
|
|
420
420
|
this.autoFreeze_ = e;
|
|
@@ -438,34 +438,35 @@ var Ve = class {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
n > -1 && (t = t.slice(n + 1));
|
|
441
|
-
let r =
|
|
442
|
-
return
|
|
441
|
+
let r = U(H).applyPatches_;
|
|
442
|
+
return T(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
function
|
|
446
|
-
let [i, a] =
|
|
447
|
-
return (n?.scope_ ??
|
|
445
|
+
function Q(e, t, n, r) {
|
|
446
|
+
let [i, a] = N(t) ? U(V).proxyMap_(t, n) : P(t) ? U(V).proxySet_(t, n) : Ie(t, n);
|
|
447
|
+
return (n?.scope_ ?? Se()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Ne(n, a, r) : a.callbacks_.push(function(e) {
|
|
448
448
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
449
449
|
let { patchPlugin_: t } = e;
|
|
450
450
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
451
451
|
}), i;
|
|
452
452
|
}
|
|
453
453
|
function Ue(e) {
|
|
454
|
-
return
|
|
454
|
+
return T(e) || _(10, e), We(e);
|
|
455
455
|
}
|
|
456
456
|
function We(e) {
|
|
457
|
-
if (!
|
|
457
|
+
if (!E(e) || B(e)) return e;
|
|
458
458
|
let t = e[g], n, r = !0;
|
|
459
459
|
if (t) {
|
|
460
460
|
if (!t.modified_) return t.base_;
|
|
461
|
-
t.finalized_ = !0, n =
|
|
462
|
-
} else n =
|
|
463
|
-
|
|
464
|
-
|
|
461
|
+
t.finalized_ = !0, n = _e(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
462
|
+
} else n = _e(e, !0);
|
|
463
|
+
let i = n;
|
|
464
|
+
return P(n) && (n = /* @__PURE__ */ new Set()), D(i, (e, t) => {
|
|
465
|
+
j(n, e, We(t));
|
|
465
466
|
}, r), t && (t.finalized_ = !1), n;
|
|
466
467
|
}
|
|
467
468
|
globalThis.Iterator?.from;
|
|
468
|
-
var Ge = new
|
|
469
|
+
var Ge = new He().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
469
470
|
function n(e) {
|
|
470
471
|
return e && e.length ? e[0] : void 0;
|
|
471
472
|
}
|
|
@@ -649,7 +650,7 @@ var Ge = new Ve().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
649
650
|
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, ot.default)(s)], p = l, m = u;
|
|
650
651
|
if (p && m) {
|
|
651
652
|
let t = e.find((e) => e.id === l);
|
|
652
|
-
if (
|
|
653
|
+
if (t && t.comparatorFactory || (console.warn(`Column not found or missing comparatorFactory for field '${l}', reverting to default sort settings.`), p = i, m = a, t = e.find((e) => e.id === p)), !t || !t.comparatorFactory) {
|
|
653
654
|
console.error(`Column not found or missing comparatorFactory for field '${l}'`), n({ sortedData: f });
|
|
654
655
|
return;
|
|
655
656
|
}
|
|
@@ -810,7 +811,6 @@ var Ge = new Ve().produce, Ke = /* @__PURE__ */ t(((e, t) => {
|
|
|
810
811
|
children: t
|
|
811
812
|
});
|
|
812
813
|
}, pt = () => re(dt);
|
|
813
|
-
//#endregion
|
|
814
814
|
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 };
|
|
815
815
|
|
|
816
816
|
//# sourceMappingURL=tableStore.js.map
|