@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,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { OnInit } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { SiFormItemControl } from '@siemens/element-ng/form';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiPillsInputComponent implements OnInit, ControlValueAccessor, SiFormItemControl {
|
|
10
|
+
private static idCounter;
|
|
11
|
+
/**
|
|
12
|
+
* The identifier of the pills-input. Will be generated if not provided.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue
|
|
15
|
+
* ```
|
|
16
|
+
* `__si-pills-input-${SiPillsInputComponent.idCounter++}`
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The aria-label for the inner input where users enter new items.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue
|
|
24
|
+
* ```
|
|
25
|
+
* $localize`:@@SI_PILLS_INPUT.INPUT_ELEMENT_ARIA_LABEL:Create item`
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
readonly inputElementAriaLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the pills-input is disabled.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue false
|
|
33
|
+
*/
|
|
34
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the pills-input is readonly
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue false
|
|
39
|
+
*/
|
|
40
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** The placeholder to be shown if no value is currently present. */
|
|
42
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* @defaultValue
|
|
45
|
+
* ```
|
|
46
|
+
* `${this.id()}-label`
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
readonly labelledby: import("@angular/core").InputSignal<string>;
|
|
50
|
+
/** @internal */
|
|
51
|
+
readonly errormessageId: string;
|
|
52
|
+
protected inputValue: string;
|
|
53
|
+
protected onTouched: () => void;
|
|
54
|
+
protected onChange: (val: any) => void;
|
|
55
|
+
protected readonly pills: import("@angular/core").WritableSignal<string[]>;
|
|
56
|
+
protected readonly activePillIndex: import("@angular/core").WritableSignal<number | undefined>;
|
|
57
|
+
protected readonly inputId: import("@angular/core").Signal<string>;
|
|
58
|
+
protected readonly disabled: import("@angular/core").Signal<boolean>;
|
|
59
|
+
protected readonly activeDescendant: import("@angular/core").Signal<string | null>;
|
|
60
|
+
protected readonly tabindex: import("@angular/core").Signal<0 | -1 | undefined>;
|
|
61
|
+
private readonly inputElement;
|
|
62
|
+
private readonly disabledNgControl;
|
|
63
|
+
private siPillsInputValueHandlerDirective;
|
|
64
|
+
private readonly cdRef;
|
|
65
|
+
private readonly elementRef;
|
|
66
|
+
ngOnInit(): void;
|
|
67
|
+
protected input(): void;
|
|
68
|
+
protected click(): void;
|
|
69
|
+
protected blur(): void;
|
|
70
|
+
protected keydownEnter(event: Event): void;
|
|
71
|
+
protected keydownBackspace(event: Event): void;
|
|
72
|
+
protected remove(index: number, focus?: boolean): void;
|
|
73
|
+
private rebuildValue;
|
|
74
|
+
protected arrowLeft(): void;
|
|
75
|
+
protected arrowRight(): void;
|
|
76
|
+
protected delete(): void;
|
|
77
|
+
/** @internal */
|
|
78
|
+
registerOnChange(fn: any): void;
|
|
79
|
+
/** @internal */
|
|
80
|
+
registerOnTouched(fn: () => void): void;
|
|
81
|
+
/** @internal */
|
|
82
|
+
setDisabledState(isDisabled: boolean): void;
|
|
83
|
+
/** @internal */
|
|
84
|
+
writeValue(value?: string[] | null): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPillsInputComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiPillsInputComponent, "si-pills-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "inputElementAriaLabel": { "alias": "inputElementAriaLabel"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "labelledby": { "alias": "labelledby"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-pills-input.component";
|
|
3
|
+
import * as i2 from "./si-pills-input-csv.directive";
|
|
4
|
+
import * as i3 from "./si-pills-input-email.directive";
|
|
5
|
+
export declare class SiPillsInputModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPillsInputModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiPillsInputModule, never, [typeof i1.SiPillsInputComponent, typeof i2.SiPillsInputCsvDirective, typeof i3.SiPillsInputEmailDirective], [typeof i1.SiPillsInputComponent, typeof i2.SiPillsInputCsvDirective, typeof i3.SiPillsInputEmailDirective]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiPillsInputModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
6
|
+
import { ElementRef, OnInit, TemplateRef } from '@angular/core';
|
|
7
|
+
import { OverlayArrowPosition } from '@siemens/element-ng/common';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class PopoverComponent implements OnInit {
|
|
10
|
+
readonly popover: import("@angular/core").InputSignal<string | TemplateRef<any> | undefined>;
|
|
11
|
+
/** @defaultValue '' */
|
|
12
|
+
readonly popoverTitle: import("@angular/core").InputSignal<string>;
|
|
13
|
+
/** @defaultValue '' */
|
|
14
|
+
readonly containerClass: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
readonly popoverContext: import("@angular/core").InputSignal<unknown>;
|
|
17
|
+
protected readonly positionClass: import("@angular/core").WritableSignal<string>;
|
|
18
|
+
protected readonly arrowPos: import("@angular/core").WritableSignal<OverlayArrowPosition | undefined>;
|
|
19
|
+
protected popoverTemplate: TemplateRef<any> | null;
|
|
20
|
+
private elementRef;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
/** @internal */
|
|
23
|
+
updateArrow(change: ConnectedOverlayPositionChange, anchor?: ElementRef): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "si-popover", never, { "popover": { "alias": "popover"; "required": false; "isSignal": true; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "popoverContext": { "alias": "popoverContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverDirective implements OnInit, OnDestroy {
|
|
4
|
+
/**
|
|
5
|
+
* The popover text to be displayed
|
|
6
|
+
*/
|
|
7
|
+
readonly siPopover: import("@angular/core").InputSignal<string | TemplateRef<any> | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* The placement of the popover. One of 'top', 'start', end', 'bottom'
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 'auto'
|
|
12
|
+
*/
|
|
13
|
+
readonly placement: import("@angular/core").InputSignal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
14
|
+
readonly placementInternal: import("@angular/core").Signal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
15
|
+
/**
|
|
16
|
+
* The trigger event(s) on which the popover shall be displayed.
|
|
17
|
+
* Applications can pass multiple triggers separated by space.
|
|
18
|
+
* Supported events are 'click', 'hover' and 'focus'.
|
|
19
|
+
*
|
|
20
|
+
* **Limitations:**
|
|
21
|
+
* Safari browsers do not raise a 'focus' event on host element click and 'focus'
|
|
22
|
+
* on tab key has to be enabled in the advanced browser settings.
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue 'click'
|
|
25
|
+
*/
|
|
26
|
+
readonly triggers: import("@angular/core").InputSignal<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The title to be displayed on top for the popover
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue ''
|
|
31
|
+
*/
|
|
32
|
+
readonly popoverTitle: import("@angular/core").InputSignal<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The class that will be applied to container of the popover
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue ''
|
|
37
|
+
*/
|
|
38
|
+
readonly containerClass: import("@angular/core").InputSignal<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The flag determines whether to close popover on clicking outside
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue true
|
|
43
|
+
*/
|
|
44
|
+
readonly outsideClick: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* The icon to be displayed besides popover title
|
|
47
|
+
*/
|
|
48
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Specify whether or not the popover is currently shown
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
readonly isOpen: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* The context for the attached template
|
|
57
|
+
*/
|
|
58
|
+
readonly popoverContext: import("@angular/core").InputSignal<unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Emits an event when the popover is shown
|
|
61
|
+
*/
|
|
62
|
+
readonly shown: import("@angular/core").OutputEmitterRef<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Emits an event when the popover is hidden
|
|
65
|
+
*/
|
|
66
|
+
readonly hidden: import("@angular/core").OutputEmitterRef<void>;
|
|
67
|
+
private overlayref?;
|
|
68
|
+
private overlay;
|
|
69
|
+
private elementRef;
|
|
70
|
+
private destroyer;
|
|
71
|
+
ngOnInit(): void;
|
|
72
|
+
ngOnDestroy(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Displays popover and emits 'shown' event.
|
|
75
|
+
*/
|
|
76
|
+
show(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Hides the popover and emits 'hidden' event.
|
|
79
|
+
*/
|
|
80
|
+
hide(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Updates the position of the popover based on the position strategy.
|
|
83
|
+
*/
|
|
84
|
+
updatePosition(): void;
|
|
85
|
+
protected onTrigger(trigger: string): void;
|
|
86
|
+
protected focusOut(): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverDirective, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverDirective, "[siPopover]", ["si-popover"], { "siPopover": { "alias": "siPopover"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "triggers": { "alias": "triggers"; "required": false; "isSignal": true; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "outsideClick": { "alias": "outsideClick"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "popoverContext": { "alias": "popoverContext"; "required": false; "isSignal": true; }; }, { "shown": "shown"; "hidden": "hidden"; }, never, never, true, never>;
|
|
89
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-popover.directive";
|
|
3
|
+
export declare class SiPopoverModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiPopoverModule, never, [typeof i1.SiPopoverDirective], [typeof i1.SiPopoverDirective]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiPopoverModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PopoverComponent } from './si-popover.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverDescriptionDirective {
|
|
4
|
+
readonly popover: PopoverComponent;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverDescriptionDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverDescriptionDirective, "si-popover-description", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverNextDirective implements OnDestroy {
|
|
4
|
+
private static idCounter;
|
|
5
|
+
/**
|
|
6
|
+
* The popover text to be displayed
|
|
7
|
+
*/
|
|
8
|
+
readonly siPopoverNext: import("@angular/core").InputSignal<string | TemplateRef<unknown> | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* The placement of the popover. One of 'top', 'start', end', 'bottom'
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue 'auto'
|
|
13
|
+
*/
|
|
14
|
+
readonly placement: import("@angular/core").InputSignal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
15
|
+
readonly placementInternal: import("@angular/core").Signal<"auto" | "start" | "end" | "top" | "bottom">;
|
|
16
|
+
/**
|
|
17
|
+
* The title to be displayed on top for the popover
|
|
18
|
+
*/
|
|
19
|
+
readonly popoverTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* The class that will be applied to container of the popover
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue ''
|
|
24
|
+
*/
|
|
25
|
+
readonly containerClass: import("@angular/core").InputSignal<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The icon to be displayed besides popover title
|
|
28
|
+
*/
|
|
29
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The context for the attached template
|
|
32
|
+
*/
|
|
33
|
+
readonly popoverContext: import("@angular/core").InputSignal<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Emits an event when the popover is shown/hidden
|
|
36
|
+
*/
|
|
37
|
+
readonly visibilityChange: import("@angular/core").OutputEmitterRef<void>;
|
|
38
|
+
readonly popoverCounter: number;
|
|
39
|
+
readonly popoverId: string;
|
|
40
|
+
protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
41
|
+
private overlayref?;
|
|
42
|
+
private overlay;
|
|
43
|
+
private elementRef;
|
|
44
|
+
private destroyer;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Displays popover and emits 'shown' event.
|
|
48
|
+
*/
|
|
49
|
+
show(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Hides the popover and emits 'hidden' event.
|
|
52
|
+
*/
|
|
53
|
+
hide(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the position of the popover based on the position strategy.
|
|
56
|
+
*/
|
|
57
|
+
updatePosition(): void;
|
|
58
|
+
protected onClick(): void;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverNextDirective, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverNextDirective, "[siPopoverNext]", ["si-popover-next"], { "siPopoverNext": { "alias": "siPopoverNext"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "popoverTitle": { "alias": "popoverTitle"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "popoverContext": { "alias": "popoverContext"; "required": false; "isSignal": true; }; }, { "visibilityChange": "visibilityChange"; }, never, never, true, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PopoverComponent } from './si-popover.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiPopoverTitleDirective {
|
|
4
|
+
readonly popover: PopoverComponent;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiPopoverTitleDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiPopoverTitleDirective, "si-popover-title", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { OverlayArrowPosition } from '@siemens/element-ng/common';
|
|
4
|
+
import { SiPopoverNextDirective } from './si-popover-next.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PopoverComponent implements OnInit, OnDestroy {
|
|
7
|
+
readonly popoverDirective: import("@angular/core").InputSignal<SiPopoverNextDirective>;
|
|
8
|
+
readonly popoverWrapper: import("@angular/core").Signal<ElementRef<any>>;
|
|
9
|
+
protected readonly positionClass: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
protected readonly arrowPos: import("@angular/core").WritableSignal<OverlayArrowPosition | undefined>;
|
|
11
|
+
protected popoverTemplate: TemplateRef<any> | null;
|
|
12
|
+
protected injector: Injector;
|
|
13
|
+
protected labelledBy: string | undefined;
|
|
14
|
+
protected describedBy: string | undefined;
|
|
15
|
+
private elementRef;
|
|
16
|
+
private focusTrapFactory;
|
|
17
|
+
private focusTrap?;
|
|
18
|
+
private readonly previouslyActiveElement;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
/** @internal */
|
|
22
|
+
updateArrow(change: ConnectedOverlayPositionChange, anchor?: ElementRef): void;
|
|
23
|
+
hide(): void;
|
|
24
|
+
private applyFocus;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "si-popover", never, { "popoverDirective": { "alias": "popoverDirective"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SiProgressbarComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Needed for a11y
|
|
5
|
+
*
|
|
6
|
+
* @defaultValue
|
|
7
|
+
* ```
|
|
8
|
+
* $localize`:@@SI_PROGRESSBAR.LABEL:Progress`
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
readonly ariaLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
12
|
+
/**
|
|
13
|
+
* Max value for progressbar
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue 100
|
|
16
|
+
*/
|
|
17
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Current value
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue 0
|
|
22
|
+
*/
|
|
23
|
+
readonly value: import("@angular/core").InputSignal<number | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Heading to display on top of progress bar.
|
|
26
|
+
*/
|
|
27
|
+
readonly heading: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional progress text to be shown on top right (in LTR).
|
|
30
|
+
* It can be percentage value or a progress status. E.g `50 %` or `Downloading 2/8`.
|
|
31
|
+
*/
|
|
32
|
+
readonly progress: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Height for progress bar.
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue 'normal'
|
|
37
|
+
*/
|
|
38
|
+
readonly height: import("@angular/core").InputSignal<ProgressbarHeight>;
|
|
39
|
+
protected readonly percent: import("@angular/core").Signal<number>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiProgressbarComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiProgressbarComponent, "si-progressbar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
export type ProgressbarHeight = 'small' | 'normal';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-progressbar.component";
|
|
3
|
+
export declare class SiProgressbarModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiProgressbarModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiProgressbarModule, never, [typeof i1.SiProgressbarComponent], [typeof i1.SiProgressbarComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiProgressbarModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,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
|
+
}
|