@vandeurenglenn/lite-elements 0.3.26 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{j as o,v as s,D as i}from"./property-Do5-bKhz.js";import{t as m}from"./query-D-PG8Oyh.js";import{e as a}from"./custom-element-DIOmDbQp.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"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./tab.js";import"./input.js";import"@vandeurenglenn/lite-elements/icon.js";import"@vandeurenglenn/lite-elements/pane.js";let c=(()=>{let c,n,u,r,l=[a("demo-shell")],p=[],d=i,g=[],b=[],y=[],w=[];return class extends d{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(d[Symbol.metadata]??null):void 0;u=[m("custom-selector")],r=[m("custom-pages")],t(this,null,u,{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:n},l,{kind:"class",name:n.name,metadata:e},null,p),n=c.value,e&&Object.defineProperty(n,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}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-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[o`
1
+ import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{j as o,v as s,D as i}from"./property-Do5-bKhz.js";import{t as m}from"./query-D-PG8Oyh.js";import{e as a}from"./custom-element-DIOmDbQp.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"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./tab.js";import"./input.js";import"@vandeurenglenn/icon/icon.js";let c=(()=>{let c,u,n,r,l=[a("demo-shell")],p=[],d=i,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}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-serlector")?this.selector.select(t):(this.selector.select(t),this.pages.select(t)))}static styles=[o`
2
2
  custom-drawer-layout {
3
3
  height: 100%;
4
4
  width: 100%;
@@ -537,4 +537,4 @@ import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{j as o,v as s,D as i}f
537
537
  </custom-drawer-layout>
538
538
  <!-- </custom-root> -->
539
539
  <!-- </flex-row> -->
540
- `}constructor(){super(...arguments),e(this,w)}static{e(n,p)}},n})();export{c as DemoShell};
540
+ `}constructor(){super(...arguments),e(this,w)}static{e(u,p)}},u})();export{c as DemoShell};
@@ -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{Icon as 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-B0cSixZg.js";import"./property-Do5-bKhz.js";import"./custom-element-DIOmDbQp.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./query-D-PG8Oyh.js";import"./tab.js";import"./input.js";import"@vandeurenglenn/lite-elements/icon.js";import"@vandeurenglenn/lite-elements/pane.js";
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{Icon as 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-B0cSixZg.js";import"./property-Do5-bKhz.js";import"./custom-element-DIOmDbQp.js";import"./elevation.js";import"./it-Dft_Rjy-.js";import"./selector-mixin.js";import"./select-mixin.js";import"./scroll-mixin.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";import"./index-B3uz3f8C.js";import"./query-D-PG8Oyh.js";import"./tab.js";import"./input.js";import"@vandeurenglenn/icon/icon.js";
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import"@vandeurenglenn/lite-elements/icon.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";
1
+ import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import"@vandeurenglenn/icon/icon.js";import"./column-D2XB0lDz.js";import"./row-DNgwBcX5.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{t as o,j as i,v as s,D as n}from"./property-Do5-bKhz.js";import{e as l}from"./custom-element-DIOmDbQp.js";import"./notification.js";import"@vandeurenglenn/lite-elements/icon.js";import"@vandeurenglenn/lite-elements/pane.js";import"./row-DNgwBcX5.js";import"./column-D2XB0lDz.js";let a=(()=>{let a,r,c,p=[l("custom-notifications")],m=[],u=n,h=[],d=[];return class extends u{static{r=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],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},h,d),t(null,a={value:r},p,{kind:"class",name:r.name,metadata:e},null,m),r=a.value,e&&Object.defineProperty(r,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=[i`
1
+ import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{t as o,j as i,v as s,D as n}from"./property-Do5-bKhz.js";import{e as a}from"./custom-element-DIOmDbQp.js";import"./notification.js";import"./icon.js";import"./pane.js";import"./row-DNgwBcX5.js";import"@vandeurenglenn/icon/icon.js";import"./column-D2XB0lDz.js";import"./index-B3uz3f8C.js";import"./elevation.js";import"./button.js";let r=(()=>{let r,l,c,p=[a("custom-notifications")],m=[],u=n,h=[],d=[];return class extends u{static{l=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;c=[o({type:Boolean,reflect:!0})],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},h,d),t(null,r={value:l},p,{kind:"class",name:l.name,metadata:e},null,m),l=r.value,e&&Object.defineProperty(l,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=[i`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -63,4 +63,4 @@ import{_ as t,a as e}from"./tslib.es6-B0cSixZg.js";import{t as o,j as i,v as s,D
63
63
  <custom-icon style="margin-right: 24px;" icon="clear-all" @click="${this._onclick}"></custom-icon>
64
64
  </flex-row>
65
65
  </custom-pane>
66
- `}constructor(){super(...arguments),e(this,d)}static{e(r,m)}},r})();export{a as CustomNotifications};
66
+ `}constructor(){super(...arguments),e(this,d)}static{e(l,m)}},l})();export{r as CustomNotifications};
@@ -0,0 +1,13 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ import '../elevation/elevation.js';
3
+ export declare class CustomButton extends LiteElement {
4
+ #private;
5
+ accessor hasIcon: boolean;
6
+ accessor hasLabel: boolean;
7
+ accessor type: 'elevated' | 'filled' | 'text' | 'tonal' | 'outlined';
8
+ accessor label: any;
9
+ static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
10
+ connectedCallback(): void;
11
+ onChange(propertyKey: any, value: any): void;
12
+ render(): import("lit-html").TemplateResult<1>;
13
+ }
@@ -46,8 +46,7 @@ import './tab.js';
46
46
  import './input.js';
47
47
  import 'lit';
48
48
  import 'lit/decorators.js';
49
- import '@vandeurenglenn/lite-elements/icon.js';
50
- import '@vandeurenglenn/lite-elements/pane.js';
49
+ import '@vandeurenglenn/icon/icon.js';
51
50
 
52
51
  let DemoShell = (() => {
53
52
  let _classDecorators = [customElement('demo-shell')];
@@ -43,5 +43,4 @@ import './tab.js';
43
43
  import './input.js';
44
44
  import 'lit';
45
45
  import 'lit/decorators.js';
46
- import '@vandeurenglenn/lite-elements/icon.js';
47
- import '@vandeurenglenn/lite-elements/pane.js';
46
+ import '@vandeurenglenn/icon/icon.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { LiteElement } from '@vandeurenglenn/lite';
7
+ export declare class CustomElevation extends LiteElement {
8
+ accessor level: number;
9
+ onChange(propertyKey: any, value: any): void;
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ declare class Icon extends LiteElement {
3
+ accessor host: any;
4
+ accessor icon: string;
5
+ accessor setName: any;
6
+ accessor _icon: any;
7
+ onChange(propertyKey: any, value: any): void;
8
+ static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
9
+ connectedCallback(): void;
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ }
12
+ export { Icon, Icon as CustomIcon };
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import '@vandeurenglenn/lite-elements/icon.js';
2
+ import '@vandeurenglenn/icon/icon.js';
3
3
  import '@vandeurenglenn/flex-elements/column.js';
4
4
  import '@vandeurenglenn/flex-elements/row.js';
5
5
  export declare class CustomNotification extends LitElement {
@@ -1,7 +1,7 @@
1
1
  import { LiteElement } from '@vandeurenglenn/lite';
2
2
  import './notification.js';
3
- import '@vandeurenglenn/lite-elements/icon.js';
4
- import '@vandeurenglenn/lite-elements/pane.js';
3
+ import './../icon/icon.js';
4
+ import './../pane/pane.js';
5
5
  import '@vandeurenglenn/flex-elements/row.js';
6
6
  export declare class CustomNotifications extends LiteElement {
7
7
  accessor open: boolean;
@@ -1,7 +1,7 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
2
2
  import { css, html, LitElement } from 'lit';
3
3
  import { customElement, property } from 'lit/decorators.js';
4
- import '@vandeurenglenn/lite-elements/icon.js';
4
+ import '@vandeurenglenn/icon/icon.js';
5
5
  import '@vandeurenglenn/flex-elements/column.js';
6
6
  import '@vandeurenglenn/flex-elements/row.js';
7
7
 
@@ -1,12 +1,16 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
2
2
  import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
3
3
  import './notification.js';
4
- import '@vandeurenglenn/lite-elements/icon.js';
5
- import '@vandeurenglenn/lite-elements/pane.js';
4
+ import './icon.js';
5
+ import './pane.js';
6
6
  import '@vandeurenglenn/flex-elements/row.js';
7
7
  import 'lit';
8
8
  import 'lit/decorators.js';
9
+ import '@vandeurenglenn/icon/icon.js';
9
10
  import '@vandeurenglenn/flex-elements/column.js';
11
+ import '@vandeurenglenn/little-pubsub';
12
+ import './elevation.js';
13
+ import './button.js';
10
14
 
11
15
  let CustomNotifications = (() => {
12
16
  let _classDecorators = [customElement('custom-notifications')];
@@ -0,0 +1,14 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ import '../elevation/elevation.js';
3
+ import '../button/button.js';
4
+ import '../icon/icon.js';
5
+ export declare class CustomPane extends LiteElement {
6
+ accessor open: boolean;
7
+ accessor mobile: boolean;
8
+ accessor type: 'modal' | undefined;
9
+ accessor left: boolean;
10
+ accessor right: boolean;
11
+ accessor id: string;
12
+ closePane(event: any): void;
13
+ render(): import("lit-html").TemplateResult<1>;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -57,6 +57,14 @@
57
57
  "import": "./exports/banner.js",
58
58
  "types": "./exports/banner/banner.d.ts"
59
59
  },
60
+ "./button": {
61
+ "import": "./exports/button.js",
62
+ "types": "./exports/button/button.d.ts"
63
+ },
64
+ "./button.js": {
65
+ "import": "./exports/button.js",
66
+ "types": "./exports/button/button.d.ts"
67
+ },
60
68
  "./card": {
61
69
  "import": "./exports/card.js",
62
70
  "types": "./exports/card/card.d.ts"
@@ -185,6 +193,14 @@
185
193
  "import": "./exports/elements.js",
186
194
  "types": "./exports/elements.d.ts"
187
195
  },
196
+ "./elevation": {
197
+ "import": "./exports/elevation.js",
198
+ "types": "./exports/elevation/elevation.d.ts"
199
+ },
200
+ "./elevation.js": {
201
+ "import": "./exports/elevation.js",
202
+ "types": "./exports/elevation/elevation.d.ts"
203
+ },
188
204
  "./hour-field": {
189
205
  "import": "./exports/hour-field.js",
190
206
  "types": "./exports/time-picker/hour-field.d.ts"
@@ -209,6 +225,14 @@
209
225
  "import": "./exports/icon-set.js",
210
226
  "types": "./exports/icon/icon-set.d.ts"
211
227
  },
228
+ "./icon": {
229
+ "import": "./exports/icon.js",
230
+ "types": "./exports/icon/icon.d.ts"
231
+ },
232
+ "./icon.js": {
233
+ "import": "./exports/icon.js",
234
+ "types": "./exports/icon/icon.d.ts"
235
+ },
212
236
  "./input": {
213
237
  "import": "./exports/input.js",
214
238
  "types": "./exports/time-picker/input.d.ts"
@@ -273,6 +297,14 @@
273
297
  "import": "./exports/pages.js",
274
298
  "types": "./exports/pages/pages.d.ts"
275
299
  },
300
+ "./pane": {
301
+ "import": "./exports/pane.js",
302
+ "types": "./exports/pane/pane.d.ts"
303
+ },
304
+ "./pane.js": {
305
+ "import": "./exports/pane.js",
306
+ "types": "./exports/pane/pane.d.ts"
307
+ },
276
308
  "./rail": {
277
309
  "import": "./exports/rail.js",
278
310
  "types": "./exports/rail/rail.d.ts"