@leavittsoftware/web 8.7.2 → 8.7.3
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 +11 -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 +52 -0
- package/leavitt/api-service/api-service.js +369 -0
- package/leavitt/api-service/api-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/blob-response.d.ts +8 -0
- package/leavitt/api-service/blob-response.js +8 -0
- package/leavitt/api-service/blob-response.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/object-to-form-data.d.ts +9 -0
- package/leavitt/api-service/object-to-form-data.js +42 -0
- package/leavitt/api-service/object-to-form-data.js.map +1 -0
- package/leavitt/api-service/object-to-form-data.test.d.ts +2 -0
- package/leavitt/api-service/object-to-form-data.test.js +229 -0
- package/leavitt/api-service/object-to-form-data.test.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/app/app-logo.d.ts +12 -0
- package/leavitt/app/app-logo.js +142 -0
- package/leavitt/app/app-logo.js.map +1 -0
- package/leavitt/app/app-main-content-container.d.ts +10 -0
- package/leavitt/app/app-main-content-container.js +65 -0
- package/leavitt/app/app-main-content-container.js.map +1 -0
- package/leavitt/app/app-navigation-footer.d.ts +18 -0
- package/leavitt/app/app-navigation-footer.js +142 -0
- package/leavitt/app/app-navigation-footer.js.map +1 -0
- package/leavitt/app/app-navigation-header.d.ts +22 -0
- package/leavitt/app/app-navigation-header.js +239 -0
- package/leavitt/app/app-navigation-header.js.map +1 -0
- package/leavitt/app/app-width-limiter.d.ts +7 -0
- package/leavitt/app/app-width-limiter.js +39 -0
- package/leavitt/app/app-width-limiter.js.map +1 -0
- package/leavitt/app/contexts/main-menu-position-context.d.ts +4 -0
- package/leavitt/app/contexts/main-menu-position-context.js +3 -0
- package/leavitt/app/contexts/main-menu-position-context.js.map +1 -0
- package/leavitt/company-select/company-select.d.ts +53 -0
- package/leavitt/company-select/company-select.js +181 -0
- package/leavitt/company-select/company-select.js.map +1 -0
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.d.ts +394 -0
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js +233 -0
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js.map +1 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +397 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +244 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +1 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +408 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled.js +381 -0
- package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +1 -0
- package/leavitt/email-history-viewer/email-history-viewer.d.ts +412 -0
- package/leavitt/email-history-viewer/email-history-viewer.js +373 -0
- package/leavitt/email-history-viewer/email-history-viewer.js.map +1 -0
- package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +386 -0
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js +154 -0
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +1 -0
- package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +388 -0
- package/leavitt/email-history-viewer/view-sent-email-dialog.js +145 -0
- package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +1 -0
- package/leavitt/error-page/error-page.d.ts +24 -0
- package/leavitt/error-page/error-page.js +185 -0
- package/leavitt/error-page/error-page.js.map +1 -0
- package/leavitt/file-explorer/add-folder-modal.d.ts +390 -0
- package/leavitt/file-explorer/add-folder-modal.js +135 -0
- package/leavitt/file-explorer/add-folder-modal.js.map +1 -0
- package/leavitt/file-explorer/events/file-explorer-events.d.ts +4 -0
- package/leavitt/file-explorer/events/file-explorer-events.js +5 -0
- package/leavitt/file-explorer/events/file-explorer-events.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-error.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-error.js +38 -0
- package/leavitt/file-explorer/file-explorer-error.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-image.d.ts +9 -0
- package/leavitt/file-explorer/file-explorer-image.js +54 -0
- package/leavitt/file-explorer/file-explorer-image.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-no-files.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-no-files.js +38 -0
- package/leavitt/file-explorer/file-explorer-no-files.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-no-permission.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-no-permission.js +38 -0
- package/leavitt/file-explorer/file-explorer-no-permission.js.map +1 -0
- package/leavitt/file-explorer/file-explorer.d.ts +446 -0
- package/leavitt/file-explorer/file-explorer.js +889 -0
- package/leavitt/file-explorer/file-explorer.js.map +1 -0
- package/leavitt/file-explorer/file-list-item.d.ts +16 -0
- package/leavitt/file-explorer/file-list-item.js +300 -0
- package/leavitt/file-explorer/file-list-item.js.map +1 -0
- package/leavitt/file-explorer/file-modal.d.ts +393 -0
- package/leavitt/file-explorer/file-modal.js +323 -0
- package/leavitt/file-explorer/file-modal.js.map +1 -0
- package/leavitt/file-explorer/folder-list-item.d.ts +15 -0
- package/leavitt/file-explorer/folder-list-item.js +210 -0
- package/leavitt/file-explorer/folder-list-item.js.map +1 -0
- package/leavitt/file-explorer/folder-modal.d.ts +391 -0
- package/leavitt/file-explorer/folder-modal.js +226 -0
- package/leavitt/file-explorer/folder-modal.js.map +1 -0
- package/leavitt/file-explorer/helpers/file-types.d.ts +2 -0
- package/leavitt/file-explorer/helpers/file-types.js +19 -0
- package/leavitt/file-explorer/helpers/file-types.js.map +1 -0
- package/leavitt/file-explorer/helpers/format-bytes.d.ts +2 -0
- package/leavitt/file-explorer/helpers/format-bytes.js +8 -0
- package/leavitt/file-explorer/helpers/format-bytes.js.map +1 -0
- package/leavitt/person-company-select/person-company-select.d.ts +43 -0
- package/leavitt/person-company-select/person-company-select.js +198 -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 +87 -0
- package/leavitt/person-group-select/people-group-icons.js.map +1 -0
- package/leavitt/person-group-select/person-group-select.d.ts +43 -0
- package/leavitt/person-group-select/person-group-select.js +207 -0
- package/leavitt/person-group-select/person-group-select.js.map +1 -0
- package/leavitt/person-select/person-select.d.ts +46 -0
- package/leavitt/person-select/person-select.js +203 -0
- package/leavitt/person-select/person-select.js.map +1 -0
- package/leavitt/profile-picture/profile-picture-menu.d.ts +48 -0
- package/leavitt/profile-picture/profile-picture-menu.js +248 -0
- package/leavitt/profile-picture/profile-picture-menu.js.map +1 -0
- package/leavitt/profile-picture/profile-picture.d.ts +44 -0
- package/leavitt/profile-picture/profile-picture.js +208 -0
- package/leavitt/profile-picture/profile-picture.js.map +1 -0
- package/leavitt/service-worker-notifier/service-worker-notifier.d.ts +14 -0
- package/leavitt/service-worker-notifier/service-worker-notifier.js +180 -0
- package/leavitt/service-worker-notifier/service-worker-notifier.js.map +1 -0
- package/leavitt/theme/theme-preference-event.d.ts +4 -0
- package/leavitt/theme/theme-preference-event.js +5 -0
- package/leavitt/theme/theme-preference-event.js.map +1 -0
- package/leavitt/theme/theme-preference.d.ts +8 -0
- package/leavitt/theme/theme-preference.js +26 -0
- package/leavitt/theme/theme-preference.js.map +1 -0
- package/leavitt/user-feedback/provide-feedback-dialog.d.ts +386 -0
- package/leavitt/user-feedback/provide-feedback-dialog.js +150 -0
- package/leavitt/user-feedback/provide-feedback-dialog.js.map +1 -0
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +388 -0
- package/leavitt/user-feedback/report-a-problem-dialog.js +170 -0
- package/leavitt/user-feedback/report-a-problem-dialog.js.map +1 -0
- package/leavitt/user-feedback/user-feedback.d.ts +390 -0
- package/leavitt/user-feedback/user-feedback.js +222 -0
- package/leavitt/user-feedback/user-feedback.js.map +1 -0
- package/leavitt/user-manager/LssJwtToken.d.ts +24 -0
- package/leavitt/user-manager/LssJwtToken.js +2 -0
- package/leavitt/user-manager/LssJwtToken.js.map +1 -0
- package/leavitt/user-manager/auth-zero-lg-access-token.d.ts +15 -0
- package/leavitt/user-manager/auth-zero-lg-access-token.js +2 -0
- package/leavitt/user-manager/auth-zero-lg-access-token.js.map +1 -0
- package/leavitt/user-manager/auth-zero-lg-identity-token.d.ts +24 -0
- package/leavitt/user-manager/auth-zero-lg-identity-token.js +2 -0
- package/leavitt/user-manager/auth-zero-lg-identity-token.js.map +1 -0
- package/leavitt/user-manager/auth-zero-lg-identity.d.ts +24 -0
- package/leavitt/user-manager/auth-zero-lg-identity.js +2 -0
- package/leavitt/user-manager/auth-zero-lg-identity.js.map +1 -0
- package/leavitt/user-manager/auth-zero-lg-user-manager.d.ts +18 -0
- package/leavitt/user-manager/auth-zero-lg-user-manager.js +382 -0
- package/leavitt/user-manager/auth-zero-lg-user-manager.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 +47 -0
- package/leavitt/user-manager/user-manager.js +443 -0
- package/leavitt/user-manager/user-manager.js.map +1 -0
- package/package.json +2 -2
- package/titanium/access-denied-page/access-denied-page.d.ts +16 -0
- package/titanium/access-denied-page/access-denied-page.js +359 -0
- package/titanium/access-denied-page/access-denied-page.js.map +1 -0
- package/titanium/address-input/address-input.d.ts +31 -0
- package/titanium/address-input/address-input.js +104 -0
- package/titanium/address-input/address-input.js.map +1 -0
- package/titanium/address-input/google-address-input.d.ts +35 -0
- package/titanium/address-input/google-address-input.js +242 -0
- package/titanium/address-input/google-address-input.js.map +1 -0
- package/titanium/address-input/manual-address-dialog.d.ts +39 -0
- package/titanium/address-input/manual-address-dialog.js +350 -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/utils/address-to-string.d.ts +3 -0
- package/titanium/address-input/utils/address-to-string.js +26 -0
- package/titanium/address-input/utils/address-to-string.js.map +1 -0
- package/titanium/address-input/utils/place-result-to-address.d.ts +3 -0
- package/titanium/address-input/utils/place-result-to-address.js +46 -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 +24 -0
- package/titanium/card/card.js +188 -0
- package/titanium/card/card.js.map +1 -0
- package/titanium/chip/chip.d.ts +57 -0
- package/titanium/chip/chip.js +289 -0
- package/titanium/chip/chip.js.map +1 -0
- package/titanium/chip-multi-select/chip-multi-select.d.ts +71 -0
- package/titanium/chip-multi-select/chip-multi-select.js +228 -0
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -0
- package/titanium/circle-loading-indicator/circle-loading-indicator.d.ts +19 -0
- package/titanium/circle-loading-indicator/circle-loading-indicator.js +122 -0
- package/titanium/circle-loading-indicator/circle-loading-indicator.js.map +1 -0
- package/titanium/collapsible-container/collapsible-container.d.ts +12 -0
- package/titanium/collapsible-container/collapsible-container.js +115 -0
- package/titanium/collapsible-container/collapsible-container.js.map +1 -0
- package/titanium/confirm-dialog/confirm-dialog-open-event.d.ts +10 -0
- package/titanium/confirm-dialog/confirm-dialog-open-event.js +12 -0
- package/titanium/confirm-dialog/confirm-dialog-open-event.js.map +1 -0
- package/titanium/confirm-dialog/confirm-dialog.d.ts +25 -0
- package/titanium/confirm-dialog/confirm-dialog.js +104 -0
- package/titanium/confirm-dialog/confirm-dialog.js.map +1 -0
- package/titanium/confirmation-dialog/confirmation-dialog.d.ts +19 -0
- package/titanium/confirmation-dialog/confirmation-dialog.js +124 -0
- package/titanium/confirmation-dialog/confirmation-dialog.js.map +1 -0
- package/titanium/data-table/data-table-action-bar.d.ts +11 -0
- package/titanium/data-table/data-table-action-bar.js +216 -0
- package/titanium/data-table/data-table-action-bar.js.map +1 -0
- package/titanium/data-table/data-table-content-styles.d.ts +2 -0
- package/titanium/data-table/data-table-content-styles.js +48 -0
- package/titanium/data-table/data-table-content-styles.js.map +1 -0
- package/titanium/data-table/data-table-core-reorder-dialog.d.ts +391 -0
- package/titanium/data-table/data-table-core-reorder-dialog.js +170 -0
- package/titanium/data-table/data-table-core-reorder-dialog.js.map +1 -0
- package/titanium/data-table/data-table-core-reorder-item.d.ts +15 -0
- package/titanium/data-table/data-table-core-reorder-item.js +154 -0
- package/titanium/data-table/data-table-core-reorder-item.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.d.ts +22 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js +164 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-item.d.ts +14 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js +96 -0
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-sort-dialog.d.ts +22 -0
- package/titanium/data-table/data-table-core-settings-sort-dialog.js +231 -0
- package/titanium/data-table/data-table-core-settings-sort-dialog.js.map +1 -0
- package/titanium/data-table/data-table-core-settings-sort-item.d.ts +17 -0
- package/titanium/data-table/data-table-core-settings-sort-item.js +171 -0
- package/titanium/data-table/data-table-core-settings-sort-item.js.map +1 -0
- package/titanium/data-table/data-table-core.d.ts +458 -0
- package/titanium/data-table/data-table-core.js +745 -0
- package/titanium/data-table/data-table-core.js.map +1 -0
- package/titanium/data-table/data-table-header.d.ts +68 -0
- package/titanium/data-table/data-table-header.js +295 -0
- package/titanium/data-table/data-table-header.js.map +1 -0
- package/titanium/data-table/data-table-item.d.ts +99 -0
- package/titanium/data-table/data-table-item.js +561 -0
- package/titanium/data-table/data-table-item.js.map +1 -0
- package/titanium/data-table/data-table.d.ts +127 -0
- package/titanium/data-table/data-table.js +688 -0
- package/titanium/data-table/data-table.js.map +1 -0
- package/titanium/data-table/draggable-item-base.d.ts +30 -0
- package/titanium/data-table/draggable-item-base.js +324 -0
- package/titanium/data-table/draggable-item-base.js.map +1 -0
- package/titanium/data-table/filter-controller.d.ts +24 -0
- package/titanium/data-table/filter-controller.js +122 -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 +59 -0
- package/titanium/data-table/page-control.js +236 -0
- package/titanium/data-table/page-control.js.map +1 -0
- package/titanium/date-input/date-input.d.ts +149 -0
- package/titanium/date-input/date-input.js +548 -0
- package/titanium/date-input/date-input.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 +71 -0
- package/titanium/date-range-selector/date-range-selector.js +479 -0
- package/titanium/date-range-selector/date-range-selector.js.map +1 -0
- package/titanium/date-range-selector/types/date-range-key.d.ts +2 -0
- package/titanium/date-range-selector/types/date-range-key.js +2 -0
- package/titanium/date-range-selector/types/date-range-key.js.map +1 -0
- package/titanium/date-range-selector/types/date-range-option.d.ts +8 -0
- package/titanium/date-range-selector/types/date-range-option.js +2 -0
- package/titanium/date-range-selector/types/date-range-option.js.map +1 -0
- package/titanium/date-range-selector/types/date-ranges.d.ts +4 -0
- package/titanium/date-range-selector/types/date-ranges.js +133 -0
- package/titanium/date-range-selector/types/date-ranges.js.map +1 -0
- package/titanium/date-range-selector/types/range-label.d.ts +5 -0
- package/titanium/date-range-selector/types/range-label.js +25 -0
- package/titanium/date-range-selector/types/range-label.js.map +1 -0
- package/titanium/drawer/drawer.d.ts +52 -0
- package/titanium/drawer/drawer.js +417 -0
- package/titanium/drawer/drawer.js.map +1 -0
- package/titanium/duration-input/duration-input.d.ts +31 -0
- package/titanium/duration-input/duration-input.js +126 -0
- package/titanium/duration-input/duration-input.js.map +1 -0
- package/titanium/duration-input/filled-duration-input.d.ts +31 -0
- package/titanium/duration-input/filled-duration-input.js +123 -0
- package/titanium/duration-input/filled-duration-input.js.map +1 -0
- package/titanium/duration-input/human-interval.d.ts +19 -0
- package/titanium/duration-input/human-interval.js +73 -0
- package/titanium/duration-input/human-interval.js.map +1 -0
- package/titanium/duration-input/outlined-duration-input.d.ts +30 -0
- package/titanium/duration-input/outlined-duration-input.js +109 -0
- package/titanium/duration-input/outlined-duration-input.js.map +1 -0
- package/titanium/error-page/error-page.d.ts +16 -0
- package/titanium/error-page/error-page.js +95 -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 +168 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +373 -0
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +1 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +17 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +121 -0
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +1 -0
- package/titanium/hacks/dialog-navigation-hack.d.ts +8 -0
- package/titanium/hacks/dialog-navigation-hack.js +22 -0
- package/titanium/hacks/dialog-navigation-hack.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/hacks/dialog-zindex-hack.d.ts +11 -0
- package/titanium/hacks/dialog-zindex-hack.js +20 -0
- package/titanium/hacks/dialog-zindex-hack.js.map +1 -0
- package/titanium/hacks/report-validity-if-error.d.ts +4 -0
- package/titanium/hacks/report-validity-if-error.js +6 -0
- package/titanium/hacks/report-validity-if-error.js.map +1 -0
- package/titanium/header/header.d.ts +39 -0
- package/titanium/header/header.js +167 -0
- package/titanium/header/header.js.map +1 -0
- package/titanium/helpers/address/country-abbr-to-titlecase.d.ts +5 -0
- package/titanium/helpers/address/country-abbr-to-titlecase.js +243 -0
- package/titanium/helpers/address/country-abbr-to-titlecase.js.map +1 -0
- package/titanium/helpers/address/format-address.d.ts +22 -0
- package/titanium/helpers/address/format-address.js +33 -0
- package/titanium/helpers/address/format-address.js.map +1 -0
- package/titanium/helpers/address/get-country-name.d.ts +2 -0
- package/titanium/helpers/address/get-country-name.js +12 -0
- package/titanium/helpers/address/get-country-name.js.map +1 -0
- package/titanium/helpers/address/states-abbr-to-titlecase.d.ts +9 -0
- package/titanium/helpers/address/states-abbr-to-titlecase.js +117 -0
- package/titanium/helpers/address/states-abbr-to-titlecase.js.map +1 -0
- package/titanium/helpers/csv/convert-array-to-csv.d.ts +2 -0
- package/titanium/helpers/csv/convert-array-to-csv.js +35 -0
- package/titanium/helpers/csv/convert-array-to-csv.js.map +1 -0
- package/titanium/helpers/csv/flatten-object.d.ts +2 -0
- package/titanium/helpers/csv/flatten-object.js +64 -0
- package/titanium/helpers/csv/flatten-object.js.map +1 -0
- package/titanium/helpers/csv/start-csv-download.d.ts +2 -0
- package/titanium/helpers/csv/start-csv-download.js +11 -0
- package/titanium/helpers/csv/start-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/escape-term.d.ts +2 -0
- package/titanium/helpers/escape-term.js +2 -0
- package/titanium/helpers/escape-term.js.map +1 -0
- package/titanium/helpers/find-scrollable-parent.d.ts +2 -0
- package/titanium/helpers/find-scrollable-parent.js +13 -0
- package/titanium/helpers/find-scrollable-parent.js.map +1 -0
- package/titanium/helpers/get-cdn-Inline-url.d.ts +4 -0
- package/titanium/helpers/get-cdn-Inline-url.js +27 -0
- package/titanium/helpers/get-cdn-Inline-url.js.map +1 -0
- package/titanium/helpers/get-cdn-download-url.d.ts +3 -0
- package/titanium/helpers/get-cdn-download-url.js +12 -0
- package/titanium/helpers/get-cdn-download-url.js.map +1 -0
- package/titanium/helpers/get-company-logo-url.d.ts +3 -0
- package/titanium/helpers/get-company-logo-url.js +6 -0
- package/titanium/helpers/get-company-logo-url.js.map +1 -0
- package/titanium/helpers/get-company-mark-url.d.ts +3 -0
- package/titanium/helpers/get-company-mark-url.js +6 -0
- package/titanium/helpers/get-company-mark-url.js.map +1 -0
- package/titanium/helpers/get-search-token.d.ts +2 -0
- package/titanium/helpers/get-search-token.js +17 -0
- package/titanium/helpers/get-search-token.js.map +1 -0
- package/titanium/helpers/group-by.d.ts +2 -0
- package/titanium/helpers/group-by.js +7 -0
- package/titanium/helpers/group-by.js.map +1 -0
- package/titanium/helpers/helpers.d.ts +15 -0
- package/titanium/helpers/helpers.js +15 -0
- package/titanium/helpers/helpers.js.map +1 -0
- package/titanium/helpers/install-media-query-watcher.d.ts +2 -0
- package/titanium/helpers/install-media-query-watcher.js +6 -0
- package/titanium/helpers/install-media-query-watcher.js.map +1 -0
- package/titanium/helpers/is-development.d.ts +3 -0
- package/titanium/helpers/is-development.js +12 -0
- package/titanium/helpers/is-development.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/load-while.d.ts +374 -0
- package/titanium/helpers/load-while.js +28 -0
- package/titanium/helpers/load-while.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/pending-state-catcher.d.ts +416 -0
- package/titanium/helpers/pending-state-catcher.js +88 -0
- package/titanium/helpers/pending-state-catcher.js.map +1 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.d.ts +2 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.js +9 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.js.map +1 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dots.d.ts +2 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dots.js +9 -0
- package/titanium/helpers/phone-numbers/format-phone-number-dots.js.map +1 -0
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.d.ts +2 -0
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.js +9 -0
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.js.map +1 -0
- package/titanium/helpers/phone-numbers/format-phone-number.d.ts +2 -0
- package/titanium/helpers/phone-numbers/format-phone-number.js +9 -0
- package/titanium/helpers/phone-numbers/format-phone-number.js.map +1 -0
- package/titanium/helpers/phone-numbers/phone-mask.d.ts +2 -0
- package/titanium/helpers/phone-numbers/phone-mask.js +5 -0
- package/titanium/helpers/phone-numbers/phone-mask.js.map +1 -0
- package/titanium/helpers/phone-numbers/try-format-phone-number.d.ts +2 -0
- package/titanium/helpers/phone-numbers/try-format-phone-number.js +9 -0
- package/titanium/helpers/phone-numbers/try-format-phone-number.js.map +1 -0
- package/titanium/icon-picker/icon-picker.d.ts +37 -0
- package/titanium/icon-picker/icon-picker.js +160 -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/filled-input-validator.d.ts +20 -0
- package/titanium/input-validator/filled-input-validator.js +48 -0
- package/titanium/input-validator/filled-input-validator.js.map +1 -0
- package/titanium/input-validator/input-validator.d.ts +20 -0
- package/titanium/input-validator/input-validator.js +48 -0
- package/titanium/input-validator/input-validator.js.map +1 -0
- package/titanium/input-validator/outlined-input-validator.d.ts +20 -0
- package/titanium/input-validator/outlined-input-validator.js +48 -0
- package/titanium/input-validator/outlined-input-validator.js.map +1 -0
- package/titanium/profile-picture-stack/profile-picture-stack.d.ts +51 -0
- package/titanium/profile-picture-stack/profile-picture-stack.js +212 -0
- package/titanium/profile-picture-stack/profile-picture-stack.js.map +1 -0
- package/titanium/search-input/filled-search-input.d.ts +15 -0
- package/titanium/search-input/filled-search-input.js +111 -0
- package/titanium/search-input/filled-search-input.js.map +1 -0
- package/titanium/search-input/search-input.d.ts +29 -0
- package/titanium/search-input/search-input.js +123 -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 +58 -0
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +1 -0
- package/titanium/show-hide/show-hide.d.ts +41 -0
- package/titanium/show-hide/show-hide.js +171 -0
- package/titanium/show-hide/show-hide.js.map +1 -0
- package/titanium/single-select-base/single-select-base.d.ts +514 -0
- package/titanium/single-select-base/single-select-base.js +549 -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 +422 -0
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +467 -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 +318 -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 +96 -0
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -0
- package/titanium/smart-attachment-input/images/duck-loader.gif +0 -0
- package/titanium/smart-attachment-input/images/icon-other-bg.png +0 -0
- package/titanium/smart-attachment-input/images/icon-other.png +0 -0
- package/titanium/smart-attachment-input/images/icon-pdf-bg.png +0 -0
- package/titanium/smart-attachment-input/images/icon-pdf.png +0 -0
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +133 -0
- package/titanium/smart-attachment-input/smart-attachment-input.js +497 -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/show-snackbar-event.d.ts +9 -0
- package/titanium/snackbar/show-snackbar-event.js +9 -0
- package/titanium/snackbar/show-snackbar-event.js.map +1 -0
- package/titanium/snackbar/snackbar-stack.d.ts +24 -0
- package/titanium/snackbar/snackbar-stack.js +99 -0
- package/titanium/snackbar/snackbar-stack.js.map +1 -0
- package/titanium/snackbar/snackbars/http-error-snackbar.d.ts +28 -0
- package/titanium/snackbar/snackbars/http-error-snackbar.js +155 -0
- package/titanium/snackbar/snackbars/http-error-snackbar.js.map +1 -0
- package/titanium/snackbar/snackbars/simple-snackbar.d.ts +27 -0
- package/titanium/snackbar/snackbars/simple-snackbar.js +140 -0
- package/titanium/snackbar/snackbars/simple-snackbar.js.map +1 -0
- package/titanium/snackbar/types/snackbar-options.d.ts +9 -0
- package/titanium/snackbar/types/snackbar-options.js +2 -0
- package/titanium/snackbar/types/snackbar-options.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 +61 -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/nice-badge.d.ts +2 -0
- package/titanium/styles/nice-badge.js +53 -0
- package/titanium/styles/nice-badge.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 +24 -0
- package/titanium/toolbar/toolbar.js +100 -0
- package/titanium/toolbar/toolbar.js.map +1 -0
- package/titanium/types/any-function.d.ts +5 -0
- package/titanium/types/any-function.js +5 -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 +19 -0
- package/titanium/youtube-input/youtube-input.js +68 -0
- package/titanium/youtube-input/youtube-input.js.map +1 -0
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { LitElement, css } from 'lit';
|
|
3
|
+
import { customElement, property, query, queryAssignedElements, state } from 'lit/decorators.js';
|
|
4
|
+
import { live } from 'lit/directives/live.js';
|
|
5
|
+
import { redispatchEvent } from '@material/web/internal/events/redispatch-event';
|
|
6
|
+
import { stringConverter } from '@material/web/internal/controller/string-converter';
|
|
7
|
+
import '@material/web/field/outlined-field';
|
|
8
|
+
import '@material/web/field/filled-field';
|
|
9
|
+
import '@material/web/icon/icon';
|
|
10
|
+
import '@material/web/iconbutton/icon-button';
|
|
11
|
+
import { html, literal } from 'lit/static-html.js';
|
|
12
|
+
/**
|
|
13
|
+
* A date input the works in Firefox, Safari and Chrome
|
|
14
|
+
*
|
|
15
|
+
* @element titanium-date-input
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
let TitaniumDateInput = class TitaniumDateInput extends LitElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.onInvalid = (invalidEvent) => {
|
|
22
|
+
if (this.isCheckingValidity || this.isReportingValidity) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
this.showErrorMessage(false, invalidEvent);
|
|
26
|
+
};
|
|
27
|
+
this.#disabled_accessor_storage = false;
|
|
28
|
+
this.#error_accessor_storage = false;
|
|
29
|
+
this.#errorText_accessor_storage = '';
|
|
30
|
+
this.#noAsterisk_accessor_storage = false;
|
|
31
|
+
this.#label_accessor_storage = '';
|
|
32
|
+
this.#filled_accessor_storage = false;
|
|
33
|
+
this.#required_accessor_storage = false;
|
|
34
|
+
this.#value_accessor_storage = '';
|
|
35
|
+
this.#prefixText_accessor_storage = '';
|
|
36
|
+
this.#suffixText_accessor_storage = '';
|
|
37
|
+
this.#hasLeadingIcon_accessor_storage = false;
|
|
38
|
+
this.#hasTrailingIcon_accessor_storage = false;
|
|
39
|
+
this.#max_accessor_storage = '';
|
|
40
|
+
this.#maxLength_accessor_storage = -1;
|
|
41
|
+
this.#min_accessor_storage = '';
|
|
42
|
+
this.#supportingText_accessor_storage = '';
|
|
43
|
+
this.#placeholder_accessor_storage = '';
|
|
44
|
+
this.#type_accessor_storage = 'date';
|
|
45
|
+
this.#dirty_accessor_storage = false;
|
|
46
|
+
this.#focused_accessor_storage = false;
|
|
47
|
+
this.#nativeError_accessor_storage = false;
|
|
48
|
+
this.#nativeErrorText_accessor_storage = '';
|
|
49
|
+
this.#autocomplete_accessor_storage = '';
|
|
50
|
+
this.isCheckingValidity = false;
|
|
51
|
+
this.isReportingValidity = false;
|
|
52
|
+
// Needed for Safari, see https://bugs.webkit.org/show_bug.cgi?id=261432
|
|
53
|
+
// Replace with this[internals].validity.customError when resolved.
|
|
54
|
+
this.hasCustomValidityError = false;
|
|
55
|
+
this.internals_ = this.attachInternals();
|
|
56
|
+
}
|
|
57
|
+
static { this.formAssociated = true; }
|
|
58
|
+
attributeChangedCallback(attribute, newValue, oldValue) {
|
|
59
|
+
if (attribute === 'value' && this.dirty) {
|
|
60
|
+
// After user input, changing the value attribute no longer updates the
|
|
61
|
+
// text field's value (until reset). This matches native <input> behavior.
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
super.attributeChangedCallback(attribute, newValue, oldValue);
|
|
65
|
+
}
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
super.connectedCallback();
|
|
68
|
+
// Handles the case where the user submits the form and native validation
|
|
69
|
+
// error pops up. We want the error styles to show.
|
|
70
|
+
this.addEventListener('invalid', this.onInvalid);
|
|
71
|
+
}
|
|
72
|
+
disconnectedCallback() {
|
|
73
|
+
super.disconnectedCallback();
|
|
74
|
+
this.removeEventListener('invalid', this.onInvalid);
|
|
75
|
+
}
|
|
76
|
+
#disabled_accessor_storage;
|
|
77
|
+
/**
|
|
78
|
+
* Whether or not the input should be disabled
|
|
79
|
+
*/
|
|
80
|
+
get disabled() { return this.#disabled_accessor_storage; }
|
|
81
|
+
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
82
|
+
#error_accessor_storage;
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets whether or not the text field is in a visually invalid state.
|
|
85
|
+
*
|
|
86
|
+
* This error state overrides the error state controlled by
|
|
87
|
+
* `reportValidity()`.
|
|
88
|
+
*/
|
|
89
|
+
get error() { return this.#error_accessor_storage; }
|
|
90
|
+
set error(value) { this.#error_accessor_storage = value; }
|
|
91
|
+
#errorText_accessor_storage;
|
|
92
|
+
/**
|
|
93
|
+
* The error message that replaces supporting text when `error` is true. If
|
|
94
|
+
* `errorText` is an empty string, then the supporting text will continue to
|
|
95
|
+
* show.
|
|
96
|
+
*
|
|
97
|
+
* This error message overrides the error message displayed by
|
|
98
|
+
* `reportValidity()`.
|
|
99
|
+
*/
|
|
100
|
+
get errorText() { return this.#errorText_accessor_storage; }
|
|
101
|
+
set errorText(value) { this.#errorText_accessor_storage = value; }
|
|
102
|
+
#noAsterisk_accessor_storage;
|
|
103
|
+
/**
|
|
104
|
+
* Whether or not to show an asterisk next to the label.
|
|
105
|
+
*/
|
|
106
|
+
get noAsterisk() { return this.#noAsterisk_accessor_storage; }
|
|
107
|
+
set noAsterisk(value) { this.#noAsterisk_accessor_storage = value; }
|
|
108
|
+
#label_accessor_storage;
|
|
109
|
+
get label() { return this.#label_accessor_storage; }
|
|
110
|
+
set label(value) { this.#label_accessor_storage = value; }
|
|
111
|
+
#filled_accessor_storage;
|
|
112
|
+
/**
|
|
113
|
+
* Swaps out outlined text field for a filled text field.
|
|
114
|
+
*/
|
|
115
|
+
get filled() { return this.#filled_accessor_storage; }
|
|
116
|
+
set filled(value) { this.#filled_accessor_storage = value; }
|
|
117
|
+
#required_accessor_storage;
|
|
118
|
+
get required() { return this.#required_accessor_storage; }
|
|
119
|
+
set required(value) { this.#required_accessor_storage = value; }
|
|
120
|
+
#value_accessor_storage;
|
|
121
|
+
/**
|
|
122
|
+
* The current value of the text field. It is always a string.
|
|
123
|
+
*/
|
|
124
|
+
get value() { return this.#value_accessor_storage; }
|
|
125
|
+
set value(value) { this.#value_accessor_storage = value; }
|
|
126
|
+
#prefixText_accessor_storage;
|
|
127
|
+
/**
|
|
128
|
+
* An optional prefix to display before the input value.
|
|
129
|
+
*/
|
|
130
|
+
get prefixText() { return this.#prefixText_accessor_storage; }
|
|
131
|
+
set prefixText(value) { this.#prefixText_accessor_storage = value; }
|
|
132
|
+
#suffixText_accessor_storage;
|
|
133
|
+
/**
|
|
134
|
+
* An optional suffix to display after the input value.
|
|
135
|
+
*/
|
|
136
|
+
get suffixText() { return this.#suffixText_accessor_storage; }
|
|
137
|
+
set suffixText(value) { this.#suffixText_accessor_storage = value; }
|
|
138
|
+
#hasLeadingIcon_accessor_storage;
|
|
139
|
+
/**
|
|
140
|
+
* Whether or not the text field has a leading icon. Used for SSR.
|
|
141
|
+
*/
|
|
142
|
+
get hasLeadingIcon() { return this.#hasLeadingIcon_accessor_storage; }
|
|
143
|
+
set hasLeadingIcon(value) { this.#hasLeadingIcon_accessor_storage = value; }
|
|
144
|
+
#hasTrailingIcon_accessor_storage;
|
|
145
|
+
/**
|
|
146
|
+
* Whether or not the text field has a trailing icon. Used for SSR.
|
|
147
|
+
*/
|
|
148
|
+
get hasTrailingIcon() { return this.#hasTrailingIcon_accessor_storage; }
|
|
149
|
+
set hasTrailingIcon(value) { this.#hasTrailingIcon_accessor_storage = value; }
|
|
150
|
+
#max_accessor_storage;
|
|
151
|
+
/**
|
|
152
|
+
* Defines the greatest value in the range of permitted values.
|
|
153
|
+
*
|
|
154
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
|
|
155
|
+
*/
|
|
156
|
+
get max() { return this.#max_accessor_storage; }
|
|
157
|
+
set max(value) { this.#max_accessor_storage = value; }
|
|
158
|
+
#maxLength_accessor_storage;
|
|
159
|
+
/**
|
|
160
|
+
* The maximum number of characters a user can enter into the text field. Set
|
|
161
|
+
* to -1 for none.
|
|
162
|
+
*
|
|
163
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
164
|
+
*/
|
|
165
|
+
get maxLength() { return this.#maxLength_accessor_storage; }
|
|
166
|
+
set maxLength(value) { this.#maxLength_accessor_storage = value; }
|
|
167
|
+
#min_accessor_storage;
|
|
168
|
+
/**
|
|
169
|
+
* Defines the most negative value in the range of permitted values.
|
|
170
|
+
*
|
|
171
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
|
|
172
|
+
*/
|
|
173
|
+
get min() { return this.#min_accessor_storage; }
|
|
174
|
+
set min(value) { this.#min_accessor_storage = value; }
|
|
175
|
+
#supportingText_accessor_storage;
|
|
176
|
+
/**
|
|
177
|
+
* Conveys additional information below the text field, such as how it should
|
|
178
|
+
* be used.
|
|
179
|
+
*/
|
|
180
|
+
get supportingText() { return this.#supportingText_accessor_storage; }
|
|
181
|
+
set supportingText(value) { this.#supportingText_accessor_storage = value; }
|
|
182
|
+
#placeholder_accessor_storage;
|
|
183
|
+
get placeholder() { return this.#placeholder_accessor_storage; }
|
|
184
|
+
set placeholder(value) { this.#placeholder_accessor_storage = value; }
|
|
185
|
+
#type_accessor_storage;
|
|
186
|
+
get type() { return this.#type_accessor_storage; }
|
|
187
|
+
set type(value) { this.#type_accessor_storage = value; }
|
|
188
|
+
#dirty_accessor_storage;
|
|
189
|
+
/**
|
|
190
|
+
* Returns true when the text field has been interacted with. Native
|
|
191
|
+
* validation errors only display in response to user interactions.
|
|
192
|
+
*/
|
|
193
|
+
get dirty() { return this.#dirty_accessor_storage; }
|
|
194
|
+
set dirty(value) { this.#dirty_accessor_storage = value; }
|
|
195
|
+
#focused_accessor_storage;
|
|
196
|
+
get focused() { return this.#focused_accessor_storage; }
|
|
197
|
+
set focused(value) { this.#focused_accessor_storage = value; }
|
|
198
|
+
#nativeError_accessor_storage;
|
|
199
|
+
/**
|
|
200
|
+
* Whether or not a native error has been reported via `reportValidity()`.
|
|
201
|
+
*/
|
|
202
|
+
get nativeError() { return this.#nativeError_accessor_storage; }
|
|
203
|
+
set nativeError(value) { this.#nativeError_accessor_storage = value; }
|
|
204
|
+
#nativeErrorText_accessor_storage;
|
|
205
|
+
/**
|
|
206
|
+
* The validation message displayed from a native error via
|
|
207
|
+
* `reportValidity()`.
|
|
208
|
+
*/
|
|
209
|
+
get nativeErrorText() { return this.#nativeErrorText_accessor_storage; }
|
|
210
|
+
set nativeErrorText(value) { this.#nativeErrorText_accessor_storage = value; }
|
|
211
|
+
#autocomplete_accessor_storage;
|
|
212
|
+
/**
|
|
213
|
+
* Describes what, if any, type of autocomplete functionality the input
|
|
214
|
+
* should provide.
|
|
215
|
+
*
|
|
216
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
217
|
+
*/
|
|
218
|
+
get autocomplete() { return this.#autocomplete_accessor_storage; }
|
|
219
|
+
set autocomplete(value) { this.#autocomplete_accessor_storage = value; }
|
|
220
|
+
#input_accessor_storage;
|
|
221
|
+
get input() { return this.#input_accessor_storage; }
|
|
222
|
+
set input(value) { this.#input_accessor_storage = value; }
|
|
223
|
+
#leadingIcons_accessor_storage;
|
|
224
|
+
get leadingIcons() { return this.#leadingIcons_accessor_storage; }
|
|
225
|
+
set leadingIcons(value) { this.#leadingIcons_accessor_storage = value; }
|
|
226
|
+
#trailingIcons_accessor_storage;
|
|
227
|
+
get trailingIcons() { return this.#trailingIcons_accessor_storage; }
|
|
228
|
+
set trailingIcons(value) { this.#trailingIcons_accessor_storage = value; }
|
|
229
|
+
checkValidity() {
|
|
230
|
+
this.isCheckingValidity = true;
|
|
231
|
+
this.syncValidity();
|
|
232
|
+
const isValid = this.internals_.checkValidity();
|
|
233
|
+
this.isCheckingValidity = false;
|
|
234
|
+
return isValid;
|
|
235
|
+
}
|
|
236
|
+
reportValidity() {
|
|
237
|
+
this.isReportingValidity = true;
|
|
238
|
+
let invalidEvent;
|
|
239
|
+
this.addEventListener('invalid', (event) => {
|
|
240
|
+
invalidEvent = event;
|
|
241
|
+
}, { once: true });
|
|
242
|
+
const valid = this.checkValidity();
|
|
243
|
+
this.showErrorMessage(valid, invalidEvent);
|
|
244
|
+
this.isReportingValidity = false;
|
|
245
|
+
return valid;
|
|
246
|
+
}
|
|
247
|
+
get validationMessage() {
|
|
248
|
+
this.syncValidity();
|
|
249
|
+
return this.internals_.validationMessage;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Returns a `ValidityState` object that represents the validity states of the
|
|
253
|
+
* text field.
|
|
254
|
+
*
|
|
255
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/ValidityState
|
|
256
|
+
*/
|
|
257
|
+
get validity() {
|
|
258
|
+
this.syncValidity();
|
|
259
|
+
return this.internals_.validity;
|
|
260
|
+
}
|
|
261
|
+
syncValidity() {
|
|
262
|
+
// Sync the internal <input>'s validity and the host's ElementInternals
|
|
263
|
+
// validity. We do this to re-use native `<input>` validation messages.
|
|
264
|
+
const input = this.input;
|
|
265
|
+
if (this.hasCustomValidityError) {
|
|
266
|
+
input.setCustomValidity(this.internals_.validationMessage);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
input.setCustomValidity('');
|
|
270
|
+
}
|
|
271
|
+
this.internals_.setValidity(input.validity, input.validationMessage, this.input);
|
|
272
|
+
}
|
|
273
|
+
handleIconChange() {
|
|
274
|
+
this.hasLeadingIcon = this.leadingIcons.length > 0;
|
|
275
|
+
this.hasTrailingIcon = this.trailingIcons.length > 0;
|
|
276
|
+
}
|
|
277
|
+
getErrorText() {
|
|
278
|
+
return this.error ? this.errorText : this.nativeErrorText;
|
|
279
|
+
}
|
|
280
|
+
showErrorMessage(valid, invalidEvent) {
|
|
281
|
+
if (invalidEvent?.defaultPrevented) {
|
|
282
|
+
return valid;
|
|
283
|
+
}
|
|
284
|
+
const prevMessage = this.getErrorText();
|
|
285
|
+
this.nativeError = !valid;
|
|
286
|
+
this.nativeErrorText = this.validationMessage;
|
|
287
|
+
if (prevMessage === this.getErrorText()) {
|
|
288
|
+
this.shadowRoot?.querySelector(this.filled ? 'md-filled-field' : 'md-outlined-field')?.reannounceError();
|
|
289
|
+
}
|
|
290
|
+
return valid;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Selects all the text in the text field.
|
|
294
|
+
*
|
|
295
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select
|
|
296
|
+
*/
|
|
297
|
+
select() {
|
|
298
|
+
this.input.select();
|
|
299
|
+
}
|
|
300
|
+
setCustomValidity(error) {
|
|
301
|
+
this.hasCustomValidityError = !!error;
|
|
302
|
+
this.internals_.setValidity({ customError: !!error }, error, this.input);
|
|
303
|
+
}
|
|
304
|
+
reset() {
|
|
305
|
+
this.dirty = false;
|
|
306
|
+
this.value = this.getAttribute('value') ?? '';
|
|
307
|
+
this.nativeError = false;
|
|
308
|
+
this.nativeErrorText = '';
|
|
309
|
+
this.error = false;
|
|
310
|
+
}
|
|
311
|
+
static { this.styles = css `
|
|
312
|
+
:host {
|
|
313
|
+
display: block;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host([filled]) {
|
|
317
|
+
--md-filled-field-container-shape: 16px;
|
|
318
|
+
|
|
319
|
+
--md-filled-field-active-indicator-height: 0;
|
|
320
|
+
--md-filled-field-error-active-indicator-height: 0;
|
|
321
|
+
--md-filled-field-hover-active-indicator-height: 0;
|
|
322
|
+
--md-filled-field-focus-active-indicator-height: 0;
|
|
323
|
+
--md-filled-field-disabled-active-indicator-height: 0;
|
|
324
|
+
|
|
325
|
+
--md-filled-field-label-text-populated-line-height: 14px;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
:host(:not([filled])) {
|
|
329
|
+
--md-outlined-field-top-space: 15px;
|
|
330
|
+
--md-outlined-field-bottom-space: 15px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
md-outlined-field,
|
|
334
|
+
md-filled-field {
|
|
335
|
+
width: 100%;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
input::-webkit-calendar-picker-indicator {
|
|
339
|
+
display: none;
|
|
340
|
+
-webkit-appearance: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
md-icon-button {
|
|
344
|
+
margin-right: 8px;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Safari Only */
|
|
348
|
+
_::-webkit-full-page-media,
|
|
349
|
+
_:future,
|
|
350
|
+
input {
|
|
351
|
+
padding-top: 14px;
|
|
352
|
+
padding-bottom: 7px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:host([filled]) _::-webkit-full-page-media,
|
|
356
|
+
:host([filled]) _:future,
|
|
357
|
+
:host([filled]) input {
|
|
358
|
+
padding-top: 21px;
|
|
359
|
+
padding-bottom: 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
_::-webkit-full-page-media,
|
|
363
|
+
_:future,
|
|
364
|
+
md-icon-button[open-picker] {
|
|
365
|
+
display: none;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
@supports (-webkit-touch-callout: none) {
|
|
369
|
+
/* CSS specific to iOS devices */
|
|
370
|
+
input::-webkit-date-and-time-value {
|
|
371
|
+
text-align: left;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
input {
|
|
375
|
+
min-width: 100px;
|
|
376
|
+
padding-bottom: 10px;
|
|
377
|
+
padding-top: 16px;
|
|
378
|
+
height: 30px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
:host([filled]) input {
|
|
382
|
+
padding-bottom: 3px;
|
|
383
|
+
padding-top: 23px;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* FireFox specific hacks! */
|
|
388
|
+
@-moz-document url-prefix() {
|
|
389
|
+
input {
|
|
390
|
+
min-width: 186px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
input[type='datetime-local'] {
|
|
394
|
+
min-width: 285px;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
md-icon-button[open-picker] {
|
|
398
|
+
display: none;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:host([filled]) {
|
|
402
|
+
--md-filled-field-label-text-populated-line-height: 16px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
:host(:not([filled])) {
|
|
406
|
+
--md-outlined-field-top-space: 16px;
|
|
407
|
+
--md-outlined-field-bottom-space: 16px;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
`; }
|
|
411
|
+
render() {
|
|
412
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
413
|
+
return html `
|
|
414
|
+
<${this.filled ? literal `md-filled-field` : literal `md-outlined-field`}
|
|
415
|
+
?disabled=${this.disabled}
|
|
416
|
+
?error=${this.error || this.nativeError}
|
|
417
|
+
error-text=${this.getErrorText()}
|
|
418
|
+
?focused=${this.focused}
|
|
419
|
+
?has-end=${this.hasTrailingIcon}
|
|
420
|
+
?has-start=${this.hasLeadingIcon}
|
|
421
|
+
label=${this.label}
|
|
422
|
+
?populated=${!!this.value}
|
|
423
|
+
?required=${this.required}
|
|
424
|
+
supporting-text=${this.supportingText}
|
|
425
|
+
?no-asterisk=${this.noAsterisk}
|
|
426
|
+
>
|
|
427
|
+
<span class="icon leading" slot="start">
|
|
428
|
+
<slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
|
|
429
|
+
</span>
|
|
430
|
+
<input
|
|
431
|
+
type=${this.type}
|
|
432
|
+
?disabled=${this.disabled}
|
|
433
|
+
aria-describedby="description"
|
|
434
|
+
aria-invalid=${this.error || this.nativeError}
|
|
435
|
+
aria-label=${this.label}
|
|
436
|
+
placeholder=${this.placeholder || ''}
|
|
437
|
+
?required=${this.required}
|
|
438
|
+
.value=${live(this.value)}
|
|
439
|
+
@change=${(e) => redispatchEvent(this, e)}
|
|
440
|
+
@focusin=${() => (this.focused = true)}
|
|
441
|
+
@focusout=${() => (this.focused = false)}
|
|
442
|
+
.autocomplete=${this.autocomplete}
|
|
443
|
+
max=${this.max}
|
|
444
|
+
min=${this.min}
|
|
445
|
+
@blur=${(e) => redispatchEvent(this, e)}
|
|
446
|
+
@input=${(event) => {
|
|
447
|
+
this.dirty = true;
|
|
448
|
+
this.value = event.target.value;
|
|
449
|
+
// Sync validity so that clients can check validity on input.
|
|
450
|
+
this.syncValidity();
|
|
451
|
+
}}
|
|
452
|
+
@select=${(e) => redispatchEvent(this, e)}
|
|
453
|
+
/>
|
|
454
|
+
<span class="icon trailing" slot="end">
|
|
455
|
+
<slot name="trailing-icon" @slotchange=${this.handleIconChange}>
|
|
456
|
+
<md-icon-button open-picker @click=${() => this.input?.showPicker()}>
|
|
457
|
+
<md-icon>calendar_today</md-icon>
|
|
458
|
+
</md-icon-button>
|
|
459
|
+
</slot>
|
|
460
|
+
</span>
|
|
461
|
+
</${this.filled ? literal `md-filled-field` : literal `md-outlined-field`}>
|
|
462
|
+
`;
|
|
463
|
+
/* eslint-enable lit/binding-positions, lit/no-invalid-html */
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
__decorate([
|
|
467
|
+
property({ type: Boolean, reflect: true })
|
|
468
|
+
], TitaniumDateInput.prototype, "disabled", null);
|
|
469
|
+
__decorate([
|
|
470
|
+
property({ type: Boolean, reflect: true })
|
|
471
|
+
], TitaniumDateInput.prototype, "error", null);
|
|
472
|
+
__decorate([
|
|
473
|
+
property({ attribute: 'error-text' })
|
|
474
|
+
], TitaniumDateInput.prototype, "errorText", null);
|
|
475
|
+
__decorate([
|
|
476
|
+
property({ type: Boolean, attribute: 'no-asterisk' })
|
|
477
|
+
], TitaniumDateInput.prototype, "noAsterisk", null);
|
|
478
|
+
__decorate([
|
|
479
|
+
property()
|
|
480
|
+
], TitaniumDateInput.prototype, "label", null);
|
|
481
|
+
__decorate([
|
|
482
|
+
property({ type: Boolean, attribute: 'filled' })
|
|
483
|
+
], TitaniumDateInput.prototype, "filled", null);
|
|
484
|
+
__decorate([
|
|
485
|
+
property({ type: Boolean, reflect: true })
|
|
486
|
+
], TitaniumDateInput.prototype, "required", null);
|
|
487
|
+
__decorate([
|
|
488
|
+
property()
|
|
489
|
+
], TitaniumDateInput.prototype, "value", null);
|
|
490
|
+
__decorate([
|
|
491
|
+
property({ attribute: 'prefix-text' })
|
|
492
|
+
], TitaniumDateInput.prototype, "prefixText", null);
|
|
493
|
+
__decorate([
|
|
494
|
+
property({ attribute: 'suffix-text' })
|
|
495
|
+
], TitaniumDateInput.prototype, "suffixText", null);
|
|
496
|
+
__decorate([
|
|
497
|
+
property({ type: Boolean, attribute: 'has-leading-icon' })
|
|
498
|
+
], TitaniumDateInput.prototype, "hasLeadingIcon", null);
|
|
499
|
+
__decorate([
|
|
500
|
+
property({ type: Boolean, attribute: 'has-trailing-icon' })
|
|
501
|
+
], TitaniumDateInput.prototype, "hasTrailingIcon", null);
|
|
502
|
+
__decorate([
|
|
503
|
+
property()
|
|
504
|
+
], TitaniumDateInput.prototype, "max", null);
|
|
505
|
+
__decorate([
|
|
506
|
+
property({ type: Number })
|
|
507
|
+
], TitaniumDateInput.prototype, "maxLength", null);
|
|
508
|
+
__decorate([
|
|
509
|
+
property()
|
|
510
|
+
], TitaniumDateInput.prototype, "min", null);
|
|
511
|
+
__decorate([
|
|
512
|
+
property({ attribute: 'supporting-text' })
|
|
513
|
+
], TitaniumDateInput.prototype, "supportingText", null);
|
|
514
|
+
__decorate([
|
|
515
|
+
property({ reflect: true, converter: stringConverter })
|
|
516
|
+
], TitaniumDateInput.prototype, "placeholder", null);
|
|
517
|
+
__decorate([
|
|
518
|
+
property({ reflect: true })
|
|
519
|
+
], TitaniumDateInput.prototype, "type", null);
|
|
520
|
+
__decorate([
|
|
521
|
+
state()
|
|
522
|
+
], TitaniumDateInput.prototype, "dirty", null);
|
|
523
|
+
__decorate([
|
|
524
|
+
state()
|
|
525
|
+
], TitaniumDateInput.prototype, "focused", null);
|
|
526
|
+
__decorate([
|
|
527
|
+
state()
|
|
528
|
+
], TitaniumDateInput.prototype, "nativeError", null);
|
|
529
|
+
__decorate([
|
|
530
|
+
state()
|
|
531
|
+
], TitaniumDateInput.prototype, "nativeErrorText", null);
|
|
532
|
+
__decorate([
|
|
533
|
+
property({ reflect: true, type: String })
|
|
534
|
+
], TitaniumDateInput.prototype, "autocomplete", null);
|
|
535
|
+
__decorate([
|
|
536
|
+
query('input')
|
|
537
|
+
], TitaniumDateInput.prototype, "input", null);
|
|
538
|
+
__decorate([
|
|
539
|
+
queryAssignedElements({ slot: 'leading-icon' })
|
|
540
|
+
], TitaniumDateInput.prototype, "leadingIcons", null);
|
|
541
|
+
__decorate([
|
|
542
|
+
queryAssignedElements({ slot: 'trailing-icon' })
|
|
543
|
+
], TitaniumDateInput.prototype, "trailingIcons", null);
|
|
544
|
+
TitaniumDateInput = __decorate([
|
|
545
|
+
customElement('titanium-date-input')
|
|
546
|
+
], TitaniumDateInput);
|
|
547
|
+
export { TitaniumDateInput };
|
|
548
|
+
//# sourceMappingURL=date-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-input.js","sourceRoot":"","sources":["date-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEjF,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,OAAO,oCAAoC,CAAC;AAC5C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yBAAyB,CAAC;AACjC,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAC/C;QACE,KAAK,EAAE,CAAC;QAMO,cAAS,GAAG,CAAC,YAAmB,EAAE,EAAE;YACnD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;gBACxD,OAAO;YACT,CAAC;YAED,IAAI,CAAC,gBAAgB,CA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A4C;AA/JlF,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA0a7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class DateRangeChangedEvent extends Event {
|
|
2
|
+
range: string;
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
static eventType: string;
|
|
6
|
+
constructor(range: string, startDate: string, endDate: string, eventInitDict?: EventInit);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=date-range-change-event.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class DateRangeChangedEvent extends Event {
|
|
2
|
+
static { this.eventType = 'date-range-changed'; }
|
|
3
|
+
constructor(range, startDate, endDate, eventInitDict) {
|
|
4
|
+
super(DateRangeChangedEvent.eventType, { bubbles: false, composed: true, ...eventInitDict });
|
|
5
|
+
this.range = range;
|
|
6
|
+
this.startDate = startDate;
|
|
7
|
+
this.endDate = endDate;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=date-range-change-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-change-event.js","sourceRoot":"","sources":["date-range-change-event.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,qBAAsB,SAAQ,KAAK;aACvC,cAAS,GAAG,oBAAoB,CAAC;IAExC,YACS,KAAa,EACb,SAAiB,EACjB,OAAe,EACtB,aAAyB;QAEzB,KAAK,CAAC,qBAAqB,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;QALtF,UAAK,GAAL,KAAK,CAAQ;QACb,cAAS,GAAT,SAAS,CAAQ;QACjB,YAAO,GAAP,OAAO,CAAQ;IAIxB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import '@material/web/icon/icon';
|
|
2
|
+
import '@material/web/field/outlined-field';
|
|
3
|
+
import '@material/web/field/filled-field';
|
|
4
|
+
import '@material/web/menu/menu';
|
|
5
|
+
import '@material/web/button/text-button';
|
|
6
|
+
import '@material/web/list/list';
|
|
7
|
+
import '@material/web/list/list-item';
|
|
8
|
+
import '../date-input/date-input';
|
|
9
|
+
import { LitElement } from 'lit';
|
|
10
|
+
import { DateRangeOption } from './types/date-range-option';
|
|
11
|
+
/**
|
|
12
|
+
* Date range selector that allows selection from a list of pre-defined ranges or a custom range
|
|
13
|
+
*
|
|
14
|
+
* @element titanium-date-range-selector
|
|
15
|
+
*
|
|
16
|
+
* @fires date-range-changed - Fired when a range selection is made or cleared or the start or end date are changed to a valid combination
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class TitaniumDateRangeSelector extends LitElement {
|
|
20
|
+
#private;
|
|
21
|
+
/**
|
|
22
|
+
* The selected selected range.
|
|
23
|
+
*/
|
|
24
|
+
accessor range: string;
|
|
25
|
+
/**
|
|
26
|
+
// * The selected start date.
|
|
27
|
+
// */
|
|
28
|
+
accessor startDate: string;
|
|
29
|
+
accessor endDate: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sets floating label value.
|
|
32
|
+
*/
|
|
33
|
+
accessor label: string;
|
|
34
|
+
/**
|
|
35
|
+
* Type of date inputs
|
|
36
|
+
*/
|
|
37
|
+
accessor type: 'date' | 'datetime-local';
|
|
38
|
+
/**
|
|
39
|
+
* Whether or not the input should be disabled
|
|
40
|
+
*/
|
|
41
|
+
accessor disabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether or not the input should be filled
|
|
44
|
+
*/
|
|
45
|
+
accessor filled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Override default ranges with custom options. Needs to contain, at least, 'allTime'.
|
|
48
|
+
*/
|
|
49
|
+
accessor customDateRanges: Map<string, DateRangeOption> | null;
|
|
50
|
+
/**
|
|
51
|
+
* Conveys additional information below the text field, such as how it should
|
|
52
|
+
* be used.
|
|
53
|
+
*/
|
|
54
|
+
accessor supportingText: string;
|
|
55
|
+
accessor positioning: 'absolute' | 'fixed' | 'document' | 'popover';
|
|
56
|
+
private accessor menu;
|
|
57
|
+
private accessor list;
|
|
58
|
+
private accessor proposedRange;
|
|
59
|
+
private accessor proposedStartDate;
|
|
60
|
+
private accessor proposedEndDate;
|
|
61
|
+
protected accessor open: boolean;
|
|
62
|
+
private accessor focused;
|
|
63
|
+
updated(changedProps: any): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* resets the validity of the start and end date inputs
|
|
66
|
+
*/
|
|
67
|
+
reset(): Promise<void>;
|
|
68
|
+
static styles: import("lit").CSSResult;
|
|
69
|
+
render(): import("lit-html").TemplateResult;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=date-range-selector.d.ts.map
|