@elderbyte/ngx-starter 13.8.1 → 13.9.2
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 +4 -4
- package/esm2020/lib/common/forms/form-field-base.component.mjs +4 -4
- package/esm2020/lib/common/forms/multi-model-base.component.mjs +4 -4
- package/esm2020/lib/common/forms/template-composite-control.mjs +4 -4
- package/esm2020/lib/common/forms/value-accessor-base.mjs +4 -4
- package/esm2020/lib/common/http/http-client-builder.service.mjs +4 -4
- package/esm2020/lib/common/http/http-client-pristine.mjs +4 -4
- package/esm2020/lib/common/http/transfer/data-transfer-factory.mjs +4 -4
- package/esm2020/lib/common/url/elder-url-fragment-params.service.mjs +4 -4
- package/esm2020/lib/components/access-denied/elder-access-denied.component.mjs +4 -4
- package/esm2020/lib/components/access-denied/elder-access-denied.module.mjs +5 -5
- package/esm2020/lib/components/auditing/audited-entity/elder-audited-entity.component.mjs +4 -4
- package/esm2020/lib/components/auditing/elder-audit.module.mjs +5 -5
- package/esm2020/lib/components/button-group/elder-button-group/elder-button-group.component.mjs +4 -4
- package/esm2020/lib/components/button-group/elder-button-group.module.mjs +5 -5
- package/esm2020/lib/components/card-organizer/card-organizer/elder-card-organizer.component.mjs +4 -4
- package/esm2020/lib/components/card-organizer/card-organizer/elder-stack-card.directive.mjs +4 -4
- 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 +5 -5
- package/esm2020/lib/components/cards/elder-card/elder-card-header/elder-card-header.component.mjs +4 -4
- package/esm2020/lib/components/cards/elder-card/elder-card.component.mjs +19 -19
- package/esm2020/lib/components/cards/elder-card/elder-card.module.mjs +5 -5
- package/esm2020/lib/components/connectivity/elder-connectivity.module.mjs +5 -5
- package/esm2020/lib/components/connectivity/elder-connectivity.service.mjs +4 -4
- package/esm2020/lib/components/connectivity/offline-indicator/elder-offline-indicator.component.mjs +4 -4
- package/esm2020/lib/components/containers/elder-containers.module.mjs +5 -5
- package/esm2020/lib/components/containers/elder-scroll-container/elder-scroll-container.component.mjs +4 -4
- package/esm2020/lib/components/csv/elder-csv-export-btn/elder-csv-export-btn.component.mjs +4 -4
- package/esm2020/lib/components/csv/elder-csv-stream-exporter-builder.service.mjs +4 -4
- package/esm2020/lib/components/csv/elder-csv.module.mjs +5 -5
- package/esm2020/lib/components/currency/elder-currency.module.mjs +5 -5
- package/esm2020/lib/components/currency/elder-currency.pipe.mjs +4 -4
- package/esm2020/lib/components/data-transfer/elder-data-transfer.module.mjs +5 -5
- package/esm2020/lib/components/data-transfer/elder-data-transfer.service.mjs +4 -4
- package/esm2020/lib/components/data-transfer/http-data-transfer/http-data-transfer.component.mjs +4 -4
- package/esm2020/lib/components/data-transfer/http-data-transfer-aggregate/http-data-transfer-aggregate.component.mjs +4 -4
- package/esm2020/lib/components/data-transfer/http-data-transfer-indicator/http-data-transfer-indicator.component.mjs +4 -4
- package/esm2020/lib/components/data-transfer/http-data-transfer-overview/http-data-transfer-overview.component.mjs +4 -4
- package/esm2020/lib/components/data-view/base/elder-data-view-base.mjs +4 -4
- package/esm2020/lib/components/data-view/base/elder-data-view-base.module.mjs +5 -5
- package/esm2020/lib/components/data-view/common/data-context-state-indicator/data-context-state-indicator.component.mjs +4 -4
- package/esm2020/lib/components/data-view/common/elder-data-common.module.mjs +5 -5
- package/esm2020/lib/components/data-view/common/elder-data-toolbar/elder-data-toolbar.component.mjs +7 -7
- package/esm2020/lib/components/data-view/common/elder-single-sort/elder-single-sort.component.mjs +4 -4
- package/esm2020/lib/components/data-view/common/selection/data-context-selection.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/common/selection/elder-selection-master-checkbox/elder-selection-master-checkbox.component.mjs +4 -4
- package/esm2020/lib/components/data-view/grid/elder-grid/elder-grid.component.mjs +11 -11
- package/esm2020/lib/components/data-view/grid/elder-grid.module.mjs +5 -5
- package/esm2020/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.component.mjs +4 -4
- package/esm2020/lib/components/data-view/simple/elder-simple-selection-view/elder-simple-selection-view.module.mjs +5 -5
- package/esm2020/lib/components/data-view/table/activation/elder-table-activation.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-number-cell.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-paginator-intl.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table/elder-table-toolbar.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table/elder-table.component.mjs +5 -5
- package/esm2020/lib/components/data-view/table/elder-table-column.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table-extension.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table-root.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table-row.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table-sort.directive.mjs +4 -4
- package/esm2020/lib/components/data-view/table/elder-table.module.mjs +5 -5
- package/esm2020/lib/components/data-view/table/model/elder-table-model.mjs +4 -4
- package/esm2020/lib/components/dialogs/confirm-dialog/elder-confirm-dialog.component.mjs +4 -4
- package/esm2020/lib/components/dialogs/elder-dialog.module.mjs +8 -8
- package/esm2020/lib/components/dialogs/elder-dialog.service.mjs +4 -4
- package/esm2020/lib/components/dialogs/question-dialog/elder-question-dialog.component.mjs +4 -4
- package/esm2020/lib/components/dialogs/selection-dialog/elder-selection-dialog/elder-selection-dialog.component.mjs +4 -4
- package/esm2020/lib/components/dialogs/selection-dialog/elder-selection-dialog.directive.mjs +4 -4
- package/esm2020/lib/components/errors/elder-error.module.mjs +5 -5
- package/esm2020/lib/components/errors/exception-detail/elder-exception-detail.component.mjs +4 -4
- package/esm2020/lib/components/expand-toggle-button/elder-expand-toggle-button.component.mjs +4 -4
- package/esm2020/lib/components/expand-toggle-button/elder-expand-toggle-button.module.mjs +5 -5
- package/esm2020/lib/components/files/blob-viewer/elder-blob-viewer.component.mjs +4 -4
- package/esm2020/lib/components/files/elder-file-drop-zone.directive.mjs +4 -4
- package/esm2020/lib/components/files/elder-file-select.directive.mjs +4 -4
- package/esm2020/lib/components/files/elder-file.module.mjs +5 -5
- package/esm2020/lib/components/files/file-select/file-select.component.mjs +4 -4
- package/esm2020/lib/components/files/file-upload/file-upload.component.mjs +4 -4
- package/esm2020/lib/components/forms/clipboard/elder-clipboard.service.mjs +4 -4
- package/esm2020/lib/components/forms/directives/base/elder-class-hostbinding-base.mjs +34 -0
- package/esm2020/lib/components/forms/directives/elder-clipboard-put.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-delayed-focus.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-form-field-dense.directive.mjs +10 -25
- package/esm2020/lib/components/forms/directives/elder-form-field-label.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-form-field-no-hint.directive.mjs +34 -0
- package/esm2020/lib/components/forms/directives/elder-form-field-no-spinner.directive.mjs +11 -32
- package/esm2020/lib/components/forms/directives/elder-forms-directives.module.mjs +24 -18
- package/esm2020/lib/components/forms/directives/elder-key-event.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-max.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-min.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-next-focusable.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-plug-parent-form.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-stop-event-propagation.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-tab-focus-trap.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-touched.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/elder-triple-state-checkbox.directive.mjs +4 -4
- package/esm2020/lib/components/forms/directives/validation/elder-multiple-of.validator.mjs +4 -4
- package/esm2020/lib/components/forms/directives/validation/elder-required-ignore-zero.validator.mjs +4 -4
- package/esm2020/lib/components/forms/elder-forms.module.mjs +5 -5
- package/esm2020/lib/components/forms/search/elder-search-context.directive.mjs +4 -4
- package/esm2020/lib/components/forms/search/elder-search-input.directive.mjs +4 -4
- package/esm2020/lib/components/forms/search/elder-search.module.mjs +5 -5
- package/esm2020/lib/components/forms/search/search-box/elder-search-box.component.mjs +4 -4
- package/esm2020/lib/components/forms/search/search-box/elder-search-panel.component.mjs +4 -4
- package/esm2020/lib/components/global-search/elder-global-search.component.mjs +4 -4
- package/esm2020/lib/components/global-search/elder-global-search.module.mjs +5 -5
- package/esm2020/lib/components/global-search/elder-global-search.service.mjs +4 -4
- package/esm2020/lib/components/graph/elder-progress-bar/elder-progress-bar.component.mjs +4 -4
- package/esm2020/lib/components/graph/elder-progress-bar/elder-progress-bar.module.mjs +5 -5
- package/esm2020/lib/components/headers/elder-header/elder-header.component.mjs +4 -4
- package/esm2020/lib/components/headers/elder-header.module.mjs +5 -5
- package/esm2020/lib/components/http-support/elder-http-client.service.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-i18n-entities.module.mjs +5 -5
- package/esm2020/lib/components/i18n/entities/elder-localized-input/elder-localized-input.component.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-input-dialog/elder-localized-input-dialog.component.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-input-dialog.service.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-input-table/elder-localized-input-table.component.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-text-column.directive.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/elder-localized-texts.directive.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/picker/i18n-pick-async.pipe.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/picker/i18n-pick.pipe.mjs +4 -4
- package/esm2020/lib/components/i18n/entities/picker/localisation-picker.service.mjs +4 -4
- package/esm2020/lib/components/i18n/language/elder-language-interceptor.mjs +4 -4
- package/esm2020/lib/components/i18n/language/elder-language.module.mjs +5 -5
- package/esm2020/lib/components/i18n/language/elder-language.service.mjs +4 -4
- package/esm2020/lib/components/i18n/language/language-switcher/elder-language-switcher.component.mjs +4 -4
- package/esm2020/lib/components/i18n/locales/elder-locales-de-ch.module.mjs +5 -5
- package/esm2020/lib/components/iframes/elder-iframe.module.mjs +5 -5
- package/esm2020/lib/components/iframes/iframe-close.directive.mjs +4 -4
- package/esm2020/lib/components/iframes/iframe-dialog/iframe-dialog.component.mjs +4 -4
- package/esm2020/lib/components/iframes/iframe-host/iframe-host.component.mjs +4 -4
- package/esm2020/lib/components/iframes/iframe-side-content/iframe-side-content.component.mjs +4 -4
- package/esm2020/lib/components/iframes/iframe.service.mjs +4 -4
- package/esm2020/lib/components/infinitescroll/elder-infinite-autocomplete.directive.mjs +4 -4
- package/esm2020/lib/components/infinitescroll/elder-infinite-scroll.directive.mjs +4 -4
- package/esm2020/lib/components/infinitescroll/elder-infinite-scroll.module.mjs +8 -8
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete/elder-autocomplete.component.mjs +4 -4
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete.directive.mjs +4 -4
- package/esm2020/lib/components/input/autocomplete/elder-autocomplete.module.mjs +5 -5
- package/esm2020/lib/components/labels/elder-labels.module.mjs +5 -5
- package/esm2020/lib/components/labels/labels-input/labels-input.component.mjs +4 -4
- package/esm2020/lib/components/measures/dimensions-input/elder-dimensions-input.component.mjs +4 -4
- package/esm2020/lib/components/measures/directives/elder-unit-select.directive.mjs +4 -4
- package/esm2020/lib/components/measures/elder-measures.module.mjs +9 -9
- package/esm2020/lib/components/measures/elder-quantity-transform.pipe.mjs +4 -4
- package/esm2020/lib/components/measures/elder-quantity.pipe.mjs +4 -4
- package/esm2020/lib/components/measures/elder-unit.service.mjs +4 -4
- package/esm2020/lib/components/measures/quantity-input/elder-quantity-input.component.mjs +4 -4
- package/esm2020/lib/components/measures/util/elder-quantity.service.mjs +4 -4
- package/esm2020/lib/components/multi-autocomplete/elder-multi-auto-complete.module.mjs +5 -5
- package/esm2020/lib/components/multi-autocomplete/elder-multi-autocomplete.component.mjs +4 -4
- package/esm2020/lib/components/navigation/bread-crumbs/bread-crumbs/elder-bread-crumbs.component.mjs +4 -4
- package/esm2020/lib/components/navigation/bread-crumbs/elder-bread-crumbs.module.mjs +5 -5
- package/esm2020/lib/components/navigation/nav/elder-nav.module.mjs +5 -5
- package/esm2020/lib/components/navigation/nav/nav-group/elder-nav-group.component.mjs +4 -4
- package/esm2020/lib/components/navigation/nav/nav-link/elder-nav-link.component.mjs +4 -4
- package/esm2020/lib/components/navigation/nav/nav-list/elder-nav-list.component.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar-column.directive.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar.module.mjs +5 -5
- package/esm2020/lib/components/navigation/toolbar/elder-toolbar.service.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/toolbar/elder-toolbar.component.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.component.mjs +4 -4
- package/esm2020/lib/components/navigation/toolbar/toolbar-title/elder-toolbar-title.service.mjs +4 -4
- package/esm2020/lib/components/overlays/elder-overlay-origin.directive.mjs +4 -4
- package/esm2020/lib/components/overlays/elder-overlay-trigger.directive.mjs +4 -4
- package/esm2020/lib/components/overlays/elder-overlay.component.mjs +4 -4
- package/esm2020/lib/components/overlays/elder-overlay.module.mjs +5 -5
- package/esm2020/lib/components/panels/card-panel/elder-card-panel.component.mjs +4 -4
- package/esm2020/lib/components/panels/elder-panel.module.mjs +5 -5
- package/esm2020/lib/components/panels/flat/elder-panel.component.mjs +4 -4
- package/esm2020/lib/components/select/auto/elder-auto-select-first.directive.mjs +4 -4
- package/esm2020/lib/components/select/elder-select/elder-select.component.mjs +28 -17
- package/esm2020/lib/components/select/elder-select-base.mjs +20 -6
- package/esm2020/lib/components/select/elder-select-chip.directive.mjs +18 -4
- package/esm2020/lib/components/select/elder-select-on-tab.directive.mjs +4 -4
- package/esm2020/lib/components/select/elder-select-value.directive.mjs +4 -4
- package/esm2020/lib/components/select/elder-select.module.mjs +15 -10
- package/esm2020/lib/components/select/multi/elder-multi-select-base.mjs +30 -5
- package/esm2020/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +48 -32
- package/esm2020/lib/components/select/popup/selection-model-popup.directive.mjs +7 -5
- package/esm2020/lib/components/select/popup/templated-selection-dialog/templated-selection-dialog.component.mjs +4 -4
- package/esm2020/lib/components/select-chip-list/chip-list-select/elder-chip-list-select.component.mjs +4 -4
- package/esm2020/lib/components/select-chip-list/elder-chip-list-select.module.mjs +5 -5
- package/esm2020/lib/components/select-list/elder-select-list.module.mjs +5 -5
- package/esm2020/lib/components/select-list/select-list/elder-select-list.component.mjs +4 -4
- package/esm2020/lib/components/select-list/select-list-item/elder-select-list-item.component.mjs +4 -4
- package/esm2020/lib/components/shell/drawers/elder-route-outlet-drawer.service.mjs +4 -4
- package/esm2020/lib/components/shell/drawers/elder-router-outlet.service.mjs +4 -4
- package/esm2020/lib/components/shell/elder-shell-slot.directive.mjs +4 -4
- package/esm2020/lib/components/shell/elder-shell.module.mjs +5 -5
- package/esm2020/lib/components/shell/elder-shell.service.mjs +4 -4
- package/esm2020/lib/components/shell/header/elder-app-header/elder-app-header.component.mjs +4 -4
- package/esm2020/lib/components/shell/shell/elder-shell.component.mjs +13 -13
- package/esm2020/lib/components/shell/shell-navigation-toggle/elder-shell-navigation-toggle.component.mjs +4 -4
- package/esm2020/lib/components/tabs/elder-tab/elder-tab.directive.mjs +4 -4
- package/esm2020/lib/components/tabs/elder-tab-group-routing/elder-tab-group-routing.directive.mjs +4 -4
- package/esm2020/lib/components/tabs/elder-tab.module.mjs +5 -5
- package/esm2020/lib/components/time/date-adapters/custom-date-adapter.mjs +4 -4
- package/esm2020/lib/components/time/duration/elder-duration-input/elder-duration-input.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-date-switcher/elder-date-switcher.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-date-time-input/elder-date-time-input.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-interval-input/elder-interval-input.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-local-date-input/elder-local-date-input.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-local-time-input/elder-local-time-input.component.mjs +4 -4
- package/esm2020/lib/components/time/elder-time.module.mjs +9 -9
- package/esm2020/lib/components/time/period/elder-period-input/elder-period-input.component.mjs +4 -4
- package/esm2020/lib/components/toasts/elder-toast.module.mjs +5 -5
- package/esm2020/lib/components/toasts/elder-toast.service.mjs +10 -10
- package/esm2020/lib/components/toasts/standard-toast/standard-toast.component.mjs +4 -4
- package/esm2020/lib/components/url-fragment/elder-url-fragment.module.mjs +5 -5
- package/esm2020/lib/components/url-fragment/url-fragment-switcher/elder-url-fragment-switcher.component.mjs +4 -4
- package/esm2020/lib/components/viewers/elder-svg-viewer/elder-svg-viewer.component.mjs +4 -4
- package/esm2020/lib/components/viewers/elder-viewers.module.mjs +5 -5
- package/esm2020/lib/features/event-source/elder-event-source.service.mjs +4 -4
- package/esm2020/lib/features/kafent/access-token-provider.mjs +4 -4
- package/esm2020/lib/features/kafent/kafent-config.mjs +4 -4
- package/esm2020/lib/features/kafent/kafent-event-stream.mjs +4 -4
- package/esm2020/lib/features/kafent/kafent-event.service.mjs +4 -4
- package/esm2020/lib/features/kafent/kafent-live-event-request.mjs +1 -1
- package/esm2020/lib/features/kafent/kafent.module.mjs +5 -5
- package/esm2020/lib/features/kafent/sse/kafent-event-stream-sse.service.mjs +4 -4
- package/esm2020/lib/pipes/bytes.pipe.mjs +4 -4
- package/esm2020/lib/pipes/elder-pipes.module.mjs +12 -10
- package/esm2020/lib/pipes/elder-repeat.pipe.mjs +4 -4
- package/esm2020/lib/pipes/elder-round.pipe.mjs +4 -4
- package/esm2020/lib/pipes/elder-safe-url.pipe.mjs +4 -4
- package/esm2020/lib/pipes/elder-trim.pipe.mjs +40 -0
- package/esm2020/lib/pipes/iso-duration.pipe.mjs +4 -4
- package/esm2020/lib/pipes/iso-interval-parse.pipe.mjs +4 -4
- package/esm2020/lib/pipes/iso-interval.pipe.mjs +4 -4
- package/esm2020/lib/pipes/time-ago.pipe.mjs +4 -4
- package/esm2020/lib/pipes/time-duration.pipe.mjs +4 -4
- package/esm2020/lib/pipes/weight.pipe.mjs +4 -4
- package/fesm2015/elderbyte-ngx-starter.mjs +1039 -888
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +1035 -888
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/components/forms/directives/base/elder-class-hostbinding-base.d.ts +32 -0
- package/lib/components/forms/directives/elder-form-field-dense.directive.d.ts +3 -17
- package/lib/components/forms/directives/elder-form-field-no-hint.directive.d.ts +19 -0
- package/lib/components/forms/directives/elder-form-field-no-spinner.directive.d.ts +3 -17
- package/lib/components/forms/directives/elder-forms-directives.module.d.ts +5 -3
- package/lib/components/select/elder-select/elder-select.component.d.ts +5 -2
- package/lib/components/select/elder-select-base.d.ts +12 -2
- package/lib/components/select/elder-select-chip.directive.d.ts +7 -0
- package/lib/components/select/elder-select.module.d.ts +3 -2
- package/lib/components/select/multi/elder-multi-select-base.d.ts +9 -0
- package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts +14 -14
- package/lib/components/select/popup/selection-model-popup.directive.d.ts +2 -1
- package/lib/pipes/elder-pipes.module.d.ts +4 -2
- package/lib/pipes/elder-trim.pipe.d.ts +17 -0
- package/package.json +1 -1
- package/src/lib/components/select/elder-select/elder-select.component.scss +16 -0
- package/src/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.scss +24 -0
- package/theming/_elder-common.scss +13 -8
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare abstract class ElderClassHostBindingBase {
|
|
3
|
+
/***************************************************************************
|
|
4
|
+
* *
|
|
5
|
+
* Fields *
|
|
6
|
+
* *
|
|
7
|
+
**************************************************************************/
|
|
8
|
+
private readonly classToApplyWhenEnabled;
|
|
9
|
+
private readonly classToApplyWhenDisabled;
|
|
10
|
+
private _enabled;
|
|
11
|
+
/***************************************************************************
|
|
12
|
+
* *
|
|
13
|
+
* Constructor *
|
|
14
|
+
* *
|
|
15
|
+
**************************************************************************/
|
|
16
|
+
constructor(classToApplyWhenEnabled: string, classToApplyWhenDisabled?: string);
|
|
17
|
+
/***************************************************************************
|
|
18
|
+
* *
|
|
19
|
+
* Host Bindings *
|
|
20
|
+
* *
|
|
21
|
+
**************************************************************************/
|
|
22
|
+
elementClass: string;
|
|
23
|
+
/***************************************************************************
|
|
24
|
+
* *
|
|
25
|
+
* Properties *
|
|
26
|
+
* *
|
|
27
|
+
**************************************************************************/
|
|
28
|
+
set enabled(enabled: boolean);
|
|
29
|
+
get enabled(): boolean;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderClassHostBindingBase, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderClassHostBindingBase, never, never, {}, {}, never>;
|
|
32
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElderClassHostBindingBase } from './base/elder-class-hostbinding-base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Once declared on a MatFormField tag, the css class 'elder-form-field-dense' will be added
|
|
@@ -11,23 +11,9 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* </mat-form-field>
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare class ElderFormFieldDenseDirective {
|
|
15
|
-
|
|
16
|
-
/***************************************************************************
|
|
17
|
-
* *
|
|
18
|
-
* Fields *
|
|
19
|
-
* *
|
|
20
|
-
**************************************************************************/
|
|
21
|
-
private _enabled;
|
|
14
|
+
export declare class ElderFormFieldDenseDirective extends ElderClassHostBindingBase {
|
|
15
|
+
constructor();
|
|
22
16
|
set elderDense(enabled: boolean | string);
|
|
23
|
-
set enabled(enabled: boolean);
|
|
24
|
-
get enabled(): boolean;
|
|
25
|
-
/***************************************************************************
|
|
26
|
-
* *
|
|
27
|
-
* Constructor *
|
|
28
|
-
* *
|
|
29
|
-
**************************************************************************/
|
|
30
|
-
constructor(_matFormField: MatFormField);
|
|
31
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderFormFieldDenseDirective, never>;
|
|
32
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderFormFieldDenseDirective, "mat-form-field[elderDense]", never, { "elderDense": "elderDense"; }, {}, never>;
|
|
33
19
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElderClassHostBindingBase } from './base/elder-class-hostbinding-base';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Once declared on a MatFormField tag, the css class 'elder-no-hint' will be added
|
|
5
|
+
* and dense styling for the hint area will be applied.
|
|
6
|
+
*
|
|
7
|
+
* Example Usage:
|
|
8
|
+
*
|
|
9
|
+
* <mat-form-field elderNoHint>
|
|
10
|
+
* <input matInput placeholder="Some Input" value="Some Value">
|
|
11
|
+
* </mat-form-field>
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare class ElderFormFieldNoHintDirective extends ElderClassHostBindingBase {
|
|
15
|
+
constructor();
|
|
16
|
+
set elderNoHint(enabled: boolean | string);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderFormFieldNoHintDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderFormFieldNoHintDirective, "mat-form-field[elderNoHint]", never, { "elderNoHint": "elderNoHint"; }, {}, never>;
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElderClassHostBindingBase } from './base/elder-class-hostbinding-base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Once declared on a MatFormField tag which includes an input, the css class 'elder-input-no-spinner' will be added
|
|
@@ -11,23 +11,9 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* </mat-form-field>
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare class ElderFormFieldNoSpinnerDirective {
|
|
15
|
-
|
|
16
|
-
/***************************************************************************
|
|
17
|
-
* *
|
|
18
|
-
* Fields *
|
|
19
|
-
* *
|
|
20
|
-
**************************************************************************/
|
|
21
|
-
private _enabled;
|
|
14
|
+
export declare class ElderFormFieldNoSpinnerDirective extends ElderClassHostBindingBase {
|
|
15
|
+
constructor();
|
|
22
16
|
set elderNoSpinner(enabled: boolean | string);
|
|
23
|
-
set enabled(enabled: boolean);
|
|
24
|
-
get enabled(): boolean;
|
|
25
|
-
/***************************************************************************
|
|
26
|
-
* *
|
|
27
|
-
* Constructor *
|
|
28
|
-
* *
|
|
29
|
-
**************************************************************************/
|
|
30
|
-
constructor(_matInput: MatInput);
|
|
31
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderFormFieldNoSpinnerDirective, never>;
|
|
32
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderFormFieldNoSpinnerDirective, "input[elderNoSpinner]", never, { "elderNoSpinner": "elderNoSpinner"; }, {}, never>;
|
|
33
19
|
}
|
|
@@ -18,8 +18,9 @@ import * as i13 from "./validation/elder-multiple-of.validator";
|
|
|
18
18
|
import * as i14 from "./elder-next-focusable.directive";
|
|
19
19
|
import * as i15 from "./elder-triple-state-checkbox.directive";
|
|
20
20
|
import * as i16 from "./elder-tab-focus-trap.directive";
|
|
21
|
-
import * as i17 from "
|
|
22
|
-
import * as i18 from "@angular/
|
|
21
|
+
import * as i17 from "./elder-form-field-no-hint.directive";
|
|
22
|
+
import * as i18 from "@angular/common";
|
|
23
|
+
import * as i19 from "@angular/material/form-field";
|
|
23
24
|
export { ElderDelayedFocusDirective } from './elder-delayed-focus.directive';
|
|
24
25
|
export { ElderTouchedDirective } from './elder-touched.directive';
|
|
25
26
|
export { ElderPlugParentFormDirective } from './elder-plug-parent-form.directive';
|
|
@@ -30,6 +31,7 @@ export * from './elder-max.directive';
|
|
|
30
31
|
export * from './elder-key-event.directive';
|
|
31
32
|
export * from './elder-clipboard-put.directive';
|
|
32
33
|
export * from './elder-form-field-dense.directive';
|
|
34
|
+
export * from './elder-form-field-no-hint.directive';
|
|
33
35
|
export * from './elder-form-field-no-spinner.directive';
|
|
34
36
|
export * from './validation/elder-required-ignore-zero.validator';
|
|
35
37
|
export * from './validation/elder-multiple-of.validator';
|
|
@@ -59,6 +61,6 @@ export declare class ElderStopEventPropagationDirectiveLegacy extends ElderStopE
|
|
|
59
61
|
}
|
|
60
62
|
export declare class ElderFormsDirectivesModule {
|
|
61
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderFormsDirectivesModule, never>;
|
|
62
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderFormsDirectivesModule, [typeof i1.ElderDelayedFocusDirective, typeof i2.ElderTouchedDirective, typeof ElderTouchedDirectiveLegacy, typeof i3.ElderPlugParentFormDirective, typeof ElderPlugParentFormDirectiveLegacy, typeof i4.ElderStopEventPropagationDirective, typeof ElderStopEventPropagationDirectiveLegacy, typeof i5.ElderMinDirective, typeof i6.ElderMaxDirective, typeof i7.ElderFormFieldLabelDirective, typeof i8.ElderKeyEventDirective, typeof i9.ElderClipboardPutDirective, typeof i10.ElderFormFieldDenseDirective, typeof i11.ElderFormFieldNoSpinnerDirective, typeof i12.ElderRequiredIgnoreZeroValidator, typeof i13.ElderMultipleOfValidator, typeof i14.ElderNextFocusableDirective, typeof i15.ElderTripleStateCheckboxDirective, typeof i16.ElderTabFocusTrapDirective], [typeof
|
|
64
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderFormsDirectivesModule, [typeof i1.ElderDelayedFocusDirective, typeof i2.ElderTouchedDirective, typeof ElderTouchedDirectiveLegacy, typeof i3.ElderPlugParentFormDirective, typeof ElderPlugParentFormDirectiveLegacy, typeof i4.ElderStopEventPropagationDirective, typeof ElderStopEventPropagationDirectiveLegacy, typeof i5.ElderMinDirective, typeof i6.ElderMaxDirective, typeof i7.ElderFormFieldLabelDirective, typeof i8.ElderKeyEventDirective, typeof i9.ElderClipboardPutDirective, typeof i10.ElderFormFieldDenseDirective, typeof i11.ElderFormFieldNoSpinnerDirective, typeof i12.ElderRequiredIgnoreZeroValidator, typeof i13.ElderMultipleOfValidator, typeof i14.ElderNextFocusableDirective, typeof i15.ElderTripleStateCheckboxDirective, typeof i16.ElderTabFocusTrapDirective, typeof i17.ElderFormFieldNoHintDirective], [typeof i18.CommonModule, typeof i19.MatFormFieldModule], [typeof i1.ElderDelayedFocusDirective, typeof i2.ElderTouchedDirective, typeof ElderTouchedDirectiveLegacy, typeof i3.ElderPlugParentFormDirective, typeof ElderPlugParentFormDirectiveLegacy, typeof i4.ElderStopEventPropagationDirective, typeof ElderStopEventPropagationDirectiveLegacy, typeof i5.ElderMinDirective, typeof i6.ElderMaxDirective, typeof i7.ElderFormFieldLabelDirective, typeof i8.ElderKeyEventDirective, typeof i9.ElderClipboardPutDirective, typeof i10.ElderFormFieldDenseDirective, typeof i11.ElderFormFieldNoSpinnerDirective, typeof i12.ElderRequiredIgnoreZeroValidator, typeof i13.ElderMultipleOfValidator, typeof i14.ElderNextFocusableDirective, typeof i15.ElderTripleStateCheckboxDirective, typeof i16.ElderTabFocusTrapDirective, typeof i17.ElderFormFieldNoHintDirective]>;
|
|
63
65
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElderFormsDirectivesModule>;
|
|
64
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IDataContext } from '../../../common/data/data-context/data-context';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
@@ -30,6 +30,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
30
30
|
private readonly logger;
|
|
31
31
|
private readonly hintPropertyResolver$;
|
|
32
32
|
private _allowNull;
|
|
33
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
33
34
|
/**
|
|
34
35
|
* String to display for the 'nothing' / null value.
|
|
35
36
|
*/
|
|
@@ -104,9 +105,11 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
104
105
|
onInputClicked(autoTrigger: MatAutocompleteTrigger): void;
|
|
105
106
|
onOptionSelected(selectedValue: TEntity): void;
|
|
106
107
|
openSelectionPopup(event: Event): void;
|
|
107
|
-
clear(event
|
|
108
|
+
clear(event?: Event): void;
|
|
108
109
|
forceReloadFirst(): void;
|
|
109
110
|
updateValueByEntity(entity: TEntity): void;
|
|
111
|
+
focus(options?: FocusOptions): void;
|
|
112
|
+
blur(): void;
|
|
110
113
|
/***************************************************************************
|
|
111
114
|
* *
|
|
112
115
|
* Abstract Implementation *
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, NgZone, TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, InjectionToken, NgZone, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FormFieldBaseComponent } from '../../common/forms/form-field-base.component';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { IDataContext } from '../../common/data/data-context/data-context';
|
|
@@ -59,6 +59,8 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
|
|
|
59
59
|
pageSize: number;
|
|
60
60
|
queryFilter: string;
|
|
61
61
|
sorts: Sort[];
|
|
62
|
+
dense: boolean | string;
|
|
63
|
+
noHint: boolean | string;
|
|
62
64
|
/**
|
|
63
65
|
* The option template to customize the ui look.
|
|
64
66
|
*/
|
|
@@ -67,6 +69,11 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
|
|
|
67
69
|
selectionPopup: SelectionModelPopupDirective;
|
|
68
70
|
isOptionDisabledFn: (option: TEntity) => boolean;
|
|
69
71
|
isOptionHiddenFn: (option: TEntity) => boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Emits an event when the user has clicked on the current
|
|
74
|
+
* selected entity.
|
|
75
|
+
*/
|
|
76
|
+
readonly currentClicked: EventEmitter<TEntity>;
|
|
70
77
|
readonly state$: BehaviorSubject<ElderSelectComponentState>;
|
|
71
78
|
readonly mergedState$: Observable<ElderSelectComponentState>;
|
|
72
79
|
/***************************************************************************
|
|
@@ -100,6 +107,7 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
|
|
|
100
107
|
* Public API *
|
|
101
108
|
* *
|
|
102
109
|
**************************************************************************/
|
|
110
|
+
onCurrentClicked(entity: TEntity): void;
|
|
103
111
|
updateFilter(updatedFilter?: Filter): void;
|
|
104
112
|
updateFilters(updatedFilters?: Filter[]): void;
|
|
105
113
|
replaceFilters(newFilters?: Filter[]): void;
|
|
@@ -114,6 +122,8 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
|
|
|
114
122
|
* Occurs when the suggestions data-context has changed
|
|
115
123
|
*/
|
|
116
124
|
protected abstract onSuggestionsDcChanged(data: IDataContext<TEntity>): void;
|
|
125
|
+
abstract focus(options?: FocusOptions): void;
|
|
126
|
+
abstract blur(): void;
|
|
117
127
|
/***************************************************************************
|
|
118
128
|
* *
|
|
119
129
|
* Internal API *
|
|
@@ -128,5 +138,5 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Form
|
|
|
128
138
|
protected autoCleanUp(): void;
|
|
129
139
|
protected propertyStringValue(value: TEntity, property: string): string | null;
|
|
130
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectBase<any, any, any>, never>;
|
|
131
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSelectBase<any, any, any>, never, never, { "cleanUp": "cleanUp"; "pageSize": "pageSize"; "queryFilter": "queryFilter"; "sorts": "sorts"; "isOptionDisabledFn": "isOptionDisabledFn"; "isOptionHiddenFn": "isOptionHiddenFn"; "valueAsId": "valueAsId"; "displayProperty": "displayProperty"; "displayPropertyResolver": "displayPropertyResolver"; "filters": "filters"; "dataSource": "dataSource"; "data": "data"; "valueTemplate": "valueTemplate"; }, {}, ["valueTemplateQuery", "selectionPopup"]>;
|
|
141
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSelectBase<any, any, any>, never, never, { "cleanUp": "cleanUp"; "pageSize": "pageSize"; "queryFilter": "queryFilter"; "sorts": "sorts"; "dense": "dense"; "noHint": "noHint"; "isOptionDisabledFn": "isOptionDisabledFn"; "isOptionHiddenFn": "isOptionHiddenFn"; "valueAsId": "valueAsId"; "displayProperty": "displayProperty"; "displayPropertyResolver": "displayPropertyResolver"; "filters": "filters"; "dataSource": "dataSource"; "data": "data"; "valueTemplate": "valueTemplate"; }, { "currentClicked": "currentClicked"; }, ["valueTemplateQuery", "selectionPopup"]>;
|
|
132
142
|
}
|
|
@@ -7,3 +7,10 @@ export declare class ElderSelectChipDirective {
|
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectChipDirective, never>;
|
|
8
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSelectChipDirective, "[elderElderSelectChip]", never, {}, {}, never>;
|
|
9
9
|
}
|
|
10
|
+
export declare class ElderSelectChipAvatarDirective {
|
|
11
|
+
templateRef: TemplateRef<any>;
|
|
12
|
+
viewContainer: ViewContainerRef;
|
|
13
|
+
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectChipAvatarDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ElderSelectChipAvatarDirective, "[elderElderSelectChipAvatar]", never, {}, {}, never>;
|
|
16
|
+
}
|
|
@@ -26,8 +26,9 @@ import * as i24 from "../data-view/table/elder-table.module";
|
|
|
26
26
|
import * as i25 from "../infinitescroll/elder-infinite-scroll.module";
|
|
27
27
|
import * as i26 from "../input/autocomplete/elder-autocomplete.module";
|
|
28
28
|
import * as i27 from "@angular/material/chips";
|
|
29
|
+
import * as i28 from "../../pipes/elder-pipes.module";
|
|
29
30
|
export { ElderSelectValueDirective } from './elder-select-value.directive';
|
|
30
|
-
export { ElderSelectChipDirective } from './elder-select-chip.directive';
|
|
31
|
+
export { ElderSelectChipDirective, ElderSelectChipAvatarDirective } from './elder-select-chip.directive';
|
|
31
32
|
export { ElderSelectOnTabDirective } from './elder-select-on-tab.directive';
|
|
32
33
|
export { ElderSelectComponent } from './elder-select/elder-select.component';
|
|
33
34
|
export { TemplatedSelectionDialogComponent, ISelectionModelDialogOptions } from './popup/templated-selection-dialog/templated-selection-dialog.component';
|
|
@@ -37,6 +38,6 @@ export { ElderMultiSelectChipsComponent } from './multi/elder-multi-select-chips
|
|
|
37
38
|
export { ElderAutoSelectFirstDirective } from './auto/elder-auto-select-first.directive';
|
|
38
39
|
export declare class ElderSelectModule {
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectModule, never>;
|
|
40
|
-
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 i8.ElderAutoSelectFirstDirective], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatFormFieldModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatDialogModule, typeof i15.MatButtonModule, typeof i16.MatInputModule, typeof i17.MatAutocompleteModule, typeof i18.MatToolbarModule, typeof i19.MatProgressBarModule, typeof i20.MatProgressSpinnerModule, typeof i21.FlexModule, typeof i22.TranslateModule, typeof i23.ElderFormsDirectivesModule, typeof i24.ElderTableModule, typeof i25.ElderInfiniteScrollModule, typeof i26.ElderAutocompleteModule, typeof i27.MatChipsModule], [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i8.ElderAutoSelectFirstDirective]>;
|
|
41
|
+
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.CommonModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatFormFieldModule, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.MatDialogModule, typeof i15.MatButtonModule, typeof i16.MatInputModule, typeof i17.MatAutocompleteModule, typeof i18.MatToolbarModule, typeof i19.MatProgressBarModule, typeof i20.MatProgressSpinnerModule, typeof i21.FlexModule, typeof i22.TranslateModule, typeof i23.ElderFormsDirectivesModule, typeof i24.ElderTableModule, typeof i25.ElderInfiniteScrollModule, typeof i26.ElderAutocompleteModule, typeof i27.MatChipsModule, typeof i28.ElderPipesModule], [typeof i1.ElderSelectComponent, typeof i2.ElderSelectValueDirective, typeof i3.TemplatedSelectionDialogComponent, typeof i4.SelectionModelPopupDirective, typeof i6.ElderMultiSelectChipsComponent, typeof i7.ElderSelectChipDirective, typeof i7.ElderSelectChipAvatarDirective, typeof i8.ElderAutoSelectFirstDirective]>;
|
|
41
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElderSelectModule>;
|
|
42
43
|
}
|
|
@@ -53,6 +53,15 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
53
53
|
get entities(): TEntity[];
|
|
54
54
|
set entityIds(ids: TId[]);
|
|
55
55
|
get entityIds(): TId[];
|
|
56
|
+
/***************************************************************************
|
|
57
|
+
* *
|
|
58
|
+
* Public API *
|
|
59
|
+
* *
|
|
60
|
+
**************************************************************************/
|
|
61
|
+
appendEntities(newEntities: TEntity[]): void;
|
|
62
|
+
appendEntity(newEntity: any): void;
|
|
63
|
+
removeEntity(toRemove: TEntity): void;
|
|
64
|
+
openSelectionPopup(event: Event): void;
|
|
56
65
|
/***************************************************************************
|
|
57
66
|
* *
|
|
58
67
|
* Internal Methods *
|
package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts
CHANGED
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgZone, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ElderMultiSelectBase } from '../elder-multi-select-base';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core/common-behaviors/color';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
declare class
|
|
6
|
+
declare class ChipModel<T> {
|
|
7
7
|
readonly value: T;
|
|
8
8
|
readonly displayText: string;
|
|
9
9
|
readonly color: ThemePalette;
|
|
10
10
|
readonly removeable: boolean;
|
|
11
11
|
constructor(value: T, displayText: string, color: ThemePalette, removeable: boolean);
|
|
12
12
|
}
|
|
13
|
-
export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TValue = any> extends ElderMultiSelectBase<TId, TEntity, TValue>
|
|
13
|
+
export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TValue = any> extends ElderMultiSelectBase<TId, TEntity, TValue> {
|
|
14
14
|
/***************************************************************************
|
|
15
15
|
* *
|
|
16
16
|
* Fields *
|
|
17
17
|
* *
|
|
18
18
|
**************************************************************************/
|
|
19
19
|
private readonly log;
|
|
20
|
-
readonly selectChips$: Observable<
|
|
20
|
+
readonly selectChips$: Observable<ChipModel<TEntity>[]>;
|
|
21
21
|
private readonly chipColorResolver$;
|
|
22
22
|
selectable: boolean;
|
|
23
23
|
allowRemove: boolean;
|
|
24
|
+
chipColorEnabled: boolean;
|
|
24
25
|
private inputControl;
|
|
25
26
|
chipTemplateQuery: TemplateRef<any>;
|
|
26
27
|
private _chipTemplate;
|
|
28
|
+
chipAvatarTemplateQuery: TemplateRef<any>;
|
|
29
|
+
private _chipAvatarTemplate;
|
|
27
30
|
/***************************************************************************
|
|
28
31
|
* *
|
|
29
32
|
* Constructor *
|
|
30
33
|
* *
|
|
31
34
|
**************************************************************************/
|
|
32
35
|
constructor(zone: NgZone);
|
|
33
|
-
/***************************************************************************
|
|
34
|
-
* *
|
|
35
|
-
* Life Cycle *
|
|
36
|
-
* *
|
|
37
|
-
**************************************************************************/
|
|
38
|
-
ngOnInit(): void;
|
|
39
36
|
/***************************************************************************
|
|
40
37
|
* *
|
|
41
38
|
* Properties *
|
|
@@ -43,6 +40,8 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
43
40
|
**************************************************************************/
|
|
44
41
|
set chipTemplate(template: TemplateRef<any>);
|
|
45
42
|
get chipTemplate(): TemplateRef<any>;
|
|
43
|
+
set chipAvatarTemplate(template: TemplateRef<any>);
|
|
44
|
+
get chipAvatarTemplate(): TemplateRef<any>;
|
|
46
45
|
/**
|
|
47
46
|
* A function which returns the color of a given label object.
|
|
48
47
|
*/
|
|
@@ -55,9 +54,10 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
55
54
|
* *
|
|
56
55
|
**************************************************************************/
|
|
57
56
|
onOptionSelected(selectedValue: TEntity): void;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
resolveChipValue(e1: TEntity): any;
|
|
58
|
+
get compareWithFn(): (e1: TEntity, e2: TEntity) => boolean;
|
|
59
|
+
focus(options?: FocusOptions): void;
|
|
60
|
+
blur(): void;
|
|
61
61
|
/***************************************************************************
|
|
62
62
|
* *
|
|
63
63
|
* Private methods *
|
|
@@ -66,6 +66,6 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
66
66
|
private isAlreadyPresent;
|
|
67
67
|
private resetInput;
|
|
68
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElderMultiSelectChipsComponent<any, any, any>, "elder-multi-select-chips", never, { "allowRemove": "allowRemove"; "chipTemplate": "chipTemplate"; "chipColorResolver": "chipColorResolver"; }, {}, ["chipTemplateQuery"], never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElderMultiSelectChipsComponent<any, any, any>, "elder-multi-select-chips", never, { "allowRemove": "allowRemove"; "chipColorEnabled": "chipColorEnabled"; "chipTemplate": "chipTemplate"; "chipColorResolver": "chipColorResolver"; }, {}, ["chipTemplateQuery", "chipAvatarTemplateQuery"], never>;
|
|
70
70
|
}
|
|
71
71
|
export {};
|
|
@@ -11,6 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export declare class ElderDataViewSelectionMode {
|
|
12
12
|
sorts: Sort[];
|
|
13
13
|
filters: Filter[];
|
|
14
|
+
multi: boolean;
|
|
14
15
|
constructor();
|
|
15
16
|
}
|
|
16
17
|
export declare function createSelectionModel(): SelectionModel<any>;
|
|
@@ -54,7 +55,7 @@ export declare class SelectionModelPopupDirective implements OnInit, OnDestroy {
|
|
|
54
55
|
/**
|
|
55
56
|
* Let the user choose some entities and return the selection.
|
|
56
57
|
*/
|
|
57
|
-
choose(filters?: Filter[], sorts?: Sort[]): Observable<any[]>;
|
|
58
|
+
choose(filters?: Filter[], sorts?: Sort[], multi?: boolean): Observable<any[]>;
|
|
58
59
|
/***************************************************************************
|
|
59
60
|
* *
|
|
60
61
|
* Private methods *
|
|
@@ -11,7 +11,8 @@ import * as i7 from "./iso-duration.pipe";
|
|
|
11
11
|
import * as i8 from "./elder-round.pipe";
|
|
12
12
|
import * as i9 from "./iso-interval.pipe";
|
|
13
13
|
import * as i10 from "./iso-interval-parse.pipe";
|
|
14
|
-
import * as i11 from "
|
|
14
|
+
import * as i11 from "./elder-trim.pipe";
|
|
15
|
+
import * as i12 from "@angular/common";
|
|
15
16
|
export { BytesPipe } from './bytes.pipe';
|
|
16
17
|
export { TimeAgoPipe } from './time-ago.pipe';
|
|
17
18
|
export { WeightPipe } from './weight.pipe';
|
|
@@ -22,6 +23,7 @@ export { IsoDurationPipe } from './iso-duration.pipe';
|
|
|
22
23
|
export { IsoIntervalPipe } from './iso-interval.pipe';
|
|
23
24
|
export { IsoIntervalParsePipe } from './iso-interval-parse.pipe';
|
|
24
25
|
export { ElderRoundPipe } from './elder-round.pipe';
|
|
26
|
+
export { ElderTrimPipe } from './elder-trim.pipe';
|
|
25
27
|
/**
|
|
26
28
|
* @deprecated Please switch to ElderRepeatPipe
|
|
27
29
|
*/
|
|
@@ -31,6 +33,6 @@ export declare class ElderRepeatPipeLegacy extends ElderRepeatPipe implements Pi
|
|
|
31
33
|
}
|
|
32
34
|
export declare class ElderPipesModule {
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderPipesModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderPipesModule, [typeof i1.BytesPipe, typeof i2.TimeAgoPipe, typeof i3.TimeDurationPipe, typeof i4.WeightPipe, typeof i5.ElderRepeatPipe, typeof i6.ElderSafeUrlPipe, typeof ElderRepeatPipeLegacy, typeof i7.IsoDurationPipe, typeof i8.ElderRoundPipe, typeof i9.IsoIntervalPipe, typeof i10.IsoIntervalParsePipe], [typeof
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElderPipesModule, [typeof i1.BytesPipe, typeof i2.TimeAgoPipe, typeof i3.TimeDurationPipe, typeof i4.WeightPipe, typeof i5.ElderRepeatPipe, typeof i6.ElderSafeUrlPipe, typeof ElderRepeatPipeLegacy, typeof i7.IsoDurationPipe, typeof i8.ElderRoundPipe, typeof i9.IsoIntervalPipe, typeof i10.IsoIntervalParsePipe, typeof i11.ElderTrimPipe], [typeof i12.CommonModule], [typeof i1.BytesPipe, typeof i2.TimeAgoPipe, typeof i3.TimeDurationPipe, typeof i4.WeightPipe, typeof i5.ElderRepeatPipe, typeof i6.ElderSafeUrlPipe, typeof ElderRepeatPipeLegacy, typeof i7.IsoDurationPipe, typeof i8.ElderRoundPipe, typeof i9.IsoIntervalPipe, typeof i10.IsoIntervalParsePipe, typeof i11.ElderTrimPipe]>;
|
|
35
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElderPipesModule>;
|
|
36
38
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
declare type TrimMode = 'start' | 'end';
|
|
4
|
+
export declare class ElderTrimPipe implements PipeTransform {
|
|
5
|
+
/**
|
|
6
|
+
* Trim the given input value if it is longer than maxCharacters.
|
|
7
|
+
* @param value
|
|
8
|
+
* @param maxCharacters
|
|
9
|
+
* @param trimMode Trim from
|
|
10
|
+
*/
|
|
11
|
+
transform(value: any, maxCharacters?: number, trimMode?: TrimMode): string;
|
|
12
|
+
private trimStart;
|
|
13
|
+
private trimEnd;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderTrimPipe, never>;
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ElderTrimPipe, "elderTrim">;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -28,6 +28,22 @@
|
|
|
28
28
|
height: 16px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.suffix-icon {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
width: 16px;
|
|
34
|
+
height: 16px;
|
|
35
|
+
// padding-left: 4px;
|
|
36
|
+
.mat-icon {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.clickable-icon {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
.full-width {
|
|
32
48
|
width: 100%;
|
|
33
49
|
}
|
|
@@ -8,3 +8,27 @@
|
|
|
8
8
|
width: 16px;
|
|
9
9
|
height: 16px;
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
.elder-chip-input {
|
|
13
|
+
width: 120px!important;
|
|
14
|
+
max-width: 120px!important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.small-icon-button {
|
|
18
|
+
width: 24px !important;
|
|
19
|
+
height: 24px !important;
|
|
20
|
+
line-height: 24px !important;
|
|
21
|
+
|
|
22
|
+
.mat-icon {
|
|
23
|
+
width: 16px !important;
|
|
24
|
+
height: 16px !important;
|
|
25
|
+
line-height: 16px !important;
|
|
26
|
+
}
|
|
27
|
+
.material-icons {
|
|
28
|
+
font-size: 16px !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.clickable-chip {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
@@ -58,24 +58,29 @@
|
|
|
58
58
|
|
|
59
59
|
/***************************************************************************
|
|
60
60
|
* *
|
|
61
|
-
*
|
|
61
|
+
* form-field dense styling *
|
|
62
62
|
* *
|
|
63
63
|
**************************************************************************/
|
|
64
64
|
|
|
65
|
-
.mat-form-field
|
|
66
|
-
|
|
65
|
+
.mat-form-field.elder-dense {
|
|
67
66
|
.mat-form-field-wrapper {
|
|
68
|
-
padding-bottom: 0
|
|
67
|
+
padding-bottom: 0;
|
|
69
68
|
}
|
|
70
|
-
|
|
71
69
|
.mat-form-field-underline {
|
|
72
|
-
bottom: 0
|
|
70
|
+
bottom: 0;
|
|
73
71
|
}
|
|
74
|
-
|
|
75
72
|
.mat-form-field-infix {
|
|
76
|
-
border: 0
|
|
73
|
+
border: 0;
|
|
77
74
|
}
|
|
75
|
+
}
|
|
78
76
|
|
|
77
|
+
.mat-form-field.elder-no-hint {
|
|
78
|
+
.mat-form-field-wrapper {
|
|
79
|
+
padding-bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
.mat-form-field-underline {
|
|
82
|
+
bottom: 0;
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
/******************************
|