@fluid-topics/ft-dialog 0.1.12 → 0.1.13
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/build/ft-dialog.js +1 -0
- package/build/ft-dialog.light.js +5 -4
- package/build/ft-dialog.min.js +1 -0
- package/package.json +5 -5
package/build/ft-dialog.js
CHANGED
package/build/ft-dialog.light.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,a="?"+l,h=`<${a}>`,p=document,f=(t="")=>p.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,
|
|
7
|
+
var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,a="?"+l,h=`<${a}>`,p=document,f=(t="")=>p.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,x=/^(?:script|style|textarea|title)$/i,b=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),S=new WeakMap,E=p.createTreeWalker(p,129,null,!1),k=(t,i)=>{const o=t.length-1,e=[];let n,s=2===i?"<svg>":"",a=d;for(let i=0;i<o;i++){const o=t[i];let r,p,f=-1,g=0;for(;g<o.length&&(a.lastIndex=g,p=a.exec(o),null!==p);)g=a.lastIndex,a===d?"!--"===p[1]?a=c:void 0!==p[1]?a=u:void 0!==p[2]?(x.test(p[2])&&(n=RegExp("</"+p[2],"g")),a=v):void 0!==p[3]&&(a=v):a===v?">"===p[0]?(a=null!=n?n:d,f=-1):void 0===p[1]?f=-2:(f=a.lastIndex-p[2].length,r=p[1],a=void 0===p[3]?v:'"'===p[3]?$:m):a===$||a===m?a=v:a===c||a===u?a=d:(a=v,n=void 0);const y=a===v&&t[i+1].startsWith("/>")?" ":"";s+=a===d?o+h:f>=0?(e.push(r),o.slice(0,f)+"$lit$"+o.slice(f)+l+y):o+l+(-2===f?(e.push(void 0),i):y)}const p=s+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,e]};class A{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let n=0,r=0;const h=t.length-1,p=this.parts,[g,y]=k(t,i);if(this.el=A.createElement(g,o),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=E.nextNode())&&p.length<h;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(l)){const o=y[r++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+"$lit$").split(l),i=/([.?@])?(.*)/.exec(o);p.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?N:"?"===i[1]?Z:"@"===i[1]?j:C})}else p.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(x.test(e.tagName)){const t=e.textContent.split(l),i=t.length-1;if(i>0){e.textContent=s?s.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],f()),E.nextNode(),p.push({type:2,index:++n});e.append(t[i],f())}}}else if(8===e.nodeType)if(e.data===a)p.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(l,t+1));)p.push({type:7,index:n}),t+=l.length-1}n++}}static createElement(t,i){const o=p.createElement("template");return o.innerHTML=t,o}}function _(t,i,o=t,e){var n,s,r,l;if(i===w)return i;let a=void 0!==e?null===(n=o._$Cl)||void 0===n?void 0:n[e]:o._$Cu;const h=g(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,o,e)),void 0!==e?(null!==(r=(l=o)._$Cl)&&void 0!==r?r:l._$Cl=[])[e]=a:o._$Cu=a),void 0!==a&&(i=_(t,a._$AS(t,i.values),a,e)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:o},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:p).importNode(o,!0);E.currentNode=n;let s=E.nextNode(),r=0,l=0,a=e[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new O(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new M(s,this,t)),this.v.push(i),a=e[++l]}r!==(null==a?void 0:a.index)&&(s=E.nextNode(),r++)}return n}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class O{constructor(t,i,o,e){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cg=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=_(this,t,i),g(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return y(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(p.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=A.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(o);else{const t=new I(n,this),i=t.p(this.options);t.m(o),this.S(i),this._$AH=t}}_$AC(t){let i=S.get(t.strings);return void 0===i&&S.set(t.strings,i=new A(t)),i}A(t){y(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const n of t)e===i.length?i.push(o=new O(this.M(f()),this.M(f()),this,this.options)):o=i[e],o._$AI(n),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class C{constructor(t,i,o,e,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const n=this.strings;let s=!1;if(void 0===n)t=_(this,t,i,0),s=!g(t)||t!==this._$AH&&t!==w,s&&(this._$AH=t);else{const e=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=_(this,e[o+r],i,r),l===w&&(l=this._$AH[r]),s||(s=!g(l)||l!==this._$AH[r]),l===z?t=z:t!==z&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!e&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class N extends C{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const T=s?s.emptyScript:"";class Z extends C{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,T):this.element.removeAttribute(this.name)}}class j extends C{constructor(t,i,o,e,n){super(t,i,o,e,n),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=_(this,t,i,0))&&void 0!==o?o:z)===w)return;const e=this._$AH,n=t===z&&e!==z||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==z&&(e===z||n);n&&this.element.removeEventListener(this.name,this,e),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class M{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){_(this,t)}}const U=window.litHtmlPolyfillSupport;null==U||U(A,O),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let s,r;const l=[],a=[];let h,p=0,f=!1;for(;p<n;){for(h=i[p];p<n&&void 0!==(r=o[p],s=null===(e=r)||void 0===e?void 0:e._$litStatic$);)h+=s+i[++p],f=!0;a.push(r),l.push(h),p++}if(p===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=R.get(t))&&(l.raw=l,R.set(t,i=l)),o=a}return t(i,...o)})(
|
|
13
|
+
const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let s,r;const l=[],a=[];let h,p=0,f=!1;for(;p<n;){for(h=i[p];p<n&&void 0!==(r=o[p],s=null===(e=r)||void 0===e?void 0:e._$litStatic$);)h+=s+i[++p],f=!0;a.push(r),l.push(h),p++}if(p===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=R.get(t))&&(l.raw=l,R.set(t,i=l)),o=a}return t(i,...o)})(b);var D,G=function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(D||(D={}));const K=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),H={fontFamily:L,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},F=e.FtCssVariable.extend("--ft-typography-title-font-family",K),q=e.FtCssVariable.extend("--ft-typography-title-font-size",H.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",H.fontWeight,"normal"),P=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",H.letterSpacing,"0.15px"),Q=e.FtCssVariable.extend("--ft-typography-title-line-height",H.lineHeight,"24px"),V=e.FtCssVariable.extend("--ft-typography-title-text-transform",H.textTransform,"inherit"),X=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",K),Y=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",H.fontSize,"14px"),tt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",H.fontWeight,"normal"),it=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",H.letterSpacing,"0.105px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",H.lineHeight,"24px"),et=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",H.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),st=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",H.fontSize,"16px"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",H.fontWeight,"600"),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",H.letterSpacing,"0.144px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",H.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",H.textTransform,"inherit"),pt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),ft=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",H.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",H.fontWeight,"normal"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",H.letterSpacing,"0.098px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",H.lineHeight,"24px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",H.textTransform,"inherit"),ut=e.FtCssVariable.extend("--ft-typography-body1-font-family",L),vt=e.FtCssVariable.extend("--ft-typography-body1-font-size",H.fontSize,"16px"),mt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",H.fontWeight,"normal"),$t=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",H.letterSpacing,"0.496px"),xt=e.FtCssVariable.extend("--ft-typography-body1-line-height",H.lineHeight,"24px"),bt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",H.textTransform,"inherit"),wt=e.FtCssVariable.extend("--ft-typography-body2-font-family",L),zt=e.FtCssVariable.extend("--ft-typography-body2-font-size",H.fontSize,"14px"),St=e.FtCssVariable.extend("--ft-typography-body2-font-weight",H.fontWeight,"normal"),Et=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",H.letterSpacing,"0.252px"),kt=e.FtCssVariable.extend("--ft-typography-body2-line-height",H.lineHeight,"20px"),At=e.FtCssVariable.extend("--ft-typography-body2-text-transform",H.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-caption-font-family",L),It=e.FtCssVariable.extend("--ft-typography-caption-font-size",H.fontSize,"12px"),Ot=e.FtCssVariable.extend("--ft-typography-caption-font-weight",H.fontWeight,"normal"),Ct=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",H.letterSpacing,"0.396px"),Nt=e.FtCssVariable.extend("--ft-typography-caption-line-height",H.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",H.textTransform,"inherit"),Zt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",H.fontSize,"10px"),Mt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",H.fontWeight,"normal"),Ut=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",H.letterSpacing,"0.33px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",H.lineHeight,"16px"),Rt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",H.textTransform,"inherit"),Wt=e.FtCssVariable.extend("--ft-typography-overline-font-family",L),Dt=e.FtCssVariable.extend("--ft-typography-overline-font-size",H.fontSize,"10px"),Gt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",H.fontWeight,"normal"),Kt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",H.letterSpacing,"1.5px"),Lt=e.FtCssVariable.extend("--ft-typography-overline-line-height",H.lineHeight,"16px"),Ht=e.FtCssVariable.extend("--ft-typography-overline-text-transform",H.textTransform,"uppercase"),Ft=e.FtCssVariable.extend("--ft-typography-button-font-family",L),qt=e.FtCssVariable.extend("--ft-typography-button-font-size",H.fontSize,"14px"),Jt=e.FtCssVariable.extend("--ft-typography-button-font-weight",H.fontWeight,"600"),Pt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",H.letterSpacing,"1.246px"),Qt=e.FtCssVariable.extend("--ft-typography-button-line-height",H.lineHeight,"16px"),Vt=e.FtCssVariable.extend("--ft-typography-button-text-transform",H.textTransform,"uppercase"),Xt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${F};
|
|
16
16
|
font-size: ${q};
|
|
@@ -53,8 +53,8 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
53
53
|
font-size: ${vt};
|
|
54
54
|
font-weight: ${mt};
|
|
55
55
|
letter-spacing: ${$t};
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
56
|
+
line-height: ${xt};
|
|
57
|
+
text-transform: ${bt};
|
|
58
58
|
}
|
|
59
59
|
`,ei=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
@@ -212,6 +212,7 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
|
|
|
212
212
|
display: flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
justify-content: flex-end;
|
|
215
|
+
gap: 8px;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
slot[name=buttons]::slotted(*) {
|
package/build/ft-dialog.min.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-dialog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "A simple dialog component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-typography": "^0.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "^0.1.13",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.1.13",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.1.13",
|
|
25
25
|
"lit": "2.1.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1d71ea532a92f97baca8f16cbc975e8fe79b471a"
|
|
28
28
|
}
|