@elderbyte/ngx-starter 17.7.2 → 17.8.0
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/esm2022/lib/common/arrays.mjs +2 -2
- package/esm2022/lib/common/csv/csv-serializer.mjs +1 -1
- package/esm2022/lib/common/data/data-context/data-context-active-page.mjs +1 -1
- package/esm2022/lib/common/data/data-context/data-context-base.mjs +2 -2
- package/esm2022/lib/common/data/data-context/mat-table-data-context-binding.mjs +1 -1
- package/esm2022/lib/common/data/datasource/data-source-adapter.mjs +1 -1
- package/esm2022/lib/common/data/datasource/data-source-base.mjs +1 -1
- package/esm2022/lib/common/data/datasource/local/local-list-data-source.mjs +4 -4
- package/esm2022/lib/common/data/datasource/rest/rest-client.mjs +2 -2
- package/esm2022/lib/common/data/field-comparator.mjs +1 -1
- package/esm2022/lib/common/data/filters/filter-context.mjs +2 -2
- package/esm2022/lib/common/data/http-params-builder.mjs +2 -2
- package/esm2022/lib/common/data/required-filter-evaluator.mjs +5 -5
- package/esm2022/lib/common/enums/elder-enum-translation.service.mjs +11 -11
- package/esm2022/lib/common/forms/elder-form-field-control-base.directive.mjs +1 -1
- package/esm2022/lib/common/forms/elder-from-field-base.mjs +1 -1
- package/esm2022/lib/common/forms/elder-from-field-multi-entity-base.mjs +1 -1
- package/esm2022/lib/common/forms/elder-multi-entity-value-accessor.mjs +1 -1
- package/esm2022/lib/common/forms/form-field-base.component.mjs +1 -1
- package/esm2022/lib/common/forms/multi-model-base.component.mjs +1 -1
- package/esm2022/lib/common/forms/template-composite-control.mjs +2 -3
- package/esm2022/lib/common/forms/value-accessor-base.mjs +1 -1
- package/esm2022/lib/common/http/http-client-builder.service.mjs +1 -1
- package/esm2022/lib/common/http/transfer/data-transfer-base.mjs +1 -1
- package/esm2022/lib/common/http/transfer/http-data-transfer.mjs +1 -1
- package/esm2022/lib/common/rxjs/operators/lazy-sample.mjs +1 -1
- package/esm2022/lib/common/time/interval.mjs +6 -6
- package/esm2022/lib/common/time/period-duration.mjs +1 -1
- package/esm2022/lib/common/url/elder-router.service.mjs +1 -1
- package/esm2022/lib/common/utils/ng-zone-utils.mjs +1 -1
- package/esm2022/lib/components/access-denied/elder-access-denied.component.mjs +1 -1
- package/esm2022/lib/components/access-denied/elder-access-denied.module.mjs +1 -1
- package/esm2022/lib/components/auditing/audited-entity/elder-audited-entity.component.mjs +1 -1
- package/esm2022/lib/components/auditing/elder-audit.module.mjs +1 -1
- package/esm2022/lib/components/badge/elder-badge/elder-badge.component.mjs +1 -1
- package/esm2022/lib/components/badge/elder-badge.module.mjs +4 -4
- package/esm2022/lib/components/card-organizer/card-organizer/elder-card-organizer.component.mjs +5 -9
- package/esm2022/lib/components/card-organizer/card-organizer-data.mjs +1 -1
- package/esm2022/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +5 -9
- package/esm2022/lib/components/card-organizer/card-stack.mjs +1 -1
- package/esm2022/lib/components/card-organizer/elder-card-organizer.module.mjs +1 -1
- package/esm2022/lib/components/cards/elder-card/elder-card-header/elder-card-header.component.mjs +1 -1
- package/esm2022/lib/components/cards/elder-card/elder-card.component.mjs +6 -6
- package/esm2022/lib/components/cards/elder-card/elder-card.module.mjs +1 -1
- package/esm2022/lib/components/chips/elder-chips.module.mjs +1 -1
- package/esm2022/lib/components/connectivity/elder-connectivity.module.mjs +1 -1
- package/esm2022/lib/components/connectivity/offline-indicator/elder-offline-indicator.component.mjs +1 -1
- package/esm2022/lib/components/containers/elder-containers.module.mjs +1 -1
- package/esm2022/lib/components/containers/elder-scroll-container/elder-scroll-container.component.mjs +1 -1
- package/esm2022/lib/components/csv/elder-csv-export-btn/elder-csv-export-btn.component.mjs +1 -1
- package/esm2022/lib/components/csv/elder-csv-stream-exporter-builder.mjs +1 -1
- package/esm2022/lib/components/csv/elder-csv-stream-exporter.mjs +1 -1
- package/esm2022/lib/components/csv/elder-csv.module.mjs +1 -1
- package/esm2022/lib/components/currency/elder-currency.module.mjs +1 -1
- package/esm2022/lib/components/currency/elder-currency.pipe.mjs +1 -1
- package/esm2022/lib/components/data-transfer/elder-data-transfer.module.mjs +1 -1
- package/esm2022/lib/components/data-transfer/elder-data-transfer.service.mjs +1 -1
- package/esm2022/lib/components/data-transfer/http-data-transfer/http-data-transfer.component.mjs +1 -1
- package/esm2022/lib/components/data-transfer/http-data-transfer-aggregate/http-data-transfer-aggregate.component.mjs +1 -1
- package/esm2022/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +1 -1
- package/esm2022/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +1 -1
- package/esm2022/lib/components/data-view/base/elder-data-view-base.mjs +1 -1
- package/esm2022/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.mjs +1 -1
- package/esm2022/lib/components/data-view/common/elder-data-common.module.mjs +2 -2
- package/esm2022/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.mjs +1 -1
- package/esm2022/lib/components/data-view/common/elder-single-sort/elder-single-sort.component.mjs +1 -1
- package/esm2022/lib/components/data-view/common/selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component.mjs +1 -1
- package/esm2022/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +1 -1
- package/esm2022/lib/components/data-view/master-detail/elder-detail-dialog/elder-detail-dialog.component.mjs +1 -1
- package/esm2022/lib/components/data-view/master-detail/elder-master-activation.directive.mjs +2 -2
- package/esm2022/lib/components/data-view/master-detail/elder-master-detail.component.mjs +3 -3
- package/esm2022/lib/components/data-view/master-detail/elder-master-detail.service.mjs +1 -1
- package/esm2022/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.module.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-number-cell.directive.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-paginator-intl.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table/elder-table.component.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table-column.directive.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table-extension.directive.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table-root.directive.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table-sort.directive.mjs +1 -1
- package/esm2022/lib/components/data-view/table/elder-table.module.mjs +1 -1
- package/esm2022/lib/components/data-view/table/model/elder-table-model-query-group.mjs +1 -1
- package/esm2022/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +1 -1
- package/esm2022/lib/components/dialogs/elder-dialog-config.mjs +1 -1
- package/esm2022/lib/components/dialogs/elder-dialog.module.mjs +1 -1
- package/esm2022/lib/components/dialogs/question-dialog/elder-question-dialog.component.mjs +1 -1
- package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +1 -1
- package/esm2022/lib/components/dialogs/selection-dialog/elder-selection-dialog.directive.mjs +1 -1
- package/esm2022/lib/components/errors/elder-error.module.mjs +1 -1
- package/esm2022/lib/components/errors/exception-detail/elder-exception-detail.component.mjs +1 -1
- package/esm2022/lib/components/expand-toggle-button/elder-expand-toggle-button.component.mjs +1 -1
- package/esm2022/lib/components/expand-toggle-button/elder-expand-toggle-button.module.mjs +1 -1
- package/esm2022/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +1 -1
- package/esm2022/lib/components/files/drag-n-drop/elder-drop-zone/elder-drop-zone.component.mjs +1 -1
- package/esm2022/lib/components/files/drag-n-drop/global-drag-drop.service.mjs +1 -1
- package/esm2022/lib/components/files/elder-file-drop-zone.directive.mjs +1 -1
- package/esm2022/lib/components/files/elder-file.module.mjs +1 -1
- package/esm2022/lib/components/files/file-select/file-select.component.mjs +1 -1
- package/esm2022/lib/components/files/file-upload/file-upload.component.mjs +1 -1
- package/esm2022/lib/components/files/listing/file-entry.mjs +2 -2
- package/esm2022/lib/components/forms/clipboard/elder-clipboard.service.mjs +1 -1
- package/esm2022/lib/components/forms/directives/elder-form-field-label.directive.mjs +1 -1
- package/esm2022/lib/components/forms/directives/elder-form-field-no-spinner.directive.mjs +1 -1
- package/esm2022/lib/components/forms/directives/elder-forms-directives.module.mjs +1 -1
- package/esm2022/lib/components/forms/directives/elder-initial-value.directive.mjs +1 -1
- package/esm2022/lib/components/forms/directives/elder-plug-parent-form.directive.mjs +1 -1
- package/esm2022/lib/components/forms/directives/validation/elder-validation-error.directive.mjs +1 -1
- package/esm2022/lib/components/forms/directives/validation/validation-message-renderer.service.mjs +1 -1
- package/esm2022/lib/components/forms/directives/validation/validators/elder-max.validator.mjs +1 -1
- package/esm2022/lib/components/forms/directives/validation/validators/elder-min.validator.mjs +1 -1
- package/esm2022/lib/components/forms/directives/validation/validators/elder-required-ignore-zero.validator.mjs +1 -1
- package/esm2022/lib/components/forms/elder-forms.module.mjs +1 -1
- package/esm2022/lib/components/forms/search/domain/context/search-context.service.mjs +1 -1
- package/esm2022/lib/components/forms/search/domain/input/search-input-state.mjs +1 -1
- package/esm2022/lib/components/forms/search/domain/input/search-input.mjs +1 -1
- package/esm2022/lib/components/forms/search/domain/url/elder-search-url.service.mjs +2 -2
- package/esm2022/lib/components/forms/search/elder-search-context.directive.mjs +1 -1
- package/esm2022/lib/components/forms/search/elder-search-input.directive.mjs +3 -5
- package/esm2022/lib/components/forms/search/elder-search.module.mjs +23 -23
- package/esm2022/lib/components/forms/search/search-box/elder-search-box.component.mjs +1 -1
- package/esm2022/lib/components/global-search/elder-global-search.component.mjs +1 -1
- package/esm2022/lib/components/global-search/elder-global-search.module.mjs +1 -1
- package/esm2022/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +1 -1
- package/esm2022/lib/components/headers/elder-header/elder-header.component.mjs +1 -1
- package/esm2022/lib/components/headers/elder-header.module.mjs +1 -1
- package/esm2022/lib/components/http-support/elder-http-client.service.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-i18n-entities.module.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-localized-input/elder-localized-input.component.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-localized-input-dialog/elder-localized-input-dialog.component.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-localized-input-dialog.service.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-localized-input-table/elder-localized-input-table.component.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/elder-localized-texts.directive.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/picker/i18n-pick-async.pipe.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/picker/i18n-pick.pipe.mjs +1 -1
- package/esm2022/lib/components/i18n/entities/picker/localisation-picker.service.mjs +1 -1
- package/esm2022/lib/components/i18n/language/elder-language.module.mjs +1 -1
- package/esm2022/lib/components/i18n/language/elder-language.service.mjs +1 -1
- package/esm2022/lib/components/i18n/language/language-switcher/elder-language-switcher.component.mjs +1 -1
- package/esm2022/lib/components/i18n/locales/elder-locales-de-ch.module.mjs +1 -1
- package/esm2022/lib/components/iframes/data-view/data-view-iframe/data-view-iframe.component.mjs +2 -2
- package/esm2022/lib/components/iframes/elder-iframe.module.mjs +1 -1
- package/esm2022/lib/components/iframes/iframe-dialog/iframe-dialog.component.mjs +1 -1
- package/esm2022/lib/components/iframes/iframe-host/iframe-host.component.mjs +2 -2
- package/esm2022/lib/components/iframes/iframe-side-content/iframe-side-content.component.mjs +1 -1
- package/esm2022/lib/components/iframes/typed-event-message.mjs +2 -2
- package/esm2022/lib/components/infinitescroll/elder-infinite-scroll.directive.mjs +1 -1
- package/esm2022/lib/components/infinitescroll/elder-infinite-scroll.module.mjs +1 -1
- package/esm2022/lib/components/input/autocomplete/elder-autocomplete/elder-autocomplete.component.mjs +1 -1
- package/esm2022/lib/components/input/autocomplete/elder-autocomplete-many.directive.mjs +1 -1
- package/esm2022/lib/components/input/autocomplete/elder-autocomplete.directive.mjs +1 -1
- package/esm2022/lib/components/input/autocomplete/elder-autocomplete.module.mjs +1 -1
- package/esm2022/lib/components/labels/elder-labels.module.mjs +1 -1
- package/esm2022/lib/components/labels/labels-input/labels-input.component.mjs +9 -17
- package/esm2022/lib/components/measures/dimensions/dimensions-input/elder-dimensions-input.component.mjs +1 -1
- package/esm2022/lib/components/measures/dimensions/validation/elder-required-dimensions.validator.mjs +1 -1
- package/esm2022/lib/components/measures/elder-measures.module.mjs +1 -1
- package/esm2022/lib/components/measures/elder-quantity-transform.pipe.mjs +2 -2
- package/esm2022/lib/components/measures/quantity-input/quantity-form-field/elder-quantity-form-field.component.mjs +1 -1
- package/esm2022/lib/components/measures/quantity-input/quantity-input-control/elder-quantity-input-control.component.mjs +1 -1
- package/esm2022/lib/components/measures/quantity-input/validation/elder-quantity-range.validator.mjs +1 -1
- package/esm2022/lib/components/measures/quantity-input/validation/elder-required-quantity.validator.mjs +1 -1
- package/esm2022/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +1 -1
- package/esm2022/lib/components/navigation/bread-crumbs/elder-bread-crumbs.module.mjs +1 -1
- package/esm2022/lib/components/navigation/nav/elder-nav.module.mjs +1 -1
- package/esm2022/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +1 -1
- package/esm2022/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +1 -1
- package/esm2022/lib/components/navigation/nav/nav-list/elder-nav-list.component.mjs +1 -1
- package/esm2022/lib/components/navigation/toolbar/elder-toolbar.module.mjs +1 -1
- package/esm2022/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +1 -1
- package/esm2022/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.component.mjs +1 -1
- package/esm2022/lib/components/overlays/elder-overlay.component.mjs +1 -1
- package/esm2022/lib/components/overlays/elder-overlay.module.mjs +1 -1
- package/esm2022/lib/components/panels/card-panel/elder-card-panel.component.mjs +1 -1
- package/esm2022/lib/components/panels/elder-dialog-panel/elder-dialog-panel.component.mjs +1 -1
- package/esm2022/lib/components/panels/elder-panel.module.mjs +1 -1
- package/esm2022/lib/components/panels/flat/elder-panel.component.mjs +1 -1
- package/esm2022/lib/components/panels/toggle-panel/elder-toggle-panel.component.mjs +1 -1
- package/esm2022/lib/components/scrollbar/elder-scrollbar.directive.mjs +2 -2
- package/esm2022/lib/components/select/auto/elder-auto-select-first.directive.mjs +1 -1
- package/esm2022/lib/components/select/elder-select-base.mjs +1 -1
- package/esm2022/lib/components/select/elder-select-on-tab.directive.mjs +1 -1
- package/esm2022/lib/components/select/elder-select.module.mjs +5 -5
- package/esm2022/lib/components/select/multi/elder-chip-select-option/elder-select-option.component.mjs +3 -3
- package/esm2022/lib/components/select/multi/elder-multi-select-base.mjs +2 -2
- package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/chip-options-provider.mjs +3 -3
- package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.mjs +24 -24
- package/esm2022/lib/components/select/multi/elder-multi-select-chip-options/select-option-chip-spec.mjs +1 -1
- package/esm2022/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +1 -1
- package/esm2022/lib/components/select/multi/elder-mutli-select-all-directive.mjs +6 -6
- package/esm2022/lib/components/select/popup/selection-model-popup-trigger-adapter.directive.mjs +1 -1
- package/esm2022/lib/components/select/popup/selection-model-popup.directive.mjs +2 -3
- package/esm2022/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +1 -1
- package/esm2022/lib/components/select/single/elder-select/elder-select.component.mjs +1 -1
- package/esm2022/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.mjs +4 -4
- package/esm2022/lib/components/select-chip-list/elder-chip-list-select.module.mjs +1 -1
- package/esm2022/lib/components/shell/drawers/drawer-outlet-binding.mjs +1 -1
- package/esm2022/lib/components/shell/drawers/elder-route-outlet-drawer.service.mjs +1 -1
- package/esm2022/lib/components/shell/drawers/elder-router-outlet.service.mjs +1 -1
- package/esm2022/lib/components/shell/elder-shell.module.mjs +1 -1
- package/esm2022/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +1 -1
- package/esm2022/lib/components/shell/shell/elder-shell.component.mjs +1 -1
- package/esm2022/lib/components/shell/shell-navigation-toggle/elder-shell-navigation-toggle.component.mjs +1 -1
- package/esm2022/lib/components/tabs/elder-tab-group-routing/elder-tab-group-routing.directive.mjs +1 -1
- package/esm2022/lib/components/theme/elder-theme-preference.service.mjs +3 -3
- package/esm2022/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.mjs +1 -1
- package/esm2022/lib/components/theme/elder-theme.module.mjs +1 -1
- package/esm2022/lib/components/theme/elder-theme.service.mjs +1 -1
- package/esm2022/lib/components/time/date-adapters/custom-date-adapter.mjs +1 -1
- package/esm2022/lib/components/time/date-formats/locale-date-formats.mjs +5 -5
- package/esm2022/lib/components/time/duration/elder-duration-input/elder-duration-input.component.mjs +1 -1
- package/esm2022/lib/components/time/elder-date-switcher/elder-date-switcher.component.mjs +1 -1
- package/esm2022/lib/components/time/elder-date-time-input/elder-date-time-input.component.mjs +2 -2
- package/esm2022/lib/components/time/elder-interval-input/elder-interval-input.component.mjs +73 -21
- package/esm2022/lib/components/time/elder-local-date-input/elder-local-date-input.component.mjs +1 -1
- package/esm2022/lib/components/time/elder-local-time-input/elder-local-time-input.component.mjs +1 -1
- package/esm2022/lib/components/time/elder-time.module.mjs +1 -1
- package/esm2022/lib/components/time/period/elder-period-input/elder-period-input.component.mjs +1 -1
- package/esm2022/lib/components/time/period/period-bucket.mjs +1 -1
- package/esm2022/lib/components/time/period/period-format.mjs +1 -1
- package/esm2022/lib/components/time/pipes/to-iso-date-string.pipe.mjs +1 -1
- package/esm2022/lib/components/toasts/elder-toast.module.mjs +1 -1
- package/esm2022/lib/components/toasts/standard-toast/standard-toast.component.mjs +1 -1
- package/esm2022/lib/components/url-fragment/url-fragment-switcher/elder-url-fragment-switcher.component.mjs +3 -3
- package/esm2022/lib/components/viewers/elder-viewers.module.mjs +1 -1
- package/esm2022/lib/features/event-source/fetch/reactive-fetch-event-source.mjs +23 -25
- package/esm2022/lib/features/event-source/fetch/reactive-fetch-event-source.service.mjs +1 -1
- package/esm2022/lib/features/kafent/kafent-live-event-request.mjs +1 -1
- package/esm2022/lib/features/kafent/kafent.module.mjs +1 -1
- package/esm2022/lib/pipes/bytes.pipe.mjs +1 -1
- package/esm2022/lib/pipes/elder-pipes.module.mjs +1 -1
- package/esm2022/lib/pipes/elder-round.pipe.mjs +1 -1
- package/esm2022/lib/pipes/elder-safe-url.pipe.mjs +1 -1
- package/esm2022/lib/pipes/iso-duration.pipe.mjs +1 -1
- package/esm2022/lib/pipes/weight.pipe.mjs +1 -1
- package/fesm2022/elderbyte-ngx-starter.mjs +162 -133
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/data/filters/filter-context.d.ts +1 -1
- package/lib/common/data/required-filter-evaluator.d.ts +3 -3
- package/lib/common/enums/elder-enum-translation.service.d.ts +3 -3
- package/lib/components/badge/elder-badge/elder-badge.component.d.ts +1 -1
- package/lib/components/forms/search/elder-search.module.d.ts +5 -5
- package/lib/components/scrollbar/elder-scrollbar.directive.d.ts +1 -1
- package/lib/components/select/multi/elder-multi-select-base.d.ts +1 -1
- package/lib/components/select/multi/elder-multi-select-chip-options/chip-options-provider.d.ts +4 -4
- package/lib/components/select/multi/elder-multi-select-chip-options/elder-multi-select-chip-options.component.d.ts +12 -12
- package/lib/components/select/multi/elder-mutli-select-all-directive.d.ts +2 -2
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +2 -2
- package/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.d.ts +1 -1
- package/lib/components/time/elder-interval-input/elder-interval-input.component.d.ts +16 -6
- package/lib/features/event-source/fetch/reactive-fetch-event-source.d.ts +11 -10
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i2$1 from '@angular/common';
|
|
2
|
-
import { DatePipe, CommonModule, NgIf, AsyncPipe, NgFor, NgClass, NgTemplateOutlet, NgStyle, DecimalPipe,
|
|
2
|
+
import { DatePipe, CommonModule, NgIf, AsyncPipe, NgFor, NgClass, NgTemplateOutlet, NgStyle, DecimalPipe, registerLocaleData, CurrencyPipe } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Pipe, Injectable, LOCALE_ID, Inject, NgModule, Optional, SkipSelf, Directive, Output, Input, forwardRef, ViewChild, HostBinding, ViewChildren, ContentChild, Component, ChangeDetectionStrategy, Host, APP_INITIALIZER, TemplateRef, HostListener, EventEmitter, ViewEncapsulation, InjectionToken, ContentChildren, Self } from '@angular/core';
|
|
5
5
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -1382,15 +1382,15 @@ class Interval {
|
|
|
1382
1382
|
if (parts.length !== 2) {
|
|
1383
1383
|
throw new Error('The given string is not a valid iso interval: ' + iso);
|
|
1384
1384
|
}
|
|
1385
|
-
const start = Instant.parse(parts[0]);
|
|
1385
|
+
const start = parts[0] ? Instant.parse(parts[0]) : null;
|
|
1386
1386
|
const endStr = parts[1];
|
|
1387
1387
|
// The 'end' part can either be an instant or a duration in iso format
|
|
1388
|
-
if (endStr.startsWith('P') || endStr.startsWith('-P')) {
|
|
1388
|
+
if (start && endStr && endStr.startsWith('P') || endStr.startsWith('-P')) {
|
|
1389
1389
|
const duration = Duration.parse(endStr);
|
|
1390
1390
|
return Interval.ofStartAndOffset(start, duration);
|
|
1391
1391
|
}
|
|
1392
1392
|
else {
|
|
1393
|
-
return Interval.of(start, Instant.parse(endStr));
|
|
1393
|
+
return Interval.of(start, endStr ? Instant.parse(endStr) : null);
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
static yesterday(zoneId) {
|
|
@@ -1491,11 +1491,11 @@ class Interval {
|
|
|
1491
1491
|
return this.toDurationString();
|
|
1492
1492
|
}
|
|
1493
1493
|
toInstantString() {
|
|
1494
|
-
let instantString =
|
|
1494
|
+
let instantString = '';
|
|
1495
1495
|
if (this.start) {
|
|
1496
1496
|
instantString = instantString + this.start.toString();
|
|
1497
1497
|
}
|
|
1498
|
-
instantString = instantString +
|
|
1498
|
+
instantString = instantString + '/';
|
|
1499
1499
|
if (this.end) {
|
|
1500
1500
|
instantString = instantString + this.end.toString();
|
|
1501
1501
|
}
|
|
@@ -2085,7 +2085,7 @@ class Arrays {
|
|
|
2085
2085
|
return false;
|
|
2086
2086
|
}
|
|
2087
2087
|
// Comparing each element of your array
|
|
2088
|
-
for (
|
|
2088
|
+
for (let i = 0; i < arrayA.length; i++) {
|
|
2089
2089
|
if (!equalsFn(arrayA[i], arrayB[i])) {
|
|
2090
2090
|
return false;
|
|
2091
2091
|
}
|
|
@@ -3067,7 +3067,7 @@ class HttpParamsBuilder {
|
|
|
3067
3067
|
.forEach(v => this.append(key, v));
|
|
3068
3068
|
}
|
|
3069
3069
|
else {
|
|
3070
|
-
this.append(key,
|
|
3070
|
+
this.append(key, '');
|
|
3071
3071
|
}
|
|
3072
3072
|
}
|
|
3073
3073
|
appendFilter(...filters) {
|
|
@@ -3740,7 +3740,7 @@ class DataContextBase extends DataSource {
|
|
|
3740
3740
|
* *
|
|
3741
3741
|
**************************************************************************/
|
|
3742
3742
|
reloadNow(request) {
|
|
3743
|
-
this.baselog.debug(this.id +
|
|
3743
|
+
this.baselog.debug(this.id + ': reloadNow triggered. Request #' + request.number + ' ' + request.reason, {
|
|
3744
3744
|
filter: this._filter.filtersSnapshot,
|
|
3745
3745
|
sort: this._sort.sortsSnapshot,
|
|
3746
3746
|
dataSource: this.dataSource,
|
|
@@ -4574,7 +4574,7 @@ class RequiredFilterEvaluator {
|
|
|
4574
4574
|
constructor(filterContext, requiredFilters) {
|
|
4575
4575
|
this._requiredFilters = new BehaviorSubject([]);
|
|
4576
4576
|
if (filterContext == null) {
|
|
4577
|
-
throw new Error(
|
|
4577
|
+
throw new Error('filterContext must not be null!');
|
|
4578
4578
|
}
|
|
4579
4579
|
this._filterContext = filterContext;
|
|
4580
4580
|
if (requiredFilters) {
|
|
@@ -4907,8 +4907,8 @@ class LocalListDataSource extends DataSourceBase {
|
|
|
4907
4907
|
}
|
|
4908
4908
|
deleteAllById(idsToDelete) {
|
|
4909
4909
|
if (idsToDelete?.length > 0) {
|
|
4910
|
-
|
|
4911
|
-
|
|
4910
|
+
const existing = this.data;
|
|
4911
|
+
const idsToDeleteSet = new Set(idsToDelete);
|
|
4912
4912
|
this.silentReplaceData(existing.filter(e => !idsToDeleteSet.has(this.getId(e))));
|
|
4913
4913
|
this.publishChangeEvent(DataSourceChangeEvent.deleted(idsToDelete));
|
|
4914
4914
|
}
|
|
@@ -4918,7 +4918,7 @@ class LocalListDataSource extends DataSourceBase {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
save(entity) {
|
|
4920
4920
|
const id = this.getId(entity);
|
|
4921
|
-
|
|
4921
|
+
const newData = [...this.data];
|
|
4922
4922
|
const existingIndex = newData.findIndex(entity => this.getId(entity) === id);
|
|
4923
4923
|
let created = false;
|
|
4924
4924
|
if (existingIndex == -1) {
|
|
@@ -5774,7 +5774,7 @@ class RestClient extends DataSourceBase {
|
|
|
5774
5774
|
*/
|
|
5775
5775
|
save(entity, params) {
|
|
5776
5776
|
const id = this.getId(entity);
|
|
5777
|
-
return ((
|
|
5777
|
+
return ((id) ? this.update(entity, params) : this.create(entity, params));
|
|
5778
5778
|
}
|
|
5779
5779
|
create(newEntity, params) {
|
|
5780
5780
|
return this.http.post(this.restEndpoint, newEntity, {
|
|
@@ -6322,8 +6322,7 @@ class TemplateCompositeControl extends ValueAccessorBase {
|
|
|
6322
6322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TemplateCompositeControl, decorators: [{
|
|
6323
6323
|
type: Directive
|
|
6324
6324
|
}], propDecorators: { disabled: [{
|
|
6325
|
-
type: Input
|
|
6326
|
-
args: ['disabled']
|
|
6325
|
+
type: Input
|
|
6327
6326
|
}], ngForm: [{
|
|
6328
6327
|
type: ViewChild,
|
|
6329
6328
|
args: ['form']
|
|
@@ -8380,7 +8379,7 @@ class ElderEnumTranslationService {
|
|
|
8380
8379
|
});
|
|
8381
8380
|
}), map((data) => {
|
|
8382
8381
|
return sort ?
|
|
8383
|
-
data.sort(ComparatorBuilder.fieldSort(asc ?
|
|
8382
|
+
data.sort(ComparatorBuilder.fieldSort(asc ? 'displayValue' : '-displayValue')) :
|
|
8384
8383
|
data;
|
|
8385
8384
|
}));
|
|
8386
8385
|
}
|
|
@@ -8392,11 +8391,11 @@ class ElderEnumTranslationService {
|
|
|
8392
8391
|
* @param enumKey key of the translation to load
|
|
8393
8392
|
*/
|
|
8394
8393
|
translateOne(translationPrefix, enumKey) {
|
|
8395
|
-
return this.translateService.get(translationPrefix +
|
|
8394
|
+
return this.translateService.get(translationPrefix + '.' + enumKey)
|
|
8396
8395
|
.pipe(map(translatedValue => new TranslatedEnumValue(enumKey, this.addPrefixIfNotNull(enumKey, translatedValue))));
|
|
8397
8396
|
}
|
|
8398
8397
|
addPrefixIfNotNull(enumKey, translatedValue) {
|
|
8399
|
-
return enumKey ? translatedValue :
|
|
8398
|
+
return enumKey ? translatedValue : '';
|
|
8400
8399
|
}
|
|
8401
8400
|
/**
|
|
8402
8401
|
* Creates a data source of translations of the given enum class.
|
|
@@ -8407,15 +8406,15 @@ class ElderEnumTranslationService {
|
|
|
8407
8406
|
* @param asc if true, data will be sorted in ascending order
|
|
8408
8407
|
*/
|
|
8409
8408
|
enumDateSource(enumClass, translationPrefix, sort = true, asc = true) {
|
|
8410
|
-
return DelegateListDataSource.listFetcher(() => this.translate(enumClass, translationPrefix, sort, asc),
|
|
8409
|
+
return DelegateListDataSource.listFetcher(() => this.translate(enumClass, translationPrefix, sort, asc), 'value', (id) => this.translateOne(translationPrefix, id));
|
|
8411
8410
|
}
|
|
8412
8411
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderEnumTranslationService, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8413
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderEnumTranslationService, providedIn:
|
|
8412
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderEnumTranslationService, providedIn: 'root' }); }
|
|
8414
8413
|
}
|
|
8415
8414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderEnumTranslationService, decorators: [{
|
|
8416
8415
|
type: Injectable,
|
|
8417
8416
|
args: [{
|
|
8418
|
-
providedIn:
|
|
8417
|
+
providedIn: 'root'
|
|
8419
8418
|
}]
|
|
8420
8419
|
}], ctorParameters: () => [{ type: i2.TranslateService }] });
|
|
8421
8420
|
|
|
@@ -9104,7 +9103,7 @@ class ElderThemePreferenceService {
|
|
|
9104
9103
|
* *
|
|
9105
9104
|
**************************************************************************/
|
|
9106
9105
|
this.THEME_PREFERENCE_KEY = 'theme.preference';
|
|
9107
|
-
|
|
9106
|
+
const preferenceThemeId = localStorage.getItem(this.THEME_PREFERENCE_KEY);
|
|
9108
9107
|
if (preferenceThemeId) {
|
|
9109
9108
|
this.activateThemeAndSave(preferenceThemeId);
|
|
9110
9109
|
}
|
|
@@ -9140,7 +9139,7 @@ class ElderThemePreferenceService {
|
|
|
9140
9139
|
**************************************************************************/
|
|
9141
9140
|
themeByBrowserPreference() {
|
|
9142
9141
|
let initialTheme;
|
|
9143
|
-
if (window.matchMedia(
|
|
9142
|
+
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
9144
9143
|
initialTheme = this.themeService.themesSnapshot
|
|
9145
9144
|
.find(t => t.dark);
|
|
9146
9145
|
}
|
|
@@ -9626,29 +9625,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
9626
9625
|
type: ViewChild,
|
|
9627
9626
|
args: ['labelInput', { static: true }]
|
|
9628
9627
|
}], labels: [{
|
|
9629
|
-
type: Input
|
|
9630
|
-
args: ['labels']
|
|
9628
|
+
type: Input
|
|
9631
9629
|
}], suggestionLoader: [{
|
|
9632
|
-
type: Input
|
|
9633
|
-
args: ['suggestionLoader']
|
|
9630
|
+
type: Input
|
|
9634
9631
|
}], allowNew: [{
|
|
9635
|
-
type: Input
|
|
9636
|
-
args: ['allowNew']
|
|
9632
|
+
type: Input
|
|
9637
9633
|
}], labelsChanged: [{
|
|
9638
|
-
type: Output
|
|
9639
|
-
args: ['labelsChanged']
|
|
9634
|
+
type: Output
|
|
9640
9635
|
}], compareWith: [{
|
|
9641
|
-
type: Input
|
|
9642
|
-
args: ['compareWith']
|
|
9636
|
+
type: Input
|
|
9643
9637
|
}], colorResolver: [{
|
|
9644
|
-
type: Input
|
|
9645
|
-
args: ['colorResolver']
|
|
9638
|
+
type: Input
|
|
9646
9639
|
}], nameResolver: [{
|
|
9647
|
-
type: Input
|
|
9648
|
-
args: ['nameResolver']
|
|
9640
|
+
type: Input
|
|
9649
9641
|
}], labelBuilder: [{
|
|
9650
|
-
type: Input
|
|
9651
|
-
args: ['labelBuilder']
|
|
9642
|
+
type: Input
|
|
9652
9643
|
}] } });
|
|
9653
9644
|
|
|
9654
9645
|
class ElderLabelsModule {
|
|
@@ -9911,7 +9902,7 @@ class FileEntry {
|
|
|
9911
9902
|
let relativeParent = null;
|
|
9912
9903
|
if (file.webkitRelativePath) {
|
|
9913
9904
|
if (file.webkitRelativePath.endsWith(file.name)) {
|
|
9914
|
-
|
|
9905
|
+
const nameStart = file.webkitRelativePath.length - file.name.length;
|
|
9915
9906
|
relativeParent = file.webkitRelativePath.substring(0, nameStart);
|
|
9916
9907
|
}
|
|
9917
9908
|
else {
|
|
@@ -11397,7 +11388,7 @@ class ElderPaddingDirective {
|
|
|
11397
11388
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderPaddingDirective, decorators: [{
|
|
11398
11389
|
type: Directive,
|
|
11399
11390
|
args: [{
|
|
11400
|
-
selector:
|
|
11391
|
+
selector: 'elder-padding, [elder-padding], [elderPadding]',
|
|
11401
11392
|
standalone: true
|
|
11402
11393
|
}]
|
|
11403
11394
|
}], propDecorators: { padding: [{
|
|
@@ -11421,7 +11412,7 @@ class ElderCardTitleDirective {
|
|
|
11421
11412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderCardTitleDirective, decorators: [{
|
|
11422
11413
|
type: Directive,
|
|
11423
11414
|
args: [{
|
|
11424
|
-
selector:
|
|
11415
|
+
selector: 'elder-card-title, [elder-card-title], [elderCardTitle]',
|
|
11425
11416
|
standalone: true
|
|
11426
11417
|
}]
|
|
11427
11418
|
}], propDecorators: { classTitle: [{
|
|
@@ -11445,7 +11436,7 @@ class ElderCardContentDirective {
|
|
|
11445
11436
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderCardContentDirective, decorators: [{
|
|
11446
11437
|
type: Directive,
|
|
11447
11438
|
args: [{
|
|
11448
|
-
selector:
|
|
11439
|
+
selector: 'elder-card-content, [elder-card-content], [elderCardContent]',
|
|
11449
11440
|
standalone: true
|
|
11450
11441
|
}]
|
|
11451
11442
|
}], propDecorators: { classCardContent: [{
|
|
@@ -11470,7 +11461,7 @@ class ElderCardHeaderActionsDirective {
|
|
|
11470
11461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderCardHeaderActionsDirective, decorators: [{
|
|
11471
11462
|
type: Directive,
|
|
11472
11463
|
args: [{
|
|
11473
|
-
selector:
|
|
11464
|
+
selector: 'elder-card-header-actions, [elder-card-header-actions], [elderCardHeaderActions]',
|
|
11474
11465
|
standalone: true
|
|
11475
11466
|
}]
|
|
11476
11467
|
}], propDecorators: { classHeaderActions: [{
|
|
@@ -11491,7 +11482,7 @@ class ElderCardSubtitleDirective {
|
|
|
11491
11482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderCardSubtitleDirective, decorators: [{
|
|
11492
11483
|
type: Directive,
|
|
11493
11484
|
args: [{
|
|
11494
|
-
selector:
|
|
11485
|
+
selector: 'elder-card-subtitle, [elder-card-subtitle], [elderCardSubtitle]',
|
|
11495
11486
|
standalone: true
|
|
11496
11487
|
}]
|
|
11497
11488
|
}], propDecorators: { classSubtitle: [{
|
|
@@ -11718,17 +11709,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
11718
11709
|
}], removeConfirmation: [{
|
|
11719
11710
|
type: Input
|
|
11720
11711
|
}], requestNewCard: [{
|
|
11721
|
-
type: Output
|
|
11722
|
-
args: ['requestNewCard']
|
|
11712
|
+
type: Output
|
|
11723
11713
|
}], requestRemoveCard: [{
|
|
11724
|
-
type: Output
|
|
11725
|
-
args: ['requestRemoveCard']
|
|
11714
|
+
type: Output
|
|
11726
11715
|
}], cardClick: [{
|
|
11727
|
-
type: Output
|
|
11728
|
-
args: ['cardClick']
|
|
11716
|
+
type: Output
|
|
11729
11717
|
}], cardDropped: [{
|
|
11730
|
-
type: Output
|
|
11731
|
-
args: ['cardDropped']
|
|
11718
|
+
type: Output
|
|
11732
11719
|
}], canEnterPredicate: [{
|
|
11733
11720
|
type: Input
|
|
11734
11721
|
}], connectedTo: [{
|
|
@@ -11841,17 +11828,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
11841
11828
|
}], canEnterPredicate: [{
|
|
11842
11829
|
type: Input
|
|
11843
11830
|
}], requestNewCard: [{
|
|
11844
|
-
type: Output
|
|
11845
|
-
args: ['requestNewCard']
|
|
11831
|
+
type: Output
|
|
11846
11832
|
}], requestRemoveCard: [{
|
|
11847
|
-
type: Output
|
|
11848
|
-
args: ['requestRemoveCard']
|
|
11833
|
+
type: Output
|
|
11849
11834
|
}], cardClick: [{
|
|
11850
|
-
type: Output
|
|
11851
|
-
args: ['cardClick']
|
|
11835
|
+
type: Output
|
|
11852
11836
|
}], cardDropped: [{
|
|
11853
|
-
type: Output
|
|
11854
|
-
args: ['cardDropped']
|
|
11837
|
+
type: Output
|
|
11855
11838
|
}], stackCardTemplate: [{
|
|
11856
11839
|
type: ContentChild,
|
|
11857
11840
|
args: [ElderStackCardDirective, { read: TemplateRef }]
|
|
@@ -18629,13 +18612,13 @@ class ElderMasterDetailComponent {
|
|
|
18629
18612
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderMasterDetailComponent, deps: [{ token: ElderMasterDetailService }, { token: i1$6.MatDialog }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18630
18613
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.4", type: ElderMasterDetailComponent, isStandalone: true, selector: "elder-master-detail", inputs: { mode: "mode" }, providers: [
|
|
18631
18614
|
ElderMasterDetailProvider.ExistingOrNewMasterDetailService
|
|
18632
|
-
], queries: [{ propertyName: "master", first: true, predicate: ElderMasterDirective, descendants: true, read: TemplateRef }, { propertyName: "detail", first: true, predicate: ElderDetailDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: "\n<div class=\"layout-row full\" *ngIf=\"mode$ | async as mode\">\n\n <div class=\"layout-row full\" *ngIf=\"mode
|
|
18615
|
+
], queries: [{ propertyName: "master", first: true, predicate: ElderMasterDirective, descendants: true, read: TemplateRef }, { propertyName: "detail", first: true, predicate: ElderDetailDirective, descendants: true, read: TemplateRef }], ngImport: i0, template: "\n<div class=\"layout-row full\" *ngIf=\"mode$ | async as mode\">\n\n <div class=\"layout-row full\" *ngIf=\"mode === 'DIALOG'\">\n <ng-container *ngTemplateOutlet=\"master\"></ng-container>\n </div>\n\n <div class=\"layout-row full gap-md\" *ngIf=\"mode === 'EMBEDDED'\">\n <ng-container *ngTemplateOutlet=\"master\"></ng-container>\n <ng-container *ngIf=\"currentActive$ | async as currentActive\">\n <ng-container *ngTemplateOutlet=\"detail; context: {$implicit: currentActive}\"></ng-container>\n </ng-container>\n </div>\n\n</div>\n\n\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18633
18616
|
}
|
|
18634
18617
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderMasterDetailComponent, decorators: [{
|
|
18635
18618
|
type: Component,
|
|
18636
18619
|
args: [{ selector: 'elder-master-detail', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
18637
18620
|
ElderMasterDetailProvider.ExistingOrNewMasterDetailService
|
|
18638
|
-
], standalone: true, imports: [NgIf, NgTemplateOutlet, AsyncPipe], template: "\n<div class=\"layout-row full\" *ngIf=\"mode$ | async as mode\">\n\n <div class=\"layout-row full\" *ngIf=\"mode
|
|
18621
|
+
], standalone: true, imports: [NgIf, NgTemplateOutlet, AsyncPipe], template: "\n<div class=\"layout-row full\" *ngIf=\"mode$ | async as mode\">\n\n <div class=\"layout-row full\" *ngIf=\"mode === 'DIALOG'\">\n <ng-container *ngTemplateOutlet=\"master\"></ng-container>\n </div>\n\n <div class=\"layout-row full gap-md\" *ngIf=\"mode === 'EMBEDDED'\">\n <ng-container *ngTemplateOutlet=\"master\"></ng-container>\n <ng-container *ngIf=\"currentActive$ | async as currentActive\">\n <ng-container *ngTemplateOutlet=\"detail; context: {$implicit: currentActive}\"></ng-container>\n </ng-container>\n </div>\n\n</div>\n\n\n" }]
|
|
18639
18622
|
}], ctorParameters: () => [{ type: ElderMasterDetailService }, { type: i1$6.MatDialog }, { type: i0.ViewContainerRef }], propDecorators: { master: [{
|
|
18640
18623
|
type: ContentChild,
|
|
18641
18624
|
args: [ElderMasterDirective, { read: TemplateRef, static: false }]
|
|
@@ -18679,7 +18662,7 @@ class ElderMasterActivationDirective {
|
|
|
18679
18662
|
this.log.debug('Table-Activation changed, notifying master-detail', event);
|
|
18680
18663
|
this.masterDetailService.onItemActivated(event.item, { source: event.source });
|
|
18681
18664
|
},
|
|
18682
|
-
error: err => this.toastService.error(
|
|
18665
|
+
error: err => this.toastService.error('Failed to set active item', err)
|
|
18683
18666
|
});
|
|
18684
18667
|
this.masterDetailService.itemActivationRequested.pipe(takeUntil(this.destroy$)).subscribe({
|
|
18685
18668
|
next: item => {
|
|
@@ -19099,7 +19082,7 @@ class ElderQuantityTransformPipe {
|
|
|
19099
19082
|
if (normalize) {
|
|
19100
19083
|
return this.quantityService.normalize(quantity);
|
|
19101
19084
|
}
|
|
19102
|
-
else if (
|
|
19085
|
+
else if (targetUnit) {
|
|
19103
19086
|
return this.quantityService.convertToUnit(quantity, targetUnit);
|
|
19104
19087
|
}
|
|
19105
19088
|
else {
|
|
@@ -19348,8 +19331,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
19348
19331
|
standalone: true
|
|
19349
19332
|
}]
|
|
19350
19333
|
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i1$6.MatDialog }, { type: ElderDataViewOptionsProvider }, { type: SelectionModel }, { type: i0.ChangeDetectorRef }], propDecorators: { elderSelectionModelPopupTransform: [{
|
|
19351
|
-
type: Input
|
|
19352
|
-
args: ['elderSelectionModelPopupTransform']
|
|
19334
|
+
type: Input
|
|
19353
19335
|
}] } });
|
|
19354
19336
|
|
|
19355
19337
|
class ElderSelectOptionComponent {
|
|
@@ -19360,7 +19342,7 @@ class ElderSelectOptionComponent {
|
|
|
19360
19342
|
}
|
|
19361
19343
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderSelectOptionComponent, decorators: [{
|
|
19362
19344
|
type: Component,
|
|
19363
|
-
args: [{ selector:
|
|
19345
|
+
args: [{ selector: 'elder-select-option', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "" }]
|
|
19364
19346
|
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
19365
19347
|
type: Input
|
|
19366
19348
|
}], label: [{
|
|
@@ -22603,7 +22585,7 @@ class ChipOptionsProvider {
|
|
|
22603
22585
|
options.context.displayPropertyResolver = x => x.id;
|
|
22604
22586
|
return this.buildChipBySpec({ id: entityId }, options, {
|
|
22605
22587
|
colorSpec: {
|
|
22606
|
-
themeColor:
|
|
22588
|
+
themeColor: 'warn'
|
|
22607
22589
|
},
|
|
22608
22590
|
avatarSpec: {
|
|
22609
22591
|
hide: false,
|
|
@@ -22633,7 +22615,7 @@ class ChipOptionsProvider {
|
|
|
22633
22615
|
locked = chipSpec.locked;
|
|
22634
22616
|
}
|
|
22635
22617
|
return new ChipOptionModel(e, this.resolveDisplayText(e, options), {
|
|
22636
|
-
themeColor: selected ?
|
|
22618
|
+
themeColor: selected ? 'accent' : undefined
|
|
22637
22619
|
}, locked, chipSpec.avatarSpec, chipSpec.trailingSpec, selected);
|
|
22638
22620
|
}
|
|
22639
22621
|
getEntityId(e) {
|
|
@@ -22652,7 +22634,7 @@ class ElderMultiSelectChipOptionsComponent extends ElderMultiSelectBase {
|
|
|
22652
22634
|
* *
|
|
22653
22635
|
**************************************************************************/
|
|
22654
22636
|
constructor(hostRef, zone, focusMonitor, translateService, dialogService, destroyRef, ngControl) {
|
|
22655
|
-
super(zone, hostRef,
|
|
22637
|
+
super(zone, hostRef, 'multi-select-chip-options', focusMonitor, translateService, dialogService, ngControl);
|
|
22656
22638
|
this.destroyRef = destroyRef;
|
|
22657
22639
|
/***************************************************************************
|
|
22658
22640
|
* *
|
|
@@ -22754,7 +22736,7 @@ class ElderMultiSelectChipOptionsComponent extends ElderMultiSelectBase {
|
|
|
22754
22736
|
**************************************************************************/
|
|
22755
22737
|
selectionChanged(changeEvent, entity) {
|
|
22756
22738
|
/**/
|
|
22757
|
-
this.log.debug(
|
|
22739
|
+
this.log.debug('selectionChanged', {
|
|
22758
22740
|
changeEvent: changeEvent,
|
|
22759
22741
|
entity: entity
|
|
22760
22742
|
});
|
|
@@ -22776,7 +22758,7 @@ class ElderMultiSelectChipOptionsComponent extends ElderMultiSelectBase {
|
|
|
22776
22758
|
}
|
|
22777
22759
|
}
|
|
22778
22760
|
blur() {
|
|
22779
|
-
this.log.warn(
|
|
22761
|
+
this.log.warn('blur() not yet supported!');
|
|
22780
22762
|
}
|
|
22781
22763
|
/***************************************************************************
|
|
22782
22764
|
* *
|
|
@@ -22847,7 +22829,7 @@ class ElderMultiSelectChipOptionsComponent extends ElderMultiSelectBase {
|
|
|
22847
22829
|
}
|
|
22848
22830
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderMultiSelectChipOptionsComponent, decorators: [{
|
|
22849
22831
|
type: Component,
|
|
22850
|
-
args: [{ selector:
|
|
22832
|
+
args: [{ selector: 'elder-multi-select-chip-options', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
22851
22833
|
{ provide: MatFormFieldControl, useExisting: ElderMultiSelectChipOptionsComponent },
|
|
22852
22834
|
{
|
|
22853
22835
|
provide: ELDER_SELECT_BASE,
|
|
@@ -22903,7 +22885,7 @@ class ElderMultiSelectAllInitialDirective {
|
|
|
22903
22885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderMultiSelectAllInitialDirective, decorators: [{
|
|
22904
22886
|
type: Directive,
|
|
22905
22887
|
args: [{
|
|
22906
|
-
selector:
|
|
22888
|
+
selector: '[elderMultiSelectAllInitial]',
|
|
22907
22889
|
standalone: true
|
|
22908
22890
|
}]
|
|
22909
22891
|
}], ctorParameters: () => [{ type: ElderMultiSelectChipOptionsComponent, decorators: [{
|
|
@@ -24825,10 +24807,10 @@ class LocaleDateFormats {
|
|
|
24825
24807
|
**************************************************************************/
|
|
24826
24808
|
static { this.fallbackDateFormats = ['MM/dd/yyyy', 'MM/dd/yy']; }
|
|
24827
24809
|
static { this.dateFormats = new Map([
|
|
24828
|
-
[
|
|
24829
|
-
[
|
|
24830
|
-
[
|
|
24831
|
-
[
|
|
24810
|
+
['de-CH', ['dd.MM.yyyy', 'dd.MM.yy']],
|
|
24811
|
+
['de-DE', ['dd.MM.yyyy', 'dd.MM.yy']],
|
|
24812
|
+
['en-UK', ['dd/MM/yyyy', 'dd/MM/yy']],
|
|
24813
|
+
['en-US', this.fallbackDateFormats]
|
|
24832
24814
|
]); }
|
|
24833
24815
|
/***************************************************************************
|
|
24834
24816
|
* *
|
|
@@ -25450,7 +25432,7 @@ class ElderDateTimeInputComponent extends ElderFormFieldControlBase {
|
|
|
25450
25432
|
this.inputRef?.nativeElement?.blur();
|
|
25451
25433
|
}
|
|
25452
25434
|
onDateTimeChanged(eventDate) {
|
|
25453
|
-
const newDate =
|
|
25435
|
+
const newDate = eventDate ? new Date(eventDate) : null;
|
|
25454
25436
|
if (newDate) {
|
|
25455
25437
|
this.updateValue(TimeUtil.instant(newDate));
|
|
25456
25438
|
}
|
|
@@ -25512,9 +25494,10 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25512
25494
|
this._mode = 'date-time-range';
|
|
25513
25495
|
this.zone = ZoneId.systemDefault();
|
|
25514
25496
|
this.controlType = this._mode;
|
|
25515
|
-
this.
|
|
25516
|
-
this.
|
|
25517
|
-
this.
|
|
25497
|
+
this.interval$ = this.value$.pipe(map(value => this.coerceInterval(value)));
|
|
25498
|
+
this.endTime$ = this.interval$.pipe(map(interval => interval?.end ? LocalTime.from(interval.end.atZone(this.zone)) : null));
|
|
25499
|
+
this.startLocalDate$ = this.interval$.pipe(map(interval => interval?.start ? LocalDate.from(interval.start.atZone(this.zone)) : null));
|
|
25500
|
+
this.endLocalDate$ = this.interval$.pipe(map(interval => interval?.end ? LocalDate.from(interval.end.atZone(this.zone)) : null));
|
|
25518
25501
|
this.startDate$ = this.mapIgnoreErrorObservable(this.startLocalDate$, (d) => TimeUtil.localDateToDate(d));
|
|
25519
25502
|
this.endDate$ = this.mapIgnoreErrorObservable(this.endLocalDate$, (d) => TimeUtil.localDateToDate(d));
|
|
25520
25503
|
this.dateformat = LocaleDateFormats.getFormatsOfLocale(matDateLocale)[0].toLowerCase();
|
|
@@ -25524,6 +25507,12 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25524
25507
|
* Properties *
|
|
25525
25508
|
* *
|
|
25526
25509
|
**************************************************************************/
|
|
25510
|
+
set valueAsIsoStr(enabled) {
|
|
25511
|
+
this._valueAsIsoStr = coerceBooleanProperty(enabled);
|
|
25512
|
+
}
|
|
25513
|
+
get valueAsIsoStr() {
|
|
25514
|
+
return this._valueAsIsoStr;
|
|
25515
|
+
}
|
|
25527
25516
|
set mode(mode) {
|
|
25528
25517
|
this._mode = mode;
|
|
25529
25518
|
this.controlType = mode;
|
|
@@ -25532,14 +25521,17 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25532
25521
|
return this._mode;
|
|
25533
25522
|
}
|
|
25534
25523
|
get isoValueChange() {
|
|
25535
|
-
return this.valueChange.pipe(map(
|
|
25524
|
+
return this.valueChange.pipe(map(value => this.coerceIsoStr(value)));
|
|
25536
25525
|
}
|
|
25537
25526
|
set isoValue(value) {
|
|
25538
|
-
this.value = value ?
|
|
25527
|
+
this.value = value ? this.coerceValue(value) : null;
|
|
25539
25528
|
}
|
|
25540
25529
|
get shouldLabelFloat() {
|
|
25541
25530
|
return true;
|
|
25542
25531
|
}
|
|
25532
|
+
get interval() {
|
|
25533
|
+
return this.coerceInterval(this.value);
|
|
25534
|
+
}
|
|
25543
25535
|
/***************************************************************************
|
|
25544
25536
|
* *
|
|
25545
25537
|
* Public API *
|
|
@@ -25554,35 +25546,38 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25554
25546
|
// this.inputRef?.nativeElement?.blur();
|
|
25555
25547
|
}
|
|
25556
25548
|
onDayTimeStartChanged(start) {
|
|
25557
|
-
this.
|
|
25549
|
+
this.updateCoercedValue(Interval.of(start, this.instantAtEndOfDay(start)));
|
|
25558
25550
|
}
|
|
25559
25551
|
onDayTimeEndTimeChanged(endTime) {
|
|
25560
|
-
const start = this.
|
|
25552
|
+
const start = this.interval.start;
|
|
25561
25553
|
const end = this.instantWithTime(start, endTime);
|
|
25562
|
-
this.
|
|
25554
|
+
this.updateCoercedValue(Interval.of(start, !end.isAfter(start) ? this.instantAtEndOfDay(start) : end));
|
|
25563
25555
|
}
|
|
25564
25556
|
onStartChanged(start) {
|
|
25565
|
-
this.
|
|
25557
|
+
this.updateCoercedValue(Interval.of(start, this.interval.end));
|
|
25566
25558
|
}
|
|
25567
25559
|
onEndChanged(end) {
|
|
25568
|
-
this.
|
|
25560
|
+
this.updateCoercedValue(Interval.of(this.interval.start, end));
|
|
25569
25561
|
}
|
|
25570
25562
|
onStartDateChanged(value) {
|
|
25571
25563
|
const date = this.toLocalDate(value);
|
|
25572
|
-
this.
|
|
25564
|
+
this.updateCoercedValue(Interval.of(this.localDateToInstant(date), this.interval?.end));
|
|
25573
25565
|
}
|
|
25574
25566
|
onEndDateChanged(value) {
|
|
25575
25567
|
const date = this.toLocalDate(value);
|
|
25576
|
-
this.
|
|
25568
|
+
this.updateCoercedValue(Interval.of(this.interval?.start, this.localDateToInstant(date)));
|
|
25577
25569
|
}
|
|
25578
25570
|
onSingleDayDateChanged(date) {
|
|
25579
|
-
this.
|
|
25571
|
+
this.updateCoercedValue(Interval.ofDay(date, this.zone));
|
|
25580
25572
|
}
|
|
25581
25573
|
/***************************************************************************
|
|
25582
25574
|
* *
|
|
25583
25575
|
* Private methods *
|
|
25584
25576
|
* *
|
|
25585
25577
|
**************************************************************************/
|
|
25578
|
+
updateCoercedValue(value) {
|
|
25579
|
+
this.updateValue(this.coerceValue(value));
|
|
25580
|
+
}
|
|
25586
25581
|
instantAtStartOfDayNow() {
|
|
25587
25582
|
return LocalDate.now().atStartOfDay().atZone(this.zone).toInstant();
|
|
25588
25583
|
}
|
|
@@ -25598,9 +25593,11 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25598
25593
|
}
|
|
25599
25594
|
}
|
|
25600
25595
|
valuesEquals(a, b) {
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
|
|
25596
|
+
const aInterval = this.coerceInterval(a);
|
|
25597
|
+
const bInterval = this.coerceInterval(b);
|
|
25598
|
+
return (aInterval && bInterval)
|
|
25599
|
+
? aInterval.equals(bInterval)
|
|
25600
|
+
: aInterval === bInterval;
|
|
25604
25601
|
}
|
|
25605
25602
|
instantWithTime(instant, time) {
|
|
25606
25603
|
return instant
|
|
@@ -25624,16 +25621,50 @@ class ElderIntervalInputComponent extends ElderFormFieldControlBase {
|
|
|
25624
25621
|
return of(null);
|
|
25625
25622
|
}));
|
|
25626
25623
|
}
|
|
25624
|
+
coerceValue(value) {
|
|
25625
|
+
if (this.valueAsIsoStr) {
|
|
25626
|
+
return this.coerceIsoStr(value);
|
|
25627
|
+
}
|
|
25628
|
+
else {
|
|
25629
|
+
return this.coerceInterval(value);
|
|
25630
|
+
}
|
|
25631
|
+
}
|
|
25632
|
+
coerceInterval(value) {
|
|
25633
|
+
if (value instanceof Interval) {
|
|
25634
|
+
return value;
|
|
25635
|
+
}
|
|
25636
|
+
else if ((typeof value) === 'string') {
|
|
25637
|
+
return Interval.parse(value);
|
|
25638
|
+
}
|
|
25639
|
+
else {
|
|
25640
|
+
return undefined;
|
|
25641
|
+
}
|
|
25642
|
+
}
|
|
25643
|
+
coerceIsoStr(value) {
|
|
25644
|
+
if (value instanceof Interval) {
|
|
25645
|
+
return value.toInstantString();
|
|
25646
|
+
}
|
|
25647
|
+
else if ((typeof value) === 'string') {
|
|
25648
|
+
return value;
|
|
25649
|
+
}
|
|
25650
|
+
else {
|
|
25651
|
+
return undefined;
|
|
25652
|
+
}
|
|
25653
|
+
}
|
|
25627
25654
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderIntervalInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.FocusMonitor }, { token: i2.TranslateService }, { token: i3.NgControl, optional: true, self: true }, { token: i4.DateAdapter }, { token: MAT_DATE_LOCALE }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25628
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
25655
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.4", type: ElderIntervalInputComponent, isStandalone: true, selector: "elder-interval-input", inputs: { zone: "zone", valueAsIsoStr: "valueAsIsoStr", mode: "mode", isoValue: "isoValue" }, outputs: { isoValueChange: "isoValueChange" }, providers: [
|
|
25629
25656
|
{ provide: MatFormFieldControl, useExisting: ElderIntervalInputComponent },
|
|
25630
|
-
], usesInheritance: true, ngImport: i0, template: "
|
|
25657
|
+
], usesInheritance: true, ngImport: i0, template: "@switch (mode) {\n\n @case ('date-time-range') {\n <div class=\"layout-row\">\n <elder-date-time-input class=\"flex\" center\n [value]=\"(interval$ | async)?.start\"\n (valueUpdated)=\"onStartChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.from' | translate)\"\n ></elder-date-time-input>\n <span class=\"mat-date-range-input-separator flex-none\">\u2013</span>\n <elder-date-time-input class=\"flex\" center\n [value]=\"(interval$ | async)?.end\"\n (valueUpdated)=\"onEndChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.to' | translate)\"\n ></elder-date-time-input>\n </div>\n }\n @case ('day-time-range') {\n <div class=\"layout-row gap-xs elder-flex-interval-control\">\n\n <!-- [name]=\"name + '-day-start'\" -->\n <elder-date-time-input\n [value]=\"(interval$ | async)?.start\"\n (valueUpdated)=\"onDayTimeStartChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.from' | translate)\"\n ></elder-date-time-input>\n\n <!-- [name]=\"name + '-day-end'\" -->\n <elder-local-time-input\n [value]=\"endTime$ | async\"\n (valueUpdated)=\"onDayTimeEndTimeChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.to' | translate)\"\n ></elder-local-time-input>\n </div>\n }\n\n @case ('date-range') {\n <div class=\"layout-row gap-xs elder-flex-interval-control\">\n\n <mat-date-range-input\n class=\"mdc-text-field__input\"\n [rangePicker]=\"picker\"\n [disabled]=\"!!disabled\"\n >\n <input matStartDate\n [placeholder]=\"dateformat\"\n [ngModel]=\"startDate$ | async\" name=\"date-range.start\"\n [ngModelOptions]=\"{ standalone: true, updateOn: 'blur'}\"\n (ngModelChange)=\"onStartDateChanged($event)\"\n [readonly]=\"readonly\"\n [disabled]=\"!!disabled\"\n >\n <input matEndDate\n [placeholder]=\"dateformat\"\n [ngModel]=\"endDate$ | async\" name=\"date-range.end\"\n [ngModelOptions]=\"{ standalone: true, updateOn: 'blur'}\"\n (ngModelChange)=\"onEndDateChanged($event)\"\n [readonly]=\"readonly\"\n [disabled]=\"!!disabled\"\n >\n </mat-date-range-input>\n <mat-datepicker-toggle class=\"elder-control-icon-button\"\n [disabled]=\"isLocked\"\n [for]=\"picker\">\n <mat-icon matDatepickerToggleIcon>calendar_month</mat-icon>\n </mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </div>\n }\n\n @case ('single-day') {\n <div class=\"layout-row elder-flex-control\">\n\n <!-- [name]=\"name\" -->\n <elder-local-date-input class=\"flex\" center\n [value]=\"startLocalDate$ | async\"\n (valueUpdated)=\"onSingleDayDateChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '')\"\n ></elder-local-date-input>\n </div>\n }\n}\n\n\n\n\n\n\n", styles: [".elder-flex-interval-control{flex:1 1 auto;overflow:hidden}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ElderDateTimeInputComponent, selector: "elder-date-time-input", inputs: ["center", "isoValue"], outputs: ["isoValueChange"] }, { kind: "component", type: ElderLocalTimeInputComponent, selector: "elder-local-time-input", inputs: ["isoValue"], outputs: ["isoValueChange"] }, { kind: "component", type: MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]" }, { kind: "component", type: MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "component", type: ElderLocalDateInputComponent, selector: "elder-local-date-input", inputs: ["zone", "autoDatePicker", "arrows", "today", "center", "datePickerTouchUi", "allowNull", "datePickerEnabled", "isoValue", "dateValue", "isoDateValue"], outputs: ["blurred", "valueUpdatedBlur", "isoValueChange", "dateValueChange", "isoDateValueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25631
25658
|
}
|
|
25632
25659
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ElderIntervalInputComponent, decorators: [{
|
|
25633
25660
|
type: Component,
|
|
25634
25661
|
args: [{ selector: 'elder-interval-input', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
25635
25662
|
{ provide: MatFormFieldControl, useExisting: ElderIntervalInputComponent },
|
|
25636
|
-
], standalone: true, imports: [
|
|
25663
|
+
], standalone: true, imports: [AsyncPipe, TranslateModule, FormsModule,
|
|
25664
|
+
ElderDateTimeInputComponent, ElderLocalTimeInputComponent,
|
|
25665
|
+
MatDateRangeInput, MatStartDate,
|
|
25666
|
+
MatEndDate, MatDatepickerToggle, MatIcon, MatDatepickerToggleIcon, MatDateRangePicker,
|
|
25667
|
+
ElderLocalDateInputComponent], template: "@switch (mode) {\n\n @case ('date-time-range') {\n <div class=\"layout-row\">\n <elder-date-time-input class=\"flex\" center\n [value]=\"(interval$ | async)?.start\"\n (valueUpdated)=\"onStartChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.from' | translate)\"\n ></elder-date-time-input>\n <span class=\"mat-date-range-input-separator flex-none\">\u2013</span>\n <elder-date-time-input class=\"flex\" center\n [value]=\"(interval$ | async)?.end\"\n (valueUpdated)=\"onEndChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.to' | translate)\"\n ></elder-date-time-input>\n </div>\n }\n @case ('day-time-range') {\n <div class=\"layout-row gap-xs elder-flex-interval-control\">\n\n <!-- [name]=\"name + '-day-start'\" -->\n <elder-date-time-input\n [value]=\"(interval$ | async)?.start\"\n (valueUpdated)=\"onDayTimeStartChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.from' | translate)\"\n ></elder-date-time-input>\n\n <!-- [name]=\"name + '-day-end'\" -->\n <elder-local-time-input\n [value]=\"endTime$ | async\"\n (valueUpdated)=\"onDayTimeEndTimeChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '') + ' ' + ('interval.to' | translate)\"\n ></elder-local-time-input>\n </div>\n }\n\n @case ('date-range') {\n <div class=\"layout-row gap-xs elder-flex-interval-control\">\n\n <mat-date-range-input\n class=\"mdc-text-field__input\"\n [rangePicker]=\"picker\"\n [disabled]=\"!!disabled\"\n >\n <input matStartDate\n [placeholder]=\"dateformat\"\n [ngModel]=\"startDate$ | async\" name=\"date-range.start\"\n [ngModelOptions]=\"{ standalone: true, updateOn: 'blur'}\"\n (ngModelChange)=\"onStartDateChanged($event)\"\n [readonly]=\"readonly\"\n [disabled]=\"!!disabled\"\n >\n <input matEndDate\n [placeholder]=\"dateformat\"\n [ngModel]=\"endDate$ | async\" name=\"date-range.end\"\n [ngModelOptions]=\"{ standalone: true, updateOn: 'blur'}\"\n (ngModelChange)=\"onEndDateChanged($event)\"\n [readonly]=\"readonly\"\n [disabled]=\"!!disabled\"\n >\n </mat-date-range-input>\n <mat-datepicker-toggle class=\"elder-control-icon-button\"\n [disabled]=\"isLocked\"\n [for]=\"picker\">\n <mat-icon matDatepickerToggleIcon>calendar_month</mat-icon>\n </mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </div>\n }\n\n @case ('single-day') {\n <div class=\"layout-row elder-flex-control\">\n\n <!-- [name]=\"name\" -->\n <elder-local-date-input class=\"flex\" center\n [value]=\"startLocalDate$ | async\"\n (valueUpdated)=\"onSingleDayDateChanged($event)\"\n [required]=\"required\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [placeholder]=\"(placeholder || '')\"\n ></elder-local-date-input>\n </div>\n }\n}\n\n\n\n\n\n\n", styles: [".elder-flex-interval-control{flex:1 1 auto;overflow:hidden}\n"] }]
|
|
25637
25668
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.FocusMonitor }, { type: i2.TranslateService }, { type: i3.NgControl, decorators: [{
|
|
25638
25669
|
type: Optional
|
|
25639
25670
|
}, {
|
|
@@ -25643,6 +25674,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
25643
25674
|
args: [MAT_DATE_LOCALE]
|
|
25644
25675
|
}] }], propDecorators: { zone: [{
|
|
25645
25676
|
type: Input
|
|
25677
|
+
}], valueAsIsoStr: [{
|
|
25678
|
+
type: Input
|
|
25646
25679
|
}], mode: [{
|
|
25647
25680
|
type: Input
|
|
25648
25681
|
}], isoValueChange: [{
|
|
@@ -27151,14 +27184,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImpor
|
|
|
27151
27184
|
type: Input,
|
|
27152
27185
|
args: ['elderSearchInput']
|
|
27153
27186
|
}], dataSource: [{
|
|
27154
|
-
type: Input
|
|
27155
|
-
args: ['dataSource']
|
|
27187
|
+
type: Input
|
|
27156
27188
|
}], fallbackValue: [{
|
|
27157
27189
|
type: Input,
|
|
27158
27190
|
args: ['elderSearchInputFallback']
|
|
27159
27191
|
}], valueAsId: [{
|
|
27160
|
-
type: Input
|
|
27161
|
-
args: ['valueAsId']
|
|
27192
|
+
type: Input
|
|
27162
27193
|
}] } });
|
|
27163
27194
|
|
|
27164
27195
|
class ElderSearchPanelComponent {
|
|
@@ -27805,7 +27836,7 @@ class ElderSearchUrlService {
|
|
|
27805
27836
|
}
|
|
27806
27837
|
collectRouteQueryParams(root) {
|
|
27807
27838
|
let params = {};
|
|
27808
|
-
|
|
27839
|
+
const stack = [root];
|
|
27809
27840
|
while (stack.length > 0) {
|
|
27810
27841
|
const route = stack.pop();
|
|
27811
27842
|
params = { ...params, ...route.queryParams };
|
|
@@ -29603,7 +29634,7 @@ class ElderUrlFragmentSwitcherComponent {
|
|
|
29603
29634
|
/*
|
|
29604
29635
|
Window which will open the created url
|
|
29605
29636
|
*/
|
|
29606
|
-
this.windowOpenIn =
|
|
29637
|
+
this.windowOpenIn = '_self';
|
|
29607
29638
|
this.activeUrlFragment$ = new BehaviorSubject(new ElderUrlFragment('No match', ''));
|
|
29608
29639
|
}
|
|
29609
29640
|
/***************************************************************************
|
|
@@ -29613,7 +29644,7 @@ class ElderUrlFragmentSwitcherComponent {
|
|
|
29613
29644
|
**************************************************************************/
|
|
29614
29645
|
ngOnInit() {
|
|
29615
29646
|
if (!this.disable) {
|
|
29616
|
-
|
|
29647
|
+
const urlFragment = this.urlFragments.find(c => {
|
|
29617
29648
|
try {
|
|
29618
29649
|
return c.fragment === this.urlRegex.exec(window.location.href)[this.regexArrayIndex];
|
|
29619
29650
|
}
|
|
@@ -30175,7 +30206,7 @@ class DataViewSelection {
|
|
|
30175
30206
|
this.selection = selection;
|
|
30176
30207
|
}
|
|
30177
30208
|
}
|
|
30178
|
-
const DataViewMessageTypeValues = [
|
|
30209
|
+
const DataViewMessageTypeValues = ['SELECTION_INIT', 'SELECTION_SELECTED'];
|
|
30179
30210
|
const isDataViewMessageType = (x) => DataViewMessageTypeValues.includes(x);
|
|
30180
30211
|
class DataViewMessage extends TypedEventMessage {
|
|
30181
30212
|
static initialSelection(init) {
|
|
@@ -30285,7 +30316,7 @@ class IframeHostComponent {
|
|
|
30285
30316
|
}
|
|
30286
30317
|
sendMessageToChild(msg) {
|
|
30287
30318
|
this.log.debug('Sending message to iframe child:', msg);
|
|
30288
|
-
this.iframe.nativeElement.contentWindow.postMessage(msg,
|
|
30319
|
+
this.iframe.nativeElement.contentWindow.postMessage(msg, '*');
|
|
30289
30320
|
}
|
|
30290
30321
|
doClose(event) {
|
|
30291
30322
|
this.close.emit();
|
|
@@ -30591,7 +30622,7 @@ class DataViewIframeComponent {
|
|
|
30591
30622
|
}
|
|
30592
30623
|
}
|
|
30593
30624
|
sendMessageToChild(message) {
|
|
30594
|
-
this.log.debug(
|
|
30625
|
+
this.log.debug('Sending message to iframe child:', message);
|
|
30595
30626
|
this.iframeHost.sendMessageToChild(message);
|
|
30596
30627
|
}
|
|
30597
30628
|
/***************************************************************************
|
|
@@ -31552,12 +31583,18 @@ var ReactiveEventSourceState;
|
|
|
31552
31583
|
ReactiveEventSourceState["ERROR"] = "ERROR";
|
|
31553
31584
|
})(ReactiveEventSourceState || (ReactiveEventSourceState = {}));
|
|
31554
31585
|
class ReactiveSSeMessage {
|
|
31555
|
-
constructor(id, event,
|
|
31586
|
+
constructor(id, event, dataRaw, retry) {
|
|
31556
31587
|
this.id = id;
|
|
31557
31588
|
this.event = event;
|
|
31558
|
-
this.
|
|
31589
|
+
this.dataRaw = dataRaw;
|
|
31559
31590
|
this.retry = retry;
|
|
31560
31591
|
}
|
|
31592
|
+
json() {
|
|
31593
|
+
return JSON.parse(this.dataRaw);
|
|
31594
|
+
}
|
|
31595
|
+
jsonAs() {
|
|
31596
|
+
return this.json();
|
|
31597
|
+
}
|
|
31561
31598
|
}
|
|
31562
31599
|
class ReactiveFetchEventSource {
|
|
31563
31600
|
/***************************************************************************
|
|
@@ -31586,10 +31623,12 @@ class ReactiveFetchEventSource {
|
|
|
31586
31623
|
* Fields *
|
|
31587
31624
|
* *
|
|
31588
31625
|
**************************************************************************/
|
|
31626
|
+
this.EVENT_TYPE_DEFAULT = 'message';
|
|
31627
|
+
this.RECONNECT_DELAY_MS = 3000;
|
|
31589
31628
|
this.log = LoggerFactory.getLogger(this.constructor.name);
|
|
31590
31629
|
this.abortController = null;
|
|
31591
31630
|
this.state$ = new BehaviorSubject(ReactiveEventSourceState.IDLE);
|
|
31592
|
-
this.
|
|
31631
|
+
this.eventRelay = new Subject();
|
|
31593
31632
|
if (!requestInitProvider) {
|
|
31594
31633
|
throw new Error('You must provide a event source url provider!');
|
|
31595
31634
|
}
|
|
@@ -31623,22 +31662,15 @@ class ReactiveFetchEventSource {
|
|
|
31623
31662
|
* Get an event stream for the given event type.
|
|
31624
31663
|
* @param eventTypeRaw The event type. Defaults to 'message'.
|
|
31625
31664
|
*/
|
|
31626
|
-
|
|
31665
|
+
streamEventsOfType(eventTypeRaw) {
|
|
31627
31666
|
const eventType = this.eventTypeOrDefault(eventTypeRaw);
|
|
31628
|
-
|
|
31629
|
-
this.eventTopics.set(eventType, new Subject());
|
|
31630
|
-
}
|
|
31631
|
-
const eventSubj = this.eventTopics.get(eventType);
|
|
31632
|
-
return eventSubj.asObservable();
|
|
31667
|
+
return this.streamEvents().pipe(filter(e => e.event == eventType));
|
|
31633
31668
|
}
|
|
31634
31669
|
/**
|
|
31635
|
-
* Get an event stream
|
|
31636
|
-
* (event.data must be in json format)
|
|
31637
|
-
*
|
|
31638
|
-
* @param eventType The event type. Defaults to 'message'.
|
|
31670
|
+
* Get an event stream for all events no matter their type.
|
|
31639
31671
|
*/
|
|
31640
|
-
|
|
31641
|
-
return this.
|
|
31672
|
+
streamEvents() {
|
|
31673
|
+
return this.eventRelay.asObservable();
|
|
31642
31674
|
}
|
|
31643
31675
|
/**
|
|
31644
31676
|
* Close this event source. It won't reconnect.
|
|
@@ -31721,7 +31753,7 @@ class ReactiveFetchEventSource {
|
|
|
31721
31753
|
else {
|
|
31722
31754
|
this.log.error('Failed to open Event Source due to Error ' + response.status, response);
|
|
31723
31755
|
this.updateState(ReactiveEventSourceState.ERROR);
|
|
31724
|
-
this.tryReconnect();
|
|
31756
|
+
this.tryReconnect();
|
|
31725
31757
|
}
|
|
31726
31758
|
}
|
|
31727
31759
|
handleOnError(err) {
|
|
@@ -31730,7 +31762,7 @@ class ReactiveFetchEventSource {
|
|
|
31730
31762
|
if (!this.closed) {
|
|
31731
31763
|
// There was an error - try reconnecting
|
|
31732
31764
|
this.log.debug('Attempting to reconnect event-source ...');
|
|
31733
|
-
this.tryReconnect();
|
|
31765
|
+
this.tryReconnect();
|
|
31734
31766
|
}
|
|
31735
31767
|
else {
|
|
31736
31768
|
this.log.debug('There was an error in the sse connection (closed).', err);
|
|
@@ -31738,15 +31770,12 @@ class ReactiveFetchEventSource {
|
|
|
31738
31770
|
}
|
|
31739
31771
|
tryReconnect() {
|
|
31740
31772
|
if (!this._closed) {
|
|
31741
|
-
setTimeout(() => this.reconnect(),
|
|
31773
|
+
setTimeout(() => this.reconnect(), this.RECONNECT_DELAY_MS); // Delay the reconnect
|
|
31742
31774
|
}
|
|
31743
31775
|
}
|
|
31744
31776
|
handleOnMessage(msg) {
|
|
31745
31777
|
const eventType = this.eventTypeOrDefault(msg.event);
|
|
31746
|
-
|
|
31747
|
-
if (topic) {
|
|
31748
|
-
topic.next(new ReactiveSSeMessage(msg.id, eventType, msg.data, msg.retry));
|
|
31749
|
-
}
|
|
31778
|
+
this.eventRelay.next(new ReactiveSSeMessage(msg.id, eventType, msg.data, msg.retry));
|
|
31750
31779
|
}
|
|
31751
31780
|
handleOnClose() {
|
|
31752
31781
|
this.log.debug('EventSource has closed.');
|
|
@@ -31756,7 +31785,7 @@ class ReactiveFetchEventSource {
|
|
|
31756
31785
|
this.state$.next(state);
|
|
31757
31786
|
}
|
|
31758
31787
|
eventTypeOrDefault(type) {
|
|
31759
|
-
return type ??
|
|
31788
|
+
return type ?? this.EVENT_TYPE_DEFAULT;
|
|
31760
31789
|
}
|
|
31761
31790
|
}
|
|
31762
31791
|
|