@fluid-topics/ft-search-result-metadata 1.0.0-alpha.0 → 1.0.0
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.
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
!function(t,i,e,o,s
|
|
2
|
-
`,
|
|
3
|
-
`,
|
|
1
|
+
!function(t,i,e,o,n,s){const r=e.css`
|
|
2
|
+
`,a=e.css`
|
|
3
|
+
`,l=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class h{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=l.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?h.build(t):null!==(i=h.API)&&void 0!==i?i:h.API=h.build()}static await(t){return new Promise((i=>{let e=h.get(t);if(e)i(e);else{const o=l.subscribe((()=>{e=h.get(t),e&&(o(),i(e))}))}}))}}var p;const c=Symbol("clearAfterUnitTest");class f{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[p]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=l.getState().uiLocale,l.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=l.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,s,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(s=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==s?s:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}p=c,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new f((async(t,i)=>(await h.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new f((async(t,i)=>(await h.await()).getCustomMessageContext(t,i))));const d=window.FluidTopicsI18nService,u=window.FluidTopicsCustomI18nService;var g=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 v extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>h.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
4
4
|
<slot></slot>
|
|
5
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
6
|
-
`;var S=function(t,i,e,o){for(var s
|
|
5
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&l.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&l.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&l.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&l.actions.setNoCustom(this.noCustom),t.has("editorMode")&&l.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&l.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&l.actions.setSession(this.session),t.has("availableUiLocales")&&l.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>d.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}v.elementDefinitions={},v.styles=a,g([o.property()],v.prototype,"baseUrl",void 0),g([o.property()],v.prototype,"apiIntegrationIdentifier",void 0),g([o.property()],v.prototype,"uiLocale",void 0),g([i.jsonProperty([])],v.prototype,"availableUiLocales",void 0),g([o.property({type:Boolean})],v.prototype,"editorMode",void 0),g([o.property({type:Boolean})],v.prototype,"noCustom",void 0),g([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],v.prototype,"noCustomComponent",void 0),g([o.property({type:Boolean})],v.prototype,"withManualResources",void 0),g([i.jsonProperty([])],v.prototype,"messageContexts",void 0),g([i.jsonProperty(void 0)],v.prototype,"session",void 0),g([o.property({type:Object})],v.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(v);var x=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 b extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const y=Symbol("registerInterval");class m extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[y]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[y]):this.dispatchEvent(new b)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=y,x([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var $=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 w extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const k=Symbol("registerInterval");class z extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}connectedCallback(){super.connectedCallback(),this[k]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[k]):this.dispatchEvent(new w)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return i=k,$([o.property({attribute:!1})],e.prototype,"result",void 0),e}(m)){}const C=e.css`
|
|
6
|
+
`;var S=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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};const I=Symbol("i18nProperties"),O=Symbol("i18nUnsubs");function j(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?u:d}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[I])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[I])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[I]&&new Set([...this[I].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[O].has(t)||this[O].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[O].forEach((t=>t())),this[O].clear()}}return i=O,S([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class E extends(j(i.FtLitElement)){}class N extends(j(i.FtLitElementRedux)){}var B=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 U extends N{constructor(){super(),this.editorMode=!1,this.addStore(l)}render(){return this.key&&this.context?e.html`
|
|
7
7
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
8
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
8
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}U.elementDefinitions={},U.styles=C,B([i.redux()],U.prototype,"editorMode",void 0),B([o.property()],U.prototype,"context",void 0),B([o.property()],U.prototype,"key",void 0),B([i.jsonProperty([])],U.prototype,"args",void 0),B([o.property()],U.prototype,"defaultMessage",void 0);class M{static build(t){return new M(t)}static fromGwt(t){return new M(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>d.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(U);const T=M.build("designedSearchResultMetadata");
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
13
|
+
*/var A;const Z=window,L=Z.trustedTypes,F=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",R=`lit$${(Math.random()+"").slice(9)}$`,_="?"+R,D=`<${_}>`,W=document,K=()=>W.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,Y=/>/g,J=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,it=/^(?:script|style|textarea|title)$/i,et=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),ot=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),st=new WeakMap,rt=W.createTreeWalker(W,129,null,!1),at=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=q;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===q?"!--"===l[1]?r=X:void 0!==l[1]?r=Y:void 0!==l[2]?(it.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=J):void 0!==l[3]&&(r=J):r===J?">"===l[0]?(r=null!=n?n:q,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?J:'"'===l[3]?tt:Q):r===tt||r===Q?r=J:r===X||r===Y?r=q:(r=J,n=void 0);const c=r===J&&t[i+1].startsWith("/>")?" ":"";s+=r===q?e+D:h>=0?(o.push(a),e.slice(0,h)+P+e.slice(h)+R+c):e+R+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class lt{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=at(t,i);if(this.el=lt.createElement(l,e),rt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=rt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(P)||i.startsWith(R)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+P).split(R),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?dt:"?"===i[1]?gt:"@"===i[1]?vt:ft})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(it.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=L?L.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],K()),rt.nextNode(),a.push({type:2,index:++n});o.append(t[i],K())}}}else if(8===o.nodeType)if(o.data===_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:n}),t+=R.length-1}n++}}static createElement(t,i){const e=W.createElement("template");return e.innerHTML=t,e}}function ht(t,i,e=t,o){var n,s,r,a;if(i===ot)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=H(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=ht(t,l._$AS(t,i.values),l,o)),i}class pt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:W).importNode(e,!0);rt.currentNode=n;let s=rt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ct(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new xt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=rt.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class ct{constructor(t,i,e,o){var n;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=ht(this,t,i),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>G(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=lt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new pt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=st.get(t.strings);return void 0===i&&st.set(t.strings,i=new lt(t)),i}T(t){G(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 ct(this.k(K()),this.k(K()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ft{constructor(t,i,e,o,n){this.type=1,this._$AH=nt,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=nt}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=ht(this,t,i,0),s=!H(t)||t!==this._$AH&&t!==ot,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ht(this,o[e+r],i,r),a===ot&&(a=this._$AH[r]),s||(s=!H(a)||a!==this._$AH[r]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class dt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}}const ut=L?L.emptyScript:"";class gt extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,ut):this.element.removeAttribute(this.name)}}class vt extends ft{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=ht(this,t,i,0))&&void 0!==e?e:nt)===ot)return;const o=this._$AH,n=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==nt&&(o===nt||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 xt{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){ht(this,t)}}const bt=Z.litHtmlPolyfillSupport;null==bt||bt(lt,ct),(null!==(A=Z.litHtmlVersions)&&void 0!==A?A:Z.litHtmlVersions=[]).push("2.7.3");
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2020 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void 0:t._$litStatic$},$t=t=>({_$litStatic$:t,r:yt}),wt=new Map,kt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=mt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=wt.get(t))&&(r.raw=r,wt.set(t,i=r)),e=a}return t(i,...e)})(et);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 Ct=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),St=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),It={fontFamily:St,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")},Ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",Ct),jt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Ct),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",St),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",St),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),Yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",St),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),ei=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),oi=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit"),ni={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",St),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit")},si=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",St),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),hi=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),pi=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",St),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),gi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),vi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",St),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),$i=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),wi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),ki={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",St),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",It.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase")},zi=e.css`
|
|
20
20
|
.ft-typography--title {
|
|
21
|
-
font-family: ${
|
|
22
|
-
font-size: ${
|
|
23
|
-
font-weight: ${
|
|
24
|
-
letter-spacing: ${
|
|
25
|
-
line-height: ${
|
|
26
|
-
text-transform: ${
|
|
27
|
-
}
|
|
28
|
-
`,
|
|
21
|
+
font-family: ${Ot};
|
|
22
|
+
font-size: ${jt};
|
|
23
|
+
font-weight: ${Et};
|
|
24
|
+
letter-spacing: ${Nt};
|
|
25
|
+
line-height: ${Bt};
|
|
26
|
+
text-transform: ${Ut};
|
|
27
|
+
}
|
|
28
|
+
`,Ci=e.css`
|
|
29
29
|
.ft-typography--title-dense {
|
|
30
|
-
font-family: ${
|
|
30
|
+
font-family: ${Mt};
|
|
31
31
|
font-size: ${Tt};
|
|
32
|
-
font-weight: ${
|
|
33
|
-
letter-spacing: ${
|
|
32
|
+
font-weight: ${At};
|
|
33
|
+
letter-spacing: ${Zt};
|
|
34
34
|
line-height: ${Lt};
|
|
35
|
-
text-transform: ${
|
|
35
|
+
text-transform: ${Ft};
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,Si=e.css`
|
|
38
38
|
.ft-typography--subtitle1 {
|
|
39
|
-
font-family: ${
|
|
40
|
-
font-size: ${
|
|
41
|
-
font-weight: ${
|
|
42
|
-
letter-spacing: ${
|
|
43
|
-
line-height: ${
|
|
39
|
+
font-family: ${Pt};
|
|
40
|
+
font-size: ${Rt};
|
|
41
|
+
font-weight: ${_t};
|
|
42
|
+
letter-spacing: ${Dt};
|
|
43
|
+
line-height: ${Wt};
|
|
44
44
|
text-transform: ${Kt};
|
|
45
45
|
}
|
|
46
|
-
`,
|
|
46
|
+
`,Ii=e.css`
|
|
47
47
|
.ft-typography--subtitle2 {
|
|
48
|
-
font-family: ${
|
|
49
|
-
font-size: ${
|
|
50
|
-
font-weight: ${
|
|
51
|
-
letter-spacing: ${
|
|
48
|
+
font-family: ${Ht};
|
|
49
|
+
font-size: ${Gt};
|
|
50
|
+
font-weight: ${Vt};
|
|
51
|
+
letter-spacing: ${qt};
|
|
52
52
|
line-height: ${Xt};
|
|
53
53
|
text-transform: ${Yt};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
`,
|
|
56
|
+
`,Oi=e.css`
|
|
57
57
|
.ft-typography--body1 {
|
|
58
58
|
font-family: ${Jt};
|
|
59
59
|
font-size: ${Qt};
|
|
@@ -62,25 +62,25 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
62
62
|
line-height: ${ei};
|
|
63
63
|
text-transform: ${oi};
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`,ji=e.css`
|
|
66
66
|
.ft-typography--body2 {
|
|
67
|
-
font-family: ${
|
|
68
|
-
font-size: ${
|
|
69
|
-
font-weight: ${
|
|
70
|
-
letter-spacing: ${
|
|
71
|
-
line-height: ${
|
|
72
|
-
text-transform: ${
|
|
73
|
-
}
|
|
74
|
-
`,
|
|
67
|
+
font-family: ${ni.fontFamily};
|
|
68
|
+
font-size: ${ni.fontSize};
|
|
69
|
+
font-weight: ${ni.fontWeight};
|
|
70
|
+
letter-spacing: ${ni.letterSpacing};
|
|
71
|
+
line-height: ${ni.lineHeight};
|
|
72
|
+
text-transform: ${ni.textTransform};
|
|
73
|
+
}
|
|
74
|
+
`,Ei=e.css`
|
|
75
75
|
.ft-typography--caption {
|
|
76
|
-
font-family: ${
|
|
76
|
+
font-family: ${si};
|
|
77
77
|
font-size: ${ri};
|
|
78
|
-
font-weight: ${
|
|
79
|
-
letter-spacing: ${
|
|
78
|
+
font-weight: ${ai};
|
|
79
|
+
letter-spacing: ${li};
|
|
80
80
|
line-height: ${hi};
|
|
81
81
|
text-transform: ${pi};
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,Ni=e.css`
|
|
84
84
|
.ft-typography--breadcrumb {
|
|
85
85
|
font-family: ${ci};
|
|
86
86
|
font-size: ${fi};
|
|
@@ -89,36 +89,36 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
89
89
|
line-height: ${gi};
|
|
90
90
|
text-transform: ${vi};
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`,Bi=e.css`
|
|
93
93
|
.ft-typography--overline {
|
|
94
|
-
font-family: ${
|
|
95
|
-
font-size: ${
|
|
96
|
-
font-weight: ${
|
|
97
|
-
letter-spacing: ${
|
|
94
|
+
font-family: ${xi};
|
|
95
|
+
font-size: ${bi};
|
|
96
|
+
font-weight: ${yi};
|
|
97
|
+
letter-spacing: ${mi};
|
|
98
98
|
line-height: ${$i};
|
|
99
99
|
text-transform: ${wi};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Ui=e.css`
|
|
102
102
|
.ft-typography--button {
|
|
103
|
-
font-family: ${ki};
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
109
|
-
}
|
|
110
|
-
`,
|
|
103
|
+
font-family: ${ki.fontFamily};
|
|
104
|
+
font-size: ${ki.fontSize};
|
|
105
|
+
font-weight: ${ki.fontWeight};
|
|
106
|
+
letter-spacing: ${ki.letterSpacing};
|
|
107
|
+
line-height: ${ki.lineHeight};
|
|
108
|
+
text-transform: ${ki.textTransform};
|
|
109
|
+
}
|
|
110
|
+
`,Mi=e.css`
|
|
111
111
|
.ft-typography {
|
|
112
112
|
vertical-align: inherit;
|
|
113
113
|
}
|
|
114
|
-
`;var
|
|
114
|
+
`;var Ti=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Ai extends i.FtLitElement{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?kt`
|
|
115
115
|
<${$t(this.element)}
|
|
116
116
|
class="ft-typography ft-typography--${this.variant}">
|
|
117
117
|
<slot></slot>
|
|
118
118
|
</${$t(this.element)}>
|
|
119
119
|
`:kt`
|
|
120
120
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
121
|
-
`}}
|
|
121
|
+
`}}Ai.styles=[zi,Ci,Si,Ii,Oi,ji,Ei,Ni,Bi,Ui,Mi],Ti([o.property()],Ai.prototype,"element",void 0),Ti([o.property()],Ai.prototype,"variant",void 0),i.customElement("ft-typography")(Ai);const Zi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Li=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Fi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Pi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ri=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),_i=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Di=e.css`
|
|
122
122
|
.ft-tooltip--container {
|
|
123
123
|
display: block;
|
|
124
124
|
position: relative;
|
|
@@ -134,23 +134,23 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
134
134
|
box-sizing: border-box;
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
width: max-content;
|
|
137
|
-
max-width: ${
|
|
137
|
+
max-width: ${_i};
|
|
138
138
|
text-align: center;
|
|
139
139
|
padding: ${Zi};
|
|
140
|
-
z-index: ${
|
|
140
|
+
z-index: ${Pi};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-tooltip--content {
|
|
144
144
|
padding: 4px 8px;
|
|
145
|
-
border-radius: ${
|
|
146
|
-
background-color: ${
|
|
147
|
-
color: ${
|
|
145
|
+
border-radius: ${Ri};
|
|
146
|
+
background-color: ${Fi};
|
|
147
|
+
color: ${Li};
|
|
148
148
|
top: -500px;
|
|
149
149
|
left: -500px;
|
|
150
150
|
position: relative;
|
|
151
151
|
word-break: break-word;
|
|
152
152
|
}
|
|
153
|
-
`;var
|
|
153
|
+
`;var Wi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Ki extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
154
154
|
<div part="container"
|
|
155
155
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
156
156
|
@mouseenter=${this.onHover}
|
|
@@ -168,7 +168,7 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
168
168
|
</div>
|
|
169
169
|
</div>
|
|
170
170
|
</div>
|
|
171
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let
|
|
171
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${_i})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ki.elementDefinitions={"ft-typography":Ai},Ki.styles=Di,Wi([o.property()],Ki.prototype,"text",void 0),Wi([o.property({type:Boolean})],Ki.prototype,"manual",void 0),Wi([o.property({type:Boolean})],Ki.prototype,"inline",void 0),Wi([o.property({type:Number})],Ki.prototype,"delay",void 0),Wi([o.property()],Ki.prototype,"position",void 0),Wi([o.queryAssignedNodes("",!0)],Ki.prototype,"slotNodes",void 0),Wi([o.query(".ft-tooltip--container")],Ki.prototype,"container",void 0),Wi([o.query("slot")],Ki.prototype,"target",void 0),Wi([o.query(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Wi([o.query(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Wi([o.state()],Ki.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ki);const Hi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),Gi={color:Hi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",Hi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},Vi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),qi=Vi,Xi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Vi),Yi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Ji=Yi,Qi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Yi),te=e.css`
|
|
172
172
|
:host {
|
|
173
173
|
display: contents;
|
|
174
174
|
}
|
|
@@ -181,6 +181,7 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
181
181
|
|
|
182
182
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
183
183
|
overflow: hidden;
|
|
184
|
+
border-radius: ${Gi.borderRadius};
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
.ft-ripple .ft-ripple--background,
|
|
@@ -190,27 +191,27 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
.ft-ripple .ft-ripple--background {
|
|
193
|
-
background-color: ${
|
|
194
|
+
background-color: ${Gi.backgroundColor};
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
.ft-ripple .ft-ripple--effect {
|
|
197
|
-
background-color: ${
|
|
198
|
+
background-color: ${Gi.color};
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
201
|
-
background-color: ${
|
|
202
|
+
background-color: ${Qi};
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
205
|
-
background-color: ${
|
|
206
|
+
background-color: ${Ji};
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
209
|
-
background-color: ${
|
|
210
|
+
background-color: ${Xi};
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
213
|
-
background-color: ${
|
|
214
|
+
background-color: ${qi};
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
.ft-ripple .ft-ripple--background {
|
|
@@ -242,22 +243,22 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
242
243
|
}
|
|
243
244
|
|
|
244
245
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
245
|
-
opacity: ${
|
|
246
|
+
opacity: ${Gi.opacityContentOnSurfaceHover};
|
|
246
247
|
}
|
|
247
248
|
|
|
248
249
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
249
|
-
opacity: ${
|
|
250
|
+
opacity: ${Gi.opacityContentOnSurfaceSelected};
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
253
|
-
opacity: ${
|
|
254
|
+
opacity: ${Gi.opacityContentOnSurfaceFocused};
|
|
254
255
|
}
|
|
255
256
|
|
|
256
257
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
257
|
-
opacity: ${
|
|
258
|
+
opacity: ${Gi.opacityContentOnSurfacePressed};
|
|
258
259
|
transform: translate(-50%, -50%) scale(1);
|
|
259
260
|
}
|
|
260
|
-
`;var
|
|
261
|
+
`;var ie,ee,oe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 ne extends i.FtLitElement{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.Debouncer(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.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 e.html`
|
|
261
262
|
<style>
|
|
262
263
|
.ft-ripple .ft-ripple--effect,
|
|
263
264
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -270,11 +271,11 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
270
271
|
top: ${this.originY}px;
|
|
271
272
|
}
|
|
272
273
|
</style>
|
|
273
|
-
<div class="${
|
|
274
|
+
<div class="${n.classMap(t)}">
|
|
274
275
|
<div class="ft-ripple--background"></div>
|
|
275
276
|
<div class="ft-ripple--effect"></div>
|
|
276
277
|
</div>
|
|
277
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}he.elementDefinitions={},he.styles=ne,ae([o.property({type:Boolean})],he.prototype,"primary",void 0),ae([o.property({type:Boolean})],he.prototype,"secondary",void 0),ae([o.property({type:Boolean})],he.prototype,"unbounded",void 0),ae([o.property({type:Boolean})],he.prototype,"activated",void 0),ae([o.property({type:Boolean})],he.prototype,"selected",void 0),ae([o.property({type:Boolean})],he.prototype,"disabled",void 0),ae([o.state()],he.prototype,"hovered",void 0),ae([o.state()],he.prototype,"focused",void 0),ae([o.state()],he.prototype,"pressed",void 0),ae([o.state()],he.prototype,"rippling",void 0),ae([o.state()],he.prototype,"rippleSize",void 0),ae([o.state()],he.prototype,"originX",void 0),ae([o.state()],he.prototype,"originY",void 0),ae([o.query(".ft-ripple")],he.prototype,"ripple",void 0),ae([o.query(".ft-ripple--effect")],he.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(he),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",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=""}(re||(re={})),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=""}(le||(le={})),new Map([...["abw"].map((t=>[t,le.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,le.AUDIO])),...["avi"].map((t=>[t,le.AVI])),...["chm","xhs"].map((t=>[t,le.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,le.CODE])),...["csv"].map((t=>[t,le.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,le.DITA])),...["epub"].map((t=>[t,le.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,le.EXCEL])),...["flac"].map((t=>[t,le.FLAC])),...["gif"].map((t=>[t,le.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,le.GZIP])),...["html","htm","xhtml"].map((t=>[t,le.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,le.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,le.JPEG])),...["json"].map((t=>[t,le.JSON])),...["m4a","m4p"].map((t=>[t,le.M4A])),...["mov","qt"].map((t=>[t,le.MOV])),...["mp3"].map((t=>[t,le.MP3])),...["mp4","m4v"].map((t=>[t,le.MP4])),...["ogg","oga"].map((t=>[t,le.OGG])),...["pdf","ps"].map((t=>[t,le.PDF])),...["png"].map((t=>[t,le.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,le.POWERPOINT])),...["rar"].map((t=>[t,le.RAR])),...["stp"].map((t=>[t,le.STP])),...["txt","rtf","md","mdown"].map((t=>[t,le.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,le.VIDEO])),...["wav"].map((t=>[t,le.WAV])),...["wma"].map((t=>[t,le.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,le.WORD])),...["xml","xsl","rdf"].map((t=>[t,le.XML])),...["yaml","yml","x-yaml"].map((t=>[t,le.YAML])),...["zip"].map((t=>[t,le.ZIP]))]);const pe={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},ce=e.css`
|
|
278
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ne.elementDefinitions={},ne.styles=te,oe([o.property({type:Boolean})],ne.prototype,"primary",void 0),oe([o.property({type:Boolean})],ne.prototype,"secondary",void 0),oe([o.property({type:Boolean})],ne.prototype,"unbounded",void 0),oe([o.property({type:Boolean})],ne.prototype,"activated",void 0),oe([o.property({type:Boolean})],ne.prototype,"selected",void 0),oe([o.property({type:Boolean})],ne.prototype,"disabled",void 0),oe([o.state()],ne.prototype,"hovered",void 0),oe([o.state()],ne.prototype,"focused",void 0),oe([o.state()],ne.prototype,"pressed",void 0),oe([o.state()],ne.prototype,"rippling",void 0),oe([o.state()],ne.prototype,"rippleSize",void 0),oe([o.state()],ne.prototype,"originX",void 0),oe([o.state()],ne.prototype,"originY",void 0),oe([o.query(".ft-ripple")],ne.prototype,"ripple",void 0),oe([o.query(".ft-ripple--effect")],ne.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ne),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",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.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="",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=""}(ie||(ie={})),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=""}(ee||(ee={})),new Map([...["abw"].map((t=>[t,ee.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,ee.AUDIO])),...["avi"].map((t=>[t,ee.AVI])),...["chm","xhs"].map((t=>[t,ee.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,ee.CODE])),...["csv"].map((t=>[t,ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ee.DITA])),...["epub"].map((t=>[t,ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ee.EXCEL])),...["flac"].map((t=>[t,ee.FLAC])),...["gif"].map((t=>[t,ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,ee.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,ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ee.JPEG])),...["json"].map((t=>[t,ee.JSON])),...["m4a","m4p"].map((t=>[t,ee.M4A])),...["mov","qt"].map((t=>[t,ee.MOV])),...["mp3"].map((t=>[t,ee.MP3])),...["mp4","m4v"].map((t=>[t,ee.MP4])),...["ogg","oga"].map((t=>[t,ee.OGG])),...["pdf","ps"].map((t=>[t,ee.PDF])),...["png"].map((t=>[t,ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ee.POWERPOINT])),...["rar"].map((t=>[t,ee.RAR])),...["stp"].map((t=>[t,ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ee.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,ee.VIDEO])),...["wav"].map((t=>[t,ee.WAV])),...["wma"].map((t=>[t,ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ee.YAML])),...["zip"].map((t=>[t,ee.ZIP]))]);const se={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},re=e.css`
|
|
278
279
|
:host, i.ft-icon {
|
|
279
280
|
display: inline-flex;
|
|
280
281
|
align-items: center;
|
|
@@ -283,14 +284,14 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
:host {
|
|
286
|
-
width: ${
|
|
287
|
-
height: ${
|
|
287
|
+
width: ${se.size};
|
|
288
|
+
height: ${se.size};
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
i.ft-icon {
|
|
291
292
|
width: 100%;
|
|
292
293
|
height: 100%;
|
|
293
|
-
font-size: ${
|
|
294
|
+
font-size: ${se.size};
|
|
294
295
|
line-height: 1;
|
|
295
296
|
font-weight: normal;
|
|
296
297
|
text-transform: none;
|
|
@@ -301,39 +302,138 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
301
302
|
text-rendering: auto;
|
|
302
303
|
-webkit-font-smoothing: antialiased;
|
|
303
304
|
-moz-osx-font-smoothing: grayscale;
|
|
304
|
-
vertical-align: ${
|
|
305
|
+
vertical-align: ${se.verticalAlign};
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
i.ft-icon.ft-icon--fluid-topics {
|
|
308
|
-
font-family: ${
|
|
309
|
+
font-family: ${se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
309
310
|
|
|
310
311
|
/* Ugly fix because font is broken */
|
|
311
|
-
font-size: calc(0.75 * ${
|
|
312
|
+
font-size: calc(0.75 * ${se.size});
|
|
313
|
+
line-height: ${se.size};
|
|
312
314
|
position: relative;
|
|
313
315
|
top: -4%;
|
|
314
316
|
justify-content: center;
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
.ft-icon--file-format {
|
|
318
|
-
font-family: ${
|
|
320
|
+
font-family: ${se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
319
321
|
}
|
|
320
322
|
|
|
321
323
|
.ft-icon--material {
|
|
322
|
-
font-family: ${
|
|
324
|
+
font-family: ${se.materialFontFamily}, "Material Icons", sans-serif;
|
|
323
325
|
}
|
|
324
|
-
`;var
|
|
325
|
-
<i class="ft-icon
|
|
326
|
-
${
|
|
326
|
+
`;var ae;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ae||(ae={}));var le=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 he extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(ae).includes(this.variant)?this.variant:ae.fluid_topics,i=t!==ae.material||!!this.value;return e.html`
|
|
327
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
328
|
+
${s.unsafeHTML(this.resolvedIcon)}
|
|
327
329
|
<slot ?hidden=${i}></slot>
|
|
328
330
|
</i>
|
|
329
|
-
`}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
|
|
331
|
+
`}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 ae.file_format:this.resolvedIcon=null!==(t=ee[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ae.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ie[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}he.elementDefinitions={},he.styles=re,le([o.property()],he.prototype,"variant",void 0),le([o.property()],he.prototype,"value",void 0),le([o.state()],he.prototype,"resolvedIcon",void 0),le([o.query("slot")],he.prototype,"slottedContent",void 0),i.customElement("ft-icon")(he);const pe={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ce=e.css`
|
|
332
|
+
:host {
|
|
333
|
+
line-height: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ft-loader {
|
|
337
|
+
display: inline-block;
|
|
338
|
+
position: relative;
|
|
339
|
+
|
|
340
|
+
width: ${pe.size};
|
|
341
|
+
height: ${pe.size};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.ft-loader div {
|
|
345
|
+
position: absolute;
|
|
346
|
+
top: 37.5%;
|
|
347
|
+
width: 25%;
|
|
348
|
+
height: 25%;
|
|
349
|
+
border-radius: 50%;
|
|
350
|
+
background: ${pe.color};
|
|
351
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.ft-loader div:nth-child(1) {
|
|
355
|
+
left: 2.5%;
|
|
356
|
+
animation: appear 0.6s infinite;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.ft-loader div:nth-child(2) {
|
|
360
|
+
left: 2.5%;
|
|
361
|
+
animation: move 0.6s infinite;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.ft-loader div:nth-child(3) {
|
|
365
|
+
left: 37.5%;
|
|
366
|
+
animation: move 0.6s infinite;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ft-loader div:nth-child(4) {
|
|
370
|
+
left: 72.5%;
|
|
371
|
+
animation: disappear 0.6s infinite;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@keyframes appear {
|
|
375
|
+
0% {
|
|
376
|
+
transform: scale(0);
|
|
377
|
+
}
|
|
378
|
+
100% {
|
|
379
|
+
transform: scale(1);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
@keyframes disappear {
|
|
384
|
+
0% {
|
|
385
|
+
transform: scale(1);
|
|
386
|
+
}
|
|
387
|
+
100% {
|
|
388
|
+
transform: scale(0);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
@keyframes move {
|
|
393
|
+
0% {
|
|
394
|
+
transform: translate(0, 0);
|
|
395
|
+
}
|
|
396
|
+
100% {
|
|
397
|
+
transform: translate(calc(0.35 * ${pe.size}), 0);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
`;class fe extends i.FtLitElement{render(){return e.html`
|
|
401
|
+
<div class="ft-loader">
|
|
402
|
+
<div></div>
|
|
403
|
+
<div></div>
|
|
404
|
+
<div></div>
|
|
405
|
+
<div></div>
|
|
406
|
+
</div>
|
|
407
|
+
`}}fe.styles=ce,i.customElement("ft-loader")(fe);const de=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),ue={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:de,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ki.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",de),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},ge=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ve={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:ge,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",ge)},xe=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),be=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),ye=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),me=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),$e=[e.css`
|
|
330
408
|
:host {
|
|
331
409
|
display: inline-block;
|
|
332
410
|
max-width: 100%;
|
|
333
411
|
pointer-events: none;
|
|
334
412
|
}
|
|
335
413
|
|
|
336
|
-
|
|
414
|
+
button {
|
|
415
|
+
box-shadow: 0px 0px 0px transparent;
|
|
416
|
+
border: 0px solid transparent;
|
|
417
|
+
text-shadow: 0px 0px 0px transparent;
|
|
418
|
+
font-size: ${ue.fontSize};
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
button:hover {
|
|
422
|
+
box-shadow: 0px 0px 0px transparent;
|
|
423
|
+
border: 0px solid transparent;
|
|
424
|
+
text-shadow: 0px 0px 0px transparent;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
button:active {
|
|
428
|
+
outline: none;
|
|
429
|
+
border: none;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
button:focus {
|
|
433
|
+
outline: 0;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.ft-button {
|
|
337
437
|
position: relative;
|
|
338
438
|
display: flex;
|
|
339
439
|
justify-content: center;
|
|
@@ -341,22 +441,159 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
341
441
|
width: 100%;
|
|
342
442
|
overflow: hidden;
|
|
343
443
|
box-sizing: border-box;
|
|
444
|
+
border: none;
|
|
445
|
+
pointer-events: auto;
|
|
446
|
+
|
|
447
|
+
--ft-button-internal-line-height: max(calc(${ue.fontSize} + 2px), ${ue.iconSize});
|
|
448
|
+
--ft-button-internal-color: ${ue.color};
|
|
449
|
+
${i.setVariable(se.size,ue.iconSize)};
|
|
450
|
+
${i.setVariable(Gi.color,ue.rippleColor)};
|
|
451
|
+
|
|
452
|
+
border-radius: ${ue.borderRadius};
|
|
453
|
+
padding: ${ue.verticalPadding} ${ue.horizontalPadding};
|
|
454
|
+
background-color: ${ue.backgroundColor};
|
|
455
|
+
color: var(--ft-button-internal-color);
|
|
456
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-button.ft-button--outlined {
|
|
460
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
461
|
+
padding: calc(${ue.verticalPadding} - 1px) calc(${ue.horizontalPadding} - 1px);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.ft-button.ft-button--dense {
|
|
465
|
+
padding: ${be} ${ye};
|
|
466
|
+
border-radius: ${xe};
|
|
467
|
+
gap: ${me};
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
471
|
+
padding: calc(${be} - 1px) calc(${ye} - 1px);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.ft-button:not([disabled]):hover {
|
|
475
|
+
cursor: pointer;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.ft-button--round {
|
|
479
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ue.verticalPadding});
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.ft-button--round.ft-button--dense {
|
|
483
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${be});
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ft-button[disabled] {
|
|
487
|
+
filter: grayscale(1);
|
|
488
|
+
opacity: ${ue.opacityDisabled};
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.ft-button.ft-button--primary {
|
|
492
|
+
background-color: ${ve.backgroundColor};
|
|
493
|
+
--ft-button-internal-color: ${ve.color};
|
|
494
|
+
${i.setVariable(Gi.color,ve.rippleColor)};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.ft-button:focus {
|
|
498
|
+
outline: none;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ft-button--label {
|
|
502
|
+
position: relative;
|
|
503
|
+
overflow: hidden;
|
|
504
|
+
white-space: nowrap;
|
|
505
|
+
text-overflow: ellipsis;
|
|
506
|
+
display: block;
|
|
507
|
+
margin: 0 ${ue.iconPadding};
|
|
508
|
+
${i.setVariable(ki.fontSize,"1em")};
|
|
509
|
+
${i.setVariable(ki.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.ft-button--dense .ft-button--label {
|
|
513
|
+
margin: 0 ${me};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ft-button--label[hidden] {
|
|
517
|
+
display: none;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
ft-icon {
|
|
521
|
+
flex-shrink: 0;
|
|
522
|
+
position: relative;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ft-button--label[hidden] + ft-icon {
|
|
526
|
+
margin: 0 calc(${ue.horizontalPadding} * -1);
|
|
527
|
+
padding: 0 ${ue.verticalPadding};
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
531
|
+
margin: 0 calc(${ye} * -1);
|
|
532
|
+
padding: 0 ${be};
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
536
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
537
|
+
order: -1;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
ft-loader {
|
|
541
|
+
${i.setVariable(pe.size,ue.iconSize)};
|
|
542
|
+
${i.setVariable(pe.color,"var(--ft-button-internal-color)")};
|
|
543
|
+
}
|
|
544
|
+
`,i.noTextSelect];var we=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 ke extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
|
|
545
|
+
<button part="button"
|
|
546
|
+
class="${n.classMap(t)}"
|
|
547
|
+
aria-label="${this.getLabel()}"
|
|
548
|
+
?disabled=${this.isDisabled()}>
|
|
549
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
550
|
+
<ft-typography part="label"
|
|
551
|
+
variant="button"
|
|
552
|
+
element="span"
|
|
553
|
+
class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
554
|
+
?hidden=${!this.hasTextContent()}>
|
|
555
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
556
|
+
</ft-typography>
|
|
557
|
+
${this.resolveIcon()}
|
|
558
|
+
</button>
|
|
559
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
|
|
560
|
+
<ft-tooltip part="tooltip"
|
|
561
|
+
text="${this.getLabel()}"
|
|
562
|
+
position="${this.tooltipPosition}">
|
|
563
|
+
${t}
|
|
564
|
+
</ft-tooltip>
|
|
565
|
+
`:t}resolveIcon(){return this.loading?e.html`
|
|
566
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
567
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ke.elementDefinitions={"ft-ripple":ne,"ft-tooltip":Ki,"ft-typography":Ai,"ft-icon":he,"ft-loader":fe},ke.styles=[i.safariEllipsisFix,$e],we([o.property({type:String,reflect:!0})],ke.prototype,"role",void 0),we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"outlined",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.property({type:Boolean})],ke.prototype,"dense",void 0),we([o.property({type:Boolean})],ke.prototype,"round",void 0),we([o.property()],ke.prototype,"label",void 0),we([o.property()],ke.prototype,"icon",void 0),we([o.property()],ke.prototype,"iconVariant",void 0),we([o.property({type:Boolean})],ke.prototype,"trailingIcon",void 0),we([o.property({type:Boolean})],ke.prototype,"loading",void 0),we([o.property()],ke.prototype,"tooltipPosition",void 0),we([o.property({type:Boolean})],ke.prototype,"hideTooltip",void 0),we([o.property({type:Boolean})],ke.prototype,"forceTooltip",void 0),we([o.query(".ft-button")],ke.prototype,"button",void 0),we([o.query(".ft-button--label slot")],ke.prototype,"slottedContent",void 0),i.customElement("ft-button")(ke);const ze=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ce={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:ze,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",ze),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")},Se=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Ie={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Se,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Se)},Oe=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ee=[i.noTextSelect,e.css`
|
|
568
|
+
:host {
|
|
569
|
+
display: inline-block;
|
|
570
|
+
max-width: 100%;
|
|
571
|
+
pointer-events: none;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.ft-chip {
|
|
575
|
+
position: relative;
|
|
576
|
+
display: flex;
|
|
577
|
+
justify-content: center;
|
|
578
|
+
align-items: center;
|
|
579
|
+
width: 100%;
|
|
580
|
+
box-sizing: border-box;
|
|
344
581
|
pointer-events: auto;
|
|
345
582
|
|
|
346
|
-
--ft-chip-internal-font-size: ${
|
|
583
|
+
--ft-chip-internal-font-size: ${Ce.fontSize};
|
|
347
584
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
348
|
-
${i.setVariable(
|
|
349
|
-
--ft-chip-internal-vertical-padding: ${
|
|
350
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
585
|
+
${i.setVariable(se.size,Ce.iconSize)};
|
|
586
|
+
--ft-chip-internal-vertical-padding: ${Ce.verticalPadding};
|
|
587
|
+
--ft-chip-internal-horizontal-padding: ${Ce.horizontalPadding};
|
|
351
588
|
--ft-chip-internal-icon-padding: 3px;
|
|
352
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
589
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ce.iconSize});
|
|
353
590
|
|
|
354
|
-
border: 1px solid ${
|
|
355
|
-
color: ${
|
|
356
|
-
${i.setVariable(
|
|
591
|
+
border: 1px solid ${Ce.colorOutline};
|
|
592
|
+
color: ${Ce.color};
|
|
593
|
+
${i.setVariable(Gi.color,Ce.rippleColor)};
|
|
357
594
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
358
595
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
359
|
-
background-color: ${
|
|
596
|
+
background-color: ${Ce.backgroundColor};
|
|
360
597
|
line-height: var(--ft-chip-internal-content-height);
|
|
361
598
|
}
|
|
362
599
|
|
|
@@ -366,8 +603,8 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
366
603
|
|
|
367
604
|
.ft-chip--dense {
|
|
368
605
|
--ft-chip-internal-icon-padding: 3px;
|
|
369
|
-
--ft-chip-internal-vertical-padding: ${
|
|
370
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
606
|
+
--ft-chip-internal-vertical-padding: ${je};
|
|
607
|
+
--ft-chip-internal-horizontal-padding: ${Oe};
|
|
371
608
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
372
609
|
}
|
|
373
610
|
|
|
@@ -379,15 +616,15 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
379
616
|
cursor: default;
|
|
380
617
|
pointer-events: none;
|
|
381
618
|
filter: grayscale(1);
|
|
382
|
-
opacity: ${
|
|
619
|
+
opacity: ${Ce.opacityDisabled};
|
|
383
620
|
}
|
|
384
621
|
|
|
385
622
|
.ft-chip--highlighted {
|
|
386
623
|
border: none;
|
|
387
624
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
388
|
-
background-color: ${
|
|
389
|
-
${i.setVariable(
|
|
390
|
-
color: ${
|
|
625
|
+
background-color: ${Ie.backgroundColor};
|
|
626
|
+
${i.setVariable(Gi.color,Ie.rippleColor)};
|
|
627
|
+
color: ${Ie.color};
|
|
391
628
|
}
|
|
392
629
|
|
|
393
630
|
.ft-chip--clickable {
|
|
@@ -416,12 +653,19 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
416
653
|
position: relative;
|
|
417
654
|
}
|
|
418
655
|
|
|
656
|
+
.ft-chip--icon-button {
|
|
657
|
+
${i.setVariable(ue.iconSize,Ce.iconSize)};
|
|
658
|
+
${i.setVariable(ue.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
659
|
+
${i.setVariable(ue.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
660
|
+
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
661
|
+
}
|
|
662
|
+
|
|
419
663
|
.ft-chip--label {
|
|
420
664
|
vertical-align: bottom;
|
|
421
665
|
display: block;
|
|
422
666
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
423
|
-
${i.setVariable(
|
|
424
|
-
${i.setVariable(
|
|
667
|
+
${i.setVariable(ni.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
668
|
+
${i.setVariable(ni.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
425
669
|
}
|
|
426
670
|
|
|
427
671
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -453,11 +697,12 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
453
697
|
outline: none;
|
|
454
698
|
}
|
|
455
699
|
|
|
456
|
-
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container
|
|
700
|
+
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container,
|
|
701
|
+
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
457
702
|
order: -1;
|
|
458
703
|
}
|
|
459
|
-
`];var
|
|
460
|
-
<div class="${
|
|
704
|
+
`];var Ne=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Be extends CustomEvent{constructor(){super("icon-click")}}class Ue 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.iconLabel="",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`
|
|
705
|
+
<div class="${n.classMap(t)}"
|
|
461
706
|
aria-label="${this.getLabel()}"
|
|
462
707
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
463
708
|
@keyup=${this.onKeyUp}>
|
|
@@ -467,15 +712,19 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
467
712
|
</ft-typography>
|
|
468
713
|
${this.internalIcon?this.renderIcon():null}
|
|
469
714
|
</div>
|
|
470
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return e.html`
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
715
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?e.html`
|
|
716
|
+
<ft-button round
|
|
717
|
+
class="ft-chip--icon-button"
|
|
718
|
+
@click=${this.onIconClick}
|
|
719
|
+
.iconVariant=${this.iconVariant}
|
|
720
|
+
icon="${this.internalIcon}"
|
|
721
|
+
label="${this.iconLabel}"
|
|
722
|
+
></ft-button>
|
|
723
|
+
`:e.html`
|
|
724
|
+
<div class="ft-chip--icon-container ft-no-text-select">
|
|
725
|
+
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
726
|
+
</div>
|
|
727
|
+
`}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?"close":void 0)}}Ue.elementDefinitions={"ft-ripple":ne,"ft-typography":Ai,"ft-icon":he,"ft-button":ke},Ue.styles=Ee,Ne([o.property({type:Boolean})],Ue.prototype,"highlighted",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"removable",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"clickable",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"iconClickable",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"dense",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"multiLine",void 0),Ne([o.property()],Ue.prototype,"label",void 0),Ne([o.property()],Ue.prototype,"iconLabel",void 0),Ne([o.property()],Ue.prototype,"icon",void 0),Ne([o.property()],Ue.prototype,"iconVariant",void 0),Ne([o.property({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Ne([o.query("ft-typography slot")],Ue.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Ue);var Me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Te extends(j(z)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(l),this.addI18nContext(T)}render(){return this.useChip?e.html`
|
|
479
728
|
<ft-tooltip text="${this.tooltipText}">
|
|
480
729
|
<ft-chip>${this.renderContent()}</ft-chip>
|
|
481
730
|
</ft-tooltip>
|
|
@@ -485,4 +734,4 @@ const mt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
485
734
|
display: none !important;
|
|
486
735
|
}
|
|
487
736
|
</style>
|
|
488
|
-
`}getEllipsis(t){let i=this.maxLength?t.substring(0,this.maxLength):t;return i+(i.length<t.length?"...":"")}updated(t){super.updated(t),t.has("result")&&this.result&&(this.metadata=this.selectMetadata(this.result))}selectMetadata(t){switch(t.type){case"MAP":return t.map.metadata.find((t=>t.key==this.key));case"DOCUMENT":return t.document.metadata.find((t=>t.key==this.key));case"TOPIC":return t.topic.metadata.find((t=>t.key==this.key))}}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}
|
|
737
|
+
`}getEllipsis(t){let i=this.maxLength?t.substring(0,this.maxLength):t;return i+(i.length<t.length?"...":"")}updated(t){super.updated(t),t.has("result")&&this.result&&(this.metadata=this.selectMetadata(this.result))}selectMetadata(t){switch(t.type){case"MAP":return t.map.metadata.find((t=>t.key==this.key));case"DOCUMENT":return t.document.metadata.find((t=>t.key==this.key));case"TOPIC":return t.topic.metadata.find((t=>t.key==this.key))}}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}Te.elementDefinitions={"ft-tooltip":Ki,"ft-chip":Ue},Te.styles=r,Me([o.property()],Te.prototype,"key",void 0),Me([o.property({type:Boolean})],Te.prototype,"useChip",void 0),Me([o.property({type:Number,attribute:"max-length"})],Te.prototype,"maxLength",void 0),Me([i.redux({store:l.name})],Te.prototype,"editorMode",void 0),Me([o.state()],Te.prototype,"metadata",void 0),i.customElement("ft-search-result-metadata")(Te),t.FtSearchResultMetadata=Te,t.FtSearchResultMetadataCssVariables={},t.styles=r}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|