@preeco-privacy/ngx-modal-dialog
Version:
Dynamic modal dialog for Angular
688 lines (674 loc) • 30 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('@preeco-privacy/ngx-modal-dialog', ['exports', '@angular/core', 'rxjs', '@angular/common'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['preeco-privacy'] = global['preeco-privacy'] || {}, global['preeco-privacy']['ngx-modal-dialog'] = {}), global.ng.core, global.rxjs, global.ng.common));
}(this, (function (exports, core, rxjs, common) { 'use strict';
/**
* Modal dialog component
*/
var ModalDialogComponent = /** @class */ (function () {
/**
* CTOR
* @param _element
* @param componentFactoryResolver
*/
function ModalDialogComponent(_element, componentFactoryResolver) {
this._element = _element;
this.componentFactoryResolver = componentFactoryResolver;
/** Modal dialog style settings */
this.settings = {
overlayClass: 'modal-backdrop fade',
overlayAnimationTriggerClass: 'show',
modalClass: 'modal ngx-modal fade',
modalAnimationTriggerClass: 'show',
modalDialogClass: 'modal-dialog modal-dialog-centered',
contentClass: 'modal-content',
headerClass: 'modal-header',
headerTitleClass: 'modal-title',
closeButtonClass: 'close glyphicon glyphicon-remove',
closeButtonTitle: 'CLOSE',
bodyClass: 'modal-body',
footerClass: 'modal-footer',
alertClass: 'ngx-modal-shake',
alertDuration: 250,
notifyWithAlert: true,
buttonClass: 'btn btn-primary'
};
this.showAlert = false;
this.animateOverlayClass = '';
this.animateModalClass = '';
this.showOverlay = false;
this._inProgress = false;
}
ModalDialogComponent.prototype.onClick = function (event) {
if (event.target !== this.dialogElement.nativeElement) {
return;
}
this.close();
};
/**
* Initialize dialog with reference to instance and options
* @param reference
* @param options
*/
ModalDialogComponent.prototype.dialogInit = function (reference, options) {
var _this = this;
if (options === void 0) { options = {}; }
this.reference = reference;
// inject component
if (options.childComponent) {
var factory = this.componentFactoryResolver.resolveComponentFactory(options.childComponent);
var componentRef = this.dynamicComponentTarget.createComponent(factory);
this._childInstance = componentRef.instance;
this._closeDialog$ = new rxjs.Subject();
this._closeDialog$.subscribe(function () {
_this._finalizeAndDestroy();
});
options.closeDialogSubject = this._closeDialog$;
this._childInstance['dialogInit'](componentRef, options);
document.activeElement != null ?
document.activeElement.blur() :
document.body.blur();
}
// set options
this._setOptions(options);
};
ModalDialogComponent.prototype.ngOnInit = function () {
var _this = this;
// a trick to defer css animations
setTimeout(function () {
_this.animateOverlayClass = _this.settings.overlayAnimationTriggerClass;
_this.animateModalClass = _this.settings.modalAnimationTriggerClass;
}, 0);
};
/**
* Cleanup on destroy
*/
ModalDialogComponent.prototype.ngOnDestroy = function () {
// run animations
this.animateOverlayClass = '';
this.animateModalClass = '';
// cleanup listeners
if (this._alertTimeout) {
clearTimeout(this._alertTimeout);
this._alertTimeout = null;
}
if (this._closeDialog$) {
this._closeDialog$.unsubscribe();
}
};
/**
* Run action defined on action button
* @param action
*/
ModalDialogComponent.prototype.doAction = function (action) {
// disable multi clicks
if (this._inProgress) {
return;
}
this._inProgress = true;
this._closeIfSuccessful(action);
};
/**
* Method to run on close
* if action buttons are defined, it will not close
*/
ModalDialogComponent.prototype.close = function () {
if (this._inProgress) {
return;
}
if (this.actionButtons && this.actionButtons.length) {
return;
}
this._inProgress = true;
if (this.onClose) {
this._closeIfSuccessful(this.onClose);
return;
}
this._finalizeAndDestroy();
};
/**
* Pass options from dialog setup to component
* @param {IModalDialogOptions} options?
*/
ModalDialogComponent.prototype._setOptions = function (options) {
if (options.onClose && options.actionButtons && options.actionButtons.length) {
throw new Error("OnClose callback and ActionButtons are not allowed to be defined on the same dialog.");
}
// set references
this.title = (options && options.title) || '';
this.onClose = (options && options.onClose) || null;
this.actionButtons = (this._childInstance && this._childInstance['actionButtons']) ||
(options && options.actionButtons) || null;
if (options && options.settings) {
Object.assign(this.settings, options.settings);
}
};
/**
* Close if successful
* @param callback
*/
ModalDialogComponent.prototype._closeIfSuccessful = function (callback) {
var _this = this;
if (!callback) {
return this._finalizeAndDestroy();
}
var response = callback();
if (typeof response === 'boolean') {
if (response) {
return this._finalizeAndDestroy();
}
return this._triggerAlert();
}
if (this.isPromise(response)) {
response = rxjs.from(response);
}
if (this.isObservable(response)) {
response.subscribe(function () {
_this._finalizeAndDestroy();
}, function () {
_this._triggerAlert();
});
}
else {
this._inProgress = false;
}
};
ModalDialogComponent.prototype._finalizeAndDestroy = function () {
this._inProgress = false;
this.reference.destroy();
};
ModalDialogComponent.prototype._triggerAlert = function () {
var _this = this;
if (this.settings.notifyWithAlert) {
this.showAlert = true;
this._alertTimeout = window.setTimeout(function () {
_this.showAlert = false;
_this._inProgress = false;
clearTimeout(_this._alertTimeout);
_this._alertTimeout = null;
}, this.settings.alertDuration);
}
};
ModalDialogComponent.prototype.isPromise = function (value) {
return value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
};
ModalDialogComponent.prototype.isObservable = function (value) {
return value && typeof value.subscribe === 'function';
};
return ModalDialogComponent;
}());
ModalDialogComponent.decorators = [
{ type: core.Component, args: [{
selector: 'modal-dialog',
template: "\n <div *ngIf=\"settings.overlayClass && showOverlay\" [ngClass]=\"[settings.overlayClass, animateOverlayClass]\"></div> \n <div [ngClass]=\"[settings.modalClass, animateModalClass]\" #dialog>\n <div [ngClass]=\"settings.modalDialogClass\">\n <div [ngClass]=\"[ showAlert ? settings.alertClass : '', settings.contentClass]\">\n <div [ngClass]=\"settings.headerClass\">\n <h4 [ngClass]=\"settings.headerTitleClass\">{{title}}</h4>\n <button (click)=\"close()\" *ngIf=\"!actionButtons || !actionButtons.length\" type=\"button\"\n [title]=\"settings.closeButtonTitle\"\n [ngClass]=\"settings.closeButtonClass\">\n </button>\n </div>\n <div [ngClass]=\"settings.bodyClass\">\n <i #modalDialogBody></i>\n </div>\n <div [ngClass]=\"settings.footerClass\" *ngIf=\"actionButtons && actionButtons.length\">\n <button *ngFor=\"let button of actionButtons\" (click)=\"doAction(button.onAction)\"\n [ngClass]=\"button.buttonClass || settings.buttonClass\">{{button.text}}\n </button>\n </div>\n </div>\n </div>\n </div>\n ",
styles: ["\n @-moz-keyframes shake {\n from, to { transform: translate3d(0, 0, 0); }\n 10%, 30%, 50%, 70%, 90% { transform: translate3d(-2rem, 0, 0); }\n 20%, 40%, 60%, 80% { transform: translate3d(2rem, 0, 0); }\n }\n @-webkit-keyframes shake {\n from, to { transform: translate3d(0, 0, 0); }\n 10%, 30%, 50%, 70%, 90% { transform: translate3d(-2rem, 0, 0); }\n 20%, 40%, 60%, 80% { transform: translate3d(2rem, 0, 0); }\n }\n @keyframes shake {\n from, to { transform: translate3d(0, 0, 0); }\n 10%, 30%, 50%, 70%, 90% { transform: translate3d(-2rem, 0, 0); }\n 20%, 40%, 60%, 80% { transform: translate3d(2rem, 0, 0); }\n }\n\n .ngx-modal {\n display: flex;\n }\n .ngx-modal-shake {\n backface-visibility: hidden;\n -webkit-animation-duration: 0.5s;\n -moz-animation-duration: 0.5s;\n animation-duration: 0.5s;\n -webkit-animation-fill-mode: both;\n -moz-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-iteration-count: infinite;\n -moz-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: shake;\n -moz-animation-name: shake;\n animation-name: shake;\n }\n "]
},] }
];
ModalDialogComponent.ctorParameters = function () { return [
{ type: core.ElementRef },
{ type: core.ComponentFactoryResolver }
]; };
ModalDialogComponent.propDecorators = {
dynamicComponentTarget: [{ type: core.ViewChild, args: ['modalDialogBody', { read: core.ViewContainerRef, static: true },] }],
dialogElement: [{ type: core.ViewChild, args: ['dialog',] }],
onClick: [{ type: core.HostListener, args: ['click', ['$event'],] }]
};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* 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 (Object.prototype.hasOwnProperty.call(b, 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) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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) : adopt(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 };
}
}
var __createBinding = Object.create ? (function (o, m, k, k2) {
if (k2 === undefined)
k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
}) : (function (o, m, k, k2) {
if (k2 === undefined)
k2 = k;
o[k2] = m[k];
});
function __exportStar(m, o) {
for (var p in m)
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
__createBinding(o, m, p);
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m)
return m.call(o);
if (o && typeof o.length === "number")
return {
next: function () {
if (o && i >= o.length)
o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
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;
}
;
var __setModuleDefault = Object.create ? (function (o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function (o, v) {
o["default"] = v;
};
function __importStar(mod) {
if (mod && mod.__esModule)
return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
__createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
var ModalDialogInstanceService = /** @class */ (function () {
function ModalDialogInstanceService() {
/**
* Used to make sure there is exactly one instance of Modal Dialog
*/
this.componentRefs = [];
}
/**
* Closes existing modal dialog
*/
ModalDialogInstanceService.prototype.closeAnyExistingModalDialog = function () {
while (this.componentRefs.length) {
this.componentRefs[this.componentRefs.length - 1].destroy();
}
};
/**
* Save component ref for future comparison
* @param componentRef
*/
ModalDialogInstanceService.prototype.saveExistingModalDialog = function (componentRef) {
var _this = this;
// remove overlay from top element
this.setOverlayForTopDialog(false);
// add new component
this.componentRefs = __spread(this.componentRefs, [componentRef]);
componentRef.instance.showOverlay = true;
componentRef.onDestroy(function () {
_this.componentRefs.pop();
_this.setOverlayForTopDialog(true);
});
};
ModalDialogInstanceService.prototype.setOverlayForTopDialog = function (value) {
if (this.componentRefs.length) {
this.componentRefs[this.componentRefs.length - 1].instance.showOverlay = value;
}
};
return ModalDialogInstanceService;
}());
ModalDialogInstanceService.decorators = [
{ type: core.Injectable }
];
var ModalDialogService = /** @class */ (function () {
/**
* CTOR
* @param componentFactoryResolver
* @param modalDialogInstanceService
*/
function ModalDialogService(componentFactoryResolver, modalDialogInstanceService) {
this.componentFactoryResolver = componentFactoryResolver;
this.modalDialogInstanceService = modalDialogInstanceService;
}
/**
* Open dialog in given target element with given options
* @param {ViewContainerRef} target
* @param {IModalDialogOptions} options?
*/
ModalDialogService.prototype.openDialog = function (target, options) {
if (options === void 0) { options = {}; }
if (!options.placeOnTop) {
this.modalDialogInstanceService.closeAnyExistingModalDialog();
}
var factory = this.componentFactoryResolver.resolveComponentFactory(ModalDialogComponent);
var componentRef = target.createComponent(factory);
componentRef.instance.dialogInit(componentRef, options);
this.modalDialogInstanceService.saveExistingModalDialog(componentRef);
};
return ModalDialogService;
}());
ModalDialogService.decorators = [
{ type: core.Injectable }
];
ModalDialogService.ctorParameters = function () { return [
{ type: core.ComponentFactoryResolver, decorators: [{ type: core.Inject, args: [core.ComponentFactoryResolver,] }] },
{ type: ModalDialogInstanceService, decorators: [{ type: core.Inject, args: [ModalDialogInstanceService,] }] }
]; };
var SimpleModalComponent = /** @class */ (function () {
function SimpleModalComponent() {
}
/**
* Initialize dialog with simple HTML content
* @param {ComponentRef<IModalDialog>} reference
* @param {Partial<IModalDialogOptions>} options
*/
SimpleModalComponent.prototype.dialogInit = function (reference, options) {
if (!options.data) {
throw new Error("Data information for simple modal dialog is missing");
}
this.text = options.data.text;
};
return SimpleModalComponent;
}());
SimpleModalComponent.decorators = [
{ type: core.Component, args: [{
selector: 'simple-modal-dialog',
template: "",
host: {
'[innerHTML]': 'text'
},
styles: [':host { display: block; }']
},] }
];
// components and directives
/**
* Guard to make sure we have single initialization of forRoot
* @type {InjectionToken<ModalDialogModule>}
*/
var MODAL_DIALOG_FORROOT_GUARD = new core.InjectionToken('MODAL_DIALOG_FORROOT_GUARD');
var ModalDialogModule = /** @class */ (function () {
function ModalDialogModule() {
}
ModalDialogModule.forRoot = function () {
return {
ngModule: ModalDialogModule,
providers: [
{
provide: MODAL_DIALOG_FORROOT_GUARD,
useFactory: provideForRootGuard,
deps: [ModalDialogModule, new core.Optional(), new core.SkipSelf()]
},
ModalDialogInstanceService
]
};
};
return ModalDialogModule;
}());
ModalDialogModule.decorators = [
{ type: core.NgModule, args: [{
imports: [common.CommonModule],
declarations: [ModalDialogComponent, SimpleModalComponent],
entryComponents: [ModalDialogComponent, SimpleModalComponent],
exports: [ModalDialogComponent, SimpleModalComponent],
providers: [ModalDialogService, ModalDialogInstanceService]
},] }
];
/**
* @param dialogModule
* @returns {string}
*/
function provideForRootGuard(dialogModule) {
if (dialogModule) {
throw new Error("ModalDialogModule.forRoot() called twice.");
}
return 'guarded';
}
/*
* Public API Surface of ngx-modal-dialog
*/
/**
* Generated bundle index. Do not edit.
*/
exports.MODAL_DIALOG_FORROOT_GUARD = MODAL_DIALOG_FORROOT_GUARD;
exports.ModalDialogComponent = ModalDialogComponent;
exports.ModalDialogInstanceService = ModalDialogInstanceService;
exports.ModalDialogModule = ModalDialogModule;
exports.ModalDialogService = ModalDialogService;
exports.SimpleModalComponent = SimpleModalComponent;
exports.provideForRootGuard = provideForRootGuard;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=preeco-privacy-ngx-modal-dialog.umd.js.map