react-luminus-components 1.3.29 → 1.3.30
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 +64 -101
- package/dist/FromToDatePickerDropdownToggle-C4ntsFqz.cjs +253 -0
- package/dist/{UserAvatarToggle-BayC1mlH.js → FromToDatePickerDropdownToggle-CK3riYKN.js} +2250 -1282
- package/dist/{PrimaryButton-Bwkh9Vox.js → PrimaryButton-BOdgT4u0.js} +96 -97
- package/dist/PrimaryButton-OffsUx-G.cjs +1 -0
- package/dist/SimpleTooltip-D4KGsTa_.js +5 -0
- package/dist/SimpleTooltip-D92MXZSs.cjs +1 -0
- package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +10 -0
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +7 -0
- package/dist/components/common/FromToDatePicker/components/index.d.ts +1 -0
- package/dist/components/common/FromToDatePicker/constants/TimeRanges.d.ts +3 -0
- package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +9 -0
- package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +10 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +2 -4
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -5
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.d.ts +17 -8
- package/dist/contexts.es.js +38 -41
- package/dist/dateUtils-DRVYuJv7.cjs +1 -0
- package/dist/dateUtils-DqftcSRs.js +1409 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.es.js +34 -35
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +23 -24
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +2455 -3540
- package/dist/models/index.d.ts +3 -0
- package/dist/models/luminus-context-types/CommonLuminusIcons.d.ts +1 -1
- package/dist/models/texts/ComponentsContextTexts.d.ts +7 -0
- package/dist/models/texts/DateTexts.d.ts +8 -0
- package/dist/models/types/FromTo.d.ts +5 -0
- package/dist/models/types/PromptOptions.d.ts +1 -1
- package/dist/searchUtils-BHsouXbH.js +7 -0
- package/dist/searchUtils-DKaMRBRf.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/useLocalStorageState-BY8tnvJS.js +74 -0
- package/dist/useLocalStorageState-DmtUyPYX.cjs +1 -0
- package/dist/usePermissions-CYURG0V1.cjs +1 -0
- package/dist/usePermissions-DOWgyuUi.js +15 -0
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +8 -0
- package/dist/utils/color/colorUtils.d.ts +2 -0
- package/dist/utils/date/dateUtils.d.ts +45 -0
- package/dist/utils/file/fileUtils.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/object/objectUtils.d.ts +4 -0
- package/dist/utils/text/string.d.ts +17 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +105 -0
- package/dist/utils.es.js +76 -23
- package/package.json +1 -1
- package/dist/PrimaryButton-BHirGTeS.cjs +0 -1
- package/dist/SimpleTooltip-Ckkk8CDz.cjs +0 -1
- package/dist/SimpleTooltip-CoqRIAP5.js +0 -5
- package/dist/UserAvatarToggle-TIvfBxMd.cjs +0 -253
- package/dist/dateUtils-C47nO5qP.js +0 -13
- package/dist/dateUtils-Dy3knMZB.cjs +0 -1
- package/dist/latinize-B-UfS78J.js +0 -957
- package/dist/latinize-Dl6DAk4g.cjs +0 -1
- package/dist/parseISO-DTRVS-Fr.cjs +0 -1
- package/dist/parseISO-DxNDV6y0.js +0 -127
- package/dist/searchUtils-CYFu8LBz.cjs +0 -1
- package/dist/searchUtils-Dxbvcicv.js +0 -7
- package/dist/useLocalStorageState-C_RMtvyk.js +0 -75
- package/dist/useLocalStorageState-gPD9zq-t.cjs +0 -1
- package/dist/usePermissions-CqfBs1_G.cjs +0 -1
- package/dist/usePermissions-DJjLOSZA.js +0 -16
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { j as r, c as d, P as D,
|
|
1
|
+
import { j as r, c as d, P as D, M as tt, v as w, J as nt, aF as _e, aG as je, o as q, G as Be, aH as ot, aI as st, w as v, aJ as Ae, aK as Me, aL as De, aM as at, aN as ke, aO as rt, A as it, I as lt, L as dt, aP as Ie, F as $e, H as ct, aQ as ut, a3 as mt } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { useRef as
|
|
3
|
+
import { useRef as N, useEffect as Te, useContext as ve, forwardRef as ft, useState as ye, useImperativeHandle as gt, useCallback as Ce, useMemo as ht } from "react";
|
|
4
4
|
import pt from "react-dom";
|
|
5
|
-
import "./latinize-B-UfS78J.js";
|
|
6
5
|
import "zod";
|
|
7
6
|
import "react-hook-form";
|
|
8
7
|
import "react-router-dom";
|
|
9
|
-
const Et = "_loading_rgybp_1", Tt = "_spinner-grow_rgybp_10", yt = "_second_rgybp_14", Ct = "_third_rgybp_17", _t = "_loadingBlock_rgybp_21",
|
|
8
|
+
const Et = "_loading_rgybp_1", Tt = "_spinner-grow_rgybp_10", yt = "_second_rgybp_14", Ct = "_third_rgybp_17", _t = "_loadingBlock_rgybp_21", L = {
|
|
10
9
|
loading: Et,
|
|
11
10
|
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
12
11
|
spinnerGrow: Tt,
|
|
13
12
|
second: yt,
|
|
14
13
|
third: Ct,
|
|
15
14
|
loadingBlock: _t
|
|
16
|
-
},
|
|
17
|
-
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow",
|
|
18
|
-
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow",
|
|
19
|
-
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow",
|
|
15
|
+
}, en = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", L.loading), children: [
|
|
16
|
+
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary"), role: "status" }),
|
|
17
|
+
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.second), role: "status" }),
|
|
18
|
+
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", L.spinnerGrow, "text-primary", L.third), role: "status" })
|
|
20
19
|
] }), vt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ r.jsx("div", {
|
|
21
20
|
...e,
|
|
22
21
|
ref: n,
|
|
23
22
|
className: d(e.className, t)
|
|
24
23
|
}));
|
|
25
|
-
function
|
|
26
|
-
const e =
|
|
24
|
+
function Nt(t) {
|
|
25
|
+
const e = N(null);
|
|
27
26
|
return Te(() => {
|
|
28
27
|
e.current = t;
|
|
29
28
|
}), e.current;
|
|
30
29
|
}
|
|
31
|
-
const
|
|
30
|
+
const Rt = {
|
|
32
31
|
/** An accessible label indicating the relevant information about the Close Button. */
|
|
33
32
|
"aria-label": D.string,
|
|
34
33
|
/** A callback fired after the Close Button is clicked. */
|
|
@@ -39,7 +38,7 @@ const Nt = {
|
|
|
39
38
|
* Omitting this will render the default dark color.
|
|
40
39
|
*/
|
|
41
40
|
variant: D.oneOf(["white"])
|
|
42
|
-
},
|
|
41
|
+
}, Ne = /* @__PURE__ */ u.forwardRef(({
|
|
43
42
|
className: t,
|
|
44
43
|
variant: e,
|
|
45
44
|
"aria-label": n = "Close",
|
|
@@ -51,10 +50,10 @@ const Nt = {
|
|
|
51
50
|
"aria-label": n,
|
|
52
51
|
...o
|
|
53
52
|
}));
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
Ne.displayName = "CloseButton";
|
|
54
|
+
Ne.propTypes = Rt;
|
|
56
55
|
var St = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
57
|
-
function
|
|
56
|
+
function x(t, e) {
|
|
58
57
|
return St(t.querySelectorAll(e));
|
|
59
58
|
}
|
|
60
59
|
const wt = "data-rr-ui-";
|
|
@@ -71,7 +70,7 @@ const bt = {
|
|
|
71
70
|
/** Display feedback as a tooltip. */
|
|
72
71
|
tooltip: D.bool,
|
|
73
72
|
as: D.elementType
|
|
74
|
-
},
|
|
73
|
+
}, Re = /* @__PURE__ */ u.forwardRef(
|
|
75
74
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
76
75
|
({
|
|
77
76
|
as: t = "div",
|
|
@@ -85,8 +84,8 @@ const bt = {
|
|
|
85
84
|
className: d(e, `${n}-${o ? "tooltip" : "feedback"}`)
|
|
86
85
|
})
|
|
87
86
|
);
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
Re.displayName = "Feedback";
|
|
88
|
+
Re.propTypes = bt;
|
|
90
89
|
const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
91
90
|
bsPrefix: t,
|
|
92
91
|
type: e,
|
|
@@ -100,13 +99,13 @@ const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
|
100
99
|
readOnly: y,
|
|
101
100
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
102
101
|
as: g = "input",
|
|
103
|
-
...
|
|
102
|
+
...R
|
|
104
103
|
}, E) => {
|
|
105
104
|
const {
|
|
106
105
|
controlId: T
|
|
107
106
|
} = ve(tt);
|
|
108
107
|
return t = w(t, "form-control"), process.env.NODE_ENV !== "production" && nt(T == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(g, {
|
|
109
|
-
...
|
|
108
|
+
...R,
|
|
110
109
|
type: e,
|
|
111
110
|
size: o,
|
|
112
111
|
ref: E,
|
|
@@ -116,11 +115,11 @@ const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
|
116
115
|
});
|
|
117
116
|
});
|
|
118
117
|
Ue.displayName = "FormControl";
|
|
119
|
-
const
|
|
120
|
-
Feedback:
|
|
118
|
+
const tn = Object.assign(Ue, {
|
|
119
|
+
Feedback: Re
|
|
121
120
|
});
|
|
122
121
|
var oe;
|
|
123
|
-
function
|
|
122
|
+
function Fe(t) {
|
|
124
123
|
if ((!oe && oe !== 0 || t) && _e) {
|
|
125
124
|
var e = document.createElement("div");
|
|
126
125
|
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);
|
|
@@ -140,7 +139,7 @@ function At(t = document) {
|
|
|
140
139
|
const e = t.defaultView;
|
|
141
140
|
return Math.abs(e.innerWidth - t.documentElement.clientWidth);
|
|
142
141
|
}
|
|
143
|
-
const
|
|
142
|
+
const Le = Ot("modal-open");
|
|
144
143
|
class Se {
|
|
145
144
|
constructor({
|
|
146
145
|
ownerDocument: e,
|
|
@@ -166,14 +165,14 @@ class Se {
|
|
|
166
165
|
e.style = {
|
|
167
166
|
overflow: s.style.overflow,
|
|
168
167
|
[o]: s.style[o]
|
|
169
|
-
}, e.scrollBarWidth && (n[o] = `${parseInt(q(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(
|
|
168
|
+
}, e.scrollBarWidth && (n[o] = `${parseInt(q(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Le, ""), q(s, n);
|
|
170
169
|
}
|
|
171
170
|
reset() {
|
|
172
171
|
[...this.modals].forEach((e) => this.remove(e));
|
|
173
172
|
}
|
|
174
173
|
removeContainerStyle(e) {
|
|
175
174
|
const n = this.getElement();
|
|
176
|
-
n.removeAttribute(
|
|
175
|
+
n.removeAttribute(Le), Object.assign(n.style, e.style);
|
|
177
176
|
}
|
|
178
177
|
add(e) {
|
|
179
178
|
let n = this.modals.indexOf(e);
|
|
@@ -205,8 +204,8 @@ function It(t) {
|
|
|
205
204
|
ownerDocument: t == null ? void 0 : t.document
|
|
206
205
|
})), pe;
|
|
207
206
|
}
|
|
208
|
-
function
|
|
209
|
-
const e =
|
|
207
|
+
function Ft(t) {
|
|
208
|
+
const e = Be(), n = t || It(e), o = N({
|
|
210
209
|
dialog: null,
|
|
211
210
|
backdrop: null
|
|
212
211
|
});
|
|
@@ -233,7 +232,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
233
232
|
keyboard: p = !0,
|
|
234
233
|
onBackdropClick: y,
|
|
235
234
|
onEscapeKeyDown: g,
|
|
236
|
-
transition:
|
|
235
|
+
transition: R,
|
|
237
236
|
runTransition: E,
|
|
238
237
|
backdropTransition: T,
|
|
239
238
|
runBackdropTransition: se,
|
|
@@ -241,21 +240,21 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
241
240
|
enforceFocus: ae = !0,
|
|
242
241
|
restoreFocus: O = !0,
|
|
243
242
|
restoreFocusOptions: re,
|
|
244
|
-
renderDialog:
|
|
243
|
+
renderDialog: Q,
|
|
245
244
|
renderBackdrop: ie = (l) => /* @__PURE__ */ r.jsx("div", Object.assign({}, l)),
|
|
246
245
|
manager: le,
|
|
247
246
|
container: de,
|
|
248
|
-
onShow:
|
|
247
|
+
onShow: z,
|
|
249
248
|
onHide: $ = () => {
|
|
250
249
|
},
|
|
251
250
|
onExit: ce,
|
|
252
251
|
onExited: U,
|
|
253
252
|
onExiting: Y,
|
|
254
253
|
onEnter: X,
|
|
255
|
-
onEntering:
|
|
256
|
-
onEntered:
|
|
254
|
+
onEntering: J,
|
|
255
|
+
onEntered: Z
|
|
257
256
|
} = t, ue = kt(t, Mt);
|
|
258
|
-
const C =
|
|
257
|
+
const C = Be(), b = ot(de), c = Ft(le), me = st(), P = Nt(n), [S, A] = ye(!n), h = N(null);
|
|
259
258
|
gt(e, () => c, [c]), _e && !P && n && (h.current = he(C == null ? void 0 : C.document)), n && S && A(!1);
|
|
260
259
|
const _ = v(() => {
|
|
261
260
|
if (c.add(), M.current = Ae(document, "keydown", ge), G.current = Ae(
|
|
@@ -265,7 +264,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
265
264
|
// and so steals focus from it
|
|
266
265
|
() => setTimeout(fe),
|
|
267
266
|
!0
|
|
268
|
-
),
|
|
267
|
+
), z && z(), V) {
|
|
269
268
|
var l, ne;
|
|
270
269
|
const H = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : C == null ? void 0 : C.document);
|
|
271
270
|
c.dialog && H && !Me(c.dialog, H) && (h.current = H, c.dialog.focus());
|
|
@@ -297,7 +296,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
297
296
|
l.target === l.currentTarget && (y == null || y(l), f === !0 && $());
|
|
298
297
|
}), ge = v((l) => {
|
|
299
298
|
p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || $());
|
|
300
|
-
}), G =
|
|
299
|
+
}), G = N(), M = N(), te = (...l) => {
|
|
301
300
|
A(!0), U == null || U(...l);
|
|
302
301
|
};
|
|
303
302
|
if (!b)
|
|
@@ -312,12 +311,12 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
312
311
|
className: s,
|
|
313
312
|
tabIndex: -1
|
|
314
313
|
});
|
|
315
|
-
let K =
|
|
314
|
+
let K = Q ? Q(k) : /* @__PURE__ */ r.jsx("div", Object.assign({}, k, {
|
|
316
315
|
children: /* @__PURE__ */ u.cloneElement(m, {
|
|
317
316
|
role: "document"
|
|
318
317
|
})
|
|
319
318
|
}));
|
|
320
|
-
K = ke(
|
|
319
|
+
K = ke(R, E, {
|
|
321
320
|
unmountOnExit: !0,
|
|
322
321
|
mountOnEnter: !0,
|
|
323
322
|
appear: !0,
|
|
@@ -326,8 +325,8 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
326
325
|
onExiting: Y,
|
|
327
326
|
onExited: te,
|
|
328
327
|
onEnter: X,
|
|
329
|
-
onEntering:
|
|
330
|
-
onEntered:
|
|
328
|
+
onEntering: J,
|
|
329
|
+
onEntered: Z,
|
|
331
330
|
children: K
|
|
332
331
|
});
|
|
333
332
|
let I = null;
|
|
@@ -347,24 +346,24 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
347
346
|
});
|
|
348
347
|
});
|
|
349
348
|
We.displayName = "Modal";
|
|
350
|
-
const
|
|
349
|
+
const Lt = Object.assign(We, {
|
|
351
350
|
Manager: Se
|
|
352
351
|
});
|
|
353
|
-
function
|
|
352
|
+
function xt(t, e) {
|
|
354
353
|
t.classList ? t.classList.add(e) : rt(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
|
|
355
354
|
}
|
|
356
|
-
function
|
|
355
|
+
function xe(t, e) {
|
|
357
356
|
return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
358
357
|
}
|
|
359
358
|
function jt(t, e) {
|
|
360
|
-
t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className =
|
|
359
|
+
t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = xe(t.className, e) : t.setAttribute("class", xe(t.className && t.className.baseVal || "", e));
|
|
361
360
|
}
|
|
362
361
|
const j = {
|
|
363
362
|
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
|
|
364
363
|
STICKY_CONTENT: ".sticky-top",
|
|
365
364
|
NAVBAR_TOGGLER: ".navbar-toggler"
|
|
366
365
|
};
|
|
367
|
-
class
|
|
366
|
+
class Bt extends Se {
|
|
368
367
|
adjustAndStore(e, n, o) {
|
|
369
368
|
const s = n.style[e];
|
|
370
369
|
n.dataset[e] = s, q(n, {
|
|
@@ -380,22 +379,22 @@ class Lt extends Se {
|
|
|
380
379
|
setContainerStyle(e) {
|
|
381
380
|
super.setContainerStyle(e);
|
|
382
381
|
const n = this.getElement();
|
|
383
|
-
if (
|
|
382
|
+
if (xt(n, "modal-open"), !e.scrollBarWidth)
|
|
384
383
|
return;
|
|
385
384
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
|
|
386
|
-
|
|
385
|
+
x(n, j.FIXED_CONTENT).forEach((a) => this.adjustAndStore(o, a, e.scrollBarWidth)), x(n, j.STICKY_CONTENT).forEach((a) => this.adjustAndStore(s, a, -e.scrollBarWidth)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.adjustAndStore(s, a, e.scrollBarWidth));
|
|
387
386
|
}
|
|
388
387
|
removeContainerStyle(e) {
|
|
389
388
|
super.removeContainerStyle(e);
|
|
390
389
|
const n = this.getElement();
|
|
391
390
|
jt(n, "modal-open");
|
|
392
391
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
|
|
393
|
-
|
|
392
|
+
x(n, j.FIXED_CONTENT).forEach((a) => this.restore(o, a)), x(n, j.STICKY_CONTENT).forEach((a) => this.restore(s, a)), x(n, j.NAVBAR_TOGGLER).forEach((a) => this.restore(s, a));
|
|
394
393
|
}
|
|
395
394
|
}
|
|
396
395
|
let Ee;
|
|
397
396
|
function Dt(t) {
|
|
398
|
-
return Ee || (Ee = new
|
|
397
|
+
return Ee || (Ee = new Bt(t)), Ee;
|
|
399
398
|
}
|
|
400
399
|
const Ge = /* @__PURE__ */ u.forwardRef(({
|
|
401
400
|
className: t,
|
|
@@ -424,11 +423,11 @@ const Ke = /* @__PURE__ */ u.createContext({
|
|
|
424
423
|
...p
|
|
425
424
|
}, y) => {
|
|
426
425
|
t = w(t, "modal");
|
|
427
|
-
const g = `${t}-dialog`,
|
|
426
|
+
const g = `${t}-dialog`, R = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
|
|
428
427
|
return /* @__PURE__ */ r.jsx("div", {
|
|
429
428
|
...p,
|
|
430
429
|
ref: y,
|
|
431
|
-
className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, f && `${g}-scrollable`, a &&
|
|
430
|
+
className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, f && `${g}-scrollable`, a && R),
|
|
432
431
|
children: /* @__PURE__ */ r.jsx("div", {
|
|
433
432
|
className: d(`${t}-content`, n),
|
|
434
433
|
children: m
|
|
@@ -461,7 +460,7 @@ const $t = /* @__PURE__ */ u.forwardRef(({
|
|
|
461
460
|
return /* @__PURE__ */ r.jsxs("div", {
|
|
462
461
|
ref: m,
|
|
463
462
|
...a,
|
|
464
|
-
children: [s, n && /* @__PURE__ */ r.jsx(
|
|
463
|
+
children: [s, n && /* @__PURE__ */ r.jsx(Ne, {
|
|
465
464
|
"aria-label": t,
|
|
466
465
|
variant: e,
|
|
467
466
|
onClick: p
|
|
@@ -504,7 +503,7 @@ function Gt(t) {
|
|
|
504
503
|
timeout: null
|
|
505
504
|
});
|
|
506
505
|
}
|
|
507
|
-
const
|
|
506
|
+
const Qe = /* @__PURE__ */ u.forwardRef(({
|
|
508
507
|
bsPrefix: t,
|
|
509
508
|
className: e,
|
|
510
509
|
style: n,
|
|
@@ -517,7 +516,7 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
517
516
|
"aria-describedby": y,
|
|
518
517
|
"aria-label": g,
|
|
519
518
|
/* BaseModal props */
|
|
520
|
-
show:
|
|
519
|
+
show: R = !1,
|
|
521
520
|
animation: E = !0,
|
|
522
521
|
backdrop: T = !0,
|
|
523
522
|
keyboard: se = !0,
|
|
@@ -525,37 +524,37 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
525
524
|
onShow: ae,
|
|
526
525
|
onHide: O,
|
|
527
526
|
container: re,
|
|
528
|
-
autoFocus:
|
|
527
|
+
autoFocus: Q = !0,
|
|
529
528
|
enforceFocus: ie = !0,
|
|
530
529
|
restoreFocus: le = !0,
|
|
531
530
|
restoreFocusOptions: de,
|
|
532
|
-
onEntered:
|
|
531
|
+
onEntered: z,
|
|
533
532
|
onExit: $,
|
|
534
533
|
onExiting: ce,
|
|
535
534
|
onEnter: U,
|
|
536
535
|
onEntering: Y,
|
|
537
536
|
onExited: X,
|
|
538
|
-
backdropClassName:
|
|
539
|
-
manager:
|
|
537
|
+
backdropClassName: J,
|
|
538
|
+
manager: Z,
|
|
540
539
|
...ue
|
|
541
540
|
}, C) => {
|
|
542
|
-
const [b, c] = ye({}), [me, P] = ye(!1), S =
|
|
541
|
+
const [b, c] = ye({}), [me, P] = ye(!1), S = N(!1), A = N(!1), h = N(null), [_, W] = it(), fe = lt(C, W), ee = v(O), ge = dt();
|
|
543
542
|
t = w(t, "modal");
|
|
544
543
|
const G = ht(() => ({
|
|
545
544
|
onHide: ee
|
|
546
545
|
}), [ee]);
|
|
547
546
|
function M() {
|
|
548
|
-
return
|
|
547
|
+
return Z || Dt({
|
|
549
548
|
isRTL: ge
|
|
550
549
|
});
|
|
551
550
|
}
|
|
552
551
|
function te(i) {
|
|
553
552
|
if (!_e)
|
|
554
553
|
return;
|
|
555
|
-
const
|
|
554
|
+
const F = M().getScrollbarWidth() > 0, be = i.scrollHeight > je(i).documentElement.clientHeight;
|
|
556
555
|
c({
|
|
557
|
-
paddingRight:
|
|
558
|
-
paddingLeft: !
|
|
556
|
+
paddingRight: F && !be ? Fe() : void 0,
|
|
557
|
+
paddingLeft: !F && be ? Fe() : void 0
|
|
559
558
|
});
|
|
560
559
|
}
|
|
561
560
|
const k = v(() => {
|
|
@@ -584,20 +583,20 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
584
583
|
return;
|
|
585
584
|
}
|
|
586
585
|
O == null || O();
|
|
587
|
-
},
|
|
586
|
+
}, ze = (i) => {
|
|
588
587
|
se ? V == null || V(i) : (i.preventDefault(), T === "static" && l());
|
|
589
|
-
}, Ye = (i,
|
|
590
|
-
i && te(i), U == null || U(i,
|
|
588
|
+
}, Ye = (i, F) => {
|
|
589
|
+
i && te(i), U == null || U(i, F);
|
|
591
590
|
}, Xe = (i) => {
|
|
592
591
|
h.current == null || h.current(), $ == null || $(i);
|
|
593
|
-
},
|
|
594
|
-
Y == null || Y(i,
|
|
595
|
-
},
|
|
592
|
+
}, Je = (i, F) => {
|
|
593
|
+
Y == null || Y(i, F), ct(window, "resize", k);
|
|
594
|
+
}, Ze = (i) => {
|
|
596
595
|
i && (i.style.display = ""), X == null || X(i), Ie(window, "resize", k);
|
|
597
596
|
}, Pe = Ce((i) => /* @__PURE__ */ r.jsx("div", {
|
|
598
597
|
...i,
|
|
599
|
-
className: d(`${t}-backdrop`,
|
|
600
|
-
}), [E,
|
|
598
|
+
className: d(`${t}-backdrop`, J, !E && "show")
|
|
599
|
+
}), [E, J, t]), Oe = {
|
|
601
600
|
...n,
|
|
602
601
|
...b
|
|
603
602
|
};
|
|
@@ -623,25 +622,25 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
623
622
|
});
|
|
624
623
|
return /* @__PURE__ */ r.jsx(Ke.Provider, {
|
|
625
624
|
value: G,
|
|
626
|
-
children: /* @__PURE__ */ r.jsx(
|
|
627
|
-
show:
|
|
625
|
+
children: /* @__PURE__ */ r.jsx(Lt, {
|
|
626
|
+
show: R,
|
|
628
627
|
ref: fe,
|
|
629
628
|
backdrop: T,
|
|
630
629
|
container: re,
|
|
631
630
|
keyboard: !0,
|
|
632
|
-
autoFocus:
|
|
631
|
+
autoFocus: Q,
|
|
633
632
|
enforceFocus: ie,
|
|
634
633
|
restoreFocus: le,
|
|
635
634
|
restoreFocusOptions: de,
|
|
636
|
-
onEscapeKeyDown:
|
|
635
|
+
onEscapeKeyDown: ze,
|
|
637
636
|
onShow: ae,
|
|
638
637
|
onHide: O,
|
|
639
638
|
onEnter: Ye,
|
|
640
|
-
onEntering:
|
|
641
|
-
onEntered:
|
|
639
|
+
onEntering: Je,
|
|
640
|
+
onEntered: z,
|
|
642
641
|
onExit: Xe,
|
|
643
642
|
onExiting: ce,
|
|
644
|
-
onExited:
|
|
643
|
+
onExited: Ze,
|
|
645
644
|
manager: M(),
|
|
646
645
|
transition: E ? Wt : void 0,
|
|
647
646
|
backdropTransition: E ? Gt : void 0,
|
|
@@ -650,8 +649,8 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
650
649
|
})
|
|
651
650
|
});
|
|
652
651
|
});
|
|
653
|
-
|
|
654
|
-
const
|
|
652
|
+
Qe.displayName = "Modal";
|
|
653
|
+
const nn = Object.assign(Qe, {
|
|
655
654
|
Body: Ge,
|
|
656
655
|
Header: qe,
|
|
657
656
|
Title: Ve,
|
|
@@ -661,7 +660,7 @@ const on = Object.assign(ze, {
|
|
|
661
660
|
BACKDROP_TRANSITION_DURATION: 150
|
|
662
661
|
});
|
|
663
662
|
/*! @azure/msal-browser v3.14.0 2024-05-07 */
|
|
664
|
-
const
|
|
663
|
+
const on = {
|
|
665
664
|
INITIALIZE_START: "msal:initializeStart",
|
|
666
665
|
INITIALIZE_END: "msal:initializeEnd",
|
|
667
666
|
ACCOUNT_ADDED: "msal:accountAdded",
|
|
@@ -688,32 +687,32 @@ const sn = {
|
|
|
688
687
|
LOGOUT_FAILURE: "msal:logoutFailure",
|
|
689
688
|
LOGOUT_END: "msal:logoutEnd",
|
|
690
689
|
RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
|
|
691
|
-
}, Kt = "_button_1wjon_1", Ht = "_filled_1wjon_7", qt = "_sm_1wjon_13", Vt = "_md_1wjon_18",
|
|
690
|
+
}, Kt = "_button_1wjon_1", Ht = "_filled_1wjon_7", qt = "_sm_1wjon_13", Vt = "_md_1wjon_18", Qt = "_lg_1wjon_23", B = {
|
|
692
691
|
button: Kt,
|
|
693
692
|
filled: Ht,
|
|
694
693
|
sm: qt,
|
|
695
694
|
md: Vt,
|
|
696
|
-
lg:
|
|
697
|
-
},
|
|
695
|
+
lg: Qt
|
|
696
|
+
}, sn = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
|
|
698
697
|
const { LinkComponent: m } = ve(mt);
|
|
699
|
-
return a.as === "link" ? /* @__PURE__ */ r.jsx(m, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`,
|
|
698
|
+
return a.as === "link" ? /* @__PURE__ */ r.jsx(m, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, B.button, B[t], B[n]), ...a, children: s }) : null;
|
|
700
699
|
};
|
|
701
700
|
export {
|
|
702
701
|
$t as A,
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
702
|
+
Lt as B,
|
|
703
|
+
Ne as C,
|
|
704
|
+
on as E,
|
|
705
|
+
Re as F,
|
|
706
|
+
en as L,
|
|
708
707
|
Ke as M,
|
|
709
|
-
|
|
708
|
+
sn as P,
|
|
710
709
|
Ot as a,
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
tn as b,
|
|
711
|
+
L as c,
|
|
713
712
|
vt as d,
|
|
714
|
-
|
|
715
|
-
|
|
713
|
+
Bt as e,
|
|
714
|
+
nn as f,
|
|
716
715
|
Dt as g,
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
x as q,
|
|
717
|
+
Nt as u
|
|
719
718
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./FromToDatePickerDropdownToggle-C4ntsFqz.cjs"),c=require("react"),He=require("react-dom");require("zod");require("react-hook-form");require("react-router-dom");function qe(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const u=qe(c),Pe="_loading_rgybp_1",Ve="_spinner-grow_rgybp_10",ze="_second_rgybp_14",Qe="_third_rgybp_17",Ye="_loadingBlock_rgybp_21",v={loading:Pe,"spinner-grow":"_spinner-grow_rgybp_10",spinnerGrow:Ve,second:ze,third:Qe,loadingBlock:Ye},Xe=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",v.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",v.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",v.spinnerGrow,"text-primary",v.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",v.spinnerGrow,"text-primary",v.third),role:"status"})]}),Ne=t=>u.forwardRef((e,n)=>s.jsxRuntimeExports.jsx("div",{...e,ref:n,className:s.classNames(e.className,t)}));function ve(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const Ze={"aria-label":s.PropTypes.string,onClick:s.PropTypes.func,variant:s.PropTypes.oneOf(["white"])},J=u.forwardRef(({className:t,variant:e,"aria-label":n="Close",...o},r)=>s.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:s.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":n,...o}));J.displayName="CloseButton";J.propTypes=Ze;var Je=Function.prototype.bind.call(Function.prototype.call,[].slice);function _(t,e){return Je(t.querySelectorAll(e))}const et="data-rr-ui-";function _e(t){return`${et}${t}`}const tt={type:s.PropTypes.string,tooltip:s.PropTypes.bool,as:s.PropTypes.elementType},ee=u.forwardRef(({as:t="div",className:e,type:n="valid",tooltip:o=!1,...r},a)=>s.jsxRuntimeExports.jsx(t,{...r,ref:a,className:s.classNames(e,`${n}-${o?"tooltip":"feedback"}`)}));ee.displayName="Feedback";ee.propTypes=tt;const be=u.forwardRef(({bsPrefix:t,type:e,size:n,htmlSize:o,id:r,className:a,isValid:m=!1,isInvalid:f=!1,plaintext:E,readOnly:T,as:p="input",...C},h)=>{const{controlId:R}=c.useContext(s.FormContext);return t=s.useBootstrapPrefix(t,"form-control"),process.env.NODE_ENV!=="production"&&s.warning(R==null||!r,"`controlId` is ignored on `<FormControl>` when `id` is specified."),s.jsxRuntimeExports.jsx(p,{...C,type:e,size:o,ref:h,readOnly:T,id:r||R,className:s.classNames(a,E?`${t}-plaintext`:t,n&&`${t}-${n}`,e==="color"&&`${t}-color`,m&&"is-valid",f&&"is-invalid")})});be.displayName="FormControl";const st=Object.assign(be,{Feedback:ee});var Z;function ye(t){if((!Z&&Z!==0||t)&&s.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),Z=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Z}function me(t){t===void 0&&(t=s.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function nt(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const xe=_e("modal-open");class ge{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return nt(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const n={overflow:"hidden"},o=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[o]:r.style[o]},e.scrollBarWidth&&(n[o]=`${parseInt(s.style(r,o)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(xe,""),s.style(r,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const n=this.getElement();n.removeAttribute(xe),Object.assign(n.style,e.style)}add(e){let n=this.modals.indexOf(e);return n!==-1||(n=this.modals.length,this.modals.push(e),this.setModalAttributes(e),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(e){const n=this.modals.indexOf(e);n!==-1&&(this.modals.splice(n,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 ot=["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 rt(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,a;for(a=0;a<o.length;a++)r=o[a],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let fe;function at(t){return fe||(fe=new ge({ownerDocument:t==null?void 0:t.document})),fe}function it(t){const e=s.useWindow(),n=t||at(e),o=c.useRef({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:c.useCallback(r=>{o.current.dialog=r},[]),setBackdropRef:c.useCallback(r=>{o.current.backdrop=r},[])})}const Se=c.forwardRef((t,e)=>{let{show:n=!1,role:o="dialog",className:r,style:a,children:m,backdrop:f=!0,keyboard:E=!0,onBackdropClick:T,onEscapeKeyDown:p,transition:C,runTransition:h,backdropTransition:R,runBackdropTransition:te,autoFocus:W=!0,enforceFocus:se=!0,restoreFocus:b=!0,restoreFocusOptions:ne,renderDialog:G,renderBackdrop:oe=l=>s.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:re,container:ae,onShow:K,onHide:F=()=>{},onExit:ie,onExited:I,onExiting:H,onEnter:q,onEntering:P,onEntered:V}=t,le=rt(t,ot);const y=s.useWindow(),S=s.useWaitForDOMRef(ae),d=it(re),ce=s.useMounted(),z=ve(n),[N,O]=c.useState(!n),g=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),s.canUseDOM&&!z&&n&&(g.current=me(y==null?void 0:y.document)),n&&N&&O(!1);const x=s.useEventCallback(()=>{if(d.add(),w.current=s.listen(document,"keydown",ue),L.current=s.listen(document,"focus",()=>setTimeout(de),!0),K&&K(),W){var l,X;const $=me((l=(X=d.dialog)==null?void 0:X.ownerDocument)!=null?l:y==null?void 0:y.document);d.dialog&&$&&!s.contains(d.dialog,$)&&(g.current=$,d.dialog.focus())}}),D=s.useEventCallback(()=>{if(d.remove(),w.current==null||w.current(),L.current==null||L.current(),b){var l;(l=g.current)==null||l.focus==null||l.focus(ne),g.current=null}});c.useEffect(()=>{!n||!S||x()},[n,S,x]),c.useEffect(()=>{N&&D()},[N,D]),s.useWillUnmount(()=>{D()});const de=s.useEventCallback(()=>{if(!se||!ce()||!d.isTopModal())return;const l=me(y==null?void 0:y.document);d.dialog&&l&&!s.contains(d.dialog,l)&&d.dialog.focus()}),Q=s.useEventCallback(l=>{l.target===l.currentTarget&&(T==null||T(l),f===!0&&F())}),ue=s.useEventCallback(l=>{E&&s.isEscKey(l)&&d.isTopModal()&&(p==null||p(l),l.defaultPrevented||F())}),L=c.useRef(),w=c.useRef(),Y=(...l)=>{O(!0),I==null||I(...l)};if(!S)return null;const j=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},le,{style:a,className:r,tabIndex:-1});let U=G?G(j):s.jsxRuntimeExports.jsx("div",Object.assign({},j,{children:u.cloneElement(m,{role:"document"})}));U=s.renderTransition(C,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:ie,onExiting:H,onExited:Y,onEnter:q,onEntering:P,onEntered:V,children:U});let A=null;return f&&(A=oe({ref:d.setBackdropRef,onClick:Q}),A=s.renderTransition(R,te,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:A})),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:He.createPortal(s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[A,U]}),S)})});Se.displayName="Modal";const Oe=Object.assign(Se,{Manager:ge});function lt(t,e){t.classList?t.classList.add(e):s.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Ce(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ct(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Ce(t.className,e):t.setAttribute("class",Ce(t.className&&t.className.baseVal||"",e))}const M={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class we extends ge{adjustAndStore(e,n,o){const r=n.style[e];n.dataset[e]=r,s.style(n,{[e]:`${parseFloat(s.style(n,e))+o}px`})}restore(e,n){const o=n.dataset[e];o!==void 0&&(delete n.dataset[e],s.style(n,{[e]:o}))}setContainerStyle(e){super.setContainerStyle(e);const n=this.getElement();if(lt(n,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";_(n,M.FIXED_CONTENT).forEach(a=>this.adjustAndStore(o,a,e.scrollBarWidth)),_(n,M.STICKY_CONTENT).forEach(a=>this.adjustAndStore(r,a,-e.scrollBarWidth)),_(n,M.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(r,a,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();ct(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";_(n,M.FIXED_CONTENT).forEach(a=>this.restore(o,a)),_(n,M.STICKY_CONTENT).forEach(a=>this.restore(r,a)),_(n,M.NAVBAR_TOGGLER).forEach(a=>this.restore(r,a))}}let pe;function je(t){return pe||(pe=new we(t)),pe}const Ae=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-body"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));Ae.displayName="ModalBody";const Ee=u.createContext({onHide(){}}),he=u.forwardRef(({bsPrefix:t,className:e,contentClassName:n,centered:o,size:r,fullscreen:a,children:m,scrollable:f,...E},T)=>{t=s.useBootstrapPrefix(t,"modal");const p=`${t}-dialog`,C=typeof a=="string"?`${t}-fullscreen-${a}`:`${t}-fullscreen`;return s.jsxRuntimeExports.jsx("div",{...E,ref:T,className:s.classNames(p,e,r&&`${t}-${r}`,o&&`${p}-centered`,f&&`${p}-scrollable`,a&&C),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames(`${t}-content`,n),children:m})})});he.displayName="ModalDialog";const ke=u.forwardRef(({className:t,bsPrefix:e,as:n="div",...o},r)=>(e=s.useBootstrapPrefix(e,"modal-footer"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));ke.displayName="ModalFooter";const Me=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:o,children:r,...a},m)=>{const f=c.useContext(Ee),E=s.useEventCallback(()=>{f==null||f.onHide(),o==null||o()});return s.jsxRuntimeExports.jsxs("div",{ref:m,...a,children:[r,n&&s.jsxRuntimeExports.jsx(J,{"aria-label":t,variant:e,onClick:E})]})}),Be=u.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:o=!1,...r},a)=>(t=s.useBootstrapPrefix(t,"modal-header"),s.jsxRuntimeExports.jsx(Me,{ref:a,...r,className:s.classNames(e,t),closeLabel:n,closeButton:o})));Be.displayName="ModalHeader";const dt=Ne("h4"),Fe=u.forwardRef(({className:t,bsPrefix:e,as:n=dt,...o},r)=>(e=s.useBootstrapPrefix(e,"modal-title"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));Fe.displayName="ModalTitle";function ut(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}function mt(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}const Ie=u.forwardRef(({bsPrefix:t,className:e,style:n,dialogClassName:o,contentClassName:r,children:a,dialogAs:m=he,"data-bs-theme":f,"aria-labelledby":E,"aria-describedby":T,"aria-label":p,show:C=!1,animation:h=!0,backdrop:R=!0,keyboard:te=!0,onEscapeKeyDown:W,onShow:se,onHide:b,container:ne,autoFocus:G=!0,enforceFocus:oe=!0,restoreFocus:re=!0,restoreFocusOptions:ae,onEntered:K,onExit:F,onExiting:ie,onEnter:I,onEntering:H,onExited:q,backdropClassName:P,manager:V,...le},y)=>{const[S,d]=c.useState({}),[ce,z]=c.useState(!1),N=c.useRef(!1),O=c.useRef(!1),g=c.useRef(null),[x,D]=s.useCallbackRef(),de=s.useMergedRefs(y,D),Q=s.useEventCallback(b),ue=s.useIsRTL();t=s.useBootstrapPrefix(t,"modal");const L=c.useMemo(()=>({onHide:Q}),[Q]);function w(){return V||je({isRTL:ue})}function Y(i){if(!s.canUseDOM)return;const k=w().getScrollbarWidth()>0,Te=i.scrollHeight>s.ownerDocument(i).documentElement.clientHeight;d({paddingRight:k&&!Te?ye():void 0,paddingLeft:!k&&Te?ye():void 0})}const j=s.useEventCallback(()=>{x&&Y(x.dialog)});s.useWillUnmount(()=>{s.removeEventListener(window,"resize",j),g.current==null||g.current()});const U=()=>{N.current=!0},A=i=>{N.current&&x&&i.target===x.dialog&&(O.current=!0),N.current=!1},l=()=>{z(!0),g.current=s.transitionEnd(x.dialog,()=>{z(!1)})},X=i=>{i.target===i.currentTarget&&l()},$=i=>{if(R==="static"){X(i);return}if(O.current||i.target!==i.currentTarget){O.current=!1;return}b==null||b()},De=i=>{te?W==null||W(i):(i.preventDefault(),R==="static"&&l())},Le=(i,k)=>{i&&Y(i),I==null||I(i,k)},Ue=i=>{g.current==null||g.current(),F==null||F(i)},$e=(i,k)=>{H==null||H(i,k),s.addEventListener(window,"resize",j)},We=i=>{i&&(i.style.display=""),q==null||q(i),s.removeEventListener(window,"resize",j)},Ge=c.useCallback(i=>s.jsxRuntimeExports.jsx("div",{...i,className:s.classNames(`${t}-backdrop`,P,!h&&"show")}),[h,P,t]),Re={...n,...S};Re.display="block";const Ke=i=>s.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:Re,className:s.classNames(e,t,ce&&`${t}-static`,!h&&"show"),onClick:R?$:void 0,onMouseUp:A,"data-bs-theme":f,"aria-label":p,"aria-labelledby":E,"aria-describedby":T,children:s.jsxRuntimeExports.jsx(m,{...le,onMouseDown:U,className:o,contentClassName:r,children:a})});return s.jsxRuntimeExports.jsx(Ee.Provider,{value:L,children:s.jsxRuntimeExports.jsx(Oe,{show:C,ref:de,backdrop:R,container:ne,keyboard:!0,autoFocus:G,enforceFocus:oe,restoreFocus:re,restoreFocusOptions:ae,onEscapeKeyDown:De,onShow:se,onHide:b,onEnter:Le,onEntering:$e,onEntered:K,onExit:Ue,onExiting:ie,onExited:We,manager:w(),transition:h?ut:void 0,backdropTransition:h?mt:void 0,renderBackdrop:Ge,renderDialog:Ke})})});Ie.displayName="Modal";const ft=Object.assign(Ie,{Body:Ae,Header:Be,Title:Fe,Footer:ke,Dialog:he,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});/*! @azure/msal-browser v3.14.0 2024-05-07 */const pt={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"},gt="_button_1wjon_1",Et="_filled_1wjon_7",ht="_sm_1wjon_13",Rt="_md_1wjon_18",Tt="_lg_1wjon_23",B={button:gt,filled:Et,sm:ht,md:Rt,lg:Tt},yt=({variant:t="filled",color:e="primary",size:n="md",className:o,children:r,...a})=>{const{LinkComponent:m}=c.useContext(s.LuminusComponentsContext);return a.as==="link"?s.jsxRuntimeExports.jsx(m,{to:a.href??"/",className:s.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,B.button,B[t],B[n]),...a,children:r}):a.as==="button"||a.as===void 0?s.jsxRuntimeExports.jsx("button",{type:"button",className:s.classNames(`luminus-primary-button ${e} btn ${t==="outlined"?`btn-outline-${e}`:`btn-${e}`} ${o??""}`,B.button,B[t],B[n]),...a,children:r}):null};exports.AbstractModalHeader=Me;exports.BaseModal=Oe;exports.BootstrapModalManager=we;exports.CloseButton=J;exports.EventType=pt;exports.Feedback=ee;exports.FormControl=st;exports.Loading=Xe;exports.Modal=ft;exports.ModalContext=Ee;exports.PrimaryButton=yt;exports.classes=v;exports.dataAttr=_e;exports.divWithClassName=Ne;exports.getSharedManager=je;exports.qsa=_;exports.usePrevious=ve;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { j as o, U as e, b2 as i } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
|
|
2
|
+
const a = ({ text: s, placement: r, children: t }) => /* @__PURE__ */ o.jsx(e, { placement: r, overlay: /* @__PURE__ */ o.jsx(i, { className: "luminus-tooltip", children: s }), children: t });
|
|
3
|
+
export {
|
|
4
|
+
a as S
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./FromToDatePickerDropdownToggle-C4ntsFqz.cjs"),i=({text:e,placement:r,children:t})=>o.jsxRuntimeExports.jsx(o.OverlayTrigger,{placement:r,overlay:o.jsxRuntimeExports.jsx(o.Tooltip,{className:"luminus-tooltip",children:e}),children:t});exports.SimpleTooltip=i;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputBaseProps } from '@models/index';
|
|
2
|
+
import FromTo from '@models/types/FromTo';
|
|
3
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
4
|
+
type FromToDatePickerProps = {
|
|
5
|
+
fromtoState: [FromTo, Dispatch<SetStateAction<FromTo>>];
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: InputBaseProps['size'];
|
|
8
|
+
};
|
|
9
|
+
declare const FromToDatePicker: ({ fromtoState: [fromTo, setFromTo], className, size, }: FromToDatePickerProps) => import("react").JSX.Element;
|
|
10
|
+
export default FromToDatePicker;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type FromToDatePickerDropdownToggleProps = {
|
|
3
|
+
onClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
4
|
+
text?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const FromToDatePickerDropdownToggle: React.ForwardRefExoticComponent<FromToDatePickerDropdownToggleProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default FromToDatePickerDropdownToggle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FromToDatePickerDropdownToggle } from './FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import FromTo from '@models/types/FromTo';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { TimeRangeSymbol } from '../constants/TimeRanges';
|
|
4
|
+
declare const useFromToDatePicker: (selectedRange: TimeRangeSymbol, setSelectedRange: Dispatch<SetStateAction<TimeRangeSymbol>>, setFromTo: Dispatch<SetStateAction<FromTo>>) => {
|
|
5
|
+
setFromToProp: <T extends keyof FromTo>(propertyName: T, value: FromTo[T]) => void;
|
|
6
|
+
handleArrowClick: (offset: -1 | 1) => void;
|
|
7
|
+
handleRangeChange: (newRange: TimeRangeSymbol) => void;
|
|
8
|
+
};
|
|
9
|
+
export default useFromToDatePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TimeRangeSymbol } from '../constants/TimeRanges';
|
|
2
|
+
export declare const getMonthFromTo: (fromDate: Date) => {
|
|
3
|
+
from: string;
|
|
4
|
+
to: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getYearFromTo: (fromDate: Date) => {
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const getTypeOfRange: (from: string | null, to: string | null) => TimeRangeSymbol;
|
|
@@ -26,3 +26,4 @@ export { default as FloatingActionContainer } from './FloatingActionContainer/Fl
|
|
|
26
26
|
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
|
+
export { default as FromToDatePicker } from './FromToDatePicker/FromToDatePicker';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppSearchTexts, AxiosTexts, CommonLuminusIcons, ConfirmTexts, CustomSelectTexts, FormSubmitTexts, FormValidationTexts, HomeDashboardTexts, ILocalizationContext } from '@models/index';
|
|
2
|
+
import ComponentsContextTexts from '@models/texts/ComponentsContextTexts';
|
|
2
3
|
import ErrorBoundaryTexts from '@models/texts/ErrorBoundaryTexts';
|
|
3
|
-
import MessageBoardTexts from '@models/texts/MessageBoardTexts';
|
|
4
4
|
import WidgetTexts from '@models/texts/WidgetTexts';
|
|
5
5
|
import { CreateAxiosDefaults } from 'axios';
|
|
6
6
|
import { Context, ReactNode } from 'react';
|
|
@@ -27,9 +27,7 @@ export interface ILuminusComponentsContext {
|
|
|
27
27
|
customSelectTexts: CustomSelectTexts;
|
|
28
28
|
errorBoundaryTexts: ErrorBoundaryTexts;
|
|
29
29
|
widgetTexts: WidgetTexts;
|
|
30
|
-
texts:
|
|
31
|
-
messageBoard: MessageBoardTexts;
|
|
32
|
-
};
|
|
30
|
+
texts: ComponentsContextTexts;
|
|
33
31
|
ProjectIconComponent: IconComponentType;
|
|
34
32
|
}
|
|
35
33
|
declare const LuminusComponentsContext: Context<ILuminusComponentsContext>;
|