@siemens/element-ng 47.2.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/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/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/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-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-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 +12 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- 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-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-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-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-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/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 +10 -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/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/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 +75 -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/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-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 +29 -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 +28 -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,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
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AfterContentInit, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SiFormItemControl } from '@siemens/element-ng/form';
|
|
3
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
4
|
+
import { SiSelectSelectionStrategy } from './selection/si-select-selection-strategy';
|
|
5
|
+
import { SelectGroup, SelectItem, SelectOption } from './si-select.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SiSelectComponent<T> implements OnChanges, AfterContentInit, SiFormItemControl {
|
|
8
|
+
private static idCounter;
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier.
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue
|
|
13
|
+
* ```
|
|
14
|
+
* `__si-select-${SiSelectComponent.idCounter++}`
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Aria label of the select.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue null
|
|
22
|
+
*/
|
|
23
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Aria labelledby of the select.
|
|
26
|
+
* @defaultValue undefined
|
|
27
|
+
*/
|
|
28
|
+
readonly labelledbyInput: import("@angular/core").InputSignal<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Placeholder for search input field.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue
|
|
33
|
+
* ```
|
|
34
|
+
* $localize`:@@SI_SELECT.SEARCH-PLACEHOLDER:Search...`
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
readonly filterPlaceholder: import("@angular/core").InputSignal<TranslatableString>;
|
|
38
|
+
/**
|
|
39
|
+
* Label if no item can be found.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue
|
|
42
|
+
* ```
|
|
43
|
+
* $localize`:@@SI_SELECT.NO-RESULTS-FOUND:No results found`
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
readonly noResultsFoundLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
47
|
+
/** Placeholder text to display when no options are selected. */
|
|
48
|
+
readonly placeholder: import("@angular/core").InputSignal<TranslatableString | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Readonly state. Similar to disabled but with higher contrast *
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Emits on selection dropdown close.
|
|
57
|
+
* @deprecated Use {@link openChange} instead.
|
|
58
|
+
*/
|
|
59
|
+
readonly dropdownClose: import("@angular/core").OutputEmitterRef<void>;
|
|
60
|
+
/** Emits when the dropdown open state changes. */
|
|
61
|
+
readonly openChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
62
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
63
|
+
protected readonly optionTemplate: import("@angular/core").Signal<TemplateRef<{
|
|
64
|
+
$implicit: SelectOption<T>;
|
|
65
|
+
}> | undefined>;
|
|
66
|
+
protected readonly groupTemplate: import("@angular/core").Signal<TemplateRef<{
|
|
67
|
+
$implicit: SelectGroup<T>;
|
|
68
|
+
}> | undefined>;
|
|
69
|
+
protected readonly actionsTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
70
|
+
private readonly trigger;
|
|
71
|
+
/** @internal */
|
|
72
|
+
readonly labelledby: import("@angular/core").Signal<string>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
readonly errormessageId: string;
|
|
75
|
+
protected rows: readonly SelectItem<T>[];
|
|
76
|
+
protected overlayWidth: number;
|
|
77
|
+
protected readonly selectionStrategy: SiSelectSelectionStrategy<any, any>;
|
|
78
|
+
private backdropClicked;
|
|
79
|
+
private readonly selectOptions;
|
|
80
|
+
/**
|
|
81
|
+
* Enables the filter input
|
|
82
|
+
* @defaultValue false
|
|
83
|
+
* @defaultref {@link SiSelectComponent#_hasFilter}
|
|
84
|
+
*/
|
|
85
|
+
readonly hasFilter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
87
|
+
ngAfterContentInit(): void;
|
|
88
|
+
/** Opens the `si-select`. */
|
|
89
|
+
open(): void;
|
|
90
|
+
/** Closes the `si-select`. */
|
|
91
|
+
close(): void;
|
|
92
|
+
protected backdropClick(): void;
|
|
93
|
+
private verifyValueProvider;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectComponent<any>, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiSelectComponent<any>, "si-select", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "labelledbyInput": { "alias": "labelledby"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "noResultsFoundLabel": { "alias": "noResultsFoundLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, { "dropdownClose": "dropdownClose"; "openChange": "openChange"; }, ["optionTemplate", "groupTemplate", "actionsTemplate"], never, true, never>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-select-action.directive";
|
|
3
|
+
import * as i2 from "./si-select-actions.directive";
|
|
4
|
+
import * as i3 from "./options/si-select-complex-options.directive";
|
|
5
|
+
import * as i4 from "./si-select.component";
|
|
6
|
+
import * as i5 from "./si-select-group-template.directive";
|
|
7
|
+
import * as i6 from "./selection/si-select-multi-value.directive";
|
|
8
|
+
import * as i7 from "./si-select-option-template.directive";
|
|
9
|
+
import * as i8 from "./options/si-select-simple-options.directive";
|
|
10
|
+
import * as i9 from "./selection/si-select-single-value.directive";
|
|
11
|
+
export declare class SiSelectModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSelectModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiSelectModule, never, [typeof i1.SiSelectActionDirective, typeof i2.SiSelectActionsDirective, typeof i3.SiSelectComplexOptionsDirective, typeof i4.SiSelectComponent, typeof i5.SiSelectGroupTemplateDirective, typeof i6.SiSelectMultiValueDirective, typeof i7.SiSelectOptionTemplateDirective, typeof i8.SiSelectSimpleOptionsDirective, typeof i9.SiSelectSingleValueDirective], [typeof i1.SiSelectActionDirective, typeof i2.SiSelectActionsDirective, typeof i3.SiSelectComplexOptionsDirective, typeof i4.SiSelectComponent, typeof i5.SiSelectGroupTemplateDirective, typeof i6.SiSelectMultiValueDirective, typeof i7.SiSelectOptionTemplateDirective, typeof i8.SiSelectSimpleOptionsDirective, typeof i9.SiSelectSingleValueDirective]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiSelectModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Use {@link SelectOption} instead.
|
|
6
|
+
*/
|
|
7
|
+
export interface SelectOptionLegacy {
|
|
8
|
+
/** Defines this to be the deprecated option. */
|
|
9
|
+
type?: undefined;
|
|
10
|
+
/** Identifies the option, will be used as `value` for the component */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Title to display */
|
|
13
|
+
title: string;
|
|
14
|
+
/** Optional icon to display */
|
|
15
|
+
icon?: string;
|
|
16
|
+
/** Optional color class for the icon */
|
|
17
|
+
color?: string;
|
|
18
|
+
/** Is the option disabled? */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** A select option group */
|
|
22
|
+
export interface SelectGroup<T> {
|
|
23
|
+
/** Defines this to be a group. */
|
|
24
|
+
type: 'group';
|
|
25
|
+
/** An optional key to identify this group in a custom template. */
|
|
26
|
+
key?: string;
|
|
27
|
+
/** A label to be shown as header for this group. Is optional if a custom template is provided. */
|
|
28
|
+
label?: string;
|
|
29
|
+
/** All options that are part of this group. */
|
|
30
|
+
options: SelectOption<T>[];
|
|
31
|
+
}
|
|
32
|
+
/** A select option */
|
|
33
|
+
export interface SelectOption<T> {
|
|
34
|
+
/** Defines this to be an option. */
|
|
35
|
+
type: 'option';
|
|
36
|
+
/**
|
|
37
|
+
* The value if this option.
|
|
38
|
+
* It will be used for formControls and the value property of this `si-select`.
|
|
39
|
+
* The value will internally be checked on equality by using `===`.
|
|
40
|
+
* So an app should either use `string` or ensure that same values are referentially equal.
|
|
41
|
+
*/
|
|
42
|
+
value: T;
|
|
43
|
+
/** Whether this option is disabled. */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** An optional icon. */
|
|
46
|
+
icon?: string;
|
|
47
|
+
/** The color of an icon. */
|
|
48
|
+
iconColor?: string;
|
|
49
|
+
/** An optional stacked icon. */
|
|
50
|
+
stackedIcon?: string;
|
|
51
|
+
/** The color of a stacked icon. */
|
|
52
|
+
stackedIconColor?: string;
|
|
53
|
+
/**
|
|
54
|
+
* A label to be shown for this option.
|
|
55
|
+
* Is optional if a custom template is provided or if the value should directly be rendered.
|
|
56
|
+
*/
|
|
57
|
+
label?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Used for typeahead functionality when filtering is disabled.
|
|
60
|
+
* If provided, this will be used, otherwise the innerText of the rendered element.
|
|
61
|
+
*/
|
|
62
|
+
typeaheadLabel?: string;
|
|
63
|
+
}
|
|
64
|
+
/** Alias for {@link SelectOption} or {@link SelectGroup} */
|
|
65
|
+
export type SelectItem<T> = SelectGroup<T> | SelectOption<T>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
6
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Directive to mark an element as a target for a skip link.
|
|
10
|
+
* If this directive is applied to a none interactive element, a tabindex of -1 must be added manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SiSkipLinkTargetDirective implements OnInit, OnDestroy {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the skip link target which will be shown in the skip link.
|
|
15
|
+
*/
|
|
16
|
+
readonly name: import("@angular/core").InputSignal<TranslatableString>;
|
|
17
|
+
private skipLinkService;
|
|
18
|
+
private elementRef;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Call this methode to "activate" a skip link target. It will focus this element and scroll it into the view.
|
|
23
|
+
*/
|
|
24
|
+
jumpToThisTarget(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiSkipLinkTargetDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiSkipLinkTargetDirective, "[siSkipLinkTarget]", never, { "name": { "alias": "siSkipLinkTarget"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|