@siemens/element-ng 47.2.0 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -6
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/package.json +3 -0
- package/autocomplete/si-autocomplete-listbox.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete-option.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete.directive.d.ts +14 -0
- package/autocomplete/si-autocomplete.model.d.ts +7 -0
- package/autocomplete/si-autocomplete.module.d.ts +9 -0
- package/badge/index.d.ts +5 -0
- package/badge/package.json +3 -0
- package/badge/si-badge.component.d.ts +17 -0
- package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/package.json +3 -0
- package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
- package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
- package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
- package/card/index.d.ts +6 -0
- package/card/package.json +3 -0
- package/card/si-card.component.d.ts +79 -0
- package/card/si-card.module.d.ts +7 -0
- package/circle-status/index.d.ts +6 -0
- package/circle-status/package.json +3 -0
- package/circle-status/si-circle-status.component.d.ts +66 -0
- package/circle-status/si-circle-status.module.d.ts +7 -0
- package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
- package/column-selection-dialog/index.d.ts +6 -0
- package/column-selection-dialog/package.json +3 -0
- package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
- package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
- package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
- package/common/models/status-type.model.d.ts +2 -2
- package/content-action-bar/index.d.ts +7 -0
- package/content-action-bar/package.json +3 -0
- package/content-action-bar/si-content-action-bar-toggle.component.d.ts +6 -0
- package/content-action-bar/si-content-action-bar.component.d.ts +72 -0
- package/content-action-bar/si-content-action-bar.model.d.ts +9 -0
- package/content-action-bar/si-content-action-bar.module.d.ts +7 -0
- package/date-range-filter/index.d.ts +8 -0
- package/date-range-filter/package.json +3 -0
- package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
- package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
- package/date-range-filter/si-relative-date.component.d.ts +31 -0
- package/datepicker/components/si-calendar-body.component.d.ts +137 -0
- package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
- package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
- package/datepicker/components/si-compare-adapter.d.ts +37 -0
- package/datepicker/components/si-day-selection.component.d.ts +76 -0
- package/datepicker/components/si-initial-focus.component.d.ts +74 -0
- package/datepicker/components/si-month-selection.component.d.ts +62 -0
- package/datepicker/components/si-year-selection.component.d.ts +65 -0
- package/datepicker/date-time-helper.d.ts +302 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/package.json +3 -0
- package/datepicker/si-calendar-button.component.d.ts +49 -0
- package/datepicker/si-date-input.directive.d.ts +114 -0
- package/datepicker/si-date-range.component.d.ts +150 -0
- package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
- package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
- package/datepicker/si-datepicker.component.d.ts +228 -0
- package/datepicker/si-datepicker.directive.d.ts +62 -0
- package/datepicker/si-datepicker.model.d.ts +129 -0
- package/datepicker/si-datepicker.module.d.ts +12 -0
- package/datepicker/si-timepicker.component.d.ts +214 -0
- package/electron-titlebar/electron.helpers.d.ts +5 -0
- package/electron-titlebar/index.d.ts +7 -0
- package/electron-titlebar/package.json +3 -0
- package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
- package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-application-header.mjs +2 -2
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-autocomplete.mjs +235 -0
- package/fesm2022/siemens-element-ng-autocomplete.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-badge.mjs +59 -0
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-card.mjs +122 -0
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-common.mjs +1 -1
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +200 -0
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-form.mjs +827 -0
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs +65 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon.mjs +22 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs +90 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-localization.mjs +306 -0
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-number-input.mjs +267 -0
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs +177 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs +397 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs +259 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover.mjs +256 -0
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs +83 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-select.mjs +1166 -0
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs +117 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-slider.mjs +313 -0
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-split.mjs +575 -0
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs +77 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs +227 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +746 -0
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-wizard.mjs +465 -0
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -0
- package/file-uploader/index.d.ts +8 -0
- package/file-uploader/package.json +3 -0
- package/file-uploader/si-file-dropzone.component.d.ts +106 -0
- package/file-uploader/si-file-uploader.component.d.ts +296 -0
- package/file-uploader/si-file-uploader.model.d.ts +12 -0
- package/file-uploader/si-file-uploader.module.d.ts +8 -0
- package/filter-bar/filter.d.ts +26 -0
- package/filter-bar/index.d.ts +8 -0
- package/filter-bar/package.json +3 -0
- package/filter-bar/si-filter-bar.component.d.ts +65 -0
- package/filter-bar/si-filter-bar.module.d.ts +7 -0
- package/filter-bar/si-filter-pill.component.d.ts +20 -0
- package/form/form-fieldset/si-form-fieldset.component.d.ts +40 -0
- package/form/index.d.ts +14 -0
- package/form/package.json +3 -0
- package/form/si-form-container/si-form-container.component.d.ts +155 -0
- package/form/si-form-item/si-form-field-native.control.d.ts +22 -0
- package/form/si-form-item/si-form-item.component.d.ts +90 -0
- package/form/si-form-item-control-input.directive.d.ts +18 -0
- package/form/si-form-item.control.d.ts +35 -0
- package/form/si-form-validation-error.model.d.ts +55 -0
- package/form/si-form-validation-error.provider.d.ts +11 -0
- package/form/si-form-validation-error.service.d.ts +42 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.component.d.ts +13 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.d.ts +42 -0
- package/form/si-form.module.d.ts +25 -0
- package/icon/element-icons.d.ts +20 -0
- package/icon-status/index.d.ts +6 -0
- package/icon-status/package.json +3 -0
- package/icon-status/si-icon-status.component.d.ts +24 -0
- package/icon-status/si-icon-status.module.d.ts +7 -0
- package/info-page/index.d.ts +5 -0
- package/info-page/package.json +3 -0
- package/info-page/si-info-page.component.d.ts +38 -0
- package/inline-notification/si-inline-notification.component.d.ts +0 -2
- package/ip-input/address-utils.d.ts +28 -0
- package/ip-input/address-validators.d.ts +21 -0
- package/ip-input/index.d.ts +7 -0
- package/ip-input/package.json +3 -0
- package/ip-input/si-ip-input.directive.d.ts +53 -0
- package/ip-input/si-ip4-input.directive.d.ts +9 -0
- package/ip-input/si-ip6-input.directive.d.ts +10 -0
- package/language-switcher/index.d.ts +7 -0
- package/language-switcher/iso-language-value.d.ts +14 -0
- package/language-switcher/package.json +3 -0
- package/language-switcher/si-language-switcher.component.d.ts +32 -0
- package/language-switcher/si-language-switcher.module.d.ts +7 -0
- package/localization/index.d.ts +8 -0
- package/localization/package.json +3 -0
- package/localization/si-directionality.d.ts +41 -0
- package/localization/si-locale-id.d.ts +22 -0
- package/localization/si-locale-store.d.ts +16 -0
- package/localization/si-locale.service.d.ts +73 -0
- package/number-input/index.d.ts +6 -0
- package/number-input/package.json +3 -0
- package/number-input/si-number-input.component.d.ts +106 -0
- package/number-input/si-number-input.module.d.ts +7 -0
- package/package.json +163 -3
- package/password-strength/index.d.ts +7 -0
- package/password-strength/package.json +3 -0
- package/password-strength/si-password-strength.component.d.ts +25 -0
- package/password-strength/si-password-strength.directive.d.ts +54 -0
- package/password-strength/si-password-strength.module.d.ts +8 -0
- package/photo-upload/index.d.ts +6 -0
- package/photo-upload/package.json +3 -0
- package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
- package/photo-upload/si-photo-upload.component.d.ts +298 -0
- package/pills-input/index.d.ts +9 -0
- package/pills-input/package.json +3 -0
- package/pills-input/si-input-pill.component.d.ts +9 -0
- package/pills-input/si-pills-input-csv.directive.d.ts +8 -0
- package/pills-input/si-pills-input-email.directive.d.ts +10 -0
- package/pills-input/si-pills-input-pattern-base.d.ts +19 -0
- package/pills-input/si-pills-input-value-handler.d.ts +12 -0
- package/pills-input/si-pills-input.component.d.ts +87 -0
- package/pills-input/si-pills-input.module.d.ts +9 -0
- package/popover/index.d.ts +6 -0
- package/popover/package.json +3 -0
- package/popover/si-popover.component.d.ts +26 -0
- package/popover/si-popover.directive.d.ts +89 -0
- package/popover/si-popover.module.d.ts +7 -0
- package/popover-next/index.d.ts +7 -0
- package/popover-next/package.json +3 -0
- package/popover-next/si-popover-description.directive.d.ts +7 -0
- package/popover-next/si-popover-next.directive.d.ts +61 -0
- package/popover-next/si-popover-title.directive.d.ts +7 -0
- package/popover-next/si-popover.component.d.ts +27 -0
- package/progressbar/index.d.ts +6 -0
- package/progressbar/package.json +3 -0
- package/progressbar/si-progressbar.component.d.ts +43 -0
- package/progressbar/si-progressbar.module.d.ts +7 -0
- package/search-bar/index.d.ts +6 -0
- package/search-bar/package.json +3 -0
- package/search-bar/si-search-bar.component.d.ts +87 -0
- package/search-bar/si-search-bar.module.d.ts +7 -0
- package/select/index.d.ts +18 -0
- package/select/options/si-select-complex-options.directive.d.ts +69 -0
- package/select/options/si-select-lazy-options.directive.d.ts +38 -0
- package/select/options/si-select-option.source.d.ts +49 -0
- package/select/options/si-select-options-strategy.base.d.ts +35 -0
- package/select/options/si-select-options-strategy.d.ts +37 -0
- package/select/options/si-select-simple-options.directive.d.ts +34 -0
- package/select/package.json +3 -0
- package/select/select-input/si-select-input.component.d.ts +43 -0
- package/select/select-list/si-select-list-has-filter.component.d.ts +20 -0
- package/select/select-list/si-select-list.base.d.ts +37 -0
- package/select/select-list/si-select-list.component.d.ts +15 -0
- package/select/select-option/si-select-option-row.component.d.ts +16 -0
- package/select/select-option/si-select-option.component.d.ts +9 -0
- package/select/selection/si-select-multi-value.directive.d.ts +26 -0
- package/select/selection/si-select-selection-strategy.d.ts +58 -0
- package/select/selection/si-select-single-value.directive.d.ts +26 -0
- package/select/si-select-action.directive.d.ts +12 -0
- package/select/si-select-actions.directive.d.ts +5 -0
- package/select/si-select-group-template.directive.d.ts +20 -0
- package/select/si-select-option-row-template.directive.d.ts +9 -0
- package/select/si-select-option-template.directive.d.ts +21 -0
- package/select/si-select.component.d.ts +96 -0
- package/select/si-select.module.d.ts +15 -0
- package/select/si-select.types.d.ts +65 -0
- package/skip-links/index.d.ts +5 -0
- package/skip-links/package.json +3 -0
- package/skip-links/si-skip-link-target.directive.d.ts +27 -0
- package/skip-links/si-skip-links.component.d.ts +9 -0
- package/skip-links/skip-link.service.d.ts +14 -0
- package/slider/index.d.ts +6 -0
- package/slider/package.json +3 -0
- package/slider/si-slider.component.d.ts +129 -0
- package/slider/si-slider.module.d.ts +7 -0
- package/sort-bar/index.d.ts +6 -0
- package/sort-bar/package.json +3 -0
- package/sort-bar/si-sort-bar.component.d.ts +42 -0
- package/sort-bar/si-sort-bar.module.d.ts +7 -0
- package/split/index.d.ts +8 -0
- package/split/package.json +3 -0
- package/split/si-split-part.component.d.ts +154 -0
- package/split/si-split.component.d.ts +48 -0
- package/split/si-split.interfaces.d.ts +17 -0
- package/split/si-split.module.d.ts +8 -0
- package/status-toggle/index.d.ts +6 -0
- package/status-toggle/package.json +3 -0
- package/status-toggle/si-status-toggle.component.d.ts +54 -0
- package/status-toggle/status-toggle.model.d.ts +26 -0
- package/summary-widget/index.d.ts +5 -0
- package/summary-widget/package.json +3 -0
- package/summary-widget/si-summary-widget.component.d.ts +44 -0
- package/system-banner/index.d.ts +5 -0
- package/system-banner/package.json +3 -0
- package/system-banner/system-banner.component.d.ts +23 -0
- package/tabs/index.d.ts +7 -0
- package/tabs/package.json +3 -0
- package/tabs/si-tab/index.d.ts +5 -0
- package/tabs/si-tab/si-tab.component.d.ts +58 -0
- package/tabs/si-tabs.module.d.ts +8 -0
- package/tabs/si-tabset/index.d.ts +5 -0
- package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
- package/template-i18n.json +111 -1
- package/toast-notification/index.d.ts +6 -0
- package/toast-notification/package.json +3 -0
- package/toast-notification/si-toast-notification/si-toast-notification.component.d.ts +17 -0
- package/toast-notification/si-toast-notification-drawer/si-toast-notification-drawer.component.d.ts +9 -0
- package/toast-notification/si-toast-notification.service.d.ts +41 -0
- package/toast-notification/si-toast.model.d.ts +25 -0
- package/translate/si-translatable-keys.interface.d.ts +110 -0
- package/typeahead/index.d.ts +8 -0
- package/typeahead/package.json +3 -0
- package/typeahead/si-typeahead-item-template.directive.d.ts +7 -0
- package/typeahead/si-typeahead.component.d.ts +22 -0
- package/typeahead/si-typeahead.directive.d.ts +196 -0
- package/typeahead/si-typeahead.model.d.ts +60 -0
- package/typeahead/si-typeahead.module.d.ts +8 -0
- package/typeahead/si-typeahead.sorting.d.ts +10 -0
- package/unauthorized-page/index.d.ts +6 -0
- package/unauthorized-page/package.json +3 -0
- package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
- package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
- package/wizard/index.d.ts +7 -0
- package/wizard/package.json +3 -0
- package/wizard/si-wizard-step.component.d.ts +21 -0
- package/wizard/si-wizard.component.d.ts +196 -0
- package/wizard/si-wizard.module.d.ts +8 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverNextDirective implements OnDestroy {
|
|
4
|
+
private static idCounter;
|
|
5
|
+
/**
|
|
6
|
+
* The popover text to be displayed
|
|
7
|
+
*/
|
|
8
|
+
readonly siPopoverNext: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* The placement of the popover. One of 'top', 'start', end', 'bottom'
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue 'auto'
|
|
13
|
+
*/
|
|
14
|
+
readonly placement: import("@angular/core").InputSignal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
15
|
+
readonly placementInternal: import("@angular/core").Signal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
16
|
+
/**
|
|
17
|
+
* The title to be displayed on top for the popover
|
|
18
|
+
*/
|
|
19
|
+
readonly popoverTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* The class that will be applied to container of the popover
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue ''
|
|
24
|
+
*/
|
|
25
|
+
readonly containerClass: import("@angular/core").InputSignal<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The icon to be displayed besides popover title
|
|
28
|
+
*/
|
|
29
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The context for the attached template
|
|
32
|
+
*/
|
|
33
|
+
readonly popoverContext: import("@angular/core").InputSignal<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Emits an event when the popover is shown/hidden
|
|
36
|
+
*/
|
|
37
|
+
readonly visibilityChange: import("@angular/core").OutputEmitterRef<void>;
|
|
38
|
+
readonly popoverCounter: number;
|
|
39
|
+
readonly popoverId: string;
|
|
40
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
41
|
+
private overlayref?;
|
|
42
|
+
private overlay;
|
|
43
|
+
private elementRef;
|
|
44
|
+
private destroyer;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Displays popover and emits 'shown' event.
|
|
48
|
+
*/
|
|
49
|
+
show(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Hides the popover and emits 'hidden' event.
|
|
52
|
+
*/
|
|
53
|
+
hide(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the position of the popover based on the position strategy.
|
|
56
|
+
*/
|
|
57
|
+
updatePosition(): void;
|
|
58
|
+
protected onClick(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverNextDirective, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverNextDirective, "[siPopoverNext]", ["si-popover-next"], { "siPopoverNext": { "alias": "siPopoverNext"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "popoverContext": { "alias": "popoverContext"; "required": false; "isSignal": true; }; }, { "visibilityChange": "visibilityChange"; }, never, never, true, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PopoverComponent } from './si-popover.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverTitleDirective {
|
|
4
|
+
readonly popover: PopoverComponent;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverTitleDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverTitleDirective, "si-popover-title", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { OverlayArrowPosition } from '@siemens/element-ng/common';
|
|
4
|
+
import { SiPopoverNextDirective } from './si-popover-next.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PopoverComponent implements OnInit, OnDestroy {
|
|
7
|
+
readonly popoverDirective: import("@angular/core").InputSignal<SiPopoverNextDirective>;
|
|
8
|
+
readonly popoverWrapper: import("@angular/core").Signal<ElementRef<any>>;
|
|
9
|
+
protected readonly positionClass: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
protected readonly arrowPos: import("@angular/core").WritableSignal<OverlayArrowPosition | undefined>;
|
|
11
|
+
protected popoverTemplate: TemplateRef<any> | null;
|
|
12
|
+
protected injector: Injector;
|
|
13
|
+
protected labelledBy: string | undefined;
|
|
14
|
+
protected describedBy: string | undefined;
|
|
15
|
+
private elementRef;
|
|
16
|
+
private focusTrapFactory;
|
|
17
|
+
private focusTrap?;
|
|
18
|
+
private readonly previouslyActiveElement;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
/** @internal */
|
|
22
|
+
updateArrow(change: ConnectedOverlayPositionChange, anchor?: ElementRef): void;
|
|
23
|
+
hide(): void;
|
|
24
|
+
private applyFocus;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "si-popover", never, { "popoverDirective": { "alias": "popoverDirective"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiProgressbarComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Needed for a11y
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue
|
|
7
|
+
* ```
|
|
8
|
+
* $localize`:@@SI_PROGRESSBAR.LABEL:Progress`
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
readonly ariaLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
12
|
+
/**
|
|
13
|
+
* Max value for progressbar
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue 100
|
|
16
|
+
*/
|
|
17
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Current value
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue 0
|
|
22
|
+
*/
|
|
23
|
+
readonly value: import("@angular/core").InputSignal<number | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Heading to display on top of progress bar.
|
|
26
|
+
*/
|
|
27
|
+
readonly heading: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional progress text to be shown on top right (in LTR).
|
|
30
|
+
* It can be percentage value or a progress status. E.g `50 %` or `Downloading 2/8`.
|
|
31
|
+
*/
|
|
32
|
+
readonly progress: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Height for progress bar.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue 'normal'
|
|
37
|
+
*/
|
|
38
|
+
readonly height: import("@angular/core").InputSignal<ProgressbarHeight>;
|
|
39
|
+
protected readonly percent: import("@angular/core").Signal<number>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiProgressbarComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiProgressbarComponent, "si-progressbar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
export type ProgressbarHeight = 'small' | 'normal';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-progressbar.component";
|
|
3
|
+
export declare class SiProgressbarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiProgressbarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiProgressbarModule, never, [typeof i1.SiProgressbarComponent], [typeof i1.SiProgressbarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiProgressbarModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { BackgroundColorVariant } from '@siemens/element-ng/common';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiSearchBarComponent implements OnInit, OnDestroy, ControlValueAccessor, OnChanges {
|
|
10
|
+
private readonly inputRef;
|
|
11
|
+
private debouncer;
|
|
12
|
+
private readonly disabledNgControl;
|
|
13
|
+
/**
|
|
14
|
+
* Time unit change of search input takes effect.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue 400
|
|
17
|
+
*/
|
|
18
|
+
readonly debounceTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Prohibited characters restricting search.
|
|
21
|
+
*/
|
|
22
|
+
readonly prohibitedCharacters: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* Define search input placeholder.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue ''
|
|
27
|
+
*/
|
|
28
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Display search icon before search input.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue false
|
|
33
|
+
*/
|
|
34
|
+
readonly showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the search is tabbable or not.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue true
|
|
39
|
+
*/
|
|
40
|
+
readonly tabbable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Define search input content.
|
|
43
|
+
*/
|
|
44
|
+
readonly value: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
/** @defaultValue false */
|
|
46
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Color to use for component background
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue 'base-1'
|
|
51
|
+
*/
|
|
52
|
+
readonly colorVariant: import("@angular/core").InputSignal<BackgroundColorVariant>;
|
|
53
|
+
/** @defaultValue false */
|
|
54
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Output callback event will provide you with search term if search input changes.
|
|
57
|
+
*/
|
|
58
|
+
readonly searchChange: import("@angular/core").OutputEmitterRef<string>;
|
|
59
|
+
protected isInvalid: boolean;
|
|
60
|
+
protected inFocus: boolean;
|
|
61
|
+
protected onChange: (val: any) => void;
|
|
62
|
+
protected onTouch: () => void;
|
|
63
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
64
|
+
protected readonly searchValue: import("@angular/core").WritableSignal<string>;
|
|
65
|
+
protected readonly icons: Record<"elementCancel" | "elementSearch", string>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
writeValue(value: string): void;
|
|
68
|
+
/** @internal */
|
|
69
|
+
registerOnChange(fn: any): void;
|
|
70
|
+
/** @internal */
|
|
71
|
+
registerOnTouched(fn: () => void): void;
|
|
72
|
+
/** @internal */
|
|
73
|
+
setDisabledState(disabled: boolean): void;
|
|
74
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
private setSearch;
|
|
78
|
+
private isProhibitedCharactersUsed;
|
|
79
|
+
/** @internal */
|
|
80
|
+
focus(): void;
|
|
81
|
+
protected onCancelFocus(event: Event): void;
|
|
82
|
+
protected input(event: Event): void;
|
|
83
|
+
protected onBlur(): void;
|
|
84
|
+
protected resetForm(): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSearchBarComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSearchBarComponent, "si-search-bar", never, { "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "prohibitedCharacters": { "alias": "prohibitedCharacters"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "tabbable": { "alias": "tabbable"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "colorVariant": { "alias": "colorVariant"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "searchChange": "searchChange"; }, never, never, true, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-search-bar.component";
|
|
3
|
+
export declare class SiSearchBarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSearchBarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiSearchBarModule, never, [typeof i1.SiSearchBarComponent], [typeof i1.SiSearchBarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiSearchBarModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
export * from './si-select.component';
|
|
6
|
+
export * from './options/si-select-lazy-options.directive';
|
|
7
|
+
export * from './options/si-select-simple-options.directive';
|
|
8
|
+
export * from './options/si-select-complex-options.directive';
|
|
9
|
+
export * from './options/si-select-option.source';
|
|
10
|
+
export * from './selection/si-select-single-value.directive';
|
|
11
|
+
export * from './selection/si-select-multi-value.directive';
|
|
12
|
+
export * from './si-select-option-template.directive';
|
|
13
|
+
export * from './si-select-group-template.directive';
|
|
14
|
+
export * from './si-select.module';
|
|
15
|
+
export * from './select-list/si-select-list-has-filter.component';
|
|
16
|
+
export * from './si-select-action.directive';
|
|
17
|
+
export * from './si-select-actions.directive';
|
|
18
|
+
export * from './si-select.types';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnChanges } from '@angular/core';
|
|
6
|
+
import { SelectGroup, SelectOption } from '../si-select.types';
|
|
7
|
+
import { SiSelectOptionsStrategyBase } from './si-select-options-strategy.base';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* The directive allows passing custom options.
|
|
11
|
+
* Otherwise, use the {@link SiSelectSimpleOptionsDirective} directive.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use {@link SiSelectSimpleOptionsDirective} instead.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <si-select [complexOptions]="['v1', 'v2', 'v3']"></si-select>
|
|
18
|
+
* <si-select [complexOptions]="{ g1: ['g1.i1', 'g1.i2'], g2: ['g2.i1']}"></si-select>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class SiSelectComplexOptionsDirective<T> extends SiSelectOptionsStrategyBase<T> implements OnChanges {
|
|
22
|
+
/** Options to be shown in select dropdown. */
|
|
23
|
+
readonly complexOptions: import("@angular/core").InputSignal<T[] | Record<string, T[]> | null | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Property has no effect and can be removed.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue
|
|
28
|
+
* ```
|
|
29
|
+
* buildTrackByIdentity<T>()
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
readonly trackBy: import("@angular/core").InputSignal<import("@angular/core").TrackByFunction<T>>;
|
|
33
|
+
/**
|
|
34
|
+
* By default, values are check on equality by reference. Override to customize the behavior.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue
|
|
37
|
+
* ```
|
|
38
|
+
* (a: T, b: T): boolean => a === b
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
readonly optionsEqual: import("@angular/core").InputSignal<(a: T, b: T) => boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* The valueProvider is used to extract the display text of a value.
|
|
44
|
+
*/
|
|
45
|
+
readonly valueProvider: import("@angular/core").InputSignal<((dropdownOption: T) => string | undefined) | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Provides Value for the display text of the dropdown group
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue
|
|
50
|
+
* ```
|
|
51
|
+
* () => undefined
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
readonly groupProvider: import("@angular/core").InputSignal<(groupKey: string) => string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* The disabledProvider is used to display menu items as disabled.
|
|
57
|
+
*
|
|
58
|
+
* @defaultValue
|
|
59
|
+
* ```
|
|
60
|
+
* () => false
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
readonly disabledProvider: import("@angular/core").InputSignal<(dropdownOption: T) => boolean>;
|
|
64
|
+
readonly allRows: import("@angular/core").Signal<SelectOption<T>[] | SelectGroup<T>[]>;
|
|
65
|
+
ngOnChanges(): void;
|
|
66
|
+
private convertOptionsArray;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectComplexOptionsDirective<any>, never>;
|
|
68
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectComplexOptionsDirective<any>, "si-select[complexOptions]", never, { "complexOptions": { "alias": "complexOptions"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "optionsEqual": { "alias": "optionEqualCheckFn"; "required": false; "isSignal": true; }; "valueProvider": { "alias": "valueProvider"; "required": false; "isSignal": true; }; "groupProvider": { "alias": "groupProvider"; "required": false; "isSignal": true; }; "disabledProvider": { "alias": "disabledProvider"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnDestroy } from '@angular/core';
|
|
6
|
+
import { SelectItem, SelectOption } from '../si-select.types';
|
|
7
|
+
import { SelectOptionSource } from './si-select-option.source';
|
|
8
|
+
import { SiSelectOptionsStrategy } from './si-select-options-strategy';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SiSelectLazyOptionsDirective<T> implements SiSelectOptionsStrategy<T>, OnDestroy {
|
|
11
|
+
/**
|
|
12
|
+
* {@inheritDoc SiSelectOptionsStrategy#loading}
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* {@inheritDoc SiSelectOptionsStrategy#rows}
|
|
18
|
+
* @defaultValue []
|
|
19
|
+
*/
|
|
20
|
+
readonly rows: import("@angular/core").WritableSignal<SelectItem<T>[]>;
|
|
21
|
+
/**
|
|
22
|
+
* {@inheritDoc SiSelectOptionsStrategy#selectedRows}
|
|
23
|
+
* @defaultValue []
|
|
24
|
+
*/
|
|
25
|
+
readonly selectedRows: import("@angular/core").WritableSignal<SelectOption<T>[]>;
|
|
26
|
+
readonly optionSource: import("@angular/core").InputSignal<SelectOptionSource<T>>;
|
|
27
|
+
private valueChange;
|
|
28
|
+
private filterChange;
|
|
29
|
+
constructor();
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
/** {@inheritDoc SiSelectOptionsStrategy.onValueChange} */
|
|
32
|
+
onValueChange(value: T[]): void;
|
|
33
|
+
/** {@inheritDoc SiSelectOptionsStrategy.onFilter} */
|
|
34
|
+
onFilter(filterInput?: string): void;
|
|
35
|
+
private valueEqual;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectLazyOptionsDirective<any>, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectLazyOptionsDirective<any>, "si-select[optionSource]", never, { "optionSource": { "alias": "optionSource"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { SelectItem, SelectOption } from '../si-select.types';
|
|
7
|
+
/**
|
|
8
|
+
* An interface to define a lazy option source for the {@link SiSelectComponent}.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam TValue - is the type of the value in {@link SiSelectComponent}, so the value of the associated formControl, ngModel or value input.
|
|
11
|
+
*/
|
|
12
|
+
export interface SelectOptionSource<TValue> {
|
|
13
|
+
/**
|
|
14
|
+
* Get options for the provided values.
|
|
15
|
+
* This is basically a resolver function, that resolves values to options.
|
|
16
|
+
*
|
|
17
|
+
* @param values - values that should be resolved to an option.
|
|
18
|
+
*/
|
|
19
|
+
getOptionsForValues(values: TValue[]): Observable<SelectOption<TValue>[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Get all available options.
|
|
22
|
+
* If provided, this will be called when no filter value is provided.
|
|
23
|
+
* Otherwise, si-select will only show the selected values.
|
|
24
|
+
|
|
25
|
+
* This function must be implemented if this source is used on a select without a filter.
|
|
26
|
+
*/
|
|
27
|
+
getAllOptions?(): Observable<SelectItem<TValue>[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Find options for a search value. It will never be called with an empty search value.
|
|
30
|
+
*
|
|
31
|
+
* This function must be implemented if this source is used on a si-select with a filter.
|
|
32
|
+
*
|
|
33
|
+
* @param search - value typed by the user in the search field.
|
|
34
|
+
*/
|
|
35
|
+
getOptionsForSearch?(search: string): Observable<SelectItem<TValue>[]>;
|
|
36
|
+
/**
|
|
37
|
+
* This function is used to sort options.
|
|
38
|
+
*
|
|
39
|
+
* It is only called if the si-select was able to find all options without querying the option source.
|
|
40
|
+
*/
|
|
41
|
+
compareOptions?(a: SelectOption<TValue>, b: SelectOption<TValue>): number;
|
|
42
|
+
/**
|
|
43
|
+
* Function to check if two values are equal.
|
|
44
|
+
*
|
|
45
|
+
* This function must be implemented if the check on reference equality is not enough.
|
|
46
|
+
* For instance, when using objects as value.
|
|
47
|
+
*/
|
|
48
|
+
valuesEqual?(optionA: TValue, optionB: TValue): boolean;
|
|
49
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { InputSignal, Signal } from '@angular/core';
|
|
6
|
+
import { SelectItem, SelectOption } from '../si-select.types';
|
|
7
|
+
import { SiSelectOptionsStrategy } from './si-select-options-strategy';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Input options strategy base class, for eagerly fetched options.
|
|
11
|
+
*/
|
|
12
|
+
export declare abstract class SiSelectOptionsStrategyBase<T> implements SiSelectOptionsStrategy<T> {
|
|
13
|
+
/**
|
|
14
|
+
* Function to compare two values on equality which is used to match/filter options.
|
|
15
|
+
*/
|
|
16
|
+
abstract optionsEqual: InputSignal<(a: T, b: T) => boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Rows that should be shown.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue []
|
|
21
|
+
*/
|
|
22
|
+
readonly rows: import("@angular/core").WritableSignal<SelectItem<T>[]>;
|
|
23
|
+
/**
|
|
24
|
+
* All group and option items in the dropdown.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue []
|
|
27
|
+
*/
|
|
28
|
+
abstract readonly allRows: Signal<(SelectItem<T> | SelectOption<T>)[]>;
|
|
29
|
+
private readonly value;
|
|
30
|
+
readonly selectedRows: Signal<SelectOption<T>[]>;
|
|
31
|
+
onValueChange(value: T[]): void;
|
|
32
|
+
onFilter(filterValue?: string): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectOptionsStrategyBase<any>, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectOptionsStrategyBase<any>, never, never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
6
|
+
import { SelectItem, SelectOption } from '../si-select.types';
|
|
7
|
+
export declare const SI_SELECT_OPTIONS_STRATEGY: InjectionToken<SiSelectOptionsStrategy<unknown>>;
|
|
8
|
+
export interface SiSelectOptionsStrategy<T> {
|
|
9
|
+
/**
|
|
10
|
+
* List of all rows that should be rendered in a selection list.
|
|
11
|
+
*/
|
|
12
|
+
readonly rows: Signal<readonly SelectItem<T>[]>;
|
|
13
|
+
/**
|
|
14
|
+
* List of all options that are currently selected.
|
|
15
|
+
* Must be updated when {@link onValueChange} is called.
|
|
16
|
+
*/
|
|
17
|
+
readonly selectedRows: Signal<readonly SelectOption<T>[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Indicate loading state of the options.
|
|
20
|
+
*/
|
|
21
|
+
readonly loading?: Signal<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Is always called when the value changes.
|
|
24
|
+
* The implementation must update {@link selectedRows} when called.
|
|
25
|
+
*
|
|
26
|
+
* @param value - currently selected value of the related si-select.
|
|
27
|
+
*/
|
|
28
|
+
onValueChange(value: readonly T[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* This function is called when a user enters a filter query.
|
|
31
|
+
* It is expected that an implementation will update the `rows`
|
|
32
|
+
* based on the query.
|
|
33
|
+
*
|
|
34
|
+
* @param filterInput - Unprocessed input by user in the filterInput field
|
|
35
|
+
*/
|
|
36
|
+
onFilter?(filterInput?: string): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnChanges } from '@angular/core';
|
|
6
|
+
import { SelectItem, SelectOptionLegacy } from '../si-select.types';
|
|
7
|
+
import { SiSelectOptionsStrategyBase } from './si-select-options-strategy.base';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* This directive allows passing {@link SelectItem} to the {@link SiSelectComponent}.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <si-select [options]="[{ type: 'option', value: 'one', label: 'One' }, { type: 'option', value: 'two', label: 'Two' }]"></si-select>
|
|
15
|
+
* <si-select [options]="[{ type: 'group', label: 'Group', options [{ type: 'option', value: 1, label: 'One' }, { type: 'option', value: 2, label: 'Two' }] }]"></si-select>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class SiSelectSimpleOptionsDirective<T = string> extends SiSelectOptionsStrategyBase<T> implements OnChanges {
|
|
19
|
+
/** Options to be shown in select dropdown */
|
|
20
|
+
readonly options: import("@angular/core").InputSignal<(SelectOptionLegacy | SelectItem<T>)[] | null | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* By default, values are check on referential equality. Provide a function to customize the behavior.
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue
|
|
25
|
+
* ```
|
|
26
|
+
* (a: T, b: T): boolean => a === b
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
readonly optionsEqual: import("@angular/core").InputSignal<(a: T, b: T) => boolean>;
|
|
30
|
+
readonly allRows: import("@angular/core").Signal<SelectItem<T>[]>;
|
|
31
|
+
ngOnChanges(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectSimpleOptionsDirective<any>, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectSimpleOptionsDirective<any>, "si-select[options]", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionsEqual": { "alias": "optionEqualCheckFn"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
7
|
+
import { SiSelectSelectionStrategy } from '../selection/si-select-selection-strategy';
|
|
8
|
+
import { SelectOption } from '../si-select.types';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SiSelectInputComponent<T> {
|
|
11
|
+
readonly baseId: import("@angular/core").InputSignal<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Aria labelledby of the select.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue null
|
|
16
|
+
*/
|
|
17
|
+
readonly labelledby: import("@angular/core").InputSignal<string | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Aria label of the select.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue null
|
|
22
|
+
*/
|
|
23
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
24
|
+
/** @defaultValue false */
|
|
25
|
+
readonly open: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
readonly placeholder: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
27
|
+
readonly controls: import("@angular/core").InputSignal<string>;
|
|
28
|
+
readonly optionTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
29
|
+
$implicit: SelectOption<T>;
|
|
30
|
+
}> | undefined>;
|
|
31
|
+
/** @defaultValue false */
|
|
32
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
readonly openListbox: import("@angular/core").OutputEmitterRef<void>;
|
|
34
|
+
protected readonly selectionStrategy: SiSelectSelectionStrategy<T, T | T[]>;
|
|
35
|
+
private readonly selectOptions;
|
|
36
|
+
protected readonly selectedRows: import("@angular/core").Signal<readonly SelectOption<T>[]>;
|
|
37
|
+
protected readonly labeledBy: import("@angular/core").Signal<string>;
|
|
38
|
+
protected readonly icons: Record<"elementDown2", string>;
|
|
39
|
+
protected blur(): void;
|
|
40
|
+
protected click(event?: Event): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectInputComponent<any>, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectInputComponent<any>, "si-select-input", never, { "baseId": { "alias": "baseId"; "required": true; "isSignal": true; }; "labelledby": { "alias": "labelledby"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "controls": { "alias": "controls"; "required": true; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "openListbox": "openListbox"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
3
|
+
import { SiSelectListBase } from './si-select-list.base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SiSelectListHasFilterComponent<T> extends SiSelectListBase<T> implements OnInit {
|
|
6
|
+
/** Placeholder for search input field. */
|
|
7
|
+
readonly filterPlaceholder: import("@angular/core").InputSignal<TranslatableString>;
|
|
8
|
+
/** Label if no item can be found. */
|
|
9
|
+
readonly noResultsFoundLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
10
|
+
protected readonly filterInput: Signal<ElementRef<HTMLInputElement>>;
|
|
11
|
+
protected readonly initIndex: Signal<number>;
|
|
12
|
+
protected readonly id: Signal<string>;
|
|
13
|
+
protected readonly icons: Record<"elementSearch", string>;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
protected input(): void;
|
|
17
|
+
protected select(newValue: T): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectListHasFilterComponent<any>, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectListHasFilterComponent<any>, "si-select-list-has-filter", never, { "filterPlaceholder": { "alias": "filterPlaceholder"; "required": true; "isSignal": true; }; "noResultsFoundLabel": { "alias": "noResultsFoundLabel"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|