@ngx-smz/core 19.3.2 → 19.3.3

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.
@@ -299,6 +299,7 @@ export declare class SmzFormInputValidatorBuilder<TInput, TResponse> {
299
299
  private _input;
300
300
  _groupBuilder: SmzFormGroupBuilder<TResponse>;
301
301
  constructor(_inputBuilder: TInput, _input: SmzFormsBaseControl, _groupBuilder: SmzFormGroupBuilder<TResponse>);
302
+ withWarning(warning: (formValues: any) => string | null): SmzFormInputValidatorBuilder<TInput, TResponse>;
302
303
  required(): SmzFormInputValidatorBuilder<TInput, TResponse>;
303
304
  length(min: number, max: number): SmzFormInputValidatorBuilder<TInput, TResponse>;
304
305
  range(min: number, max: number): SmzFormInputValidatorBuilder<TInput, TResponse>;
@@ -1,3 +1,4 @@
1
1
  export declare enum LoggingScope {
2
- None = "None"
2
+ None = "None",
3
+ Forms = "Forms"
3
4
  }
@@ -0,0 +1,10 @@
1
+ import { WritableSignal } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class LabelComponent {
4
+ text: string;
5
+ propertyName: string;
6
+ showLabel: boolean;
7
+ warning?: WritableSignal<string | null>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "smz-label", never, { "text": { "alias": "text"; "required": false; }; "propertyName": { "alias": "propertyName"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -12,6 +12,8 @@ export declare class FormGroupComponent implements OnInit, AfterViewInit, OnChan
12
12
  private cdf;
13
13
  manager: SmzFormsManagerService;
14
14
  repository: SmzFormsRepositoryService;
15
+ private readonly loggingService;
16
+ private logger;
15
17
  isComponentActive: boolean;
16
18
  viewdata: SmzFormViewdata;
17
19
  get isValid(): boolean;
@@ -31,6 +33,7 @@ export declare class FormGroupComponent implements OnInit, AfterViewInit, OnChan
31
33
  init(): void;
32
34
  ngOnChanges(changes: SimpleChanges): void;
33
35
  private callVisibilityFunctions;
36
+ private callWarningFunctions;
34
37
  linkInputControls(): void;
35
38
  private hasUndefinedPropertyName;
36
39
  private hasDuplicateNames;
@@ -2,6 +2,7 @@ import { SmzControlType } from './control-types';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { SmzFormsAdvancedSettings } from './advanced';
4
4
  import { SmzTemplate } from '../../../common/models/templates';
5
+ import { WritableSignal } from '@angular/core';
5
6
  export interface SmzFormsBaseControl {
6
7
  readonly propertyName?: string;
7
8
  readonly type?: SmzControlType;
@@ -19,6 +20,8 @@ export interface SmzFormsBaseControl {
19
20
  conditions?: any[];
20
21
  };
21
22
  visibilityFunction?: (formValues: any) => boolean;
23
+ warningFunction?: (formValues: any) => string | null;
24
+ warning?: WritableSignal<string | null>;
22
25
  dataDependency?: {
23
26
  propertyName: string;
24
27
  condition: 'some' | 'none';
@@ -69,10 +69,11 @@ import * as i65 from "./components/input-autocomplete-tag-area/smz-autocomplete-
69
69
  import * as i66 from "primeng/overlaypanel";
70
70
  import * as i67 from "./directives/smart-tag.directive";
71
71
  import * as i68 from "./directives/smart-autocomplete-tag.directive";
72
+ import * as i69 from "./components/label.component";
72
73
  export declare const defaultFormsModuleConfig: SmzFormsConfig;
73
74
  export declare class NgxSmzFormsModule {
74
75
  constructor(injector: Injector);
75
76
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmzFormsModule, never>;
76
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmzFormsModule, [typeof i1.CalendarComponent, typeof i2.CheckBoxComponent, typeof i3.CheckBoxGroupComponent, typeof i4.ColorPickerComponent, typeof i5.DropdownComponent, typeof i6.FileUploadComponent, typeof i7.FormFocusFirstInputDirective, typeof i8.FormGroupComponent, typeof i9.InputCurrencyComponent, typeof i10.InputListComponent, typeof i11.InputMaskComponent, typeof i12.InputNumberComponent, typeof i13.InputPasswordComponent, typeof i14.InputSwitchComponent, typeof i15.InputTextAreaComponent, typeof i16.SmzInputAutocompleteTagArea, typeof i17.InputTextComponent, typeof i18.InputTreeComponent, typeof i19.LinkedDropdownComponent, typeof i20.LinkedMultiSelectComponent, typeof i21.MultiSelectComponent, typeof i22.RadioButtonComponent, typeof i23.ValidationMessagesComponent, typeof i24.ValidationMessagesPipe, typeof i25.FileDragDropDirective, typeof i26.FileNameShortenPipe, typeof i27.InputTagAreaComponent, typeof i28.InputContentMaskComponent, typeof i29.TransferValueAccessor, typeof i30.InputContentMaskTextPipe, typeof i31.InputListDialogCrudComponent, typeof i32.InputListInlineCrudComponent, typeof i33.InputListBatchCrudComponent, typeof i34.InputTextButtonComponent, typeof i35.FormSubmitComponent, typeof i36.GetCurrentMultiselectOptionsPipe], [typeof i37.CommonModule, typeof i38.DatePickerModule, typeof i39.CheckboxModule, typeof i40.ClickStopPropagationModule, typeof i41.ColorPickerModule, typeof i42.SelectModule, typeof i43.FileUploadModule, typeof i44.FormsModule, typeof i45.InjectContentAppModule, typeof i46.InputMaskModule, typeof i47.InputNumberModule, typeof i48.ToggleSwitchModule, typeof i49.TextareaModule, typeof i50.InputTextModule, typeof i51.ListboxModule, typeof i52.MultiSelectModule, typeof i53.NgGroupByPipeModule, typeof i54.PasswordModule, typeof i55.RadioButtonModule, typeof i44.ReactiveFormsModule, typeof i56.SmzTemplatesPipeModule, typeof i57.TooltipModule, typeof i58.MessageModule, typeof i59.SafeContentPipeModule, typeof i60.SmzInputTagAreaModule, typeof i61.NgxSmzDataPipesModule, typeof i62.ButtonModule, typeof i63.AutoFocusModule, typeof i64.TreeSelectModule, typeof i65.SmzAutocompleteSelectorComponent, typeof i66.OverlayPanelModule, typeof i67.SmzSmartTagModule, typeof i68.SmzSmartAutocompleteTagModule], [typeof i1.CalendarComponent, typeof i2.CheckBoxComponent, typeof i3.CheckBoxGroupComponent, typeof i4.ColorPickerComponent, typeof i42.SelectModule, typeof i6.FileUploadComponent, typeof i8.FormGroupComponent, typeof i9.InputCurrencyComponent, typeof i10.InputListComponent, typeof i11.InputMaskComponent, typeof i12.InputNumberComponent, typeof i13.InputPasswordComponent, typeof i14.InputSwitchComponent, typeof i15.InputTextAreaComponent, typeof i16.SmzInputAutocompleteTagArea, typeof i17.InputTextComponent, typeof i18.InputTreeComponent, typeof i19.LinkedDropdownComponent, typeof i20.LinkedMultiSelectComponent, typeof i21.MultiSelectComponent, typeof i22.RadioButtonComponent, typeof i35.FormSubmitComponent]>;
77
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmzFormsModule, [typeof i1.CalendarComponent, typeof i2.CheckBoxComponent, typeof i3.CheckBoxGroupComponent, typeof i4.ColorPickerComponent, typeof i5.DropdownComponent, typeof i6.FileUploadComponent, typeof i7.FormFocusFirstInputDirective, typeof i8.FormGroupComponent, typeof i9.InputCurrencyComponent, typeof i10.InputListComponent, typeof i11.InputMaskComponent, typeof i12.InputNumberComponent, typeof i13.InputPasswordComponent, typeof i14.InputSwitchComponent, typeof i15.InputTextAreaComponent, typeof i16.SmzInputAutocompleteTagArea, typeof i17.InputTextComponent, typeof i18.InputTreeComponent, typeof i19.LinkedDropdownComponent, typeof i20.LinkedMultiSelectComponent, typeof i21.MultiSelectComponent, typeof i22.RadioButtonComponent, typeof i23.ValidationMessagesComponent, typeof i24.ValidationMessagesPipe, typeof i25.FileDragDropDirective, typeof i26.FileNameShortenPipe, typeof i27.InputTagAreaComponent, typeof i28.InputContentMaskComponent, typeof i29.TransferValueAccessor, typeof i30.InputContentMaskTextPipe, typeof i31.InputListDialogCrudComponent, typeof i32.InputListInlineCrudComponent, typeof i33.InputListBatchCrudComponent, typeof i34.InputTextButtonComponent, typeof i35.FormSubmitComponent, typeof i36.GetCurrentMultiselectOptionsPipe], [typeof i37.CommonModule, typeof i38.DatePickerModule, typeof i39.CheckboxModule, typeof i40.ClickStopPropagationModule, typeof i41.ColorPickerModule, typeof i42.SelectModule, typeof i43.FileUploadModule, typeof i44.FormsModule, typeof i45.InjectContentAppModule, typeof i46.InputMaskModule, typeof i47.InputNumberModule, typeof i48.ToggleSwitchModule, typeof i49.TextareaModule, typeof i50.InputTextModule, typeof i51.ListboxModule, typeof i52.MultiSelectModule, typeof i53.NgGroupByPipeModule, typeof i54.PasswordModule, typeof i55.RadioButtonModule, typeof i44.ReactiveFormsModule, typeof i56.SmzTemplatesPipeModule, typeof i57.TooltipModule, typeof i58.MessageModule, typeof i59.SafeContentPipeModule, typeof i60.SmzInputTagAreaModule, typeof i61.NgxSmzDataPipesModule, typeof i62.ButtonModule, typeof i63.AutoFocusModule, typeof i64.TreeSelectModule, typeof i65.SmzAutocompleteSelectorComponent, typeof i66.OverlayPanelModule, typeof i67.SmzSmartTagModule, typeof i68.SmzSmartAutocompleteTagModule, typeof i69.LabelComponent], [typeof i1.CalendarComponent, typeof i2.CheckBoxComponent, typeof i3.CheckBoxGroupComponent, typeof i4.ColorPickerComponent, typeof i42.SelectModule, typeof i6.FileUploadComponent, typeof i8.FormGroupComponent, typeof i9.InputCurrencyComponent, typeof i10.InputListComponent, typeof i11.InputMaskComponent, typeof i12.InputNumberComponent, typeof i13.InputPasswordComponent, typeof i14.InputSwitchComponent, typeof i15.InputTextAreaComponent, typeof i16.SmzInputAutocompleteTagArea, typeof i17.InputTextComponent, typeof i18.InputTreeComponent, typeof i19.LinkedDropdownComponent, typeof i20.LinkedMultiSelectComponent, typeof i21.MultiSelectComponent, typeof i22.RadioButtonComponent, typeof i35.FormSubmitComponent]>;
77
78
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmzFormsModule>;
78
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-smz/core",
3
- "version": "19.3.2",
3
+ "version": "19.3.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0"
@@ -127,7 +127,6 @@
127
127
  }
128
128
 
129
129
  .smz__input_name {
130
- display: block;
131
130
  font-size: 1em !important;
132
131
  margin-bottom: 0.25em;
133
132
  }