@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,289 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon';
|
|
3
|
+
import '@material/web/iconbutton/icon-button';
|
|
4
|
+
import '@material/web/ripple/ripple';
|
|
5
|
+
import '@material/web/focus/md-focus-ring';
|
|
6
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
7
|
+
import { customElement, property, queryAssignedElements } from 'lit/decorators.js';
|
|
8
|
+
import { ellipsis } from '@leavittsoftware/web/titanium/styles/ellipsis';
|
|
9
|
+
let TitaniumChip = class TitaniumChip extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The URL that the link button points to.
|
|
14
|
+
*/
|
|
15
|
+
this.href = '';
|
|
16
|
+
/**
|
|
17
|
+
* The filename to use when downloading the linked resource.
|
|
18
|
+
* If not specified, the browser will determine a filename.
|
|
19
|
+
* This is only applicable when the button is used as a link (`href` is set).
|
|
20
|
+
*/
|
|
21
|
+
this.download = '';
|
|
22
|
+
/**
|
|
23
|
+
* Where to display the linked `href` URL for a link button. Common options
|
|
24
|
+
* include `_blank` to open in a new tab.
|
|
25
|
+
*/
|
|
26
|
+
this.target = '';
|
|
27
|
+
this.#inputChipRemoveIcon_accessor_storage = 'close';
|
|
28
|
+
this.#disabled_accessor_storage = false;
|
|
29
|
+
this.#filled_accessor_storage = false;
|
|
30
|
+
this.#hasLeadingItems_accessor_storage = false;
|
|
31
|
+
this.#hasTrailingItems_accessor_storage = false;
|
|
32
|
+
}
|
|
33
|
+
#label_accessor_storage;
|
|
34
|
+
/**
|
|
35
|
+
* Label / text of the chip
|
|
36
|
+
*/
|
|
37
|
+
get label() { return this.#label_accessor_storage; }
|
|
38
|
+
set label(value) { this.#label_accessor_storage = value; }
|
|
39
|
+
#selected_accessor_storage;
|
|
40
|
+
/**
|
|
41
|
+
* When true, the chip is selected
|
|
42
|
+
*/
|
|
43
|
+
get selected() { return this.#selected_accessor_storage; }
|
|
44
|
+
set selected(value) { this.#selected_accessor_storage = value; }
|
|
45
|
+
#inputChip_accessor_storage;
|
|
46
|
+
/**
|
|
47
|
+
* When true, trailing slot is replaced with a remove icon button
|
|
48
|
+
*/
|
|
49
|
+
get inputChip() { return this.#inputChip_accessor_storage; }
|
|
50
|
+
set inputChip(value) { this.#inputChip_accessor_storage = value; }
|
|
51
|
+
#nonInteractive_accessor_storage;
|
|
52
|
+
/**
|
|
53
|
+
* Prevents mouse events and disables the ripple effect
|
|
54
|
+
*/
|
|
55
|
+
get nonInteractive() { return this.#nonInteractive_accessor_storage; }
|
|
56
|
+
set nonInteractive(value) { this.#nonInteractive_accessor_storage = value; }
|
|
57
|
+
#inputChipRemoveIcon_accessor_storage;
|
|
58
|
+
/**
|
|
59
|
+
* Icon name of the remove icon chip
|
|
60
|
+
*/
|
|
61
|
+
get inputChipRemoveIcon() { return this.#inputChipRemoveIcon_accessor_storage; }
|
|
62
|
+
set inputChipRemoveIcon(value) { this.#inputChipRemoveIcon_accessor_storage = value; }
|
|
63
|
+
#disabled_accessor_storage;
|
|
64
|
+
/**
|
|
65
|
+
* Whether or not the input should be disabled
|
|
66
|
+
*/
|
|
67
|
+
get disabled() { return this.#disabled_accessor_storage; }
|
|
68
|
+
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
69
|
+
#filled_accessor_storage;
|
|
70
|
+
get filled() { return this.#filled_accessor_storage; }
|
|
71
|
+
set filled(value) { this.#filled_accessor_storage = value; }
|
|
72
|
+
#hasLeadingItems_accessor_storage;
|
|
73
|
+
get hasLeadingItems() { return this.#hasLeadingItems_accessor_storage; }
|
|
74
|
+
set hasLeadingItems(value) { this.#hasLeadingItems_accessor_storage = value; }
|
|
75
|
+
#hasTrailingItems_accessor_storage;
|
|
76
|
+
get hasTrailingItems() { return this.#hasTrailingItems_accessor_storage; }
|
|
77
|
+
set hasTrailingItems(value) { this.#hasTrailingItems_accessor_storage = value; }
|
|
78
|
+
static { this.styles = [
|
|
79
|
+
ellipsis,
|
|
80
|
+
css `
|
|
81
|
+
:host {
|
|
82
|
+
display: grid;
|
|
83
|
+
height: 32px;
|
|
84
|
+
width: auto;
|
|
85
|
+
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
|
|
90
|
+
text-align: left;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
a,
|
|
94
|
+
button {
|
|
95
|
+
display: grid;
|
|
96
|
+
align-items: center;
|
|
97
|
+
align-content: center;
|
|
98
|
+
|
|
99
|
+
position: relative;
|
|
100
|
+
|
|
101
|
+
appearance: button;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
|
|
104
|
+
font: inherit;
|
|
105
|
+
margin: 0;
|
|
106
|
+
border: none;
|
|
107
|
+
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
height: inherit;
|
|
110
|
+
text-align: inherit;
|
|
111
|
+
|
|
112
|
+
border: 1px solid var(--titanium-chip-outline-color, var(--md-sys-color-outline));
|
|
113
|
+
border-radius: 8px;
|
|
114
|
+
--md-focus-ring-shape: 8px;
|
|
115
|
+
|
|
116
|
+
color: inherit;
|
|
117
|
+
background: inherit;
|
|
118
|
+
width: inherit;
|
|
119
|
+
|
|
120
|
+
outline: none;
|
|
121
|
+
|
|
122
|
+
font-size: inherit;
|
|
123
|
+
font-weight: inherit;
|
|
124
|
+
line-height: inherit;
|
|
125
|
+
letter-spacing: inherit;
|
|
126
|
+
text-decoration: none;
|
|
127
|
+
|
|
128
|
+
padding: 0 12px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host([filled]) a,
|
|
132
|
+
:host([filled]) button {
|
|
133
|
+
border: none;
|
|
134
|
+
background-color: var(--titanium-chip-filled-background-color, var(--md-sys-color-surface-container));
|
|
135
|
+
color: var(--titanium-chip-filled-color, var(--md-sys-color-on-surface));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([selected]) button,
|
|
139
|
+
:host([selected]) a,
|
|
140
|
+
:host([has-leading-items]) button,
|
|
141
|
+
:host([has-leading-items]) a {
|
|
142
|
+
grid: 'icon label' / auto 1fr;
|
|
143
|
+
padding-left: 8px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([input-chip]) button,
|
|
147
|
+
:host([input-chip]) a,
|
|
148
|
+
:host([has-trailing-items]) button,
|
|
149
|
+
:host([has-trailing-items]) a {
|
|
150
|
+
grid: 'label trailing' / 1fr auto;
|
|
151
|
+
padding-right: 4px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([selected][input-chip]) button,
|
|
155
|
+
:host([selected][input-chip]) a,
|
|
156
|
+
:host([selected][has-leading-items]) button,
|
|
157
|
+
:host([selected][has-leading-items]) a,
|
|
158
|
+
:host([has-leading-items][input-chip]) button,
|
|
159
|
+
:host([has-leading-items][input-chip]) a,
|
|
160
|
+
:host([has-trailing-items][has-leading-items]) button,
|
|
161
|
+
:host([has-trailing-items][has-leading-items]) a {
|
|
162
|
+
grid: 'icon label trailing' / auto 1fr auto;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
main[label] {
|
|
166
|
+
font-size: inherit;
|
|
167
|
+
font-weight: inherit;
|
|
168
|
+
line-height: inherit;
|
|
169
|
+
letter-spacing: inherit;
|
|
170
|
+
text-align: inherit;
|
|
171
|
+
|
|
172
|
+
padding: 6px 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
md-icon[selected-check] {
|
|
176
|
+
padding-right: var(--titanium-chip-selected-with-leading-icon-leading-space, 8px);
|
|
177
|
+
--md-icon-size: 18px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
[name='icon']::slotted(md-icon) {
|
|
181
|
+
color: var(--md-sys-color-primary);
|
|
182
|
+
--md-icon-size: 18px;
|
|
183
|
+
padding-right: var(--titanium-chip-with-leading-icon-leading-space, 8px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[name='icon']::slotted(profile-picture) {
|
|
187
|
+
padding-right: var(--titanium-chip-with-leading-icon-leading-space, 8px);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
md-icon-button {
|
|
191
|
+
--md-icon-button-icon-size: 18px;
|
|
192
|
+
--md-icon-button-state-layer-height: 24px;
|
|
193
|
+
--md-icon-button-state-layer-width: 24px;
|
|
194
|
+
margin-left: 4px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host([selected]) button {
|
|
198
|
+
background: var(--titanium-chip-selected-container-color, var(--md-sys-color-secondary-container));
|
|
199
|
+
color: var(--titanium-chip-selected-text-color, var(--md-sys-color-on-secondary-container));
|
|
200
|
+
border-color: var(--titanium-chip-selected-outline-color, var(--md-sys-color-secondary-container));
|
|
201
|
+
}
|
|
202
|
+
`,
|
|
203
|
+
]; }
|
|
204
|
+
render() {
|
|
205
|
+
return html ` ${this.href ? this.renderLink() : this.renderButton()} `;
|
|
206
|
+
}
|
|
207
|
+
renderContent() {
|
|
208
|
+
const buttonId = this.href ? 'link' : 'button';
|
|
209
|
+
return html `
|
|
210
|
+
<md-ripple part="focus-ring" for=${buttonId} ?disabled=${this.disabled}></md-ripple>
|
|
211
|
+
<md-focus-ring part="ripple" for=${buttonId}></md-focus-ring>
|
|
212
|
+
${this.selected ? html `<md-icon selected-check>check</md-icon>` : html `<slot name="icon" @slotchange=${() => (this.hasLeadingItems = this.leadingSlotElements.length > 0)}></slot>`}
|
|
213
|
+
|
|
214
|
+
<main label ellipsis><slot name="label">${this.label}</slot></main>
|
|
215
|
+
|
|
216
|
+
${this.inputChip
|
|
217
|
+
? html `<md-icon-button
|
|
218
|
+
?disabled=${this.disabled}
|
|
219
|
+
@click=${(e) => {
|
|
220
|
+
e.stopPropagation();
|
|
221
|
+
this.dispatchEvent(new Event('remove'));
|
|
222
|
+
}}
|
|
223
|
+
><md-icon>${this.inputChipRemoveIcon}</md-icon></md-icon-button
|
|
224
|
+
>`
|
|
225
|
+
: html `<slot name="trailing" @slotchange=${() => (this.hasTrailingItems = this.trailingSlotElements.length > 0)}></slot>`}
|
|
226
|
+
</slot>
|
|
227
|
+
`;
|
|
228
|
+
}
|
|
229
|
+
renderButton() {
|
|
230
|
+
return html `<button id="button" part="button" ?inert=${this.nonInteractive} ?disabled=${this.disabled}>${this.renderContent()}</button>`;
|
|
231
|
+
}
|
|
232
|
+
renderLink() {
|
|
233
|
+
return html `<a
|
|
234
|
+
id="link"
|
|
235
|
+
tabindex=${this.disabled ? -1 : nothing}
|
|
236
|
+
href=${this.href}
|
|
237
|
+
download=${this.download || nothing}
|
|
238
|
+
target=${this.target || nothing}
|
|
239
|
+
>${this.renderContent()}
|
|
240
|
+
</a>`;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
__decorate([
|
|
244
|
+
property({ type: String })
|
|
245
|
+
], TitaniumChip.prototype, "label", null);
|
|
246
|
+
__decorate([
|
|
247
|
+
property({ type: Boolean, reflect: true })
|
|
248
|
+
], TitaniumChip.prototype, "selected", null);
|
|
249
|
+
__decorate([
|
|
250
|
+
property({ type: String })
|
|
251
|
+
], TitaniumChip.prototype, "href", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
property()
|
|
254
|
+
], TitaniumChip.prototype, "download", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
property()
|
|
257
|
+
], TitaniumChip.prototype, "target", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
property({ type: Boolean, reflect: true, attribute: 'input-chip' })
|
|
260
|
+
], TitaniumChip.prototype, "inputChip", null);
|
|
261
|
+
__decorate([
|
|
262
|
+
property({ type: Boolean, reflect: true, attribute: 'non-interactive' })
|
|
263
|
+
], TitaniumChip.prototype, "nonInteractive", null);
|
|
264
|
+
__decorate([
|
|
265
|
+
property({ type: String })
|
|
266
|
+
], TitaniumChip.prototype, "inputChipRemoveIcon", null);
|
|
267
|
+
__decorate([
|
|
268
|
+
property({ type: Boolean, reflect: true })
|
|
269
|
+
], TitaniumChip.prototype, "disabled", null);
|
|
270
|
+
__decorate([
|
|
271
|
+
property({ type: Boolean })
|
|
272
|
+
], TitaniumChip.prototype, "filled", null);
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: Boolean, reflect: true, attribute: 'has-leading-items' })
|
|
275
|
+
], TitaniumChip.prototype, "hasLeadingItems", null);
|
|
276
|
+
__decorate([
|
|
277
|
+
property({ type: Boolean, reflect: true, attribute: 'has-trailing-items' })
|
|
278
|
+
], TitaniumChip.prototype, "hasTrailingItems", null);
|
|
279
|
+
__decorate([
|
|
280
|
+
queryAssignedElements({ slot: 'icon' })
|
|
281
|
+
], TitaniumChip.prototype, "leadingSlotElements", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
queryAssignedElements({ slot: 'trailing' })
|
|
284
|
+
], TitaniumChip.prototype, "trailingSlotElements", void 0);
|
|
285
|
+
TitaniumChip = __decorate([
|
|
286
|
+
customElement('titanium-chip')
|
|
287
|
+
], TitaniumChip);
|
|
288
|
+
export { TitaniumChip };
|
|
289
|
+
//# sourceMappingURL=chip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.js","sourceRoot":"","sources":["chip.ts"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,sCAAsC,CAAC;AAE9C,OAAO,6BAA6B,CAAC;AACrC,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGlE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAWL;;WAEG;QACyB,SAAI,GAAG,EAAE,CAAC;QAEtC;;;;WAIG;QACS,aAAQ,GAAG,EAAE,CAAC;QAE1B;;;WAGG;QACS,WAAM,GAAiD,EAAE,CAAC;QAejC,6CAA8B,OAAO,CAAC;QAKtB,kCAAoB,KAAK,CAAC;QAEzC,gCAAkB,KAAK,CAAC;QAE+B,yCAAkB,KAAK,CAAC;QACvB,0CAAmB,KAAK,CAAC;IA+KzH,CAAC;IA/NsC,wBAAc;IAHnD;;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ator/outlined-input-validator';
|
|
3
|
+
import '../../titanium/input-validator/filled-input-validator';
|
|
4
|
+
/**
|
|
5
|
+
* Multi select outlined themed input that styles
|
|
6
|
+
* slotted in chips and add button
|
|
7
|
+
*
|
|
8
|
+
* @element titanium-chip-multi-select
|
|
9
|
+
*
|
|
10
|
+
* @slot default - Main slot (intended to be a <md-outlined-button> and a list of <md-chip>)
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class TitaniumChipMultiSelect extends LitElement {
|
|
14
|
+
/**
|
|
15
|
+
* Swaps outlined validator for filled validator
|
|
16
|
+
*/
|
|
17
|
+
accessor filled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Label of input to display to users
|
|
20
|
+
*/
|
|
21
|
+
accessor label: string;
|
|
22
|
+
/**
|
|
23
|
+
* Text to show when there are no items
|
|
24
|
+
*/
|
|
25
|
+
accessor noItemsText: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adds the * to the label
|
|
28
|
+
*/
|
|
29
|
+
accessor required: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates whether or not to show the no items text
|
|
32
|
+
*/
|
|
33
|
+
accessor hasItems: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Passes the supportingText property to the input-validator
|
|
36
|
+
*/
|
|
37
|
+
accessor supportingText: string;
|
|
38
|
+
/**
|
|
39
|
+
* Passes the error property to the input-validator
|
|
40
|
+
*/
|
|
41
|
+
accessor error: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Passes the errorText property to the input-validator
|
|
44
|
+
*/
|
|
45
|
+
accessor errorText: string;
|
|
46
|
+
/**
|
|
47
|
+
* Passes the resizable property to the input-validator
|
|
48
|
+
*/
|
|
49
|
+
accessor resizable: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether or not the input should appear disabled (chips, buttons and anything else slotted will still have to be disabled individually).
|
|
52
|
+
*/
|
|
53
|
+
accessor disabled: boolean;
|
|
54
|
+
private accessor validator;
|
|
55
|
+
updated(changedProps: PropertyValues<this>): void;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the input passes validity checks.
|
|
58
|
+
*/
|
|
59
|
+
checkValidity(): boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid.
|
|
62
|
+
*/
|
|
63
|
+
reportValidity(): boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Resets the inputs state.
|
|
66
|
+
*/
|
|
67
|
+
reset(): void;
|
|
68
|
+
static styles: import("lit").CSSResult[];
|
|
69
|
+
protected render(): import("lit-html").TemplateResult;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=chip-multi-select.d.ts.map
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, LitElement } from 'lit';
|
|
3
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
4
|
+
import { literal, html } from 'lit/static-html.js';
|
|
5
|
+
import '../../titanium/input-validator/outlined-input-validator';
|
|
6
|
+
import '../../titanium/input-validator/filled-input-validator';
|
|
7
|
+
/**
|
|
8
|
+
* Multi select outlined themed input that styles
|
|
9
|
+
* slotted in chips and add button
|
|
10
|
+
*
|
|
11
|
+
* @element titanium-chip-multi-select
|
|
12
|
+
*
|
|
13
|
+
* @slot default - Main slot (intended to be a <md-outlined-button> and a list of <md-chip>)
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
let TitaniumChipMultiSelect = class TitaniumChipMultiSelect extends LitElement {
|
|
17
|
+
#filled_accessor_storage = false;
|
|
18
|
+
/**
|
|
19
|
+
* Swaps outlined validator for filled validator
|
|
20
|
+
*/
|
|
21
|
+
get filled() { return this.#filled_accessor_storage; }
|
|
22
|
+
set filled(value) { this.#filled_accessor_storage = value; }
|
|
23
|
+
#label_accessor_storage;
|
|
24
|
+
/**
|
|
25
|
+
* Label of input to display to users
|
|
26
|
+
*/
|
|
27
|
+
get label() { return this.#label_accessor_storage; }
|
|
28
|
+
set label(value) { this.#label_accessor_storage = value; }
|
|
29
|
+
#noItemsText_accessor_storage = 'No items';
|
|
30
|
+
/**
|
|
31
|
+
* Text to show when there are no items
|
|
32
|
+
*/
|
|
33
|
+
get noItemsText() { return this.#noItemsText_accessor_storage; }
|
|
34
|
+
set noItemsText(value) { this.#noItemsText_accessor_storage = value; }
|
|
35
|
+
#required_accessor_storage = false;
|
|
36
|
+
/**
|
|
37
|
+
* Adds the * to the label
|
|
38
|
+
*/
|
|
39
|
+
get required() { return this.#required_accessor_storage; }
|
|
40
|
+
set required(value) { this.#required_accessor_storage = value; }
|
|
41
|
+
#hasItems_accessor_storage;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether or not to show the no items text
|
|
44
|
+
*/
|
|
45
|
+
get hasItems() { return this.#hasItems_accessor_storage; }
|
|
46
|
+
set hasItems(value) { this.#hasItems_accessor_storage = value; }
|
|
47
|
+
#supportingText_accessor_storage;
|
|
48
|
+
/**
|
|
49
|
+
* Passes the supportingText property to the input-validator
|
|
50
|
+
*/
|
|
51
|
+
get supportingText() { return this.#supportingText_accessor_storage; }
|
|
52
|
+
set supportingText(value) { this.#supportingText_accessor_storage = value; }
|
|
53
|
+
#error_accessor_storage;
|
|
54
|
+
/**
|
|
55
|
+
* Passes the error property to the input-validator
|
|
56
|
+
*/
|
|
57
|
+
get error() { return this.#error_accessor_storage; }
|
|
58
|
+
set error(value) { this.#error_accessor_storage = value; }
|
|
59
|
+
#errorText_accessor_storage;
|
|
60
|
+
/**
|
|
61
|
+
* Passes the errorText property to the input-validator
|
|
62
|
+
*/
|
|
63
|
+
get errorText() { return this.#errorText_accessor_storage; }
|
|
64
|
+
set errorText(value) { this.#errorText_accessor_storage = value; }
|
|
65
|
+
#resizable_accessor_storage;
|
|
66
|
+
/**
|
|
67
|
+
* Passes the resizable property to the input-validator
|
|
68
|
+
*/
|
|
69
|
+
get resizable() { return this.#resizable_accessor_storage; }
|
|
70
|
+
set resizable(value) { this.#resizable_accessor_storage = value; }
|
|
71
|
+
#disabled_accessor_storage;
|
|
72
|
+
/**
|
|
73
|
+
* Whether or not the input should appear disabled (chips, buttons and anything else slotted will still have to be disabled individually).
|
|
74
|
+
*/
|
|
75
|
+
get disabled() { return this.#disabled_accessor_storage; }
|
|
76
|
+
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
77
|
+
#validator_accessor_storage;
|
|
78
|
+
get validator() { return this.#validator_accessor_storage; }
|
|
79
|
+
set validator(value) { this.#validator_accessor_storage = value; }
|
|
80
|
+
updated(changedProps) {
|
|
81
|
+
if ((changedProps.get('hasItems') && changedProps.has('hasItems')) || (this.hasItems && changedProps.has('hasItems'))) {
|
|
82
|
+
this.reportValidity();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the input passes validity checks.
|
|
87
|
+
*/
|
|
88
|
+
checkValidity() {
|
|
89
|
+
return this.validator?.checkValidity();
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid.
|
|
93
|
+
*/
|
|
94
|
+
reportValidity() {
|
|
95
|
+
return this.validator?.reportValidity();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Resets the inputs state.
|
|
99
|
+
*/
|
|
100
|
+
reset() {
|
|
101
|
+
this.validator?.reset();
|
|
102
|
+
}
|
|
103
|
+
static { this.styles = [
|
|
104
|
+
css `
|
|
105
|
+
:host {
|
|
106
|
+
display: block;
|
|
107
|
+
width: 100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
titanium-outlined-input-validator,
|
|
111
|
+
titanium-filled-input-validator {
|
|
112
|
+
display: block;
|
|
113
|
+
width: 100%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
slot-container {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
gap: 8px;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
span {
|
|
124
|
+
font-size: 13px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([filled]) {
|
|
128
|
+
--md-filled-field-container-shape: 16px;
|
|
129
|
+
|
|
130
|
+
--md-filled-field-active-indicator-height: 0;
|
|
131
|
+
--md-filled-field-error-active-indicator-height: 0;
|
|
132
|
+
--md-filled-field-hover-active-indicator-height: 0;
|
|
133
|
+
--md-filled-field-focus-active-indicator-height: 0;
|
|
134
|
+
--md-filled-field-disabled-active-indicator-height: 0;
|
|
135
|
+
|
|
136
|
+
slot-container {
|
|
137
|
+
margin-top: 6px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
titanium-filled-input-validator {
|
|
141
|
+
--md-filled-field-with-label-bottom-space: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
::slotted(md-filled-button),
|
|
145
|
+
::slotted(md-filled-tonal-button) {
|
|
146
|
+
--md-filled-button-container-shape: 8px;
|
|
147
|
+
--md-filled-button-container-height: 32px;
|
|
148
|
+
|
|
149
|
+
--md-filled-button-with-trailing-icon-leading-space: 8px;
|
|
150
|
+
--md-filled-button-with-trailing-icon-trailing-space: 16px;
|
|
151
|
+
--md-filled-button-with-leading-icon-leading-space: 8px;
|
|
152
|
+
--md-filled-button-with-leading-icon-trailing-space: 16px;
|
|
153
|
+
|
|
154
|
+
--md-filled-tonal-button-with-trailing-icon-leading-space: 8px;
|
|
155
|
+
--md-filled-tonal-button-with-trailing-icon-trailing-space: 16px;
|
|
156
|
+
--md-filled-tonal-button-with-leading-icon-leading-space: 8px;
|
|
157
|
+
--md-filled-tonal-button-with-leading-icon-trailing-space: 16px;
|
|
158
|
+
--md-filled-tonal-button-container-shape: 8px;
|
|
159
|
+
--md-filled-tonal-button-container-height: 32px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
::slotted(md-input-chip) {
|
|
163
|
+
background: var(--md-sys-color-surface-container);
|
|
164
|
+
--md-sys-color-outline: transparent;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
`,
|
|
168
|
+
]; }
|
|
169
|
+
render() {
|
|
170
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
171
|
+
return html `
|
|
172
|
+
<${this.filled ? literal `titanium-filled-input-validator` : literal `titanium-outlined-input-validator`}
|
|
173
|
+
?disabled=${this.disabled}
|
|
174
|
+
.evaluator=${() => !this.required || !!this.hasItems}
|
|
175
|
+
?required=${this.required}
|
|
176
|
+
.label=${this.label}
|
|
177
|
+
.resizable=${this.resizable}
|
|
178
|
+
.supportingText=${this.supportingText}
|
|
179
|
+
.errorText=${this.errorText}
|
|
180
|
+
?error=${this.error}
|
|
181
|
+
>
|
|
182
|
+
<slot-container>
|
|
183
|
+
<slot></slot>
|
|
184
|
+
${!this.hasItems ? html ` <span>${this.noItemsText}</span>` : ''}
|
|
185
|
+
</slot-container>
|
|
186
|
+
</${this.filled ? literal `titanium-filled-input-validator` : literal `titanium-outlined-input-validator`}>
|
|
187
|
+
`;
|
|
188
|
+
/* eslint-enable lit/binding-positions, lit/no-invalid-html */
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
__decorate([
|
|
192
|
+
property({ type: Boolean, attribute: 'filled' })
|
|
193
|
+
], TitaniumChipMultiSelect.prototype, "filled", null);
|
|
194
|
+
__decorate([
|
|
195
|
+
property({ type: String })
|
|
196
|
+
], TitaniumChipMultiSelect.prototype, "label", null);
|
|
197
|
+
__decorate([
|
|
198
|
+
property({ type: String })
|
|
199
|
+
], TitaniumChipMultiSelect.prototype, "noItemsText", null);
|
|
200
|
+
__decorate([
|
|
201
|
+
property({ type: Boolean })
|
|
202
|
+
], TitaniumChipMultiSelect.prototype, "required", null);
|
|
203
|
+
__decorate([
|
|
204
|
+
property({ type: Boolean })
|
|
205
|
+
], TitaniumChipMultiSelect.prototype, "hasItems", null);
|
|
206
|
+
__decorate([
|
|
207
|
+
property({ type: String })
|
|
208
|
+
], TitaniumChipMultiSelect.prototype, "supportingText", null);
|
|
209
|
+
__decorate([
|
|
210
|
+
property({ type: Boolean })
|
|
211
|
+
], TitaniumChipMultiSelect.prototype, "error", null);
|
|
212
|
+
__decorate([
|
|
213
|
+
property({ type: String })
|
|
214
|
+
], TitaniumChipMultiSelect.prototype, "errorText", null);
|
|
215
|
+
__decorate([
|
|
216
|
+
property({ type: Boolean })
|
|
217
|
+
], TitaniumChipMultiSelect.prototype, "resizable", null);
|
|
218
|
+
__decorate([
|
|
219
|
+
property({ type: Boolean, reflect: true })
|
|
220
|
+
], TitaniumChipMultiSelect.prototype, "disabled", null);
|
|
221
|
+
__decorate([
|
|
222
|
+
query('titanium-outlined-input-validator, titanium-filled-input-validator')
|
|
223
|
+
], TitaniumChipMultiSelect.prototype, "validator", null);
|
|
224
|
+
TitaniumChipMultiSelect = __decorate([
|
|
225
|
+
customElement('titanium-chip-multi-select')
|
|
226
|
+
], TitaniumChipMultiSelect);
|
|
227
|
+
export { TitaniumChipMultiSelect };
|
|
228
|
+
//# sourceMappingURL=chip-multi-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-multi-select.js","sourceRoot":"","sources":["chip-multi-select.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,yDAAyD,CAAC;AACjE,OAAO,uDAAuD,CAAC;AAE/D;;;;;;;;GAQG;AAGI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAIM,2BAAkB,KAAK,CAAC;IAHnF;;OAEG;IACwD,IAAA,MAAM,4CAAkB;IAAxB,IAAA,MAAM,kDAAkB;IAI9C,wBAAc;IAHnD;;OAEG;IACkC,IAAA,KAA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ArC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDAA4B;AAKnB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6DAAiC;AAKtB;IAArC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDAAyB;AAKhB;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAA4B;AAKjB;IAArC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wDAA6B;AAKJ;IAApD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAA4B;AAEuB;IAA7F,KAAK,CAAC,oEAAoE,CAAC;wDAE9D;AApDH,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CAyKnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/progress/circular-progress';
|
|
3
|
+
/**
|
|
4
|
+
* A simple circle with loading indicator that uses promise driven pending-state-events
|
|
5
|
+
*
|
|
6
|
+
* @element titanium-circle-loading-indicator
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class TitaniumCircleLoadingIndicator extends LitElement {
|
|
11
|
+
#private;
|
|
12
|
+
accessor pendingStateElement: Element | null;
|
|
13
|
+
private accessor open;
|
|
14
|
+
private accessor closed;
|
|
15
|
+
firstUpdated(): void;
|
|
16
|
+
static styles: import("lit").CSSResult;
|
|
17
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=circle-loading-indicator.d.ts.map
|