react-luminus-components 1.2.77 → 1.2.80
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 +40 -40
- package/dist/EventType-BCIiHNVo.cjs +1 -0
- package/dist/{EventType-TaCH9oyp.js → EventType-DiHqEDqn.js} +140 -138
- package/dist/{NoInputContainer-CCGnNOSg.js → NoInputContainer-D_sgAiux.js} +933 -931
- package/dist/{NoInputContainer-DMOoy9Pc.cjs → NoInputContainer-QV9JLbnE.cjs} +46 -46
- package/dist/{SimpleTooltip-DVSE9qqf.cjs → SimpleTooltip-BKmgu79J.cjs} +1 -1
- package/dist/{SimpleTooltip-69aeczDW.js → SimpleTooltip-CXeUwU65.js} +1 -1
- package/dist/components/common/Card/Card.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +8 -0
- package/dist/components/common/Loading/LoadingBlock.d.ts +4 -0
- package/dist/components/common/Widget/WidgetCard.d.ts +8 -0
- package/dist/components/common/Widget/WidgetWrapper.d.ts +7 -0
- package/dist/components/common/index.d.ts +4 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +5 -1
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +7 -3
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +80 -76
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +2 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +136 -107
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +1188 -1145
- package/dist/models/index.d.ts +3 -0
- package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +5 -0
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +5 -0
- package/dist/models/texts/WidgetTexts.d.ts +4 -0
- package/dist/models/types/DashboardWidget.d.ts +4 -2
- package/dist/style.css +1 -1
- package/dist/{useConfirm-Cbsu_0WS.js → useConfirm-BgDxf_xi.js} +1 -1
- package/dist/{useConfirm-DAxHTuPE.cjs → useConfirm-ZMFNWP8A.cjs} +1 -1
- package/dist/{usePermissions-ChiH0cXr.cjs → usePermissions-DQNoOuU8.cjs} +1 -1
- package/dist/{usePermissions-CfEdvkjX.js → usePermissions-cOpmP15X.js} +1 -1
- package/package.json +1 -1
- package/dist/EventType-7wos9_SI.cjs +0 -1
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { j as i,
|
|
1
|
+
import { j as i, c, P as me, as as Ce, at as xe, s as H, r as Be, au as Pe, av as Ze, i as E, aw as Oe, ax as we, ay as Le, az as Je, aA as Ae, aB as et, u as L, n as tt, w as nt, z as ot, aC as Me, F as De, v as at, aD as st } from "./NoInputContainer-D_sgAiux.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { useRef as T, useEffect as
|
|
3
|
+
import { useRef as T, useEffect as Ee, forwardRef as rt, useState as Te, useImperativeHandle as it, useCallback as ye, useContext as lt, useMemo as dt } from "react";
|
|
4
4
|
import ct from "react-dom";
|
|
5
|
-
const ut = "
|
|
5
|
+
const ut = "_loading_rgybp_1", ft = "_spinner-grow_rgybp_10", mt = "_second_rgybp_14", gt = "_third_rgybp_17", ht = "_loadingBlock_rgybp_21", I = {
|
|
6
6
|
loading: ut,
|
|
7
|
-
"spinner-grow": "_spinner-
|
|
7
|
+
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
8
8
|
spinnerGrow: ft,
|
|
9
9
|
second: mt,
|
|
10
|
-
third:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */ i.jsx("div", { className: c("spinner-grow",
|
|
14
|
-
/* @__PURE__ */ i.jsx("div", { className: c("spinner-grow",
|
|
15
|
-
|
|
10
|
+
third: gt,
|
|
11
|
+
loadingBlock: ht
|
|
12
|
+
}, Ut = () => /* @__PURE__ */ i.jsxs("div", { className: c("luminus-loading", I.loading), children: [
|
|
13
|
+
/* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", I.spinnerGrow, "text-primary"), role: "status" }),
|
|
14
|
+
/* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", I.spinnerGrow, "text-primary", I.second), role: "status" }),
|
|
15
|
+
/* @__PURE__ */ i.jsx("div", { className: c("spinner-grow", I.spinnerGrow, "text-primary", I.third), role: "status" })
|
|
16
|
+
] }), pt = (t) => /* @__PURE__ */ u.forwardRef((e, n) => /* @__PURE__ */ i.jsx("div", {
|
|
16
17
|
...e,
|
|
17
18
|
ref: n,
|
|
18
19
|
className: c(e.className, t)
|
|
19
20
|
}));
|
|
20
21
|
function Et(t) {
|
|
21
22
|
const e = T(null);
|
|
22
|
-
return
|
|
23
|
+
return Ee(() => {
|
|
23
24
|
e.current = t;
|
|
24
25
|
}), e.current;
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
+
const Tt = {
|
|
27
28
|
/** An accessible label indicating the relevant information about the Close Button. */
|
|
28
29
|
"aria-label": me.string,
|
|
29
30
|
/** A callback fired after the Close Button is clicked. */
|
|
@@ -34,7 +35,7 @@ const pt = {
|
|
|
34
35
|
* Omitting this will render the default dark color.
|
|
35
36
|
*/
|
|
36
37
|
variant: me.oneOf(["white"])
|
|
37
|
-
},
|
|
38
|
+
}, ve = /* @__PURE__ */ u.forwardRef(({
|
|
38
39
|
className: t,
|
|
39
40
|
variant: e,
|
|
40
41
|
"aria-label": n = "Close",
|
|
@@ -46,11 +47,11 @@ const pt = {
|
|
|
46
47
|
"aria-label": n,
|
|
47
48
|
...o
|
|
48
49
|
}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var
|
|
50
|
+
ve.displayName = "CloseButton";
|
|
51
|
+
ve.propTypes = Tt;
|
|
52
|
+
var yt = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
52
53
|
function x(t, e) {
|
|
53
|
-
return
|
|
54
|
+
return yt(t.querySelectorAll(e));
|
|
54
55
|
}
|
|
55
56
|
const Ct = "data-rr-ui-";
|
|
56
57
|
function vt(t) {
|
|
@@ -58,13 +59,13 @@ function vt(t) {
|
|
|
58
59
|
}
|
|
59
60
|
var te;
|
|
60
61
|
function be(t) {
|
|
61
|
-
if ((!te && te !== 0 || t) &&
|
|
62
|
+
if ((!te && te !== 0 || t) && Ce) {
|
|
62
63
|
var e = document.createElement("div");
|
|
63
64
|
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), te = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
64
65
|
}
|
|
65
66
|
return te;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function ge(t) {
|
|
68
69
|
t === void 0 && (t = xe());
|
|
69
70
|
try {
|
|
70
71
|
var e = t.activeElement;
|
|
@@ -77,8 +78,8 @@ function Rt(t = document) {
|
|
|
77
78
|
const e = t.defaultView;
|
|
78
79
|
return Math.abs(e.innerWidth - t.documentElement.clientWidth);
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
-
class
|
|
81
|
+
const ke = vt("modal-open");
|
|
82
|
+
class Re {
|
|
82
83
|
constructor({
|
|
83
84
|
ownerDocument: e,
|
|
84
85
|
handleContainerOverflow: n = !0,
|
|
@@ -103,14 +104,14 @@ class ye {
|
|
|
103
104
|
e.style = {
|
|
104
105
|
overflow: a.style.overflow,
|
|
105
106
|
[o]: a.style[o]
|
|
106
|
-
}, e.scrollBarWidth && (n[o] = `${parseInt(H(a, o) || "0", 10) + e.scrollBarWidth}px`), a.setAttribute(
|
|
107
|
+
}, e.scrollBarWidth && (n[o] = `${parseInt(H(a, o) || "0", 10) + e.scrollBarWidth}px`), a.setAttribute(ke, ""), H(a, n);
|
|
107
108
|
}
|
|
108
109
|
reset() {
|
|
109
110
|
[...this.modals].forEach((e) => this.remove(e));
|
|
110
111
|
}
|
|
111
112
|
removeContainerStyle(e) {
|
|
112
113
|
const n = this.getElement();
|
|
113
|
-
n.removeAttribute(
|
|
114
|
+
n.removeAttribute(ke), Object.assign(n.style, e.style);
|
|
114
115
|
}
|
|
115
116
|
add(e) {
|
|
116
117
|
let n = this.modals.indexOf(e);
|
|
@@ -127,8 +128,8 @@ class ye {
|
|
|
127
128
|
return !!this.modals.length && this.modals[this.modals.length - 1] === e;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
const
|
|
131
|
-
function
|
|
131
|
+
const St = ["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"];
|
|
132
|
+
function Nt(t, e) {
|
|
132
133
|
if (t == null)
|
|
133
134
|
return {};
|
|
134
135
|
var n = {}, o = Object.keys(t), a, r;
|
|
@@ -136,14 +137,14 @@ function St(t, e) {
|
|
|
136
137
|
a = o[r], !(e.indexOf(a) >= 0) && (n[a] = t[a]);
|
|
137
138
|
return n;
|
|
138
139
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
let he;
|
|
141
|
+
function _t(t) {
|
|
142
|
+
return he || (he = new Re({
|
|
142
143
|
ownerDocument: t == null ? void 0 : t.document
|
|
143
|
-
})),
|
|
144
|
+
})), he;
|
|
144
145
|
}
|
|
145
146
|
function Ot(t) {
|
|
146
|
-
const e =
|
|
147
|
+
const e = Be(), n = t || _t(e), o = T({
|
|
147
148
|
dialog: null,
|
|
148
149
|
backdrop: null
|
|
149
150
|
});
|
|
@@ -151,10 +152,10 @@ function Ot(t) {
|
|
|
151
152
|
add: () => n.add(o.current),
|
|
152
153
|
remove: () => n.remove(o.current),
|
|
153
154
|
isTopModal: () => n.isTopModal(o.current),
|
|
154
|
-
setDialogRef:
|
|
155
|
+
setDialogRef: ye((a) => {
|
|
155
156
|
o.current.dialog = a;
|
|
156
157
|
}, []),
|
|
157
|
-
setBackdropRef:
|
|
158
|
+
setBackdropRef: ye((a) => {
|
|
158
159
|
o.current.backdrop = a;
|
|
159
160
|
}, [])
|
|
160
161
|
});
|
|
@@ -165,18 +166,18 @@ const Fe = /* @__PURE__ */ rt((t, e) => {
|
|
|
165
166
|
role: o = "dialog",
|
|
166
167
|
className: a,
|
|
167
168
|
style: r,
|
|
168
|
-
children:
|
|
169
|
+
children: y,
|
|
169
170
|
backdrop: m = !0,
|
|
170
|
-
keyboard:
|
|
171
|
+
keyboard: C = !0,
|
|
171
172
|
onBackdropClick: S,
|
|
172
|
-
onEscapeKeyDown:
|
|
173
|
+
onEscapeKeyDown: g,
|
|
173
174
|
transition: D,
|
|
174
|
-
runTransition:
|
|
175
|
+
runTransition: v,
|
|
175
176
|
backdropTransition: N,
|
|
176
177
|
runBackdropTransition: ne,
|
|
177
178
|
autoFocus: $ = !0,
|
|
178
179
|
enforceFocus: oe = !0,
|
|
179
|
-
restoreFocus:
|
|
180
|
+
restoreFocus: _ = !0,
|
|
180
181
|
restoreFocusOptions: ae,
|
|
181
182
|
renderDialog: q,
|
|
182
183
|
renderBackdrop: se = (l) => /* @__PURE__ */ i.jsx("div", Object.assign({}, l)),
|
|
@@ -191,11 +192,11 @@ const Fe = /* @__PURE__ */ rt((t, e) => {
|
|
|
191
192
|
onEnter: Q,
|
|
192
193
|
onEntering: Y,
|
|
193
194
|
onEntered: X
|
|
194
|
-
} = t, de =
|
|
195
|
-
const
|
|
196
|
-
it(e, () => d, [d]),
|
|
197
|
-
const
|
|
198
|
-
if (d.add(), A.current =
|
|
195
|
+
} = t, de = Nt(t, St);
|
|
196
|
+
const h = Be(), O = Pe(ie), d = Ot(re), ce = Ze(), P = Et(n), [R, w] = Te(!n), f = T(null);
|
|
197
|
+
it(e, () => d, [d]), Ce && !P && n && (f.current = ge(h == null ? void 0 : h.document)), n && R && w(!1);
|
|
198
|
+
const p = E(() => {
|
|
199
|
+
if (d.add(), A.current = Oe(document, "keydown", fe), W.current = Oe(
|
|
199
200
|
document,
|
|
200
201
|
"focus",
|
|
201
202
|
// the timeout is necessary b/c this will run before the new modal is mounted
|
|
@@ -204,40 +205,40 @@ const Fe = /* @__PURE__ */ rt((t, e) => {
|
|
|
204
205
|
!0
|
|
205
206
|
), z && z(), $) {
|
|
206
207
|
var l, ee;
|
|
207
|
-
const K =
|
|
208
|
+
const K = ge((l = (ee = d.dialog) == null ? void 0 : ee.ownerDocument) != null ? l : h == null ? void 0 : h.document);
|
|
208
209
|
d.dialog && K && !we(d.dialog, K) && (f.current = K, d.dialog.focus());
|
|
209
210
|
}
|
|
210
|
-
}), U =
|
|
211
|
-
if (d.remove(), A.current == null || A.current(), W.current == null || W.current(),
|
|
211
|
+
}), U = E(() => {
|
|
212
|
+
if (d.remove(), A.current == null || A.current(), W.current == null || W.current(), _) {
|
|
212
213
|
var l;
|
|
213
214
|
(l = f.current) == null || l.focus == null || l.focus(ae), f.current = null;
|
|
214
215
|
}
|
|
215
216
|
});
|
|
216
|
-
|
|
217
|
-
!n || !
|
|
217
|
+
Ee(() => {
|
|
218
|
+
!n || !O || p();
|
|
218
219
|
}, [
|
|
219
220
|
n,
|
|
220
|
-
|
|
221
|
+
O,
|
|
221
222
|
/* should never change: */
|
|
222
|
-
|
|
223
|
-
]),
|
|
224
|
-
|
|
225
|
-
}, [
|
|
223
|
+
p
|
|
224
|
+
]), Ee(() => {
|
|
225
|
+
R && U();
|
|
226
|
+
}, [R, U]), Le(() => {
|
|
226
227
|
U();
|
|
227
228
|
});
|
|
228
|
-
const ue =
|
|
229
|
+
const ue = E(() => {
|
|
229
230
|
if (!oe || !ce() || !d.isTopModal())
|
|
230
231
|
return;
|
|
231
|
-
const l =
|
|
232
|
+
const l = ge(h == null ? void 0 : h.document);
|
|
232
233
|
d.dialog && l && !we(d.dialog, l) && d.dialog.focus();
|
|
233
|
-
}), Z =
|
|
234
|
+
}), Z = E((l) => {
|
|
234
235
|
l.target === l.currentTarget && (S == null || S(l), m === !0 && F());
|
|
235
|
-
}), fe =
|
|
236
|
-
|
|
236
|
+
}), fe = E((l) => {
|
|
237
|
+
C && Je(l) && d.isTopModal() && (g == null || g(l), l.defaultPrevented || F());
|
|
237
238
|
}), W = T(), A = T(), J = (...l) => {
|
|
238
239
|
w(!0), j == null || j(...l);
|
|
239
240
|
};
|
|
240
|
-
if (!
|
|
241
|
+
if (!O)
|
|
241
242
|
return null;
|
|
242
243
|
const M = Object.assign({
|
|
243
244
|
role: o,
|
|
@@ -250,11 +251,11 @@ const Fe = /* @__PURE__ */ rt((t, e) => {
|
|
|
250
251
|
tabIndex: -1
|
|
251
252
|
});
|
|
252
253
|
let G = q ? q(M) : /* @__PURE__ */ i.jsx("div", Object.assign({}, M, {
|
|
253
|
-
children: /* @__PURE__ */ u.cloneElement(
|
|
254
|
+
children: /* @__PURE__ */ u.cloneElement(y, {
|
|
254
255
|
role: "document"
|
|
255
256
|
})
|
|
256
257
|
}));
|
|
257
|
-
G = Ae(D,
|
|
258
|
+
G = Ae(D, v, {
|
|
258
259
|
unmountOnExit: !0,
|
|
259
260
|
mountOnEnter: !0,
|
|
260
261
|
appear: !0,
|
|
@@ -280,28 +281,28 @@ const Fe = /* @__PURE__ */ rt((t, e) => {
|
|
|
280
281
|
})), /* @__PURE__ */ i.jsx(i.Fragment, {
|
|
281
282
|
children: /* @__PURE__ */ ct.createPortal(/* @__PURE__ */ i.jsxs(i.Fragment, {
|
|
282
283
|
children: [b, G]
|
|
283
|
-
}),
|
|
284
|
+
}), O)
|
|
284
285
|
});
|
|
285
286
|
});
|
|
286
287
|
Fe.displayName = "Modal";
|
|
287
|
-
const
|
|
288
|
-
Manager:
|
|
288
|
+
const wt = Object.assign(Fe, {
|
|
289
|
+
Manager: Re
|
|
289
290
|
});
|
|
290
|
-
function
|
|
291
|
+
function At(t, e) {
|
|
291
292
|
t.classList ? t.classList.add(e) : et(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function Ie(t, e) {
|
|
294
295
|
return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className =
|
|
297
|
+
function Mt(t, e) {
|
|
298
|
+
t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = Ie(t.className, e) : t.setAttribute("class", Ie(t.className && t.className.baseVal || "", e));
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
+
const B = {
|
|
300
301
|
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
|
|
301
302
|
STICKY_CONTENT: ".sticky-top",
|
|
302
303
|
NAVBAR_TOGGLER: ".navbar-toggler"
|
|
303
304
|
};
|
|
304
|
-
class
|
|
305
|
+
class bt extends Re {
|
|
305
306
|
adjustAndStore(e, n, o) {
|
|
306
307
|
const a = n.style[e];
|
|
307
308
|
n.dataset[e] = a, H(n, {
|
|
@@ -317,29 +318,29 @@ class Mt extends ye {
|
|
|
317
318
|
setContainerStyle(e) {
|
|
318
319
|
super.setContainerStyle(e);
|
|
319
320
|
const n = this.getElement();
|
|
320
|
-
if (
|
|
321
|
+
if (At(n, "modal-open"), !e.scrollBarWidth)
|
|
321
322
|
return;
|
|
322
323
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", a = this.isRTL ? "marginLeft" : "marginRight";
|
|
323
|
-
x(n,
|
|
324
|
+
x(n, B.FIXED_CONTENT).forEach((r) => this.adjustAndStore(o, r, e.scrollBarWidth)), x(n, B.STICKY_CONTENT).forEach((r) => this.adjustAndStore(a, r, -e.scrollBarWidth)), x(n, B.NAVBAR_TOGGLER).forEach((r) => this.adjustAndStore(a, r, e.scrollBarWidth));
|
|
324
325
|
}
|
|
325
326
|
removeContainerStyle(e) {
|
|
326
327
|
super.removeContainerStyle(e);
|
|
327
328
|
const n = this.getElement();
|
|
328
|
-
|
|
329
|
+
Mt(n, "modal-open");
|
|
329
330
|
const o = this.isRTL ? "paddingLeft" : "paddingRight", a = this.isRTL ? "marginLeft" : "marginRight";
|
|
330
|
-
x(n,
|
|
331
|
+
x(n, B.FIXED_CONTENT).forEach((r) => this.restore(o, r)), x(n, B.STICKY_CONTENT).forEach((r) => this.restore(a, r)), x(n, B.NAVBAR_TOGGLER).forEach((r) => this.restore(a, r));
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
|
-
let
|
|
334
|
-
function
|
|
335
|
-
return
|
|
334
|
+
let pe;
|
|
335
|
+
function kt(t) {
|
|
336
|
+
return pe || (pe = new bt(t)), pe;
|
|
336
337
|
}
|
|
337
338
|
const je = /* @__PURE__ */ u.forwardRef(({
|
|
338
339
|
className: t,
|
|
339
340
|
bsPrefix: e,
|
|
340
341
|
as: n = "div",
|
|
341
342
|
...o
|
|
342
|
-
}, a) => (e =
|
|
343
|
+
}, a) => (e = L(e, "modal-body"), /* @__PURE__ */ i.jsx(n, {
|
|
343
344
|
ref: a,
|
|
344
345
|
className: c(t, e),
|
|
345
346
|
...o
|
|
@@ -356,19 +357,19 @@ const Ue = /* @__PURE__ */ u.createContext({
|
|
|
356
357
|
centered: o,
|
|
357
358
|
size: a,
|
|
358
359
|
fullscreen: r,
|
|
359
|
-
children:
|
|
360
|
+
children: y,
|
|
360
361
|
scrollable: m,
|
|
361
|
-
...
|
|
362
|
+
...C
|
|
362
363
|
}, S) => {
|
|
363
|
-
t =
|
|
364
|
-
const
|
|
364
|
+
t = L(t, "modal");
|
|
365
|
+
const g = `${t}-dialog`, D = typeof r == "string" ? `${t}-fullscreen-${r}` : `${t}-fullscreen`;
|
|
365
366
|
return /* @__PURE__ */ i.jsx("div", {
|
|
366
|
-
...
|
|
367
|
+
...C,
|
|
367
368
|
ref: S,
|
|
368
|
-
className: c(
|
|
369
|
+
className: c(g, e, a && `${t}-${a}`, o && `${g}-centered`, m && `${g}-scrollable`, r && D),
|
|
369
370
|
children: /* @__PURE__ */ i.jsx("div", {
|
|
370
371
|
className: c(`${t}-content`, n),
|
|
371
|
-
children:
|
|
372
|
+
children: y
|
|
372
373
|
})
|
|
373
374
|
});
|
|
374
375
|
});
|
|
@@ -378,7 +379,7 @@ const We = /* @__PURE__ */ u.forwardRef(({
|
|
|
378
379
|
bsPrefix: e,
|
|
379
380
|
as: n = "div",
|
|
380
381
|
...o
|
|
381
|
-
}, a) => (e =
|
|
382
|
+
}, a) => (e = L(e, "modal-footer"), /* @__PURE__ */ i.jsx(n, {
|
|
382
383
|
ref: a,
|
|
383
384
|
className: c(t, e),
|
|
384
385
|
...o
|
|
@@ -391,17 +392,17 @@ const It = /* @__PURE__ */ u.forwardRef(({
|
|
|
391
392
|
onHide: o,
|
|
392
393
|
children: a,
|
|
393
394
|
...r
|
|
394
|
-
},
|
|
395
|
-
const m = lt(Ue),
|
|
395
|
+
}, y) => {
|
|
396
|
+
const m = lt(Ue), C = E(() => {
|
|
396
397
|
m == null || m.onHide(), o == null || o();
|
|
397
398
|
});
|
|
398
399
|
return /* @__PURE__ */ i.jsxs("div", {
|
|
399
|
-
ref:
|
|
400
|
+
ref: y,
|
|
400
401
|
...r,
|
|
401
|
-
children: [a, n && /* @__PURE__ */ i.jsx(
|
|
402
|
+
children: [a, n && /* @__PURE__ */ i.jsx(ve, {
|
|
402
403
|
"aria-label": t,
|
|
403
404
|
variant: e,
|
|
404
|
-
onClick:
|
|
405
|
+
onClick: C
|
|
405
406
|
})]
|
|
406
407
|
});
|
|
407
408
|
}), Ge = /* @__PURE__ */ u.forwardRef(({
|
|
@@ -410,7 +411,7 @@ const It = /* @__PURE__ */ u.forwardRef(({
|
|
|
410
411
|
closeLabel: n = "Close",
|
|
411
412
|
closeButton: o = !1,
|
|
412
413
|
...a
|
|
413
|
-
}, r) => (t =
|
|
414
|
+
}, r) => (t = L(t, "modal-header"), /* @__PURE__ */ i.jsx(It, {
|
|
414
415
|
ref: r,
|
|
415
416
|
...a,
|
|
416
417
|
className: c(e, t),
|
|
@@ -418,18 +419,18 @@ const It = /* @__PURE__ */ u.forwardRef(({
|
|
|
418
419
|
closeButton: o
|
|
419
420
|
})));
|
|
420
421
|
Ge.displayName = "ModalHeader";
|
|
421
|
-
const
|
|
422
|
+
const xt = pt("h4"), Ke = /* @__PURE__ */ u.forwardRef(({
|
|
422
423
|
className: t,
|
|
423
424
|
bsPrefix: e,
|
|
424
|
-
as: n =
|
|
425
|
+
as: n = xt,
|
|
425
426
|
...o
|
|
426
|
-
}, a) => (e =
|
|
427
|
+
}, a) => (e = L(e, "modal-title"), /* @__PURE__ */ i.jsx(n, {
|
|
427
428
|
ref: a,
|
|
428
429
|
className: c(t, e),
|
|
429
430
|
...o
|
|
430
431
|
})));
|
|
431
432
|
Ke.displayName = "ModalTitle";
|
|
432
|
-
function
|
|
433
|
+
function Bt(t) {
|
|
433
434
|
return /* @__PURE__ */ i.jsx(De, {
|
|
434
435
|
...t,
|
|
435
436
|
timeout: null
|
|
@@ -448,19 +449,19 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
448
449
|
dialogClassName: o,
|
|
449
450
|
contentClassName: a,
|
|
450
451
|
children: r,
|
|
451
|
-
dialogAs:
|
|
452
|
+
dialogAs: y = Se,
|
|
452
453
|
"data-bs-theme": m,
|
|
453
|
-
"aria-labelledby":
|
|
454
|
+
"aria-labelledby": C,
|
|
454
455
|
"aria-describedby": S,
|
|
455
|
-
"aria-label":
|
|
456
|
+
"aria-label": g,
|
|
456
457
|
/* BaseModal props */
|
|
457
458
|
show: D = !1,
|
|
458
|
-
animation:
|
|
459
|
+
animation: v = !0,
|
|
459
460
|
backdrop: N = !0,
|
|
460
461
|
keyboard: ne = !0,
|
|
461
462
|
onEscapeKeyDown: $,
|
|
462
463
|
onShow: oe,
|
|
463
|
-
onHide:
|
|
464
|
+
onHide: _,
|
|
464
465
|
container: ae,
|
|
465
466
|
autoFocus: q = !0,
|
|
466
467
|
enforceFocus: se = !0,
|
|
@@ -475,38 +476,38 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
475
476
|
backdropClassName: Y,
|
|
476
477
|
manager: X,
|
|
477
478
|
...de
|
|
478
|
-
},
|
|
479
|
-
const [
|
|
480
|
-
t =
|
|
479
|
+
}, h) => {
|
|
480
|
+
const [O, d] = Te({}), [ce, P] = Te(!1), R = T(!1), w = T(!1), f = T(null), [p, U] = tt(), ue = nt(h, U), Z = E(_), fe = ot();
|
|
481
|
+
t = L(t, "modal");
|
|
481
482
|
const W = dt(() => ({
|
|
482
483
|
onHide: Z
|
|
483
484
|
}), [Z]);
|
|
484
485
|
function A() {
|
|
485
|
-
return X ||
|
|
486
|
+
return X || kt({
|
|
486
487
|
isRTL: fe
|
|
487
488
|
});
|
|
488
489
|
}
|
|
489
490
|
function J(s) {
|
|
490
|
-
if (!
|
|
491
|
+
if (!Ce)
|
|
491
492
|
return;
|
|
492
|
-
const
|
|
493
|
+
const k = A().getScrollbarWidth() > 0, _e = s.scrollHeight > xe(s).documentElement.clientHeight;
|
|
493
494
|
d({
|
|
494
|
-
paddingRight:
|
|
495
|
-
paddingLeft: !
|
|
495
|
+
paddingRight: k && !_e ? be() : void 0,
|
|
496
|
+
paddingLeft: !k && _e ? be() : void 0
|
|
496
497
|
});
|
|
497
498
|
}
|
|
498
|
-
const M =
|
|
499
|
-
|
|
499
|
+
const M = E(() => {
|
|
500
|
+
p && J(p.dialog);
|
|
500
501
|
});
|
|
501
|
-
|
|
502
|
+
Le(() => {
|
|
502
503
|
Me(window, "resize", M), f.current == null || f.current();
|
|
503
504
|
});
|
|
504
505
|
const G = () => {
|
|
505
|
-
|
|
506
|
+
R.current = !0;
|
|
506
507
|
}, b = (s) => {
|
|
507
|
-
|
|
508
|
+
R.current && p && s.target === p.dialog && (w.current = !0), R.current = !1;
|
|
508
509
|
}, l = () => {
|
|
509
|
-
P(!0), f.current = st(
|
|
510
|
+
P(!0), f.current = st(p.dialog, () => {
|
|
510
511
|
P(!1);
|
|
511
512
|
});
|
|
512
513
|
}, ee = (s) => {
|
|
@@ -520,37 +521,37 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
520
521
|
w.current = !1;
|
|
521
522
|
return;
|
|
522
523
|
}
|
|
523
|
-
|
|
524
|
+
_ == null || _();
|
|
524
525
|
}, $e = (s) => {
|
|
525
526
|
ne ? $ == null || $(s) : (s.preventDefault(), N === "static" && l());
|
|
526
|
-
}, qe = (s,
|
|
527
|
-
s && J(s), j == null || j(s,
|
|
527
|
+
}, qe = (s, k) => {
|
|
528
|
+
s && J(s), j == null || j(s, k);
|
|
528
529
|
}, ze = (s) => {
|
|
529
530
|
f.current == null || f.current(), F == null || F(s);
|
|
530
|
-
}, Ve = (s,
|
|
531
|
-
V == null || V(s,
|
|
531
|
+
}, Ve = (s, k) => {
|
|
532
|
+
V == null || V(s, k), at(window, "resize", M);
|
|
532
533
|
}, Qe = (s) => {
|
|
533
534
|
s && (s.style.display = ""), Q == null || Q(s), Me(window, "resize", M);
|
|
534
|
-
}, Ye =
|
|
535
|
+
}, Ye = ye((s) => /* @__PURE__ */ i.jsx("div", {
|
|
535
536
|
...s,
|
|
536
|
-
className: c(`${t}-backdrop`, Y, !
|
|
537
|
-
}), [
|
|
537
|
+
className: c(`${t}-backdrop`, Y, !v && "show")
|
|
538
|
+
}), [v, Y, t]), Ne = {
|
|
538
539
|
...n,
|
|
539
|
-
...
|
|
540
|
+
...O
|
|
540
541
|
};
|
|
541
542
|
Ne.display = "block";
|
|
542
543
|
const Xe = (s) => /* @__PURE__ */ i.jsx("div", {
|
|
543
544
|
role: "dialog",
|
|
544
545
|
...s,
|
|
545
546
|
style: Ne,
|
|
546
|
-
className: c(e, t, ce && `${t}-static`, !
|
|
547
|
+
className: c(e, t, ce && `${t}-static`, !v && "show"),
|
|
547
548
|
onClick: N ? K : void 0,
|
|
548
549
|
onMouseUp: b,
|
|
549
550
|
"data-bs-theme": m,
|
|
550
|
-
"aria-label":
|
|
551
|
-
"aria-labelledby":
|
|
551
|
+
"aria-label": g,
|
|
552
|
+
"aria-labelledby": C,
|
|
552
553
|
"aria-describedby": S,
|
|
553
|
-
children: /* @__PURE__ */ i.jsx(
|
|
554
|
+
children: /* @__PURE__ */ i.jsx(y, {
|
|
554
555
|
...de,
|
|
555
556
|
onMouseDown: G,
|
|
556
557
|
className: o,
|
|
@@ -560,7 +561,7 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
560
561
|
});
|
|
561
562
|
return /* @__PURE__ */ i.jsx(Ue.Provider, {
|
|
562
563
|
value: W,
|
|
563
|
-
children: /* @__PURE__ */ i.jsx(
|
|
564
|
+
children: /* @__PURE__ */ i.jsx(wt, {
|
|
564
565
|
show: D,
|
|
565
566
|
ref: ue,
|
|
566
567
|
backdrop: N,
|
|
@@ -572,7 +573,7 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
572
573
|
restoreFocusOptions: ie,
|
|
573
574
|
onEscapeKeyDown: $e,
|
|
574
575
|
onShow: oe,
|
|
575
|
-
onHide:
|
|
576
|
+
onHide: _,
|
|
576
577
|
onEnter: qe,
|
|
577
578
|
onEntering: Ve,
|
|
578
579
|
onEntered: z,
|
|
@@ -580,15 +581,15 @@ const He = /* @__PURE__ */ u.forwardRef(({
|
|
|
580
581
|
onExiting: le,
|
|
581
582
|
onExited: Qe,
|
|
582
583
|
manager: A(),
|
|
583
|
-
transition:
|
|
584
|
-
backdropTransition:
|
|
584
|
+
transition: v ? Bt : void 0,
|
|
585
|
+
backdropTransition: v ? Lt : void 0,
|
|
585
586
|
renderBackdrop: Ye,
|
|
586
587
|
renderDialog: Xe
|
|
587
588
|
})
|
|
588
589
|
});
|
|
589
590
|
});
|
|
590
591
|
He.displayName = "Modal";
|
|
591
|
-
const
|
|
592
|
+
const Wt = Object.assign(He, {
|
|
592
593
|
Body: je,
|
|
593
594
|
Header: Ge,
|
|
594
595
|
Title: Ke,
|
|
@@ -598,7 +599,7 @@ const Ut = Object.assign(He, {
|
|
|
598
599
|
BACKDROP_TRANSITION_DURATION: 150
|
|
599
600
|
});
|
|
600
601
|
/*! @azure/msal-browser v3.14.0 2024-05-07 */
|
|
601
|
-
const
|
|
602
|
+
const Gt = {
|
|
602
603
|
INITIALIZE_START: "msal:initializeStart",
|
|
603
604
|
INITIALIZE_END: "msal:initializeEnd",
|
|
604
605
|
ACCOUNT_ADDED: "msal:accountAdded",
|
|
@@ -627,12 +628,13 @@ const Wt = {
|
|
|
627
628
|
RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
|
|
628
629
|
};
|
|
629
630
|
export {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
631
|
+
ve as C,
|
|
632
|
+
Gt as E,
|
|
633
|
+
Ut as L,
|
|
634
|
+
Wt as M,
|
|
634
635
|
vt as a,
|
|
635
|
-
|
|
636
|
+
I as c,
|
|
637
|
+
pt as d,
|
|
636
638
|
x as q,
|
|
637
639
|
Et as u
|
|
638
640
|
};
|