@vandeurenglenn/lite-elements 0.3.33 → 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/bundle/elements.js +1 -1
- package/exports/bundle/icon.js +1 -1
- package/exports/bundle/upload-image.js +1 -1
- package/exports/dialog/dialog.d.ts +15 -0
- package/exports/elements.js +1 -1
- package/exports/elevation/elevation.d.ts +11 -0
- package/exports/icon/icon.d.ts +11 -0
- package/exports/icon.js +2 -2
- package/exports/mixins/select-mixin.d.ts +32 -0
- package/exports/mixins/selector-mixin.d.ts +8 -0
- package/exports/pages/pages.d.ts +14 -0
- package/exports/selector/selector.d.ts +5 -0
- package/exports/tabs/tab.d.ts +4 -0
- package/exports/tabs/tabs.d.ts +5 -0
- package/exports/upload/upload-image.d.ts +6 -6
- package/exports/upload-image.js +10 -6
- package/package.json +73 -1
|
@@ -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{
|
|
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"./custom-element-BOdKJYdz.js";import"./property-Do5-bKhz.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"./property-DyuvULjI.js";
|
package/exports/bundle/icon.js
CHANGED
|
@@ -13,4 +13,4 @@ import{_ as s,a as t,e}from"./custom-element-BOdKJYdz.js";import{L as o}from"./i
|
|
|
13
13
|
width: inherit;
|
|
14
14
|
pointer-events: none;
|
|
15
15
|
}
|
|
16
|
-
`];connectedCallback(){this.setName=this.getAttribute("set-name")||"icons"}render(){return c` ${this._icon} `}constructor(){super(...arguments),t(this,k)}static{t(r,g)}},r})();export{r as CustomIcon
|
|
16
|
+
`];connectedCallback(){this.setName=this.getAttribute("set-name")||"icons"}render(){return c` ${this._icon} `}constructor(){super(...arguments),t(this,k)}static{t(r,g)}},r})();export{r as CustomIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as e,_ as t,a as r,e as o}from"./custom-element-BOdKJYdz.js";import{t as a,j as n,v as l,D as s}from"./property-Do5-bKhz.js";import{t as d}from"./query-D-PG8Oyh.js";import{n as c,s as u,x as p,i as h,t as v,w as m,T as f,j as b}from"./property-DyuvULjI.js";import{DeviceApi as g}from"./device.js";import"
|
|
1
|
+
import{b as e,_ as t,a as r,e as o}from"./custom-element-BOdKJYdz.js";import{t as a,j as n,v as l,D as s}from"./property-Do5-bKhz.js";import{t as d}from"./query-D-PG8Oyh.js";import{n as c,s as u,x as p,i as h,t as v,w as m,T as f,j as b}from"./property-DyuvULjI.js";import{DeviceApi as g}from"./device.js";import"./dialog.js";import"./icon.js";import"./tabs.js";import"./tab.js";import"./selector.js";import"./pages.js";import{FileReaderMixin as x}from"./file-reader-mixin.js";import"./elevation.js";import"./index-B3uz3f8C.js";import"./selector-mixin.js";import"./select-mixin.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
package/exports/elements.js
CHANGED
|
@@ -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 {
|
|
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';
|
|
@@ -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,11 @@
|
|
|
1
|
+
import { LiteElement } from '@vandeurenglenn/lite';
|
|
2
|
+
export declare class CustomIcon 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
|
+
}
|
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
|
|
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 {
|
|
103
|
+
export { CustomIcon };
|
|
@@ -0,0 +1,32 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -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 '
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
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: [];
|
package/exports/upload-image.js
CHANGED
|
@@ -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 '
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
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.
|
|
3
|
+
"version": "0.3.34",
|
|
4
4
|
"description": "set of lite elements following Material Design 3 spec",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -129,6 +129,14 @@
|
|
|
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
|
+
},
|
|
132
140
|
"./divider": {
|
|
133
141
|
"import": "./exports/divider.js",
|
|
134
142
|
"types": "./exports/divider/divider.d.ts"
|
|
@@ -193,6 +201,14 @@
|
|
|
193
201
|
"import": "./exports/elements.js",
|
|
194
202
|
"types": "./exports/elements.d.ts"
|
|
195
203
|
},
|
|
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
|
+
},
|
|
196
212
|
"./file-reader-mixin": {
|
|
197
213
|
"import": "./exports/file-reader-mixin.js",
|
|
198
214
|
"types": "./exports/mixins/file-reader-mixin.d.ts"
|
|
@@ -225,6 +241,14 @@
|
|
|
225
241
|
"import": "./exports/icon-set.js",
|
|
226
242
|
"types": "./exports/icon/icon-set.d.ts"
|
|
227
243
|
},
|
|
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
|
+
},
|
|
228
252
|
"./input": {
|
|
229
253
|
"import": "./exports/input.js",
|
|
230
254
|
"types": "./exports/time-picker/input.d.ts"
|
|
@@ -281,6 +305,14 @@
|
|
|
281
305
|
"import": "./exports/notifications.js",
|
|
282
306
|
"types": "./exports/notification/notifications.d.ts"
|
|
283
307
|
},
|
|
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
|
+
},
|
|
284
316
|
"./pane": {
|
|
285
317
|
"import": "./exports/pane.js",
|
|
286
318
|
"types": "./exports/pane/pane.d.ts"
|
|
@@ -321,6 +353,30 @@
|
|
|
321
353
|
"import": "./exports/section.js",
|
|
322
354
|
"types": "./exports/section/section.d.ts"
|
|
323
355
|
},
|
|
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
|
+
},
|
|
324
380
|
"./summary-mirror": {
|
|
325
381
|
"import": "./exports/summary-mirror.js",
|
|
326
382
|
"types": "./exports/summary/summary-mirror.d.ts"
|
|
@@ -345,6 +401,22 @@
|
|
|
345
401
|
"import": "./exports/supporting-pane.js",
|
|
346
402
|
"types": "./exports/supporting-pane/supporting-pane.d.ts"
|
|
347
403
|
},
|
|
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
|
+
},
|
|
348
420
|
"./text-field": {
|
|
349
421
|
"import": "./exports/text-field.js",
|
|
350
422
|
"types": "./exports/text-field/text-field.d.ts"
|