@kms-ngx-ui/presentational 20.1.3 → 20.1.5
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/index.d.ts
CHANGED
|
@@ -901,6 +901,12 @@ interface AsyncValidatorConfig {
|
|
|
901
901
|
errorMessage: string;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
/** Pairs a synchronous validator with a pre-translated error message. */
|
|
905
|
+
interface ValidatorConfig {
|
|
906
|
+
validator: ValidatorFn;
|
|
907
|
+
errorMessage: string;
|
|
908
|
+
}
|
|
909
|
+
|
|
904
910
|
/** Prefix or suffix rendered inside `<mat-form-field>`. `'text'` renders a span, `'icon'` renders `kms-icon`. */
|
|
905
911
|
interface FieldAffixConfig {
|
|
906
912
|
type: 'text' | 'icon';
|
|
@@ -1021,7 +1027,7 @@ interface FieldConfig {
|
|
|
1021
1027
|
key?: string;
|
|
1022
1028
|
type: FieldType;
|
|
1023
1029
|
label?: string;
|
|
1024
|
-
validators?: ValidatorFn[];
|
|
1030
|
+
validators?: (ValidatorFn | ValidatorConfig)[];
|
|
1025
1031
|
asyncValidators?: AsyncValidatorConfig[];
|
|
1026
1032
|
columnSize?: number;
|
|
1027
1033
|
hidden?: boolean;
|
|
@@ -1756,6 +1762,8 @@ declare function noSpecialCharsOnly(): ValidatorFn;
|
|
|
1756
1762
|
* ```
|
|
1757
1763
|
*/
|
|
1758
1764
|
declare class GenericFormModule {
|
|
1765
|
+
constructor(translate: TranslateService);
|
|
1766
|
+
private mergeMessages;
|
|
1759
1767
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericFormModule, never>;
|
|
1760
1768
|
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<GenericFormModule, never, [typeof i51.TranslateModule], never>;
|
|
1761
1769
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<GenericFormModule>;
|
|
@@ -1768,11 +1776,16 @@ declare class GenericFormService implements OnDestroy {
|
|
|
1768
1776
|
private config;
|
|
1769
1777
|
private readonly fieldConfigs;
|
|
1770
1778
|
private readonly asyncValidatorMap;
|
|
1779
|
+
private readonly validatorMap;
|
|
1771
1780
|
private destroy$;
|
|
1772
1781
|
private _submitted;
|
|
1773
1782
|
constructor(translate: TranslateService);
|
|
1774
1783
|
buildForm(config: GenericFormConfig): FormGroup;
|
|
1784
|
+
private isValidatorConfig;
|
|
1775
1785
|
private buildFieldControl;
|
|
1786
|
+
private registerSyncValidators;
|
|
1787
|
+
private registerAsyncValidators;
|
|
1788
|
+
private buildDateRangeSubControls;
|
|
1776
1789
|
private resolveInitialValue;
|
|
1777
1790
|
patchValue(value: Record<string, any>, options?: {
|
|
1778
1791
|
silent?: boolean;
|
|
@@ -1804,4 +1817,4 @@ declare class FieldRegistryService {
|
|
|
1804
1817
|
}
|
|
1805
1818
|
|
|
1806
1819
|
export { BackToTopComponent, Breakpoint, ButtonAppearance, ButtonComponent, ButtonResponseType, CardComponent, CheckboxComponent, Color, ColorInputComponent, ConfirmationDialogComponent, CustomPipesModule, DateInputComponent, DirectivesModule, DropdownFromDataComponent, DynamicFieldDirective, EnumRadiogroupComponent, FieldRegistryService, FieldType, FileInputComponent, FlyoutComponent, FormActionsComponent, FormFieldComponent, FormLayout, FormParentComponent, FormSectionComponent, GenericFormComponent, GenericFormModule, GenericFormService, GetMaxHeightDirective, IconComponent, IconSizePx, IconSizesArr, ImageSliderComponent, ImageSnippet$1 as ImageSnippet, ImageSourceType$1 as ImageSourceType, IntegerCurrency, KMSAccordionItemComponent, KeyValuePair, KmsUiPresentationalComponent, KmsUiPresentationalModule, KmsUiPresentationalService, LabelValuePair, LoaderComponent, MapComponent, Marker, MarkerLabel, MarkerOptions, NumericInputComponent, PasswordComponent, RadioButtonComponent, RadioButtonSize, RadioGroupComponent, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SalutationDropdownComponent, SalutationEnum, SalutationRadiogroupComponent, SanitizeNullPipe, SimpleBreakpoint, SlideToggleComponent, SliderComponent, StylingTheme, SwipeDirective, TextInputComponent, TextValuePair, TextValuePairArray, TimeDirective, TimeInputComponent, TooltipDirective, TooltipIconComponent, TrimPipe, TypeofPipe, ViewportService, WindowDimensions, YesNoRadiogroupComponent, noSpecialCharsOnly, noWhitespaceOnly };
|
|
1807
|
-
export type { AsyncValidatorConfig, AutocompleteFieldOptions, DateFieldOptions, DateRangeFieldOptions, DateRangeValue, DialogConfig, DialogData, DisabledConfig, ErrorDisplayConfig, ErrorDisplayStrategy, FieldAffixConfig, FieldConfig, FieldTypeOptions, FormActionsConfig, FormSectionConfig, GenericFormConfig, GenericFormState, GridAlign, GridVerticalAlign, NullAble, NumberFieldOptions, PasswordFieldOptions, RadioGroupFieldOptions, RadiobuttonInterface, SelectFieldOptions, SelectTranslation, TextareaFieldOptions, TimeFieldOptions };
|
|
1820
|
+
export type { AsyncValidatorConfig, AutocompleteFieldOptions, DateFieldOptions, DateRangeFieldOptions, DateRangeValue, DialogConfig, DialogData, DisabledConfig, ErrorDisplayConfig, ErrorDisplayStrategy, FieldAffixConfig, FieldConfig, FieldTypeOptions, FormActionsConfig, FormSectionConfig, GenericFormConfig, GenericFormState, GridAlign, GridVerticalAlign, NullAble, NumberFieldOptions, PasswordFieldOptions, RadioGroupFieldOptions, RadiobuttonInterface, SelectFieldOptions, SelectTranslation, TextareaFieldOptions, TimeFieldOptions, ValidatorConfig };
|
package/package.json
CHANGED
package/src/assets/icons.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
["alert-outline","arrow-down","arrow-left","arrow-right-left","arrow-right","arrow-top","arrow-up-down","arrows-left","calendar","camera","cardealer","checkbox_active","checkbox_inactive","checkbox_inner","checkmark-circle","checkmark-filled","chevron-down","chevron-left","chevron-right","chevron-top","circle","clock","close-circle","close","cog","collapse-right","create","credit","diamond","download","drag1","edit-circle","efficiency","electro-cable","ellipse","end","exclamation","export-all","facebook","file-download","file-upload","filter-outline","filter","floating_button","floating_button_clear","hearth-thick","ic-invoice","ic-policy","ic_GEZ","ic_Voucher","ic_abbrechen-filled","ic_abbrechen","ic_back","ic_bereifung","ic_bezeichnung","ic_booking","ic_cancel_form","ic_car","ic_check","ic_check_form","ic_co2","ic_credit-card","ic_edit","ic_equipment","ic_extras","ic_eye","ic_eye_active","ic_filter","ic_form_error","ic_form_finished","ic_gkm","ic_heart","ic_heart_filled","ic_historie","ic_home","ic_home_new","ic_inclusivekm","ic_info","ic_kraftstoff","ic_language","ic_last","ic_laufleistung","ic_left","ic_lkm","ic_lock","ic_menu","ic_minus","ic_new-car","ic_next","ic_pickup","ic_pin","ic_plus-circle","ic_plus","ic_radiobutton_active","ic_radiobutton_inactive","ic_redirect","ic_return","ic_schaltung","ic_settings","ic_shops","ic_side_front","ic_side_front_left","ic_side_front_left_tire","ic_side_front_right","ic_side_front_right_tire","ic_side_front_zoomed","ic_side_rear","ic_side_rear_left","ic_side_rear_left_tire","ic_side_rear_right","ic_side_rear_right_tire","ic_slider","ic_spezification","ic_steuer_versicherung","ic_tool","ic_tooltip_drag","ic_used-car","ic_vertrag","ic_wartung_verschleiss","ic_zulassung","image","instagram","kms-logo-white","kms-logo","large-arrow","linkedin","mail","map","mileage","move-list-left","move-list-right","palette","pdf","polestar","position","price-tag","print","profile-filled","profile","profile2","question-circle","question-filled","question","rent","search","security","special_entry","star-outline","star","start","submenu-dots","subscription","support","trash","tumblr","twitter","tyre","upload","user-circle","users","water","whatsapp","width","xing","youtube","zahlung_active","zahlungsanforderung"]
|
|
1
|
+
["alert-outline","arrow-down","arrow-left","arrow-right-left","arrow-right","arrow-top","arrow-up-down","arrows-left","calendar","camera","cardealer","checkbox_active","checkbox_inactive","checkbox_inner","checkmark-circle","checkmark-filled","chevron-down","chevron-left","chevron-right","chevron-top","circle","clock","close-circle","close","cog","collapse-right","create","credit","diamond","download","drag1","edit-circle","efficiency","electro-cable","ellipse","end","exclamation","export-all","facebook","file-download","file-upload","filter-outline","filter","floating_button","floating_button_clear","hearth-thick","ic-invoice","ic-policy","ic_GEZ","ic_Voucher","ic_abbrechen-filled","ic_abbrechen","ic_ai","ic_back","ic_bereifung","ic_bezeichnung","ic_booking","ic_cancel_form","ic_car","ic_check","ic_check_form","ic_checkin-checkout","ic_co2","ic_credit-card","ic_edit","ic_energie","ic_equipment","ic_extras","ic_eye","ic_eye_active","ic_filter","ic_form_error","ic_form_finished","ic_gkm","ic_heart","ic_heart_filled","ic_historie","ic_home","ic_home_new","ic_inclusivekm","ic_info","ic_kraftstoff","ic_language","ic_large-arrow","ic_last","ic_laufleistung","ic_left","ic_lkm","ic_lock","ic_menu","ic_minus","ic_new-car","ic_next","ic_pickup","ic_pin","ic_plus-circle","ic_plus","ic_radiobutton_active","ic_radiobutton_inactive","ic_redirect","ic_return","ic_schaltung","ic_settings","ic_shops","ic_side_front","ic_side_front_left","ic_side_front_left_tire","ic_side_front_right","ic_side_front_right_tire","ic_side_front_zoomed","ic_side_rear","ic_side_rear_left","ic_side_rear_left_tire","ic_side_rear_right","ic_side_rear_right_tire","ic_slider","ic_spezification","ic_steuer_versicherung","ic_tool","ic_tooltip_drag","ic_used-car","ic_vertrag","ic_wartung_verschleiss","ic_zulassung","image","instagram","kms-logo-white","kms-logo","large-arrow","linkedin","mail","map","mileage","move-list-left","move-list-right","palette","pdf","polestar","position","price-tag","print","profile-filled","profile","profile2","question-circle","question-filled","question","rent","search","security","special_entry","star-outline","star","start","submenu-dots","subscription","support","trash","tumblr","twitter","tyre","upload","user-circle","users","water","whatsapp","width","xing","youtube","zahlung_active","zahlungsanforderung"]
|