@fluid-topics/ft-confirm-button 1.3.51 → 1.3.52

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.
@@ -510,7 +510,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
510
510
  </${Qt(this.element)}>
511
511
  `:er`
512
512
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
513
- `}};Ee.styles=[...$i];Fi([(0,kn.property)()],Ee.prototype,"element",void 0);Fi([(0,kn.property)()],Ee.prototype,"variant",void 0);(0,Dn.customElement)("ft-typography")(Oe);(0,Dn.customElement)("ftds-typography")(Ee);var Wi=S(W()),rt=S(P()),rr={distance:rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:rt.FtCssVariableFactory.external(rt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},zi=Wi.css`
513
+ `}};Ee.styles=[...$i];Fi([(0,kn.property)()],Ee.prototype,"element",void 0);Fi([(0,kn.property)()],Ee.prototype,"variant",void 0);(0,Dn.customElement)("ft-typography")(Oe);(0,Dn.customElement)("ftds-typography")(Ee);var Wi=S(W()),rt=S(P()),rr={distance:rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:rt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",rt.designSystemVariables.borderRadiusS),maxWidth:rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},zi=Wi.css`
514
514
  .ft-tooltip--container {
515
515
  display: block;
516
516
  }
@@ -1174,7 +1174,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1174
1174
  `];var Zr=vr.build("dsModal"),El={closeModal:"Close modal"};var Yr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},_a=class extends Event{constructor(){super("close")}},Ne=class extends xr(Ko.FtdsBase){constructor(){super(),this.heading="",this.size=de.small,this.addI18nContext(Zr,El)}render(){let t={"ftds-modal":!0,...this.getDesignSystemBaseClasses()};return qr.html`
1175
1175
  <div class="${(0,Al.classMap)(t)}" part="container">
1176
1176
  <dialog part="dialog"
1177
- @close=${()=>this.dispatchEvent(new _a)}>
1177
+ @close=${this.onClose}>
1178
1178
  <div part="overlay" @click=${this.onOverlayClick}></div>
1179
1179
  <div part="inner-container">
1180
1180
  <div part="header">
@@ -1204,7 +1204,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1204
1204
  </div>
1205
1205
  </dialog>
1206
1206
  </div>
1207
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("dialogOpen")&&(this.dialogOpen?this.dialog.showModal():this.dialog.close())}open(){this.dialogOpen=!0}close(){this.dialogOpen=!1}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(t){this.close()}};Ne.elementDefinitions={"ftds-button":ye,"ftds-typography":Ee,"ft-icon":fe};Ne.styles=Ol;Yr([(0,Mt.property)()],Ne.prototype,"heading",void 0);Yr([(0,Mt.property)()],Ne.prototype,"icon",void 0);Yr([(0,Mt.property)({type:Boolean,reflect:!0})],Ne.prototype,"dialogOpen",void 0);Yr([(0,Mt.query)("dialog")],Ne.prototype,"dialog",void 0);Yr([(0,Mt.property)()],Ne.prototype,"size",void 0);var Vo=S(P()),Rl=S(W());var wl=_e.body2regular;var st=S(Q());var Ut=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ce=class extends Vo.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=be.CHECK,this.cancelIcon=be.CLOSE}render(){return Rl.html`
1207
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("dialogOpen")&&(this.dialogOpen?this.dialog.showModal():this.dialog.close())}open(){this.dialogOpen=!0}close(){this.dialogOpen=!1}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(){this.close()}onClose(){this.dispatchEvent(new _a),this.close()}};Ne.elementDefinitions={"ftds-button":ye,"ftds-typography":Ee,"ft-icon":fe};Ne.styles=Ol;Yr([(0,Mt.property)()],Ne.prototype,"heading",void 0);Yr([(0,Mt.property)()],Ne.prototype,"icon",void 0);Yr([(0,Mt.property)({type:Boolean,reflect:!0})],Ne.prototype,"dialogOpen",void 0);Yr([(0,Mt.query)("dialog")],Ne.prototype,"dialog",void 0);Yr([(0,Mt.property)()],Ne.prototype,"size",void 0);var Vo=S(P()),Rl=S(W());var wl=_e.body2regular;var st=S(Q());var Ut=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Ce=class extends Vo.FtLitElement{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=be.CHECK,this.cancelIcon=be.CLOSE}render(){return Rl.html`
1208
1208
  <ftds-modal
1209
1209
  heading="${this.heading}"
1210
1210
  size="${de.small}"
@@ -590,7 +590,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
590
590
  </${Nr(this.element)}>
591
591
  `:Ir`
592
592
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
593
- `}};Ie.styles=[...sd];ld([v()],Ie.prototype,"element",void 0);ld([v()],Ie.prototype,"variant",void 0);ne("ft-typography")(Ne);ne("ftds-typography")(Ie);var Pr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.external(F.borderRadiusS,"Design system"),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},cd=P`
593
+ `}};Ie.styles=[...sd];ld([v()],Ie.prototype,"element",void 0);ld([v()],Ie.prototype,"variant",void 0);ne("ft-typography")(Ne);ne("ftds-typography")(Ie);var Pr={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",F.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},cd=P`
594
594
  .ft-tooltip--container {
595
595
  display: block;
596
596
  }
@@ -1254,7 +1254,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1254
1254
  `];var So=Br.build("dsModal"),Ed={closeModal:"Close modal"};var Oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},cs=class extends Event{constructor(){super("close")}},De=class extends $r($t){constructor(){super(),this.heading="",this.size=se.small,this.addI18nContext(So,Ed)}render(){let e={"ftds-modal":!0,...this.getDesignSystemBaseClasses()};return U`
1255
1255
  <div class="${Ke(e)}" part="container">
1256
1256
  <dialog part="dialog"
1257
- @close=${()=>this.dispatchEvent(new cs)}>
1257
+ @close=${this.onClose}>
1258
1258
  <div part="overlay" @click=${this.onOverlayClick}></div>
1259
1259
  <div part="inner-container">
1260
1260
  <div part="header">
@@ -1284,7 +1284,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1284
1284
  </div>
1285
1285
  </dialog>
1286
1286
  </div>
1287
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("dialogOpen")&&(this.dialogOpen?this.dialog.showModal():this.dialog.close())}open(){this.dialogOpen=!0}close(){this.dialogOpen=!1}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(e){this.close()}};De.elementDefinitions={"ftds-button":ve,"ftds-typography":Ie,"ft-icon":ge};De.styles=Cd;Oo([v()],De.prototype,"heading",void 0);Oo([v()],De.prototype,"icon",void 0);Oo([v({type:Boolean,reflect:!0})],De.prototype,"dialogOpen",void 0);Oo([oe("dialog")],De.prototype,"dialog",void 0);Oo([v()],De.prototype,"size",void 0);var wd=He.body2regular;var Xt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},we=class extends G{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=Oe.CHECK,this.cancelIcon=Oe.CLOSE}render(){return U`
1287
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("dialogOpen")&&(this.dialogOpen?this.dialog.showModal():this.dialog.close())}open(){this.dialogOpen=!0}close(){this.dialogOpen=!1}disconnectedCallback(){super.disconnectedCallback(),this.close()}onOverlayClick(){this.close()}onClose(){this.dispatchEvent(new cs),this.close()}};De.elementDefinitions={"ftds-button":ve,"ftds-typography":Ie,"ft-icon":ge};De.styles=Cd;Oo([v()],De.prototype,"heading",void 0);Oo([v()],De.prototype,"icon",void 0);Oo([v({type:Boolean,reflect:!0})],De.prototype,"dialogOpen",void 0);Oo([oe("dialog")],De.prototype,"dialog",void 0);Oo([v()],De.prototype,"size",void 0);var wd=He.body2regular;var Xt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},we=class extends G{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=Oe.CHECK,this.cancelIcon=Oe.CLOSE}render(){return U`
1288
1288
  <ftds-modal
1289
1289
  heading="${this.heading}"
1290
1290
  size="${se.small}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-confirm-button",
3
- "version": "1.3.51",
3
+ "version": "1.3.52",
4
4
  "description": "A two step confirmation button",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.3.51",
22
+ "@fluid-topics/ft-wc-utils": "1.3.52",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "1.3.51"
26
+ "@fluid-topics/ft-wc-test-utils": "1.3.52"
27
27
  },
28
- "gitHead": "02e21de480825149da06349c73a08934a05c3a65"
28
+ "gitHead": "8cd9d8b95748384e70ead4c45af71bd9781ddf44"
29
29
  }