react-luminus-components 1.3.28 → 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-CIpmuTVE.js → FromToDatePickerDropdownToggle-CK3riYKN.js} +2250 -1281
- package/dist/{PrimaryButton-CToGCd5i.js → PrimaryButton-BOdgT4u0.js} +89 -89
- 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 +30 -32
- 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 +21 -21
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +16 -16
- package/dist/main.cjs.js +1 -28
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +2544 -4302
- 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-MzPp9GNd.js → useLocalStorageState-BY8tnvJS.js} +17 -17
- package/dist/useLocalStorageState-DmtUyPYX.cjs +1 -0
- package/dist/usePermissions-CYURG0V1.cjs +1 -0
- package/dist/{usePermissions-BZKgvDp_.js → usePermissions-DOWgyuUi.js} +2 -2
- 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/dist/variables.scss +2 -0
- package/package.json +2 -1
- package/dist/PrimaryButton-C3toFFlE.cjs +0 -1
- package/dist/SimpleTooltip-0rNY6uR5.js +0 -5
- package/dist/SimpleTooltip-E2QIyvNE.cjs +0 -1
- package/dist/UserAvatarToggle-J8ZQDJ2r.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-KNanBZsO.cjs +0 -1
- package/dist/usePermissions-DB7RkdYM.cjs +0 -1
|
@@ -1,33 +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";
|
|
8
|
+
const Et = "_loading_rgybp_1", Tt = "_spinner-grow_rgybp_10", yt = "_second_rgybp_14", Ct = "_third_rgybp_17", _t = "_loadingBlock_rgybp_21", L = {
|
|
9
9
|
loading: Et,
|
|
10
10
|
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
11
11
|
spinnerGrow: Tt,
|
|
12
12
|
second: yt,
|
|
13
13
|
third: Ct,
|
|
14
14
|
loadingBlock: _t
|
|
15
|
-
}, en = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading",
|
|
16
|
-
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow",
|
|
17
|
-
/* @__PURE__ */ r.jsx("div", { className: d("spinner-grow",
|
|
18
|
-
/* @__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" })
|
|
19
19
|
] }), vt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ r.jsx("div", {
|
|
20
20
|
...e,
|
|
21
21
|
ref: n,
|
|
22
22
|
className: d(e.className, t)
|
|
23
23
|
}));
|
|
24
|
-
function
|
|
25
|
-
const e =
|
|
24
|
+
function Nt(t) {
|
|
25
|
+
const e = N(null);
|
|
26
26
|
return Te(() => {
|
|
27
27
|
e.current = t;
|
|
28
28
|
}), e.current;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Rt = {
|
|
31
31
|
/** An accessible label indicating the relevant information about the Close Button. */
|
|
32
32
|
"aria-label": D.string,
|
|
33
33
|
/** A callback fired after the Close Button is clicked. */
|
|
@@ -38,7 +38,7 @@ const Nt = {
|
|
|
38
38
|
* Omitting this will render the default dark color.
|
|
39
39
|
*/
|
|
40
40
|
variant: D.oneOf(["white"])
|
|
41
|
-
},
|
|
41
|
+
}, Ne = /* @__PURE__ */ u.forwardRef(({
|
|
42
42
|
className: t,
|
|
43
43
|
variant: e,
|
|
44
44
|
"aria-label": n = "Close",
|
|
@@ -50,10 +50,10 @@ const Nt = {
|
|
|
50
50
|
"aria-label": n,
|
|
51
51
|
...o
|
|
52
52
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
Ne.displayName = "CloseButton";
|
|
54
|
+
Ne.propTypes = Rt;
|
|
55
55
|
var St = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
56
|
-
function
|
|
56
|
+
function x(t, e) {
|
|
57
57
|
return St(t.querySelectorAll(e));
|
|
58
58
|
}
|
|
59
59
|
const wt = "data-rr-ui-";
|
|
@@ -70,7 +70,7 @@ const bt = {
|
|
|
70
70
|
/** Display feedback as a tooltip. */
|
|
71
71
|
tooltip: D.bool,
|
|
72
72
|
as: D.elementType
|
|
73
|
-
},
|
|
73
|
+
}, Re = /* @__PURE__ */ u.forwardRef(
|
|
74
74
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
75
75
|
({
|
|
76
76
|
as: t = "div",
|
|
@@ -84,8 +84,8 @@ const bt = {
|
|
|
84
84
|
className: d(e, `${n}-${o ? "tooltip" : "feedback"}`)
|
|
85
85
|
})
|
|
86
86
|
);
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
Re.displayName = "Feedback";
|
|
88
|
+
Re.propTypes = bt;
|
|
89
89
|
const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
90
90
|
bsPrefix: t,
|
|
91
91
|
type: e,
|
|
@@ -99,13 +99,13 @@ const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
|
99
99
|
readOnly: y,
|
|
100
100
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
101
101
|
as: g = "input",
|
|
102
|
-
...
|
|
102
|
+
...R
|
|
103
103
|
}, E) => {
|
|
104
104
|
const {
|
|
105
105
|
controlId: T
|
|
106
106
|
} = ve(tt);
|
|
107
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, {
|
|
108
|
-
...
|
|
108
|
+
...R,
|
|
109
109
|
type: e,
|
|
110
110
|
size: o,
|
|
111
111
|
ref: E,
|
|
@@ -116,10 +116,10 @@ const Ue = /* @__PURE__ */ u.forwardRef(({
|
|
|
116
116
|
});
|
|
117
117
|
Ue.displayName = "FormControl";
|
|
118
118
|
const tn = Object.assign(Ue, {
|
|
119
|
-
Feedback:
|
|
119
|
+
Feedback: Re
|
|
120
120
|
});
|
|
121
121
|
var oe;
|
|
122
|
-
function
|
|
122
|
+
function Fe(t) {
|
|
123
123
|
if ((!oe && oe !== 0 || t) && _e) {
|
|
124
124
|
var e = document.createElement("div");
|
|
125
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);
|
|
@@ -139,7 +139,7 @@ function At(t = document) {
|
|
|
139
139
|
const e = t.defaultView;
|
|
140
140
|
return Math.abs(e.innerWidth - t.documentElement.clientWidth);
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const Le = Ot("modal-open");
|
|
143
143
|
class Se {
|
|
144
144
|
constructor({
|
|
145
145
|
ownerDocument: e,
|
|
@@ -165,14 +165,14 @@ class Se {
|
|
|
165
165
|
e.style = {
|
|
166
166
|
overflow: s.style.overflow,
|
|
167
167
|
[o]: s.style[o]
|
|
168
|
-
}, 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);
|
|
169
169
|
}
|
|
170
170
|
reset() {
|
|
171
171
|
[...this.modals].forEach((e) => this.remove(e));
|
|
172
172
|
}
|
|
173
173
|
removeContainerStyle(e) {
|
|
174
174
|
const n = this.getElement();
|
|
175
|
-
n.removeAttribute(
|
|
175
|
+
n.removeAttribute(Le), Object.assign(n.style, e.style);
|
|
176
176
|
}
|
|
177
177
|
add(e) {
|
|
178
178
|
let n = this.modals.indexOf(e);
|
|
@@ -204,8 +204,8 @@ function It(t) {
|
|
|
204
204
|
ownerDocument: t == null ? void 0 : t.document
|
|
205
205
|
})), pe;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const e =
|
|
207
|
+
function Ft(t) {
|
|
208
|
+
const e = Be(), n = t || It(e), o = N({
|
|
209
209
|
dialog: null,
|
|
210
210
|
backdrop: null
|
|
211
211
|
});
|
|
@@ -232,7 +232,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
232
232
|
keyboard: p = !0,
|
|
233
233
|
onBackdropClick: y,
|
|
234
234
|
onEscapeKeyDown: g,
|
|
235
|
-
transition:
|
|
235
|
+
transition: R,
|
|
236
236
|
runTransition: E,
|
|
237
237
|
backdropTransition: T,
|
|
238
238
|
runBackdropTransition: se,
|
|
@@ -240,21 +240,21 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
240
240
|
enforceFocus: ae = !0,
|
|
241
241
|
restoreFocus: O = !0,
|
|
242
242
|
restoreFocusOptions: re,
|
|
243
|
-
renderDialog:
|
|
243
|
+
renderDialog: Q,
|
|
244
244
|
renderBackdrop: ie = (l) => /* @__PURE__ */ r.jsx("div", Object.assign({}, l)),
|
|
245
245
|
manager: le,
|
|
246
246
|
container: de,
|
|
247
|
-
onShow:
|
|
247
|
+
onShow: z,
|
|
248
248
|
onHide: $ = () => {
|
|
249
249
|
},
|
|
250
250
|
onExit: ce,
|
|
251
251
|
onExited: U,
|
|
252
252
|
onExiting: Y,
|
|
253
253
|
onEnter: X,
|
|
254
|
-
onEntering:
|
|
255
|
-
onEntered:
|
|
254
|
+
onEntering: J,
|
|
255
|
+
onEntered: Z
|
|
256
256
|
} = t, ue = kt(t, Mt);
|
|
257
|
-
const C =
|
|
257
|
+
const C = Be(), b = ot(de), c = Ft(le), me = st(), P = Nt(n), [S, A] = ye(!n), h = N(null);
|
|
258
258
|
gt(e, () => c, [c]), _e && !P && n && (h.current = he(C == null ? void 0 : C.document)), n && S && A(!1);
|
|
259
259
|
const _ = v(() => {
|
|
260
260
|
if (c.add(), M.current = Ae(document, "keydown", ge), G.current = Ae(
|
|
@@ -264,7 +264,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
264
264
|
// and so steals focus from it
|
|
265
265
|
() => setTimeout(fe),
|
|
266
266
|
!0
|
|
267
|
-
),
|
|
267
|
+
), z && z(), V) {
|
|
268
268
|
var l, ne;
|
|
269
269
|
const H = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : C == null ? void 0 : C.document);
|
|
270
270
|
c.dialog && H && !Me(c.dialog, H) && (h.current = H, c.dialog.focus());
|
|
@@ -296,7 +296,7 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
296
296
|
l.target === l.currentTarget && (y == null || y(l), f === !0 && $());
|
|
297
297
|
}), ge = v((l) => {
|
|
298
298
|
p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || $());
|
|
299
|
-
}), G =
|
|
299
|
+
}), G = N(), M = N(), te = (...l) => {
|
|
300
300
|
A(!0), U == null || U(...l);
|
|
301
301
|
};
|
|
302
302
|
if (!b)
|
|
@@ -311,12 +311,12 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
311
311
|
className: s,
|
|
312
312
|
tabIndex: -1
|
|
313
313
|
});
|
|
314
|
-
let K =
|
|
314
|
+
let K = Q ? Q(k) : /* @__PURE__ */ r.jsx("div", Object.assign({}, k, {
|
|
315
315
|
children: /* @__PURE__ */ u.cloneElement(m, {
|
|
316
316
|
role: "document"
|
|
317
317
|
})
|
|
318
318
|
}));
|
|
319
|
-
K = ke(
|
|
319
|
+
K = ke(R, E, {
|
|
320
320
|
unmountOnExit: !0,
|
|
321
321
|
mountOnEnter: !0,
|
|
322
322
|
appear: !0,
|
|
@@ -325,8 +325,8 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
325
325
|
onExiting: Y,
|
|
326
326
|
onExited: te,
|
|
327
327
|
onEnter: X,
|
|
328
|
-
onEntering:
|
|
329
|
-
onEntered:
|
|
328
|
+
onEntering: J,
|
|
329
|
+
onEntered: Z,
|
|
330
330
|
children: K
|
|
331
331
|
});
|
|
332
332
|
let I = null;
|
|
@@ -346,24 +346,24 @@ const We = /* @__PURE__ */ ft((t, e) => {
|
|
|
346
346
|
});
|
|
347
347
|
});
|
|
348
348
|
We.displayName = "Modal";
|
|
349
|
-
const
|
|
349
|
+
const Lt = Object.assign(We, {
|
|
350
350
|
Manager: Se
|
|
351
351
|
});
|
|
352
|
-
function
|
|
352
|
+
function xt(t, e) {
|
|
353
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));
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function xe(t, e) {
|
|
356
356
|
return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
357
357
|
}
|
|
358
358
|
function jt(t, e) {
|
|
359
|
-
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));
|
|
360
360
|
}
|
|
361
361
|
const j = {
|
|
362
362
|
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
|
|
363
363
|
STICKY_CONTENT: ".sticky-top",
|
|
364
364
|
NAVBAR_TOGGLER: ".navbar-toggler"
|
|
365
365
|
};
|
|
366
|
-
class
|
|
366
|
+
class Bt extends Se {
|
|
367
367
|
adjustAndStore(e, n, o) {
|
|
368
368
|
const s = n.style[e];
|
|
369
369
|
n.dataset[e] = s, q(n, {
|
|
@@ -379,22 +379,22 @@ class Lt extends Se {
|
|
|
379
379
|
setContainerStyle(e) {
|
|
380
380
|
super.setContainerStyle(e);
|
|
381
381
|
const n = this.getElement();
|
|
382
|
-
if (
|
|
382
|
+
if (xt(n, "modal-open"), !e.scrollBarWidth)
|
|
383
383
|
return;
|
|
384
384
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
|
|
385
|
-
|
|
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));
|
|
386
386
|
}
|
|
387
387
|
removeContainerStyle(e) {
|
|
388
388
|
super.removeContainerStyle(e);
|
|
389
389
|
const n = this.getElement();
|
|
390
390
|
jt(n, "modal-open");
|
|
391
391
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
|
|
392
|
-
|
|
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));
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
let Ee;
|
|
396
396
|
function Dt(t) {
|
|
397
|
-
return Ee || (Ee = new
|
|
397
|
+
return Ee || (Ee = new Bt(t)), Ee;
|
|
398
398
|
}
|
|
399
399
|
const Ge = /* @__PURE__ */ u.forwardRef(({
|
|
400
400
|
className: t,
|
|
@@ -423,11 +423,11 @@ const Ke = /* @__PURE__ */ u.createContext({
|
|
|
423
423
|
...p
|
|
424
424
|
}, y) => {
|
|
425
425
|
t = w(t, "modal");
|
|
426
|
-
const g = `${t}-dialog`,
|
|
426
|
+
const g = `${t}-dialog`, R = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
|
|
427
427
|
return /* @__PURE__ */ r.jsx("div", {
|
|
428
428
|
...p,
|
|
429
429
|
ref: y,
|
|
430
|
-
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),
|
|
431
431
|
children: /* @__PURE__ */ r.jsx("div", {
|
|
432
432
|
className: d(`${t}-content`, n),
|
|
433
433
|
children: m
|
|
@@ -460,7 +460,7 @@ const $t = /* @__PURE__ */ u.forwardRef(({
|
|
|
460
460
|
return /* @__PURE__ */ r.jsxs("div", {
|
|
461
461
|
ref: m,
|
|
462
462
|
...a,
|
|
463
|
-
children: [s, n && /* @__PURE__ */ r.jsx(
|
|
463
|
+
children: [s, n && /* @__PURE__ */ r.jsx(Ne, {
|
|
464
464
|
"aria-label": t,
|
|
465
465
|
variant: e,
|
|
466
466
|
onClick: p
|
|
@@ -503,7 +503,7 @@ function Gt(t) {
|
|
|
503
503
|
timeout: null
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
const
|
|
506
|
+
const Qe = /* @__PURE__ */ u.forwardRef(({
|
|
507
507
|
bsPrefix: t,
|
|
508
508
|
className: e,
|
|
509
509
|
style: n,
|
|
@@ -516,7 +516,7 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
516
516
|
"aria-describedby": y,
|
|
517
517
|
"aria-label": g,
|
|
518
518
|
/* BaseModal props */
|
|
519
|
-
show:
|
|
519
|
+
show: R = !1,
|
|
520
520
|
animation: E = !0,
|
|
521
521
|
backdrop: T = !0,
|
|
522
522
|
keyboard: se = !0,
|
|
@@ -524,37 +524,37 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
524
524
|
onShow: ae,
|
|
525
525
|
onHide: O,
|
|
526
526
|
container: re,
|
|
527
|
-
autoFocus:
|
|
527
|
+
autoFocus: Q = !0,
|
|
528
528
|
enforceFocus: ie = !0,
|
|
529
529
|
restoreFocus: le = !0,
|
|
530
530
|
restoreFocusOptions: de,
|
|
531
|
-
onEntered:
|
|
531
|
+
onEntered: z,
|
|
532
532
|
onExit: $,
|
|
533
533
|
onExiting: ce,
|
|
534
534
|
onEnter: U,
|
|
535
535
|
onEntering: Y,
|
|
536
536
|
onExited: X,
|
|
537
|
-
backdropClassName:
|
|
538
|
-
manager:
|
|
537
|
+
backdropClassName: J,
|
|
538
|
+
manager: Z,
|
|
539
539
|
...ue
|
|
540
540
|
}, C) => {
|
|
541
|
-
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();
|
|
542
542
|
t = w(t, "modal");
|
|
543
543
|
const G = ht(() => ({
|
|
544
544
|
onHide: ee
|
|
545
545
|
}), [ee]);
|
|
546
546
|
function M() {
|
|
547
|
-
return
|
|
547
|
+
return Z || Dt({
|
|
548
548
|
isRTL: ge
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
function te(i) {
|
|
552
552
|
if (!_e)
|
|
553
553
|
return;
|
|
554
|
-
const
|
|
554
|
+
const F = M().getScrollbarWidth() > 0, be = i.scrollHeight > je(i).documentElement.clientHeight;
|
|
555
555
|
c({
|
|
556
|
-
paddingRight:
|
|
557
|
-
paddingLeft: !
|
|
556
|
+
paddingRight: F && !be ? Fe() : void 0,
|
|
557
|
+
paddingLeft: !F && be ? Fe() : void 0
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
const k = v(() => {
|
|
@@ -583,20 +583,20 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
585
|
O == null || O();
|
|
586
|
-
},
|
|
586
|
+
}, ze = (i) => {
|
|
587
587
|
se ? V == null || V(i) : (i.preventDefault(), T === "static" && l());
|
|
588
|
-
}, Ye = (i,
|
|
589
|
-
i && te(i), U == null || U(i,
|
|
588
|
+
}, Ye = (i, F) => {
|
|
589
|
+
i && te(i), U == null || U(i, F);
|
|
590
590
|
}, Xe = (i) => {
|
|
591
591
|
h.current == null || h.current(), $ == null || $(i);
|
|
592
|
-
},
|
|
593
|
-
Y == null || Y(i,
|
|
594
|
-
},
|
|
592
|
+
}, Je = (i, F) => {
|
|
593
|
+
Y == null || Y(i, F), ct(window, "resize", k);
|
|
594
|
+
}, Ze = (i) => {
|
|
595
595
|
i && (i.style.display = ""), X == null || X(i), Ie(window, "resize", k);
|
|
596
596
|
}, Pe = Ce((i) => /* @__PURE__ */ r.jsx("div", {
|
|
597
597
|
...i,
|
|
598
|
-
className: d(`${t}-backdrop`,
|
|
599
|
-
}), [E,
|
|
598
|
+
className: d(`${t}-backdrop`, J, !E && "show")
|
|
599
|
+
}), [E, J, t]), Oe = {
|
|
600
600
|
...n,
|
|
601
601
|
...b
|
|
602
602
|
};
|
|
@@ -622,25 +622,25 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
622
622
|
});
|
|
623
623
|
return /* @__PURE__ */ r.jsx(Ke.Provider, {
|
|
624
624
|
value: G,
|
|
625
|
-
children: /* @__PURE__ */ r.jsx(
|
|
626
|
-
show:
|
|
625
|
+
children: /* @__PURE__ */ r.jsx(Lt, {
|
|
626
|
+
show: R,
|
|
627
627
|
ref: fe,
|
|
628
628
|
backdrop: T,
|
|
629
629
|
container: re,
|
|
630
630
|
keyboard: !0,
|
|
631
|
-
autoFocus:
|
|
631
|
+
autoFocus: Q,
|
|
632
632
|
enforceFocus: ie,
|
|
633
633
|
restoreFocus: le,
|
|
634
634
|
restoreFocusOptions: de,
|
|
635
|
-
onEscapeKeyDown:
|
|
635
|
+
onEscapeKeyDown: ze,
|
|
636
636
|
onShow: ae,
|
|
637
637
|
onHide: O,
|
|
638
638
|
onEnter: Ye,
|
|
639
|
-
onEntering:
|
|
640
|
-
onEntered:
|
|
639
|
+
onEntering: Je,
|
|
640
|
+
onEntered: z,
|
|
641
641
|
onExit: Xe,
|
|
642
642
|
onExiting: ce,
|
|
643
|
-
onExited:
|
|
643
|
+
onExited: Ze,
|
|
644
644
|
manager: M(),
|
|
645
645
|
transition: E ? Wt : void 0,
|
|
646
646
|
backdropTransition: E ? Gt : void 0,
|
|
@@ -649,8 +649,8 @@ const ze = /* @__PURE__ */ u.forwardRef(({
|
|
|
649
649
|
})
|
|
650
650
|
});
|
|
651
651
|
});
|
|
652
|
-
|
|
653
|
-
const nn = Object.assign(
|
|
652
|
+
Qe.displayName = "Modal";
|
|
653
|
+
const nn = Object.assign(Qe, {
|
|
654
654
|
Body: Ge,
|
|
655
655
|
Header: qe,
|
|
656
656
|
Title: Ve,
|
|
@@ -687,32 +687,32 @@ const on = {
|
|
|
687
687
|
LOGOUT_FAILURE: "msal:logoutFailure",
|
|
688
688
|
LOGOUT_END: "msal:logoutEnd",
|
|
689
689
|
RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
|
|
690
|
-
}, 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 = {
|
|
691
691
|
button: Kt,
|
|
692
692
|
filled: Ht,
|
|
693
693
|
sm: qt,
|
|
694
694
|
md: Vt,
|
|
695
|
-
lg:
|
|
695
|
+
lg: Qt
|
|
696
696
|
}, sn = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
|
|
697
697
|
const { LinkComponent: m } = ve(mt);
|
|
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 ?? ""}`,
|
|
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;
|
|
699
699
|
};
|
|
700
700
|
export {
|
|
701
701
|
$t as A,
|
|
702
|
-
|
|
703
|
-
|
|
702
|
+
Lt as B,
|
|
703
|
+
Ne as C,
|
|
704
704
|
on as E,
|
|
705
|
-
|
|
705
|
+
Re as F,
|
|
706
706
|
en as L,
|
|
707
707
|
Ke as M,
|
|
708
708
|
sn as P,
|
|
709
709
|
Ot as a,
|
|
710
710
|
tn as b,
|
|
711
|
-
|
|
711
|
+
L as c,
|
|
712
712
|
vt as d,
|
|
713
|
-
|
|
713
|
+
Bt as e,
|
|
714
714
|
nn as f,
|
|
715
715
|
Dt as g,
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
x as q,
|
|
717
|
+
Nt as u
|
|
718
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>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppSearchTexts, AxiosTexts, 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 } from 'react';
|
|
@@ -22,11 +22,9 @@ type Props = {
|
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
errorBoundaryTexts: ErrorBoundaryTexts;
|
|
24
24
|
widgetTexts: WidgetTexts;
|
|
25
|
-
texts:
|
|
26
|
-
messageBoard: MessageBoardTexts;
|
|
27
|
-
};
|
|
25
|
+
texts: ComponentsContextTexts;
|
|
28
26
|
ProjectIconComponent: IconComponentType;
|
|
29
27
|
localizationContext: Context<ILocalizationContext>;
|
|
30
28
|
};
|
|
31
|
-
declare const LuminusComponentsProvider: ({ cookieDomain, axiosOptions, LinkComponent, NavigateComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, customSelectTexts, errorBoundaryTexts, widgetTexts, texts
|
|
29
|
+
declare const LuminusComponentsProvider: ({ cookieDomain, axiosOptions, LinkComponent, NavigateComponent, language, axiosTexts, confirmTexts, formValidationTexts, homeDashboardTexts, formSubmitTexts, appSearchTexts, customSelectTexts, errorBoundaryTexts, widgetTexts, texts, ProjectIconComponent, localizationContext, children, }: Props) => import("react").JSX.Element;
|
|
32
30
|
export default LuminusComponentsProvider;
|