@fluid-topics/ft-tabs 0.0.88 → 0.1.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Generic tabs component
1
+ A generic tabs component.
2
2
 
3
3
  ## Install
4
4
 
@@ -84,12 +84,12 @@ const ut=1,pt=2,ht=t=>(...e)=>({_$litDirective$:t,values:e});class ft{constructo
84
84
  * @license
85
85
  * Copyright 2021 Google LLC
86
86
  * SPDX-License-Identifier: BSD-3-Clause
87
- */;class Tt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`${t.map((t=>z`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}
87
+ */;class Tt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`${t.map((t=>z`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}s`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`
88
88
  /**
89
89
  * @license
90
90
  * Copyright 2017 Google LLC
91
91
  * SPDX-License-Identifier: BSD-3-Clause
92
- */class Et extends ft{constructor(t){if(super(t),this.it=D,t.type!==pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||null==t)return this.vt=void 0,this.it=t;if(t===L)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}var Ot,kt;Et.directiveName="unsafeHTML",Et.resultType=1,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kt=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===kt||kt.toString());var Rt,$t=function(t,e,i,r){for(var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.before="before",t.current="current",t.after="after"}(Rt||(Rt={})),t.FtTab=class extends Tt{constructor(){super(...arguments),this.label="",this.icon="",this.position=Rt.before,this.disabled=!1}getStyles(){let t;switch(this.position){case Rt.before:t="-100%";break;case Rt.current:t="0";break;case Rt.after:t="100%"}return s`:host{width:100%;position:absolute;transition:left 250ms cubic-bezier(.4,0,.2,1);background-color:var(--ft-color-surface,#fff);left:${o(t)}}`}getTemplate(){return z`<slot></slot>`}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}},t.FtTab.elementDefinitions={},$t([ot({type:String})],t.FtTab.prototype,"label",void 0),$t([ot({type:String})],t.FtTab.prototype,"icon",void 0),$t([ot({type:String})],t.FtTab.prototype,"position",void 0),$t([ot({type:Boolean})],t.FtTab.prototype,"disabled",void 0),t.FtTab=$t([Ct("ft-tab")],t.FtTab);
92
+ */;class Et extends ft{constructor(t){if(super(t),this.it=D,t.type!==pt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||null==t)return this.vt=void 0,this.it=t;if(t===L)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}var Ot,kt;Et.directiveName="unsafeHTML",Et.resultType=1,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kt=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===kt||kt.toString());var Rt,$t=function(t,e,i,r){for(var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.before="before",t.current="current",t.after="after"}(Rt||(Rt={})),t.FtTab=class extends Tt{constructor(){super(...arguments),this.label="",this.icon="",this.position=Rt.before,this.disabled=!1}getStyles(){let t;switch(this.position){case Rt.before:t="-100%";break;case Rt.current:t="0";break;case Rt.after:t="100%"}return s`:host{width:100%;position:absolute;transition:left 250ms cubic-bezier(.4,0,.2,1);background-color:var(--ft-color-surface,#fff);left:${o(t)}}`}getTemplate(){return z`<slot></slot>`}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}},t.FtTab.elementDefinitions={},$t([ot({type:String})],t.FtTab.prototype,"label",void 0),$t([ot({type:String})],t.FtTab.prototype,"icon",void 0),$t([ot({type:String})],t.FtTab.prototype,"position",void 0),$t([ot({type:Boolean})],t.FtTab.prototype,"disabled",void 0),t.FtTab=$t([Ct("ft-tab")],t.FtTab);
93
93
  /*! *****************************************************************************
94
94
  Copyright (c) Microsoft Corporation.
95
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tabs",
3
- "version": "0.0.88",
3
+ "version": "0.1.2",
4
4
  "description": "Generic tabs component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "^0.0.88",
22
+ "@fluid-topics/ft-wc-utils": "^0.1.2",
23
23
  "@material/mwc-tab": "^0.25.3",
24
24
  "@material/mwc-tab-bar": "^0.25.3",
25
25
  "lit": "^2.0.2"
26
26
  },
27
- "gitHead": "220e53dba55dfa1de1560abbc30067555f72198c"
27
+ "gitHead": "45bcba88593eeafbe100e92f2ad27ca4d439f351"
28
28
  }