@solcre-org/core-ui 2.11.19 → 2.11.21
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
|
@@ -1377,6 +1377,15 @@ declare enum FilterType {
|
|
|
1377
1377
|
TEXTAREA = "textarea"
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
|
+
interface ConditionalVisibility {
|
|
1381
|
+
dependsOn: string;
|
|
1382
|
+
showWhen: (parentValue: any) => boolean;
|
|
1383
|
+
updateOptions?: (parentValue: any) => {
|
|
1384
|
+
value: any;
|
|
1385
|
+
label: string;
|
|
1386
|
+
}[];
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1380
1389
|
interface FilterConfig<T extends DataBaseModelInterface> {
|
|
1381
1390
|
key: keyof T | string;
|
|
1382
1391
|
label: string;
|
|
@@ -1396,6 +1405,9 @@ interface FilterConfig<T extends DataBaseModelInterface> {
|
|
|
1396
1405
|
visible?: boolean;
|
|
1397
1406
|
transformValue?: (value: any) => any;
|
|
1398
1407
|
keyToPayload?: string;
|
|
1408
|
+
onValueChange?: (value: any) => void;
|
|
1409
|
+
conditionalVisibility?: ConditionalVisibility;
|
|
1410
|
+
checkboxConfig?: CheckboxFieldConfig;
|
|
1399
1411
|
modes?: Partial<Record<ModalMode, {
|
|
1400
1412
|
validators?: ValidatorFn[];
|
|
1401
1413
|
errorMessages?: {
|
|
@@ -1464,6 +1476,7 @@ declare class FilterModalComponent<T extends DataBaseModelInterface> implements
|
|
|
1464
1476
|
private resetValues;
|
|
1465
1477
|
private updateFormWithFilterValues;
|
|
1466
1478
|
getFieldConfig(filter: FilterConfig<T>): FilterConfig<T>;
|
|
1479
|
+
visibleFilters: _angular_core.Signal<FilterConfig<T>[]>;
|
|
1467
1480
|
getFieldValue(filterKey: string): any;
|
|
1468
1481
|
updateFilter(key: string, value: any): void;
|
|
1469
1482
|
updateGlobalFilterValue(value: string): void;
|
|
@@ -2045,6 +2058,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2045
2058
|
onActiveFilterRemove(filter: ActiveFilterItem): void;
|
|
2046
2059
|
onActiveFiltersClear(): void;
|
|
2047
2060
|
private handleFilterRemoved;
|
|
2061
|
+
private handleFilterDependencies;
|
|
2048
2062
|
private handleFiltersCleared;
|
|
2049
2063
|
private updateHeaderService;
|
|
2050
2064
|
ngOnDestroy(): void;
|