@leavittsoftware/web 9.8.0 → 10.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/.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 +4 -2
- package/leavitt/error-page/error-page.js +126 -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/site-search-text-field-controller/site-search-text-field-controller.d.ts +2 -0
- package/titanium/site-search-text-field-controller/site-search-text-field-controller.js +2 -0
- package/titanium/site-search-text-field-controller/site-search-text-field-controller.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,20 +0,0 @@
|
|
|
1
|
-
import { MdOutlinedField } from '@material/web/field/outlined-field';
|
|
2
|
-
/**
|
|
3
|
-
* Input validator to make components use validation consistent with material 3 outlined styling
|
|
4
|
-
*
|
|
5
|
-
* @element titanium-outlined-input-validator
|
|
6
|
-
* @slot default - The slotted element should fire the NotifyUserInputEvent when it is ready to be validated
|
|
7
|
-
* @example
|
|
8
|
-
* <titanium-outlined-input-validator .evaluator=${() => (this.collection?.length ?? 0) > 0} validationMessage="Collection must have one item">
|
|
9
|
-
* <custom-input></custom-input>
|
|
10
|
-
* </titanium-outlined-input-validator>
|
|
11
|
-
*/
|
|
12
|
-
export declare class TitaniumOutlinedInputValidator extends MdOutlinedField {
|
|
13
|
-
populated: boolean;
|
|
14
|
-
accessor evaluator: () => boolean;
|
|
15
|
-
firstUpdated(): void;
|
|
16
|
-
reset(): void;
|
|
17
|
-
reportValidity(): boolean;
|
|
18
|
-
checkValidity(): boolean;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=outlined-input-validator.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
-
import { MdOutlinedField } from '@material/web/field/outlined-field';
|
|
4
|
-
/**
|
|
5
|
-
* Input validator to make components use validation consistent with material 3 outlined styling
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-outlined-input-validator
|
|
8
|
-
* @slot default - The slotted element should fire the NotifyUserInputEvent when it is ready to be validated
|
|
9
|
-
* @example
|
|
10
|
-
* <titanium-outlined-input-validator .evaluator=${() => (this.collection?.length ?? 0) > 0} validationMessage="Collection must have one item">
|
|
11
|
-
* <custom-input></custom-input>
|
|
12
|
-
* </titanium-outlined-input-validator>
|
|
13
|
-
*/
|
|
14
|
-
let TitaniumOutlinedInputValidator = class TitaniumOutlinedInputValidator extends MdOutlinedField {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.populated = true;
|
|
18
|
-
}
|
|
19
|
-
#evaluator_accessor_storage;
|
|
20
|
-
get evaluator() { return this.#evaluator_accessor_storage; }
|
|
21
|
-
set evaluator(value) { this.#evaluator_accessor_storage = value; }
|
|
22
|
-
firstUpdated() {
|
|
23
|
-
this.addEventListener('focusin', () => (this.focused = true));
|
|
24
|
-
this.addEventListener('focusout', () => (this.focused = false));
|
|
25
|
-
}
|
|
26
|
-
reset() {
|
|
27
|
-
this.error = false;
|
|
28
|
-
}
|
|
29
|
-
reportValidity() {
|
|
30
|
-
const valid = this.checkValidity();
|
|
31
|
-
this.error = !valid;
|
|
32
|
-
return valid;
|
|
33
|
-
}
|
|
34
|
-
checkValidity() {
|
|
35
|
-
return !!this.evaluator();
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
__decorate([
|
|
39
|
-
property({ type: Boolean })
|
|
40
|
-
], TitaniumOutlinedInputValidator.prototype, "populated", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
property({ type: Object })
|
|
43
|
-
], TitaniumOutlinedInputValidator.prototype, "evaluator", null);
|
|
44
|
-
TitaniumOutlinedInputValidator = __decorate([
|
|
45
|
-
customElement('titanium-outlined-input-validator')
|
|
46
|
-
], TitaniumOutlinedInputValidator);
|
|
47
|
-
export { TitaniumOutlinedInputValidator };
|
|
48
|
-
//# sourceMappingURL=outlined-input-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outlined-input-validator.js","sourceRoot":"","sources":["outlined-input-validator.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE;;;;;;;;;GASG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,eAAe;IAA5D;;QACwB,cAAS,GAAY,IAAI,CAAC;IAsBzD,CAAC;IArBsC,4BAAyB;IAAzB,IAAA,SAAS,+CAAgB;IAAzB,IAAA,SAAS,qDAAgB;IAE9D,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,cAAc;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;QAEpB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC5B,CAAC;CACF,CAAA;AAtB8B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEAA2B;AAClB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAAmC;AAFnD,8BAA8B;IAD1C,aAAa,CAAC,mCAAmC,CAAC;GACtC,8BAA8B,CAuB1C"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import '@material/web/iconbutton/icon-button';
|
|
3
|
-
import '@material/web/icon/icon';
|
|
4
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
5
|
-
/**
|
|
6
|
-
* A styled input with built-in search and clear icons. .
|
|
7
|
-
*
|
|
8
|
-
* @element titanium-search-input
|
|
9
|
-
*
|
|
10
|
-
* @cssprop {Length} --titanium-search-input-expanded-width - Width when input expands
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class TitaniumSearchInput extends ExtendableOutlinedTextField {
|
|
14
|
-
/**
|
|
15
|
-
* Whether or not the input should hide the clear button
|
|
16
|
-
*/
|
|
17
|
-
accessor hideClearButton: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the input should prevent collapse.
|
|
20
|
-
*/
|
|
21
|
-
accessor preventCollapse: boolean;
|
|
22
|
-
protected accessor hasValue: boolean;
|
|
23
|
-
accessor autocomplete: string;
|
|
24
|
-
accessor spellcheck: boolean;
|
|
25
|
-
updated(changedProps: PropertyValues<this>): Promise<void>;
|
|
26
|
-
static styles: import("lit").CSSResult;
|
|
27
|
-
protected renderMainSlot(): import("lit-html").TemplateResult<1>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, html, nothing } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import '@material/web/iconbutton/icon-button';
|
|
5
|
-
import '@material/web/icon/icon';
|
|
6
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
7
|
-
/**
|
|
8
|
-
* A styled input with built-in search and clear icons. .
|
|
9
|
-
*
|
|
10
|
-
* @element titanium-search-input
|
|
11
|
-
*
|
|
12
|
-
* @cssprop {Length} --titanium-search-input-expanded-width - Width when input expands
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
let TitaniumSearchInput = class TitaniumSearchInput extends ExtendableOutlinedTextField {
|
|
16
|
-
#hideClearButton_accessor_storage = false;
|
|
17
|
-
/**
|
|
18
|
-
* Whether or not the input should hide the clear button
|
|
19
|
-
*/
|
|
20
|
-
get hideClearButton() { return this.#hideClearButton_accessor_storage; }
|
|
21
|
-
set hideClearButton(value) { this.#hideClearButton_accessor_storage = value; }
|
|
22
|
-
#preventCollapse_accessor_storage = false;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the input should prevent collapse.
|
|
25
|
-
*/
|
|
26
|
-
get preventCollapse() { return this.#preventCollapse_accessor_storage; }
|
|
27
|
-
set preventCollapse(value) { this.#preventCollapse_accessor_storage = value; }
|
|
28
|
-
#hasValue_accessor_storage = true;
|
|
29
|
-
get hasValue() { return this.#hasValue_accessor_storage; }
|
|
30
|
-
set hasValue(value) { this.#hasValue_accessor_storage = value; }
|
|
31
|
-
#autocomplete_accessor_storage = 'off';
|
|
32
|
-
get autocomplete() { return this.#autocomplete_accessor_storage; }
|
|
33
|
-
set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
|
|
34
|
-
#spellcheck_accessor_storage = false;
|
|
35
|
-
get spellcheck() { return this.#spellcheck_accessor_storage; }
|
|
36
|
-
set spellcheck(value) { this.#spellcheck_accessor_storage = value; }
|
|
37
|
-
async updated(changedProps) {
|
|
38
|
-
if (changedProps.has('value')) {
|
|
39
|
-
this.hasValue = !!this.value;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
static { this.styles = css `
|
|
43
|
-
:host {
|
|
44
|
-
display: block;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
md-outlined-text-field {
|
|
50
|
-
width: 48px;
|
|
51
|
-
--md-outlined-field-outline-width: 0;
|
|
52
|
-
--md-outlined-field-hover-outline-width: 0;
|
|
53
|
-
--md-outlined-field-disabled-outline-width: 0;
|
|
54
|
-
|
|
55
|
-
-webkit-transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1); /* Safari */
|
|
56
|
-
transition: width 250ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
57
|
-
--md-outlined-text-field-bottom-space: 11px;
|
|
58
|
-
--md-outlined-text-field-top-space: 11px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([has-value]) md-icon-button[search],
|
|
62
|
-
:host([prevent-collapse]) md-icon-button[search],
|
|
63
|
-
md-outlined-text-field:focus-within md-icon-button[search] {
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([has-value]) md-outlined-text-field,
|
|
68
|
-
:host([prevent-collapse]) md-outlined-text-field,
|
|
69
|
-
md-outlined-text-field:focus-within {
|
|
70
|
-
--md-outlined-field-outline-width: initial;
|
|
71
|
-
--md-outlined-field-disabled-outline-width: initial;
|
|
72
|
-
--md-outlined-field-hover-outline-width: initial;
|
|
73
|
-
--md-outlined-text-field-container-shape: initial;
|
|
74
|
-
|
|
75
|
-
width: var(--titanium-search-input-expanded-width, 258px);
|
|
76
|
-
}
|
|
77
|
-
`; }
|
|
78
|
-
renderMainSlot() {
|
|
79
|
-
return html `
|
|
80
|
-
<slot></slot>
|
|
81
|
-
<md-icon-button search ?disabled=${this.disabled} @click=${() => this.focus()} @focus=${() => this.focus()} slot="leading-icon">
|
|
82
|
-
<md-icon search>search</md-icon></md-icon-button
|
|
83
|
-
>
|
|
84
|
-
|
|
85
|
-
${!this.hasValue
|
|
86
|
-
? nothing
|
|
87
|
-
: html `<md-icon-button
|
|
88
|
-
slot="trailing-icon"
|
|
89
|
-
?disabled=${!this.value || this.disabled}
|
|
90
|
-
@click=${() => {
|
|
91
|
-
if (this.disabled) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
this.input.focus();
|
|
95
|
-
this.value = '';
|
|
96
|
-
this.dispatchEvent(new Event('input'));
|
|
97
|
-
}}
|
|
98
|
-
>
|
|
99
|
-
<md-icon>close</md-icon></md-icon-button
|
|
100
|
-
>`}
|
|
101
|
-
`;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
__decorate([
|
|
105
|
-
property({ type: Boolean, attribute: 'hide-clear-button' })
|
|
106
|
-
], TitaniumSearchInput.prototype, "hideClearButton", null);
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: Boolean, reflect: true, attribute: 'prevent-collapse' })
|
|
109
|
-
], TitaniumSearchInput.prototype, "preventCollapse", null);
|
|
110
|
-
__decorate([
|
|
111
|
-
property({ type: Boolean, reflect: true, attribute: 'has-value' })
|
|
112
|
-
], TitaniumSearchInput.prototype, "hasValue", null);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ reflect: true, type: String })
|
|
115
|
-
], TitaniumSearchInput.prototype, "autocomplete", null);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ reflect: true, type: Boolean })
|
|
118
|
-
], TitaniumSearchInput.prototype, "spellcheck", null);
|
|
119
|
-
TitaniumSearchInput = __decorate([
|
|
120
|
-
customElement('titanium-search-input')
|
|
121
|
-
], TitaniumSearchInput);
|
|
122
|
-
export { TitaniumSearchInput };
|
|
123
|
-
//# sourceMappingURL=search-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.js","sourceRoot":"","sources":["search-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,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AI,CAAA;;wBAEU,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ;qBAC/B,GAAG,EAAE;gBACZ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAClB,OAAO;gBACT,CAAC;gBACD,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACnB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBAChB,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACzC,CAAC;;;YAGD;KACP,CAAC;IACJ,CAAC;;AAhFqE;IAArE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;0DAA2C;AAKnB;IAAnF,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DAA2C;AAE9B;IAAtF,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;mDAA6C;AAE5D;IAAnD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAAuC;AAE5B;IAApD,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAAsC;AAftE,mBAAmB;IAD/B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,mBAAmB,CAqF/B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class TitanuimServiceWorkerNotifier extends LitElement {
|
|
3
|
-
#private;
|
|
4
|
-
accessor notificationsStatus: string;
|
|
5
|
-
accessor scriptUrl: string;
|
|
6
|
-
connectedCallback(): Promise<void>;
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=service-worker-notifier.d.ts.map
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, LitElement } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import { ShowSnackbarEvent } from '../../titanium/snackbar/show-snackbar-event';
|
|
5
|
-
let TitanuimServiceWorkerNotifier = class TitanuimServiceWorkerNotifier extends LitElement {
|
|
6
|
-
#notificationsStatus_accessor_storage;
|
|
7
|
-
get notificationsStatus() { return this.#notificationsStatus_accessor_storage; }
|
|
8
|
-
set notificationsStatus(value) { this.#notificationsStatus_accessor_storage = value; }
|
|
9
|
-
#scriptUrl_accessor_storage = 'service-worker.js';
|
|
10
|
-
get scriptUrl() { return this.#scriptUrl_accessor_storage; }
|
|
11
|
-
set scriptUrl(value) { this.#scriptUrl_accessor_storage = value; }
|
|
12
|
-
#newWorker;
|
|
13
|
-
#refreshing = false;
|
|
14
|
-
async connectedCallback() {
|
|
15
|
-
if ('serviceWorker' in navigator) {
|
|
16
|
-
const reg = await navigator.serviceWorker.getRegistration();
|
|
17
|
-
if (reg) {
|
|
18
|
-
reg.addEventListener('updatefound', () => {
|
|
19
|
-
this.#newWorker = reg.installing;
|
|
20
|
-
this.#newWorker?.addEventListener('statechange', () => {
|
|
21
|
-
if (this.#newWorker?.state === 'installed' && navigator.serviceWorker.controller) {
|
|
22
|
-
this.#showUpdatedSnackbar();
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
if (reg.waiting && navigator.serviceWorker.controller) {
|
|
27
|
-
this.#newWorker = reg.waiting;
|
|
28
|
-
this.#showUpdatedSnackbar();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
navigator.serviceWorker.addEventListener('controllerchange', () => {
|
|
32
|
-
if (this.#refreshing) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
window.location.reload();
|
|
36
|
-
this.#refreshing = true;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
async #showUpdatedSnackbar() {
|
|
41
|
-
await this.dispatchEvent(new ShowSnackbarEvent('Site has been updated', { actionText: 'RELOAD' }));
|
|
42
|
-
this.#newWorker?.postMessage({ type: 'SKIP_WAITING' });
|
|
43
|
-
}
|
|
44
|
-
render() {
|
|
45
|
-
return html ``;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
__decorate([
|
|
49
|
-
property({ type: String })
|
|
50
|
-
], TitanuimServiceWorkerNotifier.prototype, "notificationsStatus", null);
|
|
51
|
-
__decorate([
|
|
52
|
-
property({ type: String })
|
|
53
|
-
], TitanuimServiceWorkerNotifier.prototype, "scriptUrl", null);
|
|
54
|
-
TitanuimServiceWorkerNotifier = __decorate([
|
|
55
|
-
customElement('titanium-service-worker-notifier')
|
|
56
|
-
], TitanuimServiceWorkerNotifier);
|
|
57
|
-
export { TitanuimServiceWorkerNotifier };
|
|
58
|
-
//# sourceMappingURL=service-worker-notifier.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-worker-notifier.js","sourceRoot":"","sources":["service-worker-notifier.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAGzE,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU;IACtB,sCAA4B;IAA5B,IAAA,mBAAmB,yDAAS;IAA5B,IAAA,mBAAmB,+DAAS;IAC5B,8BAAoB,mBAAmB,CAAC;IAAxC,IAAA,SAAS,+CAA+B;IAAxC,IAAA,SAAS,qDAA+B;IAE7E,UAAU,CAAuB;IACjC,WAAW,GAAG,KAAK,CAAC;IAEpB,KAAK,CAAC,iBAAiB;QACrB,I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C;IACzD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,EAAE,CAAC;IAChB,CAAC;CACF,CAAA;AA3CsC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wEAAsC;AAC5B;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAAkD;AAFlE,6BAA6B;IADzC,aAAa,CAAC,kCAAkC,CAAC;GACrC,6BAA6B,CA4CzC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon';
|
|
2
|
-
import { PropertyValues } from 'lit';
|
|
3
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
4
|
-
/**
|
|
5
|
-
* Material design YouTube url input.
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-youtube-input
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare class TitaniumYouTubeInput extends ExtendableOutlinedTextField {
|
|
11
|
-
#private;
|
|
12
|
-
accessor autocomplete: string;
|
|
13
|
-
accessor spellcheck: boolean;
|
|
14
|
-
firstUpdated(): void;
|
|
15
|
-
updated(changedProps: PropertyValues<this>): void;
|
|
16
|
-
reset(): Promise<void>;
|
|
17
|
-
static styles: import("lit").CSSResult[];
|
|
18
|
-
protected renderMainSlot(): import("lit-html").TemplateResult<1>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=youtube-input.d.ts.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import '@material/web/icon/icon';
|
|
3
|
-
import { html, nothing, css } from 'lit';
|
|
4
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
5
|
-
import { ExtendableOutlinedTextField } from '../extendable-outlined-text-field/extendable-outlined-text-field';
|
|
6
|
-
/**
|
|
7
|
-
* Material design YouTube url input.
|
|
8
|
-
*
|
|
9
|
-
* @element titanium-youtube-input
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
let TitaniumYouTubeInput = class TitaniumYouTubeInput extends ExtendableOutlinedTextField {
|
|
13
|
-
#autocomplete_accessor_storage = 'off';
|
|
14
|
-
get autocomplete() { return this.#autocomplete_accessor_storage; }
|
|
15
|
-
set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
|
|
16
|
-
#spellcheck_accessor_storage = false;
|
|
17
|
-
get spellcheck() { return this.#spellcheck_accessor_storage; }
|
|
18
|
-
set spellcheck(value) { this.#spellcheck_accessor_storage = value; }
|
|
19
|
-
firstUpdated() {
|
|
20
|
-
this.label = this.label || 'YouTube video key';
|
|
21
|
-
this.pattern = '^.{11}$';
|
|
22
|
-
}
|
|
23
|
-
updated(changedProps) {
|
|
24
|
-
if (changedProps.has('value')) {
|
|
25
|
-
this.value = this.#stripYouTubeKeyFromUrl(this.input.value);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
#stripYouTubeKeyFromUrl(value) {
|
|
29
|
-
// https://stackoverflow.com/a/8260383
|
|
30
|
-
const regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
|
|
31
|
-
const match = value.match(regExp);
|
|
32
|
-
const key = match && match[7].length === 11 ? match[7] : false;
|
|
33
|
-
// If key stripped from url use key. Otherwise use the value input by user.
|
|
34
|
-
return key ? key : value;
|
|
35
|
-
}
|
|
36
|
-
async reset() {
|
|
37
|
-
super.reset();
|
|
38
|
-
this.value = '';
|
|
39
|
-
}
|
|
40
|
-
static { this.styles = [
|
|
41
|
-
css `
|
|
42
|
-
img {
|
|
43
|
-
max-height: 42px;
|
|
44
|
-
margin-right: 22px;
|
|
45
|
-
border-radius: 8px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
md-outlined-text-field {
|
|
49
|
-
width: 100%;
|
|
50
|
-
}
|
|
51
|
-
`,
|
|
52
|
-
]; }
|
|
53
|
-
renderMainSlot() {
|
|
54
|
-
return html `
|
|
55
|
-
<md-icon slot="leading-icon"> youtube_activity </md-icon>
|
|
56
|
-
${this.value && (this.value?.length || 0) === 11
|
|
57
|
-
? html `<img slot="trailing-icon" src="https://img.youtube.com/vi/${this.value}/default.jpg" />`
|
|
58
|
-
: nothing}
|
|
59
|
-
`;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
__decorate([
|
|
63
|
-
property({ reflect: true, type: String })
|
|
64
|
-
], TitaniumYouTubeInput.prototype, "autocomplete", null);
|
|
65
|
-
__decorate([
|
|
66
|
-
property({ reflect: true, type: Boolean })
|
|
67
|
-
], TitaniumYouTubeInput.prototype, "spellcheck", null);
|
|
68
|
-
TitaniumYouTubeInput = __decorate([
|
|
69
|
-
customElement('titanium-youtube-input')
|
|
70
|
-
], TitaniumYouTubeInput);
|
|
71
|
-
export { TitaniumYouTubeInput };
|
|
72
|
-
//# sourceMappingURL=youtube-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"youtube-input.js","sourceRoot":"","sources":["youtube-input.ts"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAE/G;;;;;GAKG;AAGI,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2BAA2B;IACf,iCAAuB,KAAK,CAAC;IAA7B,IAAA,YAAY,kDAAiB;IAA7B,IAAA,YAAY,wDAAiB;IAE5B,+BAAsB,KAAK,CAAC;IAA5B,IAAA,UAAU,gDAAkB;IAA5B,IAAA,UAAU,sDAAkB;IAEjF,YAAY;QACV,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,mBAAmB,CAAC;QAC/C,IAAI,CAAC,OAAO,G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