UNPKG

188 kBSource Map (JSON)View Raw
1{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap f774e40ea176f23445d6","webpack:///external \"angular\"","webpack:///./src/core/index.ts","webpack:///./src/browser/index.ts","webpack:///./src/core/data/index.ts","webpack:///./src/core/ngTableDefaults.ts","webpack:///./src/core/ngTableEventsChannel.ts","webpack:///./src/core/ngTableParams.ts","webpack:///./src/core/ngTableSettings.ts","webpack:///./src/core/util.ts","webpack:///./src/browser/ngTable.directive.ts","webpack:///./src/browser/ngTableColumn.ts","webpack:///./src/browser/ngTableColumnsBinding.directive.ts","webpack:///./src/browser/ngTableController.ts","webpack:///./src/browser/ngTableDynamic.directive.ts","webpack:///./src/browser/ngTableFilterConfig.ts","webpack:///./src/browser/ngTableFilterRow.directive.ts","webpack:///./src/browser/ngTableFilterRowController.ts","webpack:///./src/browser/ngTableGroupRow.directive.ts","webpack:///./src/browser/ngTableGroupRowController.ts","webpack:///./src/browser/ngTablePagination.directive.ts","webpack:///./src/browser/ngTableSelectFilterDs.directive.ts","webpack:///./src/browser/ngTableSorterRow.directive.ts","webpack:///./src/browser/ngTableSorterRowController.ts","webpack:///./src/core/data/ngTableDefaultGetData.ts","webpack:///./src/core/filtering/index.ts","webpack:///./src/core/grouping/index.ts","webpack:///./src/core/grouping/ngTableDefaultGetGroups.ts","webpack:///./src/core/grouping/publicExports.ts","webpack:///./src/browser/filterRow.html","webpack:///./src/browser/filters/number.html","webpack:///./src/browser/filters/select-multiple.html","webpack:///./src/browser/filters/select.html","webpack:///./src/browser/filters/text.html","webpack:///./src/browser/groupRow.html","webpack:///./src/browser/header.html","webpack:///./src/browser/pager.html","webpack:///./src/browser/sorterRow.html","webpack:///./index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;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ACJA;AACA;AACA;AACA,yDAAyD,oBAAoB;AAC7E,sB;;;;;;;;;;;ACJA;AACA,mSAAmS,iCAAiC,mRAAmR,kEAAkE,2KAA2K,qaAAqa,8QAA8Q;AACv/C;AACA,yDAAyD,oBAAoB;AAC7E,sB;;;;;;;;;;;ACJA;AACA,mEAAmE,2BAA2B,mEAAmE,mPAAmP,uLAAuL,qBAAqB,4EAA4E,8DAA8D,mEAAmE,+DAA+D;AAC52B;AACA,yDAAyD,oBAAoB;AAC7E,sB;;;;;;;;;;;;;;;;ACJA,IAAY,GAAG,uBAAM,gBAAS,CAAC;AAC/B,iCAAkC,mBAAY,CAAC;AAC/C,oCAAqC,sBAAe,CAAC;AAErD,IAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,wBAAiB,CAAC,IAAI,EAAE,8BAAoB,CAAC,IAAI,CAAC,CAAC;AAEvF,qBAAa,iBAF2E;AAGjG,6BAAc,mBAAY,CAAC;AAC3B,6BAAc,sBAAe,CAAC","file":"ng-table.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"angular\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"angular\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ng-table\"] = factory(require(\"angular\"));\n\telse\n\t\troot[\"ng-table\"] = factory(root[\"angular\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmory imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmory exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 51);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f774e40ea176f23445d6","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"angular\"\n// module id = 0\n// module chunks = 0","import * as angular from 'angular';\nimport { NgTableDefaultGetDataProvider, IDefaultGetData } from './data';\nimport { IGroupSettings, ngTableDefaultGetGroups } from './grouping';\nimport { ngTableDefaults, IDefaults } from './ngTableDefaults';\nimport { NgTableSettings, ISettings } from './ngTableSettings';\nimport { NgTableParams } from './ngTableParams';\nimport { NgTableEventsChannel } from './ngTableEventsChannel';\n\nconst ngTableCoreModule = angular.module('ngTable-core', [])\n .provider('ngTableDefaultGetData', NgTableDefaultGetDataProvider)\n .factory('ngTableDefaultGetGroups', ngTableDefaultGetGroups)\n .value('ngTableDefaults',ngTableDefaults)\n .service('ngTableEventsChannel', NgTableEventsChannel)\n .service('ngTableSettings', NgTableSettings)\n .run(NgTableParams.init);\n\n// note: if you are using ES6 or typescript prefer:\n// import { NgTableParams } from 'ng-table';\nngTableCoreModule.value('NgTableParams', NgTableParams)\n\nexport { ngTableCoreModule };\n\nexport { IDefaults } from './ngTableDefaults';\nexport * from './ngTableEventsChannel';\nexport { ISettings } from './ngTableSettings';\nexport * from './ngTableParams';\nexport * from './data';\nexport * from './filtering';\nexport * from './grouping/publicExports';\nexport * from './paging';\nexport * from './sorting';\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/index.ts","import * as angular from 'angular';\nimport { ngTable } from './ngTable.directive';\nimport { NgTableColumn } from './ngTableColumn';\nimport { ngTableColumnsBinding } from './ngTableColumnsBinding.directive';\nimport { NgTableController } from './ngTableController';\nimport { ngTableDynamic } from './ngTableDynamic.directive';\nimport { NgTableFilterConfigProvider, NgTableFilterConfig } from './ngTableFilterConfig';\nimport { ngTableFilterRow } from './ngTableFilterRow.directive';\nimport { NgTableFilterRowController } from './ngTableFilterRowController';\nimport { ngTableGroupRow } from './ngTableGroupRow.directive';\nimport { NgTableGroupRowController } from './ngTableGroupRowController';\nimport { ngTablePagination } from './ngTablePagination.directive';\nimport { ngTableSelectFilterDs } from './ngTableSelectFilterDs.directive';\nimport { ngTableSorterRow } from './ngTableSorterRow.directive';\nimport { NgTableSorterRowController } from './ngTableSorterRowController';\nimport './filters/number.html';\nimport './filters/select.html';\nimport './filters/select-multiple.html';\nimport './filters/text.html';\nimport './pager.html';\nimport './header.html';\n\nconst ngTableBrowserModule = angular.module('ngTable-browser', [])\n .directive('ngTable', ngTable)\n .service('ngTableColumn', NgTableColumn)\n .directive('ngTableColumnsBinding', ngTableColumnsBinding)\n .controller('ngTableController', NgTableController)\n .directive('ngTableDynamic', ngTableDynamic)\n .provider('ngTableFilterConfig', NgTableFilterConfigProvider)\n .directive('ngTableFilterRow', ngTableFilterRow)\n .controller('ngTableFilterRowController', NgTableFilterRowController)\n .directive('ngTableGroupRow', ngTableGroupRow)\n .controller('ngTableGroupRowController', NgTableGroupRowController)\n .directive('ngTablePagination', ngTablePagination)\n .directive('ngTableSelectFilterDs', ngTableSelectFilterDs)\n .directive('ngTableSorterRow', ngTableSorterRow)\n .controller('ngTableSorterRowController', NgTableSorterRowController);\n\nexport * from './public-interfaces';\nexport { NgTableController, NgTableFilterConfigProvider, NgTableFilterConfig, ngTableBrowserModule };\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/index.ts","export * from './dataSettings';\nexport * from './getData';\nexport * from './interceptor';\nexport * from './ngTableDefaultGetData';\nexport * from './results';\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/data/index.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IParamValues } from './ngTableParams';\nimport { ISettings } from './ngTableSettings';\n\n\n/**\n * An angular value object that allow for overriding of the initial default values used when constructing\n * an instance of `NgTableParams`\n */\nexport interface IDefaults {\n params?: IParamValues<any>;\n settings?: ISettings<any>\n}\n\n/**\n * Default values for ngTable\n */\nexport let ngTableDefaults : IDefaults = {\n params: {},\n settings: {}\n};\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/ngTableDefaults.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { IScope } from 'angular';\nimport { DataResult, IDefaultGetData } from './data';\nimport { IPageButton } from './paging';\nimport { InternalTableParams, NgTableParams } from './ngTableParams';\n\n\n/**\n * Alias for the types that can be used to filter events\n */\nexport type EventSelector<T> = NgTableParams<T> | IEventSelectorFunc\n\n/**\n * Signature of the event hander that is registered to receive the *afterCreated* event\n */\nexport interface IAfterCreatedListener {\n (publisher: NgTableParams<any>): any\n}\n/**\n * Signature of the event hander that is registered to receive the *afterReloadData* event\n */\nexport interface IAfterReloadDataListener<T> {\n (publisher: NgTableParams<T>, newData: DataResult<T>[], oldData: DataResult<T>[]): any\n}\n/**\n * Signature of the event hander that is registered to receive the *datasetChanged* event\n */\nexport interface IDatasetChangedListener<T> {\n (publisher: NgTableParams<T>, newDataset: T[], oldDataset: T[]): any\n}\n/**\n * Signature of the function used to filter the events to only specific instances of \n * {@link NgTableParams}\n */\nexport interface IEventSelectorFunc {\n (publisher: NgTableParams<any>): boolean\n}\n/**\n * Signature of the event hander that is registered to receive the *pagesChanged* event\n */\nexport interface IPagesChangedListener {\n (publisher: NgTableParams<any>, newPages: IPageButton[], oldPages: IPageButton[]): any\n}\n/**\n* Signature of the event hander that is registered to receive the *afterDataFiltered* event\n*/\nexport interface IAfterDataFilteredListener<T> {\n (publisher: NgTableParams<T>, newData: DataResult<T>[] ): any\n}\n/**\n* Signature of the event hander that is registered to receive the *afterDataSorted* event\n*/\nexport interface IAfterDataSortedListener<T> {\n (publisher: NgTableParams<T>, newData: DataResult<T>[] ): any\n}\n\n/**\n * Signature of the function used to explicitly unregister an event handler so that it stops\n * receiving notifications\n */\nexport interface IUnregistrationFunc {\n (): void\n}\n\n/**\n * Strongly typed pub/sub for {@link NgTableParams}\n *\n * Supported events:\n *\n * * afterCreated - raised when a new instance of {@link NgTableParams} has finished being constructed\n * * afterReloadData - raised when the {@link NgTableParams} `reload` method has finished loading new data\n * * datasetChanged - raised when {@link ISettings} `dataset` receives a new data array\n * * pagesChanged - raised when a new pages array has been generated\n */\nexport interface NgTableEventsChannel {\n /**\n * Subscribe to receive notification whenever a new `NgTableParams` instance has finished being constructed.\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called. Supply a\n * `scope` to have angular automatically unregister the listener when the `scope` is destroyed.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterCreated(listener: IAfterCreatedListener, scope: IScope, eventFilter?: IEventSelectorFunc): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever a new `NgTableParams` instance has finished being constructed.\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterCreated(listener: IAfterCreatedListener, eventFilter?: IEventSelectorFunc): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever the `reload` method of an `NgTableParams` instance has successfully executed\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called. Supply a\n * `scope` to have angular automatically unregister the listener when the `scope` is destroyed.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter either the specific `NgTableParams` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterReloadData<T>(listener: IAfterReloadDataListener<T>, scope: IScope, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever the `reload` method of an `NgTableParams` instance has successfully executed\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterReloadData<T>(listener: IAfterReloadDataListener<T>, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n\n /**\n * Subscribe to receive notification whenever a new data rows *array* is supplied as a `settings` value to a `NgTableParams` instance.\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called. Supply a\n * `scope` to have angular automatically unregister the listener when the `scope` is destroyed.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter either the specific `NgTableParams` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onDatasetChanged<T>(listener: IDatasetChangedListener<T>, scope: IScope, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever a new data rows *array* is supplied as a `settings` value to a `NgTableParams` instance.\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter either the specific `NgTableParams` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onDatasetChanged<T>(listener: IDatasetChangedListener<T>, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n\n /**\n * Subscribe to receive notification whenever the paging buttons for an `NgTableParams` instance change\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called. Supply a\n * `scope` to have angular automatically unregister the listener when the `scope` is destroyed.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter either the specific `NgTableParams` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onPagesChanged<T>(listener: IPagesChangedListener, scope: IScope, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever the paging buttons for an `NgTableParams` instance change\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter either the specific `NgTableParams` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onPagesChanged<T>(listener: IPagesChangedListener, eventFilter?: EventSelector<T>): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever a `ngTableDefaultGetData` instance filters data\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter either the specific `IDefaultGetData` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterDataFiltered<T>(listener: IAfterDataFilteredListener<T>, scope: IScope, eventFilter?: EventSelector<T> ): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever a `ngTableDefaultGetData` instance filters data\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter either the specific `IDefaultGetData` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterDataFiltered<T>(listener: IAfterDataFilteredListener<T>, eventFilter?: EventSelector<T> ): IUnregistrationFunc; \n /**\n * Subscribe to receive notification whenever a `ngTableDefaultGetData` instance orders data\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param scope the angular `$scope` that will limit the lifetime of the event subscription\n * @param eventFilter either the specific `IDefaultGetData` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterDataSorted<T>(listener: IAfterDataSortedListener<T>, scope: IScope, eventFilter?: EventSelector<T> ): IUnregistrationFunc;\n /**\n * Subscribe to receive notification whenever a `ngTableDefaultGetData` instance orders data\n * Optionally supply an `eventFilter` to restrict which events that should trigger the `listener` to be called.\n *\n * @param listener the function that will be called when the event fires\n * @param eventFilter either the specific `IDefaultGetData` instance you want to receive events for or a predicate function that should return true to receive the event\n * @return a unregistration function that when called will unregister the `listener`\n */\n onAfterDataSorted<T>(listener: IAfterDataSortedListener<T>, eventFilter?: EventSelector<T> ): IUnregistrationFunc;\n\n\n publishAfterCreated<T>(publisher: NgTableParams<T>): void;\n publishAfterReloadData<T>(publisher: NgTableParams<T>, newData: T[], oldData: T[]): void;\n publishDatasetChanged<T>(publisher: NgTableParams<T>, newDataset: T[], oldDataset: T[]): void;\n publishPagesChanged<T>(publisher: NgTableParams<T>, newPages: IPageButton[], oldPages: IPageButton[]): void;\n publishAfterDataFiltered<T>(publisher: NgTableParams<T>, newData: T[]): void;\n publishAfterDataSorted<T>(params: NgTableParams<T>, newData: T[]): void;\n}\n\nexport class NgTableEventsChannel {\n static $inject = ['$rootScope'];\n constructor(private $rootScope: ng1.IRootScopeService) {\n let events = this;\n events = this.addTableParamsEvent('afterCreated', events);\n events = this.addTableParamsEvent('afterReloadData', events);\n events = this.addTableParamsEvent('datasetChanged', events);\n events = this.addTableParamsEvent('pagesChanged', events);\n events = this.addTableParamsEvent('afterDataFiltered', events);\n events = this.addTableParamsEvent('afterDataSorted', events);\n }\n private addTableParamsEvent(eventName: string, target: {}) {\n const fnName = eventName.charAt(0).toUpperCase() + eventName.substring(1);\n const event = {\n ['on' + fnName]: this.createEventSubscriptionFn(eventName),\n ['publish' + fnName]: this.createPublishEventFn(eventName)\n };\n return ng1.extend(target, event);\n }\n private createPublishEventFn(eventName: string) {\n return (...args: any[]) => {\n this.$rootScope.$broadcast('ngTable:' + eventName, ...args);\n }\n }\n private createEventSubscriptionFn(eventName: string) {\n\n return <T>(\n handler: (...args: any[]) => void,\n eventSelectorOrScope: EventSelector<T> | ng1.IScope,\n eventSelector?: EventSelector<T>) => {\n\n let actualEvtSelector: (publisher: NgTableParams<any>) => boolean;\n let scope: ng1.IScope = this.$rootScope;\n\n if (isScopeLike(eventSelectorOrScope)) {\n scope = eventSelectorOrScope;\n actualEvtSelector = createEventSelectorFn(eventSelector);\n } else {\n actualEvtSelector = createEventSelectorFn(eventSelectorOrScope);\n }\n\n return scope.$on('ngTable:' + eventName, function (event: ng1.IAngularEvent, params: InternalTableParams<any>, ...eventArgs: any[]) {\n // don't send events published by the internal NgTableParams created by ngTableController\n if (params.isNullInstance) return;\n\n const fnArgs = [params].concat(eventArgs);\n if (actualEvtSelector.apply(this, fnArgs)) {\n handler.apply(this, fnArgs);\n }\n });\n }\n\n function createEventSelectorFn<T>(eventSelector: EventSelector<T>): (publisher: NgTableParams<any>) => boolean {\n if (!eventSelector) {\n return (publisher: NgTableParams<any>) => true;\n } else if (isEventSelectorFunc(eventSelector)) {\n return eventSelector\n } else {\n // shorthand for subscriber to only receive events from a specific publisher instance\n return (publisher: NgTableParams<any>) => publisher === eventSelector;\n }\n }\n\n function isEventSelectorFunc<T>(val: EventSelector<T>): val is (publisher: NgTableParams<any>) => boolean {\n return typeof val === 'function';\n }\n\n function isScopeLike(val: any): val is ng1.IScope {\n return val && typeof val.$new === 'function';\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/ngTableEventsChannel.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { IPromise } from 'angular';\nimport { convertSortToOrderBy, isGroupingFun } from './util';\nimport { IDefaults } from './ngTableDefaults'\nimport { NgTableEventsChannel } from './ngTableEventsChannel'\nimport { NgTableSettings, ISettings } from './ngTableSettings'\nimport { DataResult, IDataRowGroup, IGetDataFunc } from './data';\nimport { IFilterValues } from './filtering';\nimport { IGetGroupFunc, Grouping, IGroupingFunc, GroupSort, IGroupValues } from './grouping';\nimport { SortDirection, ISortingValues } from './sorting';\nimport { IPageButton } from './paging';\n\n/**\n * @private\n */\nexport interface InternalTableParams<T> extends NgTableParams<T> {\n isNullInstance: boolean\n}\n\n/**\n * The runtime values for {@link NgTableParams} that determine the set of data rows and\n * how they are to be displayed in a table\n */\nexport interface IParamValues<T> {\n /**\n * The index of the \"slice\" of data rows, starting at 1, to be displayed by the table.\n */\n page?: number;\n /**\n * The number of data rows per page\n */\n count?: number;\n /**\n * The filter that should be applied to restrict the set of data rows\n */\n filter?: IFilterValues;\n /**\n * The sort order that should be applied to the data rows.\n */\n sorting?: ISortingValues;\n /**\n * The grouping that should be applied to the data rows\n */\n group?: string | Grouping<T>;\n}\n\n\n/**\n * @private\n */\nfunction isNumber(n: any) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n}\n\n/**\n * @private\n */\ntype Memento<T> = {\n params: IParamValues<T>;\n groupSortDirection?: string;\n};\n\n/**\n * Parameters manager for an ngTable directive\n */\nexport class NgTableParams<T> {\n /**\n * The page of data rows currently being displayed in the table\n */\n data: T[] = [];\n reloadPages: () => void;\n private defaultSettings = NgTableParams.ngTableSettings.createDefaults<T>();\n private errParamsMemento: Memento<T>;\n private isCommittedDataset = false;\n isNullInstance: boolean;\n private initialEvents: Function[] = [];\n private prevParamsMemento: Memento<T>;\n private _params: IParamValues<T> = {\n page: 1,\n count: 10,\n filter: {},\n sorting: {},\n group: {}\n };\n private _settings = this.defaultSettings;\n constructor(baseParameters?: IParamValues<T> | boolean, baseSettings?: ISettings<T>) {\n\n // the ngTableController \"needs\" to create a dummy/null instance and it's important to know whether an instance\n // is one of these\n if (typeof baseParameters === \"boolean\") {\n this.isNullInstance = true;\n }\n\n this.reloadPages = (() => {\n let currentPages: IPageButton[];\n return () => {\n const oldPages = currentPages;\n const newPages = this.generatePagesArray(this.page(), this.total(), this.count());\n if (!ng1.equals(oldPages, newPages)) {\n currentPages = newPages;\n NgTableParams.ngTableEventsChannel.publishPagesChanged(this, newPages, oldPages);\n }\n }\n })();\n\n ng1.extend(this._params, NgTableParams.ngTableDefaults.params);\n\n this.settings(baseSettings);\n this.parameters(baseParameters, true);\n\n NgTableParams.ngTableEventsChannel.publishAfterCreated(this);\n // run events during construction after the initial create event. That way a consumer\n // can subscribe to all events for a table without \"dropping\" an event\n ng1.forEach(this.initialEvents, event => {\n event();\n });\n this.initialEvents = null;\n }\n /**\n * Returns the number of data rows per page\n */\n count(): number\n /**\n * Sets the number of data rows per page.\n * Changes to count will cause `isDataReloadRequired` to return true\n */\n count(count: number): this\n count(count?: number) {\n // reset to first page because can be blank page\n return count !== undefined ? this.parameters({\n 'count': count,\n 'page': 1\n }) : this._params.count;\n }\n /**\n * Returns the current filter values used to restrict the set of data rows.\n * @param trim supply true to return the current filter minus any insignificant values\n * (null, undefined and empty string)\n */\n filter(trim?: boolean): IFilterValues\n /**\n * Sets filter values to the `filter` supplied; any existing filter will be removed\n * Changes to filter will cause `isDataReloadRequired` to return true and the current `page` to be set to 1\n */\n filter(filter: IFilterValues): this\n filter(filter?: IFilterValues | boolean) {\n if (filter != null && typeof filter === 'object') {\n return this.parameters({\n 'filter': filter,\n 'page': 1\n });\n } else if (filter === true) {\n const keys = Object.keys(this._params.filter);\n const significantFilter: IFilterValues = {};\n for (let i = 0; i < keys.length; i++) {\n const filterValue = this._params.filter[keys[i]];\n if (filterValue != null && filterValue !== '') {\n significantFilter[keys[i]] = filterValue;\n }\n }\n return significantFilter;\n } else {\n return this._params.filter;\n }\n }\n /**\n * Generate array of pages.\n * When no arguments supplied, the current parameter state of this `NgTableParams` instance will be used\n * @param currentPage Which page must be active\n * @param totalItems Total quantity of items\n * @param pageSize Quantity of items on page\n * @param maxBlocks Quantity of blocks for pagination\n * @returns Array of pages\n */\n generatePagesArray(currentPage?: number, totalItems?: number, pageSize?: number, maxBlocks?: number) {\n if (!arguments.length) {\n currentPage = this.page();\n totalItems = this.total();\n pageSize = this.count();\n }\n\n let maxPage: number, maxPivotPages: number, minPage: number, numPages: number;\n maxBlocks = maxBlocks && maxBlocks < 6 ? 6 : maxBlocks;\n\n const pages: IPageButton[] = [];\n numPages = Math.ceil(totalItems / pageSize);\n if (numPages > 1) {\n pages.push({\n type: 'prev',\n number: Math.max(1, currentPage - 1),\n active: currentPage > 1\n });\n pages.push({\n type: 'first',\n number: 1,\n active: currentPage > 1,\n current: currentPage === 1\n });\n maxPivotPages = Math.round((this._settings.paginationMaxBlocks - this._settings.paginationMinBlocks) / 2);\n minPage = Math.max(2, currentPage - maxPivotPages);\n maxPage = Math.min(numPages - 1, currentPage + maxPivotPages * 2 - (currentPage - minPage));\n minPage = Math.max(2, minPage - (maxPivotPages * 2 - (maxPage - minPage)));\n let i = minPage;\n while (i <= maxPage) {\n if ((i === minPage && i !== 2) || (i === maxPage && i !== numPages - 1)) {\n pages.push({\n type: 'more',\n active: false\n });\n } else {\n pages.push({\n type: 'page',\n number: i,\n active: currentPage !== i,\n current: currentPage === i\n });\n }\n i++;\n }\n pages.push({\n type: 'last',\n number: numPages,\n active: currentPage !== numPages,\n current: currentPage === numPages\n });\n pages.push({\n type: 'next',\n number: Math.min(numPages, currentPage + 1),\n active: currentPage < numPages\n });\n }\n return pages;\n }\n /**\n * Returns the current grouping used to group the data rows\n */\n group(): Grouping<T>\n /**\n * Sets grouping to the `group` supplied; any existing grouping will be removed.\n * Changes to group will cause `isDataReloadRequired` to return true and the current `page` to be set to 1\n */\n group(group: IGroupValues): this\n /**\n * Sets grouping to the `field` and `sortDirection` supplied; any existing grouping will be removed\n * Changes to group will cause `isDataReloadRequired` to return true and the current `page` to be set to 1\n */\n group(field: string, sortDirection?: GroupSort): this\n /**\n * Sets grouping to the `group` supplied; any existing grouping will be removed.\n * If `sortDirection` is supplied, this will be assigned to the sortDirection property of `group`\n * Changes to group will cause `isDataReloadRequired` to return true and the current `page` to be set to 1\n */\n group(group: IGroupingFunc<T> | string, sortDirection?: GroupSort): this\n group(group?: Grouping<T> | string, sortDirection?: GroupSort): string | Grouping<T> | this {\n if (group === undefined) {\n return this._params.group;\n }\n\n const newParameters: IParamValues<T> = {\n page: 1\n };\n if (isGroupingFun(group) && sortDirection !== undefined) {\n group.sortDirection = sortDirection;\n newParameters.group = group;\n } else if (typeof group === 'string' && sortDirection !== undefined) {\n newParameters.group = { [group]: sortDirection };\n } else {\n newParameters.group = group;\n }\n this.parameters(newParameters);\n return this;\n }\n /**\n * Returns true when an attempt to `reload` the current `parameter` values have resulted in a failure.\n * This method will continue to return true until the `reload` is successfully called or when the\n * `parameter` values have changed\n */\n hasErrorState() {\n return !!(this.errParamsMemento && ng1.equals(this.errParamsMemento, this.createComparableParams()));\n }\n /**\n * Returns true if `filter` has significant filter value(s) (any value except null, undefined, or empty string),\n * otherwise false\n */\n hasFilter() {\n return Object.keys(this.filter(true)).length > 0;\n }\n /**\n * Return true when a change to `filters` require the `reload` method\n * to be run so as to ensure the data presented to the user reflects these filters\n */\n hasFilterChanges() {\n const previousFilter = (this.prevParamsMemento && this.prevParamsMemento.params.filter);\n return !ng1.equals((this._params.filter), previousFilter) || this.hasGlobalSearchFieldChanges();\n }\n /**\n * Returns true when at least one group has been set\n */\n hasGroup(): boolean\n /**\n * Returns true when the `group` and when supplied, the `sortDirection` matches an existing group\n */\n hasGroup(group: string | IGroupingFunc<T>, sortDirection?: string): boolean\n hasGroup(group?: string | IGroupingFunc<T>, sortDirection?: string) {\n if (group == null) {\n return isGroupingFun(this._params.group) || Object.keys(this._params.group).length > 0\n }\n\n if (isGroupingFun(group)) {\n if (sortDirection == null) {\n return this._params.group === group;\n } else {\n return this._params.group === group && group.sortDirection === sortDirection;\n }\n } else {\n if (sortDirection == null) {\n return Object.keys(this._params.group).indexOf(group) !== -1;\n } else {\n return (this._params.group as IGroupValues)[group] === sortDirection;\n }\n }\n }\n /**\n * Return true when a change to this instance should require the `reload` method\n * to be run so as to ensure the data rows presented to the user reflects the current state.\n *\n * Note that this method will return false when the `reload` method has run but fails. In this case\n * `hasErrorState` will return true.\n *\n * The built-in `ngTable` directives will watch for when this function returns true and will then call\n * the `reload` method to load its data rows\n */\n isDataReloadRequired() {\n // note: using != as want to treat null and undefined the same\n return !this.isCommittedDataset || !ng1.equals(this.createComparableParams(), this.prevParamsMemento)\n || this.hasGlobalSearchFieldChanges();\n }\n /**\n * Returns true if sorting by the field supplied. Where direction supplied\n * the field must also be sorted by that direction to return true\n */\n isSortBy(field: string, direction?: string) {\n if (direction !== undefined) {\n return this._params.sorting[field] !== undefined && this._params.sorting[field] == direction;\n } else {\n return this._params.sorting[field] !== undefined;\n }\n }\n /**\n * Returns sorting values in a format that can be consumed by the angular `$orderBy` filter service\n */\n orderBy() {\n return convertSortToOrderBy(this._params.sorting);\n }\n /**\n * Returns the index of the current \"slice\" of data rows\n */\n page(): number\n /**\n * Sets the index of the current \"slice\" of data rows. The index starts at 1.\n * Changing the page number will cause `isDataReloadRequired` to return true\n */\n page(page: number): this\n page(page?: number) {\n return page !== undefined ? this.parameters({\n 'page': page\n }) : this._params.page;\n }\n parameters(): IParamValues<T>\n /**\n * Set new parameters\n */\n parameters(newParameters?: IParamValues<T> | { [name: string]: string }, parseParamsFromUrl?: boolean): this\n parameters(newParameters?: IParamValues<T> | { [name: string]: string }, parseParamsFromUrl?: boolean): IParamValues<T> | this {\n parseParamsFromUrl = parseParamsFromUrl || false;\n if (typeof newParameters !== undefined) {\n for (const key in newParameters) {\n let value = newParameters[key];\n if (parseParamsFromUrl && key.indexOf('[') >= 0) {\n const keys = key.split(/\\[(.*)\\]/).reverse()\n let lastKey = '';\n for (let i = 0, len = keys.length; i < len; i++) {\n const name = keys[i];\n if (name !== '') {\n const v = value;\n value = {};\n value[lastKey = name] = (isNumber(v) ? parseFloat(v) : v);\n }\n }\n if (lastKey === 'sorting') {\n this._params[lastKey] = {};\n }\n this._params[lastKey] = ng1.extend(this._params[lastKey] || {}, value[lastKey]);\n } else {\n if (key === 'group') {\n this._params[key] = this.parseGroup(newParameters[key]);\n } else {\n this._params[key] = (isNumber(newParameters[key]) ? parseFloat(newParameters[key]) : newParameters[key]);\n }\n }\n }\n this.log('ngTable: set parameters', this._params);\n return this;\n }\n return this._params;\n }\n /**\n * Trigger a reload of the data rows\n */\n reload<TResult extends DataResult<T>>(): IPromise<TResult[]> {\n let pData: ng1.IPromise<any> = null;\n\n this._settings.$loading = true;\n\n this.prevParamsMemento = ng1.copy(this.createComparableParams());\n this.isCommittedDataset = true;\n\n if (this.hasGroup()) {\n pData = this.runInterceptorPipeline(NgTableParams.$q.when(this._settings.getGroups(this)));\n } else {\n const fn = this._settings.getData as IGetDataFunc<T>;\n pData = this.runInterceptorPipeline(NgTableParams.$q.when(fn(this)));\n }\n\n this.log('ngTable: reload data');\n\n const oldData = this.data;\n return pData.then(data => {\n this._settings.$loading = false;\n this.errParamsMemento = null;\n\n this.data = data;\n // note: I think it makes sense to publish this event even when data === oldData\n // subscribers can always set a filter to only receive the event when data !== oldData\n NgTableParams.ngTableEventsChannel.publishAfterReloadData(this, data, oldData);\n this.reloadPages();\n\n return data;\n }).catch(reason => {\n this.errParamsMemento = this.prevParamsMemento;\n // \"rethrow\"\n return NgTableParams.$q.reject(reason);\n });\n }\n /**\n * Returns the settings for the table.\n */\n settings(): ISettings<T>\n /**\n * Sets the settings for the table; new setting values will be merged with the existing settings.\n * Supplying a new `dataset` will cause `isDataReloadRequired` to return true and the `ngTableEventsChannel`\n * to fire its `datasetChanged` event\n */\n settings(newSettings: ISettings<T>): this\n settings(newSettings?: ISettings<T>): this | ISettings<T> {\n if (ng1.isDefined(newSettings)) {\n\n const settings = NgTableParams.ngTableSettings.merge(this._settings, newSettings);\n\n const originalDataset = this._settings.dataset;\n this._settings = settings;\n\n // note: using != as want null and undefined to be treated the same\n const hasDatasetChanged = newSettings.hasOwnProperty('dataset') && (newSettings.dataset != originalDataset);\n if (hasDatasetChanged) {\n if (this.isCommittedDataset) {\n this.page(1); // reset page as a new dataset has been supplied\n }\n this.isCommittedDataset = false;\n\n const fireEvent = () => {\n NgTableParams.ngTableEventsChannel.publishDatasetChanged(this, newSettings.dataset, originalDataset);\n };\n\n if (this.initialEvents) {\n this.initialEvents.push(fireEvent);\n } else {\n fireEvent();\n }\n }\n this.log('ngTable: set settings', this._settings);\n return this;\n }\n return this._settings;\n }\n /**\n * Returns the current sorting used to order the data rows.\n * Changes to sorting will cause `isDataReloadRequired` to return true\n */\n sorting(): ISortingValues\n /**\n * Sets sorting values to the `sorting` supplied; any existing sorting will be removed.\n * Changes to sorting will cause `isDataReloadRequired` to return true\n */\n sorting(sorting: ISortingValues): this\n /**\n * Sets sorting to the `field` and `direction` supplied; any existing sorting will be removed\n */\n sorting(field: string, direction: string): this\n sorting(sorting?: ISortingValues | string, direction?: SortDirection) {\n if (typeof sorting === 'string') {\n this.parameters({\n 'sorting': { [sorting]: direction }\n });\n return this;\n }\n return sorting !== undefined ? this.parameters({\n 'sorting': sorting\n }) : this._params.sorting;\n }\n /**\n * Returns the count of the data rows that match the current `filter`\n */\n total(): number\n /**\n * Sets `settings().total` to the value supplied.\n * Typically you will need to set a `total` in the body of any custom `getData` function\n * you supply as a setting value to this instance.\n * @example\n * ```js\n * const tp = new NgTableParams({}, { getData: customGetData })\n * function customGetData(params) {\n * const queryResult = // code to fetch current data rows and total //\n * params.total(queryResult.total);\n * return queryResult.dataRowsPage;\n * }\n * ```\n */\n total(total: number): this\n total(total?: number) {\n return total !== undefined ? this.settings({\n 'total': total\n }) : this._settings.total;\n }\n /**\n * Returns the current parameter values uri-encoded. Set `asString` to\n * true for the parameters to be returned as an array of strings of the form 'paramName=value'\n * otherwise parameters returned as a key-value object\n */\n url(asString?: boolean) {\n // this function is an example of Typescript gone bad!!\n asString = asString || false;\n const pairs: any[] | { [name: string]: string } = (asString ? [] : {});\n for (const key in this._params) {\n if (this._params.hasOwnProperty(key)) {\n const item = (this._params as { [name: string]: any })[key],\n name = encodeURIComponent(key);\n if (typeof item === \"object\") {\n for (const subkey in item) {\n if (isSignificantValue(item[subkey], key)) {\n const pname = name + \"[\" + encodeURIComponent(subkey) + \"]\";\n collectValue(item[subkey], pname);\n }\n }\n } else if (!ng1.isFunction(item) && isSignificantValue(item, key)) {\n collectValue(item, name);\n }\n }\n }\n return pairs;\n\n function collectValue(value: any, key: string) {\n if (isArray(pairs)) {\n pairs.push(key + \"=\" + encodeURIComponent(value));\n } else {\n pairs[key] = encodeURIComponent(value);\n }\n }\n\n function isArray(pairs: any[] | {}): pairs is Array<any> {\n return asString;\n }\n\n function isSignificantValue(value: any, key: string) {\n return key === \"group\" ? true : typeof value !== undefined && value !== \"\";\n }\n }\n private createComparableParams(): Memento<T> {\n const group = this._params.group;\n return {\n params: this._params,\n groupSortDirection: isGroupingFun(group) ? group.sortDirection : undefined\n };\n }\n private hasGlobalSearchFieldChanges() {\n const currentVal = (this._params.filter && this._params.filter['$']);\n const previousVal =\n (this.prevParamsMemento && this.prevParamsMemento.params.filter && this.prevParamsMemento.params.filter['$']);\n return !ng1.equals(currentVal, previousVal);\n }\n private log(...args: any[]) {\n if (this._settings.debugMode && NgTableParams.$log.debug) {\n NgTableParams.$log.debug(...args);\n }\n }\n private parseGroup(group: string | Grouping<T>) {\n const defaultSort = this._settings.groupOptions && this._settings.groupOptions.defaultSort;\n if (!group) {\n return group;\n } else if (isGroupingFun(group)) {\n if (group.sortDirection == null) {\n group.sortDirection = defaultSort;\n }\n return group;\n } else if (typeof group === 'object') {\n for (const key in group) {\n if (group[key] == null) {\n group[key] = defaultSort;\n }\n }\n return group;\n } else {\n return {\n [group]: defaultSort\n };\n }\n }\n private runInterceptorPipeline(fetchedData: ng1.IPromise<any>) {\n const interceptors = this._settings.interceptors || [];\n\n return interceptors.reduce((result, interceptor) => {\n const thenFn = (interceptor.response && interceptor.response.bind(interceptor)) || NgTableParams.$q.when;\n const rejectFn = (interceptor.responseError && interceptor.responseError.bind(interceptor)) || NgTableParams.$q.reject;\n return result.then(data => {\n return thenFn(data, this);\n }, reason => {\n return rejectFn(reason, this);\n });\n }, fetchedData);\n }\n\n private static $q: ng1.IQService;\n private static $log: ng1.ILogService;\n private static ngTableDefaults: IDefaults;\n private static ngTableEventsChannel: NgTableEventsChannel;\n private static ngTableSettings: NgTableSettings;\n static init(\n $q: ng1.IQService,\n $log: ng1.ILogService,\n ngTableDefaults: IDefaults,\n ngTableEventsChannel: NgTableEventsChannel,\n ngTableSettings: NgTableSettings) {\n NgTableParams.$q = $q;\n NgTableParams.$log = $log;\n NgTableParams.ngTableDefaults = ngTableDefaults;\n NgTableParams.ngTableEventsChannel = ngTableEventsChannel;\n NgTableParams.ngTableSettings = ngTableSettings;\n }\n}\n\nNgTableParams.init.$inject = ['$q', '$log', 'ngTableDefaults', 'ngTableEventsChannel', 'ngTableSettings'];\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/ngTableParams.ts","import * as ng1 from 'angular';\nimport { IPromise } from 'angular';\nimport { IDefaults } from './ngTableDefaults';\nimport { IDataRowGroup, IDataSettings, IDefaultGetData, IGetDataFunc, IInterceptor, IInterceptableGetDataFunc } from './data';\nimport { IFilterValues, IFilterSettings } from './filtering';\nimport { IGetGroupFunc, IGroupSettings } from './grouping';\nimport { SortDirection } from './sorting';\nimport { NgTableParams } from './ngTableParams';\n\n/**\n * Configuration settings for {@link NgTableParams}\n */\nexport interface ISettings<T> {\n /**\n * Returns true whenever a call to `getData` is in progress\n */\n $loading?: boolean;\n /**\n * An array that contains all the data rows that table should manage.\n * The `gateData` function will be used to manage the data rows\n * that ultimately will be displayed.\n */\n dataset?: T[];\n dataOptions?: IDataSettings;\n debugMode?: boolean;\n /**\n * The total number of data rows before paging has been applied.\n * Typically you will not need to supply this yourself\n */\n total?: number;\n /**\n * The default sort direction that will be used whenever a sorting is supplied that\n * does not define its own sort direction\n */\n defaultSort?: SortDirection;\n filterOptions?: IFilterSettings<T>;\n groupOptions?: IGroupSettings;\n /**\n * The page size buttons that should be displayed. Each value defined in the array\n * determines the possible values that can be supplied to {@link NgTableParams} `page`\n */\n counts?: number[];\n /**\n * The collection of interceptors that should apply to the results of a call to\n * the `getData` function before the data rows are displayed in the table\n */\n interceptors?: IInterceptor<T>[];\n /**\n * Configuration for the template that will display the page size buttons\n */\n paginationMaxBlocks?: number;\n /**\n * Configuration for the template that will display the page size buttons\n */\n paginationMinBlocks?: number;\n /**\n * The html tag that will be used to display the sorting indicator in the table header\n */\n sortingIndicator?: string;\n /**\n * The function that will be used fetch data rows. Leave undefined to let the {@link IDefaultGetData}\n * service provide a default implementation that will work with the `dataset` array you supply.\n *\n * Typically you will supply a custom function when you need to execute filtering, paging and sorting\n * on the server\n */\n getData?: IGetDataFunc<T> | IInterceptableGetDataFunc<T>;\n /**\n * The function that will be used group data rows according to the groupings returned by {@link NgTableParams} `group`\n */\n getGroups?: IGetGroupFunc<T>;\n}\n\n/**\n * @private\n */\nexport class NgTableSettings {\n static $inject = ['ngTableDefaults', 'ngTableDefaultGetData', 'ngTableDefaultGetGroups'];\n private defaults: ISettings<any>;\n constructor(\n private ngTableDefaults: IDefaults,\n private ngTableDefaultGetData: IDefaultGetData<any>,\n private ngTableDefaultGetGroups: IGetGroupFunc<any>) {\n\n this.defaults = {\n $loading: false,\n dataset: null, //allows data to be set when table is initialized\n total: 0,\n defaultSort: 'desc',\n counts: [10, 25, 50, 100],\n filterOptions: {\n filterComparator: undefined, // look for a substring match in case insensitive way\n filterDelay: 500,\n filterDelayThreshold: 10000, // size of dataset array that will trigger the filterDelay being applied\n filterFilterName: undefined, // when defined overrides ngTableDefaultGetDataProvider.filterFilterName\n filterFn: undefined, // when defined overrides the filter function that ngTableDefaultGetData uses\n filterLayout: 'stack'\n },\n getData: (params: NgTableParams<any>) => {\n return this.ngTableDefaultGetData(params.settings().dataset, params);\n },\n getGroups: this.ngTableDefaultGetGroups,\n groupOptions: {\n defaultSort: 'asc', // set to 'asc' or 'desc' to apply sorting to groups\n isExpanded: true\n },\n interceptors: [],\n paginationMaxBlocks: 11,\n paginationMinBlocks: 5,\n sortingIndicator: 'span'\n };\n }\n createDefaults<T>(): ISettings<T> {\n return this.merge(this.defaults, this.ngTableDefaults.settings);\n }\n merge<T>(existing: ISettings<T>, newSettings: ISettings<T>): ISettings<T> {\n\n newSettings = ng1.extend({}, newSettings);\n\n if (newSettings.filterOptions) {\n newSettings.filterOptions = ng1.extend({}, existing.filterOptions || {}, newSettings.filterOptions);\n }\n if (newSettings.groupOptions) {\n newSettings.groupOptions = ng1.extend({}, existing.groupOptions || {}, newSettings.groupOptions);\n }\n\n if (ng1.isArray(newSettings.dataset)) {\n //auto-set the total from passed in dataset\n newSettings.total = newSettings.dataset.length;\n }\n const results = ng1.extend({}, existing, newSettings);\n if (ng1.isArray(newSettings.dataset)) {\n this.optimizeFilterDelay(results);\n }\n return ng1.extend({}, existing, newSettings);\n }\n private optimizeFilterDelay<T>(settings: ISettings<T>) {\n // don't debounce by default filter input when working with small synchronous datasets\n if (settings.filterOptions.filterDelay === this.defaults.filterOptions.filterDelay &&\n settings.total <= settings.filterOptions.filterDelayThreshold &&\n settings.getData === this.defaults.getData) {\n settings.filterOptions.filterDelay = 0;\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/ngTableSettings.ts","import { Grouping, IGroupingFunc } from './grouping';\nimport { ISortingValues } from './sorting';\n\n/**\n * @private\n */\nexport function convertSortToOrderBy(sorting: ISortingValues) {\n const result: string[] = [];\n for (let column in sorting) {\n result.push((sorting[column] === \"asc\" ? \"+\" : \"-\") + column);\n }\n return result;\n}\n\n/**\n * @private\n */\nexport function isGroupingFun(val: string | Grouping<any>): val is IGroupingFunc<any> {\n return typeof val === 'function'\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/util.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\nimport { IAugmentedJQuery, IDirective, IQService, IParseService, IPromise, IScope } from 'angular';\nimport * as ng1 from 'angular';\nimport { \n IColumnDef, ColumnFieldContext, IColumnField, IFilterTemplateDefMap, SelectData, ITableInputAttributes \n} from './public-interfaces';\nimport { NgTableController } from './ngTableController';\n\ninterface IScopeExtensions {\n $columns: IColumnDef[]\n}\n\nngTable.$inject = ['$q', '$parse'];\n\n/**\n * Directive that instantiates {@link NgTableController NgTableController}.\n * @ngdoc directive\n * @name ngTable\n * @example\n * \n * ```html\n * <table ng-table=\"$ctrl.tableParams\" show-filter=\"true\" class=\"table table-bordered\">\n * <tr ng-repeat=\"user in $data\">\n * <td data-title=\"'Name'\" sortable=\"'name'\" filter=\"{ 'name': 'text' }\">\n * {{user.name}}\n * </td>\n * <td data-title=\"'Age'\" sortable=\"'age'\" filter=\"{ 'age': 'text' }\">\n * {{user.age}}\n * </td>\n * </tr>\n * </table>\n * ```\n */\nexport function ngTable($q: IQService, $parse: IParseService) : IDirective {\n\n return {\n restrict: 'A',\n priority: 1001,\n scope: true,\n controller: 'ngTableController',\n compile: function(element: IAugmentedJQuery) {\n let columns: IColumnDef[] = [],\n i = 0,\n dataRow: JQuery,\n groupRow: JQuery\n const rows: JQuery[] = [];\n\n ng1.forEach(element.find('tr'), (tr: JQuery) => {\n rows.push(ng1.element(tr))\n });\n dataRow = rows.filter(tr => !tr.hasClass('ng-table-group'))[0];\n groupRow = rows.filter(tr => tr.hasClass('ng-table-group'))[0];\n\n if (!dataRow) {\n return undefined;\n }\n ng1.forEach(dataRow.find('td'), (item: JQuery) => {\n const el = ng1.element(item);\n if (el.attr('ignore-cell') && 'true' === el.attr('ignore-cell')) {\n return;\n }\n\n const getAttrValue = function(attr: string){\n return el.attr('x-data-' + attr) || el.attr('data-' + attr) || el.attr(attr);\n };\n const setAttrValue = function(attr: string, value: string){\n if (el.attr('x-data-' + attr)){\n el.attr('x-data-' + attr, value)\n } else if (el.attr('data' + attr)){\n el.attr('data' + attr, value)\n } else {\n el.attr(attr, value)\n }\n };\n\n const parsedAttribute = function<T>(attr: string): IColumnField<T> {\n const expr = getAttrValue(attr);\n if (!expr){\n return undefined;\n }\n\n let localValue: any;\n const getter = (context: ColumnFieldContext) => {\n if (localValue !== undefined){\n return localValue as T;\n }\n return $parse(expr)(context) as T;\n };\n (getter as any).assign = ($scope: ColumnFieldContext, value: any) => {\n const parsedExpr = $parse(expr);\n if (parsedExpr.assign) {\n // we should be writing back to the parent scope as this is where the expression\n // came from\n parsedExpr.assign($scope.$parent, value);\n } else {\n localValue = value;\n }\n };\n return getter as IColumnField<T>;\n };\n const titleExpr = getAttrValue('title-alt') || getAttrValue('title');\n if (titleExpr){\n el.attr('data-title-text', '{{' + titleExpr + '}}'); // this used in responsive table\n }\n // NOTE TO MAINTAINERS: if you add extra fields to a $column be sure to extend ngTableColumn with\n // a corresponding \"safe\" default\n columns.push({\n id: i++,\n title: parsedAttribute<string>('title'),\n titleAlt: parsedAttribute<string>('title-alt'),\n headerTitle: parsedAttribute<string>('header-title'),\n sortable: parsedAttribute<string | boolean>('sortable'),\n 'class': parsedAttribute<string>('header-class'),\n filter: parsedAttribute<IFilterTemplateDefMap>('filter'),\n groupable: parsedAttribute<string | boolean>('groupable'),\n headerTemplateURL: parsedAttribute<string | boolean>('header'),\n filterData: parsedAttribute<IPromise<SelectData> | SelectData>('filter-data'),\n show: el.attr(\"ng-if\") ? parsedAttribute<boolean>('ng-if') : undefined\n });\n\n if (groupRow || el.attr(\"ng-if\")){\n // change ng-if to bind to our column definition which we know will be writable\n // because this will potentially increase the $watch count, only do so if we already have an\n // ng-if or when we definitely need to change visibility of the columns.\n // currently only ngTableGroupRow directive needs to change visibility\n setAttrValue('ng-if', '$columns[' + (columns.length - 1) + '].show(this)');\n }\n });\n return function(scope: IScope & IScopeExtensions, element: IAugmentedJQuery, attrs: ITableInputAttributes, controller: NgTableController<any, IColumnDef>) {\n scope.$columns = columns = controller.buildColumns(columns);\n\n controller.setupBindingsToInternalScope(attrs.ngTable);\n controller.loadFilterData(columns);\n controller.compileDirectiveTemplates();\n };\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTable.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IScope } from 'angular';\nimport * as ng1 from 'angular';\nimport { IColumnDef, IDynamicTableColDef } from './public-interfaces';\n\n/**\n * @private\n */\nfunction isScopeLike(object: any) {\n return object != null && ng1.isFunction(object.$new);\n}\n\n/**\n * @private\n * Service to construct a $column definition used by {@link ngTable ngTable} directive\n */\nexport class NgTableColumn<TCol extends IColumnDef | IDynamicTableColDef> {\n static $inject: string[] = [];\n\n /**\n * Creates a $column for use within a header template\n *\n * @param column the initial definition for $column to build\n * @param defaultScope the $scope to supply to the $column getter methods when not supplied by caller\n * @param columns a reference to the $columns array to make available on the context supplied to the\n * $column getter methods\n */\n buildColumn(column: TCol, defaultScope: IScope, columns: IColumnDef[]): IColumnDef {\n // note: we're not modifying the original column object. This helps to avoid unintended side affects\n const extendedCol = Object.create(column);\n const defaults = this.createDefaults();\n for (const prop in defaults) {\n if (extendedCol[prop] === undefined) {\n extendedCol[prop] = defaults[prop];\n }\n if (!ng1.isFunction(extendedCol[prop])) {\n // wrap raw field values with \"getter\" functions\n // - this is to ensure consistency with how ngTable.compile builds columns\n // - note that the original column object is being \"proxied\"; this is important\n // as it ensure that any changes to the original object will be returned by the \"getter\"\n const getterSetter = function getterSetter(/*[value] || [$scope, locals]*/) {\n if (arguments.length === 1 && !isScopeLike(arguments[0])) {\n (getterSetter as any).assign(null, arguments[0]);\n } else {\n return column[prop];\n }\n };\n (getterSetter as any).assign = function ($scope: IScope, value: any) {\n column[prop] = value;\n };\n extendedCol[prop] = getterSetter;\n }\n // satisfy the arguments expected by the function returned by parsedAttribute in the ngTable directive\n const getterFn = extendedCol[prop];\n extendedCol[prop] = function () {\n if (arguments.length === 1 && !isScopeLike(arguments[0])) {\n getterFn.assign(defaultScope, arguments[0]);\n } else {\n const scope = arguments[0] || defaultScope;\n const context = Object.create(scope);\n ng1.extend(context, {\n $column: extendedCol,\n $columns: columns\n });\n return getterFn.call(column, context);\n }\n };\n if (getterFn.assign) {\n extendedCol[prop].assign = getterFn.assign;\n } else {\n const wrappedGetterFn = extendedCol[prop];\n let localValue: any;\n const getterSetter = function getterSetter(/*[value] || [$scope, locals]*/) {\n if (arguments.length === 1 && !isScopeLike(arguments[0])) {\n (getterSetter as any).assign(null, arguments[0]);\n } else {\n return localValue != undefined ? localValue : wrappedGetterFn.apply(extendedCol, arguments);\n }\n };\n (getterSetter as any).assign = function ($scope: IScope, value: any) {\n localValue = value;\n };\n extendedCol[prop] = getterSetter;\n }\n }\n return extendedCol as IColumnDef;\n }\n\n private createDefaults() {\n return {\n 'class': this.createGetterSetter(''),\n filter: this.createGetterSetter(false),\n groupable: this.createGetterSetter(false),\n filterData: ng1.noop,\n headerTemplateURL: this.createGetterSetter(false),\n headerTitle: this.createGetterSetter(''),\n sortable: this.createGetterSetter(false),\n show: this.createGetterSetter(true),\n title: this.createGetterSetter(''),\n titleAlt: this.createGetterSetter('')\n };\n }\n\n private createGetterSetter(initialValue: any) {\n let value = initialValue;\n const getterSetter = function getterSetter(/*[value] || [$scope, locals]*/) {\n if (arguments.length === 1 && !isScopeLike(arguments[0])) {\n (getterSetter as any).assign(null, arguments[0]);\n } else {\n return value;\n }\n };\n (getterSetter as any).assign = function ($scope: IScope, newValue: any) {\n value = newValue;\n };\n return getterSetter;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableColumn.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IAugmentedJQuery, IAttributes, IDirective, IParseService } from 'angular';\nimport { ITableScope } from './ngTableController';\nimport { IColumnDef } from './public-interfaces';\n\n/**\n * @private\n */\ninterface IInputAttributes extends IAttributes {\n ngTableColumnsBinding: string;\n}\n\nngTableColumnsBinding.$inject = [\"$parse\"];\n\n/**\n * One-way data binds the $columns array generated by ngTable/ngTableDynamic to the specified\n * expression.\n * This allows the $columns array created for the table to be accessed outside of the html table\n * markup.\n * \n * @ngdoc directive\n * \n * @example\n * ```html\n * <table ng-table=\"$ctrl.tableParams\" class=\"table\" ng-table-columns-binding=\"$ctlr.tableColumns\">\n * ```\n */\nexport function ngTableColumnsBinding<T>($parse: IParseService) : IDirective {\n const directive = {\n restrict: 'A',\n link: linkFn\n };\n return directive;\n\n function linkFn($scope: ITableScope<T>, $element: IAugmentedJQuery, $attrs: IInputAttributes){\n const setter = $parse($attrs.ngTableColumnsBinding).assign;\n if (setter){\n $scope.$watch<IColumnDef[]>('$columns', newColumns => {\n const shallowClone = (newColumns || []).slice(0);\n setter($scope, shallowClone);\n });\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableColumnsBinding.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport {\n IAttributes, IAugmentedJQuery, ICompileService, IDocumentService, IParseService, IPromise, IScope,\n ITimeoutService\n} from 'angular';\nimport * as ng1 from 'angular';\nimport {\n DataResult, DataResults, IDataRowGroup, GroupedDataResults, NgTableParams, NgTableEventsChannel,\n IPageButton\n} from '../core';\nimport { IColumnDef, IDynamicTableColDef, SelectData, ITableInputAttributes } from './public-interfaces';\nimport { NgTableColumn } from './ngTableColumn';\n\n/**\n * @private\n */\nexport interface ITableScope<T> extends IScope {\n $columns: IColumnDef[];\n $loading: boolean;\n $filterRow: {\n disabled: boolean;\n };\n $data?: DataResults<T>;\n $groups?: GroupedDataResults<T>;\n $groupRow: {\n show: boolean;\n };\n show_filter: boolean;\n pages: IPageButton[];\n templates: {\n header: string;\n pagination: string;\n },\n params: NgTableParams<T>\n}\n\n/**\n * The controller for the {@link ngTable ngTable} and {@link ngTableDynamic ngTableDynamic} directives\n */\nexport class NgTableController<TParams, TCol extends IColumnDef | IDynamicTableColDef> {\n static $inject = [\n '$scope', '$timeout', '$parse', '$compile', '$attrs', '$element', '$document', 'ngTableColumn', 'ngTableEventsChannel'\n ];\n private delayFilter: (callback: () => void, ms: number) => void;\n private get hasVisibleFilterColumn() {\n if (!this.$scope.$columns) return false;\n\n return this.some(this.$scope.$columns, ($column) => {\n return $column.show(this.$scope) && !!$column.filter(this.$scope);\n });\n }\n constructor(\n private $scope: ITableScope<TParams>,\n $timeout: ITimeoutService,\n private $parse: IParseService,\n private $compile: ICompileService,\n private $attrs: IAttributes & ITableInputAttributes,\n private $element: IAugmentedJQuery,\n private $document: IDocumentService,\n private ngTableColumn: NgTableColumn<TCol>,\n private ngTableEventsChannel: NgTableEventsChannel) {\n\n const isFirstTimeLoad = true;\n $scope.$filterRow = { disabled: false };\n $scope.$loading = false;\n\n // until such times as the directive uses an isolated scope, we need to ensure that the check for\n // the params field only consults the \"own properties\" of the $scope. This is to avoid seeing the params\n // field on a $scope higher up in the prototype chain\n if (!$scope.hasOwnProperty(\"params\")) {\n $scope.params = new NgTableParams<TParams>(true);\n }\n\n this.delayFilter = (function () {\n let timer: IPromise<any>;\n return (callback: () => void, ms: number) => {\n $timeout.cancel(timer);\n timer = $timeout(callback, ms);\n };\n })();\n\n // watch for when a new NgTableParams is bound to the scope\n // CRITICAL: the watch must be for reference and NOT value equality; this is because NgTableParams maintains\n // the current data page as a field. Checking this for value equality would be terrible for performance\n // and potentially cause an error if the items in that array has circular references\n this.$scope.$watch<NgTableParams<TParams>>('params', (newParams, oldParams) => {\n if (newParams === oldParams || !newParams) {\n return;\n }\n\n newParams.reload();\n }, false);\n\n this.subscribeToTableEvents();\n }\n\n private onDataReloadStatusChange(newStatus: boolean/*, oldStatus*/) {\n if (!newStatus || this.$scope.params.hasErrorState()) {\n return;\n }\n\n const currentParams = this.$scope.params;\n const filterOptions = currentParams.settings().filterOptions;\n\n if (currentParams.hasFilterChanges()) {\n const applyFilter = () => {\n currentParams.page(1);\n currentParams.reload();\n };\n if (filterOptions.filterDelay) {\n this.delayFilter(applyFilter, filterOptions.filterDelay);\n } else {\n applyFilter();\n }\n } else {\n currentParams.reload();\n }\n }\n\n compileDirectiveTemplates() {\n if (!this.$element.hasClass('ng-table')) {\n this.$scope.templates = {\n header: (this.$attrs.templateHeader ? this.$attrs.templateHeader : 'ng-table/header.html'),\n pagination: (this.$attrs.templatePagination ? this.$attrs.templatePagination : 'ng-table/pager.html')\n };\n this.$element.addClass('ng-table');\n let headerTemplate: IAugmentedJQuery = null;\n\n // $element.find('> thead').length === 0 doesn't work on jqlite\n let theadFound = false;\n ng1.forEach(this.$element.children(), (e) => {\n if (e.tagName === 'THEAD') {\n theadFound = true;\n }\n });\n if (!theadFound) {\n headerTemplate = ng1.element('<thead ng-include=\"templates.header\"></thead>', this.$document);\n this.$element.prepend(headerTemplate);\n }\n const paginationTemplate = ng1.element(\n '<div ng-table-pagination=\"params\" template-url=\"templates.pagination\"></div>',\n this.$document\n );\n this.$element.after(paginationTemplate);\n if (headerTemplate) {\n this.$compile(headerTemplate)(this.$scope);\n }\n this.$compile(paginationTemplate)(this.$scope);\n }\n }\n\n loadFilterData($columns: IColumnDef[]) {\n ng1.forEach($columns, ($column) => {\n const result = $column.filterData(this.$scope);\n if (!result) {\n delete $column.filterData;\n return undefined;\n }\n\n if (isPromiseLike(result)) {\n delete $column.filterData;\n return result.then(data => {\n // our deferred can eventually return arrays, functions and objects\n if (!ng1.isArray(data) && !ng1.isFunction(data) && !ng1.isObject(data)) {\n // if none of the above was found - we just want an empty array\n data = [];\n }\n $column.data = data;\n });\n }\n // otherwise, we just return what the user gave us. It could be a function, array, object, whatever\n else {\n return $column.data = result;\n }\n });\n\n function isPromiseLike(val: any): val is IPromise<SelectData> {\n return val && typeof val === 'object' && typeof val.then === 'function';\n }\n }\n\n buildColumns(columns: TCol[]): IColumnDef[] {\n // todo: use strictNullChecks and remove guard clause\n const result: IColumnDef[] = [];\n (columns || []).forEach(col => {\n result.push(this.ngTableColumn.buildColumn(col, this.$scope, result));\n });\n return result\n }\n\n parseNgTableDynamicExpr(attr: string) {\n if (!attr || attr.indexOf(\" with \") > -1) {\n const parts = attr.split(/\\s+with\\s+/);\n return {\n tableParams: parts[0],\n columns: parts[1]\n };\n } else {\n throw new Error('Parse error (expected example: ng-table-dynamic=\\'tableParams with cols\\')');\n }\n }\n\n setupBindingsToInternalScope(tableParamsExpr: string) {\n\n // note: this we're setting up watches to simulate angular's isolated scope bindings\n\n // note: is REALLY important to watch for a change to the ngTableParams *reference* rather than\n // $watch for value equivalence. This is because ngTableParams references the current page of data as\n // a field and it's important not to watch this\n this.$scope.$watch<NgTableParams<TParams>>(tableParamsExpr, (params) => {\n if (params === undefined) {\n return;\n }\n this.$scope.params = params;\n }, false);\n\n this.setupFilterRowBindingsToInternalScope();\n this.setupGroupRowBindingsToInternalScope();\n }\n\n private setupFilterRowBindingsToInternalScope() {\n if (this.$attrs.showFilter) {\n this.$scope.$parent.$watch<boolean>(this.$attrs.showFilter, (value) => {\n this.$scope.show_filter = value;\n });\n } else {\n this.$scope.$watch(() => this.hasVisibleFilterColumn, (value) => {\n this.$scope.show_filter = value;\n })\n }\n\n if (this.$attrs.disableFilter) {\n this.$scope.$parent.$watch<boolean>(this.$attrs.disableFilter, (value) => {\n this.$scope.$filterRow.disabled = value;\n });\n }\n }\n\n private setupGroupRowBindingsToInternalScope() {\n this.$scope.$groupRow = { show: false };\n if (this.$attrs.showGroup) {\n const showGroupGetter = this.$parse(this.$attrs.showGroup);\n this.$scope.$parent.$watch<boolean>(showGroupGetter, (value) => {\n this.$scope.$groupRow.show = value;\n });\n if (showGroupGetter.assign) {\n // setup two-way databinding thus allowing ngTableGrowRow to assign to the showGroup expression\n this.$scope.$watch<boolean>('$groupRow.show', (value) => {\n showGroupGetter.assign(this.$scope.$parent, value);\n });\n }\n } else {\n this.$scope.$watch<boolean>('params.hasGroup()', (newValue) => {\n this.$scope.$groupRow.show = newValue;\n });\n }\n }\n\n private getVisibleColumns() {\n return (this.$scope.$columns || []).filter((c) => {\n return c.show(this.$scope);\n });\n }\n\n private subscribeToTableEvents() {\n\n this.$scope.$watch('params.isDataReloadRequired()', (newStatus: boolean/*, oldStatus*/) => {\n this.onDataReloadStatusChange(newStatus);\n });\n\n this.ngTableEventsChannel.onAfterReloadData<TParams>(\n (params, newDatapage) => {\n const visibleColumns = this.getVisibleColumns();\n if (params.hasGroup()) {\n this.$scope.$groups = (newDatapage || []) as GroupedDataResults<TParams>;\n this.$scope.$groups.visibleColumnCount = visibleColumns.length;\n } else {\n this.$scope.$data = (newDatapage || []) as DataResults<TParams>;\n this.$scope.$data.visibleColumnCount = visibleColumns.length;\n }\n },\n this.$scope,\n (publisher) => this.$scope.params === publisher\n );\n\n this.ngTableEventsChannel.onPagesChanged<TParams>(\n (params, newPages) => {\n this.$scope.pages = newPages;\n },\n this.$scope,\n (publisher) => this.$scope.params === publisher\n );\n }\n\n private some<T>(array: T[], predicate: (item: T) => boolean) {\n let found = false;\n for (let i = 0; i < array.length; i++) {\n const obj = array[i];\n if (predicate(obj)) {\n found = true;\n break;\n }\n }\n return found;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableController.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IAugmentedJQuery, IDirective, IScope } from 'angular';\nimport * as ng1 from 'angular';\nimport { IColumnDef, IDynamicTableColDef, ITableInputAttributes } from './public-interfaces';\nimport { NgTableController } from './ngTableController';\n\ninterface IScopeExtensions {\n $columns: IColumnDef[]\n}\n\nngTableDynamic.$inject = [];\n\n/**\n * A dynamic version of the {@link ngTable ngTable} directive that accepts a dynamic list of columns\n * definitions to render\n * @ngdoc directive\n *\n * @example\n * ```html\n * <table ng-table-dynamic=\"$ctrl.tableParams with $ctrl.cols\" class=\"table\">\n * <tr ng-repeat=\"row in $data\">\n * <td ng-repeat=\"col in $columns\">{{row[col.field]}}</td>\n * </tr>\n * </table>\n * ```\n */\nexport function ngTableDynamic () : IDirective{\n\n return {\n restrict: 'A',\n priority: 1001,\n scope: true,\n controller: 'ngTableController',\n compile: function(tElement: IAugmentedJQuery) {\n let row: IAugmentedJQuery;\n\n // IE 8 fix :not(.ng-table-group) selector\n ng1.forEach(tElement.find('tr'), (tr: JQuery) => {\n tr = ng1.element(tr);\n if (!tr.hasClass('ng-table-group') && !row) {\n row = tr;\n }\n });\n if (!row) {\n return undefined;\n }\n\n ng1.forEach(row.find('td'), (item: JQuery) => {\n const el = ng1.element(item);\n const getAttrValue = (attr: string) => {\n return el.attr('x-data-' + attr) || el.attr('data-' + attr) || el.attr(attr);\n };\n\n // this used in responsive table\n const titleExpr = getAttrValue('title');\n if (!titleExpr){\n el.attr('data-title-text', '{{$columns[$index].titleAlt(this) || $columns[$index].title(this)}}');\n }\n const showExpr = el.attr('ng-if');\n if (!showExpr){\n el.attr('ng-if', '$columns[$index].show(this)');\n }\n });\n return function (scope: IScope & IScopeExtensions, element: IAugmentedJQuery, attrs: ITableInputAttributes, controller: NgTableController<any, IDynamicTableColDef>) {\n const expr = controller.parseNgTableDynamicExpr(attrs.ngTableDynamic);\n\n controller.setupBindingsToInternalScope(expr.tableParams);\n controller.compileDirectiveTemplates();\n\n scope.$watchCollection<IDynamicTableColDef[]>(expr.columns, (newCols/*, oldCols*/) => {\n scope.$columns = controller.buildColumns(newCols);\n controller.loadFilterData(scope.$columns);\n });\n };\n }\n };\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableDynamic.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { IServiceProvider, auto } from 'angular';\nimport { IFilterConfigValues, IFilterTemplateDef } from './public-interfaces';\n\n/**\n * The angular provider used to configure the behaviour of the `NgTableFilterConfig` service.\n */\nexport class NgTableFilterConfigProvider implements IServiceProvider {\n static $inject = ['$injector'];\n $get: () => NgTableFilterConfig;\n private config: IFilterConfigValues;\n private defaultConfig: IFilterConfigValues = {\n defaultBaseUrl: 'ng-table/filters/',\n defaultExt: '.html',\n aliasUrls: {}\n };\n constructor($injector: auto.IInjectorService) {\n this.$get = () => {\n return $injector.instantiate<NgTableFilterConfig>(NgTableFilterConfig, { config: ng1.copy(this.config) });\n }\n this.$get.$inject = [];\n this.resetConfigs();\n }\n\n /**\n * Reset back to factory defaults the config values that `NgTableFilterConfig` service will use\n */\n resetConfigs() {\n this.config = this.defaultConfig;\n }\n\n /**\n * Set the config values used by `NgTableFilterConfig` service\n */\n setConfig(customConfig: IFilterConfigValues) {\n const mergeConfig = ng1.extend({}, this.config, customConfig);\n mergeConfig.aliasUrls = ng1.extend({}, this.config.aliasUrls, customConfig.aliasUrls);\n this.config = mergeConfig;\n }\n}\n\n/**\n * Exposes configuration values and methods used to return the location of the html\n * templates used to render the filter row of an ng-table directive\n */\nexport class NgTableFilterConfig {\n static $inject = ['config'];\n constructor(\n /**\n * Readonly copy of the final values used to configure the service.\n */\n public readonly config: IFilterConfigValues\n ) { }\n\n /**\n * Return the url of the html filter template registered with the alias supplied\n */\n getUrlForAlias(aliasName: string, filterKey?: string) {\n return this.config.aliasUrls[aliasName] || this.config.defaultBaseUrl + aliasName + this.config.defaultExt;\n }\n \n /**\n * Return the url of the html filter template for the supplied definition and key.\n * For more information see the documentation for {@link IFilterTemplateMap}\n */\n getTemplateUrl(filterDef: string | IFilterTemplateDef, filterKey?: string) {\n let filterName: string;\n if (typeof filterDef !== 'string') {\n filterName = filterDef.id;\n } else {\n filterName = filterDef;\n }\n if (filterName.indexOf('/') !== -1) {\n return filterName;\n }\n\n return this.getUrlForAlias(filterName, filterKey);\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableFilterConfig.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nconst templateUrl = require('./filterRow.html');\n\nngTableFilterRow.$inject = [];\n\n/**\n * directive that renders the filter header row for a table \n * @ngdoc directive\n * @example\n * ```html\n * <ng-table-filter-row></ng-table-filter-row>\n * ```\n */\nexport function ngTableFilterRow(){\n const directive = {\n restrict: 'E',\n replace: true,\n templateUrl: templateUrl,\n scope: true,\n controller: 'ngTableFilterRowController',\n controllerAs: '$ctrl'\n };\n return directive;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableFilterRow.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IScope } from 'angular';\nimport { IFilterTemplateDef, IFilterTemplateDefMap } from './public-interfaces';\nimport { NgTableFilterConfig } from './ngTableFilterConfig';\n\n/**\n * @private\n */\nexport interface IScopeExtensions {\n getFilterPlaceholderValue(filterDef: string | IFilterTemplateDef, filterKey?: string): string;\n}\n\n/**\n * Controller for the {@link ngTableFilterRow ngTableFilterRow} directive\n */\nexport class NgTableFilterRowController {\n static $inject = ['$scope', 'ngTableFilterConfig'];\n config: NgTableFilterConfig;\n constructor($scope: IScope & IScopeExtensions, ngTableFilterConfig: NgTableFilterConfig) {\n this.config = ngTableFilterConfig;\n\n // todo: stop doing this. Why?\n // * scope inheritance makes it hard to know how supplies functions\n // * scope is not a concept in angular 2\n // make function available to filter templates\n $scope.getFilterPlaceholderValue = this.getFilterPlaceholderValue.bind(this);\n }\n\n getFilterCellCss(filter: IFilterTemplateDefMap, layout: string) {\n if (layout !== 'horizontal') {\n return 's12';\n }\n\n const size = Object.keys(filter).length;\n const width = parseInt((12 / size).toString(), 10);\n return 's' + width;\n }\n\n getFilterPlaceholderValue(filterDef: string | IFilterTemplateDef, filterKey?: string) {\n if (typeof filterDef === 'string') {\n return '';\n } else {\n return filterDef.placeholder;\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableFilterRowController.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nconst templateUrl = require('./groupRow.html');\n\nngTableGroupRow.$inject = [];\n\n/**\n * directive that renders the group header row for a table \n * @ngdoc directive\n * @example\n * ```html\n * <ng-table-group-row></ng-table-group-row>\n * ```\n */\nexport function ngTableGroupRow(){\n const directive = {\n restrict: 'E',\n replace: true,\n templateUrl: templateUrl,\n scope: true,\n controller: 'ngTableGroupRowController',\n controllerAs: '$ctrl'\n };\n return directive;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableGroupRow.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport { IPromise } from 'angular';\nimport { DataResult, IGroupingFunc, Grouping, GroupSort } from '../core';\nimport { IColumnDef } from './public-interfaces';\nimport { ITableScope } from './ngTableController';\n\n/**\n * @private\n */\nexport interface IScopeExtensions<T> {\n $selGroup: IGroupingFunc<any> | string;\n $selGroupTitle: string;\n}\n\n\n/**\n * Controller for the {@link ngTableGroupRow ngTableGroupRow} directive\n */\nexport class NgTableGroupRowController<T> {\n static $inject = ['$scope'];\n private groupFns: Array<IGroupingFunc<any> | IColumnDef> = [];\n constructor(private $scope: ITableScope<T> & IScopeExtensions<T>) {\n $scope.$watch<Grouping<any>>('params.group()', (newGrouping) => {\n this.setGroup(newGrouping);\n }, true);\n }\n\n getGroupables() {\n const groupableCols = this.$scope.$columns.filter($column => !!$column.groupable(this.$scope));\n return this.groupFns.concat(groupableCols);\n }\n\n getGroupTitle(group: IGroupingFunc<any> | IColumnDef) {\n return this.isGroupingFunc(group) ? group.title : group.title(this.$scope);\n }\n\n\n getVisibleColumns() {\n return this.$scope.$columns.filter($column => $column.show(this.$scope))\n }\n\n groupBy(group: IGroupingFunc<any> | IColumnDef) {\n if (this.isSelectedGroup(group)) {\n this.changeSortDirection();\n } else {\n if (this.isGroupingFunc(group)) {\n this.$scope.params.group(group);\n } else {\n // it's OK, we know that groupable will return a string\n // this is guaranteed by getGroupables returning only\n // columns that return (truthy) strings\n this.$scope.params.group(group.groupable(this.$scope) as string);\n }\n }\n }\n\n isSelectedGroup(group: IGroupingFunc<any> | IColumnDef) {\n if (this.isGroupingFunc(group)) {\n return group === this.$scope.$selGroup;\n } else {\n return group.groupable(this.$scope) === this.$scope.$selGroup;\n }\n }\n\n toggleDetail() {\n this.$scope.params.settings().groupOptions.isExpanded = !this.$scope.params.settings().groupOptions.isExpanded;\n return this.$scope.params.reload();\n }\n\n private changeSortDirection() {\n let newDirection: GroupSort;\n if (this.$scope.params.hasGroup(this.$scope.$selGroup, 'asc')) {\n newDirection = 'desc';\n } else if (this.$scope.params.hasGroup(this.$scope.$selGroup, 'desc')) {\n newDirection = '';\n } else {\n newDirection = 'asc';\n }\n this.$scope.params.group(this.$scope.$selGroup, newDirection);\n }\n\n private findGroupColumn(groupKey: IGroupingFunc<any> | string) {\n return this.$scope.$columns.filter($column => $column.groupable(this.$scope) === groupKey)[0];\n }\n\n private isGroupingFunc(val: IColumnDef | Grouping<any>): val is IGroupingFunc<any> {\n return typeof val === 'function';\n }\n\n private setGroup(grouping: Grouping<any>) {\n const existingGroupCol = this.findGroupColumn(this.$scope.$selGroup);\n if (existingGroupCol && existingGroupCol.show.assign) {\n existingGroupCol.show.assign(this.$scope, true);\n }\n if (this.isGroupingFunc(grouping)) {\n this.groupFns = [grouping];\n this.$scope.$selGroup = grouping;\n this.$scope.$selGroupTitle = grouping.title;\n } else {\n // note: currently only one group is implemented\n const groupKey = Object.keys(grouping || {})[0];\n const groupedColumn = this.findGroupColumn(groupKey);\n if (groupedColumn) {\n this.$scope.$selGroupTitle = groupedColumn.title(this.$scope);\n this.$scope.$selGroup = groupKey;\n if (groupedColumn.show.assign) {\n groupedColumn.show.assign(this.$scope, false);\n }\n }\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableGroupRowController.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { NgTableEventsChannel, IPageButton } from '../core'\nimport { ITableScope } from './ngTableController';\n\ninterface IScopeExtensions {\n pages: IPageButton[]\n}\n\nngTablePagination.$inject = ['$compile', '$document', 'ngTableEventsChannel'];\n\n/**\n * Directive that renders the table pagination controls\n * @ngdoc directive\n */\nexport function ngTablePagination<T>($compile: ng1.ICompileService, $document: ng1.IDocumentService, ngTableEventsChannel: NgTableEventsChannel): ng1.IDirective {\n\n return {\n restrict: 'A',\n scope: {\n 'params': '=ngTablePagination',\n 'templateUrl': '='\n },\n replace: false,\n link: function(scope: ITableScope<T> & IScopeExtensions, element: ng1.IAugmentedJQuery/*, attrs*/) {\n\n ngTableEventsChannel.onAfterReloadData<T>(function(pubParams) {\n scope.pages = pubParams.generatePagesArray();\n }, scope, function(pubParams){\n return pubParams === scope.params;\n });\n\n scope.$watch<string>('templateUrl', function(templateUrl) {\n if (templateUrl === undefined) {\n return;\n }\n const template = ng1.element('<div ng-include=\"templateUrl\"></div>', $document);\n element.append(template);\n $compile(template)(scope);\n });\n }\n };\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTablePagination.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { IColumnDef, SelectData, ISelectDataFunc, ISelectOption } from './public-interfaces';\n\n/**\n * @private\n */\nexport interface IInputAttributes extends ng1.IAttributes {\n ngTableSelectFilterDs: string;\n}\n\n/**\n * @private\n */\nexport interface IScopeExtensions {\n $selectData: ISelectOption[]\n}\n\nngTableSelectFilterDs.$inject = [];\n\n/**\n * Takes the array returned by $column.filterData and makes it available as `$selectData` on the `$scope`.\n *\n * The resulting `$selectData` array will contain an extra item that is suitable to represent the user\n * \"deselecting\" an item from a `<select>` tag\n *\n * This directive is is focused on providing a datasource to an `ngOptions` directive\n */\nfunction ngTableSelectFilterDs(): ng1.IDirective {\n // note: not using isolated or child scope \"by design\"\n // this is to allow this directive to be combined with other directives that do\n\n const directive = {\n restrict: 'A',\n controller: NgTableSelectFilterDsController\n };\n return directive;\n}\n\n/**\n * @private\n */\nexport class NgTableSelectFilterDsController {\n static $inject = ['$scope', '$parse', '$attrs', '$q'];\n $column: IColumnDef;\n constructor(\n private $scope: ng1.IScope & IScopeExtensions,\n $parse: ng1.IParseService,\n private $attrs: IInputAttributes,\n private $q: ng1.IQService) {\n\n this.$column = $parse($attrs.ngTableSelectFilterDs)($scope);\n $scope.$watch<SelectData>(\n () => this.$column && this.$column.data,\n () => { this.bindDataSource(); });\n }\n private bindDataSource() {\n this.getSelectListData(this.$column).then(data => {\n if (data && !this.hasEmptyOption(data)) {\n data.unshift({ id: '', title: '' });\n }\n data = data || [];\n this.$scope.$selectData = data;\n });\n }\n\n private hasEmptyOption(data: ISelectOption[]) {\n let isMatch: boolean;\n for (let i = 0; i < data.length; i++) {\n const item = data[i];\n if (item && item.id === '') {\n isMatch = true;\n break;\n }\n }\n return isMatch;\n }\n\n private getSelectListData($column: IColumnDef) {\n const dataInput = $column.data;\n if (dataInput instanceof Array) {\n return this.$q.when(dataInput);\n } else {\n return this.$q.when(dataInput && dataInput());\n }\n }\n}\nexport { ngTableSelectFilterDs };\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableSelectFilterDs.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nconst templateUrl = require('./sorterRow.html');\n\nngTableSorterRow.$inject = [];\n\n/**\n * directive that renders the sorting header row for a table \n * @ngdoc directive\n * @example\n * ```html\n * <ng-table-sorter-row></ng-table-sorter-row>\n * ```\n */\nexport function ngTableSorterRow(){\n const directive = {\n restrict: 'E',\n replace: true,\n templateUrl: templateUrl,\n scope: true,\n controller: 'ngTableSorterRowController',\n controllerAs: '$ctrl'\n };\n return directive;\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableSorterRow.directive.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\nimport { IAngularEvent } from 'angular';\nimport { SortDirection, ISortingValues } from '../core';\nimport { IColumnDef } from './public-interfaces';\nimport { ITableScope } from './ngTableController';\n\n/**\n * @private\n */\nexport interface IAugmentedMouseEvent extends IAngularEvent {\n ctrlKey: boolean;\n metaKey: boolean;\n}\n/**\n * Controller for the {@link ngTableSorterRow ngTableSorterRow} directive\n */\nexport class NgTableSorterRowController<T> {\n static $inject = ['$scope'];\n constructor(private $scope: ITableScope<T>) {}\n\n sortBy($column: IColumnDef, event: IAugmentedMouseEvent) {\n const parsedSortable = $column.sortable && $column.sortable();\n if (!parsedSortable || typeof parsedSortable !== 'string') {\n return;\n } else {\n const defaultSort = this.$scope.params.settings().defaultSort;\n const inverseSort: SortDirection = (defaultSort === 'asc' ? 'desc' : 'asc');\n const sorting = this.$scope.params.sorting() && this.$scope.params.sorting()[parsedSortable] && (this.$scope.params.sorting()[parsedSortable] === defaultSort);\n const sortingParams: ISortingValues = (event.ctrlKey || event.metaKey) ? this.$scope.params.sorting() : {};\n sortingParams[parsedSortable] = (sorting ? inverseSort : defaultSort);\n this.$scope.params.parameters({\n sorting: sortingParams\n });\n }\n\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/browser/ngTableSorterRowController.ts","/**\n * ngTable: Table + Angular JS\n *\n * @author Vitalii Savchuk <esvit666@gmail.com>\n * @url https://github.com/esvit/ng-table/\n * @license New BSD License <http://creativecommons.org/licenses/BSD/>\n */\n\nimport * as ng1 from 'angular';\nimport { IFilterFilter, IFilterOrderBy, IFilterService, IPromise, IServiceProvider} from 'angular';\nimport { IFilterFunc } from '../filtering';\nimport { NgTableParams } from '../ngTableParams';\nimport { NgTableEventsChannel } from '../ngTableEventsChannel';\n\n\n/**\n * A default implementation of the getData function that will apply the `filter`, `orderBy` and\n * paging values from the {@link NgTableParams} instance supplied to the data array supplied.\n *\n * A call to this function will:\n * - return the resulting array\n * - assign the total item count after filtering to the `total` of the `NgTableParams` instance supplied\n */\nexport interface IDefaultGetData<T> {\n (data: T[], params: NgTableParams<T>): T[];\n /**\n * Convenience function that this service will use to apply paging to the data rows.\n *\n * Returns a slice of rows from the `data` array supplied and sets the `NgTableParams.total()`\n * on the `params` instance supplied to `data.length`\n */\n applyPaging(data: T[], params: NgTableParams<any>): T[],\n /**\n * Returns a reference to the function that this service will use to filter data rows\n */\n getFilterFn(params: NgTableParams<T>): IFilterFunc<T>,\n /**\n * Returns a reference to the function that this service will use to sort data rows\n */\n getOrderByFn(params?: NgTableParams<T>): IFilterOrderBy\n}\n\n/**\n * Implementation of the {@link IDefaultGetDataProvider} interface\n */\nexport class NgTableDefaultGetDataProvider implements IServiceProvider {\n /**\n * The name of a angular filter that knows how to apply the values returned by\n * `NgTableParams.filter()` to restrict an array of data.\n * (defaults to the angular `filter` filter service)\n */\n filterFilterName = 'filter';\n /**\n * The name of a angular filter that knows how to apply the values returned by\n * `NgTableParams.orderBy()` to sort an array of data.\n * (defaults to the angular `orderBy` filter service)\n */\n sortingFilterName = 'orderBy';\n $get: ($filter: IFilterService, ngTableEventsChannel: NgTableEventsChannel) => IDefaultGetData<any>;\n constructor() {\n const provider = this;\n this.$get = ngTableDefaultGetData;\n\n ngTableDefaultGetData.$inject = ['$filter', 'ngTableEventsChannel'];\n\n function ngTableDefaultGetData<T>($filter: IFilterService, ngTableEventsChannel: NgTableEventsChannel): IDefaultGetData<T> {\n\n const defaultDataOptions = { applyFilter: true, applySort: true, applyPaging: true };\n\n (getData as IDefaultGetData<T>).applyPaging = applyPaging;\n (getData as IDefaultGetData<T>).getFilterFn = getFilterFn;\n (getData as IDefaultGetData<T>).getOrderByFn = getOrderByFn;\n\n return getData as IDefaultGetData<T>;\n\n function getFilterFn(params: NgTableParams<T>): IFilterFunc<T> {\n const filterOptions = params.settings().filterOptions;\n if (ng1.isFunction(filterOptions.filterFn)) {\n return filterOptions.filterFn;\n } else {\n return $filter<IFilterFilter>(filterOptions.filterFilterName || provider.filterFilterName);\n }\n }\n\n function getOrderByFn(params: NgTableParams<T>) {\n return $filter<IFilterOrderBy>(provider.sortingFilterName);\n }\n\n function applyFilter(data: T[], params: NgTableParams<T>): T[] {\n if (!params.hasFilter()) {\n return data;\n }\n\n const filter = params.filter(true);\n const filterKeys = Object.keys(filter);\n const parsedFilter = filterKeys.reduce((result, key) => {\n result = setPath(result, filter[key], key);\n return result;\n }, {});\n const filterFn = getFilterFn(params);\n return filterFn.call(params, data, parsedFilter, params.settings().filterOptions.filterComparator);\n }\n\n function applyPaging(data: T[], params: NgTableParams<any>): T[] {\n const pagedData = data.slice((params.page() - 1) * params.count(), params.page() * params.count());\n params.total(data.length); // set total for recalc pagination\n return pagedData;\n }\n\n function applySort(data: T[], params: NgTableParams<T>): T[] {\n const orderBy = params.orderBy();\n const orderByFn = getOrderByFn(params);\n return orderBy.length ? orderByFn(data, orderBy) : data;\n }\n\n function getData(data: T[], params: NgTableParams<T>): T[] {\n if (data == null) {\n return [];\n }\n\n const options = ng1.extend({}, defaultDataOptions, params.settings().dataOptions);\n\n const fData = options.applyFilter ? applyFilter(data, params) : data;\n ngTableEventsChannel.publishAfterDataFiltered(params, fData);\n\n const orderedData = options.applySort ? applySort(fData, params) : fData;\n ngTableEventsChannel.publishAfterDataSorted(params,orderedData);\n\n return options.applyPaging ? applyPaging(orderedData, params) : orderedData;\n }\n\n // Sets the value at any depth in a nested object based on the path\n // note: adapted from: underscore-contrib#setPath\n function setPath(obj: any, value: any, path: string) {\n const keys = path.split('.');\n const ret = obj;\n const lastKey = keys[keys.length - 1];\n let target = ret;\n\n const parentPathKeys = keys.slice(0, keys.length - 1);\n parentPathKeys.forEach(function (key) {\n if (!target.hasOwnProperty(key)) {\n target[key] = {};\n }\n target = target[key];\n });\n\n target[lastKey] = value;\n return ret;\n }\n }\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/data/ngTableDefaultGetData.ts","export * from './filterComparator';\nexport * from './filterFunc';\nexport * from './filterSettings';\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/filtering/index.ts","export * from './getGroup';\nexport * from './groupingFunc';\nexport * from './groupSettings';\nexport * from './ngTableDefaultGetGroups';\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/grouping/index.ts","import { IQService } from 'angular';\nimport * as ng1 from 'angular';\nimport { convertSortToOrderBy, isGroupingFun } from '../util';\nimport { NgTableParams, } from '../ngTableParams';\nimport { IDataRowGroup, IDefaultGetData, IGetDataFunc } from '../data';\nimport { IGetGroupFunc, Grouping, IGroupingFunc, GroupSort } from './';\nimport { ISortingValues } from '../sorting';\n\nngTableDefaultGetGroups.$inject = ['$q', 'ngTableDefaultGetData'];\n\n/**\n * Implementation of the {@link IDefaultGetData IDefaultGetData} interface\n * \n * @ngdoc service\n */\nexport function ngTableDefaultGetGroups<T>($q: IQService, ngTableDefaultGetData: IDefaultGetData<IDataRowGroup<T>>): IGetGroupFunc<T> {\n\n return getGroups;\n\n function getGroups(params: NgTableParams<T>) {\n\n const group = params.group();\n let groupFn: IGroupingFunc<T>;\n let sortDirection: GroupSort = undefined;\n if (isGroupingFun(group)) {\n groupFn = group;\n sortDirection = group.sortDirection;\n } else {\n // currently support for only one group implemented\n const groupField = Object.keys(group)[0];\n sortDirection = group[groupField];\n groupFn = item => {\n return getPath(item, groupField);\n };\n }\n\n const settings = params.settings();\n const originalDataOptions = settings.dataOptions;\n settings.dataOptions = { applyPaging: false };\n const getData: IGetDataFunc<T> = settings.getData;\n const gotData = $q.when(getData(params));\n return gotData.then(data => {\n const groups: { [name: string]: IDataRowGroup<T> } = {};\n ng1.forEach(data, item => {\n const groupName = groupFn(item);\n groups[groupName] = groups[groupName] || {\n data: [],\n $hideRows: !settings.groupOptions.isExpanded,\n value: groupName\n };\n groups[groupName].data.push(item);\n });\n let result: IDataRowGroup<T>[] = [];\n for (const i in groups) {\n result.push(groups[i]);\n }\n if (sortDirection) {\n const orderByFn = ngTableDefaultGetData.getOrderByFn();\n const orderBy = convertSortToOrderBy({\n value: sortDirection\n });\n result = orderByFn(result, orderBy);\n }\n\n return ngTableDefaultGetData.applyPaging(result, params);\n }).finally(() => {\n // restore the real options\n settings.dataOptions = originalDataOptions;\n });\n }\n}\n\n\n/**\n * @private\n */\nfunction getPath(obj: { [name: string]: any }, ks: string | string[]): any {\n // origianl source https://github.com/documentcloud/underscore-contrib\n\n let keys: string[];\n if (typeof ks === \"string\") {\n keys = ks.split(\".\");\n } else {\n keys = ks;\n }\n\n // If we have reached an undefined property\n // then stop executing and return undefined\n if (obj === undefined) return void 0;\n\n // If the path array has no more elements, we've reached\n // the intended property and return its value\n if (keys.length === 0) return obj;\n\n // If we still have elements in the path array and the current\n // value is null, stop executing and return undefined\n if (obj === null) return void 0;\n\n return getPath(obj[keys[0]], keys.slice(1));\n}\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/grouping/ngTableDefaultGetGroups.ts","export * from './getGroup';\nexport * from './groupingFunc';\nexport * from './groupSettings';\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./src/core/grouping/publicExports.ts","var path = 'ng-table/filterRow.html';\nvar html = \"<tr ng-show=\\\"show_filter\\\" class=\\\"ng-table-filters\\\">\\n <th data-title-text=\\\"{{$column.titleAlt(this) || $column.title(this)}}\\\" ng-repeat=\\\"$column in $columns\\\" ng-if=\\\"$column.show(this)\\\" class=\\\"filter {{$column.class(this)}}\\\"\\n ng-class=\\\"params.settings().filterOptions.filterLayout === 'horizontal' ? 'filter-horizontal' : ''\\\">\\n <div ng-repeat=\\\"(name, filter) in $column.filter(this)\\\" ng-include=\\\"$ctrl.config.getTemplateUrl(filter)\\\" class=\\\"filter-cell\\\"\\n ng-class=\\\"[$ctrl.getFilterCellCss($column.filter(this), params.settings().filterOptions.filterLayout), $last ? 'last' : '']\\\">\\n </div>\\n </th>\\n</tr>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/filterRow.html\n// module id = 42\n// module chunks = 0","var path = 'ng-table/filters/number.html';\nvar html = \"<input type=\\\"number\\\" name=\\\"{{name}}\\\" ng-disabled=\\\"$filterRow.disabled\\\" ng-model=\\\"params.filter()[name]\\\" class=\\\"input-filter form-control\\\"\\n placeholder=\\\"{{getFilterPlaceholderValue(filter, name)}}\\\"/>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/filters/number.html\n// module id = 43\n// module chunks = 0","var path = 'ng-table/filters/select-multiple.html';\nvar html = \"<select ng-options=\\\"data.id as data.title for data in $column.data\\\"\\n ng-disabled=\\\"$filterRow.disabled\\\"\\n multiple ng-multiple=\\\"true\\\"\\n ng-model=\\\"params.filter()[name]\\\"\\n class=\\\"filter filter-select-multiple form-control\\\" name=\\\"{{name}}\\\">\\n</select>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/filters/select-multiple.html\n// module id = 44\n// module chunks = 0","var path = 'ng-table/filters/select.html';\nvar html = \"<select ng-options=\\\"data.id as data.title for data in $selectData\\\"\\n ng-table-select-filter-ds=\\\"$column\\\"\\n ng-disabled=\\\"$filterRow.disabled\\\"\\n ng-model=\\\"params.filter()[name]\\\"\\n class=\\\"filter filter-select form-control\\\" name=\\\"{{name}}\\\">\\n <option style=\\\"display:none\\\" value=\\\"\\\"></option>\\n</select>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/filters/select.html\n// module id = 45\n// module chunks = 0","var path = 'ng-table/filters/text.html';\nvar html = \"<input type=\\\"text\\\" name=\\\"{{name}}\\\" ng-disabled=\\\"$filterRow.disabled\\\" ng-model=\\\"params.filter()[name]\\\" class=\\\"input-filter form-control\\\"\\n placeholder=\\\"{{getFilterPlaceholderValue(filter, name)}}\\\"/>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/filters/text.html\n// module id = 46\n// module chunks = 0","var path = 'ng-table/groupRow.html';\nvar html = \"<tr ng-if=\\\"params.hasGroup()\\\" ng-show=\\\"$groupRow.show\\\" class=\\\"ng-table-group-header\\\">\\n <th colspan=\\\"{{$ctrl.getVisibleColumns().length}}\\\" class=\\\"sortable\\\" ng-class=\\\"{\\n 'sort-asc': params.hasGroup($selGroup, 'asc'),\\n 'sort-desc':params.hasGroup($selGroup, 'desc')\\n }\\\">\\n <a href=\\\"\\\" ng-click=\\\"isSelectorOpen = !isSelectorOpen\\\" class=\\\"ng-table-group-selector\\\">\\n <strong class=\\\"sort-indicator\\\">{{$selGroupTitle}}</strong>\\n <button class=\\\"btn btn-default btn-xs ng-table-group-close\\\"\\n ng-click=\\\"$groupRow.show = false; $event.preventDefault(); $event.stopPropagation();\\\">\\n <span class=\\\"glyphicon glyphicon-remove\\\"></span>\\n </button>\\n <button class=\\\"btn btn-default btn-xs ng-table-group-toggle\\\"\\n ng-click=\\\"$ctrl.toggleDetail(); $event.preventDefault(); $event.stopPropagation();\\\">\\n <span class=\\\"glyphicon\\\" ng-class=\\\"{\\n 'glyphicon-resize-small': params.settings().groupOptions.isExpanded,\\n 'glyphicon-resize-full': !params.settings().groupOptions.isExpanded\\n }\\\"></span>\\n </button>\\n </a>\\n <div class=\\\"list-group\\\" ng-if=\\\"isSelectorOpen\\\">\\n <a href=\\\"\\\" class=\\\"list-group-item\\\" ng-repeat=\\\"group in $ctrl.getGroupables()\\\" ng-click=\\\"$ctrl.groupBy(group)\\\">\\n <strong>{{ $ctrl.getGroupTitle(group)}}</strong>\\n <strong ng-class=\\\"$ctrl.isSelectedGroup(group) && 'sort-indicator'\\\"></strong>\\n </a>\\n </div>\\n </th>\\n</tr>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/groupRow.html\n// module id = 47\n// module chunks = 0","var path = 'ng-table/header.html';\nvar html = \"<ng-table-group-row></ng-table-group-row>\\n<ng-table-sorter-row></ng-table-sorter-row>\\n<ng-table-filter-row></ng-table-filter-row>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/header.html\n// module id = 48\n// module chunks = 0","var path = 'ng-table/pager.html';\nvar html = \"<div class=\\\"ng-cloak ng-table-pager\\\" ng-if=\\\"params.data.length\\\">\\n <div ng-if=\\\"params.settings().counts.length\\\" class=\\\"ng-table-counts btn-group pull-right\\\">\\n <button ng-repeat=\\\"count in params.settings().counts\\\" type=\\\"button\\\"\\n ng-class=\\\"{'active':params.count() == count}\\\"\\n ng-click=\\\"params.count(count)\\\" class=\\\"btn btn-default\\\">\\n <span ng-bind=\\\"count\\\"></span>\\n </button>\\n </div>\\n <ul ng-if=\\\"pages.length\\\" class=\\\"pagination ng-table-pagination\\\">\\n <li class=\\\"page-item\\\" ng-class=\\\"{'disabled': !page.active && !page.current, 'active': page.current}\\\" ng-repeat=\\\"page in pages\\\" ng-switch=\\\"page.type\\\">\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"prev\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\">&laquo;</a>\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"first\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\"><span ng-bind=\\\"page.number\\\"></span></a>\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"page\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\"><span ng-bind=\\\"page.number\\\"></span></a>\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"more\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\">&#8230;</a>\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"last\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\"><span ng-bind=\\\"page.number\\\"></span></a>\\n <a class=\\\"page-link\\\" ng-switch-when=\\\"next\\\" ng-click=\\\"params.page(page.number)\\\" href=\\\"\\\">&raquo;</a>\\n </li>\\n </ul>\\n</div>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/pager.html\n// module id = 49\n// module chunks = 0","var path = 'ng-table/sorterRow.html';\nvar html = \"<tr class=\\\"ng-table-sort-header\\\">\\n <th title=\\\"{{$column.headerTitle(this)}}\\\"\\n ng-repeat=\\\"$column in $columns\\\"\\n ng-class=\\\"{\\n 'sortable': $column.sortable(this),\\n 'sort-asc': params.sorting()[$column.sortable(this)]=='asc',\\n 'sort-desc': params.sorting()[$column.sortable(this)]=='desc'\\n }\\\"\\n ng-click=\\\"$ctrl.sortBy($column, $event)\\\"\\n ng-if=\\\"$column.show(this)\\\"\\n ng-init=\\\"template = $column.headerTemplateURL(this)\\\"\\n class=\\\"header {{$column.class(this)}}\\\">\\n <div ng-if=\\\"!template\\\" class=\\\"ng-table-header\\\" ng-class=\\\"{'sort-indicator': params.settings().sortingIndicator == 'div'}\\\">\\n <span ng-bind=\\\"$column.title(this)\\\" ng-class=\\\"{'sort-indicator': params.settings().sortingIndicator == 'span'}\\\"></span>\\n </div>\\n <div ng-if=\\\"template\\\" ng-include=\\\"template\\\"></div>\\n </th>\\n</tr>\\n\";\nvar angular = require('angular');\nangular.module('ng').run(['$templateCache', function(c) { c.put(path, html) }]);\nmodule.exports = path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/browser/sorterRow.html\n// module id = 50\n// module chunks = 0","import * as ng1 from 'angular';\nimport { ngTableCoreModule } from './src/core';\nimport { ngTableBrowserModule } from './src/browser';\n\nconst ngTableModule = ng1.module('ngTable', [ngTableCoreModule.name, ngTableBrowserModule.name]);\n\nexport { ngTableModule };\nexport * from './src/core';\nexport * from './src/browser';\n\n\n// WEBPACK FOOTER //\n// ./~/angular1-template-loader!./index.ts"],"sourceRoot":""}
\No newline at end of file