@brickclay-org/ui 0.0.68 → 0.0.70
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
|
@@ -621,6 +621,8 @@ interface TableColumn<T = any> {
|
|
|
621
621
|
headerClass?: string;
|
|
622
622
|
cellClass?: string;
|
|
623
623
|
formatter?: (row: T) => string;
|
|
624
|
+
badges?: TableBadge[];
|
|
625
|
+
icons?: TableIcon[];
|
|
624
626
|
/** show / hide both th + td */
|
|
625
627
|
visible?: boolean;
|
|
626
628
|
}
|
|
@@ -630,6 +632,19 @@ interface TableAction {
|
|
|
630
632
|
tooltip: string;
|
|
631
633
|
hasPermission: boolean;
|
|
632
634
|
}
|
|
635
|
+
interface TableBadge {
|
|
636
|
+
label: string;
|
|
637
|
+
variant: BadgeVariant;
|
|
638
|
+
color: BadgeColor;
|
|
639
|
+
size: BadgeSize;
|
|
640
|
+
dot: 'left' | 'right' | 'none';
|
|
641
|
+
customClass: string;
|
|
642
|
+
}
|
|
643
|
+
interface TableIcon {
|
|
644
|
+
toolTipLabel?: string | string[];
|
|
645
|
+
tooltipPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
646
|
+
url: string;
|
|
647
|
+
}
|
|
633
648
|
|
|
634
649
|
type SortDirection = 'asc' | 'desc';
|
|
635
650
|
declare class BkGrid<T = any> {
|
|
@@ -658,6 +673,7 @@ declare class BkGrid<T = any> {
|
|
|
658
673
|
dropList(event: CdkDragDrop<T[]>): void;
|
|
659
674
|
onDragMoved(event: CdkDragMove<any>): void;
|
|
660
675
|
onDragStart(event: CdkDragStart<any>): void;
|
|
676
|
+
getBadge(row: T, column: TableColumn<T>): TableBadge | undefined;
|
|
661
677
|
static ɵfac: i0.ɵɵFactoryDeclaration<BkGrid<any>, never>;
|
|
662
678
|
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; }; }, { "actionClick": "actionClick"; "sortChange": "sortChange"; "dragDropChange": "dragDropChange"; }, never, never, true, never>;
|
|
663
679
|
}
|
|
@@ -2026,4 +2042,4 @@ declare class BkPagination implements OnChanges {
|
|
|
2026
2042
|
}
|
|
2027
2043
|
|
|
2028
2044
|
export { BKTooltipDirective, BK_DEFAULT_DIALOG_CONFIG, BK_DIALOG_DATA, BK_DIALOG_GLOBAL_CONFIG, BkAvatar, BkAvatarUploader, BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkColumnFilterService, BkColumnSelect, BkCustomCalendar, BkDialogActions, BkDialogClose, BkDialogContent, BkDialogModule, BkDialogRef, BkDialogService, BkDialogTitle, BkFileCard, BkFilePicker, BkGrid, BkHierarchicalSelect, BkIconButton, BkInput, BkInputChips, BkPagination, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTabs, BkTextarea, BkTimePicker, BkToastr, BkToastrService, BkToggle, BkValidator, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule, CalendarSelection, ColumnFilterOption, getDialogBackdropAnimation, getDialogPanelAnimation };
|
|
2029
|
-
export type { AvatarFallback, AvatarSize, AvatarVariant, BadgeColor, BadgeSize, BadgeVariant, BkAnimationKeyframes, BkAvatarFallback, BkAvatarSize, BkDialogAnimation, BkDialogConfig, BkDialogPosition, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkPageSize, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CountryOption, DotPosition, DotStatus, FileState, GroupItem, GroupMode, HierarchicalNode, IconButtonSize, IconButtonVariant, IconOrientation, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TabItem, TableAction, TableColumn, TimeConfiguration, ToastConfig, ToastMessage, ToastMethodOptions, ToastPosition, ToastSeverity };
|
|
2045
|
+
export type { AvatarFallback, AvatarSize, AvatarVariant, BadgeColor, BadgeSize, BadgeVariant, BkAnimationKeyframes, BkAvatarFallback, BkAvatarSize, BkDialogAnimation, BkDialogConfig, BkDialogPosition, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkPageSize, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CountryOption, DotPosition, DotStatus, FileState, GroupItem, GroupMode, HierarchicalNode, IconButtonSize, IconButtonVariant, IconOrientation, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TabItem, TableAction, TableBadge, TableColumn, TableIcon, TimeConfiguration, ToastConfig, ToastMessage, ToastMethodOptions, ToastPosition, ToastSeverity };
|