@solcre-org/core-ui 2.12.32 → 2.12.33
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/fesm2022/solcre-org-core-ui.mjs +139 -23
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +9 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ interface ModalFieldConfig<T> {
|
|
|
142
142
|
duration?: number;
|
|
143
143
|
multiple?: boolean;
|
|
144
144
|
linkedFieldKey?: keyof T;
|
|
145
|
-
validators?: ValidatorFn[];
|
|
145
|
+
validators?: ValidatorFn[] | ((formValue: any) => ValidatorFn[]);
|
|
146
146
|
errorMessages?: {
|
|
147
147
|
[key: string]: string;
|
|
148
148
|
};
|
|
@@ -162,7 +162,8 @@ interface ModalFieldConfig<T> {
|
|
|
162
162
|
value: any;
|
|
163
163
|
label: string;
|
|
164
164
|
}[];
|
|
165
|
-
validators?: ValidatorFn[];
|
|
165
|
+
validators?: ValidatorFn[] | ((formValue: any) => ValidatorFn[]);
|
|
166
|
+
dynamicValue?: (formValue: any) => any;
|
|
166
167
|
errorMessages?: {
|
|
167
168
|
[key: string]: string;
|
|
168
169
|
};
|
|
@@ -196,6 +197,8 @@ declare abstract class BaseFieldComponent<T extends DataBaseModelInterface> {
|
|
|
196
197
|
ngOnInit(): void;
|
|
197
198
|
constructor();
|
|
198
199
|
protected initializeFormControl(): void;
|
|
200
|
+
protected getCurrentValidators(): ValidatorFn[];
|
|
201
|
+
protected getDynamicValue(): any;
|
|
199
202
|
private normalizeValue;
|
|
200
203
|
protected onBlur(event?: FocusEvent): void;
|
|
201
204
|
private isRealBlur;
|
|
@@ -299,6 +302,7 @@ declare class DatetimeFieldComponent<T extends DataBaseModelInterface> implement
|
|
|
299
302
|
label: string;
|
|
300
303
|
}[]>;
|
|
301
304
|
hasRequiredValidators: _angular_core.Signal<boolean>;
|
|
305
|
+
private getCurrentValidators;
|
|
302
306
|
formattedDate: _angular_core.Signal<string>;
|
|
303
307
|
isDisabled: _angular_core.Signal<boolean>;
|
|
304
308
|
hasError: _angular_core.Signal<boolean>;
|
|
@@ -744,6 +748,7 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
|
|
|
744
748
|
isDisabled: _angular_core.Signal<boolean>;
|
|
745
749
|
hasError: _angular_core.Signal<boolean>;
|
|
746
750
|
hasRequiredValidators: _angular_core.Signal<boolean>;
|
|
751
|
+
private getCurrentValidators;
|
|
747
752
|
private evaluateReadonly;
|
|
748
753
|
constructor();
|
|
749
754
|
private initializeFromValue;
|
|
@@ -787,6 +792,7 @@ declare class MultiEntryFieldComponent<T extends DataBaseModelInterface> impleme
|
|
|
787
792
|
canRemove: _angular_core.Signal<boolean>;
|
|
788
793
|
isDisabled: _angular_core.Signal<boolean>;
|
|
789
794
|
hasRequiredValidators: _angular_core.Signal<boolean>;
|
|
795
|
+
private getCurrentValidators;
|
|
790
796
|
constructor();
|
|
791
797
|
ngOnInit(): void;
|
|
792
798
|
private initializeEntries;
|
|
@@ -1982,6 +1988,7 @@ declare class InlineEditService<T extends DataBaseModelInterface & {
|
|
|
1982
1988
|
onCellValueChange(row: T, column: ColumnConfig<T>, value: any): void;
|
|
1983
1989
|
private normalizeValue;
|
|
1984
1990
|
private validateCellValue;
|
|
1991
|
+
private resolveValidators;
|
|
1985
1992
|
getCellErrors(row: T, column: ColumnConfig<T>): string[];
|
|
1986
1993
|
private performInlineEdit;
|
|
1987
1994
|
getInlineEditableConfig(column: ColumnConfig<T>): ModalFieldConfig<T> | undefined;
|