@solcre-org/core-ui 2.20.18 → 2.20.20

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
@@ -1959,6 +1959,9 @@ interface ConfirmationDialogConfig {
1959
1959
  showCancelButton?: boolean;
1960
1960
  showConfirmButton?: boolean;
1961
1961
  customClass?: string;
1962
+ fieldsConfig?: ModalFieldConfig<any>[];
1963
+ fieldsMode?: ModalMode;
1964
+ fieldsData?: Record<string, any>;
1962
1965
  }
1963
1966
 
1964
1967
  declare class ConfirmationDialogService {
@@ -1968,34 +1971,80 @@ declare class ConfirmationDialogService {
1968
1971
  config$: _angular_core.Signal<ConfirmationDialogConfig>;
1969
1972
  private responseSubject;
1970
1973
  private response$;
1971
- openDelete(title: string, message?: string, validationValue?: string): Observable<string | boolean | undefined>;
1972
- openConfirm(config: ConfirmationDialogConfig): Observable<string | boolean | undefined>;
1974
+ openDelete(title: string, message?: string, validationValue?: string): Observable<{
1975
+ value: string | boolean | undefined;
1976
+ fieldsData: Record<string, any> | null;
1977
+ }>;
1978
+ openConfirm(config: ConfirmationDialogConfig): Observable<{
1979
+ value: string | boolean | undefined;
1980
+ fieldsData: Record<string, any> | null;
1981
+ }>;
1973
1982
  private open;
1974
- confirm(value?: string | boolean): void;
1983
+ confirm(value?: {
1984
+ value: string | boolean | undefined;
1985
+ fieldsData: Record<string, any> | null;
1986
+ }): void;
1975
1987
  cancel(): void;
1976
1988
  private close;
1977
- openWithOptionalInput(title: string, message?: string, inputLabel?: string, inputPlaceholder?: string): Observable<string | boolean | undefined>;
1989
+ openWithOptionalInput(title: string, message?: string, inputLabel?: string, inputPlaceholder?: string): Observable<{
1990
+ value: string | boolean | undefined;
1991
+ fieldsData: Record<string, any> | null;
1992
+ }>;
1978
1993
  updateConfig(config: Partial<ConfirmationDialogConfig>): void;
1994
+ openWithFields(config: ConfirmationDialogConfig & {
1995
+ fieldsConfig: ModalFieldConfig<any>[];
1996
+ fieldsMode?: ModalMode;
1997
+ fieldsData?: Record<string, any>;
1998
+ }): Observable<{
1999
+ value: string | boolean | undefined;
2000
+ fieldsData: Record<string, any> | null;
2001
+ }>;
1979
2002
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmationDialogService, never>;
1980
2003
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfirmationDialogService>;
1981
2004
  }
1982
2005
 
1983
2006
  declare class ConfirmationDialogComponent {
2007
+ private formBuilder;
1984
2008
  popupElement?: ElementRef;
1985
2009
  overlayElement?: ElementRef;
1986
2010
  customContentTemplate?: TemplateRef<any>;
2011
+ ModalMode: typeof ModalMode;
2012
+ FieldType: typeof FieldType;
1987
2013
  isOpen: _angular_core.InputSignal<boolean>;
1988
2014
  config: _angular_core.InputSignal<ConfirmationDialogConfig>;
1989
- confirm: _angular_core.OutputEmitterRef<string | boolean | undefined>;
2015
+ confirm: _angular_core.OutputEmitterRef<{
2016
+ value: string | boolean | undefined;
2017
+ fieldsData: Record<string, any> | null;
2018
+ }>;
1990
2019
  cancel: _angular_core.OutputEmitterRef<void>;
1991
2020
  inputValue: _angular_core.WritableSignal<string>;
1992
2021
  isClosing: _angular_core.WritableSignal<boolean>;
2022
+ fieldsEditedData: _angular_core.WritableSignal<Record<string, any> | null>;
2023
+ fieldErrors: _angular_core.WritableSignal<{
2024
+ [key: string]: string[];
2025
+ }>;
2026
+ form: _angular_core.WritableSignal<FormGroup<any>>;
2027
+ isFieldsInitialized: _angular_core.WritableSignal<boolean>;
2028
+ hasFields: _angular_core.Signal<boolean>;
2029
+ fieldsMode: _angular_core.Signal<ModalMode>;
2030
+ currentFields: _angular_core.Signal<ModalFieldConfig<any>[]>;
2031
+ hasFieldErrors: _angular_core.Signal<boolean>;
1993
2032
  closeButtonConfig: _angular_core.Signal<ButtonConfig>;
1994
2033
  cancelButtonConfig: _angular_core.Signal<ButtonConfig>;
1995
2034
  confirmButtonConfig: _angular_core.Signal<ButtonConfig>;
1996
2035
  get confirmButtonText(): string;
1997
2036
  get cancelButtonText(): string;
1998
2037
  get hasCustomContent(): boolean;
2038
+ constructor();
2039
+ private initializeFields;
2040
+ getFieldConfig(field: ModalFieldConfig<any>): ModalFieldConfig<any>;
2041
+ private evaluateVisibility;
2042
+ private evaluateReadonly;
2043
+ onFieldValueChange(fieldKey: string, newValue: any): void;
2044
+ private validateField;
2045
+ private mapDynamicValidatorErrors;
2046
+ validateAllFields(): void;
2047
+ getFieldErrors(fieldKey: string): string[];
1999
2048
  onConfirm(): void;
2000
2049
  onCancel(): void;
2001
2050
  onInputChange(value: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.20.18",
3
+ "version": "2.20.20",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"