@siemens/element-ng 47.1.0 → 47.3.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/accordion/index.d.ts +9 -0
- package/accordion/package.json +3 -0
- package/accordion/si-accordion-hcollapse.service.d.ts +17 -0
- package/accordion/si-accordion.component.d.ts +37 -0
- package/accordion/si-accordion.module.d.ts +8 -0
- package/accordion/si-accordion.service.d.ts +17 -0
- package/accordion/si-collapsible-panel.component.d.ts +89 -0
- package/action-modal/index.d.ts +6 -0
- package/action-modal/package.json +3 -0
- package/action-modal/si-action-dialog.service.d.ts +49 -0
- package/action-modal/si-action-dialog.types.d.ts +92 -0
- package/action-modal/si-alert-dialog/si-alert-dialog.component.d.ts +32 -0
- package/action-modal/si-confirmation-dialog/si-confirmation-dialog.component.d.ts +40 -0
- package/action-modal/si-delete-confirmation-dialog/si-delete-confirmation-dialog.component.d.ts +45 -0
- package/action-modal/si-edit-discard-dialog/si-edit-discard-dialog.component.d.ts +68 -0
- package/auto-collapsable-list/index.d.ts +10 -0
- package/auto-collapsable-list/package.json +3 -0
- package/auto-collapsable-list/si-auto-collapsable-list-additional-content.directive.d.ts +6 -0
- package/auto-collapsable-list/si-auto-collapsable-list-item.directive.d.ts +29 -0
- package/auto-collapsable-list/si-auto-collapsable-list-measurable.class.d.ts +16 -0
- package/auto-collapsable-list/si-auto-collapsable-list-overflow-item.directive.d.ts +12 -0
- package/auto-collapsable-list/si-auto-collapsable-list.directive.d.ts +47 -0
- package/auto-collapsable-list/si-auto-collapsable-list.module.d.ts +10 -0
- 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/color-picker/index.d.ts +5 -0
- package/color-picker/package.json +3 -0
- package/color-picker/si-color-picker.component.d.ts +61 -0
- package/common/models/menu.model.d.ts +2 -2
- package/connection-strength/index.d.ts +6 -0
- package/connection-strength/package.json +3 -0
- package/connection-strength/si-connection-strength.component.d.ts +19 -0
- package/connection-strength/si-connection-strength.module.d.ts +7 -0
- 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/copyright-notice/index.d.ts +7 -0
- package/copyright-notice/package.json +3 -0
- package/copyright-notice/si-copyright-notice.component.d.ts +18 -0
- package/copyright-notice/si-copyright-notice.d.ts +23 -0
- package/copyright-notice/si-copyright-notice.module.d.ts +7 -0
- package/empty-state/index.d.ts +6 -0
- package/empty-state/package.json +3 -0
- package/empty-state/si-empty-state.component.d.ts +18 -0
- package/empty-state/si-empty-state.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-accordion.mjs +314 -0
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-action-modal.mjs +363 -0
- package/fesm2022/siemens-element-ng-action-modal.mjs.map +1 -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-auto-collapsable-list.mjs +312 -0
- package/fesm2022/siemens-element-ng-auto-collapsable-list.mjs.map +1 -0
- 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-color-picker.mjs +176 -0
- package/fesm2022/siemens-element-ng-color-picker.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-connection-strength.mjs +58 -0
- package/fesm2022/siemens-element-ng-connection-strength.mjs.map +1 -0
- 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-copyright-notice.mjs +71 -0
- package/fesm2022/siemens-element-ng-copyright-notice.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-empty-state.mjs +59 -0
- package/fesm2022/siemens-element-ng-empty-state.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-footer.mjs +55 -0
- package/fesm2022/siemens-element-ng-footer.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 +19 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-inline-notification.mjs +82 -0
- package/fesm2022/siemens-element-ng-inline-notification.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-loading-spinner.mjs +248 -0
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-menu.mjs +350 -0
- package/fesm2022/siemens-element-ng-menu.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-modal.mjs +345 -0
- package/fesm2022/siemens-element-ng-modal.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-pagination.mjs +145 -0
- package/fesm2022/siemens-element-ng-pagination.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-password-toggle.mjs +88 -0
- package/fesm2022/siemens-element-ng-password-toggle.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-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-summary-chip.mjs +77 -0
- package/fesm2022/siemens-element-ng-summary-chip.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-toast-notification.mjs +227 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tooltip.mjs +233 -0
- package/fesm2022/siemens-element-ng-tooltip.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-wizard.mjs +465 -0
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -0
- package/footer/index.d.ts +6 -0
- package/footer/package.json +3 -0
- package/footer/si-footer.component.d.ts +14 -0
- package/footer/si-footer.module.d.ts +7 -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 +17 -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/inline-notification/index.d.ts +6 -0
- package/inline-notification/package.json +3 -0
- package/inline-notification/si-inline-notification.component.d.ts +42 -0
- package/inline-notification/si-inline-notification.module.d.ts +7 -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/loading-spinner/index.d.ts +9 -0
- package/loading-spinner/package.json +3 -0
- package/loading-spinner/si-loading-button.component.d.ts +31 -0
- package/loading-spinner/si-loading-spinner.component.d.ts +32 -0
- package/loading-spinner/si-loading-spinner.directive.d.ts +36 -0
- package/loading-spinner/si-loading-spinner.module.d.ts +8 -0
- package/loading-spinner/si-loading-spinner.service.d.ts +18 -0
- package/menu/index.d.ts +15 -0
- package/menu/package.json +3 -0
- package/menu/si-menu-action.service.d.ts +13 -0
- package/menu/si-menu-bar.directive.d.ts +12 -0
- package/menu/si-menu-divider.directive.d.ts +5 -0
- package/menu/si-menu-factory-item-guard.directive.d.ts +11 -0
- package/menu/si-menu-factory.component.d.ts +15 -0
- package/menu/si-menu-header.directive.d.ts +5 -0
- package/menu/si-menu-item-base.directive.d.ts +16 -0
- package/menu/si-menu-item-checkbox.component.d.ts +10 -0
- package/menu/si-menu-item-radio.component.d.ts +10 -0
- package/menu/si-menu-item.component.d.ts +10 -0
- package/menu/si-menu-model.d.ts +91 -0
- package/menu/si-menu.directive.d.ts +6 -0
- package/menu/si-menu.module.d.ts +14 -0
- package/modal/index.d.ts +7 -0
- package/modal/modal.helpers.d.ts +8 -0
- package/modal/modalref.d.ts +64 -0
- package/modal/package.json +3 -0
- package/modal/si-modal.component.d.ts +32 -0
- package/modal/si-modal.service.d.ts +57 -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 +139 -3
- package/pagination/index.d.ts +6 -0
- package/pagination/package.json +3 -0
- package/pagination/si-pagination.component.d.ts +65 -0
- package/pagination/si-pagination.module.d.ts +7 -0
- 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/password-toggle/index.d.ts +6 -0
- package/password-toggle/package.json +3 -0
- package/password-toggle/si-password-toggle.component.d.ts +39 -0
- package/password-toggle/si-password-toggle.module.d.ts +7 -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/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/summary-chip/index.d.ts +5 -0
- package/summary-chip/package.json +3 -0
- package/summary-chip/si-summary-chip.component.d.ts +44 -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/template-i18n.json +47 -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/tooltip/index.d.ts +7 -0
- package/tooltip/package.json +3 -0
- package/tooltip/si-tooltip.component.d.ts +25 -0
- package/tooltip/si-tooltip.directive.d.ts +45 -0
- package/tooltip/si-tooltip.module.d.ts +7 -0
- package/tooltip/si-tooltip.service.d.ts +44 -0
- package/translate/si-translatable-keys.interface.d.ts +46 -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/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,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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ConfigurableFocusTrap, ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
6
|
+
import { ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
7
|
+
import { SiSelectOptionsStrategy } from '../options/si-select-options-strategy';
|
|
8
|
+
import { SiSelectSelectionStrategy } from '../selection/si-select-selection-strategy';
|
|
9
|
+
import { SelectGroup, SelectOption } from '../si-select.types';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare abstract class SiSelectListBase<T> implements OnInit, OnDestroy {
|
|
12
|
+
readonly baseId: import("@angular/core").InputSignal<string>;
|
|
13
|
+
readonly optionTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
14
|
+
$implicit: SelectOption<T>;
|
|
15
|
+
}> | undefined>;
|
|
16
|
+
readonly groupTemplate: import("@angular/core").InputSignal<TemplateRef<{
|
|
17
|
+
$implicit: SelectGroup<T>;
|
|
18
|
+
}> | undefined>;
|
|
19
|
+
/** @defaultValue null */
|
|
20
|
+
readonly labelledby: import("@angular/core").InputSignal<string | null>;
|
|
21
|
+
readonly actionsTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
22
|
+
readonly closeOverlay: import("@angular/core").OutputEmitterRef<void>;
|
|
23
|
+
protected readonly selectionStrategy: SiSelectSelectionStrategy<T, T | T[]>;
|
|
24
|
+
protected readonly selectOptions: SiSelectOptionsStrategy<T>;
|
|
25
|
+
protected readonly focusTrapFactory: ConfigurableFocusTrapFactory;
|
|
26
|
+
protected readonly elementRef: ElementRef<any>;
|
|
27
|
+
protected rows: import("@angular/core").Signal<readonly import("../si-select.types").SelectItem<T>[]>;
|
|
28
|
+
protected focusTrap: ConfigurableFocusTrap;
|
|
29
|
+
protected multiSelect: boolean;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
protected keydownTab(): void;
|
|
33
|
+
protected closeOverlayAlways(): void;
|
|
34
|
+
protected closeOverlayIfSingle(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectListBase<any>, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectListBase<any>, never, never, { "baseId": { "alias": "baseId"; "required": true; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "groupTemplate": { "alias": "groupTemplate"; "required": false; "isSignal": true; }; "labelledby": { "alias": "labelledby"; "required": false; "isSignal": true; }; "actionsTemplate": { "alias": "actionsTemplate"; "required": false; "isSignal": true; }; }, { "closeOverlay": "closeOverlay"; }, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ListboxValueChangeEvent } from '@angular/cdk/listbox';
|
|
6
|
+
import { OnInit } from '@angular/core';
|
|
7
|
+
import { SiSelectListBase } from './si-select-list.base';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiSelectListComponent<T> extends SiSelectListBase<T> implements OnInit {
|
|
10
|
+
private readonly listbox;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
protected listBoxValueChange(changeEvent: ListboxValueChangeEvent<T>): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectListComponent<any>, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectListComponent<any>, "si-select-list", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import { SelectOption } from '../si-select.types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SiSelectOptionRowComponent {
|
|
9
|
+
readonly option: import("@angular/core").InputSignal<SelectOption<unknown>>;
|
|
10
|
+
readonly optionTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
11
|
+
/** @defaultValue false */
|
|
12
|
+
readonly selected: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
protected readonly icons: Record<"elementOk", string>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectOptionRowComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectOptionRowComponent, "si-select-option-row", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { SelectOption } from '../si-select.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiSelectOptionComponent {
|
|
5
|
+
readonly option: import("@angular/core").InputSignal<SelectOption<unknown>>;
|
|
6
|
+
readonly optionTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectOptionComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectOptionComponent, "si-select-option", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SiSelectSelectionStrategy } from './si-select-selection-strategy';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The directive enables the multi-select behavior.
|
|
5
|
+
* Otherwise, use the {@link SiSelectSingleValueDirective} directive.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```html
|
|
9
|
+
* <si-select multi [(value)]="multiValue" [options]="[
|
|
10
|
+
* { id: 'good', title: 'Good' },
|
|
11
|
+
* { id: 'average', title: 'Average' },
|
|
12
|
+
* { id: 'poor', title: 'Poor' }
|
|
13
|
+
* ]"></si-select>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare class SiSelectMultiValueDirective<T> extends SiSelectSelectionStrategy<T, T[]> {
|
|
17
|
+
/**
|
|
18
|
+
* {@inheritDoc SiSelectSelectionStrategy#allowMultiple}
|
|
19
|
+
* @defaultValue true
|
|
20
|
+
*/
|
|
21
|
+
readonly allowMultiple = true;
|
|
22
|
+
protected fromArrayValue(value: T[]): T[];
|
|
23
|
+
protected toArrayValue(value: T[] | undefined): T[];
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectMultiValueDirective<any>, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectMultiValueDirective<any>, "si-select[multi]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Signal } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Selection strategy base class.
|
|
10
|
+
*/
|
|
11
|
+
export declare abstract class SiSelectSelectionStrategy<T, IV = T | T[]> implements ControlValueAccessor {
|
|
12
|
+
/**
|
|
13
|
+
* Whether the select input is disabled.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* The selected value(s).
|
|
20
|
+
*/
|
|
21
|
+
set value(value: IV | undefined);
|
|
22
|
+
/** Emitted when the selection is changed */
|
|
23
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<IV>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the select control allows to select multiple values.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
abstract readonly allowMultiple: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Provides the internal value always as an array
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
readonly arrayValue: Signal<readonly T[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Registered form callback which shall be called on blur.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
onTouched: () => void;
|
|
39
|
+
/** @internal */
|
|
40
|
+
readonly disabled: Signal<boolean>;
|
|
41
|
+
protected onChange: (_: any) => void;
|
|
42
|
+
private readonly disabledNgControl;
|
|
43
|
+
private readonly selectOptions;
|
|
44
|
+
registerOnTouched(fn: any): void;
|
|
45
|
+
registerOnChange(fn: any): void;
|
|
46
|
+
/**
|
|
47
|
+
* CDK Listbox value changed handler.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
updateFromUser(values: T[]): void;
|
|
51
|
+
setDisabledState(isDisabled: boolean): void;
|
|
52
|
+
writeValue(obj: any): void;
|
|
53
|
+
protected abstract toArrayValue(value: IV | undefined): readonly T[];
|
|
54
|
+
protected abstract fromArrayValue(value: readonly T[]): IV;
|
|
55
|
+
private updateFromInput;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectSelectionStrategy<any, any>, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectSelectionStrategy<any, any>, never, never, { "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SiSelectSelectionStrategy } from './si-select-selection-strategy';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The directive enables the single-select behavior.
|
|
5
|
+
* Otherwise, use the {@link SiSelectMultiValueDirective} directive.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```html
|
|
9
|
+
* <si-select [(value)]="selectedValue" [options]="[
|
|
10
|
+
* { id: 'good', title: 'Good' },
|
|
11
|
+
* { id: 'average', title: 'Average' },
|
|
12
|
+
* { id: 'poor', title: 'Poor' }
|
|
13
|
+
* ]"></si-select>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare class SiSelectSingleValueDirective<T> extends SiSelectSelectionStrategy<T, T> {
|
|
17
|
+
/**
|
|
18
|
+
* {@inheritDoc SiSelectSelectionStrategy#allowMultiple}
|
|
19
|
+
* @defaultValue false
|
|
20
|
+
*/
|
|
21
|
+
allowMultiple: boolean;
|
|
22
|
+
protected toArrayValue(value: T | undefined): readonly T[];
|
|
23
|
+
protected fromArrayValue([value]: readonly T[]): T;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectSingleValueDirective<any>, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectSingleValueDirective<any>, "si-select:not([multi])", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiSelectActionDirective {
|
|
3
|
+
private readonly select;
|
|
4
|
+
/**
|
|
5
|
+
* Close the select drop down on click.
|
|
6
|
+
* @defaultValue false
|
|
7
|
+
*/
|
|
8
|
+
readonly selectActionAutoClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
protected close(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectActionDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectActionDirective, "[siSelectAction]", ["si-select-action"], { "selectActionAutoClose": { "alias": "selectActionAutoClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiSelectActionsDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectActionsDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectActionsDirective, "[siSelectActions]", ["si-select-actions"], {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SelectGroup } from './si-select.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The directive allows to template/customize the group option rendering.
|
|
5
|
+
* This requires using the {@link SiSelectComplexOptionsDirective} to specify complex options as input.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```html
|
|
9
|
+
* <si-select [complexOptions]="{ g1: ['g1.i1', 'g1.i2'], g2: ['g2.i1'] }" >
|
|
10
|
+
* <ng-template siSelectGroupTemplate let-group>{{ group.key | uppercase }}</ng-template>
|
|
11
|
+
* </si-select>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class SiSelectGroupTemplateDirective {
|
|
15
|
+
static ngTemplateContextGuard<T = any>(directive: SiSelectGroupTemplateDirective, context: unknown): context is {
|
|
16
|
+
$implicit: SelectGroup<T>;
|
|
17
|
+
};
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectGroupTemplateDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectGroupTemplateDirective, "[siSelectGroupTemplate]", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectOption } from './si-select.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiSelectOptionRowTemplateDirective {
|
|
4
|
+
static ngTemplateContextGuard<T = any>(directive: SiSelectOptionRowTemplateDirective, context: unknown): context is {
|
|
5
|
+
$implicit: SelectOption<T>;
|
|
6
|
+
};
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectOptionRowTemplateDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectOptionRowTemplateDirective, "[siSelectOptionRowTemplate]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SelectOption } from './si-select.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The directive allows to template/customize the value option rendering.
|
|
5
|
+
* This requires using the {@link SiSelectComplexOptionsDirective} to specify complex options as input.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```html
|
|
9
|
+
* <si-select [options]="[{ id: 'good', title: 'Good' }, { id: 'fair', title: 'Fair' }, { id: 'bad', title: 'Bad' }]" >
|
|
10
|
+
* <ng-template siSelectOptionTemplate let-option>{{ option.value | uppercase }}</ng-template>
|
|
11
|
+
* </si-select>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class SiSelectOptionTemplateDirective {
|
|
15
|
+
/** @internal */
|
|
16
|
+
static ngTemplateContextGuard<T = any>(directive: SiSelectOptionTemplateDirective, context: unknown): context is {
|
|
17
|
+
$implicit: SelectOption<T>;
|
|
18
|
+
};
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectOptionTemplateDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSelectOptionTemplateDirective, "[siSelectOptionTemplate]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|