@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,31 +0,0 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
|
-
import { MdFilledTextField } from '@material/web/textfield/filled-text-field';
|
|
3
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
4
|
-
/**
|
|
5
|
-
* titanium-filled-duration-input is a human readable duration textfield.
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-filled-duration-input
|
|
8
|
-
*
|
|
9
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare class TitaniumFilledDurationInput extends MdFilledTextField {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
16
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
17
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
18
|
-
*/
|
|
19
|
-
accessor duration: duration.Duration | null;
|
|
20
|
-
label: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
autocomplete: string;
|
|
23
|
-
spellcheck: boolean;
|
|
24
|
-
updated(changedProps: PropertyValues<this>): void;
|
|
25
|
-
firstUpdated(): void;
|
|
26
|
-
checkValidity(): boolean;
|
|
27
|
-
reportValidity(): boolean;
|
|
28
|
-
reset(): Promise<void>;
|
|
29
|
-
static styles: import("lit").CSSResultOrNative[];
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=filled-duration-input.d.ts.map
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
3
|
-
import { css } from 'lit';
|
|
4
|
-
import { MdFilledTextField } from '@material/web/textfield/filled-text-field';
|
|
5
|
-
import dayjs from 'dayjs/esm';
|
|
6
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
7
|
-
import humanInterval, { durationToString } from './human-interval';
|
|
8
|
-
dayjs.extend(duration);
|
|
9
|
-
/**
|
|
10
|
-
* titanium-filled-duration-input is a human readable duration textfield.
|
|
11
|
-
*
|
|
12
|
-
* @element titanium-filled-duration-input
|
|
13
|
-
*
|
|
14
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
let TitaniumFilledDurationInput = class TitaniumFilledDurationInput extends MdFilledTextField {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.#duration_accessor_storage = null;
|
|
21
|
-
this.label = 'Duration';
|
|
22
|
-
this.placeholder = '3 hours and 30 minutes';
|
|
23
|
-
this.autocomplete = 'off';
|
|
24
|
-
this.spellcheck = false;
|
|
25
|
-
}
|
|
26
|
-
#duration_accessor_storage;
|
|
27
|
-
/**
|
|
28
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
29
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
30
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
31
|
-
*/
|
|
32
|
-
get duration() { return this.#duration_accessor_storage; }
|
|
33
|
-
set duration(value) { this.#duration_accessor_storage = value; }
|
|
34
|
-
updated(changedProps) {
|
|
35
|
-
if (changedProps.has('duration') && changedProps.get('duration') !== this.duration) {
|
|
36
|
-
if (this.duration) {
|
|
37
|
-
this.value = durationToString(this.duration);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.duration = null;
|
|
41
|
-
this.value = '';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
firstUpdated() {
|
|
46
|
-
this.addEventListener('change', () => {
|
|
47
|
-
this.reportValidity();
|
|
48
|
-
const dur = this.#textToInterval(this.value);
|
|
49
|
-
if (dur?.asMilliseconds() != this.duration?.asMilliseconds()) {
|
|
50
|
-
this.duration = dur;
|
|
51
|
-
this.dispatchEvent(new Event('duration-change'));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
checkValidity() {
|
|
56
|
-
return super.checkValidity() && this.#customCheckValidity(this.value);
|
|
57
|
-
}
|
|
58
|
-
reportValidity() {
|
|
59
|
-
if (!this.#customCheckValidity(this.value)) {
|
|
60
|
-
this.error = true;
|
|
61
|
-
this.errorText = 'Duration was entered in an incorrect format. Try "3 hours and 30 minutes"';
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
this.error = false;
|
|
65
|
-
this.errorText = '';
|
|
66
|
-
}
|
|
67
|
-
return super.reportValidity();
|
|
68
|
-
}
|
|
69
|
-
#customCheckValidity(input) {
|
|
70
|
-
if (input && !this.#textToInterval(input)) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
#textToInterval(input) {
|
|
78
|
-
if (!input) {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
const ms = humanInterval(input);
|
|
82
|
-
return isNaN(ms) ? null : dayjs.duration(ms, 'ms');
|
|
83
|
-
}
|
|
84
|
-
async reset() {
|
|
85
|
-
super.reset();
|
|
86
|
-
this.error = false;
|
|
87
|
-
this.errorText = '';
|
|
88
|
-
this.duration = null;
|
|
89
|
-
}
|
|
90
|
-
static { this.styles = [
|
|
91
|
-
...(Array.isArray(MdFilledTextField.styles) ? MdFilledTextField.styles : [MdFilledTextField.styles]),
|
|
92
|
-
css `
|
|
93
|
-
:host {
|
|
94
|
-
--md-filled-text-field-container-shape: 16px;
|
|
95
|
-
--md-filled-text-field-active-indicator-height: 0;
|
|
96
|
-
--md-filled-text-field-error-active-indicator-height: 0;
|
|
97
|
-
--md-filled-text-field-hover-active-indicator-height: 0;
|
|
98
|
-
--md-filled-text-field-focus-active-indicator-height: 0;
|
|
99
|
-
--md-filled-text-field-disabled-active-indicator-height: 0;
|
|
100
|
-
}
|
|
101
|
-
`,
|
|
102
|
-
]; }
|
|
103
|
-
};
|
|
104
|
-
__decorate([
|
|
105
|
-
property({ type: Object })
|
|
106
|
-
], TitaniumFilledDurationInput.prototype, "duration", null);
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: String })
|
|
109
|
-
], TitaniumFilledDurationInput.prototype, "label", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
property({ type: String })
|
|
112
|
-
], TitaniumFilledDurationInput.prototype, "placeholder", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ type: String })
|
|
115
|
-
], TitaniumFilledDurationInput.prototype, "autocomplete", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ type: Boolean })
|
|
118
|
-
], TitaniumFilledDurationInput.prototype, "spellcheck", void 0);
|
|
119
|
-
TitaniumFilledDurationInput = __decorate([
|
|
120
|
-
customElement('titanium-filled-duration-input')
|
|
121
|
-
], TitaniumFilledDurationInput);
|
|
122
|
-
export { TitaniumFilledDurationInput };
|
|
123
|
-
//# sourceMappingURL=filled-duration-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filled-duration-input.js","sourceRoot":"","sources":["filled-duration-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,aAAa,EAAE,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACnE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEvB;;;;;;;GAOG;AAGI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,iBAAiB;IAA3D;;QAMgC,kCAAqC,IAAI,CAAC;QACnD,UAAK,GAAW,UAAU,CAAC;QAC3B,gBAAW,GAAW,wBAAwB,CAAC;QAC/C,iBAAY,GAAW,KAAK,CAAC;QAC5B,eAAU,GAAY,KAAK,CAAC;IA4E3D,CAAC;IAhFsC,2BAA0C;IAL/E;;;;OAIG;IACkC,IAAA,QAAQ,8CAAkC;IAA1C,IAAA,QAAQ,oDAAkC;IAM/E,OAAO,CAAC,YAAkC;QACxC,IAAI,YAAY,CAAC,GAAG,CAAC,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EAAE,CAAC;iEAA8B;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+DAA6B;AAV9C,2BAA2B;IADvC,aAAa,CAAC,gCAAgC,CAAC;GACnC,2BAA2B,CAsFvC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
2
|
-
declare const humanInterval: {
|
|
3
|
-
(time: any): any;
|
|
4
|
-
languageMap: {
|
|
5
|
-
one: number;
|
|
6
|
-
two: number;
|
|
7
|
-
three: number;
|
|
8
|
-
four: number;
|
|
9
|
-
five: number;
|
|
10
|
-
six: number;
|
|
11
|
-
seven: number;
|
|
12
|
-
eight: number;
|
|
13
|
-
nine: number;
|
|
14
|
-
ten: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare function durationToString(d: duration.Duration | null | undefined): string;
|
|
18
|
-
export default humanInterval;
|
|
19
|
-
//# sourceMappingURL=human-interval.d.ts.map
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// https://github.com/agenda/human-interval
|
|
2
|
-
// Does not support esm
|
|
3
|
-
const units = {};
|
|
4
|
-
units.second = 1000;
|
|
5
|
-
units.minute = units.second * 60;
|
|
6
|
-
units.hour = units.minute * 60;
|
|
7
|
-
units.day = units.hour * 24;
|
|
8
|
-
units.week = units.day * 7;
|
|
9
|
-
units.month = units.day * 30;
|
|
10
|
-
units.year = units.day * 365;
|
|
11
|
-
const languageMap = {
|
|
12
|
-
one: 1,
|
|
13
|
-
two: 2,
|
|
14
|
-
three: 3,
|
|
15
|
-
four: 4,
|
|
16
|
-
five: 5,
|
|
17
|
-
six: 6,
|
|
18
|
-
seven: 7,
|
|
19
|
-
eight: 8,
|
|
20
|
-
nine: 9,
|
|
21
|
-
ten: 10,
|
|
22
|
-
};
|
|
23
|
-
const swapLanguageToDecimals = (time) => {
|
|
24
|
-
const language = languageMap;
|
|
25
|
-
const languageMapRegex = new RegExp('(' + Object.keys(language).join('|') + ')', 'g');
|
|
26
|
-
const matches = time.match(languageMapRegex);
|
|
27
|
-
if (!matches) {
|
|
28
|
-
return time;
|
|
29
|
-
}
|
|
30
|
-
matches.forEach((match) => {
|
|
31
|
-
const matchStr = language[match] > 1 ? language[match] : language[match].toString().slice(1);
|
|
32
|
-
time = time.replace(match, matchStr);
|
|
33
|
-
});
|
|
34
|
-
return time;
|
|
35
|
-
};
|
|
36
|
-
const processUnits = (time) => {
|
|
37
|
-
if (time.match(/(second|minute|hour|day|week|month|year)s?/) === null) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
const num = parseFloat(time) || 1;
|
|
41
|
-
const unit = time.match(/(second|minute|hour|day|week|month|year)s?/)[1];
|
|
42
|
-
return units[unit] * num;
|
|
43
|
-
};
|
|
44
|
-
const humanInterval = (time) => {
|
|
45
|
-
if (!time) {
|
|
46
|
-
return time;
|
|
47
|
-
}
|
|
48
|
-
if (typeof time === 'number') {
|
|
49
|
-
return time;
|
|
50
|
-
}
|
|
51
|
-
time = swapLanguageToDecimals(time);
|
|
52
|
-
time = time.replace(/(second|minute|hour|day|week|month|year)s?(?! ?(s )?and |s?$)/, '$1,');
|
|
53
|
-
return time.split(/and|,/).reduce((sum, group) => sum + (group ? processUnits(group) : 0), 0);
|
|
54
|
-
};
|
|
55
|
-
humanInterval.languageMap = languageMap;
|
|
56
|
-
export function durationToString(d) {
|
|
57
|
-
if (d === null || d === undefined) {
|
|
58
|
-
return '';
|
|
59
|
-
}
|
|
60
|
-
return Object.entries({
|
|
61
|
-
years: d.years(),
|
|
62
|
-
months: d.months(),
|
|
63
|
-
days: d.days(),
|
|
64
|
-
hours: d.hours(),
|
|
65
|
-
minutes: d.minutes(),
|
|
66
|
-
seconds: d.seconds(),
|
|
67
|
-
})
|
|
68
|
-
.filter((value) => value[1] !== 0)
|
|
69
|
-
.map((value) => `${value[1]} ${value[1] === 1 ? value[0].slice(0, -1) : value[0]}`)
|
|
70
|
-
.join(' and ');
|
|
71
|
-
}
|
|
72
|
-
export default humanInterval;
|
|
73
|
-
//# sourceMappingURL=human-interval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"human-interval.js","sourceRoot":"","sources":["human-interval.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,uBAAuB;AAIvB,MAAM,KAAK,GAAQ,EAAE,CAAC;AACtB,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;AACpB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC;AACjC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC;AAC/B,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;AAC5B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AAC3B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,GAAG,EAAE,CAAC;AAC7B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;AAE7B,MAAM,WAAW,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,EAAE;CACR,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,EAAE;IACtC,MAAM,QAAQ,GAAG,WAAW,CAAC;IAC7B,MAAM,gBAAgB,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IACtF,MAAM,OAAO,GAAG,IAAI,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@material/web/textfield/outlined-text-field';
|
|
3
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
4
|
-
/**
|
|
5
|
-
* titanium-outlined-duration-input is a human readable duration textfield.
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-outlined-duration-input
|
|
8
|
-
*
|
|
9
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare class TitaniumOutlinedDurationInput extends MdOutlinedTextField {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
16
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
17
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
18
|
-
*/
|
|
19
|
-
accessor duration: duration.Duration | null;
|
|
20
|
-
label: string;
|
|
21
|
-
supportingText: string;
|
|
22
|
-
autocomplete: string;
|
|
23
|
-
spellcheck: boolean;
|
|
24
|
-
updated(changedProps: PropertyValues<this>): void;
|
|
25
|
-
firstUpdated(): void;
|
|
26
|
-
checkValidity(): boolean;
|
|
27
|
-
reportValidity(): boolean;
|
|
28
|
-
reset(): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=outlined-duration-input.d.ts.map
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
3
|
-
import { MdOutlinedTextField } from '@material/web/textfield/outlined-text-field';
|
|
4
|
-
import dayjs from 'dayjs/esm';
|
|
5
|
-
import duration from 'dayjs/esm/plugin/duration';
|
|
6
|
-
import humanInterval, { durationToString } from './human-interval';
|
|
7
|
-
dayjs.extend(duration);
|
|
8
|
-
/**
|
|
9
|
-
* titanium-outlined-duration-input is a human readable duration textfield.
|
|
10
|
-
*
|
|
11
|
-
* @element titanium-outlined-duration-input
|
|
12
|
-
*
|
|
13
|
-
* @fires duration-change The duration can be accessed via event.target.duration
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
let TitaniumOutlinedDurationInput = class TitaniumOutlinedDurationInput extends MdOutlinedTextField {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.#duration_accessor_storage = null;
|
|
20
|
-
this.label = 'Duration';
|
|
21
|
-
this.supportingText = 'Enter a duration ex. "3 hours and 30 minutes"';
|
|
22
|
-
this.autocomplete = 'off';
|
|
23
|
-
this.spellcheck = false;
|
|
24
|
-
}
|
|
25
|
-
#duration_accessor_storage;
|
|
26
|
-
/**
|
|
27
|
-
* Dayjs duration object. This is the main property you will interact with because the value
|
|
28
|
-
* property of this component is actually the human readable string and not the duration you most likely
|
|
29
|
-
* want to work with. When changed a duration-change event will be dispatched.
|
|
30
|
-
*/
|
|
31
|
-
get duration() { return this.#duration_accessor_storage; }
|
|
32
|
-
set duration(value) { this.#duration_accessor_storage = value; }
|
|
33
|
-
updated(changedProps) {
|
|
34
|
-
if (changedProps.has('duration') && changedProps.get('duration') !== this.duration) {
|
|
35
|
-
if (this.duration) {
|
|
36
|
-
this.value = durationToString(this.duration);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
this.duration = null;
|
|
40
|
-
this.value = '';
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
firstUpdated() {
|
|
45
|
-
this.addEventListener('change', () => {
|
|
46
|
-
this.reportValidity();
|
|
47
|
-
const dur = this.#textToInterval(this.value);
|
|
48
|
-
if (dur?.asMilliseconds() != this.duration?.asMilliseconds()) {
|
|
49
|
-
this.duration = dur;
|
|
50
|
-
this.dispatchEvent(new Event('duration-change'));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
checkValidity() {
|
|
55
|
-
return super.checkValidity() && this.#customCheckValidity(this.value);
|
|
56
|
-
}
|
|
57
|
-
reportValidity() {
|
|
58
|
-
if (!this.#customCheckValidity(this.value)) {
|
|
59
|
-
this.error = true;
|
|
60
|
-
this.errorText = 'Duration was entered in an incorrect format. Try "3 hours and 30 minutes"';
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
this.error = false;
|
|
64
|
-
this.errorText = '';
|
|
65
|
-
}
|
|
66
|
-
return super.reportValidity();
|
|
67
|
-
}
|
|
68
|
-
#customCheckValidity(input) {
|
|
69
|
-
if (input && !this.#textToInterval(input)) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
#textToInterval(input) {
|
|
77
|
-
if (!input) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
const ms = humanInterval(input);
|
|
81
|
-
return isNaN(ms) ? null : dayjs.duration(ms, 'ms');
|
|
82
|
-
}
|
|
83
|
-
async reset() {
|
|
84
|
-
super.reset();
|
|
85
|
-
this.error = false;
|
|
86
|
-
this.errorText = '';
|
|
87
|
-
this.duration = null;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ type: Object })
|
|
92
|
-
], TitaniumOutlinedDurationInput.prototype, "duration", null);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
], TitaniumOutlinedDurationInput.prototype, "label", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: String })
|
|
98
|
-
], TitaniumOutlinedDurationInput.prototype, "supportingText", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ type: String })
|
|
101
|
-
], TitaniumOutlinedDurationInput.prototype, "autocomplete", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ type: Boolean })
|
|
104
|
-
], TitaniumOutlinedDurationInput.prototype, "spellcheck", void 0);
|
|
105
|
-
TitaniumOutlinedDurationInput = __decorate([
|
|
106
|
-
customElement('titanium-outlined-duration-input')
|
|
107
|
-
], TitaniumOutlinedDurationInput);
|
|
108
|
-
export { TitaniumOutlinedDurationInput };
|
|
109
|
-
//# sourceMappingURL=outlined-duration-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outlined-duration-input.js","sourceRoot":"","sources":["outlined-duration-input.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,aAAa,EAAE,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACnE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEvB;;;;;;;GAOG;AAGI,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,mBAAmB;IAA/D;;QAMgC,kCAAqC,IAAI,CAAC;QACnD,UAAK,GAAW,UAAU,CAAC;QAC3B,mBAAc,GAAW,+CAA+C,CAAC;QACzE,iBAAY,GAAW,KAAK,CAAC;QAC5B,eAAU,GAAY,KAAK,CAAC;IA8D3D,CAAC;IAlEsC,2BAA0C;IAL/E;;;;OAIG;IACkC,IAAA,QAAQ,8CAAkC;IAA1C,IAAA,QAAQ,oDAAkC;IAM/E,OAAO,CAAC,YAAkC;QACxC,IAAI,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnF,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC/C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;IACH,CAAC;IAED,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AC,KAAK,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,KAAK,CAAC,KAAK,EAAE,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;CACF,CAAA;AAlEsC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6DAAoD;AACnD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAA4B;AAC3B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qEAA0E;AACzE;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mEAA8B;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEAA6B;AAV9C,6BAA6B;IADzC,aAAa,CAAC,kCAAkC,CAAC;GACrC,6BAA6B,CAwEzC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* A pre-styled error page
|
|
4
|
-
*
|
|
5
|
-
* @element titanium-error-page
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare class TitaniumErrorPage extends LitElement {
|
|
9
|
-
/**
|
|
10
|
-
* Reason text for the error
|
|
11
|
-
*/
|
|
12
|
-
accessor message: string;
|
|
13
|
-
static styles: import("lit").CSSResult;
|
|
14
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=error-page.d.ts.map
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, html, LitElement } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
/**
|
|
5
|
-
* A pre-styled error page
|
|
6
|
-
*
|
|
7
|
-
* @element titanium-error-page
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
let TitaniumErrorPage = class TitaniumErrorPage extends LitElement {
|
|
11
|
-
#message_accessor_storage = 'We were unable to find the page you are looking for...';
|
|
12
|
-
/**
|
|
13
|
-
* Reason text for the error
|
|
14
|
-
*/
|
|
15
|
-
get message() { return this.#message_accessor_storage; }
|
|
16
|
-
set message(value) { this.#message_accessor_storage = value; }
|
|
17
|
-
static { this.styles = css `
|
|
18
|
-
:host {
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
font-family: Roboto, sans-serif;
|
|
25
|
-
-moz-osx-font-smoothing: grayscale;
|
|
26
|
-
-webkit-font-smoothing: antialiased;
|
|
27
|
-
|
|
28
|
-
max-width: 1300px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
header {
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
margin-right: 24px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
h1 {
|
|
37
|
-
font-family: Metropolis, 'Roboto', 'Noto', sans-serif;
|
|
38
|
-
font-weight: 600;
|
|
39
|
-
font-size: 75px;
|
|
40
|
-
line-height: 85px;
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
h2 {
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
margin: 8px 0 0 4px;
|
|
47
|
-
max-width: 75%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
img {
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
height: 280px;
|
|
53
|
-
width: 280px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (max-width: 768px) {
|
|
57
|
-
:host {
|
|
58
|
-
margin-top: 24px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
h2 {
|
|
62
|
-
max-width: inherit;
|
|
63
|
-
font-size: 21px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
img {
|
|
67
|
-
height: 120px;
|
|
68
|
-
width: 120px;
|
|
69
|
-
align-self: flex-start;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
h1 {
|
|
73
|
-
font-size: 55px;
|
|
74
|
-
line-height: 65px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`; }
|
|
78
|
-
render() {
|
|
79
|
-
return html `
|
|
80
|
-
<header>
|
|
81
|
-
<h1>Oops!</h1>
|
|
82
|
-
<h2>${this.message}</h2>
|
|
83
|
-
</header>
|
|
84
|
-
<img src="https://www.leavitt.com/images/alert.svg" />
|
|
85
|
-
`;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
__decorate([
|
|
89
|
-
property({ type: String })
|
|
90
|
-
], TitaniumErrorPage.prototype, "message", null);
|
|
91
|
-
TitaniumErrorPage = __decorate([
|
|
92
|
-
customElement('titanium-error-page')
|
|
93
|
-
], TitaniumErrorPage);
|
|
94
|
-
export { TitaniumErrorPage };
|
|
95
|
-
//# sourceMappingURL=error-page.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-page.js","sourceRoot":"","sources":["error-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;GAKG;AAGI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAIV,4BAAkB,wDAAwD,CAAC;IAHhH;;OAEG;IACkC,IAAA,OAAO,6CAAoE;IAA3E,IAAA,OAAO,mDAAoE;aAEzG,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DlB,AA5DY,CA4DX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;;;cAGD,IAAI,CAAC,OAAO;;;KAGrB,CAAC;IACJ,CAAC;;AAxEoC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAqF;AAJrG,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA6E7B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type CrudEventTypes = 'Add' | 'Update' | 'Remove';
|
|
2
|
-
export type EventCallback<TArg> = (arg: TArg) => void;
|
|
3
|
-
export declare class EventBus<TEntityTypes, TEventTypes> {
|
|
4
|
-
#private;
|
|
5
|
-
subscribe<TArg>(entityType: TEntityTypes | TEntityTypes[], eventTypes: TEventTypes | TEventTypes[], callback: EventCallback<TArg>): void;
|
|
6
|
-
subscribeAll(entityType: TEntityTypes | TEntityTypes[], callback: () => void): void;
|
|
7
|
-
unsubscribe(entityType: TEntityTypes | TEntityTypes[], eventTypes: TEventTypes | TEventTypes[], callback: EventCallback<TEntityTypes>): void;
|
|
8
|
-
dispatch<TArg>(entityType: TEntityTypes, eventTypes: TEventTypes, object?: TArg): void;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=event-bus.d.ts.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export class EventBus {
|
|
2
|
-
#subscribers = [];
|
|
3
|
-
subscribe(entityType, eventTypes, callback) {
|
|
4
|
-
if (Array.isArray(entityType)) {
|
|
5
|
-
entityType.forEach((o) => this.subscribe(o, eventTypes, callback));
|
|
6
|
-
}
|
|
7
|
-
else {
|
|
8
|
-
if (Array.isArray(eventTypes)) {
|
|
9
|
-
eventTypes.forEach((o) => this.subscribe(entityType, o, callback));
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
this.#addSubscription(entityType, eventTypes, callback);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
subscribeAll(entityType, callback) {
|
|
17
|
-
if (Array.isArray(entityType)) {
|
|
18
|
-
entityType.forEach((o) => this.#addSubscription(o, 'All', callback));
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
this.#addSubscription(entityType, 'All', callback);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
#addSubscription(entityType, eventTypes, callback) {
|
|
25
|
-
const subscription = {
|
|
26
|
-
entityType: entityType,
|
|
27
|
-
eventTypes,
|
|
28
|
-
callback,
|
|
29
|
-
};
|
|
30
|
-
this.#subscribers.push(subscription);
|
|
31
|
-
}
|
|
32
|
-
unsubscribe(entityType, eventTypes, callback) {
|
|
33
|
-
if (Array.isArray(entityType)) {
|
|
34
|
-
entityType.forEach((o) => this.unsubscribe(o, eventTypes, callback));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
if (Array.isArray(eventTypes)) {
|
|
38
|
-
eventTypes.forEach((o) => this.unsubscribe(entityType, o, callback));
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.#removeSubscription(entityType, eventTypes, callback);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
#removeSubscription(entityType, eventTypes, callback) {
|
|
46
|
-
this.#subscribers = this.#subscribers.filter((s) => s.callback !== callback || s.entityType !== entityType || s.eventTypes !== eventTypes);
|
|
47
|
-
}
|
|
48
|
-
dispatch(entityType, eventTypes, object) {
|
|
49
|
-
this.#subscribers.filter((s) => s.entityType === entityType && (s.eventTypes === 'All' || s.eventTypes === eventTypes)).forEach((s) => s.callback(object));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=event-bus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-bus.js","s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