@fluid-topics/ft-dialog 1.0.60 → 1.0.62

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.
@@ -106,12 +106,14 @@ const j=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===j)return null==t?void 0:t
106
106
  vertical-align: inherit;
107
107
  }
108
108
  `,uo=[Object.keys(J).map((t=>function(t){const o=J[t];return e.css`
109
- font-family: ${o.fontFamily};
110
- font-size: ${o.fontSize};
111
- font-weight: ${o.fontWeight};
112
- letter-spacing: ${o.letterSpacing};
113
- line-height: ${o.lineHeight};
114
- text-transform: ${o.textCase};
109
+ .ft-typography--${e.unsafeCSS(t)} {
110
+ font-family: ${o.fontFamily};
111
+ font-size: ${o.fontSize};
112
+ font-weight: ${o.fontWeight};
113
+ letter-spacing: ${o.letterSpacing};
114
+ line-height: ${o.lineHeight};
115
+ text-transform: ${o.textCase};
116
+ }
115
117
  `}(t)))];var mo,xo,Oo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class vo extends o.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?_`
116
118
  <${M(this.element)}
117
119
  class="ft-typography ft-typography--${this.variant}">
@@ -578,7 +580,7 @@ const j=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===j)return null==t?void 0:t
578
580
  </ft-tooltip>
579
581
  `:t}resolveIcon(){return this.loading?e.html`
580
582
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
581
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ne.elementDefinitions={"ft-ripple":Yo,"ft-tooltip":re,"ft-typography":vo,"ft-icon":wo,"ft-loader":ie},ae([r.property({type:String,reflect:!0})],ne.prototype,"role",void 0),ae([r.property()],ne.prototype,"type",void 0),ae([r.property({type:Boolean})],ne.prototype,"disabled",void 0),ae([r.property()],ne.prototype,"label",void 0),ae([r.property()],ne.prototype,"icon",void 0),ae([r.property()],ne.prototype,"iconVariant",void 0),ae([r.property({type:Boolean})],ne.prototype,"trailingIcon",void 0),ae([r.property({type:Boolean})],ne.prototype,"loading",void 0),ae([r.property()],ne.prototype,"tooltipPosition",void 0),ae([r.property({type:Boolean})],ne.prototype,"hideTooltip",void 0),ae([r.property({type:Boolean})],ne.prototype,"forceTooltip",void 0),ae([r.query(".ft-button")],ne.prototype,"button",void 0),ae([r.query(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);var le=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ce extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ce.styles=[o.safariEllipsisFix,To],le([r.property({type:Boolean})],ce.prototype,"primary",void 0),le([r.property({type:Boolean})],ce.prototype,"outlined",void 0),le([r.property({type:Boolean})],ce.prototype,"disabled",void 0),le([r.property({type:Boolean})],ce.prototype,"dense",void 0),le([r.property({type:Boolean})],ce.prototype,"round",void 0);const pe=[e.css`
583
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ne.elementDefinitions={"ft-ripple":Yo,"ft-tooltip":re,"ft-typography":vo,"ft-icon":wo,"ft-loader":ie},ae([r.property({type:String,reflect:!0})],ne.prototype,"role",void 0),ae([r.property()],ne.prototype,"type",void 0),ae([r.property({type:Boolean})],ne.prototype,"disabled",void 0),ae([r.property()],ne.prototype,"label",void 0),ae([r.property()],ne.prototype,"icon",void 0),ae([r.property()],ne.prototype,"iconVariant",void 0),ae([r.property({type:Boolean})],ne.prototype,"trailingIcon",void 0),ae([r.property({type:Boolean})],ne.prototype,"loading",void 0),ae([r.property()],ne.prototype,"tooltipPosition",void 0),ae([r.property({type:Boolean})],ne.prototype,"hideTooltip",void 0),ae([r.property({type:Boolean})],ne.prototype,"forceTooltip",void 0),ae([r.query(".ft-button")],ne.prototype,"button",void 0),ae([r.query(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);var le=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ce extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ce.styles=[o.safariEllipsisFix,To],le([r.property({type:Boolean})],ce.prototype,"primary",void 0),le([r.property({type:Boolean})],ce.prototype,"outlined",void 0),le([r.property({type:Boolean})],ce.prototype,"dense",void 0),le([r.property({type:Boolean})],ce.prototype,"round",void 0);const pe=[e.css`
582
584
  :host {
583
585
  display: inline-block;
584
586
  max-width: 100%;
@@ -200,12 +200,14 @@ var ht,ut;let yt=class extends U{constructor(){super(...arguments),this.renderOp
200
200
  vertical-align: inherit;
201
201
  }
202
202
  `,le=[Object.keys(Ot).map((t=>function(t){const o=Ot[t];return m`
203
- font-family: ${o.fontFamily};
204
- font-size: ${o.fontSize};
205
- font-weight: ${o.fontWeight};
206
- letter-spacing: ${o.letterSpacing};
207
- line-height: ${o.lineHeight};
208
- text-transform: ${o.textCase};
203
+ .ft-typography--${b(t)} {
204
+ font-family: ${o.fontFamily};
205
+ font-size: ${o.fontSize};
206
+ font-weight: ${o.fontWeight};
207
+ letter-spacing: ${o.letterSpacing};
208
+ line-height: ${o.lineHeight};
209
+ text-transform: ${o.textCase};
210
+ }
209
211
  `}(t)))];var se=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ce extends kt{constructor(){super(...arguments),this.variant=Pt.body1}render(){return this.element?jt`
210
212
  <${At(this.element)}
211
213
  class="ft-typography ft-typography--${this.variant}">
@@ -683,7 +685,7 @@ const pe=1,fe=2,de=t=>(...o)=>({_$litDirective$:t,values:o});class he{constructo
683
685
  </ft-tooltip>
684
686
  `:t}resolveIcon(){return this.loading?J`
685
687
  <ft-loader part="loader icon"></ft-loader> `:this.icon?J`
686
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:X}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}rr.elementDefinitions={"ft-ripple":Te,"ft-tooltip":tr,"ft-typography":ce,"ft-icon":Ne,"ft-loader":or},er([r({type:String,reflect:!0})],rr.prototype,"role",void 0),er([r()],rr.prototype,"type",void 0),er([r({type:Boolean})],rr.prototype,"disabled",void 0),er([r()],rr.prototype,"label",void 0),er([r()],rr.prototype,"icon",void 0),er([r()],rr.prototype,"iconVariant",void 0),er([r({type:Boolean})],rr.prototype,"trailingIcon",void 0),er([r({type:Boolean})],rr.prototype,"loading",void 0),er([r()],rr.prototype,"tooltipPosition",void 0),er([r({type:Boolean})],rr.prototype,"hideTooltip",void 0),er([r({type:Boolean})],rr.prototype,"forceTooltip",void 0),er([n(".ft-button")],rr.prototype,"button",void 0),er([n(".ft-button--label slot")],rr.prototype,"slottedContent",void 0);var ir=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ar extends rr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ar.styles=[Lt,He],ir([r({type:Boolean})],ar.prototype,"primary",void 0),ir([r({type:Boolean})],ar.prototype,"outlined",void 0),ir([r({type:Boolean})],ar.prototype,"disabled",void 0),ir([r({type:Boolean})],ar.prototype,"dense",void 0),ir([r({type:Boolean})],ar.prototype,"round",void 0);const nr=[m`
688
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:X}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}rr.elementDefinitions={"ft-ripple":Te,"ft-tooltip":tr,"ft-typography":ce,"ft-icon":Ne,"ft-loader":or},er([r({type:String,reflect:!0})],rr.prototype,"role",void 0),er([r()],rr.prototype,"type",void 0),er([r({type:Boolean})],rr.prototype,"disabled",void 0),er([r()],rr.prototype,"label",void 0),er([r()],rr.prototype,"icon",void 0),er([r()],rr.prototype,"iconVariant",void 0),er([r({type:Boolean})],rr.prototype,"trailingIcon",void 0),er([r({type:Boolean})],rr.prototype,"loading",void 0),er([r()],rr.prototype,"tooltipPosition",void 0),er([r({type:Boolean})],rr.prototype,"hideTooltip",void 0),er([r({type:Boolean})],rr.prototype,"forceTooltip",void 0),er([n(".ft-button")],rr.prototype,"button",void 0),er([n(".ft-button--label slot")],rr.prototype,"slottedContent",void 0);var ir=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ar extends rr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ar.styles=[Lt,He],ir([r({type:Boolean})],ar.prototype,"primary",void 0),ir([r({type:Boolean})],ar.prototype,"outlined",void 0),ir([r({type:Boolean})],ar.prototype,"dense",void 0),ir([r({type:Boolean})],ar.prototype,"round",void 0);const nr=[m`
687
689
  :host {
688
690
  display: inline-block;
689
691
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-dialog",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "A simple dialog component",
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-button": "1.0.60",
23
- "@fluid-topics/ft-icon": "1.0.60",
24
- "@fluid-topics/ft-typography": "1.0.60",
25
- "@fluid-topics/ft-wc-utils": "1.0.60",
22
+ "@fluid-topics/ft-button": "1.0.62",
23
+ "@fluid-topics/ft-icon": "1.0.62",
24
+ "@fluid-topics/ft-typography": "1.0.62",
25
+ "@fluid-topics/ft-wc-utils": "1.0.62",
26
26
  "lit": "2.7.2"
27
27
  },
28
- "gitHead": "8eb7c2ef052f5d3f61ed0bf150fcaee093805450"
28
+ "gitHead": "44e9005773fe47b2e6a9ada16802918052a146cf"
29
29
  }