react-luminus-components 1.3.40 → 1.3.43
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 +89 -72
- package/dist/{PrimaryButton-Dqcs3CVC.js → PrimaryButton-BFrVtg6N.js} +22 -22
- package/dist/PrimaryButton-gfx7ORrl.cjs +1 -0
- package/dist/SimpleTooltip-CPiESoIG.cjs +1 -0
- package/dist/{SimpleTooltip-BAj8LkNU.js → SimpleTooltip-Dr2e0zFE.js} +1 -1
- package/dist/components/common/DynamicForm/DynamicForm.d.ts +24 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormErrors/DynamicFormErrors.d.ts +9 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormMasterPicker/DynamicFormMasterPicker.d.ts +10 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/DynamicFormTable.d.ts +16 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/DynamicFormCreateTableRow/DynamicFormCreateTableRow.d.ts +9 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/DynamicFormTableRow/DynamicFormTableRow.d.ts +11 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/comps/DynamicFormInput/DynamicFormInput.d.ts +17 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/comps/index.d.ts +1 -0
- package/dist/components/common/DynamicForm/comps/DynamicFormTable/comps/index.d.ts +2 -0
- package/dist/components/common/DynamicForm/comps/index.d.ts +3 -0
- package/dist/components/common/DynamicForm/utils/itemTransformers.d.ts +4 -0
- package/dist/components/common/MonthPickerSearchParams/MonthPickerSearchParams.d.ts +8 -0
- package/dist/components/common/PieChart/PieChart.d.ts +11 -0
- package/dist/components/common/SettingsFormPicker/SettingsFormPicker.d.ts +19 -0
- package/dist/components/common/YearPickerSearchParams/YearPickerSearchParams.d.ts +9 -0
- package/dist/components/common/index.d.ts +5 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +2 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +96 -86
- package/dist/dateUtils-CdlSlzTj.cjs +1 -0
- package/dist/{dateUtils-BBdAuKvy.js → dateUtils-D9myY8YH.js} +19 -18
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +541 -569
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.es.js +2378 -1935
- package/dist/models/index.d.ts +1 -0
- package/dist/models/luminus-context-types/CommonLuminusIcons.d.ts +1 -1
- package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
- package/dist/models/texts/DynamicFormsTexts.d.ts +13 -0
- package/dist/models/types/dynamicForms/formPickerTypes/SettingsFormGroup.d.ts +8 -0
- package/dist/models/types/dynamicForms/formPickerTypes/SettingsFormItem.d.ts +8 -0
- package/dist/models/types/dynamicForms/index.d.ts +8 -0
- package/dist/models/types/dynamicForms/types/DynamicFormColumnDef.d.ts +12 -0
- package/dist/models/types/dynamicForms/types/DynamicFormColumnSchemaModel.d.ts +12 -0
- package/dist/models/types/dynamicForms/types/DynamicFormFilters.d.ts +4 -0
- package/dist/models/types/dynamicForms/types/DynamicFormIndexModel.d.ts +7 -0
- package/dist/models/types/dynamicForms/types/DynamicFormSchemaModel.d.ts +16 -0
- package/dist/models/types/dynamicForms/types/DynamicFormValueTypes.d.ts +12 -0
- package/dist/nivo-pie.es-DOBgqEbs.js +14707 -0
- package/dist/nivo-pie.es-DUIcm7NP.cjs +279 -0
- package/dist/searchUtils-BbsPikLG.cjs +1 -0
- package/dist/{searchUtils-D44ZkVNs.js → searchUtils-CeX2CGdl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useConfirm-Cak-t9R_.js +18 -0
- package/dist/useConfirm-DRK_YsaF.cjs +1 -0
- package/dist/useLocalStorageState-Cl-kvA9s.cjs +1 -0
- package/dist/useLocalStorageState-f0wzUR9M.js +61 -0
- package/dist/{usePermissions-DF_q-wC1.js → usePermissions-By1zm7HJ.js} +1 -1
- package/dist/usePermissions-CnhjSqOt.cjs +1 -0
- package/dist/useSearchQueryState-CS609A_4.cjs +1 -0
- package/dist/useSearchQueryState-QkR88Mks.js +51 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +15 -15
- package/package.json +4 -2
- package/dist/FromToDatePickerDropdownToggle-DrEcMDSn.js +0 -7774
- package/dist/FromToDatePickerDropdownToggle-U9J8VvT9.cjs +0 -253
- package/dist/PrimaryButton-Da4GxIOm.cjs +0 -1
- package/dist/SimpleTooltip-Dzk5Xqz6.cjs +0 -1
- package/dist/dateUtils--qPvcQrY.cjs +0 -1
- package/dist/searchUtils-BRuoWynE.cjs +0 -1
- package/dist/useFormControlType-BAFqxupC.js +0 -20
- package/dist/useFormControlType-Dqz8sV4J.cjs +0 -1
- package/dist/useLocalStorageState-BuXnU9lw.js +0 -75
- package/dist/useLocalStorageState-CBt0FNic.cjs +0 -1
- package/dist/usePermissions-BrYbzBzf.cjs +0 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,114 +1,129 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"file": "
|
|
4
|
-
"name": "FromToDatePickerDropdownToggle"
|
|
5
|
-
},
|
|
6
|
-
"_FromToDatePickerDropdownToggle-U9J8VvT9.cjs": {
|
|
7
|
-
"file": "FromToDatePickerDropdownToggle-U9J8VvT9.cjs",
|
|
8
|
-
"name": "FromToDatePickerDropdownToggle"
|
|
9
|
-
},
|
|
10
|
-
"_PrimaryButton-Da4GxIOm.cjs": {
|
|
11
|
-
"file": "PrimaryButton-Da4GxIOm.cjs",
|
|
2
|
+
"_PrimaryButton-BFrVtg6N.js": {
|
|
3
|
+
"file": "PrimaryButton-BFrVtg6N.js",
|
|
12
4
|
"name": "PrimaryButton",
|
|
13
5
|
"imports": [
|
|
14
|
-
"
|
|
6
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
15
7
|
]
|
|
16
8
|
},
|
|
17
|
-
"_PrimaryButton-
|
|
18
|
-
"file": "PrimaryButton-
|
|
9
|
+
"_PrimaryButton-gfx7ORrl.cjs": {
|
|
10
|
+
"file": "PrimaryButton-gfx7ORrl.cjs",
|
|
19
11
|
"name": "PrimaryButton",
|
|
20
12
|
"imports": [
|
|
21
|
-
"
|
|
13
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
22
14
|
]
|
|
23
15
|
},
|
|
24
|
-
"_SimpleTooltip-
|
|
25
|
-
"file": "SimpleTooltip-
|
|
16
|
+
"_SimpleTooltip-CPiESoIG.cjs": {
|
|
17
|
+
"file": "SimpleTooltip-CPiESoIG.cjs",
|
|
26
18
|
"name": "SimpleTooltip",
|
|
27
19
|
"imports": [
|
|
28
|
-
"
|
|
20
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
29
21
|
]
|
|
30
22
|
},
|
|
31
|
-
"_SimpleTooltip-
|
|
32
|
-
"file": "SimpleTooltip-
|
|
23
|
+
"_SimpleTooltip-Dr2e0zFE.js": {
|
|
24
|
+
"file": "SimpleTooltip-Dr2e0zFE.js",
|
|
33
25
|
"name": "SimpleTooltip",
|
|
34
26
|
"imports": [
|
|
35
|
-
"
|
|
27
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
36
28
|
]
|
|
37
29
|
},
|
|
38
|
-
"_dateUtils
|
|
39
|
-
"file": "dateUtils
|
|
30
|
+
"_dateUtils-CdlSlzTj.cjs": {
|
|
31
|
+
"file": "dateUtils-CdlSlzTj.cjs",
|
|
40
32
|
"name": "dateUtils",
|
|
41
33
|
"imports": [
|
|
42
|
-
"
|
|
34
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
43
35
|
]
|
|
44
36
|
},
|
|
45
|
-
"_dateUtils-
|
|
46
|
-
"file": "dateUtils-
|
|
37
|
+
"_dateUtils-D9myY8YH.js": {
|
|
38
|
+
"file": "dateUtils-D9myY8YH.js",
|
|
47
39
|
"name": "dateUtils",
|
|
48
40
|
"imports": [
|
|
49
|
-
"
|
|
41
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
50
42
|
]
|
|
51
43
|
},
|
|
52
|
-
"
|
|
53
|
-
"file": "
|
|
44
|
+
"_nivo-pie.es-DOBgqEbs.js": {
|
|
45
|
+
"file": "nivo-pie.es-DOBgqEbs.js",
|
|
46
|
+
"name": "nivo-pie.es"
|
|
47
|
+
},
|
|
48
|
+
"_nivo-pie.es-DUIcm7NP.cjs": {
|
|
49
|
+
"file": "nivo-pie.es-DUIcm7NP.cjs",
|
|
50
|
+
"name": "nivo-pie.es"
|
|
51
|
+
},
|
|
52
|
+
"_searchUtils-BbsPikLG.cjs": {
|
|
53
|
+
"file": "searchUtils-BbsPikLG.cjs",
|
|
54
54
|
"name": "searchUtils",
|
|
55
55
|
"imports": [
|
|
56
|
-
"
|
|
56
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
"_searchUtils-
|
|
60
|
-
"file": "searchUtils-
|
|
59
|
+
"_searchUtils-CeX2CGdl.js": {
|
|
60
|
+
"file": "searchUtils-CeX2CGdl.js",
|
|
61
61
|
"name": "searchUtils",
|
|
62
62
|
"imports": [
|
|
63
|
-
"
|
|
63
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"
|
|
67
|
-
"file": "
|
|
68
|
-
"name": "
|
|
66
|
+
"_useConfirm-Cak-t9R_.js": {
|
|
67
|
+
"file": "useConfirm-Cak-t9R_.js",
|
|
68
|
+
"name": "useConfirm",
|
|
69
|
+
"imports": [
|
|
70
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
71
|
+
]
|
|
69
72
|
},
|
|
70
|
-
"
|
|
71
|
-
"file": "
|
|
72
|
-
"name": "
|
|
73
|
+
"_useConfirm-DRK_YsaF.cjs": {
|
|
74
|
+
"file": "useConfirm-DRK_YsaF.cjs",
|
|
75
|
+
"name": "useConfirm",
|
|
76
|
+
"imports": [
|
|
77
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
78
|
+
]
|
|
73
79
|
},
|
|
74
|
-
"_useLocalStorageState-
|
|
75
|
-
"file": "useLocalStorageState-
|
|
80
|
+
"_useLocalStorageState-Cl-kvA9s.cjs": {
|
|
81
|
+
"file": "useLocalStorageState-Cl-kvA9s.cjs",
|
|
76
82
|
"name": "useLocalStorageState",
|
|
77
83
|
"imports": [
|
|
78
|
-
"
|
|
84
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
79
85
|
]
|
|
80
86
|
},
|
|
81
|
-
"_useLocalStorageState-
|
|
82
|
-
"file": "useLocalStorageState-
|
|
87
|
+
"_useLocalStorageState-f0wzUR9M.js": {
|
|
88
|
+
"file": "useLocalStorageState-f0wzUR9M.js",
|
|
83
89
|
"name": "useLocalStorageState",
|
|
84
90
|
"imports": [
|
|
85
|
-
"
|
|
91
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
86
92
|
]
|
|
87
93
|
},
|
|
88
|
-
"_usePermissions-
|
|
89
|
-
"file": "usePermissions-
|
|
94
|
+
"_usePermissions-By1zm7HJ.js": {
|
|
95
|
+
"file": "usePermissions-By1zm7HJ.js",
|
|
90
96
|
"name": "usePermissions",
|
|
91
97
|
"imports": [
|
|
92
|
-
"
|
|
98
|
+
"_nivo-pie.es-DOBgqEbs.js"
|
|
93
99
|
]
|
|
94
100
|
},
|
|
95
|
-
"_usePermissions-
|
|
96
|
-
"file": "usePermissions-
|
|
101
|
+
"_usePermissions-CnhjSqOt.cjs": {
|
|
102
|
+
"file": "usePermissions-CnhjSqOt.cjs",
|
|
97
103
|
"name": "usePermissions",
|
|
98
104
|
"imports": [
|
|
99
|
-
"
|
|
105
|
+
"_nivo-pie.es-DUIcm7NP.cjs"
|
|
100
106
|
]
|
|
101
107
|
},
|
|
108
|
+
"_useSearchQueryState-CS609A_4.cjs": {
|
|
109
|
+
"file": "useSearchQueryState-CS609A_4.cjs",
|
|
110
|
+
"name": "useSearchQueryState"
|
|
111
|
+
},
|
|
112
|
+
"_useSearchQueryState-QkR88Mks.js": {
|
|
113
|
+
"file": "useSearchQueryState-QkR88Mks.js",
|
|
114
|
+
"name": "useSearchQueryState"
|
|
115
|
+
},
|
|
102
116
|
"src/contexts/index.ts": {
|
|
103
117
|
"file": "contexts.cjs.js",
|
|
104
118
|
"name": "contexts",
|
|
105
119
|
"src": "src/contexts/index.ts",
|
|
106
120
|
"isEntry": true,
|
|
107
121
|
"imports": [
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"_PrimaryButton-
|
|
111
|
-
"
|
|
122
|
+
"_nivo-pie.es-DUIcm7NP.cjs",
|
|
123
|
+
"_useConfirm-DRK_YsaF.cjs",
|
|
124
|
+
"_PrimaryButton-gfx7ORrl.cjs",
|
|
125
|
+
"_useLocalStorageState-Cl-kvA9s.cjs",
|
|
126
|
+
"_dateUtils-CdlSlzTj.cjs"
|
|
112
127
|
]
|
|
113
128
|
},
|
|
114
129
|
"src/hooks/index.ts": {
|
|
@@ -117,11 +132,12 @@
|
|
|
117
132
|
"src": "src/hooks/index.ts",
|
|
118
133
|
"isEntry": true,
|
|
119
134
|
"imports": [
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
135
|
+
"_nivo-pie.es-DUIcm7NP.cjs",
|
|
136
|
+
"_useConfirm-DRK_YsaF.cjs",
|
|
137
|
+
"_useLocalStorageState-Cl-kvA9s.cjs",
|
|
138
|
+
"_dateUtils-CdlSlzTj.cjs",
|
|
139
|
+
"_useSearchQueryState-CS609A_4.cjs",
|
|
140
|
+
"_usePermissions-CnhjSqOt.cjs"
|
|
125
141
|
]
|
|
126
142
|
},
|
|
127
143
|
"src/layout/index.ts": {
|
|
@@ -130,9 +146,9 @@
|
|
|
130
146
|
"src": "src/layout/index.ts",
|
|
131
147
|
"isEntry": true,
|
|
132
148
|
"imports": [
|
|
133
|
-
"
|
|
134
|
-
"_usePermissions-
|
|
135
|
-
"_SimpleTooltip-
|
|
149
|
+
"_nivo-pie.es-DUIcm7NP.cjs",
|
|
150
|
+
"_usePermissions-CnhjSqOt.cjs",
|
|
151
|
+
"_SimpleTooltip-CPiESoIG.cjs"
|
|
136
152
|
]
|
|
137
153
|
},
|
|
138
154
|
"src/main.ts": {
|
|
@@ -141,12 +157,13 @@
|
|
|
141
157
|
"src": "src/main.ts",
|
|
142
158
|
"isEntry": true,
|
|
143
159
|
"imports": [
|
|
144
|
-
"
|
|
145
|
-
"_PrimaryButton-
|
|
146
|
-
"_dateUtils
|
|
147
|
-
"_SimpleTooltip-
|
|
148
|
-
"
|
|
149
|
-
"
|
|
160
|
+
"_nivo-pie.es-DUIcm7NP.cjs",
|
|
161
|
+
"_PrimaryButton-gfx7ORrl.cjs",
|
|
162
|
+
"_dateUtils-CdlSlzTj.cjs",
|
|
163
|
+
"_SimpleTooltip-CPiESoIG.cjs",
|
|
164
|
+
"_useSearchQueryState-CS609A_4.cjs",
|
|
165
|
+
"_useConfirm-DRK_YsaF.cjs",
|
|
166
|
+
"_searchUtils-BbsPikLG.cjs"
|
|
150
167
|
]
|
|
151
168
|
},
|
|
152
169
|
"src/utils/index.ts": {
|
|
@@ -155,10 +172,10 @@
|
|
|
155
172
|
"src": "src/utils/index.ts",
|
|
156
173
|
"isEntry": true,
|
|
157
174
|
"imports": [
|
|
158
|
-
"
|
|
159
|
-
"_dateUtils
|
|
160
|
-
"_searchUtils-
|
|
161
|
-
"_SimpleTooltip-
|
|
175
|
+
"_nivo-pie.es-DUIcm7NP.cjs",
|
|
176
|
+
"_dateUtils-CdlSlzTj.cjs",
|
|
177
|
+
"_searchUtils-BbsPikLG.cjs",
|
|
178
|
+
"_SimpleTooltip-CPiESoIG.cjs"
|
|
162
179
|
]
|
|
163
180
|
},
|
|
164
181
|
"style.css": {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as r, c as d, P as D, M as tt, v as R, J as nt,
|
|
1
|
+
import { j as r, c as d, P as D, M as tt, v as R, J as nt, au as be, av as Se, o as V, G as $e, aw as ot, ax as st, w as T, ay as je, az as ke, aA as Le, aB as at, aC as _e, aD as rt, A as it, I as lt, L as dt, aE as Oe, F as De, H as ct, aF as ut } from "./nivo-pie.es-DOBgqEbs.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { useRef as N, useEffect as we, useContext as Ie, forwardRef as ft, useState as ve, useImperativeHandle as mt, useCallback as
|
|
3
|
+
import { useRef as N, useEffect as we, useContext as Ie, forwardRef as ft, useState as ve, useImperativeHandle as mt, useCallback as Ee, useMemo as gt } from "react";
|
|
4
4
|
import ht from "react-dom";
|
|
5
5
|
import { Link as pt } from "react-router-dom";
|
|
6
|
-
const yt = "_loading_rgybp_1", wt = "_spinner-grow_rgybp_10", vt = "_second_rgybp_14",
|
|
6
|
+
const yt = "_loading_rgybp_1", wt = "_spinner-grow_rgybp_10", vt = "_second_rgybp_14", Et = "_third_rgybp_17", bt = "_loadingBlock_rgybp_21", F = {
|
|
7
7
|
loading: yt,
|
|
8
8
|
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
9
9
|
spinnerGrow: wt,
|
|
10
10
|
second: vt,
|
|
11
|
-
third:
|
|
12
|
-
loadingBlock:
|
|
11
|
+
third: Et,
|
|
12
|
+
loadingBlock: bt
|
|
13
13
|
}, Zt = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", F.loading), children: [
|
|
14
14
|
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary"), role: "status" }),
|
|
15
15
|
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary", F.second), role: "status" }),
|
|
@@ -118,7 +118,7 @@ const Pt = Object.assign(We, {
|
|
|
118
118
|
});
|
|
119
119
|
var oe;
|
|
120
120
|
function Be(t) {
|
|
121
|
-
if ((!oe && oe !== 0 || t) &&
|
|
121
|
+
if ((!oe && oe !== 0 || t) && be) {
|
|
122
122
|
var e = document.createElement("div");
|
|
123
123
|
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), oe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
124
124
|
}
|
|
@@ -212,10 +212,10 @@ function At(t) {
|
|
|
212
212
|
add: () => n.add(o.current),
|
|
213
213
|
remove: () => n.remove(o.current),
|
|
214
214
|
isTopModal: () => n.isTopModal(o.current),
|
|
215
|
-
setDialogRef:
|
|
215
|
+
setDialogRef: Ee((s) => {
|
|
216
216
|
o.current.dialog = s;
|
|
217
217
|
}, []),
|
|
218
|
-
setBackdropRef:
|
|
218
|
+
setBackdropRef: Ee((s) => {
|
|
219
219
|
o.current.backdrop = s;
|
|
220
220
|
}, [])
|
|
221
221
|
});
|
|
@@ -253,9 +253,9 @@ const He = /* @__PURE__ */ ft((t, e) => {
|
|
|
253
253
|
onEntering: Q,
|
|
254
254
|
onEntered: Z
|
|
255
255
|
} = t, ue = Ot(t, _t);
|
|
256
|
-
const
|
|
257
|
-
mt(e, () => c, [c]),
|
|
258
|
-
const
|
|
256
|
+
const E = $e(), j = ot(de), c = At(le), fe = st(), P = Nt(n), [C, k] = ve(!n), g = N(null);
|
|
257
|
+
mt(e, () => c, [c]), be && !P && n && (g.current = he(E == null ? void 0 : E.document)), n && C && k(!1);
|
|
258
|
+
const b = T(() => {
|
|
259
259
|
if (c.add(), _.current = je(document, "keydown", ge), G.current = je(
|
|
260
260
|
document,
|
|
261
261
|
"focus",
|
|
@@ -265,7 +265,7 @@ const He = /* @__PURE__ */ ft((t, e) => {
|
|
|
265
265
|
!0
|
|
266
266
|
), q && q(), z) {
|
|
267
267
|
var l, ne;
|
|
268
|
-
const U = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l :
|
|
268
|
+
const U = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : E == null ? void 0 : E.document);
|
|
269
269
|
c.dialog && U && !ke(c.dialog, U) && (g.current = U, c.dialog.focus());
|
|
270
270
|
}
|
|
271
271
|
}), H = T(() => {
|
|
@@ -275,12 +275,12 @@ const He = /* @__PURE__ */ ft((t, e) => {
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
we(() => {
|
|
278
|
-
!n || !j ||
|
|
278
|
+
!n || !j || b();
|
|
279
279
|
}, [
|
|
280
280
|
n,
|
|
281
281
|
j,
|
|
282
282
|
/* should never change: */
|
|
283
|
-
|
|
283
|
+
b
|
|
284
284
|
]), we(() => {
|
|
285
285
|
C && H();
|
|
286
286
|
}, [C, H]), Le(() => {
|
|
@@ -289,7 +289,7 @@ const He = /* @__PURE__ */ ft((t, e) => {
|
|
|
289
289
|
const me = T(() => {
|
|
290
290
|
if (!ae || !fe() || !c.isTopModal())
|
|
291
291
|
return;
|
|
292
|
-
const l = he(
|
|
292
|
+
const l = he(E == null ? void 0 : E.document);
|
|
293
293
|
c.dialog && l && !ke(c.dialog, l) && c.dialog.focus();
|
|
294
294
|
}), ee = T((l) => {
|
|
295
295
|
l.target === l.currentTarget && (v == null || v(l), f === !0 && I());
|
|
@@ -535,8 +535,8 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
|
|
|
535
535
|
backdropClassName: Q,
|
|
536
536
|
manager: Z,
|
|
537
537
|
...ue
|
|
538
|
-
},
|
|
539
|
-
const [j, c] = ve({}), [fe, P] = ve(!1), C = N(!1), k = N(!1), g = N(null), [
|
|
538
|
+
}, E) => {
|
|
539
|
+
const [j, c] = ve({}), [fe, P] = ve(!1), C = N(!1), k = N(!1), g = N(null), [b, H] = it(), me = lt(E, H), ee = T(x), ge = dt();
|
|
540
540
|
t = R(t, "modal");
|
|
541
541
|
const G = gt(() => ({
|
|
542
542
|
onHide: ee
|
|
@@ -547,7 +547,7 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
|
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
function te(i) {
|
|
550
|
-
if (!
|
|
550
|
+
if (!be) return;
|
|
551
551
|
const A = _().getScrollbarWidth() > 0, xe = i.scrollHeight > Se(i).documentElement.clientHeight;
|
|
552
552
|
c({
|
|
553
553
|
paddingRight: A && !xe ? Be() : void 0,
|
|
@@ -555,7 +555,7 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
const O = T(() => {
|
|
558
|
-
|
|
558
|
+
b && te(b.dialog);
|
|
559
559
|
});
|
|
560
560
|
Le(() => {
|
|
561
561
|
Oe(window, "resize", O), g.current == null || g.current();
|
|
@@ -563,9 +563,9 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
|
|
|
563
563
|
const K = () => {
|
|
564
564
|
C.current = !0;
|
|
565
565
|
}, B = (i) => {
|
|
566
|
-
C.current &&
|
|
566
|
+
C.current && b && i.target === b.dialog && (k.current = !0), C.current = !1;
|
|
567
567
|
}, l = () => {
|
|
568
|
-
P(!0), g.current = ut(
|
|
568
|
+
P(!0), g.current = ut(b.dialog, () => {
|
|
569
569
|
P(!1);
|
|
570
570
|
});
|
|
571
571
|
}, ne = (i) => {
|
|
@@ -590,7 +590,7 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
|
|
|
590
590
|
Y == null || Y(i, A), ct(window, "resize", O);
|
|
591
591
|
}, Ze = (i) => {
|
|
592
592
|
i && (i.style.display = ""), J == null || J(i), Oe(window, "resize", O);
|
|
593
|
-
}, Pe =
|
|
593
|
+
}, Pe = Ee((i) => /* @__PURE__ */ r.jsx("div", {
|
|
594
594
|
...i,
|
|
595
595
|
className: d(`${t}-backdrop`, Q, !y && "show")
|
|
596
596
|
}), [y, Q, t]), Re = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./nivo-pie.es-DUIcm7NP.cjs"),c=require("react"),Ke=require("react-dom"),qe=require("react-router-dom");function Ve(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const u=Ve(c),ze="_loading_rgybp_1",Pe="_spinner-grow_rgybp_10",Xe="_second_rgybp_14",Ye="_third_rgybp_17",Je="_loadingBlock_rgybp_21",N={loading:ze,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:Pe,second:Xe,third:Ye,loadingBlock:Je},Qe=()=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",N.loading),children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",N.spinnerGrow,"text-primary",N.third),role:"status"})]}),we=t=>u.forwardRef((e,s)=>n.jsxRuntimeExports.jsx("div",{...e,ref:s,className:n.classNames(e.className,t)}));function Ne(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const Ze={"aria-label":n.Oe.string,onClick:n.Oe.func,variant:n.Oe.oneOf(["white"])},Z=u.forwardRef(({className:t,variant:e,"aria-label":s="Close",...o},r)=>n.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:n.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":s,...o}));Z.displayName="CloseButton";Z.propTypes=Ze;var et=Function.prototype.bind.call(Function.prototype.call,[].slice);function j(t,e){return et(t.querySelectorAll(e))}const tt="data-rr-ui-";function je(t){return`${tt}${t}`}const nt={type:n.Oe.string,tooltip:n.Oe.bool,as:n.Oe.elementType},ee=u.forwardRef(({as:t="div",className:e,type:s="valid",tooltip:o=!1,...r},a)=>n.jsxRuntimeExports.jsx(t,{...r,ref:a,className:n.classNames(e,`${s}-${o?"tooltip":"feedback"}`)}));ee.displayName="Feedback";ee.propTypes=nt;const Ce=u.forwardRef(({bsPrefix:t,type:e,size:s,htmlSize:o,id:r,className:a,isValid:g=!1,isInvalid:m=!1,plaintext:h,readOnly:y,as:f="input",...v},x)=>{const{controlId:E}=c.useContext(n.FormContext);return t=n.useBootstrapPrefix(t,"form-control"),process.env.NODE_ENV!=="production"&&n.warning(E==null||!r,"`controlId` is ignored on `<FormControl>` when `id` is specified."),n.jsxRuntimeExports.jsx(f,{...v,type:e,size:o,ref:x,readOnly:y,id:r||E,className:n.classNames(a,h?`${t}-plaintext`:t,s&&`${t}-${s}`,e==="color"&&`${t}-color`,g&&"is-valid",m&&"is-invalid")})});Ce.displayName="FormControl";const st=Object.assign(Ce,{Feedback:ee});var Q;function Re(t){if((!Q&&Q!==0||t)&&n.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),Q=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Q}function me(t){t===void 0&&(t=n.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ot(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const be=je("modal-open");class ge{constructor({ownerDocument:e,handleContainerOverflow:s=!0,isRTL:o=!1}={}){this.handleContainerOverflow=s,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ot(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const s={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(s[o]=`${parseInt(n.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(be,""),n.style(r,s)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const s=this.getElement();s.removeAttribute(be),Object.assign(s.style,e.style)}add(e){let s=this.modals.indexOf(e);return s!==-1||(s=this.modals.length,this.modals.push(e),this.setModalAttributes(e),s!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),s}remove(e){const s=this.modals.indexOf(e);s!==-1&&(this.modals.splice(s,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const rt=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function at(t,e){if(t==null)return{};var s={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;s[o]=t[o]}return s}let fe;function it(t){return fe||(fe=new ge({ownerDocument:t==null?void 0:t.document})),fe}function lt(t){const e=n.useWindow(),s=t||it(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>s.add(o.current),remove:()=>s.remove(o.current),isTopModal:()=>s.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Me=c.forwardRef((t,e)=>{let{show:s=!1,role:o="dialog",className:r,style:a,children:g,backdrop:m=!0,keyboard:h=!0,onBackdropClick:y,onEscapeKeyDown:f,transition:v,runTransition:x,backdropTransition:E,runBackdropTransition:te,autoFocus:H=!0,enforceFocus:ne=!0,restoreFocus:C=!0,restoreFocusOptions:se,renderDialog:U,renderBackdrop:oe=l=>n.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:re,container:ae,onShow:G,onHide:F=()=>{},onExit:ie,onExited:$,onExiting:K,onEnter:q,onEntering:V,onEntered:z}=t,le=at(t,rt);const R=n.useWindow(),M=n.useWaitForDOMRef(ae),d=lt(re),ce=n.useMounted(),P=Ne(s),[w,T]=c.useState(!s),p=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),n.canUseDOM&&!P&&s&&(p.current=me(R==null?void 0:R.document)),s&&w&&T(!1);const b=n.useEventCallback(()=>{if(d.add(),k.current=n.listen(document,"keydown",ue),L.current=n.listen(document,"focus",()=>setTimeout(de),!0),G&&G(),H){var l,J;const W=me((l=(J=d.dialog)==null?void 0:J.ownerDocument)!=null?l:R==null?void 0:R.document);d.dialog&&W&&!n.contains(d.dialog,W)&&(p.current=W,d.dialog.focus())}}),D=n.useEventCallback(()=>{if(d.remove(),k.current==null||k.current(),L.current==null||L.current(),C){var l;(l=p.current)==null||l.focus==null||l.focus(se),p.current=null}});c.useEffect(()=>{!s||!M||b()},[s,M,b]),c.useEffect(()=>{w&&D()},[w,D]),n.useWillUnmount(()=>{D()});const de=n.useEventCallback(()=>{if(!ne||!ce()||!d.isTopModal())return;const l=me(R==null?void 0:R.document);d.dialog&&l&&!n.contains(d.dialog,l)&&d.dialog.focus()}),X=n.useEventCallback(l=>{l.target===l.currentTarget&&(y==null||y(l),m===!0&&F())}),ue=n.useEventCallback(l=>{h&&n.isEscKey(l)&&d.isTopModal()&&(f==null||f(l),l.defaultPrevented||F())}),L=c.useRef(),k=c.useRef(),Y=(...l)=>{T(!0),$==null||$(...l)};if(!M)return null;const O=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},le,{style:a,className:r,tabIndex:-1});let I=U?U(O):n.jsxRuntimeExports.jsx("div",Object.assign({},O,{children:u.cloneElement(g,{role:"document"})}));I=n.renderTransition(v,x,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!s,onExit:ie,onExiting:K,onExited:Y,onEnter:q,onEntering:V,onEntered:z,children:I});let _=null;return m&&(_=oe({ref:d.setBackdropRef,onClick:X}),_=n.renderTransition(E,te,{in:!!s,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:_})),n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Ke.createPortal(n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[_,I]}),M)})});Me.displayName="Modal";const Te=Object.assign(Me,{Manager:ge});function ct(t,e){t.classList?t.classList.add(e):n.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ve(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dt(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ve(t.className,e):t.setAttribute("class",ve(t.className&&t.className.baseVal||"",e))}const S={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class ke extends ge{adjustAndStore(e,s,o){const r=s.style[e];s.dataset[e]=r,n.style(s,{[e]:`${parseFloat(n.style(s,e))+o}px`})}restore(e,s){const o=s.dataset[e];o!==void 0&&(delete s.dataset[e],n.style(s,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const s=this.getElement();if(ct(s,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.adjustAndStore(o,a,e.scrollBarWidth)),j(s,S.STICKY_CONTENT).forEach(a=>this.adjustAndStore(r,a,-e.scrollBarWidth)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(r,a,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const s=this.getElement();dt(s,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,S.FIXED_CONTENT).forEach(a=>this.restore(o,a)),j(s,S.STICKY_CONTENT).forEach(a=>this.restore(r,a)),j(s,S.NAVBAR_TOGGLER).forEach(a=>this.restore(r,a))}}let pe;function Oe(t){return pe||(pe=new ke(t)),pe}const _e=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-body"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));_e.displayName="ModalBody";const he=u.createContext({onHide(){}}),xe=u.forwardRef(({bsPrefix:t,className:e,contentClassName:s,centered:o,size:r,fullscreen:a,children:g,scrollable:m,...h},y)=>{t=n.useBootstrapPrefix(t,"modal");const f=`${t}-dialog`,v=typeof a=="string"?`${t}-fullscreen-${a}`:`${t}-fullscreen`;return n.jsxRuntimeExports.jsx("div",{...h,ref:y,className:n.classNames(f,e,r&&`${t}-${r}`,o&&`${f}-centered`,m&&`${f}-scrollable`,a&&v),children:n.jsxRuntimeExports.jsx("div",{className:n.classNames(`${t}-content`,s),children:g})})});xe.displayName="ModalDialog";const Be=u.forwardRef(({className:t,bsPrefix:e,as:s="div",...o},r)=>(e=n.useBootstrapPrefix(e,"modal-footer"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Be.displayName="ModalFooter";const Se=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:s=!1,onHide:o,children:r,...a},g)=>{const m=c.useContext(he),h=n.useEventCallback(()=>{m==null||m.onHide(),o==null||o()});return n.jsxRuntimeExports.jsxs("div",{ref:g,...a,children:[r,s&&n.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:h})]})}),Ae=u.forwardRef(({bsPrefix:t,className:e,closeLabel:s="Close",closeButton:o=!1,...r},a)=>(t=n.useBootstrapPrefix(t,"modal-header"),n.jsxRuntimeExports.jsx(Se,{ref:a,...r,className:n.classNames(e,t),closeLabel:s,closeButton:o})));Ae.displayName="ModalHeader";const ut=we("h4"),Fe=u.forwardRef(({className:t,bsPrefix:e,as:s=ut,...o},r)=>(e=n.useBootstrapPrefix(e,"modal-title"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...o})));Fe.displayName="ModalTitle";function mt(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}function ft(t){return n.jsxRuntimeExports.jsx(n.Fade,{...t,timeout:null})}const $e=u.forwardRef(({bsPrefix:t,className:e,style:s,dialogClassName:o,contentClassName:r,children:a,dialogAs:g=xe,"data-bs-theme":m,"aria-labelledby":h,"aria-describedby":y,"aria-label":f,show:v=!1,animation:x=!0,backdrop:E=!0,keyboard:te=!0,onEscapeKeyDown:H,onShow:ne,onHide:C,container:se,autoFocus:U=!0,enforceFocus:oe=!0,restoreFocus:re=!0,restoreFocusOptions:ae,onEntered:G,onExit:F,onExiting:ie,onEnter:$,onEntering:K,onExited:q,backdropClassName:V,manager:z,...le},R)=>{const[M,d]=c.useState({}),[ce,P]=c.useState(!1),w=c.useRef(!1),T=c.useRef(!1),p=c.useRef(null),[b,D]=n.useCallbackRef(),de=n.useMergedRefs(R,D),X=n.useEventCallback(C),ue=n.useIsRTL();t=n.useBootstrapPrefix(t,"modal");const L=c.useMemo(()=>({onHide:X}),[X]);function k(){return z||Oe({isRTL:ue})}function Y(i){if(!n.canUseDOM)return;const B=k().getScrollbarWidth()>0,ye=i.scrollHeight>n.ownerDocument(i).documentElement.clientHeight;d({paddingRight:B&&!ye?Re():void 0,paddingLeft:!B&&ye?Re():void 0})}const O=n.useEventCallback(()=>{b&&Y(b.dialog)});n.useWillUnmount(()=>{n.removeEventListener(window,"resize",O),p.current==null||p.current()});const I=()=>{w.current=!0},_=i=>{w.current&&b&&i.target===b.dialog&&(T.current=!0),w.current=!1},l=()=>{P(!0),p.current=n.transitionEnd(b.dialog,()=>{P(!1)})},J=i=>{i.target===i.currentTarget&&l()},W=i=>{if(E==="static"){J(i);return}if(T.current||i.target!==i.currentTarget){T.current=!1;return}C==null||C()},De=i=>{te?H==null||H(i):(i.preventDefault(),E==="static"&&l())},Le=(i,B)=>{i&&Y(i),$==null||$(i,B)},Ie=i=>{p.current==null||p.current(),F==null||F(i)},We=(i,B)=>{K==null||K(i,B),n.addEventListener(window,"resize",O)},He=i=>{i&&(i.style.display=""),q==null||q(i),n.removeEventListener(window,"resize",O)},Ue=c.useCallback(i=>n.jsxRuntimeExports.jsx("div",{...i,className:n.classNames(`${t}-backdrop`,V,!x&&"show")}),[x,V,t]),Ee={...s,...M};Ee.display="block";const Ge=i=>n.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:Ee,className:n.classNames(e,t,ce&&`${t}-static`,!x&&"show"),onClick:E?W:void 0,onMouseUp:_,"data-bs-theme":m,"aria-label":f,"aria-labelledby":h,"aria-describedby":y,children:n.jsxRuntimeExports.jsx(g,{...le,onMouseDown:I,className:o,contentClassName:r,children:a})});return n.jsxRuntimeExports.jsx(he.Provider,{value:L,children:n.jsxRuntimeExports.jsx(Te,{show:v,ref:de,backdrop:E,container:se,keyboard:!0,autoFocus:U,enforceFocus:oe,restoreFocus:re,restoreFocusOptions:ae,onEscapeKeyDown:De,onShow:ne,onHide:C,onEnter:Le,onEntering:We,onEntered:G,onExit:Ie,onExiting:ie,onExited:He,manager:k(),transition:x?mt:void 0,backdropTransition:x?ft:void 0,renderBackdrop:Ue,renderDialog:Ge})})});$e.displayName="Modal";const pt=Object.assign($e,{Body:_e,Header:Ae,Title:Fe,Footer:Be,Dialog:xe,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),gt="_button_1wjon_1",ht="_filled_1wjon_7",xt="_sm_1wjon_13",Et="_md_1wjon_18",yt="_lg_1wjon_23",A={button:gt,filled:ht,sm:xt,md:Et,lg:yt},Rt=({variant:t="filled",color:e="primary",size:s="md",className:o,children:r,...a})=>a.as==="link"?n.jsxRuntimeExports.jsx(qe.Link,{to:a.href??"/",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):a.as==="button"||a.as===void 0?n.jsxRuntimeExports.jsx("button",{type:"button",className:n.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,A.button,A[t],A[s]),...a,children:r}):null;exports.AbstractModalHeader=Se;exports.BaseModal=Te;exports.BootstrapModalManager=ke;exports.CloseButton=Z;exports.Feedback=ee;exports.FormControl=st;exports.Loading=Qe;exports.Modal=pt;exports.ModalContext=he;exports.PrimaryButton=Rt;exports.classes=N;exports.dataAttr=je;exports.divWithClassName=we;exports.getSharedManager=Oe;exports.qsa=j;exports.usePrevious=Ne;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./nivo-pie.es-DUIcm7NP.cjs"),t=({text:i,placement:o,children:s})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:i}),children:s});exports.SimpleTooltip=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, Q as a,
|
|
1
|
+
import { j as o, Q as a, aT as e } from "./nivo-pie.es-DOBgqEbs.js";
|
|
2
2
|
const l = ({ text: s, placement: r, children: t }) => /* @__PURE__ */ o.jsx(a, { placement: r, overlay: /* @__PURE__ */ o.jsx(e, { className: "luminus-tooltip", children: s }), children: t });
|
|
3
3
|
export {
|
|
4
4
|
l as S
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DynamicFormFilters } from '../../../models/types/dynamicForms';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
id: string;
|
|
5
|
+
page: number | null;
|
|
6
|
+
setPage: (value: number | null) => void;
|
|
7
|
+
filters: DynamicFormFilters;
|
|
8
|
+
setFilter: (field: string, value: string | null) => void;
|
|
9
|
+
sortByField: string | null;
|
|
10
|
+
sortByType: 'asc' | 'desc' | null;
|
|
11
|
+
setSortBy: (field: string | null, type: 'asc' | 'desc' | null) => void;
|
|
12
|
+
appUrls?: {
|
|
13
|
+
appDetail?: string;
|
|
14
|
+
};
|
|
15
|
+
apiUrls?: {
|
|
16
|
+
apiSchemaGet?: string;
|
|
17
|
+
apiDataGet?: string;
|
|
18
|
+
apiItemPost?: string;
|
|
19
|
+
apiItemDelete?: string;
|
|
20
|
+
apiItemCreate?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare const DynamicForm: ({ id, page, setPage, filters, setFilter, sortByField, sortByType, setSortBy, appUrls: { appDetail }, apiUrls: { apiSchemaGet, apiDataGet, apiItemPost, apiItemDelete, apiItemCreate, }, }: Props) => import("react").JSX.Element;
|
|
24
|
+
export default DynamicForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ErrorField } from '../../../../../models/index';
|
|
2
|
+
import { DynamicFormSchemaModel } from '../../../../../models/types/dynamicForms';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
errors: ErrorField[];
|
|
6
|
+
schema: DynamicFormSchemaModel;
|
|
7
|
+
};
|
|
8
|
+
declare const DynamicFormErrors: ({ errors, schema }: Props) => import("react").JSX.Element;
|
|
9
|
+
export default DynamicFormErrors;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormSelectOption } from '../../../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
master: string | null;
|
|
5
|
+
onChange: (master: string | null) => void;
|
|
6
|
+
options: FormSelectOption[];
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
declare const DynamicFormMasterPicker: ({ master, onChange, options, label }: Props) => import("react").JSX.Element;
|
|
10
|
+
export default DynamicFormMasterPicker;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiDataItemType, DataItemType, DynamicFormFilters, DynamicFormSchemaModel, ValueType } from '../../../../../models/types/dynamicForms';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
schema: DynamicFormSchemaModel;
|
|
5
|
+
items: DataItemType[];
|
|
6
|
+
onEditItem: (item: ApiDataItemType) => void;
|
|
7
|
+
onDeleteItem: (primaryKey: ValueType) => void;
|
|
8
|
+
onCreateItem: (item: ApiDataItemType) => Promise<boolean>;
|
|
9
|
+
filters: DynamicFormFilters;
|
|
10
|
+
setFilter: (field: string, value: string | null) => void;
|
|
11
|
+
sortByField: string | null;
|
|
12
|
+
sortByType: 'asc' | 'desc' | null;
|
|
13
|
+
setSortBy: (field: string | null, type: 'asc' | 'desc' | null) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const DynamicFormTable: ({ schema, items, onEditItem, onDeleteItem, onCreateItem, filters, setFilter, sortByField, sortByType, setSortBy, }: Props) => import("react").JSX.Element;
|
|
16
|
+
export default DynamicFormTable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiDataItemType, DynamicFormColumnDef, DynamicFormSchemaModel } from '../../../../../../../models/types/dynamicForms';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
schema: DynamicFormSchemaModel;
|
|
5
|
+
columns: DynamicFormColumnDef[];
|
|
6
|
+
onCreate: (item: ApiDataItemType) => Promise<boolean>;
|
|
7
|
+
};
|
|
8
|
+
declare const DynamicFormCreateTableRow: ({ schema, columns, onCreate }: Props) => import("react").JSX.Element;
|
|
9
|
+
export default DynamicFormCreateTableRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiDataItemType, DataItemType, DynamicFormColumnDef, DynamicFormSchemaModel, ValueType } from '../../../../../../../models/types/dynamicForms';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
schema: DynamicFormSchemaModel;
|
|
5
|
+
columns: DynamicFormColumnDef[];
|
|
6
|
+
initialItem: DataItemType;
|
|
7
|
+
onEdit: (item: ApiDataItemType) => void;
|
|
8
|
+
onDelete: (primaryKey: ValueType) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const DynamicFormTableRow: ({ schema, columns, initialItem, onEdit, onDelete }: Props) => import("react").JSX.Element;
|
|
11
|
+
export default DynamicFormTableRow;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NameIdStringModel } from '../../../../../../../../models/index';
|
|
2
|
+
import { KnownDataType, ValueType } from '../../../../../../../../models/types/dynamicForms';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
type: KnownDataType;
|
|
6
|
+
value: ValueType;
|
|
7
|
+
field: string;
|
|
8
|
+
isReadonly: boolean;
|
|
9
|
+
isPrimary: boolean;
|
|
10
|
+
primaryEditable?: boolean;
|
|
11
|
+
valuesForSelect?: NameIdStringModel[];
|
|
12
|
+
hideClearIcon?: boolean;
|
|
13
|
+
clearValue?: string | number;
|
|
14
|
+
onChangeHandler: (field: string, newValue: ValueType) => void;
|
|
15
|
+
};
|
|
16
|
+
declare const DynamicFormInput: ({ type, value, field, isPrimary, isReadonly, primaryEditable, valuesForSelect, onChangeHandler, hideClearIcon, clearValue, }: Props) => import("react").JSX.Element;
|
|
17
|
+
export default DynamicFormInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DynamicFormInput } from './DynamicFormInput/DynamicFormInput';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DynamicFormErrors } from './DynamicFormErrors/DynamicFormErrors';
|
|
2
|
+
export { default as DynamicFormTable } from './DynamicFormTable/DynamicFormTable';
|
|
3
|
+
export { default as DynamicFormMasterPicker } from './DynamicFormMasterPicker/DynamicFormMasterPicker';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApiDataItemType, DataItemType, DynamicFormSchemaModel } from '../../../../models/types/dynamicForms';
|
|
2
|
+
|
|
3
|
+
export declare const transformToApiItem: (item: DataItemType) => ApiDataItemType;
|
|
4
|
+
export declare const transformFromApiItem: (item: ApiDataItemType, schema: DynamicFormSchemaModel) => DataItemType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
defaultMonth: Date;
|
|
3
|
+
searchKey?: string;
|
|
4
|
+
yearMin?: number;
|
|
5
|
+
yearMax?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const MonthPickerSearchParams: ({ defaultMonth, searchKey, yearMin, yearMax, }: Props) => import("react").JSX.Element;
|
|
8
|
+
export default MonthPickerSearchParams;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type DataItem = {
|
|
2
|
+
id: string;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
type Props = {
|
|
6
|
+
data: DataItem[];
|
|
7
|
+
showLegend?: boolean;
|
|
8
|
+
legendPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
9
|
+
};
|
|
10
|
+
declare const PieChart: ({ data, showLegend, legendPosition }: Props) => import("react").JSX.Element;
|
|
11
|
+
export default PieChart;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NameIdIntModel } from '../../../models/index';
|
|
2
|
+
import { SettingsFormItem } from '../../../models/types/dynamicForms';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
activeId?: number | string;
|
|
7
|
+
otherForms?: SettingsFormItem[];
|
|
8
|
+
groupsDefs?: NameIdIntModel[];
|
|
9
|
+
searchQuery?: string;
|
|
10
|
+
fullSize?: boolean;
|
|
11
|
+
appUrls?: {
|
|
12
|
+
appDetail?: string;
|
|
13
|
+
};
|
|
14
|
+
apiUrls?: {
|
|
15
|
+
apiDynamicFormsGet?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare const SettingsFormPicker: ({ activeId, otherForms, groupsDefs, searchQuery, fullSize, appUrls: { appDetail }, apiUrls: { apiDynamicFormsGet }, }: Props) => React.JSX.Element | null;
|
|
19
|
+
export default SettingsFormPicker;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
defaultYear: Date;
|
|
3
|
+
searchKey?: string;
|
|
4
|
+
optionMin?: number;
|
|
5
|
+
optionMax?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const YearPickerSearchParams: ({ defaultYear, searchKey, optionMin, optionMax, className, }: Props) => import("react").JSX.Element;
|
|
9
|
+
export default YearPickerSearchParams;
|
|
@@ -27,3 +27,8 @@ export { default as Timeline } from './Timeline/Timeline';
|
|
|
27
27
|
export { default as ImgApi } from './ImgApi/ImgApi';
|
|
28
28
|
export { default as ImgDirect } from './ImgDirect/ImgDirect';
|
|
29
29
|
export { default as FromToDatePicker } from './FromToDatePicker/FromToDatePicker';
|
|
30
|
+
export { default as MonthPickerSearchParams } from './MonthPickerSearchParams/MonthPickerSearchParams';
|
|
31
|
+
export { default as YearPickerSearchParams } from './YearPickerSearchParams/YearPickerSearchParams';
|
|
32
|
+
export { default as PieChart } from './PieChart/PieChart';
|
|
33
|
+
export { default as DynamicForm } from './DynamicForm/DynamicForm';
|
|
34
|
+
export { default as SettingsFormPicker } from './SettingsFormPicker/SettingsFormPicker';
|
|
@@ -16,6 +16,7 @@ export interface ILuminusComponentsContext {
|
|
|
16
16
|
language: string;
|
|
17
17
|
texts: ComponentsContextTexts;
|
|
18
18
|
ProjectIconComponent: IconComponentType;
|
|
19
|
+
chartColorPalette?: string[];
|
|
19
20
|
}
|
|
20
21
|
declare const LuminusComponentsContext: Context<ILuminusComponentsContext>;
|
|
21
22
|
export default LuminusComponentsContext;
|