primekit 0.0.61 → 0.0.63
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/esm2022/lib/lib/atomix-table/atomix-table.component.mjs +76 -6
- package/esm2022/lib/lib/atomix-table/atomix-table.models.mjs +1 -1
- package/esm2022/lib/primekit.module.mjs +7 -3
- package/fesm2022/primekit.mjs +79 -5
- package/fesm2022/primekit.mjs.map +1 -1
- package/lib/lib/atomix-table/atomix-table.component.d.ts +7 -1
- package/lib/lib/atomix-table/atomix-table.models.d.ts +8 -0
- package/lib/primekit.module.d.ts +2 -1
- package/package.json +1 -1
|
@@ -61,6 +61,7 @@ export declare class AtomixTableComponent implements OnChanges {
|
|
|
61
61
|
}>;
|
|
62
62
|
logButton: EventEmitter<any>;
|
|
63
63
|
pageDropdownChange: EventEmitter<any>;
|
|
64
|
+
childRowAction: EventEmitter<any>;
|
|
64
65
|
rowDataOutlet: TemplateRef<any>;
|
|
65
66
|
sortBy: string;
|
|
66
67
|
orderBy: string;
|
|
@@ -74,7 +75,9 @@ export declare class AtomixTableComponent implements OnChanges {
|
|
|
74
75
|
rows2: number;
|
|
75
76
|
page: number;
|
|
76
77
|
showPagination: boolean;
|
|
78
|
+
childRowsActionButtonsData: TableActionButton[];
|
|
77
79
|
showActionsColumn: boolean;
|
|
80
|
+
showExpandedActionsColumn: boolean;
|
|
78
81
|
actionButtonsData: TableActionButton[];
|
|
79
82
|
dt1: Table;
|
|
80
83
|
getChipCss: (type: string) => string;
|
|
@@ -97,6 +100,8 @@ export declare class AtomixTableComponent implements OnChanges {
|
|
|
97
100
|
handlePageChange(event: any): void;
|
|
98
101
|
dropdownHandler(event: any): void;
|
|
99
102
|
handleActionClick(action: any, rowData: any): void;
|
|
103
|
+
handleChildActionClick(action: any, rowData: any): void;
|
|
104
|
+
shouldShowAction(action: any, rowData: any): boolean;
|
|
100
105
|
isAllSelected: boolean;
|
|
101
106
|
headerCheckboxHandler: EventEmitter<boolean>;
|
|
102
107
|
checkboxHandler: EventEmitter<any>;
|
|
@@ -104,6 +109,7 @@ export declare class AtomixTableComponent implements OnChanges {
|
|
|
104
109
|
toggleAllRows(event: CheckboxChangeEvent): void;
|
|
105
110
|
singleCheckboxHandler(event: CheckboxChangeEvent, row: any): void;
|
|
106
111
|
isString(value: any): boolean;
|
|
112
|
+
handleDateRangeFilter(value: any, filterCallback: (value: any) => void): void;
|
|
107
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtomixTableComponent, never>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtomixTableComponent, "atomix-table", never, { "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "size": { "alias": "size"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "expandedColumns": { "alias": "expandedColumns"; "required": false; }; "emptyExpandableRowMessage": { "alias": "emptyExpandableRowMessage"; "required": false; }; "secondaryRowsKey": { "alias": "secondaryRowsKey"; "required": false; }; "title": { "alias": "title"; "required": false; }; "enablePaginator": { "alias": "enablePaginator"; "required": false; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; }; "enableReorderableRow": { "alias": "enableReorderableRow"; "required": false; }; "emptyStateMessage": { "alias": "emptyStateMessage"; "required": false; }; "enableMultiselect": { "alias": "enableMultiselect"; "required": false; }; "enableExpandableRow": { "alias": "enableExpandableRow"; "required": false; }; "enableSelectAllOnInit": { "alias": "enableSelectAllOnInit"; "required": false; }; "enableColumnFilters": { "alias": "enableColumnFilters"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "enableEditButtons": { "alias": "enableEditButtons"; "required": false; }; "enableDeleteButtons": { "alias": "enableDeleteButtons"; "required": false; }; "actionButtonConfig": { "alias": "actionButtonConfig"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "isEnableSorting": { "alias": "isEnableSorting"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showActionsColumn": { "alias": "showActionsColumn"; "required": false; }; "actionButtonsData": { "alias": "actionButtonsData"; "required": false; }; "getChipCss": { "alias": "getChipCss"; "required": false; }; "getChipIcon": { "alias": "getChipIcon"; "required": false; }; "isAllSelected": { "alias": "isAllSelected"; "required": false; }; }, { "selectedRows": "selectedRows"; "pageChange": "pageChange"; "filterChange": "filterChange"; "editRow": "editRow"; "actionRow": "actionRow"; "deleteRow": "deleteRow"; "actionButton": "actionButton"; "expandedRow": "expandedRow"; "dropdownSelectionChanged": "dropdownSelectionChanged"; "rowReordered": "rowReordered"; "logButton": "logButton"; "pageDropdownChange": "pageDropdownChange"; "sortHandler": "sortHandler"; "headerCheckboxHandler": "headerCheckboxHandler"; "checkboxHandler": "checkboxHandler"; }, ["rowDataOutlet"], ["[body]"], false, never>;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtomixTableComponent, "atomix-table", never, { "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "size": { "alias": "size"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "expandedColumns": { "alias": "expandedColumns"; "required": false; }; "emptyExpandableRowMessage": { "alias": "emptyExpandableRowMessage"; "required": false; }; "secondaryRowsKey": { "alias": "secondaryRowsKey"; "required": false; }; "title": { "alias": "title"; "required": false; }; "enablePaginator": { "alias": "enablePaginator"; "required": false; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; }; "enableReorderableRow": { "alias": "enableReorderableRow"; "required": false; }; "emptyStateMessage": { "alias": "emptyStateMessage"; "required": false; }; "enableMultiselect": { "alias": "enableMultiselect"; "required": false; }; "enableExpandableRow": { "alias": "enableExpandableRow"; "required": false; }; "enableSelectAllOnInit": { "alias": "enableSelectAllOnInit"; "required": false; }; "enableColumnFilters": { "alias": "enableColumnFilters"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "enableEditButtons": { "alias": "enableEditButtons"; "required": false; }; "enableDeleteButtons": { "alias": "enableDeleteButtons"; "required": false; }; "actionButtonConfig": { "alias": "actionButtonConfig"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "isEnableSorting": { "alias": "isEnableSorting"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "childRowsActionButtonsData": { "alias": "childRowsActionButtonsData"; "required": false; }; "showActionsColumn": { "alias": "showActionsColumn"; "required": false; }; "showExpandedActionsColumn": { "alias": "showExpandedActionsColumn"; "required": false; }; "actionButtonsData": { "alias": "actionButtonsData"; "required": false; }; "getChipCss": { "alias": "getChipCss"; "required": false; }; "getChipIcon": { "alias": "getChipIcon"; "required": false; }; "isAllSelected": { "alias": "isAllSelected"; "required": false; }; }, { "selectedRows": "selectedRows"; "pageChange": "pageChange"; "filterChange": "filterChange"; "editRow": "editRow"; "actionRow": "actionRow"; "deleteRow": "deleteRow"; "actionButton": "actionButton"; "expandedRow": "expandedRow"; "dropdownSelectionChanged": "dropdownSelectionChanged"; "rowReordered": "rowReordered"; "logButton": "logButton"; "pageDropdownChange": "pageDropdownChange"; "childRowAction": "childRowAction"; "sortHandler": "sortHandler"; "headerCheckboxHandler": "headerCheckboxHandler"; "checkboxHandler": "checkboxHandler"; }, ["rowDataOutlet"], ["[body]"], false, never>;
|
|
109
115
|
}
|
|
@@ -23,7 +23,12 @@ export interface Column {
|
|
|
23
23
|
label: string;
|
|
24
24
|
}[];
|
|
25
25
|
filterByDate?: boolean;
|
|
26
|
+
filterByDateRange?: boolean;
|
|
26
27
|
hideAdvancedFilters?: boolean;
|
|
28
|
+
copyIcon?: boolean;
|
|
29
|
+
chip?: boolean;
|
|
30
|
+
chipIcon?: boolean;
|
|
31
|
+
progress?: boolean;
|
|
27
32
|
}
|
|
28
33
|
export type SortDirection = 'asc' | 'desc' | '';
|
|
29
34
|
export interface TableActionButton {
|
|
@@ -32,4 +37,7 @@ export interface TableActionButton {
|
|
|
32
37
|
tooltip?: string;
|
|
33
38
|
click?: (event: any) => void;
|
|
34
39
|
disabled?: boolean;
|
|
40
|
+
showOnlyWhen?: {
|
|
41
|
+
[k: string]: string;
|
|
42
|
+
};
|
|
35
43
|
}
|
package/lib/primekit.module.d.ts
CHANGED
|
@@ -51,8 +51,9 @@ import * as i49 from "primeng/autofocus";
|
|
|
51
51
|
import * as i50 from "primeng/selectbutton";
|
|
52
52
|
import * as i51 from "primeng/tag";
|
|
53
53
|
import * as i52 from "primeng/chip";
|
|
54
|
+
import * as i53 from "primeng/progressbar";
|
|
54
55
|
export declare class PrimekitModule {
|
|
55
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrimekitModule, never>;
|
|
56
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimekitModule, [typeof i1.AtomixButtonComponent, typeof i2.AtomixCardComponent, typeof i3.AtomixConfirmationDialogComponent, typeof i4.AtomixInputComponent, typeof i5.AtomixCalendarComponent, typeof i6.AtomixDropdownComponent, typeof i7.AtomixTableComponent, typeof i8.AtomixSnackbarComponent, typeof i9.AtomixPaginationComponent, typeof i10.AtomixFormAutocompleteComponent, typeof i11.AtomixFormCalendarComponent, typeof i12.AtomixFormCheckboxComponent, typeof i13.AtomixFormChipsComponent, typeof i14.AtomixFormDropdownComponent, typeof i15.AtomixFormInputComponent, typeof i16.AtomixFormInputmaskComponent, typeof i17.AtomixFormPasswordComponent, typeof i18.AtomixFormTextareaComponent, typeof i19.AtomixFormRadioButtonComponent, typeof i20.AtomixToastComponent, typeof i21.AtomixMessagesComponent, typeof i22.AtomixSpinnerComponent, typeof i23.AtomixRadioButtonComponent, typeof i24.AtomixDynamicDialogComponent, typeof i25.AtomixSelectButtonComponent, typeof i26.AtomixTagComponent, typeof i27.AtomixSearchDropdownComponent], [typeof i28.CommonModule, typeof i29.ButtonModule, typeof i30.CardModule, typeof i31.DialogModule, typeof i32.InputTextModule, typeof i33.CalendarModule, typeof i34.DropdownModule, typeof i35.FormsModule, typeof i36.TableModule, typeof i37.SkeletonModule, typeof i38.PaginatorModule, typeof i39.TooltipModule, typeof i40.AutoCompleteModule, typeof i35.ReactiveFormsModule, typeof i41.CheckboxModule, typeof i42.ChipsModule, typeof i43.InputMaskModule, typeof i44.PasswordModule, typeof i45.RadioButtonModule, typeof i46.ToastModule, typeof i47.MessagesModule, typeof i48.ProgressSpinnerModule, typeof i49.AutoFocusModule, typeof i50.SelectButtonModule, typeof i51.TagModule, typeof i52.ChipModule], [typeof i1.AtomixButtonComponent, typeof i2.AtomixCardComponent, typeof i3.AtomixConfirmationDialogComponent, typeof i4.AtomixInputComponent, typeof i5.AtomixCalendarComponent, typeof i6.AtomixDropdownComponent, typeof i7.AtomixTableComponent, typeof i8.AtomixSnackbarComponent, typeof i9.AtomixPaginationComponent, typeof i10.AtomixFormAutocompleteComponent, typeof i35.ReactiveFormsModule, typeof i11.AtomixFormCalendarComponent, typeof i12.AtomixFormCheckboxComponent, typeof i13.AtomixFormChipsComponent, typeof i14.AtomixFormDropdownComponent, typeof i15.AtomixFormInputComponent, typeof i16.AtomixFormInputmaskComponent, typeof i17.AtomixFormPasswordComponent, typeof i18.AtomixFormTextareaComponent, typeof i19.AtomixFormRadioButtonComponent, typeof i20.AtomixToastComponent, typeof i21.AtomixMessagesComponent, typeof i22.AtomixSpinnerComponent, typeof i23.AtomixRadioButtonComponent, typeof i24.AtomixDynamicDialogComponent, typeof i25.AtomixSelectButtonComponent, typeof i26.AtomixTagComponent, typeof i27.AtomixSearchDropdownComponent]>;
|
|
57
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimekitModule, [typeof i1.AtomixButtonComponent, typeof i2.AtomixCardComponent, typeof i3.AtomixConfirmationDialogComponent, typeof i4.AtomixInputComponent, typeof i5.AtomixCalendarComponent, typeof i6.AtomixDropdownComponent, typeof i7.AtomixTableComponent, typeof i8.AtomixSnackbarComponent, typeof i9.AtomixPaginationComponent, typeof i10.AtomixFormAutocompleteComponent, typeof i11.AtomixFormCalendarComponent, typeof i12.AtomixFormCheckboxComponent, typeof i13.AtomixFormChipsComponent, typeof i14.AtomixFormDropdownComponent, typeof i15.AtomixFormInputComponent, typeof i16.AtomixFormInputmaskComponent, typeof i17.AtomixFormPasswordComponent, typeof i18.AtomixFormTextareaComponent, typeof i19.AtomixFormRadioButtonComponent, typeof i20.AtomixToastComponent, typeof i21.AtomixMessagesComponent, typeof i22.AtomixSpinnerComponent, typeof i23.AtomixRadioButtonComponent, typeof i24.AtomixDynamicDialogComponent, typeof i25.AtomixSelectButtonComponent, typeof i26.AtomixTagComponent, typeof i27.AtomixSearchDropdownComponent], [typeof i28.CommonModule, typeof i29.ButtonModule, typeof i30.CardModule, typeof i31.DialogModule, typeof i32.InputTextModule, typeof i33.CalendarModule, typeof i34.DropdownModule, typeof i35.FormsModule, typeof i36.TableModule, typeof i37.SkeletonModule, typeof i38.PaginatorModule, typeof i39.TooltipModule, typeof i40.AutoCompleteModule, typeof i35.ReactiveFormsModule, typeof i41.CheckboxModule, typeof i42.ChipsModule, typeof i43.InputMaskModule, typeof i44.PasswordModule, typeof i45.RadioButtonModule, typeof i46.ToastModule, typeof i47.MessagesModule, typeof i48.ProgressSpinnerModule, typeof i49.AutoFocusModule, typeof i50.SelectButtonModule, typeof i51.TagModule, typeof i52.ChipModule, typeof i53.ProgressBarModule], [typeof i1.AtomixButtonComponent, typeof i2.AtomixCardComponent, typeof i3.AtomixConfirmationDialogComponent, typeof i4.AtomixInputComponent, typeof i5.AtomixCalendarComponent, typeof i6.AtomixDropdownComponent, typeof i7.AtomixTableComponent, typeof i8.AtomixSnackbarComponent, typeof i9.AtomixPaginationComponent, typeof i10.AtomixFormAutocompleteComponent, typeof i35.ReactiveFormsModule, typeof i11.AtomixFormCalendarComponent, typeof i12.AtomixFormCheckboxComponent, typeof i13.AtomixFormChipsComponent, typeof i14.AtomixFormDropdownComponent, typeof i15.AtomixFormInputComponent, typeof i16.AtomixFormInputmaskComponent, typeof i17.AtomixFormPasswordComponent, typeof i18.AtomixFormTextareaComponent, typeof i19.AtomixFormRadioButtonComponent, typeof i20.AtomixToastComponent, typeof i21.AtomixMessagesComponent, typeof i22.AtomixSpinnerComponent, typeof i23.AtomixRadioButtonComponent, typeof i24.AtomixDynamicDialogComponent, typeof i25.AtomixSelectButtonComponent, typeof i26.AtomixTagComponent, typeof i27.AtomixSearchDropdownComponent]>;
|
|
57
58
|
static ɵinj: i0.ɵɵInjectorDeclaration<PrimekitModule>;
|
|
58
59
|
}
|