oiu-core 0.1.12 → 0.1.14
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/components/SearchWithCard/index.d.ts +3 -2
- package/dist/components/SearchWithCard/index.d.ts.map +1 -1
- package/dist/{index-ComYeLbc.js → index-BRODpY4Y.js} +1 -1
- package/dist/{main-D7RTHIMC.js → main-DEwdbtUG.js} +115 -101
- package/dist/main.js +1 -1
- package/dist/utils/promise.d.ts +12 -0
- package/dist/utils/promise.d.ts.map +1 -1
- package/dist/utils/url.d.ts +9 -0
- package/dist/utils/url.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { RowProps } from '../Row';
|
|
3
3
|
import { PaginationProps } from '../Pagination';
|
|
4
4
|
import { IPaging, ISearch, ISearchModel } from '../../utils/_types';
|
|
5
|
-
export type
|
|
5
|
+
export type SearchWithCardPaginationProps = Omit<PaginationProps, 'total' | 'pageSize' | 'current' | 'onChange' | 'showTotal'>;
|
|
6
|
+
export type SearchWithCardProps<T extends object, S extends ISearch<F>, F = unknown, TPaginationProps extends SearchWithCardPaginationProps = SearchWithCardPaginationProps> = {
|
|
6
7
|
/** Search parameters. This contains the filter, the order, and the paging information */
|
|
7
8
|
search: S;
|
|
8
9
|
/** Data source containing the list of items to display in the table along with the total count */
|
|
@@ -27,7 +28,7 @@ export type SearchWithCardProps<T extends object, S extends ISearch<F>, F = unkn
|
|
|
27
28
|
paginationProps?: TPaginationProps;
|
|
28
29
|
rowGutter?: RowProps['gutter'];
|
|
29
30
|
};
|
|
30
|
-
export declare function SearchWithCard<T extends object, S extends ISearch<F>, F = unknown, TPaginationProps extends
|
|
31
|
+
export declare function SearchWithCard<T extends object, S extends ISearch<F>, F = unknown, TPaginationProps extends SearchWithCardPaginationProps = SearchWithCardPaginationProps>({ dataSource, search, renderItem, onPageChange, filter, paginationProps, rowGutter, }: SearchWithCardProps<T, S, F, TPaginationProps>): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export declare namespace SearchWithCard {
|
|
32
33
|
var defaultPaging: IPaging;
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/SearchWithCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,MAAM,mBAAmB,CAC3B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpB,CAAC,GAAG,OAAO,EACX,gBAAgB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/SearchWithCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAC/H,MAAM,MAAM,mBAAmB,CAC3B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpB,CAAC,GAAG,OAAO,EACX,gBAAgB,SAAS,6BAA6B,GAAG,6BAA6B,IACtF;IACA,yFAAyF;IACzF,MAAM,EAAE,CAAC,CAAC;IACV,kGAAkG;IAClG,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD;;;;;;OAMG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,kFAAkF;IAClF,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;CAClC,CAAC;AAEF,wBAAgB,cAAc,CAC1B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpB,CAAC,GAAG,OAAO,EACX,gBAAgB,SAAS,6BAA6B,GAAG,6BAA6B,EACxF,EACE,UAAU,EACV,MAAM,EACN,UAAU,EACV,YAAY,EACZ,MAAM,EACN,eAAe,EACf,SAAoB,GACvB,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,2CAmDhD;yBAhEe,cAAc"}
|
|
@@ -6305,7 +6305,7 @@ function Km() {
|
|
|
6305
6305
|
if (!e) throw new Error(Wm);
|
|
6306
6306
|
return Hn(e);
|
|
6307
6307
|
}
|
|
6308
|
-
const
|
|
6308
|
+
const $N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6309
6309
|
__proto__: null,
|
|
6310
6310
|
getBrowserLangInfo: Km,
|
|
6311
6311
|
getBrowserLocale: Ym,
|
|
@@ -6861,7 +6861,7 @@ function rs({
|
|
|
6861
6861
|
paginationProps: i,
|
|
6862
6862
|
rowGutter: s = [16, 16]
|
|
6863
6863
|
}) {
|
|
6864
|
-
const { paging: a } = t, c = e?.total ?? 0, l = e?.data, u =
|
|
6864
|
+
const { paging: a } = t, c = e?.total ?? 0, l = e?.data, u = a?.page ?? rs.defaultPaging.page, d = a?.pageSize ?? rs.defaultPaging.pageSize, h = o, m = hs(
|
|
6865
6865
|
(v, f, g) => /* @__PURE__ */ Xi("div", { children: [
|
|
6866
6866
|
"Showing ",
|
|
6867
6867
|
v,
|
|
@@ -6886,7 +6886,7 @@ function rs({
|
|
|
6886
6886
|
/* @__PURE__ */ fe(Mr, { span: 24, children: /* @__PURE__ */ fe(Bn, { ...p }) })
|
|
6887
6887
|
] });
|
|
6888
6888
|
}
|
|
6889
|
-
rs.defaultPaging = { page:
|
|
6889
|
+
rs.defaultPaging = { page: 0, pageSize: 10 };
|
|
6890
6890
|
function FS(e) {
|
|
6891
6891
|
return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
|
|
6892
6892
|
}
|
|
@@ -7676,7 +7676,7 @@ const Yc = "ant", sy = "anticon", EC = (e, t) => t || (e ? `${Yc}-${e}` : Yc), t
|
|
|
7676
7676
|
getPrefixCls: EC,
|
|
7677
7677
|
iconPrefixCls: sy
|
|
7678
7678
|
}), {
|
|
7679
|
-
Consumer:
|
|
7679
|
+
Consumer: kN
|
|
7680
7680
|
} = tr, dd = {};
|
|
7681
7681
|
function Ou(e) {
|
|
7682
7682
|
const t = S.useContext(tr), {
|
|
@@ -19352,7 +19352,7 @@ function GR({ services: e, ...t }) {
|
|
|
19352
19352
|
const r = Be(() => Ao(UR, { services: e }), [e]);
|
|
19353
19353
|
return /* @__PURE__ */ fe(r, { ...t });
|
|
19354
19354
|
}
|
|
19355
|
-
const
|
|
19355
|
+
const HN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19356
19356
|
__proto__: null,
|
|
19357
19357
|
Col: Mr,
|
|
19358
19358
|
ConfigLoader: zS,
|
|
@@ -19394,12 +19394,12 @@ function QR({ className: e, children: t, getPermissionFor: r, defaultAbility: n
|
|
|
19394
19394
|
var Gv = /* @__PURE__ */ ((e) => (e[e.Always = 1] = "Always", e[e.Never = 2] = "Never", e[e.RedirectIfFails = 3] = "RedirectIfFails", e))(Gv || {});
|
|
19395
19395
|
const YR = () => import(
|
|
19396
19396
|
/* @vite-ignore */
|
|
19397
|
-
"./index-
|
|
19397
|
+
"./index-BRODpY4Y.js"
|
|
19398
19398
|
);
|
|
19399
19399
|
async function KR(e, t, r) {
|
|
19400
19400
|
return (await YR()).default(e, t, r);
|
|
19401
19401
|
}
|
|
19402
|
-
const
|
|
19402
|
+
const VN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19403
19403
|
__proto__: null,
|
|
19404
19404
|
Allowed: uE,
|
|
19405
19405
|
AuthResultStatus: Uh,
|
|
@@ -21007,7 +21007,20 @@ function IT(e, t, r = "/", n = !0) {
|
|
|
21007
21007
|
let o = e.get("returnUrl") || e.get("ReturnUrl");
|
|
21008
21008
|
return !o || (n && (o = decodeURIComponent(o)), !o.startsWith("/") && !o.startsWith(`${window.location.origin}/`)) ? r : o;
|
|
21009
21009
|
}
|
|
21010
|
-
function MT(e, t, r
|
|
21010
|
+
function MT(e, t, r) {
|
|
21011
|
+
const n = { ...e };
|
|
21012
|
+
if (t && (n.paging = {
|
|
21013
|
+
page: t.page ?? 0,
|
|
21014
|
+
pageSize: t.pageSize ?? 10
|
|
21015
|
+
}), !r) return n;
|
|
21016
|
+
if (Array.isArray(r)) throw new Error("Not implemented");
|
|
21017
|
+
const o = e.order;
|
|
21018
|
+
if (!r)
|
|
21019
|
+
return n.order = [], n;
|
|
21020
|
+
const i = r.asc;
|
|
21021
|
+
return o?.length && o[0].asc === i && o[0].name === r.name || (n.order = [{ asc: i, name: r.name }]), n;
|
|
21022
|
+
}
|
|
21023
|
+
function FT(e, t, r, n) {
|
|
21011
21024
|
if (!r || r === "/") {
|
|
21012
21025
|
e(n ?? "/");
|
|
21013
21026
|
return;
|
|
@@ -21022,10 +21035,10 @@ function Ju(e, t) {
|
|
|
21022
21035
|
r[n] === "" || r[n] === null || r[n] === void 0 || t && n === "_version" ? delete r[n] : typeof r[n] == "object" && (r[n] = Ju(r[n], t));
|
|
21023
21036
|
return r;
|
|
21024
21037
|
}
|
|
21025
|
-
function
|
|
21038
|
+
function DT(e, t = !0, r = { addQueryPrefix: !0 }, n = !0) {
|
|
21026
21039
|
return e ? (t && (e = Ju(e, n), e.returnUrl === "/" && delete e.returnUrl), $T.stringify(e, { allowDots: !0, ...r })) : "";
|
|
21027
21040
|
}
|
|
21028
|
-
function
|
|
21041
|
+
function LT(e, t, r = {}) {
|
|
21029
21042
|
const n = {}, o = t.entries();
|
|
21030
21043
|
for (; ; ) {
|
|
21031
21044
|
const i = o.next();
|
|
@@ -21041,23 +21054,24 @@ function DT(e, t, r = {}) {
|
|
|
21041
21054
|
delete n[i];
|
|
21042
21055
|
}), e(n);
|
|
21043
21056
|
}
|
|
21044
|
-
const
|
|
21057
|
+
const BN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21045
21058
|
__proto__: null,
|
|
21046
21059
|
ErrType: Xv,
|
|
21047
|
-
buildQueryString:
|
|
21060
|
+
buildQueryString: LT,
|
|
21048
21061
|
decodeJwt: nE,
|
|
21049
21062
|
format: uu,
|
|
21050
21063
|
getReturnUrl: IT,
|
|
21051
21064
|
getWindow: Su,
|
|
21052
21065
|
loadConfig: Vg,
|
|
21053
21066
|
nameof: rE,
|
|
21067
|
+
nextSearch: MT,
|
|
21054
21068
|
oiuConfig: Cu,
|
|
21055
|
-
qs:
|
|
21069
|
+
qs: DT,
|
|
21056
21070
|
recursiveClean: Ju,
|
|
21057
|
-
redirectTo:
|
|
21071
|
+
redirectTo: FT,
|
|
21058
21072
|
sig: Mc
|
|
21059
21073
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21060
|
-
var
|
|
21074
|
+
var kT = class extends Error {
|
|
21061
21075
|
/**
|
|
21062
21076
|
* The schema issues.
|
|
21063
21077
|
*/
|
|
@@ -21094,10 +21108,10 @@ function ob(e, t) {
|
|
|
21094
21108
|
function Ql(e, t, r) {
|
|
21095
21109
|
return e.reduce((n, o, i) => (t(o, i) && n.push(r(o, i)), n), []).flat();
|
|
21096
21110
|
}
|
|
21097
|
-
function
|
|
21111
|
+
function HT(e) {
|
|
21098
21112
|
return new RegExp("(^|:)//").test(e);
|
|
21099
21113
|
}
|
|
21100
|
-
function
|
|
21114
|
+
function VT() {
|
|
21101
21115
|
return typeof document > "u" ? !0 : document.visibilityState !== "hidden";
|
|
21102
21116
|
}
|
|
21103
21117
|
function ef(e) {
|
|
@@ -21106,24 +21120,24 @@ function ef(e) {
|
|
|
21106
21120
|
function Oh(e) {
|
|
21107
21121
|
return [...e?.values() ?? []].filter(ef);
|
|
21108
21122
|
}
|
|
21109
|
-
function
|
|
21123
|
+
function BT() {
|
|
21110
21124
|
return typeof navigator > "u" || navigator.onLine === void 0 ? !0 : navigator.onLine;
|
|
21111
21125
|
}
|
|
21112
|
-
var
|
|
21113
|
-
function
|
|
21126
|
+
var jT = (e) => e.replace(/\/$/, ""), zT = (e) => e.replace(/^\//, "");
|
|
21127
|
+
function qT(e, t) {
|
|
21114
21128
|
if (!e)
|
|
21115
21129
|
return t;
|
|
21116
21130
|
if (!t)
|
|
21117
21131
|
return e;
|
|
21118
|
-
if (
|
|
21132
|
+
if (HT(t))
|
|
21119
21133
|
return t;
|
|
21120
21134
|
const r = e.endsWith("/") || !t.startsWith("?") ? "/" : "";
|
|
21121
|
-
return e =
|
|
21135
|
+
return e = jT(e), t = zT(t), `${e}${r}${t}`;
|
|
21122
21136
|
}
|
|
21123
21137
|
function ds(e, t, r) {
|
|
21124
21138
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
21125
21139
|
}
|
|
21126
|
-
var Yl = () => /* @__PURE__ */ new Map(),
|
|
21140
|
+
var Yl = () => /* @__PURE__ */ new Map(), UT = (e) => {
|
|
21127
21141
|
const t = new AbortController();
|
|
21128
21142
|
return setTimeout(() => {
|
|
21129
21143
|
const r = "signal timed out", n = "TimeoutError";
|
|
@@ -21134,7 +21148,7 @@ var Yl = () => /* @__PURE__ */ new Map(), qT = (e) => {
|
|
|
21134
21148
|
})
|
|
21135
21149
|
);
|
|
21136
21150
|
}, e), t.signal;
|
|
21137
|
-
},
|
|
21151
|
+
}, WT = (...e) => {
|
|
21138
21152
|
for (const r of e) if (r.aborted) return AbortSignal.abort(r.reason);
|
|
21139
21153
|
const t = new AbortController();
|
|
21140
21154
|
for (const r of e)
|
|
@@ -21143,7 +21157,7 @@ var Yl = () => /* @__PURE__ */ new Map(), qT = (e) => {
|
|
|
21143
21157
|
once: !0
|
|
21144
21158
|
});
|
|
21145
21159
|
return t.signal;
|
|
21146
|
-
}, Rh = (...e) => fetch(...e),
|
|
21160
|
+
}, Rh = (...e) => fetch(...e), GT = (e) => e.status >= 200 && e.status <= 299, XT = (e) => (
|
|
21147
21161
|
/*applicat*/
|
|
21148
21162
|
/ion\/(vnd\.api\+)?json/.test(e.get("content-type") || "")
|
|
21149
21163
|
);
|
|
@@ -21157,13 +21171,13 @@ function Th(e) {
|
|
|
21157
21171
|
n === void 0 && delete t[r];
|
|
21158
21172
|
return t;
|
|
21159
21173
|
}
|
|
21160
|
-
var
|
|
21161
|
-
function
|
|
21174
|
+
var QT = (e) => typeof e == "object" && (Jt(e) || Array.isArray(e) || typeof e.toJSON == "function");
|
|
21175
|
+
function YT({
|
|
21162
21176
|
baseUrl: e,
|
|
21163
21177
|
prepareHeaders: t = (d) => d,
|
|
21164
21178
|
fetchFn: r = Rh,
|
|
21165
21179
|
paramsSerializer: n,
|
|
21166
|
-
isJsonContentType: o =
|
|
21180
|
+
isJsonContentType: o = XT,
|
|
21167
21181
|
jsonContentType: i = "application/json",
|
|
21168
21182
|
jsonReplacer: s,
|
|
21169
21183
|
timeout: a,
|
|
@@ -21184,14 +21198,14 @@ function QT({
|
|
|
21184
21198
|
headers: C = new Headers(u.headers),
|
|
21185
21199
|
params: x = void 0,
|
|
21186
21200
|
responseHandler: P = c ?? "json",
|
|
21187
|
-
validateStatus: R = l ??
|
|
21201
|
+
validateStatus: R = l ?? GT,
|
|
21188
21202
|
timeout: T = a,
|
|
21189
21203
|
..._
|
|
21190
21204
|
} = typeof h == "string" ? {
|
|
21191
21205
|
url: h
|
|
21192
21206
|
} : h, O = {
|
|
21193
21207
|
...u,
|
|
21194
|
-
signal: T ?
|
|
21208
|
+
signal: T ? WT(m.signal, UT(T)) : m.signal,
|
|
21195
21209
|
..._
|
|
21196
21210
|
};
|
|
21197
21211
|
C = new Headers(Th(C)), O.headers = await t(C, {
|
|
@@ -21203,12 +21217,12 @@ function QT({
|
|
|
21203
21217
|
type: E,
|
|
21204
21218
|
extraOptions: p
|
|
21205
21219
|
}) || C;
|
|
21206
|
-
const N =
|
|
21220
|
+
const N = QT(O.body);
|
|
21207
21221
|
if (O.body != null && !N && typeof O.body != "string" && O.headers.delete("content-type"), !O.headers.has("content-type") && N && O.headers.set("content-type", i), N && o(O.headers) && (O.body = JSON.stringify(O.body, s)), O.headers.has("accept") || (P === "json" ? O.headers.set("accept", "application/json") : P === "text" && O.headers.set("accept", "text/plain, text/html, */*")), x) {
|
|
21208
21222
|
const U = ~y.indexOf("?") ? "&" : "?", W = n ? n(x) : new URLSearchParams(Th(x));
|
|
21209
21223
|
y += U + W;
|
|
21210
21224
|
}
|
|
21211
|
-
y =
|
|
21225
|
+
y = qT(e, y);
|
|
21212
21226
|
const A = new Request(y, O);
|
|
21213
21227
|
w = {
|
|
21214
21228
|
request: new Request(y, O)
|
|
@@ -21273,11 +21287,11 @@ var Nh = class {
|
|
|
21273
21287
|
constructor(e, t = void 0) {
|
|
21274
21288
|
this.value = e, this.meta = t;
|
|
21275
21289
|
}
|
|
21276
|
-
}, Us = "__rtkq/",
|
|
21290
|
+
}, Us = "__rtkq/", KT = "online", ZT = "offline", ib = "focused", tf = /* @__PURE__ */ qt(`${Us}${ib}`), sb = /* @__PURE__ */ qt(`${Us}un${ib}`), rf = /* @__PURE__ */ qt(`${Us}${KT}`), ab = /* @__PURE__ */ qt(`${Us}${ZT}`), si = "query", cb = "mutation", lb = "infinitequery";
|
|
21277
21291
|
function Ws(e) {
|
|
21278
21292
|
return e.type === si;
|
|
21279
21293
|
}
|
|
21280
|
-
function
|
|
21294
|
+
function JT(e) {
|
|
21281
21295
|
return e.type === cb;
|
|
21282
21296
|
}
|
|
21283
21297
|
function ai(e) {
|
|
@@ -21287,10 +21301,10 @@ function ps(e) {
|
|
|
21287
21301
|
return Ws(e) || ai(e);
|
|
21288
21302
|
}
|
|
21289
21303
|
function nf(e, t, r, n, o, i) {
|
|
21290
|
-
const s =
|
|
21304
|
+
const s = eN(e) ? e(t, r, n, o) : e;
|
|
21291
21305
|
return s ? Ql(s, ef, (a) => i(ub(a))) : [];
|
|
21292
21306
|
}
|
|
21293
|
-
function
|
|
21307
|
+
function eN(e) {
|
|
21294
21308
|
return typeof e == "function";
|
|
21295
21309
|
}
|
|
21296
21310
|
function ub(e) {
|
|
@@ -21298,11 +21312,11 @@ function ub(e) {
|
|
|
21298
21312
|
type: e
|
|
21299
21313
|
} : e;
|
|
21300
21314
|
}
|
|
21301
|
-
function
|
|
21315
|
+
function tN(e, t) {
|
|
21302
21316
|
return e.catch(t);
|
|
21303
21317
|
}
|
|
21304
21318
|
var Un = (e, t) => e.endpointDefinitions[t], jo = /* @__PURE__ */ Symbol("forceQueryFn"), Kl = (e) => typeof e[jo] == "function";
|
|
21305
|
-
function
|
|
21319
|
+
function rN({
|
|
21306
21320
|
serializeQueryArgs: e,
|
|
21307
21321
|
queryThunk: t,
|
|
21308
21322
|
infiniteQueryThunk: r,
|
|
@@ -21477,7 +21491,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
21477
21491
|
requestId: N,
|
|
21478
21492
|
abort: A,
|
|
21479
21493
|
unwrap: k
|
|
21480
|
-
} = O, V =
|
|
21494
|
+
} = O, V = tN(O.unwrap().then((U) => ({
|
|
21481
21495
|
data: U
|
|
21482
21496
|
})), (U) => ({
|
|
21483
21497
|
error: U
|
|
@@ -21501,7 +21515,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
21501
21515
|
};
|
|
21502
21516
|
}
|
|
21503
21517
|
}
|
|
21504
|
-
var fb = class extends
|
|
21518
|
+
var fb = class extends kT {
|
|
21505
21519
|
constructor(e, t, r, n) {
|
|
21506
21520
|
super(e), this.value = t, this.schemaName = r, this._bqMeta = n;
|
|
21507
21521
|
}
|
|
@@ -21519,7 +21533,7 @@ var lo = (e = {}) => ({
|
|
|
21519
21533
|
...e,
|
|
21520
21534
|
[ys]: !0
|
|
21521
21535
|
});
|
|
21522
|
-
function
|
|
21536
|
+
function nN({
|
|
21523
21537
|
reducerPath: e,
|
|
21524
21538
|
baseQuery: t,
|
|
21525
21539
|
context: {
|
|
@@ -21870,7 +21884,7 @@ function Ih(e, t, r) {
|
|
|
21870
21884
|
n && r(n);
|
|
21871
21885
|
}
|
|
21872
21886
|
var Hi = {};
|
|
21873
|
-
function
|
|
21887
|
+
function oN({
|
|
21874
21888
|
reducerPath: e,
|
|
21875
21889
|
queryThunk: t,
|
|
21876
21890
|
mutationThunk: r,
|
|
@@ -22211,8 +22225,8 @@ function nN({
|
|
|
22211
22225
|
}), y = hr({
|
|
22212
22226
|
name: `${e}/config`,
|
|
22213
22227
|
initialState: {
|
|
22214
|
-
online:
|
|
22215
|
-
focused:
|
|
22228
|
+
online: BT(),
|
|
22229
|
+
focused: VT(),
|
|
22216
22230
|
middlewareRegistered: !1,
|
|
22217
22231
|
...l
|
|
22218
22232
|
},
|
|
@@ -22261,7 +22275,7 @@ var xc = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), hb = {
|
|
|
22261
22275
|
}, Mh = /* @__PURE__ */ Qo(hb, () => {
|
|
22262
22276
|
}), Fh = /* @__PURE__ */ Qo(hb, () => {
|
|
22263
22277
|
});
|
|
22264
|
-
function
|
|
22278
|
+
function iN({
|
|
22265
22279
|
serializeQueryArgs: e,
|
|
22266
22280
|
reducerPath: t,
|
|
22267
22281
|
createSelector: r
|
|
@@ -22402,7 +22416,7 @@ var Dh = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, Lh = ({
|
|
|
22402
22416
|
}
|
|
22403
22417
|
return `${e}(${r})`;
|
|
22404
22418
|
};
|
|
22405
|
-
function
|
|
22419
|
+
function sN(...e) {
|
|
22406
22420
|
return function(r) {
|
|
22407
22421
|
const n = ts((l) => r.extractRehydrationInfo?.(l, {
|
|
22408
22422
|
reducerPath: r.reducerPath ?? "api"
|
|
@@ -22503,7 +22517,7 @@ function iN(...e) {
|
|
|
22503
22517
|
function ar(e, ...t) {
|
|
22504
22518
|
return Object.assign(e, ...t);
|
|
22505
22519
|
}
|
|
22506
|
-
var
|
|
22520
|
+
var aN = ({
|
|
22507
22521
|
api: e,
|
|
22508
22522
|
queryThunk: t,
|
|
22509
22523
|
internalState: r,
|
|
@@ -22583,7 +22597,7 @@ var sN = ({
|
|
|
22583
22597
|
}
|
|
22584
22598
|
return [b, !1];
|
|
22585
22599
|
};
|
|
22586
|
-
},
|
|
22600
|
+
}, cN = 2147483647 / 1e3 - 1, lN = ({
|
|
22587
22601
|
reducerPath: e,
|
|
22588
22602
|
api: t,
|
|
22589
22603
|
queryThunk: r,
|
|
@@ -22647,7 +22661,7 @@ var sN = ({
|
|
|
22647
22661
|
const P = Un(n, w)?.keepUnusedDataFor ?? C.keepUnusedDataFor;
|
|
22648
22662
|
if (P === 1 / 0)
|
|
22649
22663
|
return;
|
|
22650
|
-
const R = Math.max(0, Math.min(P,
|
|
22664
|
+
const R = Math.max(0, Math.min(P, cN));
|
|
22651
22665
|
if (!m(E)) {
|
|
22652
22666
|
const T = p[E];
|
|
22653
22667
|
T && clearTimeout(T), p[E] = setTimeout(() => {
|
|
@@ -22662,7 +22676,7 @@ var sN = ({
|
|
|
22662
22676
|
}
|
|
22663
22677
|
}
|
|
22664
22678
|
return f;
|
|
22665
|
-
}, kh = new Error("Promise never resolved before cacheEntryRemoved."),
|
|
22679
|
+
}, kh = new Error("Promise never resolved before cacheEntryRemoved."), uN = ({
|
|
22666
22680
|
api: e,
|
|
22667
22681
|
reducerPath: t,
|
|
22668
22682
|
context: r,
|
|
@@ -22764,7 +22778,7 @@ var sN = ({
|
|
|
22764
22778
|
});
|
|
22765
22779
|
}
|
|
22766
22780
|
return b;
|
|
22767
|
-
},
|
|
22781
|
+
}, fN = ({
|
|
22768
22782
|
api: e,
|
|
22769
22783
|
context: {
|
|
22770
22784
|
apiUid: t
|
|
@@ -22774,7 +22788,7 @@ var sN = ({
|
|
|
22774
22788
|
e.util.resetApiState.match(n) && o.dispatch(e.internalActions.middlewareRegistered(t)), typeof process < "u" && process.env.NODE_ENV === "development" && e.internalActions.middlewareRegistered.match(n) && n.payload === t && o.getState()[r]?.config?.middlewareRegistered === "conflict" && console.warn(`There is a mismatch between slice and middleware for the reducerPath "${r}".
|
|
22775
22789
|
You can only have one api per reducer path, this will lead to crashes in various situations!${r === "api" ? `
|
|
22776
22790
|
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!` : ""}`);
|
|
22777
|
-
},
|
|
22791
|
+
}, dN = ({
|
|
22778
22792
|
reducerPath: e,
|
|
22779
22793
|
context: t,
|
|
22780
22794
|
context: {
|
|
@@ -22817,7 +22831,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
22817
22831
|
});
|
|
22818
22832
|
}
|
|
22819
22833
|
return p;
|
|
22820
|
-
},
|
|
22834
|
+
}, pN = ({
|
|
22821
22835
|
reducerPath: e,
|
|
22822
22836
|
queryThunk: t,
|
|
22823
22837
|
api: r,
|
|
@@ -22904,7 +22918,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
22904
22918
|
};
|
|
22905
22919
|
}
|
|
22906
22920
|
return l;
|
|
22907
|
-
},
|
|
22921
|
+
}, hN = ({
|
|
22908
22922
|
api: e,
|
|
22909
22923
|
context: t,
|
|
22910
22924
|
queryThunk: r,
|
|
@@ -22958,7 +22972,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
22958
22972
|
}), delete a[d];
|
|
22959
22973
|
}
|
|
22960
22974
|
};
|
|
22961
|
-
},
|
|
22975
|
+
}, mN = ({
|
|
22962
22976
|
reducerPath: e,
|
|
22963
22977
|
context: t,
|
|
22964
22978
|
api: r,
|
|
@@ -22985,7 +22999,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
22985
22999
|
}
|
|
22986
23000
|
return s;
|
|
22987
23001
|
};
|
|
22988
|
-
function
|
|
23002
|
+
function gN(e) {
|
|
22989
23003
|
const {
|
|
22990
23004
|
reducerPath: t,
|
|
22991
23005
|
queryThunk: r,
|
|
@@ -22996,7 +23010,7 @@ function mN(e) {
|
|
|
22996
23010
|
apiUid: s
|
|
22997
23011
|
} = o, a = {
|
|
22998
23012
|
invalidateTags: qt(`${t}/invalidateTags`)
|
|
22999
|
-
}, c = (h) => h.type.startsWith(`${t}/`), l = [
|
|
23013
|
+
}, c = (h) => h.type.startsWith(`${t}/`), l = [fN, lN, dN, pN, uN, hN];
|
|
23000
23014
|
return {
|
|
23001
23015
|
middleware: (h) => {
|
|
23002
23016
|
let m = !1;
|
|
@@ -23006,7 +23020,7 @@ function mN(e) {
|
|
|
23006
23020
|
refetchQuery: d,
|
|
23007
23021
|
isThisApiSliceAction: c,
|
|
23008
23022
|
mwApi: h
|
|
23009
|
-
}, f = l.map((E) => E(v)), g =
|
|
23023
|
+
}, f = l.map((E) => E(v)), g = aN(v), b = mN(v);
|
|
23010
23024
|
return (E) => (w) => {
|
|
23011
23025
|
if (!tu(w))
|
|
23012
23026
|
return E(w);
|
|
@@ -23031,7 +23045,7 @@ function mN(e) {
|
|
|
23031
23045
|
});
|
|
23032
23046
|
}
|
|
23033
23047
|
}
|
|
23034
|
-
var Hh = /* @__PURE__ */ Symbol(),
|
|
23048
|
+
var Hh = /* @__PURE__ */ Symbol(), yN = ({
|
|
23035
23049
|
createSelector: e = au
|
|
23036
23050
|
} = {}) => ({
|
|
23037
23051
|
name: Hh,
|
|
@@ -23062,7 +23076,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23062
23076
|
},
|
|
23063
23077
|
util: {}
|
|
23064
23078
|
});
|
|
23065
|
-
const f =
|
|
23079
|
+
const f = iN({
|
|
23066
23080
|
serializeQueryArgs: i,
|
|
23067
23081
|
reducerPath: o,
|
|
23068
23082
|
createSelector: e
|
|
@@ -23086,7 +23100,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23086
23100
|
upsertQueryData: _,
|
|
23087
23101
|
prefetch: O,
|
|
23088
23102
|
buildMatchThunkActions: N
|
|
23089
|
-
} =
|
|
23103
|
+
} = nN({
|
|
23090
23104
|
baseQuery: r,
|
|
23091
23105
|
reducerPath: o,
|
|
23092
23106
|
context: p,
|
|
@@ -23100,7 +23114,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23100
23114
|
}), {
|
|
23101
23115
|
reducer: A,
|
|
23102
23116
|
actions: k
|
|
23103
|
-
} =
|
|
23117
|
+
} = oN({
|
|
23104
23118
|
context: p,
|
|
23105
23119
|
queryThunk: C,
|
|
23106
23120
|
mutationThunk: P,
|
|
@@ -23137,7 +23151,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23137
23151
|
getRunningMutationsThunk: Q,
|
|
23138
23152
|
getRunningQueriesThunk: ne,
|
|
23139
23153
|
getRunningQueryThunk: te
|
|
23140
|
-
} =
|
|
23154
|
+
} = rN({
|
|
23141
23155
|
queryThunk: C,
|
|
23142
23156
|
mutationThunk: P,
|
|
23143
23157
|
infiniteQueryThunk: x,
|
|
@@ -23155,7 +23169,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23155
23169
|
const {
|
|
23156
23170
|
middleware: Z,
|
|
23157
23171
|
actions: K
|
|
23158
|
-
} =
|
|
23172
|
+
} = gN({
|
|
23159
23173
|
reducerPath: o,
|
|
23160
23174
|
context: p,
|
|
23161
23175
|
queryThunk: C,
|
|
@@ -23178,7 +23192,7 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23178
23192
|
name: j,
|
|
23179
23193
|
select: E(j, q),
|
|
23180
23194
|
initiate: M(j, q)
|
|
23181
|
-
}, N(C, j)),
|
|
23195
|
+
}, N(C, j)), JT(q) && ar(D, {
|
|
23182
23196
|
name: j,
|
|
23183
23197
|
select: y(),
|
|
23184
23198
|
initiate: U(j)
|
|
@@ -23191,12 +23205,12 @@ var Hh = /* @__PURE__ */ Symbol(), gN = ({
|
|
|
23191
23205
|
};
|
|
23192
23206
|
}
|
|
23193
23207
|
});
|
|
23194
|
-
|
|
23208
|
+
yN();
|
|
23195
23209
|
const { spinUpdate: Vh } = Xn.actions;
|
|
23196
|
-
function
|
|
23197
|
-
const { beforeFetch: r, afterFetch: n } = t, o =
|
|
23210
|
+
function vN(e, t) {
|
|
23211
|
+
const { beforeFetch: r, afterFetch: n } = t, o = bN(t);
|
|
23198
23212
|
return async (i, s, a) => {
|
|
23199
|
-
const { dispatch: c, getState: l } = s, u = l(), { spin: d, auth: h } = Zt(u), m =
|
|
23213
|
+
const { dispatch: c, getState: l } = s, u = l(), { spin: d, auth: h } = Zt(u), m = YT({
|
|
23200
23214
|
baseUrl: Cu.getEndpoint(e),
|
|
23201
23215
|
prepareHeaders: async (f) => {
|
|
23202
23216
|
if (f.get("Content-Type") || f.append("Content-Type", "application/json"), e !== 0) {
|
|
@@ -23222,11 +23236,11 @@ function yN(e, t) {
|
|
|
23222
23236
|
}
|
|
23223
23237
|
};
|
|
23224
23238
|
}
|
|
23225
|
-
function
|
|
23239
|
+
function bN(e) {
|
|
23226
23240
|
return e.getAccessToken ? e.getAccessToken : (t) => t.identity?.access_token ? Promise.resolve(`Bearer ${t.identity.access_token}`) : Promise.resolve(void 0);
|
|
23227
23241
|
}
|
|
23228
23242
|
const { screenResize: Bh } = Xn.actions;
|
|
23229
|
-
function
|
|
23243
|
+
function EN(e, t, r) {
|
|
23230
23244
|
const n = {};
|
|
23231
23245
|
if (e)
|
|
23232
23246
|
for (let a = 0; a < e.length; a++)
|
|
@@ -23265,10 +23279,10 @@ function bN(e, t, r) {
|
|
|
23265
23279
|
)), i;
|
|
23266
23280
|
}
|
|
23267
23281
|
function mb(e, t = [], r) {
|
|
23268
|
-
const n =
|
|
23269
|
-
return
|
|
23282
|
+
const n = wN(t);
|
|
23283
|
+
return EN([Xn, ti, ...e], n, r);
|
|
23270
23284
|
}
|
|
23271
|
-
function
|
|
23285
|
+
function wN(e) {
|
|
23272
23286
|
const t = [];
|
|
23273
23287
|
for (let r = 0; r < e.length; r++) {
|
|
23274
23288
|
const n = e[r];
|
|
@@ -23279,18 +23293,18 @@ function EN(e) {
|
|
|
23279
23293
|
}
|
|
23280
23294
|
return t;
|
|
23281
23295
|
}
|
|
23282
|
-
const
|
|
23296
|
+
const jN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23283
23297
|
__proto__: null,
|
|
23284
23298
|
appSlice: Xn,
|
|
23285
23299
|
buildStorage: mb,
|
|
23286
23300
|
errorSlice: zg,
|
|
23287
|
-
fetchBaseQueryX:
|
|
23301
|
+
fetchBaseQueryX: vN,
|
|
23288
23302
|
getAppStore: Zt,
|
|
23289
23303
|
getErrorStore: Ps,
|
|
23290
23304
|
getLangStore: vr,
|
|
23291
23305
|
langSlice: ti
|
|
23292
|
-
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage:
|
|
23293
|
-
function
|
|
23306
|
+
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage: SN } = ti.actions;
|
|
23307
|
+
function CN(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
23294
23308
|
const o = (i) => {
|
|
23295
23309
|
if (!i) throw new Error("Props is required");
|
|
23296
23310
|
const s = qo(), a = mt((d) => vr(d).lang), c = mt((d) => vr(d).data[a.locale].messages), l = mt((d) => vr(d).data[a.locale].files[t] !== void 0), u = Be(() => {
|
|
@@ -23300,7 +23314,7 @@ function SN(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
23300
23314
|
return rt(() => {
|
|
23301
23315
|
l || (async () => {
|
|
23302
23316
|
try {
|
|
23303
|
-
const d = await r(a.locale), h =
|
|
23317
|
+
const d = await r(a.locale), h = SN({ locale: a.locale, file: t, messages: d.default });
|
|
23304
23318
|
s(h);
|
|
23305
23319
|
} catch (d) {
|
|
23306
23320
|
console.error(`can't load lang file ${t}`, d);
|
|
@@ -23310,11 +23324,11 @@ function SN(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
23310
23324
|
};
|
|
23311
23325
|
return o.displayName = `WL(${e.displayName || e.name})`, o;
|
|
23312
23326
|
}
|
|
23313
|
-
const
|
|
23327
|
+
const zN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23314
23328
|
__proto__: null,
|
|
23315
23329
|
withError: Ao,
|
|
23316
|
-
wl:
|
|
23317
|
-
}, Symbol.toStringTag, { value: "Module" })), { changeTheme:
|
|
23330
|
+
wl: CN
|
|
23331
|
+
}, Symbol.toStringTag, { value: "Module" })), { changeTheme: xN } = Xn.actions;
|
|
23318
23332
|
function of({
|
|
23319
23333
|
children: e,
|
|
23320
23334
|
defaultTheme: t,
|
|
@@ -23330,10 +23344,10 @@ function of({
|
|
|
23330
23344
|
} : {
|
|
23331
23345
|
reduxTheme: Zt(h).theme,
|
|
23332
23346
|
themeName: localStorage.getItem("theme") ?? Zt(h).theme ?? t
|
|
23333
|
-
},
|
|
23347
|
+
}, PN), u = Be(() => n(l), [n, l]);
|
|
23334
23348
|
Pc(() => {
|
|
23335
23349
|
const h = typeof localStorage > "u" ? null : localStorage.getItem("theme"), m = h ?? t ?? c;
|
|
23336
|
-
c !== m && s(
|
|
23350
|
+
c !== m && s(xN(m)), typeof localStorage < "u" && !h && localStorage.setItem("theme", m);
|
|
23337
23351
|
}, [t, s]), Pc(() => {
|
|
23338
23352
|
if (typeof localStorage < "u" && localStorage.getItem("theme") !== l && localStorage.setItem("theme", l), !r) return;
|
|
23339
23353
|
const { head: h } = document, m = r(l, u);
|
|
@@ -23345,28 +23359,28 @@ function of({
|
|
|
23345
23359
|
const d = i.provider;
|
|
23346
23360
|
return /* @__PURE__ */ fe(d, { lang: a, token: u, children: e });
|
|
23347
23361
|
}
|
|
23348
|
-
function
|
|
23362
|
+
function PN(e, t) {
|
|
23349
23363
|
return e.reduxTheme === t.reduxTheme && e.themeName === t.themeName;
|
|
23350
23364
|
}
|
|
23351
|
-
function
|
|
23365
|
+
function _N(e, t) {
|
|
23352
23366
|
return `/themes/${e}/${t}`;
|
|
23353
23367
|
}
|
|
23354
|
-
function
|
|
23368
|
+
function ON() {
|
|
23355
23369
|
return mt((e) => Zt(e).theme);
|
|
23356
23370
|
}
|
|
23357
|
-
const
|
|
23371
|
+
const qN = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23358
23372
|
__proto__: null,
|
|
23359
23373
|
UITheme: of,
|
|
23360
|
-
getResByTheme:
|
|
23361
|
-
useThemeName:
|
|
23374
|
+
getResByTheme: _N,
|
|
23375
|
+
useThemeName: ON
|
|
23362
23376
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23363
|
-
function
|
|
23377
|
+
function UN(e) {
|
|
23364
23378
|
const { translation: t, wait: r, themeProvider: n, components: o } = e, { col: i, row: s, pagination: a } = o;
|
|
23365
23379
|
Xm(t.defaultLang, t.langs);
|
|
23366
23380
|
const c = rr;
|
|
23367
23381
|
c.spin = r.spin, c.spinProps = r.spinProps, r.skeleton && (c.skeleton = r.skeleton, c.skeletonProps = r.skeletonProps), n && (of.provider = n), i && (Mr.component = i), s && (Vn.component = s), a && (Bn.component = a);
|
|
23368
23382
|
}
|
|
23369
|
-
function
|
|
23383
|
+
function WN(e, t = {}, r) {
|
|
23370
23384
|
return Be(() => {
|
|
23371
23385
|
console.debug("useInitOIU called: ", e);
|
|
23372
23386
|
const { modules: n, slices: o = [] } = t, { setLang: i } = ti.actions, s = Km();
|
|
@@ -23383,14 +23397,14 @@ export {
|
|
|
23383
23397
|
Wh as A,
|
|
23384
23398
|
Gv as P,
|
|
23385
23399
|
Uh as a,
|
|
23386
|
-
|
|
23387
|
-
|
|
23400
|
+
HN as b,
|
|
23401
|
+
$N as c,
|
|
23388
23402
|
nE as d,
|
|
23389
|
-
|
|
23390
|
-
|
|
23391
|
-
|
|
23392
|
-
|
|
23393
|
-
|
|
23394
|
-
|
|
23395
|
-
|
|
23403
|
+
jN as e,
|
|
23404
|
+
qN as f,
|
|
23405
|
+
BN as g,
|
|
23406
|
+
zN as h,
|
|
23407
|
+
VN as i,
|
|
23408
|
+
UN as j,
|
|
23409
|
+
WN as u
|
|
23396
23410
|
};
|
package/dist/main.js
CHANGED
package/dist/utils/promise.d.ts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface PromiseConstructor {
|
|
3
|
+
/** Wait for the specified number of milliseconds */
|
|
4
|
+
delay(ms: number): Promise<void>;
|
|
5
|
+
/** Wait until the specified condition is true or the timeout is reached */
|
|
6
|
+
waitUntil(condition: () => boolean, options?: {
|
|
7
|
+
timeoutMs?: number;
|
|
8
|
+
intervalMs?: number;
|
|
9
|
+
timeoutMessage?: string;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
1
13
|
export default Promise;
|
|
2
14
|
//# sourceMappingURL=promise.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../lib/utils/promise.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../lib/utils/promise.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,kBAAkB;QACxB,oDAAoD;QACpD,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACjC,2EAA2E;QAC3E,SAAS,CACL,SAAS,EAAE,MAAM,OAAO,EACxB,OAAO,CAAC,EAAE;YACN,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,cAAc,CAAC,EAAE,MAAM,CAAC;SAC3B,GACF,OAAO,CAAC,IAAI,CAAC,CAAC;KACpB;CACJ;AAqCD,eAAe,OAAO,CAAC"}
|
package/dist/utils/url.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IStringifyOptions } from 'qs';
|
|
2
|
+
import { IOrder, IPaging, ISearch } from './_types';
|
|
2
3
|
/**
|
|
3
4
|
* State type for navigation return url. This is use to store the return url when the user is redirect to the login page.
|
|
4
5
|
*/
|
|
@@ -13,6 +14,14 @@ export type Navication = (url: string, qs?: Record<string, string>) => void;
|
|
|
13
14
|
* @returns Decoded return url
|
|
14
15
|
*/
|
|
15
16
|
export declare function getReturnUrl(qs: URLSearchParams, state?: State | null, defaultPath?: string, decode?: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* Compute the next search object based on the current search, the new paging and the new sorter. This is used to update the search object when the user changes the page or the page size or the sorting.
|
|
19
|
+
* @param search
|
|
20
|
+
* @param paging
|
|
21
|
+
* @param sorter
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare function nextSearch<Filter>(search: ISearch<Filter>, paging?: IPaging, sorter?: IOrder | IOrder[]): ISearch<Filter>;
|
|
16
25
|
/**
|
|
17
26
|
* Check if local url use react navigation if not redirect to external url.
|
|
18
27
|
* @param navigate
|
package/dist/utils/url.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../lib/utils/url.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../lib/utils/url.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIpD;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;AACjE,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,WAAW,SAAM,EAAE,MAAM,UAAO,GAAG,MAAM,CAWhH;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mBAwBvG;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,QAO9G;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,MAAM,GAAG,SAAS,CAAC;CACvD,CAAC;AACF,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO;;EAczE;AACD,wBAAgB,EAAE,CACd,GAAG,CAAC,EAAE,eAAe,EACrB,gBAAgB,UAAO,EACvB,OAAO,GAAE,iBAA4C,EACrD,WAAW,UAAO,UAYrB;AAqBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,eAAe,EAC7B,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAM,QAqB/D"}
|