-
Notifications
You must be signed in to change notification settings - Fork 850
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ng-table.js): support the CommonJS module format
ng-table.js is now output in UMD format and thus supports the following module formats: * global script tag * AMD (eg RequireJS) * CommonJS BREAKING CHANGE: 1) The AMD (RequireJS) module returned by ng-table.js is now an object that references the angular module. Previously, the module returned *was* the angular module. Note: this will only affect apps that are using RequireJS to load ng-table.js. Those apps that are loading ng-table.js as a script tag will be unaffected. 2) Replaced LESS with SASS This will only affect the minority of apps that are using the ng-table.less file in the dist folder. Those apps that are using the ng-table.css will be unaffected.
- Loading branch information
1 parent
78be04b
commit 7261ff4
Showing
27 changed files
with
356 additions
and
74 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
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,41 @@ | ||
import angular from 'angular'; | ||
import { ngTable } from './src/scripts/ngTable.directive'; | ||
import { ngTableColumn } from './src/scripts/ngTableColumn'; | ||
import { ngTableColumnsBinding } from './src/scripts/ngTableColumnsBinding.directive'; | ||
import { ngTableController } from './src/scripts/ngTableController'; | ||
import { ngTableDefaultGetDataProvider } from './src/scripts/ngTableDefaultGetData'; | ||
import { ngTableDefaults } from './src/scripts/ngTableDefaults'; | ||
import { ngTableDynamic } from './src/scripts/ngTableDynamic.directive'; | ||
import { ngTableEventsChannel } from './src/scripts/ngTableEventsChannel'; | ||
import { ngTableFilterConfigProvider } from './src/scripts/ngTableFilterConfig'; | ||
import { ngTableFilterRow } from './src/scripts/ngTableFilterRow.directive'; | ||
import { ngTableFilterRowController } from './src/scripts/ngTableFilterRowController'; | ||
import { ngTableGroupRow } from './src/scripts/ngTableGroupRow.directive'; | ||
import { ngTableGroupRowController } from './src/scripts/ngTableGroupRowController'; | ||
import { ngTablePagination } from './src/scripts/ngTablePagination.directive'; | ||
import { ngTableParamsFactory } from './src/scripts/ngTableParams'; | ||
import { ngTableSelectFilterDs } from './src/scripts/ngTableSelectFilterDs.directive'; | ||
import { ngTableSorterRow } from './src/scripts/ngTableSorterRow.directive'; | ||
import { ngTableSorterRowController } from './src/scripts/ngTableSorterRowController'; | ||
|
||
var module = angular.module('ngTable', []) | ||
.directive('ngTable', ngTable) | ||
.factory('ngTableColumn', ngTableColumn) | ||
.directive('ngTableColumnsBinding', ngTableColumnsBinding) | ||
.controller('ngTableController', ngTableController) | ||
.provider('ngTableDefaultGetData', ngTableDefaultGetDataProvider) | ||
.value('ngTableDefaults',ngTableDefaults) | ||
.directive('ngTableDynamic', ngTableDynamic) | ||
.factory('ngTableEventsChannel', ngTableEventsChannel) | ||
.provider('ngTableFilterConfig', ngTableFilterConfigProvider) | ||
.directive('ngTableFilterRow', ngTableFilterRow) | ||
.controller('ngTableFilterRowController', ngTableFilterRowController) | ||
.directive('ngTableGroupRow', ngTableGroupRow) | ||
.controller('ngTableGroupRowController', ngTableGroupRowController) | ||
.directive('ngTablePagination', ngTablePagination) | ||
.factory('NgTableParams', ngTableParamsFactory) | ||
.directive('ngTableSelectFilterDs', ngTableSelectFilterDs) | ||
.directive('ngTableSorterRow', ngTableSorterRow) | ||
.controller('ngTableSorterRowController', ngTableSorterRowController); | ||
|
||
export { module as default }; |
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
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.