@vandeurenglenn/lite-elements 0.4.0 → 0.4.1

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-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`
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"./scroll-mixin.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"./column-DdHjND9w.js";import"./row-B1G5fFY7.js";import"./tab.js";import"./input2.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%;
@@ -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-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
+ 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"./input2.js";import"./property-EGWO0JMT.js";
@@ -1,6 +1 @@
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
- :host {
3
- display: flex;
4
- flex-direction: column;
5
- }
6
- `];render(){return m` <input type="time" /> `}static{e(o,n)}},o})();export{i as TimePickerInput};
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 +1,6 @@
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
+ 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
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ }
6
+ `];render(){return m` <input type="time" /> `}static{e(o,n)}},o})();export{i as TimePickerInput};
@@ -15,7 +15,8 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,t as o,r as a,b
15
15
  width: 100%;
16
16
  box-shadow: var(--custom-pane-box-shadow, 0px 0px 10px 0px rgba(0, 0, 0, 0.5));
17
17
  max-width: var(--custom-pane-width, 100%);
18
- transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
18
+ transition:
19
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
19
20
  var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
20
21
  }
21
22
 
@@ -56,11 +57,12 @@ import{_ as e,a as t}from"./tslib.es6-B87RQr7F.js";import{i as s,t as o,r as a,b
56
57
  :host([open]) {
57
58
  opacity: 1;
58
59
  pointer-events: auto;
59
- transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
60
+ transition:
61
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
60
62
  var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
61
63
  }
62
64
 
63
- :host([open]) :host([left]),
65
+ :host([open][left]),
64
66
  :host([open][right]) {
65
67
  transform: translateX(0);
66
68
  }
@@ -1,4 +1,4 @@
1
- import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as a,i as s,b as i}from"./dark-mode2-CBfmAvIL.js";import{e as l}from"./custom-element-Wj8bC3gl.js";import"./input.js";let c=(()=>{let c,m,n=[l("custom-time-picker")],p=[],o=a;return class extends o{static{m=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;t(null,c={value:m},n,{kind:"class",name:m.name,metadata:e},null,p),m=c.value,e&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[s`
1
+ import{_ as t,a as e}from"./tslib.es6-B87RQr7F.js";import{t as a,i as s,b as i}from"./dark-mode2-CBfmAvIL.js";import{e as l}from"./custom-element-Wj8bC3gl.js";import"./input2.js";let c=(()=>{let c,m,n=[l("custom-time-picker")],p=[],o=a;return class extends o{static{m=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;t(null,c={value:m},n,{kind:"class",name:m.name,metadata:e},null,p),m=c.value,e&&Object.defineProperty(m,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[s`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -33,21 +33,21 @@ import './toggle-button.js';
33
33
  import './time-picker.js';
34
34
  import './notification.js';
35
35
  import './notifications.js';
36
+ import '@vandeurenglenn/little-pubsub';
36
37
  import './code.js';
38
+ import './scroll-mixin.js';
37
39
  import './elevation.js';
38
40
  import './button.css.js';
39
41
  import '@vandeurenglenn/flex-elements/it.js';
40
42
  import './selector-mixin.js';
41
43
  import './select-mixin.js';
42
44
  import '@vandeurenglenn/custom-shared-styles/drawer.css';
43
- import './scroll-mixin.js';
45
+ import '@vandeurenglenn/custom-shared-styles/pane.css';
44
46
  import '@vandeurenglenn/flex-elements/column.js';
45
47
  import '@vandeurenglenn/flex-elements/row.js';
46
48
  import '@vandeurenglenn/custom-shared-styles/top-app-bar.css';
47
- import '@vandeurenglenn/little-pubsub';
48
- import '@vandeurenglenn/custom-shared-styles/pane.css';
49
49
  import './tab.js';
50
- import './input.js';
50
+ import './input2.js';
51
51
  import 'lit';
52
52
  import 'lit/decorators.js';
53
53
 
@@ -44,6 +44,6 @@ import '@vandeurenglenn/custom-shared-styles/top-app-bar.css';
44
44
  import '@vandeurenglenn/little-pubsub';
45
45
  import '@vandeurenglenn/custom-shared-styles/pane.css';
46
46
  import './tab.js';
47
- import './input.js';
47
+ import './input2.js';
48
48
  import 'lit';
49
49
  import 'lit/decorators.js';
package/exports/input.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, LiteElement, css, html } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
3
3
 
4
- let TimePickerInput = (() => {
5
- let _classDecorators = [customElement('custom-time-picker-input')];
4
+ let CustomPlacesInput = (() => {
5
+ let _classDecorators = [customElement('custom-pane')];
6
6
  let _classDescriptor;
7
7
  let _classExtraInitializers = [];
8
8
  let _classThis;
@@ -15,16 +15,9 @@ let TimePickerInput = (() => {
15
15
  _classThis = _classDescriptor.value;
16
16
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
17
17
  }
18
- static styles = [
19
- css `
20
- :host {
21
- display: flex;
22
- flex-direction: column;
23
- }
24
- `
25
- ];
18
+ static styles = [];
26
19
  render() {
27
- return html ` <input type="time" /> `;
20
+ return html `<input type="text" placeholder="Search for places..." />`;
28
21
  }
29
22
  static {
30
23
  __runInitializers(_classThis, _classExtraInitializers);
@@ -33,4 +26,4 @@ let TimePickerInput = (() => {
33
26
  return _classThis;
34
27
  })();
35
28
 
36
- export { TimePickerInput };
29
+ export { CustomPlacesInput };
package/exports/input2.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, css, html } from '@vandeurenglenn/lite';
3
3
 
4
- let CustomPlacesInput = (() => {
5
- let _classDecorators = [customElement('custom-pane')];
4
+ let TimePickerInput = (() => {
5
+ let _classDecorators = [customElement('custom-time-picker-input')];
6
6
  let _classDescriptor;
7
7
  let _classExtraInitializers = [];
8
8
  let _classThis;
@@ -15,9 +15,16 @@ let CustomPlacesInput = (() => {
15
15
  _classThis = _classDescriptor.value;
16
16
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
17
17
  }
18
- static styles = [];
18
+ static styles = [
19
+ css `
20
+ :host {
21
+ display: flex;
22
+ flex-direction: column;
23
+ }
24
+ `
25
+ ];
19
26
  render() {
20
- return html `<input type="text" placeholder="Search for places..." />`;
27
+ return html ` <input type="time" /> `;
21
28
  }
22
29
  static {
23
30
  __runInitializers(_classThis, _classExtraInitializers);
@@ -26,4 +33,4 @@ let CustomPlacesInput = (() => {
26
33
  return _classThis;
27
34
  })();
28
35
 
29
- export { CustomPlacesInput };
36
+ export { TimePickerInput };
@@ -1,6 +1,6 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
2
  import { customElement, LiteElement, css, html } from '@vandeurenglenn/lite';
3
- import './input.js';
3
+ import './input2.js';
4
4
 
5
5
  let CustomTimePicker = (() => {
6
6
  let _classDecorators = [customElement('custom-time-picker')];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,9 @@
21
21
  "@material-design-icons/svg": "^0.14.15",
22
22
  "@material-symbols/svg-400": "^0.44.0",
23
23
  "@material/web": "^2.4.1",
24
- "@vandeurenglenn/custom-shared-styles": "^0.0.22",
24
+ "@vandeurenglenn/custom-shared-styles": "^0.0.23",
25
25
  "@vandeurenglenn/flex-elements": "^1.4.0",
26
- "@vandeurenglenn/lite": "^1.1.0",
27
- "custom-element-decorator": "^0.6.0"
26
+ "@vandeurenglenn/lite": "^1.1.0"
28
27
  },
29
28
  "devDependencies": {
30
29
  "@rollup/plugin-commonjs": "^29.0.2",
@@ -34,11 +33,7 @@
34
33
  "@rollup/plugin-typescript": "^12.3.0",
35
34
  "@types/html": "^1.0.4",
36
35
  "@types/node": "^25.5.2",
37
- "@web/rollup-plugin-html": "^3.1.0",
38
- "chrome-launcher": "^1.2.1",
39
36
  "globby": "^16.2.0",
40
- "lighthouse": "^13.0.3",
41
- "material-symbols": "^0.44.0",
42
37
  "rimraf": "^6.1.3",
43
38
  "rollup": "^4.60.1",
44
39
  "rollup-plugin-auto-exports": "^1.1.1",