@hortiview/modulebase 0.0.13102-beta → 0.0.13104-beta
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/api-s9F8Gbcs.js +473 -0
- package/dist/enum/ActionStorage.js +4 -0
- package/dist/hooks/useCustomMutation.js +1 -1
- package/dist/hooks/useOption.js +1 -1
- package/dist/lib/enum/ActionStorage.d.ts +7 -0
- package/dist/lib/hooks/useStores.d.ts +2 -1
- package/dist/lib/main.d.ts +1 -0
- package/dist/lib/types/ActionStorage.d.ts +1 -7
- package/dist/lib/types/BaseProps.d.ts +1 -0
- package/dist/main.js +165 -163
- package/dist/types/ActionStorage.js +1 -4
- package/dist/utils/api.js +1 -1
- package/dist/utils/baseFetches.js +1 -1
- package/dist/utils/helper.js +1 -1
- package/package.json +1 -1
- package/dist/api-s6E2GJtu.js +0 -458
package/dist/main.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { ModuleBase as A } from "./components/ModuleBase.js";
|
|
2
|
-
import { i as S, h as
|
|
2
|
+
import { i as S, h as m, b as l } from "./ModuleCore-DcwaLp89.js";
|
|
3
3
|
import { M as U, Q as C } from "./ModuleCore-DcwaLp89.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
4
|
+
import { ActionState as b } from "./enum/ActionStorage.js";
|
|
5
|
+
import { useBreadcrumbTranslation as k } from "./hooks/useBreadcrumbTranslation.js";
|
|
6
|
+
import { useOffline as w } from "./hooks/useOffline.js";
|
|
7
|
+
import { useSignalRMessages as D } from "./hooks/useSignalRMessages.js";
|
|
8
|
+
import { useNavigate as L } from "./module-router.js";
|
|
9
|
+
import { useBaseProps as I, useConfig as T } from "./hooks/useStores.js";
|
|
10
|
+
import { useCustom as K } from "./hooks/useCustom.js";
|
|
11
|
+
import { useCustomMutation as z } from "./hooks/useCustomMutation.js";
|
|
12
|
+
import { useEntity as j } from "./hooks/useEntity.js";
|
|
13
|
+
import { useOption as J } from "./hooks/useOption.js";
|
|
14
|
+
import { useNotification as Y, useServiceBus as Z } from "./hooks/useServiceBus.js";
|
|
15
|
+
import { mutateOnCustomApi as ee } from "./utils/fetches.js";
|
|
16
|
+
import { arePropsValid as te, checkConfig as se, checkIfPropExists as re, checkVersion as oe, getEnvironmentVariables as ie, getModuleQueryKey as ue, universalSelector as ne } from "./utils/helper.js";
|
|
16
17
|
import { Q as d, a as E } from "./useQuery-B23OSvXW.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
import { A as
|
|
21
|
-
var
|
|
18
|
+
import { u as he } from "./useQuery-B23OSvXW.js";
|
|
19
|
+
import { u as fe } from "./useMutation-BEK2_IOo.js";
|
|
20
|
+
import { u as me } from "./QueryClientProvider-C7EHlqBQ.js";
|
|
21
|
+
import { A as de, B as Ee, F as pe, H as Pe, I as ge, a as Fe, b as Ne, L as xe, c as ve, M as Ae, d as _e, N as Ue, e as Ce, f as ye, O as be, P as Me, R as ke, g as Oe, h as we, i as Be, S as De, j as He, k as Le, l as Qe, m as Ie, D as Te, n as Ve, E as Ke, o as We, p as ze, q as Ge, r as je, s as qe, t as Je, u as Xe, v as Ye, V as Ze, w as $e, x as ea, y as aa, z as ta, C as sa, G as ra, J as oa, K as ia, Q as ua, T as na, U as ca, W as ha, X as Sa, Y as fa, Z as Ra, _ as ma, $ as la, a0 as da, a1 as Ea, a2 as pa, a3 as Pa, a4 as ga, a5 as Fa, a6 as Na, a7 as xa, a8 as va, a9 as Aa, aa as _a, ab as Ua, ac as Ca, ad as ya, ae as ba, af as Ma, ag as ka, ah as Oa, ai as wa, aj as Ba, ak as Da, al as Ha, am as La, an as Qa, ao as Ia, ap as Ta, aq as Va, ar as Ka, as as Wa, at as za, au as Ga, av as ja, aw as qa, ax as Ja, ay as Xa, az as Ya, aA as Za, aB as $a, aC as et, aD as at, aE as tt, aF as st, aG as rt, aH as ot, aI as it, aJ as ut, aK as nt, aL as ct, aM as ht, aN as St, aO as ft, aP as Rt, aQ as mt, aR as lt, aS as dt, aT as Et, aU as pt, aV as Pt, aW as gt, aX as Ft, aY as Nt, aZ as xt, a_ as vt, a$ as At } from "./chunk-QMGIS6GS-C4bgXQXY.js";
|
|
22
|
+
var p = class extends d {
|
|
22
23
|
constructor(e, a) {
|
|
23
24
|
super(e, a);
|
|
24
25
|
}
|
|
@@ -51,13 +52,13 @@ var P = class extends d {
|
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
createResult(e, a) {
|
|
54
|
-
const { state:
|
|
55
|
+
const { state: s } = e, r = super.createResult(e, a), { isFetching: o, isRefetching: f, isError: i, isRefetchError: R } = r, t = s.fetchMeta?.fetchMore?.direction, u = i && t === "forward", n = o && t === "forward", c = i && t === "backward", h = o && t === "backward";
|
|
55
56
|
return {
|
|
56
57
|
...r,
|
|
57
58
|
fetchNextPage: this.fetchNextPage,
|
|
58
59
|
fetchPreviousPage: this.fetchPreviousPage,
|
|
59
|
-
hasNextPage:
|
|
60
|
-
hasPreviousPage:
|
|
60
|
+
hasNextPage: m(a, s.data),
|
|
61
|
+
hasPreviousPage: l(a, s.data),
|
|
61
62
|
isFetchNextPageError: u,
|
|
62
63
|
isFetchingNextPage: n,
|
|
63
64
|
isFetchPreviousPageError: c,
|
|
@@ -70,154 +71,155 @@ var P = class extends d {
|
|
|
70
71
|
function N(e, a) {
|
|
71
72
|
return E(
|
|
72
73
|
e,
|
|
73
|
-
|
|
74
|
+
p,
|
|
74
75
|
a
|
|
75
76
|
);
|
|
76
77
|
}
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Pe as
|
|
83
|
-
ge as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
b as ActionState,
|
|
80
|
+
de as Await,
|
|
81
|
+
Ee as BrowserRouter,
|
|
82
|
+
pe as Form,
|
|
83
|
+
Pe as HashRouter,
|
|
84
|
+
ge as IDLE_BLOCKER,
|
|
85
|
+
Fe as IDLE_FETCHER,
|
|
86
|
+
Ne as IDLE_NAVIGATION,
|
|
87
|
+
xe as Link,
|
|
88
|
+
ve as Links,
|
|
89
|
+
Ae as MemoryRouter,
|
|
90
|
+
_e as Meta,
|
|
89
91
|
A as ModuleBase,
|
|
90
92
|
U as ModuleCore,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
Ue as NavLink,
|
|
94
|
+
Ce as Navigate,
|
|
95
|
+
ye as NavigationType,
|
|
96
|
+
be as Outlet,
|
|
97
|
+
Me as PrefetchPageLinks,
|
|
96
98
|
C as QueryClient,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
99
|
+
ke as Route,
|
|
100
|
+
Oe as Router,
|
|
101
|
+
we as RouterProvider,
|
|
102
|
+
Be as Routes,
|
|
103
|
+
De as Scripts,
|
|
104
|
+
He as ScrollRestoration,
|
|
105
|
+
Le as ServerRouter,
|
|
106
|
+
Qe as StaticRouter,
|
|
107
|
+
Ie as StaticRouterProvider,
|
|
108
|
+
Te as UNSAFE_DataRouterContext,
|
|
109
|
+
Ve as UNSAFE_DataRouterStateContext,
|
|
110
|
+
Ke as UNSAFE_ErrorResponseImpl,
|
|
111
|
+
We as UNSAFE_FetchersContext,
|
|
112
|
+
ze as UNSAFE_FrameworkContext,
|
|
113
|
+
Ge as UNSAFE_LocationContext,
|
|
114
|
+
je as UNSAFE_NavigationContext,
|
|
115
|
+
qe as UNSAFE_RemixErrorBoundary,
|
|
116
|
+
Je as UNSAFE_RouteContext,
|
|
117
|
+
Xe as UNSAFE_ServerMode,
|
|
118
|
+
Ye as UNSAFE_SingleFetchRedirectSymbol,
|
|
119
|
+
Ze as UNSAFE_ViewTransitionContext,
|
|
120
|
+
$e as UNSAFE_createBrowserHistory,
|
|
121
|
+
ea as UNSAFE_createClientRoutes,
|
|
122
|
+
aa as UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|
|
123
|
+
ta as UNSAFE_createRouter,
|
|
124
|
+
sa as UNSAFE_decodeViaTurboStream,
|
|
125
|
+
ra as UNSAFE_deserializeErrors,
|
|
126
|
+
oa as UNSAFE_getHydrationData,
|
|
127
|
+
ia as UNSAFE_getPatchRoutesOnNavigationFunction,
|
|
128
|
+
ua as UNSAFE_getTurboStreamSingleFetchDataStrategy,
|
|
129
|
+
na as UNSAFE_hydrationRouteProperties,
|
|
130
|
+
ca as UNSAFE_invariant,
|
|
131
|
+
ha as UNSAFE_mapRouteProperties,
|
|
132
|
+
Sa as UNSAFE_shouldHydrateRouteLoader,
|
|
133
|
+
fa as UNSAFE_useFogOFWarDiscovery,
|
|
134
|
+
Ra as UNSAFE_useScrollRestoration,
|
|
135
|
+
ma as UNSAFE_withComponentProps,
|
|
136
|
+
la as UNSAFE_withErrorBoundaryProps,
|
|
137
|
+
da as UNSAFE_withHydrateFallbackProps,
|
|
138
|
+
te as arePropsValid,
|
|
139
|
+
se as checkConfig,
|
|
140
|
+
re as checkIfPropExists,
|
|
141
|
+
oe as checkVersion,
|
|
142
|
+
Ea as createBrowserRouter,
|
|
143
|
+
pa as createCookie,
|
|
144
|
+
Pa as createCookieSessionStorage,
|
|
145
|
+
ga as createHashRouter,
|
|
146
|
+
Fa as createMemoryRouter,
|
|
147
|
+
Na as createMemorySessionStorage,
|
|
148
|
+
xa as createPath,
|
|
149
|
+
va as createRequestHandler,
|
|
150
|
+
Aa as createRoutesFromChildren,
|
|
151
|
+
_a as createRoutesFromElements,
|
|
152
|
+
Ua as createRoutesStub,
|
|
153
|
+
Ca as createSearchParams,
|
|
154
|
+
ya as createSession,
|
|
155
|
+
ba as createSessionStorage,
|
|
156
|
+
Ma as createStaticHandler,
|
|
157
|
+
ka as createStaticRouter,
|
|
158
|
+
Oa as data,
|
|
159
|
+
wa as generatePath,
|
|
160
|
+
ie as getEnvironmentVariables,
|
|
161
|
+
ue as getModuleQueryKey,
|
|
162
|
+
Ba as href,
|
|
163
|
+
Da as isCookie,
|
|
164
|
+
Ha as isRouteErrorResponse,
|
|
165
|
+
La as isSession,
|
|
166
|
+
Qa as matchPath,
|
|
167
|
+
Ia as matchRoutes,
|
|
168
|
+
ee as mutateOnCustomApi,
|
|
169
|
+
Ta as parsePath,
|
|
170
|
+
Va as redirect,
|
|
171
|
+
Ka as redirectDocument,
|
|
172
|
+
Wa as renderMatches,
|
|
173
|
+
za as replace,
|
|
174
|
+
Ga as resolvePath,
|
|
175
|
+
ne as universalSelector,
|
|
176
|
+
ja as unstable_HistoryRouter,
|
|
177
|
+
qa as unstable_RouterContextProvider,
|
|
178
|
+
Ja as unstable_createContext,
|
|
179
|
+
Xa as unstable_setDevServerHooks,
|
|
180
|
+
Ya as unstable_usePrompt,
|
|
181
|
+
Za as useActionData,
|
|
182
|
+
$a as useAsyncError,
|
|
183
|
+
et as useAsyncValue,
|
|
184
|
+
I as useBaseProps,
|
|
185
|
+
at as useBeforeUnload,
|
|
186
|
+
tt as useBlocker,
|
|
187
|
+
k as useBreadcrumbTranslation,
|
|
188
|
+
T as useConfig,
|
|
189
|
+
K as useCustom,
|
|
190
|
+
z as useCustomMutation,
|
|
191
|
+
j as useEntity,
|
|
192
|
+
st as useFetcher,
|
|
193
|
+
rt as useFetchers,
|
|
194
|
+
ot as useFormAction,
|
|
195
|
+
it as useHref,
|
|
196
|
+
ut as useInRouterContext,
|
|
195
197
|
N as useInfiniteQuery,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
198
|
+
nt as useLinkClickHandler,
|
|
199
|
+
ct as useLoaderData,
|
|
200
|
+
ht as useLocation,
|
|
201
|
+
St as useMatch,
|
|
202
|
+
ft as useMatches,
|
|
203
|
+
fe as useMutation,
|
|
204
|
+
L as useNavigate,
|
|
205
|
+
Rt as useNavigation,
|
|
206
|
+
mt as useNavigationType,
|
|
207
|
+
Y as useNotification,
|
|
208
|
+
w as useOffline,
|
|
209
|
+
J as useOption,
|
|
210
|
+
lt as useOutlet,
|
|
211
|
+
dt as useOutletContext,
|
|
212
|
+
Et as useParams,
|
|
213
|
+
he as useQuery,
|
|
214
|
+
me as useQueryClient,
|
|
215
|
+
pt as useResolvedPath,
|
|
216
|
+
Pt as useRevalidator,
|
|
217
|
+
gt as useRouteError,
|
|
218
|
+
Ft as useRouteLoaderData,
|
|
219
|
+
Nt as useRoutes,
|
|
220
|
+
xt as useSearchParams,
|
|
221
|
+
Z as useServiceBus,
|
|
222
|
+
D as useSignalRMessages,
|
|
223
|
+
vt as useSubmit,
|
|
224
|
+
At as useViewTransitionState
|
|
223
225
|
};
|
package/dist/utils/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as u, f as m, i as S, b as I } from "../api-
|
|
1
|
+
import { a as u, f as m, i as S, b as I } from "../api-s9F8Gbcs.js";
|
|
2
2
|
import { useBasePropsStore as t } from "../stores/BasePropsStore.js";
|
|
3
3
|
const E = (s, e, g, o, r, n = !1) => {
|
|
4
4
|
const a = n ? void 0 : o ?? t.getState().modulePermissionToken, i = t.getState().organizationId, c = t.getState().currentLanguageId, d = t.getState().throwError;
|
package/dist/utils/helper.js
CHANGED
|
@@ -25,7 +25,7 @@ const g = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([
|
|
|
25
25
|
}, a = (r, e) => {
|
|
26
26
|
const t = c(r), n = c(e), o = t.pop(), i = n.pop(), s = p(t, n);
|
|
27
27
|
return s !== 0 ? s : o && i ? p(o.split("."), i.split(".")) : o || i ? o ? -1 : 1 : 0;
|
|
28
|
-
}, d = "0.0.
|
|
28
|
+
}, d = "0.0.13104-beta", w = (r) => m.every((e) => y(e, r)), y = (r, e) => {
|
|
29
29
|
if (!e[r]) {
|
|
30
30
|
if (e.throwError)
|
|
31
31
|
return e.throwError(`Missing required prop: ${r}`, 404), !1;
|
package/package.json
CHANGED