@vandeurenglenn/lite-elements 0.3.49 → 0.3.51
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/banner.js +37 -37
- package/exports/bar/top-app-bar.d.ts +1 -1
- package/exports/bundle/banner.js +2 -2
- package/exports/bundle/button.js +6 -1
- package/exports/bundle/card.js +1 -1
- package/exports/bundle/code.js +1 -1
- package/exports/bundle/{column-B0bUzxkF.js → column-dsIMZ5XT.js} +1 -1
- package/exports/bundle/demo-elements.js +1 -1
- package/exports/bundle/demo-icons.js +1 -1
- package/exports/bundle/demo-shell.js +1 -1
- package/exports/bundle/demo.js +1 -1
- package/exports/bundle/dialog.js +1 -1
- package/exports/bundle/divider.js +1 -1
- package/exports/bundle/drawer-button.js +1 -1
- package/exports/bundle/drawer-item.js +1 -1
- package/exports/bundle/drawer-layout.js +1 -1
- package/exports/bundle/drawer.js +2 -2
- package/exports/bundle/dropdown-menu.js +1 -1
- package/exports/bundle/dropdown.js +1 -1
- package/exports/bundle/elements.js +1 -1
- package/exports/bundle/elevation.js +1 -1
- package/exports/bundle/fab.js +2 -2
- package/exports/bundle/icon-button.js +1 -1
- package/exports/bundle/icon-set.js +1 -1
- package/exports/bundle/icon.js +1 -1
- package/exports/bundle/index.html +590 -590
- package/exports/bundle/input.js +2 -2
- package/exports/bundle/list-item.js +1 -1
- package/exports/bundle/menu.js +1 -1
- package/exports/bundle/minute-field.js +1 -1
- package/exports/bundle/notification.js +1 -1
- package/exports/bundle/notifications.js +1 -1
- package/exports/bundle/pages.js +1 -1
- package/exports/bundle/pane.js +3 -3
- package/exports/bundle/property-C1gA9hig.js +23 -0
- package/exports/bundle/property-DL093_VN.js +11 -0
- package/exports/bundle/rail.js +1 -1
- package/exports/bundle/root.js +2 -2
- package/exports/bundle/row-CW5FbTZ_.js +28 -0
- package/exports/bundle/section.js +1 -1
- package/exports/bundle/section2.js +1 -1
- package/exports/bundle/select-mixin.js +1 -1
- package/exports/bundle/selector-mixin.js +1 -1
- package/exports/bundle/selector.js +1 -1
- package/exports/bundle/summary-mirror.js +1 -1
- package/exports/bundle/summary.js +2 -2
- package/exports/bundle/supporting-pane.js +1 -1
- package/exports/bundle/tab.js +2 -2
- package/exports/bundle/tabs.js +1 -1
- package/exports/bundle/text-field.js +1 -1
- package/exports/bundle/theme.js +1 -1
- package/exports/bundle/themes/default/colors.module.css +180 -180
- package/exports/bundle/themes/default/missing/motion.css +3 -3
- package/exports/bundle/themes/default/missing/shape.css +12 -12
- package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
- package/exports/bundle/themes/default/missing/theme.light.css +4 -4
- package/exports/bundle/themes/default/missing/tokens.css +8 -8
- package/exports/bundle/themes/default/theme.css +10 -10
- package/exports/bundle/themes/default/theme.dark.css +33 -33
- package/exports/bundle/themes/default/theme.light.css +33 -33
- package/exports/bundle/themes/default/tokens.css +256 -256
- package/exports/bundle/themes/default/typography.module.css +150 -150
- package/exports/bundle/time-picker.js +1 -1
- package/exports/bundle/toggle-button.js +1 -1
- package/exports/bundle/toggle.js +1 -1
- package/exports/bundle/top-app-bar.js +63 -2
- package/exports/bundle/typography.js +1 -1
- package/exports/bundle/upload-file.js +1 -1
- package/exports/bundle/upload-image.js +62 -55
- package/exports/button.js +149 -144
- package/exports/card.js +140 -140
- package/exports/code.js +35 -35
- package/exports/demo-elements.js +1 -1
- package/exports/demo-icons.js +16 -16
- package/exports/demo-shell.js +540 -540
- package/exports/demo.js +457 -457
- package/exports/dialog.js +149 -149
- package/exports/divider.js +22 -22
- package/exports/drawer-button.js +14 -14
- package/exports/drawer-item.js +39 -39
- package/exports/drawer-layout.js +96 -96
- package/exports/drawer.js +8 -8
- package/exports/dropdown-menu.js +59 -59
- package/exports/dropdown.js +26 -26
- package/exports/elements.js +1 -1
- package/exports/elevation.js +51 -51
- package/exports/fab.js +146 -146
- package/exports/icon-button.js +13 -13
- package/exports/icon-set.js +5 -5
- package/exports/icon.js +16 -16
- package/exports/input.js +6 -6
- package/exports/list-item.js +43 -43
- package/exports/menu.js +13 -13
- package/exports/minute-field.js +5 -5
- package/exports/mixins/scroll-mixin.d.ts +1 -1
- package/exports/notification.js +35 -35
- package/exports/notifications.js +66 -66
- package/exports/pages.js +42 -42
- package/exports/pane.js +19 -19
- package/exports/rail.js +58 -58
- package/exports/root.js +8 -8
- package/exports/section/section.d.ts +2 -2
- package/exports/section.js +11 -11
- package/exports/section2.js +25 -25
- package/exports/selector.js +31 -31
- package/exports/summary-mirror.js +20 -20
- package/exports/summary.js +25 -25
- package/exports/supporting-pane.js +47 -47
- package/exports/tab.js +22 -22
- package/exports/tabs.js +51 -51
- package/exports/text-field.js +10 -10
- package/exports/theme.js +9 -9
- package/exports/themes/default/colors.module.css +180 -180
- package/exports/themes/default/missing/motion.css +3 -3
- package/exports/themes/default/missing/shape.css +12 -12
- package/exports/themes/default/missing/theme.dark.css +4 -4
- package/exports/themes/default/missing/theme.light.css +4 -4
- package/exports/themes/default/missing/tokens.css +8 -8
- package/exports/themes/default/theme.css +10 -10
- package/exports/themes/default/theme.dark.css +33 -33
- package/exports/themes/default/theme.light.css +33 -33
- package/exports/themes/default/tokens.css +256 -256
- package/exports/themes/default/typography.module.css +150 -150
- package/exports/time-picker.js +21 -21
- package/exports/toggle-button.js +4 -4
- package/exports/toggle.js +5 -5
- package/exports/top-app-bar.js +21 -21
- package/exports/{tslib.es6-CFl_-KPR.js → tslib.es6-Cg9lAhfj.js} +1 -1
- package/exports/typography.js +156 -156
- package/exports/upload-file.js +9 -9
- package/exports/upload-image.js +201 -201
- package/package.json +20 -36
- package/exports/bundle/property-BYA8Sw2t.js +0 -11
- package/exports/bundle/property-C4lhirVQ.js +0 -23
- package/exports/bundle/row-DYDgQVDj.js +0 -28
- package/exports/bundle/simple-hash-router.js +0 -1
- package/exports/bundle/types2.js +0 -1
- package/exports/mixins/file-reader-mixin.d.ts +0 -341
- package/exports/router/types.d.ts +0 -45
- package/exports/simple-hash-router.js +0 -111
- package/exports/types2.js +0 -1
- package/exports/upload/upload-image.d.ts +0 -381
package/exports/selector.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, css, html } from '@vandeurenglenn/lite';
|
|
3
3
|
import { SelectorBase } from './selector-mixin.js';
|
|
4
4
|
import './select-mixin.js';
|
|
@@ -18,36 +18,36 @@ let CustomSelector = (() => {
|
|
|
18
18
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
19
19
|
}
|
|
20
20
|
static styles = [
|
|
21
|
-
css `
|
|
22
|
-
:host {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
overflow-y: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
::slotted(.custom-selected:not([non-interactive])) {
|
|
31
|
-
background: var(--md-sys-color-secondary-container);
|
|
32
|
-
color: var(--md-sys-color-on-secondary-container);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
::slotted(*) {
|
|
36
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
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
|
-
::slotted(:not(.custom-selected):not([non-interactive]):hover) {
|
|
48
|
-
background: var(--md-sys-color-secondary-container-hover);
|
|
49
|
-
color: var(--md-sys-color-on-secondary-container);
|
|
50
|
-
}
|
|
21
|
+
css `
|
|
22
|
+
:host {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::slotted(.custom-selected:not([non-interactive])) {
|
|
31
|
+
background: var(--md-sys-color-secondary-container);
|
|
32
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::slotted(*) {
|
|
36
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
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
|
+
::slotted(:not(.custom-selected):not([non-interactive]):hover) {
|
|
48
|
+
background: var(--md-sys-color-secondary-container-hover);
|
|
49
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
50
|
+
}
|
|
51
51
|
`
|
|
52
52
|
];
|
|
53
53
|
render() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
|
|
4
4
|
let CustomSummaryMirror = (() => {
|
|
@@ -39,25 +39,25 @@ let CustomSummaryMirror = (() => {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
get template() {
|
|
42
|
-
return html `
|
|
43
|
-
<style>
|
|
44
|
-
:host {
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
height: 100%;
|
|
48
|
-
min-height: 400px;
|
|
49
|
-
max-width: 1200px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@media (min-width: 1200px) {
|
|
53
|
-
:host {
|
|
54
|
-
flex-direction: row;
|
|
55
|
-
width: 80%;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
<slot name="left"></slot>
|
|
60
|
-
<slot name="right"></slot>
|
|
42
|
+
return html `
|
|
43
|
+
<style>
|
|
44
|
+
:host {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
height: 100%;
|
|
48
|
+
min-height: 400px;
|
|
49
|
+
max-width: 1200px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (min-width: 1200px) {
|
|
53
|
+
:host {
|
|
54
|
+
flex-direction: row;
|
|
55
|
+
width: 80%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
59
|
+
<slot name="left"></slot>
|
|
60
|
+
<slot name="right"></slot>
|
|
61
61
|
`;
|
|
62
62
|
}
|
|
63
63
|
});
|
package/exports/summary.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
|
|
4
4
|
let CustomSummary = (() => {
|
|
@@ -16,33 +16,33 @@ let CustomSummary = (() => {
|
|
|
16
16
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
17
17
|
}
|
|
18
18
|
static styles = [
|
|
19
|
-
css `
|
|
20
|
-
:host {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
height: 100%;
|
|
24
|
-
min-height: 400px;
|
|
25
|
-
max-width: 1200px;
|
|
26
|
-
}
|
|
27
|
-
::slotted([slot='left']) {
|
|
28
|
-
padding-bottom: 24px;
|
|
29
|
-
}
|
|
30
|
-
@media (min-width: 1200px) {
|
|
31
|
-
:host {
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
width: 80%;
|
|
34
|
-
}
|
|
35
|
-
::slotted([slot='left']) {
|
|
36
|
-
padding-right: 24px;
|
|
37
|
-
padding-bottom: 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
19
|
+
css `
|
|
20
|
+
:host {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
height: 100%;
|
|
24
|
+
min-height: 400px;
|
|
25
|
+
max-width: 1200px;
|
|
26
|
+
}
|
|
27
|
+
::slotted([slot='left']) {
|
|
28
|
+
padding-bottom: 24px;
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
:host {
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
width: 80%;
|
|
34
|
+
}
|
|
35
|
+
::slotted([slot='left']) {
|
|
36
|
+
padding-right: 24px;
|
|
37
|
+
padding-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
`
|
|
41
41
|
];
|
|
42
42
|
render() {
|
|
43
|
-
return html `
|
|
44
|
-
<slot name="left"></slot>
|
|
45
|
-
<slot name="right"></slot>
|
|
43
|
+
return html `
|
|
44
|
+
<slot name="left"></slot>
|
|
45
|
+
<slot name="right"></slot>
|
|
46
46
|
`;
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, property, query, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
import './pane.js';
|
|
4
4
|
import './elevation.js';
|
|
@@ -76,52 +76,52 @@ let CustomSupportingPane = (() => {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return html `<style>
|
|
80
|
-
:host {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
height: 100%;
|
|
84
|
-
background: var(--md-sys-color-surface);
|
|
85
|
-
color: var(--md-sys-color-on-surface);
|
|
86
|
-
width: 100%;
|
|
87
|
-
position: relative;
|
|
88
|
-
--supporting-pane-width: 360px;
|
|
89
|
-
}
|
|
90
|
-
.support {
|
|
91
|
-
position: absolute;
|
|
92
|
-
right: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([left]) {
|
|
96
|
-
left: 0;
|
|
97
|
-
right: none;
|
|
98
|
-
}
|
|
99
|
-
:host([variant='expanded']) .support {
|
|
100
|
-
--custom-pane-width: var(--supporting-pane-width);
|
|
101
|
-
}
|
|
102
|
-
:host([variant='expanded']) {
|
|
103
|
-
flex-direction: row;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host([variant='compact']) .support {
|
|
107
|
-
position: absolute;
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
}
|
|
110
|
-
main {
|
|
111
|
-
width: 100%;
|
|
112
|
-
}
|
|
113
|
-
:host([open]) main {
|
|
114
|
-
width: calc(100% - var(--supporting-pane-width));
|
|
115
|
-
}
|
|
116
|
-
</style>
|
|
117
|
-
<main>
|
|
118
|
-
<slot></slot>
|
|
119
|
-
</main>
|
|
120
|
-
<custom-pane class="support" ?open=${this.open} ?right=${!this.left} .id=${this.id}>
|
|
121
|
-
<slot name="supporting">
|
|
122
|
-
<slot name="supporting-header" slot="header"></slot>
|
|
123
|
-
<slot name="supporting-content"></slot>
|
|
124
|
-
</slot>
|
|
79
|
+
return html `<style>
|
|
80
|
+
:host {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
height: 100%;
|
|
84
|
+
background: var(--md-sys-color-surface);
|
|
85
|
+
color: var(--md-sys-color-on-surface);
|
|
86
|
+
width: 100%;
|
|
87
|
+
position: relative;
|
|
88
|
+
--supporting-pane-width: 360px;
|
|
89
|
+
}
|
|
90
|
+
.support {
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([left]) {
|
|
96
|
+
left: 0;
|
|
97
|
+
right: none;
|
|
98
|
+
}
|
|
99
|
+
:host([variant='expanded']) .support {
|
|
100
|
+
--custom-pane-width: var(--supporting-pane-width);
|
|
101
|
+
}
|
|
102
|
+
:host([variant='expanded']) {
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([variant='compact']) .support {
|
|
107
|
+
position: absolute;
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
}
|
|
110
|
+
main {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
:host([open]) main {
|
|
114
|
+
width: calc(100% - var(--supporting-pane-width));
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
117
|
+
<main>
|
|
118
|
+
<slot></slot>
|
|
119
|
+
</main>
|
|
120
|
+
<custom-pane class="support" ?open=${this.open} ?right=${!this.left} .id=${this.id}>
|
|
121
|
+
<slot name="supporting">
|
|
122
|
+
<slot name="supporting-header" slot="header"></slot>
|
|
123
|
+
<slot name="supporting-content"></slot>
|
|
124
|
+
</slot>
|
|
125
125
|
</custom-pane>`;
|
|
126
126
|
}
|
|
127
127
|
constructor() {
|
package/exports/tab.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
|
|
4
4
|
let CustomTab = (() => {
|
|
@@ -17,27 +17,27 @@ let CustomTab = (() => {
|
|
|
17
17
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return html `
|
|
21
|
-
<style>
|
|
22
|
-
:host {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
height: 40px;
|
|
28
|
-
padding: 0 12px;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
width: auto;
|
|
31
|
-
font: var(--_supporting-text-type);
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
slot {
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
40
|
-
<slot></slot>
|
|
20
|
+
return html `
|
|
21
|
+
<style>
|
|
22
|
+
:host {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 40px;
|
|
28
|
+
padding: 0 12px;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
width: auto;
|
|
31
|
+
font: var(--_supporting-text-type);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
slot {
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
<slot></slot>
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
43
|
});
|
package/exports/tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, html } from '@vandeurenglenn/lite';
|
|
3
3
|
import { SelectorBase } from './selector-mixin.js';
|
|
4
4
|
import './tab.js';
|
|
@@ -21,56 +21,56 @@ let CustomTabs = (() => {
|
|
|
21
21
|
}
|
|
22
22
|
// TODO: make scrollable
|
|
23
23
|
render() {
|
|
24
|
-
return html `
|
|
25
|
-
<style>
|
|
26
|
-
:host {
|
|
27
|
-
--custom-tabs-background: var(---md-sys-color-surface);
|
|
28
|
-
--selected-color: var(--md-sys-color-primary);
|
|
29
|
-
--selected-tab-color: var(--md-sys-color-primary);
|
|
30
|
-
--custom-tabs-shape: var(--md-sys-shape-corner-none);
|
|
31
|
-
--inactive-color: var(--md-sys-color-on-surface-variant);
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
min-height: var(--custom-tabs-height, 64px);
|
|
35
|
-
overflow-x: auto;
|
|
36
|
-
background: var(--custom-tabs-background);
|
|
37
|
-
border-radius: var(--custom-tabs-shape);
|
|
38
|
-
}
|
|
39
|
-
::slotted(*) {
|
|
40
|
-
color: var(--inactive-color);
|
|
41
|
-
}
|
|
42
|
-
::slotted(.custom-selected) {
|
|
43
|
-
color: var(--selected-color);
|
|
44
|
-
border-bottom: 2px solid var(--selected-tab-color);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host([round]) ::slotted(*) {
|
|
48
|
-
gap: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host([round]) ::slotted(.custom-selected) {
|
|
52
|
-
--md-sys-color-on-surface: var(--md-sys-color-on-tertiary);
|
|
53
|
-
color: var(--md-sys-color-on-tertiary);
|
|
54
|
-
background: var(--md-sys-color-tertiary);
|
|
55
|
-
border: none;
|
|
56
|
-
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
57
|
-
}
|
|
58
|
-
::-webkit-scrollbar {
|
|
59
|
-
width: 6px;
|
|
60
|
-
border-radius: 12px;
|
|
61
|
-
}
|
|
62
|
-
::-webkit-scrollbar-track {
|
|
63
|
-
background: #f1f1f1;
|
|
64
|
-
}
|
|
65
|
-
::-webkit-scrollbar-thumb {
|
|
66
|
-
background: #888;
|
|
67
|
-
border-radius: 12px;
|
|
68
|
-
}
|
|
69
|
-
::-webkit-scrollbar-thumb:hover {
|
|
70
|
-
background: #555;
|
|
71
|
-
}
|
|
72
|
-
</style>
|
|
73
|
-
<slot></slot>
|
|
24
|
+
return html `
|
|
25
|
+
<style>
|
|
26
|
+
:host {
|
|
27
|
+
--custom-tabs-background: var(---md-sys-color-surface);
|
|
28
|
+
--selected-color: var(--md-sys-color-primary);
|
|
29
|
+
--selected-tab-color: var(--md-sys-color-primary);
|
|
30
|
+
--custom-tabs-shape: var(--md-sys-shape-corner-none);
|
|
31
|
+
--inactive-color: var(--md-sys-color-on-surface-variant);
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
min-height: var(--custom-tabs-height, 64px);
|
|
35
|
+
overflow-x: auto;
|
|
36
|
+
background: var(--custom-tabs-background);
|
|
37
|
+
border-radius: var(--custom-tabs-shape);
|
|
38
|
+
}
|
|
39
|
+
::slotted(*) {
|
|
40
|
+
color: var(--inactive-color);
|
|
41
|
+
}
|
|
42
|
+
::slotted(.custom-selected) {
|
|
43
|
+
color: var(--selected-color);
|
|
44
|
+
border-bottom: 2px solid var(--selected-tab-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([round]) ::slotted(*) {
|
|
48
|
+
gap: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([round]) ::slotted(.custom-selected) {
|
|
52
|
+
--md-sys-color-on-surface: var(--md-sys-color-on-tertiary);
|
|
53
|
+
color: var(--md-sys-color-on-tertiary);
|
|
54
|
+
background: var(--md-sys-color-tertiary);
|
|
55
|
+
border: none;
|
|
56
|
+
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
57
|
+
}
|
|
58
|
+
::-webkit-scrollbar {
|
|
59
|
+
width: 6px;
|
|
60
|
+
border-radius: 12px;
|
|
61
|
+
}
|
|
62
|
+
::-webkit-scrollbar-track {
|
|
63
|
+
background: #f1f1f1;
|
|
64
|
+
}
|
|
65
|
+
::-webkit-scrollbar-thumb {
|
|
66
|
+
background: #888;
|
|
67
|
+
border-radius: 12px;
|
|
68
|
+
}
|
|
69
|
+
::-webkit-scrollbar-thumb:hover {
|
|
70
|
+
background: #555;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
73
|
+
<slot></slot>
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
});
|
package/exports/text-field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, query, property, css, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
|
|
4
4
|
let TextField = (() => {
|
|
@@ -64,15 +64,15 @@ let TextField = (() => {
|
|
|
64
64
|
this.trailingIconSlot.addEventListener('slotchange', this.#trailingIconSlotChange);
|
|
65
65
|
}
|
|
66
66
|
static styles = [
|
|
67
|
-
css `
|
|
68
|
-
:host {
|
|
69
|
-
display: block;
|
|
70
|
-
}
|
|
71
|
-
.label {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:host([has-leading-icon]) {
|
|
75
|
-
}
|
|
67
|
+
css `
|
|
68
|
+
:host {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
.label {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([has-leading-icon]) {
|
|
75
|
+
}
|
|
76
76
|
`
|
|
77
77
|
];
|
|
78
78
|
render() {
|
package/exports/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-
|
|
1
|
+
import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
|
|
2
2
|
import { customElement, property, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
|
|
4
4
|
// @material-symbols
|
|
@@ -82,14 +82,14 @@ let CustomTheme = (() => {
|
|
|
82
82
|
// this.load('./themes/default/tokens.js')
|
|
83
83
|
this.load('./themes/default/theme.css');
|
|
84
84
|
const style = document.createElement('style');
|
|
85
|
-
style.innerHTML = `
|
|
86
|
-
html, body {
|
|
87
|
-
inset: 0;
|
|
88
|
-
position: absolute;
|
|
89
|
-
margin: 0;
|
|
90
|
-
background: var(--md-sys-color-background);
|
|
91
|
-
color: var(--md-sys-color-on-background);
|
|
92
|
-
overflow: hidden;
|
|
85
|
+
style.innerHTML = `
|
|
86
|
+
html, body {
|
|
87
|
+
inset: 0;
|
|
88
|
+
position: absolute;
|
|
89
|
+
margin: 0;
|
|
90
|
+
background: var(--md-sys-color-background);
|
|
91
|
+
color: var(--md-sys-color-on-background);
|
|
92
|
+
overflow: hidden;
|
|
93
93
|
}`;
|
|
94
94
|
document.head.appendChild(style);
|
|
95
95
|
if (this.loadFont || this.loadSymbols)
|