@crystaldesign/diva-core 25.4.0-beta.4 → 25.4.0-beta.41

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.
Files changed (56) hide show
  1. package/build/esm/{ModalsWrapper-a33488c6.js → ModalsWrapper-d5a0b6c0.js} +4 -16
  2. package/build/esm/{index-09ff024d.js → index-4aa9e493.js} +353 -311
  3. package/build/esm/{index-3563300d.js → index-ce832991.js} +1 -1
  4. package/build/esm/index.js +1 -1
  5. package/build/types/core/src/elements/Modal/index.d.ts.map +1 -1
  6. package/build/types/core/src/externalTypes.d.ts +4 -2
  7. package/build/types/core/src/externalTypes.d.ts.map +1 -1
  8. package/build/types/core/src/handler/InternalApiHandler.d.ts +1 -2
  9. package/build/types/core/src/handler/InternalApiHandler.d.ts.map +1 -1
  10. package/build/types/core/src/handler/MediaHandler/index.d.ts +3 -2
  11. package/build/types/core/src/handler/MediaHandler/index.d.ts.map +1 -1
  12. package/build/types/core/src/handler/OrganizationHandler/index.d.ts +1 -1
  13. package/build/types/core/src/handler/OrganizationHandler/index.d.ts.map +1 -1
  14. package/build/types/core/src/store/ConfigurationStore.d.ts.map +1 -1
  15. package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
  16. package/build/types/core/src/store/DataStore.d.ts +1 -1
  17. package/build/umd/126.diva-core.umd.min.js +2 -0
  18. package/build/umd/126.diva-core.umd.min.js.LICENSE.txt +1 -0
  19. package/build/umd/{109.diva-core.umd.min.js → 135.diva-core.umd.min.js} +2 -2
  20. package/build/umd/135.diva-core.umd.min.js.LICENSE.txt +1 -0
  21. package/build/umd/146.diva-core.umd.min.js +2 -0
  22. package/build/umd/146.diva-core.umd.min.js.LICENSE.txt +1 -0
  23. package/build/umd/215.diva-core.umd.min.js +2 -0
  24. package/build/umd/215.diva-core.umd.min.js.LICENSE.txt +1 -0
  25. package/build/umd/{962.diva-core.umd.min.js → 263.diva-core.umd.min.js} +2 -2
  26. package/build/umd/263.diva-core.umd.min.js.LICENSE.txt +1 -0
  27. package/build/umd/429.diva-core.umd.min.js +2 -0
  28. package/build/umd/429.diva-core.umd.min.js.LICENSE.txt +1 -0
  29. package/build/umd/{535.diva-core.umd.min.js → 700.diva-core.umd.min.js} +2 -2
  30. package/build/umd/700.diva-core.umd.min.js.LICENSE.txt +1 -0
  31. package/build/umd/731.diva-core.umd.min.js +2 -0
  32. package/build/umd/731.diva-core.umd.min.js.LICENSE.txt +1 -0
  33. package/build/umd/{304.diva-core.umd.min.js → 800.diva-core.umd.min.js} +2 -2
  34. package/build/umd/800.diva-core.umd.min.js.LICENSE.txt +1 -0
  35. package/build/umd/83.diva-core.umd.min.js +2 -0
  36. package/build/umd/83.diva-core.umd.min.js.LICENSE.txt +1 -0
  37. package/build/umd/diva-core.umd.min.js +29 -2
  38. package/build/umd/diva-core.umd.min.js.LICENSE.txt +11 -1
  39. package/build/umd/report.html +1 -1
  40. package/package.json +10 -10
  41. package/build/umd/109.diva-core.umd.min.js.LICENSE.txt +0 -1
  42. package/build/umd/304.diva-core.umd.min.js.LICENSE.txt +0 -1
  43. package/build/umd/41.diva-core.umd.min.js +0 -2
  44. package/build/umd/41.diva-core.umd.min.js.LICENSE.txt +0 -1
  45. package/build/umd/53.diva-core.umd.min.js +0 -2
  46. package/build/umd/53.diva-core.umd.min.js.LICENSE.txt +0 -1
  47. package/build/umd/535.diva-core.umd.min.js.LICENSE.txt +0 -1
  48. package/build/umd/671.diva-core.umd.min.js +0 -2
  49. package/build/umd/671.diva-core.umd.min.js.LICENSE.txt +0 -1
  50. package/build/umd/704.diva-core.umd.min.js +0 -2
  51. package/build/umd/704.diva-core.umd.min.js.LICENSE.txt +0 -1
  52. package/build/umd/806.diva-core.umd.min.js +0 -2
  53. package/build/umd/806.diva-core.umd.min.js.LICENSE.txt +0 -1
  54. package/build/umd/902.diva-core.umd.min.js +0 -2
  55. package/build/umd/902.diva-core.umd.min.js.LICENSE.txt +0 -1
  56. package/build/umd/962.diva-core.umd.min.js.LICENSE.txt +0 -1
@@ -1,2 +1,2 @@
1
- /*! For license information please see 304.diva-core.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaCore=self.webpackChunkCrystaldesignDivaCore||[]).push([[304],{3304:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(5515),i=n.n(a),d=n(9420),s=n(169),l=(n(7363),n(6345)),c=n(975),r=n(3379),m=n.n(r),u=n(7795),o=n.n(u),I=n(569),p=n.n(I),x=n(3565),b=n.n(x),g=n(9216),C=n.n(g),M=n(4589),y=n.n(M),Z=n(7307),v={};v.styleTagTransform=y(),v.setAttributes=b(),v.insert=p().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=C();m()(Z.ZP,v);Z.ZP&&Z.ZP.locals&&Z.ZP.locals;var j=n(9453),h=n(7514);const S=(0,d.Pi)((function CheckpointFooter(e){var t=e.footerFixed,n=(0,s.j)().pdpState,a=(0,l.useTranslation)().t,d=c.PO[n.getCurrentState];return(0,h.jsxs)("div",{className:i()(j.Y2,t?j.s2:j.xu),children:[!!d.denyStatus&&(0,h.jsx)("div",{onClick:n.denyCheckpoint,className:i()(j.LI,Z.j)}),(0,h.jsx)("div",{style:{cursor:"default"},className:i()(j.LI,j.HY),children:(d.denyStatus?a("product.state."+d.denyStatus)+" <-- ":"")+a("product.state."+n.getCurrentState)+(d.acceptStatus?" --\x3e "+a("product.state."+d.acceptStatus):"")}),!!d.acceptStatus&&(0,h.jsx)("div",{onClick:function onClick(){return n.acceptCheckpoint()},className:i()(j.LI,Z.em)})]})}))},7307:(e,t,n)=>{n.d(t,{ZP:()=>b,em:()=>p,j:()=>x});var a=n(8081),i=n.n(a),d=n(3645),s=n.n(d),l=n(1667),c=n.n(l),r=new URL(n(2514),n.b),m=new URL(n(5858),n.b),u=s()(i()),o=c()(r),I=c()(m);u.push([e.id,".index-module--Xs4iE,\n.index-module--Mjl2f {\n min-width: 60px;\n}\n\n.index-module--Mjl2f {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.index-module--Mjl2f {\n background: center / 33% no-repeat var(--diva-theme-palette-primary-main) url("+o+");\n}\n\n.index-module--Xs4iE {\n background: center / 43% no-repeat var(--diva-theme-palette-primary-main) url("+I+");\n}\n",""]);var p="index-module--Xs4iE",x="index-module--Mjl2f";const b=u},2514:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUw5IDlNOSAxTDEgOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cgo="},5858:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xLjQ0NTMxIDMuNDkxMjZMNS42MjUgOC4wOTM3NUwxMC43NSAwLjk1MzYxMyIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
1
+ /*! For license information please see 800.diva-core.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignDivaCore=self.webpackChunkCrystaldesignDivaCore||[]).push([[800],{1800:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(5515),i=n.n(a),d=n(9420),s=n(169),l=(n(7363),n(5553)),c=n(975),r=n(3379),m=n.n(r),u=n(7795),o=n.n(u),I=n(569),p=n.n(I),x=n(3565),b=n.n(x),g=n(9216),C=n.n(g),M=n(4589),y=n.n(M),Z=n(7307),v={};v.styleTagTransform=y(),v.setAttributes=b(),v.insert=p().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=C();m()(Z.ZP,v);Z.ZP&&Z.ZP.locals&&Z.ZP.locals;var j=n(9453),h=n(7514);const S=(0,d.Pi)((function CheckpointFooter(e){var t=e.footerFixed,n=(0,s.j)().pdpState,a=(0,l.useTranslation)().t,d=c.PO[n.getCurrentState];return(0,h.jsxs)("div",{className:i()(j.Y2,t?j.s2:j.xu),children:[!!d.denyStatus&&(0,h.jsx)("div",{onClick:n.denyCheckpoint,className:i()(j.LI,Z.j)}),(0,h.jsx)("div",{style:{cursor:"default"},className:i()(j.LI,j.HY),children:(d.denyStatus?a("product.state."+d.denyStatus)+" <-- ":"")+a("product.state."+n.getCurrentState)+(d.acceptStatus?" --\x3e "+a("product.state."+d.acceptStatus):"")}),!!d.acceptStatus&&(0,h.jsx)("div",{onClick:function onClick(){return n.acceptCheckpoint()},className:i()(j.LI,Z.em)})]})}))},7307:(e,t,n)=>{n.d(t,{ZP:()=>b,em:()=>p,j:()=>x});var a=n(8081),i=n.n(a),d=n(3645),s=n.n(d),l=n(1667),c=n.n(l),r=new URL(n(2514),n.b),m=new URL(n(5858),n.b),u=s()(i()),o=c()(r),I=c()(m);u.push([e.id,".index-module--Xs4iE,\n.index-module--Mjl2f {\n min-width: 60px;\n}\n\n.index-module--Mjl2f {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.index-module--Mjl2f {\n background: center / 33% no-repeat var(--diva-theme-palette-primary-main) url("+o+");\n}\n\n.index-module--Xs4iE {\n background: center / 43% no-repeat var(--diva-theme-palette-primary-main) url("+I+");\n}\n",""]);var p="index-module--Xs4iE",x="index-module--Mjl2f";const b=u},2514:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUw5IDlNOSAxTDEgOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cgo="},5858:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xLjQ0NTMxIDMuNDkxMjZMNS42MjUgOC4wOTM3NUwxMC43NSAwLjk1MzYxMyIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
@@ -0,0 +1 @@
1
+ /*! filename:800 */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 83.diva-core.umd.min.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkCrystaldesignDivaCore=self.webpackChunkCrystaldesignDivaCore||[]).push([[83],{2581:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ModalsWrapper});var i=t(7363),r=t(9420),o=t(7095),l=t(1578),a=t(956),d=t(9400),s=t(4415),c=t(1824),u=t(9763),m=t(3379),p=t.n(m),h=t(7795),v=t.n(h),x=t(569),f=t.n(x),g=t(3565),y=t.n(g),b=t(9216),j=t.n(b),k=t(4589),Z=t.n(k),w=t(5297),P={};P.styleTagTransform=Z(),P.setAttributes=y(),P.insert=f().bind(null,"head"),P.domAPI=v(),P.insertStyleElement=j();p()(w.Z,P);w.Z&&w.Z.locals&&w.Z.locals;var C=t(789),S=t(4988),I=t(5054),E={};E.styleTagTransform=Z(),E.setAttributes=y(),E.insert=f().bind(null,"head"),E.domAPI=v(),E.insertStyleElement=j();p()(I.ZP,E);I.ZP&&I.ZP.locals&&I.ZP.locals;var F=t(7514);const D=(0,r.Pi)((function Progress(e){var n=e.children,t=e.progress,r=(0,i.useState)(),o=(0,S.Z)(r,2),l=o[0],a=o[1];return(0,i.useEffect)((function(){a(t)}),[t]),(0,F.jsxs)("div",{className:I.YS,children:[!!n&&n,(0,F.jsx)("div",{className:I.l9,children:(0,F.jsx)("div",{className:I.YJ,style:{width:100*(null!=l?l:0)+"%"},children:(0,F.jsx)("div",{className:I.zn})})})]})}));var z=t(3697),A=t(1682),M=t(8623);const W=(0,r.Pi)((function Modal(){var e,n,t=(0,o.KH)().contentStore,r=(0,C.$G)().t,m=function onAccept(e){var n,i=t.modal;t.closeModal(),null==i||null===(n=i.callback)||void 0===n||n.call(i,!i.content||e)},p=function onReject(){var e,n=t.modal;t.closeModal(),null==n||null===(e=n.callback)||void 0===e||e.call(n,!1)};(0,i.useEffect)((function(){return document.addEventListener("keydown",h,!1),function(){document.removeEventListener("keydown",h,!1)}}),[]);var h=(0,i.useCallback)((function(e){if(t.modal)if("Enter"!==e.key||t.modal.doNotAcceptOnEnter)"ESC"!==e.key&&"Escape"!=e.key||(p(),e.preventDefault());else{var n=document.getElementById("diva-modal-form");if(!n)return;m(new FormData(n)),e.preventDefault()}}),[]);if(!t.modal)return(0,F.jsx)(F.Fragment,{});var v=(0,M.ZN)(t.modal),x="string"==typeof v.text?r(v.text):v.text,f=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.Z,{style:v.maxWidth?{maxWidth:v.maxWidth}:void 0,children:v.iFrame?(0,F.jsx)(IFrame,{link:v.iFrame}):"string"==typeof x&&null==v.content?(0,F.jsx)(c.Z,{component:"div",dangerouslySetInnerHTML:{__html:function tryDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(n){return e}}(x)}}):(0,F.jsxs)(c.Z,{component:"div",children:[x,v.content&&v.content]})}),(v.reject||v.accept)&&(0,F.jsxs)(d.Z,{children:[v.reject&&(0,F.jsx)(l.Z,{color:"primary",onClick:p,children:"string"==typeof v.reject?r(v.reject):r("modal.reject")}),v.accept&&(0,F.jsx)(l.Z,{color:"primary",type:"submit",id:"diva-dialog-submitbtn",children:"string"==typeof v.accept?r(v.accept):r("modal.accept")})]}),!!(v.image||void 0!==v.progress||null!==(e=v.actions)&&void 0!==e&&e.length)&&(0,F.jsxs)("div",{style:{margin:10},children:[v.image&&(0,F.jsx)("img",{src:v.image,style:{maxWidth:480}}),void 0!==v.progress&&(0,F.jsx)(D,{progress:v.progress}),null===(n=v.actions)||void 0===n?void 0:n.map((function(e){var n;return(0,F.jsx)(l.Z,{fullWidth:!0,style:{marginBottom:10},variant:null!==(n=e.variant)&&void 0!==n?n:"contained",color:"primary",onClick:function onClick(){return function onSelect(e,n){var i,r=t.modal;0!=n&&t.closeModal(),null==r||null===(i=r.callback)||void 0===i||i.call(r,e)}(e.id,e.closeable)},children:r(e.text)})}))]})]}),g=!0===v.fullscreen||"mobile"==v.fullscreen&&t.containerDimensions.isMobile;return(0,F.jsx)("div",{className:w.I,id:"diva-dialog",children:(0,F.jsxs)(a.Z,{open:!0,disablePortal:!0,hideBackdrop:!0,disableEnforceFocus:!0,style:{position:"absolute",zIndex:0},maxWidth:"lg",fullScreen:g,PaperProps:{style:{width:v.width,height:v.height}},children:[(0,F.jsx)(u.Z,{children:"string"==typeof v.title?r(v.title):v.title}),v.rejectByIcon&&(0,F.jsx)(z.Z,{onClick:p,style:{position:"absolute",right:8,top:8,zIndex:1000001},size:"large",children:(0,F.jsx)(A.Z,{})}),v.dontRenderForm&&f,!v.dontRenderForm&&(0,F.jsx)("form",{id:"diva-modal-form",autoComplete:"off",onSubmit:function onSubmit(e){e.preventDefault(),m(new FormData(e.target))},children:f})]})})}));function IFrame(e){var n=e.link;return(0,F.jsx)("iframe",{style:{border:0,width:"100%",height:"99%"},src:n})}function ModalsWrapper(){return(0,F.jsx)(W,{})}},5297:(e,n,t)=>{t.d(n,{I:()=>a,Z:()=>d});var i=t(8081),r=t.n(i),o=t(3645),l=t.n(o)()(r());l.push([e.id,".index-module--AtOcs {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255, 0.6);\n z-index: 1001;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n",""]);var a="index-module--AtOcs";const d=l},5054:(e,n,t)=>{t.d(n,{YJ:()=>s,YS:()=>a,ZP:()=>u,l9:()=>d,zn:()=>c});var i=t(8081),r=t.n(i),o=t(3645),l=t.n(o)()(r());l.push([e.id,".index-module--Pww9z {\n display: flex;\n width: 100%;\n}\n\n.index-module--thPSh {\n height: 10px;\n position: relative;\n border-radius: 5px;\n width: 100%;\n}\n\n@keyframes index-module--_9_PO {\n from {\n background-position-x: 0;\n }\n to {\n background-position-x: 113px;\n }\n}\n\n.index-module--HhvXv {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n transition: width 0.4s ease-out;\n overflow: hidden;\n border-radius: 5px;\n}\n.index-module--f7imw {\n border-radius: 5px;\n height: 100%;\n background-color: var(--diva-theme-palette-primary-main);\n background-image: repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 10px,\n var(--diva-theme-palette-secondary-dark) 10px,\n var(--diva-theme-palette-secondary-dark) 20px\n );\n animation: index-module--_9_PO 4s linear infinite;\n will-change: background-position;\n}\n",""]);var a="index-module--Pww9z",d="index-module--thPSh",s="index-module--HhvXv",c="index-module--f7imw";const u=l}}]);
@@ -0,0 +1 @@
1
+ /*! filename:83 */