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.
- package/dist/.vite/manifest.json +34 -34
- package/dist/{FormDisabledProvider-DkShe5lG.cjs → FormDisabledProvider-DFCB4DVo.cjs} +1 -1
- package/dist/{FormDisabledProvider-v_f72bx-.js → FormDisabledProvider-DYgNxt_V.js} +5 -5
- package/dist/ShortcutLinksContext-BGLfiUxG.cjs +285 -0
- package/dist/{ShortcutLinksContext-Bzk6zb9Z.js → ShortcutLinksContext-Bu12oYeg.js} +13126 -12179
- package/dist/components/common/NotificationCenter/Actions/NotificationActions.d.ts +23 -0
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/ActionTemplates.d.ts +1 -1
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/Recipients/NotificationRecipients.d.ts +1 -1
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/modals/NotificationTargetModal.d.ts +1 -1
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +3 -3
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationActionAddModal.d.ts +1 -1
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateAddModal.d.ts +2 -2
- package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/modals/NotificationTemplateEditModal.d.ts +2 -2
- package/dist/components/common/NotificationCenter/NotifStyles/NotifStyles.d.ts +8 -0
- package/dist/components/common/NotificationCenter/Users/NotificationUsers.d.ts +12 -0
- package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/EmployeeNotifTable/EmployeeNotifHistoryTable.d.ts +2 -2
- package/dist/components/{NotifCenter → common/NotificationCenter}/index.d.ts +1 -1
- package/dist/components/common/index.d.ts +3 -0
- package/dist/contexts/apiWebSocket/ApiWebSocketContext.d.ts +10 -0
- package/dist/contexts/apiWebSocket/ApiWebSocketProvider.d.ts +9 -0
- package/dist/contexts/apiWebSocket/useApiWebSocket.d.ts +2 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +1419 -518
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useIsBrowserOnline/useIsBrowserOnline.d.ts +2 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +159 -150
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +8 -8
- package/dist/main.d.ts +1 -3
- package/dist/main.es.js +8678 -8645
- package/dist/{useIsFormDirty-Cp4xs1BK.js → useIsFormDirty-D61PZNiu.js} +1 -1
- package/dist/{useIsFormDirty-DjNkWEmd.cjs → useIsFormDirty-DQrsSiIC.cjs} +1 -1
- package/dist/{useLocalStorageState-DgJ_e5P1.js → useLocalStorageState-C9vgpAvX.js} +1 -1
- package/dist/{useLocalStorageState-BOKWHt5u.cjs → useLocalStorageState-DnWPyDKJ.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +26 -26
- package/package.json +2 -1
- package/dist/ShortcutLinksContext-D4CGbP2q.cjs +0 -285
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +0 -22
- package/dist/components/NotifCenter/NotifStyles/NotifStyles.d.ts +0 -10
- package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleFormSchema.d.ts +0 -20
- package/dist/components/NotifCenter/NotifStyles/hooks/useNotifStyleTableColumns.d.ts +0 -7
- package/dist/components/NotifCenter/Users/NotificationUsers.d.ts +0 -10
- /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/ActionTemplates/comps/index.d.ts +0 -0
- /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/components/index.d.ts +0 -0
- /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/hooks/useNotifTemplateUtils.d.ts +0 -0
- /package/dist/components/{NotifCenter → common/NotificationCenter}/Actions/types/NotificationKindFullModel.d.ts +0 -0
- /package/dist/components/{NotifCenter → common/NotificationCenter}/Users/components/index.d.ts +0 -0
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_FormDisabledProvider-
|
|
3
|
-
"file": "FormDisabledProvider-
|
|
2
|
+
"_FormDisabledProvider-DFCB4DVo.cjs": {
|
|
3
|
+
"file": "FormDisabledProvider-DFCB4DVo.cjs",
|
|
4
4
|
"name": "FormDisabledProvider",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_ShortcutLinksContext-
|
|
6
|
+
"_ShortcutLinksContext-BGLfiUxG.cjs"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_FormDisabledProvider-
|
|
10
|
-
"file": "FormDisabledProvider-
|
|
9
|
+
"_FormDisabledProvider-DYgNxt_V.js": {
|
|
10
|
+
"file": "FormDisabledProvider-DYgNxt_V.js",
|
|
11
11
|
"name": "FormDisabledProvider",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_ShortcutLinksContext-
|
|
13
|
+
"_ShortcutLinksContext-Bu12oYeg.js"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_ShortcutLinksContext-
|
|
17
|
-
"file": "ShortcutLinksContext-
|
|
16
|
+
"_ShortcutLinksContext-BGLfiUxG.cjs": {
|
|
17
|
+
"file": "ShortcutLinksContext-BGLfiUxG.cjs",
|
|
18
18
|
"name": "ShortcutLinksContext"
|
|
19
19
|
},
|
|
20
|
-
"_ShortcutLinksContext-
|
|
21
|
-
"file": "ShortcutLinksContext-
|
|
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-
|
|
41
|
-
"file": "useIsFormDirty-
|
|
40
|
+
"_useIsFormDirty-D61PZNiu.js": {
|
|
41
|
+
"file": "useIsFormDirty-D61PZNiu.js",
|
|
42
42
|
"name": "useIsFormDirty",
|
|
43
43
|
"imports": [
|
|
44
|
-
"_ShortcutLinksContext-
|
|
44
|
+
"_ShortcutLinksContext-Bu12oYeg.js",
|
|
45
45
|
"_queryStorage-C8e71gxx.js"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
|
-
"_useIsFormDirty-
|
|
49
|
-
"file": "useIsFormDirty-
|
|
48
|
+
"_useIsFormDirty-DQrsSiIC.cjs": {
|
|
49
|
+
"file": "useIsFormDirty-DQrsSiIC.cjs",
|
|
50
50
|
"name": "useIsFormDirty",
|
|
51
51
|
"imports": [
|
|
52
|
-
"_ShortcutLinksContext-
|
|
52
|
+
"_ShortcutLinksContext-BGLfiUxG.cjs",
|
|
53
53
|
"_queryStorage-Dk70bkj7.cjs"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
"_useLocalStorageState-
|
|
57
|
-
"file": "useLocalStorageState-
|
|
56
|
+
"_useLocalStorageState-C9vgpAvX.js": {
|
|
57
|
+
"file": "useLocalStorageState-C9vgpAvX.js",
|
|
58
58
|
"name": "useLocalStorageState",
|
|
59
59
|
"imports": [
|
|
60
|
-
"_ShortcutLinksContext-
|
|
60
|
+
"_ShortcutLinksContext-Bu12oYeg.js"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"_useLocalStorageState-
|
|
64
|
-
"file": "useLocalStorageState-
|
|
63
|
+
"_useLocalStorageState-DnWPyDKJ.cjs": {
|
|
64
|
+
"file": "useLocalStorageState-DnWPyDKJ.cjs",
|
|
65
65
|
"name": "useLocalStorageState",
|
|
66
66
|
"imports": [
|
|
67
|
-
"_ShortcutLinksContext-
|
|
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-
|
|
77
|
-
"_FormDisabledProvider-
|
|
78
|
-
"_useLocalStorageState-
|
|
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-
|
|
88
|
-
"_useLocalStorageState-
|
|
89
|
-
"_useIsFormDirty-
|
|
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-
|
|
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-
|
|
108
|
-
"_FormDisabledProvider-
|
|
107
|
+
"_ShortcutLinksContext-BGLfiUxG.cjs",
|
|
108
|
+
"_FormDisabledProvider-DFCB4DVo.cjs",
|
|
109
109
|
"_localStorageUtils-CkZslzIU.cjs",
|
|
110
|
-
"_useIsFormDirty-
|
|
111
|
-
"_useLocalStorageState-
|
|
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-
|
|
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-
|
|
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
|
|
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 =
|
|
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
|
|
22
|
+
if (isNaN(s)) return c(e, NaN);
|
|
23
23
|
if (!s)
|
|
24
24
|
return n;
|
|
25
|
-
const t = n.getDate(), o =
|
|
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 =
|
|
38
|
+
const s = l.c(3), {
|
|
39
39
|
children: n,
|
|
40
40
|
disabled: t
|
|
41
41
|
} = e;
|