-
-
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.
feat(plugins): move Row Detail View plugin to universal
- Loading branch information
1 parent
3c37ce9
commit fb327a6
Showing
30 changed files
with
1,110 additions
and
218 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
44 changes: 0 additions & 44 deletions
44
packages/common/src/extensions/__tests__/rowDetailViewExtension.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './extensionUtility'; | ||
export * from './rowDetailViewExtension'; |
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
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
78 changes: 0 additions & 78 deletions
78
packages/common/src/interfaces/slickRowDetailView.interface.ts
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
packages/common/src/plugins/__tests__/slickContextMenu.spec.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
69 changes: 69 additions & 0 deletions
69
packages/common/src/plugins/__tests__/slickRowDetail.spec.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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { SlickRowDetailView } from '../slickRowDetailView'; | ||
|
||
describe('SlickRowDetailView plugin', () => { | ||
let plugin: SlickRowDetailView; | ||
|
||
beforeEach(() => { | ||
plugin = new SlickRowDetailView(); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "init" method', () => { | ||
expect(() => plugin.init({} as any)).toThrow('SlickRowDetailView the "init" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "create" method', () => { | ||
expect(() => plugin.create([], {} as any)).toThrow('SlickRowDetailView the "create" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "destroy" method', () => { | ||
expect(() => plugin.destroy()).toThrow('SlickRowDetailView the "destroy" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "dispose" method', () => { | ||
expect(() => plugin.dispose()).toThrow('SlickRowDetailView the "dispose" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "collapseAll" method', () => { | ||
expect(() => plugin.collapseAll()).toThrow('SlickRowDetailView the "collapseAll" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "collapseDetailView" method', () => { | ||
expect(() => plugin.collapseDetailView({} as any, true)).toThrow('SlickRowDetailView the "collapseDetailView" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "expandDetailView" method', () => { | ||
expect(() => plugin.expandDetailView({} as any)).toThrow('SlickRowDetailView the "expandDetailView" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "expandableOverride" method', () => { | ||
expect(() => plugin.expandableOverride({} as any)).toThrow('SlickRowDetailView the "expandableOverride" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "getColumnDefinition" method', () => { | ||
expect(() => plugin.getColumnDefinition()).toThrow('SlickRowDetailView the "getColumnDefinition" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "getExpandedRows" method', () => { | ||
expect(() => plugin.getExpandedRows()).toThrow('SlickRowDetailView the "getExpandedRows" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "getFilterItem" method', () => { | ||
expect(() => plugin.getFilterItem({} as any)).toThrow('SlickRowDetailView the "getFilterItem" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "getOptions" method', () => { | ||
expect(() => plugin.getOptions()).toThrow('SlickRowDetailView the "getOptions" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "resizeDetailView" method', () => { | ||
expect(() => plugin.resizeDetailView({} as any)).toThrow('SlickRowDetailView the "resizeDetailView" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "saveDetailView" method', () => { | ||
expect(() => plugin.saveDetailView({} as any)).toThrow('SlickRowDetailView the "saveDetailView" method must be implemented'); | ||
}); | ||
|
||
it('should throw a not implemented error when calling "setOptions" method', () => { | ||
expect(() => plugin.setOptions({} as any)).toThrow('SlickRowDetailView the "setOptions" method must be implemented'); | ||
}); | ||
}); |
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
Oops, something went wrong.