@kyndryl-design-system/shidoka-applications 2.120.0 → 2.120.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as
|
|
1
|
+
import{__setFunctionName as e,__esDecorate as t,__runInitializers as i,__classPrivateFieldGet as a,__classPrivateFieldSet as o}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as r,LitElement as n,unsafeCSS as l,html as d}from"lit";import{customElement as c,property as h,query as g}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import"../button/button.js";import{c as u}from"../../../vendor/@kyndryl-design-system/shidoka-icons-y4CEpf0A.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var p=r`*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -119,10 +119,6 @@ dialog.ai-connected {
|
|
|
119
119
|
border: none;
|
|
120
120
|
background-color: var(--kd-color-background-container-ai-default);
|
|
121
121
|
}
|
|
122
|
-
dialog:has(:focus-visible) {
|
|
123
|
-
border-color: var(--kd-color-border-variants-focus);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
122
|
form {
|
|
127
123
|
display: flex;
|
|
128
124
|
flex-direction: column;
|
|
@@ -385,13 +381,13 @@ slot[name=footer]::slotted(*) {
|
|
|
385
381
|
.body:not(.disableScroll):focus-visible {
|
|
386
382
|
border-radius: 2px;
|
|
387
383
|
outline-color: var(--kd-color-border-variants-focus);
|
|
388
|
-
}`;let k=(()=>{var k,b,f,v,y,x,w,z,B,T,C,M,S,$,_,D,W,j,E,F,O;let V,L,K,P,q,A,G,H,I,J,N,Q,R,U,X,Y,Z,ee,te,ie,ae,oe,re
|
|
384
|
+
}`;let k=(()=>{var k,b,f,v,y,x,w,z,B,T,C,M,S,$,_,D,W,j,E,F,O;let V,L,K,P,q,A,G,H,I,J,N,Q,R,U,X,Y,Z,ee,te,ie,ae,oe,se,re=[c("kyn-modal")],ne=[],le=n,de=[],ce=[],he=[],ge=[],me=[],ue=[],pe=[],ke=[],be=[],fe=[],ve=[],ye=[],xe=[],we=[],ze=[],Be=[],Te=[],Ce=[],Me=[],Se=[],$e=[],_e=[],De=[],We=[],je=[],Ee=[],Fe=[],Oe=[],Ve=[],Le=[],Ke=[],Pe=[],qe=[],Ae=[],Ge=[],He=[],Ie=[],Je=[],Ne=[],Qe=[],Re=[],Ue=[];return L=class extends le{get open(){return a(this,k,"f")}set open(e){o(this,k,e,"f")}get size(){return a(this,b,"f")}set size(e){o(this,b,e,"f")}get titleText(){return a(this,f,"f")}set titleText(e){o(this,f,e,"f")}get labelText(){return a(this,v,"f")}set labelText(e){o(this,v,e,"f")}get okText(){return a(this,y,"f")}set okText(e){o(this,y,e,"f")}get cancelText(){return a(this,x,"f")}set cancelText(e){o(this,x,e,"f")}get destructive(){return a(this,w,"f")}set destructive(e){o(this,w,e,"f")}get okDisabled(){return a(this,z,"f")}set okDisabled(e){o(this,z,e,"f")}get secondaryDisabled(){return a(this,B,"f")}set secondaryDisabled(e){o(this,B,e,"f")}get hideFooter(){return a(this,T,"f")}set hideFooter(e){o(this,T,e,"f")}get secondaryButtonText(){return a(this,C,"f")}set secondaryButtonText(e){o(this,C,e,"f")}get showSecondaryButton(){return a(this,M,"f")}set showSecondaryButton(e){o(this,M,e,"f")}get secondaryDestructive(){return a(this,S,"f")}set secondaryDestructive(e){o(this,S,e,"f")}get hideCancelButton(){return a(this,$,"f")}set hideCancelButton(e){o(this,$,e,"f")}get beforeClose(){return a(this,_,"f")}set beforeClose(e){o(this,_,e,"f")}get closeText(){return a(this,D,"f")}set closeText(e){o(this,D,e,"f")}get gradientBackground(){return a(this,W,"f")}set gradientBackground(e){o(this,W,e,"f")}get _dialog(){return a(this,j,"f")}set _dialog(e){o(this,j,e,"f")}get aiConnected(){return a(this,E,"f")}set aiConnected(e){o(this,E,e,"f")}get disableScroll(){return a(this,F,"f")}set disableScroll(e){o(this,F,e,"f")}get disableBackgroundClick(){return a(this,O,"f")}set disableBackgroundClick(e){o(this,O,e,"f")}render(){const e={modal:!0,"size--md":"md"===this.size,"size--lg":"lg"===this.size,"size--xl":"xl"===this.size,"ai-connected":this.aiConnected,"gradient-bkg":this.aiConnected&&this.gradientBackground};return d`
|
|
389
385
|
<span class="anchor" @click=${this._openModal}>
|
|
390
386
|
<slot name="anchor"></slot>
|
|
391
387
|
</span>
|
|
392
388
|
|
|
393
389
|
<dialog
|
|
394
|
-
class="${
|
|
390
|
+
class="${m(e)}"
|
|
395
391
|
aria-labelledby="dialogLabel"
|
|
396
392
|
tabindex="-1"
|
|
397
393
|
@cancel=${e=>this._closeModal(e,"cancel")}
|
|
@@ -405,7 +401,7 @@ slot[name=footer]::slotted(*) {
|
|
|
405
401
|
description=${this.closeText}
|
|
406
402
|
@click=${e=>this._closeModal(e,"cancel")}
|
|
407
403
|
>
|
|
408
|
-
<span slot="icon">${
|
|
404
|
+
<span slot="icon">${s(u)}</span>
|
|
409
405
|
</kyn-button>
|
|
410
406
|
|
|
411
407
|
<header>
|
|
@@ -464,7 +460,7 @@ slot[name=footer]::slotted(*) {
|
|
|
464
460
|
`}
|
|
465
461
|
</form>
|
|
466
462
|
</dialog>
|
|
467
|
-
`}_openModal(){this.open=!0}_closeModal(e,t){(!this.beforeClose||this.beforeClose&&this.beforeClose(t))&&(this.open=!1,this._dialog.returnValue=t,this._emitCloseEvent(e))}_emitCloseEvent(e){const t=new CustomEvent("on-close",{detail:{returnValue:this._dialog.returnValue,origEvent:e}});this.dispatchEvent(t)}_emitOpenEvent(){const e=new CustomEvent("on-open");this.dispatchEvent(e)}updated(e){e.has("open")&&(this.open?(this._dialog.showModal(),this._emitOpenEvent()):this._dialog.close())}constructor(){super(...arguments),k.set(this,i(this,de,!1)),b.set(this,(i(this,ce),i(this,he,"auto"))),f.set(this,(i(this,ge),i(this,
|
|
463
|
+
`}_openModal(){this.open=!0}_closeModal(e,t){(!this.beforeClose||this.beforeClose&&this.beforeClose(t))&&(this.open=!1,this._dialog.returnValue=t,this._emitCloseEvent(e))}_emitCloseEvent(e){const t=new CustomEvent("on-close",{detail:{returnValue:this._dialog.returnValue,origEvent:e}});this.dispatchEvent(t)}_emitOpenEvent(){const e=new CustomEvent("on-open");this.dispatchEvent(e)}updated(e){e.has("open")&&(this.open?(this._dialog.showModal(),this._emitOpenEvent()):this._dialog.close())}constructor(){super(...arguments),k.set(this,i(this,de,!1)),b.set(this,(i(this,ce),i(this,he,"auto"))),f.set(this,(i(this,ge),i(this,me,""))),v.set(this,(i(this,ue),i(this,pe,""))),y.set(this,(i(this,ke),i(this,be,"OK"))),x.set(this,(i(this,fe),i(this,ve,"Cancel"))),w.set(this,(i(this,ye),i(this,xe,!1))),z.set(this,(i(this,we),i(this,ze,!1))),B.set(this,(i(this,Be),i(this,Te,!1))),T.set(this,(i(this,Ce),i(this,Me,!1))),C.set(this,(i(this,Se),i(this,$e,"Secondary"))),M.set(this,(i(this,_e),i(this,De,!1))),S.set(this,(i(this,We),i(this,je,!1))),$.set(this,(i(this,Ee),i(this,Fe,!1))),_.set(this,(i(this,Oe),i(this,Ve,void 0))),D.set(this,(i(this,Le),i(this,Ke,"Close"))),W.set(this,(i(this,Pe),i(this,qe,!1))),j.set(this,(i(this,Ae),i(this,Ge,void 0))),E.set(this,(i(this,He),i(this,Ie,!1))),F.set(this,(i(this,Je),i(this,Ne,!1))),O.set(this,(i(this,Qe),i(this,Re,!1))),i(this,Ue)}},k=new WeakMap,b=new WeakMap,f=new WeakMap,v=new WeakMap,y=new WeakMap,x=new WeakMap,w=new WeakMap,z=new WeakMap,B=new WeakMap,T=new WeakMap,C=new WeakMap,M=new WeakMap,S=new WeakMap,$=new WeakMap,_=new WeakMap,D=new WeakMap,W=new WeakMap,j=new WeakMap,E=new WeakMap,F=new WeakMap,O=new WeakMap,e(L,"Modal"),(()=>{var e;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=le[Symbol.metadata])&&void 0!==e?e:null):void 0;K=[h({type:Boolean})],P=[h({type:String})],q=[h({type:String})],A=[h({type:String})],G=[h({type:String})],H=[h({type:String})],I=[h({type:Boolean})],J=[h({type:Boolean})],N=[h({type:Boolean})],Q=[h({type:Boolean})],R=[h({type:String})],U=[h({type:Boolean})],X=[h({type:Boolean})],Y=[h({type:Boolean})],Z=[h({attribute:!1})],ee=[h({type:String})],te=[h({type:Boolean,reflect:!0})],ie=[g("dialog")],ae=[h({type:Boolean,reflect:!0})],oe=[h({type:Boolean})],se=[h({type:Boolean})],t(L,null,K,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:i},de,ce),t(L,null,P,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:i},he,ge),t(L,null,q,{kind:"accessor",name:"titleText",static:!1,private:!1,access:{has:e=>"titleText"in e,get:e=>e.titleText,set:(e,t)=>{e.titleText=t}},metadata:i},me,ue),t(L,null,A,{kind:"accessor",name:"labelText",static:!1,private:!1,access:{has:e=>"labelText"in e,get:e=>e.labelText,set:(e,t)=>{e.labelText=t}},metadata:i},pe,ke),t(L,null,G,{kind:"accessor",name:"okText",static:!1,private:!1,access:{has:e=>"okText"in e,get:e=>e.okText,set:(e,t)=>{e.okText=t}},metadata:i},be,fe),t(L,null,H,{kind:"accessor",name:"cancelText",static:!1,private:!1,access:{has:e=>"cancelText"in e,get:e=>e.cancelText,set:(e,t)=>{e.cancelText=t}},metadata:i},ve,ye),t(L,null,I,{kind:"accessor",name:"destructive",static:!1,private:!1,access:{has:e=>"destructive"in e,get:e=>e.destructive,set:(e,t)=>{e.destructive=t}},metadata:i},xe,we),t(L,null,J,{kind:"accessor",name:"okDisabled",static:!1,private:!1,access:{has:e=>"okDisabled"in e,get:e=>e.okDisabled,set:(e,t)=>{e.okDisabled=t}},metadata:i},ze,Be),t(L,null,N,{kind:"accessor",name:"secondaryDisabled",static:!1,private:!1,access:{has:e=>"secondaryDisabled"in e,get:e=>e.secondaryDisabled,set:(e,t)=>{e.secondaryDisabled=t}},metadata:i},Te,Ce),t(L,null,Q,{kind:"accessor",name:"hideFooter",static:!1,private:!1,access:{has:e=>"hideFooter"in e,get:e=>e.hideFooter,set:(e,t)=>{e.hideFooter=t}},metadata:i},Me,Se),t(L,null,R,{kind:"accessor",name:"secondaryButtonText",static:!1,private:!1,access:{has:e=>"secondaryButtonText"in e,get:e=>e.secondaryButtonText,set:(e,t)=>{e.secondaryButtonText=t}},metadata:i},$e,_e),t(L,null,U,{kind:"accessor",name:"showSecondaryButton",static:!1,private:!1,access:{has:e=>"showSecondaryButton"in e,get:e=>e.showSecondaryButton,set:(e,t)=>{e.showSecondaryButton=t}},metadata:i},De,We),t(L,null,X,{kind:"accessor",name:"secondaryDestructive",static:!1,private:!1,access:{has:e=>"secondaryDestructive"in e,get:e=>e.secondaryDestructive,set:(e,t)=>{e.secondaryDestructive=t}},metadata:i},je,Ee),t(L,null,Y,{kind:"accessor",name:"hideCancelButton",static:!1,private:!1,access:{has:e=>"hideCancelButton"in e,get:e=>e.hideCancelButton,set:(e,t)=>{e.hideCancelButton=t}},metadata:i},Fe,Oe),t(L,null,Z,{kind:"accessor",name:"beforeClose",static:!1,private:!1,access:{has:e=>"beforeClose"in e,get:e=>e.beforeClose,set:(e,t)=>{e.beforeClose=t}},metadata:i},Ve,Le),t(L,null,ee,{kind:"accessor",name:"closeText",static:!1,private:!1,access:{has:e=>"closeText"in e,get:e=>e.closeText,set:(e,t)=>{e.closeText=t}},metadata:i},Ke,Pe),t(L,null,te,{kind:"accessor",name:"gradientBackground",static:!1,private:!1,access:{has:e=>"gradientBackground"in e,get:e=>e.gradientBackground,set:(e,t)=>{e.gradientBackground=t}},metadata:i},qe,Ae),t(L,null,ie,{kind:"accessor",name:"_dialog",static:!1,private:!1,access:{has:e=>"_dialog"in e,get:e=>e._dialog,set:(e,t)=>{e._dialog=t}},metadata:i},Ge,He),t(L,null,ae,{kind:"accessor",name:"aiConnected",static:!1,private:!1,access:{has:e=>"aiConnected"in e,get:e=>e.aiConnected,set:(e,t)=>{e.aiConnected=t}},metadata:i},Ie,Je),t(L,null,oe,{kind:"accessor",name:"disableScroll",static:!1,private:!1,access:{has:e=>"disableScroll"in e,get:e=>e.disableScroll,set:(e,t)=>{e.disableScroll=t}},metadata:i},Ne,Qe),t(L,null,se,{kind:"accessor",name:"disableBackgroundClick",static:!1,private:!1,access:{has:e=>"disableBackgroundClick"in e,get:e=>e.disableBackgroundClick,set:(e,t)=>{e.disableBackgroundClick=t}},metadata:i},Re,Ue),t(null,V={value:L},re,{kind:"class",name:L.name,metadata:i},null,ne),L=V.value,i&&Object.defineProperty(L,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),L.styles=[l(p),r`
|
|
468
464
|
@supports (transition-behavior: allow-discrete) {
|
|
469
465
|
@starting-style {
|
|
470
466
|
dialog[open] {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sources":["../../../../src/components/reusable/modal/modal.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html, css, unsafeCSS } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport ModalScss from './modal.scss?inline';\n\nimport '../button';\n\nimport closeIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\n\n/**\n * Modal.\n * @slot unnamed - Slot for modal body content.\n * @slot anchor - Slot for the anchor button content.\n * @slot header-inline - Slot for an inline header action (badge/button) rendered next to the title/label when using the default header.\n * @slot footer - Slot for the footer content which replaces the ok, cancel, and second ary buttons.\n * @fires on-close - Emits the modal close event with `returnValue` (`'ok'` or `'cancel'`).`detail:{ origEvent: PointerEvent,returnValue: string }`\n * @fires on-open - Emits the modal open event.\n */\n@customElement('kyn-modal')\nexport class Modal extends LitElement {\n static override styles = [\n unsafeCSS(ModalScss),\n css`\n @supports (transition-behavior: allow-discrete) {\n @starting-style {\n dialog[open] {\n opacity: 0;\n transform: scale(0);\n }\n }\n\n @starting-style {\n dialog[open]::backdrop {\n background-color: rgb(0, 0, 0, 0);\n }\n }\n }\n `,\n ];\n\n /** Modal open state. */\n @property({ type: Boolean })\n accessor open = false;\n\n /** Modal size. `'auto'`, `'md'`, or `'lg', or `'xl'`. */\n @property({ type: String })\n accessor size = 'auto';\n\n /** Title/heading text, required. */\n @property({ type: String })\n accessor titleText = '';\n\n /** Label text, optional. */\n @property({ type: String })\n accessor labelText = '';\n\n /** OK button text. */\n @property({ type: String })\n accessor okText = 'OK';\n\n /** Cancel button text. */\n @property({ type: String })\n accessor cancelText = 'Cancel';\n\n /** Changes the primary button styles to indicate the action is destructive. */\n @property({ type: Boolean })\n accessor destructive = false;\n\n /** Disables the primary button. */\n @property({ type: Boolean })\n accessor okDisabled = false;\n\n /** Disables the secondary button. */\n @property({ type: Boolean })\n accessor secondaryDisabled = false;\n\n /** Hides the footer/action buttons to create a passive modal. */\n @property({ type: Boolean })\n accessor hideFooter = false;\n\n /** Secondary button text. */\n @property({ type: String })\n accessor secondaryButtonText = 'Secondary';\n\n /** Hides the secondary button. */\n @property({ type: Boolean })\n accessor showSecondaryButton = false;\n\n /** Changes the secondary button styles to indicate the action is destructive. */\n @property({ type: Boolean })\n accessor secondaryDestructive = false;\n\n /** Hides the cancel button. */\n @property({ type: Boolean })\n accessor hideCancelButton = false;\n\n /** Function to execute before the modal can close. Useful for running checks or validations before closing. Exposes `returnValue` (`'ok'` or `'cancel'`). Must return `true` or `false`. */\n @property({ attribute: false })\n accessor beforeClose!: Function;\n\n /** Close button text. */\n @property({ type: String })\n accessor closeText = 'Close';\n\n /** Apply gradient to modal background */\n @property({ type: Boolean, reflect: true })\n accessor gradientBackground = false;\n\n /** The dialog element\n * @internal\n */\n @query('dialog')\n accessor _dialog!: any;\n\n /** Determines if the component is themed for GenAI.*/\n @property({ type: Boolean, reflect: true })\n accessor aiConnected = false;\n\n /** Disables scroll on the modal body to allow scrolling of nested elements inside. */\n @property({ type: Boolean })\n accessor disableScroll = false;\n\n /** Set to `true` to disable background click modal dismissal */\n @property({ type: Boolean })\n accessor disableBackgroundClick = false;\n\n override render() {\n const classes = {\n modal: true,\n 'size--md': this.size === 'md',\n 'size--lg': this.size === 'lg',\n 'size--xl': this.size === 'xl',\n 'ai-connected': this.aiConnected,\n 'gradient-bkg': this.aiConnected && this.gradientBackground,\n };\n\n return html`\n <span class=\"anchor\" @click=${this._openModal}>\n <slot name=\"anchor\"></slot>\n </span>\n\n <dialog\n class=\"${classMap(classes)}\"\n aria-labelledby=\"dialogLabel\"\n tabindex=\"-1\"\n @cancel=${(e: Event) => this._closeModal(e, 'cancel')}\n @click=${(e: Event) => {\n if (!this.disableBackgroundClick && e.target === this._dialog) {\n this._closeModal(e, 'cancel');\n }\n }}\n >\n <form method=\"dialog\">\n <kyn-button\n class=\"close\"\n kind=${this.aiConnected ? 'ghost-ai' : 'ghost'}\n size=\"small\"\n description=${this.closeText}\n @click=${(e: Event) => this._closeModal(e, 'cancel')}\n >\n <span slot=\"icon\">${unsafeSVG(closeIcon)}</span>\n </kyn-button>\n\n <header>\n <div class=\"header-inner\">\n <div class=\"header-text\">\n <h1 id=\"dialogLabel\">${this.titleText}</h1>\n ${this.labelText !== ''\n ? html`<span class=\"label\">${this.labelText}</span>`\n : null}\n </div>\n\n <slot name=\"header-inline\"></slot>\n </div>\n </header>\n\n <div\n class=\"body ${this.disableScroll ? 'disableScroll' : ''}\"\n tabindex=\"${this.disableScroll ? '-1' : '0'}\"\n >\n <slot></slot>\n </div>\n\n ${!this.hideFooter\n ? html`\n <slot name=\"footer\">\n <div class=\"footer\">\n <kyn-button\n class=\"action-button\"\n value=\"ok\"\n kind=${this.destructive\n ? 'primary-destructive'\n : this.aiConnected\n ? 'primary-ai'\n : 'primary'}\n ?disabled=${this.okDisabled}\n @click=${(e: Event) => this._closeModal(e, 'ok')}\n >\n ${this.okText}\n </kyn-button>\n ${this.showSecondaryButton\n ? html`\n <kyn-button\n class=\"action-button\"\n value=\"Secondary\"\n kind=${this.secondaryDestructive\n ? 'secondary-destructive'\n : 'secondary'}\n ?disabled=${this.secondaryDisabled}\n @click=${(e: Event) =>\n this._closeModal(e, 'secondary')}\n >\n ${this.secondaryButtonText}\n </kyn-button>\n `\n : null}\n ${this.hideCancelButton\n ? null\n : html`\n <kyn-button\n class=\"action-button\"\n value=\"cancel\"\n kind=${this.aiConnected ? 'ghost-ai' : 'ghost'}\n @click=${(e: Event) =>\n this._closeModal(e, 'cancel')}\n >\n ${this.cancelText}\n </kyn-button>\n `}\n </div>\n </slot>\n `\n : null}\n </form>\n </dialog>\n `;\n }\n\n private _openModal() {\n this.open = true;\n }\n\n private _closeModal(e: Event, returnValue: string) {\n if (\n !this.beforeClose ||\n (this.beforeClose && this.beforeClose(returnValue))\n ) {\n this.open = false;\n this._dialog.returnValue = returnValue;\n this._emitCloseEvent(e);\n }\n }\n\n private _emitCloseEvent(e: Event) {\n const event = new CustomEvent('on-close', {\n detail: {\n returnValue: this._dialog.returnValue,\n origEvent: e,\n },\n });\n this.dispatchEvent(event);\n }\n\n private _emitOpenEvent() {\n const event = new CustomEvent('on-open');\n this.dispatchEvent(event);\n }\n\n override updated(changedProps: any) {\n if (changedProps.has('open')) {\n if (this.open) {\n this._dialog.showModal();\n this._emitOpenEvent();\n } else {\n this._dialog.close();\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-modal': Modal;\n }\n}\n"],"names":["Modal","customElement","LitElement","_classThis","_classSuper","open","__classPrivateFieldGet","this","_Modal_open_accessor_storage","value","__classPrivateFieldSet","size","_Modal_size_accessor_storage","titleText","_Modal_titleText_accessor_storage","labelText","_Modal_labelText_accessor_storage","okText","_Modal_okText_accessor_storage","cancelText","_Modal_cancelText_accessor_storage","destructive","_Modal_destructive_accessor_storage","okDisabled","_Modal_okDisabled_accessor_storage","secondaryDisabled","_Modal_secondaryDisabled_accessor_storage","hideFooter","_Modal_hideFooter_accessor_storage","secondaryButtonText","_Modal_secondaryButtonText_accessor_storage","showSecondaryButton","_Modal_showSecondaryButton_accessor_storage","secondaryDestructive","_Modal_secondaryDestructive_accessor_storage","hideCancelButton","_Modal_hideCancelButton_accessor_storage","beforeClose","_Modal_beforeClose_accessor_storage","closeText","_Modal_closeText_accessor_storage","gradientBackground","_Modal_gradientBackground_accessor_storage","_dialog","_Modal__dialog_accessor_storage","aiConnected","_Modal_aiConnected_accessor_storage","disableScroll","_Modal_disableScroll_accessor_storage","disableBackgroundClick","_Modal_disableBackgroundClick_accessor_storage","render","classes","modal","html","_openModal","classMap","e","_closeModal","target","unsafeSVG","closeIcon","returnValue","_emitCloseEvent","event","CustomEvent","detail","origEvent","dispatchEvent","_emitOpenEvent","updated","changedProps","has","showModal","close","set","__runInitializers","_open_initializers","_open_extraInitializers","_size_initializers","_size_extraInitializers","_titleText_initializers","_titleText_extraInitializers","_labelText_initializers","_labelText_extraInitializers","_okText_initializers","_okText_extraInitializers","_cancelText_initializers","_cancelText_extraInitializers","_destructive_initializers","_destructive_extraInitializers","_okDisabled_initializers","_okDisabled_extraInitializers","_secondaryDisabled_initializers","_secondaryDisabled_extraInitializers","_hideFooter_initializers","_hideFooter_extraInitializers","_secondaryButtonText_initializers","_secondaryButtonText_extraInitializers","_showSecondaryButton_initializers","_showSecondaryButton_extraInitializers","_secondaryDestructive_initializers","_secondaryDestructive_extraInitializers","_hideCancelButton_initializers","_hideCancelButton_extraInitializers","_beforeClose_initializers","_beforeClose_extraInitializers","_closeText_initializers","_closeText_extraInitializers","_gradientBackground_initializers","_gradientBackground_extraInitializers","__dialog_initializers","__dialog_extraInitializers","_aiConnected_initializers","_aiConnected_extraInitializers","_disableScroll_initializers","_disableScroll_extraInitializers","_disableBackgroundClick_initializers","_open_decorators","property","type","Boolean","_size_decorators","String","_titleText_decorators","_labelText_decorators","_okText_decorators","_cancelText_decorators","_destructive_decorators","_okDisabled_decorators","_secondaryDisabled_decorators","_hideFooter_decorators","_secondaryButtonText_decorators","_showSecondaryButton_decorators","_secondaryDestructive_decorators","_hideCancelButton_decorators","_beforeClose_decorators","attribute","_closeText_decorators","reflect","query","_disableScroll_decorators","_disableBackgroundClick_decorators","__esDecorate","kind","name","static","private","access","obj","get","metadata","_metadata","_gradientBackground_decorators","__dialog_decorators","_aiConnected_decorators","_disableBackgroundClick_extraInitializers","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","ModalScss","css"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoBaA,EAAK,gHADjBC,EAAc,uBACYC,qQAARC,EAAA,cAAQC,GAuBzB,QAASC,GAAI,OAAAC,EAAAC,KAAAC,EAAA,IAAA,CAAb,QAASH,CAAII,GAAAC,EAAAH,KAAAC,EAAAC,EAAA,IAAA,CAIb,QAASE,GAAI,OAAAL,EAAAC,KAAAK,EAAA,IAAA,CAAb,QAASD,CAAIF,GAAAC,EAAAH,KAAAK,EAAAH,EA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AAOgC,IAAA,CAAA0E,EAAA5I,KAAA4I,EAAP1G,QAAOlC,CAAA,GAAA8I,SAAAC,GAAAzC,GAAAC,IAIhB+B,EAAA5I,EAAA,KAAAwJ,GAAA,CAAAX,KAAA,WAAAC,KAAA,cAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAA5E,IAAA6E,GAAA,gBAAAA,EAAAC,IAAAD,GAAAA,EAASxG,YAAW8B,IAAA,CAAA0E,EAAA5I,KAAA4I,EAAXxG,YAAWpC,CAAA,GAAA8I,SAAAC,GAAAvC,GAAAC,IAIpB6B,EAAA5I,EAAA,KAAA0I,GAAA,CAAAG,KAAA,WAAAC,KAAA,gBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAA5E,IAAA6E,GAAA,kBAAAA,EAAAC,IAAAD,GAAAA,EAAStG,cAAa4B,IAAA,CAAA0E,EAAA5I,KAAA4I,EAAbtG,cAAatC,CAAA,GAAA8I,SAAAC,GAAArC,GAAAC,IAItB2B,EAAA5I,EAAA,KAAA2I,GAAA,CAAAE,KAAA,WAAAC,KAAA,yBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAA5E,IAAA6E,GAAA,2BAAAA,EAAAC,IAAAD,GAAAA,EAASpG,uBAAsB0B,IAAA,CAAA0E,EAAA5I,KAAA4I,EAAtBpG,uBAAsBxC,CAAA,GAAA8I,SAAAC,GAAAnC,GAAAuC,IAzGjCb,EAAA,KAAAc,EAAA,CAAApJ,MAAAN,GAAA2J,GAAA,CAAAd,KAAA,QAAAC,KAAA9I,EAAA8I,KAAAM,SAAAC,GAAA,KAAAO,kHACkB5J,EAAA6J,OAAS,CACvBC,EAAUC,GACVC,CAAG;;;;;;;;;;;;;;;OAHMvF,EAAAzE,EAAA4J,OAAK"}
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../../../../src/components/reusable/modal/modal.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html, css, unsafeCSS } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport ModalScss from './modal.scss?inline';\n\nimport '../button';\n\nimport closeIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\n\n/**\n * Modal.\n * @slot unnamed - Slot for modal body content.\n * @slot anchor - Slot for the anchor button content.\n * @slot header-inline - Slot for an inline header action (badge/button) rendered next to the title/label when using the default header.\n * @slot footer - Slot for the footer content which replaces the ok, cancel, and second ary buttons.\n * @fires on-close - Emits the modal close event with `returnValue` (`'ok'` or `'cancel'`).`detail:{ origEvent: PointerEvent,returnValue: string }`\n * @fires on-open - Emits the modal open event.\n */\n@customElement('kyn-modal')\nexport class Modal extends LitElement {\n static override styles = [\n unsafeCSS(ModalScss),\n css`\n @supports (transition-behavior: allow-discrete) {\n @starting-style {\n dialog[open] {\n opacity: 0;\n transform: scale(0);\n }\n }\n\n @starting-style {\n dialog[open]::backdrop {\n background-color: rgb(0, 0, 0, 0);\n }\n }\n }\n `,\n ];\n\n /** Modal open state. */\n @property({ type: Boolean })\n accessor open = false;\n\n /** Modal size. `'auto'`, `'md'`, or `'lg', or `'xl'`. */\n @property({ type: String })\n accessor size = 'auto';\n\n /** Title/heading text, required. */\n @property({ type: String })\n accessor titleText = '';\n\n /** Label text, optional. */\n @property({ type: String })\n accessor labelText = '';\n\n /** OK button text. */\n @property({ type: String })\n accessor okText = 'OK';\n\n /** Cancel button text. */\n @property({ type: String })\n accessor cancelText = 'Cancel';\n\n /** Changes the primary button styles to indicate the action is destructive. */\n @property({ type: Boolean })\n accessor destructive = false;\n\n /** Disables the primary button. */\n @property({ type: Boolean })\n accessor okDisabled = false;\n\n /** Disables the secondary button. */\n @property({ type: Boolean })\n accessor secondaryDisabled = false;\n\n /** Hides the footer/action buttons to create a passive modal. */\n @property({ type: Boolean })\n accessor hideFooter = false;\n\n /** Secondary button text. */\n @property({ type: String })\n accessor secondaryButtonText = 'Secondary';\n\n /** Hides the secondary button. */\n @property({ type: Boolean })\n accessor showSecondaryButton = false;\n\n /** Changes the secondary button styles to indicate the action is destructive. */\n @property({ type: Boolean })\n accessor secondaryDestructive = false;\n\n /** Hides the cancel button. */\n @property({ type: Boolean })\n accessor hideCancelButton = false;\n\n /** Function to execute before the modal can close. Useful for running checks or validations before closing. Exposes `returnValue` (`'ok'` or `'cancel'`). Must return `true` or `false`. */\n @property({ attribute: false })\n accessor beforeClose!: Function;\n\n /** Close button text. */\n @property({ type: String })\n accessor closeText = 'Close';\n\n /** Apply gradient to modal background */\n @property({ type: Boolean, reflect: true })\n accessor gradientBackground = false;\n\n /** The dialog element\n * @internal\n */\n @query('dialog')\n accessor _dialog!: any;\n\n /** Determines if the component is themed for GenAI.*/\n @property({ type: Boolean, reflect: true })\n accessor aiConnected = false;\n\n /** Disables scroll on the modal body to allow scrolling of nested elements inside. */\n @property({ type: Boolean })\n accessor disableScroll = false;\n\n /** Set to `true` to disable background click modal dismissal */\n @property({ type: Boolean })\n accessor disableBackgroundClick = false;\n\n override render() {\n const classes = {\n modal: true,\n 'size--md': this.size === 'md',\n 'size--lg': this.size === 'lg',\n 'size--xl': this.size === 'xl',\n 'ai-connected': this.aiConnected,\n 'gradient-bkg': this.aiConnected && this.gradientBackground,\n };\n\n return html`\n <span class=\"anchor\" @click=${this._openModal}>\n <slot name=\"anchor\"></slot>\n </span>\n\n <dialog\n class=\"${classMap(classes)}\"\n aria-labelledby=\"dialogLabel\"\n tabindex=\"-1\"\n @cancel=${(e: Event) => this._closeModal(e, 'cancel')}\n @click=${(e: Event) => {\n if (!this.disableBackgroundClick && e.target === this._dialog) {\n this._closeModal(e, 'cancel');\n }\n }}\n >\n <form method=\"dialog\">\n <kyn-button\n class=\"close\"\n kind=${this.aiConnected ? 'ghost-ai' : 'ghost'}\n size=\"small\"\n description=${this.closeText}\n @click=${(e: Event) => this._closeModal(e, 'cancel')}\n >\n <span slot=\"icon\">${unsafeSVG(closeIcon)}</span>\n </kyn-button>\n\n <header>\n <div class=\"header-inner\">\n <div class=\"header-text\">\n <h1 id=\"dialogLabel\">${this.titleText}</h1>\n ${this.labelText !== ''\n ? html`<span class=\"label\">${this.labelText}</span>`\n : null}\n </div>\n\n <slot name=\"header-inline\"></slot>\n </div>\n </header>\n\n <div\n class=\"body ${this.disableScroll ? 'disableScroll' : ''}\"\n tabindex=\"${this.disableScroll ? '-1' : '0'}\"\n >\n <slot></slot>\n </div>\n\n ${!this.hideFooter\n ? html`\n <slot name=\"footer\">\n <div class=\"footer\">\n <kyn-button\n class=\"action-button\"\n value=\"ok\"\n kind=${this.destructive\n ? 'primary-destructive'\n : this.aiConnected\n ? 'primary-ai'\n : 'primary'}\n ?disabled=${this.okDisabled}\n @click=${(e: Event) => this._closeModal(e, 'ok')}\n >\n ${this.okText}\n </kyn-button>\n ${this.showSecondaryButton\n ? html`\n <kyn-button\n class=\"action-button\"\n value=\"Secondary\"\n kind=${this.secondaryDestructive\n ? 'secondary-destructive'\n : 'secondary'}\n ?disabled=${this.secondaryDisabled}\n @click=${(e: Event) =>\n this._closeModal(e, 'secondary')}\n >\n ${this.secondaryButtonText}\n </kyn-button>\n `\n : null}\n ${this.hideCancelButton\n ? null\n : html`\n <kyn-button\n class=\"action-button\"\n value=\"cancel\"\n kind=${this.aiConnected ? 'ghost-ai' : 'ghost'}\n @click=${(e: Event) =>\n this._closeModal(e, 'cancel')}\n >\n ${this.cancelText}\n </kyn-button>\n `}\n </div>\n </slot>\n `\n : null}\n </form>\n </dialog>\n `;\n }\n\n private _openModal() {\n this.open = true;\n }\n\n private _closeModal(e: Event, returnValue: string) {\n if (\n !this.beforeClose ||\n (this.beforeClose && this.beforeClose(returnValue))\n ) {\n this.open = false;\n this._dialog.returnValue = returnValue;\n this._emitCloseEvent(e);\n }\n }\n\n private _emitCloseEvent(e: Event) {\n const event = new CustomEvent('on-close', {\n detail: {\n returnValue: this._dialog.returnValue,\n origEvent: e,\n },\n });\n this.dispatchEvent(event);\n }\n\n private _emitOpenEvent() {\n const event = new CustomEvent('on-open');\n this.dispatchEvent(event);\n }\n\n override updated(changedProps: any) {\n if (changedProps.has('open')) {\n if (this.open) {\n this._dialog.showModal();\n this._emitOpenEvent();\n } else {\n this._dialog.close();\n }\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-modal': Modal;\n }\n}\n"],"names":["Modal","customElement","LitElement","_classThis","_classSuper","open","__classPrivateFieldGet","this","_Modal_open_accessor_storage","value","__classPrivateFieldSet","size","_Modal_size_accessor_storage","titleText","_Modal_titleText_accessor_storage","labelText","_Modal_labelText_accessor_storage","okText","_Modal_okText_accessor_storage","cancelText","_Modal_cancelText_accessor_storage","destructive","_Modal_destructive_accessor_storage","okDisabled","_Modal_okDisabled_accessor_storage","secondaryDisabled","_Modal_secondaryDisabled_accessor_storage","hideFooter","_Modal_hideFooter_accessor_storage","secondaryButtonText","_Modal_secondaryButtonText_accessor_storage","showSecondaryButton","_Modal_showSecondaryButton_accessor_storage","secondaryDestructive","_Modal_secondaryDestructive_accessor_storage","hideCancelButton","_Modal_hideCancelButton_accessor_storage","beforeClose","_Modal_beforeClose_accessor_storage","closeText","_Modal_closeText_accessor_storage","gradientBackground","_Modal_gradientBackground_accessor_storage","_dialog","_Modal__dialog_accessor_storage","aiConnected","_Modal_aiConnected_accessor_storage","disableScroll","_Modal_disableScroll_accessor_storage","disableBackgroundClick","_Modal_disableBackgroundClick_accessor_storage","render","classes","modal","html","_openModal","classMap","e","_closeModal","target","unsafeSVG","closeIcon","returnValue","_emitCloseEvent","event","CustomEvent","detail","origEvent","dispatchEvent","_emitOpenEvent","updated","changedProps","has","showModal","close","set","__runInitializers","_open_initializers","_open_extraInitializers","_size_initializers","_size_extraInitializers","_titleText_initializers","_titleText_extraInitializers","_labelText_initializers","_labelText_extraInitializers","_okText_initializers","_okText_extraInitializers","_cancelText_initializers","_cancelText_extraInitializers","_destructive_initializers","_destructive_extraInitializers","_okDisabled_initializers","_okDisabled_extraInitializers","_secondaryDisabled_initializers","_secondaryDisabled_extraInitializers","_hideFooter_initializers","_hideFooter_extraInitializers","_secondaryButtonText_initializers","_secondaryButtonText_extraInitializers","_showSecondaryButton_initializers","_showSecondaryButton_extraInitializers","_secondaryDestructive_initializers","_secondaryDestructive_extraInitializers","_hideCancelButton_initializers","_hideCancelButton_extraInitializers","_beforeClose_initializers","_beforeClose_extraInitializers","_closeText_initializers","_closeText_extraInitializers","_gradientBackground_initializers","_gradientBackground_extraInitializers","__dialog_initializers","__dialog_extraInitializers","_aiConnected_initializers","_aiConnected_extraInitializers","_disableScroll_initializers","_disableScroll_extraInitializers","_disableBackgroundClick_initializers","_open_decorators","property","type","Boolean","_size_decorators","String","_titleText_decorators","_labelText_decorators","_okText_decorators","_cancelText_decorators","_destructive_decorators","_okDisabled_decorators","_secondaryDisabled_decorators","_hideFooter_decorators","_secondaryButtonText_decorators","_showSecondaryButton_decorators","_secondaryDestructive_decorators","_hideCancelButton_decorators","_beforeClose_decorators","attribute","_closeText_decorators","reflect","query","_disableScroll_decorators","_disableBackgroundClick_decorators","__esDecorate","kind","name","static","private","access","obj","get","metadata","_metadata","_gradientBackground_decorators","__dialog_decorators","_aiConnected_decorators","_disableBackgroundClick_extraInitializers","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","ModalScss","css"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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