react-luminus-components 2.0.4-table → 2.0.5-beta.r19-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/README.md +349 -349
- package/dist/.vite/manifest.json +52 -46
- package/dist/FormDisabledProvider-C8heDps-.js +51 -0
- package/dist/FormDisabledProvider-D0qy0L0K.cjs +1 -0
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +6 -3
- package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +6 -1
- package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +6 -3
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +3 -1
- package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
- package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
- package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
- package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -17
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +7 -38
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +8 -38
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +8 -38
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +3 -3
- package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
- package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
- package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
- package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +7 -3
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +3 -1
- package/dist/components/common/HomeDashboard/comps/HomeDashboardWidget/HomeDashboardWidget.d.ts +15 -0
- package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
- package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +8 -1
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +15 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +14 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +5 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/index.d.ts +1 -0
- package/dist/components/common/QrCode/QrCode.d.ts +1 -1
- package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +1 -1
- package/dist/components/common/index.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +542 -941
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAxios/useAxios.d.ts +5 -2
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useGetApiDataBound/useGetApiDataBound.d.ts +3 -0
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +4 -2
- package/dist/hooks/useIsFormDirty/useIsFormDirty.d.ts +7 -0
- package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +206 -136
- package/dist/layout/SideMenu/SideMenu.d.ts +3 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +282 -141
- package/dist/{localStorageUtils-DdeuyghB.js → localStorageUtils-CZ4HDRzi.js} +18 -8
- package/dist/localStorageUtils-CkZslzIU.cjs +1 -0
- package/dist/main.cjs.js +22 -184
- package/dist/main.es.js +11317 -11418
- package/dist/models/bntTable/IBnfTableDefColumn.d.ts +40 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +4 -12
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +4 -2
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
- package/dist/models/ui/notifications/NotificationHistoryTableModel.d.ts +6 -0
- package/dist/nivo-bar-BcQddlHb.js +41895 -0
- package/dist/nivo-bar-GEZlEbHd.cjs +326 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-B125NdWZ.js +123 -0
- package/dist/useIsFormDirty-DORaJxqb.cjs +1 -0
- package/dist/useLocalStorageState-CMX4R5vm.js +95 -0
- package/dist/useLocalStorageState-DjAdoFfQ.cjs +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/route/apiPathUtils.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +133 -159
- package/dist/variables.scss +165 -165
- package/package.json +128 -123
- package/dist/FormDisabledProvider-1MOB6N34.cjs +0 -1
- package/dist/FormDisabledProvider-CHZ2m_zJ.js +0 -40
- package/dist/ShortcutLinksContext-DEirK-v9.js +0 -39884
- package/dist/ShortcutLinksContext-DLi4B8z5.cjs +0 -334
- package/dist/components/NotifCenter/Actions/types/NotificationHistoryTableModel.d.ts +0 -5
- package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +0 -5
- package/dist/localStorageUtils-89Gfn6XS.cjs +0 -1
- package/dist/useLocalStorageState-B-CRodSS.cjs +0 -1
- package/dist/useLocalStorageState-BPYqQMTu.js +0 -78
- package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +0 -78
- package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +0 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,55 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_FormDisabledProvider-
|
|
3
|
-
"file": "FormDisabledProvider-
|
|
2
|
+
"_FormDisabledProvider-C8heDps-.js": {
|
|
3
|
+
"file": "FormDisabledProvider-C8heDps-.js",
|
|
4
4
|
"name": "FormDisabledProvider",
|
|
5
5
|
"imports": [
|
|
6
|
-
"
|
|
6
|
+
"_nivo-bar-BcQddlHb.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_FormDisabledProvider-
|
|
10
|
-
"file": "FormDisabledProvider-
|
|
9
|
+
"_FormDisabledProvider-D0qy0L0K.cjs": {
|
|
10
|
+
"file": "FormDisabledProvider-D0qy0L0K.cjs",
|
|
11
11
|
"name": "FormDisabledProvider",
|
|
12
12
|
"imports": [
|
|
13
|
-
"
|
|
13
|
+
"_nivo-bar-GEZlEbHd.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"
|
|
17
|
-
"file": "
|
|
18
|
-
"name": "ShortcutLinksContext"
|
|
19
|
-
},
|
|
20
|
-
"_ShortcutLinksContext-DLi4B8z5.cjs": {
|
|
21
|
-
"file": "ShortcutLinksContext-DLi4B8z5.cjs",
|
|
22
|
-
"name": "ShortcutLinksContext"
|
|
23
|
-
},
|
|
24
|
-
"_localStorageUtils-89Gfn6XS.cjs": {
|
|
25
|
-
"file": "localStorageUtils-89Gfn6XS.cjs",
|
|
16
|
+
"_localStorageUtils-CZ4HDRzi.js": {
|
|
17
|
+
"file": "localStorageUtils-CZ4HDRzi.js",
|
|
26
18
|
"name": "localStorageUtils"
|
|
27
19
|
},
|
|
28
|
-
"_localStorageUtils-
|
|
29
|
-
"file": "localStorageUtils-
|
|
20
|
+
"_localStorageUtils-CkZslzIU.cjs": {
|
|
21
|
+
"file": "localStorageUtils-CkZslzIU.cjs",
|
|
30
22
|
"name": "localStorageUtils"
|
|
31
23
|
},
|
|
32
|
-
"
|
|
33
|
-
"file": "
|
|
34
|
-
"name": "
|
|
24
|
+
"_nivo-bar-BcQddlHb.js": {
|
|
25
|
+
"file": "nivo-bar-BcQddlHb.js",
|
|
26
|
+
"name": "nivo-bar"
|
|
27
|
+
},
|
|
28
|
+
"_nivo-bar-GEZlEbHd.cjs": {
|
|
29
|
+
"file": "nivo-bar-GEZlEbHd.cjs",
|
|
30
|
+
"name": "nivo-bar"
|
|
31
|
+
},
|
|
32
|
+
"_useIsFormDirty-B125NdWZ.js": {
|
|
33
|
+
"file": "useIsFormDirty-B125NdWZ.js",
|
|
34
|
+
"name": "useIsFormDirty",
|
|
35
35
|
"imports": [
|
|
36
|
-
"
|
|
36
|
+
"_nivo-bar-BcQddlHb.js"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"
|
|
40
|
-
"file": "
|
|
41
|
-
"name": "
|
|
39
|
+
"_useIsFormDirty-DORaJxqb.cjs": {
|
|
40
|
+
"file": "useIsFormDirty-DORaJxqb.cjs",
|
|
41
|
+
"name": "useIsFormDirty",
|
|
42
42
|
"imports": [
|
|
43
|
-
"
|
|
43
|
+
"_nivo-bar-GEZlEbHd.cjs"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
|
-
"
|
|
47
|
-
"file": "
|
|
48
|
-
"name": "
|
|
46
|
+
"_useLocalStorageState-CMX4R5vm.js": {
|
|
47
|
+
"file": "useLocalStorageState-CMX4R5vm.js",
|
|
48
|
+
"name": "useLocalStorageState",
|
|
49
|
+
"imports": [
|
|
50
|
+
"_nivo-bar-BcQddlHb.js"
|
|
51
|
+
]
|
|
49
52
|
},
|
|
50
|
-
"
|
|
51
|
-
"file": "
|
|
52
|
-
"name": "
|
|
53
|
+
"_useLocalStorageState-DjAdoFfQ.cjs": {
|
|
54
|
+
"file": "useLocalStorageState-DjAdoFfQ.cjs",
|
|
55
|
+
"name": "useLocalStorageState",
|
|
56
|
+
"imports": [
|
|
57
|
+
"_nivo-bar-GEZlEbHd.cjs"
|
|
58
|
+
]
|
|
53
59
|
},
|
|
54
60
|
"src/contexts/index.ts": {
|
|
55
61
|
"file": "contexts.cjs.js",
|
|
@@ -57,9 +63,9 @@
|
|
|
57
63
|
"src": "src/contexts/index.ts",
|
|
58
64
|
"isEntry": true,
|
|
59
65
|
"imports": [
|
|
60
|
-
"
|
|
61
|
-
"_FormDisabledProvider-
|
|
62
|
-
"_useLocalStorageState-
|
|
66
|
+
"_nivo-bar-GEZlEbHd.cjs",
|
|
67
|
+
"_FormDisabledProvider-D0qy0L0K.cjs",
|
|
68
|
+
"_useLocalStorageState-DjAdoFfQ.cjs"
|
|
63
69
|
]
|
|
64
70
|
},
|
|
65
71
|
"src/hooks/index.ts": {
|
|
@@ -68,9 +74,9 @@
|
|
|
68
74
|
"src": "src/hooks/index.ts",
|
|
69
75
|
"isEntry": true,
|
|
70
76
|
"imports": [
|
|
71
|
-
"
|
|
72
|
-
"_useLocalStorageState-
|
|
73
|
-
"
|
|
77
|
+
"_nivo-bar-GEZlEbHd.cjs",
|
|
78
|
+
"_useLocalStorageState-DjAdoFfQ.cjs",
|
|
79
|
+
"_useIsFormDirty-DORaJxqb.cjs"
|
|
74
80
|
]
|
|
75
81
|
},
|
|
76
82
|
"src/layout/index.ts": {
|
|
@@ -79,7 +85,7 @@
|
|
|
79
85
|
"src": "src/layout/index.ts",
|
|
80
86
|
"isEntry": true,
|
|
81
87
|
"imports": [
|
|
82
|
-
"
|
|
88
|
+
"_nivo-bar-GEZlEbHd.cjs"
|
|
83
89
|
]
|
|
84
90
|
},
|
|
85
91
|
"src/main.ts": {
|
|
@@ -88,11 +94,11 @@
|
|
|
88
94
|
"src": "src/main.ts",
|
|
89
95
|
"isEntry": true,
|
|
90
96
|
"imports": [
|
|
91
|
-
"
|
|
92
|
-
"_FormDisabledProvider-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
97
|
+
"_nivo-bar-GEZlEbHd.cjs",
|
|
98
|
+
"_FormDisabledProvider-D0qy0L0K.cjs",
|
|
99
|
+
"_localStorageUtils-CkZslzIU.cjs",
|
|
100
|
+
"_useIsFormDirty-DORaJxqb.cjs",
|
|
101
|
+
"_useLocalStorageState-DjAdoFfQ.cjs"
|
|
96
102
|
]
|
|
97
103
|
},
|
|
98
104
|
"src/utils/index.ts": {
|
|
@@ -101,8 +107,8 @@
|
|
|
101
107
|
"src": "src/utils/index.ts",
|
|
102
108
|
"isEntry": true,
|
|
103
109
|
"imports": [
|
|
104
|
-
"
|
|
105
|
-
"_localStorageUtils-
|
|
110
|
+
"_nivo-bar-GEZlEbHd.cjs",
|
|
111
|
+
"_localStorageUtils-CkZslzIU.cjs"
|
|
106
112
|
]
|
|
107
113
|
},
|
|
108
114
|
"style.css": {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c, a as i, t as h, b as l, bR as m } from "./nivo-bar-BcQddlHb.js";
|
|
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
|
+
loading: g,
|
|
5
|
+
spinnerGrow: p,
|
|
6
|
+
second: u,
|
|
7
|
+
third: b,
|
|
8
|
+
loadingBlock: f,
|
|
9
|
+
sizeLine: w,
|
|
10
|
+
sizeFill: F
|
|
11
|
+
}, M = () => {
|
|
12
|
+
const e = c.c(1);
|
|
13
|
+
let s;
|
|
14
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ _("div", { className: i("luminus-loading", r.loading), children: [
|
|
15
|
+
/* @__PURE__ */ a("div", { className: i("spinner-grow", r.spinnerGrow, "text-primary"), role: "status" }),
|
|
16
|
+
/* @__PURE__ */ a("div", { className: i("spinner-grow", r.spinnerGrow, "text-primary", r.second), role: "status" }),
|
|
17
|
+
/* @__PURE__ */ a("div", { className: i("spinner-grow", r.spinnerGrow, "text-primary", r.third), role: "status" })
|
|
18
|
+
] }), e[0] = s) : s = e[0], s;
|
|
19
|
+
};
|
|
20
|
+
function N(e, s) {
|
|
21
|
+
const n = h(e);
|
|
22
|
+
if (isNaN(s)) return l(e, NaN);
|
|
23
|
+
if (!s)
|
|
24
|
+
return n;
|
|
25
|
+
const t = n.getDate(), o = l(e, n.getTime());
|
|
26
|
+
o.setMonth(n.getMonth() + s + 1, 0);
|
|
27
|
+
const d = o.getDate();
|
|
28
|
+
return t >= d ? o : (n.setFullYear(
|
|
29
|
+
o.getFullYear(),
|
|
30
|
+
o.getMonth(),
|
|
31
|
+
t
|
|
32
|
+
), n);
|
|
33
|
+
}
|
|
34
|
+
function y(e, s) {
|
|
35
|
+
return N(e, s * 12);
|
|
36
|
+
}
|
|
37
|
+
const z = (e) => {
|
|
38
|
+
const s = c.c(3), {
|
|
39
|
+
children: n,
|
|
40
|
+
disabled: t
|
|
41
|
+
} = e;
|
|
42
|
+
let o;
|
|
43
|
+
return s[0] !== n || s[1] !== t ? (o = /* @__PURE__ */ a(m.Provider, { value: t, children: n }), s[0] = n, s[1] = t, s[2] = o) : o = s[2], o;
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
z as F,
|
|
47
|
+
M as L,
|
|
48
|
+
N as a,
|
|
49
|
+
y as b,
|
|
50
|
+
r as c
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),t=require("./nivo-bar-GEZlEbHd.cjs"),d="_loading_obchl_1",m="_spinner-grow_obchl_10",_="_second_obchl_14",u="_third_obchl_17",h="_loadingBlock_obchl_21",g="_sizeLine_obchl_29",p="_sizeFill_obchl_36",r={loading:d,spinnerGrow:m,second:_,third:u,loadingBlock:h,sizeLine:g,sizeFill:p},b=()=>{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 x(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=b;exports.addMonths=l;exports.addYears=x;exports.classes=r;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
color?:
|
|
1
|
+
type Props = React.ButtonHTMLAttributes<HTMLLabelElement> & {
|
|
2
|
+
color?: 'primary' | 'success' | 'danger' | 'warning';
|
|
3
3
|
icon?: React.ReactNode;
|
|
4
4
|
inputId?: string;
|
|
5
5
|
accept?: string;
|
|
6
6
|
onUpload: (fileList: FileList) => void;
|
|
7
7
|
multiple?: boolean;
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
|
+
declare const FileUploadContextButton: ({ ref, color, icon, inputId, accept, onUpload, className, children, multiple, ...props }: Props & {
|
|
11
|
+
ref?: React.RefObject<HTMLLabelElement | null>;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
10
13
|
export default FileUploadContextButton;
|
|
@@ -4,7 +4,10 @@ declare const useDocCreateFolderForm: () => {
|
|
|
4
4
|
formMethods: import('../../../../../../../../node_modules/react-hook-form').UseFormReturn<{
|
|
5
5
|
name: string;
|
|
6
6
|
documentTypeId: number;
|
|
7
|
-
}, any,
|
|
7
|
+
}, any, {
|
|
8
|
+
name: string;
|
|
9
|
+
documentTypeId: number;
|
|
10
|
+
}>;
|
|
8
11
|
onSubmit: SubmitHandler<{
|
|
9
12
|
name: string;
|
|
10
13
|
documentTypeId: number;
|
|
@@ -7,7 +7,12 @@ declare const useEditFileForm: (file: DocumentFileModel, handleClose: () => void
|
|
|
7
7
|
description: string | null;
|
|
8
8
|
validToDate: string;
|
|
9
9
|
documentTypeId: number;
|
|
10
|
-
}, any,
|
|
10
|
+
}, any, {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
validToDate: string;
|
|
14
|
+
documentTypeId: number;
|
|
15
|
+
}>;
|
|
11
16
|
onSubmit: SubmitHandler<{
|
|
12
17
|
name: string;
|
|
13
18
|
description: string | null;
|
|
@@ -87,5 +87,5 @@ export type DocumentsReducerAction = {
|
|
|
87
87
|
type: 'search-files';
|
|
88
88
|
searchString: string;
|
|
89
89
|
};
|
|
90
|
-
declare const useDocumentsReducer: () => (DocumentsReducerState | import('react').
|
|
90
|
+
declare const useDocumentsReducer: () => (DocumentsReducerState | import('react').ActionDispatch<[action: DocumentsReducerAction]>)[];
|
|
91
91
|
export default useDocumentsReducer;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
-
color?:
|
|
5
|
+
color?: 'primary' | 'success' | 'danger' | 'warning' | 'secondary';
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
text?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
declare const SimpleDropdownToggle: ({ ref, color, icon, text, onClick, className, children, ...props }: Props & {
|
|
12
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
13
|
+
}) => React.JSX.Element;
|
|
11
14
|
export default SimpleDropdownToggle;
|
|
@@ -5,5 +5,7 @@ type Props = {
|
|
|
5
5
|
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
declare const UserAvatarToggle:
|
|
8
|
+
declare const UserAvatarToggle: ({ ref, userName, onClick, children, }: Props & {
|
|
9
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
10
|
+
}) => React.JSX.Element;
|
|
9
11
|
export default UserAvatarToggle;
|
|
@@ -7,7 +7,7 @@ import { default as HyperlinkColumn } from '../../models/ui/reports/HyperlinkCol
|
|
|
7
7
|
type Props = {
|
|
8
8
|
dataSource: DataSource;
|
|
9
9
|
settings?: ReportSettings;
|
|
10
|
-
pivotRef?: RefObject<Pivot>;
|
|
10
|
+
pivotRef?: RefObject<Pivot | null>;
|
|
11
11
|
enabled?: boolean;
|
|
12
12
|
localization: object;
|
|
13
13
|
licenseKey: string | string[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { Pivot } from 'react-flexmonster';
|
|
3
3
|
|
|
4
|
-
declare const useReportVersionApi: (reportType: string, pivotRef: RefObject<Pivot>, selectedReportVersion: number | null, afterSave: (versionId: number) => Promise<void>) => {
|
|
4
|
+
declare const useReportVersionApi: (reportType: string, pivotRef: RefObject<Pivot | null>, selectedReportVersion: number | null, afterSave: (versionId: number) => Promise<void>) => {
|
|
5
5
|
saveAs: () => Promise<void>;
|
|
6
6
|
save: () => Promise<void>;
|
|
7
7
|
archive: () => Promise<void>;
|
|
@@ -7,7 +7,7 @@ import { default as ReportSettings } from '../../../models/ui/reports/ReportSett
|
|
|
7
7
|
|
|
8
8
|
declare const savedProperties: readonly ["slice", "options", "formats", "conditions"];
|
|
9
9
|
export type ReportSettingsProperties = (typeof savedProperties)[number];
|
|
10
|
-
export declare const getSettingsStringFromRef: (pivotRef: RefObject<Pivot>) => string;
|
|
10
|
+
export declare const getSettingsStringFromRef: (pivotRef: RefObject<Pivot | null>) => string;
|
|
11
11
|
export declare const parseSettings: (reportVersion: ReportVersionModel) => Flexmonster.Report;
|
|
12
12
|
export declare const getFullSettingsObject: (settings: ReportSettings | undefined) => ReportSettings;
|
|
13
13
|
export declare const isWannabeEmptyLabel: (data: Flexmonster.CellData) => boolean | undefined;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
miniDetailPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
8
8
|
};
|
|
9
|
-
declare const MiniDetailWrapper: ({ value, MiniDetailComponent, children, miniDetailPlacement, }: Props) => string | number | boolean | Iterable<import('react').ReactNode> | import("react").JSX.Element | null | undefined;
|
|
9
|
+
declare const MiniDetailWrapper: ({ value, MiniDetailComponent, children, miniDetailPlacement, }: Props) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
10
10
|
export default MiniDetailWrapper;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as HookFormTextInputProps } from '../../../models/prop-types/HookFormInputProps/HookFormTextInputProps';
|
|
2
2
|
|
|
3
|
-
declare const HookFormTextInput:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
required?: boolean;
|
|
7
|
-
onChange?: (value: string | number | boolean | null) => void;
|
|
8
|
-
} & {
|
|
9
|
-
type: "text" | "number" | "password" | "date" | "datetime-local" | "time";
|
|
10
|
-
list?: string;
|
|
11
|
-
step?: number | string;
|
|
12
|
-
CustomOnChangeComponent?: React.ReactElement;
|
|
13
|
-
noSelectOnFocus?: boolean;
|
|
14
|
-
minLength?: number;
|
|
15
|
-
maxLength?: number;
|
|
16
|
-
hint?: string;
|
|
17
|
-
autoComplete?: import('react').ComponentProps<typeof Form.Control>["autoComplete"];
|
|
18
|
-
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
declare const HookFormTextInput: ({ ref: inputRef, InputContainer, type, formField, label, placeholder, size, resetsFields, showClearIcon, clearValue, required, hidden, disabled, withoutLabel, list, step, CustomOnChangeComponent, noSelectOnFocus, minLength, maxLength, hint, onChange, className, autoComplete, }: HookFormTextInputProps & {
|
|
4
|
+
ref?: React.RefObject<HTMLInputElement | null>;
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
19
6
|
export default HookFormTextInput;
|
|
@@ -1,41 +1,10 @@
|
|
|
1
|
+
import { default as InputContainerProps } from '../../../models/prop-types/InputContainerProps';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
|
|
3
|
-
declare const FloatingLabelInput:
|
|
4
|
-
hidden
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isForCheckInput?: boolean;
|
|
10
|
-
isForRadioInput?: boolean;
|
|
11
|
-
isForTextAreaInput?: boolean;
|
|
12
|
-
inputContainerClassName?: string;
|
|
13
|
-
hint?: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
} & {
|
|
16
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
17
|
-
} & {
|
|
18
|
-
withoutLabel?: false;
|
|
19
|
-
label: string;
|
|
20
|
-
} & {
|
|
21
|
-
withoutLabel?: false;
|
|
22
|
-
}, "ref"> | Omit<{
|
|
23
|
-
hidden?: boolean;
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
required?: boolean;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
isInvalid?: boolean;
|
|
28
|
-
isForCheckInput?: boolean;
|
|
29
|
-
isForRadioInput?: boolean;
|
|
30
|
-
isForTextAreaInput?: boolean;
|
|
31
|
-
inputContainerClassName?: string;
|
|
32
|
-
hint?: string;
|
|
33
|
-
className?: string;
|
|
34
|
-
} & {
|
|
35
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
36
|
-
} & {
|
|
37
|
-
withoutLabel: true;
|
|
38
|
-
} & {
|
|
39
|
-
withoutLabel: true;
|
|
40
|
-
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const FloatingLabelInput: {
|
|
5
|
+
({ ref, hidden, children, className, isInvalid, isForRadioInput, inputContainerClassName, isForCheckInput, hint, required, disabled, ...props }: InputContainerProps & {
|
|
6
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
41
10
|
export default FloatingLabelInput;
|
|
@@ -1,39 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isForTextAreaInput?: boolean;
|
|
10
|
-
inputContainerClassName?: string;
|
|
11
|
-
hint?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
} & {
|
|
14
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
15
|
-
} & {
|
|
16
|
-
withoutLabel?: false;
|
|
17
|
-
label: string;
|
|
18
|
-
} & {
|
|
19
|
-
withoutLabel?: false;
|
|
20
|
-
}, "ref"> | Omit<{
|
|
21
|
-
hidden?: boolean;
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
required?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
isInvalid?: boolean;
|
|
26
|
-
isForCheckInput?: boolean;
|
|
27
|
-
isForRadioInput?: boolean;
|
|
28
|
-
isForTextAreaInput?: boolean;
|
|
29
|
-
inputContainerClassName?: string;
|
|
30
|
-
hint?: string;
|
|
31
|
-
className?: string;
|
|
32
|
-
} & {
|
|
33
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
34
|
-
} & {
|
|
35
|
-
withoutLabel: true;
|
|
36
|
-
} & {
|
|
37
|
-
withoutLabel: true;
|
|
38
|
-
}, "ref">) & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { default as InputContainerProps } from '../../../models/prop-types/InputContainerProps';
|
|
2
|
+
|
|
3
|
+
declare const NoInputContainer: {
|
|
4
|
+
({ ref, children, className, hidden, }: InputContainerProps & {
|
|
5
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
39
9
|
export default NoInputContainer;
|
|
@@ -1,39 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
required
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isForTextAreaInput?: boolean;
|
|
10
|
-
inputContainerClassName?: string;
|
|
11
|
-
hint?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
} & {
|
|
14
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
15
|
-
} & {
|
|
16
|
-
withoutLabel?: false;
|
|
17
|
-
label: string;
|
|
18
|
-
} & {
|
|
19
|
-
withoutLabel?: false;
|
|
20
|
-
}, "ref"> | Omit<{
|
|
21
|
-
hidden?: boolean;
|
|
22
|
-
children: React.ReactNode;
|
|
23
|
-
required?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
isInvalid?: boolean;
|
|
26
|
-
isForCheckInput?: boolean;
|
|
27
|
-
isForRadioInput?: boolean;
|
|
28
|
-
isForTextAreaInput?: boolean;
|
|
29
|
-
inputContainerClassName?: string;
|
|
30
|
-
hint?: string;
|
|
31
|
-
className?: string;
|
|
32
|
-
} & {
|
|
33
|
-
ref?: React.LegacyRef<HTMLDivElement>;
|
|
34
|
-
} & {
|
|
35
|
-
withoutLabel: true;
|
|
36
|
-
} & {
|
|
37
|
-
withoutLabel: true;
|
|
38
|
-
}, "ref">) & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { default as InputContainerProps } from '../../../models/prop-types/InputContainerProps';
|
|
2
|
+
|
|
3
|
+
declare const RowLabelInput: {
|
|
4
|
+
({ ref, hidden, children, required, disabled, className, isInvalid, isForRadioInput, isForTextAreaInput, inputContainerClassName, hint, ...props }: InputContainerProps & {
|
|
5
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
39
9
|
export default RowLabelInput;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { NotificationHistoryModel, NotificationModel, NotificationTarget, NotifTargetModel } from '../../../models/index';
|
|
2
1
|
import { default as BnfTableWrappedProps } from '../../../models/bnfTable/BnfTableWrappedProps';
|
|
2
|
+
import { NotificationHistoryModel, NotificationModel, NotificationTarget, NotifTargetModel } from '../../../models/index';
|
|
3
|
+
import { default as NotificationHistoryTableModel } from '../../../models/ui/notifications/NotificationHistoryTableModel';
|
|
3
4
|
import { default as NotificationKindFullModel } from './types/NotificationKindFullModel';
|
|
4
|
-
import { NotificationHistoryTableModel } from './types/NotificationHistoryTableModel';
|
|
5
5
|
|
|
6
|
-
type Props<T> = {
|
|
6
|
+
export type Props<T> = {
|
|
7
7
|
kinds: NotificationKindFullModel[];
|
|
8
8
|
targetSystem: 1 | 2 | 4;
|
|
9
9
|
reloadActions: (kindId: number) => Promise<Array<NotificationModel>>;
|
package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as BnfTableWrappedProps } from '../../../../../models/bnfTable/BnfTableWrappedProps';
|
|
2
2
|
import { NotificationHistoryModel } from '../../../../../models/index';
|
|
3
|
-
import { NotificationHistoryTableModel } from '
|
|
3
|
+
import { default as NotificationHistoryTableModel } from '../../../../../models/ui/notifications/NotificationHistoryTableModel';
|
|
4
4
|
|
|
5
5
|
type Props<T> = {
|
|
6
6
|
data: NotificationHistoryModel[];
|
|
@@ -4,7 +4,7 @@ import { default as PathParamsObject } from '../../../../models/ui/routes/PathPa
|
|
|
4
4
|
import { default as RouteInfo } from '../../../../models/ui/routes/RouteInfo';
|
|
5
5
|
import { ComponentProps, ReactNode } from 'react';
|
|
6
6
|
import { DropdownItem } from 'react-bootstrap';
|
|
7
|
-
import { Link } from 'react-router
|
|
7
|
+
import { Link } from 'react-router';
|
|
8
8
|
|
|
9
9
|
export type ResponsiveContextDropdownItemProps<SpecificRouteInfo extends RouteInfo = RouteInfo> = Omit<SharedProperties<ComponentProps<typeof ContextButton>, ComponentProps<typeof DropdownItem>>, 'as' | 'onCopy'> & {
|
|
10
10
|
/**
|
package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
|
|
4
4
|
declare const useReponsiveContextDropdownHelpers: () => {
|
|
5
5
|
getProcessedChildren: (children: Array<ResponsiveContextDropdownValidSimpleChildren> | ResponsiveContextDropdownValidSimpleChildren, screenSizeIndex: number) => {
|
|
6
|
-
buttons: ReactElement<
|
|
7
|
-
dropdownItems: ReactElement<
|
|
6
|
+
buttons: ReactElement<unknown, string | import('react').JSXElementConstructor<any>>[];
|
|
7
|
+
dropdownItems: ReactElement<unknown, string | import('react').JSXElementConstructor<any>>[];
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default useReponsiveContextDropdownHelpers;
|
|
@@ -3,4 +3,4 @@ import { default as ResponsiveContextDropdownItem, ResponsiveContextDropdownItem
|
|
|
3
3
|
|
|
4
4
|
export declare const SIZE_ARRAY: readonly ["sm", "md", "lg", "always"];
|
|
5
5
|
export declare const responsiveContextDropdownItemDisplayName = "ResponsiveContextDropdownItem";
|
|
6
|
-
export declare const isResponsiveContextDropdownItem: (e: ReactElement) => e is ReactElement<ResponsiveContextDropdownItemProps, typeof ResponsiveContextDropdownItem>;
|
|
6
|
+
export declare const isResponsiveContextDropdownItem: (e: ReactElement<unknown>) => e is ReactElement<ResponsiveContextDropdownItemProps, typeof ResponsiveContextDropdownItem>;
|
|
@@ -3,9 +3,9 @@ import { OverlayDelay, OverlayTriggerType } from 'react-bootstrap/esm/OverlayTri
|
|
|
3
3
|
|
|
4
4
|
type TooltipProps = {
|
|
5
5
|
heading?: string | ReactNode;
|
|
6
|
-
content: ReactElement
|
|
6
|
+
content: ReactElement<unknown>;
|
|
7
7
|
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
-
children: ReactElement
|
|
8
|
+
children: ReactElement<unknown>;
|
|
9
9
|
trigger?: OverlayTriggerType[];
|
|
10
10
|
popoverClassName?: string;
|
|
11
11
|
delay?: OverlayDelay;
|
|
@@ -4,7 +4,7 @@ import { OverlayDelay } from 'react-bootstrap/esm/OverlayTrigger';
|
|
|
4
4
|
type Props = {
|
|
5
5
|
text: string;
|
|
6
6
|
placement: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
-
children: ReactElement
|
|
7
|
+
children: ReactElement<unknown>;
|
|
8
8
|
delay?: OverlayDelay;
|
|
9
9
|
};
|
|
10
10
|
declare const SimpleTooltip: ({ text, placement, children, delay }: Props) => import("react").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import { default as React } from 'react';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
declare const AuthTemplate: ({ children }: Props) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
6
|
+
declare const AuthTemplate: ({ children }: Props) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
7
7
|
export default AuthTemplate;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactElement, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
type ErrorBoundaryProps = {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
fallback:
|
|
6
|
-
|
|
5
|
+
fallback: ReactElement<{
|
|
6
|
+
children: ReactNode[];
|
|
7
|
+
}>;
|
|
8
|
+
fallbackOn404?: ReactElement<{
|
|
9
|
+
children: ReactNode[];
|
|
10
|
+
}>;
|
|
7
11
|
navigateBack: () => void;
|
|
8
12
|
reloadButtonDisplay?: 'inject-to-child' | 'append-after-child' | 'none';
|
|
9
13
|
keyForErrorState?: string;
|
|
@@ -4,5 +4,7 @@ type FromToDatePickerDropdownToggleProps = {
|
|
|
4
4
|
onClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
5
5
|
text?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const FromToDatePickerDropdownToggle:
|
|
7
|
+
declare const FromToDatePickerDropdownToggle: ({ ref, onClick, text, }: FromToDatePickerDropdownToggleProps & {
|
|
8
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
}) => React.JSX.Element;
|
|
8
10
|
export default FromToDatePickerDropdownToggle;
|