@owp/core 2.0.0 → 2.0.2
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/{OwpStoreProvider-BPa_lWCz.js → OwpStoreProvider-Cp3bYbdo.js} +2 -2
- package/dist/{OwpStoreProvider-BPa_lWCz.js.map → OwpStoreProvider-Cp3bYbdo.js.map} +1 -1
- package/dist/{OwpUtils-DV2LSByd.js → OwpUtils-DW44HL74.js} +118 -146
- package/dist/{OwpUtils-DV2LSByd.js.map → OwpUtils-DW44HL74.js.map} +1 -1
- package/dist/_commonjs-dynamic-modules-Dv7l0Iyf.js +10 -0
- package/dist/_commonjs-dynamic-modules-Dv7l0Iyf.js.map +1 -0
- package/dist/_commonjsHelpers-BHGzZHI-.js +33 -0
- package/dist/_commonjsHelpers-BHGzZHI-.js.map +1 -0
- package/dist/{commonCodeUtils-DNfSjP6S.js → commonCodeUtils-BcfmNY0i.js} +2 -2
- package/dist/{commonCodeUtils-DNfSjP6S.js.map → commonCodeUtils-BcfmNY0i.js.map} +1 -1
- package/dist/contexts.js +11 -12
- package/dist/contexts.js.map +1 -1
- package/dist/exceljs.min-CrYx1Zzn.js +23562 -0
- package/dist/exceljs.min-CrYx1Zzn.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/index.js +15050 -32038
- package/dist/index.js.map +1 -1
- package/dist/{lazyLoadedSlices-C18y0AEB.js → lazyLoadedSlices-BgnXi9pr.js} +80 -79
- package/dist/{lazyLoadedSlices-C18y0AEB.js.map → lazyLoadedSlices-BgnXi9pr.js.map} +1 -1
- package/dist/store.js +2 -2
- package/dist/{toUpper-Dmh8Htx_.js → toUpper-D96_nWkI.js} +2 -2
- package/dist/{toUpper-Dmh8Htx_.js.map → toUpper-D96_nWkI.js.map} +1 -1
- package/dist/{treeGridUtil-DAfaAk6C.js → treeGridUtil-CPNva4kL.js} +291 -287
- package/dist/treeGridUtil-CPNva4kL.js.map +1 -0
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +0 -2
- package/dist/types/utils/dayjsBrowser.d.ts +7 -0
- package/dist/types/utils/excelUtil.d.ts +1 -1
- package/dist/types/utils/exceljsBrowser.d.ts +5 -0
- package/dist/{useTreeGridExcelExport-BE6h1hsO.js → useTreeGridExcelExport-C1QPr9Dp.js} +2 -2
- package/dist/{useTreeGridExcelExport-BE6h1hsO.js.map → useTreeGridExcelExport-C1QPr9Dp.js.map} +1 -1
- package/dist/utils.js +243 -246
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/treeGridUtil-DAfaAk6C.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var Nn = Object.defineProperty;
|
|
2
2
|
var r = (e, t) => Nn(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { createSlice as kr, createEntityAdapter as qn, createSelector as J, createAsyncThunk as cn, combineSlices as $n } from "@reduxjs/toolkit";
|
|
4
|
-
import {
|
|
5
|
-
import { s as
|
|
6
|
-
import
|
|
7
|
-
import { o as
|
|
8
|
-
import { lightBlue as xe, red as
|
|
9
|
-
import { createTheme as pn, getContrastRatio as
|
|
4
|
+
import { m as W, O as Cn } from "./OwpUtils-DW44HL74.js";
|
|
5
|
+
import { s as Ln, a as _n, y as Bn, z as sn } from "./isTypedArray-CCnDZ5HJ.js";
|
|
6
|
+
import kn from "i18next";
|
|
7
|
+
import { o as ft } from "./dark-DAY0F6Ph.js";
|
|
8
|
+
import { lightBlue as xe, red as ct } from "@mui/material/colors";
|
|
9
|
+
import { createTheme as pn, getContrastRatio as Wn } from "@mui/material/styles";
|
|
10
|
+
import { a as Un, c as st, g as zn } from "./_commonjsHelpers-BHGzZHI-.js";
|
|
10
11
|
const Gn = {
|
|
11
12
|
title: "Layout - Vertical",
|
|
12
13
|
defaults: {
|
|
@@ -139,7 +140,7 @@ const Gn = {
|
|
|
139
140
|
layout: Gn
|
|
140
141
|
};
|
|
141
142
|
function Hn(e, t, n) {
|
|
142
|
-
return
|
|
143
|
+
return Ln(n) && (typeof t == "number" && _n(n) && Bn(t) && t < n.length || typeof t == "string" && t in n) ? sn(n[t], e) : !1;
|
|
143
144
|
}
|
|
144
145
|
r(Hn, "isIterateeCall");
|
|
145
146
|
function Kn(e, ...t) {
|
|
@@ -172,7 +173,7 @@ r(Ie, "requireType");
|
|
|
172
173
|
const Jn = {}, jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
173
174
|
__proto__: null,
|
|
174
175
|
default: Jn
|
|
175
|
-
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */
|
|
176
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */ Un(jn);
|
|
176
177
|
var Ve, yt;
|
|
177
178
|
function Ce() {
|
|
178
179
|
if (yt) return Ve;
|
|
@@ -309,7 +310,7 @@ function Ce() {
|
|
|
309
310
|
return Me(oe(String(o)));
|
|
310
311
|
if (typeof window < "u" && o === window)
|
|
311
312
|
return "{ [object Window] }";
|
|
312
|
-
if (typeof globalThis < "u" && o === globalThis || typeof
|
|
313
|
+
if (typeof globalThis < "u" && o === globalThis || typeof st < "u" && o === st)
|
|
313
314
|
return "{ [object globalThis] }";
|
|
314
315
|
if (!ye(o) && !z(o)) {
|
|
315
316
|
var Ge = Ne(o, oe), it = le ? le(o) === Object.prototype : o instanceof Object || o.constructor === Object, He = o instanceof Object ? "" : "null prototype", lt = !it && j && Object(o) === o && j in o ? c.call(re(o), 8, -1) : He ? "Object" : "", Fn = it || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", Ke = Fn + (lt || He ? "[" + I.call(R.call([], lt || [], He || []), ": ") + "] " : "");
|
|
@@ -1808,7 +1809,7 @@ function xa() {
|
|
|
1808
1809
|
}
|
|
1809
1810
|
r(xa, "requireLib");
|
|
1810
1811
|
var Ia = /* @__PURE__ */ xa();
|
|
1811
|
-
const Ma = /* @__PURE__ */
|
|
1812
|
+
const Ma = /* @__PURE__ */ zn(Ia), an = "1.6rem", on = 0.8, _r = 3, Ta = "layout", Fe = {
|
|
1812
1813
|
palette: {
|
|
1813
1814
|
mode: "light",
|
|
1814
1815
|
text: {
|
|
@@ -2272,17 +2273,17 @@ const Ca = {
|
|
|
2272
2273
|
fontSize: "1.3rem"
|
|
2273
2274
|
}
|
|
2274
2275
|
}
|
|
2275
|
-
},
|
|
2276
|
+
}, no = {
|
|
2276
2277
|
default: {
|
|
2277
2278
|
palette: {
|
|
2278
2279
|
mode: "light",
|
|
2279
|
-
primary:
|
|
2280
|
+
primary: ft,
|
|
2280
2281
|
secondary: {
|
|
2281
2282
|
light: xe[400],
|
|
2282
2283
|
main: xe[600],
|
|
2283
2284
|
dark: xe[700]
|
|
2284
2285
|
},
|
|
2285
|
-
error:
|
|
2286
|
+
error: ct
|
|
2286
2287
|
},
|
|
2287
2288
|
status: {
|
|
2288
2289
|
danger: "orange"
|
|
@@ -2291,13 +2292,13 @@ const Ca = {
|
|
|
2291
2292
|
defaultDark: {
|
|
2292
2293
|
palette: {
|
|
2293
2294
|
mode: "dark",
|
|
2294
|
-
primary:
|
|
2295
|
+
primary: ft,
|
|
2295
2296
|
secondary: {
|
|
2296
2297
|
light: xe[400],
|
|
2297
2298
|
main: xe[600],
|
|
2298
2299
|
dark: xe[700]
|
|
2299
2300
|
},
|
|
2300
|
-
error:
|
|
2301
|
+
error: ct
|
|
2301
2302
|
},
|
|
2302
2303
|
status: {
|
|
2303
2304
|
danger: "orange"
|
|
@@ -2376,17 +2377,17 @@ const ln = {
|
|
|
2376
2377
|
selectOwpNavbar: /* @__PURE__ */ r((e) => e, "selectOwpNavbar")
|
|
2377
2378
|
}
|
|
2378
2379
|
}), {
|
|
2379
|
-
navbarToggleFolded:
|
|
2380
|
-
navbarOpenFolded:
|
|
2381
|
-
navbarCloseFolded:
|
|
2382
|
-
navbarOpen:
|
|
2383
|
-
navbarClose:
|
|
2384
|
-
navbarToggle:
|
|
2385
|
-
navbarOpenMobile:
|
|
2386
|
-
navbarCloseMobile:
|
|
2387
|
-
navbarToggleMobile:
|
|
2388
|
-
resetNavbar:
|
|
2389
|
-
} = Hr.actions,
|
|
2380
|
+
navbarToggleFolded: ao,
|
|
2381
|
+
navbarOpenFolded: oo,
|
|
2382
|
+
navbarCloseFolded: io,
|
|
2383
|
+
navbarOpen: lo,
|
|
2384
|
+
navbarClose: uo,
|
|
2385
|
+
navbarToggle: fo,
|
|
2386
|
+
navbarOpenMobile: co,
|
|
2387
|
+
navbarCloseMobile: so,
|
|
2388
|
+
navbarToggleMobile: po,
|
|
2389
|
+
resetNavbar: yo
|
|
2390
|
+
} = Hr.actions, vo = /* @__PURE__ */ r((e) => e.navbar, "selectOwpNavbar");
|
|
2390
2391
|
Hr.reducer;
|
|
2391
2392
|
function Ba(e) {
|
|
2392
2393
|
return Kn(e || {}, {
|
|
@@ -2523,8 +2524,8 @@ r(Xr, "OwpNavigationHelper");
|
|
|
2523
2524
|
let De = Xr;
|
|
2524
2525
|
const Kr = qn(), Wa = Kr.getInitialState([]), un = Wa, {
|
|
2525
2526
|
selectAll: Ua,
|
|
2526
|
-
selectIds:
|
|
2527
|
-
selectById:
|
|
2527
|
+
selectIds: ho,
|
|
2528
|
+
selectById: go
|
|
2528
2529
|
} = Kr.getSelectors((e) => e.navigation), Qr = kr({
|
|
2529
2530
|
name: "navigation",
|
|
2530
2531
|
initialState: un,
|
|
@@ -2534,15 +2535,15 @@ const Kr = qn(), Wa = Kr.getInitialState([]), un = Wa, {
|
|
|
2534
2535
|
},
|
|
2535
2536
|
resetNavigation: /* @__PURE__ */ r(() => un, "resetNavigation")
|
|
2536
2537
|
}
|
|
2537
|
-
}), { setNavigation:
|
|
2538
|
+
}), { setNavigation: mo, resetNavigation: bo } = Qr.actions, za = J(
|
|
2538
2539
|
[Ua],
|
|
2539
2540
|
(e, t) => {
|
|
2540
2541
|
const n = De.unflattenNavigation(e);
|
|
2541
2542
|
function i(d) {
|
|
2542
2543
|
return d == null ? void 0 : d.map((y) => ({
|
|
2543
|
-
hasPermission: !!
|
|
2544
|
+
hasPermission: !!Cn.hasPermission(y == null ? void 0 : y.auth, t),
|
|
2544
2545
|
...y,
|
|
2545
|
-
...y != null && y.translate && (y != null && y.title) ? { title:
|
|
2546
|
+
...y != null && y.translate && (y != null && y.title) ? { title: kn.t(`navigation:${y == null ? void 0 : y.translate}`) } : {},
|
|
2546
2547
|
...y != null && y.children ? { children: i(y == null ? void 0 : y.children) } : {}
|
|
2547
2548
|
}));
|
|
2548
2549
|
}
|
|
@@ -2559,7 +2560,7 @@ const Ga = {
|
|
|
2559
2560
|
primary: "rgb(255,255,255)",
|
|
2560
2561
|
secondary: "rgb(148, 163, 184)",
|
|
2561
2562
|
disabled: "rgb(156, 163, 175)"
|
|
2562
|
-
},
|
|
2563
|
+
}, So = cn(
|
|
2563
2564
|
"owpSettings/changeOwpTheme",
|
|
2564
2565
|
async (e, { dispatch: t, getState: n }) => {
|
|
2565
2566
|
const u = n().owpSettings, { navbar: d, footer: y, toolbar: h, main: w } = e, g = {
|
|
@@ -2622,7 +2623,7 @@ const Ga = {
|
|
|
2622
2623
|
selectOwpDefaultSettings: /* @__PURE__ */ r((e) => e.defaults, "selectOwpDefaultSettings"),
|
|
2623
2624
|
selectCustomScrollbarsEnabled: /* @__PURE__ */ r((e) => e.current.customScrollbars, "selectCustomScrollbarsEnabled")
|
|
2624
2625
|
}
|
|
2625
|
-
}),
|
|
2626
|
+
}), Oo = Q.selectors.selectOwpCurrentLayoutConfig, wo = Q.selectors.selectOwpCurrentSettings, Ao = Q.selectors.selectOwpSettings, Po = Q.selectors.selectOwpSettingsDefaults, Eo = Q.selectors.selectOwpSettingsCurrent, Ro = Q.selectors.selectOwpDefaultSettings, xo = Q.selectors.selectCustomScrollbarsEnabled, te = Q.selectors.getDirection, Vr = Q.selectors.getMainTheme, Jr = Q.selectors.getNavbarTheme, jr = Q.selectors.getToolbarTheme, Yr = Q.selectors.getFooterTheme;
|
|
2626
2627
|
function ne(e, t) {
|
|
2627
2628
|
const n = W({}, Ca, e, La);
|
|
2628
2629
|
return pn(
|
|
@@ -2633,9 +2634,9 @@ function ne(e, t) {
|
|
|
2633
2634
|
);
|
|
2634
2635
|
}
|
|
2635
2636
|
r(ne, "generateMuiTheme");
|
|
2636
|
-
const
|
|
2637
|
+
const Io = /* @__PURE__ */ r((e) => {
|
|
2637
2638
|
function t(n) {
|
|
2638
|
-
return
|
|
2639
|
+
return Wn(n, "#ffffff") >= 3;
|
|
2639
2640
|
}
|
|
2640
2641
|
return r(t, "isDark"), t(e) ? Ka : Qa;
|
|
2641
2642
|
}, "selectContrastMainTheme");
|
|
@@ -2666,7 +2667,7 @@ function me(e, t) {
|
|
|
2666
2667
|
}[t]);
|
|
2667
2668
|
}
|
|
2668
2669
|
r(me, "changeThemeMode");
|
|
2669
|
-
const
|
|
2670
|
+
const Mo = J(
|
|
2670
2671
|
[Vr, te],
|
|
2671
2672
|
(e, t) => ne(e, t)
|
|
2672
2673
|
), Ka = J(
|
|
@@ -2675,36 +2676,36 @@ const Io = J(
|
|
|
2675
2676
|
), Qa = J(
|
|
2676
2677
|
[Vr, te],
|
|
2677
2678
|
(e, t) => ne(me(e, "light"), t)
|
|
2678
|
-
),
|
|
2679
|
+
), To = J(
|
|
2679
2680
|
[Jr, te],
|
|
2680
2681
|
(e, t) => ne(e, t)
|
|
2681
|
-
),
|
|
2682
|
+
), Fo = J(
|
|
2682
2683
|
[Jr, te],
|
|
2683
2684
|
(e, t) => ne(me(e, "dark"), t)
|
|
2684
|
-
),
|
|
2685
|
+
), Do = J(
|
|
2685
2686
|
[Jr, te],
|
|
2686
2687
|
(e, t) => ne(me(e, "light"), t)
|
|
2687
|
-
),
|
|
2688
|
+
), No = J(
|
|
2688
2689
|
[jr, te],
|
|
2689
2690
|
(e, t) => ne(e, t)
|
|
2690
|
-
),
|
|
2691
|
+
), qo = J(
|
|
2691
2692
|
[jr, te],
|
|
2692
2693
|
(e, t) => ne(me(e, "dark"), t)
|
|
2693
|
-
),
|
|
2694
|
+
), $o = J(
|
|
2694
2695
|
[jr, te],
|
|
2695
2696
|
(e, t) => ne(me(e, "light"), t)
|
|
2696
|
-
),
|
|
2697
|
+
), Co = J(
|
|
2697
2698
|
[Yr, te],
|
|
2698
2699
|
(e, t) => ne(e, t)
|
|
2699
|
-
),
|
|
2700
|
+
), Lo = J(
|
|
2700
2701
|
[Yr, te],
|
|
2701
2702
|
(e, t) => ne(me(e, "dark"), t)
|
|
2702
|
-
),
|
|
2703
|
+
), _o = J(
|
|
2703
2704
|
[Yr, te],
|
|
2704
2705
|
(e, t) => ne(me(e, "light"), t)
|
|
2705
|
-
), { resetSettings:
|
|
2706
|
+
), { resetSettings: Bo, setInitialSettings: ko, setSettings: Wo } = Q.actions;
|
|
2706
2707
|
Q.reducer;
|
|
2707
|
-
const
|
|
2708
|
+
const Uo = $n(
|
|
2708
2709
|
/**
|
|
2709
2710
|
* Static slices
|
|
2710
2711
|
*/
|
|
@@ -2714,24 +2715,24 @@ const Wo = $n(
|
|
|
2714
2715
|
).withLazyLoadedSlices();
|
|
2715
2716
|
export {
|
|
2716
2717
|
La as $,
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2718
|
+
$o as A,
|
|
2719
|
+
Co as B,
|
|
2720
|
+
Lo as C,
|
|
2721
|
+
_o as D,
|
|
2722
|
+
Bo as E,
|
|
2723
|
+
ko as F,
|
|
2724
|
+
Wo as G,
|
|
2724
2725
|
$a as H,
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2726
|
+
Uo as I,
|
|
2727
|
+
po as J,
|
|
2728
|
+
fo as K,
|
|
2728
2729
|
ka as L,
|
|
2729
|
-
|
|
2730
|
+
so as M,
|
|
2730
2731
|
Qr as N,
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2732
|
+
vo as O,
|
|
2733
|
+
yo as P,
|
|
2734
|
+
io as Q,
|
|
2735
|
+
oo as R,
|
|
2735
2736
|
De as S,
|
|
2736
2737
|
Gr as T,
|
|
2737
2738
|
Kn as U,
|
|
@@ -2741,17 +2742,17 @@ export {
|
|
|
2741
2742
|
Na as Y,
|
|
2742
2743
|
qa as Z,
|
|
2743
2744
|
Ca as _,
|
|
2744
|
-
|
|
2745
|
-
|
|
2745
|
+
Oo as a,
|
|
2746
|
+
no as a0,
|
|
2746
2747
|
_a as a1,
|
|
2747
|
-
|
|
2748
|
-
|
|
2748
|
+
wo as b,
|
|
2749
|
+
So as c,
|
|
2749
2750
|
Ha as d,
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2751
|
+
Ao as e,
|
|
2752
|
+
Po as f,
|
|
2753
|
+
Eo as g,
|
|
2754
|
+
Ro as h,
|
|
2755
|
+
xo as i,
|
|
2755
2756
|
te as j,
|
|
2756
2757
|
Vr as k,
|
|
2757
2758
|
Ga as l,
|
|
@@ -2759,15 +2760,15 @@ export {
|
|
|
2759
2760
|
jr as n,
|
|
2760
2761
|
Q as o,
|
|
2761
2762
|
Yr as p,
|
|
2762
|
-
|
|
2763
|
-
|
|
2763
|
+
Io as q,
|
|
2764
|
+
Mo as r,
|
|
2764
2765
|
En as s,
|
|
2765
2766
|
Ka as t,
|
|
2766
2767
|
Qa as u,
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2768
|
+
To as v,
|
|
2769
|
+
Fo as w,
|
|
2770
|
+
Do as x,
|
|
2771
|
+
No as y,
|
|
2772
|
+
qo as z
|
|
2772
2773
|
};
|
|
2773
|
-
//# sourceMappingURL=lazyLoadedSlices-
|
|
2774
|
+
//# sourceMappingURL=lazyLoadedSlices-BgnXi9pr.js.map
|