react-luminus-components 1.2.69 → 1.2.70
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 +25 -25
- package/dist/EventType-C7yHDXD-.cjs +1 -0
- package/dist/{EventType-BaJL273E.js → EventType-CnIS_MxK.js} +4 -2
- package/dist/{NoInputContainer-BL5lK_1n.js → NoInputContainer-BnAPYzCz.js} +76 -76
- package/dist/SimpleTooltip-ty5BQkX3.js +5 -0
- package/dist/components/common/Alert/Alert.d.ts +7 -0
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +6 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +9 -9
- package/dist/hooks.es.js +25 -25
- package/dist/layout.es.js +17 -17
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +1025 -946
- package/dist/{useConfirm-DfJwzwi3.js → useConfirm-Td63xw5L.js} +5 -5
- package/dist/{usePermissions-BHuzq2YR.js → usePermissions-Dn_gKjni.js} +1 -1
- package/package.json +1 -1
- package/dist/EventType-D-3fmjBD.cjs +0 -1
- package/dist/SimpleTooltip-B8Mu42aG.js +0 -5
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_EventType-
|
|
3
|
-
"file": "EventType-
|
|
2
|
+
"_EventType-C7yHDXD-.cjs": {
|
|
3
|
+
"file": "EventType-C7yHDXD-.cjs",
|
|
4
4
|
"name": "EventType",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_NoInputContainer-
|
|
6
|
+
"_NoInputContainer-CAwCEVT5.cjs"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_EventType-
|
|
10
|
-
"file": "EventType-
|
|
9
|
+
"_EventType-CnIS_MxK.js": {
|
|
10
|
+
"file": "EventType-CnIS_MxK.js",
|
|
11
11
|
"name": "EventType",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_NoInputContainer-
|
|
13
|
+
"_NoInputContainer-BnAPYzCz.js"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_NoInputContainer-
|
|
17
|
-
"file": "NoInputContainer-
|
|
16
|
+
"_NoInputContainer-BnAPYzCz.js": {
|
|
17
|
+
"file": "NoInputContainer-BnAPYzCz.js",
|
|
18
18
|
"name": "NoInputContainer",
|
|
19
19
|
"imports": [
|
|
20
20
|
"_textUtils-BbxuIsKq.js"
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"_textUtils-CHVVh2oi.cjs"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"_SimpleTooltip-
|
|
31
|
-
"file": "SimpleTooltip-
|
|
30
|
+
"_SimpleTooltip-DsGhy1Oy.cjs": {
|
|
31
|
+
"file": "SimpleTooltip-DsGhy1Oy.cjs",
|
|
32
32
|
"name": "SimpleTooltip",
|
|
33
33
|
"imports": [
|
|
34
|
-
"_NoInputContainer-
|
|
34
|
+
"_NoInputContainer-CAwCEVT5.cjs"
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
"_SimpleTooltip-
|
|
38
|
-
"file": "SimpleTooltip-
|
|
37
|
+
"_SimpleTooltip-ty5BQkX3.js": {
|
|
38
|
+
"file": "SimpleTooltip-ty5BQkX3.js",
|
|
39
39
|
"name": "SimpleTooltip",
|
|
40
40
|
"imports": [
|
|
41
|
-
"_NoInputContainer-
|
|
41
|
+
"_NoInputContainer-BnAPYzCz.js"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"_dateUtils-CWKBTsx7.cjs": {
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"_NoInputContainer-CAwCEVT5.cjs"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
"_useConfirm-
|
|
74
|
-
"file": "useConfirm-
|
|
73
|
+
"_useConfirm-Td63xw5L.js": {
|
|
74
|
+
"file": "useConfirm-Td63xw5L.js",
|
|
75
75
|
"name": "useConfirm",
|
|
76
76
|
"imports": [
|
|
77
|
-
"_NoInputContainer-
|
|
77
|
+
"_NoInputContainer-BnAPYzCz.js"
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
"_useFormControlType-BAFqxupC.js": {
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
"file": "useFormControlType-Dqz8sV4J.cjs",
|
|
86
86
|
"name": "useFormControlType"
|
|
87
87
|
},
|
|
88
|
-
"_usePermissions-
|
|
89
|
-
"file": "usePermissions-
|
|
88
|
+
"_usePermissions-Cv-1FsfG.cjs": {
|
|
89
|
+
"file": "usePermissions-Cv-1FsfG.cjs",
|
|
90
90
|
"name": "usePermissions",
|
|
91
91
|
"imports": [
|
|
92
|
-
"_NoInputContainer-
|
|
92
|
+
"_NoInputContainer-CAwCEVT5.cjs"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"_usePermissions-
|
|
96
|
-
"file": "usePermissions-
|
|
95
|
+
"_usePermissions-Dn_gKjni.js": {
|
|
96
|
+
"file": "usePermissions-Dn_gKjni.js",
|
|
97
97
|
"name": "usePermissions",
|
|
98
98
|
"imports": [
|
|
99
|
-
"_NoInputContainer-
|
|
99
|
+
"_NoInputContainer-BnAPYzCz.js"
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
102
|
"src/contexts/index.ts": {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"imports": [
|
|
108
108
|
"_NoInputContainer-CAwCEVT5.cjs",
|
|
109
109
|
"_useConfirm-D_-tO0nr.cjs",
|
|
110
|
-
"_EventType-
|
|
110
|
+
"_EventType-C7yHDXD-.cjs"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"src/hooks/index.ts": {
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"isEntry": true,
|
|
143
143
|
"imports": [
|
|
144
144
|
"_NoInputContainer-CAwCEVT5.cjs",
|
|
145
|
-
"_EventType-
|
|
145
|
+
"_EventType-C7yHDXD-.cjs",
|
|
146
146
|
"_textUtils-CHVVh2oi.cjs",
|
|
147
147
|
"_useFormControlType-Dqz8sV4J.cjs",
|
|
148
148
|
"_SimpleTooltip-DsGhy1Oy.cjs"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./NoInputContainer-CAwCEVT5.cjs"),c=require("react"),De=require("react-dom");function Fe(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=Fe(c),Ue="_loading_14qfh_1",We="_spinner-grow_14qfh_10",Ge="_second_14qfh_14",Ke="_third_14qfh_17",b={loading:Ue,"spinner-grow":"_spinner-grow_14qfh_10",spinnerGrow:We,second:Ge,third:Ke},qe=()=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("luminus-loading",b.loading),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary"),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.second),role:"status"}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("spinner-grow",b.spinnerGrow,"text-primary",b.third),role:"status"})]}),xe=t=>u.forwardRef((e,n)=>s.jsxRuntimeExports.jsx("div",{...e,ref:n,className:s.classNames(e.className,t)}));function Ce(t){const e=c.useRef(null);return c.useEffect(()=>{e.current=t}),e.current}const He={"aria-label":s.PropTypes.string,onClick:s.PropTypes.func,variant:s.PropTypes.oneOf(["white"])},Z=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}));Z.displayName="CloseButton";Z.propTypes=He;var $e=Function.prototype.bind.call(Function.prototype.call,[].slice);function C(t,e){return $e(t.querySelectorAll(e))}const Pe="data-rr-ui-";function ve(t){return`${Pe}${t}`}var X;function ge(t){if((!X&&X!==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),X=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return X}function de(t){t===void 0&&(t=s.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ze(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const Re=ve("modal-open");class fe{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:o=!1}={}){this.handleContainerOverflow=n,this.isRTL=o,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ze(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(Re,""),s.style(r,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const n=this.getElement();n.removeAttribute(Re),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 Ve=["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 Qe(t,e){if(t==null)return{};var n={},o=Object.keys(t),r,i;for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let ue;function Ye(t){return ue||(ue=new fe({ownerDocument:t==null?void 0:t.document})),ue}function Xe(t){const e=s.useWindow(),n=t||Ye(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 Ne=c.forwardRef((t,e)=>{let{show:n=!1,role:o="dialog",className:r,style:i,children:g,backdrop:f=!0,keyboard:R=!0,onBackdropClick:v,onEscapeKeyDown:E,transition:k,runTransition:T,backdropTransition:N,runBackdropTransition:J,autoFocus:W=!0,enforceFocus:ee=!0,restoreFocus:y=!0,restoreFocusOptions:te,renderDialog:G,renderBackdrop:se=l=>s.jsxRuntimeExports.jsx("div",Object.assign({},l)),manager:ne,container:oe,onShow:K,onHide:I=()=>{},onExit:re,onExited:B,onExiting:q,onEnter:H,onEntering:$,onEntered:P}=t,ae=Qe(t,Ve);const p=s.useWindow(),S=s.useWaitForDOMRef(oe),d=Xe(ne),ie=s.useMounted(),z=Ce(n),[x,O]=c.useState(!n),m=c.useRef(null);c.useImperativeHandle(e,()=>d,[d]),s.canUseDOM&&!z&&n&&(m.current=de(p==null?void 0:p.document)),n&&x&&O(!1);const h=s.useEventCallback(()=>{if(d.add(),_.current=s.listen(document,"keydown",ce),D.current=s.listen(document,"focus",()=>setTimeout(le),!0),K&&K(),W){var l,Y;const U=de((l=(Y=d.dialog)==null?void 0:Y.ownerDocument)!=null?l:p==null?void 0:p.document);d.dialog&&U&&!s.contains(d.dialog,U)&&(m.current=U,d.dialog.focus())}}),L=s.useEventCallback(()=>{if(d.remove(),_.current==null||_.current(),D.current==null||D.current(),y){var l;(l=m.current)==null||l.focus==null||l.focus(te),m.current=null}});c.useEffect(()=>{!n||!S||h()},[n,S,h]),c.useEffect(()=>{x&&L()},[x,L]),s.useWillUnmount(()=>{L()});const le=s.useEventCallback(()=>{if(!ee||!ie()||!d.isTopModal())return;const l=de(p==null?void 0:p.document);d.dialog&&l&&!s.contains(d.dialog,l)&&d.dialog.focus()}),V=s.useEventCallback(l=>{l.target===l.currentTarget&&(v==null||v(l),f===!0&&I())}),ce=s.useEventCallback(l=>{R&&s.isEscKey(l)&&d.isTopModal()&&(E==null||E(l),l.defaultPrevented||I())}),D=c.useRef(),_=c.useRef(),Q=(...l)=>{O(!0),B==null||B(...l)};if(!S)return null;const w=Object.assign({role:o,ref:d.setDialogRef,"aria-modal":o==="dialog"?!0:void 0},ae,{style:i,className:r,tabIndex:-1});let F=G?G(w):s.jsxRuntimeExports.jsx("div",Object.assign({},w,{children:u.cloneElement(g,{role:"document"})}));F=s.renderTransition(k,T,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:re,onExiting:q,onExited:Q,onEnter:H,onEntering:$,onEntered:P,children:F});let A=null;return f&&(A=se({ref:d.setBackdropRef,onClick:V}),A=s.renderTransition(N,J,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:A})),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:De.createPortal(s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[A,F]}),S)})});Ne.displayName="Modal";const Ze=Object.assign(Ne,{Manager:fe});function Je(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 Te(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function et(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Te(t.className,e):t.setAttribute("class",Te(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 tt extends fe{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(Je(n,"modal-open"),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.adjustAndStore(o,i,e.scrollBarWidth)),C(n,M.STICKY_CONTENT).forEach(i=>this.adjustAndStore(r,i,-e.scrollBarWidth)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(r,i,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();et(n,"modal-open");const o=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";C(n,M.FIXED_CONTENT).forEach(i=>this.restore(o,i)),C(n,M.STICKY_CONTENT).forEach(i=>this.restore(r,i)),C(n,M.NAVBAR_TOGGLER).forEach(i=>this.restore(r,i))}}let me;function st(t){return me||(me=new tt(t)),me}const ye=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})));ye.displayName="ModalBody";const Se=u.createContext({onHide(){}}),Ee=u.forwardRef(({bsPrefix:t,className:e,contentClassName:n,centered:o,size:r,fullscreen:i,children:g,scrollable:f,...R},v)=>{t=s.useBootstrapPrefix(t,"modal");const E=`${t}-dialog`,k=typeof i=="string"?`${t}-fullscreen-${i}`:`${t}-fullscreen`;return s.jsxRuntimeExports.jsx("div",{...R,ref:v,className:s.classNames(E,e,r&&`${t}-${r}`,o&&`${E}-centered`,f&&`${E}-scrollable`,i&&k),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames(`${t}-content`,n),children:g})})});Ee.displayName="ModalDialog";const Oe=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})));Oe.displayName="ModalFooter";const nt=u.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:o,children:r,...i},g)=>{const f=c.useContext(Se),R=s.useEventCallback(()=>{f==null||f.onHide(),o==null||o()});return s.jsxRuntimeExports.jsxs("div",{ref:g,...i,children:[r,n&&s.jsxRuntimeExports.jsx(Z,{"aria-label":t,variant:e,onClick:R})]})}),_e=u.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:o=!1,...r},i)=>(t=s.useBootstrapPrefix(t,"modal-header"),s.jsxRuntimeExports.jsx(nt,{ref:i,...r,className:s.classNames(e,t),closeLabel:n,closeButton:o})));_e.displayName="ModalHeader";const ot=xe("h4"),we=u.forwardRef(({className:t,bsPrefix:e,as:n=ot,...o},r)=>(e=s.useBootstrapPrefix(e,"modal-title"),s.jsxRuntimeExports.jsx(n,{ref:r,className:s.classNames(t,e),...o})));we.displayName="ModalTitle";function rt(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}function at(t){return s.jsxRuntimeExports.jsx(s.Fade,{...t,timeout:null})}const Ae=u.forwardRef(({bsPrefix:t,className:e,style:n,dialogClassName:o,contentClassName:r,children:i,dialogAs:g=Ee,"data-bs-theme":f,"aria-labelledby":R,"aria-describedby":v,"aria-label":E,show:k=!1,animation:T=!0,backdrop:N=!0,keyboard:J=!0,onEscapeKeyDown:W,onShow:ee,onHide:y,container:te,autoFocus:G=!0,enforceFocus:se=!0,restoreFocus:ne=!0,restoreFocusOptions:oe,onEntered:K,onExit:I,onExiting:re,onEnter:B,onEntering:q,onExited:H,backdropClassName:$,manager:P,...ae},p)=>{const[S,d]=c.useState({}),[ie,z]=c.useState(!1),x=c.useRef(!1),O=c.useRef(!1),m=c.useRef(null),[h,L]=s.useCallbackRef(),le=s.useMergedRefs(p,L),V=s.useEventCallback(y),ce=s.useIsRTL();t=s.useBootstrapPrefix(t,"modal");const D=c.useMemo(()=>({onHide:V}),[V]);function _(){return P||st({isRTL:ce})}function Q(a){if(!s.canUseDOM)return;const j=_().getScrollbarWidth()>0,he=a.scrollHeight>s.ownerDocument(a).documentElement.clientHeight;d({paddingRight:j&&!he?ge():void 0,paddingLeft:!j&&he?ge():void 0})}const w=s.useEventCallback(()=>{h&&Q(h.dialog)});s.useWillUnmount(()=>{s.removeEventListener(window,"resize",w),m.current==null||m.current()});const F=()=>{x.current=!0},A=a=>{x.current&&h&&a.target===h.dialog&&(O.current=!0),x.current=!1},l=()=>{z(!0),m.current=s.transitionEnd(h.dialog,()=>{z(!1)})},Y=a=>{a.target===a.currentTarget&&l()},U=a=>{if(N==="static"){Y(a);return}if(O.current||a.target!==a.currentTarget){O.current=!1;return}y==null||y()},je=a=>{J?W==null||W(a):(a.preventDefault(),N==="static"&&l())},be=(a,j)=>{a&&Q(a),B==null||B(a,j)},Me=a=>{m.current==null||m.current(),I==null||I(a)},ke=(a,j)=>{q==null||q(a,j),s.addEventListener(window,"resize",w)},Ie=a=>{a&&(a.style.display=""),H==null||H(a),s.removeEventListener(window,"resize",w)},Be=c.useCallback(a=>s.jsxRuntimeExports.jsx("div",{...a,className:s.classNames(`${t}-backdrop`,$,!T&&"show")}),[T,$,t]),pe={...n,...S};pe.display="block";const Le=a=>s.jsxRuntimeExports.jsx("div",{role:"dialog",...a,style:pe,className:s.classNames(e,t,ie&&`${t}-static`,!T&&"show"),onClick:N?U:void 0,onMouseUp:A,"data-bs-theme":f,"aria-label":E,"aria-labelledby":R,"aria-describedby":v,children:s.jsxRuntimeExports.jsx(g,{...ae,onMouseDown:F,className:o,contentClassName:r,children:i})});return s.jsxRuntimeExports.jsx(Se.Provider,{value:D,children:s.jsxRuntimeExports.jsx(Ze,{show:k,ref:le,backdrop:N,container:te,keyboard:!0,autoFocus:G,enforceFocus:se,restoreFocus:ne,restoreFocusOptions:oe,onEscapeKeyDown:je,onShow:ee,onHide:y,onEnter:be,onEntering:ke,onEntered:K,onExit:Me,onExiting:re,onExited:Ie,manager:_(),transition:T?rt:void 0,backdropTransition:T?at:void 0,renderBackdrop:Be,renderDialog:Le})})});Ae.displayName="Modal";const it=Object.assign(Ae,{Body:ye,Header:_e,Title:we,Footer:Oe,Dialog:Ee,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});/*! @azure/msal-browser v3.14.0 2024-05-07 */const lt={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"};exports.CloseButton=Z;exports.EventType=lt;exports.Loading=qe;exports.Modal=it;exports.dataAttr=ve;exports.divWithClassName=xe;exports.qsa=C;exports.usePrevious=Ce;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i, b as c, P as me,
|
|
1
|
+
import { j as i, b as c, P as me, as as ve, at as xe, s as H, r as Le, au as Pe, av as Ze, i as p, aw as _e, ax as we, ay as Be, az as Je, aA as Ae, aB as et, u as B, n as tt, w as nt, z as ot, aC as Me, F as De, v as at, aD as st } from "./NoInputContainer-BnAPYzCz.js";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import { useRef as T, useEffect as pe, forwardRef as rt, useState as Te, useImperativeHandle as it, useCallback as Ce, useContext as lt, useMemo as dt } from "react";
|
|
4
4
|
import ct from "react-dom";
|
|
@@ -627,10 +627,12 @@ const Wt = {
|
|
|
627
627
|
RESTORE_FROM_BFCACHE: "msal:restoreFromBFCache"
|
|
628
628
|
};
|
|
629
629
|
export {
|
|
630
|
+
Re as C,
|
|
630
631
|
Wt as E,
|
|
631
632
|
jt as L,
|
|
632
633
|
Ut as M,
|
|
633
|
-
vt as
|
|
634
|
+
vt as a,
|
|
635
|
+
gt as d,
|
|
634
636
|
x as q,
|
|
635
637
|
Et as u
|
|
636
638
|
};
|
|
@@ -6885,77 +6885,77 @@ Nd.displayName = "RowLabelInput";
|
|
|
6885
6885
|
const Md = En(({ children: e, className: t, hidden: r }, n) => /* @__PURE__ */ A.jsx("div", { ref: n, className: `${r ? "d-none" : ""} ${t}`, children: e }));
|
|
6886
6886
|
Md.displayName = "NoInputContainer";
|
|
6887
6887
|
export {
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6888
|
+
zd as $,
|
|
6889
|
+
Bu as A,
|
|
6890
|
+
xi as B,
|
|
6891
|
+
Ti as C,
|
|
6892
|
+
Nn as D,
|
|
6893
6893
|
ct as E,
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6894
|
+
un as F,
|
|
6895
|
+
ip as G,
|
|
6896
|
+
me as H,
|
|
6897
|
+
oa as I,
|
|
6898
|
+
Kf as J,
|
|
6899
|
+
Xf as K,
|
|
6900
|
+
Mn as L,
|
|
6901
|
+
jo as M,
|
|
6902
|
+
cp as N,
|
|
6903
6903
|
cl as O,
|
|
6904
6904
|
z as P,
|
|
6905
|
-
|
|
6906
|
-
|
|
6905
|
+
Zo as Q,
|
|
6906
|
+
Fd as R,
|
|
6907
6907
|
ap as S,
|
|
6908
6908
|
hc as T,
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6909
|
+
Wa as U,
|
|
6910
|
+
Vd as V,
|
|
6911
|
+
Wd as W,
|
|
6912
|
+
Yd as X,
|
|
6913
|
+
gd as Y,
|
|
6914
|
+
Hd as Z,
|
|
6915
|
+
Bd as _,
|
|
6916
6916
|
fc as a,
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6917
|
+
Kd as a0,
|
|
6918
|
+
ge as a1,
|
|
6919
|
+
dp as a2,
|
|
6920
|
+
Ud as a3,
|
|
6921
|
+
fp as a4,
|
|
6922
|
+
qd as a5,
|
|
6923
|
+
$d as a6,
|
|
6924
|
+
Jd as a7,
|
|
6925
|
+
ia as a8,
|
|
6926
|
+
Qf as a9,
|
|
6927
|
+
Qu as aA,
|
|
6928
|
+
Po as aB,
|
|
6929
|
+
ac as aC,
|
|
6930
6930
|
lc as aD,
|
|
6931
6931
|
sd as aE,
|
|
6932
6932
|
lp as aF,
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6933
|
+
op as aa,
|
|
6934
|
+
sl as ab,
|
|
6935
|
+
nl as ac,
|
|
6936
|
+
Sd as ad,
|
|
6937
|
+
Gd as ae,
|
|
6938
|
+
Nd as af,
|
|
6939
|
+
Od as ag,
|
|
6940
|
+
pp as ah,
|
|
6941
|
+
Md as ai,
|
|
6942
|
+
Ai as aj,
|
|
6943
|
+
Zd as ak,
|
|
6944
|
+
rp as al,
|
|
6945
|
+
Xd as am,
|
|
6946
|
+
np as an,
|
|
6947
|
+
sp as ao,
|
|
6948
|
+
na as ap,
|
|
6949
|
+
up as aq,
|
|
6950
|
+
ra as ar,
|
|
6951
|
+
xn as as,
|
|
6952
|
+
Rr as at,
|
|
6953
|
+
Co as au,
|
|
6954
|
+
ui as av,
|
|
6955
|
+
lt as aw,
|
|
6956
|
+
pn as ax,
|
|
6957
|
+
Ec as ay,
|
|
6958
|
+
Hu as az,
|
|
6959
6959
|
ce as b,
|
|
6960
6960
|
Aa as c,
|
|
6961
6961
|
on as d,
|
|
@@ -6963,22 +6963,22 @@ export {
|
|
|
6963
6963
|
ut as f,
|
|
6964
6964
|
wn as g,
|
|
6965
6965
|
dc as h,
|
|
6966
|
-
|
|
6966
|
+
_t as i,
|
|
6967
6967
|
A as j,
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6968
|
+
Qd as k,
|
|
6969
|
+
ep as l,
|
|
6970
|
+
tp as m,
|
|
6971
|
+
ho as n,
|
|
6972
|
+
Au as o,
|
|
6973
|
+
Fu as p,
|
|
6974
|
+
Lu as q,
|
|
6975
|
+
Uu as r,
|
|
6976
6976
|
ii as s,
|
|
6977
6977
|
Pa as t,
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6978
|
+
pt as u,
|
|
6979
|
+
ic as v,
|
|
6980
|
+
gt as w,
|
|
6981
|
+
wi as x,
|
|
6982
|
+
cn as y,
|
|
6983
6983
|
oi as z
|
|
6984
6984
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { j as o, ab as t, aj as e } from "./NoInputContainer-BnAPYzCz.js";
|
|
2
|
+
const l = ({ text: s, placement: r, children: a }) => /* @__PURE__ */ o.jsx(t, { placement: r, overlay: /* @__PURE__ */ o.jsx(e, { className: "luminus-tooltip", children: s }), children: a });
|
|
3
|
+
export {
|
|
4
|
+
l as S
|
|
5
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlertProps } from 'react-bootstrap';
|
|
3
|
+
type Props = {
|
|
4
|
+
typographyVariant?: 'h6' | 'subtitle' | 'body' | 'body2' | 'caption';
|
|
5
|
+
} & AlertProps;
|
|
6
|
+
declare const Alert: (props: Props) => import("react").JSX.Element;
|
|
7
|
+
export default Alert;
|
|
@@ -15,3 +15,5 @@ export { default as PhotoLightbox } from './PhotoLightbox/PhotoLightbox';
|
|
|
15
15
|
export { default as PhotoLibrary } from './PhotoLibrary/PhotoLibrary';
|
|
16
16
|
export { default as Backdrop } from './Backdrop/Backdrop';
|
|
17
17
|
export { default as AuthTemplate } from './AuthTemplate/AuthTemplate';
|
|
18
|
+
export { default as Alert } from './Alert/Alert';
|
|
19
|
+
export { default as VersionInfo } from './VersionInfo/VersionInfo';
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-CAwCEVT5.cjs"),n=require("react"),v=require("./useConfirm-D_-tO0nr.cjs");require("react-hook-form");const l=require("./EventType-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-CAwCEVT5.cjs"),n=require("react"),v=require("./useConfirm-D_-tO0nr.cjs");require("react-hook-form");const l=require("./EventType-C7yHDXD-.cjs"),y=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:r,text:s,onFinish:o}=v.usePrompt(),{options:a}=n.useContext(e.PromptContext),[c,u]=n.useState(a.defaultValue??""),i=n.useCallback(()=>{o(null)},[o]),d=n.useCallback(()=>{o(c)},[o,c]);n.useEffect(()=>{r===!0&&u(a.defaultValue??"")},[r,a.defaultValue]);const x=n.useMemo(()=>({value:c,onChange:E=>u(E.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[c]);return e.jsxRuntimeExports.jsxs(l.Modal,{show:r,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(l.Modal.Header,{children:e.jsxRuntimeExports.jsx(l.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[a.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...x,rows:5}):void 0,a.input==="input"?e.jsxRuntimeExports.jsx("input",{...x,type:a.type}):void 0]}),e.jsxRuntimeExports.jsxs(l.Modal.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:i,children:t.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:d,disabled:a.required&&!c,children:t.confirm})]})]})},I=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),[c,u]=n.useState({input:"textarea",type:"text"}),i=n.useRef(()=>{}),d=n.useCallback(C=>{a(C),s(!0)},[]),x=n.useCallback(()=>{s(!1)},[]),E=n.useMemo(()=>({isShown:r,text:o,showPrompt:d,hidePrompt:x,resolveRef:i,options:c,setOptions:u}),[r,o,d,x,c]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:E,children:[t,e.jsxRuntimeExports.jsx(y,{})]})},T=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),c=n.useCallback(d=>{s(!0),a(d)},[]),u=n.useCallback(()=>{s(!1)},[]),i=n.useMemo(()=>({show:r,text:o,showConfirm:c,hideConfirm:u}),[r,o,c,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(U,{}),t]})},h=({cookieDomain:t,axiosInstance:r,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:x,appSearchTexts:E,customSelectTexts:C,children:R})=>{const m=n.useMemo(()=>({axiosInstance:r,cookieDomain:t,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:x,appSearchTexts:E,customSelectTexts:C}),[r,t,s,o,a,c,u,i,d,x,E,C]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:m,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(I,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),R]})})})},j=({children:t})=>{const[r,s]=n.useState(!1),[o]=n.useState(new Set),a=n.useCallback(i=>{o.add(i),s(!0)},[o]),c=n.useCallback(i=>{o.delete(i),o.size===0&&s(!1)},[o]),u=n.useMemo(()=>({isLoading:r,startLoading:a,stopLoading:c}),[r,a,c]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[r&&e.jsxRuntimeExports.jsx(l.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class P{static getInteractionStatusFromEvent(r,s){switch(r.eventType){case l.EventType.LOGIN_START:return e.InteractionStatus.Login;case l.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case l.EventType.ACQUIRE_TOKEN_START:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case l.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case l.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case l.EventType.SSO_SILENT_SUCCESS:case l.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case l.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case l.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case l.EventType.LOGIN_SUCCESS:case l.EventType.LOGIN_FAILURE:case l.EventType.ACQUIRE_TOKEN_SUCCESS:case l.EventType.ACQUIRE_TOKEN_FAILURE:case l.EventType.RESTORE_FROM_BFCACHE:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup){if(s&&s!==e.InteractionStatus.Login&&s!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}break}return null}}/*! @azure/msal-react v2.0.16 2024-05-07 */const b="@azure/msal-react",g="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const S={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},k=(t,r)=>{const{type:s,payload:o}=r;let a=t.inProgress;switch(s){case S.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(a=e.InteractionStatus.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case S.EVENT:const u=o.message,i=P.getInteractionStatusFromEvent(u,t.inProgress);i&&(o.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${s}`)}const c=o.instance.getAllAccounts();return a!==t.inProgress&&!e.accountArraysAreEqual(c,t.accounts)?{...t,inProgress:a,accounts:c}:a!==t.inProgress?{...t,inProgress:a}:e.accountArraysAreEqual(c,t.accounts)?t:{...t,accounts:c}};function L({instance:t,children:r}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,g)},[t]);const s=n.useMemo(()=>t.getLogger().clone(b,g),[t]),[o,a]=n.useReducer(k,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(i=>{a({payload:{instance:t,logger:s,message:i},type:S.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:s},type:S.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const c={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:c},r)}const N=({children:t})=>{const r=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),[o,a]=n.useState(!1),c=n.useCallback(()=>{const m=localStorage.getItem("user")??null;return m?JSON.parse(m):null},[]),[u,i]=n.useState(c()),d=n.useCallback(async m=>{let p=null;return await r.get("/user/detail",m?{headers:{Authorization:`Bearer ${m}`}}:void 0).then(f=>{p=f.data}).catch(()=>{p=null}),localStorage.setItem("user",JSON.stringify(p)),p},[r]),x=n.useCallback(()=>{localStorage.removeItem("user")},[]),E=n.useCallback(async m=>{a(!0);const p=await d(m);return a(!1),p?(i(p),!0):!1},[d]),C=n.useCallback(()=>{x(),i(null)},[x]),R=n.useMemo(()=>({user:u,loggingInProgress:o,loginUser:E,logoutUser:C}),[u,E,C,o]);return n.useEffect(()=>{i(c())},[c]),n.useEffect(()=>{if(s){const m=s.addEventCallback(p=>{if(p.eventType===l.EventType.LOGIN_SUCCESS&&p.payload){const f=p.payload;E(f.accessToken).catch(()=>C())}});return()=>{m&&s.removeEventCallback(m)}}return()=>{}},[s,E,C]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:R,children:t})},A=({...t})=>{const{cookieDomain:r}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),[o,a]=n.useState(null),c=n.useMemo(()=>({useMsal:t.useMsal??!1,storedToken:(o==null?void 0:o.token)??null,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t,o]);return n.useEffect(()=>{if(t.useMsal){const u=t.msalInstance.addEventCallback(i=>{if(i.eventType===l.EventType.LOGIN_SUCCESS||i.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&i.payload){const d=i.payload,x=d.account;t.msalInstance.setActiveAccount(x);const E=d.accessToken,C=d.expiresOn;a({token:E,expiresOn:C})}});return()=>{u&&t.msalInstance.removeEventCallback(u)}}return()=>{}},[t]),n.useEffect(()=>{o&&s("Authorization",o.token,{path:"/",secure:!0,sameSite:"none",domain:r,expires:o.expiresOn??void 0})},[o,r,s]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:c,children:t.useMsal?e.jsxRuntimeExports.jsx(L,{instance:t.msalInstance,children:t.children}):t.children})},U=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:r,onCancel:s,text:o,show:a}=v.useConfirm();return e.jsxRuntimeExports.jsx(l.Modal,{show:a,size:"sm",centered:!0,onHide:s,children:e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(e.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:r,children:t.yes})]})]})})};exports.AuthContext=e.AuthContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=A;exports.LoadingProvider=j;exports.LuminusComponentsProvider=h;exports.UserProvider=N;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as T, ak as k, j as a, al as _, am as O, an as j, M as y, L as l, ao as U, ap as w, aq as p, a4 as M, a8 as A, aa as G, ar as z, Y as F } from "./NoInputContainer-BnAPYzCz.js";
|
|
2
2
|
import K, { useContext as S, useState as C, useCallback as f, useEffect as I, useMemo as P, useRef as B, useReducer as H } from "react";
|
|
3
|
-
import { u as D, a as V } from "./useConfirm-
|
|
3
|
+
import { u as D, a as V } from "./useConfirm-Td63xw5L.js";
|
|
4
4
|
import "react-hook-form";
|
|
5
|
-
import { M as v, L as $, E as u } from "./EventType-
|
|
5
|
+
import { M as v, L as $, E as u } from "./EventType-CnIS_MxK.js";
|
|
6
6
|
const q = () => {
|
|
7
7
|
const { confirmTexts: e } = S(T), { isShown: s, text: t, onFinish: n } = D(), { options: o } = S(k), [r, i] = C(o.defaultValue ?? ""), c = f(() => {
|
|
8
8
|
n(null);
|
|
@@ -88,7 +88,7 @@ const q = () => {
|
|
|
88
88
|
E
|
|
89
89
|
]);
|
|
90
90
|
return /* @__PURE__ */ a.jsx(T.Provider, { value: x, children: /* @__PURE__ */ a.jsx(J, { children: /* @__PURE__ */ a.jsxs(Q, { children: [
|
|
91
|
-
/* @__PURE__ */ a.jsx(
|
|
91
|
+
/* @__PURE__ */ a.jsx(O, {}),
|
|
92
92
|
N
|
|
93
93
|
] }) }) });
|
|
94
94
|
}, ce = ({ children: e }) => {
|
|
@@ -97,7 +97,7 @@ const q = () => {
|
|
|
97
97
|
}, [n]), r = f((c) => {
|
|
98
98
|
n.delete(c), n.size === 0 && t(!1);
|
|
99
99
|
}, [n]), i = P(() => ({ isLoading: s, startLoading: o, stopLoading: r }), [s, o, r]);
|
|
100
|
-
return /* @__PURE__ */ a.jsxs(
|
|
100
|
+
return /* @__PURE__ */ a.jsxs(j.Provider, { value: i, children: [
|
|
101
101
|
s && /* @__PURE__ */ a.jsx($, {}),
|
|
102
102
|
e
|
|
103
103
|
] });
|
|
@@ -152,12 +152,12 @@ class W {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
155
|
-
const
|
|
155
|
+
const Y = "@azure/msal-react", L = "2.0.16";
|
|
156
156
|
/*! @azure/msal-react v2.0.16 2024-05-07 */
|
|
157
157
|
const R = {
|
|
158
158
|
UNBLOCK_INPROGRESS: "UNBLOCK_INPROGRESS",
|
|
159
159
|
EVENT: "EVENT"
|
|
160
|
-
},
|
|
160
|
+
}, X = (e, s) => {
|
|
161
161
|
const { type: t, payload: n } = s;
|
|
162
162
|
let o = e.inProgress;
|
|
163
163
|
switch (t) {
|
|
@@ -188,7 +188,7 @@ function Z({ instance: e, children: s }) {
|
|
|
188
188
|
I(() => {
|
|
189
189
|
e.initializeWrapperLibrary(U.React, L);
|
|
190
190
|
}, [e]);
|
|
191
|
-
const t = P(() => e.getLogger().clone(
|
|
191
|
+
const t = P(() => e.getLogger().clone(Y, L), [e]), [n, o] = H(X, void 0, () => ({
|
|
192
192
|
inProgress: l.Startup,
|
|
193
193
|
accounts: e.getAllAccounts()
|
|
194
194
|
}));
|
|
@@ -309,7 +309,7 @@ const ie = ({ children: e }) => {
|
|
|
309
309
|
export {
|
|
310
310
|
A as AuthContext,
|
|
311
311
|
le as AuthProvider,
|
|
312
|
-
|
|
312
|
+
j as LoadingContext,
|
|
313
313
|
ce as LoadingProvider,
|
|
314
314
|
T as LuminusComponentsContext,
|
|
315
315
|
ae as LuminusComponentsProvider,
|