@fluid-topics/ft-reader-metadata 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-metadata.min.js +28 -16
- package/package.json +5 -5
|
@@ -49,7 +49,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/;var b;const m=window.trustedTypes,w=m?m.emptyScript:"",$=window.reactiveElementPolyfillSupport,O={toAttribute(t,i){switch(i){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},
|
|
52
|
+
*/;var b;const m=window.trustedTypes,w=m?m.emptyScript:"",$=window.reactiveElementPolyfillSupport,O={toAttribute(t,i){switch(i){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},k=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:k};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(x(t))}else void 0!==t&&i.push(x(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=S){var o,n;const r=this.constructor._$Ep(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:O.toAttribute)(i,e.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,i){var e,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(e=null==s?void 0:s.fromAttribute)&&void 0!==e?e:"function"==typeof s?s:null)&&void 0!==o?o:O.fromAttribute;this._$El=r,this[r]=a(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
@@ -80,17 +80,29 @@ var at,lt;null==st||st(X,Q),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N
|
|
|
80
80
|
-ms-user-select: none;
|
|
81
81
|
user-select: none;
|
|
82
82
|
}
|
|
83
|
+
`;y`
|
|
84
|
+
.ft-word-wrap {
|
|
85
|
+
white-space: normal;
|
|
86
|
+
word-wrap: break-word;
|
|
87
|
+
-ms-word-break: break-all;
|
|
88
|
+
word-break: break-all;
|
|
89
|
+
word-break: break-word;
|
|
90
|
+
-ms-hyphens: auto;
|
|
91
|
+
-moz-hyphens: auto;
|
|
92
|
+
-webkit-hyphens: auto;
|
|
93
|
+
hyphens: auto
|
|
94
|
+
}
|
|
83
95
|
`;class gt extends vt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((i,e)=>{this[e]=i(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var xt,bt,mt;const wt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(bt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===bt?void 0:bt.toString())&&void 0!==mt?mt:""),$t=y`
|
|
84
96
|
:host {
|
|
85
97
|
display: inline-block;
|
|
86
98
|
}
|
|
87
|
-
`;var Ot=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
|
|
99
|
+
`;var Ot=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 kt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class St extends gt{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 kt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Ot([n()],St.prototype,"stateManager",void 0);
|
|
88
100
|
/**
|
|
89
101
|
* @license
|
|
90
102
|
* Copyright 2020 Google LLC
|
|
91
103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
104
|
*/
|
|
93
|
-
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)})(H);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 Ft=pt.extend("--ft-typography-font-family",dt.titleFont),Ut=pt.extend("--ft-typography-font-family",dt.contentFont),jt={fontFamily:Ut,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")},Tt=pt.extend("--ft-typography-title-font-family",Ft),At=pt.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Bt=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",Ft),Dt=pt.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Wt=pt.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Ht=pt.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Kt=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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),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"),
|
|
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)})(H);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 Ft=pt.extend("--ft-typography-font-family",dt.titleFont),Ut=pt.extend("--ft-typography-font-family",dt.contentFont),jt={fontFamily:Ut,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")},Tt=pt.extend("--ft-typography-title-font-family",Ft),At=pt.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Bt=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",Ft),Dt=pt.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Wt=pt.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Ht=pt.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Kt=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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),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",Ut),zi=pt.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),Fi=pt.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),Ui=pt.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),ji=pt.extend("--ft-typography-button-line-height",jt.lineHeight,"1.15"),Ti=pt.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),Ai=y`
|
|
94
106
|
.ft-typography--title {
|
|
95
107
|
font-family: ${Tt};
|
|
96
108
|
font-size: ${At};
|
|
@@ -165,8 +177,8 @@ const Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
165
177
|
}
|
|
166
178
|
`,Hi=y`
|
|
167
179
|
.ft-typography--overline {
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
180
|
+
font-family: ${ki};
|
|
181
|
+
font-size: ${Si};
|
|
170
182
|
font-weight: ${Ci};
|
|
171
183
|
letter-spacing: ${Ni};
|
|
172
184
|
line-height: ${Ei};
|
|
@@ -369,19 +381,19 @@ const ne=1,re=2,se=t=>(...i)=>({_$litDirective$:t,values:i});class ae{constructo
|
|
|
369
381
|
* Copyright 2017 Google LLC
|
|
370
382
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
371
383
|
*/
|
|
372
|
-
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===K)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
|
|
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===K)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`
|
|
373
385
|
:host {
|
|
374
386
|
display: inline-block;
|
|
375
387
|
}
|
|
376
388
|
|
|
377
389
|
:host, i.ft-icon {
|
|
378
|
-
width: ${
|
|
379
|
-
height: ${
|
|
390
|
+
width: ${ke.size};
|
|
391
|
+
height: ${ke.size};
|
|
380
392
|
text-align: center;
|
|
381
393
|
}
|
|
382
394
|
|
|
383
395
|
i.ft-icon {
|
|
384
|
-
font-size: ${
|
|
396
|
+
font-size: ${ke.size};
|
|
385
397
|
line-height: 1;
|
|
386
398
|
font-weight: normal;
|
|
387
399
|
text-transform: none;
|
|
@@ -392,26 +404,26 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
392
404
|
text-rendering: auto;
|
|
393
405
|
-webkit-font-smoothing: antialiased;
|
|
394
406
|
-moz-osx-font-smoothing: grayscale;
|
|
395
|
-
vertical-align: ${
|
|
407
|
+
vertical-align: ${ke.verticalAlign};
|
|
396
408
|
}
|
|
397
409
|
|
|
398
410
|
.ft-icon--fluid-topics {
|
|
399
|
-
font-family: ${
|
|
411
|
+
font-family: ${ke.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
400
412
|
}
|
|
401
413
|
|
|
402
414
|
.ft-icon--file-format {
|
|
403
|
-
font-family: ${
|
|
415
|
+
font-family: ${ke.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
404
416
|
}
|
|
405
417
|
|
|
406
418
|
.ft-icon--material {
|
|
407
|
-
font-family: ${
|
|
419
|
+
font-family: ${ke.materialFontFamily}, "Material Icons", sans-serif;
|
|
408
420
|
}
|
|
409
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 H`
|
|
410
422
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
411
423
|
${we(this.resolvedIcon)}
|
|
412
424
|
<slot ?hidden=${t}></slot>
|
|
413
425
|
</i>
|
|
414
|
-
`}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=
|
|
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)),Fe={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)},Ue=pt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=pt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Te=[yt,y`
|
|
415
427
|
:host {
|
|
416
428
|
display: inline-block;
|
|
417
429
|
max-width: 100%;
|
|
@@ -430,7 +442,7 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
430
442
|
|
|
431
443
|
--ft-chip-internal-font-size: ${Me.fontSize};
|
|
432
444
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
433
|
-
${ft(
|
|
445
|
+
${ft(ke.size,Me.iconSize)};
|
|
434
446
|
--ft-chip-internal-vertical-padding: ${Me.verticalPadding};
|
|
435
447
|
--ft-chip-internal-horizontal-padding: ${Me.horizontalPadding};
|
|
436
448
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -560,7 +572,7 @@ class me extends ae{constructor(t){if(super(t),this.it=Z,t.type!==re)throw Error
|
|
|
560
572
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
561
573
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
562
574
|
</div>
|
|
563
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Be))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Be))}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=Te,Ae([o({type:Boolean})],Le.prototype,"highlighted",void 0),Ae([o({type:Boolean})],Le.prototype,"removable",void 0),Ae([o({type:Boolean})],Le.prototype,"disabled",void 0),Ae([o({type:Boolean})],Le.prototype,"clickable",void 0),Ae([o({type:Boolean})],Le.prototype,"iconClickable",void 0),Ae([o({type:Boolean})],Le.prototype,"dense",void 0),Ae([o({type:Boolean})],Le.prototype,"multiLine",void 0),Ae([o({type:String})],Le.prototype,"label",void 0),Ae([o({type:String})],Le.prototype,"icon",void 0),Ae([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Ae([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
|
|
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 Be))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Be))}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=Te,Ae([o({type:Boolean})],Le.prototype,"highlighted",void 0),Ae([o({type:Boolean})],Le.prototype,"removable",void 0),Ae([o({type:Boolean})],Le.prototype,"disabled",void 0),Ae([o({type:Boolean})],Le.prototype,"clickable",void 0),Ae([o({type:Boolean})],Le.prototype,"iconClickable",void 0),Ae([o({type:Boolean})],Le.prototype,"dense",void 0),Ae([o({type:Boolean})],Le.prototype,"multiLine",void 0),Ae([o({type:String})],Le.prototype,"label",void 0),Ae([o({type:String})],Le.prototype,"icon",void 0),Ae([o({type:Boolean})],Le.prototype,"trailingIcon",void 0),Ae([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.keepVisible=!1}render(){return H`
|
|
564
576
|
<ft-tooltip text="${this.tooltipText}">
|
|
565
577
|
<ft-chip>
|
|
566
578
|
${this.renderContent()}
|
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.16",
|
|
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.16",
|
|
23
|
+
"@fluid-topics/ft-tooltip": "0.3.16",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.16",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
|
|
28
28
|
}
|