@leavittsoftware/web 8.6.0 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/leavitt/api-service/HttpError.d.ts +0 -11
- package/leavitt/api-service/HttpError.js +0 -2
- package/leavitt/api-service/HttpError.js.map +0 -1
- package/leavitt/api-service/api-service.d.ts +0 -52
- package/leavitt/api-service/api-service.js +0 -369
- package/leavitt/api-service/api-service.js.map +0 -1
- package/leavitt/api-service/authenticated-token-provider.d.ts +0 -5
- package/leavitt/api-service/authenticated-token-provider.js +0 -7
- package/leavitt/api-service/authenticated-token-provider.js.map +0 -1
- package/leavitt/api-service/bearer-token-provider.d.ts +0 -4
- package/leavitt/api-service/bearer-token-provider.js +0 -2
- package/leavitt/api-service/bearer-token-provider.js.map +0 -1
- package/leavitt/api-service/blob-response.d.ts +0 -8
- package/leavitt/api-service/blob-response.js +0 -8
- package/leavitt/api-service/blob-response.js.map +0 -1
- package/leavitt/api-service/no-authentication-token-provider.d.ts +0 -5
- package/leavitt/api-service/no-authentication-token-provider.js +0 -6
- package/leavitt/api-service/no-authentication-token-provider.js.map +0 -1
- package/leavitt/api-service/object-to-form-data.d.ts +0 -9
- package/leavitt/api-service/object-to-form-data.js +0 -42
- package/leavitt/api-service/object-to-form-data.js.map +0 -1
- package/leavitt/api-service/object-to-form-data.test.d.ts +0 -2
- package/leavitt/api-service/object-to-form-data.test.js +0 -229
- package/leavitt/api-service/object-to-form-data.test.js.map +0 -1
- package/leavitt/api-service/odata-dto.d.ts +0 -6
- package/leavitt/api-service/odata-dto.js +0 -7
- package/leavitt/api-service/odata-dto.js.map +0 -1
- package/leavitt/api-service/odata-model-info.d.ts +0 -5
- package/leavitt/api-service/odata-model-info.js +0 -7
- package/leavitt/api-service/odata-model-info.js.map +0 -1
- package/leavitt/api-service/odata-response.d.ts +0 -15
- package/leavitt/api-service/odata-response.js +0 -50
- package/leavitt/api-service/odata-response.js.map +0 -1
- package/leavitt/api-service/status-codes.d.ts +0 -2
- package/leavitt/api-service/status-codes.js +0 -44
- package/leavitt/api-service/status-codes.js.map +0 -1
- package/leavitt/app/app-logo.d.ts +0 -12
- package/leavitt/app/app-logo.js +0 -142
- package/leavitt/app/app-logo.js.map +0 -1
- package/leavitt/app/app-main-content-container.d.ts +0 -10
- package/leavitt/app/app-main-content-container.js +0 -65
- package/leavitt/app/app-main-content-container.js.map +0 -1
- package/leavitt/app/app-navigation-footer.d.ts +0 -18
- package/leavitt/app/app-navigation-footer.js +0 -142
- package/leavitt/app/app-navigation-footer.js.map +0 -1
- package/leavitt/app/app-navigation-header.d.ts +0 -22
- package/leavitt/app/app-navigation-header.js +0 -239
- package/leavitt/app/app-navigation-header.js.map +0 -1
- package/leavitt/app/app-width-limiter.d.ts +0 -7
- package/leavitt/app/app-width-limiter.js +0 -39
- package/leavitt/app/app-width-limiter.js.map +0 -1
- package/leavitt/app/contexts/main-menu-position-context.d.ts +0 -4
- package/leavitt/app/contexts/main-menu-position-context.js +0 -3
- package/leavitt/app/contexts/main-menu-position-context.js.map +0 -1
- package/leavitt/company-select/company-select.d.ts +0 -53
- package/leavitt/company-select/company-select.js +0 -181
- package/leavitt/company-select/company-select.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.d.ts +0 -394
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js +0 -233
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +0 -397
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +0 -244
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +0 -408
- package/leavitt/email-history-viewer/email-history-viewer-filled.js +0 -381
- package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-viewer.d.ts +0 -412
- package/leavitt/email-history-viewer/email-history-viewer.js +0 -373
- package/leavitt/email-history-viewer/email-history-viewer.js.map +0 -1
- package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +0 -386
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js +0 -154
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +0 -1
- package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +0 -388
- package/leavitt/email-history-viewer/view-sent-email-dialog.js +0 -145
- package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +0 -1
- package/leavitt/error-page/error-page.d.ts +0 -24
- package/leavitt/error-page/error-page.js +0 -185
- package/leavitt/error-page/error-page.js.map +0 -1
- package/leavitt/file-explorer/add-folder-modal.d.ts +0 -390
- package/leavitt/file-explorer/add-folder-modal.js +0 -135
- package/leavitt/file-explorer/add-folder-modal.js.map +0 -1
- package/leavitt/file-explorer/events/file-explorer-events.d.ts +0 -4
- package/leavitt/file-explorer/events/file-explorer-events.js +0 -5
- package/leavitt/file-explorer/events/file-explorer-events.js.map +0 -1
- package/leavitt/file-explorer/file-explorer-error.d.ts +0 -7
- package/leavitt/file-explorer/file-explorer-error.js +0 -38
- package/leavitt/file-explorer/file-explorer-error.js.map +0 -1
- package/leavitt/file-explorer/file-explorer-image.d.ts +0 -9
- package/leavitt/file-explorer/file-explorer-image.js +0 -54
- package/leavitt/file-explorer/file-explorer-image.js.map +0 -1
- package/leavitt/file-explorer/file-explorer-no-files.d.ts +0 -7
- package/leavitt/file-explorer/file-explorer-no-files.js +0 -38
- package/leavitt/file-explorer/file-explorer-no-files.js.map +0 -1
- package/leavitt/file-explorer/file-explorer-no-permission.d.ts +0 -7
- package/leavitt/file-explorer/file-explorer-no-permission.js +0 -38
- package/leavitt/file-explorer/file-explorer-no-permission.js.map +0 -1
- package/leavitt/file-explorer/file-explorer.d.ts +0 -446
- package/leavitt/file-explorer/file-explorer.js +0 -889
- package/leavitt/file-explorer/file-explorer.js.map +0 -1
- package/leavitt/file-explorer/file-list-item.d.ts +0 -16
- package/leavitt/file-explorer/file-list-item.js +0 -300
- package/leavitt/file-explorer/file-list-item.js.map +0 -1
- package/leavitt/file-explorer/file-modal.d.ts +0 -393
- package/leavitt/file-explorer/file-modal.js +0 -323
- package/leavitt/file-explorer/file-modal.js.map +0 -1
- package/leavitt/file-explorer/folder-list-item.d.ts +0 -15
- package/leavitt/file-explorer/folder-list-item.js +0 -210
- package/leavitt/file-explorer/folder-list-item.js.map +0 -1
- package/leavitt/file-explorer/folder-modal.d.ts +0 -391
- package/leavitt/file-explorer/folder-modal.js +0 -226
- package/leavitt/file-explorer/folder-modal.js.map +0 -1
- package/leavitt/file-explorer/helpers/file-types.d.ts +0 -2
- package/leavitt/file-explorer/helpers/file-types.js +0 -19
- package/leavitt/file-explorer/helpers/file-types.js.map +0 -1
- package/leavitt/file-explorer/helpers/format-bytes.d.ts +0 -2
- package/leavitt/file-explorer/helpers/format-bytes.js +0 -8
- package/leavitt/file-explorer/helpers/format-bytes.js.map +0 -1
- package/leavitt/person-company-select/person-company-select.d.ts +0 -43
- package/leavitt/person-company-select/person-company-select.js +0 -198
- package/leavitt/person-company-select/person-company-select.js.map +0 -1
- package/leavitt/person-group-select/people-group-icons.d.ts +0 -5
- package/leavitt/person-group-select/people-group-icons.js +0 -87
- package/leavitt/person-group-select/people-group-icons.js.map +0 -1
- package/leavitt/person-group-select/person-group-select.d.ts +0 -43
- package/leavitt/person-group-select/person-group-select.js +0 -207
- package/leavitt/person-group-select/person-group-select.js.map +0 -1
- package/leavitt/person-select/person-select.d.ts +0 -46
- package/leavitt/person-select/person-select.js +0 -203
- package/leavitt/person-select/person-select.js.map +0 -1
- package/leavitt/profile-picture/profile-picture-menu.d.ts +0 -48
- package/leavitt/profile-picture/profile-picture-menu.js +0 -248
- package/leavitt/profile-picture/profile-picture-menu.js.map +0 -1
- package/leavitt/profile-picture/profile-picture.d.ts +0 -44
- package/leavitt/profile-picture/profile-picture.js +0 -208
- package/leavitt/profile-picture/profile-picture.js.map +0 -1
- package/leavitt/service-worker-notifier/service-worker-notifier.d.ts +0 -14
- package/leavitt/service-worker-notifier/service-worker-notifier.js +0 -180
- package/leavitt/service-worker-notifier/service-worker-notifier.js.map +0 -1
- package/leavitt/theme/theme-preference-event.d.ts +0 -4
- package/leavitt/theme/theme-preference-event.js +0 -5
- package/leavitt/theme/theme-preference-event.js.map +0 -1
- package/leavitt/theme/theme-preference.d.ts +0 -8
- package/leavitt/theme/theme-preference.js +0 -26
- package/leavitt/theme/theme-preference.js.map +0 -1
- package/leavitt/user-feedback/provide-feedback-dialog.d.ts +0 -386
- package/leavitt/user-feedback/provide-feedback-dialog.js +0 -150
- package/leavitt/user-feedback/provide-feedback-dialog.js.map +0 -1
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +0 -388
- package/leavitt/user-feedback/report-a-problem-dialog.js +0 -170
- package/leavitt/user-feedback/report-a-problem-dialog.js.map +0 -1
- package/leavitt/user-feedback/user-feedback.d.ts +0 -390
- package/leavitt/user-feedback/user-feedback.js +0 -222
- package/leavitt/user-feedback/user-feedback.js.map +0 -1
- package/leavitt/user-manager/LssJwtToken.d.ts +0 -24
- package/leavitt/user-manager/LssJwtToken.js +0 -2
- package/leavitt/user-manager/LssJwtToken.js.map +0 -1
- package/leavitt/user-manager/auth-zero-lg-access-token.d.ts +0 -15
- package/leavitt/user-manager/auth-zero-lg-access-token.js +0 -2
- package/leavitt/user-manager/auth-zero-lg-access-token.js.map +0 -1
- package/leavitt/user-manager/auth-zero-lg-identity-token.d.ts +0 -24
- package/leavitt/user-manager/auth-zero-lg-identity-token.js +0 -2
- package/leavitt/user-manager/auth-zero-lg-identity-token.js.map +0 -1
- package/leavitt/user-manager/auth-zero-lg-identity.d.ts +0 -24
- package/leavitt/user-manager/auth-zero-lg-identity.js +0 -2
- package/leavitt/user-manager/auth-zero-lg-identity.js.map +0 -1
- package/leavitt/user-manager/auth-zero-lg-user-manager.d.ts +0 -18
- package/leavitt/user-manager/auth-zero-lg-user-manager.js +0 -382
- package/leavitt/user-manager/auth-zero-lg-user-manager.js.map +0 -1
- package/leavitt/user-manager/user-manager-events.d.ts +0 -5
- package/leavitt/user-manager/user-manager-events.js +0 -7
- package/leavitt/user-manager/user-manager-events.js.map +0 -1
- package/leavitt/user-manager/user-manager.d.ts +0 -47
- package/leavitt/user-manager/user-manager.js +0 -443
- package/leavitt/user-manager/user-manager.js.map +0 -1
- package/titanium/access-denied-page/access-denied-page.d.ts +0 -16
- package/titanium/access-denied-page/access-denied-page.js +0 -359
- package/titanium/access-denied-page/access-denied-page.js.map +0 -1
- package/titanium/address-input/address-input.d.ts +0 -31
- package/titanium/address-input/address-input.js +0 -104
- package/titanium/address-input/address-input.js.map +0 -1
- package/titanium/address-input/google-address-input.d.ts +0 -35
- package/titanium/address-input/google-address-input.js +0 -242
- package/titanium/address-input/google-address-input.js.map +0 -1
- package/titanium/address-input/manual-address-dialog.d.ts +0 -39
- package/titanium/address-input/manual-address-dialog.js +0 -350
- package/titanium/address-input/manual-address-dialog.js.map +0 -1
- package/titanium/address-input/types/address-input-address.d.ts +0 -17
- package/titanium/address-input/types/address-input-address.js +0 -2
- package/titanium/address-input/types/address-input-address.js.map +0 -1
- package/titanium/address-input/utils/address-to-string.d.ts +0 -3
- package/titanium/address-input/utils/address-to-string.js +0 -26
- package/titanium/address-input/utils/address-to-string.js.map +0 -1
- package/titanium/address-input/utils/place-result-to-address.d.ts +0 -3
- package/titanium/address-input/utils/place-result-to-address.js +0 -46
- package/titanium/address-input/utils/place-result-to-address.js.map +0 -1
- package/titanium/address-input/utils/validate-street.d.ts +0 -2
- package/titanium/address-input/utils/validate-street.js +0 -8
- package/titanium/address-input/utils/validate-street.js.map +0 -1
- package/titanium/card/card.d.ts +0 -24
- package/titanium/card/card.js +0 -188
- package/titanium/card/card.js.map +0 -1
- package/titanium/chip/chip.d.ts +0 -57
- package/titanium/chip/chip.js +0 -289
- package/titanium/chip/chip.js.map +0 -1
- package/titanium/chip-multi-select/chip-multi-select.d.ts +0 -71
- package/titanium/chip-multi-select/chip-multi-select.js +0 -228
- package/titanium/chip-multi-select/chip-multi-select.js.map +0 -1
- package/titanium/circle-loading-indicator/circle-loading-indicator.d.ts +0 -19
- package/titanium/circle-loading-indicator/circle-loading-indicator.js +0 -122
- package/titanium/circle-loading-indicator/circle-loading-indicator.js.map +0 -1
- package/titanium/collapsible-container/collapsible-container.d.ts +0 -12
- package/titanium/collapsible-container/collapsible-container.js +0 -115
- package/titanium/collapsible-container/collapsible-container.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog-open-event.d.ts +0 -10
- package/titanium/confirm-dialog/confirm-dialog-open-event.js +0 -12
- package/titanium/confirm-dialog/confirm-dialog-open-event.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog.d.ts +0 -25
- package/titanium/confirm-dialog/confirm-dialog.js +0 -104
- package/titanium/confirm-dialog/confirm-dialog.js.map +0 -1
- package/titanium/confirmation-dialog/confirmation-dialog.d.ts +0 -19
- package/titanium/confirmation-dialog/confirmation-dialog.js +0 -124
- package/titanium/confirmation-dialog/confirmation-dialog.js.map +0 -1
- package/titanium/data-table/data-table-action-bar.d.ts +0 -11
- package/titanium/data-table/data-table-action-bar.js +0 -216
- package/titanium/data-table/data-table-action-bar.js.map +0 -1
- package/titanium/data-table/data-table-content-styles.d.ts +0 -2
- package/titanium/data-table/data-table-content-styles.js +0 -48
- package/titanium/data-table/data-table-content-styles.js.map +0 -1
- package/titanium/data-table/data-table-core-reorder-dialog.d.ts +0 -391
- package/titanium/data-table/data-table-core-reorder-dialog.js +0 -170
- package/titanium/data-table/data-table-core-reorder-dialog.js.map +0 -1
- package/titanium/data-table/data-table-core-reorder-item.d.ts +0 -15
- package/titanium/data-table/data-table-core-reorder-item.js +0 -154
- package/titanium/data-table/data-table-core-reorder-item.js.map +0 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.d.ts +0 -22
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js +0 -164
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js.map +0 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-item.d.ts +0 -14
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js +0 -96
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js.map +0 -1
- package/titanium/data-table/data-table-core-settings-sort-dialog.d.ts +0 -22
- package/titanium/data-table/data-table-core-settings-sort-dialog.js +0 -231
- package/titanium/data-table/data-table-core-settings-sort-dialog.js.map +0 -1
- package/titanium/data-table/data-table-core-settings-sort-item.d.ts +0 -17
- package/titanium/data-table/data-table-core-settings-sort-item.js +0 -171
- package/titanium/data-table/data-table-core-settings-sort-item.js.map +0 -1
- package/titanium/data-table/data-table-core.d.ts +0 -458
- package/titanium/data-table/data-table-core.js +0 -745
- package/titanium/data-table/data-table-core.js.map +0 -1
- package/titanium/data-table/data-table-header.d.ts +0 -68
- package/titanium/data-table/data-table-header.js +0 -295
- package/titanium/data-table/data-table-header.js.map +0 -1
- package/titanium/data-table/data-table-item.d.ts +0 -99
- package/titanium/data-table/data-table-item.js +0 -561
- package/titanium/data-table/data-table-item.js.map +0 -1
- package/titanium/data-table/data-table.d.ts +0 -127
- package/titanium/data-table/data-table.js +0 -688
- package/titanium/data-table/data-table.js.map +0 -1
- package/titanium/data-table/draggable-item-base.d.ts +0 -30
- package/titanium/data-table/draggable-item-base.js +0 -324
- package/titanium/data-table/draggable-item-base.js.map +0 -1
- package/titanium/data-table/filter-controller.d.ts +0 -24
- package/titanium/data-table/filter-controller.js +0 -122
- package/titanium/data-table/filter-controller.js.map +0 -1
- package/titanium/data-table/filter.d.ts +0 -8
- package/titanium/data-table/filter.js +0 -11
- package/titanium/data-table/filter.js.map +0 -1
- package/titanium/data-table/page-control.d.ts +0 -59
- package/titanium/data-table/page-control.js +0 -236
- package/titanium/data-table/page-control.js.map +0 -1
- package/titanium/date-input/date-input.d.ts +0 -149
- package/titanium/date-input/date-input.js +0 -548
- package/titanium/date-input/date-input.js.map +0 -1
- package/titanium/date-range-selector/date-range-change-event.d.ts +0 -8
- package/titanium/date-range-selector/date-range-change-event.js +0 -10
- package/titanium/date-range-selector/date-range-change-event.js.map +0 -1
- package/titanium/date-range-selector/date-range-selector.d.ts +0 -71
- package/titanium/date-range-selector/date-range-selector.js +0 -479
- package/titanium/date-range-selector/date-range-selector.js.map +0 -1
- package/titanium/date-range-selector/types/date-range-key.d.ts +0 -2
- package/titanium/date-range-selector/types/date-range-key.js +0 -2
- package/titanium/date-range-selector/types/date-range-key.js.map +0 -1
- package/titanium/date-range-selector/types/date-range-option.d.ts +0 -8
- package/titanium/date-range-selector/types/date-range-option.js +0 -2
- package/titanium/date-range-selector/types/date-range-option.js.map +0 -1
- package/titanium/date-range-selector/types/date-ranges.d.ts +0 -4
- package/titanium/date-range-selector/types/date-ranges.js +0 -133
- package/titanium/date-range-selector/types/date-ranges.js.map +0 -1
- package/titanium/date-range-selector/types/range-label.d.ts +0 -5
- package/titanium/date-range-selector/types/range-label.js +0 -25
- package/titanium/date-range-selector/types/range-label.js.map +0 -1
- package/titanium/drawer/drawer.d.ts +0 -51
- package/titanium/drawer/drawer.js +0 -415
- package/titanium/drawer/drawer.js.map +0 -1
- package/titanium/duration-input/duration-input.d.ts +0 -31
- package/titanium/duration-input/duration-input.js +0 -126
- package/titanium/duration-input/duration-input.js.map +0 -1
- package/titanium/duration-input/filled-duration-input.d.ts +0 -31
- package/titanium/duration-input/filled-duration-input.js +0 -123
- package/titanium/duration-input/filled-duration-input.js.map +0 -1
- package/titanium/duration-input/human-interval.d.ts +0 -19
- package/titanium/duration-input/human-interval.js +0 -73
- package/titanium/duration-input/human-interval.js.map +0 -1
- package/titanium/duration-input/outlined-duration-input.d.ts +0 -30
- package/titanium/duration-input/outlined-duration-input.js +0 -109
- package/titanium/duration-input/outlined-duration-input.js.map +0 -1
- package/titanium/error-page/error-page.d.ts +0 -16
- package/titanium/error-page/error-page.js +0 -95
- package/titanium/error-page/error-page.js.map +0 -1
- package/titanium/event-bus/event-bus.d.ts +0 -10
- package/titanium/event-bus/event-bus.js +0 -52
- package/titanium/event-bus/event-bus.js.map +0 -1
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +0 -168
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +0 -373
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +0 -1
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +0 -17
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +0 -121
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +0 -1
- package/titanium/hacks/dialog-navigation-hack.d.ts +0 -8
- package/titanium/hacks/dialog-navigation-hack.js +0 -22
- package/titanium/hacks/dialog-navigation-hack.js.map +0 -1
- package/titanium/hacks/dialog-overflow-hacks.d.ts +0 -4
- package/titanium/hacks/dialog-overflow-hacks.js +0 -21
- package/titanium/hacks/dialog-overflow-hacks.js.map +0 -1
- package/titanium/hacks/dialog-zindex-hack.d.ts +0 -11
- package/titanium/hacks/dialog-zindex-hack.js +0 -20
- package/titanium/hacks/dialog-zindex-hack.js.map +0 -1
- package/titanium/hacks/report-validity-if-error.d.ts +0 -4
- package/titanium/hacks/report-validity-if-error.js +0 -6
- package/titanium/hacks/report-validity-if-error.js.map +0 -1
- package/titanium/header/header.d.ts +0 -39
- package/titanium/header/header.js +0 -167
- package/titanium/header/header.js.map +0 -1
- package/titanium/helpers/address/country-abbr-to-titlecase.d.ts +0 -5
- package/titanium/helpers/address/country-abbr-to-titlecase.js +0 -243
- package/titanium/helpers/address/country-abbr-to-titlecase.js.map +0 -1
- package/titanium/helpers/address/format-address.d.ts +0 -22
- package/titanium/helpers/address/format-address.js +0 -33
- package/titanium/helpers/address/format-address.js.map +0 -1
- package/titanium/helpers/address/get-country-name.d.ts +0 -2
- package/titanium/helpers/address/get-country-name.js +0 -12
- package/titanium/helpers/address/get-country-name.js.map +0 -1
- package/titanium/helpers/address/states-abbr-to-titlecase.d.ts +0 -9
- package/titanium/helpers/address/states-abbr-to-titlecase.js +0 -117
- package/titanium/helpers/address/states-abbr-to-titlecase.js.map +0 -1
- package/titanium/helpers/csv/convert-array-to-csv.d.ts +0 -2
- package/titanium/helpers/csv/convert-array-to-csv.js +0 -35
- package/titanium/helpers/csv/convert-array-to-csv.js.map +0 -1
- package/titanium/helpers/csv/flatten-object.d.ts +0 -2
- package/titanium/helpers/csv/flatten-object.js +0 -64
- package/titanium/helpers/csv/flatten-object.js.map +0 -1
- package/titanium/helpers/csv/start-csv-download.d.ts +0 -2
- package/titanium/helpers/csv/start-csv-download.js +0 -11
- package/titanium/helpers/csv/start-csv-download.js.map +0 -1
- package/titanium/helpers/debouncer.d.ts +0 -13
- package/titanium/helpers/debouncer.js +0 -33
- package/titanium/helpers/debouncer.js.map +0 -1
- package/titanium/helpers/delay.d.ts +0 -2
- package/titanium/helpers/delay.js +0 -6
- package/titanium/helpers/delay.js.map +0 -1
- package/titanium/helpers/escape-term.d.ts +0 -2
- package/titanium/helpers/escape-term.js +0 -2
- package/titanium/helpers/escape-term.js.map +0 -1
- package/titanium/helpers/find-scrollable-parent.d.ts +0 -2
- package/titanium/helpers/find-scrollable-parent.js +0 -13
- package/titanium/helpers/find-scrollable-parent.js.map +0 -1
- package/titanium/helpers/get-cdn-Inline-url.d.ts +0 -4
- package/titanium/helpers/get-cdn-Inline-url.js +0 -27
- package/titanium/helpers/get-cdn-Inline-url.js.map +0 -1
- package/titanium/helpers/get-cdn-download-url.d.ts +0 -3
- package/titanium/helpers/get-cdn-download-url.js +0 -12
- package/titanium/helpers/get-cdn-download-url.js.map +0 -1
- package/titanium/helpers/get-company-logo-url.d.ts +0 -3
- package/titanium/helpers/get-company-logo-url.js +0 -6
- package/titanium/helpers/get-company-logo-url.js.map +0 -1
- package/titanium/helpers/get-company-mark-url.d.ts +0 -3
- package/titanium/helpers/get-company-mark-url.js +0 -6
- package/titanium/helpers/get-company-mark-url.js.map +0 -1
- package/titanium/helpers/get-search-token.d.ts +0 -2
- package/titanium/helpers/get-search-token.js +0 -17
- package/titanium/helpers/get-search-token.js.map +0 -1
- package/titanium/helpers/group-by.d.ts +0 -2
- package/titanium/helpers/group-by.js +0 -7
- package/titanium/helpers/group-by.js.map +0 -1
- package/titanium/helpers/helpers.d.ts +0 -15
- package/titanium/helpers/helpers.js +0 -15
- package/titanium/helpers/helpers.js.map +0 -1
- package/titanium/helpers/install-media-query-watcher.d.ts +0 -2
- package/titanium/helpers/install-media-query-watcher.js +0 -6
- package/titanium/helpers/install-media-query-watcher.js.map +0 -1
- package/titanium/helpers/is-development.d.ts +0 -3
- package/titanium/helpers/is-development.js +0 -12
- package/titanium/helpers/is-development.js.map +0 -1
- package/titanium/helpers/join.d.ts +0 -2
- package/titanium/helpers/join.js +0 -5
- package/titanium/helpers/join.js.map +0 -1
- package/titanium/helpers/load-while.d.ts +0 -374
- package/titanium/helpers/load-while.js +0 -28
- package/titanium/helpers/load-while.js.map +0 -1
- package/titanium/helpers/middle-ellipsis.d.ts +0 -2
- package/titanium/helpers/middle-ellipsis.js +0 -7
- package/titanium/helpers/middle-ellipsis.js.map +0 -1
- package/titanium/helpers/not-null-or-undefined.d.ts +0 -2
- package/titanium/helpers/not-null-or-undefined.js +0 -4
- package/titanium/helpers/not-null-or-undefined.js.map +0 -1
- package/titanium/helpers/not-null.d.ts +0 -2
- package/titanium/helpers/not-null.js +0 -4
- package/titanium/helpers/not-null.js.map +0 -1
- package/titanium/helpers/not-undefined.d.ts +0 -2
- package/titanium/helpers/not-undefined.js +0 -4
- package/titanium/helpers/not-undefined.js.map +0 -1
- package/titanium/helpers/pending-state-catcher.d.ts +0 -416
- package/titanium/helpers/pending-state-catcher.js +0 -88
- package/titanium/helpers/pending-state-catcher.js.map +0 -1
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.d.ts +0 -2
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.js +0 -9
- package/titanium/helpers/phone-numbers/format-phone-number-dashes.js.map +0 -1
- package/titanium/helpers/phone-numbers/format-phone-number-dots.d.ts +0 -2
- package/titanium/helpers/phone-numbers/format-phone-number-dots.js +0 -9
- package/titanium/helpers/phone-numbers/format-phone-number-dots.js.map +0 -1
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.d.ts +0 -2
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.js +0 -9
- package/titanium/helpers/phone-numbers/format-phone-number-numbers-only.js.map +0 -1
- package/titanium/helpers/phone-numbers/format-phone-number.d.ts +0 -2
- package/titanium/helpers/phone-numbers/format-phone-number.js +0 -9
- package/titanium/helpers/phone-numbers/format-phone-number.js.map +0 -1
- package/titanium/helpers/phone-numbers/phone-mask.d.ts +0 -2
- package/titanium/helpers/phone-numbers/phone-mask.js +0 -5
- package/titanium/helpers/phone-numbers/phone-mask.js.map +0 -1
- package/titanium/helpers/phone-numbers/try-format-phone-number.d.ts +0 -2
- package/titanium/helpers/phone-numbers/try-format-phone-number.js +0 -9
- package/titanium/helpers/phone-numbers/try-format-phone-number.js.map +0 -1
- package/titanium/icon-picker/icon-picker.d.ts +0 -37
- package/titanium/icon-picker/icon-picker.js +0 -160
- package/titanium/icon-picker/icon-picker.js.map +0 -1
- package/titanium/icon-picker/material-symbols.d.ts +0 -3
- package/titanium/icon-picker/material-symbols.js +0 -3297
- package/titanium/icon-picker/material-symbols.js.map +0 -1
- package/titanium/input-validator/filled-input-validator.d.ts +0 -20
- package/titanium/input-validator/filled-input-validator.js +0 -48
- package/titanium/input-validator/filled-input-validator.js.map +0 -1
- package/titanium/input-validator/input-validator.d.ts +0 -20
- package/titanium/input-validator/input-validator.js +0 -48
- package/titanium/input-validator/input-validator.js.map +0 -1
- package/titanium/input-validator/outlined-input-validator.d.ts +0 -20
- package/titanium/input-validator/outlined-input-validator.js +0 -48
- package/titanium/input-validator/outlined-input-validator.js.map +0 -1
- package/titanium/profile-picture-stack/profile-picture-stack.d.ts +0 -51
- package/titanium/profile-picture-stack/profile-picture-stack.js +0 -212
- package/titanium/profile-picture-stack/profile-picture-stack.js.map +0 -1
- package/titanium/search-input/filled-search-input.d.ts +0 -15
- package/titanium/search-input/filled-search-input.js +0 -111
- package/titanium/search-input/filled-search-input.js.map +0 -1
- package/titanium/search-input/search-input.d.ts +0 -29
- package/titanium/search-input/search-input.js +0 -123
- package/titanium/search-input/search-input.js.map +0 -1
- package/titanium/service-worker-notifier/service-worker-notifier.d.ts +0 -9
- package/titanium/service-worker-notifier/service-worker-notifier.js +0 -58
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +0 -1
- package/titanium/show-hide/show-hide.d.ts +0 -41
- package/titanium/show-hide/show-hide.js +0 -171
- package/titanium/show-hide/show-hide.js.map +0 -1
- package/titanium/single-select-base/single-select-base.d.ts +0 -514
- package/titanium/single-select-base/single-select-base.js +0 -549
- package/titanium/single-select-base/single-select-base.js.map +0 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +0 -422
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +0 -467
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +0 -1
- package/titanium/smart-attachment-input/cropper-styles.d.ts +0 -3
- package/titanium/smart-attachment-input/cropper-styles.js +0 -318
- package/titanium/smart-attachment-input/cropper-styles.js.map +0 -1
- package/titanium/smart-attachment-input/image-formats.d.ts +0 -5
- package/titanium/smart-attachment-input/image-formats.js +0 -37
- package/titanium/smart-attachment-input/image-formats.js.map +0 -1
- package/titanium/smart-attachment-input/image-preview-dialog.d.ts +0 -21
- package/titanium/smart-attachment-input/image-preview-dialog.js +0 -96
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +0 -1
- 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 +0 -133
- package/titanium/smart-attachment-input/smart-attachment-input.js +0 -497
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +0 -1
- package/titanium/smart-attachment-input/type/smart-attachment.d.ts +0 -7
- package/titanium/smart-attachment-input/type/smart-attachment.js +0 -2
- package/titanium/smart-attachment-input/type/smart-attachment.js.map +0 -1
- package/titanium/snackbar/show-snackbar-event.d.ts +0 -9
- package/titanium/snackbar/show-snackbar-event.js +0 -9
- package/titanium/snackbar/show-snackbar-event.js.map +0 -1
- package/titanium/snackbar/snackbar-stack.d.ts +0 -24
- package/titanium/snackbar/snackbar-stack.js +0 -99
- package/titanium/snackbar/snackbar-stack.js.map +0 -1
- package/titanium/snackbar/snackbars/http-error-snackbar.d.ts +0 -28
- package/titanium/snackbar/snackbars/http-error-snackbar.js +0 -155
- package/titanium/snackbar/snackbars/http-error-snackbar.js.map +0 -1
- package/titanium/snackbar/snackbars/simple-snackbar.d.ts +0 -27
- package/titanium/snackbar/snackbars/simple-snackbar.js +0 -140
- package/titanium/snackbar/snackbars/simple-snackbar.js.map +0 -1
- package/titanium/snackbar/types/snackbar-options.d.ts +0 -9
- package/titanium/snackbar/types/snackbar-options.js +0 -2
- package/titanium/snackbar/types/snackbar-options.js.map +0 -1
- package/titanium/styles/a.d.ts +0 -2
- package/titanium/styles/a.js +0 -18
- package/titanium/styles/a.js.map +0 -1
- package/titanium/styles/data-row.d.ts +0 -2
- package/titanium/styles/data-row.js +0 -61
- package/titanium/styles/data-row.js.map +0 -1
- package/titanium/styles/ellipsis.d.ts +0 -2
- package/titanium/styles/ellipsis.js +0 -9
- package/titanium/styles/ellipsis.js.map +0 -1
- package/titanium/styles/h1.d.ts +0 -2
- package/titanium/styles/h1.js +0 -17
- package/titanium/styles/h1.js.map +0 -1
- package/titanium/styles/h2.d.ts +0 -2
- package/titanium/styles/h2.js +0 -17
- package/titanium/styles/h2.js.map +0 -1
- package/titanium/styles/h3.d.ts +0 -2
- package/titanium/styles/h3.js +0 -17
- package/titanium/styles/h3.js.map +0 -1
- package/titanium/styles/h4.d.ts +0 -2
- package/titanium/styles/h4.js +0 -17
- package/titanium/styles/h4.js.map +0 -1
- package/titanium/styles/h5.d.ts +0 -2
- package/titanium/styles/h5.js +0 -19
- package/titanium/styles/h5.js.map +0 -1
- package/titanium/styles/nice-badge.d.ts +0 -2
- package/titanium/styles/nice-badge.js +0 -53
- package/titanium/styles/nice-badge.js.map +0 -1
- package/titanium/styles/p.d.ts +0 -2
- package/titanium/styles/p.js +0 -17
- package/titanium/styles/p.js.map +0 -1
- package/titanium/styles/styles.d.ts +0 -17
- package/titanium/styles/styles.js +0 -17
- package/titanium/styles/styles.js.map +0 -1
- package/titanium/toolbar/toolbar.d.ts +0 -24
- package/titanium/toolbar/toolbar.js +0 -100
- package/titanium/toolbar/toolbar.js.map +0 -1
- package/titanium/types/any-function.d.ts +0 -5
- package/titanium/types/any-function.js +0 -5
- package/titanium/types/any-function.js.map +0 -1
- package/titanium/types/dom-event.d.ts +0 -4
- package/titanium/types/dom-event.js +0 -2
- package/titanium/types/dom-event.js.map +0 -1
- package/titanium/types/identifier-interface.d.ts +0 -4
- package/titanium/types/identifier-interface.js +0 -2
- package/titanium/types/identifier-interface.js.map +0 -1
- package/titanium/types/pending-state-event.d.ts +0 -7
- package/titanium/types/pending-state-event.js +0 -7
- package/titanium/types/pending-state-event.js.map +0 -1
- package/titanium/types/string-map.d.ts +0 -7
- package/titanium/types/string-map.js +0 -5
- package/titanium/types/string-map.js.map +0 -1
- package/titanium/youtube-input/youtube-input.d.ts +0 -19
- package/titanium/youtube-input/youtube-input.js +0 -68
- package/titanium/youtube-input/youtube-input.js.map +0 -1
|
@@ -1,745 +0,0 @@
|
|
|
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
|