@solcre-org/core-ui 2.12.9 → 2.12.11
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 +64 -22
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +15 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1370,7 +1370,7 @@ interface CustomAction<T> {
|
|
|
1370
1370
|
shouldDisable?: (row: T) => boolean;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
|
-
interface TableActionConfig {
|
|
1373
|
+
interface TableActionConfig<T = any> {
|
|
1374
1374
|
action: TableAction;
|
|
1375
1375
|
isExtra?: boolean;
|
|
1376
1376
|
icon?: string;
|
|
@@ -1381,6 +1381,8 @@ interface TableActionConfig {
|
|
|
1381
1381
|
resource: string;
|
|
1382
1382
|
action: string;
|
|
1383
1383
|
};
|
|
1384
|
+
shouldShow?: (row: T) => boolean;
|
|
1385
|
+
shouldDisable?: (row: T) => boolean;
|
|
1384
1386
|
}
|
|
1385
1387
|
|
|
1386
1388
|
declare class DropdownComponent<T> implements OnDestroy {
|
|
@@ -1419,9 +1421,11 @@ declare class DropdownComponent<T> implements OnDestroy {
|
|
|
1419
1421
|
closeDropdown(): void;
|
|
1420
1422
|
triggerAction(action: TableAction): void;
|
|
1421
1423
|
triggerCustomAction(action: CustomAction<T>): void;
|
|
1422
|
-
hasPermission(action: TableActionConfig | CustomAction<T>): boolean;
|
|
1424
|
+
hasPermission(action: TableActionConfig<T> | CustomAction<T>): boolean;
|
|
1425
|
+
shouldShowAction(actionConfig: TableActionConfig<T>): boolean;
|
|
1426
|
+
shouldShowCustomAction(customAction: CustomAction<T>): boolean;
|
|
1423
1427
|
getActionLabel(action: TableAction): string;
|
|
1424
|
-
getDefaultActionButtonConfig(actionConfig: TableActionConfig): ButtonConfig;
|
|
1428
|
+
getDefaultActionButtonConfig(actionConfig: TableActionConfig<T>): ButtonConfig;
|
|
1425
1429
|
getCustomActionButtonConfig(customAction: CustomAction<T>): ButtonConfig;
|
|
1426
1430
|
getCustomActionButtonConfigForRow(customAction: CustomAction<T>): ButtonConfig;
|
|
1427
1431
|
onButtonClick(event: ButtonActionEvent, action: any): void;
|
|
@@ -2009,7 +2013,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2009
2013
|
columns: _angular_core.InputSignal<ColumnConfig<T>[]>;
|
|
2010
2014
|
modalFields: _angular_core.InputSignal<ModalFieldConfig<T>[]>;
|
|
2011
2015
|
modalTabs: _angular_core.InputSignal<ModalTabConfig<T>[]>;
|
|
2012
|
-
actions: _angular_core.InputSignal<TableActionConfig[]>;
|
|
2016
|
+
actions: _angular_core.InputSignal<TableActionConfig<T>[]>;
|
|
2013
2017
|
customActions: _angular_core.InputSignal<CustomAction<T>[]>;
|
|
2014
2018
|
globalActions: _angular_core.InputSignal<GlobalAction<T>[]>;
|
|
2015
2019
|
pageSizeOptions: _angular_core.InputSignal<number[] | undefined>;
|
|
@@ -2079,9 +2083,10 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2079
2083
|
regularCustomActions: _angular_core.Signal<CustomAction<T>[]>;
|
|
2080
2084
|
extraCustomActions: _angular_core.Signal<CustomAction<T>[]>;
|
|
2081
2085
|
getVisibleCustomActions(row: T, isExtra?: boolean): CustomAction<T>[];
|
|
2086
|
+
getVisibleDefaultActions(row: T, isExtra?: boolean): TableActionConfig<T>[];
|
|
2082
2087
|
hasExtraCustomActions: _angular_core.Signal<boolean>;
|
|
2083
|
-
regularDefaultActions: _angular_core.Signal<TableActionConfig[]>;
|
|
2084
|
-
extraDefaultActions: _angular_core.Signal<TableActionConfig[]>;
|
|
2088
|
+
regularDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
|
|
2089
|
+
extraDefaultActions: _angular_core.Signal<TableActionConfig<T>[]>;
|
|
2085
2090
|
hasExtraDefaultActions: _angular_core.Signal<boolean>;
|
|
2086
2091
|
hasExtraActions: _angular_core.Signal<boolean>;
|
|
2087
2092
|
currentFilterValues: _angular_core.WritableSignal<Map<string, any>>;
|
|
@@ -2153,7 +2158,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2153
2158
|
closeModal(): void;
|
|
2154
2159
|
emitDataEvent(data: T, mode: ModalMode): void;
|
|
2155
2160
|
getRowId(row: T): number;
|
|
2156
|
-
hasPermission(action: TableActionConfig | CustomAction<T> | GlobalAction<T>
|
|
2161
|
+
hasPermission(action: TableActionConfig<T> | CustomAction<T> | GlobalAction<T>): boolean;
|
|
2157
2162
|
showFiltersPopup(): void;
|
|
2158
2163
|
closeFiltersPopup(): void;
|
|
2159
2164
|
handleFilterChange(filterValues: Map<string, any>): void;
|
|
@@ -2207,7 +2212,7 @@ declare class GenericTableComponent<T extends DataBaseModelInterface & {
|
|
|
2207
2212
|
loadMoreItems(): void;
|
|
2208
2213
|
onModalData(data: T): void;
|
|
2209
2214
|
getExpandButtonConfig(row: T): ButtonConfig;
|
|
2210
|
-
getActionButtonConfig(action: TableAction, actionConfig: TableActionConfig): ButtonConfig;
|
|
2215
|
+
getActionButtonConfig(action: TableAction, actionConfig: TableActionConfig<T>, row?: T): ButtonConfig;
|
|
2211
2216
|
getCustomActionButtonConfig(customAction: CustomAction<T>): ButtonConfig;
|
|
2212
2217
|
getCustomActionButtonConfigForRow(customAction: CustomAction<T>, row: T): ButtonConfig;
|
|
2213
2218
|
getMoreActionsButtonConfig(rowId: number): ButtonConfig;
|
|
@@ -2415,6 +2420,7 @@ interface SidebarComponentConfig {
|
|
|
2415
2420
|
customTemplate?: TemplateRef<any>;
|
|
2416
2421
|
templateKey?: string;
|
|
2417
2422
|
responsiveConfig?: SidebarResponsiveConfig;
|
|
2423
|
+
isInsideNav?: boolean;
|
|
2418
2424
|
}
|
|
2419
2425
|
|
|
2420
2426
|
declare enum SidebarWidth {
|
|
@@ -2738,6 +2744,7 @@ declare class GenericSidebarComponent implements OnInit {
|
|
|
2738
2744
|
hasValidConfiguration: _angular_core.Signal<boolean>;
|
|
2739
2745
|
shouldUseCustomTemplate: _angular_core.Signal<boolean>;
|
|
2740
2746
|
getActiveTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
2747
|
+
isTemplateInsideNav: _angular_core.Signal<boolean>;
|
|
2741
2748
|
modalButtons: _angular_core.Signal<ModalButtonConfig<any>[]>;
|
|
2742
2749
|
ngOnInit(): void;
|
|
2743
2750
|
onResize(event: any): void;
|