@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/dialog.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, css, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
import './elevation.js';
|
|
4
4
|
import './icon.js';
|
|
@@ -94,161 +94,161 @@ let CustomDialog = (() => {
|
|
|
94
94
|
this.open = false;
|
|
95
95
|
}
|
|
96
96
|
static styles = [
|
|
97
|
-
css `
|
|
98
|
-
:host {
|
|
99
|
-
position: absolute;
|
|
100
|
-
inset: 0;
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
align-items: center;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
pointer-events: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.header {
|
|
109
|
-
height: 56px;
|
|
110
|
-
box-sizing: border-box;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.scrim,
|
|
114
|
-
.dialog {
|
|
115
|
-
transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
|
|
116
|
-
var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.scrim {
|
|
120
|
-
position: absolute;
|
|
121
|
-
inset: 0;
|
|
122
|
-
background-color: var(--md-sys-color-scrim);
|
|
123
|
-
opacity: 0;
|
|
124
|
-
pointer-events: none;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
dialog {
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
border: none;
|
|
130
|
-
min-width: var(--custom-dialog-min-width, 280px);
|
|
131
|
-
max-width: var(--custom-dialog-max-width, 560px);
|
|
132
|
-
width: fit-content;
|
|
133
|
-
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
134
|
-
background-color: var(--md-sys-color-surface-container-high);
|
|
135
|
-
color: var(--md-sys-color-on-surface);
|
|
136
|
-
padding: 24px;
|
|
137
|
-
box-sizing: border-box;
|
|
138
|
-
position: relative;
|
|
139
|
-
opacity: 0;
|
|
140
|
-
transform: scaleY(0.1);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.body {
|
|
144
|
-
overflow-y: auto;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
:host([has-actions]) .body {
|
|
148
|
-
padding-top: 16px;
|
|
149
|
-
padding-bottom: 24px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:host([has-header][has-hero]) .header {
|
|
153
|
-
padding-top: 16px;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
slot[name='title']::slotted(*) {
|
|
157
|
-
font-family: var(--md-sys-typescale-title-large-font-family-name);
|
|
158
|
-
font-style: var(--md-sys-typescale-title-large-font-family-style);
|
|
159
|
-
font-weight: var(--md-sys-typescale-title-large-font-weight);
|
|
160
|
-
font-size: var(--md-sys-typescale-title-large-font-size);
|
|
161
|
-
letter-spacing: var(--md-sys-typescale-title-large-tracking);
|
|
162
|
-
line-height: var(--md-sys-typescale-title-large-height);
|
|
163
|
-
text-transform: var(--md-sys-typescale-title-large-text-transform);
|
|
164
|
-
text-decoration: var(--md-sys-typescale-title-large-text-decoration);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:host([has-hero]) slot[name='title']::slotted(*) {
|
|
168
|
-
padding-top: 16px;
|
|
169
|
-
position: absolute;
|
|
170
|
-
left: 50%;
|
|
171
|
-
transform: translateX(-50%);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:host([fullscreen]) slot[name='title']::slotted(*) {
|
|
175
|
-
padding-left: 16px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:host(:not([fullscreen])) dialog {
|
|
179
|
-
align-items: center;
|
|
180
|
-
justify-content: center;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
slot[name='supporting-text']::slotted(*) {
|
|
184
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
185
|
-
padding-bottom: 16px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
slot[name='actions']::slotted(*) {
|
|
189
|
-
align-items: center;
|
|
190
|
-
justify-content: end;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
:host([open]) dialog,
|
|
194
|
-
:host([open]) .scrim {
|
|
195
|
-
pointer-events: auto;
|
|
196
|
-
opacity: 1;
|
|
197
|
-
transform: scaleY(1);
|
|
198
|
-
transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
|
|
199
|
-
var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
:host([open]) .scrim {
|
|
203
|
-
opacity: 0.44;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:host([fullscreen]) slot[name='actions']::slotted(*) {
|
|
207
|
-
--custom-icon-size: 12px;
|
|
208
|
-
--custom-button-color: var(--md-sys-color-primary);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
slot[name='actions'] {
|
|
212
|
-
align-items: flex-end;
|
|
213
|
-
}
|
|
97
|
+
css `
|
|
98
|
+
:host {
|
|
99
|
+
position: absolute;
|
|
100
|
+
inset: 0;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.header {
|
|
109
|
+
height: 56px;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.scrim,
|
|
114
|
+
.dialog {
|
|
115
|
+
transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
|
|
116
|
+
var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.scrim {
|
|
120
|
+
position: absolute;
|
|
121
|
+
inset: 0;
|
|
122
|
+
background-color: var(--md-sys-color-scrim);
|
|
123
|
+
opacity: 0;
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
dialog {
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
border: none;
|
|
130
|
+
min-width: var(--custom-dialog-min-width, 280px);
|
|
131
|
+
max-width: var(--custom-dialog-max-width, 560px);
|
|
132
|
+
width: fit-content;
|
|
133
|
+
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
134
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
135
|
+
color: var(--md-sys-color-on-surface);
|
|
136
|
+
padding: 24px;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
position: relative;
|
|
139
|
+
opacity: 0;
|
|
140
|
+
transform: scaleY(0.1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.body {
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([has-actions]) .body {
|
|
148
|
+
padding-top: 16px;
|
|
149
|
+
padding-bottom: 24px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([has-header][has-hero]) .header {
|
|
153
|
+
padding-top: 16px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
slot[name='title']::slotted(*) {
|
|
157
|
+
font-family: var(--md-sys-typescale-title-large-font-family-name);
|
|
158
|
+
font-style: var(--md-sys-typescale-title-large-font-family-style);
|
|
159
|
+
font-weight: var(--md-sys-typescale-title-large-font-weight);
|
|
160
|
+
font-size: var(--md-sys-typescale-title-large-font-size);
|
|
161
|
+
letter-spacing: var(--md-sys-typescale-title-large-tracking);
|
|
162
|
+
line-height: var(--md-sys-typescale-title-large-height);
|
|
163
|
+
text-transform: var(--md-sys-typescale-title-large-text-transform);
|
|
164
|
+
text-decoration: var(--md-sys-typescale-title-large-text-decoration);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([has-hero]) slot[name='title']::slotted(*) {
|
|
168
|
+
padding-top: 16px;
|
|
169
|
+
position: absolute;
|
|
170
|
+
left: 50%;
|
|
171
|
+
transform: translateX(-50%);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([fullscreen]) slot[name='title']::slotted(*) {
|
|
175
|
+
padding-left: 16px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host(:not([fullscreen])) dialog {
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
slot[name='supporting-text']::slotted(*) {
|
|
184
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
185
|
+
padding-bottom: 16px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
slot[name='actions']::slotted(*) {
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: end;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([open]) dialog,
|
|
194
|
+
:host([open]) .scrim {
|
|
195
|
+
pointer-events: auto;
|
|
196
|
+
opacity: 1;
|
|
197
|
+
transform: scaleY(1);
|
|
198
|
+
transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
|
|
199
|
+
var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([open]) .scrim {
|
|
203
|
+
opacity: 0.44;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:host([fullscreen]) slot[name='actions']::slotted(*) {
|
|
207
|
+
--custom-icon-size: 12px;
|
|
208
|
+
--custom-button-color: var(--md-sys-color-primary);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
slot[name='actions'] {
|
|
212
|
+
align-items: flex-end;
|
|
213
|
+
}
|
|
214
214
|
`
|
|
215
215
|
];
|
|
216
216
|
render() {
|
|
217
|
-
return html `
|
|
218
|
-
<span class="scrim" @click=${this._close}></span>
|
|
219
|
-
<dialog ?open=${this.open}>
|
|
220
|
-
<custom-elevation level=${this.fullscreen ? 0 : 3}></custom-elevation>
|
|
221
|
-
<slot name="hero-icon"></slot>
|
|
222
|
-
<slot name="supporting-text"></slot>
|
|
223
|
-
<slot name="header">
|
|
224
|
-
<flex-row class="header" center>
|
|
225
|
-
<flex-row center style="width: 100%">
|
|
226
|
-
<slot name="header-start">
|
|
217
|
+
return html `
|
|
218
|
+
<span class="scrim" @click=${this._close}></span>
|
|
219
|
+
<dialog ?open=${this.open}>
|
|
220
|
+
<custom-elevation level=${this.fullscreen ? 0 : 3}></custom-elevation>
|
|
221
|
+
<slot name="hero-icon"></slot>
|
|
222
|
+
<slot name="supporting-text"></slot>
|
|
223
|
+
<slot name="header">
|
|
224
|
+
<flex-row class="header" center>
|
|
225
|
+
<flex-row center style="width: 100%">
|
|
226
|
+
<slot name="header-start">
|
|
227
227
|
${this.fullscreen
|
|
228
|
-
? html `<custom-button @click=${this._close}
|
|
229
|
-
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
228
|
+
? html `<custom-button @click=${this._close}
|
|
229
|
+
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
230
230
|
>`
|
|
231
|
-
: ''}
|
|
232
|
-
</slot>
|
|
233
|
-
<slot name="title"></slot>
|
|
234
|
-
<flex-it></flex-it>
|
|
235
|
-
<slot name="header-end">
|
|
236
|
-
${this.fullscreen ? html `<slot name="actions"></slot>` : ''}
|
|
231
|
+
: ''}
|
|
232
|
+
</slot>
|
|
233
|
+
<slot name="title"></slot>
|
|
234
|
+
<flex-it></flex-it>
|
|
235
|
+
<slot name="header-end">
|
|
236
|
+
${this.fullscreen ? html `<slot name="actions"></slot>` : ''}
|
|
237
237
|
${this.fullscreen
|
|
238
238
|
? ''
|
|
239
|
-
: html `<custom-button @click=${this._close}
|
|
240
|
-
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
241
|
-
>`}
|
|
242
|
-
</slot>
|
|
243
|
-
</flex-row>
|
|
244
|
-
</flex-row>
|
|
245
|
-
</slot>
|
|
246
|
-
<flex-column class="body">
|
|
247
|
-
<slot></slot>
|
|
248
|
-
</flex-column>
|
|
249
|
-
|
|
250
|
-
${this.fullscreen ? '' : html `<slot name="actions"></slot>`}
|
|
251
|
-
</dialog>
|
|
239
|
+
: html `<custom-button @click=${this._close}
|
|
240
|
+
><custom-icon slot="icon">close</custom-icon></custom-button
|
|
241
|
+
>`}
|
|
242
|
+
</slot>
|
|
243
|
+
</flex-row>
|
|
244
|
+
</flex-row>
|
|
245
|
+
</slot>
|
|
246
|
+
<flex-column class="body">
|
|
247
|
+
<slot></slot>
|
|
248
|
+
</flex-column>
|
|
249
|
+
|
|
250
|
+
${this.fullscreen ? '' : html `<slot name="actions"></slot>`}
|
|
251
|
+
</dialog>
|
|
252
252
|
`;
|
|
253
253
|
}
|
|
254
254
|
static {
|
package/exports/divider.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
|
import './button.js';
|
|
4
4
|
import './elevation.js';
|
|
@@ -22,27 +22,27 @@ let CustomDivider = (() => {
|
|
|
22
22
|
middleInset: { type: Boolean, reflect: true, attribute: 'middle-inset' }
|
|
23
23
|
};
|
|
24
24
|
render() {
|
|
25
|
-
return html `
|
|
26
|
-
<style>
|
|
27
|
-
:host {
|
|
28
|
-
display: block;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
min-height: 1px;
|
|
31
|
-
margin: 8px 0 16px 0;
|
|
32
|
-
width: 100%;
|
|
33
|
-
background: var(--md-sys-color-outline);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([inset]) {
|
|
37
|
-
margin-left: 16px;
|
|
38
|
-
margin-right: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([middle-inset]) {
|
|
42
|
-
margin-left: 16px;
|
|
43
|
-
margin-right: 16px;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
25
|
+
return html `
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
display: block;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
min-height: 1px;
|
|
31
|
+
margin: 8px 0 16px 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
background: var(--md-sys-color-outline);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([inset]) {
|
|
37
|
+
margin-left: 16px;
|
|
38
|
+
margin-right: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([middle-inset]) {
|
|
42
|
+
margin-left: 16px;
|
|
43
|
+
margin-right: 16px;
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
46
46
|
`;
|
|
47
47
|
}
|
|
48
48
|
static {
|
package/exports/drawer-button.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, css, html, LiteElement } from '@vandeurenglenn/lite';
|
|
3
3
|
import './icon-button.js';
|
|
4
4
|
import './button.js';
|
|
@@ -48,19 +48,19 @@ let CustomDrawerButton = (() => {
|
|
|
48
48
|
document.dispatchEvent(new CustomEvent('custom-pane-open', { detail: this.id }));
|
|
49
49
|
}
|
|
50
50
|
static styles = [
|
|
51
|
-
css `
|
|
52
|
-
:host {
|
|
53
|
-
display: block;
|
|
54
|
-
opacity: 1;
|
|
55
|
-
pointer-events: auto;
|
|
56
|
-
will-change: width, opacity;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host([drawer-open]) {
|
|
60
|
-
opacity: 0;
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
width: 0;
|
|
63
|
-
}
|
|
51
|
+
css `
|
|
52
|
+
:host {
|
|
53
|
+
display: block;
|
|
54
|
+
opacity: 1;
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
will-change: width, opacity;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([drawer-open]) {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
width: 0;
|
|
63
|
+
}
|
|
64
64
|
`
|
|
65
65
|
];
|
|
66
66
|
render() {
|
package/exports/drawer-item.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 CustomDrawerItem = (() => {
|
|
@@ -16,47 +16,47 @@ let CustomDrawerItem = (() => {
|
|
|
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
|
-
padding-left: 16px;
|
|
23
|
-
padding-right: 24px;
|
|
24
|
-
height: 100%;
|
|
25
|
-
min-height: 54px;
|
|
26
|
-
max-height: 54px;
|
|
27
|
-
width: 100%;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
30
|
-
align-items: center;
|
|
31
|
-
pointer-events: auto;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
slot {
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
slot[name='icon']::slotted(*) {
|
|
40
|
-
margin-right: 12px;
|
|
41
|
-
height: 24px;
|
|
42
|
-
width: 24px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
slot[name='end']::slotted(*) {
|
|
46
|
-
margin-left: 12px;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:host([non-interactive]) {
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
}
|
|
19
|
+
css `
|
|
20
|
+
:host {
|
|
21
|
+
display: flex;
|
|
22
|
+
padding-left: 16px;
|
|
23
|
+
padding-right: 24px;
|
|
24
|
+
height: 100%;
|
|
25
|
+
min-height: 54px;
|
|
26
|
+
max-height: 54px;
|
|
27
|
+
width: 100%;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
30
|
+
align-items: center;
|
|
31
|
+
pointer-events: auto;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
slot {
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
slot[name='icon']::slotted(*) {
|
|
40
|
+
margin-right: 12px;
|
|
41
|
+
height: 24px;
|
|
42
|
+
width: 24px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
slot[name='end']::slotted(*) {
|
|
46
|
+
margin-left: 12px;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([non-interactive]) {
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
53
|
`
|
|
54
54
|
];
|
|
55
55
|
render() {
|
|
56
|
-
return html `
|
|
57
|
-
<slot name="icon"></slot>
|
|
58
|
-
<slot></slot>
|
|
59
|
-
<slot name="end"></slot>
|
|
56
|
+
return html `
|
|
57
|
+
<slot name="icon"></slot>
|
|
58
|
+
<slot></slot>
|
|
59
|
+
<slot name="end"></slot>
|
|
60
60
|
`;
|
|
61
61
|
}
|
|
62
62
|
static {
|