@brickclay-org/ui 0.0.84 → 0.0.85
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
|
@@ -688,6 +688,7 @@ interface TableColumn<T = any> {
|
|
|
688
688
|
/** show / hide both th + td */
|
|
689
689
|
visible?: boolean;
|
|
690
690
|
actions?: TableAction[] | ((row: T) => TableAction[]);
|
|
691
|
+
checkbox?: boolean;
|
|
691
692
|
}
|
|
692
693
|
interface TableAction<T = any> {
|
|
693
694
|
name: string;
|
|
@@ -722,6 +723,9 @@ declare class BkGrid<T = any> {
|
|
|
722
723
|
result: T[];
|
|
723
724
|
actions: TableAction<T>[] | ((row: T) => TableAction<T>[]);
|
|
724
725
|
customClass: string;
|
|
726
|
+
change: EventEmitter<{
|
|
727
|
+
row: T;
|
|
728
|
+
}>;
|
|
725
729
|
actionClick: EventEmitter<{
|
|
726
730
|
action: string;
|
|
727
731
|
row: T;
|
|
@@ -739,6 +743,8 @@ declare class BkGrid<T = any> {
|
|
|
739
743
|
sort(column: TableColumn<T>, index: number): void;
|
|
740
744
|
isColumnVisible(column: TableColumn<T>): boolean;
|
|
741
745
|
getCellValue(row: T, column: TableColumn<T>): string;
|
|
746
|
+
getCheckboxValue(row: T, column: TableColumn<T>): boolean;
|
|
747
|
+
setCheckboxValue(row: T, column: TableColumn<T>, value: boolean): void;
|
|
742
748
|
getBadge(row: T, column: TableColumn<T>): TableBadge | undefined;
|
|
743
749
|
getIcons(row: T, column: TableColumn<T>): TableIcon[];
|
|
744
750
|
getRowActions(row: T, column?: TableColumn<T>): TableAction<T>[];
|
|
@@ -749,7 +755,7 @@ declare class BkGrid<T = any> {
|
|
|
749
755
|
onDragMoved(event: CdkDragMove<any>): void;
|
|
750
756
|
onDragStart(event: CdkDragStart<any>): void;
|
|
751
757
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkGrid<any>, never>;
|
|
752
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BkGrid<any>, "bk-grid", never, { "draggable": { "alias": "draggable"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "result": { "alias": "result"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "actionClick": "actionClick"; "sortChange": "sortChange"; "dragDropChange": "dragDropChange"; }, never, never, true, never>;
|
|
758
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BkGrid<any>, "bk-grid", never, { "draggable": { "alias": "draggable"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "result": { "alias": "result"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, { "change": "change"; "actionClick": "actionClick"; "sortChange": "sortChange"; "dragDropChange": "dragDropChange"; }, never, never, true, never>;
|
|
753
759
|
}
|
|
754
760
|
|
|
755
761
|
declare class BkSelect implements ControlValueAccessor {
|