@fluid-topics/ft-reader-metadata 0.3.17 → 0.3.19
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.
|
@@ -6,7 +6,7 @@ export declare class FtReaderMetadata extends FtReaderComponent implements FtRea
|
|
|
6
6
|
static styles: import("lit").CSSResult;
|
|
7
7
|
key?: string;
|
|
8
8
|
maxLength?: number;
|
|
9
|
-
|
|
9
|
+
editorMode: boolean;
|
|
10
10
|
private map?;
|
|
11
11
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
12
12
|
private renderContent;
|
|
@@ -14,7 +14,7 @@ import { FtChip } from "@fluid-topics/ft-chip";
|
|
|
14
14
|
export class FtReaderMetadata extends FtReaderComponent {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
this.
|
|
17
|
+
this.editorMode = false;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
return html `
|
|
@@ -30,7 +30,7 @@ export class FtReaderMetadata extends FtReaderComponent {
|
|
|
30
30
|
if (this.metadata) {
|
|
31
31
|
return html `${this.valueText}`;
|
|
32
32
|
}
|
|
33
|
-
if (this.
|
|
33
|
+
if (this.editorMode) {
|
|
34
34
|
if (this.key) {
|
|
35
35
|
return html `no value for ${this.key}`;
|
|
36
36
|
}
|
|
@@ -41,8 +41,7 @@ export class FtReaderMetadata extends FtReaderComponent {
|
|
|
41
41
|
return nothing;
|
|
42
42
|
}
|
|
43
43
|
hideIfEmpty() {
|
|
44
|
-
|
|
45
|
-
if (!this.keepVisible && !this.metadata) {
|
|
44
|
+
if (!this.editorMode && !this.metadata) {
|
|
46
45
|
return html `
|
|
47
46
|
<style>
|
|
48
47
|
:host {
|
|
@@ -79,7 +78,7 @@ __decorate([
|
|
|
79
78
|
], FtReaderMetadata.prototype, "maxLength", void 0);
|
|
80
79
|
__decorate([
|
|
81
80
|
property({ attribute: false })
|
|
82
|
-
], FtReaderMetadata.prototype, "
|
|
81
|
+
], FtReaderMetadata.prototype, "editorMode", void 0);
|
|
83
82
|
__decorate([
|
|
84
83
|
redux()
|
|
85
84
|
], FtReaderMetadata.prototype, "map", void 0);
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
5
|
-
`;var l,p=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class a extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends i.FtLitElementRedux{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new a)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}p([o.state()],h.prototype,"stateManager",void 0);const f=globalThis.trustedTypes,c=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,g="?"+d,u=`<${g}>`,y=document,x=(t="")=>y.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,w=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),z=/'/g,O=/"/g,S=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),j=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),I=new WeakMap,E=y.createTreeWalker(y,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=b;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===b?"!--"===p[1]?r=$:void 0!==p[1]?r=w:void 0!==p[2]?(S.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=k):void 0!==p[3]&&(r=k):r===k?">"===p[0]?(r=null!=n?n:b,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?k:'"'===p[3]?O:z):r===O||r===z?r=k:r===$||r===w?r=b:(r=k,n=void 0);const f=r===k&&t[i+1].startsWith("/>")?" ":"";s+=r===b?e+u:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+d+f):e+d+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(l):l,o]};class A{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=T(t,i);if(this.el=A.createElement(p,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=E.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(d)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(d),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?U:"?"===i[1]?R:"@"===i[1]?
|
|
5
|
+
`;var l,p=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class a extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends i.FtLitElementRedux{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new a)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}p([o.state()],h.prototype,"stateManager",void 0);const f=globalThis.trustedTypes,c=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,g="?"+d,u=`<${g}>`,y=document,x=(t="")=>y.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,w=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),z=/'/g,O=/"/g,S=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),j=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),I=new WeakMap,E=y.createTreeWalker(y,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=b;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===b?"!--"===p[1]?r=$:void 0!==p[1]?r=w:void 0!==p[2]?(S.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=k):void 0!==p[3]&&(r=k):r===k?">"===p[0]?(r=null!=n?n:b,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?k:'"'===p[3]?O:z):r===O||r===z?r=k:r===$||r===w?r=b:(r=k,n=void 0);const f=r===k&&t[i+1].startsWith("/>")?" ":"";s+=r===b?e+u:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+d+f):e+d+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(l):l,o]};class A{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=T(t,i);if(this.el=A.createElement(p,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=E.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(d)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(d),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?U:"?"===i[1]?R:"@"===i[1]?W:_})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(S.test(o.tagName)){const t=o.textContent.split(d),i=t.length-1;if(i>0){o.textContent=f?f.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],x()),E.nextNode(),l.push({type:2,index:++n});o.append(t[i],x())}}}else if(8===o.nodeType)if(o.data===g)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)l.push({type:7,index:n}),t+=d.length-1}n++}}static createElement(t,i){const e=y.createElement("template");return e.innerHTML=t,e}}function B(t,i,e=t,o){var n,s,r,l;if(i===j)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=v(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=B(t,p._$AS(t,i.values),p,o)),i}class F{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:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:y).importNode(e,!0);E.currentNode=n;let s=E.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new M(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new D(s,this,t)),this.v.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(s=E.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class M{constructor(t,i,e,o){var n;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(n=null==o?void 0:o.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._$C_}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=B(this,t,i),v(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==j&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==N&&v(this._$AH)?this._$AA.nextSibling.data=t:this.k(y.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new F(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new A(t)),i}S(t){m(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new M(this.j(x()),this.j(x()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class _{constructor(t,i,e,o,n){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=B(this,t,i,0),s=!v(t)||t!==this._$AH&&t!==j,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=B(this,o[e+r],i,r),l===j&&(l=this._$AH[r]),s||(s=!v(l)||l!==this._$AH[r]),l===N?t=N:t!==N&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.P(t)}P(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class U extends _{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===N?void 0:t}}const Z=f?f.emptyScript:"";class R extends _{constructor(){super(...arguments),this.type=4}P(t){t&&t!==N?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class W extends _{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=B(this,t,i,0))&&void 0!==e?e:N)===j)return;const o=this._$AH,n=t===N&&o!==N||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==N&&(o===N||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class D{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const K=window.litHtmlPolyfillSupport;null==K||K(A,M),(null!==(l=globalThis.litHtmlVersions)&&void 0!==l?l:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
8
8
|
* Copyright 2020 Google LLC
|
|
9
9
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
11
|
+
const L=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:L}),H=new Map,q=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(s=e[a],n=P(s));)p+=n+i[++a],h=!0;l.push(s),r.push(p),a++}if(a===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=H.get(t))&&(r.raw=r,H.set(t,i=r)),e=l}return t(i,...e)})(C);var X;!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"}(X||(X={}));const Y=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),J=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Q={fontFamily:J,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},V=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",Y),tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Q.fontSize,"20px"),it=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Q.fontWeight,"normal"),et=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Q.letterSpacing,"0.15px"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Q.lineHeight,"1.2"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Q.textTransform,"inherit"),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Y),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Q.fontSize,"14px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Q.fontWeight,"normal"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Q.letterSpacing,"0.105px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Q.lineHeight,"1.7"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Q.textTransform,"inherit"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",J),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Q.fontSize,"16px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Q.fontWeight,"600"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Q.letterSpacing,"0.144px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Q.lineHeight,"1.5"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Q.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",J),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Q.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Q.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Q.letterSpacing,"0.098px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Q.lineHeight,"1.7"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Q.textTransform,"inherit"),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",J),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Q.fontSize,"16px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Q.fontWeight,"normal"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Q.letterSpacing,"0.496px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Q.lineHeight,"1.5"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Q.textTransform,"inherit"),Nt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",J),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Q.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Q.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Q.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Q.textTransform,"inherit")},It=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",J),Et=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Q.fontSize,"12px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Q.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Q.letterSpacing,"0.396px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Q.lineHeight,"1.33"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Q.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",J),_t=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Q.fontSize,"10px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Q.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Q.letterSpacing,"0.33px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Q.lineHeight,"1.6"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Q.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",J),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Q.fontSize,"10px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Q.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Q.letterSpacing,"1.5px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Q.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Q.textTransform,"uppercase"),qt=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",J),Xt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Q.fontSize,"14px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Q.fontWeight,"600"),Jt=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Q.letterSpacing,"1.246px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Q.lineHeight,"1.15"),Vt=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Q.textTransform,"uppercase"),ti=e.css`
|
|
12
12
|
.ft-typography--title {
|
|
13
|
-
font-family: ${
|
|
13
|
+
font-family: ${V};
|
|
14
14
|
font-size: ${tt};
|
|
15
15
|
font-weight: ${it};
|
|
16
16
|
letter-spacing: ${et};
|
|
@@ -79,35 +79,35 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
79
79
|
font-weight: ${Ut};
|
|
80
80
|
letter-spacing: ${Zt};
|
|
81
81
|
line-height: ${Rt};
|
|
82
|
-
text-transform: ${
|
|
82
|
+
text-transform: ${Wt};
|
|
83
83
|
}
|
|
84
84
|
`,pi=e.css`
|
|
85
85
|
.ft-typography--overline {
|
|
86
|
-
font-family: ${
|
|
86
|
+
font-family: ${Dt};
|
|
87
87
|
font-size: ${Kt};
|
|
88
|
-
font-weight: ${
|
|
89
|
-
letter-spacing: ${
|
|
90
|
-
line-height: ${
|
|
91
|
-
text-transform: ${
|
|
88
|
+
font-weight: ${Lt};
|
|
89
|
+
letter-spacing: ${Pt};
|
|
90
|
+
line-height: ${Gt};
|
|
91
|
+
text-transform: ${Ht};
|
|
92
92
|
}
|
|
93
93
|
`,ai=e.css`
|
|
94
94
|
.ft-typography--button {
|
|
95
95
|
font-family: ${qt};
|
|
96
|
-
font-size: ${
|
|
97
|
-
font-weight: ${
|
|
98
|
-
letter-spacing: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
text-transform: ${
|
|
96
|
+
font-size: ${Xt};
|
|
97
|
+
font-weight: ${Yt};
|
|
98
|
+
letter-spacing: ${Jt};
|
|
99
|
+
line-height: ${Qt};
|
|
100
|
+
text-transform: ${Vt};
|
|
101
101
|
}
|
|
102
102
|
`,hi=e.css`
|
|
103
103
|
.ft-typography {
|
|
104
104
|
vertical-align: inherit;
|
|
105
105
|
}
|
|
106
|
-
`;var fi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
107
|
-
<${
|
|
106
|
+
`;var fi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?q`
|
|
107
|
+
<${G(this.element)}
|
|
108
108
|
class="ft-typography ft-typography--${this.variant}">
|
|
109
109
|
<slot></slot>
|
|
110
|
-
</${
|
|
110
|
+
</${G(this.element)}>
|
|
111
111
|
`:q`
|
|
112
112
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
113
113
|
`}}ci.styles=[ti,ii,ei,oi,ni,si,ri,li,pi,ai,hi],fi([o.property()],ci.prototype,"element",void 0),fi([o.property()],ci.prototype,"variant",void 0),i.customElement("ft-typography")(ci);const di=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),gi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ui=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),yi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),xi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),vi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),mi=e.css`
|
|
@@ -306,7 +306,7 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
306
306
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
307
307
|
<slot ?hidden=${t}></slot>
|
|
308
308
|
</i>
|
|
309
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case _i.file_format:this.resolvedIcon=null!==(t=Ti[o.toUpperCase()])&&void 0!==t?t:o;break;case _i.fluid_topics:this.resolvedIcon=null!==(i=Ei[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Zi.elementDefinitions={},Zi.styles=Mi,Ui([o.property()],Zi.prototype,"variant",void 0),Ui([o.property()],Zi.prototype,"value",void 0),Ui([o.state()],Zi.prototype,"resolvedIcon",void 0),Ui([o.query("slot")],Zi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Zi);const Ri=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),
|
|
309
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case _i.file_format:this.resolvedIcon=null!==(t=Ti[o.toUpperCase()])&&void 0!==t?t:o;break;case _i.fluid_topics:this.resolvedIcon=null!==(i=Ei[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Zi.elementDefinitions={},Zi.styles=Mi,Ui([o.property()],Zi.prototype,"variant",void 0),Ui([o.property()],Zi.prototype,"value",void 0),Ui([o.state()],Zi.prototype,"resolvedIcon",void 0),Ui([o.query("slot")],Zi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Zi);const Ri=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Wi={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Ri,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Nt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Ri),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Ki={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Di)},Li=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Pi=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Gi=[i.noTextSelect,e.css`
|
|
310
310
|
:host {
|
|
311
311
|
display: inline-block;
|
|
312
312
|
max-width: 100%;
|
|
@@ -323,20 +323,20 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
323
323
|
box-sizing: border-box;
|
|
324
324
|
pointer-events: auto;
|
|
325
325
|
|
|
326
|
-
--ft-chip-internal-font-size: ${
|
|
326
|
+
--ft-chip-internal-font-size: ${Wi.fontSize};
|
|
327
327
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
328
|
-
${i.setVariable(Fi.size,
|
|
329
|
-
--ft-chip-internal-vertical-padding: ${
|
|
330
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
328
|
+
${i.setVariable(Fi.size,Wi.iconSize)};
|
|
329
|
+
--ft-chip-internal-vertical-padding: ${Wi.verticalPadding};
|
|
330
|
+
--ft-chip-internal-horizontal-padding: ${Wi.horizontalPadding};
|
|
331
331
|
--ft-chip-internal-icon-padding: 3px;
|
|
332
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
332
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Wi.iconSize});
|
|
333
333
|
|
|
334
|
-
border: 1px solid ${
|
|
335
|
-
color: ${
|
|
336
|
-
${i.setVariable(ki.color,
|
|
334
|
+
border: 1px solid ${Wi.colorOutline};
|
|
335
|
+
color: ${Wi.color};
|
|
336
|
+
${i.setVariable(ki.color,Wi.rippleColor)};
|
|
337
337
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
338
338
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
339
|
-
background-color: ${
|
|
339
|
+
background-color: ${Wi.backgroundColor};
|
|
340
340
|
line-height: var(--ft-chip-internal-content-height);
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -346,8 +346,8 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
346
346
|
|
|
347
347
|
.ft-chip--dense {
|
|
348
348
|
--ft-chip-internal-icon-padding: 3px;
|
|
349
|
-
--ft-chip-internal-vertical-padding: ${
|
|
350
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
349
|
+
--ft-chip-internal-vertical-padding: ${Pi};
|
|
350
|
+
--ft-chip-internal-horizontal-padding: ${Li};
|
|
351
351
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
352
352
|
}
|
|
353
353
|
|
|
@@ -359,7 +359,7 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
359
359
|
cursor: default;
|
|
360
360
|
pointer-events: none;
|
|
361
361
|
filter: grayscale(1);
|
|
362
|
-
opacity: ${
|
|
362
|
+
opacity: ${Wi.opacityDisabled};
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.ft-chip--highlighted {
|
|
@@ -436,7 +436,7 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
436
436
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
437
437
|
order: -1;
|
|
438
438
|
}
|
|
439
|
-
`];var
|
|
439
|
+
`];var Hi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class qi extends CustomEvent{constructor(){super("icon-click")}}class Xi extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
|
|
440
440
|
<div class="${n.classMap(t)}"
|
|
441
441
|
aria-label="${this.getLabel()}"
|
|
442
442
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -455,17 +455,17 @@ const P=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
455
455
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
456
456
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
457
457
|
</div>
|
|
458
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new qi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new qi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}
|
|
458
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new qi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new qi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Xi.elementDefinitions={"ft-ripple":Bi,"ft-typography":ci,"ft-icon":Zi},Xi.styles=Gi,Hi([o.property({type:Boolean})],Xi.prototype,"highlighted",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"removable",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"clickable",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"iconClickable",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"multiLine",void 0),Hi([o.property({type:String})],Xi.prototype,"label",void 0),Hi([o.property({type:String})],Xi.prototype,"icon",void 0),Hi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),Hi([o.query("ft-typography slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Xi);var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ji extends h{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
|
|
459
459
|
<ft-tooltip text="${this.tooltipText}">
|
|
460
460
|
<ft-chip>
|
|
461
461
|
${this.renderContent()}
|
|
462
462
|
</ft-chip>
|
|
463
463
|
</ft-tooltip>
|
|
464
464
|
${this.hideIfEmpty()}
|
|
465
|
-
`}renderContent(){return this.metadata?e.html`${this.valueText}`:this.
|
|
465
|
+
`}renderContent(){return this.metadata?e.html`${this.valueText}`:this.editorMode?this.key?e.html`no value for ${this.key}`:e.html`no metadata selected`:e.nothing}hideIfEmpty(){return this.editorMode||this.metadata?e.nothing:e.html`
|
|
466
466
|
<style>
|
|
467
467
|
:host {
|
|
468
468
|
display: none !important;
|
|
469
469
|
}
|
|
470
470
|
</style>
|
|
471
|
-
`}get metadata(){var t,i;return null===(i=null===(t=this.map)||void 0===t?void 0:t.metadata)||void 0===i?void 0:i.find((t=>t.key==this.key))}get valueText(){var t;let i=(null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))||"";return this.maxLength?(null==i?void 0:i.substring(0,this.maxLength))+"...":i}get tooltipText(){return this.metadata?`${this.key}: ${this.valueText}`:""}}
|
|
471
|
+
`}get metadata(){var t,i;return null===(i=null===(t=this.map)||void 0===t?void 0:t.metadata)||void 0===i?void 0:i.find((t=>t.key==this.key))}get valueText(){var t;let i=(null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))||"";return this.maxLength?(null==i?void 0:i.substring(0,this.maxLength))+"...":i}get tooltipText(){return this.metadata?`${this.key}: ${this.valueText}`:""}}Ji.elementDefinitions={"ft-tooltip":$i,"ft-chip":Xi},Ji.styles=r,Yi([o.property()],Ji.prototype,"key",void 0),Yi([o.property({attribute:"max-length",type:Number})],Ji.prototype,"maxLength",void 0),Yi([o.property({attribute:!1})],Ji.prototype,"editorMode",void 0),Yi([i.redux()],Ji.prototype,"map",void 0),i.customElement("ft-reader-metadata")(Ji),t.FtReaderMetadata=Ji,t.FtReaderMetadataCssVariables={},t.styles=r,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -39,7 +39,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};function c(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,n;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!c(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(n=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,n[o]))return!1;for(o=e;0!=o--;){var r=n[o];if(!c(t[r],i[r]))return!1}return!0}return t!=t&&i!=i}
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};function c(t,i){try{return function(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,n;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!c(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(n=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,n[o]))return!1;for(o=e;0!=o--;){var r=n[o];if(!c(t[r],i[r]))return!1}return!0}return t!=t&&i!=i}(t,i)}catch(t){return!1}}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
@@ -55,19 +55,19 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var N;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:C}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,
|
|
58
|
+
var N;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:C}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,U=`<${z}>`,F=document,j=(t="")=>F.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,P=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,D=/"/g,W=/^(?:script|style|textarea|title)$/i,K=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=F.createTreeWalker(F,129,null,!1),q=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=T;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===T?"!--"===l[1]?s=L:void 0!==l[1]?s=P:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=I):void 0!==l[3]&&(s=I):s===I?">"===l[0]?(s=null!=n?n:T,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?I:'"'===l[3]?D:_):s===D||s===_?s=I:s===L||s===P?s=T:(s=I,n=void 0);const p=s===I&&t[i+1].startsWith("/>")?" ":"";r+=s===T?e+U:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+M+p):e+M+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class X{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=q(t,i);if(this.el=X.createElement(l,e),J.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=J.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(M)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(M),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?it:"?"===i[1]?ot:"@"===i[1]?nt:tt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(M),i=t.length-1;if(i>0){o.textContent=E?E.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],j()),J.nextNode(),a.push({type:2,index:++n});o.append(t[i],j())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function Y(t,i,e=t,o){var n,r,s,a;if(i===H)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=Y(t,l._$AS(t,i.values),l,o)),i}class G{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:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);J.currentNode=n;let r=J.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new Q(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new rt(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=J.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Q{constructor(t,i,e,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(n=null==o?void 0:o.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._$C_}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=Y(this,t,i),A(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==H&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==Z&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new G(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new X(t)),i}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new Q(this.j(j()),this.j(j()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class tt{constructor(t,i,e,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=Y(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Y(this,o[e+s],i,s),a===H&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends tt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Z?void 0:t}}const et=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Z?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Y(this,t,i,0))&&void 0!==e?e:Z)===H)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const st=window.litHtmlPolyfillSupport;
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var at,lt;null==st||st(X,Q),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.7");class ht extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Q(i.insertBefore(j(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return
|
|
64
|
+
var at,lt;null==st||st(X,Q),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.7");class ht extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Q(i.insertBefore(j(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}ht.finalized=!0,ht._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ht});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class pt{static create(t,i,e){let o=t=>v(null!=t?t:e),n=y`var(${v(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${v(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=y`var(${v(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${v(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):v(null!=i?i:t.defaultValue),o=y`var(${v(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${v(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function ft(t,i){return v(`${t.name}: ${i}`)}const dt={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:pt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:pt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:pt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:pt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:pt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:pt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:pt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:pt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:pt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2021 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/var ut=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),
|
|
70
|
-
${t.map((t=>
|
|
69
|
+
*/var ut=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class vt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(n,this.constructor.elementStyles),n}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
|
|
70
|
+
${t.map((t=>K`
|
|
71
71
|
<style>${t}</style>
|
|
72
72
|
`))}
|
|
73
73
|
${this.getTemplate()}
|
|
@@ -102,22 +102,22 @@ var at,lt;null==st||st(X,Q),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N
|
|
|
102
102
|
* Copyright 2020 Google LLC
|
|
103
103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
104
|
*/
|
|
105
|
-
const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void 0:t._$litStatic$},Et=t=>({_$litStatic$:t,r:Ct}),Rt=new Map,Mt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Nt(r));)l+=n+i[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Rt.get(t))&&(s.raw=s,Rt.set(t,i=s)),e=a}return t(i,...e)})(
|
|
105
|
+
const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void 0:t._$litStatic$},Et=t=>({_$litStatic$:t,r:Ct}),Rt=new Map,Mt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Nt(r));)l+=n+i[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Rt.get(t))&&(s.raw=s,Rt.set(t,i=s)),e=a}return t(i,...e)})(K);var zt;!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"}(zt||(zt={}));const Ut=pt.extend("--ft-typography-font-family",dt.titleFont),Ft=pt.extend("--ft-typography-font-family",dt.contentFont),jt={fontFamily:Ft,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},At=pt.extend("--ft-typography-title-font-family",Ut),Bt=pt.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Tt=pt.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),Lt=pt.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Pt=pt.extend("--ft-typography-title-line-height",jt.lineHeight,"1.2"),It=pt.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),_t=pt.extend("--ft-typography-title-dense-font-family",Ut),Dt=pt.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Wt=pt.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Kt=pt.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Ht=pt.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"1.7"),Zt=pt.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Vt=pt.extend("--ft-typography-subtitle1-font-family",Ft),Jt=pt.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),qt=pt.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),Xt=pt.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),Yt=pt.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"1.5"),Gt=pt.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),Qt=pt.extend("--ft-typography-subtitle2-font-family",Ft),ti=pt.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),ii=pt.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),ei=pt.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),oi=pt.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"1.7"),ni=pt.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ri=pt.extend("--ft-typography-body1-font-family",Ft),si=pt.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),ai=pt.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),li=pt.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),hi=pt.extend("--ft-typography-body1-line-height",jt.lineHeight,"1.5"),ci=pt.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit"),pi={fontFamily:pt.extend("--ft-typography-body2-font-family",Ft),fontSize:pt.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),fontWeight:pt.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),letterSpacing:pt.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),lineHeight:pt.extend("--ft-typography-body2-line-height",jt.lineHeight,"1.4"),textTransform:pt.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit")},fi=pt.extend("--ft-typography-caption-font-family",Ft),di=pt.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),ui=pt.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),vi=pt.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),yi=pt.extend("--ft-typography-caption-line-height",jt.lineHeight,"1.33"),gi=pt.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit"),xi=pt.extend("--ft-typography-breadcrumb-font-family",Ft),bi=pt.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),mi=pt.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),wi=pt.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),$i=pt.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"1.6"),Oi=pt.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),ki=pt.extend("--ft-typography-overline-font-family",Ft),Si=pt.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),Ci=pt.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),Ni=pt.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),Ei=pt.extend("--ft-typography-overline-line-height",jt.lineHeight,"1.6"),Ri=pt.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),Mi=pt.extend("--ft-typography-button-font-family",Ft),zi=pt.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),Ui=pt.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),Fi=pt.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),ji=pt.extend("--ft-typography-button-line-height",jt.lineHeight,"1.15"),Ai=pt.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),Bi=y`
|
|
106
106
|
.ft-typography--title {
|
|
107
|
-
font-family: ${
|
|
108
|
-
font-size: ${
|
|
109
|
-
font-weight: ${
|
|
107
|
+
font-family: ${At};
|
|
108
|
+
font-size: ${Bt};
|
|
109
|
+
font-weight: ${Tt};
|
|
110
110
|
letter-spacing: ${Lt};
|
|
111
111
|
line-height: ${Pt};
|
|
112
112
|
text-transform: ${It};
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,Ti=y`
|
|
115
115
|
.ft-typography--title-dense {
|
|
116
116
|
font-family: ${_t};
|
|
117
117
|
font-size: ${Dt};
|
|
118
118
|
font-weight: ${Wt};
|
|
119
|
-
letter-spacing: ${
|
|
120
|
-
line-height: ${
|
|
119
|
+
letter-spacing: ${Kt};
|
|
120
|
+
line-height: ${Ht};
|
|
121
121
|
text-transform: ${Zt};
|
|
122
122
|
}
|
|
123
123
|
`,Li=y`
|
|
@@ -175,7 +175,7 @@ const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
175
175
|
line-height: ${$i};
|
|
176
176
|
text-transform: ${Oi};
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,Ki=y`
|
|
179
179
|
.ft-typography--overline {
|
|
180
180
|
font-family: ${ki};
|
|
181
181
|
font-size: ${Si};
|
|
@@ -184,14 +184,14 @@ const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
184
184
|
line-height: ${Ei};
|
|
185
185
|
text-transform: ${Ri};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Hi=y`
|
|
188
188
|
.ft-typography--button {
|
|
189
189
|
font-family: ${Mi};
|
|
190
190
|
font-size: ${zi};
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
191
|
+
font-weight: ${Ui};
|
|
192
|
+
letter-spacing: ${Fi};
|
|
193
193
|
line-height: ${ji};
|
|
194
|
-
text-transform: ${
|
|
194
|
+
text-transform: ${Ai};
|
|
195
195
|
}
|
|
196
196
|
`,Zi=y`
|
|
197
197
|
.ft-typography {
|
|
@@ -204,7 +204,7 @@ const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
204
204
|
</${Et(this.element)}>
|
|
205
205
|
`:Mt`
|
|
206
206
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
207
|
-
`}}Ji.styles=[
|
|
207
|
+
`}}Ji.styles=[Bi,Ti,Li,Pi,Ii,_i,Di,Wi,Ki,Hi,Zi],Vi([o()],Ji.prototype,"element",void 0),Vi([o()],Ji.prototype,"variant",void 0),h("ft-typography")(Ji);const qi=pt.create("--ft-tooltip-distance","SIZE","4px"),Xi=pt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Yi=pt.create("--ft-tooltip-background-color","COLOR","#666666"),Gi=pt.create("--ft-tooltip-z-index","NUMBER","1"),Qi=pt.external(dt.borderRadiusS,"Design system"),te=pt.create("--ft-tooltip-max-width","SIZE","150px"),ie=y`
|
|
208
208
|
.ft-tooltip--container {
|
|
209
209
|
display: block;
|
|
210
210
|
position: relative;
|
|
@@ -236,7 +236,7 @@ const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
236
236
|
position: relative;
|
|
237
237
|
word-break: break-word;
|
|
238
238
|
}
|
|
239
|
-
`;var ee=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oe extends vt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return
|
|
239
|
+
`;var ee=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oe extends vt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return K`
|
|
240
240
|
<div part="container"
|
|
241
241
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
242
242
|
@mouseenter=${this.onHover}
|
|
@@ -269,7 +269,7 @@ const ne=1,re=2,se=t=>(...i)=>({_$litDirective$:t,values:i});class ae{constructo
|
|
|
269
269
|
* @license
|
|
270
270
|
* Copyright 2018 Google LLC
|
|
271
271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
272
|
-
*/const le=se(class extends ae{constructor(t){var i;if(super(t),t.type!==ne||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return
|
|
272
|
+
*/const le=se(class extends ae{constructor(t){var i;if(super(t),t.type!==ne||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return H}}),he=pt.extend("--ft-ripple-color",dt.colorContent),ce={color:he,backgroundColor:pt.extend("--ft-ripple-background-color",he),opacityContentOnSurfacePressed:pt.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(dt.opacityContentOnSurfaceSelected,"Design system")},pe=pt.extend("--ft-ripple-color",dt.colorPrimary),fe=pe,de=pt.extend("--ft-ripple-background-color",pe),ue=pt.extend("--ft-ripple-color",dt.colorSecondary),ve=ue,ye=pt.extend("--ft-ripple-background-color",ue),ge=y`
|
|
273
273
|
:host {
|
|
274
274
|
display: contents;
|
|
275
275
|
}
|
|
@@ -358,7 +358,7 @@ const ne=1,re=2,se=t=>(...i)=>({_$litDirective$:t,values:i});class ae{constructo
|
|
|
358
358
|
opacity: ${ce.opacityContentOnSurfacePressed};
|
|
359
359
|
transform: translate(-50%, -50%) scale(1);
|
|
360
360
|
}
|
|
361
|
-
`;var xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class be extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return
|
|
361
|
+
`;var xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class be extends vt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return K`
|
|
362
362
|
<style>
|
|
363
363
|
.ft-ripple .ft-ripple--effect,
|
|
364
364
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -381,7 +381,7 @@ const ne=1,re=2,se=t=>(...i)=>({_$litDirective$:t,values:i});class ae{constructo
|
|
|
381
381
|
* Copyright 2017 Google LLC
|
|
382
382
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
383
383
|
*/
|
|
384
|
-
class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===
|
|
384
|
+
class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}me.directiveName="unsafeHTML",me.resultType=1;const we=se(me);var $e,Oe;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}($e||($e={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Oe||(Oe={})),new Map([...["abw"].map((t=>[t,Oe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Oe.AUDIO])),...["avi"].map((t=>[t,Oe.AVI])),...["chm","xhs"].map((t=>[t,Oe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Oe.CODE])),...["csv"].map((t=>[t,Oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oe.DITA])),...["epub"].map((t=>[t,Oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oe.EXCEL])),...["flac"].map((t=>[t,Oe.FLAC])),...["gif"].map((t=>[t,Oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oe.JPEG])),...["json"].map((t=>[t,Oe.JSON])),...["m4a","m4p"].map((t=>[t,Oe.M4A])),...["mov","qt"].map((t=>[t,Oe.MOV])),...["mp3"].map((t=>[t,Oe.MP3])),...["mp4","m4v"].map((t=>[t,Oe.MP4])),...["ogg","oga"].map((t=>[t,Oe.OGG])),...["pdf","ps"].map((t=>[t,Oe.PDF])),...["png"].map((t=>[t,Oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oe.POWERPOINT])),...["rar"].map((t=>[t,Oe.RAR])),...["stp"].map((t=>[t,Oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Oe.VIDEO])),...["wav"].map((t=>[t,Oe.WAV])),...["wma"].map((t=>[t,Oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oe.YAML])),...["zip"].map((t=>[t,Oe.ZIP]))]);const ke={size:pt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:pt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Se=y`
|
|
385
385
|
:host {
|
|
386
386
|
display: inline-block;
|
|
387
387
|
}
|
|
@@ -418,12 +418,12 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
418
418
|
.ft-icon--material {
|
|
419
419
|
font-family: ${ke.materialFontFamily}, "Material Icons", sans-serif;
|
|
420
420
|
}
|
|
421
|
-
`;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ne=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ee extends vt{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return
|
|
421
|
+
`;var Ce;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ce||(Ce={}));var Ne=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ee extends vt{constructor(){super(...arguments),this.variant=Ce.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return K`
|
|
422
422
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
423
423
|
${we(this.resolvedIcon)}
|
|
424
424
|
<slot ?hidden=${t}></slot>
|
|
425
425
|
</i>
|
|
426
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ce.file_format:this.resolvedIcon=null!==(t=Oe[e.toUpperCase()])&&void 0!==t?t:e;break;case Ce.fluid_topics:this.resolvedIcon=null!==(i=$e[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ee.elementDefinitions={},Ee.styles=Se,Ne([o()],Ee.prototype,"variant",void 0),Ne([o()],Ee.prototype,"value",void 0),Ne([n()],Ee.prototype,"resolvedIcon",void 0),Ne([s("slot")],Ee.prototype,"slottedContent",void 0),h("ft-icon")(Ee);const Re=pt.extend("--ft-chip-color",dt.colorOnSurface),Me={backgroundColor:pt.extend("--ft-chip-background-color",dt.colorSurface),color:Re,fontSize:pt.extend("--ft-chip-font-size",pi.fontSize),iconSize:pt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:pt.extend("--ft-chip-ripple-color",Re),horizontalPadding:pt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:pt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:pt.external(dt.colorOutline,"Design system"),opacityDisabled:pt.external(dt.colorOpacityDisabled,"Design system")},ze=pt.extend("--ft-chip-highlighted-color",pt.extend("--ft-chip-color",dt.colorOnPrimary)),
|
|
426
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ce.file_format:this.resolvedIcon=null!==(t=Oe[e.toUpperCase()])&&void 0!==t?t:e;break;case Ce.fluid_topics:this.resolvedIcon=null!==(i=$e[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ee.elementDefinitions={},Ee.styles=Se,Ne([o()],Ee.prototype,"variant",void 0),Ne([o()],Ee.prototype,"value",void 0),Ne([n()],Ee.prototype,"resolvedIcon",void 0),Ne([s("slot")],Ee.prototype,"slottedContent",void 0),h("ft-icon")(Ee);const Re=pt.extend("--ft-chip-color",dt.colorOnSurface),Me={backgroundColor:pt.extend("--ft-chip-background-color",dt.colorSurface),color:Re,fontSize:pt.extend("--ft-chip-font-size",pi.fontSize),iconSize:pt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:pt.extend("--ft-chip-ripple-color",Re),horizontalPadding:pt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:pt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:pt.external(dt.colorOutline,"Design system"),opacityDisabled:pt.external(dt.colorOpacityDisabled,"Design system")},ze=pt.extend("--ft-chip-highlighted-color",pt.extend("--ft-chip-color",dt.colorOnPrimary)),Ue={backgroundColor:pt.extend("--ft-chip-highlighted-background-color",pt.extend("--ft-chip-background-color",dt.colorPrimary)),color:ze,rippleColor:pt.extend("--ft-chip-highlighted-ripple-color",ze)},Fe=pt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=pt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ae=[yt,y`
|
|
427
427
|
:host {
|
|
428
428
|
display: inline-block;
|
|
429
429
|
max-width: 100%;
|
|
@@ -464,7 +464,7 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
464
464
|
.ft-chip--dense {
|
|
465
465
|
--ft-chip-internal-icon-padding: 3px;
|
|
466
466
|
--ft-chip-internal-vertical-padding: ${je};
|
|
467
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
467
|
+
--ft-chip-internal-horizontal-padding: ${Fe};
|
|
468
468
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
469
469
|
}
|
|
470
470
|
|
|
@@ -482,9 +482,9 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
482
482
|
.ft-chip--highlighted {
|
|
483
483
|
border: none;
|
|
484
484
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
485
|
-
background-color: ${
|
|
486
|
-
${ft(ce.color,
|
|
487
|
-
color: ${
|
|
485
|
+
background-color: ${Ue.backgroundColor};
|
|
486
|
+
${ft(ce.color,Ue.rippleColor)};
|
|
487
|
+
color: ${Ue.color};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-chip--clickable {
|
|
@@ -553,7 +553,7 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
553
553
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
554
554
|
order: -1;
|
|
555
555
|
}
|
|
556
|
-
`];var
|
|
556
|
+
`];var Be=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Te extends CustomEvent{constructor(){super("icon-click")}}class Le extends vt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":wt};return K`
|
|
557
557
|
<div class="${le(t)}"
|
|
558
558
|
aria-label="${this.getLabel()}"
|
|
559
559
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -564,7 +564,7 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
564
564
|
</ft-typography>
|
|
565
565
|
${this.internalIcon?this.renderIcon():null}
|
|
566
566
|
</div>
|
|
567
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return
|
|
567
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return K`
|
|
568
568
|
<div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
|
|
569
569
|
tabindex="${this.interactionsOnIcon?0:-1}"
|
|
570
570
|
@click=${this.onIconClick}
|
|
@@ -572,17 +572,17 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
572
572
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
573
573
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
574
574
|
</div>
|
|
575
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
575
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Te))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Te))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Le.elementDefinitions={"ft-ripple":be,"ft-typography":Ji,"ft-icon":Ee},Le.styles=Ae,Be([o({type:Boolean})],Le.prototype,"highlighted",void 0),Be([o({type:Boolean})],Le.prototype,"removable",void 0),Be([o({type:Boolean})],Le.prototype,"disabled",void 0),Be([o({type:Boolean})],Le.prototype,"clickable",void 0),Be([o({type:Boolean})],Le.prototype,"iconClickable",void 0),Be([o({type:Boolean})],Le.prototype,"dense",void 0),Be([o({type:Boolean})],Le.prototype,"multiLine",void 0),Be([o({type:String})],Le.prototype,"label",void 0),Be([o({type:String})],Le.prototype,"icon",void 0),Be([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Be([s("ft-typography slot")],Le.prototype,"slottedContent",void 0),h("ft-chip")(Le);var Pe,Ie,_e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class De extends St{constructor(){super(...arguments),this.editorMode=!1}render(){return K`
|
|
576
576
|
<ft-tooltip text="${this.tooltipText}">
|
|
577
577
|
<ft-chip>
|
|
578
578
|
${this.renderContent()}
|
|
579
579
|
</ft-chip>
|
|
580
580
|
</ft-tooltip>
|
|
581
581
|
${this.hideIfEmpty()}
|
|
582
|
-
`}renderContent(){return this.metadata?
|
|
582
|
+
`}renderContent(){return this.metadata?K`${this.valueText}`:this.editorMode?this.key?K`no value for ${this.key}`:K`no metadata selected`:Z}hideIfEmpty(){return this.editorMode||this.metadata?Z:K`
|
|
583
583
|
<style>
|
|
584
584
|
:host {
|
|
585
585
|
display: none !important;
|
|
586
586
|
}
|
|
587
587
|
</style>
|
|
588
|
-
`}get metadata(){var t,i;return null===(i=null===(t=this.map)||void 0===t?void 0:t.metadata)||void 0===i?void 0:i.find((t=>t.key==this.key))}get valueText(){var t;let i=(null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))||"";return this.maxLength?(null==i?void 0:i.substring(0,this.maxLength))+"...":i}get tooltipText(){return this.metadata?`${this.key}: ${this.valueText}`:""}}De.elementDefinitions={"ft-tooltip":oe,"ft-chip":Le},De.styles=$t,_e([o()],De.prototype,"key",void 0),_e([o({attribute:"max-length",type:Number})],De.prototype,"maxLength",void 0),_e([o({attribute:!1})],De.prototype,"
|
|
588
|
+
`}get metadata(){var t,i;return null===(i=null===(t=this.map)||void 0===t?void 0:t.metadata)||void 0===i?void 0:i.find((t=>t.key==this.key))}get valueText(){var t;let i=(null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))||"";return this.maxLength?(null==i?void 0:i.substring(0,this.maxLength))+"...":i}get tooltipText(){return this.metadata?`${this.key}: ${this.valueText}`:""}}De.elementDefinitions={"ft-tooltip":oe,"ft-chip":Le},De.styles=$t,_e([o()],De.prototype,"key",void 0),_e([o({attribute:"max-length",type:Number})],De.prototype,"maxLength",void 0),_e([o({attribute:!1})],De.prototype,"editorMode",void 0),_e([(t,i)=>{t.constructor.createProperty(i,{attribute:!1,hasChanged:null!=Ie?Ie:(t,i)=>!c(t,i)});const e=t;e.reduxProperties=e.reduxProperties||new Map,e.reduxProperties.set(i,null!=Pe?Pe:t=>t[i])}],De.prototype,"map",void 0),h("ft-reader-metadata")(De),t.FtReaderMetadata=De,t.FtReaderMetadataCssVariables={},t.styles=$t,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-metadata",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.19",
|
|
4
4
|
"description": "Metadata for integrated reader",
|
|
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-chip": "0.3.
|
|
23
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "0.3.19",
|
|
23
|
+
"@fluid-topics/ft-tooltip": "0.3.19",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.19",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "675c2ceb687246109347352e64772e8ebad2cc17"
|
|
28
28
|
}
|