@leavittsoftware/web 1.0.0 → 1.2.0
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/leavitt/api-service/api-service.js +5 -5
- package/leavitt/api-service/api-service.js.map +1 -1
- package/leavitt/api-service/odata-response.js +2 -2
- package/leavitt/api-service/odata-response.js.map +1 -1
- package/leavitt/company-select/company-select.js +10 -10
- package/leavitt/person-company-select/person-company-select.js +14 -14
- package/leavitt/person-group-select/person-group-select.js +18 -18
- package/leavitt/person-select/person-select.js +4 -4
- package/leavitt/profile-picture/profile-picture-menu.js +96 -96
- package/leavitt/profile-picture/profile-picture.js +64 -64
- package/leavitt/user-feedback/user-feedback.js +79 -79
- package/package.json +37 -36
- package/titanium/access-denied-page/access-denied-page.js +330 -330
- package/titanium/address-input/address-input.js +17 -17
- package/titanium/address-input/address-input.js.map +1 -1
- package/titanium/address-input/google-address-input.js +4 -4
- package/titanium/address-input/manual-address-dialog.js +127 -127
- package/titanium/card/card.js +117 -117
- package/titanium/chip-multi-select/chip-multi-select.js +38 -38
- package/titanium/data-table/data-table-header.js +95 -95
- package/titanium/data-table/data-table-item.js +163 -163
- package/titanium/data-table/data-table.js +313 -313
- package/titanium/data-table/data-table.js.map +1 -1
- package/titanium/data-table/filter-controller.js +5 -5
- package/titanium/data-table/filter-controller.js.map +1 -1
- package/titanium/data-table/page-control.js +75 -75
- package/titanium/data-table/page-control.js.map +1 -1
- package/titanium/date-range-selector/date-range-change-event.js.map +1 -1
- package/titanium/date-range-selector/date-range-selector.js +51 -51
- package/titanium/drawer/drawer.js +125 -125
- package/titanium/drawer/drawer.js.map +1 -1
- package/titanium/duration-input/human-interval.js +6 -6
- package/titanium/duration-input/human-interval.js.map +1 -1
- package/titanium/error-page/error-page.js +66 -66
- package/titanium/event-bus/event-bus.js +7 -7
- package/titanium/event-bus/event-bus.js.map +1 -1
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +28 -28
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +48 -48
- package/titanium/header/header.js +83 -83
- package/titanium/helpers/debouncer.js.map +1 -1
- package/titanium/helpers/dev-detection.js +1 -1
- package/titanium/helpers/dev-detection.js.map +1 -1
- package/titanium/helpers/media-query.js +1 -1
- package/titanium/helpers/media-query.js.map +1 -1
- package/titanium/helpers/search-token.js +2 -2
- package/titanium/helpers/search-token.js.map +1 -1
- package/titanium/icon-picker/icon-picker.js +4 -4
- package/titanium/search-input/search-input.js +117 -117
- package/titanium/show-hide/show-hide.js +54 -54
- package/titanium/show-hide/show-hide.js.map +1 -1
- package/titanium/single-select-base/single-select-base.js +93 -92
- package/titanium/single-select-base/single-select-base.js.map +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +115 -115
- package/titanium/smart-attachment-input/cropper-styles.js +307 -307
- package/titanium/smart-attachment-input/image-preview-dialog.js +29 -29
- package/titanium/smart-attachment-input/smart-attachment-input.js +81 -81
- package/titanium/snackbar/snackbar.js +133 -133
- package/titanium/styles/a.js +15 -15
- package/titanium/styles/data-row.js +43 -43
- package/titanium/styles/ellipsis.js +6 -6
- package/titanium/styles/h1.js +14 -14
- package/titanium/styles/h2.js +14 -14
- package/titanium/styles/h3.js +14 -14
- package/titanium/styles/h4.js +14 -14
- package/titanium/styles/h5.js +16 -16
- package/titanium/styles/p.js +14 -14
- package/titanium/toolbar/toolbar.js +45 -45
- package/titanium/types/pending-state-event.js.map +1 -1
- package/titanium/youtube-input/youtube-input.js +9 -9
- package/titanium/address-input/Address.js.map +0 -1
- package/titanium/address-input/types/address.js.map +0 -1
- package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +0 -1
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +0 -45
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +0 -1
|
@@ -224,40 +224,40 @@ let TitaniumSmartAttachmentInput = class TitaniumSmartAttachmentInput extends Li
|
|
|
224
224
|
this.dispatchEvent(new Event('change'));
|
|
225
225
|
}
|
|
226
226
|
static { this.styles = [
|
|
227
|
-
css `
|
|
228
|
-
:host {
|
|
229
|
-
display: block;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host([is-over]:not([disabled])) drop-scrim {
|
|
233
|
-
background-color: var(--md-sys-color-outline-variant);
|
|
234
|
-
opacity: 0.08;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
titanium-chip-multi-select {
|
|
238
|
-
position: relative;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
drop-scrim {
|
|
242
|
-
position: absolute;
|
|
243
|
-
pointer-events: none;
|
|
244
|
-
top: 0;
|
|
245
|
-
right: 0;
|
|
246
|
-
left: 0;
|
|
247
|
-
bottom: 0;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
[hidden] {
|
|
251
|
-
display: none !important;
|
|
252
|
-
}
|
|
227
|
+
css `
|
|
228
|
+
:host {
|
|
229
|
+
display: block;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host([is-over]:not([disabled])) drop-scrim {
|
|
233
|
+
background-color: var(--md-sys-color-outline-variant);
|
|
234
|
+
opacity: 0.08;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
titanium-chip-multi-select {
|
|
238
|
+
position: relative;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
drop-scrim {
|
|
242
|
+
position: absolute;
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
top: 0;
|
|
245
|
+
right: 0;
|
|
246
|
+
left: 0;
|
|
247
|
+
bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
[hidden] {
|
|
251
|
+
display: none !important;
|
|
252
|
+
}
|
|
253
253
|
`,
|
|
254
254
|
]; }
|
|
255
255
|
render() {
|
|
256
|
-
return html `
|
|
257
|
-
<titanium-chip-multi-select
|
|
258
|
-
.supportingText=${this.supportingText}
|
|
259
|
-
.required=${this.required}
|
|
260
|
-
?disabled=${this.disabled}
|
|
256
|
+
return html `
|
|
257
|
+
<titanium-chip-multi-select
|
|
258
|
+
.supportingText=${this.supportingText}
|
|
259
|
+
.required=${this.required}
|
|
260
|
+
?disabled=${this.disabled}
|
|
261
261
|
@drop=${(e) => {
|
|
262
262
|
if (this.disabled) {
|
|
263
263
|
return;
|
|
@@ -266,36 +266,36 @@ let TitaniumSmartAttachmentInput = class TitaniumSmartAttachmentInput extends Li
|
|
|
266
266
|
this.handleNewFile(files);
|
|
267
267
|
e.preventDefault();
|
|
268
268
|
this.isOver = false;
|
|
269
|
-
}}
|
|
269
|
+
}}
|
|
270
270
|
@dragover=${(e) => {
|
|
271
271
|
e.preventDefault();
|
|
272
|
-
}}
|
|
272
|
+
}}
|
|
273
273
|
@dragenter=${(e) => {
|
|
274
274
|
this.isOver = e.dataTransfer?.types?.[0] === 'Files';
|
|
275
275
|
e.preventDefault();
|
|
276
|
-
}}
|
|
276
|
+
}}
|
|
277
277
|
@dragleave=${() => {
|
|
278
278
|
this.isOver = false;
|
|
279
|
-
}}
|
|
280
|
-
label="${this.label} ${this.files.length ? ` (${this.files.length})` : ''}"
|
|
281
|
-
noItemsText=${this.noItemsText}
|
|
282
|
-
.hasItems=${!!this.files.length}
|
|
283
|
-
>
|
|
284
|
-
<drop-scrim></drop-scrim>
|
|
285
|
-
<md-outlined-button
|
|
286
|
-
?hidden=${!this.multiple && !!this.files.length}
|
|
287
|
-
.disabled=${this.disabled}
|
|
279
|
+
}}
|
|
280
|
+
label="${this.label} ${this.files.length ? ` (${this.files.length})` : ''}"
|
|
281
|
+
noItemsText=${this.noItemsText}
|
|
282
|
+
.hasItems=${!!this.files.length}
|
|
283
|
+
>
|
|
284
|
+
<drop-scrim></drop-scrim>
|
|
285
|
+
<md-outlined-button
|
|
286
|
+
?hidden=${!this.multiple && !!this.files.length}
|
|
287
|
+
.disabled=${this.disabled}
|
|
288
288
|
@click=${() => {
|
|
289
289
|
if (!this.disabled) {
|
|
290
290
|
this.input.value = '';
|
|
291
291
|
this.input.click();
|
|
292
292
|
}
|
|
293
|
-
}}
|
|
294
|
-
>${this.addButtonLabel} <md-icon slot="icon">add</md-icon></md-outlined-button
|
|
295
|
-
>
|
|
296
|
-
${repeat(this.files, (o) => o.file.name, (o) => html `<md-input-chip
|
|
297
|
-
label=${middleEllipsis(o.file.name)}
|
|
298
|
-
?closeable=${!this.disabled}
|
|
293
|
+
}}
|
|
294
|
+
>${this.addButtonLabel} <md-icon slot="icon">add</md-icon></md-outlined-button
|
|
295
|
+
>
|
|
296
|
+
${repeat(this.files, (o) => o.file.name, (o) => html `<md-input-chip
|
|
297
|
+
label=${middleEllipsis(o.file.name)}
|
|
298
|
+
?closeable=${!this.disabled}
|
|
299
299
|
@remove=${async (e) => {
|
|
300
300
|
e.preventDefault();
|
|
301
301
|
if (this.confirmDelete) {
|
|
@@ -305,50 +305,50 @@ let TitaniumSmartAttachmentInput = class TitaniumSmartAttachmentInput extends Li
|
|
|
305
305
|
else {
|
|
306
306
|
this.#deleteFile(o);
|
|
307
307
|
}
|
|
308
|
-
}}
|
|
308
|
+
}}
|
|
309
309
|
@click=${() => {
|
|
310
310
|
if (o.previewSrc || o.downloadSrc) {
|
|
311
311
|
this.imagePreviewDialog.open(o.previewSrc || getFileIcon(getExtension(o.file.name)), o.downloadSrc, o.file.name);
|
|
312
312
|
}
|
|
313
|
-
}}
|
|
314
|
-
>
|
|
315
|
-
<img draggable="false" slot="icon" src="${o.previewSrc || getFileIcon(getExtension(o.file.name))}" />
|
|
316
|
-
</md-input-chip>`)}
|
|
317
|
-
</titanium-chip-multi-select>
|
|
318
|
-
|
|
319
|
-
<label hidden for="upload">
|
|
320
|
-
<input
|
|
321
|
-
hidden
|
|
322
|
-
type="file"
|
|
323
|
-
id="input"
|
|
324
|
-
name="image"
|
|
325
|
-
?multiple=${this.multiple}
|
|
326
|
-
accept="${this.accept}"
|
|
313
|
+
}}
|
|
314
|
+
>
|
|
315
|
+
<img draggable="false" slot="icon" src="${o.previewSrc || getFileIcon(getExtension(o.file.name))}" />
|
|
316
|
+
</md-input-chip>`)}
|
|
317
|
+
</titanium-chip-multi-select>
|
|
318
|
+
|
|
319
|
+
<label hidden for="upload">
|
|
320
|
+
<input
|
|
321
|
+
hidden
|
|
322
|
+
type="file"
|
|
323
|
+
id="input"
|
|
324
|
+
name="image"
|
|
325
|
+
?multiple=${this.multiple}
|
|
326
|
+
accept="${this.accept}"
|
|
327
327
|
@change=${(e) => {
|
|
328
328
|
const files = e.target.files;
|
|
329
329
|
this.handleNewFile(files);
|
|
330
|
-
}}
|
|
331
|
-
/>
|
|
332
|
-
</label>
|
|
333
|
-
<crop-and-save-image-dialog .options=${this.options}></crop-and-save-image-dialog>
|
|
334
|
-
<image-preview-dialog></image-preview-dialog>
|
|
335
|
-
|
|
336
|
-
<md-dialog confirm-delete>
|
|
337
|
-
<div slot="headline">${this.confirmDeleteHeader}</div>
|
|
338
|
-
<div slot="content"><p>${this.confirmDeleteText}</p></div>
|
|
339
|
-
<div slot="actions">
|
|
340
|
-
<md-text-button @click=${() => this.confirmDeleteDialog.close()}>Cancel</md-text-button>
|
|
341
|
-
<md-text-button
|
|
330
|
+
}}
|
|
331
|
+
/>
|
|
332
|
+
</label>
|
|
333
|
+
<crop-and-save-image-dialog .options=${this.options}></crop-and-save-image-dialog>
|
|
334
|
+
<image-preview-dialog></image-preview-dialog>
|
|
335
|
+
|
|
336
|
+
<md-dialog confirm-delete>
|
|
337
|
+
<div slot="headline">${this.confirmDeleteHeader}</div>
|
|
338
|
+
<div slot="content"><p>${this.confirmDeleteText}</p></div>
|
|
339
|
+
<div slot="actions">
|
|
340
|
+
<md-text-button @click=${() => this.confirmDeleteDialog.close()}>Cancel</md-text-button>
|
|
341
|
+
<md-text-button
|
|
342
342
|
@click=${() => {
|
|
343
343
|
if (this.#fileToDelete) {
|
|
344
344
|
this.#deleteFile(this.#fileToDelete);
|
|
345
345
|
}
|
|
346
346
|
this.confirmDeleteDialog.close();
|
|
347
|
-
}}
|
|
348
|
-
>Confirm</md-text-button
|
|
349
|
-
>
|
|
350
|
-
</div>
|
|
351
|
-
</md-dialog>
|
|
347
|
+
}}
|
|
348
|
+
>Confirm</md-text-button
|
|
349
|
+
>
|
|
350
|
+
</div>
|
|
351
|
+
</md-dialog>
|
|
352
352
|
`;
|
|
353
353
|
}
|
|
354
354
|
};
|
|
@@ -68,11 +68,11 @@ let TitaniumSnackbar = class TitaniumSnackbar extends LitElement {
|
|
|
68
68
|
this.actionText = 'DISMISS';
|
|
69
69
|
if (typeof message !== 'string' && message?.type === 'HttpError') {
|
|
70
70
|
const error = message;
|
|
71
|
-
this.message = html ` <http-error>
|
|
72
|
-
<span error>${this.#addNewLineBreaks(error.message)}</span>
|
|
73
|
-
<span status>${error.statusCode}</span>
|
|
74
|
-
<span action>${error.action}</span>
|
|
75
|
-
${error.detail ? html ` <code detail>${this.#addNewLineBreaks(error.detail)}</code>` : nothing}
|
|
71
|
+
this.message = html ` <http-error>
|
|
72
|
+
<span error>${this.#addNewLineBreaks(error.message)}</span>
|
|
73
|
+
<span status>${error.statusCode}</span>
|
|
74
|
+
<span action>${error.action}</span>
|
|
75
|
+
${error.detail ? html ` <code detail>${this.#addNewLineBreaks(error.detail)}</code>` : nothing}
|
|
76
76
|
</http-error>`;
|
|
77
77
|
}
|
|
78
78
|
else if (message) {
|
|
@@ -141,139 +141,139 @@ let TitaniumSnackbar = class TitaniumSnackbar extends LitElement {
|
|
|
141
141
|
const l = lines.length;
|
|
142
142
|
return lines.map((line, i) => (i === l - 1 ? line : html `${line}<br />`));
|
|
143
143
|
}
|
|
144
|
-
static { this.styles = css `
|
|
145
|
-
:host {
|
|
146
|
-
display: none;
|
|
147
|
-
min-width: 240px;
|
|
148
|
-
flex-direction: column;
|
|
149
|
-
font-family: Roboto, Noto, sans-serif;
|
|
150
|
-
-webkit-font-smoothing: antialiased;
|
|
151
|
-
position: fixed;
|
|
152
|
-
bottom: 0;
|
|
153
|
-
left: 0;
|
|
154
|
-
margin: 16px;
|
|
155
|
-
padding: 8px;
|
|
156
|
-
border-radius: 4px;
|
|
157
|
-
background: var(--md-sys-color-inverse-surface);
|
|
158
|
-
color: var(--md-sys-color-inverse-on-surface);
|
|
159
|
-
font-size: 14px;
|
|
160
|
-
-webkit-box-shadow:
|
|
161
|
-
0 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
162
|
-
0 6px 10px 0 rgba(0, 0, 0, 0.14),
|
|
163
|
-
0 1px 18px 0 rgba(0, 0, 0, 0.12);
|
|
164
|
-
box-shadow:
|
|
165
|
-
0 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
166
|
-
0 6px 10px 0 rgba(0, 0, 0, 0.14),
|
|
167
|
-
0 1px 18px 0 rgba(0, 0, 0, 0.12);
|
|
168
|
-
|
|
169
|
-
-webkit-box-sizing: border-box;
|
|
170
|
-
box-sizing: border-box;
|
|
171
|
-
-webkit-transform: scale(0.8);
|
|
172
|
-
-ms-transform: scale(0.8);
|
|
173
|
-
transform: scale(0.8);
|
|
174
|
-
z-index: 2;
|
|
175
|
-
opacity: 0;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:host([opening]),
|
|
179
|
-
:host([opened]),
|
|
180
|
-
:host([closing]) {
|
|
181
|
-
display: flex;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
:host([closing]) {
|
|
185
|
-
-webkit-transform: scale(1);
|
|
186
|
-
-ms-transform: scale(1);
|
|
187
|
-
transform: scale(1);
|
|
188
|
-
-webkit-transition: opacity 75ms linear;
|
|
189
|
-
-o-transition: opacity 75ms linear;
|
|
190
|
-
transition: opacity 75ms linear;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
:host([opening]) {
|
|
194
|
-
-webkit-transition:
|
|
195
|
-
opacity 75ms linear,
|
|
196
|
-
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
197
|
-
transition:
|
|
198
|
-
opacity 75ms linear,
|
|
199
|
-
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
200
|
-
-o-transition:
|
|
201
|
-
opacity 75ms linear,
|
|
202
|
-
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
203
|
-
transition:
|
|
204
|
-
opacity 75ms linear,
|
|
205
|
-
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
206
|
-
transition:
|
|
207
|
-
opacity 75ms linear,
|
|
208
|
-
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1),
|
|
209
|
-
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
:host([opened]) {
|
|
213
|
-
-webkit-transform: scale(1);
|
|
214
|
-
-ms-transform: scale(1);
|
|
215
|
-
transform: scale(1);
|
|
216
|
-
opacity: 1;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
http-error {
|
|
220
|
-
display: grid;
|
|
221
|
-
gap: 24px;
|
|
222
|
-
grid:
|
|
223
|
-
'action status'
|
|
224
|
-
'error error';
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
http-error [detail] {
|
|
228
|
-
font-size: 12px;
|
|
229
|
-
overflow-y: auto;
|
|
230
|
-
overflow-y: auto;
|
|
231
|
-
max-height: 400px;
|
|
232
|
-
grid-column: 1 / -1;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
http-error [error] {
|
|
236
|
-
grid-area: error;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
http-error [status] {
|
|
240
|
-
grid-area: status;
|
|
241
|
-
font-size: 12px;
|
|
242
|
-
justify-self: end;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
http-error [action] {
|
|
246
|
-
grid-area: action;
|
|
247
|
-
|
|
248
|
-
font-size: 12px;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
span[main] {
|
|
252
|
-
max-width: 600px;
|
|
253
|
-
overflow: hidden;
|
|
254
|
-
margin: 12px;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
md-text-button {
|
|
258
|
-
--md-text-button-label-text-color: var(--md-sys-color-inverse-primary);
|
|
259
|
-
align-self: flex-end;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
[hidden] {
|
|
263
|
-
display: none !important;
|
|
264
|
-
}
|
|
144
|
+
static { this.styles = css `
|
|
145
|
+
:host {
|
|
146
|
+
display: none;
|
|
147
|
+
min-width: 240px;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
font-family: Roboto, Noto, sans-serif;
|
|
150
|
+
-webkit-font-smoothing: antialiased;
|
|
151
|
+
position: fixed;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
margin: 16px;
|
|
155
|
+
padding: 8px;
|
|
156
|
+
border-radius: 4px;
|
|
157
|
+
background: var(--md-sys-color-inverse-surface);
|
|
158
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
159
|
+
font-size: 14px;
|
|
160
|
+
-webkit-box-shadow:
|
|
161
|
+
0 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
162
|
+
0 6px 10px 0 rgba(0, 0, 0, 0.14),
|
|
163
|
+
0 1px 18px 0 rgba(0, 0, 0, 0.12);
|
|
164
|
+
box-shadow:
|
|
165
|
+
0 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
166
|
+
0 6px 10px 0 rgba(0, 0, 0, 0.14),
|
|
167
|
+
0 1px 18px 0 rgba(0, 0, 0, 0.12);
|
|
168
|
+
|
|
169
|
+
-webkit-box-sizing: border-box;
|
|
170
|
+
box-sizing: border-box;
|
|
171
|
+
-webkit-transform: scale(0.8);
|
|
172
|
+
-ms-transform: scale(0.8);
|
|
173
|
+
transform: scale(0.8);
|
|
174
|
+
z-index: 2;
|
|
175
|
+
opacity: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([opening]),
|
|
179
|
+
:host([opened]),
|
|
180
|
+
:host([closing]) {
|
|
181
|
+
display: flex;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host([closing]) {
|
|
185
|
+
-webkit-transform: scale(1);
|
|
186
|
+
-ms-transform: scale(1);
|
|
187
|
+
transform: scale(1);
|
|
188
|
+
-webkit-transition: opacity 75ms linear;
|
|
189
|
+
-o-transition: opacity 75ms linear;
|
|
190
|
+
transition: opacity 75ms linear;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([opening]) {
|
|
194
|
+
-webkit-transition:
|
|
195
|
+
opacity 75ms linear,
|
|
196
|
+
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
197
|
+
transition:
|
|
198
|
+
opacity 75ms linear,
|
|
199
|
+
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
200
|
+
-o-transition:
|
|
201
|
+
opacity 75ms linear,
|
|
202
|
+
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
203
|
+
transition:
|
|
204
|
+
opacity 75ms linear,
|
|
205
|
+
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
206
|
+
transition:
|
|
207
|
+
opacity 75ms linear,
|
|
208
|
+
transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1),
|
|
209
|
+
-webkit-transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:host([opened]) {
|
|
213
|
+
-webkit-transform: scale(1);
|
|
214
|
+
-ms-transform: scale(1);
|
|
215
|
+
transform: scale(1);
|
|
216
|
+
opacity: 1;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
http-error {
|
|
220
|
+
display: grid;
|
|
221
|
+
gap: 24px;
|
|
222
|
+
grid:
|
|
223
|
+
'action status'
|
|
224
|
+
'error error';
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
http-error [detail] {
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
overflow-y: auto;
|
|
230
|
+
overflow-y: auto;
|
|
231
|
+
max-height: 400px;
|
|
232
|
+
grid-column: 1 / -1;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
http-error [error] {
|
|
236
|
+
grid-area: error;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
http-error [status] {
|
|
240
|
+
grid-area: status;
|
|
241
|
+
font-size: 12px;
|
|
242
|
+
justify-self: end;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
http-error [action] {
|
|
246
|
+
grid-area: action;
|
|
247
|
+
|
|
248
|
+
font-size: 12px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
span[main] {
|
|
252
|
+
max-width: 600px;
|
|
253
|
+
overflow: hidden;
|
|
254
|
+
margin: 12px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
md-text-button {
|
|
258
|
+
--md-text-button-label-text-color: var(--md-sys-color-inverse-primary);
|
|
259
|
+
align-self: flex-end;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
[hidden] {
|
|
263
|
+
display: none !important;
|
|
264
|
+
}
|
|
265
265
|
`; }
|
|
266
266
|
render() {
|
|
267
|
-
return html `
|
|
268
|
-
<span main>${this.message}</span>
|
|
269
|
-
<md-text-button
|
|
270
|
-
?hidden=${this.noaction}
|
|
267
|
+
return html `
|
|
268
|
+
<span main>${this.message}</span>
|
|
269
|
+
<md-text-button
|
|
270
|
+
?hidden=${this.noaction}
|
|
271
271
|
@click=${() => {
|
|
272
272
|
clearTimeout(this.#closeTimeoutHandle);
|
|
273
273
|
this.close();
|
|
274
|
-
}}
|
|
275
|
-
>${this.actionText}
|
|
276
|
-
</md-text-button>
|
|
274
|
+
}}
|
|
275
|
+
>${this.actionText}
|
|
276
|
+
</md-text-button>
|
|
277
277
|
`;
|
|
278
278
|
}
|
|
279
279
|
};
|
package/titanium/styles/a.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const a = css `
|
|
3
|
-
[anchor],
|
|
4
|
-
a {
|
|
5
|
-
text-decoration: none;
|
|
6
|
-
font-size: 14px;
|
|
7
|
-
color: var(--md-sys-color-primary);
|
|
8
|
-
|
|
9
|
-
font-family: var(--titanium-styles-a-font-family, Metropolis, Roboto, Noto, sans-serif);
|
|
10
|
-
font-weight: 400;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
[anchor]:hover,
|
|
14
|
-
a:hover {
|
|
15
|
-
text-decoration: underline;
|
|
16
|
-
}
|
|
2
|
+
export const a = css `
|
|
3
|
+
[anchor],
|
|
4
|
+
a {
|
|
5
|
+
text-decoration: none;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
color: var(--md-sys-color-primary);
|
|
8
|
+
|
|
9
|
+
font-family: var(--titanium-styles-a-font-family, Metropolis, Roboto, Noto, sans-serif);
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[anchor]:hover,
|
|
14
|
+
a:hover {
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
17
17
|
`;
|
|
18
18
|
//# sourceMappingURL=a.js.map
|
|
@@ -4,49 +4,49 @@ import { p } from './p';
|
|
|
4
4
|
export const dataRow = [
|
|
5
5
|
h5,
|
|
6
6
|
p,
|
|
7
|
-
css `
|
|
8
|
-
data-row {
|
|
9
|
-
display: grid;
|
|
10
|
-
grid: 'label text' / 150px 1fr;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: 16px;
|
|
13
|
-
|
|
14
|
-
padding: 16px 24px 16px 0;
|
|
15
|
-
margin-left: 24px;
|
|
16
|
-
|
|
17
|
-
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
data-row:last-of-type {
|
|
21
|
-
border: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
[data-row-container] {
|
|
25
|
-
container-type: inline-size;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
data-row p {
|
|
29
|
-
font-size: 16px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
data-row h5 {
|
|
33
|
-
margin: 0 0 4px 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[image] {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
gap: 12px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@container (max-width: 500px) {
|
|
43
|
-
data-row {
|
|
44
|
-
grid:
|
|
45
|
-
'label'
|
|
46
|
-
'text';
|
|
47
|
-
gap: 6px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
7
|
+
css `
|
|
8
|
+
data-row {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid: 'label text' / 150px 1fr;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
|
|
14
|
+
padding: 16px 24px 16px 0;
|
|
15
|
+
margin-left: 24px;
|
|
16
|
+
|
|
17
|
+
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
data-row:last-of-type {
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-row-container] {
|
|
25
|
+
container-type: inline-size;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
data-row p {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
data-row h5 {
|
|
33
|
+
margin: 0 0 4px 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[image] {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@container (max-width: 500px) {
|
|
43
|
+
data-row {
|
|
44
|
+
grid:
|
|
45
|
+
'label'
|
|
46
|
+
'text';
|
|
47
|
+
gap: 6px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
50
|
`,
|
|
51
51
|
];
|
|
52
52
|
//# sourceMappingURL=data-row.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const ellipsis = css `
|
|
3
|
-
[ellipsis] {
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
text-overflow: ellipsis;
|
|
7
|
-
}
|
|
2
|
+
export const ellipsis = css `
|
|
3
|
+
[ellipsis] {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
}
|
|
8
8
|
`;
|
|
9
9
|
//# sourceMappingURL=ellipsis.js.map
|
package/titanium/styles/h1.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const h1 = css `
|
|
3
|
-
[heading1],
|
|
4
|
-
h1 {
|
|
5
|
-
font-family: var(--titanium-styles-h1-font-family, Metropolis, Roboto, Noto, sans-serif);
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
letter-spacing: -0.264px;
|
|
8
|
-
font-weight: 300;
|
|
9
|
-
font-size: 22px;
|
|
10
|
-
line-height: 28px;
|
|
11
|
-
text-wrap: balance;
|
|
12
|
-
|
|
13
|
-
margin: 0;
|
|
14
|
-
padding: 0;
|
|
15
|
-
}
|
|
2
|
+
export const h1 = css `
|
|
3
|
+
[heading1],
|
|
4
|
+
h1 {
|
|
5
|
+
font-family: var(--titanium-styles-h1-font-family, Metropolis, Roboto, Noto, sans-serif);
|
|
6
|
+
-webkit-font-smoothing: antialiased;
|
|
7
|
+
letter-spacing: -0.264px;
|
|
8
|
+
font-weight: 300;
|
|
9
|
+
font-size: 22px;
|
|
10
|
+
line-height: 28px;
|
|
11
|
+
text-wrap: balance;
|
|
12
|
+
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
16
|
`;
|
|
17
17
|
//# sourceMappingURL=h1.js.map
|