@fluid-topics/ft-analytics-top-documents 1.0.35 → 1.0.37

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.
@@ -53,30 +53,30 @@ var D;x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRoot
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
55
  var ct,lt;let dt=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const i=super.createRenderRoot();return null!==(t=(n=this.renderOptions).renderBefore)&&void 0!==t||(n.renderBefore=i.firstChild),i}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,n,i)=>{var e,r;const s=null!==(e=null==i?void 0:i.renderBefore)&&void 0!==e?e:n;let o=s._$litPart$;if(void 0===o){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=o=new nt(n.insertBefore(H(),t),t,void 0,null!=i?i:{})}return o._$AI(t),o})(n,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 z}};dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:dt}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.3.2");class mt{static create(t,n,i){let e=t=>d(null!=t?t:i),r=f`var(${d(t)}, ${e(i)})`;return r.name=t,r.category=n,r.defaultValue=i,r.defaultCssValue=e,r.get=n=>f`var(${d(t)}, ${e(n)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,n,i){let e=t=>n.get(null!=t?t:i),r=f`var(${d(t)}, ${e(i)})`;return r.name=t,r.category=n.category,r.fallbackVariable=n,r.defaultValue=i,r.defaultCssValue=e,r.get=n=>f`var(${d(t)}, ${e(n)})`,r.breadcrumb=()=>[n.name,...n.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,n){let i=n=>t.fallbackVariable?t.fallbackVariable.get(null!=n?n:t.defaultValue):d(null!=n?n:t.defaultValue),e=f`var(${d(t.name)}, ${i(t.defaultValue)})`;return e.name=t.name,e.category=t.category,e.fallbackVariable=t.fallbackVariable,e.defaultValue=t.defaultValue,e.context=n,e.defaultCssValue=i,e.get=n=>f`var(${d(t.name)}, ${i(n)})`,e.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],e.lastResortDefaultValue=()=>{var n,i;return null!==(n=t.defaultValue)&&void 0!==n?n:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},e}}const vt={colorPrimary:mt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:mt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:mt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:mt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:mt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:mt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:mt.create("--ft-color-error","COLOR","#B00020"),colorOutline:mt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:mt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:mt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:mt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:mt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:mt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:mt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:mt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:mt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:mt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:mt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:mt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:mt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:mt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:mt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:mt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:mt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:mt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:mt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:mt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:mt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:mt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:mt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:mt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:mt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:mt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:mt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:mt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:mt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:mt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:mt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:mt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:mt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:mt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:mt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:mt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:mt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:mt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:mt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:mt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:mt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:mt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:mt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:mt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:mt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:mt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:mt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:mt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:mt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:mt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:mt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:mt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:mt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:mt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:mt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class pt extends dt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([n,i])=>t.registry.define(n,i))));const n={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(n);return m(i,t.elementStyles),i}}var yt,gt=function(t,n,i,e){for(var r,s=arguments.length,o=s<3?n:null===e?e=Object.getOwnPropertyDescriptor(n,i):e,u=t.length-1;u>=0;u--)(r=t[u])&&(o=(s<3?r(o):s>3?r(n,i,o):r(n,i))||o);return s>3&&o&&Object.defineProperty(n,i,o),o};const wt=Symbol("constructorPrototype"),bt=Symbol("constructorName"),Mt=Symbol("exportpartsDebouncer");class St extends pt{constructor(){super(),this[yt]=new n(5),this[bt]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bt]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var n,i;if((null!==(i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[Mt].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 n,i,e,r,s,o;const u=t=>null!=t&&t.trim().length>0,a=t.filter(u).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(n=this.shadowRoot)||void 0===n?void 0:n.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const n=null!==(r=null===(e=t.getAttribute("part"))||void 0===e?void 0:e.split(" "))&&void 0!==r?r:[],i=null!==(o=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==o?o:[];new Array(...n,...i).filter(u).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((n=>`${t}:${n}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Nt,xt,Dt,Yt;function Ot(){return Dt.apply(null,arguments)}function kt(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function Et(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function Rt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Ct(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(Rt(t,n))return!1;return!0}function Tt(t){return void 0===t}function _t(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Ht(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function At(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function Ft(t,n){for(var i in n)Rt(n,i)&&(t[i]=n[i]);return Rt(n,"toString")&&(t.toString=n.toString),Rt(n,"valueOf")&&(t.valueOf=n.valueOf),t}function Ut(t,n,i,e){return re(t,n,i,e,!0).utc()}function $t(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function Wt(t){if(null==t._isValid){var n=$t(t),i=Yt.call(n.parsedDateParts,(function(t){return null!=t})),e=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(e=e&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return e;t._isValid=e}return t._isValid}function Lt(t){var n=Ut(NaN);return null!=t?Ft($t(n),t):$t(n).userInvalidated=!0,n}yt=Mt,gt([e()],St.prototype,"exportpartsPrefix",void 0),gt([function(t,n){const i=()=>JSON.parse(JSON.stringify(t));return e({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,n)=>!o(t,n),...null!=n?n:{}})}([])],St.prototype,"exportpartsPrefixes",void 0),gt([e()],St.prototype,"customStylesheet",void 0),f`
56
- .ft-no-text-select {
57
- -webkit-touch-callout: none;
58
- -webkit-user-select: none;
59
- -khtml-user-select: none;
60
- -moz-user-select: none;
61
- -ms-user-select: none;
62
- user-select: none;
63
- }
56
+ .ft-no-text-select {
57
+ -webkit-touch-callout: none;
58
+ -webkit-user-select: none;
59
+ -khtml-user-select: none;
60
+ -moz-user-select: none;
61
+ -ms-user-select: none;
62
+ user-select: none;
63
+ }
64
64
  `,f`
65
- .ft-word-wrap {
66
- white-space: normal;
67
- word-wrap: break-word;
68
- -ms-word-break: break-all;
69
- word-break: break-all;
70
- word-break: break-word;
71
- -ms-hyphens: auto;
72
- -moz-hyphens: auto;
73
- -webkit-hyphens: auto;
74
- hyphens: auto
75
- }
65
+ .ft-word-wrap {
66
+ white-space: normal;
67
+ word-wrap: break-word;
68
+ -ms-word-break: break-all;
69
+ word-break: break-all;
70
+ word-break: break-word;
71
+ -ms-hyphens: auto;
72
+ -moz-hyphens: auto;
73
+ -webkit-hyphens: auto;
74
+ hyphens: auto
75
+ }
76
76
  `,f`
77
77
  .ft-safari-ellipsis-fix {
78
78
  margin-right: 0;
79
-
79
+
80
80
  }
81
81
 
82
82
  .ft-safari-ellipsis-fix:after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-analytics-top-documents",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "List the most viewed documents",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.0.35",
23
- "@fluid-topics/ft-loader": "1.0.35",
24
- "@fluid-topics/ft-typography": "1.0.35",
25
- "@fluid-topics/ft-wc-utils": "1.0.35",
22
+ "@fluid-topics/ft-icon": "1.0.37",
23
+ "@fluid-topics/ft-loader": "1.0.37",
24
+ "@fluid-topics/ft-typography": "1.0.37",
25
+ "@fluid-topics/ft-wc-utils": "1.0.37",
26
26
  "lit": "2.7.2"
27
27
  },
28
- "gitHead": "9d95cd4787fe699293f52b43352ae1594811b081"
28
+ "gitHead": "abb2109b58b81de01332c9f036f5ff1df0861f8f"
29
29
  }