@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,745 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import '@material/web/checkbox/checkbox';
|
|
3
|
+
import '@material/web/icon/icon';
|
|
4
|
+
import '@material/web/focus/md-focus-ring';
|
|
5
|
+
import '@material/web/ripple/ripple';
|
|
6
|
+
import '@material/web/menu/menu';
|
|
7
|
+
import '@material/web/menu/menu-item';
|
|
8
|
+
import '@material/web/iconbutton/icon-button';
|
|
9
|
+
import './data-table-core-settings-choose-columns-dialog';
|
|
10
|
+
import './data-table-core-settings-sort-dialog';
|
|
11
|
+
import './data-table-core-reorder-dialog';
|
|
12
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
13
|
+
import { property, customElement, query, state } from 'lit/decorators.js';
|
|
14
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
15
|
+
import { a } from '@leavittsoftware/web/titanium/styles/a';
|
|
16
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
17
|
+
import { LoadWhile } from '@leavittsoftware/web/titanium/helpers/load-while';
|
|
18
|
+
import { niceBadgeStyles } from '../styles/nice-badge';
|
|
19
|
+
import { mkConfig, generateCsv, download } from 'export-to-csv';
|
|
20
|
+
import dayjs from 'dayjs/esm';
|
|
21
|
+
import { dataTableContentStyles } from './data-table-content-styles';
|
|
22
|
+
import { redispatchEvent } from '@material/web/internal/events/redispatch-event';
|
|
23
|
+
export function generateDefaultSortFromMetaData(tableMetaData) {
|
|
24
|
+
return (tableMetaData?.itemMetaData
|
|
25
|
+
.filter((o) => o.defaultSort)
|
|
26
|
+
.sort((a, b) => (a.defaultSort?.position ?? 0) - (b.defaultSort?.position ?? 0))
|
|
27
|
+
.map((o) => {
|
|
28
|
+
return { key: o.key, direction: o.defaultSort?.direction ?? 'asc' };
|
|
29
|
+
}) ?? []);
|
|
30
|
+
}
|
|
31
|
+
let TitaniumDataTableCore = class TitaniumDataTableCore extends LoadWhile(LitElement) {
|
|
32
|
+
#items_accessor_storage = [];
|
|
33
|
+
/**
|
|
34
|
+
* Current items displayed on the table.
|
|
35
|
+
*/
|
|
36
|
+
get items() { return this.#items_accessor_storage; }
|
|
37
|
+
set items(value) { this.#items_accessor_storage = value; }
|
|
38
|
+
#tableMetaData_accessor_storage = null;
|
|
39
|
+
get tableMetaData() { return this.#tableMetaData_accessor_storage; }
|
|
40
|
+
set tableMetaData(value) { this.#tableMetaData_accessor_storage = value; }
|
|
41
|
+
#supplementalItemStyles_accessor_storage = null;
|
|
42
|
+
get supplementalItemStyles() { return this.#supplementalItemStyles_accessor_storage; }
|
|
43
|
+
set supplementalItemStyles(value) { this.#supplementalItemStyles_accessor_storage = value; }
|
|
44
|
+
#disabled_accessor_storage = false;
|
|
45
|
+
get disabled() { return this.#disabled_accessor_storage; }
|
|
46
|
+
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
47
|
+
#stickyHeader_accessor_storage = false;
|
|
48
|
+
get stickyHeader() { return this.#stickyHeader_accessor_storage; }
|
|
49
|
+
set stickyHeader(value) { this.#stickyHeader_accessor_storage = value; }
|
|
50
|
+
#selectionMode_accessor_storage = 'none';
|
|
51
|
+
/**
|
|
52
|
+
* Limits table selection mode to single-select. Default is multi-select.
|
|
53
|
+
*/
|
|
54
|
+
get selectionMode() { return this.#selectionMode_accessor_storage; }
|
|
55
|
+
set selectionMode(value) { this.#selectionMode_accessor_storage = value; }
|
|
56
|
+
#selected_accessor_storage = [];
|
|
57
|
+
/**
|
|
58
|
+
* Array of currently selected data table objects
|
|
59
|
+
*/
|
|
60
|
+
get selected() { return this.#selected_accessor_storage; }
|
|
61
|
+
set selected(value) { this.#selected_accessor_storage = value; }
|
|
62
|
+
#chooseColumnsDialog_accessor_storage;
|
|
63
|
+
get chooseColumnsDialog() { return this.#chooseColumnsDialog_accessor_storage; }
|
|
64
|
+
set chooseColumnsDialog(value) { this.#chooseColumnsDialog_accessor_storage = value; }
|
|
65
|
+
#sortDialog_accessor_storage;
|
|
66
|
+
get sortDialog() { return this.#sortDialog_accessor_storage; }
|
|
67
|
+
set sortDialog(value) { this.#sortDialog_accessor_storage = value; }
|
|
68
|
+
#reorderDialog_accessor_storage;
|
|
69
|
+
get reorderDialog() { return this.#reorderDialog_accessor_storage; }
|
|
70
|
+
set reorderDialog(value) { this.#reorderDialog_accessor_storage = value; }
|
|
71
|
+
#localStorageKey_accessor_storage = 'dtc-pref';
|
|
72
|
+
/**
|
|
73
|
+
* Local storage key to save user settings for this data table.
|
|
74
|
+
*/
|
|
75
|
+
get localStorageKey() { return this.#localStorageKey_accessor_storage; }
|
|
76
|
+
set localStorageKey(value) { this.#localStorageKey_accessor_storage = value; }
|
|
77
|
+
#customSortApplied_accessor_storage = false;
|
|
78
|
+
get customSortApplied() { return this.#customSortApplied_accessor_storage; }
|
|
79
|
+
set customSortApplied(value) { this.#customSortApplied_accessor_storage = value; }
|
|
80
|
+
#customColumnsApplied_accessor_storage = false;
|
|
81
|
+
get customColumnsApplied() { return this.#customColumnsApplied_accessor_storage; }
|
|
82
|
+
set customColumnsApplied(value) { this.#customColumnsApplied_accessor_storage = value; }
|
|
83
|
+
get sort() {
|
|
84
|
+
const value = window.localStorage.getItem(`${this.localStorageKey}-user-sort`);
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return generateDefaultSortFromMetaData(this.tableMetaData);
|
|
87
|
+
}
|
|
88
|
+
return JSON.parse(value ?? '[]') || [];
|
|
89
|
+
}
|
|
90
|
+
set sort(val) {
|
|
91
|
+
localStorage.setItem(`${this.localStorageKey}-user-sort`, JSON.stringify(val));
|
|
92
|
+
}
|
|
93
|
+
get userSettings() {
|
|
94
|
+
return JSON.parse(window.localStorage.getItem(`${this.localStorageKey}-user-settings`) ?? '[]') || [];
|
|
95
|
+
}
|
|
96
|
+
set userSettings(val) {
|
|
97
|
+
localStorage.setItem(`${this.localStorageKey}-user-settings`, JSON.stringify(val));
|
|
98
|
+
}
|
|
99
|
+
updated(changedProps) {
|
|
100
|
+
if (changedProps.has('items') && changedProps.get('items') !== this.items) {
|
|
101
|
+
// Clear selection when items array changes.
|
|
102
|
+
this.deselectAll();
|
|
103
|
+
}
|
|
104
|
+
if (changedProps.has('sort') || changedProps.has('tableMetaData')) {
|
|
105
|
+
const defaultSort = generateDefaultSortFromMetaData(this.tableMetaData);
|
|
106
|
+
const _customSortApplied = JSON.stringify(defaultSort) !== JSON.stringify(this.sort);
|
|
107
|
+
if (this.customSortApplied !== _customSortApplied) {
|
|
108
|
+
this.customSortApplied = _customSortApplied;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
selectAll() {
|
|
113
|
+
if (this.selectionMode === 'multi') {
|
|
114
|
+
this.selected = this.items;
|
|
115
|
+
this.#notifySelectedChanged();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
deselectAll() {
|
|
119
|
+
if (this.selected.length > 0) {
|
|
120
|
+
this.selected = [];
|
|
121
|
+
this.#notifySelectedChanged();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
resetSort() {
|
|
125
|
+
const _sort = generateDefaultSortFromMetaData(this.tableMetaData);
|
|
126
|
+
if (JSON.stringify(_sort) !== JSON.stringify(this.sort)) {
|
|
127
|
+
this.sort = _sort;
|
|
128
|
+
this.dispatchEvent(new Event('sort-changed'));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
#notifySelectedChanged() {
|
|
132
|
+
this.dispatchEvent(new Event('selected-changed', { composed: true }));
|
|
133
|
+
}
|
|
134
|
+
orderByUserPreference(itemMetaData, userSettings) {
|
|
135
|
+
return itemMetaData.sort((a, b) => {
|
|
136
|
+
const aIndex = userSettings.findIndex((s) => s.key === a.key);
|
|
137
|
+
const bIndex = userSettings.findIndex((s) => s.key === b.key);
|
|
138
|
+
return aIndex - bIndex;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
static { this.styles = [
|
|
142
|
+
a,
|
|
143
|
+
niceBadgeStyles,
|
|
144
|
+
css `
|
|
145
|
+
:host {
|
|
146
|
+
display: grid;
|
|
147
|
+
|
|
148
|
+
--titanium-data-table-core-background-color: var(--md-sys-color-surface-container-lowest, #1d1b20);
|
|
149
|
+
background-color: var(--titanium-data-table-core-background-color);
|
|
150
|
+
overflow: auto;
|
|
151
|
+
z-index: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
table {
|
|
155
|
+
border-spacing: 0;
|
|
156
|
+
border-collapse: separate;
|
|
157
|
+
|
|
158
|
+
background-color: inherit;
|
|
159
|
+
align-self: start;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
content-container {
|
|
163
|
+
display: grid;
|
|
164
|
+
height: 100%;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
background-color: var(--titanium-data-table-core-background-color);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host([sticky-header]) {
|
|
170
|
+
thead th:not([settings]) {
|
|
171
|
+
position: sticky;
|
|
172
|
+
top: 0;
|
|
173
|
+
z-index: 3;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
table[has-selected-items] {
|
|
178
|
+
tr {
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
thead {
|
|
184
|
+
tr {
|
|
185
|
+
th[settings] {
|
|
186
|
+
width: 48px;
|
|
187
|
+
height: 48px;
|
|
188
|
+
padding: 0;
|
|
189
|
+
position: sticky;
|
|
190
|
+
left: 0;
|
|
191
|
+
top: 0;
|
|
192
|
+
z-index: 4;
|
|
193
|
+
|
|
194
|
+
content-container {
|
|
195
|
+
nice-badge {
|
|
196
|
+
transition: opacity 250ms ease;
|
|
197
|
+
}
|
|
198
|
+
md-icon-button {
|
|
199
|
+
--md-icon-button-icon-size: 22px;
|
|
200
|
+
--md-icon-button-state-layer-height: 32px;
|
|
201
|
+
--md-icon-button-state-layer-width: 32px;
|
|
202
|
+
padding: 8px;
|
|
203
|
+
|
|
204
|
+
md-icon {
|
|
205
|
+
transition: transform 350ms ease;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
nice-badge {
|
|
209
|
+
top: initial;
|
|
210
|
+
top: 2px;
|
|
211
|
+
right: 2px;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
md-menu[open] + md-icon-button {
|
|
216
|
+
md-icon {
|
|
217
|
+
transform: rotate(120deg);
|
|
218
|
+
}
|
|
219
|
+
nice-badge {
|
|
220
|
+
opacity: 0;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
md-menu[open] md-menu-item {
|
|
225
|
+
nice-badge {
|
|
226
|
+
opacity: 1;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
md-menu-item {
|
|
231
|
+
--md-menu-item-top-space: 6px;
|
|
232
|
+
--md-menu-item-bottom-space: 6px;
|
|
233
|
+
--md-menu-item-one-line-container-height: 36px;
|
|
234
|
+
--md-menu-item-two-line-container-height: 36px;
|
|
235
|
+
--md-menu-item-label-text-size: 14px;
|
|
236
|
+
text-align: left;
|
|
237
|
+
|
|
238
|
+
[small] {
|
|
239
|
+
font-size: 12px;
|
|
240
|
+
line-height: 12px;
|
|
241
|
+
opacity: 0.8;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
nice-badge {
|
|
245
|
+
top: 5px;
|
|
246
|
+
left: 35px;
|
|
247
|
+
right: initial;
|
|
248
|
+
opacity: 0;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
th {
|
|
255
|
+
border-bottom: 1px var(--md-sys-color-outline-variant) solid;
|
|
256
|
+
padding: 0;
|
|
257
|
+
|
|
258
|
+
button {
|
|
259
|
+
display: grid;
|
|
260
|
+
grid: 'text icon blank' / auto auto 1fr;
|
|
261
|
+
width: 100%;
|
|
262
|
+
align-items: center;
|
|
263
|
+
|
|
264
|
+
position: relative;
|
|
265
|
+
--md-focus-ring-shape: 0;
|
|
266
|
+
border-radius: 0;
|
|
267
|
+
|
|
268
|
+
font-family: var(--titanium-data-table-font-family, Roboto, Noto, sans-serif);
|
|
269
|
+
font-size: 14px;
|
|
270
|
+
|
|
271
|
+
line-height: 28px;
|
|
272
|
+
font-weight: 500;
|
|
273
|
+
height: 100%;
|
|
274
|
+
padding: 12px 6px 12px 6px;
|
|
275
|
+
margin: 0;
|
|
276
|
+
|
|
277
|
+
/* override default button styles */
|
|
278
|
+
text-align: inherit;
|
|
279
|
+
|
|
280
|
+
background-color: var(--md-sys-color-surface-container-lowest);
|
|
281
|
+
color: inherit;
|
|
282
|
+
|
|
283
|
+
border: none;
|
|
284
|
+
outline: none;
|
|
285
|
+
height: 48px;
|
|
286
|
+
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
|
|
289
|
+
icon-container {
|
|
290
|
+
display: grid;
|
|
291
|
+
position: relative;
|
|
292
|
+
margin-left: 4px;
|
|
293
|
+
visibility: hidden;
|
|
294
|
+
|
|
295
|
+
height: 18px;
|
|
296
|
+
width: 18px;
|
|
297
|
+
|
|
298
|
+
div[sort-number] {
|
|
299
|
+
font-size: 8px;
|
|
300
|
+
line-height: 8px;
|
|
301
|
+
position: absolute;
|
|
302
|
+
bottom: -2px;
|
|
303
|
+
right: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
md-icon {
|
|
307
|
+
display: block;
|
|
308
|
+
height: 18px;
|
|
309
|
+
width: 18px;
|
|
310
|
+
font-size: 18px;
|
|
311
|
+
|
|
312
|
+
transform-origin: center;
|
|
313
|
+
transition: transform 150ms ease;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
button[active-sort][sort-direction='asc'] md-icon {
|
|
319
|
+
transform: rotate(-180deg);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
button[active-sort] icon-container,
|
|
323
|
+
button[active-sort] icon-container {
|
|
324
|
+
visibility: visible;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
button:not([disabled]) {
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
button:focus,
|
|
332
|
+
button:active {
|
|
333
|
+
outline: none;
|
|
334
|
+
box-shadow: none;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
tbody {
|
|
341
|
+
@-moz-document url-prefix() {
|
|
342
|
+
/* hack: FF to fill 100% in a TD */
|
|
343
|
+
tr {
|
|
344
|
+
height: 1px !important;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
tr {
|
|
349
|
+
@-moz-document url-prefix() {
|
|
350
|
+
/* hack: FF to fill 100% in a TD */
|
|
351
|
+
td {
|
|
352
|
+
height: 100% !important;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
td {
|
|
357
|
+
background-color: var(--titanium-data-table-core-background-color);
|
|
358
|
+
|
|
359
|
+
border-bottom: 1px var(--md-sys-color-outline-variant) solid;
|
|
360
|
+
padding: 0;
|
|
361
|
+
box-sizing: border-box;
|
|
362
|
+
/* hack: Chrome/Safari to fill 100% in a TD */
|
|
363
|
+
height: 1px;
|
|
364
|
+
|
|
365
|
+
content-container {
|
|
366
|
+
font-size: 14px;
|
|
367
|
+
line-height: 18px;
|
|
368
|
+
font-weight: 400;
|
|
369
|
+
padding: 6px 6px 6px 6px;
|
|
370
|
+
align-items: center;
|
|
371
|
+
margin: 0;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
td[checkbox] {
|
|
376
|
+
width: 48px;
|
|
377
|
+
position: sticky;
|
|
378
|
+
left: 0;
|
|
379
|
+
|
|
380
|
+
z-index: 1;
|
|
381
|
+
|
|
382
|
+
content-container {
|
|
383
|
+
display: grid;
|
|
384
|
+
padding: 0;
|
|
385
|
+
|
|
386
|
+
md-checkbox {
|
|
387
|
+
padding: 15px;
|
|
388
|
+
--md-checkbox-container-shape: 6px;
|
|
389
|
+
--md-focus-ring-shape: 12px;
|
|
390
|
+
--md-checkbox-state-layer-shape: 12px;
|
|
391
|
+
--md-checkbox-state-layer-size: 32px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
md-checkbox::part(focus-ring) {
|
|
395
|
+
height: 32px;
|
|
396
|
+
width: 32px;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
tr[selected] content-container,
|
|
403
|
+
tr[selected] td {
|
|
404
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
tr[link-url] {
|
|
408
|
+
cursor: pointer;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
:host(:not([disabled])) tbody tr[link-url]:hover td content-container {
|
|
413
|
+
background-color: rgb(from var(--md-sys-color-on-surface, #1d1b20) r g b / 0.08) !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
td[table-message]:hover,
|
|
417
|
+
td[table-message] {
|
|
418
|
+
vertical-align: middle;
|
|
419
|
+
border: none !important;
|
|
420
|
+
opacity: 0.8;
|
|
421
|
+
font-size: 14px;
|
|
422
|
+
line-height: 14px;
|
|
423
|
+
padding: 12px 6px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
tr:last-of-type td {
|
|
427
|
+
border-bottom: none !important;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
[hidden] {
|
|
431
|
+
display: none !important;
|
|
432
|
+
}
|
|
433
|
+
`,
|
|
434
|
+
]; }
|
|
435
|
+
render() {
|
|
436
|
+
return html `
|
|
437
|
+
<style>
|
|
438
|
+
tbody{
|
|
439
|
+
tr{
|
|
440
|
+
td{
|
|
441
|
+
content-container{
|
|
442
|
+
${this.supplementalItemStyles ? this.supplementalItemStyles : nothing};
|
|
443
|
+
${dataTableContentStyles ? dataTableContentStyles : nothing};
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
</style>
|
|
449
|
+
<table part="table" ?has-selected-items=${this.selected.length > 0}>
|
|
450
|
+
<thead>
|
|
451
|
+
<tr>
|
|
452
|
+
<th settings>
|
|
453
|
+
<content-container>
|
|
454
|
+
<md-menu
|
|
455
|
+
id="menu"
|
|
456
|
+
positioning="popover"
|
|
457
|
+
anchor="menu-anchor"
|
|
458
|
+
y-offset="-10"
|
|
459
|
+
x-offset="16"
|
|
460
|
+
@close-menu=${(e) => {
|
|
461
|
+
e.detail.itemPath?.[0]?.action?.();
|
|
462
|
+
}}
|
|
463
|
+
>
|
|
464
|
+
${this.selectionMode !== 'none' && !(this.selectionMode === 'single' && !this.selected.length)
|
|
465
|
+
? html ` <md-menu-item
|
|
466
|
+
.action=${() => {
|
|
467
|
+
if (this.selected.length > 0) {
|
|
468
|
+
this.deselectAll();
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
this.selectAll();
|
|
472
|
+
}
|
|
473
|
+
}}
|
|
474
|
+
>
|
|
475
|
+
<md-icon slot="start">${this.selected.length > 0 ? 'deselect' : 'select_all'}</md-icon>
|
|
476
|
+
<div slot="headline">${this.selected.length > 0 ? 'Deselect all' : 'Select all'}</div>
|
|
477
|
+
</md-menu-item>
|
|
478
|
+
<md-divider role="separator" tabindex="-1"></md-divider>`
|
|
479
|
+
: nothing}
|
|
480
|
+
|
|
481
|
+
<md-menu-item .action=${() => this.chooseColumnsDialog.show()}>
|
|
482
|
+
<md-icon slot="start">table_edit</md-icon>
|
|
483
|
+
${this.customColumnsApplied ? html `<nice-badge compact slot="start"></nice-badge>` : nothing}
|
|
484
|
+
<div slot="headline">Choose columns</div>
|
|
485
|
+
</md-menu-item>
|
|
486
|
+
<md-menu-item .action=${() => this.chooseColumnsDialog.resetColumns()} ?disabled=${!this.customColumnsApplied}>
|
|
487
|
+
<md-icon style="visibility:hidden" slot="start">reset_settings</md-icon>
|
|
488
|
+
<div slot="headline">Reset columns</div>
|
|
489
|
+
</md-menu-item>
|
|
490
|
+
<md-divider role="separator" tabindex="-1"></md-divider>
|
|
491
|
+
|
|
492
|
+
<md-menu-item
|
|
493
|
+
.action=${async () => {
|
|
494
|
+
const result = await this.sortDialog.show(this.sort);
|
|
495
|
+
if (result === 'apply') {
|
|
496
|
+
this.sort = structuredClone(this.sortDialog.sort);
|
|
497
|
+
this.dispatchEvent(new Event('sort-changed'));
|
|
498
|
+
}
|
|
499
|
+
}}
|
|
500
|
+
>
|
|
501
|
+
<md-icon slot="start">sort_by_alpha</md-icon>
|
|
502
|
+
${this.customSortApplied ? html `<nice-badge compact slot="start"></nice-badge>` : nothing}
|
|
503
|
+
<div slot="headline">Customize sort</div>
|
|
504
|
+
</md-menu-item>
|
|
505
|
+
<md-menu-item .action=${() => this.resetSort()} ?disabled=${!this.customSortApplied}>
|
|
506
|
+
<md-icon style="visibility:hidden" slot="start">reset_settings</md-icon>
|
|
507
|
+
<div slot="headline">Reset sort</div>
|
|
508
|
+
</md-menu-item>
|
|
509
|
+
|
|
510
|
+
${this.tableMetaData?.reorderConfig?.reorderItemDisplayKey && this.tableMetaData?.reorderConfig?.sortPropertyKey
|
|
511
|
+
? html ` <md-divider role="separator" tabindex="-1"></md-divider>
|
|
512
|
+
<md-menu-item
|
|
513
|
+
.action=${async () => {
|
|
514
|
+
const result = await this.reorderDialog.show(this.items);
|
|
515
|
+
if (result === 'apply') {
|
|
516
|
+
structuredClone(this.reorderDialog.items);
|
|
517
|
+
this.dispatchEvent(new CustomEvent('items-reordered', { detail: this.items }));
|
|
518
|
+
}
|
|
519
|
+
}}
|
|
520
|
+
>
|
|
521
|
+
<md-icon slot="start">drag_handle</md-icon>
|
|
522
|
+
<div slot="headline">Reorder items</div>
|
|
523
|
+
</md-menu-item>`
|
|
524
|
+
: nothing}
|
|
525
|
+
${this.items.length > 0
|
|
526
|
+
? html `<md-divider role="separator" tabindex="-1"></md-divider>
|
|
527
|
+
<md-menu-item
|
|
528
|
+
.action=${() => {
|
|
529
|
+
const fileFriendlyTimestamp = dayjs().format('YYYY-MM-DD HH-mm-ss');
|
|
530
|
+
const csvConfig = mkConfig({ filename: `web export ${fileFriendlyTimestamp}`, useKeysAsHeaders: true });
|
|
531
|
+
const currentlyShownColumnMetaData = this.orderByUserPreference(this.tableMetaData?.itemMetaData?.filter((o) => (!o.hideByDefault && this.userSettings.find((s) => s.key === o.key)?.show) ||
|
|
532
|
+
this.userSettings.find((s) => s.key === o.key)?.show) ?? [], this.userSettings) ?? [];
|
|
533
|
+
const items = this.items.map((item) => {
|
|
534
|
+
const itemData = {};
|
|
535
|
+
for (const metaData of currentlyShownColumnMetaData) {
|
|
536
|
+
const header = metaData.friendlyName ?? metaData.key;
|
|
537
|
+
itemData[header] = metaData.csvValue ? metaData.csvValue(item) : item[metaData.key];
|
|
538
|
+
}
|
|
539
|
+
return itemData;
|
|
540
|
+
}) ?? [];
|
|
541
|
+
const csv = generateCsv(csvConfig)(items);
|
|
542
|
+
download(csvConfig)(csv);
|
|
543
|
+
}}
|
|
544
|
+
>
|
|
545
|
+
<md-icon slot="start">file_save</md-icon>
|
|
546
|
+
<div slot="headline">Save to CSV</div>
|
|
547
|
+
<span small slot="supporting-text">${this.items.length} row${this.items.length === 1 ? '' : 's'}</span>
|
|
548
|
+
</md-menu-item>`
|
|
549
|
+
: nothing}
|
|
550
|
+
|
|
551
|
+
<slot name="settings-menu-items"></slot>
|
|
552
|
+
</md-menu>
|
|
553
|
+
<md-icon-button
|
|
554
|
+
id="menu-anchor"
|
|
555
|
+
?disabled=${this.isLoading}
|
|
556
|
+
@click=${(e) => {
|
|
557
|
+
e.preventDefault();
|
|
558
|
+
const root = e.target.getRootNode();
|
|
559
|
+
const menu = root.querySelector('#menu');
|
|
560
|
+
menu.open = !menu.open;
|
|
561
|
+
}}
|
|
562
|
+
>
|
|
563
|
+
<md-icon>settings</md-icon>
|
|
564
|
+
${this.customSortApplied || this.customColumnsApplied ? html `<nice-badge compact></nice-badge>` : nothing}
|
|
565
|
+
</md-icon-button>
|
|
566
|
+
</content-container>
|
|
567
|
+
</th>
|
|
568
|
+
${repeat(this.orderByUserPreference(this.tableMetaData?.itemMetaData?.filter((o) => (!o.hideByDefault && this.userSettings.find((s) => s.key === o.key)?.show) || this.userSettings.find((s) => s.key === o.key)?.show) ?? [], this.userSettings) ?? [], (metaData) => metaData.key, (metaData) => {
|
|
569
|
+
const sortSpecification = this.sort.find((s) => s.key === metaData.key);
|
|
570
|
+
const sortIndex = this.sort.findIndex((s) => s.key === metaData.key);
|
|
571
|
+
const width = this.tableMetaData?.itemMetaData?.find((o) => o.key === metaData.key)?.width;
|
|
572
|
+
return html `<th style=${width ? styleMap({ minWidth: width }) : nothing}>
|
|
573
|
+
<button
|
|
574
|
+
?active-sort=${sortIndex !== -1}
|
|
575
|
+
sort-direction=${sortSpecification?.direction || nothing}
|
|
576
|
+
?disabled=${this.disabled || metaData.disableSort}
|
|
577
|
+
@click=${() => {
|
|
578
|
+
this.sort = [{ key: metaData.key, direction: this.sort?.[0]?.direction === 'asc' ? 'desc' : 'asc' }];
|
|
579
|
+
this.dispatchEvent(new Event('sort-changed'));
|
|
580
|
+
}}
|
|
581
|
+
>
|
|
582
|
+
<span>${metaData.friendlyName ?? metaData.key ?? '-'}</span>
|
|
583
|
+
<icon-container
|
|
584
|
+
><md-icon>arrow_downward</md-icon>
|
|
585
|
+
${sortIndex !== -1 && this.sort.length > 1 ? html `<div sort-number>${sortIndex + 1}</div>` : nothing}
|
|
586
|
+
</icon-container>
|
|
587
|
+
<md-ripple ?disabled=${this.disabled || metaData.disableSort}></md-ripple>
|
|
588
|
+
<md-focus-ring inward></md-focus-ring>
|
|
589
|
+
</button>
|
|
590
|
+
</th>`;
|
|
591
|
+
})}
|
|
592
|
+
</tr>
|
|
593
|
+
</thead>
|
|
594
|
+
<tbody>
|
|
595
|
+
${!this.isLoading && this.items.length === 0
|
|
596
|
+
? html `
|
|
597
|
+
<tr>
|
|
598
|
+
<td table-message></td>
|
|
599
|
+
<td table-message colspan=${this.tableMetaData?.itemMetaData?.length ?? 0}>No results</td>
|
|
600
|
+
</tr>
|
|
601
|
+
`
|
|
602
|
+
: nothing}
|
|
603
|
+
${repeat(this.items ?? [], (item) => this.tableMetaData?.uniqueKey(item) ?? '', (item) => {
|
|
604
|
+
return html `
|
|
605
|
+
<tr
|
|
606
|
+
?link-url=${this.tableMetaData?.itemLinkUrl || this.tableMetaData?.itemClickHandler}
|
|
607
|
+
?selected=${this.selected.includes(item)}
|
|
608
|
+
@click=${() => {
|
|
609
|
+
if (this.selected.length === 0) {
|
|
610
|
+
if (this.tableMetaData?.itemClickHandler) {
|
|
611
|
+
this.tableMetaData.itemClickHandler(item);
|
|
612
|
+
}
|
|
613
|
+
else if (this.tableMetaData?.itemLinkUrl) {
|
|
614
|
+
this.dispatchEvent(new CustomEvent('change-route', {
|
|
615
|
+
bubbles: true,
|
|
616
|
+
composed: true,
|
|
617
|
+
detail: { path: this.tableMetaData?.itemLinkUrl?.(item) ?? '' },
|
|
618
|
+
}));
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
else if (this.selectionMode === 'single') {
|
|
622
|
+
this.selected = [item];
|
|
623
|
+
this.requestUpdate('selected');
|
|
624
|
+
this.#notifySelectedChanged();
|
|
625
|
+
}
|
|
626
|
+
else if (this.selectionMode === 'multi') {
|
|
627
|
+
if (this.selected.includes(item)) {
|
|
628
|
+
this.selected.splice(this.selected.indexOf(item), 1);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
this.selected.push(item);
|
|
632
|
+
}
|
|
633
|
+
this.requestUpdate('selected');
|
|
634
|
+
this.#notifySelectedChanged();
|
|
635
|
+
}
|
|
636
|
+
}}
|
|
637
|
+
>
|
|
638
|
+
<td checkbox>
|
|
639
|
+
<content-container>
|
|
640
|
+
${this.selectionMode !== 'none'
|
|
641
|
+
? html `
|
|
642
|
+
<md-checkbox
|
|
643
|
+
@click=${(e) => e.stopPropagation()}
|
|
644
|
+
?checked=${this.selected.includes(item)}
|
|
645
|
+
@change=${() => {
|
|
646
|
+
if (this.selected.includes(item)) {
|
|
647
|
+
this.selected.splice(this.selected.indexOf(item), 1);
|
|
648
|
+
}
|
|
649
|
+
else if (this.selectionMode === 'single') {
|
|
650
|
+
this.selected = [item];
|
|
651
|
+
}
|
|
652
|
+
else {
|
|
653
|
+
this.selected.push(item);
|
|
654
|
+
}
|
|
655
|
+
this.requestUpdate('selected');
|
|
656
|
+
this.#notifySelectedChanged();
|
|
657
|
+
}}
|
|
658
|
+
?disabled=${this.disabled}
|
|
659
|
+
></md-checkbox>
|
|
660
|
+
`
|
|
661
|
+
: nothing}
|
|
662
|
+
</content-container>
|
|
663
|
+
</td>
|
|
664
|
+
${repeat(this.orderByUserPreference(this.tableMetaData?.itemMetaData?.filter((o) => (!o.hideByDefault && this.userSettings.find((s) => s.key === o.key)?.show) || this.userSettings.find((s) => s.key === o.key)?.show) ?? [], this.userSettings)?.map((o) => o.key) ?? [], (key) => key, (key) => {
|
|
665
|
+
return html `<td>
|
|
666
|
+
<content-container>${this.tableMetaData?.itemMetaData?.find((o) => o.key === key)?.render(item) ?? '-'}</content-container>
|
|
667
|
+
</td>`;
|
|
668
|
+
})}
|
|
669
|
+
</tr>
|
|
670
|
+
`;
|
|
671
|
+
})}
|
|
672
|
+
</tbody>
|
|
673
|
+
</table>
|
|
674
|
+
<titanium-data-table-core-reorder-dialog
|
|
675
|
+
.tableMetaData=${this.tableMetaData}
|
|
676
|
+
.items=${this.items}
|
|
677
|
+
.supplementalItemStyles=${this.supplementalItemStyles}
|
|
678
|
+
@reorder-save-request=${(e) => redispatchEvent(this, e)}
|
|
679
|
+
></titanium-data-table-core-reorder-dialog>
|
|
680
|
+
<titanium-data-table-core-settings-sort-dialog .tableMetaData=${this.tableMetaData}></titanium-data-table-core-settings-sort-dialog>
|
|
681
|
+
<titanium-data-table-core-settings-choose-columns-dialog
|
|
682
|
+
.tableMetaData=${this.tableMetaData}
|
|
683
|
+
.userSettings=${this.userSettings}
|
|
684
|
+
@custom-columns-applied-change=${(e) => (this.customColumnsApplied = e.target.customColumnsApplied)}
|
|
685
|
+
@setting-change=${(e) => (this.userSettings = structuredClone(e.target.userSettings))}
|
|
686
|
+
></titanium-data-table-core-settings-choose-columns-dialog>
|
|
687
|
+
`;
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
__decorate([
|
|
691
|
+
property({ type: Array })
|
|
692
|
+
], TitaniumDataTableCore.prototype, "items", null);
|
|
693
|
+
__decorate([
|
|
694
|
+
property({ type: Object })
|
|
695
|
+
], TitaniumDataTableCore.prototype, "tableMetaData", null);
|
|
696
|
+
__decorate([
|
|
697
|
+
property({ type: Object })
|
|
698
|
+
], TitaniumDataTableCore.prototype, "supplementalItemStyles", null);
|
|
699
|
+
__decorate([
|
|
700
|
+
property({ type: Boolean, reflect: true })
|
|
701
|
+
], TitaniumDataTableCore.prototype, "disabled", null);
|
|
702
|
+
__decorate([
|
|
703
|
+
property({ type: Boolean, attribute: 'sticky-header', reflect: true })
|
|
704
|
+
], TitaniumDataTableCore.prototype, "stickyHeader", null);
|
|
705
|
+
__decorate([
|
|
706
|
+
property({ type: String, attribute: 'selection-mode', reflect: true })
|
|
707
|
+
], TitaniumDataTableCore.prototype, "selectionMode", null);
|
|
708
|
+
__decorate([
|
|
709
|
+
property({ type: Array })
|
|
710
|
+
], TitaniumDataTableCore.prototype, "selected", null);
|
|
711
|
+
__decorate([
|
|
712
|
+
query('titanium-data-table-core-settings-choose-columns-dialog')
|
|
713
|
+
], TitaniumDataTableCore.prototype, "chooseColumnsDialog", null);
|
|
714
|
+
__decorate([
|
|
715
|
+
query('titanium-data-table-core-settings-sort-dialog')
|
|
716
|
+
], TitaniumDataTableCore.prototype, "sortDialog", null);
|
|
717
|
+
__decorate([
|
|
718
|
+
query('titanium-data-table-core-reorder-dialog')
|
|
719
|
+
], TitaniumDataTableCore.prototype, "reorderDialog", null);
|
|
720
|
+
__decorate([
|
|
721
|
+
property({ type: String, attribute: 'local-storage-key' })
|
|
722
|
+
], TitaniumDataTableCore.prototype, "localStorageKey", null);
|
|
723
|
+
__decorate([
|
|
724
|
+
state()
|
|
725
|
+
], TitaniumDataTableCore.prototype, "customSortApplied", null);
|
|
726
|
+
__decorate([
|
|
727
|
+
state()
|
|
728
|
+
], TitaniumDataTableCore.prototype, "customColumnsApplied", null);
|
|
729
|
+
__decorate([
|
|
730
|
+
state()
|
|
731
|
+
], TitaniumDataTableCore.prototype, "sort", null);
|
|
732
|
+
__decorate([
|
|
733
|
+
state()
|
|
734
|
+
], TitaniumDataTableCore.prototype, "userSettings", null);
|
|
735
|
+
TitaniumDataTableCore = __decorate([
|
|
736
|
+
customElement('titanium-data-table-core')
|
|
737
|
+
], TitaniumDataTableCore);
|
|
738
|
+
export { TitaniumDataTableCore };
|
|
739
|
+
export class DataTableItemsReorderedEvent extends Event {
|
|
740
|
+
static { this.eventType = 'titanium-data-table-items-reorder'; }
|
|
741
|
+
constructor() {
|
|
742
|
+
super(DataTableItemsReorderedEvent.eventType);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
//# sourceMappingURL=data-table-core.js.map
|