@leavittsoftware/web 1.0.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/HttpError.d.ts +10 -0
- package/leavitt/api-service/HttpError.js +2 -0
- package/leavitt/api-service/HttpError.js.map +1 -0
- package/leavitt/api-service/api-service.d.ts +27 -0
- package/leavitt/api-service/api-service.js +332 -0
- package/leavitt/api-service/api-service.js.map +1 -0
- package/leavitt/api-service/api2-service.d.ts +338 -0
- package/leavitt/api-service/api2-service.js +17 -0
- package/leavitt/api-service/api2-service.js.map +1 -0
- package/leavitt/api-service/authenticated-token-provider.d.ts +5 -0
- package/leavitt/api-service/authenticated-token-provider.js +7 -0
- package/leavitt/api-service/authenticated-token-provider.js.map +1 -0
- package/leavitt/api-service/bearer-token-provider.d.ts +4 -0
- package/leavitt/api-service/bearer-token-provider.js +2 -0
- package/leavitt/api-service/bearer-token-provider.js.map +1 -0
- package/leavitt/api-service/mapi-service.d.ts +338 -0
- package/leavitt/api-service/mapi-service.js +17 -0
- package/leavitt/api-service/mapi-service.js.map +1 -0
- package/leavitt/api-service/no-authentication-token-provider.d.ts +5 -0
- package/leavitt/api-service/no-authentication-token-provider.js +6 -0
- package/leavitt/api-service/no-authentication-token-provider.js.map +1 -0
- package/leavitt/api-service/odata-dto.d.ts +6 -0
- package/leavitt/api-service/odata-dto.js +7 -0
- package/leavitt/api-service/odata-dto.js.map +1 -0
- package/leavitt/api-service/odata-model-info.d.ts +5 -0
- package/leavitt/api-service/odata-model-info.js +7 -0
- package/leavitt/api-service/odata-model-info.js.map +1 -0
- package/leavitt/api-service/odata-response.d.ts +15 -0
- package/leavitt/api-service/odata-response.js +50 -0
- package/leavitt/api-service/odata-response.js.map +1 -0
- package/leavitt/api-service/status-codes.d.ts +2 -0
- package/leavitt/api-service/status-codes.js +44 -0
- package/leavitt/api-service/status-codes.js.map +1 -0
- package/leavitt/company-select/company-select.d.ts +50 -0
- package/leavitt/company-select/company-select.js +157 -0
- package/leavitt/company-select/company-select.js.map +1 -0
- package/leavitt/person-company-select/person-company-select.d.ts +41 -0
- package/leavitt/person-company-select/person-company-select.js +180 -0
- package/leavitt/person-company-select/person-company-select.js.map +1 -0
- package/leavitt/person-group-select/people-group-icons.d.ts +5 -0
- package/leavitt/person-group-select/people-group-icons.js +66 -0
- package/leavitt/person-group-select/people-group-icons.js.map +1 -0
- package/leavitt/person-group-select/person-group-select.d.ts +41 -0
- package/leavitt/person-group-select/person-group-select.js +186 -0
- package/leavitt/person-group-select/person-group-select.js.map +1 -0
- package/leavitt/person-select/person-select.d.ts +33 -0
- package/leavitt/person-select/person-select.js +128 -0
- package/leavitt/person-select/person-select.js.map +1 -0
- package/leavitt/profile-picture/profile-picture-menu.d.ts +44 -0
- package/leavitt/profile-picture/profile-picture-menu.js +197 -0
- package/leavitt/profile-picture/profile-picture-menu.js.map +1 -0
- package/leavitt/profile-picture/profile-picture.d.ts +39 -0
- package/leavitt/profile-picture/profile-picture.js +151 -0
- package/leavitt/profile-picture/profile-picture.js.map +1 -0
- package/leavitt/user-feedback/user-feedback.d.ts +357 -0
- package/leavitt/user-feedback/user-feedback.js +207 -0
- package/leavitt/user-feedback/user-feedback.js.map +1 -0
- package/leavitt/user-manager/LssJwtToken.d.ts +21 -0
- package/leavitt/user-manager/LssJwtToken.js +2 -0
- package/leavitt/user-manager/LssJwtToken.js.map +1 -0
- package/leavitt/user-manager/user-manager-events.d.ts +5 -0
- package/leavitt/user-manager/user-manager-events.js +7 -0
- package/leavitt/user-manager/user-manager-events.js.map +1 -0
- package/leavitt/user-manager/user-manager.d.ts +37 -0
- package/leavitt/user-manager/user-manager.js +364 -0
- package/leavitt/user-manager/user-manager.js.map +1 -0
- package/package.json +36 -0
- package/titanium/access-denied-page/access-denied-page.d.ts +16 -0
- package/titanium/access-denied-page/access-denied-page.js +360 -0
- package/titanium/access-denied-page/access-denied-page.js.map +1 -0
- package/titanium/address-input/Address.js.map +1 -0
- package/titanium/address-input/address-input.d.ts +29 -0
- package/titanium/address-input/address-input.js +77 -0
- package/titanium/address-input/address-input.js.map +1 -0
- package/titanium/address-input/google-address-input.d.ts +30 -0
- package/titanium/address-input/google-address-input.js +202 -0
- package/titanium/address-input/google-address-input.js.map +1 -0
- package/titanium/address-input/manual-address-dialog.d.ts +30 -0
- package/titanium/address-input/manual-address-dialog.js +250 -0
- package/titanium/address-input/manual-address-dialog.js.map +1 -0
- package/titanium/address-input/types/address-input-address.d.ts +17 -0
- package/titanium/address-input/types/address-input-address.js +2 -0
- package/titanium/address-input/types/address-input-address.js.map +1 -0
- package/titanium/address-input/types/address.js.map +1 -0
- package/titanium/address-input/types/autocomplete-prediction-suggestion.js.map +1 -0
- package/titanium/address-input/utils/address-to-string.d.ts +3 -0
- package/titanium/address-input/utils/address-to-string.js +13 -0
- package/titanium/address-input/utils/address-to-string.js.map +1 -0
- package/titanium/address-input/utils/place-result-to-address.d.ts +4 -0
- package/titanium/address-input/utils/place-result-to-address.js +33 -0
- package/titanium/address-input/utils/place-result-to-address.js.map +1 -0
- package/titanium/address-input/utils/validate-street.d.ts +2 -0
- package/titanium/address-input/utils/validate-street.js +8 -0
- package/titanium/address-input/utils/validate-street.js.map +1 -0
- package/titanium/card/card.d.ts +23 -0
- package/titanium/card/card.js +160 -0
- package/titanium/card/card.js.map +1 -0
- package/titanium/chip-multi-select/chip-multi-select.d.ts +55 -0
- package/titanium/chip-multi-select/chip-multi-select.js +119 -0
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -0
- package/titanium/data-table/data-table-header.d.ts +67 -0
- package/titanium/data-table/data-table-header.js +207 -0
- package/titanium/data-table/data-table-header.js.map +1 -0
- package/titanium/data-table/data-table-item.d.ts +100 -0
- package/titanium/data-table/data-table-item.js +511 -0
- package/titanium/data-table/data-table-item.js.map +1 -0
- package/titanium/data-table/data-table.d.ts +146 -0
- package/titanium/data-table/data-table.js +605 -0
- package/titanium/data-table/data-table.js.map +1 -0
- package/titanium/data-table/filter-controller.d.ts +23 -0
- package/titanium/data-table/filter-controller.js +119 -0
- package/titanium/data-table/filter-controller.js.map +1 -0
- package/titanium/data-table/filter.d.ts +8 -0
- package/titanium/data-table/filter.js +11 -0
- package/titanium/data-table/filter.js.map +1 -0
- package/titanium/data-table/page-control.d.ts +54 -0
- package/titanium/data-table/page-control.js +196 -0
- package/titanium/data-table/page-control.js.map +1 -0
- package/titanium/date-range-selector/date-range-change-event.d.ts +8 -0
- package/titanium/date-range-selector/date-range-change-event.js +10 -0
- package/titanium/date-range-selector/date-range-change-event.js.map +1 -0
- package/titanium/date-range-selector/date-range-selector.d.ts +65 -0
- package/titanium/date-range-selector/date-range-selector.js +423 -0
- package/titanium/date-range-selector/date-range-selector.js.map +1 -0
- package/titanium/date-range-selector/range-label.d.ts +4 -0
- package/titanium/date-range-selector/range-label.js +25 -0
- package/titanium/date-range-selector/range-label.js.map +1 -0
- package/titanium/drawer/drawer.d.ts +39 -0
- package/titanium/drawer/drawer.js +233 -0
- package/titanium/drawer/drawer.js.map +1 -0
- package/titanium/duration-input/duration-input.d.ts +26 -0
- package/titanium/duration-input/duration-input.js +86 -0
- package/titanium/duration-input/duration-input.js.map +1 -0
- package/titanium/duration-input/human-interval.d.ts +19 -0
- package/titanium/duration-input/human-interval.js +74 -0
- package/titanium/duration-input/human-interval.js.map +1 -0
- package/titanium/error-page/error-page.d.ts +16 -0
- package/titanium/error-page/error-page.js +96 -0
- package/titanium/error-page/error-page.js.map +1 -0
- package/titanium/event-bus/event-bus.d.ts +10 -0
- package/titanium/event-bus/event-bus.js +52 -0
- package/titanium/event-bus/event-bus.js.map +1 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +160 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +295 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +1 -0
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.d.ts +45 -0
- package/titanium/extendable-outlined-text-field/extensible-outlined-text-field.js.map +1 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +19 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +170 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +1 -0
- package/titanium/hacks/dialog-overflow-hacks.d.ts +4 -0
- package/titanium/hacks/dialog-overflow-hacks.js +21 -0
- package/titanium/hacks/dialog-overflow-hacks.js.map +1 -0
- package/titanium/header/header.d.ts +39 -0
- package/titanium/header/header.js +148 -0
- package/titanium/header/header.js.map +1 -0
- package/titanium/helpers/csv-download.d.ts +3 -0
- package/titanium/helpers/csv-download.js +78 -0
- package/titanium/helpers/csv-download.js.map +1 -0
- package/titanium/helpers/debouncer.d.ts +13 -0
- package/titanium/helpers/debouncer.js +33 -0
- package/titanium/helpers/debouncer.js.map +1 -0
- package/titanium/helpers/delay.d.ts +2 -0
- package/titanium/helpers/delay.js +6 -0
- package/titanium/helpers/delay.js.map +1 -0
- package/titanium/helpers/dev-detection.d.ts +3 -0
- package/titanium/helpers/dev-detection.js +12 -0
- package/titanium/helpers/dev-detection.js.map +1 -0
- package/titanium/helpers/helpers.d.ts +14 -0
- package/titanium/helpers/helpers.js +14 -0
- package/titanium/helpers/helpers.js.map +1 -0
- package/titanium/helpers/join.d.ts +2 -0
- package/titanium/helpers/join.js +5 -0
- package/titanium/helpers/join.js.map +1 -0
- package/titanium/helpers/leavitt-cdn.d.ts +5 -0
- package/titanium/helpers/leavitt-cdn.js +38 -0
- package/titanium/helpers/leavitt-cdn.js.map +1 -0
- package/titanium/helpers/load-while.d.ts +343 -0
- package/titanium/helpers/load-while.js +27 -0
- package/titanium/helpers/load-while.js.map +1 -0
- package/titanium/helpers/media-query.d.ts +2 -0
- package/titanium/helpers/media-query.js +6 -0
- package/titanium/helpers/media-query.js.map +1 -0
- package/titanium/helpers/middle-ellipsis.d.ts +2 -0
- package/titanium/helpers/middle-ellipsis.js +7 -0
- package/titanium/helpers/middle-ellipsis.js.map +1 -0
- package/titanium/helpers/not-null-or-undefined.d.ts +2 -0
- package/titanium/helpers/not-null-or-undefined.js +4 -0
- package/titanium/helpers/not-null-or-undefined.js.map +1 -0
- package/titanium/helpers/not-null.d.ts +2 -0
- package/titanium/helpers/not-null.js +4 -0
- package/titanium/helpers/not-null.js.map +1 -0
- package/titanium/helpers/not-undefined.d.ts +2 -0
- package/titanium/helpers/not-undefined.js +4 -0
- package/titanium/helpers/not-undefined.js.map +1 -0
- package/titanium/helpers/odata-helpers.d.ts +2 -0
- package/titanium/helpers/odata-helpers.js +2 -0
- package/titanium/helpers/odata-helpers.js.map +1 -0
- package/titanium/helpers/search-token.d.ts +2 -0
- package/titanium/helpers/search-token.js +17 -0
- package/titanium/helpers/search-token.js.map +1 -0
- package/titanium/icon-picker/icon-picker.d.ts +23 -0
- package/titanium/icon-picker/icon-picker.js +75 -0
- package/titanium/icon-picker/icon-picker.js.map +1 -0
- package/titanium/icon-picker/material-symbols.d.ts +3 -0
- package/titanium/icon-picker/material-symbols.js +3297 -0
- package/titanium/icon-picker/material-symbols.js.map +1 -0
- package/titanium/input-validator/input-validator.d.ts +20 -0
- package/titanium/input-validator/input-validator.js +45 -0
- package/titanium/input-validator/input-validator.js.map +1 -0
- package/titanium/search-input/search-input.d.ts +47 -0
- package/titanium/search-input/search-input.js +237 -0
- package/titanium/search-input/search-input.js.map +1 -0
- package/titanium/service-worker-notifier/service-worker-notifier.d.ts +9 -0
- package/titanium/service-worker-notifier/service-worker-notifier.js +57 -0
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +1 -0
- package/titanium/show-hide/show-hide.d.ts +36 -0
- package/titanium/show-hide/show-hide.js +144 -0
- package/titanium/show-hide/show-hide.js.map +1 -0
- package/titanium/single-select-base/single-select-base.d.ts +449 -0
- package/titanium/single-select-base/single-select-base.js +411 -0
- package/titanium/single-select-base/single-select-base.js.map +1 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +370 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +270 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -0
- package/titanium/smart-attachment-input/cropper-styles.d.ts +3 -0
- package/titanium/smart-attachment-input/cropper-styles.js +311 -0
- package/titanium/smart-attachment-input/cropper-styles.js.map +1 -0
- package/titanium/smart-attachment-input/image-formats.d.ts +5 -0
- package/titanium/smart-attachment-input/image-formats.js +37 -0
- package/titanium/smart-attachment-input/image-formats.js.map +1 -0
- package/titanium/smart-attachment-input/image-preview-dialog.d.ts +21 -0
- package/titanium/smart-attachment-input/image-preview-dialog.js +83 -0
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -0
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +126 -0
- package/titanium/smart-attachment-input/smart-attachment-input.js +422 -0
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -0
- package/titanium/smart-attachment-input/type/smart-attachment.d.ts +7 -0
- package/titanium/smart-attachment-input/type/smart-attachment.js +2 -0
- package/titanium/smart-attachment-input/type/smart-attachment.js.map +1 -0
- package/titanium/snackbar/snackbar.d.ts +79 -0
- package/titanium/snackbar/snackbar.js +302 -0
- package/titanium/snackbar/snackbar.js.map +1 -0
- package/titanium/styles/a.d.ts +2 -0
- package/titanium/styles/a.js +18 -0
- package/titanium/styles/a.js.map +1 -0
- package/titanium/styles/data-row.d.ts +2 -0
- package/titanium/styles/data-row.js +52 -0
- package/titanium/styles/data-row.js.map +1 -0
- package/titanium/styles/ellipsis.d.ts +2 -0
- package/titanium/styles/ellipsis.js +9 -0
- package/titanium/styles/ellipsis.js.map +1 -0
- package/titanium/styles/h1.d.ts +2 -0
- package/titanium/styles/h1.js +17 -0
- package/titanium/styles/h1.js.map +1 -0
- package/titanium/styles/h2.d.ts +2 -0
- package/titanium/styles/h2.js +17 -0
- package/titanium/styles/h2.js.map +1 -0
- package/titanium/styles/h3.d.ts +2 -0
- package/titanium/styles/h3.js +17 -0
- package/titanium/styles/h3.js.map +1 -0
- package/titanium/styles/h4.d.ts +2 -0
- package/titanium/styles/h4.js +17 -0
- package/titanium/styles/h4.js.map +1 -0
- package/titanium/styles/h5.d.ts +2 -0
- package/titanium/styles/h5.js +19 -0
- package/titanium/styles/h5.js.map +1 -0
- package/titanium/styles/p.d.ts +2 -0
- package/titanium/styles/p.js +17 -0
- package/titanium/styles/p.js.map +1 -0
- package/titanium/styles/styles.d.ts +17 -0
- package/titanium/styles/styles.js +17 -0
- package/titanium/styles/styles.js.map +1 -0
- package/titanium/toolbar/toolbar.d.ts +34 -0
- package/titanium/toolbar/toolbar.js +104 -0
- package/titanium/toolbar/toolbar.js.map +1 -0
- package/titanium/types/any-function.d.ts +5 -0
- package/titanium/types/any-function.js +2 -0
- package/titanium/types/any-function.js.map +1 -0
- package/titanium/types/dom-event.d.ts +4 -0
- package/titanium/types/dom-event.js +2 -0
- package/titanium/types/dom-event.js.map +1 -0
- package/titanium/types/identifier-interface.d.ts +4 -0
- package/titanium/types/identifier-interface.js +2 -0
- package/titanium/types/identifier-interface.js.map +1 -0
- package/titanium/types/pending-state-event.d.ts +7 -0
- package/titanium/types/pending-state-event.js +7 -0
- package/titanium/types/pending-state-event.js.map +1 -0
- package/titanium/types/string-map.d.ts +7 -0
- package/titanium/types/string-map.js +5 -0
- package/titanium/types/string-map.js.map +1 -0
- package/titanium/youtube-input/youtube-input.d.ts +17 -0
- package/titanium/youtube-input/youtube-input.js +52 -0
- package/titanium/youtube-input/youtube-input.js.map +1 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
3
|
+
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import '@material/web/button/text-button';
|
|
5
|
+
export class BasicSnackBar {
|
|
6
|
+
constructor() {
|
|
7
|
+
this._isComponent = false;
|
|
8
|
+
}
|
|
9
|
+
open(message, options) {
|
|
10
|
+
const msg = typeof message === 'string' ? message : message.values;
|
|
11
|
+
alert(msg);
|
|
12
|
+
console.warn('Titanium Snackbar.open called before an instance was created. Did you forget to add the Titanium Snackbar element to your project?', options);
|
|
13
|
+
}
|
|
14
|
+
close() {
|
|
15
|
+
console.warn('Titanium Snackbar.close called before an instance was created. Did you forget to add the TitaniumSnackbar element to your project?');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export let TitaniumSnackbarSingleton = new BasicSnackBar();
|
|
19
|
+
/**
|
|
20
|
+
* Material design snackbar.
|
|
21
|
+
*
|
|
22
|
+
* @element titanium-snackbar
|
|
23
|
+
*
|
|
24
|
+
* Only one snackbar is intended to be used per site.
|
|
25
|
+
* Use TitaniumSnackbarSingleton export to fetch the instance of the snackbar when you need to use it.
|
|
26
|
+
* ex.
|
|
27
|
+
* import { TitaniumSnackbarSingleton } from '@leavittsoftware/web/snackbar/snackbar';
|
|
28
|
+
* TitaniumSnackbarSingleton.open('Hello world');
|
|
29
|
+
*
|
|
30
|
+
* @cssprop {Color} [--titanium-snackbar-background-color=#323232] - Snackbar background color
|
|
31
|
+
* @cssprop {Color} [--titanium-snackbar-text-color=#f1f1f1] - Color of the text in the snackbar
|
|
32
|
+
* @cssprop {Color} [--app-light-text-color=#707175] - Color used on http error and status
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
let TitaniumSnackbar = class TitaniumSnackbar extends LitElement {
|
|
36
|
+
#animationTimer;
|
|
37
|
+
#animationFrame;
|
|
38
|
+
#resolve;
|
|
39
|
+
#closeTimeoutHandle;
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
this._isComponent = true;
|
|
46
|
+
if (!TitaniumSnackbarSingleton || !TitaniumSnackbarSingleton._isComponent) {
|
|
47
|
+
/* eslint-disable @typescript-eslint/no-this-alias */
|
|
48
|
+
TitaniumSnackbarSingleton = this;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
console.warn('More than one <titanium-snackbar> element has been used in this web application, consider removing one.');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Opens the snackbar with the supplied message.
|
|
56
|
+
*
|
|
57
|
+
* optional options object:
|
|
58
|
+
* actionText?: string | null;
|
|
59
|
+
* autoHide?: boolean;
|
|
60
|
+
* noAction?: boolean;
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
open(message, options) {
|
|
64
|
+
return new Promise((resolve) => {
|
|
65
|
+
//reset
|
|
66
|
+
clearTimeout(this.#closeTimeoutHandle);
|
|
67
|
+
this.noaction = false;
|
|
68
|
+
this.actionText = 'DISMISS';
|
|
69
|
+
if (typeof message !== 'string' && message?.type === 'HttpError') {
|
|
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}
|
|
76
|
+
</http-error>`;
|
|
77
|
+
}
|
|
78
|
+
else if (message) {
|
|
79
|
+
this.message = message;
|
|
80
|
+
}
|
|
81
|
+
if (options) {
|
|
82
|
+
if (options.actionText) {
|
|
83
|
+
this.actionText = options.actionText;
|
|
84
|
+
}
|
|
85
|
+
if (options.noAction) {
|
|
86
|
+
this.noaction = true;
|
|
87
|
+
}
|
|
88
|
+
if (options.autoHide) {
|
|
89
|
+
this.#closeTimeoutHandle = window.setTimeout(() => {
|
|
90
|
+
this.close();
|
|
91
|
+
}, 5000);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
this.#resolve = resolve;
|
|
95
|
+
this.closing = false;
|
|
96
|
+
this.opened = false;
|
|
97
|
+
this.opening = true;
|
|
98
|
+
this.#runNextAnimationFrame_(() => {
|
|
99
|
+
this.opened = true;
|
|
100
|
+
this.#animationTimer = window.setTimeout(() => {
|
|
101
|
+
this.#handleAnimationTimerEnd_();
|
|
102
|
+
}, 150);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Closes the snackbar
|
|
108
|
+
*/
|
|
109
|
+
close() {
|
|
110
|
+
if (!this.opened) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
cancelAnimationFrame(this.#animationFrame);
|
|
114
|
+
this.#animationFrame = 0;
|
|
115
|
+
this.closing = true;
|
|
116
|
+
this.opened = false;
|
|
117
|
+
this.opening = false;
|
|
118
|
+
clearTimeout(this.#animationTimer);
|
|
119
|
+
this.#animationTimer = window.setTimeout(() => {
|
|
120
|
+
this.#handleAnimationTimerEnd_();
|
|
121
|
+
}, 75);
|
|
122
|
+
this.#resolve();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Runs the given logic on the next animation frame, using setTimeout to factor in Firefox reflow behavior.
|
|
126
|
+
*/
|
|
127
|
+
#runNextAnimationFrame_(callback) {
|
|
128
|
+
cancelAnimationFrame(this.#animationFrame);
|
|
129
|
+
this.#animationFrame = requestAnimationFrame(() => {
|
|
130
|
+
this.#animationFrame = 0;
|
|
131
|
+
clearTimeout(this.#animationFrame);
|
|
132
|
+
this.#animationFrame = window.setTimeout(callback, 0);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
#handleAnimationTimerEnd_() {
|
|
136
|
+
this.opening = false;
|
|
137
|
+
this.closing = false;
|
|
138
|
+
}
|
|
139
|
+
#addNewLineBreaks(text) {
|
|
140
|
+
const lines = text.split('\n');
|
|
141
|
+
const l = lines.length;
|
|
142
|
+
return lines.map((line, i) => (i === l - 1 ? line : html `${line}<br />`));
|
|
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
|
+
}
|
|
265
|
+
`; }
|
|
266
|
+
render() {
|
|
267
|
+
return html `
|
|
268
|
+
<span main>${this.message}</span>
|
|
269
|
+
<md-text-button
|
|
270
|
+
?hidden=${this.noaction}
|
|
271
|
+
@click=${() => {
|
|
272
|
+
clearTimeout(this.#closeTimeoutHandle);
|
|
273
|
+
this.close();
|
|
274
|
+
}}
|
|
275
|
+
>${this.actionText}
|
|
276
|
+
</md-text-button>
|
|
277
|
+
`;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: Boolean, reflect: true })
|
|
282
|
+
], TitaniumSnackbar.prototype, "opened", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property({ type: Boolean, reflect: true })
|
|
285
|
+
], TitaniumSnackbar.prototype, "closing", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
property({ type: Boolean, reflect: true })
|
|
288
|
+
], TitaniumSnackbar.prototype, "opening", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property({ type: Boolean, reflect: true })
|
|
291
|
+
], TitaniumSnackbar.prototype, "noaction", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
property({ type: String })
|
|
294
|
+
], TitaniumSnackbar.prototype, "actionText", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
property({ type: String })
|
|
297
|
+
], TitaniumSnackbar.prototype, "message", void 0);
|
|
298
|
+
TitaniumSnackbar = __decorate([
|
|
299
|
+
customElement('titanium-snackbar')
|
|
300
|
+
], TitaniumSnackbar);
|
|
301
|
+
export {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E,OAAO,EAAE,IAAI,EAAE,CAAC;iDAA4B;AAIjB;IAArD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAA6B;AAKlC;IAArC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDAA8B;AAInB;IAArC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAA4C;AAzB5D,gBAAgB;IAD5B,aAAa,CAAC,mBAAmB,CAAC;GACtB,gBAAgB,CA+R5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
//# sourceMappingURL=a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a.js","sourceRoot":"","sources":["a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;CAenB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { h5 } from './h5';
|
|
3
|
+
import { p } from './p';
|
|
4
|
+
export const dataRow = [
|
|
5
|
+
h5,
|
|
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
|
+
}
|
|
50
|
+
`,
|
|
51
|
+
];
|
|
52
|
+
//# sourceMappingURL=data-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-row.js","sourceRoot":"","sources":["data-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,EAAE;IACF,CAAC;IACD,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipsis.js","sourceRoot":"","sources":["ellipsis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAA;;;;;;CAM1B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=h1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h1.js","sourceRoot":"","sources":["h1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcpB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const h2 = css `
|
|
3
|
+
[heading2],
|
|
4
|
+
h2 {
|
|
5
|
+
font-family: var(--titanium-styles-h2-font-family, Roboto, Noto, sans-serif);
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
letter-spacing: -0.264px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
line-height: 24px;
|
|
12
|
+
text-wrap: balance;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=h2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h2.js","sourceRoot":"","sources":["h2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcpB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const h3 = css `
|
|
3
|
+
[heading3],
|
|
4
|
+
h3 {
|
|
5
|
+
font-family: var(--titanium-styles-h3-font-family, Roboto, Noto, sans-serif);
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
letter-spacing: -0.264px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
text-wrap: balance;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=h3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h3.js","sourceRoot":"","sources":["h3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcpB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const h4 = css `
|
|
3
|
+
[heading4],
|
|
4
|
+
h4 {
|
|
5
|
+
font-family: var(--titanium-styles-h4-font-family, Roboto, Noto, sans-serif);
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
letter-spacing: -0.264px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
text-wrap: balance;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 18px;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=h4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h4.js","sourceRoot":"","sources":["h4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcpB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const h5 = css `
|
|
3
|
+
[heading5],
|
|
4
|
+
h5 {
|
|
5
|
+
letter-spacing: 0.07272727em;
|
|
6
|
+
font-family: var(--titanium-styles-h5-font-family, Metropolis, Roboto, Noto, sans-serif);
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
line-height: 16px;
|
|
10
|
+
letter-spacing: 0.1px;
|
|
11
|
+
hyphens: auto;
|
|
12
|
+
word-break: break-word;
|
|
13
|
+
word-wrap: break-word;
|
|
14
|
+
text-wrap: balance;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
//# sourceMappingURL=h5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h5.js","sourceRoot":"","sources":["h5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;CAgBpB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const p = css `
|
|
3
|
+
[paragraph],
|
|
4
|
+
p {
|
|
5
|
+
font-family: var(--titanium-styles-p-font-family, Roboto, Noto, sans-serif);
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
letter-spacing: 0.2px;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=p.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p.js","sourceRoot":"","sources":["p.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAcnB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { h1 } from './h1';
|
|
2
|
+
export { h1 as heading1 } from './h1';
|
|
3
|
+
export { h2 } from './h2';
|
|
4
|
+
export { h2 as heading2 } from './h2';
|
|
5
|
+
export { h3 } from './h3';
|
|
6
|
+
export { h3 as heading3 } from './h3';
|
|
7
|
+
export { h4 } from './h4';
|
|
8
|
+
export { h4 as heading4 } from './h4';
|
|
9
|
+
export { h5 } from './h5';
|
|
10
|
+
export { h5 as heading5 } from './h5';
|
|
11
|
+
export { p } from './p';
|
|
12
|
+
export { p as paragraph } from './p';
|
|
13
|
+
export { a } from './a';
|
|
14
|
+
export { a as link } from './a';
|
|
15
|
+
export { dataRow } from './data-row';
|
|
16
|
+
export { ellipsis } from './ellipsis';
|
|
17
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { h1 } from './h1';
|
|
2
|
+
export { h1 as heading1 } from './h1';
|
|
3
|
+
export { h2 } from './h2';
|
|
4
|
+
export { h2 as heading2 } from './h2';
|
|
5
|
+
export { h3 } from './h3';
|
|
6
|
+
export { h3 as heading3 } from './h3';
|
|
7
|
+
export { h4 } from './h4';
|
|
8
|
+
export { h4 as heading4 } from './h4';
|
|
9
|
+
export { h5 } from './h5';
|
|
10
|
+
export { h5 as heading5 } from './h5';
|
|
11
|
+
export { p } from './p';
|
|
12
|
+
export { p as paragraph } from './p';
|
|
13
|
+
export { a } from './a';
|
|
14
|
+
export { a as link } from './a';
|
|
15
|
+
export { dataRow } from './data-row';
|
|
16
|
+
export { ellipsis } from './ellipsis';
|
|
17
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,IAAI,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,IAAI,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A material design inspired site toolbar
|
|
4
|
+
*
|
|
5
|
+
* @element titanium-toolbar
|
|
6
|
+
*
|
|
7
|
+
* @slot default - toolbar content (use main-title attribute on slotted title item)
|
|
8
|
+
*
|
|
9
|
+
* @cssprop {Color} [--md-sys-color-background] - Color of the toolbar background
|
|
10
|
+
* @cssprop {Color} [--md-sys-color-on-background] - Color of the toolbar text
|
|
11
|
+
*/
|
|
12
|
+
export declare class TitaniumToolbar extends LitElement {
|
|
13
|
+
/**
|
|
14
|
+
* Adds a box shadow around the toolbar
|
|
15
|
+
*/
|
|
16
|
+
protected shadow: boolean;
|
|
17
|
+
static styles: import("lit").CSSResult;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
onScroll(): void;
|
|
24
|
+
/**
|
|
25
|
+
* @ignore
|
|
26
|
+
*/
|
|
27
|
+
amountScrolled(): void;
|
|
28
|
+
/**
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
getDocHeight(): number;
|
|
32
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=toolbar.d.ts.map
|