react-luminus-components 2.0.29 → 2.0.31

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.
Files changed (51) hide show
  1. package/dist/.vite/manifest.json +34 -34
  2. package/dist/{FormDisabledProvider-DkShe5lG.cjs → FormDisabledProvider-DFCB4DVo.cjs} +1 -1
  3. package/dist/{FormDisabledProvider-v_f72bx-.js → FormDisabledProvider-DYgNxt_V.js} +5 -5
  4. package/dist/ShortcutLinksContext-BGLfiUxG.cjs +285 -0
  5. package/dist/{ShortcutLinksContext-Bzk6zb9Z.js → ShortcutLinksContext-Bu12oYeg.js} +13126 -12179
  6. package/dist/components/common/NotificationCenter/Actions/NotificationActions.d.ts +23 -0
  7. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/ActionTemplates.d.ts +1 -1
  8. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/Recipients/NotificationRecipients.d.ts +1 -1
  9. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/modals/NotificationTargetModal.d.ts +1 -1
  10. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +3 -3
  11. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationActionAddModal.d.ts +1 -1
  12. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateAddModal.d.ts +2 -2
  13. package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateEditModal.d.ts +2 -2
  14. package/dist/components/common/NotificationCenter/NotifStyles/NotifStyles.d.ts +8 -0
  15. package/dist/components/common/NotificationCenter/Users/NotificationUsers.d.ts +12 -0
  16. package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/EmployeeNotifTable/EmployeeNotifHistoryTable.d.ts +2 -2
  17. package/dist/components/{NotifCenter → common/NotificationCenter}/index.d.ts +1 -1
  18. package/dist/components/common/index.d.ts +3 -0
  19. package/dist/contexts/apiWebSocket/ApiWebSocketContext.d.ts +10 -0
  20. package/dist/contexts/apiWebSocket/ApiWebSocketProvider.d.ts +9 -0
  21. package/dist/contexts/apiWebSocket/useApiWebSocket.d.ts +2 -0
  22. package/dist/contexts/index.d.ts +3 -0
  23. package/dist/contexts.cjs.js +1 -1
  24. package/dist/contexts.es.js +1419 -518
  25. package/dist/hooks/index.d.ts +1 -0
  26. package/dist/hooks/useIsBrowserOnline/useIsBrowserOnline.d.ts +2 -0
  27. package/dist/hooks.cjs.js +1 -1
  28. package/dist/hooks.es.js +159 -150
  29. package/dist/layout.cjs.js +1 -1
  30. package/dist/layout.es.js +2 -2
  31. package/dist/main.cjs.js +8 -8
  32. package/dist/main.d.ts +1 -3
  33. package/dist/main.es.js +8678 -8645
  34. package/dist/{useIsFormDirty-Cp4xs1BK.js → useIsFormDirty-D61PZNiu.js} +1 -1
  35. package/dist/{useIsFormDirty-DjNkWEmd.cjs → useIsFormDirty-DQrsSiIC.cjs} +1 -1
  36. package/dist/{useLocalStorageState-DgJ_e5P1.js → useLocalStorageState-C9vgpAvX.js} +1 -1
  37. package/dist/{useLocalStorageState-BOKWHt5u.cjs → useLocalStorageState-DnWPyDKJ.cjs} +1 -1
  38. package/dist/utils.cjs.js +1 -1
  39. package/dist/utils.es.js +26 -26
  40. package/package.json +2 -1
  41. package/dist/ShortcutLinksContext-D4CGbP2q.cjs +0 -285
  42. package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +0 -22
  43. package/dist/components/NotifCenter/NotifStyles/NotifStyles.d.ts +0 -10
  44. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleFormSchema.d.ts +0 -20
  45. package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleTableColumns.d.ts +0 -7
  46. package/dist/components/NotifCenter/Users/NotificationUsers.d.ts +0 -10
  47. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/index.d.ts +0 -0
  48. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/index.d.ts +0 -0
  49. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/hooks/useNotifTemplateUtils.d.ts +0 -0
  50. /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/types/NotificationKindFullModel.d.ts +0 -0
  51. /package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/index.d.ts +0 -0
@@ -1,24 +1,24 @@
1
1
  {
2
- "_FormDisabledProvider-DkShe5lG.cjs": {
3
- "file": "FormDisabledProvider-DkShe5lG.cjs",
2
+ "_FormDisabledProvider-DFCB4DVo.cjs": {
3
+ "file": "FormDisabledProvider-DFCB4DVo.cjs",
4
4
  "name": "FormDisabledProvider",
5
5
  "imports": [
6
- "_ShortcutLinksContext-D4CGbP2q.cjs"
6
+ "_ShortcutLinksContext-BGLfiUxG.cjs"
7
7
  ]
8
8
  },
9
- "_FormDisabledProvider-v_f72bx-.js": {
10
- "file": "FormDisabledProvider-v_f72bx-.js",
9
+ "_FormDisabledProvider-DYgNxt_V.js": {
10
+ "file": "FormDisabledProvider-DYgNxt_V.js",
11
11
  "name": "FormDisabledProvider",
12
12
  "imports": [
13
- "_ShortcutLinksContext-Bzk6zb9Z.js"
13
+ "_ShortcutLinksContext-Bu12oYeg.js"
14
14
  ]
15
15
  },
16
- "_ShortcutLinksContext-Bzk6zb9Z.js": {
17
- "file": "ShortcutLinksContext-Bzk6zb9Z.js",
16
+ "_ShortcutLinksContext-BGLfiUxG.cjs": {
17
+ "file": "ShortcutLinksContext-BGLfiUxG.cjs",
18
18
  "name": "ShortcutLinksContext"
19
19
  },
20
- "_ShortcutLinksContext-D4CGbP2q.cjs": {
21
- "file": "ShortcutLinksContext-D4CGbP2q.cjs",
20
+ "_ShortcutLinksContext-Bu12oYeg.js": {
21
+ "file": "ShortcutLinksContext-Bu12oYeg.js",
22
22
  "name": "ShortcutLinksContext"
23
23
  },
24
24
  "_localStorageUtils-CZ4HDRzi.js": {
@@ -37,34 +37,34 @@
37
37
  "file": "queryStorage-Dk70bkj7.cjs",
38
38
  "name": "queryStorage"
39
39
  },
40
- "_useIsFormDirty-Cp4xs1BK.js": {
41
- "file": "useIsFormDirty-Cp4xs1BK.js",
40
+ "_useIsFormDirty-D61PZNiu.js": {
41
+ "file": "useIsFormDirty-D61PZNiu.js",
42
42
  "name": "useIsFormDirty",
43
43
  "imports": [
44
- "_ShortcutLinksContext-Bzk6zb9Z.js",
44
+ "_ShortcutLinksContext-Bu12oYeg.js",
45
45
  "_queryStorage-C8e71gxx.js"
46
46
  ]
47
47
  },
48
- "_useIsFormDirty-DjNkWEmd.cjs": {
49
- "file": "useIsFormDirty-DjNkWEmd.cjs",
48
+ "_useIsFormDirty-DQrsSiIC.cjs": {
49
+ "file": "useIsFormDirty-DQrsSiIC.cjs",
50
50
  "name": "useIsFormDirty",
51
51
  "imports": [
52
- "_ShortcutLinksContext-D4CGbP2q.cjs",
52
+ "_ShortcutLinksContext-BGLfiUxG.cjs",
53
53
  "_queryStorage-Dk70bkj7.cjs"
54
54
  ]
55
55
  },
56
- "_useLocalStorageState-BOKWHt5u.cjs": {
57
- "file": "useLocalStorageState-BOKWHt5u.cjs",
56
+ "_useLocalStorageState-C9vgpAvX.js": {
57
+ "file": "useLocalStorageState-C9vgpAvX.js",
58
58
  "name": "useLocalStorageState",
59
59
  "imports": [
60
- "_ShortcutLinksContext-D4CGbP2q.cjs"
60
+ "_ShortcutLinksContext-Bu12oYeg.js"
61
61
  ]
62
62
  },
63
- "_useLocalStorageState-DgJ_e5P1.js": {
64
- "file": "useLocalStorageState-DgJ_e5P1.js",
63
+ "_useLocalStorageState-DnWPyDKJ.cjs": {
64
+ "file": "useLocalStorageState-DnWPyDKJ.cjs",
65
65
  "name": "useLocalStorageState",
66
66
  "imports": [
67
- "_ShortcutLinksContext-Bzk6zb9Z.js"
67
+ "_ShortcutLinksContext-BGLfiUxG.cjs"
68
68
  ]
69
69
  },
70
70
  "src/contexts/index.ts": {
@@ -73,9 +73,9 @@
73
73
  "src": "src/contexts/index.ts",
74
74
  "isEntry": true,
75
75
  "imports": [
76
- "_ShortcutLinksContext-D4CGbP2q.cjs",
77
- "_FormDisabledProvider-DkShe5lG.cjs",
78
- "_useLocalStorageState-BOKWHt5u.cjs"
76
+ "_ShortcutLinksContext-BGLfiUxG.cjs",
77
+ "_FormDisabledProvider-DFCB4DVo.cjs",
78
+ "_useLocalStorageState-DnWPyDKJ.cjs"
79
79
  ]
80
80
  },
81
81
  "src/hooks/index.ts": {
@@ -84,9 +84,9 @@
84
84
  "src": "src/hooks/index.ts",
85
85
  "isEntry": true,
86
86
  "imports": [
87
- "_ShortcutLinksContext-D4CGbP2q.cjs",
88
- "_useLocalStorageState-BOKWHt5u.cjs",
89
- "_useIsFormDirty-DjNkWEmd.cjs"
87
+ "_ShortcutLinksContext-BGLfiUxG.cjs",
88
+ "_useLocalStorageState-DnWPyDKJ.cjs",
89
+ "_useIsFormDirty-DQrsSiIC.cjs"
90
90
  ]
91
91
  },
92
92
  "src/layout/index.ts": {
@@ -95,7 +95,7 @@
95
95
  "src": "src/layout/index.ts",
96
96
  "isEntry": true,
97
97
  "imports": [
98
- "_ShortcutLinksContext-D4CGbP2q.cjs"
98
+ "_ShortcutLinksContext-BGLfiUxG.cjs"
99
99
  ]
100
100
  },
101
101
  "src/main.ts": {
@@ -104,11 +104,11 @@
104
104
  "src": "src/main.ts",
105
105
  "isEntry": true,
106
106
  "imports": [
107
- "_ShortcutLinksContext-D4CGbP2q.cjs",
108
- "_FormDisabledProvider-DkShe5lG.cjs",
107
+ "_ShortcutLinksContext-BGLfiUxG.cjs",
108
+ "_FormDisabledProvider-DFCB4DVo.cjs",
109
109
  "_localStorageUtils-CkZslzIU.cjs",
110
- "_useIsFormDirty-DjNkWEmd.cjs",
111
- "_useLocalStorageState-BOKWHt5u.cjs"
110
+ "_useIsFormDirty-DQrsSiIC.cjs",
111
+ "_useLocalStorageState-DnWPyDKJ.cjs"
112
112
  ]
113
113
  },
114
114
  "src/utils/index.ts": {
@@ -117,7 +117,7 @@
117
117
  "src": "src/utils/index.ts",
118
118
  "isEntry": true,
119
119
  "imports": [
120
- "_ShortcutLinksContext-D4CGbP2q.cjs",
120
+ "_ShortcutLinksContext-BGLfiUxG.cjs",
121
121
  "_localStorageUtils-CkZslzIU.cjs",
122
122
  "_queryStorage-Dk70bkj7.cjs"
123
123
  ]
@@ -1 +1 @@
1
- "use strict";const c=require("react/jsx-runtime"),t=require("./ShortcutLinksContext-D4CGbP2q.cjs"),d="_loading_obchl_1",m="_spinner-grow_obchl_10",u="_second_obchl_14",_="_third_obchl_17",h="_loadingBlock_obchl_21",g="_sizeLine_obchl_29",p="_sizeFill_obchl_36",r={loading:d,spinnerGrow:m,second:u,third:_,loadingBlock:h,sizeLine:g,sizeFill:p},x=()=>{const e=t.compilerRuntimeExports.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsxs("div",{className:t.classNames("luminus-loading",r.loading),children:[c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary"),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.second),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.third),role:"status"})]}),e[0]=s):s=e[0],s};function l(e,s){const n=t.toDate(e);if(isNaN(s))return t.constructFrom(e,NaN);if(!s)return n;const i=n.getDate(),o=t.constructFrom(e,n.getTime());o.setMonth(n.getMonth()+s+1,0);const a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function b(e,s){return l(e,s*12)}const N=e=>{const s=t.compilerRuntimeExports.c(3),{children:n,disabled:i}=e;let o;return s[0]!==n||s[1]!==i?(o=c.jsx(t.FormDisabledContext.Provider,{value:i,children:n}),s[0]=n,s[1]=i,s[2]=o):o=s[2],o};exports.FormDisabledProvider=N;exports.Loading=x;exports.addMonths=l;exports.addYears=b;exports.classes=r;
1
+ "use strict";const c=require("react/jsx-runtime"),t=require("./ShortcutLinksContext-BGLfiUxG.cjs"),d="_loading_obchl_1",m="_spinner-grow_obchl_10",u="_second_obchl_14",_="_third_obchl_17",h="_loadingBlock_obchl_21",g="_sizeLine_obchl_29",p="_sizeFill_obchl_36",r={loading:d,spinnerGrow:m,second:u,third:_,loadingBlock:h,sizeLine:g,sizeFill:p},x=()=>{const e=t.compilerRuntimeExports.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=c.jsxs("div",{className:t.classNames("luminus-loading",r.loading),children:[c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary"),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.second),role:"status"}),c.jsx("div",{className:t.classNames("spinner-grow",r.spinnerGrow,"text-primary",r.third),role:"status"})]}),e[0]=s):s=e[0],s};function l(e,s){const n=t.toDate(e);if(isNaN(s))return t.constructFrom(e,NaN);if(!s)return n;const i=n.getDate(),o=t.constructFrom(e,n.getTime());o.setMonth(n.getMonth()+s+1,0);const a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function b(e,s){return l(e,s*12)}const N=e=>{const s=t.compilerRuntimeExports.c(3),{children:n,disabled:i}=e;let o;return s[0]!==n||s[1]!==i?(o=c.jsx(t.FormDisabledContext.Provider,{value:i,children:n}),s[0]=n,s[1]=i,s[2]=o):o=s[2],o};exports.FormDisabledProvider=N;exports.Loading=x;exports.addMonths=l;exports.addYears=b;exports.classes=r;
@@ -1,5 +1,5 @@
1
1
  import { jsxs as _, jsx as a } from "react/jsx-runtime";
2
- import { c, a as i, t as h, b as l, bY as m } from "./ShortcutLinksContext-Bzk6zb9Z.js";
2
+ import { c as l, a as i, t as h, b as c, ck as m } from "./ShortcutLinksContext-Bu12oYeg.js";
3
3
  const g = "_loading_obchl_1", p = "_spinner-grow_obchl_10", u = "_second_obchl_14", b = "_third_obchl_17", f = "_loadingBlock_obchl_21", w = "_sizeLine_obchl_29", F = "_sizeFill_obchl_36", r = {
4
4
  loading: g,
5
5
  spinnerGrow: p,
@@ -9,7 +9,7 @@ const g = "_loading_obchl_1", p = "_spinner-grow_obchl_10", u = "_second_obchl_1
9
9
  sizeLine: w,
10
10
  sizeFill: F
11
11
  }, M = () => {
12
- const e = c.c(1);
12
+ const e = l.c(1);
13
13
  let s;
14
14
  return e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ _("div", { className: i("luminus-loading", r.loading), children: [
15
15
  /* @__PURE__ */ a("div", { className: i("spinner-grow", r.spinnerGrow, "text-primary"), role: "status" }),
@@ -19,10 +19,10 @@ const g = "_loading_obchl_1", p = "_spinner-grow_obchl_10", u = "_second_obchl_1
19
19
  };
20
20
  function N(e, s) {
21
21
  const n = h(e);
22
- if (isNaN(s)) return l(e, NaN);
22
+ if (isNaN(s)) return c(e, NaN);
23
23
  if (!s)
24
24
  return n;
25
- const t = n.getDate(), o = l(e, n.getTime());
25
+ const t = n.getDate(), o = c(e, n.getTime());
26
26
  o.setMonth(n.getMonth() + s + 1, 0);
27
27
  const d = o.getDate();
28
28
  return t >= d ? o : (n.setFullYear(
@@ -35,7 +35,7 @@ function y(e, s) {
35
35
  return N(e, s * 12);
36
36
  }
37
37
  const z = (e) => {
38
- const s = c.c(3), {
38
+ const s = l.c(3), {
39
39
  children: n,
40
40
  disabled: t
41
41
  } = e;