@elderbyte/ngx-starter 14.4.0-beta.2 → 14.4.0-beta.20
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/esm2020/lib/common/enums/elder-enum-translation.service.mjs +3 -3
- package/esm2020/lib/common/forms/elder-form-field-control-base.directive.mjs +12 -8
- package/esm2020/lib/common/forms/elder-from-field-base.mjs +3 -3
- package/esm2020/lib/common/forms/elder-from-field-entity-base.mjs +3 -3
- package/esm2020/lib/common/forms/elder-from-field-multi-entity-base.mjs +3 -3
- package/esm2020/lib/common/forms/form-field-base.component.mjs +3 -3
- package/esm2020/lib/common/forms/multi-model-base.component.mjs +3 -3
- package/esm2020/lib/common/forms/template-composite-control.mjs +3 -3
- package/esm2020/lib/common/forms/value-accessor-base.mjs +3 -3
- package/esm2020/lib/common/http/http-client-builder.service.mjs +3 -3
- package/esm2020/lib/common/http/http-client-pristine.mjs +3 -3
- package/esm2020/lib/common/http/transfer/data-transfer-factory.mjs +3 -3
- package/esm2020/lib/common/url/elder-url-fragment-params.service.mjs +3 -3
- package/esm2020/lib/common/utils/sort-util.mjs +17 -1
- package/esm2020/lib/components/access-denied/elder-access-denied.component.mjs +3 -3
- package/esm2020/lib/components/access-denied/elder-access-denied.module.mjs +4 -4
- package/esm2020/lib/components/auditing/audited-entity/elder-audited-entity.component.mjs +3 -3
- package/esm2020/lib/components/auditing/elder-audit.module.mjs +4 -4
- package/esm2020/lib/components/button-group/elder-button-group/elder-button-group.component.mjs +3 -3
- package/esm2020/lib/components/button-group/elder-button-group.module.mjs +4 -4
- package/esm2020/lib/components/card-organizer/card-organizer/elder-card-organizer.component.mjs +3 -3
- package/esm2020/lib/components/card-organizer/card-organizer/elder-stack-card.directive.mjs +3 -3
- package/esm2020/lib/components/card-organizer/card-stack/elder-card-stack.component.mjs +4 -4
- package/esm2020/lib/components/card-organizer/elder-card-organizer.module.mjs +4 -4
- package/esm2020/lib/components/cards/elder-card/elder-card-header/elder-card-header.component.mjs +3 -3
- package/esm2020/lib/components/cards/elder-card/elder-card.component.mjs +18 -18
- package/esm2020/lib/components/cards/elder-card/elder-card.module.mjs +4 -4
- package/esm2020/lib/components/connectivity/elder-connectivity.module.mjs +4 -4
- package/esm2020/lib/components/connectivity/elder-connectivity.service.mjs +3 -3
- package/esm2020/lib/components/connectivity/offline-indicator/elder-offline-indicator.component.mjs +3 -3
- package/esm2020/lib/components/containers/elder-containers.module.mjs +4 -4
- package/esm2020/lib/components/containers/elder-scroll-container/elder-scroll-container.component.mjs +3 -3
- package/esm2020/lib/components/csv/elder-csv-export-btn/elder-csv-export-btn.component.mjs +3 -3
- package/esm2020/lib/components/csv/elder-csv-stream-exporter-builder.service.mjs +3 -3
- package/esm2020/lib/components/csv/elder-csv.module.mjs +4 -4
- package/esm2020/lib/components/currency/elder-currency.module.mjs +4 -4
- package/esm2020/lib/components/currency/elder-currency.pipe.mjs +3 -3
- package/esm2020/lib/components/data-transfer/elder-data-transfer.module.mjs +4 -4
- package/esm2020/lib/components/data-transfer/elder-data-transfer.service.mjs +3 -3
- package/esm2020/lib/components/data-transfer/http-data-transfer/http-data-transfer.component.mjs +3 -3
- package/esm2020/lib/components/data-transfer/http-data-transfer-aggregate/http-data-transfer-aggregate.component.mjs +3 -3
- package/esm2020/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +3 -3
- package/esm2020/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +3 -3
- package/esm2020/lib/components/data-view/base/data-view-options-provider-binding.mjs +63 -0
- package/esm2020/lib/components/data-view/base/elder-data-view-base.mjs +54 -11
- package/esm2020/lib/components/data-view/base/elder-data-view-options-provider.mjs +44 -0
- package/esm2020/lib/components/data-view/base/elder-data-view-options.mjs +42 -0
- package/esm2020/lib/components/data-view/base/public_api.mjs +5 -0
- package/esm2020/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.mjs +3 -3
- package/esm2020/lib/components/data-view/common/elder-data-common.module.mjs +4 -4
- package/esm2020/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.mjs +6 -6
- package/esm2020/lib/components/data-view/common/elder-single-sort/elder-single-sort.component.mjs +3 -3
- package/esm2020/lib/components/data-view/common/selection/data-context-selection.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/common/selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component.mjs +3 -3
- package/esm2020/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +16 -30
- package/esm2020/lib/components/data-view/grid/elder-grid.module.mjs +4 -4
- package/esm2020/lib/components/data-view/public_api.mjs +2 -2
- package/esm2020/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.component.mjs +3 -3
- package/esm2020/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.module.mjs +4 -4
- package/esm2020/lib/components/data-view/table/activation/elder-table-activation.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-number-cell.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-paginator-intl.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table/elder-table-toolbar.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table/elder-table.component.mjs +12 -46
- package/esm2020/lib/components/data-view/table/elder-table-column.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table-extension.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table-root.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table-row.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table-sort.directive.mjs +3 -3
- package/esm2020/lib/components/data-view/table/elder-table.module.mjs +4 -4
- package/esm2020/lib/components/data-view/table/model/elder-table-model.mjs +3 -3
- package/esm2020/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +3 -3
- package/esm2020/lib/components/dialogs/elder-dialog.module.mjs +7 -7
- package/esm2020/lib/components/dialogs/elder-dialog.service.mjs +3 -3
- package/esm2020/lib/components/dialogs/question-dialog/elder-question-dialog.component.mjs +3 -3
- package/esm2020/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +3 -3
- package/esm2020/lib/components/dialogs/selection-dialog/elder-selection-dialog.directive.mjs +3 -3
- package/esm2020/lib/components/errors/elder-error.module.mjs +4 -4
- package/esm2020/lib/components/errors/exception-detail/elder-exception-detail.component.mjs +3 -3
- package/esm2020/lib/components/expand-toggle-button/elder-expand-toggle-button.component.mjs +3 -3
- package/esm2020/lib/components/expand-toggle-button/elder-expand-toggle-button.module.mjs +4 -4
- package/esm2020/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +3 -3
- package/esm2020/lib/components/files/elder-file-drop-zone.directive.mjs +3 -3
- package/esm2020/lib/components/files/elder-file-select.directive.mjs +3 -3
- package/esm2020/lib/components/files/elder-file.module.mjs +4 -4
- package/esm2020/lib/components/files/file-select/file-select.component.mjs +3 -3
- package/esm2020/lib/components/files/file-upload/file-upload.component.mjs +3 -3
- package/esm2020/lib/components/forms/clipboard/elder-clipboard.service.mjs +3 -3
- package/esm2020/lib/components/forms/directives/base/elder-class-hostbinding-base.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-clipboard-put.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-delayed-focus.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-form-field-dense.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-form-field-label.directive.mjs +33 -20
- package/esm2020/lib/components/forms/directives/elder-form-field-no-hint.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-form-field-no-spinner.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-forms-directives.module.mjs +13 -13
- package/esm2020/lib/components/forms/directives/elder-input-pattern.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-key-event.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-max.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-min.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-next-focusable.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-plug-parent-form.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-stop-event-propagation.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-tab-focus-trap.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-touched.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-triple-state-checkbox.directive.mjs +3 -3
- package/esm2020/lib/components/forms/directives/validation/elder-multiple-of.validator.mjs +3 -3
- package/esm2020/lib/components/forms/directives/validation/elder-required-ignore-zero.validator.mjs +3 -3
- package/esm2020/lib/components/forms/elder-forms.module.mjs +4 -4
- package/esm2020/lib/components/forms/search/elder-search-context.directive.mjs +3 -3
- package/esm2020/lib/components/forms/search/elder-search-input.directive.mjs +3 -3
- package/esm2020/lib/components/forms/search/elder-search.module.mjs +4 -4
- package/esm2020/lib/components/forms/search/search-box/elder-search-box.component.mjs +7 -5
- package/esm2020/lib/components/forms/search/search-box/elder-search-panel.component.mjs +3 -3
- package/esm2020/lib/components/global-search/elder-global-search.component.mjs +3 -3
- package/esm2020/lib/components/global-search/elder-global-search.module.mjs +4 -4
- package/esm2020/lib/components/global-search/elder-global-search.service.mjs +3 -3
- package/esm2020/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +3 -3
- package/esm2020/lib/components/graph/elder-progress-bar/elder-progress-bar.module.mjs +4 -4
- package/esm2020/lib/components/headers/elder-header/elder-header.component.mjs +3 -3
- package/esm2020/lib/components/headers/elder-header.module.mjs +4 -4
- package/esm2020/lib/components/http-support/elder-http-client.service.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-i18n-entities.module.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-input/elder-localized-input.component.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-localized-input-dialog/elder-localized-input-dialog.component.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-localized-input-dialog.service.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-localized-input-table/elder-localized-input-table.component.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-localized-text-column.directive.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/elder-localized-texts.directive.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/picker/i18n-pick-async.pipe.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/picker/i18n-pick.pipe.mjs +3 -3
- package/esm2020/lib/components/i18n/entities/picker/localisation-picker.service.mjs +3 -3
- package/esm2020/lib/components/i18n/language/elder-language-interceptor.mjs +3 -3
- package/esm2020/lib/components/i18n/language/elder-language.module.mjs +4 -4
- package/esm2020/lib/components/i18n/language/elder-language.service.mjs +3 -3
- package/esm2020/lib/components/i18n/language/language-switcher/elder-language-switcher.component.mjs +3 -3
- package/esm2020/lib/components/i18n/locales/elder-locales-de-ch.module.mjs +4 -4
- package/esm2020/lib/components/iframes/data-view/data-view-iframe/data-view-iframe.component.mjs +119 -0
- package/esm2020/lib/components/iframes/data-view/data-view-iframe-adapter.directive.mjs +137 -0
- package/esm2020/lib/components/iframes/elder-iframe.module.mjs +22 -10
- package/esm2020/lib/components/iframes/iframe-close.directive.mjs +3 -3
- package/esm2020/lib/components/iframes/iframe-dialog/iframe-dialog.component.mjs +3 -3
- package/esm2020/lib/components/iframes/iframe-host/iframe-host.component.mjs +58 -32
- package/esm2020/lib/components/iframes/iframe-side-content/iframe-side-content.component.mjs +3 -3
- package/esm2020/lib/components/iframes/iframe.service.mjs +5 -5
- package/esm2020/lib/components/iframes/typed-event-message.mjs +42 -0
- package/esm2020/lib/components/infinitescroll/elder-infinite-autocomplete.directive.mjs +3 -3
- package/esm2020/lib/components/infinitescroll/elder-infinite-scroll.directive.mjs +3 -3
- package/esm2020/lib/components/infinitescroll/elder-infinite-scroll.module.mjs +7 -7
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete/elder-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete.directive.mjs +3 -3
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete.module.mjs +4 -4
- package/esm2020/lib/components/labels/elder-labels.module.mjs +4 -4
- package/esm2020/lib/components/labels/labels-input/labels-input.component.mjs +3 -3
- package/esm2020/lib/components/measures/dimensions-input/elder-dimensions-input.component.mjs +3 -3
- package/esm2020/lib/components/measures/directives/elder-unit-select.directive.mjs +3 -3
- package/esm2020/lib/components/measures/elder-measures.module.mjs +8 -8
- package/esm2020/lib/components/measures/elder-quantity-transform.pipe.mjs +3 -3
- package/esm2020/lib/components/measures/elder-quantity.pipe.mjs +3 -3
- package/esm2020/lib/components/measures/elder-unit.service.mjs +3 -3
- package/esm2020/lib/components/measures/quantity-input/elder-quantity-input.component.mjs +3 -3
- package/esm2020/lib/components/measures/util/elder-quantity.service.mjs +3 -3
- package/esm2020/lib/components/multi-autocomplete/elder-multi-auto-complete.module.mjs +4 -4
- package/esm2020/lib/components/multi-autocomplete/elder-multi-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +3 -3
- package/esm2020/lib/components/navigation/bread-crumbs/elder-bread-crumbs.module.mjs +4 -4
- package/esm2020/lib/components/navigation/nav/elder-nav.module.mjs +4 -4
- package/esm2020/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +3 -3
- package/esm2020/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +3 -3
- package/esm2020/lib/components/navigation/nav/nav-list/elder-nav-list.component.mjs +3 -3
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar-column.directive.mjs +3 -3
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar.module.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar.service.mjs +3 -3
- package/esm2020/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +3 -3
- package/esm2020/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.component.mjs +3 -3
- package/esm2020/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.service.mjs +3 -3
- package/esm2020/lib/components/overlays/elder-overlay-origin.directive.mjs +3 -3
- package/esm2020/lib/components/overlays/elder-overlay-trigger.directive.mjs +3 -3
- package/esm2020/lib/components/overlays/elder-overlay.component.mjs +3 -3
- package/esm2020/lib/components/overlays/elder-overlay.module.mjs +4 -4
- package/esm2020/lib/components/panels/card-panel/elder-card-panel.component.mjs +3 -3
- package/esm2020/lib/components/panels/elder-panel.module.mjs +4 -4
- package/esm2020/lib/components/panels/flat/elder-panel.component.mjs +3 -3
- package/esm2020/lib/components/select/auto/elder-auto-select-first.directive.mjs +3 -3
- package/esm2020/lib/components/select/elder-select-base.mjs +9 -8
- package/esm2020/lib/components/select/elder-select-chip.directive.mjs +9 -9
- package/esm2020/lib/components/select/elder-select-on-tab.directive.mjs +3 -3
- package/esm2020/lib/components/select/elder-select-value.directive.mjs +3 -3
- package/esm2020/lib/components/select/elder-select.module.mjs +10 -9
- package/esm2020/lib/components/select/multi/elder-multi-select-base.mjs +105 -39
- package/esm2020/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +34 -22
- package/esm2020/lib/components/select/multi/elder-multi-select-form-field.mjs +11 -5
- package/esm2020/lib/components/select/popup/selection-model-popup.directive.mjs +23 -41
- package/esm2020/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +7 -6
- package/esm2020/lib/components/select/public_api.mjs +2 -1
- package/esm2020/lib/components/select/single/elder-clear-select.directive.mjs +3 -3
- package/esm2020/lib/components/select/single/elder-select/elder-select.component.mjs +26 -39
- package/esm2020/lib/components/select/single/elder-select-form-field.mjs +3 -3
- package/esm2020/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.mjs +3 -3
- package/esm2020/lib/components/select-chip-list/elder-chip-list-select.module.mjs +4 -4
- package/esm2020/lib/components/select-list/elder-select-list.module.mjs +4 -4
- package/esm2020/lib/components/select-list/select-list/elder-select-list.component.mjs +3 -3
- package/esm2020/lib/components/select-list/select-list-item/elder-select-list-item.component.mjs +3 -3
- package/esm2020/lib/components/shell/drawers/elder-route-outlet-drawer.service.mjs +3 -3
- package/esm2020/lib/components/shell/drawers/elder-router-outlet.service.mjs +3 -3
- package/esm2020/lib/components/shell/elder-shell-slot.directive.mjs +3 -3
- package/esm2020/lib/components/shell/elder-shell.module.mjs +4 -4
- package/esm2020/lib/components/shell/elder-shell.service.mjs +3 -3
- package/esm2020/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +3 -3
- package/esm2020/lib/components/shell/shell/elder-shell.component.mjs +25 -15
- package/esm2020/lib/components/shell/shell-navigation-toggle/elder-shell-navigation-toggle.component.mjs +3 -3
- package/esm2020/lib/components/tabs/elder-tab/elder-tab.directive.mjs +3 -3
- package/esm2020/lib/components/tabs/elder-tab-group-routing/elder-tab-group-routing.directive.mjs +3 -3
- package/esm2020/lib/components/tabs/elder-tab.module.mjs +4 -4
- package/esm2020/lib/components/theme/elder-theme-applier.directive.mjs +3 -3
- package/esm2020/lib/components/theme/elder-theme-preference.service.mjs +3 -3
- package/esm2020/lib/components/theme/elder-theme-toggle/elder-theme-toggle.component.mjs +3 -3
- package/esm2020/lib/components/theme/elder-theme.directive.mjs +3 -3
- package/esm2020/lib/components/theme/elder-theme.module.mjs +4 -4
- package/esm2020/lib/components/theme/elder-theme.service.mjs +3 -3
- package/esm2020/lib/components/time/date-adapters/custom-date-adapter.mjs +3 -3
- package/esm2020/lib/components/time/duration/elder-duration-input/elder-duration-input.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-date-switcher/elder-date-switcher.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-date-time-input/elder-date-time-input.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-interval-input/elder-interval-input.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-local-date-input/elder-local-date-input.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-local-time-input/elder-local-time-input.component.mjs +3 -3
- package/esm2020/lib/components/time/elder-time.module.mjs +8 -8
- package/esm2020/lib/components/time/period/elder-period-input/elder-period-input.component.mjs +3 -3
- package/esm2020/lib/components/toasts/elder-toast.module.mjs +4 -4
- package/esm2020/lib/components/toasts/elder-toast.service.mjs +9 -9
- package/esm2020/lib/components/toasts/standard-toast/standard-toast.component.mjs +3 -3
- package/esm2020/lib/components/url-fragment/elder-url-fragment.module.mjs +4 -4
- package/esm2020/lib/components/url-fragment/url-fragment-switcher/elder-url-fragment-switcher.component.mjs +3 -3
- package/esm2020/lib/components/viewers/elder-svg-viewer/elder-svg-viewer.component.mjs +3 -3
- package/esm2020/lib/components/viewers/elder-viewers.module.mjs +4 -4
- package/esm2020/lib/features/event-source/elder-event-source.service.mjs +3 -3
- package/esm2020/lib/features/kafent/access-token-provider.mjs +3 -3
- package/esm2020/lib/features/kafent/kafent-config.mjs +3 -3
- package/esm2020/lib/features/kafent/kafent-event-stream.mjs +3 -3
- package/esm2020/lib/features/kafent/kafent-event.service.mjs +3 -3
- package/esm2020/lib/features/kafent/kafent.module.mjs +4 -4
- package/esm2020/lib/features/kafent/sse/kafent-event-stream-sse.service.mjs +3 -3
- package/esm2020/lib/pipes/bytes.pipe.mjs +3 -3
- package/esm2020/lib/pipes/elder-pipes.module.mjs +10 -10
- package/esm2020/lib/pipes/elder-repeat.pipe.mjs +3 -3
- package/esm2020/lib/pipes/elder-round.pipe.mjs +3 -3
- package/esm2020/lib/pipes/elder-safe-url.pipe.mjs +3 -3
- package/esm2020/lib/pipes/elder-truncate.pipe.mjs +3 -3
- package/esm2020/lib/pipes/iso-duration.pipe.mjs +3 -3
- package/esm2020/lib/pipes/iso-interval-parse.pipe.mjs +3 -3
- package/esm2020/lib/pipes/iso-interval.pipe.mjs +3 -3
- package/esm2020/lib/pipes/time-ago.pipe.mjs +3 -3
- package/esm2020/lib/pipes/time-duration.pipe.mjs +3 -3
- package/esm2020/lib/pipes/weight.pipe.mjs +3 -3
- package/fesm2015/elderbyte-ngx-starter.mjs +2781 -2251
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +2757 -2229
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/forms/elder-form-field-control-base.directive.d.ts +3 -1
- package/lib/common/utils/sort-util.d.ts +6 -0
- package/lib/components/data-view/base/data-view-options-provider-binding.d.ts +39 -0
- package/lib/components/data-view/base/elder-data-view-base.d.ts +29 -6
- package/lib/components/data-view/base/elder-data-view-options-provider.d.ts +38 -0
- package/lib/components/data-view/base/elder-data-view-options.d.ts +33 -0
- package/lib/components/data-view/base/public_api.d.ts +4 -0
- package/lib/components/data-view/grid/elder-grid/elder-grid.component.d.ts +4 -6
- package/lib/components/data-view/public_api.d.ts +1 -1
- package/lib/components/data-view/table/elder-table/elder-table.component.d.ts +5 -19
- package/lib/components/forms/directives/elder-form-field-label.directive.d.ts +19 -6
- package/lib/components/forms/search/search-box/elder-search-box.component.d.ts +2 -1
- package/lib/components/iframes/data-view/data-view-iframe/data-view-iframe.component.d.ts +66 -0
- package/lib/components/iframes/data-view/data-view-iframe-adapter.directive.d.ts +62 -0
- package/lib/components/iframes/elder-iframe.module.d.ts +14 -10
- package/lib/components/iframes/iframe-host/iframe-host.component.d.ts +28 -10
- package/lib/components/iframes/iframe.service.d.ts +3 -3
- package/lib/components/iframes/typed-event-message.d.ts +26 -0
- package/lib/components/select/elder-select-base.d.ts +2 -1
- package/lib/components/select/elder-select.module.d.ts +3 -2
- package/lib/components/select/multi/elder-multi-select-base.d.ts +25 -3
- package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts +6 -3
- package/lib/components/select/multi/elder-multi-select-form-field.d.ts +2 -1
- package/lib/components/select/popup/selection-model-popup.directive.d.ts +7 -27
- package/lib/components/select/public_api.d.ts +1 -0
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +6 -9
- package/lib/components/shell/shell/elder-shell.component.d.ts +4 -1
- package/package.json +4 -4
- package/src/lib/components/cards/elder-card/elder-card.component.scss +1 -6
- package/src/lib/components/iframes/data-view/data-view-iframe/data-view-iframe.component.scss +0 -0
- package/src/lib/components/select/_elder-select-base.scss +131 -0
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +33 -49
- package/src/lib/components/select/single/elder-select/elder-select.component.scss +36 -73
- package/theming/_elder-common.scss +4 -38
- package/theming/_elder-typography-utils.scss +11 -0
- package/esm2020/lib/components/data-view/base/elder-data-view-base.module.mjs +0 -18
- package/esm2020/lib/components/iframes/iframe-message.mjs +0 -2
- package/lib/components/data-view/base/elder-data-view-base.module.d.ts +0 -9
- package/lib/components/iframes/iframe-message.d.ts +0 -5
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { TypedEventMessage } from '../typed-event-message';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export declare type IFrameStateType = 'LOADING' | 'LOADED' | 'ERROR';
|
|
4
6
|
export declare class IFrameState {
|
|
5
|
-
readonly
|
|
6
|
-
readonly message: string;
|
|
7
|
-
constructor(
|
|
7
|
+
readonly type: IFrameStateType;
|
|
8
|
+
readonly message: string | null;
|
|
9
|
+
constructor(type: IFrameStateType, message?: string | null);
|
|
10
|
+
get isLoading(): boolean;
|
|
11
|
+
get hasLoaded(): boolean;
|
|
8
12
|
get hasError(): boolean;
|
|
9
13
|
}
|
|
10
14
|
export interface IFrameParams {
|
|
@@ -32,10 +36,11 @@ export declare class IframeHostComponent implements OnInit {
|
|
|
32
36
|
* Fields *
|
|
33
37
|
* *
|
|
34
38
|
**************************************************************************/
|
|
35
|
-
private readonly
|
|
39
|
+
private readonly log;
|
|
36
40
|
readonly iframeParams$: BehaviorSubject<IFrameParams>;
|
|
37
41
|
readonly iframeState$: BehaviorSubject<IFrameState>;
|
|
38
|
-
|
|
42
|
+
iframe: ElementRef;
|
|
43
|
+
message: EventEmitter<TypedEventMessage<any, any>>;
|
|
39
44
|
close: EventEmitter<any>;
|
|
40
45
|
/***************************************************************************
|
|
41
46
|
* *
|
|
@@ -43,13 +48,24 @@ export declare class IframeHostComponent implements OnInit {
|
|
|
43
48
|
* *
|
|
44
49
|
**************************************************************************/
|
|
45
50
|
constructor();
|
|
51
|
+
/***************************************************************************
|
|
52
|
+
* *
|
|
53
|
+
* Listeners *
|
|
54
|
+
* *
|
|
55
|
+
**************************************************************************/
|
|
56
|
+
/**
|
|
57
|
+
* Listens for messages from window.
|
|
58
|
+
* Makes it possible to react upon messages from iframe child window.
|
|
59
|
+
*
|
|
60
|
+
* @param event message from child window
|
|
61
|
+
*/
|
|
62
|
+
onWindowMessage(event: MessageEvent): boolean;
|
|
46
63
|
/***************************************************************************
|
|
47
64
|
* *
|
|
48
65
|
* Lifecycle *
|
|
49
66
|
* *
|
|
50
67
|
**************************************************************************/
|
|
51
68
|
ngOnInit(): void;
|
|
52
|
-
onMessage(e: any): boolean;
|
|
53
69
|
/***************************************************************************
|
|
54
70
|
* *
|
|
55
71
|
* Properties *
|
|
@@ -61,14 +77,16 @@ export declare class IframeHostComponent implements OnInit {
|
|
|
61
77
|
* Public API *
|
|
62
78
|
* *
|
|
63
79
|
**************************************************************************/
|
|
64
|
-
|
|
80
|
+
onIframeLoadEvent(event: Event): void;
|
|
81
|
+
onIframeErrorEvent(err: any): void;
|
|
82
|
+
sendMessageToChild(msg: TypedEventMessage<any, any>): void;
|
|
65
83
|
doClose(event?: Event): void;
|
|
66
84
|
/***************************************************************************
|
|
67
85
|
* *
|
|
68
86
|
* Private methods *
|
|
69
87
|
* *
|
|
70
88
|
**************************************************************************/
|
|
71
|
-
private
|
|
89
|
+
private handleMessageFromChild;
|
|
72
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<IframeHostComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IframeHostComponent, "elder-i-frame-host", never, { "iframeParams": "iframeParams"; }, { "
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IframeHostComponent, "elder-i-frame-host", never, { "iframeParams": "iframeParams"; }, { "message": "message"; "close": "close"; }, never, never, false>;
|
|
74
92
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { IFrameParams } from './iframe-host/iframe-host.component';
|
|
4
|
-
import {
|
|
4
|
+
import { TypedEventMessage } from './typed-event-message';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class IframeService {
|
|
7
7
|
dialog: MatDialog;
|
|
8
|
-
static postToParent<T>(message:
|
|
8
|
+
static postToParent<T, D>(message: TypedEventMessage<T, D>): void;
|
|
9
9
|
/***************************************************************************
|
|
10
10
|
* *
|
|
11
11
|
* Fields *
|
|
@@ -19,7 +19,7 @@ export declare class IframeService {
|
|
|
19
19
|
**************************************************************************/
|
|
20
20
|
openIframeDialog<R>(params: IFrameParams): Observable<R>;
|
|
21
21
|
postCloseMessage<T>(data?: T): void;
|
|
22
|
-
postDataMessage<T>(message:
|
|
22
|
+
postDataMessage<T, D>(message: TypedEventMessage<T, D>): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<IframeService, never>;
|
|
24
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<IframeService>;
|
|
25
25
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElderDataViewOptions } from '../data-view/base/elder-data-view-options';
|
|
2
|
+
export declare class TypedEventMessage<T, D> {
|
|
3
|
+
type: T;
|
|
4
|
+
data?: D;
|
|
5
|
+
static isOfType(obj: any): obj is TypedEventMessage<any, any>;
|
|
6
|
+
constructor(type: T, data?: D);
|
|
7
|
+
}
|
|
8
|
+
export declare class DataViewSelectionInit<T> {
|
|
9
|
+
options: ElderDataViewOptions;
|
|
10
|
+
initialSelection: T[];
|
|
11
|
+
idField: string;
|
|
12
|
+
constructor(options: ElderDataViewOptions, initialSelection?: T[], idField?: string);
|
|
13
|
+
}
|
|
14
|
+
export declare class DataViewSelection<T> {
|
|
15
|
+
selection: T[];
|
|
16
|
+
constructor(selection: T[]);
|
|
17
|
+
}
|
|
18
|
+
export declare type DataViewMessageType = 'SELECTION_INIT' | 'SELECTION_SELECTED';
|
|
19
|
+
export declare class DataViewMessage<T, D = DataViewSelectionInit<T> | DataViewSelection<T>> extends TypedEventMessage<DataViewMessageType, D> {
|
|
20
|
+
type: DataViewMessageType;
|
|
21
|
+
data: D;
|
|
22
|
+
static initialSelection<D>(init: DataViewSelectionInit<D>): DataViewMessage<D>;
|
|
23
|
+
static selection<D>(selection: DataViewSelection<D>): DataViewMessage<D>;
|
|
24
|
+
static isOfType(obj: any): obj is DataViewMessage<any, any>;
|
|
25
|
+
constructor(type: DataViewMessageType, data: D);
|
|
26
|
+
}
|
|
@@ -10,6 +10,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
|
|
|
10
10
|
import { ElderFormFieldControlBase } from '../../common/forms/elder-form-field-control-base.directive';
|
|
11
11
|
import { NgControl } from '@angular/forms';
|
|
12
12
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare type TextResolverFn = (value: any) => string;
|
|
15
16
|
export declare class ElderSelectComponentState {
|
|
@@ -87,7 +88,7 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Elde
|
|
|
87
88
|
* Constructor *
|
|
88
89
|
* *
|
|
89
90
|
**************************************************************************/
|
|
90
|
-
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
|
|
91
|
+
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl?: NgControl);
|
|
91
92
|
/***************************************************************************
|
|
92
93
|
* *
|
|
93
94
|
* Properties *
|
|
@@ -29,18 +29,19 @@ import * as i27 from "../input/autocomplete/elder-autocomplete.module";
|
|
|
29
29
|
import * as i28 from "@angular/material/chips";
|
|
30
30
|
import * as i29 from "../../pipes/elder-pipes.module";
|
|
31
31
|
import * as i30 from "@angular/material/tooltip";
|
|
32
|
+
import * as i31 from "../theme/elder-theme.module";
|
|
32
33
|
export { ElderSelectValueDirective } from './elder-select-value.directive';
|
|
33
34
|
export * from './elder-select-chip.directive';
|
|
34
35
|
export { ElderSelectOnTabDirective } from './elder-select-on-tab.directive';
|
|
35
36
|
export { ElderSelectComponent } from './single/elder-select/elder-select.component';
|
|
36
37
|
export { TemplatedSelectionDialogComponent, ISelectionModelDialogOptions } from './popup/templated-selection-dialog/templated-selection-dialog.component';
|
|
37
|
-
export { SelectionModelPopupDirective
|
|
38
|
+
export { SelectionModelPopupDirective } from './popup/selection-model-popup.directive';
|
|
38
39
|
export { ElderMultiSelectBase } from './multi/elder-multi-select-base';
|
|
39
40
|
export { ElderMultiSelectChipsComponent } from './multi/elder-multi-select-chips/elder-multi-select-chips.component';
|
|
40
41
|
export { ElderAutoSelectFirstDirective } from './auto/elder-auto-select-first.directive';
|
|
41
42
|
export { ElderClearSelectDirective } from './single/elder-clear-select.directive';
|
|
42
43
|
export declare class ElderSelectModule {
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderSelectModule, [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i5.ElderSelectOnTabDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i7.ElderSelectChipAvatarDirective, typeof i8.ElderAutoSelectFirstDirective, typeof i9.ElderClearSelectDirective, typeof i7.ElderSelectCustomInputDirective], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatFormFieldModule, typeof i13.MatIconModule, typeof i14.MatSelectModule, typeof i15.MatDialogModule, typeof i16.MatButtonModule, typeof i17.MatInputModule, typeof i18.MatAutocompleteModule, typeof i19.MatToolbarModule, typeof i20.MatProgressBarModule, typeof i21.MatProgressSpinnerModule, typeof i22.FlexModule, typeof i23.TranslateModule, typeof i24.ElderFormsDirectivesModule, typeof i25.ElderTableModule, typeof i26.ElderInfiniteScrollModule, typeof i27.ElderAutocompleteModule, typeof i28.MatChipsModule, typeof i29.ElderPipesModule, typeof i30.MatTooltipModule], [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i7.ElderSelectChipAvatarDirective, typeof i8.ElderAutoSelectFirstDirective, typeof i9.ElderClearSelectDirective, typeof i7.ElderSelectCustomInputDirective]>;
|
|
45
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderSelectModule, [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i5.ElderSelectOnTabDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i7.ElderSelectChipAvatarDirective, typeof i8.ElderAutoSelectFirstDirective, typeof i9.ElderClearSelectDirective, typeof i7.ElderSelectCustomInputDirective], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatFormFieldModule, typeof i13.MatIconModule, typeof i14.MatSelectModule, typeof i15.MatDialogModule, typeof i16.MatButtonModule, typeof i17.MatInputModule, typeof i18.MatAutocompleteModule, typeof i19.MatToolbarModule, typeof i20.MatProgressBarModule, typeof i21.MatProgressSpinnerModule, typeof i22.FlexModule, typeof i23.TranslateModule, typeof i24.ElderFormsDirectivesModule, typeof i25.ElderTableModule, typeof i26.ElderInfiniteScrollModule, typeof i27.ElderAutocompleteModule, typeof i28.MatChipsModule, typeof i29.ElderPipesModule, typeof i30.MatTooltipModule, typeof i31.ElderThemeModule], [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i7.ElderSelectChipAvatarDirective, typeof i8.ElderAutoSelectFirstDirective, typeof i9.ElderClearSelectDirective, typeof i7.ElderSelectCustomInputDirective]>;
|
|
45
46
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElderSelectModule>;
|
|
46
47
|
}
|
|
@@ -5,6 +5,9 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { NgControl } from '@angular/forms';
|
|
6
6
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
7
|
import { IElderMultiEntityValueAccessor } from '../../../common/forms/elder-multi-entity-value-accessor';
|
|
8
|
+
import { Sort } from '../../../common/data/sort';
|
|
9
|
+
import { ElderDialogService } from '../../dialogs/elder-dialog.service';
|
|
10
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
11
|
import * as i0 from "@angular/core";
|
|
9
12
|
/**
|
|
10
13
|
* Base component implementation of elder-multi-select.
|
|
@@ -16,6 +19,7 @@ import * as i0 from "@angular/core";
|
|
|
16
19
|
*
|
|
17
20
|
*/
|
|
18
21
|
export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends ElderSelectBase<TId, TEntity, TValue[]> implements IElderMultiEntityValueAccessor<TEntity, TId, TValue> {
|
|
22
|
+
private readonly dialogService;
|
|
19
23
|
/***************************************************************************
|
|
20
24
|
* *
|
|
21
25
|
* Fields *
|
|
@@ -24,6 +28,17 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
24
28
|
private readonly logger;
|
|
25
29
|
private readonly _entityIds$;
|
|
26
30
|
private readonly _entities$;
|
|
31
|
+
/**
|
|
32
|
+
* Defines how the entities should be sorted locally.
|
|
33
|
+
* This affects how entities are displayed when more than
|
|
34
|
+
* one is selected, such as in a chip list.
|
|
35
|
+
*/
|
|
36
|
+
entitiesSorts: Sort[];
|
|
37
|
+
/**
|
|
38
|
+
* If enabled, before removing selected entities
|
|
39
|
+
* the user will be prompted to confirm.
|
|
40
|
+
*/
|
|
41
|
+
confirmRemoval: boolean;
|
|
27
42
|
readonly entityIdsChange: Observable<TId[]>;
|
|
28
43
|
readonly entitiesChange: Observable<TEntity[]>;
|
|
29
44
|
/**
|
|
@@ -41,7 +56,7 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
41
56
|
* Constructor *
|
|
42
57
|
* *
|
|
43
58
|
**************************************************************************/
|
|
44
|
-
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
|
|
59
|
+
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl?: NgControl);
|
|
45
60
|
private awaitEntitiesWithId;
|
|
46
61
|
/***************************************************************************
|
|
47
62
|
* *
|
|
@@ -64,6 +79,9 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
64
79
|
updateValueByEntities(entities: TEntity[]): void;
|
|
65
80
|
appendEntities(newEntities: TEntity[]): void;
|
|
66
81
|
appendEntity(newEntity: any): void;
|
|
82
|
+
requestRemoveEntity(toRemove: TEntity, skipConfirm?: boolean): void;
|
|
83
|
+
requestRemoveEntities(toRemove: TEntity[], skipConfirm?: boolean): void;
|
|
84
|
+
removeEntities(toRemove: TEntity[]): void;
|
|
67
85
|
removeEntity(toRemove: TEntity): void;
|
|
68
86
|
openSelectionPopup(event: Event): void;
|
|
69
87
|
entityToValue(entity: TEntity): TValue;
|
|
@@ -72,6 +90,7 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
72
90
|
* Internal Methods *
|
|
73
91
|
* *
|
|
74
92
|
**************************************************************************/
|
|
93
|
+
protected valuesEquals(a: TValue[], b: TValue[]): boolean;
|
|
75
94
|
protected onDataContextChanged(data: IDataContext<TEntity>): void;
|
|
76
95
|
/**
|
|
77
96
|
* This method is invoked after a value has been written to this control.
|
|
@@ -91,8 +110,11 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
91
110
|
private equalIds;
|
|
92
111
|
private equalEntities;
|
|
93
112
|
private selectEntitiesByIds;
|
|
94
|
-
private
|
|
113
|
+
private findOrLoadEntitiesByIds;
|
|
114
|
+
private loadEntitiesByIds;
|
|
95
115
|
private findInDataContext;
|
|
116
|
+
private writeEntitiesSorted;
|
|
117
|
+
private sortEntities;
|
|
96
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectBase<any, any, any>, never>;
|
|
97
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderMultiSelectBase<any, any, any>, never, never, { "entities": "entities"; "entityIds": "entityIds"; }, { "entityIdsChange": "entityIdsChange"; "entitiesChange": "entitiesChange"; "entityIdsUpdated": "entityIdsUpdated"; "entitiesUpdated": "entitiesUpdated"; }, never, never, false>;
|
|
119
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderMultiSelectBase<any, any, any>, never, never, { "entitiesSorts": "entitiesSorts"; "confirmRemoval": "confirmRemoval"; "entities": "entities"; "entityIds": "entityIds"; }, { "entityIdsChange": "entityIdsChange"; "entitiesChange": "entitiesChange"; "entityIdsUpdated": "entityIdsUpdated"; "entitiesUpdated": "entitiesUpdated"; }, never, never, false>;
|
|
98
120
|
}
|
package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
5
|
import { NgControl } from '@angular/forms';
|
|
6
6
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
|
+
import { ElderDialogService } from '../../../dialogs/elder-dialog.service';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
declare class ChipModel<T> {
|
|
9
11
|
readonly value: T;
|
|
@@ -13,7 +15,6 @@ declare class ChipModel<T> {
|
|
|
13
15
|
constructor(value: T, displayText: string, color: ThemePalette, removeable: boolean);
|
|
14
16
|
}
|
|
15
17
|
export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TValue = any> extends ElderMultiSelectBase<TId, TEntity, TValue> {
|
|
16
|
-
ngControl: NgControl;
|
|
17
18
|
/***************************************************************************
|
|
18
19
|
* *
|
|
19
20
|
* Fields *
|
|
@@ -36,7 +37,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
36
37
|
* Constructor *
|
|
37
38
|
* *
|
|
38
39
|
**************************************************************************/
|
|
39
|
-
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, ngControl: NgControl);
|
|
40
|
+
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl: NgControl);
|
|
40
41
|
/***************************************************************************
|
|
41
42
|
* *
|
|
42
43
|
* Host Bindings *
|
|
@@ -70,6 +71,8 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
70
71
|
* *
|
|
71
72
|
**************************************************************************/
|
|
72
73
|
resolveChipValue(e1: TEntity): any;
|
|
74
|
+
onChipKeyDown(event: KeyboardEvent, toRemove: TEntity): void;
|
|
75
|
+
onClickRemoveChip(event: MouseEvent, toRemove: TEntity): void;
|
|
73
76
|
focus(options?: FocusOptions): void;
|
|
74
77
|
blur(): void;
|
|
75
78
|
/***************************************************************************
|
|
@@ -80,7 +83,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
80
83
|
private buildChipModelsOrFallback;
|
|
81
84
|
private buildChipFallbackModels;
|
|
82
85
|
private buildChipModels;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, { optional: true; self: true; }]>;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, null, null, { optional: true; self: true; }]>;
|
|
84
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElderMultiSelectChipsComponent<any, any, any>, "elder-multi-select-chips", never, { "allowRemove": "allowRemove"; "chipTemplate": "chipTemplate"; "chipAvatarTemplate": "chipAvatarTemplate"; "customInputTemplate": "customInputTemplate"; "chipColorEnabled": "chipColorEnabled"; "chipColorResolver": "chipColorResolver"; }, {}, ["chipTemplateQuery", "chipAvatarTemplateQuery", "customInputTemplateQuery"], never, false>;
|
|
85
88
|
}
|
|
86
89
|
export {};
|
|
@@ -3,7 +3,7 @@ import { ElderSelectValueDirective } from '../elder-select-value.directive';
|
|
|
3
3
|
import { ElderApplyControlFn } from '../../../common/forms/elder-from-field-base';
|
|
4
4
|
import { ElderMultiSelectBase } from './elder-multi-select-base';
|
|
5
5
|
import { ElderFromFieldMultiEntityBase } from '../../../common/forms/elder-from-field-multi-entity-base';
|
|
6
|
-
import { ElderSelectChipAvatarDirective, ElderSelectChipDirective } from '../elder-select-chip.directive';
|
|
6
|
+
import { ElderSelectChipAvatarDirective, ElderSelectChipDirective, ElderSelectCustomInputDirective } from '../elder-select-chip.directive';
|
|
7
7
|
import { SelectionModelPopupDirective } from '../popup/selection-model-popup.directive';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare abstract class ElderMultiSelectFormField<TEntity, TId, TValue = TEntity | TId> extends ElderFromFieldMultiEntityBase<TEntity, TId, TValue, ElderMultiSelectBase<TId, TEntity, TValue>> implements AfterViewInit {
|
|
@@ -16,6 +16,7 @@ export declare abstract class ElderMultiSelectFormField<TEntity, TId, TValue = T
|
|
|
16
16
|
selectionModelPopupDirective: SelectionModelPopupDirective;
|
|
17
17
|
selectChipDirective: ElderSelectChipDirective;
|
|
18
18
|
selectChipAvatarDirective: ElderSelectChipAvatarDirective;
|
|
19
|
+
selectCustomInputDirective: ElderSelectCustomInputDirective;
|
|
19
20
|
/***************************************************************************
|
|
20
21
|
* *
|
|
21
22
|
* Constructor *
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { ChangeDetectorRef,
|
|
1
|
+
import { ChangeDetectorRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { KeyGetterFn, SelectionModel } from '../../../common/selection/selection-model';
|
|
5
5
|
import { Sort } from '../../../common/data/sort';
|
|
6
6
|
import { Filter } from '../../../common/data/filter';
|
|
7
|
+
import { ElderDataViewOptionsProvider } from '../../data-view/base/elder-data-view-options-provider';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Configures the selection mode on supporting components.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ElderDataViewSelectionMode {
|
|
12
|
-
sorts: Sort[];
|
|
13
|
-
filters: Filter[];
|
|
14
|
-
multi: boolean;
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
9
|
export declare function createSelectionModel(): SelectionModel<any>;
|
|
18
|
-
export declare function
|
|
19
|
-
export declare class SelectionModelPopupDirective
|
|
10
|
+
export declare function createDataViewOptionsProvider(): ElderDataViewOptionsProvider;
|
|
11
|
+
export declare class SelectionModelPopupDirective {
|
|
20
12
|
private readonly templateRef;
|
|
21
13
|
private readonly viewContainer;
|
|
22
14
|
private readonly dialog;
|
|
23
|
-
private readonly
|
|
15
|
+
private readonly dataViewOptionsProvider;
|
|
24
16
|
private readonly selectionModel;
|
|
25
17
|
private readonly changeDetectorRef;
|
|
26
18
|
/***************************************************************************
|
|
@@ -36,19 +28,7 @@ export declare class SelectionModelPopupDirective implements OnInit, OnDestroy {
|
|
|
36
28
|
* Constructor *
|
|
37
29
|
* *
|
|
38
30
|
**************************************************************************/
|
|
39
|
-
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, dialog: MatDialog,
|
|
40
|
-
/***************************************************************************
|
|
41
|
-
* *
|
|
42
|
-
* Host Listeners *
|
|
43
|
-
* *
|
|
44
|
-
**************************************************************************/
|
|
45
|
-
/***************************************************************************
|
|
46
|
-
* *
|
|
47
|
-
* Life Cycle *
|
|
48
|
-
* *
|
|
49
|
-
**************************************************************************/
|
|
50
|
-
ngOnInit(): void;
|
|
51
|
-
ngOnDestroy(): void;
|
|
31
|
+
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, dialog: MatDialog, dataViewOptionsProvider: ElderDataViewOptionsProvider, selectionModel: SelectionModel<any>, changeDetectorRef: ChangeDetectorRef);
|
|
52
32
|
/***************************************************************************
|
|
53
33
|
* *
|
|
54
34
|
* Public API *
|
|
@@ -65,5 +45,5 @@ export declare class SelectionModelPopupDirective implements OnInit, OnDestroy {
|
|
|
65
45
|
**************************************************************************/
|
|
66
46
|
private openSelectDialog;
|
|
67
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionModelPopupDirective, never>;
|
|
68
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionModelPopupDirective, "[elderSelectionModelPopup]",
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionModelPopupDirective, "[elderSelectionModelPopup]", ["elderSelectionModelPopup"], { "elderSelectionModelPopupTransform": "elderSelectionModelPopupTransform"; }, {}, never, never, false>;
|
|
69
49
|
}
|
|
@@ -3,16 +3,16 @@ import { IDataContext } from '../../../../common/data/data-context/data-context'
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
5
|
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
6
|
-
import { ElderSelectBase
|
|
6
|
+
import { ElderSelectBase } from '../../elder-select-base';
|
|
7
7
|
import { IElderEntityValueAccessor } from '../../../../common/forms/elder-entity-value-accessor';
|
|
8
8
|
import { NgControl } from '@angular/forms';
|
|
9
9
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
10
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
declare class EntityContext<T> {
|
|
12
13
|
readonly value: T;
|
|
13
|
-
readonly hintText: string;
|
|
14
14
|
readonly displayText: string;
|
|
15
|
-
constructor(value: T,
|
|
15
|
+
constructor(value: T, displayText: string);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* The elder-select control allows to select a single
|
|
@@ -32,7 +32,6 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
32
32
|
* *
|
|
33
33
|
**************************************************************************/
|
|
34
34
|
private readonly logger;
|
|
35
|
-
private readonly hintPropertyResolver$;
|
|
36
35
|
private _allowNull;
|
|
37
36
|
inputRef: ElementRef<HTMLInputElement>;
|
|
38
37
|
/**
|
|
@@ -61,7 +60,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
61
60
|
* Constructor *
|
|
62
61
|
* *
|
|
63
62
|
**************************************************************************/
|
|
64
|
-
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, ngControl: NgControl);
|
|
63
|
+
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl);
|
|
65
64
|
/***************************************************************************
|
|
66
65
|
* *
|
|
67
66
|
* Life Cycle *
|
|
@@ -103,8 +102,6 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
103
102
|
get entity$(): Observable<TEntity>;
|
|
104
103
|
set entityId(id: TId);
|
|
105
104
|
get entityId(): TId;
|
|
106
|
-
set hintProperty(property: string);
|
|
107
|
-
set hintPropertyResolver(resolver: TextResolverFn);
|
|
108
105
|
/***************************************************************************
|
|
109
106
|
* *
|
|
110
107
|
* Public API *
|
|
@@ -151,7 +148,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
151
148
|
*
|
|
152
149
|
*/
|
|
153
150
|
protected writeToControl(value: TValue): void;
|
|
154
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, { optional: true; self: true; }]>;
|
|
155
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId";
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, null, { optional: true; self: true; }]>;
|
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId"; }, { "entityIdChange": "entityIdChange"; "entityIdUpdated": "entityIdUpdated"; "entityChange": "entityChange"; "entityUpdated": "entityUpdated"; }, never, never, false>;
|
|
156
153
|
}
|
|
157
154
|
export {};
|
|
@@ -54,6 +54,7 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
|
|
|
54
54
|
private readonly destroy$;
|
|
55
55
|
color: ThemePalette;
|
|
56
56
|
readonly menuColor$: BehaviorSubject<ThemePalette>;
|
|
57
|
+
readonly menuIconColor$: BehaviorSubject<ThemePalette>;
|
|
57
58
|
/***************************************************************************
|
|
58
59
|
* *
|
|
59
60
|
* Constructor *
|
|
@@ -74,6 +75,8 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
|
|
|
74
75
|
**************************************************************************/
|
|
75
76
|
set menuColor(c: ThemePalette);
|
|
76
77
|
get menuColor(): ThemePalette;
|
|
78
|
+
set menuIconColor(c: ThemePalette);
|
|
79
|
+
get menuIconColor(): ThemePalette;
|
|
77
80
|
/***************************************************************************
|
|
78
81
|
* *
|
|
79
82
|
* Public API *
|
|
@@ -92,5 +95,5 @@ export declare class ElderShellComponent implements OnInit, OnDestroy {
|
|
|
92
95
|
private isContained;
|
|
93
96
|
private checkSoon;
|
|
94
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderShellComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell, ebs-shell", never, { "sideNavToggleEnabled": "sideNavToggleEnabled"; "leftSideAutoFocus": "leftSideAutoFocus"; "rightSideAutoFocus": "rightSideAutoFocus"; "color": "color"; "menuColor": "menuColor"; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, false>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElderShellComponent, "elder-shell, ebs-shell", never, { "sideNavToggleEnabled": "sideNavToggleEnabled"; "leftSideAutoFocus": "leftSideAutoFocus"; "rightSideAutoFocus": "rightSideAutoFocus"; "color": "color"; "menuColor": "menuColor"; "menuIconColor": "menuIconColor"; }, {}, ["sideContentLeft", "sideContentRight", "centerContent"], never, false>;
|
|
96
99
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elderbyte/ngx-starter",
|
|
3
|
-
"version": "14.4.0-beta.
|
|
3
|
+
"version": "14.4.0-beta.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^14.0.
|
|
6
|
-
"@angular/core": "^14.0.
|
|
7
|
-
"@angular/material": "^14.0.
|
|
5
|
+
"@angular/common": "^14.0.0",
|
|
6
|
+
"@angular/core": "^14.0.0",
|
|
7
|
+
"@angular/material": "^14.0.0",
|
|
8
8
|
"@angular/flex-layout": "^14.0.0-beta.40",
|
|
9
9
|
"@ngx-translate/core": "^14.0.0",
|
|
10
10
|
"rxjs": "^7.5.5",
|
|
@@ -9,15 +9,11 @@
|
|
|
9
9
|
$foreground: map-get($theme, foreground);
|
|
10
10
|
|
|
11
11
|
.elder-card-title {
|
|
12
|
-
|
|
13
12
|
color: mat.get-color-from-palette($accent, default, 1);
|
|
14
|
-
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.elder-card-subtitle {
|
|
18
|
-
|
|
19
16
|
color: mat.get-color-from-palette($primary, default, 1);
|
|
20
|
-
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
.elder-card {
|
|
@@ -26,9 +22,8 @@
|
|
|
26
22
|
}
|
|
27
23
|
|
|
28
24
|
.elder-card-flat {
|
|
29
|
-
border: 1px solid
|
|
25
|
+
border: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
30
26
|
}
|
|
31
|
-
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
|
|
File without changes
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../../../../theming/elder-typography-utils' as elder-typography;
|
|
4
|
+
|
|
5
|
+
@mixin typography($typography-config) {
|
|
6
|
+
$config: mat.private-typography-to-2014-config($typography-config);
|
|
7
|
+
// The unit-less line-height from the font config.
|
|
8
|
+
$line-height: mat.line-height($config, input);
|
|
9
|
+
$font-size: mat.font-size($config, input);
|
|
10
|
+
$line-height-em: elder-typography.coerce-unitless-to-em($line-height);
|
|
11
|
+
|
|
12
|
+
.elder-icon-button-small {
|
|
13
|
+
width: $line-height-em !important;
|
|
14
|
+
height: $line-height-em !important;
|
|
15
|
+
line-height: $line-height-em !important;
|
|
16
|
+
|
|
17
|
+
.mat-icon {
|
|
18
|
+
width: $line-height-em !important;
|
|
19
|
+
height: $line-height-em !important;
|
|
20
|
+
line-height: $line-height-em !important;
|
|
21
|
+
}
|
|
22
|
+
.material-icons {
|
|
23
|
+
font-size: $line-height-em !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.elder-input-prefix-icon-container {
|
|
28
|
+
height: $line-height-em !important;
|
|
29
|
+
min-width: $line-height-em !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.elder-icon-small {
|
|
33
|
+
width: $line-height-em !important;
|
|
34
|
+
height: $line-height-em !important;
|
|
35
|
+
line-height: $line-height-em !important;
|
|
36
|
+
font-size: $font-size !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@mixin _palette-styles($palette) {
|
|
42
|
+
background: mat.get-color-from-palette($palette);
|
|
43
|
+
color: mat.get-color-from-palette($palette, default-contrast);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin _form-field-overrides {
|
|
47
|
+
.mat-form-field-underline,
|
|
48
|
+
.mat-form-field-ripple,
|
|
49
|
+
.mat-focused .mat-form-field-ripple {
|
|
50
|
+
background-color: currentColor;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.mat-form-field-label,
|
|
54
|
+
.mat-focused .mat-form-field-label,
|
|
55
|
+
.elder-select-value,
|
|
56
|
+
.elder-select-icon,
|
|
57
|
+
.mat-form-field.mat-focused .elder-select-icon {
|
|
58
|
+
color: inherit!important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.mat-input-element {
|
|
62
|
+
caret-color: currentColor;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@mixin color($color-config) {
|
|
67
|
+
$foreground: map.get($color-config, foreground);
|
|
68
|
+
$background: map.get($color-config, background);
|
|
69
|
+
$primary: map.get($color-config, primary);
|
|
70
|
+
$accent: map.get($color-config, accent);
|
|
71
|
+
$warn: map.get($color-config, warn);
|
|
72
|
+
|
|
73
|
+
.elder-select-value {
|
|
74
|
+
color: mat.get-color-from-palette($foreground, text);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.elder-select-disabled .elder-select-value {
|
|
78
|
+
color: mat.get-color-from-palette($foreground, disabled-text);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.elder-select-icon {
|
|
82
|
+
color: mat.get-color-from-palette($foreground, secondary-text);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mat-toolbar {
|
|
86
|
+
background: mat.get-color-from-palette($background, app-bar);
|
|
87
|
+
color: mat.get-color-from-palette($foreground, text);
|
|
88
|
+
|
|
89
|
+
&.mat-primary {
|
|
90
|
+
@include _palette-styles($primary);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.mat-accent {
|
|
94
|
+
@include _palette-styles($accent);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.mat-warn {
|
|
98
|
+
@include _palette-styles($warn);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@include _form-field-overrides;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mat-form-field {
|
|
105
|
+
&.mat-focused {
|
|
106
|
+
&.mat-primary .elder-select-icon {
|
|
107
|
+
color: mat.get-color-from-palette($primary, text);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.mat-accent .elder-select-icon {
|
|
111
|
+
color: mat.get-color-from-palette($accent, text);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.mat-warn .elder-select-icon {
|
|
115
|
+
color: mat.get-color-from-palette($warn, text);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.mat-form-field-invalid .elder-select-base {
|
|
120
|
+
.elder-select-icon {
|
|
121
|
+
color: mat.get-color-from-palette($warn, text);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.mat-form-field-disabled .elder-select-base {
|
|
126
|
+
.elder-select-icon {
|
|
127
|
+
color: mat.get-color-from-palette($foreground, disabled-text);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|