@vandeurenglenn/lite-elements 0.3.33 → 0.3.35

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.
@@ -121,21 +121,21 @@ import{_ as e,a as t,e as s}from"./custom-element-BOdKJYdz.js";import{t as o,j a
121
121
  <custom-elevation level=${this.fullscreen?0:3}></custom-elevation>
122
122
  <slot name="hero-icon"></slot>
123
123
  <slot name="supporting-text"></slot>
124
- <slot name="header">
125
- <flex-row class="header" center></flex-row>
124
+ <slot name="header">
125
+ <flex-row class="header" center>
126
126
  <flex-row center style="width: 100%">
127
127
  <slot name="header-start">
128
128
  ${this.fullscreen?n`<custom-button @click=${this._close}
129
- ><custom-icon slot="icon">close</custom-icon></custom-button
130
- >`:""}
129
+ ><custom-icon slot="icon">close</custom-icon></custom-button
130
+ >`:""}
131
131
  </slot>
132
132
  <slot name="title"></slot>
133
133
  <flex-it></flex-it>
134
134
  <slot name="header-end">
135
135
  ${this.fullscreen?n`<slot name="actions"></slot>`:""}
136
136
  ${this.fullscreen?"":n`<custom-button @click=${this._close}
137
- ><custom-icon slot="icon">close</custom-icon></custom-button
138
- >`}
137
+ ><custom-icon slot="icon">close</custom-icon></custom-button
138
+ >`}
139
139
  </slot>
140
140
  </flex-row>
141
141
  </flex-row>
@@ -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{Icon as 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";
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";
@@ -0,0 +1,146 @@
1
+ import{_ as e,a as t,e as o}from"./custom-element-BOdKJYdz.js";import{t as a,j as r,v as s,D as l}from"./property-Do5-bKhz.js";import"./elevation.js";let n=(()=>{let n,i,c,d=[o("custom-fab")],y=[],m=l,p=[],v=[];return class extends m{static{i=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(m[Symbol.metadata]??null):void 0;c=[a({attribute:"type",reflect:!0})],e(this,null,c,{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},p,v),e(null,n={value:i},d,{kind:"class",name:i.name,metadata:t},null,y),i=n.value,t&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,p,"normal");get type(){return this.#e}set type(e){this.#e=e}static styles=[r`
2
+ :host {
3
+ color: var(--custom-fab-color, --md-sys-color-on-background);
4
+ display: flex;
5
+
6
+ height: 56px;
7
+ width: 56px;
8
+ border-radius: var(--md-sys-shape-corner-extra-large);
9
+ position: relative;
10
+ pointer-events: auto;
11
+ cursor: pointer;
12
+ box-sizing: border-box;
13
+ padding: 16px;
14
+
15
+ --elevation-level: 0;
16
+ }
17
+
18
+ button {
19
+ box-sizing: border-box;
20
+ border: none;
21
+ background: transparent;
22
+ color: inherit;
23
+ align-items: center;
24
+ justify-content: center;
25
+ user-select: none;
26
+ outline: none;
27
+ cursor: pointer;
28
+ border-radius: inherit;
29
+ padding: none;
30
+ width: inherit;
31
+ height: inherit;
32
+ display: flex;
33
+ pointer-events: none;
34
+ }
35
+
36
+ ::slotted(*) {
37
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
38
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
39
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
40
+ font-size: var(--md-sys-typescale-label-large-font-size);
41
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
42
+ line-height: var(--md-sys-typescale-label-large-height);
43
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
44
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
45
+ }
46
+
47
+ :host([type='filled']),
48
+ :host([type='filled']) ::slotted(*) {
49
+ color: var(--md-sys-color-on-primary);
50
+ fill: var(--md-sys-color-on-primary);
51
+ background: var(--md-sys-color-primary);
52
+ }
53
+
54
+ :host([type='outlined']),
55
+ :host([type='outlined']) ::slotted(*) {
56
+ color: var(--md-sys-color-on-surface);
57
+ fill: var(--md-sys-color-on-surface);
58
+ background: var(--md-sys-color-surface);
59
+ border: solid 1px;
60
+ border-color: var(--md-sys-color-outline);
61
+ }
62
+
63
+ :host([type='elevated']),
64
+ :host([type='elevated']) ::slotted(*) {
65
+ color: var(--md-sys-color-primary);
66
+ fill: var(--md-sys-color-primary);
67
+ background: var(--md-sys-color-surface-container-low);
68
+ }
69
+
70
+ :host([type='tertiary']),
71
+ :host([type='tertiary']) ::slotted(*) {
72
+ background: var(--md-sys-color-tertiary);
73
+ color: var(--md-sys-color-on-tertiary);
74
+ fill: var(--md-sys-color-on-tertiary);
75
+ }
76
+
77
+ :host([type='tonal']),
78
+ :host([type='tonal']) ::slotted(*) {
79
+ background: var(--md-sys-color-secondary-container);
80
+ color: var(--md-sys-color-on-seconday-container);
81
+ fill: var(--md-sys-color-on-seconday-container);
82
+ }
83
+
84
+ custom-elevation {
85
+ --md-elevation-level: var(--elevation-level);
86
+ }
87
+
88
+ custom-elevation {
89
+ --elevation-level: 1;
90
+ }
91
+
92
+ :host([type='normal']) button {
93
+ align-items: center;
94
+ justify-content: center;
95
+ }
96
+
97
+ :host([type='extended']) button {
98
+ align-items: center;
99
+ }
100
+
101
+ :host([type='extended']) {
102
+ min-width: 80px;
103
+ width: fit-content;
104
+ }
105
+
106
+ :not([name='icon']) ::slotted(*) {
107
+ margin-left: 24px;
108
+ margin-right: 24px;
109
+ }
110
+
111
+ :host([has-icon][has-label]) .label {
112
+ padding-left: 8px;
113
+ padding-right: 24px;
114
+ }
115
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
116
+ padding-left: 16px;
117
+ }
118
+
119
+ :host([disabled]) .label,
120
+ :host([disabled]) slot[name='icon']::slotted(*) {
121
+ opacity: 0.38;
122
+ }
123
+
124
+ ::slotted(*) {
125
+ pointer-events: none;
126
+ }
127
+
128
+ :host(:focus),
129
+ :host(:hover) {
130
+ --elevation-level: 2;
131
+ }
132
+
133
+ :host(:active) {
134
+ --elevation-level: 0;
135
+ }
136
+
137
+ button * {
138
+ pointer-events: none;
139
+ }
140
+ `];render(){return s`
141
+ <button>
142
+ <custom-elevation></custom-elevation>
143
+ <slot name="icon"></slot>
144
+ <slot></slot>
145
+ </button>
146
+ `}constructor(){super(...arguments),t(this,v)}static{t(i,y)}},i})();export{n as CustomButton};
@@ -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,r as Icon};
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"@vandeurenglenn/lite-elements/dialog.js";import"@vandeurenglenn/lite-elements/icon.js";import"@vandeurenglenn/lite-elements/tabs.js";import"@vandeurenglenn/lite-elements/tab.js";import"@vandeurenglenn/lite-elements/selector.js";import"@vandeurenglenn/lite-elements/pages.js";import{FileReaderMixin as x}from"./file-reader-mixin.js";
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/dialog.js CHANGED
@@ -215,14 +215,14 @@ let CustomDialog = (() => {
215
215
  <custom-elevation level=${this.fullscreen ? 0 : 3}></custom-elevation>
216
216
  <slot name="hero-icon"></slot>
217
217
  <slot name="supporting-text"></slot>
218
- <slot name="header">
219
- <flex-row class="header" center></flex-row>
218
+ <slot name="header">
219
+ <flex-row class="header" center>
220
220
  <flex-row center style="width: 100%">
221
221
  <slot name="header-start">
222
222
  ${this.fullscreen
223
223
  ? html `<custom-button @click=${this._close}
224
- ><custom-icon slot="icon">close</custom-icon></custom-button
225
- >`
224
+ ><custom-icon slot="icon">close</custom-icon></custom-button
225
+ >`
226
226
  : ''}
227
227
  </slot>
228
228
  <slot name="title"></slot>
@@ -232,8 +232,8 @@ let CustomDialog = (() => {
232
232
  ${this.fullscreen
233
233
  ? ''
234
234
  : html `<custom-button @click=${this._close}
235
- ><custom-icon slot="icon">close</custom-icon></custom-button
236
- >`}
235
+ ><custom-icon slot="icon">close</custom-icon></custom-button
236
+ >`}
237
237
  </slot>
238
238
  </flex-row>
239
239
  </flex-row>
@@ -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';
@@ -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,7 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ import '../elevation/elevation.js';
3
+ export declare class CustomButton extends LiteElement {
4
+ accessor type: 'normal' | 'extended';
5
+ static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ }
package/exports/fab.js ADDED
@@ -0,0 +1,189 @@
1
+ import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-CFl_-KPR.js';
2
+ import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
3
+ import './elevation.js';
4
+
5
+ let CustomButton = (() => {
6
+ let _classDecorators = [customElement('custom-fab')];
7
+ let _classDescriptor;
8
+ let _classExtraInitializers = [];
9
+ let _classThis;
10
+ let _classSuper = LiteElement;
11
+ let _type_decorators;
12
+ let _type_initializers = [];
13
+ let _type_extraInitializers = [];
14
+ (class extends _classSuper {
15
+ static { _classThis = this; }
16
+ static {
17
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
18
+ _type_decorators = [property({ attribute: 'type', reflect: true })];
19
+ __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);
20
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
21
+ _classThis = _classDescriptor.value;
22
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
23
+ }
24
+ #type_accessor_storage = __runInitializers(this, _type_initializers, 'normal');
25
+ get type() { return this.#type_accessor_storage; }
26
+ set type(value) { this.#type_accessor_storage = value; }
27
+ static styles = [
28
+ css `
29
+ :host {
30
+ color: var(--custom-fab-color, --md-sys-color-on-background);
31
+ display: flex;
32
+
33
+ height: 56px;
34
+ width: 56px;
35
+ border-radius: var(--md-sys-shape-corner-extra-large);
36
+ position: relative;
37
+ pointer-events: auto;
38
+ cursor: pointer;
39
+ box-sizing: border-box;
40
+ padding: 16px;
41
+
42
+ --elevation-level: 0;
43
+ }
44
+
45
+ button {
46
+ box-sizing: border-box;
47
+ border: none;
48
+ background: transparent;
49
+ color: inherit;
50
+ align-items: center;
51
+ justify-content: center;
52
+ user-select: none;
53
+ outline: none;
54
+ cursor: pointer;
55
+ border-radius: inherit;
56
+ padding: none;
57
+ width: inherit;
58
+ height: inherit;
59
+ display: flex;
60
+ pointer-events: none;
61
+ }
62
+
63
+ ::slotted(*) {
64
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
65
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
66
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
67
+ font-size: var(--md-sys-typescale-label-large-font-size);
68
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
69
+ line-height: var(--md-sys-typescale-label-large-height);
70
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
71
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
72
+ }
73
+
74
+ :host([type='filled']),
75
+ :host([type='filled']) ::slotted(*) {
76
+ color: var(--md-sys-color-on-primary);
77
+ fill: var(--md-sys-color-on-primary);
78
+ background: var(--md-sys-color-primary);
79
+ }
80
+
81
+ :host([type='outlined']),
82
+ :host([type='outlined']) ::slotted(*) {
83
+ color: var(--md-sys-color-on-surface);
84
+ fill: var(--md-sys-color-on-surface);
85
+ background: var(--md-sys-color-surface);
86
+ border: solid 1px;
87
+ border-color: var(--md-sys-color-outline);
88
+ }
89
+
90
+ :host([type='elevated']),
91
+ :host([type='elevated']) ::slotted(*) {
92
+ color: var(--md-sys-color-primary);
93
+ fill: var(--md-sys-color-primary);
94
+ background: var(--md-sys-color-surface-container-low);
95
+ }
96
+
97
+ :host([type='tertiary']),
98
+ :host([type='tertiary']) ::slotted(*) {
99
+ background: var(--md-sys-color-tertiary);
100
+ color: var(--md-sys-color-on-tertiary);
101
+ fill: var(--md-sys-color-on-tertiary);
102
+ }
103
+
104
+ :host([type='tonal']),
105
+ :host([type='tonal']) ::slotted(*) {
106
+ background: var(--md-sys-color-secondary-container);
107
+ color: var(--md-sys-color-on-seconday-container);
108
+ fill: var(--md-sys-color-on-seconday-container);
109
+ }
110
+
111
+ custom-elevation {
112
+ --md-elevation-level: var(--elevation-level);
113
+ }
114
+
115
+ custom-elevation {
116
+ --elevation-level: 1;
117
+ }
118
+
119
+ :host([type='normal']) button {
120
+ align-items: center;
121
+ justify-content: center;
122
+ }
123
+
124
+ :host([type='extended']) button {
125
+ align-items: center;
126
+ }
127
+
128
+ :host([type='extended']) {
129
+ min-width: 80px;
130
+ width: fit-content;
131
+ }
132
+
133
+ :not([name='icon']) ::slotted(*) {
134
+ margin-left: 24px;
135
+ margin-right: 24px;
136
+ }
137
+
138
+ :host([has-icon][has-label]) .label {
139
+ padding-left: 8px;
140
+ padding-right: 24px;
141
+ }
142
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
143
+ padding-left: 16px;
144
+ }
145
+
146
+ :host([disabled]) .label,
147
+ :host([disabled]) slot[name='icon']::slotted(*) {
148
+ opacity: 0.38;
149
+ }
150
+
151
+ ::slotted(*) {
152
+ pointer-events: none;
153
+ }
154
+
155
+ :host(:focus),
156
+ :host(:hover) {
157
+ --elevation-level: 2;
158
+ }
159
+
160
+ :host(:active) {
161
+ --elevation-level: 0;
162
+ }
163
+
164
+ button * {
165
+ pointer-events: none;
166
+ }
167
+ `
168
+ ];
169
+ render() {
170
+ return html `
171
+ <button>
172
+ <custom-elevation></custom-elevation>
173
+ <slot name="icon"></slot>
174
+ <slot></slot>
175
+ </button>
176
+ `;
177
+ }
178
+ constructor() {
179
+ super(...arguments);
180
+ __runInitializers(this, _type_extraInitializers);
181
+ }
182
+ static {
183
+ __runInitializers(_classThis, _classExtraInitializers);
184
+ }
185
+ });
186
+ return _classThis;
187
+ })();
188
+
189
+ export { CustomButton };
@@ -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 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 };
@@ -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
+ }
@@ -0,0 +1,5 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ import { LiteElement } from '@vandeurenglenn/lite';
2
+ export declare class CustomTab extends LiteElement {
3
+ render(): import("lit-html").TemplateResult<1>;
4
+ }
@@ -0,0 +1,5 @@
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
+ }
@@ -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.33",
3
+ "version": "0.3.35",
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,22 @@
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
+ },
212
+ "./fab": {
213
+ "import": "./exports/fab.js",
214
+ "types": "./exports/fab/fab.d.ts"
215
+ },
216
+ "./fab.js": {
217
+ "import": "./exports/fab.js",
218
+ "types": "./exports/fab/fab.d.ts"
219
+ },
196
220
  "./file-reader-mixin": {
197
221
  "import": "./exports/file-reader-mixin.js",
198
222
  "types": "./exports/mixins/file-reader-mixin.d.ts"
@@ -225,6 +249,14 @@
225
249
  "import": "./exports/icon-set.js",
226
250
  "types": "./exports/icon/icon-set.d.ts"
227
251
  },
252
+ "./icon": {
253
+ "import": "./exports/icon.js",
254
+ "types": "./exports/icon/icon.d.ts"
255
+ },
256
+ "./icon.js": {
257
+ "import": "./exports/icon.js",
258
+ "types": "./exports/icon/icon.d.ts"
259
+ },
228
260
  "./input": {
229
261
  "import": "./exports/input.js",
230
262
  "types": "./exports/time-picker/input.d.ts"
@@ -281,6 +313,14 @@
281
313
  "import": "./exports/notifications.js",
282
314
  "types": "./exports/notification/notifications.d.ts"
283
315
  },
316
+ "./pages": {
317
+ "import": "./exports/pages.js",
318
+ "types": "./exports/pages/pages.d.ts"
319
+ },
320
+ "./pages.js": {
321
+ "import": "./exports/pages.js",
322
+ "types": "./exports/pages/pages.d.ts"
323
+ },
284
324
  "./pane": {
285
325
  "import": "./exports/pane.js",
286
326
  "types": "./exports/pane/pane.d.ts"
@@ -321,6 +361,30 @@
321
361
  "import": "./exports/section.js",
322
362
  "types": "./exports/section/section.d.ts"
323
363
  },
364
+ "./select-mixin": {
365
+ "import": "./exports/select-mixin.js",
366
+ "types": "./exports/mixins/select-mixin.d.ts"
367
+ },
368
+ "./select-mixin.js": {
369
+ "import": "./exports/select-mixin.js",
370
+ "types": "./exports/mixins/select-mixin.d.ts"
371
+ },
372
+ "./selector-mixin": {
373
+ "import": "./exports/selector-mixin.js",
374
+ "types": "./exports/mixins/selector-mixin.d.ts"
375
+ },
376
+ "./selector-mixin.js": {
377
+ "import": "./exports/selector-mixin.js",
378
+ "types": "./exports/mixins/selector-mixin.d.ts"
379
+ },
380
+ "./selector": {
381
+ "import": "./exports/selector.js",
382
+ "types": "./exports/selector/selector.d.ts"
383
+ },
384
+ "./selector.js": {
385
+ "import": "./exports/selector.js",
386
+ "types": "./exports/selector/selector.d.ts"
387
+ },
324
388
  "./summary-mirror": {
325
389
  "import": "./exports/summary-mirror.js",
326
390
  "types": "./exports/summary/summary-mirror.d.ts"
@@ -345,6 +409,22 @@
345
409
  "import": "./exports/supporting-pane.js",
346
410
  "types": "./exports/supporting-pane/supporting-pane.d.ts"
347
411
  },
412
+ "./tab": {
413
+ "import": "./exports/tab.js",
414
+ "types": "./exports/tabs/tab.d.ts"
415
+ },
416
+ "./tab.js": {
417
+ "import": "./exports/tab.js",
418
+ "types": "./exports/tabs/tab.d.ts"
419
+ },
420
+ "./tabs": {
421
+ "import": "./exports/tabs.js",
422
+ "types": "./exports/tabs/tabs.d.ts"
423
+ },
424
+ "./tabs.js": {
425
+ "import": "./exports/tabs.js",
426
+ "types": "./exports/tabs/tabs.d.ts"
427
+ },
348
428
  "./text-field": {
349
429
  "import": "./exports/text-field.js",
350
430
  "types": "./exports/text-field/text-field.d.ts"