@vandeurenglenn/lite-elements 0.3.85 → 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-AFovKiD8.js → dark-mode2-DBD32xmy.js} +1 -1
- package/exports/bundle/demo-elements.js +1 -1
- package/exports/bundle/demo-icons.js +1 -1
- 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 +1 -1
- 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 +19 -19
- package/package.json +7 -7
- package/exports/bundle/column-Ci52gPdn.js +0 -1
- package/exports/bundle/custom-element-B_TPyPQO.js +0 -1
- package/exports/bundle/dark-mode2-CXqeCi6t.js +0 -11
- package/exports/bundle/property-CChxy2ZU.js +0 -23
- package/exports/bundle/query-DCTzLeFk.js +0 -1
- package/exports/bundle/row-CEpFJOUe.js +0 -28
package/exports/bundle/banner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import"./icon-button.js";import{
|
|
1
|
+
import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import"./icon-button.js";import{t as e,b as i}from"./dark-mode2-CBfmAvIL.js";import{e as s}from"./custom-element-Wj8bC3gl.js";import"./it-Dft_Rjy-.js";import"./button.js";import"./elevation.js";import"./button.css.js";import"./icon.js";let n=(()=>{let n,r,a=[s("custom-banner")],l=[],m=e;return class extends m{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,n={value:r},a,{kind:"class",name:r.name,metadata:e},null,l),r=n.value,e&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),o(r,l)}render(){return i`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: flex;
|
package/exports/bundle/button.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,r as a,
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as s,r as a,b as o}from"./dark-mode2-CBfmAvIL.js";import{e as l}from"./custom-element-Wj8bC3gl.js";import"./elevation.js";import c from"./button.css.js";let r=(()=>{let r,i,n,h,b,m,u=[l("custom-button")],g=[],d=s,p=[],_=[],y=[],f=[],v=[],L=[],I=[],j=[];return class extends d{static{i=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[a({attribute:"has-icon",reflect:!0})],h=[a({attribute:"type",reflect:!0})],b=[a({attribute:!0})],m=[a({attribute:"has-label",reflect:!0})],t(this,null,n,{kind:"accessor",name:"hasIcon",static:!1,private:!1,access:{has:t=>"hasIcon"in t,get:t=>t.hasIcon,set:(t,e)=>{t.hasIcon=e}},metadata:e},p,_),t(this,null,h,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},y,f),t(this,null,b,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:t=>"label"in t,get:t=>t.label,set:(t,e)=>{t.label=e}},metadata:e},v,L),t(this,null,m,{kind:"accessor",name:"hasLabel",static:!1,private:!1,access:{has:t=>"hasLabel"in t,get:t=>t.hasLabel,set:(t,e)=>{t.hasLabel=e}},metadata:e},I,j),t(null,r={value:i},u,{kind:"class",name:i.name,metadata:e},null,g),i=r.value,e&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,p,void 0);get hasIcon(){return this.#t}set hasIcon(t){this.#t=t}#e=(e(this,_),e(this,y,"text"));get type(){return this.#e}set type(t){this.#e=t}#s=(e(this,f),e(this,v,void 0));get label(){return this.#s}set label(t){this.#s=t}#a=(e(this,L),e(this,I,void 0));get hasLabel(){return this.#a}set hasLabel(t){this.#a=t}static styles=[c];firstRender(){const t=Array.from(this.shadowRoot.querySelectorAll("slot"));for(const e of t)e.addEventListener("slotchange",()=>this.#o(e));if(t?.length>0)for(const e of t)this.#o(e)}onChange(t,e){"label"===t&&(this.hasLabel=!!e)}#o=(e(this,j),t=>{"icon"===t.getAttribute("name")&&(this.hasIcon=0!==Array.from(t?.assignedNodes()||[]).length)});render(){return o`
|
|
2
2
|
<button label=${this.label}>
|
|
3
3
|
<custom-elevation></custom-elevation>
|
|
4
4
|
<slot name="icon"></slot>
|
package/exports/bundle/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as o,b as s}from"./dark-mode2-CBfmAvIL.js";import{e as a}from"./custom-element-Wj8bC3gl.js";import"./button.js";import"./divider.js";import"./elevation.js";import"./button.css.js";let i=(()=>{let i,l,r=[a("custom-card")],n=[],d=o;return class extends d{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;e(null,i={value:l},r,{kind:"class",name:l.name,metadata:t},null,n),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}dividerType;type="elevated";elevationLevel=0;static properties={hasDivider:{type:Boolean},elevationLevel:{type:Number}};renderDivider(){const e=this.shadowRoot.querySelector('slot[name="actions"]');return 0!==Array.from(e?.assignedNodes()||[]).length?s`<custom-divider
|
|
2
2
|
?inset=${"inset"===this.dividerType}
|
|
3
3
|
?middle-inset=${"inset"===this.dividerType}
|
|
4
4
|
></custom-divider>`:""}render(){return s`
|
package/exports/bundle/code.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a}from"./tslib.es6-B87RQr7F.js";import{t,r as o,i as r,b as s}from"./dark-mode2-CBfmAvIL.js";import{e as c}from"./custom-element-Wj8bC3gl.js";let i=(()=>{let i,l,d,n=[c("demo-code")],m=[],u=t,g=[],p=[];return class extends u{static{l=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;d=[o({type:String})],e(this,null,d,{kind:"accessor",name:"code",static:!1,private:!1,access:{has:e=>"code"in e,get:e=>e.code,set:(e,a)=>{e.code=a}},metadata:a},g,p),e(null,i={value:l},n,{kind:"class",name:l.name,metadata:a},null,m),l=i.value,a&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})}#e=a(this,g,void 0);get code(){return this.#e}set code(e){this.#e=e}static styles=[r`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as o}from"./row-B1G5fFY7.js";import"./dark-mode2-CBfmAvIL.js";customElements.define("flex-column",class FlexColumn extends o{constructor(){super(),this.direction="column"}});
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const e=globalThis,s=e=>e,r=e.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:e=>e}):void 0,h="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,d="?"+l,a=`<${d}>`,u=document,c=()=>u.createComment(""),b=e=>null===e||"object"!=typeof e&&"function"!=typeof e,p=Array.isArray,$="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,f=/>/g,v=RegExp(`>|${$}(?:([^\\s"'>=/]+)(${$}*=${$}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,m=/"/g,y=/^(?:script|style|textarea|title)$/i,w=(e=>(s,...r)=>({_$litType$:e,strings:s,values:r}))(1),C=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),T=new WeakMap,M=u.createTreeWalker(u,129);function N(e,s){if(!p(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(s):s}const P=(e,s)=>{const r=e.length-1,o=[];let d,u=2===s?"<svg>":3===s?"<math>":"",c=_;for(let s=0;s<r;s++){const r=e[s];let b,p,$=-1,w=0;for(;w<r.length&&(c.lastIndex=w,p=c.exec(r),null!==p);)w=c.lastIndex,c===_?"!--"===p[1]?c=A:void 0!==p[1]?c=f:void 0!==p[2]?(y.test(p[2])&&(d=RegExp("</"+p[2],"g")),c=v):void 0!==p[3]&&(c=v):c===v?">"===p[0]?(c=d??_,$=-1):void 0===p[1]?$=-2:($=c.lastIndex-p[2].length,b=p[1],c=void 0===p[3]?v:'"'===p[3]?m:g):c===m||c===g?c=v:c===A||c===f?c=_:(c=v,d=void 0);const C=c===v&&e[s+1].startsWith("/>")?" ":"";u+=c===_?r+a:$>=0?(o.push(b),r.slice(0,$)+h+r.slice($)+l+C):r+l+(-2===$?s:C)}return[N(e,u+(e[r]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),o]};let O=class S{constructor({strings:e,_$litType$:s},o){let a;this.parts=[];let u=0,b=0;const p=e.length-1,$=this.parts,[_,A]=P(e,s);if(this.el=S.createElement(_,o),M.currentNode=this.el.content,2===s||3===s){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=M.nextNode())&&$.length<p;){if(1===a.nodeType){if(a.hasAttributes())for(const e of a.getAttributeNames())if(e.endsWith(h)){const s=A[b++],r=a.getAttribute(e).split(l),o=/([.?@])?(.*)/.exec(s);$.push({type:1,index:u,name:o[2],strings:r,ctor:"."===o[1]?I:"?"===o[1]?L:"@"===o[1]?z:H}),a.removeAttribute(e)}else e.startsWith(l)&&($.push({type:6,index:u}),a.removeAttribute(e));if(y.test(a.tagName)){const e=a.textContent.split(l),s=e.length-1;if(s>0){a.textContent=r?r.emptyScript:"";for(let r=0;r<s;r++)a.append(e[r],c()),M.nextNode(),$.push({type:2,index:++u});a.append(e[s],c())}}}else if(8===a.nodeType)if(a.data===d)$.push({type:2,index:u});else{let e=-1;for(;-1!==(e=a.data.indexOf(l,e+1));)$.push({type:7,index:u}),e+=l.length-1}u++}}static createElement(e,s){const r=u.createElement("template");return r.innerHTML=e,r}};function E(e,s,r=e,o){if(s===C)return s;let h=void 0!==o?r._$Co?.[o]:r._$Cl;const l=b(s)?void 0:s._$litDirective$;return h?.constructor!==l&&(h?._$AO?.(!1),void 0===l?h=void 0:(h=new l(e),h._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=h:r._$Cl=h),void 0!==h&&(s=E(e,h._$AS(e,s.values),h,o)),s}class R{constructor(e,s){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:s},parts:r}=this._$AD,o=(e?.creationScope??u).importNode(s,!0);M.currentNode=o;let h=M.nextNode(),l=0,d=0,a=r[0];for(;void 0!==a;){if(l===a.index){let s;2===a.type?s=new k(h,h.nextSibling,this,e):1===a.type?s=new a.ctor(h,a.name,a.strings,this,e):6===a.type&&(s=new Z(h,this,e)),this._$AV.push(s),a=r[++d]}l!==a?.index&&(h=M.nextNode(),l++)}return M.currentNode=u,o}p(e){let s=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,s),s+=r.strings.length-2):r._$AI(e[s])),s++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,r,o){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const s=this._$AM;return void 0!==s&&11===e?.nodeType&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=E(this,e,s),b(e)?e===x||null==e||""===e?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==C&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>p(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==x&&b(this._$AH)?this._$AA.nextSibling.data=e:this.T(u.createTextNode(e)),this._$AH=e}$(e){const{values:s,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=O.createElement(N(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(s);else{const e=new R(o,this),r=e.u(this.options);e.p(s),this.T(r),this._$AH=e}}_$AC(e){let s=T.get(e.strings);return void 0===s&&T.set(e.strings,s=new O(e)),s}k(e){p(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let r,o=0;for(const h of e)o===s.length?s.push(r=new k(this.O(c()),this.O(c()),this,this.options)):r=s[o],r._$AI(h),o++;o<s.length&&(this._$AR(r&&r._$AB.nextSibling,o),s.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){const r=s(e).nextSibling;s(e).remove(),e=r}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,s,r,o,h){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=s,this._$AM=o,this.options=h,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}_$AI(e,s=this,r,o){const h=this.strings;let l=!1;if(void 0===h)e=E(this,e,s,0),l=!b(e)||e!==this._$AH&&e!==C,l&&(this._$AH=e);else{const o=e;let d,a;for(e=h[0],d=0;d<h.length-1;d++)a=E(this,o[r+d],s,d),a===C&&(a=this._$AH[d]),l||=!b(a)||a!==this._$AH[d],a===x?e=x:e!==x&&(e+=(a??"")+h[d+1]),this._$AH[d]=a}l&&!o&&this.j(e)}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===x?void 0:e}}class L extends H{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==x)}}class z extends H{constructor(e,s,r,o,h){super(e,s,r,o,h),this.type=5}_$AI(e,s=this){if((e=E(this,e,s,0)??x)===C)return;const r=this._$AH,o=e===x&&r!==x||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,h=e!==x&&(r===x||o);o&&this.element.removeEventListener(this.name,this,r),h&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Z{constructor(e,s,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=s,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){E(this,e)}}const U=e.litHtmlPolyfillSupport;U?.(O,k),(e.litHtmlVersions??=[]).push("3.3.2");const B=(e,s,r)=>{const o=r?.renderBefore??s;let h=o._$litPart$;if(void 0===h){const e=r?.renderBefore??null;o._$litPart$=h=new k(s.insertBefore(c(),e),e,void 0,r??{})}return h._$AI(e),h
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2019 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/},W=globalThis,q=W.ShadowRoot&&(void 0===W.ShadyCSS||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j=Symbol(),Q=new WeakMap;let V=class n{constructor(e,s,r){if(this._$cssResult$=!0,r!==j)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=s}get styleSheet(){let e=this.o;const s=this.t;if(q&&void 0===e){const r=void 0!==s&&1===s.length;r&&(e=Q.get(s)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Q.set(s,e))}return e}toString(){return this.cssText}};const D=(e,...s)=>{const r=1===e.length?e[0]:s.reduce((s,r,o)=>s+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new V(r,e,j)},J=(e,s)=>{if(q)e.adoptedStyleSheets=s.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const r of s){const s=document.createElement("style"),o=W.litNonce;void 0!==o&&s.setAttribute("nonce",o),s.textContent=r.cssText,e.appendChild(s)}},F=q?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let s="";for(const r of e.cssRules)s+=r.cssText;return(e=>new V("string"==typeof e?e:e+"",void 0,j))(s)})(e):e;Symbol.metadata??=Symbol("metadata");class t extends HTMLElement{static resolvedRenderedPromise=Promise.resolve(!0);static renderQueue=new Set;static flushScheduled=!1;static flushRenderQueue=()=>{t.flushScheduled=!1;const e=t.renderQueue;t.renderQueue=new Set;for(const s of e)s.performQueuedRender()};renderResolve;renderedPromise=t.resolvedRenderedPromise;renderedPending=!1;renderedOnce=!1;listeners=[];renderScheduled=!1;_lite_reflecting=!1;performQueuedRender(){B(this.render(),this.shadowRoot),this.renderScheduled=!1,this.resolveRendered()}get rendered(){return!this.renderedPending&&this.renderScheduled&&this.ensureRenderedPromise(),this.renderedPromise}constructor(){super(),this.attachShadow({mode:"open"}),this.applyStyles()}ensureRenderedPromise(){this.renderedPending||(this.renderedPending=!0,this.renderedPromise=new Promise(e=>{this.renderResolve=e}))}resolveRendered(){this.renderedPending&&(this.renderResolve?.(!0),this.renderResolve=void 0,this.renderedPending=!1,this.renderedPromise=t.resolvedRenderedPromise)}applyStyles(){const e=this.constructor,s=e.styles;if(s){let r=e.__adoptedStyleSheets;r||(r=(Array.isArray(s)?s:[s]).map(e=>e.styleSheet??e),e.__adoptedStyleSheets=r),this.shadowRoot.adoptedStyleSheets=r}}static get observedAttributes(){return this[Symbol.metadata]?.observedAttributes?.values()??[]}attributeChangedCallback(e,s,r){this._lite_reflecting||this[e]===r&&s===r||(this[e]=r,this.requestRender())}connectedCallback(){this.beforeRender&&this.beforeRender(),this.requestRender(),this.renderedOnce=!0,this.firstRender&&this.firstRender()}disconnectedCallback(){for(const[e,s]of this.listeners)this.removeEventListener(e,s)}render(){return w`<slot></slot>`}requestRender(){if(!this.renderedOnce)return B(this.render(),this.shadowRoot),void this.resolveRendered();this.renderScheduled||(this.renderScheduled=!0,t.renderQueue.add(this),t.flushScheduled||(t.flushScheduled=!0,queueMicrotask(t.flushRenderQueue)))}static styles;addListener(e,s){this.listeners.push([e,s]),this.addEventListener(e,s)}}class LittlePubSub{subscribers=new Map;verbose;constructor(e){this.verbose=e??!1}hasSubscribers(e){return this.subscribers.has(e)}subscriberCount(e){return this.subscribers.get(e)?.handlers.length??0}clear(){this.subscribers.clear()}getValue(e){return this.subscribers.get(e)?.value}subscribe(e,s,r){let o=this.subscribers.get(e);void 0===o&&(o={handlers:[],value:void 0},this.subscribers.set(e,o));const h=r?.context,l=h?s.bind(h):s;return o.handlers.push({original:s,bound:l}),void 0!==o.value&&l(o.value,void 0),()=>this.unsubscribe(e,s,r)}unsubscribe(e,s,r){const o=this.subscribers.get(e);if(void 0===o)return;const h=o.handlers;for(let e=0,r=h.length;e<r;e++)if(h[e].original===s){h.splice(e,1);break}0!==h.length||r?.keepValue||this.subscribers.delete(e)}publish(e,s,r){let o=this.subscribers.get(e);void 0===o&&(o={handlers:[],value:void 0},this.subscribers.set(e,o));const h=o.value;if(this.verbose||r||h!==s){o.value=s;const e=o.handlers,r=e.length;for(let o=0;o<r;o++)e[o].bound(s,h)}}publishVerbose(e,s){this.publish(e,s,!0)}once(e,s){return new Promise((r,o)=>{let h;const l=o=>{void 0!==h&&clearTimeout(h),r(o),this.unsubscribe(e,l,s)};this.subscribe(e,l,s),void 0!==s?.timeout&&(h=setTimeout(()=>{this.unsubscribe(e,l,s),o(new Error(`Timeout waiting for event "${e}"`))},s.timeout))})}}class i extends HTMLElement{observer;loaded=!1;_renderer;set renderer(e){const s=this._renderer!==e;this._renderer=e,this.loaded&&this._renderer&&s?B(this._renderer(),this):this.isConnected&&this.observeOrLoad()}connectedCallback(){this.observeOrLoad()}disconnectedCallback(){this.observer?.disconnect(),this.observer=void 0}observeOrLoad(){!this.loaded&&this._renderer&&(void 0!==globalThis.IntersectionObserver?(this.observer?.disconnect(),this.observer=new IntersectionObserver(e=>{for(const s of e)if(s.isIntersecting)return void this.load()}),this.observer.observe(this)):this.load())}load(){!this.loaded&&this._renderer&&(this.loaded=!0,this.observer?.disconnect(),this.observer=void 0,B(this._renderer(),this))}}customElements.get("lite-lazy-repeat-item")||customElements.define("lite-lazy-repeat-item",i);const G=(e,s)=>{let r=e;return s===Boolean?r=Boolean("true"===e):s===Number?r=Number(e):s===Uint8Array?r=new Uint8Array(e.split(",")):s!==Array&&s!==Object&&s!==WeakMap&&s!==Map&&s!==Uint8Array||(r=JSON.parse(e),s===Map&&(r=new Map(e)),s===WeakMap&&(r=new WeakMap(e))),r};globalThis.pubsub=globalThis.pubsub||new LittlePubSub;const K={type:String,reflect:!1,renders:!0,batchDelay:0},X=e=>(e={...K,...e},function(s,{kind:r,name:o,addInitializer:h,access:l,metadata:d}){const{type:a,reflect:u,renders:c,batches:b,batchDelay:p,consumer:$,provider:_}=e,A=e.attribute??u,f=String(o),v=A&&"string"==typeof A?A:f,g=a===Boolean,m=$||"boolean"==typeof e.consumes?v:e.consumes,y=_||"boolean"==typeof e.provides?v:e.provides,w=`_lite_${f}`,C=`__lite_${f}`,x=`_${f}_timeout`,T="_lite_batches",M=!!b&&p>0;if(e.provider&&console.warn(`${f}: 'options.provider' is deprecated, use options.provides instead`),e.consumer&&console.warn(`${f}: 'options.consumer' is deprecated, use options.consumes instead`),A&&(d.observedAttributes||(d.observedAttributes=new Map),d.observedAttributes.set(f,v)),h(function(){"accessor"!==r&&console.warn(`${this.localName}: @property(${e}) ${f} ${r} is not supported`),m&&pubsub.subscribe(m,async e=>{this[o]=e})}),"accessor"===r)return{get(){return N.call(this)},set(e){return this.beforeChange||this.willChange?U.call(this,e):E.call(this,e)},init(e){return A&&this.hasAttribute(v)&&(e=g?this.hasAttribute(v):G(this.getAttribute(v),a)),void 0===e||m||(this.beforeChange||this.willChange?U.call(this,e):E.call(this,e)),this[o]}};function N(){return A?g?this.hasAttribute(v):G(this.getAttribute(v),a):void 0!==this[C]?this[C]:this[w]}function P(e){if(g){if(""===e||"true"===e)return!0;if(null===e||"false"===e)return!1}return e}function O(e,s){if(A)try{if(this._lite_reflecting=!0,g)s?this.hasAttribute(v)||this.setAttribute(v,""):this.hasAttribute(v)&&this.removeAttribute(v);else if(s){const e=((e,s)=>{let r=s;if(e===Boolean||e===Number||e===Uint8Array)return s.toString();if(e===Array||e===Object||e===WeakMap||e===Map||e===Uint8Array){let o;e!==Map&&e!==WeakMap||(o=Object(s).entries()),r=JSON.stringify(o)}return r})(a,s);this.getAttribute(v)!==e&&this.setAttribute(v,e)}else this.hasAttribute(v)&&this.removeAttribute(v)}finally{this._lite_reflecting=!1}else this[w]=e;c&&(this.renderedOnce?this.requestRender&&this.requestRender():this[T]||(this[T]=!0,queueMicrotask(()=>{this[T]=!1,!this.renderedOnce&&this.requestRender&&this.requestRender()}))),this.onChange&&this.onChange(o,s),M&&(this[x]&&clearTimeout(this[x]),this[x]=setTimeout(()=>{this.onChange&&this.onChange(o,s)},p))}function E(e){if(g&&(e=P(e)),A||y||c||M||this.onChange)y&&pubsub.publish(y,e),this[w]!==e&&O.call(this,e,e);else{if(this[w]===e)return;this[w]=e}}async function U(e){if(e=P(e),y&&pubsub.publish(y,e),this[w]===e)return;this.beforeChange&&await this.beforeChange(o,e),this.willChange&&(this[C]=await this.willChange(o,e));const s=this[C]??e;O.call(this,e,s)}});globalThis.pubsub=globalThis.pubsub||new LittlePubSub;export{x as A,B as D,C as E,LittlePubSub as L,J as S,w as b,F as c,D as i,X as r,t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as b}from"./dark-mode2-
|
|
1
|
+
import{L as b}from"./dark-mode2-CBfmAvIL.js";Symbol.metadata??=Symbol("metadata"),globalThis.pubsub=globalThis.pubsub||new b,globalThis.pubsub=globalThis.pubsub||new b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DemoIcons}from"./demo-icons.js";export{DemoSection}from"./section.js";import"./tslib.es6-B87RQr7F.js";import"./dark-mode2-
|
|
1
|
+
export{DemoIcons}from"./demo-icons.js";export{DemoSection}from"./section.js";import"./tslib.es6-B87RQr7F.js";import"./dark-mode2-CBfmAvIL.js";import"./custom-element-Wj8bC3gl.js";import"./icon-set.js";import"./section2.js";import"./scroll-mixin.js";import"./elevation.js";import"./code.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,i as v,
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as s,i as v,b as a}from"./dark-mode2-CBfmAvIL.js";import{e as m}from"./custom-element-Wj8bC3gl.js";import"./icon-set.js";let h=(()=>{let h,n,o=[m("demo-icons")],w=[],i=s;return class extends i{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;t(null,h={value:n},o,{kind:"class",name:n.name,metadata:e},null,w),n=h.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as o,i as s,b as i}from"./dark-mode2-CBfmAvIL.js";import{t as m}from"./query-DK39_nIZ.js";import{e as a}from"./custom-element-Wj8bC3gl.js";import"./demo-icons.js";import"./section.js";import"./card.js";import"./theme.js";import"./divider.js";import"./button.js";import"./banner.js";import"./selector.js";import"./pages.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./section2.js";import"./drawer-layout.js";import"./top-app-bar.js";import"./icon.js";import"./typography.js";import"./pane.js";import"./supporting-pane.js";import"./tabs.js";import"./root.js";import"./dialog.js";import"./icon-set.js";import"./list-item.js";import"./menu.js";import"./icon-button.js";import"./dropdown-menu.js";import"./dropdown.js";import"./toggle.js";import"./toggle-button.js";import"./time-picker.js";import"./notification.js";import"./notifications.js";import"./code.js";import"./elevation.js";import"./button.css.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./dark-mode2-DBD32xmy.js";import"./scroll-mixin.js";import"./column-DdHjND9w.js";import"./row-B1G5fFY7.js";import"./tab.js";import"./input.js";import"./property-EGWO0JMT.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=o,g=[],b=[],y=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},g,b),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},y,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,g,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,b),e(this,y,void 0));get pages(){return this.#e}set pages(t){this.#e=t}firstRender(){this.selector.addEventListener("selected",async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)});const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[s`
|
|
2
2
|
custom-drawer-layout {
|
|
3
3
|
height: 100%;
|
|
4
4
|
width: 100%;
|
package/exports/bundle/demo.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as o,i as s,b as i}from"./dark-mode2-CBfmAvIL.js";import{t as m}from"./query-DK39_nIZ.js";import{e as a}from"./custom-element-Wj8bC3gl.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=o,b=[],y=[],g=[],w=[];return class extends d{static{u=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;n=[m("custom-selector")],r=[m("custom-pages")],t(this,null,n,{kind:"accessor",name:"selector",static:!1,private:!1,access:{has:t=>"selector"in t,get:t=>t.selector,set:(t,e)=>{t.selector=e}},metadata:e},b,y),t(this,null,r,{kind:"accessor",name:"pages",static:!1,private:!1,access:{has:t=>"pages"in t,get:t=>t.pages,set:(t,e)=>{t.pages=e}},metadata:e},g,w),t(null,c={value:u},l,{kind:"class",name:u.name,metadata:e},null,p),u=c.value,e&&Object.defineProperty(u,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,b,void 0);get selector(){return this.#t}set selector(t){this.#t=t}#e=(e(this,y),e(this,g,void 0));get pages(){return this.#e}set pages(t){this.#e=t}static styles=[s`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
5
|
-
`];async connectedCallback(){this.selector.addEventListener("selected",
|
|
5
|
+
`];async connectedCallback(){this.selector.addEventListener("selected",async({detail:t})=>{document.dispatchEvent(new CustomEvent("custom-scroll",{detail:{scrolling:!1}})),this.pages.select(t),localStorage.setItem("last-selected",t)});const t=localStorage.getItem("last-selected");t&&(customElements.get("custom-selector")?this.selector.select(t):(await customElements.whenDefined("custom-selector"),this.selector.select(t),this.pages.select(t)))}render(){return i`
|
|
6
6
|
<custom-drawer-layout class="demo-container">
|
|
7
7
|
<span slot="drawer-headline"> menu </span>
|
|
8
8
|
|
package/exports/bundle/dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s,r as o,i as a,
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as s,r as o,i as a,b as r}from"./dark-mode2-CBfmAvIL.js";import{e as n}from"./custom-element-Wj8bC3gl.js";import"./elevation.js";import"./icon.js";let i=(()=>{let i,l,c,h,m,d,p,u=[n("custom-dialog")],g=[],f=s,y=[],v=[],b=[],x=[],_=[],w=[],H=[],k=[],A=[],j=[];return class extends f{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],h=[o({type:Boolean,reflect:!0})],m=[o({type:Boolean,reflect:!0,attribute:"has-actions"})],d=[o({type:Boolean,reflect:!0,attribute:"has-header"})],p=[o({type:Boolean,reflect:!0,attribute:"has-hero"})],e(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:t},y,v),e(this,null,h,{kind:"accessor",name:"fullscreen",static:!1,private:!1,access:{has:e=>"fullscreen"in e,get:e=>e.fullscreen,set:(e,t)=>{e.fullscreen=t}},metadata:t},b,x),e(this,null,m,{kind:"accessor",name:"hasActions",static:!1,private:!1,access:{has:e=>"hasActions"in e,get:e=>e.hasActions,set:(e,t)=>{e.hasActions=t}},metadata:t},_,w),e(this,null,d,{kind:"accessor",name:"hasHeader",static:!1,private:!1,access:{has:e=>"hasHeader"in e,get:e=>e.hasHeader,set:(e,t)=>{e.hasHeader=t}},metadata:t},H,k),e(this,null,p,{kind:"accessor",name:"hasHero",static:!1,private:!1,access:{has:e=>"hasHero"in e,get:e=>e.hasHero,set:(e,t)=>{e.hasHero=t}},metadata:t},A,j),e(null,i={value:l},u,{kind:"class",name:l.name,metadata:t},null,g),l=i.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,y,void 0);get open(){return this.#e}set open(e){this.#e=e}#t=(t(this,v),t(this,b,void 0));get fullscreen(){return this.#t}set fullscreen(e){this.#t=e}#s=(t(this,x),t(this,_,void 0));get hasActions(){return this.#s}set hasActions(e){this.#s=e}#o=(t(this,w),t(this,H,void 0));get hasHeader(){return this.#o}set hasHeader(e){this.#o=e}#a=(t(this,k),t(this,A,void 0));get hasHero(){return this.#a}set hasHero(e){this.#a=e}constructor(){super(),t(this,j),this._close=this._close.bind(this)}connectedCallback(){const e=this.shadowRoot.querySelector('slot[name="actions"]');this.hasActions=0!==Array.from(e?.assignedNodes()||[]).length;let t=this.shadowRoot.querySelector('slot[name="header"]');const s=["title","header-start","header-end"];let o=0;for(;0===Array.from(t.assignedElements()).length&&o<s.length;)t=this.shadowRoot.querySelector(`slot[name="${s[o]}"]`),o+=1;this.hasHeader=0!==t.assignedElements().length;const a=this.shadowRoot.querySelector('slot[name="hero-icon"]');this.hashero=0!==Array.from(a?.assignedNodes()||[]).length}onChange(e,t){"open"===e&&(this.open?this.querySelector('[slot="actions"]')?.addEventListener("click",this._close):this.querySelector('[slot="actions"]')?.removeEventListener("click",this._close))}_close(e){const t=e.composedPath()[0];this.dispatchEvent(new CustomEvent("close",{detail:t.getAttribute("action")||"close"})),this.open=!1}static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
position: absolute;
|
|
4
4
|
inset: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as i,b as a}from"./dark-mode2-CBfmAvIL.js";import{e as o}from"./custom-element-Wj8bC3gl.js";import"./button.js";import"./elevation.js";import"./button.css.js";let r=(()=>{let r,s,l=[o("custom-divider")],n=[],m=i;return class extends m{static{s=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;t(null,r={value:s},l,{kind:"class",name:s.name,metadata:e},null,n),s=r.value,e&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static properties={inset:{type:Boolean,reflect:!0,attribute:"inset"},middleInset:{type:Boolean,reflect:!0,attribute:"middle-inset"}};render(){return a`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as a,r as s,i as r,b as o}from"./dark-mode2-CBfmAvIL.js";import{e as i}from"./custom-element-Wj8bC3gl.js";import"./icon-button.js";import"./button.js";import"./elevation.js";import"./button.css.js";import"./icon.js";let n=(()=>{let n,c,l,d,p,m=[i("custom-drawer-button")],u=[],b=a,h=[],_=[],g=[],w=[],v=[],y=[];return class extends b{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;l=[s({type:Boolean,reflect:!0,attribute:"drawer-open"})],d=[s()],p=[s({type:String,reflect:!0})],e(this,null,l,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:t},h,_),e(this,null,d,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:e=>"id"in e,get:e=>e.id,set:(e,t)=>{e.id=t}},metadata:t},g,w),e(this,null,p,{kind:"accessor",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:t},v,y),e(null,n={value:c},m,{kind:"class",name:c.name,metadata:t},null,u),c=n.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,h,void 0);get drawerOpen(){return this.#e}set drawerOpen(e){this.#e=e}#t=(t(this,_),t(this,g,void 0));get id(){return this.#t}set id(e){this.#t=e}#a=(t(this,w),t(this,v,"menu"));get label(){return this.#a}set label(e){this.#a=e}openPane(){document.dispatchEvent(new CustomEvent("custom-pane-open",{detail:this.id}))}static styles=[r`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
opacity: 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as o,i as a,b as n}from"./dark-mode2-CBfmAvIL.js";import{e as s}from"./custom-element-Wj8bC3gl.js";let r=(()=>{let r,i,l=[s("custom-drawer-item")],m=[],d=o;return class extends d{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;e(null,r={value:i},l,{kind:"class",name:i.name,metadata:t},null,m),i=r.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
padding-left: 16px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as r,r as a,b as s}from"./dark-mode2-CBfmAvIL.js";import{e as o}from"./custom-element-Wj8bC3gl.js";import"./drawer.js";import"./drawer-button.js";import"./drawer-item.js";import"./top-app-bar.js";import"./column-DdHjND9w.js";import"./elevation.js";import"./button.js";import"./button.css.js";import"./pane.js";import"./icon-button.js";import"./icon.js";import"./dark-mode2-DBD32xmy.js";import"./it-Dft_Rjy-.js";import"./row-B1G5fFY7.js";let i=(()=>{let i,n,d,c,m,l,p,h,w,u=[o("custom-drawer-layout")],g=[],b=r,_=[],y=[],k=[],T=[],f=[],v=[],O=[],j=[],D=[],x=[],I=[],B=[],C=[],$=[];return class extends b{static{n=this}static{const r="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;d=[a({type:Boolean,reflect:!0,attribute:"drawer-open"})],c=[a({type:Boolean,reflect:!0,attribute:"keep-closed"})],m=[a({type:Boolean,reflect:!0})],l=[a({type:String})],p=[a({type:String})],h=[a({type:String})],w=[a({attribute:"mobile-trigger"})],e(this,null,d,{kind:"accessor",name:"drawerOpen",static:!1,private:!1,access:{has:e=>"drawerOpen"in e,get:e=>e.drawerOpen,set:(e,t)=>{e.drawerOpen=t}},metadata:r},_,y),e(this,null,c,{kind:"accessor",name:"keepClosed",static:!1,private:!1,access:{has:e=>"keepClosed"in e,get:e=>e.keepClosed,set:(e,t)=>{e.keepClosed=t}},metadata:r},k,T),e(this,null,m,{kind:"accessor",name:"narrow",static:!1,private:!1,access:{has:e=>"narrow"in e,get:e=>e.narrow,set:(e,t)=>{e.narrow=t}},metadata:r},f,v),e(this,null,l,{kind:"accessor",name:"drawerType",static:!1,private:!1,access:{has:e=>"drawerType"in e,get:e=>e.drawerType,set:(e,t)=>{e.drawerType=t}},metadata:r},O,j),e(this,null,p,{kind:"accessor",name:"appBarType",static:!1,private:!1,access:{has:e=>"appBarType"in e,get:e=>e.appBarType,set:(e,t)=>{e.appBarType=t}},metadata:r},D,x),e(this,null,h,{kind:"accessor",name:"mainDrawerId",static:!1,private:!1,access:{has:e=>"mainDrawerId"in e,get:e=>e.mainDrawerId,set:(e,t)=>{e.mainDrawerId=t}},metadata:r},I,B),e(this,null,w,{kind:"accessor",name:"mobileTrigger",static:!1,private:!1,access:{has:e=>"mobileTrigger"in e,get:e=>e.mobileTrigger,set:(e,t)=>{e.mobileTrigger=t}},metadata:r},C,$),e(null,i={value:n},u,{kind:"class",name:n.name,metadata:r},null,g),n=i.value,r&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r}),t(n,g)}#e=t(this,_,!1);get drawerOpen(){return this.#e}set drawerOpen(e){this.#e=e}#t=(t(this,y),t(this,k,!1));get keepClosed(){return this.#t}set keepClosed(e){this.#t=e}#r=(t(this,T),t(this,f,!1));get narrow(){return this.#r}set narrow(e){this.#r=e}#a=(t(this,v),t(this,O,"modal"));get drawerType(){return this.#a}set drawerType(e){this.#a=e}#s=(t(this,j),t(this,D,"center-aligned"));get appBarType(){return this.#s}set appBarType(e){this.#s=e}#o=(t(this,x),t(this,I,crypto.randomUUID()));get mainDrawerId(){return this.#o}set mainDrawerId(e){this.#o=e}#i=(t(this,B),t(this,C,"(max-width: 860px)"));get mobileTrigger(){return this.#i}set mobileTrigger(e){this.#i=e}onChange(e,t){if("mobileTrigger"===e){const e=matchMedia(t);this._onnarrow({detail:e.matches})}}connectedCallback(){document.addEventListener("custom-pane-close",({detail:e})=>{this.mainDrawerId===e&&(this.drawerOpen=!1)}),document.addEventListener("custom-pane-open",({detail:e})=>{this.mainDrawerId!==e||this.keepClosed||(this.drawerOpen=!0)}),document.addEventListener("custom-theme-narrow",this._onnarrow.bind(this))}_onnarrow({detail:e}){if(this.narrow=e,this.keepClosed)return this.drawerOpen=!1;this.drawerOpen=!e}_click=(t(this,$),()=>{this.narrow&&(this.drawerOpen=!this.drawerOpen)});render(){return s`<style>
|
|
2
2
|
:host {
|
|
3
3
|
--custom-drawer-width: 320px;
|
|
4
4
|
display: flex;
|
package/exports/bundle/drawer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as s,
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as s,t as a,r as o,b as i}from"./dark-mode2-CBfmAvIL.js";import{e as r}from"./custom-element-Wj8bC3gl.js";import"./elevation.js";import"./button.js";import"./pane.js";import"./dark-mode2-DBD32xmy.js";import"./button.css.js";import"./icon-button.js";import"./icon.js";var n=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -37,7 +37,7 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{i as s,s as a,r as o,x
|
|
|
37
37
|
::slotted(*) {
|
|
38
38
|
pointer-events: none;
|
|
39
39
|
}
|
|
40
|
-
`;let l=(()=>{let s,l,c,m,d,p,h,g=[r("custom-drawer")],u=[],y=a,b=[],v=[],f=[],_=[],x=[],j=[],w=[],k=[],S=[],z=[];return class extends y{static{l=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],m=[o({type:Boolean,reflect:!0})],d=[o({type:String,reflect:!0})],p=[o({type:Boolean})],h=[o({type:String})],t(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},b,v),t(this,null,m,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:t=>"mobile"in t,get:t=>t.mobile,set:(t,e)=>{t.mobile=e}},metadata:e},f,_),t(this,null,d,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},x,j),t(this,null,p,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:t=>"right"in t,get:t=>t.right,set:(t,e)=>{t.right=e}},metadata:e},w,k),t(this,null,h,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:t=>"id"in t,get:t=>t.id,set:(t,e)=>{t.id=e}},metadata:e},S,z),t(null,s={value:l},g,{kind:"class",name:l.name,metadata:e},null,u),l=s.value,e&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,b,void 0);get open(){return this.#t}set open(t){this.#t=t}#e=(e(this,v),e(this,f,void 0));get mobile(){return this.#e}set mobile(t){this.#e=t}#s=(e(this,_),e(this,x,void 0));get type(){return this.#s}set type(t){this.#s=t}#a=(e(this,j),e(this,w,void 0));get right(){return this.#a}set right(t){this.#a=t}#o=(e(this,k),e(this,S,void 0));get id(){return this.#o}set id(t){this.#o=t}firstRender(){document.addEventListener("custom-pane-close",(
|
|
40
|
+
`;let l=(()=>{let s,l,c,m,d,p,h,g=[r("custom-drawer")],u=[],y=a,b=[],v=[],f=[],_=[],x=[],j=[],w=[],k=[],S=[],z=[];return class extends y{static{l=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],m=[o({type:Boolean,reflect:!0})],d=[o({type:String,reflect:!0})],p=[o({type:Boolean})],h=[o({type:String})],t(this,null,c,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},b,v),t(this,null,m,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:t=>"mobile"in t,get:t=>t.mobile,set:(t,e)=>{t.mobile=e}},metadata:e},f,_),t(this,null,d,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},x,j),t(this,null,p,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:t=>"right"in t,get:t=>t.right,set:(t,e)=>{t.right=e}},metadata:e},w,k),t(this,null,h,{kind:"accessor",name:"id",static:!1,private:!1,access:{has:t=>"id"in t,get:t=>t.id,set:(t,e)=>{t.id=e}},metadata:e},S,z),t(null,s={value:l},g,{kind:"class",name:l.name,metadata:e},null,u),l=s.value,e&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,b,void 0);get open(){return this.#t}set open(t){this.#t=t}#e=(e(this,v),e(this,f,void 0));get mobile(){return this.#e}set mobile(t){this.#e=t}#s=(e(this,_),e(this,x,void 0));get type(){return this.#s}set type(t){this.#s=t}#a=(e(this,j),e(this,w,void 0));get right(){return this.#a}set right(t){this.#a=t}#o=(e(this,k),e(this,S,void 0));get id(){return this.#o}set id(t){this.#o=t}firstRender(){document.addEventListener("custom-pane-close",({detail:t})=>{this.id===t&&(this.open=!1)}),document.addEventListener("custom-pane-open",({detail:t})=>{this.id===t&&(this.open=!0)})}static styles=[n];render(){return i`
|
|
41
41
|
<custom-pane .open=${this.open} .mobile=${this.mobile} .type=${this.type} .id=${this.id}>
|
|
42
42
|
<slot name="headline" slot="headline"></slot>
|
|
43
43
|
<slot name="menu-button" slot="menu-button"></slot>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,r as o,i as c,
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as s,r as o,i as c,b as i}from"./dark-mode2-CBfmAvIL.js";import{t as a}from"./query-DK39_nIZ.js";import{e as r}from"./custom-element-Wj8bC3gl.js";import"./dropdown.js";import"./menu.js";import"./icon.js";import"./selector.js";import"./selector-mixin.js";import"./select-mixin.js";let n=(()=>{let n,l,m,d,h,p,u,_,g,v,b=[r("custom-dropdown-menu")],k=[],w=s,O=[],f=[],y=[],S=[],C=[],j=[],x=[],$=[],B=[],E=[],q=[],P=[],z=[],A=[],D=[],F=[];return class extends w{static{l=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(w[Symbol.metadata]??null):void 0;m=[o({type:Boolean,reflect:!0})],d=[o({type:Boolean,reflect:!0})],h=[o({type:Boolean,attribute:"close-on-select"})],p=[o({type:Boolean,attribute:"close-on-click"})],u=[o({type:Boolean,reflect:!0})],_=[o({type:String})],g=[a("custom-menu")],v=[a("custom-dropdown")],t(this,null,m,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:t=>"right"in t,get:t=>t.right,set:(t,e)=>{t.right=e}},metadata:e},O,f),t(this,null,d,{kind:"accessor",name:"bottom",static:!1,private:!1,access:{has:t=>"bottom"in t,get:t=>t.bottom,set:(t,e)=>{t.bottom=e}},metadata:e},y,S),t(this,null,h,{kind:"accessor",name:"closeOnSelect",static:!1,private:!1,access:{has:t=>"closeOnSelect"in t,get:t=>t.closeOnSelect,set:(t,e)=>{t.closeOnSelect=e}},metadata:e},C,j),t(this,null,p,{kind:"accessor",name:"closeOnClick",static:!1,private:!1,access:{has:t=>"closeOnClick"in t,get:t=>t.closeOnClick,set:(t,e)=>{t.closeOnClick=e}},metadata:e},x,$),t(this,null,u,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},B,E),t(this,null,_,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:t=>"icon"in t,get:t=>t.icon,set:(t,e)=>{t.icon=e}},metadata:e},q,P),t(this,null,g,{kind:"accessor",name:"_menu",static:!1,private:!1,access:{has:t=>"_menu"in t,get:t=>t._menu,set:(t,e)=>{t._menu=e}},metadata:e},z,A),t(this,null,v,{kind:"accessor",name:"_dropdown",static:!1,private:!1,access:{has:t=>"_dropdown"in t,get:t=>t._dropdown,set:(t,e)=>{t._dropdown=e}},metadata:e},D,F),t(null,n={value:l},b,{kind:"class",name:l.name,metadata:e},null,k),l=n.value,e&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,O,void 0);get right(){return this.#t}set right(t){this.#t=t}#e=(e(this,f),e(this,y,void 0));get bottom(){return this.#e}set bottom(t){this.#e=t}#s=(e(this,S),e(this,C,!0));get closeOnSelect(){return this.#s}set closeOnSelect(t){this.#s=t}#o=(e(this,j),e(this,x,!0));get closeOnClick(){return this.#o}set closeOnClick(t){this.#o=t}#c=(e(this,$),e(this,B,void 0));get open(){return this.#c}set open(t){this.#c=t}#i=(e(this,E),e(this,q,"more_vert"));get icon(){return this.#i}set icon(t){this.#i=t}#a=(e(this,P),e(this,z,void 0));get _menu(){return this.#a}set _menu(t){this.#a=t}#r=(e(this,A),e(this,D,void 0));get _dropdown(){return this.#r}set _dropdown(t){this.#r=t}_onselected=(e(this,F),({detail:t})=>{this.dispatchEvent(new CustomEvent("selected",{detail:t})),this.closeOnSelect&&(this.open=!1,this._menu.selected=void 0)});_scrimClick=()=>{this.closeOnClick&&(this.open=!1)};static styles=[c`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s,r as a,i as o,
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as s,r as a,i as o,b as n}from"./dark-mode2-CBfmAvIL.js";import{e as r}from"./custom-element-Wj8bC3gl.js";let i=(()=>{let i,c,m,l=[r("custom-dropdown")],p=[],d=s,u=[],f=[];return class extends d{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;m=[a({type:Boolean,reflect:!0})],e(this,null,m,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:t},u,f),e(null,i={value:c},l,{kind:"class",name:c.name,metadata:t},null,p),c=i.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,u,void 0);get open(){return this.#e}set open(e){this.#e=e}static styles=[o`
|
|
2
2
|
:host {
|
|
3
3
|
position: absolute;
|
|
4
4
|
pointer-events: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CustomCard}from"./card.js";export{CustomTheme}from"./theme.js";export{CustomDivider}from"./divider.js";export{CustomButton}from"./button.js";export{CustomBanner}from"./banner.js";export{CustomSelector}from"./selector.js";export{CustomPages}from"./pages.js";export{CustomDrawer}from"./drawer.js";export{CustomDrawerButton}from"./drawer-button.js";export{CustomDrawerItem}from"./drawer-item.js";export{CustomSection}from"./section2.js";export{CustomDrawerLayout}from"./drawer-layout.js";export{CustomTopAppBar}from"./top-app-bar.js";export{CustomIcon}from"./icon.js";export{CustomTypography}from"./typography.js";export{CustomPane}from"./pane.js";export{CustomSupportingPane}from"./supporting-pane.js";export{CustomTabs}from"./tabs.js";export{CustomRoot}from"./root.js";export{CustomDialog}from"./dialog.js";export{CustomIconSet}from"./icon-set.js";export{CustomListItem}from"./list-item.js";export{CustomMenu}from"./menu.js";export{CustomIconButton}from"./icon-button.js";export{CustomDropdownMenu}from"./dropdown-menu.js";export{CustomDropdown}from"./dropdown.js";export{CustomToggle}from"./toggle.js";export{CustomToggleButton}from"./toggle-button.js";export{CustomTimePicker}from"./time-picker.js";export{CustomNotification}from"./notification.js";export{CustomNotifications}from"./notifications.js";import"./tslib.es6-B87RQr7F.js";import"./dark-mode2-
|
|
1
|
+
export{CustomCard}from"./card.js";export{CustomTheme}from"./theme.js";export{CustomDivider}from"./divider.js";export{CustomButton}from"./button.js";export{CustomBanner}from"./banner.js";export{CustomSelector}from"./selector.js";export{CustomPages}from"./pages.js";export{CustomDrawer}from"./drawer.js";export{CustomDrawerButton}from"./drawer-button.js";export{CustomDrawerItem}from"./drawer-item.js";export{CustomSection}from"./section2.js";export{CustomDrawerLayout}from"./drawer-layout.js";export{CustomTopAppBar}from"./top-app-bar.js";export{CustomIcon}from"./icon.js";export{CustomTypography}from"./typography.js";export{CustomPane}from"./pane.js";export{CustomSupportingPane}from"./supporting-pane.js";export{CustomTabs}from"./tabs.js";export{CustomRoot}from"./root.js";export{CustomDialog}from"./dialog.js";export{CustomIconSet}from"./icon-set.js";export{CustomListItem}from"./list-item.js";export{CustomMenu}from"./menu.js";export{CustomIconButton}from"./icon-button.js";export{CustomDropdownMenu}from"./dropdown-menu.js";export{CustomDropdown}from"./dropdown.js";export{CustomToggle}from"./toggle.js";export{CustomToggleButton}from"./toggle-button.js";export{CustomTimePicker}from"./time-picker.js";export{CustomNotification}from"./notification.js";export{CustomNotifications}from"./notifications.js";import"./tslib.es6-B87RQr7F.js";import"./dark-mode2-CBfmAvIL.js";import"./custom-element-Wj8bC3gl.js";import"./elevation.js";import"./button.css.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./dark-mode2-DBD32xmy.js";import"./scroll-mixin.js";import"./column-DdHjND9w.js";import"./row-B1G5fFY7.js";import"./query-DK39_nIZ.js";import"./tab.js";import"./input.js";import"./property-EGWO0JMT.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a}from"./tslib.es6-B87RQr7F.js";import{t as l,r as t,b as o}from"./dark-mode2-CBfmAvIL.js";import{e as s}from"./custom-element-Wj8bC3gl.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2022 Google LLC
|
package/exports/bundle/fab.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as o,r as s,i as a,b as r}from"./dark-mode2-CBfmAvIL.js";import{e as l}from"./custom-element-Wj8bC3gl.js";import"./elevation.js";let n=(()=>{let n,i,c,d=[l("custom-fab")],y=[],m=o,p=[],v=[];return class extends m{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;c=[s({attribute:"type",reflect:!0})],e(this,null,c,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},p,v),e(null,n={value:i},d,{kind:"class",name:i.name,metadata:t},null,y),i=n.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,p,"normal");get type(){return this.#e}set type(e){this.#e=e}static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
color: var(--custom-fab-color, --md-sys-color-on-background);
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=e=>class FileReaderMixin extends e{readAsDataURL(e){return new Promise((
|
|
1
|
+
const e=e=>class FileReaderMixin extends e{readAsDataURL(e){return new Promise((a,r)=>{const s=new FileReader;s.onload=()=>a(s.result),s.readAsDataURL(e)})}};export{e as FileReaderMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t;class HashRouter{host;routes;constructor({host:s,fallback:e,routes:o}){this.host=s,this.routes=o,globalThis.onhashchange=this.#t,!location.hash&&e?.route?location.hash=t.bang(e.params?`${e.route}?${t.queryIt(e.params)}`:e.route):this.#t()}static queryIt(t){return Object.entries(t).map((
|
|
1
|
+
var t;class HashRouter{host;routes;constructor({host:s,fallback:e,routes:o}){this.host=s,this.routes=o,globalThis.onhashchange=this.#t,!location.hash&&e?.route?location.hash=t.bang(e.params?`${e.route}?${t.queryIt(e.params)}`:e.route):this.#t()}static queryIt(t){return Object.entries(t).map(([t,s])=>`${t}=${s}`).join("&")}static dequeryIt(t){const s={};if(!t)return s;for(const e of t.split("&")){const[t,o]=e.split("=");s[t]=o}}static bang(t){return`#!/${t}`}static debang(t){return t.split("#!/")[1]}static parseHash(s){const e=t.debang(s).split("?"),o=e[0].split("/"),a=o[0],r=o.slice(1,-1);return{route:a,routes:o,subRoutes:r,params:t.dequeryIt(e[1]),url:e[0]}}#s=async(t,s)=>{const{params:e,subRoutes:o}=t;let a=this.host.pages.querySelector(".custom-selected");if(t.subRoutes?.length>0)for(const r of t.subRoutes){const u=s.subRoutes[r];u?customElements.get(`./${u.tagName}`)||await import(`./${u.import}.js`):(customElements.get(`./${r}`)||await import(`./${r}.js`),console.warn(`handling undefined subroute for ${t.route} falling back to default behavior.`)),a.select({route:r,params:e,subRoutes:o}),a=a.pages.querySelector(".custom-selected")}if(e)for(const[t,s]of Object.entries(e))a[t]=s};#t=async()=>{const s=t.parseHash(location.hash),e=this.routes[s.url];e?customElements.get(`./${e.tagName}`)||await import(`./${e.import}.js`):customElements.get(`./${s.route}`)||await import(`./${s.route}.js`),this.host.select(s),this.host.pages&&this.#s(s,e),document.dispatchEvent(new CustomEvent("route-change",{detail:{routing:s,routeInfo:e}}))}}t=HashRouter;export{HashRouter as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import{r as s,i as e,
|
|
1
|
+
import{_ as t,a as o}from"./tslib.es6-B87RQr7F.js";import{r as s,i as e,b as a}from"./dark-mode2-CBfmAvIL.js";import{e as c}from"./custom-element-Wj8bC3gl.js";import{CustomButton as r}from"./button.js";import"./icon.js";import"./elevation.js";import"./button.css.js";let n=(()=>{let n,i,l,m=[c("custom-icon-button")],u=[],d=r,y=[],p=[];return class extends d{static{i=this}static{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;l=[s({type:String})],t(this,null,l,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:t=>"icon"in t,get:t=>t.icon,set:(t,o)=>{t.icon=o}},metadata:o},y,p),t(null,n={value:i},m,{kind:"class",name:i.name,metadata:o},null,u),i=n.value,o&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}#t=o(this,y,void 0);get icon(){return this.#t}set icon(t){this.#t=t}static styles=[...r.styles,e`
|
|
2
2
|
:host {
|
|
3
3
|
--custom-button-border-radius: var(--md-sys-shape-corner-medium);
|
|
4
4
|
width: 40px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{L as s,
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{L as s,t as a,i as o}from"./dark-mode2-CBfmAvIL.js";import{e as n}from"./custom-element-Wj8bC3gl.js";globalThis.pubsub=globalThis.pubsub||new s(!0);let l=(()=>{let s,l,c=[n("custom-icon-set")],i=[],m=a;return class extends m{static{l=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;e(null,s={value:l},c,{kind:"class",name:l.name,metadata:t},null,i),l=s.value,t&&Object.defineProperty(l,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static styles=[o`
|
|
2
2
|
:host {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
5
|
-
`];#e(e){return this.querySelector("template").content.querySelector(`span[name="${e}"]`)?.children[0]}getIcon(e){const t=this.#e(e);return t?t.cloneNode(!0):(console.warn(`missing icon ${e}`),e)}get setName(){return this.getAttribute("set-name")||"icons"}connectedCallback(){globalThis.pubsub.subscribe(`custom-icon-set-${this.setName}-connected`,(
|
|
5
|
+
`];#e(e){return this.querySelector("template").content.querySelector(`span[name="${e}"]`)?.children[0]}getIcon(e){const t=this.#e(e);return t?t.cloneNode(!0):(console.warn(`missing icon ${e}`),e)}get setName(){return this.getAttribute("set-name")||"icons"}connectedCallback(){globalThis.pubsub.subscribe(`custom-icon-set-${this.setName}-connected`,()=>{}),globalThis.pubsub.publish(`custom-icon-set-${this.setName}-connected`,this)}static{t(l,i)}},l})();export{l as CustomIconSet};
|
package/exports/bundle/icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,a as t}from"./tslib.es6-B87RQr7F.js";import{L as e,
|
|
1
|
+
import{_ as s,a as t}from"./tslib.es6-B87RQr7F.js";import{L as e,t as o,r as i,i as a,b as c}from"./dark-mode2-CBfmAvIL.js";import{e as n}from"./custom-element-Wj8bC3gl.js";globalThis.pubsub=globalThis.pubsub||new e(!0);let r=(()=>{let e,r,h,m,l,u,_=[n("custom-icon")],g=[],d=o,b=[],p=[],v=[],f=[],N=[],y=[],k=[],j=[];return class extends d{static{r=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;h=[i()],m=[i({type:String})],l=[i()],u=[i()],s(this,null,h,{kind:"accessor",name:"host",static:!1,private:!1,access:{has:s=>"host"in s,get:s=>s.host,set:(s,t)=>{s.host=t}},metadata:t},b,p),s(this,null,m,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:s=>"icon"in s,get:s=>s.icon,set:(s,t)=>{s.icon=t}},metadata:t},v,f),s(this,null,l,{kind:"accessor",name:"setName",static:!1,private:!1,access:{has:s=>"setName"in s,get:s=>s.setName,set:(s,t)=>{s.setName=t}},metadata:t},N,y),s(this,null,u,{kind:"accessor",name:"_icon",static:!1,private:!1,access:{has:s=>"_icon"in s,get:s=>s._icon,set:(s,t)=>{s._icon=t}},metadata:t},k,j),s(null,e={value:r},_,{kind:"class",name:r.name,metadata:t},null,g),r=e.value,t&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#s=t(this,b,void 0);get host(){return this.#s}set host(s){this.#s=s}#t=(t(this,p),t(this,v,void 0));get icon(){return this.#t}set icon(s){this.#t=s}#e=(t(this,f),t(this,N,void 0));get setName(){return this.#e}set setName(s){this.#e=s}#o=(t(this,y),t(this,k,void 0));get _icon(){return this.#o}set _icon(s){this.#o=s}onChange(s,t){"setName"===s&&(this.host=globalThis.pubsub.subscribers[`custom-icon-set-${t}-connected`]?.value,this.host||globalThis.pubsub.subscribe(`custom-icon-set-${t}-connected`,s=>{s&&(this.host=s)})),"icon"!==s&&"host"!==s||this.host&&this.icon&&(this._icon=this.host.getIcon(this.icon))}static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
height: var(--custom-icon-size, 24px);
|
package/exports/bundle/input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as a,i as l,b as m}from"./dark-mode2-CBfmAvIL.js";import{e as s}from"./custom-element-Wj8bC3gl.js";let i=(()=>{let i,o,r=[s("custom-time-picker-input")],n=[],c=a;return class extends c{static{o=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;t(null,i={value:o},r,{kind:"class",name:o.name,metadata:e},null,n),o=i.value,e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[l`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
package/exports/bundle/input2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as a,b as l}from"./dark-mode2-CBfmAvIL.js";import{e as r}from"./custom-element-Wj8bC3gl.js";let s=(()=>{let s,o,m=[r("custom-pane")],n=[],c=a;return class extends c{static{o=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;e(null,s={value:o},m,{kind:"class",name:o.name,metadata:t},null,n),o=s.value,t&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static styles=[];render(){return l`<input type="text" placeholder="Search for places..." />`}static{t(o,n)}},o})();export{s as CustomPlacesInput};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s,r as a,i as n,
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as s,r as a,i as n,b as r}from"./dark-mode2-CBfmAvIL.js";import{t as o}from"./query-DK39_nIZ.js";import{e as i}from"./custom-element-Wj8bC3gl.js";const c=t=>function(e,{kind:s,name:a,access:n,addInitializer:r}){let o;return"accessor"!==s&&r(function(){console.warn(`${this.localName}: @assignedElements${!t} ${String(a)} ${s} is not supported`)}),o=()=>document.querySelector(`slot[name="${t}"]`),{get:()=>o().assignedElements()}};let l=(()=>{let l,h,d,p,m,g,u,S,_=[i("custom-list-item")],v=[],y=s,f=[],b=[],x=[],E=[],k=[],I=[],j=[],w=[],$=[],B=[],C=[],q=[];return class extends y{static{h=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(y[Symbol.metadata]??null):void 0;d=[a({type:String,reflect:!0})],p=[a({type:Boolean,reflect:!0})],m=[a({type:Boolean,reflect:!0,attribute:"has-start"})],g=[a({type:Boolean,reflect:!0,attribute:"non-interactive"})],u=[c("start")],S=[o('slot[name="start"]')],t(this,null,d,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},f,b),t(this,null,p,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},x,E),t(this,null,m,{kind:"accessor",name:"hasStart",static:!1,private:!1,access:{has:t=>"hasStart"in t,get:t=>t.hasStart,set:(t,e)=>{t.hasStart=e}},metadata:e},k,I),t(this,null,g,{kind:"accessor",name:"nonInteractive",static:!1,private:!1,access:{has:t=>"nonInteractive"in t,get:t=>t.nonInteractive,set:(t,e)=>{t.nonInteractive=e}},metadata:e},j,w),t(this,null,u,{kind:"accessor",name:"assignedStartElements",static:!1,private:!1,access:{has:t=>"assignedStartElements"in t,get:t=>t.assignedStartElements,set:(t,e)=>{t.assignedStartElements=e}},metadata:e},$,B),t(this,null,S,{kind:"accessor",name:"startSlot",static:!1,private:!1,access:{has:t=>"startSlot"in t,get:t=>t.startSlot,set:(t,e)=>{t.startSlot=e}},metadata:e},C,q),t(null,l={value:h},_,{kind:"class",name:h.name,metadata:e},null,v),h=l.value,e&&Object.defineProperty(h,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,f,"one-line");get type(){return this.#t}set type(t){this.#t=t}#e=(e(this,b),e(this,x,void 0));get open(){return this.#e}set open(t){this.#e=t}#s=(e(this,E),e(this,k,void 0));get hasStart(){return this.#s}set hasStart(t){this.#s=t}#a=(e(this,I),e(this,j,void 0));get nonInteractive(){return this.#a}set nonInteractive(t){this.#a=t}#n=(e(this,w),e(this,$,void 0));get assignedStartElements(){return this.#n}set assignedStartElements(t){this.#n=t}#r=(e(this,B),e(this,C,void 0));get startSlot(){return this.#r}set startSlot(t){this.#r=t}#o=(e(this,q),()=>{this.hasStart=!0});connectedCallback(){this.startSlot.addEventListener("slotchange",this.#o)}static styles=[n`
|
|
2
2
|
* {
|
|
3
3
|
pointer-events: none;
|
|
4
4
|
user-select: none;
|
package/exports/bundle/menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s,i as l,
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{t as s,i as l,b as o}from"./dark-mode2-CBfmAvIL.js";import{e as c}from"./custom-element-Wj8bC3gl.js";import"./dropdown.js";import"./selector.js";import"./selector-mixin.js";import"./select-mixin.js";let r=(()=>{let r,i,a=[c("custom-menu")],n=[],d=s;return class extends d{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;e(null,r={value:i},a,{kind:"class",name:i.name,metadata:t},null,n),i=r.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}get selector(){return this.shadowRoot.querySelector("custom-selector")}set selected(e){this.selector.selected=e}get selected(){return this.selector.selected}select(e){this.selector.select(e)}#e=({detail:e})=>{this.dispatchEvent(new CustomEvent("selected",{detail:e}))};firstRender(){this.selector.addEventListener("selected",this.#e)}disconnectedCallback(){this.selector.removeEventListener("selected",this.#e)}static styles=[l`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as a,i as l,b as s}from"./dark-mode2-CBfmAvIL.js";import{e as m}from"./custom-element-Wj8bC3gl.js";let o=(()=>{let o,r,i=[m("custom-time-picker-minute-field")],n=[],c=a;return class extends c{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;t(null,o={value:r},i,{kind:"class",name:r.name,metadata:e},null,n),r=o.value,e&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[l`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,n as a,t as i}from"./property-
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,n as a,t as i}from"./property-EGWO0JMT.js";import{i as o,b as r}from"./dark-mode2-CBfmAvIL.js";import"./icon.js";import"./column-DdHjND9w.js";import"./row-B1G5fFY7.js";import"./custom-element-Wj8bC3gl.js";let c=(()=>{let c,m,l,n,g,p,h=[i("custom-notification")],d=[],u=s,_=[],x=[],b=[],f=[],y=[],v=[],k=[],j=[];return class extends u{static{m=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;l=[a()],n=[a()],g=[a()],p=[a()],e(this,null,l,{kind:"accessor",name:"title",static:!1,private:!1,access:{has:e=>"title"in e,get:e=>e.title,set:(e,t)=>{e.title=t}},metadata:t},_,x),e(this,null,n,{kind:"accessor",name:"message",static:!1,private:!1,access:{has:e=>"message"in e,get:e=>e.message,set:(e,t)=>{e.message=t}},metadata:t},b,f),e(this,null,g,{kind:"accessor",name:"image",static:!1,private:!1,access:{has:e=>"image"in e,get:e=>e.image,set:(e,t)=>{e.image=t}},metadata:t},y,v),e(this,null,p,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},k,j),e(null,c={value:m},h,{kind:"class",name:m.name,metadata:t},null,d),m=c.value,t&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,_,void 0);get title(){return this.#e}set title(e){this.#e=e}#t=(t(this,x),t(this,b,void 0));get message(){return this.#t}set message(e){this.#t=e}#s=(t(this,f),t(this,y,void 0));get image(){return this.#s}set image(e){this.#s=e}#a=(t(this,v),t(this,k,void 0));get type(){return this.#a}set type(e){this.#a=e}#i=(t(this,j),()=>{this.parentElement.removeChild(this)});static styles=o`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as o,r as i,i as s,b as n}from"./dark-mode2-CBfmAvIL.js";import{e as a}from"./custom-element-Wj8bC3gl.js";import"./notification.js";import"./icon.js";import"./pane.js";import"./row-B1G5fFY7.js";import"./property-EGWO0JMT.js";import"./column-DdHjND9w.js";import"./elevation.js";import"./icon-button.js";import"./button.js";import"./button.css.js";import"./dark-mode2-DBD32xmy.js";let r=(()=>{let r,c,l,p=[a("custom-notifications")],m=[],u=o,h=[],d=[];return class extends u{static{c=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;l=[i({type:Boolean,reflect:!0})],t(this,null,l,{kind:"accessor",name:"open",static:!1,private:!1,access:{has:t=>"open"in t,get:t=>t.open,set:(t,e)=>{t.open=e}},metadata:e},h,d),t(null,r={value:c},p,{kind:"class",name:c.name,metadata:e},null,m),c=r.value,e&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,h,void 0);get open(){return this.#t}set open(t){this.#t=t}get _list(){return this.shadowRoot.querySelector(".list")}createNotification({title:t,message:e,image:o},i=3e3){const s=document.createElement("custom-notification");s.title=t,s.message=e,s.image=o,i&&setTimeout(()=>{this.removeChild(s);const i=document.createElement("custom-notification");i.image=o,i.title=t,i.message=e,this._list.appendChild(i)},i),this.appendChild(s)}_onclick(){const t=Array.from(this._list.querySelectorAll("custom-notification"));for(const e of t)this._list.removeChild(e);this.open=!1}static styles=[s`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
package/exports/bundle/pages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,
|
|
1
|
+
import{i as e,b as t}from"./dark-mode2-CBfmAvIL.js";import{SelectBase as s}from"./select-mixin.js";class CustomPages extends s{async connectedCallback(){super.connectedCallback&&await super.connectedCallback(),this.slotchange=this.slotchange.bind(this),this.shadowRoot.querySelector("slot").addEventListener("slotchange",this.slotchange),this.slotchange(),this.selected=this.defaultSelected}isEvenNumber(e){return Boolean(e%2==0)}slotchange(){let e=0;for(const t of this.slotted.assignedNodes())t&&1===t.nodeType&&(t.style.zIndex=99-e,this.isEvenNumber(e++)?t.classList.add("animate-down"):t.classList.add("animate-up"),this.dispatchEvent(new CustomEvent("child-change",{detail:t})))}static styles=[e`
|
|
2
2
|
:host {
|
|
3
3
|
flex: 1;
|
|
4
4
|
position: relative;
|
package/exports/bundle/pane.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,t as o,r as a,b as i}from"./dark-mode2-CBfmAvIL.js";import{e as r}from"./custom-element-Wj8bC3gl.js";import"./elevation.js";import"./icon-button.js";import"./icon.js";import"./dark-mode2-DBD32xmy.js";import"./button.js";import"./button.css.js";var n=s`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
package/exports/bundle/prompt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{
|
|
1
|
+
import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as o,r as s,i as a,b as r}from"./dark-mode2-CBfmAvIL.js";globalThis.customPrompt=t=>{const e=document.createElement("custom-prompt");return e.promptTitle=t,document.body.appendChild(e),new Promise(t=>{e.addEventListener("close",({detail:o})=>{e.remove(),t(o)})})};let i=(()=>{let i,l=o,c=[],n=[];return class CustomPrompt extends l{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l[Symbol.metadata]??null):void 0;i=[s({type:String})],t(this,null,i,{kind:"accessor",name:"promptTitle",static:!1,private:!1,access:{has:t=>"promptTitle"in t,get:t=>t.promptTitle,set:(t,e)=>{t.promptTitle=e}},metadata:e},c,n),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,c,"Prompt Title");get promptTitle(){return this.#t}set promptTitle(t){this.#t=t}constructor(t){super(),this.setAttribute("prompt-title",t)}cancel=(e(this,n),()=>this.dispatchEvent(new CustomEvent("close",{detail:void 0})));ok=()=>this.dispatchEvent(new CustomEvent("close",{detail:this.shadowRoot.querySelector("input").value}));static styles=[a`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{c as t,S as e,D as s,E as r}from"./dark-mode2-CBfmAvIL.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;const n=o.fromAttribute(e,t.type);this[r]=n??this._$Ej?.get(r)??n,this._$Em=null}}requestUpdate(t,e,s,r=!1,o){if(void 0!==t){const n=this.constructor;if(!1===r&&(o=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??$)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$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.2");
|
|
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.2");
|
|
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)},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,!0,s)},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,!0,s)}}throw Error("Unsupported decorator location: "+r)};
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2017 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
+
*/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};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|