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
package/dist/utils.es.js
CHANGED
|
@@ -1,28 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as n } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
|
|
2
|
+
import { aU as T, aW as V, aY as E, aR as I, aZ as M, aV as U, aX as v, b0 as w, a_ as B, a$ as P } from "./FromToDatePickerDropdownToggle-CK3riYKN.js";
|
|
3
|
+
import { f } from "./dateUtils-DqftcSRs.js";
|
|
4
|
+
import { k as A, l as G, j as Y, h as z, o as Z, q as _, c as $, e as q, y as H, r as X, a as J, v as K, b as Q, u as tt, w as et, x as st, i as rt, n as at, m as ot, t as it } from "./dateUtils-DqftcSRs.js";
|
|
5
|
+
import { a as lt, s as ct, b as mt } from "./searchUtils-BHsouXbH.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "zod";
|
|
8
|
+
import "react-hook-form";
|
|
9
|
+
import "react-router-dom";
|
|
10
|
+
import { S as g } from "./SimpleTooltip-D4KGsTa_.js";
|
|
11
|
+
function u(t, s) {
|
|
12
|
+
t.setValue(s, null);
|
|
6
13
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
function D(t, s) {
|
|
15
|
+
s.forEach((r) => {
|
|
16
|
+
u(t, r);
|
|
10
17
|
});
|
|
11
18
|
}
|
|
19
|
+
const O = (t, s) => {
|
|
20
|
+
let r = !1, a = t;
|
|
21
|
+
t[0] === "#" && (a = t.slice(1), r = !0);
|
|
22
|
+
let e = parseInt(a.substring(0, 2), 16), o = parseInt(a.substring(2, 4), 16), i = parseInt(a.substring(4, 6), 16);
|
|
23
|
+
e += s, o += s, i += s, e > 255 ? e = 255 : e < 0 && (e = 0), o > 255 ? o = 255 : o < 0 && (o = 0), i > 255 ? i = 255 : i < 0 && (i = 0);
|
|
24
|
+
const l = e.toString(16).length === 1 ? "0" + e.toString(16) : e.toString(16), c = o.toString(16).length === 1 ? "0" + o.toString(16) : o.toString(16), m = i.toString(16).length === 1 ? "0" + i.toString(16) : i.toString(16);
|
|
25
|
+
return (r ? "#" : "") + l + c + m;
|
|
26
|
+
}, F = (t) => {
|
|
27
|
+
const s = t.slice(3), r = [];
|
|
28
|
+
for (let e = 0; e < s.length; e += 2)
|
|
29
|
+
r.push(s.slice(e, e + 2));
|
|
30
|
+
return `#${r.reverse().join("")}`;
|
|
31
|
+
}, j = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(g, { text: t, placement: "bottom", children: /* @__PURE__ */ n.jsx("div", { className: "w-100 text-truncate", children: t }) }), N = ({ cell: { value: t } }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: t == null ? void 0 : t.toLocaleString("cs-CZ") }), R = ({ cell: { value: t } }) => {
|
|
32
|
+
const s = f(new Date(t), "dd.MM.yyyy");
|
|
33
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? s : "" });
|
|
34
|
+
};
|
|
35
|
+
function L(t, s, r) {
|
|
36
|
+
const a = URL.createObjectURL(t), e = document.createElement("a");
|
|
37
|
+
e.href = a, e.setAttribute("download", s), e.setAttribute("style", "display: none"), r && e.setAttribute("target", "_blank"), document.body.appendChild(e), e.click(), document.body.removeChild(e), URL.revokeObjectURL(a);
|
|
38
|
+
}
|
|
12
39
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
O as adjustBrightness,
|
|
41
|
+
A as buildEmployeeNameString,
|
|
42
|
+
G as buildOrgUnitString,
|
|
43
|
+
Y as buildVehicleNameString,
|
|
44
|
+
z as capitalizeFirstLetter,
|
|
45
|
+
Z as compareDate,
|
|
46
|
+
_ as compareDateTime,
|
|
47
|
+
R as dateValueFormat,
|
|
48
|
+
T as extractErrorsFromResponse,
|
|
49
|
+
V as extractPermissionsFromResponse,
|
|
50
|
+
E as fixNameIdNulls,
|
|
51
|
+
$ as formatDate,
|
|
52
|
+
q as formatDateTime,
|
|
53
|
+
I as formatFileSize,
|
|
54
|
+
H as getDateString,
|
|
55
|
+
X as getDaysDifference,
|
|
56
|
+
J as getFirstDayOfMonth,
|
|
57
|
+
K as getFirstDayOfOffsetMonth,
|
|
58
|
+
Q as getFirstDayOfYear,
|
|
59
|
+
tt as getLastDayOfMonth,
|
|
60
|
+
et as getLastDayOfOffsetMonth,
|
|
61
|
+
st as getLastDayOfYear,
|
|
62
|
+
M as hasOnlyNullValues,
|
|
63
|
+
u as hookFormSetNull,
|
|
64
|
+
D as hookFormSetNulls,
|
|
65
|
+
U as hookFormSetServerErrors,
|
|
66
|
+
rt as isISODate,
|
|
67
|
+
v as isPrimitive,
|
|
68
|
+
at as isValidDate,
|
|
69
|
+
w as joinStrings,
|
|
70
|
+
ot as msToStartOfNextDay,
|
|
71
|
+
N as numFormat,
|
|
72
|
+
B as replaceNullValuesOnlyObjectsWithNulls,
|
|
73
|
+
L as saveFile,
|
|
74
|
+
lt as stringContains,
|
|
75
|
+
ct as stringSearchWithin,
|
|
76
|
+
mt as stringStartsWith,
|
|
77
|
+
it as trimIsoDate,
|
|
78
|
+
P as truncateText,
|
|
79
|
+
j as valueTooltip,
|
|
80
|
+
F as vclToHex
|
|
28
81
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./UserAvatarToggle-TIvfBxMd.cjs"),c=require("react"),He=require("react-dom");require("./latinize-Dl6DAk4g.cjs");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:I=()=>{},onExit:ie,onExited:F,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),D.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())}}),L=s.useEventCallback(()=>{if(d.remove(),w.current==null||w.current(),D.current==null||D.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&&L()},[N,L]),s.useWillUnmount(()=>{L()});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&&I())}),ue=s.useEventCallback(l=>{E&&s.isEscKey(l)&&d.isTopModal()&&(p==null||p(l),l.defaultPrevented||I())}),D=c.useRef(),w=c.useRef(),Y=(...l)=>{O(!0),F==null||F(...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 k={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,k.FIXED_CONTENT).forEach(a=>this.adjustAndStore(o,a,e.scrollBarWidth)),_(n,k.STICKY_CONTENT).forEach(a=>this.adjustAndStore(r,a,-e.scrollBarWidth)),_(n,k.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,k.FIXED_CONTENT).forEach(a=>this.restore(o,a)),_(n,k.STICKY_CONTENT).forEach(a=>this.restore(r,a)),_(n,k.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 Me=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})));Me.displayName="ModalFooter";const ke=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(ke,{ref:a,...r,className:s.classNames(e,t),closeLabel:n,closeButton:o})));Be.displayName="ModalHeader";const dt=Ne("h4"),Ie=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})));Ie.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 Fe=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:I,onExiting:ie,onEnter:F,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,L]=s.useCallbackRef(),de=s.useMergedRefs(y,L),Q=s.useEventCallback(b),ue=s.useIsRTL();t=s.useBootstrapPrefix(t,"modal");const D=c.useMemo(()=>({onHide:Q}),[Q]);function w(){return V||je({isRTL:ue})}function Y(i){if(!s.canUseDOM)return;const M=w().getScrollbarWidth()>0,Te=i.scrollHeight>s.ownerDocument(i).documentElement.clientHeight;d({paddingRight:M&&!Te?ye():void 0,paddingLeft:!M&&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()},Le=i=>{te?W==null||W(i):(i.preventDefault(),R==="static"&&l())},De=(i,M)=>{i&&Y(i),F==null||F(i,M)},Ue=i=>{g.current==null||g.current(),I==null||I(i)},$e=(i,M)=>{H==null||H(i,M),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:D,children:s.jsxRuntimeExports.jsx(Oe,{show:C,ref:de,backdrop:R,container:ne,keyboard:!0,autoFocus:G,enforceFocus:oe,restoreFocus:re,restoreFocusOptions:ae,onEscapeKeyDown:Le,onShow:se,onHide:b,onEnter:De,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})})});Fe.displayName="Modal";const ft=Object.assign(Fe,{Body:Ae,Header:Be,Title:Ie,Footer:Me,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=ke;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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./UserAvatarToggle-TIvfBxMd.cjs"),s=({text:t,placement:o,children:r})=>e.jsxRuntimeExports.jsx(e.OverlayTrigger,{placement:o,overlay:e.jsxRuntimeExports.jsx(e.Tooltip,{className:"luminus-tooltip",children:t}),children:r});exports.SimpleTooltip=s;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { j as o, Y as t, al as a } from "./UserAvatarToggle-BayC1mlH.js";
|
|
2
|
-
const i = ({ text: s, placement: r, children: l }) => /* @__PURE__ */ o.jsx(t, { placement: r, overlay: /* @__PURE__ */ o.jsx(a, { className: "luminus-tooltip", children: s }), children: l });
|
|
3
|
-
export {
|
|
4
|
-
i as S
|
|
5
|
-
};
|