@vandeurenglenn/lite-elements 0.3.82 → 0.3.84

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.
@@ -68,6 +68,7 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as o,i as s,x as i}f
68
68
  <custom-drawer-item route="toggle">toggle</custom-drawer-item>
69
69
  <custom-drawer-item route="toggle-button">toggle-button</custom-drawer-item>
70
70
  <custom-drawer-item route="time-picker">time-picker</custom-drawer-item>
71
+ <custom-drawer-item route="places-input">places-input</custom-drawer-item>
71
72
  </custom-selector>
72
73
  </flex-column>
73
74
 
@@ -536,6 +537,10 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as o,i as s,x as i}f
536
537
  </demo-section>
537
538
  </custom-pages>
538
539
  </flex-column>
540
+
541
+ <demo-section route="places-input">
542
+ <places-input placeholder="place"> </places-input>
543
+ </demo-section>
539
544
  </custom-drawer-layout>
540
545
  <!-- </custom-root> -->
541
546
  <!-- </flex-row> -->
@@ -25,6 +25,8 @@ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{s as o,i as s,x as i}f
25
25
  <custom-drawer-item route="list-item">list-item</custom-drawer-item>
26
26
  <custom-drawer-item route="toggle">toggle</custom-drawer-item>
27
27
  <custom-drawer-item route="toggle-button">toggle-button</custom-drawer-item>
28
+
29
+ <custom-drawer-item route="places-input">places-input</custom-drawer-item>
28
30
  </custom-selector>
29
31
  </flex-column>
30
32
 
@@ -0,0 +1 @@
1
+ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{s as a,x as l}from"./dark-mode-m29sAj4H.js";import{e as r}from"./custom-element-B_TPyPQO.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};
@@ -87,15 +87,18 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,s as o,r as a,x
87
87
  box-sizing: border-box;
88
88
  align-items: center;
89
89
  }
90
- `;let c=(()=>{let s,c,l,m,d,h,p,g,u=[r("custom-pane")],f=[],b=o,v=[],y=[],_=[],x=[],w=[],j=[],k=[],z=[],S=[],B=[],P=[],X=[];return class extends b{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(b[Symbol.metadata]??null):void 0;l=[a({type:Boolean,reflect:!0})],m=[a({type:Boolean,reflect:!0})],d=[a({type:String,reflect:!0})],h=[a({type:Boolean,reflect:!0})],p=[a({type:Boolean,reflect:!0})],g=[a({type:String})],e(this,null,l,{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},v,y),e(this,null,m,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:e=>"mobile"in e,get:e=>e.mobile,set:(e,t)=>{e.mobile=t}},metadata:t},_,x),e(this,null,d,{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},w,j),e(this,null,h,{kind:"accessor",name:"left",static:!1,private:!1,access:{has:e=>"left"in e,get:e=>e.left,set:(e,t)=>{e.left=t}},metadata:t},k,z),e(this,null,p,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:e=>"right"in e,get:e=>e.right,set:(e,t)=>{e.right=t}},metadata:t},S,B),e(this,null,g,{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},P,X),e(null,s={value:c},u,{kind:"class",name:c.name,metadata:t},null,f),c=s.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,v,!1);get open(){return this.#e}set open(e){this.#e=e}#t=(t(this,y),t(this,_,!1));get mobile(){return this.#t}set mobile(e){this.#t=e}#s=(t(this,x),t(this,w,void 0));get type(){return this.#s}set type(e){this.#s=e}#o=(t(this,j),t(this,k,!0));get left(){return this.#o}set left(e){this.#o=e}#a=(t(this,z),t(this,S,!1));get right(){return this.#a}set right(e){this.#a=e}#i=(t(this,B),t(this,P,void 0));get id(){return this.#i}set id(e){this.#i=e}closePane(e){e.stopPropagation(),this.open=!1,document.dispatchEvent(new CustomEvent("custom-pane-close",{detail:this.id||""+(this.left?"left":"right")}))}static styles=[n];render(){return i`
90
+ `;let c=(()=>{let s,c,l,m,d,h,p,g,u,f=[r("custom-pane")],_=[],v=o,b=[],y=[],x=[],w=[],k=[],j=[],z=[],S=[],B=[],P=[],X=[],$=[],E=[],O=[];return class extends v{static{c=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(v[Symbol.metadata]??null):void 0;l=[a({type:Boolean,reflect:!0})],m=[a({type:Boolean,reflect:!0})],d=[a({type:String,reflect:!0})],h=[a({type:Boolean,reflect:!0})],p=[a({type:Boolean,reflect:!0})],g=[a({type:String})],u=[a({type:String})],e(this,null,l,{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},b,y),e(this,null,m,{kind:"accessor",name:"mobile",static:!1,private:!1,access:{has:e=>"mobile"in e,get:e=>e.mobile,set:(e,t)=>{e.mobile=t}},metadata:t},x,w),e(this,null,d,{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(this,null,h,{kind:"accessor",name:"left",static:!1,private:!1,access:{has:e=>"left"in e,get:e=>e.left,set:(e,t)=>{e.left=t}},metadata:t},z,S),e(this,null,p,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:e=>"right"in e,get:e=>e.right,set:(e,t)=>{e.right=t}},metadata:t},B,P),e(this,null,g,{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},X,$),e(this,null,u,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:e=>"icon"in e,get:e=>e.icon,set:(e,t)=>{e.icon=t}},metadata:t},E,O),e(null,s={value:c},f,{kind:"class",name:c.name,metadata:t},null,_),c=s.value,t&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,b,!1);get open(){return this.#e}set open(e){this.#e=e}#t=(t(this,y),t(this,x,!1));get mobile(){return this.#t}set mobile(e){this.#t=e}#s=(t(this,w),t(this,k,void 0));get type(){return this.#s}set type(e){this.#s=e}#o=(t(this,j),t(this,z,!0));get left(){return this.#o}set left(e){this.#o=e}#a=(t(this,S),t(this,B,!1));get right(){return this.#a}set right(e){this.#a=e}#i=(t(this,P),t(this,X,void 0));get id(){return this.#i}set id(e){this.#i=e}#r=(t(this,$),t(this,E,void 0));get icon(){return this.#r}set icon(e){this.#r=e}closePane(e){e.stopPropagation(),this.open=!1,document.dispatchEvent(new CustomEvent("custom-pane-close",{detail:this.id||""+(this.left?"left":"right")}))}static styles=[n];render(){return i`
91
91
  <custom-elevation></custom-elevation>
92
92
  <aside>
93
93
  <slot name="header">
94
94
  <flex-row center>
95
95
  <slot name="headline"></slot>
96
96
  <flex-it></flex-it>
97
- <custom-icon-button @click=${e=>this.closePane(e)} .id=${this.id} icon="menu_open">
98
- </custom-icon-button>
97
+
98
+ <slot name="close">
99
+ <custom-icon-button @click=${e=>this.closePane(e)} .id=${this.id} .icon=${this.icon||"menu_open"}>
100
+ </custom-icon-button>
101
+ </slot>
99
102
  </flex-row>
100
103
  </slot>
101
104
  <flex-column class="content">
@@ -105,4 +108,4 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,s as o,r as a,x
105
108
  <slot name="footer"></slot>
106
109
  </flex-row>
107
110
  </aside>
108
- `}constructor(){super(...arguments),t(this,X)}static{t(c,f)}},c})();export{c as CustomPane};
111
+ `}constructor(){super(...arguments),t(this,O)}static{t(c,_)}},c})();export{c as CustomPane};
@@ -171,6 +171,7 @@ let DemoShell = (() => {
171
171
  <custom-drawer-item route="toggle">toggle</custom-drawer-item>
172
172
  <custom-drawer-item route="toggle-button">toggle-button</custom-drawer-item>
173
173
  <custom-drawer-item route="time-picker">time-picker</custom-drawer-item>
174
+ <custom-drawer-item route="places-input">places-input</custom-drawer-item>
174
175
  </custom-selector>
175
176
  </flex-column>
176
177
 
@@ -639,6 +640,10 @@ let DemoShell = (() => {
639
640
  </demo-section>
640
641
  </custom-pages>
641
642
  </flex-column>
643
+
644
+ <demo-section route="places-input">
645
+ <places-input placeholder="place"> </places-input>
646
+ </demo-section>
642
647
  </custom-drawer-layout>
643
648
  <!-- </custom-root> -->
644
649
  <!-- </flex-row> -->
package/exports/demo.js CHANGED
@@ -79,6 +79,8 @@ let DemoShell = (() => {
79
79
  <custom-drawer-item route="list-item">list-item</custom-drawer-item>
80
80
  <custom-drawer-item route="toggle">toggle</custom-drawer-item>
81
81
  <custom-drawer-item route="toggle-button">toggle-button</custom-drawer-item>
82
+
83
+ <custom-drawer-item route="places-input">places-input</custom-drawer-item>
82
84
  </custom-selector>
83
85
  </flex-column>
84
86
 
@@ -0,0 +1,29 @@
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
+ import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
3
+
4
+ let CustomPlacesInput = (() => {
5
+ let _classDecorators = [customElement('custom-pane')];
6
+ let _classDescriptor;
7
+ let _classExtraInitializers = [];
8
+ let _classThis;
9
+ let _classSuper = LiteElement;
10
+ (class extends _classSuper {
11
+ static { _classThis = this; }
12
+ static {
13
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
14
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
15
+ _classThis = _classDescriptor.value;
16
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
17
+ }
18
+ static styles = [];
19
+ render() {
20
+ return html `<input type="text" placeholder="Search for places..." />`;
21
+ }
22
+ static {
23
+ __runInitializers(_classThis, _classExtraInitializers);
24
+ }
25
+ });
26
+ return _classThis;
27
+ })();
28
+
29
+ export { CustomPlacesInput };
@@ -9,6 +9,7 @@ export declare class CustomPane extends LiteElement {
9
9
  accessor left: boolean;
10
10
  accessor right: boolean;
11
11
  accessor id: string;
12
+ accessor icon: string;
12
13
  closePane(event: any): void;
13
14
  static styles: import("lit").CSSResultOrNative[];
14
15
  render(): import("lit-html").TemplateResult<1>;
package/exports/pane.js CHANGED
@@ -32,6 +32,9 @@ let CustomPane = (() => {
32
32
  let _id_decorators;
33
33
  let _id_initializers = [];
34
34
  let _id_extraInitializers = [];
35
+ let _icon_decorators;
36
+ let _icon_initializers = [];
37
+ let _icon_extraInitializers = [];
35
38
  (class extends _classSuper {
36
39
  static { _classThis = this; }
37
40
  static {
@@ -42,12 +45,14 @@ let CustomPane = (() => {
42
45
  _left_decorators = [property({ type: Boolean, reflect: true })];
43
46
  _right_decorators = [property({ type: Boolean, reflect: true })];
44
47
  _id_decorators = [property({ type: String })];
48
+ _icon_decorators = [property({ type: String })];
45
49
  __esDecorate(this, null, _open_decorators, { kind: "accessor", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
46
50
  __esDecorate(this, null, _mobile_decorators, { kind: "accessor", name: "mobile", static: false, private: false, access: { has: obj => "mobile" in obj, get: obj => obj.mobile, set: (obj, value) => { obj.mobile = value; } }, metadata: _metadata }, _mobile_initializers, _mobile_extraInitializers);
47
51
  __esDecorate(this, null, _type_decorators, { kind: "accessor", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);
48
52
  __esDecorate(this, null, _left_decorators, { kind: "accessor", name: "left", static: false, private: false, access: { has: obj => "left" in obj, get: obj => obj.left, set: (obj, value) => { obj.left = value; } }, metadata: _metadata }, _left_initializers, _left_extraInitializers);
49
53
  __esDecorate(this, null, _right_decorators, { kind: "accessor", name: "right", static: false, private: false, access: { has: obj => "right" in obj, get: obj => obj.right, set: (obj, value) => { obj.right = value; } }, metadata: _metadata }, _right_initializers, _right_extraInitializers);
50
54
  __esDecorate(this, null, _id_decorators, { kind: "accessor", name: "id", static: false, private: false, access: { has: obj => "id" in obj, get: obj => obj.id, set: (obj, value) => { obj.id = value; } }, metadata: _metadata }, _id_initializers, _id_extraInitializers);
55
+ __esDecorate(this, null, _icon_decorators, { kind: "accessor", name: "icon", static: false, private: false, access: { has: obj => "icon" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);
51
56
  __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
52
57
  _classThis = _classDescriptor.value;
53
58
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
@@ -70,6 +75,9 @@ let CustomPane = (() => {
70
75
  #id_accessor_storage = (__runInitializers(this, _right_extraInitializers), __runInitializers(this, _id_initializers, void 0));
71
76
  get id() { return this.#id_accessor_storage; }
72
77
  set id(value) { this.#id_accessor_storage = value; }
78
+ #icon_accessor_storage = (__runInitializers(this, _id_extraInitializers), __runInitializers(this, _icon_initializers, void 0));
79
+ get icon() { return this.#icon_accessor_storage; }
80
+ set icon(value) { this.#icon_accessor_storage = value; }
73
81
  closePane(event) {
74
82
  event.stopPropagation();
75
83
  this.open = false;
@@ -84,8 +92,11 @@ let CustomPane = (() => {
84
92
  <flex-row center>
85
93
  <slot name="headline"></slot>
86
94
  <flex-it></flex-it>
87
- <custom-icon-button @click=${(e) => this.closePane(e)} .id=${this.id} icon="menu_open">
88
- </custom-icon-button>
95
+
96
+ <slot name="close">
97
+ <custom-icon-button @click=${(e) => this.closePane(e)} .id=${this.id} .icon=${this.icon || 'menu_open'}>
98
+ </custom-icon-button>
99
+ </slot>
89
100
  </flex-row>
90
101
  </slot>
91
102
  <flex-column class="content">
@@ -99,7 +110,7 @@ let CustomPane = (() => {
99
110
  }
100
111
  constructor() {
101
112
  super(...arguments);
102
- __runInitializers(this, _id_extraInitializers);
113
+ __runInitializers(this, _icon_extraInitializers);
103
114
  }
104
115
  static {
105
116
  __runInitializers(_classThis, _classExtraInitializers);
@@ -0,0 +1,5 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ export declare class CustomPlacesInput extends LiteElement {
3
+ static styles: any[];
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.3.82",
3
+ "version": "0.3.84",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {