@vandeurenglenn/lite-elements 0.3.32 → 0.3.33

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;
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.33",
4
4
  "description": "set of lite elements following Material Design 3 spec",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -129,14 +129,6 @@
129
129
  "import": "./exports/dial.js",
130
130
  "types": "./exports/time-picker/dial.d.ts"
131
131
  },
132
- "./dialog": {
133
- "import": "./exports/dialog.js",
134
- "types": "./exports/dialog/dialog.d.ts"
135
- },
136
- "./dialog.js": {
137
- "import": "./exports/dialog.js",
138
- "types": "./exports/dialog/dialog.d.ts"
139
- },
140
132
  "./divider": {
141
133
  "import": "./exports/divider.js",
142
134
  "types": "./exports/divider/divider.d.ts"
@@ -201,14 +193,6 @@
201
193
  "import": "./exports/elements.js",
202
194
  "types": "./exports/elements.d.ts"
203
195
  },
204
- "./elevation": {
205
- "import": "./exports/elevation.js",
206
- "types": "./exports/elevation/elevation.d.ts"
207
- },
208
- "./elevation.js": {
209
- "import": "./exports/elevation.js",
210
- "types": "./exports/elevation/elevation.d.ts"
211
- },
212
196
  "./file-reader-mixin": {
213
197
  "import": "./exports/file-reader-mixin.js",
214
198
  "types": "./exports/mixins/file-reader-mixin.d.ts"
@@ -241,14 +225,6 @@
241
225
  "import": "./exports/icon-set.js",
242
226
  "types": "./exports/icon/icon-set.d.ts"
243
227
  },
244
- "./icon": {
245
- "import": "./exports/icon.js",
246
- "types": "./exports/icon/icon.d.ts"
247
- },
248
- "./icon.js": {
249
- "import": "./exports/icon.js",
250
- "types": "./exports/icon/icon.d.ts"
251
- },
252
228
  "./input": {
253
229
  "import": "./exports/input.js",
254
230
  "types": "./exports/time-picker/input.d.ts"
@@ -305,14 +281,6 @@
305
281
  "import": "./exports/notifications.js",
306
282
  "types": "./exports/notification/notifications.d.ts"
307
283
  },
308
- "./pages": {
309
- "import": "./exports/pages.js",
310
- "types": "./exports/pages/pages.d.ts"
311
- },
312
- "./pages.js": {
313
- "import": "./exports/pages.js",
314
- "types": "./exports/pages/pages.d.ts"
315
- },
316
284
  "./pane": {
317
285
  "import": "./exports/pane.js",
318
286
  "types": "./exports/pane/pane.d.ts"
@@ -353,30 +321,6 @@
353
321
  "import": "./exports/section.js",
354
322
  "types": "./exports/section/section.d.ts"
355
323
  },
356
- "./select-mixin": {
357
- "import": "./exports/select-mixin.js",
358
- "types": "./exports/mixins/select-mixin.d.ts"
359
- },
360
- "./select-mixin.js": {
361
- "import": "./exports/select-mixin.js",
362
- "types": "./exports/mixins/select-mixin.d.ts"
363
- },
364
- "./selector-mixin": {
365
- "import": "./exports/selector-mixin.js",
366
- "types": "./exports/mixins/selector-mixin.d.ts"
367
- },
368
- "./selector-mixin.js": {
369
- "import": "./exports/selector-mixin.js",
370
- "types": "./exports/mixins/selector-mixin.d.ts"
371
- },
372
- "./selector": {
373
- "import": "./exports/selector.js",
374
- "types": "./exports/selector/selector.d.ts"
375
- },
376
- "./selector.js": {
377
- "import": "./exports/selector.js",
378
- "types": "./exports/selector/selector.d.ts"
379
- },
380
324
  "./summary-mirror": {
381
325
  "import": "./exports/summary-mirror.js",
382
326
  "types": "./exports/summary/summary-mirror.d.ts"
@@ -401,22 +345,6 @@
401
345
  "import": "./exports/supporting-pane.js",
402
346
  "types": "./exports/supporting-pane/supporting-pane.d.ts"
403
347
  },
404
- "./tab": {
405
- "import": "./exports/tab.js",
406
- "types": "./exports/tabs/tab.d.ts"
407
- },
408
- "./tab.js": {
409
- "import": "./exports/tab.js",
410
- "types": "./exports/tabs/tab.d.ts"
411
- },
412
- "./tabs": {
413
- "import": "./exports/tabs.js",
414
- "types": "./exports/tabs/tabs.d.ts"
415
- },
416
- "./tabs.js": {
417
- "import": "./exports/tabs.js",
418
- "types": "./exports/tabs/tabs.d.ts"
419
- },
420
348
  "./text-field": {
421
349
  "import": "./exports/text-field.js",
422
350
  "types": "./exports/text-field/text-field.d.ts"
@@ -1,15 +0,0 @@
1
- import { LiteElement } from '@vandeurenglenn/lite';
2
- import '../elevation/elevation.js';
3
- import '../icon/icon.js';
4
- export declare class CustomDialog extends LiteElement {
5
- accessor open: boolean;
6
- accessor fullscreen: boolean;
7
- accessor hasActions: boolean;
8
- accessor hasHeader: boolean;
9
- accessor hasHero: boolean;
10
- connectedCallback(): void;
11
- onChange(propertyKey: any, value: any): void;
12
- private _close;
13
- static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
14
- render(): import("lit-html").TemplateResult<1>;
15
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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,32 +0,0 @@
1
- import { LiteElement } from '@vandeurenglenn/lite';
2
- export declare class SelectBase extends LiteElement {
3
- #private;
4
- currentSelected: HTMLElement;
5
- connectedCallback(): void;
6
- get multi(): boolean;
7
- set multi(value: boolean);
8
- get defaultSelected(): string | 0;
9
- set selected(value: string | number | HTMLElement | string[] | HTMLElement[]);
10
- get selected(): string | number | HTMLElement | string[] | HTMLElement[];
11
- get slotted(): HTMLSlotElement | this;
12
- get attrForSelected(): string;
13
- /**
14
- * get the attribute used to set selected
15
- *
16
- * @example
17
- * <custom-selector attr-for-selected="select">
18
- * <li select="1"></li>
19
- * <li select="2"></li>
20
- * </custom-selector>
21
- */
22
- set attrForSelected(value: string);
23
- attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
24
- /**
25
- * @param {string|number|HTMLElement} selected
26
- */
27
- select(selected: any): void;
28
- next(): void;
29
- previous(): void;
30
- getIndexFor(element: any): number;
31
- }
32
- export declare function SelectMixin<TBase extends CustomElementConstructor>(Base: TBase): typeof SelectBase;
@@ -1,8 +0,0 @@
1
- import { SelectBase } from './select-mixin.js';
2
- export declare class SelectorBase extends SelectBase {
3
- #private;
4
- constructor();
5
- connectedCallback(): Promise<void>;
6
- disconnectedCallback(): void;
7
- }
8
- export declare function SelectorMixin<TBase extends CustomElementConstructor>(Base: TBase): typeof SelectorBase;
@@ -1,14 +0,0 @@
1
- import { SelectBase } from '../mixins/select-mixin.js';
2
- /**
3
- * @extends HTMLElement
4
- */
5
- export declare class CustomPages extends SelectBase {
6
- connectedCallback(): Promise<void>;
7
- isEvenNumber(number: any): boolean;
8
- /**
9
- * set animation class when slot changes
10
- */
11
- slotchange(): void;
12
- static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
13
- render(): import("lit-html").TemplateResult<1>;
14
- }
@@ -1,5 +0,0 @@
1
- import { SelectorBase } from '../mixins/selector-mixin.js';
2
- export declare class CustomSelector extends SelectorBase {
3
- static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
4
- render(): import("lit-html").TemplateResult<1>;
5
- }
@@ -1,4 +0,0 @@
1
- import { LiteElement } from '@vandeurenglenn/lite';
2
- export declare class CustomTab extends LiteElement {
3
- render(): import("lit-html").TemplateResult<1>;
4
- }
@@ -1,5 +0,0 @@
1
- import { SelectorBase } from '../mixins/selector-mixin.js';
2
- import './tab.js';
3
- export declare class CustomTabs extends SelectorBase {
4
- render(): import("lit-html").TemplateResult<1>;
5
- }