(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-pagination'), require('@swimlane/ngx-datatable'), require('ngx-bootstrap'), require('ngx-toastr'), require('rxjs/operators')) :
    typeof define === 'function' && define.amd ? define('@dotgov/z_datagrid', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-pagination', '@swimlane/ngx-datatable', 'ngx-bootstrap', 'ngx-toastr', 'rxjs/operators'], factory) :
    (global = global || self, factory((global.dotgov = global.dotgov || {}, global.dotgov.z_datagrid = {}), global.ng.core, global.ng.common, global.ng.forms, global.ngxp, global.ngxDatatable, global.ngxb, global.ngxToastr, global.rxjs.operators));
}(this, function (exports, core, common, forms, ngxPagination, ngxDatatable, ngxBootstrap, ngxToastr, operators) { 'use strict';

    /*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
    /* global Reflect, Promise */

    var extendStatics = function(d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };

    function __extends(d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    }

    var __assign = function() {
        __assign = Object.assign || function __assign(t) {
            for (var s, i = 1, n = arguments.length; i < n; i++) {
                s = arguments[i];
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
            }
            return t;
        };
        return __assign.apply(this, arguments);
    };

    function __rest(s, e) {
        var t = {};
        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
            t[p] = s[p];
        if (s != null && typeof Object.getOwnPropertySymbols === "function")
            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                    t[p[i]] = s[p[i]];
            }
        return t;
    }

    function __decorate(decorators, target, key, desc) {
        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        return c > 3 && r && Object.defineProperty(target, key, r), r;
    }

    function __param(paramIndex, decorator) {
        return function (target, key) { decorator(target, key, paramIndex); }
    }

    function __metadata(metadataKey, metadataValue) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
    }

    function __awaiter(thisArg, _arguments, P, generator) {
        return new (P || (P = Promise))(function (resolve, reject) {
            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
            function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
            step((generator = generator.apply(thisArg, _arguments || [])).next());
        });
    }

    function __generator(thisArg, body) {
        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
        function verb(n) { return function (v) { return step([n, v]); }; }
        function step(op) {
            if (f) throw new TypeError("Generator is already executing.");
            while (_) try {
                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                if (y = 0, t) op = [op[0] & 2, t.value];
                switch (op[0]) {
                    case 0: case 1: t = op; break;
                    case 4: _.label++; return { value: op[1], done: false };
                    case 5: _.label++; y = op[1]; op = [0]; continue;
                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
                    default:
                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                        if (t[2]) _.ops.pop();
                        _.trys.pop(); continue;
                }
                op = body.call(thisArg, _);
            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
        }
    }

    function __exportStar(m, exports) {
        for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
    }

    function __values(o) {
        var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
        if (m) return m.call(o);
        return {
            next: function () {
                if (o && i >= o.length) o = void 0;
                return { value: o && o[i++], done: !o };
            }
        };
    }

    function __read(o, n) {
        var m = typeof Symbol === "function" && o[Symbol.iterator];
        if (!m) return o;
        var i = m.call(o), r, ar = [], e;
        try {
            while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
        }
        catch (error) { e = { error: error }; }
        finally {
            try {
                if (r && !r.done && (m = i["return"])) m.call(i);
            }
            finally { if (e) throw e.error; }
        }
        return ar;
    }

    function __spread() {
        for (var ar = [], i = 0; i < arguments.length; i++)
            ar = ar.concat(__read(arguments[i]));
        return ar;
    }

    function __spreadArrays() {
        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
        for (var r = Array(s), k = 0, i = 0; i < il; i++)
            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                r[k] = a[j];
        return r;
    };

    function __await(v) {
        return this instanceof __await ? (this.v = v, this) : new __await(v);
    }

    function __asyncGenerator(thisArg, _arguments, generator) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var g = generator.apply(thisArg, _arguments || []), i, q = [];
        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
        function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
        function fulfill(value) { resume("next", value); }
        function reject(value) { resume("throw", value); }
        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
    }

    function __asyncDelegator(o) {
        var i, p;
        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
    }

    function __asyncValues(o) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var m = o[Symbol.asyncIterator], i;
        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
    }

    function __makeTemplateObject(cooked, raw) {
        if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
        return cooked;
    };

    function __importStar(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
        result.default = mod;
        return result;
    }

    function __importDefault(mod) {
        return (mod && mod.__esModule) ? mod : { default: mod };
    }

    var NotificationService = /** @class */ (function () {
        function NotificationService() {
        }
        NotificationService.prototype.error = function (message, title, override) {
            this.notify('error', message, title, override);
        };
        NotificationService.prototype.info = function (message, title, override) {
            this.notify('info', message, title, override);
        };
        NotificationService.prototype.success = function (message, title, override) {
            this.notify('success', message, title, override);
        };
        NotificationService.prototype.warning = function (message, title, override) {
            this.notify('warning', message, title, override);
        };
        NotificationService.prototype.notify = function (method, message, title, override) {
            console[method](message || '', title || '', override);
        };
        NotificationService = __decorate([
            core.Injectable(),
            __metadata("design:paramtypes", [])
        ], NotificationService);
        return NotificationService;
    }());

    var GridRendererComponent = /** @class */ (function () {
        function GridRendererComponent(ref) {
            this.ref = ref;
            this.loading = true;
            this.activePage = 1;
            this.fakePageSizeModel = 0;
            this.searchVal = '';
            this.buttonClick = new core.EventEmitter();
            this.selectionType = 'multiClick';
            this.rowHeight = 'auto';
            this.columnMode = 'force';
            this.headerHeight = 40;
            this.footerHeight = 40;
            this.showPager = true;
            this.reorderable = true;
            this.swapColumns = true;
            this.editablePageSize = true;
            this.pageSizes = [5, 10, 15, 50, 100];
            this.actionButtons = [];
            this.selected = [];
            this._searchChanged = new core.EventEmitter();
            this._columns = [];
            this._rows = [];
            this._pageSize = 10;
        }
        Object.defineProperty(GridRendererComponent.prototype, "rows", {
            get: function () {
                var _this = this;
                var activeRows = this._rows;
                if (this.searchVal) {
                    activeRows = activeRows.filter(function (row) {
                        // Object.values still not working for some browsers
                        var rowMeta = Object.keys(row)
                            .map(function (key) { return row[key]; })
                            .join(' ')
                            .toLowerCase();
                        var shouldFind = _this.searchVal.toLowerCase().split(' ');
                        return shouldFind.some(function (str) { return rowMeta.indexOf(str) !== -1; });
                    });
                }
                return activeRows;
            },
            set: function (rows) {
                this._rows = rows;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(GridRendererComponent.prototype, "columns", {
            get: function () {
                return this._columns;
            },
            set: function (columns) {
                var _this = this;
                this._columns = columns.map(function (col) { return Object.assign({ headerTemplate: _this.hdrTpl, cellTemplate: _this.cellTpl }, col); });
                // this._columns = columns;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(GridRendererComponent.prototype, "pageSize", {
            get: function () {
                return this._pageSize;
            },
            set: function (pageSize) {
                this.fakePageSizeModel = pageSize;
                this._pageSize = pageSize;
            },
            enumerable: true,
            configurable: true
        });
        GridRendererComponent.prototype.ngAfterViewInit = function () {
            var _this = this;
            this.fakePageSizeModel = this.pageSize;
            this.loading = false;
            this.ref.detectChanges();
            this._searchChanged
                .pipe(operators.debounceTime(400), operators.distinctUntilChanged())
                .subscribe(function (searchVal) {
                _this.updateSearch(searchVal);
            });
        };
        GridRendererComponent.prototype.reset = function () {
            this.selected = [];
            this.searchVal = '';
            this.activePage = 1;
            this.pageSize = 10;
        };
        GridRendererComponent.prototype.buttonClicked = function (button) {
            this.buttonClick.emit(button);
        };
        GridRendererComponent.prototype.updatePageSize = function (pageSize) {
            this.pageSize = pageSize;
            this.ref.detectChanges();
        };
        GridRendererComponent.prototype.emitSearch = function (value) {
            if (value === undefined) {
                return;
            }
            this._searchChanged.emit(value);
        };
        GridRendererComponent.prototype.updateSearch = function (searchVal) {
            this.searchVal = searchVal;
            this.ref.detectChanges();
        };
        __decorate([
            core.Output('buttonClicked'),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "buttonClick", void 0);
        __decorate([
            core.ViewChild('hdrTpl', { static: false }),
            __metadata("design:type", core.TemplateRef)
        ], GridRendererComponent.prototype, "hdrTpl", void 0);
        __decorate([
            core.ViewChild('cellTpl', { static: false }),
            __metadata("design:type", core.TemplateRef)
        ], GridRendererComponent.prototype, "cellTpl", void 0);
        __decorate([
            core.ViewChild('defaultButtonRenderTemplate', { static: false }),
            __metadata("design:type", core.TemplateRef)
        ], GridRendererComponent.prototype, "defButtonTemplate", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "selectionType", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "rowHeight", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "columnMode", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "headerHeight", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "footerHeight", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "showPager", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "reorderable", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "swapColumns", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "editablePageSize", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "pageSizes", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "actionButtons", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object)
        ], GridRendererComponent.prototype, "selected", void 0);
        __decorate([
            core.Input(),
            __metadata("design:type", Object),
            __metadata("design:paramtypes", [Object])
        ], GridRendererComponent.prototype, "rows", null);
        __decorate([
            core.Input(),
            __metadata("design:type", Object),
            __metadata("design:paramtypes", [Object])
        ], GridRendererComponent.prototype, "columns", null);
        __decorate([
            core.Input(),
            __metadata("design:type", Object),
            __metadata("design:paramtypes", [Object])
        ], GridRendererComponent.prototype, "pageSize", null);
        GridRendererComponent = __decorate([
            core.Component({
                selector: 'datagrid-viewer',
                template: "<div class=\"grid-renderer\">\n  <div *ngIf=\"!loading\" class=\"controlBox\">\n    <div class=\"buttonsBox\">\n      <ng-container *ngIf=\"actionButtons?.length\">\n        <div *ngFor=\"let button of actionButtons\" class=\"button-container\">\n          <ng-template\n            [ngTemplateOutlet]=\"button.template || defaultButtonRenderTemplate\"\n            [ngTemplateOutletContext]=\"{ button: button }\"\n          ></ng-template>\n        </div>\n      </ng-container>\n    </div>\n    <div class=\"searchBox\">\n      <input\n        (ngModelChange)=\"emitSearch($event)\"\n        [(ngModel)]=\"searchVal\"\n        [ngModelOptions]=\"{ standalone: true }\"\n        class=\"form-control\"\n        placeholder=\"Search Here\"\n        type=\"text\"\n      />\n      <div class=\"input-group-append\">\n        <button (click)=\"updateSearch(searchVal)\" class=\"btn btn-outline-secondary\" type=\"button\">\n          <i class=\"fa fa-search\"></i>\n        </button>\n        <button (click)=\"reset()\" class=\"btn btn-outline-primary\" type=\"button\">\n          <i class=\"fa fa-recycle\"></i>\n        </button>\n      </div>\n    </div>\n  </div>\n  <div>\n    <ngx-datatable\n      [columnMode]=\"columnMode\"\n      [columns]=\"columns\"\n      [footerHeight]=\"footerHeight\"\n      [headerHeight]=\"headerHeight\"\n      [limit]=\"pageSize\"\n      [offset]=\"activePage - 1\"\n      [reorderable]=\"reorderable\"\n      [rowHeight]=\"rowHeight\"\n      [rows]=\"rows\"\n      [selected]=\"selected\"\n      [selectionType]=\"selectionType\"\n      [swapColumns]=\"swapColumns\"\n      [targetMarkerTemplate]=\"targetMarkerTemplate\"\n      class=\"bootstrap\"\n    >\n      <ngx-datatable-footer>\n        <ng-template\n          let-curPage=\"curPage\"\n          let-offset=\"offset\"\n          let-pageSize=\"pageSize\"\n          let-rowCount=\"rowCount\"\n          let-selectedCount=\"selectedCount\"\n          ngx-datatable-footer-template\n        >\n          <div class=\"page-count\">\n            Records: {{ rowCount?.toLocaleString() }}\n            <div class=\"vertical-separator-container\">\n              <!-- <div class=\"vertical-separator\"></div> -->\n            </div>\n            <div *ngIf=\"editablePageSize\" class=\"page-size-container\">\n              Visible per page:\n              <select (ngModelChange)=\"updatePageSize($event)\" [(ngModel)]=\"fakePageSizeModel\" [ngModelOptions]=\"{ standalone: true }\">\n                <option [selected]=\"size == pageSize ? true : null\" [value]=\"size\" *ngFor=\"let size of pageSizes\" selected=\"true\">\n                  {{ size }}\n                </option>\n              </select>\n            </div>\n          </div>\n          <datatable-pager\n            (change)=\"activePage = $event?.page\"\n            [count]=\"rowCount\"\n            [hidden]=\"!showPager\"\n            [page]=\"activePage\"\n            [pagerLeftArrowIcon]=\"'datatable-icon-prev'\"\n            [pagerNextIcon]=\"'datatable-icon-right'\"\n            [pagerPreviousIcon]=\"'datatable-icon-left'\"\n            [pagerRightArrowIcon]=\"'datatable-icon-skip'\"\n            [size]=\"pageSize\"\n          ></datatable-pager>\n        </ng-template>\n      </ngx-datatable-footer>\n    </ngx-datatable>\n  </div>\n</div>\n<ng-template #hdrTpl let-column=\"column\" let-sort=\"sortFn\">\n  <span class=\"datatable-header-cell-wrapper\">\n    <span (click)=\"sort()\" class=\"datatable-header-cell-label\">\n      <strong class=\"draggable\">{{ column?.title || column?.name }}</strong>\n    </span>\n  </span>\n  <span class=\"sort-btn\"></span>\n  <span class=\"resize-handle\"></span>\n</ng-template>\n<ng-template #cellTpl let-cellValue=\"value\" let-row=\"row\" ngx-datatable-cell-template>{{ cellValue }}</ng-template>\n<ng-template #defaultButtonRenderTemplate let-button=\"button\">\n  <button (click)=\"buttonClicked(button)\" [class]=\"'btn btn-outline-primary ' + button?.class\" type=\"button\">\n    {{ button?.name || button?.title }}\n  </button>\n</ng-template>\n<ng-template #targetMarkerTemplate let-class=\"class\">\n  <div [ngClass]=\"class\">\n    <div class=\"icon datatable-icon-down\"></div>\n    <div class=\"icon datatable-icon-up\"></div>\n  </div>\n</ng-template>\n",
                styles: [".grid-renderer{margin:5px}.controlBox{display:flex;flex:0 50%;flex-direction:row;flex-flow:row;flex-wrap:wrap;justify-content:space-between;width:100%;margin-bottom:5px}.controlBox .searchBox{display:inline-flex;align-self:flex-end;padding:0 5px}.controlBox .searchBox input{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.controlBox .searchBox input:focus{border-color:#ced4da;outline:0;box-shadow:none}.controlBox .searchBox .input-group-append button{margin-left:3px}.controlBox .searchBox .input-group-append button:first-child{margin-left:-3px;border-color:#ced4da;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.controlBox .buttonsBox{display:inline-flex;align-self:flex-start;padding:0 5px}.controlBox .buttonsBox button{margin-right:5px}.page-size-container{display:inline-block;width:150px}.page-count{position:relative}.vertical-separator-container{position:relative;display:inline-block;width:25px;height:50%}.vertical-separator{position:absolute;top:30%;bottom:25%;width:1px;height:100%;background:#ccc}.button-container{display:inline-block;margin-right:3px}.icon{position:absolute}.datatable-icon-down{top:0}.datatable-icon-up{top:40px}.dragFromLeft .icon{left:-13px}"]
            }),
            __metadata("design:paramtypes", [core.ChangeDetectorRef])
        ], GridRendererComponent);
        return GridRendererComponent;
    }());

    var environment = {
        production: false,
        developmentMode: false,
    };

    var ENVIRONMENT_NAME = '____DataGridData';

    var ngxBbootstrap = [
        ngxBootstrap.TypeaheadModule.forRoot(),
        ngxBootstrap.AccordionModule.forRoot(),
        ngxBootstrap.BsDropdownModule.forRoot(),
        ngxBootstrap.BsDatepickerModule.forRoot(),
        ngxBootstrap.TooltipModule.forRoot(),
        ngxBootstrap.TabsModule.forRoot(),
        ngxPagination.NgxPaginationModule,
        ngxBootstrap.PaginationModule.forRoot(),
    ];
    var DataGridModule = /** @class */ (function () {
        function DataGridModule() {
        }
        DataGridModule_1 = DataGridModule;
        DataGridModule.forRoot = function (_enviroment) {
            return {
                ngModule: DataGridModule_1,
                providers: [{ provide: 'enviroment', useValue: _enviroment || environment[ENVIRONMENT_NAME] }],
            };
        };
        var DataGridModule_1;
        DataGridModule = DataGridModule_1 = __decorate([
            core.NgModule({
                declarations: [GridRendererComponent],
                imports: __spread([common.CommonModule, forms.FormsModule, ngxDatatable.NgxDatatableModule], ngxBbootstrap),
                providers: [NotificationService, ngxToastr.ToastrService],
                exports: [GridRendererComponent],
                schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
            })
        ], DataGridModule);
        return DataGridModule;
    }());

    exports.DataGridModule = DataGridModule;
    exports.GridRendererComponent = GridRendererComponent;
    exports.ɵa = NotificationService;
    exports.ɵb = environment;
    exports.ɵc = ENVIRONMENT_NAME;

    Object.defineProperty(exports, '__esModule', { value: true });

}));
//# sourceMappingURL=dotgov-z_datagrid.umd.js.map
