react-luminus-components 1.3.161 → 1.3.162

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.
@@ -1,9 +1,9 @@
1
1
  {
2
- "_Loading-CZXvcAIp.js": {
3
- "file": "Loading-CZXvcAIp.js",
2
+ "_Loading-CUX86L4N.js": {
3
+ "file": "Loading-CUX86L4N.js",
4
4
  "name": "Loading",
5
5
  "imports": [
6
- "_ResponsiveContextDropdown-IjVEU2N-.js"
6
+ "_ResponsiveContextDropdown-IcbFFj-E.js"
7
7
  ]
8
8
  },
9
9
  "_Loading-DIG-vjA8.cjs": {
@@ -17,8 +17,8 @@
17
17
  "file": "ResponsiveContextDropdown-DDGp8eAa.cjs",
18
18
  "name": "ResponsiveContextDropdown"
19
19
  },
20
- "_ResponsiveContextDropdown-IjVEU2N-.js": {
21
- "file": "ResponsiveContextDropdown-IjVEU2N-.js",
20
+ "_ResponsiveContextDropdown-IcbFFj-E.js": {
21
+ "file": "ResponsiveContextDropdown-IcbFFj-E.js",
22
22
  "name": "ResponsiveContextDropdown"
23
23
  },
24
24
  "_searchUtils-BJzwuELF.cjs": {
@@ -28,32 +28,32 @@
28
28
  "_ResponsiveContextDropdown-DDGp8eAa.cjs"
29
29
  ]
30
30
  },
31
- "_searchUtils-CFYkiNz3.js": {
32
- "file": "searchUtils-CFYkiNz3.js",
31
+ "_searchUtils-PcNM9szU.js": {
32
+ "file": "searchUtils-PcNM9szU.js",
33
33
  "name": "searchUtils",
34
34
  "imports": [
35
- "_ResponsiveContextDropdown-IjVEU2N-.js"
35
+ "_ResponsiveContextDropdown-IcbFFj-E.js"
36
36
  ]
37
37
  },
38
- "_useClipboard-DI6KcsOJ.cjs": {
39
- "file": "useClipboard-DI6KcsOJ.cjs",
38
+ "_useClipboard-Ce1zAEmK.js": {
39
+ "file": "useClipboard-Ce1zAEmK.js",
40
40
  "name": "useClipboard",
41
41
  "imports": [
42
- "_ResponsiveContextDropdown-DDGp8eAa.cjs"
42
+ "_ResponsiveContextDropdown-IcbFFj-E.js"
43
43
  ]
44
44
  },
45
- "_useClipboard-cR2sUl-i.js": {
46
- "file": "useClipboard-cR2sUl-i.js",
45
+ "_useClipboard-DI6KcsOJ.cjs": {
46
+ "file": "useClipboard-DI6KcsOJ.cjs",
47
47
  "name": "useClipboard",
48
48
  "imports": [
49
- "_ResponsiveContextDropdown-IjVEU2N-.js"
49
+ "_ResponsiveContextDropdown-DDGp8eAa.cjs"
50
50
  ]
51
51
  },
52
- "_useGetApiData-CpSouJsc.js": {
53
- "file": "useGetApiData-CpSouJsc.js",
52
+ "_useGetApiData-CnUqCI60.js": {
53
+ "file": "useGetApiData-CnUqCI60.js",
54
54
  "name": "useGetApiData",
55
55
  "imports": [
56
- "_ResponsiveContextDropdown-IjVEU2N-.js"
56
+ "_ResponsiveContextDropdown-IcbFFj-E.js"
57
57
  ]
58
58
  },
59
59
  "_useGetApiData-D0nhgZiR.cjs": {
@@ -78,11 +78,11 @@
78
78
  "_ResponsiveContextDropdown-DDGp8eAa.cjs"
79
79
  ]
80
80
  },
81
- "_usePermissions-UU8J7g9d.js": {
82
- "file": "usePermissions-UU8J7g9d.js",
81
+ "_usePermissions-B1WDeTMr.js": {
82
+ "file": "usePermissions-B1WDeTMr.js",
83
83
  "name": "usePermissions",
84
84
  "imports": [
85
- "_ResponsiveContextDropdown-IjVEU2N-.js"
85
+ "_ResponsiveContextDropdown-IcbFFj-E.js"
86
86
  ]
87
87
  },
88
88
  "_useWindowSize-CE6DJWzn.cjs": {
@@ -1,4 +1,4 @@
1
- import { j as r, c as n } from "./ResponsiveContextDropdown-IjVEU2N-.js";
1
+ import { j as r, c as n } from "./ResponsiveContextDropdown-IcbFFj-E.js";
2
2
  const o = "_loading_rgybp_1", i = "_spinner-grow_rgybp_10", e = "_second_rgybp_14", a = "_third_rgybp_17", t = "_loadingBlock_rgybp_21", s = {
3
3
  loading: o,
4
4
  "spinner-grow": "_spinner-grow_rgybp_10",
@@ -24208,7 +24208,7 @@ export {
24208
24208
  M3 as Z,
24209
24209
  cy as _,
24210
24210
  Pr as a,
24211
- HX as a$,
24211
+ qK as a$,
24212
24212
  W6 as a0,
24213
24213
  r1 as a1,
24214
24214
  gn as a2,
@@ -24243,9 +24243,9 @@ export {
24243
24243
  ih as aV,
24244
24244
  Vb as aW,
24245
24245
  ek as aX,
24246
- Bb as aY,
24247
- KK as aZ,
24248
- qK as a_,
24246
+ DX as aY,
24247
+ Bb as aZ,
24248
+ KK as a_,
24249
24249
  iX as aa,
24250
24250
  pi as ab,
24251
24251
  oX as ac,
@@ -24273,24 +24273,24 @@ export {
24273
24273
  ah as ay,
24274
24274
  pX as az,
24275
24275
  Rf as b,
24276
- yh as b0,
24277
- h6 as b1,
24278
- c5 as b2,
24279
- qX as b3,
24280
- Zy as b4,
24281
- GK as b5,
24282
- YK as b6,
24283
- Lc as b7,
24284
- P_ as b8,
24285
- FX as b9,
24286
- IO as bA,
24287
- AX as bB,
24288
- RX as bC,
24289
- PX as bD,
24290
- IX as bE,
24291
- DO as bF,
24292
- Bd as bG,
24293
- DX as bH,
24276
+ HX as b0,
24277
+ yh as b1,
24278
+ h6 as b2,
24279
+ c5 as b3,
24280
+ qX as b4,
24281
+ Zy as b5,
24282
+ GK as b6,
24283
+ YK as b7,
24284
+ Lc as b8,
24285
+ P_ as b9,
24286
+ MX as bA,
24287
+ IO as bB,
24288
+ AX as bC,
24289
+ RX as bD,
24290
+ PX as bE,
24291
+ IX as bF,
24292
+ DO as bG,
24293
+ Bd as bH,
24294
24294
  Ud as bI,
24295
24295
  EO as bJ,
24296
24296
  CO as bK,
@@ -24308,32 +24308,32 @@ export {
24308
24308
  Xm as bW,
24309
24309
  bX,
24310
24310
  zb as bY,
24311
- VX as ba,
24312
- NZ as bb,
24313
- PK as bc,
24314
- Z_ as bd,
24315
- sX as be,
24316
- fX as bf,
24317
- eK as bg,
24318
- Yp as bh,
24319
- o5 as bi,
24320
- s5 as bj,
24321
- mX as bk,
24322
- a$ as bl,
24323
- Hb as bm,
24324
- kX as bn,
24325
- Ft as bo,
24326
- Qp as bp,
24327
- i$ as bq,
24328
- NX as br,
24329
- mh as bs,
24330
- yX as bt,
24331
- MO as bu,
24332
- jO as bv,
24333
- $X as bw,
24334
- EX as bx,
24335
- CX as by,
24336
- MX as bz,
24311
+ FX as ba,
24312
+ VX as bb,
24313
+ NZ as bc,
24314
+ PK as bd,
24315
+ Z_ as be,
24316
+ sX as bf,
24317
+ fX as bg,
24318
+ eK as bh,
24319
+ Yp as bi,
24320
+ o5 as bj,
24321
+ s5 as bk,
24322
+ mX as bl,
24323
+ a$ as bm,
24324
+ Hb as bn,
24325
+ kX as bo,
24326
+ Ft as bp,
24327
+ Qp as bq,
24328
+ i$ as br,
24329
+ NX as bs,
24330
+ mh as bt,
24331
+ yX as bu,
24332
+ MO as bv,
24333
+ jO as bw,
24334
+ $X as bx,
24335
+ EX as by,
24336
+ CX as bz,
24337
24337
  ie as c,
24338
24338
  mw as d,
24339
24339
  Hv as e,
@@ -19,11 +19,12 @@ type Props = {
19
19
  apiItemPost?: string;
20
20
  apiItemDelete?: string;
21
21
  apiItemCreate?: string;
22
+ apiExportGet?: string;
22
23
  };
23
24
  customPickers?: {
24
25
  type: string;
25
26
  picker: React.FC<CustomPickerProps>;
26
27
  }[];
27
28
  };
28
- declare const DynamicForm: ({ id, page, setPage, filters, setFilter, sortByField, sortByType, setSortBy, appUrls: { appDetail }, apiUrls: { apiSchemaGet, apiDataGet, apiItemPost, apiItemDelete, apiItemCreate, }, customPickers, }: Props) => import("react").JSX.Element;
29
+ declare const DynamicForm: ({ id, page, setPage, filters, setFilter, sortByField, sortByType, setSortBy, appUrls: { appDetail }, apiUrls: { apiSchemaGet, apiDataGet, apiItemPost, apiItemDelete, apiItemCreate, apiExportGet, }, customPickers, }: Props) => import("react").JSX.Element;
29
30
  export default DynamicForm;
@@ -1,15 +1,15 @@
1
1
  var Ae = Object.defineProperty;
2
2
  var Se = (e, t, r) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var A = (e, t, r) => Se(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as N, bh as Oe, j as f, bi as Ee, a2 as z, b2 as we, bj as ue, ae as S, b1 as Ie, a3 as G, bk as je, aV as Pe, au as De, aC as fe, bl as de, aD as ke, aF as D, aE as Le, bm as He, aT as se, bn as _e, bo as me, bp as oe, bq as $e, aX as Me } from "./ResponsiveContextDropdown-IjVEU2N-.js";
4
+ import { t as N, bi as Oe, j as f, bj as Ee, a2 as z, b3 as we, bk as ue, ae as S, b2 as Ie, a3 as G, bl as je, aV as Pe, au as De, aC as fe, bm as de, aD as ke, aF as D, aE as Le, bn as He, aT as se, bo as _e, bp as me, bq as oe, br as $e, aX as Me } from "./ResponsiveContextDropdown-IcbFFj-E.js";
5
5
  import E, { useState as C, useCallback as p, useMemo as b, useContext as _, useEffect as P, useRef as pe, Component as te } from "react";
6
6
  import { EventType as W } from "@azure/msal-browser";
7
7
  import { MsalProvider as Re } from "@azure/msal-react";
8
8
  import "react-router-dom";
9
9
  import "react-hook-form";
10
10
  import "react-flexmonster";
11
- import { L as Ue } from "./Loading-CZXvcAIp.js";
12
- import { u as Ne } from "./useGetApiData-CpSouJsc.js";
11
+ import { L as Ue } from "./Loading-CUX86L4N.js";
12
+ import { u as Ne } from "./useGetApiData-CnUqCI60.js";
13
13
  import { u as Fe } from "./useLocalStorageState-Bt99kkCr.js";
14
14
  function qe(e) {
15
15
  const t = N(e);
package/dist/hooks.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { au as S, aV as L, aD as P } from "./ResponsiveContextDropdown-IjVEU2N-.js";
2
- import { br as V, aX as X, aJ as Z, aW as j, b2 as q, bs as H } from "./ResponsiveContextDropdown-IjVEU2N-.js";
1
+ import { au as S, aV as L, aD as P } from "./ResponsiveContextDropdown-IcbFFj-E.js";
2
+ import { bs as V, aX as X, aJ as Z, aW as j, b3 as q, bt as H } from "./ResponsiveContextDropdown-IcbFFj-E.js";
3
3
  import { a as Y, u as _ } from "./useWindowSize-OLYtjFv_.js";
4
- import { u as et } from "./usePermissions-UU8J7g9d.js";
5
- import { u as at, d as ot, a as rt, b as nt, c as ut } from "./useClipboard-cR2sUl-i.js";
6
- import { u as lt } from "./useGetApiData-CpSouJsc.js";
4
+ import { u as et } from "./usePermissions-B1WDeTMr.js";
5
+ import { u as at, d as ot, a as rt, b as nt, c as ut } from "./useClipboard-Ce1zAEmK.js";
6
+ import { u as lt } from "./useGetApiData-CnUqCI60.js";
7
7
  import { useState as b, useEffect as C, useContext as T, useRef as U, useCallback as $ } from "react";
8
8
  import { u as ft } from "./useLocalStorageState-Bt99kkCr.js";
9
9
  import "react-router-dom";
package/dist/layout.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { j as o, c as i, ac as g, aA as L, be as T, bf as R } from "./ResponsiveContextDropdown-IjVEU2N-.js";
2
- import { b3 as Ne, bg as ye } from "./ResponsiveContextDropdown-IjVEU2N-.js";
1
+ import { j as o, c as i, ac as g, aA as L, bf as T, bg as R } from "./ResponsiveContextDropdown-IcbFFj-E.js";
2
+ import { b4 as Ne, bh as ye } from "./ResponsiveContextDropdown-IcbFFj-E.js";
3
3
  import { useState as I, useRef as z, useMemo as k, useEffect as S } from "react";
4
4
  import { Link as B } from "react-router-dom";
5
5
  import "react-hook-form";
@@ -7,7 +7,7 @@ import "react-flexmonster";
7
7
  import "@azure/msal-browser";
8
8
  import "@azure/msal-react";
9
9
  import { a as w, u as $ } from "./useWindowSize-OLYtjFv_.js";
10
- import { u as A } from "./usePermissions-UU8J7g9d.js";
10
+ import { u as A } from "./usePermissions-B1WDeTMr.js";
11
11
  const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", U = "_text_1o1uo_23", W = "_icon_1o1uo_30", q = "_collapse-icon_1o1uo_36", E = "_collapsed_1o1uo_46", G = "_collapse-icon-mini_1o1uo_49", J = "_expanded_1o1uo_80", Q = "_children-container_1o1uo_86", V = "_visible_1o1uo_94", X = "_children_1o1uo_86", Y = "_mobile_1o1uo_106", s = {
12
12
  "side-menu-item": "_side-menu-item_1o1uo_1",
13
13
  sideMenuItem: F,
@@ -29,7 +29,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
29
29
  children: X,
30
30
  mobile: Y
31
31
  }, Z = ({ item: n, menuExpanded: t, useTooltips: l, children: a }) => n.tooltip && !t && l ? /* @__PURE__ */ o.jsx(L, { text: n.tooltip, placement: "top", delay: { show: 1e3, hide: 0 }, children: /* @__PURE__ */ o.jsx("div", { children: a }) }) : a, C = ({ item: n, menuExpanded: t, collapsed: l, onCollapse: a, currentPath: c, useHover: m, useTooltips: M, isMobile: r }) => {
32
- var f, v, j, x;
32
+ var f, v, j, h;
33
33
  const [N, p] = I(!1), [b] = c.split("?"), _ = n.linkTo === b || ((f = n.children) == null ? void 0 : f.some((e) => e.linkTo === b)), y = z(null);
34
34
  return w([y], () => l && a()), /* @__PURE__ */ o.jsxs("li", { ref: y, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: r }, {
35
35
  [s.expanded]: t
@@ -55,7 +55,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
55
55
  ] }) }),
56
56
  /* @__PURE__ */ o.jsx("div", { className: i("children-container", s.childrenContainer, {
57
57
  [s.visible]: l
58
- }), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (x = n.children) == null ? void 0 : x.map((e) => /* @__PURE__ */ o.jsx(B, { to: e.disabled || e.notPermitted ? "/" : e.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: e.disabled || e.notPermitted }, { disabled: e.disabled || e.notPermitted }), onClick: a, children: /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: e.title }) }, e.linkTo)) }) })
58
+ }), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (h = n.children) == null ? void 0 : h.map((e) => /* @__PURE__ */ o.jsx(B, { to: e.disabled || e.notPermitted ? "/" : e.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: e.disabled || e.notPermitted }, { disabled: e.disabled || e.notPermitted }), onClick: a, children: /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: e.title }) }, e.linkTo)) }) })
59
59
  ] });
60
60
  }, H = "_side-menu_15z3o_1", ee = "_sidebar-header_15z3o_13", oe = "_side-menu-content_15z3o_20", ne = "_expand_15z3o_24", se = "_only-logo_15z3o_28", ie = "_mobile_15z3o_31", te = "_divider_15z3o_45", u = {
61
61
  "side-menu": "_side-menu_15z3o_1",
@@ -69,16 +69,16 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
69
69
  onlyLogo: se,
70
70
  mobile: ie,
71
71
  divider: te
72
- }, he = ({ headerItem: n, searchItem: t, mainItems: l, secondaryItems: a, expanded: c, setExpanded: m, currentPath: M, useHover: r, useTooltips: N }) => {
72
+ }, xe = ({ headerItem: n, searchItem: t, mainItems: l, secondaryItems: a, expanded: c, setExpanded: m, currentPath: M, useHover: r, useTooltips: N }) => {
73
73
  const [p, b] = I(-1), { checkUserHasPermissions: _ } = A(), y = k(() => l.map((e) => {
74
74
  var d;
75
75
  return {
76
76
  ...e,
77
77
  notPermitted: !_(e.permissions ?? [], "any"),
78
- children: (d = e.children) == null ? void 0 : d.map((h) => ({
79
- ...h,
80
- notPermitted: !_(h.permissions ?? [], "any"),
81
- disabled: e.disabled || h.disabled
78
+ children: (d = e.children) == null ? void 0 : d.map((x) => ({
79
+ ...x,
80
+ notPermitted: !_(x.permissions ?? [], "any"),
81
+ disabled: e.disabled || x.disabled
82
82
  }))
83
83
  };
84
84
  }), [l, _]), f = k(() => a.map((e) => {
@@ -86,9 +86,9 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
86
86
  return {
87
87
  ...e,
88
88
  notPermitted: !_(e.permissions ?? [], "any"),
89
- children: (d = e.children) == null ? void 0 : d.map((h) => ({
90
- ...h,
91
- notPermitted: !_(h.permissions ?? [], "any")
89
+ children: (d = e.children) == null ? void 0 : d.map((x) => ({
90
+ ...x,
91
+ notPermitted: !_(x.permissions ?? [], "any")
92
92
  }))
93
93
  };
94
94
  }), [a, _]), v = (e) => {
@@ -99,8 +99,8 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
99
99
  }, [c]);
100
100
  const j = z(null);
101
101
  w([j], () => m(!1));
102
- const { isMobile: x } = $();
103
- return /* @__PURE__ */ o.jsxs("section", { ref: j, className: i("luminus-side-menu shadow", u.sideMenu, { [u.mobile]: x }, {
102
+ const { isMobile: h } = $();
103
+ return /* @__PURE__ */ o.jsxs("section", { ref: j, className: i("luminus-side-menu shadow", u.sideMenu, { [u.mobile]: h }, {
104
104
  [u.expand]: c
105
105
  }, { expand: c }), onMouseEnter: () => r && m(!0), onMouseLeave: () => r && m(!1), children: [
106
106
  /* @__PURE__ */ o.jsx("div", { className: i("sidebar-header", u.sidebarHeader, {
@@ -111,9 +111,9 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
111
111
  ] }) : /* @__PURE__ */ o.jsx(R, {}) }),
112
112
  /* @__PURE__ */ o.jsxs("ul", { className: u.sideMenuContent, children: [
113
113
  t ? /* @__PURE__ */ o.jsx("div", { className: "p-3", children: t }) : null,
114
- y.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: x }, e.title)),
114
+ y.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title)),
115
115
  /* @__PURE__ */ o.jsx("hr", { className: i("divider", u.divider) }),
116
- f.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: x }, e.title))
116
+ f.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title))
117
117
  ] })
118
118
  ] });
119
119
  }, le = "_top-bar_1usoa_1", ae = "_top-bar-brand_1usoa_13", P = {
@@ -132,6 +132,6 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
132
132
  export {
133
133
  Ne as PageContainer,
134
134
  ye as SideContentBar,
135
- he as SideMenu,
135
+ xe as SideMenu,
136
136
  ve as TopBar
137
137
  };