@maggioli-design-system/mds-modal 5.3.0 → 5.5.0
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/cjs/{index-6f236cfa.js → index-a263ff04.js} +139 -101
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-modal.cjs.entry.js +35 -4
- package/dist/cjs/mds-modal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-modal/mds-modal.css +171 -73
- package/dist/collection/components/mds-modal/mds-modal.js +59 -2
- package/dist/collection/components/mds-modal/meta/dictionary.js +5 -1
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +20 -2
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-modal.js +36 -4
- package/dist/documentation.json +47 -2
- package/dist/esm/{index-f8d2dee4.js → index-efd0657a.js} +139 -101
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-modal.entry.js +35 -4
- package/dist/esm/mds-modal.js +4 -4
- package/dist/esm-es5/index-efd0657a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-26971abb.js +2 -0
- package/dist/mds-modal/p-52bb21e4.system.entry.js +1 -0
- package/dist/mds-modal/p-785b3b47.system.js +2 -0
- package/dist/mds-modal/p-96b782c7.system.js +1 -0
- package/dist/mds-modal/p-df986a83.entry.js +1 -0
- package/dist/stats.json +100 -33
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-modal/meta/dictionary.d.ts +2 -1
- package/dist/types/components/mds-modal/meta/types.d.ts +1 -0
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +11 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +62 -2
- package/package.json +4 -4
- package/readme.md +18 -16
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-modal/css/mds-modal-animate-bottom-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-bottom.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-center.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-left.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top-right.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate-top.css +2 -2
- package/src/components/mds-modal/css/mds-modal-animate.css +4 -4
- package/src/components/mds-modal/css/mds-modal-pref-animation.css +14 -23
- package/src/components/mds-modal/css/mds-modal-pref-contrast.css +5 -13
- package/src/components/mds-modal/css/mds-modal-pref-theme.css +6 -15
- package/src/components/mds-modal/mds-modal.css +9 -6
- package/src/components/mds-modal/mds-modal.tsx +36 -1
- package/src/components/mds-modal/meta/dictionary.ts +6 -0
- package/src/components/mds-modal/meta/types.ts +4 -0
- package/src/components/mds-modal/readme.md +18 -16
- package/src/components/mds-modal/test/mds-modal.stories.tsx +57 -3
- package/src/components.d.ts +10 -2
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -46
- package/src/tailwind/fouc.css +118 -0
- package/src/tailwind/index.css +4 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-26971abb.js +2 -0
- package/www/build/p-52bb21e4.system.entry.js +1 -0
- package/www/build/p-785b3b47.system.js +2 -0
- package/www/build/p-96b782c7.system.js +1 -0
- package/www/build/p-df986a83.entry.js +1 -0
- package/dist/esm-es5/index-f8d2dee4.js +0 -1
- package/dist/mds-modal/p-413a00c5.entry.js +0 -1
- package/dist/mds-modal/p-96958acc.system.entry.js +0 -1
- package/dist/mds-modal/p-bc1fa4e4.system.js +0 -2
- package/dist/mds-modal/p-c6899cb0.system.js +0 -1
- package/dist/mds-modal/p-ee90f86a.js +0 -2
- package/www/build/p-413a00c5.entry.js +0 -1
- package/www/build/p-96958acc.system.entry.js +0 -1
- package/www/build/p-bc1fa4e4.system.js +0 -2
- package/www/build/p-c6899cb0.system.js +0 -1
- package/www/build/p-ee90f86a.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as e,H as a,g as s}from"./p-26971abb.js";function d(t){var o,e,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(o=0;o<s;o++)t[o]&&(e=d(t[o]))&&(a&&(a+=" "),a+=e)}else for(e in t)t[e]&&(a&&(a+=" "),a+=e);return a}function i(){for(var t,o,e=0,a="",s=arguments.length;e<s;e++)(t=arguments[e])&&(o=d(t))&&(a&&(a+=" "),a+=o);return a}const n=(t,o=1e3)=>t.includes("ms")?Number(t.replace("ms","")):t.includes("s")?1e3*Number(t.replace("s","")):o,r=class{constructor(e){t(this,e),this.closeEvent=o(this,"mdsModalClose",7),this.hideEvent=o(this,"mdsModalHide",7),this.window=!1,this.top=!1,this.bottom=!1,this.opened=!1,this.position="center",this.animating="none",this.overflow="auto",this.updateCSSCustomProps=()=>{var t;if("undefined"==typeof window)return;const o=window.getComputedStyle(this.host);this.cssTransitionDuration=null!==(t=o.getPropertyValue("--mds-modal-transition-duration"))&&void 0!==t?t:"500"},this.stopIntroAnimationWindow=()=>{this.animating="none",this.host.setAttribute("animating","none"),clearTimeout(this.animationDelayTimeout)},this.stopOutroAnimationWindow=()=>{this.animating="none",this.host.setAttribute("animating","none"),this.hideEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.disableOverflow=()=>{document&&(document.body.style.overflow&&(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden")},this.enableOverflow=()=>{document&&(this.bodyOverflow?document.body.style.overflow=this.bodyOverflow:document.body.style.removeProperty("overflow"))},this.animateOpenWindow=()=>{this.animating="intro",clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopIntroAnimationWindow.bind(this),n(this.cssTransitionDuration))},this.animateCloseWindow=()=>{this.animating="outro",clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopOutroAnimationWindow.bind(this),n(this.cssTransitionDuration))},this.closeModal=t=>{var o;"mds-modal"===(null===(o=t.target)||void 0===o?void 0:o.localName)&&(this.opened=t.target!==t.currentTarget,this.opened||this.closeEvent.emit())}}componentWillLoad(){var t;this.bottom=null!==this.host.querySelector('[slot="bottom"]'),this.top=null!==this.host.querySelector('[slot="top"]'),this.window=null!==this.host.querySelector('[slot="window"]'),"auto"===this.overflow&&this.opened&&this.disableOverflow(),this.window&&(null===(t=this.host.querySelector('[slot="window"]'))||void 0===t||t.setAttribute("role","dialog"))}componentWillRender(){this.animating=this.opened?"intro":"outro"}componentDidLoad(){this.updateCSSCustomProps()}handleOpenProp(t){if(t)return"auto"===this.overflow&&this.disableOverflow(),void this.animateOpenWindow();"auto"===this.overflow&&this.enableOverflow(),this.animateCloseWindow()}onModalCloseListener(){this.opened=!1}onBannerCloseListener(){this.opened=!1}render(){return e(a,{key:"7c55fe13070b89c43efcc7168dbdb8d07b749b8a","aria-modal":i(this.opened?"true":"false"),onClick:t=>{this.closeModal(t)}},this.window?e("slot",{name:"window"}):e("div",{class:i("window",(this.top||this.bottom)&&`window-${this.top?"-top":""}${this.bottom?"-bottom":""}`),part:"window"},this.top&&e("slot",{name:"top"}),e("slot",null),this.bottom&&e("slot",{name:"bottom"})),!this.window&&e("mds-button",{key:"e9b3c0037f8a0cf2fc3b284dc02b2f7b16bbe205",class:"action-close",icon:"mi/baseline/close",variant:"light",tone:"quiet",size:"xl",onClick:t=>{this.closeModal(t)}}))}get host(){return s(this)}static get watchers(){return{opened:["handleOpenProp"]}}};r.style='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-modal-overlay-color:var(--magma-overlay-color, 0 0 0);--mds-modal-overlay-opacity:var(--magma-overlay-opacity, 0.5);--mds-modal-transition-duration:500ms;--mds-modal-transition-intro-ease:cubic-bezier(0.19, 1, 0.22, 1);--mds-modal-transition-outro-ease:cubic-bezier(0.86, 0, 0.07, 1);--mds-modal-window-background:rgb(var(--tone-neutral));--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--mds-modal-window-distance:0;--mds-modal-custom-window-distance:1.5rem;--mds-modal-z-index:var(--magma-modal-z-index);-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);-ms-flex-align:center;align-items:center;background-color:rgba(var(--mds-modal-overlay-color) / 0);display:-ms-flexbox;display:flex;fill:rgb(var(--tone-neutral));inset:0;-ms-flex-pack:center;justify-content:center;-webkit-perspective:600px;perspective:600px;pointer-events:none;position:fixed;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:background-color;transition-property:background-color;z-index:var(--mds-modal-z-index, 1000)}:host ::slotted([slot="window"]){margin:var(--mds-modal-custom-window-distance)}:host([position="top"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position="bottom"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.action-close{border-radius:100px;opacity:0;pointer-events:none;position:absolute;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, -webkit-transform;transition-property:bottom, opacity, top, transform;transition-property:bottom, opacity, top, transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1)}:host([opened]:not([opened="false"])) .action-close{opacity:1;pointer-events:auto}.action-close::part(icon){height:2.25rem;width:2.25rem}.window{gap:0rem;background-color:var(--mds-modal-window-background);border-radius:var(--mds-modal-window-radius);-webkit-box-shadow:var(--mds-modal-window-shadow);box-shadow:var(--mds-modal-window-shadow);display:grid;grid-template-rows:1fr;margin:var(--mds-modal-window-distance);overflow:var(--mds-modal-window-overflow)}.window--top{grid-template-rows:auto 1fr}.window--bottom{grid-template-rows:1fr auto}.window--top-bottom{grid-template-rows:auto 1fr auto}:host .window{-webkit-transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2);transition-delay:0s, calc(var(--mds-modal-transition-duration) / 2)}:host([opened]:not([opened="false"])){background-color:rgba(var(--mds-modal-overlay-color) / var(--mds-modal-overlay-opacity));pointer-events:auto}:host .window,:host>::slotted([slot="window"]){opacity:0;-webkit-transition-duration:var(--mds-modal-transition-duration);transition-duration:var(--mds-modal-transition-duration);-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transition-timing-function:var(--mds-modal-transition-outro-ease);transition-timing-function:var(--mds-modal-transition-outro-ease)}:host([opened]:not([opened="false"])) .window,:host([opened]:not([opened="false"]))>::slotted([slot="window"]){opacity:1;-webkit-transform:rotate(0) scale(1) translateY(0);transform:rotate(0) scale(1) translateY(0);-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-timing-function:var(--mds-modal-transition-intro-ease);transition-timing-function:var(--mds-modal-transition-intro-ease)}:host([position="bottom-left"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:start;justify-content:flex-start}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="bottom-left"][opened="false"])>::slotted([slot="window"]),:host([position="bottom-left"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position="bottom-left"][opened="false"]) .window,:host([position="bottom-left"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position="bottom-right"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="bottom-right"][opened="false"])>::slotted([slot="window"]),:host([position="bottom-right"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position="bottom-right"][opened="false"]) .window,:host([position="bottom-right"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position="bottom"]){-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="bottom"][opened="false"])>::slotted([slot="window"]),:host([position="bottom"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%);transform:rotateX(22deg) rotateY(0) scale(0.5) translate(0, 80%)}:host([position="bottom"][opened="false"]) .window,:host([position="bottom"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position="center"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host([position="center"]) .window{-webkit-transition-delay:0s;transition-delay:0s}:host([position="center"][opened="false"])>::slotted([slot="window"]),:host([position="center"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%);transform:rotateX(0) rotateY(22deg) scale(0.5) translate(0, 40%)}:host([position="center"][opened="false"]) .window,:host([position="center"]:not([opened])) .window{-webkit-transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0);transform:rotateX(0) rotateY(0) scale(0.5) translate(0, 0)}:host([position="left"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}:host([position="left"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position="left"][opened="false"])>::slotted([slot="window"]),:host([position="left"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%);transform:rotateX(0) rotateY(22deg) rotateZ(0) scale(0.5) translate(-100%, 0%)}:host([position="left"][opened="false"]) .window,:host([position="left"]:not([opened])) .window{-webkit-transform:translate(-100%, 0%);transform:translate(-100%, 0%)}:host([position="left"]) .action-close{right:0.75rem;top:0.75rem;-webkit-transform:translateX(-120%) rotate(-45deg);transform:translateX(-120%) rotate(-45deg)}:host([position="left"][opened]:not([opened="false"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position="right"]){-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}:host([position="right"]) .window{height:100%;max-height:calc(100dvh - calc(var(--mds-modal-window-distance) * 2));max-width:calc(100vw - 80px)}:host([position="right"][opened="false"])>::slotted([slot="window"]),:host([position="right"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%);transform:rotateX(0) rotateY(-22deg) rotateZ(0) scale(0.5) translate(100%, 0%)}:host([position="right"][opened="false"]) .window,:host([position="right"]:not([opened])) .window{-webkit-transform:translate(100%, 0%);transform:translate(100%, 0%)}:host([position="right"]) .action-close{left:0.75rem;top:0.75rem;-webkit-transform:translateX(120%) rotate(45deg);transform:translateX(120%) rotate(45deg)}:host([position="right"][opened]:not([opened="false"])) .action-close{-webkit-transform:translateX(0);transform:translateX(0)}:host([position="top-left"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="top-left"][opened="false"])>::slotted([slot="window"]),:host([position="top-left"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%);transform:rotateX(22deg) rotateY(22deg) scale(0.5) translate(-80%, 80%)}:host([position="top-left"][opened="false"]) .window,:host([position="top-left"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host([position="top-right"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:end;justify-content:flex-end}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="top-right"][opened="false"])>::slotted([slot="window"]),:host([position="top-right"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%);transform:rotateX(-22deg) rotateY(-22deg) scale(0.5) translate(80%, 80%)}:host([position="top-right"][opened="false"]) .window,:host([position="top-right"]:not([opened])) .window{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}:host([position="top"]){-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:center;justify-content:center}:host([position="bottom"]) .window{height:auto;width:100vw}:host([position="top"][opened="false"])>::slotted([slot="window"]),:host([position="top"]:not([opened]))>::slotted([slot="window"]){-webkit-transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%);transform:rotateX(-22deg) rotateY(0) scale(0.5) translate(0, -80%)}:host([position="top"][opened="false"]) .window,:host([position="top"]:not([opened])) .window{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}:host-context(.pref-animation-reduce){--mds-modal-transition-duration:0s}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .action-close,:host-context(.pref-animation-reduce) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-modal-transition-duration:0s}:host-context(.pref-animation-system),:host-context(.pref-animation-system) .action-close,:host-context(.pref-animation-system) .window{-webkit-transition-duration:0s !important;transition-duration:0s !important}}:host-context(.pref-contrast-more){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-modal-window-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6), 0 25px 50px -12px rgb(0 0 0 / 0.25)}}:host-context(.pref-theme-dark){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-modal-window-background:rgb(var(--tone-neutral-09));--mds-modal-window-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3), 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{r as mds_modal}
|
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-03-05T16:48:31",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"fsNamespace": "mds-modal",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 103,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 55,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
19
|
"./dist/collection/common/date.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"./dist/collection/common/keyboard-manager.js",
|
|
25
25
|
"./dist/collection/common/locale.js",
|
|
26
26
|
"./dist/collection/common/slot.js",
|
|
27
|
+
"./dist/collection/common/string.js",
|
|
27
28
|
"./dist/collection/common/unit.js",
|
|
28
29
|
"./dist/collection/common/yugop/core.js",
|
|
29
30
|
"./dist/collection/common/yugop/index.js",
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
"./dist/collection/dictionary/floating-ui.js",
|
|
45
46
|
"./dist/collection/dictionary/icon.js",
|
|
46
47
|
"./dist/collection/dictionary/input.js",
|
|
48
|
+
"./dist/collection/dictionary/keyboard.js",
|
|
47
49
|
"./dist/collection/dictionary/loading.js",
|
|
48
50
|
"./dist/collection/dictionary/text.js",
|
|
49
51
|
"./dist/collection/dictionary/tree.js",
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"./dist/collection/type/form-rel.js",
|
|
61
63
|
"./dist/collection/type/header-bar.js",
|
|
62
64
|
"./dist/collection/type/input.js",
|
|
65
|
+
"./dist/collection/type/keyboard.js",
|
|
63
66
|
"./dist/collection/type/loading.js",
|
|
64
67
|
"./dist/collection/type/preference.js",
|
|
65
68
|
"./dist/collection/type/text.js",
|
|
@@ -84,19 +87,19 @@
|
|
|
84
87
|
"files": 42,
|
|
85
88
|
"generatedFiles": [
|
|
86
89
|
"./dist/cjs/app-globals-3a1e7e63.js",
|
|
87
|
-
"./dist/cjs/index-
|
|
90
|
+
"./dist/cjs/index-a263ff04.js",
|
|
88
91
|
"./dist/cjs/index.cjs.js",
|
|
89
92
|
"./dist/cjs/loader.cjs.js",
|
|
90
93
|
"./dist/cjs/mds-modal.cjs.entry.js",
|
|
91
94
|
"./dist/cjs/mds-modal.cjs.js",
|
|
92
95
|
"./dist/esm-es5/app-globals-0f993ce5.js",
|
|
93
|
-
"./dist/esm-es5/index-
|
|
96
|
+
"./dist/esm-es5/index-efd0657a.js",
|
|
94
97
|
"./dist/esm-es5/index.js",
|
|
95
98
|
"./dist/esm-es5/loader.js",
|
|
96
99
|
"./dist/esm-es5/mds-modal.entry.js",
|
|
97
100
|
"./dist/esm-es5/mds-modal.js",
|
|
98
101
|
"./dist/esm/app-globals-0f993ce5.js",
|
|
99
|
-
"./dist/esm/index-
|
|
102
|
+
"./dist/esm/index-efd0657a.js",
|
|
100
103
|
"./dist/esm/index.js",
|
|
101
104
|
"./dist/esm/loader.js",
|
|
102
105
|
"./dist/esm/mds-modal.entry.js",
|
|
@@ -106,25 +109,25 @@
|
|
|
106
109
|
"./dist/mds-modal/index.esm.js",
|
|
107
110
|
"./dist/mds-modal/mds-modal.esm.js",
|
|
108
111
|
"./dist/mds-modal/mds-modal.js",
|
|
109
|
-
"./dist/mds-modal/p-
|
|
112
|
+
"./dist/mds-modal/p-26971abb.js",
|
|
110
113
|
"./dist/mds-modal/p-50ea2036.system.js",
|
|
114
|
+
"./dist/mds-modal/p-52bb21e4.system.entry.js",
|
|
111
115
|
"./dist/mds-modal/p-56ba5cbf.system.js",
|
|
112
|
-
"./dist/mds-modal/p-
|
|
113
|
-
"./dist/mds-modal/p-
|
|
114
|
-
"./dist/mds-modal/p-
|
|
116
|
+
"./dist/mds-modal/p-785b3b47.system.js",
|
|
117
|
+
"./dist/mds-modal/p-96b782c7.system.js",
|
|
118
|
+
"./dist/mds-modal/p-df986a83.entry.js",
|
|
115
119
|
"./dist/mds-modal/p-e1255160.js",
|
|
116
|
-
"./dist/mds-modal/p-ee90f86a.js",
|
|
117
120
|
"./www/build/index.esm.js",
|
|
118
121
|
"./www/build/mds-modal.esm.js",
|
|
119
122
|
"./www/build/mds-modal.js",
|
|
120
|
-
"./www/build/p-
|
|
123
|
+
"./www/build/p-26971abb.js",
|
|
121
124
|
"./www/build/p-50ea2036.system.js",
|
|
125
|
+
"./www/build/p-52bb21e4.system.entry.js",
|
|
122
126
|
"./www/build/p-56ba5cbf.system.js",
|
|
123
|
-
"./www/build/p-
|
|
124
|
-
"./www/build/p-
|
|
125
|
-
"./www/build/p-
|
|
126
|
-
"./www/build/p-e1255160.js"
|
|
127
|
-
"./www/build/p-ee90f86a.js"
|
|
127
|
+
"./www/build/p-785b3b47.system.js",
|
|
128
|
+
"./www/build/p-96b782c7.system.js",
|
|
129
|
+
"./www/build/p-df986a83.entry.js",
|
|
130
|
+
"./www/build/p-e1255160.js"
|
|
128
131
|
]
|
|
129
132
|
},
|
|
130
133
|
{
|
|
@@ -157,12 +160,12 @@
|
|
|
157
160
|
"components": [
|
|
158
161
|
"mds-modal"
|
|
159
162
|
],
|
|
160
|
-
"bundleId": "p-
|
|
161
|
-
"fileName": "p-
|
|
163
|
+
"bundleId": "p-df986a83",
|
|
164
|
+
"fileName": "p-df986a83.entry.js",
|
|
162
165
|
"imports": [
|
|
163
|
-
"p-
|
|
166
|
+
"p-26971abb.js"
|
|
164
167
|
],
|
|
165
|
-
"originalByteSize":
|
|
168
|
+
"originalByteSize": 23578
|
|
166
169
|
}
|
|
167
170
|
],
|
|
168
171
|
"esm": [
|
|
@@ -174,9 +177,9 @@
|
|
|
174
177
|
"bundleId": "mds-modal",
|
|
175
178
|
"fileName": "mds-modal.entry.js",
|
|
176
179
|
"imports": [
|
|
177
|
-
"index-
|
|
180
|
+
"index-efd0657a.js"
|
|
178
181
|
],
|
|
179
|
-
"originalByteSize":
|
|
182
|
+
"originalByteSize": 23582
|
|
180
183
|
}
|
|
181
184
|
],
|
|
182
185
|
"es5": [
|
|
@@ -188,9 +191,9 @@
|
|
|
188
191
|
"bundleId": "mds-modal",
|
|
189
192
|
"fileName": "mds-modal.entry.js",
|
|
190
193
|
"imports": [
|
|
191
|
-
"index-
|
|
194
|
+
"index-efd0657a.js"
|
|
192
195
|
],
|
|
193
|
-
"originalByteSize":
|
|
196
|
+
"originalByteSize": 23582
|
|
194
197
|
}
|
|
195
198
|
],
|
|
196
199
|
"system": [
|
|
@@ -199,12 +202,12 @@
|
|
|
199
202
|
"components": [
|
|
200
203
|
"mds-modal"
|
|
201
204
|
],
|
|
202
|
-
"bundleId": "p-
|
|
203
|
-
"fileName": "p-
|
|
205
|
+
"bundleId": "p-52bb21e4.system",
|
|
206
|
+
"fileName": "p-52bb21e4.system.entry.js",
|
|
204
207
|
"imports": [
|
|
205
|
-
"p-
|
|
208
|
+
"p-785b3b47.system.js"
|
|
206
209
|
],
|
|
207
|
-
"originalByteSize":
|
|
210
|
+
"originalByteSize": 25601
|
|
208
211
|
}
|
|
209
212
|
],
|
|
210
213
|
"commonjs": [
|
|
@@ -216,9 +219,9 @@
|
|
|
216
219
|
"bundleId": "mds-modal.cjs",
|
|
217
220
|
"fileName": "mds-modal.cjs.entry.js",
|
|
218
221
|
"imports": [
|
|
219
|
-
"index-
|
|
222
|
+
"index-a263ff04.js"
|
|
220
223
|
],
|
|
221
|
-
"originalByteSize":
|
|
224
|
+
"originalByteSize": 23665
|
|
222
225
|
}
|
|
223
226
|
]
|
|
224
227
|
},
|
|
@@ -392,6 +395,34 @@
|
|
|
392
395
|
"internal": false,
|
|
393
396
|
"getter": false,
|
|
394
397
|
"setter": false
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "overflow",
|
|
401
|
+
"type": "string",
|
|
402
|
+
"attribute": "overflow",
|
|
403
|
+
"reflect": true,
|
|
404
|
+
"mutable": false,
|
|
405
|
+
"required": false,
|
|
406
|
+
"optional": false,
|
|
407
|
+
"defaultValue": "'auto'",
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "ModalOverflowType",
|
|
410
|
+
"resolved": "\"auto\" | \"manual\"",
|
|
411
|
+
"references": {
|
|
412
|
+
"ModalOverflowType": {
|
|
413
|
+
"location": "import",
|
|
414
|
+
"path": "./meta/types",
|
|
415
|
+
"id": "src/components/mds-modal/meta/types.ts::ModalOverflowType"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"docs": {
|
|
420
|
+
"tags": [],
|
|
421
|
+
"text": "Specifies if the component prevents the body from scrolling when modal window is opened"
|
|
422
|
+
},
|
|
423
|
+
"internal": false,
|
|
424
|
+
"getter": false,
|
|
425
|
+
"setter": false
|
|
395
426
|
}
|
|
396
427
|
],
|
|
397
428
|
"shadowDelegatesFocus": false,
|
|
@@ -489,6 +520,34 @@
|
|
|
489
520
|
"internal": false,
|
|
490
521
|
"getter": false,
|
|
491
522
|
"setter": false
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "overflow",
|
|
526
|
+
"type": "string",
|
|
527
|
+
"attribute": "overflow",
|
|
528
|
+
"reflect": true,
|
|
529
|
+
"mutable": false,
|
|
530
|
+
"required": false,
|
|
531
|
+
"optional": false,
|
|
532
|
+
"defaultValue": "'auto'",
|
|
533
|
+
"complexType": {
|
|
534
|
+
"original": "ModalOverflowType",
|
|
535
|
+
"resolved": "\"auto\" | \"manual\"",
|
|
536
|
+
"references": {
|
|
537
|
+
"ModalOverflowType": {
|
|
538
|
+
"location": "import",
|
|
539
|
+
"path": "./meta/types",
|
|
540
|
+
"id": "src/components/mds-modal/meta/types.ts::ModalOverflowType"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"docs": {
|
|
545
|
+
"tags": [],
|
|
546
|
+
"text": "Specifies if the component prevents the body from scrolling when modal window is opened"
|
|
547
|
+
},
|
|
548
|
+
"internal": false,
|
|
549
|
+
"getter": false,
|
|
550
|
+
"setter": false
|
|
492
551
|
}
|
|
493
552
|
],
|
|
494
553
|
"virtualProperties": [],
|
|
@@ -612,6 +671,12 @@
|
|
|
612
671
|
"annotation": "prop",
|
|
613
672
|
"mode": "$"
|
|
614
673
|
},
|
|
674
|
+
{
|
|
675
|
+
"name": "--mds-modal-custom-window-distance",
|
|
676
|
+
"docs": "Set the distance between the slotted modal window and the screen bounds",
|
|
677
|
+
"annotation": "prop",
|
|
678
|
+
"mode": "$"
|
|
679
|
+
},
|
|
615
680
|
{
|
|
616
681
|
"name": "--mds-modal-window-shadow",
|
|
617
682
|
"docs": "Set the box shadow of the window",
|
|
@@ -657,7 +722,6 @@
|
|
|
657
722
|
"hasComponentDidUpdateFn": false,
|
|
658
723
|
"hasComponentWillRenderFn": true,
|
|
659
724
|
"hasComponentDidRenderFn": false,
|
|
660
|
-
"hasComponentDidUnloadFn": false,
|
|
661
725
|
"hasConnectedCallbackFn": false,
|
|
662
726
|
"hasDisconnectedCallbackFn": false,
|
|
663
727
|
"hasElement": false,
|
|
@@ -731,7 +795,7 @@
|
|
|
731
795
|
],
|
|
732
796
|
"componentGraph": {
|
|
733
797
|
"sc-mds-modal": [
|
|
734
|
-
"p-
|
|
798
|
+
"p-26971abb.js"
|
|
735
799
|
]
|
|
736
800
|
},
|
|
737
801
|
"sourceGraph": {
|
|
@@ -747,6 +811,7 @@
|
|
|
747
811
|
"./src/common/keyboard-manager.ts": [],
|
|
748
812
|
"./src/common/locale.ts": [],
|
|
749
813
|
"./src/common/slot.ts": [],
|
|
814
|
+
"./src/common/string.ts": [],
|
|
750
815
|
"./src/common/unit.ts": [],
|
|
751
816
|
"./src/common/yugop/core.ts": [
|
|
752
817
|
"./src/common/yugop/utils/math",
|
|
@@ -781,6 +846,7 @@
|
|
|
781
846
|
"./src/fixtures/iconsauce.json"
|
|
782
847
|
],
|
|
783
848
|
"./src/dictionary/input.ts": [],
|
|
849
|
+
"./src/dictionary/keyboard.ts": [],
|
|
784
850
|
"./src/dictionary/loading.ts": [],
|
|
785
851
|
"./src/dictionary/text.ts": [],
|
|
786
852
|
"./src/dictionary/tree.ts": [],
|
|
@@ -797,6 +863,7 @@
|
|
|
797
863
|
"./src/type/form-rel.ts": [],
|
|
798
864
|
"./src/type/header-bar.ts": [],
|
|
799
865
|
"./src/type/input.ts": [],
|
|
866
|
+
"./src/type/keyboard.ts": [],
|
|
800
867
|
"./src/type/loading.ts": [],
|
|
801
868
|
"./src/type/preference.ts": [],
|
|
802
869
|
"./src/type/text.ts": [],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const hasSlottedElements: (el: HTMLElement, name?: string) => boolean;
|
|
2
2
|
declare const hasSlottedNodes: (el: HTMLElement, name?: string) => boolean;
|
|
3
|
-
|
|
3
|
+
declare const hasSlotted: (el: HTMLElement, name?: string) => boolean;
|
|
4
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { ModalPositionType, ModalAnimationStateType } from './meta/types';
|
|
2
|
+
import { ModalPositionType, ModalAnimationStateType, ModalOverflowType } from './meta/types';
|
|
3
3
|
/**
|
|
4
4
|
* @slot default - Contents that will be placed in the center of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
5
5
|
* @slot bottom - Contents that will be placed on bottom of the window. Add `text string`, `HTML elements` or `components` to this slot.
|
|
@@ -10,6 +10,7 @@ export declare class MdsModal {
|
|
|
10
10
|
private animationDelayTimeout;
|
|
11
11
|
private window;
|
|
12
12
|
private top;
|
|
13
|
+
private bodyOverflow;
|
|
13
14
|
private bottom;
|
|
14
15
|
private cssTransitionDuration;
|
|
15
16
|
host: HTMLMdsModalElement;
|
|
@@ -25,6 +26,10 @@ export declare class MdsModal {
|
|
|
25
26
|
* Specifies if the component is animating itself or not
|
|
26
27
|
*/
|
|
27
28
|
animating?: ModalAnimationStateType;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
31
|
+
*/
|
|
32
|
+
readonly overflow: ModalOverflowType;
|
|
28
33
|
/**
|
|
29
34
|
* Emits when a modal is closed
|
|
30
35
|
*/
|
|
@@ -36,6 +41,8 @@ export declare class MdsModal {
|
|
|
36
41
|
private updateCSSCustomProps;
|
|
37
42
|
private stopIntroAnimationWindow;
|
|
38
43
|
private stopOutroAnimationWindow;
|
|
44
|
+
private disableOverflow;
|
|
45
|
+
private enableOverflow;
|
|
39
46
|
private animateOpenWindow;
|
|
40
47
|
private animateCloseWindow;
|
|
41
48
|
componentWillLoad(): void;
|
|
@@ -7,6 +7,16 @@ declare const _default: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
overflow: {
|
|
11
|
+
description: string;
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
options: string[];
|
|
16
|
+
type: {
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
10
20
|
position: {
|
|
11
21
|
control: {
|
|
12
22
|
type: string;
|
|
@@ -21,6 +31,7 @@ declare const _default: {
|
|
|
21
31
|
};
|
|
22
32
|
export default _default;
|
|
23
33
|
export declare const Default: any;
|
|
34
|
+
export declare const BodyOverflowDisabled: any;
|
|
24
35
|
export declare const DefaultWindowCustomized: any;
|
|
25
36
|
export declare const CustomWindowElement: any;
|
|
26
37
|
export declare const Interactive: any;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
-
export { ModalAnimationStateType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
8
|
+
import { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
9
|
+
export { ModalAnimationStateType, ModalOverflowType, ModalPositionType } from "./components/mds-modal/meta/types";
|
|
10
10
|
export namespace Components {
|
|
11
11
|
interface MdsModal {
|
|
12
12
|
/**
|
|
@@ -17,6 +17,10 @@ export namespace Components {
|
|
|
17
17
|
* Specifies if the modal is opened or not
|
|
18
18
|
*/
|
|
19
19
|
"opened": boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
22
|
+
*/
|
|
23
|
+
"overflow": ModalOverflowType;
|
|
20
24
|
/**
|
|
21
25
|
* Specifies the animation position of the modal window
|
|
22
26
|
*/
|
|
@@ -68,6 +72,10 @@ declare namespace LocalJSX {
|
|
|
68
72
|
* Specifies if the modal is opened or not
|
|
69
73
|
*/
|
|
70
74
|
"opened"?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies if the component prevents the body from scrolling when modal window is opened
|
|
77
|
+
*/
|
|
78
|
+
"overflow"?: ModalOverflowType;
|
|
71
79
|
/**
|
|
72
80
|
* Specifies the animation position of the modal window
|
|
73
81
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type KeyboardKeyData = {
|
|
2
|
+
alias: string;
|
|
3
|
+
description: string;
|
|
4
|
+
group: string;
|
|
5
|
+
keyCodes: string[];
|
|
6
|
+
keyboardPosition?: {
|
|
7
|
+
left?: boolean;
|
|
8
|
+
right?: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type KeyboardKeyName = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'a' | 'alt' | 'altleft' | 'altright' | 'arrowdown' | 'arrowleft' | 'arrowright' | 'arrowup' | 'b' | 'backspace' | 'c' | 'capslock' | 'command' | 'commandleft' | 'commandright' | 'control' | 'controlleft' | 'controlright' | 'd' | 'delete' | 'e' | 'end' | 'enter' | 'escape' | 'f' | 'f1' | 'f10' | 'f11' | 'f12' | 'f2' | 'f3' | 'f4' | 'f5' | 'f6' | 'f7' | 'f8' | 'f9' | 'g' | 'h' | 'home' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'option' | 'optionleft' | 'optionright' | 'p' | 'pagedown' | 'pageup' | 'q' | 'r' | 's' | 'shift' | 'shiftleft' | 'shiftright' | 'space' | 't' | 'tab' | 'u' | 'v' | 'w' | 'windows' | 'windowsleft' | 'windowsright' | 'x' | 'y' | 'z';
|
|
12
|
+
export type KeyboardKeyMap = Record<KeyboardKeyName, KeyboardKeyData>;
|
package/documentation.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-03-05T16:16:01",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.27.2",
|
|
6
6
|
"typescriptVersion": "5.5.4"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -98,6 +98,41 @@
|
|
|
98
98
|
"getter": false,
|
|
99
99
|
"setter": false
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
"name": "overflow",
|
|
103
|
+
"type": "\"auto\" | \"manual\"",
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "ModalOverflowType",
|
|
106
|
+
"resolved": "\"auto\" | \"manual\"",
|
|
107
|
+
"references": {
|
|
108
|
+
"ModalOverflowType": {
|
|
109
|
+
"location": "import",
|
|
110
|
+
"path": "./meta/types",
|
|
111
|
+
"id": "src/components/mds-modal/meta/types.ts::ModalOverflowType"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"attr": "overflow",
|
|
117
|
+
"reflectToAttr": true,
|
|
118
|
+
"docs": "Specifies if the component prevents the body from scrolling when modal window is opened",
|
|
119
|
+
"docsTags": [],
|
|
120
|
+
"default": "'auto'",
|
|
121
|
+
"values": [
|
|
122
|
+
{
|
|
123
|
+
"value": "auto",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"value": "manual",
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"optional": false,
|
|
132
|
+
"required": false,
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false
|
|
135
|
+
},
|
|
101
136
|
{
|
|
102
137
|
"name": "position",
|
|
103
138
|
"type": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"center\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\" | undefined",
|
|
@@ -216,6 +251,11 @@
|
|
|
216
251
|
"annotation": "prop",
|
|
217
252
|
"docs": "Set the color of the close icon button to the top left."
|
|
218
253
|
},
|
|
254
|
+
{
|
|
255
|
+
"name": "--mds-modal-custom-window-distance",
|
|
256
|
+
"annotation": "prop",
|
|
257
|
+
"docs": "Set the distance between the slotted modal window and the screen bounds"
|
|
258
|
+
},
|
|
219
259
|
{
|
|
220
260
|
"name": "--mds-modal-overlay-color",
|
|
221
261
|
"annotation": "prop",
|
|
@@ -498,6 +538,11 @@
|
|
|
498
538
|
"docstring": "",
|
|
499
539
|
"path": "src/components/mds-header/meta/event-detail.ts"
|
|
500
540
|
},
|
|
541
|
+
"src/components/mds-header/meta/event-detail.ts::MdsHeaderVisibilityEventDetail": {
|
|
542
|
+
"declaration": "export interface MdsHeaderVisibilityEventDetail {\n visibility: boolean\n}",
|
|
543
|
+
"docstring": "",
|
|
544
|
+
"path": "src/components/mds-header/meta/event-detail.ts"
|
|
545
|
+
},
|
|
501
546
|
"src/components/mds-horizontal-scroll/meta/types.ts::ViewportType": {
|
|
502
547
|
"declaration": "export type ViewportType =\n | 'all'\n | 'tv'\n | 'xlarge'\n | 'large'\n | 'wide'\n | 'desktop'\n | 'tablet'\n | 'none'",
|
|
503
548
|
"docstring": "",
|
|
@@ -613,6 +658,16 @@
|
|
|
613
658
|
"docstring": "",
|
|
614
659
|
"path": "src/components/mds-input-upload/meta/types.ts"
|
|
615
660
|
},
|
|
661
|
+
"src/components/mds-keyboard/meta/type.ts::KeyboardTest": {
|
|
662
|
+
"declaration": "export type KeyboardTest =\n | 'pass'\n | 'fail'",
|
|
663
|
+
"docstring": "",
|
|
664
|
+
"path": "src/components/mds-keyboard/meta/type.ts"
|
|
665
|
+
},
|
|
666
|
+
"src/type/keyboard.ts::KeyboardKeyName": {
|
|
667
|
+
"declaration": "export type KeyboardKeyName =\n | '0'\n | '1'\n | '2'\n | '3'\n | '4'\n | '5'\n | '6'\n | '7'\n | '8'\n | '9'\n | 'a'\n | 'alt'\n | 'altleft'\n | 'altright'\n | 'arrowdown'\n | 'arrowleft'\n | 'arrowright'\n | 'arrowup'\n | 'b'\n | 'backspace'\n | 'c'\n | 'capslock'\n | 'command'\n | 'commandleft'\n | 'commandright'\n | 'control'\n | 'controlleft'\n | 'controlright'\n | 'd'\n | 'delete'\n | 'e'\n | 'end'\n | 'enter'\n | 'escape'\n | 'f'\n | 'f1'\n | 'f10'\n | 'f11'\n | 'f12'\n | 'f2'\n | 'f3'\n | 'f4'\n | 'f5'\n | 'f6'\n | 'f7'\n | 'f8'\n | 'f9'\n | 'g'\n | 'h'\n | 'home'\n | 'i'\n | 'j'\n | 'k'\n | 'l'\n | 'm'\n | 'n'\n | 'o'\n | 'option'\n | 'optionleft'\n | 'optionright'\n | 'p'\n | 'pagedown'\n | 'pageup'\n | 'q'\n | 'r'\n | 's'\n | 'shift'\n | 'shiftleft'\n | 'shiftright'\n | 'space'\n | 't'\n | 'tab'\n | 'u'\n | 'v'\n | 'w'\n | 'windows'\n | 'windowsleft'\n | 'windowsright'\n | 'x'\n | 'y'\n | 'z'",
|
|
668
|
+
"docstring": "",
|
|
669
|
+
"path": "src/type/keyboard.ts"
|
|
670
|
+
},
|
|
616
671
|
"src/type/typography.ts::TypographyType": {
|
|
617
672
|
"declaration": "export type TypographyType =\n | 'action'\n | 'caption'\n | 'snippet'\n | 'detail'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'hack'\n | 'label'\n | 'option'\n | 'paragraph'\n | 'tip'",
|
|
618
673
|
"docstring": "",
|
|
@@ -633,6 +688,11 @@
|
|
|
633
688
|
"docstring": "",
|
|
634
689
|
"path": "src/components/mds-modal/meta/types.ts"
|
|
635
690
|
},
|
|
691
|
+
"src/components/mds-modal/meta/types.ts::ModalOverflowType": {
|
|
692
|
+
"declaration": "export type ModalOverflowType =\n | 'auto'\n | 'manual'",
|
|
693
|
+
"docstring": "",
|
|
694
|
+
"path": "src/components/mds-modal/meta/types.ts"
|
|
695
|
+
},
|
|
636
696
|
"src/type/variant.ts::LabelVariantType": {
|
|
637
697
|
"declaration": "export type LabelVariantType =\n | 'amaranth'\n | 'aqua'\n | 'blue'\n | 'green'\n | 'lime'\n | 'orange'\n | 'orchid'\n | 'sky'\n | 'violet'\n | 'yellow'",
|
|
638
698
|
"docstring": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-modal",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "mds-modal is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"test": "stencil test --spec --e2e"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@maggioli-design-system/mds-button": "6.
|
|
28
|
-
"@maggioli-design-system/styles": "15.
|
|
29
|
-
"@stencil/core": "4.
|
|
27
|
+
"@maggioli-design-system/mds-button": "6.4.0",
|
|
28
|
+
"@maggioli-design-system/styles": "15.9.0",
|
|
29
|
+
"@stencil/core": "4.27.2",
|
|
30
30
|
"clsx": "2.1.0"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|