@vandeurenglenn/lite-elements 0.3.32 → 0.3.34

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/button.js CHANGED
@@ -27,7 +27,7 @@ let CustomButton = (() => {
27
27
  _hasIcon_decorators = [property({ attribute: 'has-icon', reflect: true })];
28
28
  _hasLabel_decorators = [property({ attribute: 'has-label', reflect: true })];
29
29
  _type_decorators = [property({ attribute: 'type', reflect: true })];
30
- _label_decorators = [property()];
30
+ _label_decorators = [property({ attribute: true })];
31
31
  __esDecorate(this, null, _hasIcon_decorators, { kind: "accessor", name: "hasIcon", static: false, private: false, access: { has: obj => "hasIcon" in obj, get: obj => obj.hasIcon, set: (obj, value) => { obj.hasIcon = value; } }, metadata: _metadata }, _hasIcon_initializers, _hasIcon_extraInitializers);
32
32
  __esDecorate(this, null, _hasLabel_decorators, { kind: "accessor", name: "hasLabel", static: false, private: false, access: { has: obj => "hasLabel" in obj, get: obj => obj.hasLabel, set: (obj, value) => { obj.hasLabel = value; } }, metadata: _metadata }, _hasLabel_initializers, _hasLabel_extraInitializers);
33
33
  __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);
@@ -89,7 +89,7 @@ let CustomDrawerLayout = (() => {
89
89
  if (this.mainDrawerId === detail && !this.keepClosed)
90
90
  this.drawerOpen = true;
91
91
  });
92
- document.addEventListener('custom-theme-narrow', this._onnarrow);
92
+ document.addEventListener('custom-theme-narrow', this._onnarrow.bind(this));
93
93
  }
94
94
  _onnarrow({ detail }) {
95
95
  this.narrow = detail;
@@ -11,7 +11,7 @@ export { CustomDrawerItem } from './drawer-item.js';
11
11
  export { CustomSection } from './section2.js';
12
12
  export { CustomDrawerLayout } from './drawer-layout.js';
13
13
  export { CustomTopAppBar } from './top-app-bar.js';
14
- export { Icon as CustomIcon } from './icon.js';
14
+ export { CustomIcon } from './icon.js';
15
15
  export { CustomTypography } from './typography.js';
16
16
  export { CustomPane } from './pane.js';
17
17
  export { CustomSupportingPane } from './supporting-pane.js';
@@ -1,5 +1,5 @@
1
1
  import { LiteElement } from '@vandeurenglenn/lite';
2
- declare class Icon extends LiteElement {
2
+ export declare class CustomIcon extends LiteElement {
3
3
  accessor host: any;
4
4
  accessor icon: string;
5
5
  accessor setName: any;
@@ -9,4 +9,3 @@ declare class Icon extends LiteElement {
9
9
  connectedCallback(): void;
10
10
  render(): import("lit-html").TemplateResult<1>;
11
11
  }
12
- export { Icon, Icon as CustomIcon };
package/exports/icon.js CHANGED
@@ -3,7 +3,7 @@ import PubSub from '@vandeurenglenn/little-pubsub';
3
3
  import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
4
4
 
5
5
  globalThis.pubsub = globalThis.pubsub || new PubSub(true);
6
- let Icon = (() => {
6
+ let CustomIcon = (() => {
7
7
  let _classDecorators = [customElement('custom-icon')];
8
8
  let _classDescriptor;
9
9
  let _classExtraInitializers = [];
@@ -100,4 +100,4 @@ let Icon = (() => {
100
100
  return _classThis;
101
101
  })();
102
102
 
103
- export { Icon as CustomIcon, Icon };
103
+ export { CustomIcon };
@@ -2,12 +2,12 @@ import '@material/web/button/filled-tonal-button.js';
2
2
  import '@material/web/textfield/outlined-text-field.js';
3
3
  import { DeviceApi } from './../apis/device.js';
4
4
  import '@material/web/progress/circular-progress.js';
5
- import '@vandeurenglenn/lite-elements/dialog.js';
6
- import '@vandeurenglenn/lite-elements/icon.js';
7
- import '@vandeurenglenn/lite-elements/tabs.js';
8
- import '@vandeurenglenn/lite-elements/tab.js';
9
- import '@vandeurenglenn/lite-elements/selector.js';
10
- import '@vandeurenglenn/lite-elements/pages.js';
5
+ import './../dialog/dialog.js';
6
+ import './../icon/icon.js';
7
+ import './../tabs/tabs.js';
8
+ import './../tabs/tab.js';
9
+ import './../selector/selector.js';
10
+ import './../pages/pages.js';
11
11
  declare type actionResult = {
12
12
  action: string;
13
13
  fields: [];
@@ -5,13 +5,17 @@ import '@material/web/button/filled-tonal-button.js';
5
5
  import '@material/web/textfield/outlined-text-field.js';
6
6
  import { DeviceApi } from './device.js';
7
7
  import '@material/web/progress/circular-progress.js';
8
- import '@vandeurenglenn/lite-elements/dialog.js';
9
- import '@vandeurenglenn/lite-elements/icon.js';
10
- import '@vandeurenglenn/lite-elements/tabs.js';
11
- import '@vandeurenglenn/lite-elements/tab.js';
12
- import '@vandeurenglenn/lite-elements/selector.js';
13
- import '@vandeurenglenn/lite-elements/pages.js';
8
+ import './dialog.js';
9
+ import './icon.js';
10
+ import './tabs.js';
11
+ import './tab.js';
12
+ import './selector.js';
13
+ import './pages.js';
14
14
  import { FileReaderMixin } from './file-reader-mixin.js';
15
+ import './elevation.js';
16
+ import '@vandeurenglenn/little-pubsub';
17
+ import './selector-mixin.js';
18
+ import './select-mixin.js';
15
19
 
16
20
  let CustomUploadImage = (() => {
17
21
  let _classDecorators = [customElement('custom-upload-image')];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vandeurenglenn/lite-elements",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {