@openremote/or-timeline 1.2.0-snapshot.20240512160221 → 1.2.0-snapshot.20240512160246

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,21 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2019 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
-
13
- /**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
-
19
- //! moment.js
20
-
21
- //! moment.js locale configuration
package/dist/umd/index.js DELETED
@@ -1,188 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment")):"function"==typeof define&&define.amd?define(["moment"],e):"object"==typeof exports?exports.ORTimeline=e(require("moment")):t.ORTimeline=e(t.moment)}(self,(t=>(()=>{"use strict";var e={272:e=>{e.exports=t}},i={};function r(t){var s=i[t];if(void 0!==s)return s.exports;var o=i[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{r.r(s);const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new WeakMap;class n{constructor(t,e,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=o.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(i,t))}return t}toString(){return this.cssText}}const l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,i))(e)})(t):t;var a;const h=window,d=h.trustedTypes,c=d?d.emptyScript:"",p=h.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},v=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:v},$="finalized";class f extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const s=this[t];this[e]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty($))return!1;this[$]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var i;const r=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,r)=>{e?i.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):r.forEach((e=>{const r=document.createElement("style"),s=t.litNonce;void 0!==s&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=m){var r;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:u).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=r.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:u;this._$El=s,this[s]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||v)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var g;f[$]=!0,f.elementProperties=new Map,f.elementStyles=[],f.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:f}),(null!==(a=h.reactiveElementVersions)&&void 0!==a?a:h.reactiveElementVersions=[]).push("1.6.3");const _=window,b=_.trustedTypes,y=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,E=`<${w}>`,S=document,k=()=>S.createComment(""),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,H="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,U=/>/g,N=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,T=/"/g,z=/^(?:script|style|textarea|title)$/i,j=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),B=j(1),D=(j(2),Symbol.for("lit-noChange")),I=Symbol.for("lit-nothing"),L=new WeakMap,V=S.createTreeWalker(S,129,null,!1);function F(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==y?y.createHTML(e):e}const W=(t,e)=>{const i=t.length-1,r=[];let s,o=2===e?"<svg>":"",n=R;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===R?"!--"===a[1]?n=O:void 0!==a[1]?n=U:void 0!==a[2]?(z.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=N):void 0!==a[3]&&(n=N):n===N?">"===a[0]?(n=null!=s?s:R,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?N:'"'===a[3]?T:M):n===T||n===M?n=N:n===O||n===U?n=R:(n=N,s=void 0);const c=n===N&&t[e+1].startsWith("/>")?" ":"";o+=n===R?i+E:h>=0?(r.push(l),i.slice(0,h)+A+i.slice(h)+x+c):i+x+(-2===h?(r.push(void 0),e):c)}return[F(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),r]};class q{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let s=0,o=0;const n=t.length-1,l=this.parts,[a,h]=W(t,e);if(this.el=q.createElement(a,i),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=V.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(A)||e.startsWith(x)){const i=h[o++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+A).split(x),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?Y:"@"===e[1]?tt:Z})}else l.push({type:6,index:s})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],k()),V.nextNode(),l.push({type:2,index:++s});r.append(t[e],k())}}}else if(8===r.nodeType)if(r.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)l.push({type:7,index:s}),t+=x.length-1}s++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,r){var s,o,n,l;if(e===D)return e;let a=void 0!==r?null===(s=i._$Co)||void 0===s?void 0:s[r]:i._$Cl;const h=C(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(o=null==a?void 0:a._$AO)||void 0===o||o.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,r)),void 0!==r?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[r]=a:i._$Cl=a),void 0!==a&&(e=K(t,a._$AS(t,e.values),a,r)),e}class G{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:r}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:S).importNode(i,!0);V.currentNode=s;let o=V.nextNode(),n=0,l=0,a=r[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new J(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new et(o,this,t)),this._$AV.push(e),a=r[++l]}n!==(null==a?void 0:a.index)&&(o=V.nextNode(),n++)}return V.currentNode=S,s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,r){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(s=null==r?void 0:r.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),C(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==D&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(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!==I&&C(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,s="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=q.createElement(F(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new G(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new q(t)),e}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const s of t)r===e.length?e.push(i=new J(this.k(k()),this.k(k()),this,this.options)):i=e[r],i._$AI(s),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,r,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const s=this.strings;let o=!1;if(void 0===s)t=K(this,t,e,0),o=!C(t)||t!==this._$AH&&t!==D,o&&(this._$AH=t);else{const r=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=K(this,r[i+n],e,n),l===D&&(l=this._$AH[n]),o||(o=!C(l)||l!==this._$AH[n]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}o&&!r&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const X=b?b.emptyScript:"";class Y extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class tt extends Z{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=K(this,t,e,0))&&void 0!==i?i:I)===D)return;const r=this._$AH,s=t===I&&r!==I||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==I&&(r===I||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const it=_.litHtmlPolyfillSupport;var rt,st;null==it||it(q,J),(null!==(g=_.litHtmlVersions)&&void 0!==g?g:_.litHtmlVersions=[]).push("2.8.0");class ot extends f{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,s;const o=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=o._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;o._$litPart$=n=new J(e.insertBefore(k(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,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 D}}ot.finalized=!0,ot._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:ot});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:ot}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.3.3");const lt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function at(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):lt(t,e)}var ht;null===(ht=window.HTMLSlotElement)||void 0===ht||ht.prototype.assignedElements;var dt=r(272),ct=r.n(dt),pt=function(t,e,i,r){var s,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(n=(o<3?s(n):o>3?s(e,i,n):s(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};let ut=class extends ot{constructor(){super(),this.current=0,this.value=0,this.maxRange=360,this.minRange=0,this.step=5}moveBubble(t=null,e=null){let i;if(t?i=t.target:this.shadowRoot&&(i=this.shadowRoot.getElementById("or-timeline-slider")),i){this.current=e?parseInt(e):parseInt(i.value);const t=i.offsetWidth,r=this.current/this.maxRange,s=15;let o;if(r<0?o=0:r>1?o=t-s:(o=(t-s)*r,o<0&&(o=0)),this.shadowRoot){const t=this.shadowRoot.getElementById("range-value");t&&(t.style.left=o+"px")}}}valueChange(t){this.moveBubble(t),this.onChange()}render(){return B`
3
- <style>
4
- :host {
5
- position: relative;
6
- }
7
- .timeline-container {
8
- display: block;
9
- height: 52px;
10
- background-color: var(--app-white, #FFFFFF);
11
-
12
- -webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
13
- -moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
14
- box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.28);
15
-
16
- padding-top: 20px;
17
- }
18
- .slidecontainer {
19
- position: relative;
20
- margin: -5px 44px 0 19px;
21
- }
22
-
23
- /* The slider itself */
24
- .slider {
25
- color: var(--timeline-accent, #1D5632);
26
- box-sizing: border-box;
27
- -webkit-appearance: none;
28
- outline: none;
29
- width: 100%;
30
- }
31
- .slider::-webkit-slider-runnable-track {
32
- cursor: pointer;
33
- border: transparent;
34
- background: #bdbdbd;
35
- border-radius: 6px;
36
- height: 12px;
37
- }
38
- .slider::-webkit-slider-thumb {
39
- height: 18px;
40
- width: 18px;
41
- border-radius: 50%;
42
- cursor: pointer;
43
- -webkit-appearance: none;
44
- background-color: var(--timeline-accent, #1D5632); /* Green background */
45
- pointer-events: all;
46
- margin-top: -2px;
47
- }
48
-
49
- .slider::-moz-range-track {
50
- cursor: pointer;
51
- border: transparent;
52
- background: #bdbdbd;
53
- border-radius: 6px;
54
- height: 12px;
55
- }
56
- .slider::-moz-range-thumb {
57
- border: 0 none;
58
- height: 18px;
59
- width: 18px;
60
- border-radius: 50%;
61
- cursor: pointer;
62
- -webkit-appearance: none;
63
- background-color: var(--timeline-accent, #1D5632); /* Green background */
64
- pointer-events: all;
65
- margin-top: -2px;
66
- }
67
- .slider::-moz-range-progress {
68
- background-color: var(--timeline-accent, #1D5632);
69
- height: 12px;
70
- border-radius: 6px;
71
- }
72
-
73
- .slider::-ms-track {
74
- cursor: pointer;
75
- border: transparent;
76
- background: #bdbdbd;
77
- border-radius: 6px;
78
- height: 12px;
79
- }
80
- .slider::-ms-thumb {
81
- border: 0 none;
82
- height: 18px;
83
- width: 18px;
84
- border-radius: 50%;
85
- cursor: pointer;
86
- -webkit-appearance: none;
87
- background-color: var(--timeline-accent, currentColor); /* Bug in Edge set colour on slider itself */
88
- pointer-events: all;
89
- margin-top: -2px;
90
- }
91
-
92
- .slider::-ms-fill-lower {
93
- background-color: var(--timeline-accent, currentColor);
94
- border: 0 none;
95
- border-radius: 6px;
96
- }
97
-
98
- .slider::-ms-fill-upper {
99
- background: transparent;
100
- border: 0 none;
101
- }
102
-
103
- #timelineHourMarkers {
104
- position: relative;
105
- display: -webkit-box;
106
- display: -moz-box;
107
- display: -ms-flexbox;
108
- display: -webkit-flex;
109
- display: flex;
110
- -webkit-box-orient: horizontal;
111
- -moz-box-orient: horizontal;
112
- -webkit-box-direction: normal;
113
- -moz-box-direction: normal;
114
- -webkit-flex-direction: row;
115
- -ms-flex-direction: row;
116
- flex-direction: row;
117
-
118
- margin: 0 50px 0 30px;
119
- }
120
-
121
- #timelineHourMarkers > .timelineHourMark{
122
- display: flex;
123
- flex: 1 100%;
124
- flex-grow: 1;
125
- flex-shrink: 1;
126
- flex-basis: 100%;
127
-
128
- overflow: visible;
129
- color: var(--timeline-grey, darkgrey);
130
- border-left: 1px solid var(--timeline-grey, darkgrey);
131
- font-size: 12px;
132
- -webkit-user-select: none;
133
- -moz-user-select: none;
134
- -ms-user-select: none;
135
- user-select: none;
136
- padding-left: 4px;
137
- padding-bottom: 4px;
138
- }
139
- #timelineHourMarkers .timelineHourMark:last-child {
140
- position: absolute;
141
- right: -25px;
142
- }
143
-
144
- #range-value {
145
- position: absolute;
146
- background-color: var(--timeline-accent, #1D5632);
147
- height: 30px;
148
- width: 60px;
149
- margin-left: -30px;
150
- text-align: center;
151
- color: white;
152
- display: inline-block;
153
- left: 0;
154
- font-size: 12px;
155
- font-weight: bold;
156
- line-height: 30px;
157
- }
158
-
159
- .time-value-container {
160
- width: calc(100% - 80px);
161
- display: block;
162
- position: relative;
163
- height: 30px;
164
- margin: 0 50px 0 30px;
165
- }
166
- </style>
167
-
168
-
169
- <div class="time-value-container">
170
- <div id="range-value">${0===this.current?"LIVE":ct()().add(this.current,"minutes").format("HH:mm")}</div>
171
- </div>
172
- <div class="timeline-container">
173
- <div id="timelineHourMarkers" class="layout horizontal justified style-scope controller-timeline">
174
- ${new Array(this.maxRange/60+1).fill(0).map(((t,e)=>B`
175
- ${0===e?B`
176
- <div class="timelineHourMark style-scope controller-timeline">Nu</div>
177
- `:B`
178
- <div class="timelineHourMark style-scope controller-timeline">+${e}u</div>
179
- `}
180
- `))}
181
- </div>
182
-
183
- <div class="slidecontainer">
184
- <input id="or-timeline-slider" class="slider" type="range" @input="${this.moveBubble}" @change="${this.valueChange}" value="${this.current}" min="${this.minRange}" max="${this.maxRange}" step="${this.step}">
185
- </div>
186
- </div>
187
-
188
- `}};var vt;pt([at({type:Number})],ut.prototype,"current",void 0),pt([at({type:Function})],ut.prototype,"onChange",void 0),pt([at({type:Number})],ut.prototype,"value",void 0),pt([at({type:Number})],ut.prototype,"maxRange",void 0),pt([at({type:Number})],ut.prototype,"minRange",void 0),pt([at({type:Number})],ut.prototype,"step",void 0),ut=pt([(vt="or-timeline",t=>"function"==typeof t?((t,e)=>(customElements.define(t,e),e))(vt,t):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){customElements.define(t,e)}}})(vt,t))],ut)})(),s})()));
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2019 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
-
13
- /**
14
- * @license
15
- * Copyright 2021 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */