@brickclay-org/ui 0.0.84 → 0.0.86
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,10 @@ 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
|
+
column: TableColumn<T>;
|
|
729
|
+
}>;
|
|
725
730
|
actionClick: EventEmitter<{
|
|
726
731
|
action: string;
|
|
727
732
|
row: T;
|
|
@@ -739,6 +744,8 @@ declare class BkGrid<T = any> {
|
|
|
739
744
|
sort(column: TableColumn<T>, index: number): void;
|
|
740
745
|
isColumnVisible(column: TableColumn<T>): boolean;
|
|
741
746
|
getCellValue(row: T, column: TableColumn<T>): string;
|
|
747
|
+
getCheckboxValue(row: T, column: TableColumn<T>): boolean;
|
|
748
|
+
setCheckboxValue(row: T, column: TableColumn<T>, value: boolean): void;
|
|
742
749
|
getBadge(row: T, column: TableColumn<T>): TableBadge | undefined;
|
|
743
750
|
getIcons(row: T, column: TableColumn<T>): TableIcon[];
|
|
744
751
|
getRowActions(row: T, column?: TableColumn<T>): TableAction<T>[];
|
|
@@ -749,7 +756,7 @@ declare class BkGrid<T = any> {
|
|
|
749
756
|
onDragMoved(event: CdkDragMove<any>): void;
|
|
750
757
|
onDragStart(event: CdkDragStart<any>): void;
|
|
751
758
|
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>;
|
|
759
|
+
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
760
|
}
|
|
754
761
|
|
|
755
762
|
declare class BkSelect implements ControlValueAccessor {
|