ngx-vector-components 6.35.0 → 6.36.0
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/CHANGELOG.md +12 -0
- package/fesm2022/ngx-vector-components.mjs +13 -5
- package/fesm2022/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/button/button.component.d.ts +1 -2
- package/lib/components/fields/data-table/data-table.component.d.ts +7 -8
- package/lib/models/data-table.model.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
type ButtonType = 'success' | 'success-outlined' | 'default' | 'default-filled' | 'default-outlined' | 'default-outlined-gray' | 'default-outlined-gray-icon-red' | 'default-outlined-gray-icon-gray' | 'cancel' | 'cancel-filled' | 'light-outline';
|
|
3
|
+
export type ButtonType = 'success' | 'success-outlined' | 'default' | 'default-filled' | 'default-outlined' | 'default-outlined-gray' | 'default-outlined-gray-icon-red' | 'default-outlined-gray-icon-gray' | 'cancel' | 'cancel-filled' | 'light-outline';
|
|
4
4
|
export declare class ButtonComponent {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
label: string;
|
|
@@ -16,4 +16,3 @@ export declare class ButtonComponent {
|
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "vector-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "noShadow": { "alias": "noShadow"; "required": false; }; "round": { "alias": "round"; "required": false; }; "style": { "alias": "style"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
|
|
18
18
|
}
|
|
19
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Menu } from 'primeng/menu';
|
|
3
3
|
import { FilterChangedEvent, ListItem } from '../../../models';
|
|
4
|
-
import { DataTableLazyLoadEvent, TableColumn } from '../../../models/data-table.model';
|
|
4
|
+
import { AddItemButtonConfig, DataTableCustomButton, DataTableLazyLoadEvent, TableColumn } from '../../../models/data-table.model';
|
|
5
5
|
import { FilterField, FiltersComponent } from '../filters/filters.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
@@ -24,15 +24,11 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
hideCurrentPageReport: boolean;
|
|
25
25
|
filters: FilterField[];
|
|
26
26
|
addItemLabel: string;
|
|
27
|
+
addItemLabelConfig: AddItemButtonConfig | undefined;
|
|
27
28
|
pagination: boolean;
|
|
28
29
|
virtualPagination: boolean;
|
|
29
30
|
set tabs(_tabs: ListItem[]);
|
|
30
|
-
customButtons:
|
|
31
|
-
label: string;
|
|
32
|
-
clickFunction: Function;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
addItemButtonPlusSign: boolean;
|
|
31
|
+
customButtons: DataTableCustomButton[] | undefined;
|
|
36
32
|
hasActions: boolean;
|
|
37
33
|
hasExpandableIcon: boolean;
|
|
38
34
|
addNameColumnExpand: string;
|
|
@@ -72,6 +68,9 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
72
68
|
selectedItems: any;
|
|
73
69
|
get balance(): (itemAccount?: any) => number | string;
|
|
74
70
|
get tabs(): ListItem[];
|
|
71
|
+
get addItemIcon(): string;
|
|
72
|
+
get addItemIconPosition(): 'left' | 'right';
|
|
73
|
+
get addItemDisabled(): boolean;
|
|
75
74
|
get height(): string;
|
|
76
75
|
get selectionMode(): "multiple" | "single" | null;
|
|
77
76
|
private _selectionMode;
|
|
@@ -113,5 +112,5 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
113
112
|
private getStatusColor;
|
|
114
113
|
private getActiveStatusColor;
|
|
115
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "exportExcel": { "alias": "exportExcel"; "required": false; }; "exportPDF": { "alias": "exportPDF"; "required": false; }; "customFunction": { "alias": "customFunction"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "disabledHeadercheckbox": { "alias": "disabledHeadercheckbox"; "required": false; }; "hideHeaderCheckbox": { "alias": "hideHeaderCheckbox"; "required": false; }; "hideCurrentPageReport": { "alias": "hideCurrentPageReport"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "exportExcel": { "alias": "exportExcel"; "required": false; }; "exportPDF": { "alias": "exportPDF"; "required": false; }; "customFunction": { "alias": "customFunction"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "disabledHeadercheckbox": { "alias": "disabledHeadercheckbox"; "required": false; }; "hideHeaderCheckbox": { "alias": "hideHeaderCheckbox"; "required": false; }; "hideCurrentPageReport": { "alias": "hideCurrentPageReport"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "addItemLabelConfig": { "alias": "addItemLabelConfig"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "virtualPagination": { "alias": "virtualPagination"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "customButtons": { "alias": "customButtons"; "required": false; }; "hasActions": { "alias": "hasActions"; "required": false; }; "hasExpandableIcon": { "alias": "hasExpandableIcon"; "required": false; }; "addNameColumnExpand": { "alias": "addNameColumnExpand"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "dataKey": { "alias": "dataKey"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectionType": { "alias": "selectionType"; "required": false; }; "height": { "alias": "height"; "required": false; }; "showLimitBalance": { "alias": "showLimitBalance"; "required": false; }; "showDataBalance": { "alias": "showDataBalance"; "required": false; }; "dataAccountBalance": { "alias": "dataAccountBalance"; "required": false; }; "firstLazyLoad": { "alias": "firstLazyLoad"; "required": false; }; "shouldLazyLoadWithoutFilter": { "alias": "shouldLazyLoadWithoutFilter"; "required": false; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; }; "disableInitialSearch": { "alias": "disableInitialSearch"; "required": false; }; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; "onExportExcel": "onExportExcel"; "onExportPDF": "onExportPDF"; "onSelectedRows": "onSelectedRows"; "onFilterChanged": "onFilterChanged"; "onTabSelected": "onTabSelected"; "onExpandRow": "onExpandRow"; "onCellEdit": "onCellEdit"; }, never, never, false, never>;
|
|
117
116
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MenuItem } from 'primeng/api';
|
|
2
|
+
import type { ButtonType } from '../components/fields/button/button.component';
|
|
2
3
|
import { ListItem } from './list-item.model';
|
|
3
4
|
import { Status } from './status.enum';
|
|
4
5
|
export type DataTableBaseItem = {
|
|
@@ -72,3 +73,17 @@ export declare enum SelectionType {
|
|
|
72
73
|
CHECKBOX = "checkbox",
|
|
73
74
|
RADIOBUTTON = "radiobutton"
|
|
74
75
|
}
|
|
76
|
+
export type AddItemButtonConfig = {
|
|
77
|
+
type?: ButtonType;
|
|
78
|
+
icon?: string;
|
|
79
|
+
iconPosition?: 'left' | 'right';
|
|
80
|
+
disabled?: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type DataTableCustomButton = {
|
|
83
|
+
label: string;
|
|
84
|
+
clickFunction: Function;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
type?: ButtonType;
|
|
87
|
+
icon?: string;
|
|
88
|
+
iconPosition?: 'left' | 'right';
|
|
89
|
+
};
|