@fluid-topics/ft-size-watcher 1.0.36 → 1.0.38

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.
@@ -54,30 +54,30 @@ var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRoot
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
55
  */
56
56
  var lt,at;class ht extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var s,o;const n=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:i;let r=n._$litPart$;if(void 0===r){const t=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:null;n._$litPart$=r=new Y(i.insertBefore(A(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}ht.finalized=!0,ht._$litElement$=!0,null===(lt=globalThis.litElementHydrateSupport)||void 0===lt||lt.call(globalThis,{LitElement:ht});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:ht}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,i,e){let s=t=>u(null!=t?t:e),o=d`var(${u(t)}, ${s(e)})`;return o.name=t,o.category=i,o.defaultValue=e,o.defaultCssValue=s,o.get=i=>d`var(${u(t)}, ${s(i)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>e,o}static extend(t,i,e){let s=t=>i.get(null!=t?t:e),o=d`var(${u(t)}, ${s(e)})`;return o.name=t,o.category=i.category,o.fallbackVariable=i,o.defaultValue=e,o.defaultCssValue=s,o.get=i=>d`var(${u(t)}, ${s(i)})`,o.breadcrumb=()=>[i.name,...i.breadcrumb()],o.lastResortDefaultValue=()=>e,o}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),s=d`var(${u(t.name)}, ${e(t.defaultValue)})`;return s.name=t.name,s.category=t.category,s.fallbackVariable=t.fallbackVariable,s.defaultValue=t.defaultValue,s.context=i,s.defaultCssValue=e,s.get=i=>d`var(${u(t.name)}, ${e(i)})`,s.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],s.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},s}}ut.create("--ft-color-primary","COLOR","#2196F3"),ut.create("--ft-color-primary-variant","COLOR","#1976D2"),ut.create("--ft-color-secondary","COLOR","#FFCC80"),ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),ut.create("--ft-color-surface","COLOR","#FFFFFF"),ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),ut.create("--ft-color-error","COLOR","#B00020"),ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),ut.create("--ft-color-opacity-high","NUMBER","1"),ut.create("--ft-color-opacity-medium","NUMBER","0.74"),ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),ut.create("--ft-border-radius-S","SIZE","4px"),ut.create("--ft-border-radius-M","SIZE","8px"),ut.create("--ft-border-radius-L","SIZE","12px"),ut.create("--ft-border-radius-XL","SIZE","16px"),ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),ut.create("--ft-transition-duration","UNKNOWN","250ms"),ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");class dt extends ht{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return p(e,t.elementStyles),e}}var pt,ft=function(t,i,e,s){for(var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s,l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const vt=Symbol("constructorPrototype"),bt=Symbol("constructorName"),wt=Symbol("exportpartsDebouncer");class xt extends dt{constructor(){super(),this[pt]=new i(5),this[bt]=this.constructor.name,this[vt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bt]&&Object.setPrototypeOf(this,this[vt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[wt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,s,o,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(o=null===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==o?o:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var mt,yt,gt;pt=wt,ft([s()],xt.prototype,"exportpartsPrefix",void 0),ft([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!n(t,i),...null!=i?i:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),ft([s()],xt.prototype,"customStylesheet",void 0),d`
57
- .ft-no-text-select {
58
- -webkit-touch-callout: none;
59
- -webkit-user-select: none;
60
- -khtml-user-select: none;
61
- -moz-user-select: none;
62
- -ms-user-select: none;
63
- user-select: none;
64
- }
57
+ .ft-no-text-select {
58
+ -webkit-touch-callout: none;
59
+ -webkit-user-select: none;
60
+ -khtml-user-select: none;
61
+ -moz-user-select: none;
62
+ -ms-user-select: none;
63
+ user-select: none;
64
+ }
65
65
  `,d`
66
- .ft-word-wrap {
67
- white-space: normal;
68
- word-wrap: break-word;
69
- -ms-word-break: break-all;
70
- word-break: break-all;
71
- word-break: break-word;
72
- -ms-hyphens: auto;
73
- -moz-hyphens: auto;
74
- -webkit-hyphens: auto;
75
- hyphens: auto
76
- }
66
+ .ft-word-wrap {
67
+ white-space: normal;
68
+ word-wrap: break-word;
69
+ -ms-word-break: break-all;
70
+ word-break: break-all;
71
+ word-break: break-word;
72
+ -ms-hyphens: auto;
73
+ -moz-hyphens: auto;
74
+ -webkit-hyphens: auto;
75
+ hyphens: auto
76
+ }
77
77
  `,d`
78
78
  .ft-safari-ellipsis-fix {
79
79
  margin-right: 0;
80
-
80
+
81
81
  }
82
82
 
83
83
  .ft-safari-ellipsis-fix:after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-size-watcher",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "Pixel component used to get viewport size",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
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": "1.0.36",
22
+ "@fluid-topics/ft-wc-utils": "1.0.38",
23
23
  "lit": "2.7.2"
24
24
  },
25
- "gitHead": "7ace912b9fec53f21ded2d3b32ba7d723118d334"
25
+ "gitHead": "0fdaa285bb109f6f8edb0e5eaa7152f8d5fc654b"
26
26
  }