@vandeurenglenn/lite-elements 0.3.84 → 0.4.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.
- package/exports/bundle/banner.js +1 -1
- package/exports/bundle/button.css.js +1 -1
- package/exports/bundle/button.js +1 -1
- package/exports/bundle/card.js +1 -1
- package/exports/bundle/code.js +1 -1
- package/exports/bundle/column-DdHjND9w.js +1 -0
- package/exports/bundle/custom-element-Wj8bC3gl.js +1 -0
- package/exports/bundle/dark-mode2-CBfmAvIL.js +11 -0
- package/exports/bundle/dark-mode2-DBD32xmy.js +1 -0
- package/exports/bundle/demo-elements.js +1 -1
- package/exports/bundle/demo-icons.js +2 -2
- package/exports/bundle/demo-shell.js +1 -1
- package/exports/bundle/demo.js +2 -2
- package/exports/bundle/dialog.js +1 -1
- package/exports/bundle/divider.js +1 -1
- package/exports/bundle/drawer-button.js +1 -1
- package/exports/bundle/drawer-item.js +1 -1
- package/exports/bundle/drawer-layout.js +1 -1
- package/exports/bundle/drawer.js +2 -2
- package/exports/bundle/dropdown-menu.js +1 -1
- package/exports/bundle/dropdown.js +1 -1
- package/exports/bundle/elements.js +1 -1
- package/exports/bundle/elevation.js +1 -1
- package/exports/bundle/fab.js +1 -1
- package/exports/bundle/file-reader-mixin.js +1 -1
- package/exports/bundle/hash-router.js +1 -1
- package/exports/bundle/icon-button.js +1 -1
- package/exports/bundle/icon-set.js +2 -2
- package/exports/bundle/icon.js +1 -1
- package/exports/bundle/input.js +1 -1
- package/exports/bundle/input2.js +1 -1
- package/exports/bundle/list-item.js +1 -1
- package/exports/bundle/menu.js +1 -1
- package/exports/bundle/minute-field.js +1 -1
- package/exports/bundle/notification.js +1 -1
- package/exports/bundle/notifications.js +1 -1
- package/exports/bundle/pages.js +1 -1
- package/exports/bundle/pane.js +25 -4
- package/exports/bundle/prompt.js +1 -1
- package/exports/bundle/property-EGWO0JMT.js +23 -0
- package/exports/bundle/query-DK39_nIZ.js +1 -0
- package/exports/bundle/rail.js +1 -1
- package/exports/bundle/root.js +1 -1
- package/exports/bundle/row-B1G5fFY7.js +28 -0
- package/exports/bundle/scroll-mixin.js +1 -1
- package/exports/bundle/section.js +2 -2
- package/exports/bundle/section2.js +1 -1
- package/exports/bundle/select-mixin.js +1 -1
- package/exports/bundle/selector-mixin.js +1 -1
- package/exports/bundle/selector.js +1 -1
- package/exports/bundle/summary-mirror.js +1 -1
- package/exports/bundle/summary.js +1 -1
- package/exports/bundle/supporting-pane.js +1 -1
- package/exports/bundle/tab.js +1 -1
- package/exports/bundle/tabs.js +1 -1
- package/exports/bundle/text-field.js +1 -1
- package/exports/bundle/theme.js +1 -1
- package/exports/bundle/time-picker.js +1 -1
- package/exports/bundle/toggle-button.js +1 -1
- package/exports/bundle/toggle.js +1 -1
- package/exports/bundle/top-app-bar.js +2 -2
- package/exports/bundle/typography.js +1 -1
- package/exports/bundle/upload-file.js +1 -1
- package/exports/bundle/upload-image.js +34 -32
- package/exports/{apis → src/apis}/device.d.ts +1 -1
- package/exports/{drawer → src/drawer}/drawer-layout.d.ts +1 -1
- package/exports/{mixins → src/mixins}/select-mixin.d.ts +2 -2
- package/exports/{notification → src/notification}/notifications.d.ts +1 -1
- package/exports/{places → src/places}/input.d.ts +1 -1
- package/exports/{router → src/router}/hash-router.d.ts +2 -2
- package/package.json +517 -525
- package/exports/bundle/column-CLFZeRaw.js +0 -1
- package/exports/bundle/custom-element-B_TPyPQO.js +0 -1
- package/exports/bundle/dark-mode-m29sAj4H.js +0 -11
- package/exports/bundle/property-CMTrOHQk.js +0 -23
- package/exports/bundle/query-DCTzLeFk.js +0 -1
- package/exports/bundle/row-DZm4UH0H.js +0 -28
- package/exports/mixins/scroll-mixin.d.ts +0 -11
- package/exports/section/section.d.ts +0 -17
- /package/exports/{banner → src/banner}/banner.d.ts +0 -0
- /package/exports/{bar → src/bar}/top-app-bar.d.ts +0 -0
- /package/exports/{button → src/button}/button.d.ts +0 -0
- /package/exports/{button → src/button}/icon-button.d.ts +0 -0
- /package/exports/{button → src/button}/styles/button.css.d.ts +0 -0
- /package/exports/{card → src/card}/card.d.ts +0 -0
- /package/exports/{demo → src/demo}/code.d.ts +0 -0
- /package/exports/{demo → src/demo}/demo-icons.d.ts +0 -0
- /package/exports/{demo → src/demo}/demo-shell.d.ts +0 -0
- /package/exports/{demo → src/demo}/demo.d.ts +0 -0
- /package/exports/{demo → src/demo}/section.d.ts +0 -0
- /package/exports/{demo-elements.d.ts → src/demo-elements.d.ts} +0 -0
- /package/exports/{dialog → src/dialog}/dialog.d.ts +0 -0
- /package/exports/{divider → src/divider}/divider.d.ts +0 -0
- /package/exports/{drawer → src/drawer}/drawer-button.d.ts +0 -0
- /package/exports/{drawer → src/drawer}/drawer-item.d.ts +0 -0
- /package/exports/{drawer → src/drawer}/drawer.d.ts +0 -0
- /package/exports/{dropdown → src/dropdown}/dropdown-menu.d.ts +0 -0
- /package/exports/{dropdown → src/dropdown}/dropdown.d.ts +0 -0
- /package/exports/{elements.d.ts → src/elements.d.ts} +0 -0
- /package/exports/{elevation → src/elevation}/elevation.d.ts +0 -0
- /package/exports/{fab → src/fab}/fab.d.ts +0 -0
- /package/exports/{icon → src/icon}/icon-set.d.ts +0 -0
- /package/exports/{icon → src/icon}/icon.d.ts +0 -0
- /package/exports/{list → src/list}/list-item.d.ts +0 -0
- /package/exports/{list → src/list}/list.d.ts +0 -0
- /package/exports/{menu → src/menu}/menu.d.ts +0 -0
- /package/exports/{mixins → src/mixins}/selector-mixin.d.ts +0 -0
- /package/exports/{notification → src/notification}/notification.d.ts +0 -0
- /package/exports/{pages → src/pages}/pages.d.ts +0 -0
- /package/exports/{pane → src/pane}/pane.d.ts +0 -0
- /package/exports/{prompt → src/prompt}/prompt.d.ts +0 -0
- /package/exports/{rail → src/rail}/rail.d.ts +0 -0
- /package/exports/{root → src/root}/root.d.ts +0 -0
- /package/exports/{selector → src/selector}/selector.d.ts +0 -0
- /package/exports/{summary → src/summary}/summary-mirror.d.ts +0 -0
- /package/exports/{summary → src/summary}/summary.d.ts +0 -0
- /package/exports/{supporting-pane → src/supporting-pane}/supporting-pane.d.ts +0 -0
- /package/exports/{tabs → src/tabs}/menu.d.ts +0 -0
- /package/exports/{tabs → src/tabs}/tab.d.ts +0 -0
- /package/exports/{tabs → src/tabs}/tabs.d.ts +0 -0
- /package/exports/{text-field → src/text-field}/text-field.d.ts +0 -0
- /package/exports/{theme → src/theme}/theme.d.ts +0 -0
- /package/exports/{time-picker → src/time-picker}/dial.d.ts +0 -0
- /package/exports/{time-picker → src/time-picker}/hour-field.d.ts +0 -0
- /package/exports/{time-picker → src/time-picker}/input.d.ts +0 -0
- /package/exports/{time-picker → src/time-picker}/minute-field.d.ts +0 -0
- /package/exports/{time-picker → src/time-picker}/time-picker.d.ts +0 -0
- /package/exports/{toggle → src/toggle}/toggle-button.d.ts +0 -0
- /package/exports/{toggle → src/toggle}/toggle.d.ts +0 -0
- /package/exports/{types.d.ts → src/types.d.ts} +0 -0
- /package/exports/{typography → src/typography}/title.d.ts +0 -0
- /package/exports/{typography → src/typography}/typography.d.ts +0 -0
- /package/exports/{upload → src/upload}/upload-file.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as e}from"./row-DZm4UH0H.js";customElements.define("flex-column",class FlexColumn extends e{constructor(){super(),this.direction="column"}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return(n,{addInitializer:o})=>{o((function(){const o=e??n.name.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase();customElements.get(o)?console.warn(`possibly importing double code or ${e} aleady taken`):customElements.define(o,this)}))}}export{e};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const t=globalThis,e=t.trustedTypes,i=e?e.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+o,l=`<${h}>`,a=document,c=()=>a.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,p="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,_=/>/g,A=RegExp(`>|${p}(?:([^\\s"'>=/]+)(${p}*=${p}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),m=/'/g,g=/"/g,f=/^(?:script|style|textarea|title)$/i,v=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),y=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),x=new WeakMap,C=a.createTreeWalker(a,129);function w(t,e){if(!d(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==i?i.createHTML(e):e}const T=(t,e)=>{const i=t.length-1,h=[];let a,c=2===e?"<svg>":3===e?"<math>":"",u=b;for(let e=0;e<i;e++){const i=t[e];let d,p,v=-1,y=0;for(;y<i.length&&(u.lastIndex=y,p=u.exec(i),null!==p);)y=u.lastIndex,u===b?"!--"===p[1]?u=$:void 0!==p[1]?u=_:void 0!==p[2]?(f.test(p[2])&&(a=RegExp("</"+p[2],"g")),u=A):void 0!==p[3]&&(u=A):u===A?">"===p[0]?(u=a??b,v=-1):void 0===p[1]?v=-2:(v=u.lastIndex-p[2].length,d=p[1],u=void 0===p[3]?A:'"'===p[3]?g:m):u===g||u===m?u=A:u===$||u===_?u=b:(u=A,a=void 0);const S=u===A&&t[e+1].startsWith("/>")?" ":"";c+=u===b?i+l:v>=0?(h.push(d),i.slice(0,v)+r+i.slice(v)+o+S):i+o+(-2===v?e:S)}return[w(t,c+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),h]};class N{constructor({strings:t,_$litType$:i},l){let a;this.parts=[];let u=0,d=0;const p=t.length-1,b=this.parts,[$,_]=T(t,i);if(this.el=N.createElement($,l),C.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=C.nextNode())&&b.length<p;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(r)){const e=_[d++],i=a.getAttribute(t).split(o),r=/([.?@])?(.*)/.exec(e);b.push({type:1,index:u,name:r[2],strings:i,ctor:"."===r[1]?H:"?"===r[1]?I:"@"===r[1]?L:k}),a.removeAttribute(t)}else t.startsWith(o)&&(b.push({type:6,index:u}),a.removeAttribute(t));if(f.test(a.tagName)){const t=a.textContent.split(o),i=t.length-1;if(i>0){a.textContent=e?e.emptyScript:"";for(let e=0;e<i;e++)a.append(t[e],c()),C.nextNode(),b.push({type:2,index:++u});a.append(t[i],c())}}}else if(8===a.nodeType)if(a.data===h)b.push({type:2,index:u});else{let t=-1;for(;-1!==(t=a.data.indexOf(o,t+1));)b.push({type:7,index:u}),t+=o.length-1}u++}}static createElement(t,e){const i=a.createElement("template");return i.innerHTML=t,i}}function E(t,e,i=t,r){if(e===y)return e;let o=void 0!==r?i._$Co?.[r]:i._$Cl;const h=u(e)?void 0:e._$litDirective$;return o?.constructor!==h&&(o?._$AO?.(!1),void 0===h?o=void 0:(o=new h(t),o._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=o:i._$Cl=o),void 0!==o&&(e=E(t,o._$AS(t,e.values),o,r)),e}class M{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){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??a).importNode(e,!0);C.currentNode=r;let o=C.nextNode(),h=0,l=0,c=i[0];for(;void 0!==c;){if(h===c.index){let e;2===c.type?e=new R(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new z(o,this,t)),this._$AV.push(e),c=i[++l]}h!==c?.index&&(o=C.nextNode(),h++)}return C.currentNode=a,r}p(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 R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==y&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>d(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(a.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=N.createElement(w(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new M(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=x.get(t.strings);return void 0===e&&x.set(t.strings,e=new N(t)),e}k(t){d(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new R(this.O(c()),this.O(c()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}_$AI(t,e=this,i,r){const o=this.strings;let h=!1;if(void 0===o)t=E(this,t,e,0),h=!u(t)||t!==this._$AH&&t!==y,h&&(this._$AH=t);else{const r=t;let l,a;for(t=o[0],l=0;l<o.length-1;l++)a=E(this,r[i+l],e,l),a===y&&(a=this._$AH[l]),h||=!u(a)||a!==this._$AH[l],a===S?t=S:t!==S&&(t+=(a??"")+o[l+1]),this._$AH[l]=a}h&&!r&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class L extends k{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??S)===y)return;const i=this._$AH,r=t===S&&i!==S||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==S&&(i===S||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{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){E(this,t)}}const O=t.litHtmlPolyfillSupport;O?.(N,R),(t.litHtmlVersions??=[]).push("3.3.0");const U=(t,e,i)=>{const r=i?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=i?.renderBefore??null;r._$litPart$=o=new R(e.insertBefore(c(),t),t,void 0,i??{})}return o._$AI(t),o
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2019 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/},B=globalThis,P=B.ShadowRoot&&(void 0===B.ShadyCSS||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),V=new WeakMap;class n{constructor(t,e,i){if(this._$cssResult$=!0,i!==W)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(P&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=V.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&V.set(e,t))}return t}toString(){return this.cssText}}const j=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new n(i,t,W)},D=(t,e)=>{if(P)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=B.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}},q=P?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,W))(e)})(t):t;Symbol.metadata??=Symbol("metadata");let J=class s extends HTMLElement{static get observedAttributes(){return this[Symbol.metadata]?.observedAttributes?.values()??[]}attributeChangedCallback(t,e,i){this[t]===i&&e===i||(this[t]=i,this.attributeChangeTimeout&&clearTimeout(this.attributeChangeTimeout),this.attributeChangeTimeout=setTimeout((()=>{this.requestRender()}),this.renderedOnce?150:0))}constructor(){super(),this.renderedOnce=!1,this.listeners=[],this.rendered=new Promise((t=>{this.renderResolve=t})),this.attachShadow({mode:"open"});const t=customElements.get(this.localName);this.shadowRoot.adoptedStyleSheets=t.styles?t.styles.map((t=>t.styleSheet??t)):[]}connectedCallback(){this.beforeRender?.(),this.requestRender(),this.renderedOnce=!0,this.renderResolve(!0),this.firstRender?.()}disconnectedCallback(){for(const[t,e]of this.listeners)this.removeEventListener(t,e)}render(){return v`<slot></slot>`}requestRender(){U(this.render(),this.shadowRoot)}addListener(t,e){this.listeners.push([t,e]),this.addEventListener(t,e)}};class LittlePubSub{subscribers={};verbose;constructor(t){this.verbose=t}_handleContext(t,e){return void 0===e&&(e=t),e}hasSubscribers(t){return!!this.subscribers[t]}getValue(t){if(this.subscribers[t])return this.subscribers[t].value}subscribe(t,e,i){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[],value:void 0});const r=this._handleContext(e,i?.context),o=e.bind(r);this.subscribers[t].handlers.push(o),void 0!==this.subscribers[t].value&&o(this.subscribers[t].value,void 0)}unsubscribe(t,e,i){if(i||(i={keepValue:!1}),!this.hasSubscribers(t))return;const r=this._handleContext(e,i.context),o=this.subscribers[t].handlers.indexOf(e.bind(r));this.subscribers[t].handlers.splice(o),0!==this.subscribers[t].handlers.length||i.keepValue||delete this.subscribers[t]}publish(t,e,i){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[]});const r=this.subscribers[t]?.value;if(this.verbose||i||r!==e){this.subscribers[t].value=e;for(const i of this.subscribers[t].handlers)i(e,r)}}publishVerbose(t,e){this.publish(t,e,!0)}once(t,e){return new Promise((i=>{const r=o=>{i(o),this.unsubscribe(t,r,e)};this.subscribe(t,r,e)}))}}const Z=(t,e)=>{let i=t;return e===Boolean?i=Boolean("true"===t):e===Number?i=Number(t):e===Uint8Array?i=new Uint8Array(t.split(",")):e!==Array&&e!==Object&&e!==WeakMap&&e!==Map&&e!==Uint8Array||(i=JSON.parse(t),e===Map&&(i=new Map(t)),e===WeakMap&&(i=new WeakMap(t))),i};globalThis.pubsub=globalThis.pubsub||new LittlePubSub;const F={type:String,reflect:!1,renders:!0,batchDelay:50,temporaryRender:10},G=t=>{t={...F,...t};let e=0;return function(i,{kind:r,name:o,addInitializer:h,access:l,metadata:a}){const{type:c,reflect:u,renders:d,batches:p,batchDelay:b,consumer:$,provider:_,temporaryRender:A}=t,m=t.attribute??u,g=String(o),f=m&&"string"==typeof m?m:g,v=c===Boolean,y=$||"boolean"==typeof t.consumes?f:t.consumes,S=_||"boolean"==typeof t.provides?f:t.provides;if(t.provider&&console.warn(`${g}: 'options.provider' is deprecated, use options.provides instead`),t.consumer&&console.warn(`${g}: 'options.consumer' is deprecated, use options.consumes instead`),h((function(){"accessor"!==r&&console.warn(`${this.localName}: @property(${t}) ${g} ${r} is not supported`),m&&(a||(a={}),a.observedAttributes||(a.observedAttributes=new Map),a.observedAttributes.set(g,f)),y&&pubsub.subscribe(y,(async t=>{this[o]=t}))})),"accessor"===r)return{get(){return x.call(this)},set(t){return C.call(this,t)},init(t){return this.hasAttribute(f)&&(t=v?this.hasAttribute(f):Z(this.getAttribute(f),c)),void 0===t||y||C.call(this,t),this[o]}};function x(){return m?v?this.hasAttribute(f):Z(this.getAttribute(f),c):this[`__lite_${g}`]?this[`__lite_${g}`]:this[`_lite_${g}`]}async function C(t){if(S&&pubsub.publish(S,t),this[`_lite_${g}`]!==t){this.beforeChange&&await this.beforeChange(o,t),this.willChange&&(this[`__lite_${g}`]=await this.willChange(o,t)),m?v?t||this[`__lite_${g}`]?this.setAttribute(f,""):this.removeAttribute(f):t||this[`__lite_${g}`]?this.setAttribute(f,((t,e)=>{let i=e;if(t===Boolean||t===Number||t===Uint8Array)return e.toString();if(t===Array||t===Object||t===WeakMap||t===Map||t===Uint8Array){let r;t!==Map&&t!==WeakMap||(r=Object(e).entries()),i=JSON.stringify(r)}return i})(c,this[`__lite_${g}`]??t)):this.removeAttribute(f):this[`_lite_${g}`]=t;const i=()=>{e=0,d&&this.requestRender?.(),this.onChange?.(o,this[`__lite_${g}`]??t)};p&&(e!==A||this.renderedOnce)?(this[`_${g}_timeout`]&&clearTimeout(this[`_${g}_timeout`]),this[`_${g}_timeout`]=setTimeout(i,b)):i()}}}};globalThis.pubsub=globalThis.pubsub||new LittlePubSub;export{U as B,S as E,LittlePubSub as L,D as S,y as T,q as c,j as i,G as r,J as s,v as x};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{c as t,S as e,B as s,T as r}from"./dark-mode-m29sAj4H.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const{is:o,defineProperty:n,getOwnPropertyDescriptor:a,getOwnPropertyNames:h,getOwnPropertySymbols:c,getPrototypeOf:d}=Object,l=globalThis,p=l.trustedTypes,u=p?p.emptyScript:"",f=l.reactiveElementPolyfillSupport,E=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},$=(t,e)=>!o(t,e),m={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:$};Symbol.metadata??=Symbol("metadata"),l.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);void 0!==r&&n(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:o}=a(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const n=r?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??m}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...h(t),...c(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const s=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)s.unshift(t(e))}else void 0!==e&&s.push(t(e));return s}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return e(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(void 0!==r&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:_).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,r=s._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=s.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:_;this._$Em=r,this[r]=o.fromAttribute(e,t.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const r=this.constructor,o=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??$)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,s,r)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[E("elementProperties")]=new Map,y[E("finalized")]=new Map,f?.({ReactiveElement:y}),(l.reactiveElementVersions??=[]).push("2.1.0");
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/
|
|
12
|
-
const b=globalThis;class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=s(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r}}i._$litElement$=!0,i.finalized=!0,b.litElementHydrateSupport?.({LitElement:i});const g=b.litElementPolyfillSupport;g?.({LitElement:i}),(b.litElementVersions??=[]).push("4.2.0");
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright 2017 Google LLC
|
|
16
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/
|
|
18
|
-
const P=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/,v={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:$},w=(t=v,e,s)=>{const{kind:r,metadata:o}=s;let n=globalThis.litPropertyMetadata.get(o);if(void 0===n&&globalThis.litPropertyMetadata.set(o,n=new Map),"setter"===r&&((t=Object.create(t)).wrapped=!0),n.set(s.name,t),"accessor"===r){const{name:r}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(r,o,t)},init(e){return void 0!==e&&this.C(r,void 0,t,e),e}}}if("setter"===r){const{name:r}=s;return function(s){const o=this[r];e.call(this,s),this.requestUpdate(r,o,t)}}throw Error("Unsupported decorator location: "+r)};function U(t){return(e,s)=>"object"==typeof s?w(t,e,s):((t,e,s)=>{const r=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),r?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}export{i,U as n,P as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=e=>function(t,{kind:o,name:r,access:s,addInitializer:n}){return"accessor"!==o&&n((function(){console.warn(`${this.localName}: @query(${e}) ${String(r)} ${o} is not supported`)})),{get(){return(this.shadowRoot?this.shadowRoot.querySelector(e):this.querySelector(e))||this.querySelector(e)}}};export{e as t};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import{s as t,r as e,x as s}from"./dark-mode-m29sAj4H.js";var i=function(t,e,s,i,a,n){function r(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var c,o=i.kind,d="getter"===o?"get":"setter"===o?"set":"value",h=!e&&t?i.static?t:t.prototype:null,g=e||(h?Object.getOwnPropertyDescriptor(h,i.name):{}),l=!1,m=s.length-1;m>=0;m--){var u={};for(var p in i)u[p]="access"===p?{}:i[p];for(var p in i.access)u.access[p]=i.access[p];u.addInitializer=function(t){if(l)throw new TypeError("Cannot add initializers after decoration has completed");n.push(r(t||null))};var _=(0,s[m])("accessor"===o?{get:g.get,set:g.set}:g[d],u);if("accessor"===o){if(void 0===_)continue;if(null===_||"object"!=typeof _)throw new TypeError("Object expected");(c=r(_.get))&&(g.get=c),(c=r(_.set))&&(g.set=c),(c=r(_.init))&&a.unshift(c)}else(c=r(_))&&("field"===o?a.unshift(c):g[d]=c)}h&&Object.defineProperty(h,i.name,g),l=!0},a=function(t,e,s){for(var i=arguments.length>2,a=0;a<e.length;a++)s=i?e[a].call(t,s):e[a].call(t);return i?s:void 0};let n=(()=>{let n,r,c,o,d,h,g,l,m,u,p=t,_=[],f=[],y=[],x=[],v=[],w=[],b=[],S=[],j=[],C=[],W=[],z=[],k=[],I=[],$=[],O=[],E=[],F=[],P=[],T=[];return class FlexDisplay extends p{static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;n=[e({type:String})],r=[e({type:String})],c=[e({type:String})],o=[e({type:String})],d=[e({type:String,reflect:!0})],h=[e({type:Boolean,reflect:!0})],g=[e({type:Boolean,reflect:!0,attribute:"center-center"})],l=[e({type:String})],m=[e({type:String})],u=[e({type:String})],i(this,null,n,{kind:"accessor",name:"padding",static:!1,private:!1,access:{has:t=>"padding"in t,get:t=>t.padding,set:(t,e)=>{t.padding=e}},metadata:t},_,f),i(this,null,r,{kind:"accessor",name:"minWidth",static:!1,private:!1,access:{has:t=>"minWidth"in t,get:t=>t.minWidth,set:(t,e)=>{t.minWidth=e}},metadata:t},y,x),i(this,null,c,{kind:"accessor",name:"maxWidth",static:!1,private:!1,access:{has:t=>"maxWidth"in t,get:t=>t.maxWidth,set:(t,e)=>{t.maxWidth=e}},metadata:t},v,w),i(this,null,o,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:t=>"width"in t,get:t=>t.width,set:(t,e)=>{t.width=e}},metadata:t},b,S),i(this,null,d,{kind:"accessor",name:"direction",static:!1,private:!1,access:{has:t=>"direction"in t,get:t=>t.direction,set:(t,e)=>{t.direction=e}},metadata:t},j,C),i(this,null,h,{kind:"accessor",name:"center",static:!1,private:!1,access:{has:t=>"center"in t,get:t=>t.center,set:(t,e)=>{t.center=e}},metadata:t},W,z),i(this,null,g,{kind:"accessor",name:"centerCenter",static:!1,private:!1,access:{has:t=>"centerCenter"in t,get:t=>t.centerCenter,set:(t,e)=>{t.centerCenter=e}},metadata:t},k,I),i(this,null,l,{kind:"accessor",name:"justifyContent",static:!1,private:!1,access:{has:t=>"justifyContent"in t,get:t=>t.justifyContent,set:(t,e)=>{t.justifyContent=e}},metadata:t},$,O),i(this,null,m,{kind:"accessor",name:"alignItems",static:!1,private:!1,access:{has:t=>"alignItems"in t,get:t=>t.alignItems,set:(t,e)=>{t.alignItems=e}},metadata:t},E,F),i(this,null,u,{kind:"accessor",name:"boxSizing",static:!1,private:!1,access:{has:t=>"boxSizing"in t,get:t=>t.boxSizing,set:(t,e)=>{t.boxSizing=e}},metadata:t},P,T),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#t=a(this,_,"0");get padding(){return this.#t}set padding(t){this.#t=t}#e=(a(this,f),a(this,y,"auto"));get minWidth(){return this.#e}set minWidth(t){this.#e=t}#s=(a(this,x),a(this,v,"auto"));get maxWidth(){return this.#s}set maxWidth(t){this.#s=t}#i=(a(this,w),a(this,b,"100%"));get width(){return this.#i}set width(t){this.#i=t}#a=(a(this,S),a(this,j,"row"));get direction(){return this.#a}set direction(t){this.#a=t}#n=(a(this,C),a(this,W,void 0));get center(){return this.#n}set center(t){this.#n=t}#r=(a(this,z),a(this,k,void 0));get centerCenter(){return this.#r}set centerCenter(t){this.#r=t}#c=(a(this,I),a(this,$,"flex-start"));get justifyContent(){return this.#c}set justifyContent(t){this.#c=t}#o=(a(this,O),a(this,E,"flex-start"));get alignItems(){return this.#o}set alignItems(t){this.#o=t}#d=(a(this,F),a(this,P,"border-box"));get boxSizing(){return this.#d}set boxSizing(t){this.#d=t}render(){return s`
|
|
2
|
-
<style>
|
|
3
|
-
:host {
|
|
4
|
-
display: flex;
|
|
5
|
-
box-sizing: var(--flex-display-box-sizing, ${this.boxSizing});
|
|
6
|
-
max-width: var(--flex-display-max-width, ${this.maxWidth});
|
|
7
|
-
min-width: var(--flex-display-min-width, ${this.minWidth});
|
|
8
|
-
width: var(--flex-display-width, ${this.width});
|
|
9
|
-
flex-direction: var(--flex-display-direction, ${this.direction});
|
|
10
|
-
justify-content: var(
|
|
11
|
-
--flex-display-justify-content,
|
|
12
|
-
${this.justifyContent}
|
|
13
|
-
);
|
|
14
|
-
align-items: var(--flex-display-align-items, ${this.alignItems});
|
|
15
|
-
padding: var(--flex-display-padding, ${this.padding});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([center]) {
|
|
19
|
-
align-items: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:host([center-center]) {
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
27
|
-
<slot></slot>
|
|
28
|
-
`}constructor(){super(...arguments),a(this,T)}}})();customElements.define("flex-row",class FlexRow extends n{constructor(){super(),this.direction="row",this.width="auto"}});export{n as F};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './../elevation/elevation.js';
|
|
2
|
-
declare const CustomSection_base: {
|
|
3
|
-
new (): {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
scrolling: any;
|
|
6
|
-
scrollElement: any;
|
|
7
|
-
"__#2@#onscroll": () => void;
|
|
8
|
-
firstRender(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
};
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
};
|
|
13
|
-
export declare class CustomSection extends CustomSection_base {
|
|
14
|
-
static styles: import("lit").CSSResult[];
|
|
15
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|