@leavittsoftware/web 9.9.0 → 10.0.1
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/.ncurc.js +1 -1
- package/CLAUDE.md +1320 -0
- package/LICENSE.md +1 -1
- package/leavitt/api-service/api-service.js +3 -2
- package/leavitt/api-service/api-service.js.map +1 -1
- package/leavitt/api-service/blob-response.js +1 -0
- package/leavitt/api-service/blob-response.js.map +1 -1
- package/leavitt/app/app-logo.js +1 -1
- package/leavitt/app/app-logo.js.map +1 -1
- package/leavitt/app/app-main-content-container.js +5 -0
- package/leavitt/app/app-main-content-container.js.map +1 -1
- package/leavitt/app/app-navigation-header.js +10 -10
- package/leavitt/app/app-navigation-header.js.map +1 -1
- package/leavitt/company-select/company-select.js +2 -2
- package/leavitt/company-select/company-select.js.map +1 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +15 -9
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +1 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +3 -374
- package/leavitt/email-history-viewer/email-history-viewer-filled.js +15 -33
- package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +1 -1
- package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js +12 -5
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +1 -1
- package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/view-sent-email-dialog.js +13 -6
- package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +1 -1
- package/leavitt/error-page/error-page.d.ts +5 -2
- package/leavitt/error-page/error-page.js +136 -37
- package/leavitt/error-page/error-page.js.map +1 -1
- package/leavitt/file-explorer/add-folder-modal.d.ts +3 -369
- package/leavitt/file-explorer/add-folder-modal.js +13 -6
- package/leavitt/file-explorer/add-folder-modal.js.map +1 -1
- package/leavitt/file-explorer/file-explorer-image.js.map +1 -1
- package/leavitt/file-explorer/file-explorer.d.ts +5 -371
- package/leavitt/file-explorer/file-explorer.js +35 -30
- package/leavitt/file-explorer/file-explorer.js.map +1 -1
- package/leavitt/file-explorer/file-list-item.js.map +1 -1
- package/leavitt/file-explorer/file-modal.d.ts +3 -369
- package/leavitt/file-explorer/file-modal.js +12 -5
- package/leavitt/file-explorer/file-modal.js.map +1 -1
- package/leavitt/file-explorer/folder-list-item.js.map +1 -1
- package/leavitt/file-explorer/folder-modal.d.ts +3 -369
- package/leavitt/file-explorer/folder-modal.js +12 -5
- package/leavitt/file-explorer/folder-modal.js.map +1 -1
- package/leavitt/person-company-select/person-company-select.js +5 -3
- package/leavitt/person-company-select/person-company-select.js.map +1 -1
- package/leavitt/person-group-select/person-group-select.js +5 -3
- package/leavitt/person-group-select/person-group-select.js.map +1 -1
- package/leavitt/person-select/person-select.js +3 -2
- package/leavitt/person-select/person-select.js.map +1 -1
- package/leavitt/profile-picture/profile-picture-menu.js +2 -0
- package/leavitt/profile-picture/profile-picture-menu.js.map +1 -1
- package/leavitt/profile-picture/profile-picture.js +4 -4
- package/leavitt/profile-picture/profile-picture.js.map +1 -1
- package/leavitt/service-worker-notifier/service-worker-notifier.js.map +1 -1
- package/leavitt/theme/theme-preference.js +4 -0
- package/leavitt/theme/theme-preference.js.map +1 -1
- package/leavitt/user-feedback/provide-feedback-dialog.d.ts +3 -369
- package/leavitt/user-feedback/provide-feedback-dialog.js +11 -4
- package/leavitt/user-feedback/provide-feedback-dialog.js.map +1 -1
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +3 -369
- package/leavitt/user-feedback/report-a-problem-dialog.js +11 -4
- package/leavitt/user-feedback/report-a-problem-dialog.js.map +1 -1
- package/leavitt/user-manager/auth-zero-lg-user-manager.js +5 -5
- package/leavitt/user-manager/auth-zero-lg-user-manager.js.map +1 -1
- package/package.json +8 -10
- package/titanium/address-input/address-input.js +0 -2
- package/titanium/address-input/address-input.js.map +1 -1
- package/titanium/address-input/google-address-input.d.ts +1 -0
- package/titanium/address-input/google-address-input.js +62 -45
- package/titanium/address-input/google-address-input.js.map +1 -1
- package/titanium/address-input/google-maps-process-shim.d.ts +2 -0
- package/titanium/address-input/google-maps-process-shim.js +12 -0
- package/titanium/address-input/google-maps-process-shim.js.map +1 -0
- package/titanium/address-input/manual-address-dialog.d.ts +2 -7
- package/titanium/address-input/manual-address-dialog.js +21 -34
- package/titanium/address-input/manual-address-dialog.js.map +1 -1
- package/titanium/address-input/utils/place-result-to-address.d.ts +1 -1
- package/titanium/address-input/utils/place-result-to-address.js +31 -30
- package/titanium/address-input/utils/place-result-to-address.js.map +1 -1
- package/titanium/chip/chip.d.ts +0 -1
- package/titanium/chip/chip.js +7 -17
- package/titanium/chip/chip.js.map +1 -1
- package/titanium/chip-multi-select/chip-multi-select.d.ts +3 -8
- package/titanium/chip-multi-select/chip-multi-select.js +41 -62
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -1
- package/titanium/circle-loading-indicator/circle-loading-indicator.js +5 -5
- package/titanium/circle-loading-indicator/circle-loading-indicator.js.map +1 -1
- package/titanium/confirmation-dialog/confirmation-dialog.js +2 -0
- package/titanium/confirmation-dialog/confirmation-dialog.js.map +1 -1
- package/titanium/data-table/data-table-action-bar.js +1 -5
- package/titanium/data-table/data-table-action-bar.js.map +1 -1
- package/titanium/data-table/data-table-core-reorder-dialog.d.ts +3 -369
- package/titanium/data-table/data-table-core-reorder-dialog.js +10 -3
- package/titanium/data-table/data-table-core-reorder-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-reorder-item.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js +3 -3
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-sort-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-sort-item.js +3 -3
- package/titanium/data-table/data-table-core-settings-sort-item.js.map +1 -1
- package/titanium/data-table/data-table-core.d.ts +5 -369
- package/titanium/data-table/data-table-core.js +13 -2
- package/titanium/data-table/data-table-core.js.map +1 -1
- package/titanium/data-table/draggable-item-base.js +6 -0
- package/titanium/data-table/draggable-item-base.js.map +1 -1
- package/titanium/data-table/filter-controller.js.map +1 -1
- package/titanium/data-table/page-control.d.ts +3 -8
- package/titanium/data-table/page-control.js +13 -33
- package/titanium/data-table/page-control.js.map +1 -1
- package/titanium/date-input/date-input.d.ts +1 -6
- package/titanium/date-input/date-input.js +8 -44
- package/titanium/date-input/date-input.js.map +1 -1
- package/titanium/date-range-selector/date-range-selector.d.ts +1 -6
- package/titanium/date-range-selector/date-range-selector.js +15 -35
- package/titanium/date-range-selector/date-range-selector.js.map +1 -1
- package/titanium/drawer/drawer.d.ts +1 -6
- package/titanium/drawer/drawer.js +4 -23
- package/titanium/drawer/drawer.js.map +1 -1
- package/titanium/event-bus/event-bus.js.map +1 -1
- package/titanium/helpers/debouncer.js.map +1 -1
- package/titanium/helpers/helpers.d.ts +0 -1
- package/titanium/helpers/helpers.js +0 -1
- package/titanium/helpers/helpers.js.map +1 -1
- package/titanium/helpers/pending-state-catcher.d.ts +7 -406
- package/titanium/helpers/pending-state-catcher.js +85 -82
- package/titanium/helpers/pending-state-catcher.js.map +1 -1
- package/titanium/input-validator/filled-input-validator.js.map +1 -1
- package/titanium/profile-picture-stack/profile-picture-stack.js +2 -2
- package/titanium/profile-picture-stack/profile-picture-stack.js.map +1 -1
- package/titanium/search-input/filled-search-input.js.map +1 -1
- package/titanium/show-hide/show-hide.d.ts +1 -6
- package/titanium/show-hide/show-hide.js +2 -18
- package/titanium/show-hide/show-hide.js.map +1 -1
- package/titanium/single-select-base/single-select-base.d.ts +11 -381
- package/titanium/single-select-base/single-select-base.js +43 -50
- package/titanium/single-select-base/single-select-base.js.map +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +3 -369
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +21 -16
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -1
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -1
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +1 -6
- package/titanium/smart-attachment-input/smart-attachment-input.js +5 -18
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -1
- package/titanium/snackbar/snackbar-stack.js +2 -2
- package/titanium/snackbar/snackbar-stack.js.map +1 -1
- package/titanium/snackbar/snackbars/http-error-snackbar.js +1 -1
- package/titanium/snackbar/snackbars/http-error-snackbar.js.map +1 -1
- package/titanium/snackbar/snackbars/simple-snackbar.js +3 -3
- package/titanium/snackbar/snackbars/simple-snackbar.js.map +1 -1
- package/titanium/toolbar/toolbar.js +1 -1
- package/titanium/toolbar/toolbar.js.map +1 -1
- package/leavitt/api-service/object-to-form-data.test.d.ts +0 -2
- package/leavitt/api-service/object-to-form-data.test.js +0 -229
- package/leavitt/api-service/object-to-form-data.test.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.d.ts +0 -394
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js +0 -233
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-viewer.d.ts +0 -413
- package/leavitt/email-history-viewer/email-history-viewer.js +0 -403
- package/leavitt/email-history-viewer/email-history-viewer.js.map +0 -1
- package/leavitt/user-feedback/user-feedback.d.ts +0 -390
- package/leavitt/user-feedback/user-feedback.js +0 -221
- package/leavitt/user-feedback/user-feedback.js.map +0 -1
- package/titanium/access-denied-page/access-denied-page.d.ts +0 -16
- package/titanium/access-denied-page/access-denied-page.js +0 -359
- package/titanium/access-denied-page/access-denied-page.js.map +0 -1
- package/titanium/card/card.d.ts +0 -24
- package/titanium/card/card.js +0 -188
- package/titanium/card/card.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog-open-event.d.ts +0 -10
- package/titanium/confirm-dialog/confirm-dialog-open-event.js +0 -12
- package/titanium/confirm-dialog/confirm-dialog-open-event.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog.d.ts +0 -25
- package/titanium/confirm-dialog/confirm-dialog.js +0 -104
- package/titanium/confirm-dialog/confirm-dialog.js.map +0 -1
- package/titanium/data-table/data-table-header.d.ts +0 -68
- package/titanium/data-table/data-table-header.js +0 -295
- package/titanium/data-table/data-table-header.js.map +0 -1
- package/titanium/data-table/data-table-item.d.ts +0 -99
- package/titanium/data-table/data-table-item.js +0 -561
- package/titanium/data-table/data-table-item.js.map +0 -1
- package/titanium/data-table/data-table.d.ts +0 -127
- package/titanium/data-table/data-table.js +0 -688
- package/titanium/data-table/data-table.js.map +0 -1
- package/titanium/duration-input/duration-input.d.ts +0 -31
- package/titanium/duration-input/duration-input.js +0 -126
- package/titanium/duration-input/duration-input.js.map +0 -1
- package/titanium/duration-input/outlined-duration-input.d.ts +0 -30
- package/titanium/duration-input/outlined-duration-input.js +0 -109
- package/titanium/duration-input/outlined-duration-input.js.map +0 -1
- package/titanium/error-page/error-page.d.ts +0 -16
- package/titanium/error-page/error-page.js +0 -95
- package/titanium/error-page/error-page.js.map +0 -1
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +0 -168
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +0 -373
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +0 -1
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +0 -17
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +0 -121
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +0 -1
- package/titanium/header/header.d.ts +0 -39
- package/titanium/header/header.js +0 -167
- package/titanium/header/header.js.map +0 -1
- package/titanium/helpers/load-while.d.ts +0 -374
- package/titanium/helpers/load-while.js +0 -28
- package/titanium/helpers/load-while.js.map +0 -1
- package/titanium/input-validator/input-validator.d.ts +0 -20
- package/titanium/input-validator/input-validator.js +0 -48
- package/titanium/input-validator/input-validator.js.map +0 -1
- package/titanium/input-validator/outlined-input-validator.d.ts +0 -20
- package/titanium/input-validator/outlined-input-validator.js +0 -48
- package/titanium/input-validator/outlined-input-validator.js.map +0 -1
- package/titanium/search-input/search-input.d.ts +0 -29
- package/titanium/search-input/search-input.js +0 -123
- package/titanium/search-input/search-input.js.map +0 -1
- package/titanium/service-worker-notifier/service-worker-notifier.d.ts +0 -9
- package/titanium/service-worker-notifier/service-worker-notifier.js +0 -58
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +0 -1
- package/titanium/youtube-input/youtube-input.d.ts +0 -20
- package/titanium/youtube-input/youtube-input.js +0 -72
- package/titanium/youtube-input/youtube-input.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.js","sourceRoot":"","sources":["data-table.ts"],"names":[],"mappings":";AAAA,OAAO,gBAAgB,CAAC;AACxB,OAAO,iCAAiC,CAAC;AACzC,OAAO,wCAAwC,CAAC;AAChD,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAyB,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAIV,yBAAe;IAHpD;;OAEG;IACkC,IAAA,MAAM,4CAAS;IAAf,IAAA,MAAM,kDAAS;IAKiB,kCAA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AiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAmkB7B;;AAED,MAAM,OAAO,4BAA6B,SAAQ,KAAK;aAC9C,cAAS,GAAG,mCAAmC,CAAC;IACvD;QACE,KAAK,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
3
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
4
|
-
/**
|
|
5
|
-
* titanium-duration-input is a human readable duration textfield.
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-duration-input
|
|
8
|
-
*
|
|
9
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare class TitaniumDurationInput extends ExtendableOutlinedTextField {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
16
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
17
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
18
|
-
*/
|
|
19
|
-
accessor duration: duration.Duration | null;
|
|
20
|
-
accessor autocomplete: string;
|
|
21
|
-
accessor spellcheck: boolean;
|
|
22
|
-
accessor placeholder: string;
|
|
23
|
-
accessor label: string;
|
|
24
|
-
firstUpdated(): void;
|
|
25
|
-
static styles: import("lit").CSSResult;
|
|
26
|
-
updated(changedProps: PropertyValues<this>): void;
|
|
27
|
-
checkValidity(): boolean;
|
|
28
|
-
reportValidity(): boolean;
|
|
29
|
-
reset(): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=duration-input.d.ts.map
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
3
|
-
import { css } from 'lit';
|
|
4
|
-
import dayjs from 'dayjs/esm';
|
|
5
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
6
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
7
|
-
import humanInterval, { durationToString } from './human-interval';
|
|
8
|
-
dayjs.extend(duration);
|
|
9
|
-
/**
|
|
10
|
-
* titanium-duration-input is a human readable duration textfield.
|
|
11
|
-
*
|
|
12
|
-
* @element titanium-duration-input
|
|
13
|
-
*
|
|
14
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
let TitaniumDurationInput = class TitaniumDurationInput extends ExtendableOutlinedTextField {
|
|
18
|
-
#duration_accessor_storage = null;
|
|
19
|
-
/**
|
|
20
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
21
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
22
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
23
|
-
*/
|
|
24
|
-
get duration() { return this.#duration_accessor_storage; }
|
|
25
|
-
set duration(value) { this.#duration_accessor_storage = value; }
|
|
26
|
-
#autocomplete_accessor_storage = 'off';
|
|
27
|
-
get autocomplete() { return this.#autocomplete_accessor_storage; }
|
|
28
|
-
set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
|
|
29
|
-
#spellcheck_accessor_storage = false;
|
|
30
|
-
get spellcheck() { return this.#spellcheck_accessor_storage; }
|
|
31
|
-
set spellcheck(value) { this.#spellcheck_accessor_storage = value; }
|
|
32
|
-
#placeholder_accessor_storage = '3 hours and 30 minutes';
|
|
33
|
-
get placeholder() { return this.#placeholder_accessor_storage; }
|
|
34
|
-
set placeholder(value) { this.#placeholder_accessor_storage = value; }
|
|
35
|
-
#label_accessor_storage = 'Duration';
|
|
36
|
-
get label() { return this.#label_accessor_storage; }
|
|
37
|
-
set label(value) { this.#label_accessor_storage = value; }
|
|
38
|
-
firstUpdated() {
|
|
39
|
-
this.addEventListener('change', () => {
|
|
40
|
-
this.#customReportValidity(this.input.value);
|
|
41
|
-
const dur = this.#textToInterval(this.input.value);
|
|
42
|
-
if (dur?.asMilliseconds() != this.duration?.asMilliseconds()) {
|
|
43
|
-
this.duration = dur;
|
|
44
|
-
this.dispatchEvent(new Event('duration-change'));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
static { this.styles = css `
|
|
49
|
-
:host {
|
|
50
|
-
display: block;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
md-outlined-text-field {
|
|
54
|
-
width: 100%;
|
|
55
|
-
}
|
|
56
|
-
`; }
|
|
57
|
-
updated(changedProps) {
|
|
58
|
-
if (changedProps.has('duration') && changedProps.get('duration') !== this.duration) {
|
|
59
|
-
if (this.duration) {
|
|
60
|
-
this.value = durationToString(this.duration);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
this.duration = null;
|
|
64
|
-
this.value = '';
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
checkValidity() {
|
|
69
|
-
return super.checkValidity() && this.#customCheckValidity(this.input.value);
|
|
70
|
-
}
|
|
71
|
-
reportValidity() {
|
|
72
|
-
this.#customReportValidity(this.input.value);
|
|
73
|
-
return super.reportValidity();
|
|
74
|
-
}
|
|
75
|
-
#customCheckValidity(input) {
|
|
76
|
-
if (input && !this.#textToInterval(input)) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
#customReportValidity(input) {
|
|
84
|
-
if (!this.#customCheckValidity(input)) {
|
|
85
|
-
this.error = true;
|
|
86
|
-
this.errorText = 'Duration was entered in an incorrect format. Try "3 hours and 30 minutes"';
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this.error = false;
|
|
90
|
-
this.errorText = '';
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
#textToInterval(input) {
|
|
94
|
-
if (!input) {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
const ms = humanInterval(input);
|
|
98
|
-
return isNaN(ms) ? null : dayjs.duration(ms, 'ms');
|
|
99
|
-
}
|
|
100
|
-
async reset() {
|
|
101
|
-
super.reset();
|
|
102
|
-
this.error = false;
|
|
103
|
-
this.errorText = '';
|
|
104
|
-
this.duration = null;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: Object })
|
|
109
|
-
], TitaniumDurationInput.prototype, "duration", null);
|
|
110
|
-
__decorate([
|
|
111
|
-
property({ reflect: true, type: String })
|
|
112
|
-
], TitaniumDurationInput.prototype, "autocomplete", null);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ reflect: true, type: Boolean })
|
|
115
|
-
], TitaniumDurationInput.prototype, "spellcheck", null);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ reflect: true, type: String })
|
|
118
|
-
], TitaniumDurationInput.prototype, "placeholder", null);
|
|
119
|
-
__decorate([
|
|
120
|
-
property({ reflect: true, type: String })
|
|
121
|
-
], TitaniumDurationInput.prototype, "label", null);
|
|
122
|
-
TitaniumDurationInput = __decorate([
|
|
123
|
-
customElement('titanium-duration-input')
|
|
124
|
-
], TitaniumDurationInput);
|
|
125
|
-
export { TitaniumDurationInput };
|
|
126
|
-
//# sourceMappingURL=duration-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"duration-input.js","sourceRoot":"","sources":["duration-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAkB,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC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d,CAAC;QACD,MAAM,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;;AAlFoC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAoD;AAE3B;IAAnD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yDAAuC;AAE5B;IAApD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDAAsC;AAE7B;IAAnD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAyD;AAC/C;IAAnD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAqC;AAbpE,qBAAqB;IADjC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,qBAAqB,CAyFjC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
|
|
3
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
4
|
-
/**
|
|
5
|
-
* titanium-outlined-duration-input is a human readable duration textfield.
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-outlined-duration-input
|
|
8
|
-
*
|
|
9
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare class TitaniumOutlinedDurationInput extends MdOutlinedTextField {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
16
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
17
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
18
|
-
*/
|
|
19
|
-
accessor duration: duration.Duration | null;
|
|
20
|
-
label: string;
|
|
21
|
-
supportingText: string;
|
|
22
|
-
autocomplete: string;
|
|
23
|
-
spellcheck: boolean;
|
|
24
|
-
updated(changedProps: PropertyValues<this>): void;
|
|
25
|
-
firstUpdated(): void;
|
|
26
|
-
checkValidity(): boolean;
|
|
27
|
-
reportValidity(): boolean;
|
|
28
|
-
reset(): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=outlined-duration-input.d.ts.map
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
3
|
-
import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
|
|
4
|
-
import dayjs from 'dayjs/esm';
|
|
5
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
6
|
-
import humanInterval, { durationToString } from './human-interval';
|
|
7
|
-
dayjs.extend(duration);
|
|
8
|
-
/**
|
|
9
|
-
* titanium-outlined-duration-input is a human readable duration textfield.
|
|
10
|
-
*
|
|
11
|
-
* @element titanium-outlined-duration-input
|
|
12
|
-
*
|
|
13
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
let TitaniumOutlinedDurationInput = class TitaniumOutlinedDurationInput extends MdOutlinedTextField {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.#duration_accessor_storage = null;
|
|
20
|
-
this.label = 'Duration';
|
|
21
|
-
this.supportingText = 'Enter a duration ex. "3 hours and 30 minutes"';
|
|
22
|
-
this.autocomplete = 'off';
|
|
23
|
-
this.spellcheck = false;
|
|
24
|
-
}
|
|
25
|
-
#duration_accessor_storage;
|
|
26
|
-
/**
|
|
27
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
28
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
29
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
30
|
-
*/
|
|
31
|
-
get duration() { return this.#duration_accessor_storage; }
|
|
32
|
-
set duration(value) { this.#duration_accessor_storage = value; }
|
|
33
|
-
updated(changedProps) {
|
|
34
|
-
if (changedProps.has('duration') && changedProps.get('duration') !== this.duration) {
|
|
35
|
-
if (this.duration) {
|
|
36
|
-
this.value = durationToString(this.duration);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
this.duration = null;
|
|
40
|
-
this.value = '';
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
firstUpdated() {
|
|
45
|
-
this.addEventListener('change', () => {
|
|
46
|
-
this.reportValidity();
|
|
47
|
-
const dur = this.#textToInterval(this.value);
|
|
48
|
-
if (dur?.asMilliseconds() != this.duration?.asMilliseconds()) {
|
|
49
|
-
this.duration = dur;
|
|
50
|
-
this.dispatchEvent(new Event('duration-change'));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
checkValidity() {
|
|
55
|
-
return super.checkValidity() && this.#customCheckValidity(this.value);
|
|
56
|
-
}
|
|
57
|
-
reportValidity() {
|
|
58
|
-
if (!this.#customCheckValidity(this.value)) {
|
|
59
|
-
this.error = true;
|
|
60
|
-
this.errorText = 'Duration was entered in an incorrect format. Try "3 hours and 30 minutes"';
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
this.error = false;
|
|
64
|
-
this.errorText = '';
|
|
65
|
-
}
|
|
66
|
-
return super.reportValidity();
|
|
67
|
-
}
|
|
68
|
-
#customCheckValidity(input) {
|
|
69
|
-
if (input && !this.#textToInterval(input)) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
#textToInterval(input) {
|
|
77
|
-
if (!input) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
const ms = humanInterval(input);
|
|
81
|
-
return isNaN(ms) ? null : dayjs.duration(ms, 'ms');
|
|
82
|
-
}
|
|
83
|
-
async reset() {
|
|
84
|
-
super.reset();
|
|
85
|
-
this.error = false;
|
|
86
|
-
this.errorText = '';
|
|
87
|
-
this.duration = null;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ type: Object })
|
|
92
|
-
], TitaniumOutlinedDurationInput.prototype, "duration", null);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
], TitaniumOutlinedDurationInput.prototype, "label", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: String })
|
|
98
|
-
], TitaniumOutlinedDurationInput.prototype, "supportingText", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ type: String })
|
|
101
|
-
], TitaniumOutlinedDurationInput.prototype, "autocomplete", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ type: Boolean })
|
|
104
|
-
], TitaniumOutlinedDurationInput.prototype, "spellcheck", void 0);
|
|
105
|
-
TitaniumOutlinedDurationInput = __decorate([
|
|
106
|
-
customElement('titanium-outlined-duration-input')
|
|
107
|
-
], TitaniumOutlinedDurationInput);
|
|
108
|
-
export { TitaniumOutlinedDurationInput };
|
|
109
|
-
//# sourceMappingURL=outlined-duration-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outlined-duration-input.js","sourceRoot":"","sources":["outlined-duration-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAm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AAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;CACF,CAAA;AAlEsC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6DAAoD;AACnD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAA4B;AAC3B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qEAA0E;AACzE;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAA8B;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEAA6B;AAV9C,6BAA6B;IADzC,aAAa,CAAC,kCAAkC,CAAC;GACrC,6BAA6B,CAwEzC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* A pre-styled error page
|
|
4
|
-
*
|
|
5
|
-
* @element titanium-error-page
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare class TitaniumErrorPage extends LitElement {
|
|
9
|
-
/**
|
|
10
|
-
* Reason text for the error
|
|
11
|
-
*/
|
|
12
|
-
accessor message: string | TemplateResult<1>;
|
|
13
|
-
static styles: import("lit").CSSResult;
|
|
14
|
-
render(): TemplateResult<1>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=error-page.d.ts.map
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, html, LitElement } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
/**
|
|
5
|
-
* A pre-styled error page
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-error-page
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
let TitaniumErrorPage = class TitaniumErrorPage extends LitElement {
|
|
11
|
-
#message_accessor_storage = 'We were unable to find the page you are looking for...';
|
|
12
|
-
/**
|
|
13
|
-
* Reason text for the error
|
|
14
|
-
*/
|
|
15
|
-
get message() { return this.#message_accessor_storage; }
|
|
16
|
-
set message(value) { this.#message_accessor_storage = value; }
|
|
17
|
-
static { this.styles = css `
|
|
18
|
-
:host {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
font-family: Roboto, sans-serif;
|
|
25
|
-
-moz-osx-font-smoothing: grayscale;
|
|
26
|
-
-webkit-font-smoothing: antialiased;
|
|
27
|
-
|
|
28
|
-
max-width: 1300px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
header {
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
margin-right: 24px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h1 {
|
|
37
|
-
font-family: Metropolis, 'Roboto', 'Noto', sans-serif;
|
|
38
|
-
font-weight: 600;
|
|
39
|
-
font-size: 75px;
|
|
40
|
-
line-height: 85px;
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
h2 {
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
margin: 8px 0 0 4px;
|
|
47
|
-
max-width: 75%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
img {
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
height: 280px;
|
|
53
|
-
width: 280px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (max-width: 768px) {
|
|
57
|
-
:host {
|
|
58
|
-
margin-top: 24px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
h2 {
|
|
62
|
-
max-width: inherit;
|
|
63
|
-
font-size: 21px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
img {
|
|
67
|
-
height: 120px;
|
|
68
|
-
width: 120px;
|
|
69
|
-
align-self: flex-start;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
h1 {
|
|
73
|
-
font-size: 55px;
|
|
74
|
-
line-height: 65px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`; }
|
|
78
|
-
render() {
|
|
79
|
-
return html `
|
|
80
|
-
<header>
|
|
81
|
-
<h1>Oops!</h1>
|
|
82
|
-
<h2>${this.message}</h2>
|
|
83
|
-
</header>
|
|
84
|
-
<img src="https://www.leavitt.com/images/alert.svg" />
|
|
85
|
-
`;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
__decorate([
|
|
89
|
-
property()
|
|
90
|
-
], TitaniumErrorPage.prototype, "message", null);
|
|
91
|
-
TitaniumErrorPage = __decorate([
|
|
92
|
-
customElement('titanium-error-page')
|
|
93
|
-
], TitaniumErrorPage);
|
|
94
|
-
export { TitaniumErrorPage };
|
|
95
|
-
//# sourceMappingURL=error-page.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-page.js","sourceRoot":"","sources":["error-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;GAKG;AAGI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAI1B,4BAAsC,wDAAwD,CAAC;IAHpH;;OAEG;IACkB,IAAA,OAAO,6CAAwF;IAA/F,IAAA,OAAO,mDAAwF;aAE7G,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DlB,AA5DY,CA4DX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;;;cAGD,IAAI,CAAC,OAAO;;;KAGrB,CAAC;IACJ,CAAC;;AAxEoB;IAApB,QAAQ,EAAE;gDAAyG;AAJzG,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA6E7B"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import '@material/web/textfield/outlined-text-field';
|
|
2
|
-
import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
|
|
3
|
-
import { LitElement } from 'lit';
|
|
4
|
-
import { TextFieldType, UnsupportedTextFieldType } from '@material/web/textfield/internal/text-field';
|
|
5
|
-
export declare class ExtendableOutlinedTextField extends LitElement {
|
|
6
|
-
accessor input: MdOutlinedTextField;
|
|
7
|
-
/**
|
|
8
|
-
* Gets or sets whether or not the text field is in a visually invalid state.
|
|
9
|
-
*
|
|
10
|
-
* This error state overrides the error state controlled by
|
|
11
|
-
* `reportValidity()`.
|
|
12
|
-
*/
|
|
13
|
-
accessor error: boolean;
|
|
14
|
-
accessor disabled: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The error message that replaces supporting text when `error` is true. If
|
|
17
|
-
* `errorText` is an empty string, then the supporting text will continue to
|
|
18
|
-
* show.
|
|
19
|
-
*
|
|
20
|
-
* This error message overrides the error message displayed by
|
|
21
|
-
* `reportValidity()`.
|
|
22
|
-
*/
|
|
23
|
-
accessor errorText: string;
|
|
24
|
-
accessor label: string;
|
|
25
|
-
accessor required: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The current value of the text field. It is always a string.
|
|
28
|
-
*/
|
|
29
|
-
accessor value: string;
|
|
30
|
-
/**
|
|
31
|
-
* An optional prefix to display before the input value.
|
|
32
|
-
*/
|
|
33
|
-
accessor prefixText: string;
|
|
34
|
-
/**
|
|
35
|
-
* An optional suffix to display after the input value.
|
|
36
|
-
*/
|
|
37
|
-
accessor suffixText: string;
|
|
38
|
-
/**
|
|
39
|
-
* Whether or not the text field has a leading icon. Used for SSR.
|
|
40
|
-
*/
|
|
41
|
-
accessor hasLeadingIcon: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Whether or not the text field has a trailing icon. Used for SSR.
|
|
44
|
-
*/
|
|
45
|
-
accessor hasTrailingIcon: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Conveys additional information below the text field, such as how it should
|
|
48
|
-
* be used.
|
|
49
|
-
*/
|
|
50
|
-
accessor supportingText: string;
|
|
51
|
-
/**
|
|
52
|
-
* Override the input text CSS `direction`. Useful for RTL languages that use
|
|
53
|
-
* LTR notation for fractions.
|
|
54
|
-
*/
|
|
55
|
-
accessor textDirection: string;
|
|
56
|
-
/**
|
|
57
|
-
* The number of rows to display for a `type="textarea"` text field.
|
|
58
|
-
* Defaults to 2.
|
|
59
|
-
*/
|
|
60
|
-
accessor rows: number;
|
|
61
|
-
/**
|
|
62
|
-
* The number of cols to display for a `type="textarea"` text field.
|
|
63
|
-
* Defaults to 20.
|
|
64
|
-
*/
|
|
65
|
-
accessor cols: number;
|
|
66
|
-
accessor inputMode: string;
|
|
67
|
-
/**
|
|
68
|
-
* Defines the greatest value in the range of permitted values.
|
|
69
|
-
*
|
|
70
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
|
|
71
|
-
*/
|
|
72
|
-
accessor max: string;
|
|
73
|
-
/**
|
|
74
|
-
* The maximum number of characters a user can enter into the text field. Set
|
|
75
|
-
* to -1 for none.
|
|
76
|
-
*
|
|
77
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
78
|
-
*/
|
|
79
|
-
accessor maxLength: number;
|
|
80
|
-
/**
|
|
81
|
-
* Defines the most negative value in the range of permitted values.
|
|
82
|
-
*
|
|
83
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
|
|
84
|
-
*/
|
|
85
|
-
accessor min: string;
|
|
86
|
-
/**
|
|
87
|
-
* The minimum number of characters a user can enter into the text field. Set
|
|
88
|
-
* to -1 for none.
|
|
89
|
-
*
|
|
90
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
91
|
-
*/
|
|
92
|
-
accessor minLength: number;
|
|
93
|
-
/**
|
|
94
|
-
* A regular expression that the text field's value must match to pass
|
|
95
|
-
* constraint validation.
|
|
96
|
-
*
|
|
97
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
|
|
98
|
-
*/
|
|
99
|
-
accessor pattern: string;
|
|
100
|
-
accessor placeholder: string;
|
|
101
|
-
/**
|
|
102
|
-
* Indicates whether or not a user should be able to edit the text field's
|
|
103
|
-
* value.
|
|
104
|
-
*
|
|
105
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
|
|
106
|
-
*/
|
|
107
|
-
accessor readOnly: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Indicates that input accepts multiple email addresses.
|
|
110
|
-
*
|
|
111
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
|
|
112
|
-
*/
|
|
113
|
-
accessor multiple: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Returns or sets the element's step attribute, which works with min and max
|
|
116
|
-
* to limit the increments at which a numeric or date-time value can be set.
|
|
117
|
-
*
|
|
118
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
|
|
119
|
-
*/
|
|
120
|
-
accessor step: string;
|
|
121
|
-
/**
|
|
122
|
-
* The `<input>` type to use, defaults to "text". The type greatly changes how
|
|
123
|
-
* the text field behaves.
|
|
124
|
-
*
|
|
125
|
-
* Text fields support a limited number of `<input>` types:
|
|
126
|
-
*
|
|
127
|
-
* - text
|
|
128
|
-
* - textarea
|
|
129
|
-
* - email
|
|
130
|
-
* - number
|
|
131
|
-
* - password
|
|
132
|
-
* - search
|
|
133
|
-
* - tel
|
|
134
|
-
* - url
|
|
135
|
-
*
|
|
136
|
-
* See
|
|
137
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
138
|
-
* for more details on each input type.
|
|
139
|
-
*/
|
|
140
|
-
accessor type: TextFieldType | UnsupportedTextFieldType;
|
|
141
|
-
/**
|
|
142
|
-
* Describes what, if any, type of autocomplete functionality the input
|
|
143
|
-
* should provide.
|
|
144
|
-
*
|
|
145
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
146
|
-
*/
|
|
147
|
-
accessor autocomplete: string;
|
|
148
|
-
/**
|
|
149
|
-
* Describes what, if any, type of spellcheck functionality the input
|
|
150
|
-
* should provide.
|
|
151
|
-
*
|
|
152
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck
|
|
153
|
-
*/
|
|
154
|
-
accessor spellcheck: any;
|
|
155
|
-
checkValidity(): boolean;
|
|
156
|
-
reportValidity(): boolean;
|
|
157
|
-
select(): void;
|
|
158
|
-
setCustomValidity(error: string): void;
|
|
159
|
-
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
160
|
-
setSelectionRange(start: number | null, end: number | null, direction?: 'forward' | 'backward' | 'none'): void;
|
|
161
|
-
stepDown(stepDecrement?: number): void;
|
|
162
|
-
stepUp(stepDecrement?: number): void;
|
|
163
|
-
reset(): void;
|
|
164
|
-
focus(): void;
|
|
165
|
-
protected renderMainSlot(): import("lit-html").TemplateResult<1>;
|
|
166
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
167
|
-
}
|
|
168
|
-
//# sourceMappingURL=extendable-outlined-text-field.d.ts.map
|