-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #501 from ghiscoding/feat/internal-group-item-meta…
…data-provider Feat/internal group item metadata provider
- Loading branch information
Showing
47 changed files
with
1,097 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
packages/common/src/extensions/__tests__/groupItemMetaProviderExtension.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
packages/common/src/extensions/groupItemMetaProviderExtension.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export * from './cellExternalCopyManagerExtension'; | ||
export * from './checkboxSelectorExtension'; | ||
export * from './extensionUtility'; | ||
export * from './groupItemMetaProviderExtension'; | ||
export * from './rowDetailViewExtension'; | ||
export * from './rowMoveManagerExtension'; | ||
export * from './rowSelectionExtension'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { GroupItemMetadataProviderService } from '../services/groupItemMetadataProvider.service'; | ||
import { SlickGroupItemMetadataProvider } from './slickGroupItemMetadataProvider.interface'; | ||
|
||
export interface DataViewOption { | ||
/** Defaults to false, use with great care as this will break built-in filters */ | ||
inlineFilters?: boolean; | ||
|
||
/** Optionally provide a Group Item Metatadata Provider when using Grouping/DraggableGrouping feature */ | ||
groupItemMetadataProvider?: SlickGroupItemMetadataProvider; | ||
groupItemMetadataProvider?: SlickGroupItemMetadataProvider | GroupItemMetadataProviderService; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 18 additions & 16 deletions
34
packages/common/src/interfaces/groupItemMetadataProviderOption.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
import { Formatter } from './formatter.interface'; | ||
import { GroupTotalsFormatter } from './groupTotalsFormatter.interface'; | ||
import { SlickCheckboxSelectColumn } from './slickCheckboxSelectColumn.interface'; | ||
|
||
export interface GroupItemMetadataProviderOption { | ||
/** Whether or not we want to use group select checkbox. */ | ||
checkboxSelect: boolean; | ||
checkboxSelect?: boolean; | ||
|
||
/** Defaults to "slick-group-select-checkbox" */ | ||
checkboxSelectCssClass: string; | ||
checkboxSelectCssClass?: string; | ||
|
||
/** Plugin to select row(s) via checkboxes typically shown as the 1st column in the grid. */ | ||
checkboxSelectPlugin: SlickCheckboxSelectColumn; | ||
checkboxSelectPlugin?: SlickCheckboxSelectColumn; | ||
|
||
/** Defaults to "slick-group" */ | ||
groupCssClass: string; | ||
groupCssClass?: string; | ||
|
||
/** Defaults to "slick-group-title" */ | ||
groupTitleCssClass: string; | ||
groupTitleCssClass?: string; | ||
|
||
/** Defaults to 15(px), margin-left indentation to use (it will be multiplied by the group level number) */ | ||
indentation?: number; | ||
|
||
/** Defaults to "slick-group-totals" */ | ||
totalsCssClass: string; | ||
totalsCssClass?: string; | ||
|
||
/** Whether or not the group is focusable. */ | ||
groupFocusable: boolean; | ||
groupFocusable?: boolean; | ||
|
||
/** Whether or not the group totals is focusable. */ | ||
totalsFocusable: boolean; | ||
totalsFocusable?: boolean; | ||
|
||
/** Defaults to "slick-group-toggle" */ | ||
toggleCssClass: string; | ||
toggleCssClass?: string; | ||
|
||
/** Defaults to "expanded" */ | ||
toggleExpandedCssClass: string; | ||
toggleExpandedCssClass?: string; | ||
|
||
/** Defaults to "collapsed" */ | ||
toggleCollapsedCssClass: string; | ||
toggleCollapsedCssClass?: string; | ||
|
||
/** Whether or not we want to enable the group expanding/collapsing */ | ||
enableExpandCollapse: boolean; | ||
enableExpandCollapse?: boolean; | ||
|
||
/** A custom group cell formatter. */ | ||
groupFormatter: Formatter; | ||
groupFormatter?: Formatter; | ||
|
||
/** A custom total formatter. */ | ||
totalsFormatter: GroupTotalsFormatter; | ||
totalsFormatter?: Formatter; | ||
|
||
/** Whether or not we want to include header totals */ | ||
includeHeaderTotals: boolean; | ||
includeHeaderTotals?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.