@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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { DoCheck } from '@angular/core';
|
|
6
|
+
import { SiFormItemComponent } from '../si-form-item/si-form-item.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SiFormFieldsetComponent implements DoCheck {
|
|
9
|
+
private static labelIdCounter;
|
|
10
|
+
/** The label for the entire fieldset. */
|
|
11
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
12
|
+
/** Overrides the parent label width. */
|
|
13
|
+
readonly labelWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Adds a required marker to the label
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Switches all child inputs to inline mode
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
readonly inline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
private readonly formItems;
|
|
27
|
+
/** @internal */
|
|
28
|
+
readonly hasOnlyRadios: import("@angular/core").Signal<boolean>;
|
|
29
|
+
protected readonly errors: import("@angular/core").Signal<import("../si-form-item/si-form-item.component").SiFormError[]>;
|
|
30
|
+
protected readonly touched: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
protected readonly isRequired: import("@angular/core").Signal<boolean>;
|
|
32
|
+
protected labelId: string;
|
|
33
|
+
ngDoCheck(): void;
|
|
34
|
+
/** @internal */
|
|
35
|
+
registerFormItem(item: SiFormItemComponent): void;
|
|
36
|
+
/** @internal */
|
|
37
|
+
unregisterFormItem(item: SiFormItemComponent): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormFieldsetComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiFormFieldsetComponent, "si-form-fieldset", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
40
|
+
}
|
package/form/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
export * from './si-form-container/si-form-container.component';
|
|
6
|
+
export * from './si-form-item/si-form-item.component';
|
|
7
|
+
export * from './si-form-validation-tooltip/si-form-validation-tooltip.directive';
|
|
8
|
+
export * from './form-fieldset/si-form-fieldset.component';
|
|
9
|
+
export * from './si-form-item-control-input.directive';
|
|
10
|
+
export * from './si-form.module';
|
|
11
|
+
export * from './si-form-item-control-input.directive';
|
|
12
|
+
export * from './si-form-item.control';
|
|
13
|
+
export * from './si-form-validation-error.provider';
|
|
14
|
+
export * from './si-form-validation-error.model';
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { Breakpoints } from '@siemens/element-ng/resize-observer';
|
|
3
|
+
import { SiFormValidationErrorMapper } from '../si-form-validation-error.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface SiFormValidationError {
|
|
6
|
+
controlName?: string;
|
|
7
|
+
controlNameTranslationKey?: string;
|
|
8
|
+
errorCode: string;
|
|
9
|
+
errorCodeTranslationKey?: string;
|
|
10
|
+
errorParams?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare class SiFormContainerComponent<TControl extends {
|
|
13
|
+
[K in keyof TControl]: AbstractControl;
|
|
14
|
+
}> {
|
|
15
|
+
/**
|
|
16
|
+
* Set the form entity to the container to enable the overall form validation on in
|
|
17
|
+
* the form container edit panel.
|
|
18
|
+
*/
|
|
19
|
+
readonly form: import("@angular/core").InputSignal<FormGroup<TControl> | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* A form container in readonly mode is only displaying the form content without ability
|
|
22
|
+
* to change it. The edit panel with typically save and cancel buttons is hidden. Set
|
|
23
|
+
* to true to display the edit panel.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue false
|
|
26
|
+
*/
|
|
27
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* The container hosts the form within a siResizeContainer to configure the breakpoint for
|
|
30
|
+
* different screen sizes. Optionally, change the container breakpoints with the contentContainerBreakpoints
|
|
31
|
+
* input.
|
|
32
|
+
*/
|
|
33
|
+
readonly contentContainerBreakpoints: import("@angular/core").InputSignal<Breakpoints | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* In some scenarios, one may not want the form container to be responsible for the layout relevant
|
|
36
|
+
* `si-container-[xs|...]` classes, but let this be done by a different, nested component, e.g. by a
|
|
37
|
+
* group box. In these cases, the property should be set to true.
|
|
38
|
+
*
|
|
39
|
+
* @defaultValue false
|
|
40
|
+
*/
|
|
41
|
+
readonly disableContainerBreakpoints: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
42
|
+
/**
|
|
43
|
+
* Every validation error has an errorCode. This map holds translate keys for error codes. The keys can
|
|
44
|
+
* be used to display a translated message for each validation error. The defaults old english readable
|
|
45
|
+
* key defaults for the Angular standard validators of the `Validators` class like `min`, `max` or `required`.
|
|
46
|
+
*
|
|
47
|
+
* Use the input to set your own translate keys for the form validators you need.
|
|
48
|
+
*/
|
|
49
|
+
readonly errorCodeTranslateKeyMap: import("@angular/core").InputSignal<SiFormValidationErrorMapper | Map<string, string> | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* A map the maps from control names of the form to their translate keys.
|
|
52
|
+
* The initial map is empty and the user is responsible to add the required
|
|
53
|
+
* translate keys.
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue
|
|
56
|
+
* ```
|
|
57
|
+
* new Map<string, string>()
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
readonly controlNameTranslateKeyMap: import("@angular/core").InputSignal<Map<string, string>>;
|
|
61
|
+
/**
|
|
62
|
+
* Disables the automatic error printing in all nested {@link SiFormItemComponent}. Error printing will be enabled by default in v46.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue false
|
|
65
|
+
*/
|
|
66
|
+
readonly disableErrorPrinting: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* A custom width value to be applied to all labels.
|
|
69
|
+
*
|
|
70
|
+
* @example labelWidth="100px".
|
|
71
|
+
*/
|
|
72
|
+
readonly labelWidth: import("@angular/core").InputSignal<string | undefined>;
|
|
73
|
+
protected hasParentContainer: boolean;
|
|
74
|
+
private errorResolver;
|
|
75
|
+
/** @internal */
|
|
76
|
+
readonly formErrorMapper: import("@angular/core").Signal<{
|
|
77
|
+
[x: string]: string | ((error: any) => string) | undefined;
|
|
78
|
+
required?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
79
|
+
required: boolean;
|
|
80
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
81
|
+
requiredTrue?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
82
|
+
required: boolean;
|
|
83
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
84
|
+
email?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
85
|
+
email: boolean;
|
|
86
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
87
|
+
min?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
88
|
+
min: number;
|
|
89
|
+
actual: number;
|
|
90
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
91
|
+
max?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
92
|
+
max: number;
|
|
93
|
+
actual: number;
|
|
94
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
95
|
+
minLength?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
96
|
+
requiredLength: number;
|
|
97
|
+
actualLength: number;
|
|
98
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
99
|
+
maxLength?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
100
|
+
requiredLength: number;
|
|
101
|
+
actualLength: number;
|
|
102
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
103
|
+
pattern?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
104
|
+
pattern: string | RegExp;
|
|
105
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
106
|
+
numberFormat?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
107
|
+
numberFormat: boolean;
|
|
108
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
109
|
+
dateFormat?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
110
|
+
format: string;
|
|
111
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
112
|
+
maxDate?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
113
|
+
max: Date;
|
|
114
|
+
actual: Date;
|
|
115
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
116
|
+
minDate?: import("@siemens/element-translate-ng/translate").TranslatableString | ((error: {
|
|
117
|
+
min: Date;
|
|
118
|
+
actual: Date;
|
|
119
|
+
}) => import("@siemens/element-translate-ng/translate").TranslatableString);
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Indicates whether the user interacted with the form.
|
|
123
|
+
* @returns `true`, if the user selected at least one form element and
|
|
124
|
+
* [blurred]{@link https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event} by losing focus again
|
|
125
|
+
* (e.g. by setting focus on another element), or by editing the content of a form element.
|
|
126
|
+
* Otherwise `false`.
|
|
127
|
+
*/
|
|
128
|
+
get userInteractedWithForm(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Indicates whether content editor message shall be styled as success.
|
|
131
|
+
* @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and
|
|
132
|
+
* the form is valid.
|
|
133
|
+
*/
|
|
134
|
+
get validFormContainerMessage(): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Indicates whether the content editor message shall be styled as warning.
|
|
137
|
+
* @returns `true`, if {@link SiFormContainerComponent.userInteractedWithForm} is true and
|
|
138
|
+
* the form is invalid.
|
|
139
|
+
*/
|
|
140
|
+
get invalidFormContainerMessage(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Returns the validation errors of the form's control when the control name is provided. Otherwise,
|
|
143
|
+
* returns all validation errors of the form. Returns an empty arry when no form is available or if
|
|
144
|
+
* the name does not match to a control.
|
|
145
|
+
* @param controlName - An optional name of a control that is part of the form.
|
|
146
|
+
*
|
|
147
|
+
* @deprecated The {@link SiFormItemComponent} is able to display validation errors automatically when `siFormInput` directive is used.
|
|
148
|
+
*/
|
|
149
|
+
getValidationErrors(controlName?: string): SiFormValidationError[];
|
|
150
|
+
protected getControlNameTranslateKey(controlName: string): string | undefined;
|
|
151
|
+
private getFormValidationErrorsPrivate;
|
|
152
|
+
private getFormGroupErrors;
|
|
153
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormContainerComponent<any>, never>;
|
|
154
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiFormContainerComponent<any>, "si-form-container", never, { "form": { "alias": "form"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "contentContainerBreakpoints": { "alias": "contentContainerBreakpoints"; "required": false; "isSignal": true; }; "disableContainerBreakpoints": { "alias": "disableContainerBreakpoints"; "required": false; "isSignal": true; }; "errorCodeTranslateKeyMap": { "alias": "errorCodeTranslateKeyMap"; "required": false; "isSignal": true; }; "controlNameTranslateKeyMap": { "alias": "controlNameTranslateKeyMap"; "required": false; "isSignal": true; }; "disableErrorPrinting": { "alias": "disableErrorPrinting"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; }, {}, never, ["[si-form-container-message]", "[si-form-container-buttons]", "[si-form-container-content]"], true, never>;
|
|
155
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
6
|
+
import { SiFormItemControl } from '../si-form-item.control';
|
|
7
|
+
/**
|
|
8
|
+
* This will be used by the `si-form-item` to create a form item control if none is provided.
|
|
9
|
+
* This is typically the case for native form controls like `input`, `textarea` and `select`.
|
|
10
|
+
* It allows accessing the control's id and type.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SiFormFieldNativeControl implements SiFormItemControl {
|
|
13
|
+
private readonly element;
|
|
14
|
+
private static idCounter;
|
|
15
|
+
private static readonly supportedTypes;
|
|
16
|
+
static createForElementRef(element: ElementRef<HTMLElement> | undefined): SiFormFieldNativeControl | undefined;
|
|
17
|
+
private constructor();
|
|
18
|
+
isFormCheck: boolean;
|
|
19
|
+
get id(): string;
|
|
20
|
+
set id(value: string);
|
|
21
|
+
readonly errormessageId: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgControl, RequiredValidator } from '@angular/forms';
|
|
3
|
+
import { SiFormFieldsetComponent } from '../form-fieldset/si-form-fieldset.component';
|
|
4
|
+
import { SiFormContainerComponent } from '../si-form-container/si-form-container.component';
|
|
5
|
+
import { SiFormItemControl } from '../si-form-item.control';
|
|
6
|
+
import { SiFormValidationErrorMapper } from '../si-form-validation-error.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export interface SiFormError {
|
|
10
|
+
key: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
params: any;
|
|
13
|
+
}
|
|
14
|
+
export declare class SiFormItemComponent implements AfterContentInit, AfterViewInit, AfterContentChecked, OnChanges, OnInit, OnDestroy {
|
|
15
|
+
/** @deprecated property has longer an effect. SiFormItem detects IDs automatically */
|
|
16
|
+
inputId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The label to be displayed in the form item.
|
|
19
|
+
* It will be translated if a translation key is available.
|
|
20
|
+
*/
|
|
21
|
+
readonly label: import("@angular/core").InputSignal<string | null | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* A custom width value to be applied to the label.
|
|
24
|
+
* A value of 0 is allowed as well to visually hide away the label area.
|
|
25
|
+
*
|
|
26
|
+
* Numbers will be converted to pixels.
|
|
27
|
+
* Using numbers is discouraged and might be dropped.
|
|
28
|
+
*
|
|
29
|
+
* @example labelWidth="100px"
|
|
30
|
+
*/
|
|
31
|
+
readonly labelWidth: import("@angular/core").InputSignal<string | number | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated This input has no effect and can be removed.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue false
|
|
36
|
+
*/
|
|
37
|
+
readonly: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Disables the automatic error printing. Error printing will be enabled by default in v46.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue false
|
|
42
|
+
*/
|
|
43
|
+
readonly disableErrorPrinting: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
readonly formErrorMapper: import("@angular/core").InputSignal<SiFormValidationErrorMapper | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Defines that this form item is required for the overall form to be valid.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue false
|
|
49
|
+
*/
|
|
50
|
+
readonly requiredInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
protected readonly fieldControlQuery: import("@angular/core").Signal<SiFormItemControl | undefined>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
readonly ngControl: import("@angular/core").Signal<NgControl | undefined>;
|
|
54
|
+
protected readonly controlElementRef: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
55
|
+
protected readonly requiredValidator: import("@angular/core").Signal<RequiredValidator | undefined>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
readonly errors: import("@angular/core").WritableSignal<SiFormError[]>;
|
|
58
|
+
/** @deprecated Remove with v48 */
|
|
59
|
+
protected readonly isLegacyMode: import("@angular/core").WritableSignal<boolean>;
|
|
60
|
+
protected fieldset: SiFormFieldsetComponent | null;
|
|
61
|
+
protected container: SiFormContainerComponent<{
|
|
62
|
+
[x: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
63
|
+
}> | null;
|
|
64
|
+
protected get formItemId(): string | null;
|
|
65
|
+
protected get formItemLabelledBy(): string | null;
|
|
66
|
+
protected get formItemErrormessageId(): string | null;
|
|
67
|
+
protected readonly fieldControl: import("@angular/core").Signal<SiFormItemControl | undefined>;
|
|
68
|
+
private elementRef;
|
|
69
|
+
private validationErrorService;
|
|
70
|
+
private requiredTestControl;
|
|
71
|
+
private validator?;
|
|
72
|
+
private previousErrors?;
|
|
73
|
+
private readonly hasRequiredValidator;
|
|
74
|
+
private readonly fieldControlNative;
|
|
75
|
+
protected readonly labelWidthCssVar: import("@angular/core").Signal<string | undefined>;
|
|
76
|
+
protected readonly printErrors: import("@angular/core").Signal<boolean>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
readonly required: import("@angular/core").Signal<boolean>;
|
|
79
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
80
|
+
ngOnInit(): void;
|
|
81
|
+
ngAfterContentInit(): void;
|
|
82
|
+
ngAfterContentChecked(): void;
|
|
83
|
+
ngAfterViewInit(): void;
|
|
84
|
+
ngOnDestroy(): void;
|
|
85
|
+
private updateRequiredState;
|
|
86
|
+
private updateValidationMessages;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormItemComponent, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiFormItemComponent, "si-form-item", never, { "inputId": { "alias": "inputId"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelWidth": { "alias": "labelWidth"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; }; "disableErrorPrinting": { "alias": "disableErrorPrinting"; "required": false; "isSignal": true; }; "formErrorMapper": { "alias": "formErrorMapper"; "required": false; "isSignal": true; }; "requiredInput": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, ["fieldControlQuery", "ngControl", "controlElementRef", "requiredValidator"], ["input[type='checkbox'], input[type='radio']", "*"], true, never>;
|
|
89
|
+
static ngAcceptInputType_readonly: unknown;
|
|
90
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SiFormItemControl } from './si-form-item.control';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** @deprecated This directive is no longer needed. {@link SiFormItemComponent} will detect native controls automatically. */
|
|
4
|
+
export declare class SiFormItemControlInputDirective implements SiFormItemControl {
|
|
5
|
+
private static idCounter;
|
|
6
|
+
id: string;
|
|
7
|
+
set type(value: string);
|
|
8
|
+
protected formControlClass: string;
|
|
9
|
+
/**
|
|
10
|
+
* Indicate the form item is a checkbox or radio input.
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
isFormCheck: boolean;
|
|
14
|
+
/** @internal */
|
|
15
|
+
readonly errormessageId: string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormItemControlInputDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiFormItemControlInputDirective, "[siFormItemControl]", never, { "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
6
|
+
export declare const SI_FORM_ITEM_CONTROL: InjectionToken<SiFormItemControl>;
|
|
7
|
+
/**
|
|
8
|
+
* Common interface for form item controls.
|
|
9
|
+
* Controls that should be connected to {@link SiFormItemComponent} must implement this interface
|
|
10
|
+
* and must be provided using the {@link SI_FORM_ITEM_CONTROL} token.
|
|
11
|
+
*/
|
|
12
|
+
export interface SiFormItemControl {
|
|
13
|
+
/** The actual id of the control that should be used in the `for` attribute of a label. */
|
|
14
|
+
readonly id?: string | Signal<string | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* ID that should be assigned to the label element inside the {@link SiFormItemComponent}.
|
|
17
|
+
*
|
|
18
|
+
* If the target control is not of type <i>input</i>, <i>select</i> or <i>button</i>, it cannot be referenced by a label.
|
|
19
|
+
* Instead, aria-labelledby must be used to create a reference to a label.
|
|
20
|
+
* In such a case, an implementation of {@link SiFormItemControl} must provide the id of the label in {@link labelledby}.
|
|
21
|
+
* {@link SiFormItemComponent} will apply the id to the label
|
|
22
|
+
* so that it can be used inside the control to reference it in the aria-labelledby attribute.
|
|
23
|
+
*/
|
|
24
|
+
readonly labelledby?: string | Signal<string | undefined> | null;
|
|
25
|
+
/**
|
|
26
|
+
* Generated ID that the {@link SiFormItemComponent} will assign to the element containing the error messages.
|
|
27
|
+
* Implementations of {@link SiFormItemControl} must generate this ID
|
|
28
|
+
* and assign it to the `aria-describedby` attribute of their focusable elements.
|
|
29
|
+
*
|
|
30
|
+
* This property will be required with v48.
|
|
31
|
+
*/
|
|
32
|
+
readonly errormessageId?: string | Signal<string | undefined>;
|
|
33
|
+
/** If the control is meant to be used a checkbox. This affects the label positioning. */
|
|
34
|
+
readonly isFormCheck?: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
6
|
+
/**
|
|
7
|
+
* Interface for form error mapper.
|
|
8
|
+
* It resolves a key to either a translatable string or function
|
|
9
|
+
* which is called with the validation error for its key and should return a translatable string.
|
|
10
|
+
*/
|
|
11
|
+
export interface SiFormValidationErrorMapper {
|
|
12
|
+
required?: TranslatableString | ((error: {
|
|
13
|
+
required: boolean;
|
|
14
|
+
}) => TranslatableString);
|
|
15
|
+
requiredTrue?: TranslatableString | ((error: {
|
|
16
|
+
required: boolean;
|
|
17
|
+
}) => TranslatableString);
|
|
18
|
+
email?: TranslatableString | ((error: {
|
|
19
|
+
email: boolean;
|
|
20
|
+
}) => TranslatableString);
|
|
21
|
+
min?: TranslatableString | ((error: {
|
|
22
|
+
min: number;
|
|
23
|
+
actual: number;
|
|
24
|
+
}) => TranslatableString);
|
|
25
|
+
max?: TranslatableString | ((error: {
|
|
26
|
+
max: number;
|
|
27
|
+
actual: number;
|
|
28
|
+
}) => TranslatableString);
|
|
29
|
+
minLength?: TranslatableString | ((error: {
|
|
30
|
+
requiredLength: number;
|
|
31
|
+
actualLength: number;
|
|
32
|
+
}) => TranslatableString);
|
|
33
|
+
maxLength?: TranslatableString | ((error: {
|
|
34
|
+
requiredLength: number;
|
|
35
|
+
actualLength: number;
|
|
36
|
+
}) => TranslatableString);
|
|
37
|
+
pattern?: TranslatableString | ((error: {
|
|
38
|
+
pattern: string | RegExp;
|
|
39
|
+
}) => TranslatableString);
|
|
40
|
+
numberFormat?: TranslatableString | ((error: {
|
|
41
|
+
numberFormat: boolean;
|
|
42
|
+
}) => TranslatableString);
|
|
43
|
+
dateFormat?: TranslatableString | ((error: {
|
|
44
|
+
format: string;
|
|
45
|
+
}) => TranslatableString);
|
|
46
|
+
maxDate?: TranslatableString | ((error: {
|
|
47
|
+
max: Date;
|
|
48
|
+
actual: Date;
|
|
49
|
+
}) => TranslatableString);
|
|
50
|
+
minDate?: TranslatableString | ((error: {
|
|
51
|
+
min: Date;
|
|
52
|
+
actual: Date;
|
|
53
|
+
}) => TranslatableString);
|
|
54
|
+
[key: string]: undefined | string | ((error: any) => string);
|
|
55
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { Provider } from '@angular/core';
|
|
6
|
+
import { SiFormValidationErrorMapper } from './si-form-validation-error.model';
|
|
7
|
+
/**
|
|
8
|
+
* The error mapper is used to resolve an angular validation error to a {@link TranslatableString}.
|
|
9
|
+
* It will be merged with already existing error mappers.
|
|
10
|
+
*/
|
|
11
|
+
export declare const provideFormValidationErrorMapper: (mapper: SiFormValidationErrorMapper) => Provider;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { SiFormError } from './si-form-item/si-form-item.component';
|
|
3
|
+
import { SiFormValidationErrorMapper } from './si-form-validation-error.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Creates the map of default error resolver.
|
|
7
|
+
* This is a function as $localize requires an injection context.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const buildDefaults: () => SiFormValidationErrorMapper;
|
|
12
|
+
/**
|
|
13
|
+
* A service to resolve the validation error of an Angular control to a message or translation key.
|
|
14
|
+
*
|
|
15
|
+
* It can be provided using {@link provideFormValidationErrorMapper}.
|
|
16
|
+
* If not provided, there will be a default instance in the root injector using only the default keys.
|
|
17
|
+
*
|
|
18
|
+
* There can be multiple instances to support providing in a lazy loaded module.
|
|
19
|
+
* If the service cannot find a message, it will try to resolve it using a parent service if available.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare class SiFormValidationErrorService {
|
|
24
|
+
private errorMapper;
|
|
25
|
+
private readonly parent;
|
|
26
|
+
constructor(errorMapper: SiFormValidationErrorMapper);
|
|
27
|
+
/**
|
|
28
|
+
* Resolves the provided form errors to a list of {@link SiFormError}.
|
|
29
|
+
* To resolution order is:
|
|
30
|
+
* 1. componentMapper
|
|
31
|
+
* 2. containerMapper using the controlName
|
|
32
|
+
* 3. containerMapper without controlName
|
|
33
|
+
* 4. errorMapper of the service using the controlName
|
|
34
|
+
* 5. errorMapper of the service
|
|
35
|
+
* 6: parent service
|
|
36
|
+
*/
|
|
37
|
+
resolveErrors(controlName: string | number | null | undefined, errors: ValidationErrors | null, componentMapper?: SiFormValidationErrorMapper, containerMapper?: SiFormValidationErrorMapper): SiFormError[];
|
|
38
|
+
private resolveError;
|
|
39
|
+
private resolveMessage;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormValidationErrorService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiFormValidationErrorService>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
6
|
+
import { SiFormError } from '../si-form-item/si-form-item.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare const SI_FORM_VALIDATION_TOOLTIP_DATA: InjectionToken<Signal<SiFormError[]>>;
|
|
9
|
+
export declare class SiFormValidationTooltipComponent {
|
|
10
|
+
protected errors: Signal<SiFormError[]>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormValidationTooltipComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiFormValidationTooltipComponent, "si-form-validation-tooltip", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { DoCheck, OnDestroy } from '@angular/core';
|
|
6
|
+
import { SiFormValidationErrorMapper } from '../si-form-validation-error.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Directive to show a tooltip with validation errors of a form control.
|
|
10
|
+
*
|
|
11
|
+
* In general, `si-form-item` should be used.
|
|
12
|
+
* This directive is intended only for cases where the tooltip cannot be shown inline.
|
|
13
|
+
* This is typically the case for tables and lists where the validation message would break the layout.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <input siFormValidationTooltip [formControl]="control" />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class SiFormValidationTooltipDirective implements OnDestroy, DoCheck {
|
|
21
|
+
private static idCounter;
|
|
22
|
+
private tooltipService;
|
|
23
|
+
private formValidationService;
|
|
24
|
+
private formContainer;
|
|
25
|
+
readonly formErrorMapper: import("@angular/core").InputSignal<SiFormValidationErrorMapper | undefined>;
|
|
26
|
+
private ngControl;
|
|
27
|
+
private elementRef;
|
|
28
|
+
private tooltipRef?;
|
|
29
|
+
private readonly errors;
|
|
30
|
+
private currentErrors;
|
|
31
|
+
private touched;
|
|
32
|
+
private activationCount;
|
|
33
|
+
protected readonly describedBy: string;
|
|
34
|
+
ngDoCheck(): void;
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
protected increaseActivation(): void;
|
|
37
|
+
private updateErrors;
|
|
38
|
+
protected decreaseActivation(): void;
|
|
39
|
+
private destroyTooltip;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormValidationTooltipDirective, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiFormValidationTooltipDirective, "[siFormValidationTooltip]", never, { "formErrorMapper": { "alias": "formErrorMapper"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
6
|
+
import { SiFormValidationErrorMapper } from './si-form-validation-error.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "./si-form-container/si-form-container.component";
|
|
9
|
+
import * as i2 from "./form-fieldset/si-form-fieldset.component";
|
|
10
|
+
import * as i3 from "./si-form-item/si-form-item.component";
|
|
11
|
+
import * as i4 from "./si-form-item-control-input.directive";
|
|
12
|
+
export declare class SiFormModule {
|
|
13
|
+
/**
|
|
14
|
+
* Overrides the default configuration of the form module.
|
|
15
|
+
*
|
|
16
|
+
* @param errorMapper - The error mappers is used to resolve angular validation errors.
|
|
17
|
+
* It will be merged with already existing error mappers.
|
|
18
|
+
*/
|
|
19
|
+
static withConfiguration({ validationErrorMapper }: {
|
|
20
|
+
validationErrorMapper: SiFormValidationErrorMapper;
|
|
21
|
+
}): ModuleWithProviders<SiFormModule>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiFormModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiFormModule, never, [typeof i1.SiFormContainerComponent, typeof i2.SiFormFieldsetComponent, typeof i3.SiFormItemComponent, typeof i4.SiFormItemControlInputDirective], [typeof i1.SiFormContainerComponent, typeof i2.SiFormFieldsetComponent, typeof i3.SiFormItemComponent, typeof i4.SiFormItemControlInputDirective]>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiFormModule>;
|
|
25
|
+
}
|
package/icon/element-icons.d.ts
CHANGED
|
@@ -10,8 +10,10 @@ export declare const elementExport = "data:image/svg+xml;utf8,<svg xmlns='http:/
|
|
|
10
10
|
export declare const elementThumbnails = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><circle cx='144' cy='144' r='24'/><circle cx='368' cy='144' r='24'/><circle cx='256' cy='144' r='24'/><circle cx='144' cy='368' r='24'/><circle cx='368' cy='368' r='24'/><circle cx='256' cy='368' r='24'/><circle cx='144' cy='256' r='24'/><circle cx='368' cy='256' r='24'/><circle cx='256' cy='256' r='24'/></svg>";
|
|
11
11
|
export declare const elementOptionsVertical = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M284 256a28 28 0 1 1-28-28 28 28 0 0 1 28 28ZM284 144a28 28 0 1 1-28-28 28 28 0 0 1 28 28ZM284 368a28 28 0 1 1-28-28 28 28 0 0 1 28 28Z'/></svg>";
|
|
12
12
|
export declare const elementMenu = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M400 244H112a12 12 0 0 0 0 24h288a12 12 0 0 0 0-24ZM400 148H112a12 12 0 0 0 0 24h288a12 12 0 0 0 0-24ZM400 340H112a12 12 0 0 0 0 24h288a12 12 0 0 0 0-24Z'/></svg>";
|
|
13
|
+
export declare const elementMinus = "data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M356 268H156a12 12 0 0 1 0-24h200a12 12 0 0 1 0 24Z'/></svg>";
|
|
13
14
|
export declare const elementCircleFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 64C150.13 64 64 150.13 64 256s86.13 192 192 192 192-86.13 192-192S361.87 64 256 64Z'/></svg>";
|
|
14
15
|
export declare const elementOctagonFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M320.2 77H191.8a24 24 0 0 0-17 7L84 174.83a24 24 0 0 0-7 17V320.2a24 24 0 0 0 7 17l90.8 90.8a24 24 0 0 0 17 7h128.4a24 24 0 0 0 17-7l90.8-90.8a24 24 0 0 0 7-17V191.8a24 24 0 0 0-7-17L337.17 84a24 24 0 0 0-16.97-7Z'/></svg>";
|
|
16
|
+
export declare const elementPlus = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M356 244h-88v-88a12 12 0 0 0-24 0v88h-88a12 12 0 0 0 0 24h88v88a12 12 0 0 0 24 0v-88h88a12 12 0 0 0 0-24Z'/></svg>";
|
|
15
17
|
export declare const elementSquare45Filled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><rect x='113.17' y='113.17' width='285.65' height='285.65' rx='24' transform='rotate(-45 256 256.002)'/></svg>";
|
|
16
18
|
export declare const elementSquareFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><rect x='88' y='88' width='336' height='336' rx='48'/></svg>";
|
|
17
19
|
export declare const elementStateExclamationMark = "data:image/svg+xml;utf8,<svg id='Icon' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><defs><style>.cls-1{stroke-width:0}</style></defs><path class='cls-1' d='M256 279.12c-11.05 0-20-8.95-20-20v-89.8c0-11.05 8.95-20 20-20s20 8.95 20 20v89.8c0 11.05-8.95 20-20 20ZM256.17 359.03h-.34c-13.16 0-23.83-10.75-23.83-24s10.67-24 23.83-24h.34c13.16 0 23.83 10.75 23.83 24s-10.67 24-23.83 24Z'/></svg>";
|
|
@@ -28,3 +30,11 @@ export declare const elementLeft3 = "data:image/svg+xml;utf8,<svg xmlns='http://
|
|
|
28
30
|
export declare const elementRight3 = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M192.61 106.22a11.1 11.1 0 0 0 2.09 6.51L292.51 256l-97.82 143.29a11.05 11.05 0 0 0-2.08 6.49 11.24 11.24 0 0 0 4.7 9.13 11.12 11.12 0 0 0 6.51 2.09 11.24 11.24 0 0 0 9.13-4.69L319.39 256 213 99.71a11.24 11.24 0 0 0-9.18-4.71 11.12 11.12 0 0 0-6.51 2.09 11.24 11.24 0 0 0-4.7 9.13Z'/></svg>";
|
|
29
31
|
export declare const elementHide = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M254.85 173.58c42.57 0 84.25 14.94 123.9 44.4a278.05 278.05 0 0 1 41.59 38 278.05 278.05 0 0 1-41.59 38 260.79 260.79 0 0 1-25.17 16.59l17.48 17.48q11.49-7 22.63-15.27c32.57-24.34 51.1-48.55 51.87-49.57a12 12 0 0 0 0-14.5c-.77-1-19.3-25.23-51.87-49.57-43.43-32.45-91.44-49.6-138.84-49.6a204.56 204.56 0 0 0-54.72 7.58L220 177a180.12 180.12 0 0 1 34.85-3.42ZM436.49 427.51 349 340l-18-18-28.36-28.36-17.12-17.12-50.09-50.09-17.12-17.12-25-25-18.47-18.47-90.35-90.33a12 12 0 0 0-17 17l84.29 84.28a267.53 267.53 0 0 0-34.72 22.47c-32 24.38-50 48.64-50.75 49.66a12 12 0 0 0 0 14.2c.75 1 18.72 25.28 50.75 49.66 42.69 32.49 90.33 49.66 137.77 49.66a210.29 210.29 0 0 0 70.2-12.4l94.46 94.47a12 12 0 0 0 17-17Zm-215.15-181.2 44.35 44.35a36 36 0 0 1-44.35-44.35Zm33.51 92.11c-42.52 0-83.79-14.91-122.65-44.32A268.8 268.8 0 0 1 91.46 256a268.29 268.29 0 0 1 40.74-38.1 242.38 242.38 0 0 1 37.32-23.41L203 228a59.95 59.95 0 0 0 81 81l22 22.05a183.47 183.47 0 0 1-51.15 7.37Z'/><path d='m291.13 248.16 22.94 22.94a60 60 0 0 0-73.17-73.17l22.94 22.94a36.1 36.1 0 0 1 27.29 27.29Z'/></svg>";
|
|
30
32
|
export declare const elementShow = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M254.85 362.42c-47.44 0-95.08-17.17-137.77-49.66-32-24.38-50-48.64-50.75-49.66a12 12 0 0 1 0-14.2c.75-1 18.72-25.28 50.75-49.66 42.69-32.49 90.33-49.66 137.77-49.66s95.41 17.15 138.84 49.6c32.57 24.34 51.1 48.55 51.87 49.57a12 12 0 0 1 0 14.5c-.77 1-19.3 25.23-51.87 49.57-43.43 32.45-91.44 49.6-138.84 49.6ZM91.46 256a268.8 268.8 0 0 0 40.74 38.1c38.86 29.41 80.13 44.32 122.65 44.32s84.25-14.94 123.9-44.4a278.05 278.05 0 0 0 41.59-38 278.05 278.05 0 0 0-41.59-38c-39.65-29.46-81.33-44.4-123.9-44.4s-83.79 14.87-122.65 44.28A268.29 268.29 0 0 0 91.46 256Z'/><path d='M256 316a60 60 0 1 1 60-60 60.07 60.07 0 0 1-60 60Zm0-96a36 36 0 1 0 36 36 36 36 0 0 0-36-36Z'/></svg>";
|
|
33
|
+
export declare const elementSearch = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='m420.49 403.51-76.88-76.87A139.39 139.39 0 0 0 377 236c0-77.2-62.8-140-140-140S97 158.8 97 236s62.8 140 140 140a139.33 139.33 0 0 0 89.55-32.48l77 77a12 12 0 0 0 17-17ZM121 236a116 116 0 1 1 116 116 116.13 116.13 0 0 1-116-116Z' /></svg>";
|
|
34
|
+
export declare const elementChecked = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 76c-99.25 0-180 80.75-180 180s80.75 180 180 180 180-80.75 180-180S355.25 76 256 76Zm0 336c-86 0-156-70-156-156s70-156 156-156 156 70 156 156-70 156-156 156Z'/><path d='M218.5 336.75a12 12 0 0 1-8.49-3.51l-62.5-62.5a12 12 0 0 1 17-17l54 54 129-129a12 12 0 0 1 17 17L227 333.24a12 12 0 0 1-8.5 3.51Z'/></svg>";
|
|
35
|
+
export declare const elementCheckedFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 76c-99.25 0-180 80.75-180 180s80.75 180 180 180 180-80.75 180-180S355.25 76 256 76Zm108.49 119.74L227 333.24a12 12 0 0 1-17 0l-62.5-62.5a12 12 0 0 1 17-17l54 54 129-129a12 12 0 0 1 17 17Z'/></svg>";
|
|
36
|
+
export declare const elementLeft4 = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M391 244H150.09l78.51-78.51a12 12 0 1 0-17-17l-98.09 98.09a12 12 0 0 0 0 18.78l98.09 98.09a12 12 0 1 0 17-17L150.09 268H391a12 12 0 0 0 0-24Z'/></svg>";
|
|
37
|
+
export declare const elementNotChecked = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 76c-99.25 0-180 80.75-180 180s80.75 180 180 180 180-80.75 180-180S355.25 76 256 76Zm0 336c-86 0-156-70-156-156s70-156 156-156 156 70 156 156-70 156-156 156Z'/></svg>";
|
|
38
|
+
export declare const elementRight4 = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M403 256a12 12 0 0 0-4.54-9.39l-98.09-98.09a12 12 0 1 0-17 17L361.91 244H121a12 12 0 0 0 0 24h240.91l-78.51 78.51a12 12 0 1 0 17 17l98.09-98.09A12 12 0 0 0 403 256Z'/></svg>";
|
|
39
|
+
export declare const elementRadioChecked = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 436c-99.25 0-180-80.75-180-180S156.75 76 256 76s180 80.75 180 180-80.75 180-180 180Zm0-336c-86.02 0-156 69.98-156 156s69.98 156 156 156 156-69.98 156-156-69.98-156-156-156Z'/><circle cx='256' cy='256' r='86'/></svg>";
|
|
40
|
+
export declare const elementWarningFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='m441.77 354.25-.09-.16-146-243.66a46.45 46.45 0 0 0-79.44 0v.06L70.33 354.09l-.1.16A46.47 46.47 0 0 0 110 423.94h292.1a46.45 46.45 0 0 0 39.72-69.69ZM244 205.2a12 12 0 0 1 24 0v68.92a12 12 0 0 1-24 0ZM256.2 360h-.2a16 16 0 0 1 0-32h.22a16 16 0 0 1 0 32Z'/></svg>";
|