You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/ng-packs/dist/theme-shared/bundles/abp-ng.theme.shared.umd.js

2300 lines
95 KiB

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@angular/core'), require('primeng/components/common/messageservice'), require('primeng/toast'), require('rxjs'), require('rxjs/operators'), require('@angular/router'), require('@ngxs/store'), require('@angular/forms'), require('@ngx-validate/core'), require('snq'), require('@angular/common/http'), require('@ngxs/router-plugin'), require('@angular/animations')) :
typeof define === 'function' && define.amd ? define('@abp/ng.theme.shared', ['exports', '@abp/ng.core', '@angular/core', 'primeng/components/common/messageservice', 'primeng/toast', 'rxjs', 'rxjs/operators', '@angular/router', '@ngxs/store', '@angular/forms', '@ngx-validate/core', 'snq', '@angular/common/http', '@ngxs/router-plugin', '@angular/animations'], factory) :
(global = global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.theme = global.abp.ng.theme || {}, global.abp.ng.theme.shared = {}), global.ng_core, global.ng.core, global.messageservice, global.toast, global.rxjs, global.rxjs.operators, global.ng.router, global.store, global.ng.forms, global.core$1, global.snq, global.ng.common.http, global.routerPlugin, global.ng.animations));
}(this, function (exports, ng_core, core, messageservice, toast, rxjs, operators, router, store, forms, core$1, snq, http, routerPlugin, animations) { 'use strict';
snq = snq && snq.hasOwnProperty('default') ? snq['default'] : snq;
/*! *****************************************************************************
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 };
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var BreadcrumbComponent = /** @class */ (function () {
function BreadcrumbComponent(router, store) {
this.router = router;
this.store = store;
this.segments = [];
this.show = !!this.store.selectSnapshot((/**
* @param {?} state
* @return {?}
*/
function (state) { return state.LeptonLayoutState; }));
}
/**
* @return {?}
*/
BreadcrumbComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
/** @type {?} */
var splittedUrl = this.router.url.split('/').filter((/**
* @param {?} chunk
* @return {?}
*/
function (chunk) { return chunk; }));
/** @type {?} */
var currentUrl = this.store.selectSnapshot(ng_core.ConfigState.getRoute(splittedUrl[0]));
this.segments.push(currentUrl.name);
if (splittedUrl.length > 1) {
var _a = __read(splittedUrl), arr = _a.slice(1);
/** @type {?} */
var childRoute = currentUrl;
var _loop_1 = function (i) {
/** @type {?} */
var element = arr[i];
childRoute = childRoute.children.find((/**
* @param {?} child
* @return {?}
*/
function (child) { return child.path === element; }));
this_1.segments.push(childRoute.name);
};
var this_1 = this;
for (var i = 0; i < arr.length; i++) {
_loop_1(i);
}
}
};
BreadcrumbComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-breadcrumb',
template: "\n <ol *ngIf=\"show\" class=\"breadcrumb\">\n <li class=\"breadcrumb-item\">\n <a routerLink=\"/\"><i class=\"fa fa-home\"></i> </a>\n </li>\n <li\n *ngFor=\"let segment of segments; let last = last\"\n class=\"breadcrumb-item\"\n [class.active]=\"last\"\n aria-current=\"page\"\n >\n {{ segment | abpLocalization }}\n </li>\n </ol>\n "
}] }
];
/** @nocollapse */
BreadcrumbComponent.ctorParameters = function () { return [
{ type: router.Router },
{ type: store.Store }
]; };
return BreadcrumbComponent;
}());
if (false) {
/** @type {?} */
BreadcrumbComponent.prototype.show;
/** @type {?} */
BreadcrumbComponent.prototype.segments;
/**
* @type {?}
* @private
*/
BreadcrumbComponent.prototype.router;
/**
* @type {?}
* @private
*/
BreadcrumbComponent.prototype.store;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ButtonComponent = /** @class */ (function () {
function ButtonComponent() {
this.buttonClass = 'btn btn-primary';
this.type = 'button';
this.loading = false;
this.disabled = false;
}
Object.defineProperty(ButtonComponent.prototype, "icon", {
get: /**
* @return {?}
*/
function () {
return "" + (this.loading ? 'fa fa-pulse fa-spinner' : this.iconClass || 'd-none');
},
enumerable: true,
configurable: true
});
ButtonComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-button',
template: "\n <button [attr.type]=\"type\" [ngClass]=\"buttonClass\" [disabled]=\"loading || disabled\">\n <i [ngClass]=\"icon\" class=\"mr-1\"></i><ng-content></ng-content>\n </button>\n "
}] }
];
ButtonComponent.propDecorators = {
buttonClass: [{ type: core.Input }],
type: [{ type: core.Input }],
iconClass: [{ type: core.Input }],
loading: [{ type: core.Input }],
disabled: [{ type: core.Input }]
};
return ButtonComponent;
}());
if (false) {
/** @type {?} */
ButtonComponent.prototype.buttonClass;
/** @type {?} */
ButtonComponent.prototype.type;
/** @type {?} */
ButtonComponent.prototype.iconClass;
/** @type {?} */
ButtonComponent.prototype.loading;
/** @type {?} */
ButtonComponent.prototype.disabled;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @template T
*/
var /**
* @template T
*/
AbstractToaster = /** @class */ (function () {
function AbstractToaster(messageService) {
this.messageService = messageService;
this.key = 'abpToast';
this.sticky = false;
}
/**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
AbstractToaster.prototype.info = /**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
function (message, title, options) {
return this.show(message, title, 'info', options);
};
/**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
AbstractToaster.prototype.success = /**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
function (message, title, options) {
return this.show(message, title, 'success', options);
};
/**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
AbstractToaster.prototype.warn = /**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
function (message, title, options) {
return this.show(message, title, 'warn', options);
};
/**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
AbstractToaster.prototype.error = /**
* @param {?} message
* @param {?} title
* @param {?=} options
* @return {?}
*/
function (message, title, options) {
return this.show(message, title, 'error', options);
};
/**
* @protected
* @param {?} message
* @param {?} title
* @param {?} severity
* @param {?=} options
* @return {?}
*/
AbstractToaster.prototype.show = /**
* @protected
* @param {?} message
* @param {?} title
* @param {?} severity
* @param {?=} options
* @return {?}
*/
function (message, title, severity, options) {
this.messageService.clear(this.key);
this.messageService.add(__assign({ severity: severity, detail: message || '', summary: title || '' }, options, { key: this.key }, (typeof (options || ((/** @type {?} */ ({})))).sticky === 'undefined' && { sticky: this.sticky })));
this.status$ = new rxjs.Subject();
return this.status$;
};
/**
* @param {?=} status
* @return {?}
*/
AbstractToaster.prototype.clear = /**
* @param {?=} status
* @return {?}
*/
function (status) {
this.messageService.clear(this.key);
this.status$.next(status || "dismiss" /* dismiss */);
this.status$.complete();
};
return AbstractToaster;
}());
if (false) {
/** @type {?} */
AbstractToaster.prototype.status$;
/** @type {?} */
AbstractToaster.prototype.key;
/** @type {?} */
AbstractToaster.prototype.sticky;
/**
* @type {?}
* @protected
*/
AbstractToaster.prototype.messageService;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ToasterService = /** @class */ (function (_super) {
__extends(ToasterService, _super);
function ToasterService() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* @param {?} messages
* @return {?}
*/
ToasterService.prototype.addAll = /**
* @param {?} messages
* @return {?}
*/
function (messages) {
var _this = this;
this.messageService.addAll(messages.map((/**
* @param {?} message
* @return {?}
*/
function (message) { return (__assign({ key: _this.key }, message)); })));
};
ToasterService.decorators = [
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
];
/** @nocollapse */ ToasterService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ToasterService_Factory() { return new ToasterService(core.ɵɵinject(messageservice.MessageService)); }, token: ToasterService, providedIn: "root" });
return ToasterService;
}(AbstractToaster));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var minLength = forms.Validators.minLength, required = forms.Validators.required;
var ChangePasswordComponent = /** @class */ (function () {
function ChangePasswordComponent(fb, store, toasterService) {
this.fb = fb;
this.store = store;
this.toasterService = toasterService;
this.visibleChange = new core.EventEmitter();
this.modalBusy = false;
}
Object.defineProperty(ChangePasswordComponent.prototype, "visible", {
get: /**
* @return {?}
*/
function () {
return this._visible;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
this._visible = value;
this.visibleChange.emit(value);
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
ChangePasswordComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.form = this.fb.group({
password: ['', required],
newPassword: ['', required],
repeatNewPassword: ['', required],
}, {
validators: [core$1.comparePasswords(['newPassword', 'repeatNewPassword'])],
});
};
/**
* @return {?}
*/
ChangePasswordComponent.prototype.onSubmit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
this.modalBusy = true;
this.store
.dispatch(new ng_core.ChangePassword({
currentPassword: this.form.get('password').value,
newPassword: this.form.get('newPassword').value,
}))
.pipe(operators.finalize((/**
* @return {?}
*/
function () {
_this.modalBusy = false;
})))
.subscribe({
next: (/**
* @return {?}
*/
function () {
_this.visible = false;
_this.form.reset();
}),
error: (/**
* @param {?} err
* @return {?}
*/
function (err) {
_this.toasterService.error(snq((/**
* @return {?}
*/
function () { return err.error.error.message; }), 'AbpAccount::DefaultErrorMessage'), 'Error', {
life: 7000,
});
}),
});
};
/**
* @return {?}
*/
ChangePasswordComponent.prototype.openModal = /**
* @return {?}
*/
function () {
this.visible = true;
};
/**
* @param {?} __0
* @return {?}
*/
ChangePasswordComponent.prototype.ngOnChanges = /**
* @param {?} __0
* @return {?}
*/
function (_a) {
var visible = _a.visible;
if (!visible)
return;
if (visible.currentValue) {
this.openModal();
}
else if (visible.currentValue === false && this.visible) {
this.visible = false;
}
};
ChangePasswordComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-change-password',
template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h4>{{ 'AbpIdentity::ChangePassword' | abpLocalization }}</h4>\n </ng-template>\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group\">\n <label for=\"current-password\">{{ 'AbpIdentity::DisplayName:CurrentPassword' | abpLocalization }}</label\n ><span> * </span\n ><input type=\"password\" id=\"current-password\" class=\"form-control\" formControlName=\"password\" autofocus />\n </div>\n <div class=\"form-group\">\n <label for=\"new-password\">{{ 'AbpIdentity::DisplayName:NewPassword' | abpLocalization }}</label\n ><span> * </span><input type=\"password\" id=\"new-password\" class=\"form-control\" formControlName=\"newPassword\" />\n </div>\n <div class=\"form-group\" [class.is-invalid]=\"form.errors?.passwordMismatch\">\n <label for=\"confirm-new-password\">{{ 'AbpIdentity::DisplayName:NewPasswordConfirm' | abpLocalization }}</label\n ><span> * </span\n ><input type=\"password\" id=\"confirm-new-password\" class=\"form-control\" formControlName=\"repeatNewPassword\" />\n <div *ngIf=\"form.errors?.passwordMismatch\" class=\"invalid-feedback\">\n {{ 'AbpIdentity::Identity.PasswordConfirmationFailed' | abpLocalization }}\n </div>\n </div>\n </form>\n </ng-template>\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary color-white\" #abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" buttonClass=\"btn btn-primary color-white\" (click)=\"onSubmit()\">{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button>\n </ng-template>\n</abp-modal>\n"
}] }
];
/** @nocollapse */
ChangePasswordComponent.ctorParameters = function () { return [
{ type: forms.FormBuilder },
{ type: store.Store },
{ type: ToasterService }
]; };
ChangePasswordComponent.propDecorators = {
visible: [{ type: core.Input }],
visibleChange: [{ type: core.Output }],
modalContent: [{ type: core.ViewChild, args: ['modalContent', { static: false },] }]
};
return ChangePasswordComponent;
}());
if (false) {
/**
* @type {?}
* @protected
*/
ChangePasswordComponent.prototype._visible;
/** @type {?} */
ChangePasswordComponent.prototype.visibleChange;
/** @type {?} */
ChangePasswordComponent.prototype.modalContent;
/** @type {?} */
ChangePasswordComponent.prototype.form;
/** @type {?} */
ChangePasswordComponent.prototype.modalBusy;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.fb;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.store;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.toasterService;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} count
* @return {?}
*/
function getRandomBackgroundColor(count) {
/** @type {?} */
var colors = [];
for (var i = 0; i < count; i++) {
/** @type {?} */
var r = ((i + 5) * (i + 5) * 474) % 255;
/** @type {?} */
var g = ((i + 5) * (i + 5) * 1600) % 255;
/** @type {?} */
var b = ((i + 5) * (i + 5) * 84065) % 255;
colors.push('rgba(' + r + ', ' + g + ', ' + b + ', 0.7)');
}
return colors;
}
/** @type {?} */
var chartJsLoaded$ = new rxjs.ReplaySubject(1);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ChartComponent = /** @class */ (function () {
function ChartComponent(el, cdRef) {
var _this = this;
this.el = el;
this.cdRef = cdRef;
this.options = {};
this.plugins = [];
this.responsive = true;
this.onDataSelect = new core.EventEmitter();
this.initialized = new rxjs.BehaviorSubject(this);
this.onCanvasClick = (/**
* @param {?} event
* @return {?}
*/
function (event) {
if (_this.chart) {
/** @type {?} */
var element = _this.chart.getElementAtEvent(event);
/** @type {?} */
var dataset = _this.chart.getDatasetAtEvent(event);
if (element && element[0] && dataset) {
_this.onDataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });
}
}
});
this.initChart = (/**
* @return {?}
*/
function () {
/** @type {?} */
var opts = _this.options || {};
opts.responsive = _this.responsive;
// allows chart to resize in responsive mode
if (opts.responsive && (_this.height || _this.width)) {
opts.maintainAspectRatio = false;
}
_this.chart = new Chart(_this.el.nativeElement.children[0].children[0], {
type: _this.type,
data: _this.data,
options: _this.options,
plugins: _this.plugins,
});
_this.cdRef.detectChanges();
});
this.generateLegend = (/**
* @return {?}
*/
function () {
if (_this.chart) {
return _this.chart.generateLegend();
}
});
this.refresh = (/**
* @return {?}
*/
function () {
if (_this.chart) {
_this.chart.update();
_this.cdRef.detectChanges();
}
});
this.reinit = (/**
* @return {?}
*/
function () {
if (_this.chart) {
_this.chart.destroy();
_this.initChart();
}
});
}
Object.defineProperty(ChartComponent.prototype, "data", {
get: /**
* @return {?}
*/
function () {
return this._data;
},
set: /**
* @param {?} val
* @return {?}
*/
function (val) {
this._data = val;
this.reinit();
},
enumerable: true,
configurable: true
});
Object.defineProperty(ChartComponent.prototype, "canvas", {
get: /**
* @return {?}
*/
function () {
return this.el.nativeElement.children[0].children[0];
},
enumerable: true,
configurable: true
});
Object.defineProperty(ChartComponent.prototype, "base64Image", {
get: /**
* @return {?}
*/
function () {
return this.chart.toBase64Image();
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
ChartComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
var _this = this;
chartJsLoaded$.subscribe((/**
* @return {?}
*/
function () {
try {
Chart;
}
catch (error) {
console.error("Chart is not found. Import the Chart from app.module like shown below:\n import('chart.js');\n ");
return;
}
_this.initChart();
_this._initialized = true;
}));
};
/**
* @return {?}
*/
ChartComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
if (this.chart) {
this.chart.destroy();
this._initialized = false;
this.chart = null;
}
};
ChartComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-chart',
template: "<div\n style=\"position:relative\"\n [style.width]=\"responsive && !width ? null : width\"\n [style.height]=\"responsive && !height ? null : height\"\n>\n <canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n ></canvas>\n</div>\n"
}] }
];
/** @nocollapse */
ChartComponent.ctorParameters = function () { return [
{ type: core.ElementRef },
{ type: core.ChangeDetectorRef }
]; };
ChartComponent.propDecorators = {
type: [{ type: core.Input }],
options: [{ type: core.Input }],
plugins: [{ type: core.Input }],
width: [{ type: core.Input }],
height: [{ type: core.Input }],
responsive: [{ type: core.Input }],
onDataSelect: [{ type: core.Output }],
initialized: [{ type: core.Output }],
data: [{ type: core.Input }]
};
return ChartComponent;
}());
if (false) {
/** @type {?} */
ChartComponent.prototype.type;
/** @type {?} */
ChartComponent.prototype.options;
/** @type {?} */
ChartComponent.prototype.plugins;
/** @type {?} */
ChartComponent.prototype.width;
/** @type {?} */
ChartComponent.prototype.height;
/** @type {?} */
ChartComponent.prototype.responsive;
/** @type {?} */
ChartComponent.prototype.onDataSelect;
/** @type {?} */
ChartComponent.prototype.initialized;
/**
* @type {?}
* @private
*/
ChartComponent.prototype._initialized;
/** @type {?} */
ChartComponent.prototype._data;
/** @type {?} */
ChartComponent.prototype.chart;
/** @type {?} */
ChartComponent.prototype.onCanvasClick;
/** @type {?} */
ChartComponent.prototype.initChart;
/** @type {?} */
ChartComponent.prototype.generateLegend;
/** @type {?} */
ChartComponent.prototype.refresh;
/** @type {?} */
ChartComponent.prototype.reinit;
/** @type {?} */
ChartComponent.prototype.el;
/**
* @type {?}
* @private
*/
ChartComponent.prototype.cdRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ConfirmationService = /** @class */ (function (_super) {
__extends(ConfirmationService, _super);
function ConfirmationService(messageService) {
var _this = _super.call(this, messageService) || this;
_this.messageService = messageService;
_this.key = 'abpConfirmation';
_this.sticky = true;
_this.destroy$ = new rxjs.Subject();
return _this;
}
/**
* @param {?} message
* @param {?} title
* @param {?} severity
* @param {?=} options
* @return {?}
*/
ConfirmationService.prototype.show = /**
* @param {?} message
* @param {?} title
* @param {?} severity
* @param {?=} options
* @return {?}
*/
function (message, title, severity, options) {
this.listenToEscape();
return _super.prototype.show.call(this, message, title, severity, options);
};
/**
* @param {?=} status
* @return {?}
*/
ConfirmationService.prototype.clear = /**
* @param {?=} status
* @return {?}
*/
function (status) {
_super.prototype.clear.call(this, status);
this.destroy$.next();
};
/**
* @return {?}
*/
ConfirmationService.prototype.listenToEscape = /**
* @return {?}
*/
function () {
var _this = this;
rxjs.fromEvent(document, 'keyup')
.pipe(operators.takeUntil(this.destroy$), operators.debounceTime(150), operators.filter((/**
* @param {?} key
* @return {?}
*/
function (key) { return key && key.code === 'Escape'; })))
.subscribe((/**
* @param {?} _
* @return {?}
*/
function (_) {
_this.clear();
}));
};
ConfirmationService.decorators = [
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
];
/** @nocollapse */
ConfirmationService.ctorParameters = function () { return [
{ type: messageservice.MessageService }
]; };
/** @nocollapse */ ConfirmationService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ConfirmationService_Factory() { return new ConfirmationService(core.ɵɵinject(messageservice.MessageService)); }, token: ConfirmationService, providedIn: "root" });
return ConfirmationService;
}(AbstractToaster));
if (false) {
/** @type {?} */
ConfirmationService.prototype.key;
/** @type {?} */
ConfirmationService.prototype.sticky;
/** @type {?} */
ConfirmationService.prototype.destroy$;
/**
* @type {?}
* @protected
*/
ConfirmationService.prototype.messageService;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ConfirmationComponent = /** @class */ (function () {
function ConfirmationComponent(confirmationService) {
this.confirmationService = confirmationService;
this.confirm = "confirm" /* confirm */;
this.reject = "reject" /* reject */;
this.dismiss = "dismiss" /* dismiss */;
}
/**
* @param {?} status
* @return {?}
*/
ConfirmationComponent.prototype.close = /**
* @param {?} status
* @return {?}
*/
function (status) {
this.confirmationService.clear(status);
};
ConfirmationComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-confirmation',
template: "\n <p-toast\n position=\"center\"\n key=\"abpConfirmation\"\n (onClose)=\"close(dismiss)\"\n [modal]=\"true\"\n [baseZIndex]=\"1000\"\n styleClass=\"abp-confirm\"\n >\n <ng-template let-message pTemplate=\"message\">\n <i class=\"fa fa-exclamation-circle abp-confirm-icon\"></i>\n <div *ngIf=\"message.summary\" class=\"abp-confirm-summary\">\n {{ message.summary | abpLocalization: message.titleLocalizationParams }}\n </div>\n <div class=\"abp-confirm-body\">\n {{ message.detail | abpLocalization: message.messageLocalizationParams }}\n </div>\n\n <div class=\"abp-confirm-footer justify-content-center\">\n <button *ngIf=\"!message.hideCancelBtn\" type=\"button\" class=\"btn btn-sm btn-primary\" (click)=\"close(reject)\">\n {{ message.cancelCopy || 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <button\n *ngIf=\"!message.hideYesBtn\"\n type=\"button\"\n class=\"btn btn-sm btn-primary\"\n (click)=\"close(confirm)\"\n autofocus\n >\n <span>{{ message.yesCopy || 'AbpIdentity::Yes' | abpLocalization }}</span>\n </button>\n </div>\n </ng-template>\n </p-toast>\n "
}] }
];
/** @nocollapse */
ConfirmationComponent.ctorParameters = function () { return [
{ type: ConfirmationService }
]; };
return ConfirmationComponent;
}());
if (false) {
/** @type {?} */
ConfirmationComponent.prototype.confirm;
/** @type {?} */
ConfirmationComponent.prototype.reject;
/** @type {?} */
ConfirmationComponent.prototype.dismiss;
/**
* @type {?}
* @private
*/
ConfirmationComponent.prototype.confirmationService;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ErrorComponent = /** @class */ (function () {
function ErrorComponent() {
this.title = 'Oops!';
this.details = 'Sorry, an error has occured.';
}
/**
* @return {?}
*/
ErrorComponent.prototype.destroy = /**
* @return {?}
*/
function () {
this.renderer.removeChild(this.host, this.elementRef.nativeElement);
};
ErrorComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-error',
template: "\n <div class=\"error\">\n <button id=\"abp-close-button mr-2\" type=\"button\" class=\"close\" (click)=\"destroy()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <div class=\"row centered\">\n <div class=\"col-md-12\">\n <div class=\"error-template\">\n <h1>\n {{ title | abpLocalization }}\n </h1>\n <div class=\"error-details\">\n {{ details | abpLocalization }}\n </div>\n <div class=\"error-actions\">\n <a (click)=\"destroy()\" routerLink=\"/\" class=\"btn btn-primary btn-md mt-2\"\n ><span class=\"glyphicon glyphicon-home\"></span> {{ '::Menu:Home' | abpLocalization }}\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n ",
styles: [".error{position:fixed;top:0;background-color:#fff;width:100vw;height:100vh;z-index:999999}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}"]
}] }
];
return ErrorComponent;
}());
if (false) {
/** @type {?} */
ErrorComponent.prototype.title;
/** @type {?} */
ErrorComponent.prototype.details;
/** @type {?} */
ErrorComponent.prototype.renderer;
/** @type {?} */
ErrorComponent.prototype.elementRef;
/** @type {?} */
ErrorComponent.prototype.host;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LoaderBarComponent = /** @class */ (function () {
function LoaderBarComponent(actions, router$1, cdRef) {
var _this = this;
this.actions = actions;
this.router = router$1;
this.cdRef = cdRef;
this.containerClass = 'abp-loader-bar';
this.color = '#77b6ff';
this.isLoading = false;
this.filter = (/**
* @param {?} action
* @return {?}
*/
function (action) { return action.payload.url.indexOf('openid-configuration') < 0; });
this.progressLevel = 0;
actions
.pipe(store.ofActionSuccessful(ng_core.StartLoader, ng_core.StopLoader), operators.filter(this.filter), core$1.takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
function (action) {
if (action instanceof ng_core.StartLoader)
_this.startLoading();
else
_this.stopLoading();
}));
router$1.events
.pipe(operators.filter((/**
* @param {?} event
* @return {?}
*/
function (event) {
return event instanceof router.NavigationStart || event instanceof router.NavigationEnd || event instanceof router.NavigationError;
})), core$1.takeUntilDestroy(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
if (event instanceof router.NavigationStart)
_this.startLoading();
else
_this.stopLoading();
}));
}
Object.defineProperty(LoaderBarComponent.prototype, "boxShadow", {
get: /**
* @return {?}
*/
function () {
return "0 0 10px rgba(" + this.color + ", 0.5)";
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
LoaderBarComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.interval.unsubscribe();
};
/**
* @return {?}
*/
LoaderBarComponent.prototype.startLoading = /**
* @return {?}
*/
function () {
var _this = this;
if (this.isLoading || this.progressLevel !== 0)
return;
this.isLoading = true;
this.interval = rxjs.interval(350).subscribe((/**
* @return {?}
*/
function () {
if (_this.progressLevel < 75) {
_this.progressLevel += Math.random() * 10;
}
else if (_this.progressLevel < 90) {
_this.progressLevel += 0.4;
}
else if (_this.progressLevel < 100) {
_this.progressLevel += 0.1;
}
else {
_this.interval.unsubscribe();
}
_this.cdRef.detectChanges();
}));
};
/**
* @return {?}
*/
LoaderBarComponent.prototype.stopLoading = /**
* @return {?}
*/
function () {
var _this = this;
this.interval.unsubscribe();
this.progressLevel = 100;
this.isLoading = false;
if (this.timer && !this.timer.closed)
return;
this.timer = rxjs.timer(820).subscribe((/**
* @return {?}
*/
function () {
_this.progressLevel = 0;
_this.cdRef.detectChanges();
}));
};
LoaderBarComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-loader-bar',
template: "\n <div id=\"abp-loader-bar\" [ngClass]=\"containerClass\" [class.is-loading]=\"isLoading\">\n <div\n class=\"abp-progress\"\n [style.width.vw]=\"progressLevel\"\n [ngStyle]=\"{\n 'background-color': color,\n 'box-shadow': boxShadow\n }\"\n ></div>\n </div>\n ",
styles: [".abp-loader-bar{left:0;opacity:0;position:fixed;top:0;transition:opacity .4s linear .4s;z-index:99999}.abp-loader-bar.is-loading{opacity:1;transition:none}.abp-loader-bar .abp-progress{height:3px;left:0;position:fixed;top:0;transition:width .4s}"]
}] }
];
/** @nocollapse */
LoaderBarComponent.ctorParameters = function () { return [
{ type: store.Actions },
{ type: router.Router },
{ type: core.ChangeDetectorRef }
]; };
LoaderBarComponent.propDecorators = {
containerClass: [{ type: core.Input }],
color: [{ type: core.Input }],
isLoading: [{ type: core.Input }],
filter: [{ type: core.Input }]
};
return LoaderBarComponent;
}());
if (false) {
/** @type {?} */
LoaderBarComponent.prototype.containerClass;
/** @type {?} */
LoaderBarComponent.prototype.color;
/** @type {?} */
LoaderBarComponent.prototype.isLoading;
/** @type {?} */
LoaderBarComponent.prototype.filter;
/** @type {?} */
LoaderBarComponent.prototype.progressLevel;
/** @type {?} */
LoaderBarComponent.prototype.interval;
/** @type {?} */
LoaderBarComponent.prototype.timer;
/**
* @type {?}
* @private
*/
LoaderBarComponent.prototype.actions;
/**
* @type {?}
* @private
*/
LoaderBarComponent.prototype.router;
/**
* @type {?}
* @private
*/
LoaderBarComponent.prototype.cdRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var ANIMATION_TIMEOUT = 200;
var ModalComponent = /** @class */ (function () {
function ModalComponent(renderer, confirmationService) {
this.renderer = renderer;
this.confirmationService = confirmationService;
this.centered = false;
this.modalClass = '';
this.size = 'lg';
this.visibleChange = new core.EventEmitter();
this.init = new core.EventEmitter();
this.show = new core.EventEmitter();
this.hide = new core.EventEmitter();
this._visible = false;
this._busy = false;
this.showModal = false;
this.isOpenConfirmation = false;
this.closable = false;
this.destroy$ = new rxjs.Subject();
}
Object.defineProperty(ModalComponent.prototype, "visible", {
get: /**
* @return {?}
*/
function () {
return this._visible;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
var _this = this;
if (typeof value !== 'boolean')
return;
if (!this.modalContent) {
if (value) {
setTimeout((/**
* @return {?}
*/
function () {
_this.showModal = value;
_this.visible = value;
}), 0);
}
return;
}
if (value) {
this.setVisible(value);
this.listen();
}
else {
this.closable = false;
this.renderer.addClass(this.modalContent.nativeElement, 'fade-out-top');
setTimeout((/**
* @return {?}
*/
function () {
_this.setVisible(value);
_this.ngOnDestroy();
}), ANIMATION_TIMEOUT - 10);
}
},
enumerable: true,
configurable: true
});
Object.defineProperty(ModalComponent.prototype, "busy", {
get: /**
* @return {?}
*/
function () {
return this._busy;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
if (this.abpSubmit && this.abpSubmit instanceof ButtonComponent) {
this.abpSubmit.loading = value;
}
this._busy = value;
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
ModalComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.destroy$.next();
};
/**
* @param {?} value
* @return {?}
*/
ModalComponent.prototype.setVisible = /**
* @param {?} value
* @return {?}
*/
function (value) {
var _this = this;
this._visible = value;
this.visibleChange.emit(value);
this.showModal = value;
if (value) {
rxjs.timer(ANIMATION_TIMEOUT + 100)
.pipe(operators.take(1))
.subscribe((/**
* @param {?} _
* @return {?}
*/
function (_) { return (_this.closable = true); }));
this.renderer.addClass(document.body, 'modal-open');
this.show.emit();
}
else {
this.closable = false;
this.renderer.removeClass(document.body, 'modal-open');
this.hide.emit();
}
};
/**
* @return {?}
*/
ModalComponent.prototype.listen = /**
* @return {?}
*/
function () {
var _this = this;
rxjs.fromEvent(document, 'keyup')
.pipe(operators.takeUntil(this.destroy$), operators.debounceTime(150), operators.filter((/**
* @param {?} key
* @return {?}
*/
function (key) { return key && key.code === 'Escape' && _this.closable; })))
.subscribe((/**
* @param {?} _
* @return {?}
*/
function (_) {
_this.close();
}));
setTimeout((/**
* @return {?}
*/
function () {
if (!_this.abpClose)
return;
rxjs.fromEvent(_this.abpClose.nativeElement, 'click')
.pipe(operators.takeUntil(_this.destroy$), operators.filter((/**
* @return {?}
*/
function () { return !!(_this.closable && _this.modalContent); })))
.subscribe((/**
* @return {?}
*/
function () { return _this.close(); }));
}), 0);
this.init.emit();
};
/**
* @return {?}
*/
ModalComponent.prototype.close = /**
* @return {?}
*/
function () {
var _this = this;
if (!this.closable || this.busy)
return;
/** @type {?} */
var nodes = getFlatNodes(((/** @type {?} */ (this.modalContent.nativeElement.querySelector('#abp-modal-body')))).childNodes);
if (hasNgDirty(nodes)) {
if (this.isOpenConfirmation)
return;
this.isOpenConfirmation = true;
this.confirmationService
.warn('AbpAccount::AreYouSureYouWantToCancelEditingWarningMessage', 'AbpAccount::AreYouSure')
.subscribe((/**
* @param {?} status
* @return {?}
*/
function (status) {
rxjs.timer(ANIMATION_TIMEOUT).subscribe((/**
* @return {?}
*/
function () {
_this.isOpenConfirmation = false;
}));
if (status === "confirm" /* confirm */) {
_this.visible = false;
}
}));
}
else {
this.visible = false;
}
};
ModalComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-modal',
template: "<div\n *ngIf=\"showModal\"\n (click)=\"close()\"\n id=\"abp-modal\"\n class=\"modal fade {{ modalClass }} d-block show\"\n [style.padding-right.px]=\"'15'\"\n>\n <div\n id=\"abp-modal-container\"\n class=\"modal-dialog modal-{{ size }} fade-in-top\"\n tabindex=\"-1\"\n [class.modal-dialog-centered]=\"centered\"\n #abpModalContent\n >\n <div #content id=\"abp-modal-content\" class=\"modal-content\" (click)=\"$event.stopPropagation()\">\n <div id=\"abp-modal-header\" class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"abpHeader\"></ng-container>\n\n <button id=\"abp-modal-close-button\" type=\"button\" class=\"close\" (click)=\"close()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div\n id=\"abp-modal-body\"\n class=\"modal-body\"\n [style.height]=\"height || undefined\"\n [style.minHeight]=\"minHeight || undefined\"\n >\n <ng-container *ngTemplateOutlet=\"abpBody\"></ng-container>\n </div>\n <div id=\"abp-modal-footer\" class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"abpFooter\"></ng-container>\n </div>\n </div>\n </div>\n\n <ng-content></ng-content>\n</div>\n"
}] }
];
/** @nocollapse */
ModalComponent.ctorParameters = function () { return [
{ type: core.Renderer2 },
{ type: ConfirmationService }
]; };
ModalComponent.propDecorators = {
visible: [{ type: core.Input }],
busy: [{ type: core.Input }],
centered: [{ type: core.Input }],
modalClass: [{ type: core.Input }],
size: [{ type: core.Input }],
height: [{ type: core.Input }],
minHeight: [{ type: core.Input }],
visibleChange: [{ type: core.Output }],
init: [{ type: core.Output }],
abpHeader: [{ type: core.ContentChild, args: ['abpHeader', { static: false },] }],
abpBody: [{ type: core.ContentChild, args: ['abpBody', { static: false },] }],
abpFooter: [{ type: core.ContentChild, args: ['abpFooter', { static: false },] }],
abpClose: [{ type: core.ContentChild, args: ['abpClose', { static: false, read: core.ElementRef },] }],
abpSubmit: [{ type: core.ContentChild, args: [ButtonComponent, { static: false, read: ButtonComponent },] }],
modalContent: [{ type: core.ViewChild, args: ['abpModalContent', { static: false },] }],
abpButtons: [{ type: core.ViewChildren, args: ['abp-button',] }],
show: [{ type: core.Output }],
hide: [{ type: core.Output }]
};
return ModalComponent;
}());
if (false) {
/** @type {?} */
ModalComponent.prototype.centered;
/** @type {?} */
ModalComponent.prototype.modalClass;
/** @type {?} */
ModalComponent.prototype.size;
/** @type {?} */
ModalComponent.prototype.height;
/** @type {?} */
ModalComponent.prototype.minHeight;
/** @type {?} */
ModalComponent.prototype.visibleChange;
/** @type {?} */
ModalComponent.prototype.init;
/** @type {?} */
ModalComponent.prototype.abpHeader;
/** @type {?} */
ModalComponent.prototype.abpBody;
/** @type {?} */
ModalComponent.prototype.abpFooter;
/** @type {?} */
ModalComponent.prototype.abpClose;
/** @type {?} */
ModalComponent.prototype.abpSubmit;
/** @type {?} */
ModalComponent.prototype.modalContent;
/** @type {?} */
ModalComponent.prototype.abpButtons;
/** @type {?} */
ModalComponent.prototype.show;
/** @type {?} */
ModalComponent.prototype.hide;
/** @type {?} */
ModalComponent.prototype._visible;
/** @type {?} */
ModalComponent.prototype._busy;
/** @type {?} */
ModalComponent.prototype.showModal;
/** @type {?} */
ModalComponent.prototype.isOpenConfirmation;
/** @type {?} */
ModalComponent.prototype.closable;
/** @type {?} */
ModalComponent.prototype.destroy$;
/**
* @type {?}
* @private
*/
ModalComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
ModalComponent.prototype.confirmationService;
}
/**
* @param {?} nodes
* @return {?}
*/
function getFlatNodes(nodes) {
return Array.from(nodes).reduce((/**
* @param {?} acc
* @param {?} val
* @return {?}
*/
function (acc, val) { return __spread(acc, (val.childNodes && val.childNodes.length ? getFlatNodes(val.childNodes) : [val])); }), []);
}
/**
* @param {?} nodes
* @return {?}
*/
function hasNgDirty(nodes) {
return nodes.findIndex((/**
* @param {?} node
* @return {?}
*/
function (node) { return (node.className || '').indexOf('ng-dirty') > -1; })) > -1;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var maxLength = forms.Validators.maxLength, required$1 = forms.Validators.required, email = forms.Validators.email;
var ProfileComponent = /** @class */ (function () {
function ProfileComponent(fb, store) {
this.fb = fb;
this.store = store;
this.visibleChange = new core.EventEmitter();
this.modalBusy = false;
}
Object.defineProperty(ProfileComponent.prototype, "visible", {
get: /**
* @return {?}
*/
function () {
return this._visible;
},
set: /**
* @param {?} value
* @return {?}
*/
function (value) {
this._visible = value;
this.visibleChange.emit(value);
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
ProfileComponent.prototype.buildForm = /**
* @return {?}
*/
function () {
var _this = this;
this.store
.dispatch(new ng_core.GetProfile())
.pipe(operators.withLatestFrom(this.profile$), operators.take(1))
.subscribe((/**
* @param {?} __0
* @return {?}
*/
function (_a) {
var _b = __read(_a, 2), profile = _b[1];
_this.form = _this.fb.group({
userName: [profile.userName, [required$1, maxLength(256)]],
email: [profile.email, [required$1, email, maxLength(256)]],
name: [profile.name || '', [maxLength(64)]],
surname: [profile.surname || '', [maxLength(64)]],
phoneNumber: [profile.phoneNumber || '', [maxLength(16)]],
});
}));
};
/**
* @return {?}
*/
ProfileComponent.prototype.submit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
this.modalBusy = true;
this.store.dispatch(new ng_core.UpdateProfile(this.form.value)).subscribe((/**
* @return {?}
*/
function () {
_this.modalBusy = false;
_this.visible = false;
_this.form.reset();
}));
};
/**
* @return {?}
*/
ProfileComponent.prototype.openModal = /**
* @return {?}
*/
function () {
this.buildForm();
this.visible = true;
};
/**
* @param {?} __0
* @return {?}
*/
ProfileComponent.prototype.ngOnChanges = /**
* @param {?} __0
* @return {?}
*/
function (_a) {
var visible = _a.visible;
if (!visible)
return;
if (visible.currentValue) {
this.openModal();
}
else if (visible.currentValue === false && this.visible) {
this.visible = false;
}
};
ProfileComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-profile',
template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h4>{{ 'AbpIdentity::PersonalInfo' | abpLocalization }}</h4>\n </ng-template>\n <ng-template #abpBody>\n <form novalidate *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\n <div class=\"form-group\">\n <label for=\"username\">{{ 'AbpIdentity::DisplayName:UserName' | abpLocalization }}</label\n ><span> * </span><input type=\"text\" id=\"username\" class=\"form-control\" formControlName=\"userName\" autofocus />\n </div>\n <div class=\"row\">\n <div class=\"col col-md-6\">\n <div class=\"form-group\">\n <label for=\"name\">{{ 'AbpIdentity::DisplayName:Name' | abpLocalization }}</label\n ><input type=\"text\" id=\"name\" class=\"form-control\" formControlName=\"name\" />\n </div>\n </div>\n <div class=\"col col-md-6\">\n <div class=\"form-group\">\n <label for=\"surname\">{{ 'AbpIdentity::DisplayName:Surname' | abpLocalization }}</label\n ><input type=\"text\" id=\"surname\" class=\"form-control\" formControlName=\"surname\" />\n </div>\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"email-address\">{{ 'AbpIdentity::DisplayName:Email' | abpLocalization }}</label\n ><span> * </span><input type=\"text\" id=\"email-address\" class=\"form-control\" formControlName=\"email\" />\n </div>\n <div class=\"form-group\">\n <label for=\"phone-number\">{{ 'AbpIdentity::DisplayName:PhoneNumber' | abpLocalization }}</label\n ><input type=\"text\" id=\"phone-number\" class=\"form-control\" formControlName=\"phoneNumber\" />\n </div>\n </form>\n </ng-template>\n <ng-template #abpFooter>\n <button #abpClose type=\"button\" class=\"btn btn-secondary color-white\">\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" buttonClass=\"btn btn-primary color-white\" (click)=\"submit()\">{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button>\n </ng-template>\n</abp-modal>\n"
}] }
];
/** @nocollapse */
ProfileComponent.ctorParameters = function () { return [
{ type: forms.FormBuilder },
{ type: store.Store }
]; };
ProfileComponent.propDecorators = {
visible: [{ type: core.Input }],
visibleChange: [{ type: core.Output }]
};
__decorate([
store.Select(ng_core.ProfileState.getProfile),
__metadata("design:type", rxjs.Observable)
], ProfileComponent.prototype, "profile$", void 0);
return ProfileComponent;
}());
if (false) {
/**
* @type {?}
* @protected
*/
ProfileComponent.prototype._visible;
/** @type {?} */
ProfileComponent.prototype.visibleChange;
/** @type {?} */
ProfileComponent.prototype.profile$;
/** @type {?} */
ProfileComponent.prototype.form;
/** @type {?} */
ProfileComponent.prototype.modalBusy;
/**
* @type {?}
* @private
*/
ProfileComponent.prototype.fb;
/**
* @type {?}
* @private
*/
ProfileComponent.prototype.store;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ToastComponent = /** @class */ (function () {
function ToastComponent() {
}
ToastComponent.decorators = [
{ type: core.Component, args: [{
selector: 'abp-toast',
template: "\n <p-toast position=\"bottom-right\" key=\"abpToast\" styleClass=\"abp-toast\" [baseZIndex]=\"1000\">\n <ng-template let-message pTemplate=\"message\">\n <span\n class=\"ui-toast-icon pi\"\n [ngClass]=\"{\n 'pi-info-circle': message.severity == 'info',\n 'pi-exclamation-triangle': message.severity == 'warn',\n 'pi-times': message.severity == 'error',\n 'pi-check': message.severity == 'success'\n }\"\n ></span>\n <div class=\"ui-toast-message-text-content\">\n <div class=\"ui-toast-summary\">{{ message.summary | abpLocalization: message.titleLocalizationParams }}</div>\n <div class=\"ui-toast-detail\">{{ message.detail | abpLocalization: message.messageLocalizationParams }}</div>\n </div>\n </ng-template>\n </p-toast>\n "
}] }
];
return ToastComponent;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var styles = "\n.is-invalid .form-control {\n border-color: #dc3545;\n border-style: solid !important;\n}\n\n.is-invalid .invalid-feedback,\n.is-invalid + * .invalid-feedback {\n display: block;\n}\n\n.data-tables-filter {\n text-align: right;\n}\n\n.pointer {\n cursor: pointer;\n}\n\n.navbar .dropdown-submenu a::after {\n transform: rotate(-90deg);\n position: absolute;\n right: 16px;\n top: 18px;\n}\n\n.navbar .dropdown-menu {\n min-width: 215px;\n}\n\n.modal {\n background-color: rgba(0, 0, 0, .6);\n}\n\n.abp-ellipsis-inline {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.abp-ellipsis {\n overflow: hidden !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.abp-toast .ui-toast-message {\n box-sizing: border-box !important;\n border: 2px solid transparent !important;\n border-radius: 4px !important;\n background-color: #f4f4f7 !important;\n color: #1b1d29 !important;\n}\n\n.abp-toast .ui-toast-message-content {\n padding: 10px !important;\n}\n\n.abp-toast .ui-toast-message-content .ui-toast-icon {\n top: 0 !important;\n left: 0 !important;\n padding: 10px !important;\n}\n\n.abp-toast .ui-toast-summary {\n margin: 0 !important;\n font-weight: 700 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-error {\n border-color: #ba1659 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-error .ui-toast-message-content .ui-toast-icon {\n color: #ba1659 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-warning {\n border-color: #ed5d98 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-warning .ui-toast-message-content .ui-toast-icon {\n color: #ed5d98 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-success {\n border-color: #1c9174 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-success .ui-toast-message-content .ui-toast-icon {\n color: #1c9174 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-info {\n border-color: #fccb31 !important;\n}\n\n.abp-toast .ui-toast-message.ui-toast-message-info .ui-toast-message-content .ui-toast-icon {\n color: #fccb31 !important;\n}\n\n.abp-confirm .ui-toast-message {\n box-sizing: border-box !important;\n padding: 0px !important;\n border:0 none !important;\n border-radius: 4px !important;\n background-color: #fff !important;\n color: rgba(0, 0, 0, .65) !important;\n font-family: \"Poppins\", sans-serif;\n text-align: center !important;\n}\n\n.abp-confirm .ui-toast-message-content {\n padding: 0px !important;\n}\n\n.abp-confirm .abp-confirm-icon {\n margin: 32px 50px 5px !important;\n color: #f8bb86 !important;\n font-size: 52px !important;\n}\n\n.abp-confirm .ui-toast-close-icon {\n display: none !important;\n}\n\n.abp-confirm .abp-confirm-summary {\n display: block !important;\n margin-bottom: 13px !important;\n padding: 13px 16px 0px !important;\n font-weight: 600 !important;\n font-size: 18px !important;\n}\n\n.abp-confirm .abp-confirm-body {\n display: inline-block !important;\n padding: 0px 10px !important;\n}\n\n.abp-confirm .abp-confirm-footer {\n display: block !important;\n margin-top: 30px !important;\n padding: 16px !important;\n background-color: #f4f4f7 !important;\n text-align: right !important;\n}\n\n.abp-confirm .abp-confirm-footer .btn {\n margin-left: 10px !important;\n}\n\n.ui-widget-overlay {\n z-index: 1000;\n}\n\n/* <animations */\n\n.fade-in-top {\n animation: fadeInTop 0.2s ease-in-out;\n}\n\n.fade-out-top {\n animation: fadeOutTop 0.2s ease-in-out;\n}\n\n\n@keyframes fadeInTop {\n from {\n transform: translateY(-5px);\n opacity: 0;\n }\n\n to {\n transform: translateY(5px);\n opacity: 1;\n }\n}\n\n@keyframes fadeOutTop {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n\n/* </animations */\n\n";
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var DEFAULTS = {
defaultError: {
message: 'An error has occurred!',
details: 'Error detail not sent by server.',
},
defaultError401: {
message: 'You are not authenticated!',
details: 'You should be authenticated (sign in) in order to perform this operation.',
},
defaultError403: {
message: 'You are not authorized!',
details: 'You are not allowed to perform this operation.',
},
defaultError404: {
message: 'Resource not found!',
details: 'The resource requested could not found on the server.',
},
};
var ErrorHandler = /** @class */ (function () {
function ErrorHandler(actions, store$1, confirmationService, appRef, cfRes, rendererFactory, injector) {
var _this = this;
this.actions = actions;
this.store = store$1;
this.confirmationService = confirmationService;
this.appRef = appRef;
this.cfRes = cfRes;
this.rendererFactory = rendererFactory;
this.injector = injector;
actions.pipe(store.ofActionSuccessful(ng_core.RestOccurError)).subscribe((/**
* @param {?} res
* @return {?}
*/
function (res) {
var _a = res.payload, err = _a === void 0 ? (/** @type {?} */ ({})) : _a;
/** @type {?} */
var body = snq((/**
* @return {?}
*/
function () { return ((/** @type {?} */ (err))).error.error; }), DEFAULTS.defaultError.message);
if (err instanceof http.HttpErrorResponse && err.headers.get('_AbpErrorFormat')) {
/** @type {?} */
var confirmation$ = _this.showError(null, null, body);
if (err.status === 401) {
confirmation$.subscribe((/**
* @return {?}
*/
function () {
_this.navigateToLogin();
}));
}
}
else {
switch (((/** @type {?} */ (err))).status) {
case 401:
_this.showError(DEFAULTS.defaultError401.details, DEFAULTS.defaultError401.message).subscribe((/**
* @return {?}
*/
function () {
return _this.navigateToLogin();
}));
break;
case 403:
_this.createErrorComponent({
title: DEFAULTS.defaultError403.message,
details: DEFAULTS.defaultError403.details,
});
break;
case 404:
_this.showError(DEFAULTS.defaultError404.details, DEFAULTS.defaultError404.message);
break;
case 500:
_this.createErrorComponent({
title: '500',
details: 'AbpAccount::InternalServerErrorMessage',
});
break;
case 0:
if (((/** @type {?} */ (err))).statusText === 'Unknown Error') {
_this.createErrorComponent({
title: 'Unknown Error',
details: 'AbpAccount::InternalServerErrorMessage',
});
}
break;
default:
_this.showError(DEFAULTS.defaultError.details, DEFAULTS.defaultError.message);
break;
}
}
}));
}
/**
* @private
* @param {?=} message
* @param {?=} title
* @param {?=} body
* @return {?}
*/
ErrorHandler.prototype.showError = /**
* @private
* @param {?=} message
* @param {?=} title
* @param {?=} body
* @return {?}
*/
function (message, title, body) {
if (body) {
if (body.details) {
message = body.details;
title = body.message;
}
else {
message = body.message || DEFAULTS.defaultError.message;
}
}
return this.confirmationService.error(message, title, {
hideCancelBtn: true,
yesCopy: 'OK',
});
};
/**
* @private
* @return {?}
*/
ErrorHandler.prototype.navigateToLogin = /**
* @private
* @return {?}
*/
function () {
this.store.dispatch(new routerPlugin.Navigate(['/account/login'], null, {
state: { redirectUrl: this.store.selectSnapshot(routerPlugin.RouterState).state.url },
}));
};
/**
* @param {?} instance
* @return {?}
*/
ErrorHandler.prototype.createErrorComponent = /**
* @param {?} instance
* @return {?}
*/
function (instance) {
/** @type {?} */
var renderer = this.rendererFactory.createRenderer(null, null);
/** @type {?} */
var host = renderer.selectRootElement('app-root', true);
/** @type {?} */
var componentRef = this.cfRes.resolveComponentFactory(ErrorComponent).create(this.injector);
for (var key in componentRef.instance) {
if (componentRef.instance.hasOwnProperty(key)) {
componentRef.instance[key] = instance[key];
}
}
this.appRef.attachView(componentRef.hostView);
renderer.appendChild(host, ((/** @type {?} */ (componentRef.hostView))).rootNodes[0]);
componentRef.instance.renderer = renderer;
componentRef.instance.elementRef = componentRef.location;
componentRef.instance.host = host;
};
ErrorHandler.decorators = [
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
];
/** @nocollapse */
ErrorHandler.ctorParameters = function () { return [
{ type: store.Actions },
{ type: store.Store },
{ type: ConfirmationService },
{ type: core.ApplicationRef },
{ type: core.ComponentFactoryResolver },
{ type: core.RendererFactory2 },
{ type: core.Injector }
]; };
/** @nocollapse */ ErrorHandler.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function ErrorHandler_Factory() { return new ErrorHandler(core.ɵɵinject(store.Actions), core.ɵɵinject(store.Store), core.ɵɵinject(ConfirmationService), core.ɵɵinject(core.ApplicationRef), core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.RendererFactory2), core.ɵɵinject(core.INJECTOR)); }, token: ErrorHandler, providedIn: "root" });
return ErrorHandler;
}());
if (false) {
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.actions;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.store;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.confirmationService;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.appRef;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.cfRes;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.rendererFactory;
/**
* @type {?}
* @private
*/
ErrorHandler.prototype.injector;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var TableEmptyMessageComponent = /** @class */ (function () {
function TableEmptyMessageComponent() {
this.colspan = 2;
this.localizationResource = 'AbpAccount';
this.localizationProp = 'NoDataAvailableInDatatable';
}
Object.defineProperty(TableEmptyMessageComponent.prototype, "emptyMessage", {
get: /**
* @return {?}
*/
function () {
return this.message || this.localizationResource + "::" + this.localizationProp;
},
enumerable: true,
configurable: true
});
TableEmptyMessageComponent.decorators = [
{ type: core.Component, args: [{
selector: '[abp-table-empty-message]',
template: "\n <td class=\"text-center\" [attr.colspan]=\"colspan\">\n {{ emptyMessage | abpLocalization }}\n </td>\n "
}] }
];
TableEmptyMessageComponent.propDecorators = {
colspan: [{ type: core.Input }],
message: [{ type: core.Input }],
localizationResource: [{ type: core.Input }],
localizationProp: [{ type: core.Input }]
};
return TableEmptyMessageComponent;
}());
if (false) {
/** @type {?} */
TableEmptyMessageComponent.prototype.colspan;
/** @type {?} */
TableEmptyMessageComponent.prototype.message;
/** @type {?} */
TableEmptyMessageComponent.prototype.localizationResource;
/** @type {?} */
TableEmptyMessageComponent.prototype.localizationProp;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} injector
* @return {?}
*/
function appendScript(injector) {
/** @type {?} */
var fn = (/**
* @return {?}
*/
function () {
import('chart.js').then((/**
* @return {?}
*/
function () { return chartJsLoaded$.next(true); }));
/** @type {?} */
var lazyLoadService = injector.get(ng_core.LazyLoadService);
return rxjs.forkJoin(lazyLoadService.load(null, 'style', styles, 'head', 'afterbegin') /* lazyLoadService.load(null, 'script', scripts) */).pipe(operators.take(1));
});
return fn;
}
var ThemeSharedModule = /** @class */ (function () {
function ThemeSharedModule() {
}
/**
* @return {?}
*/
ThemeSharedModule.forRoot = /**
* @return {?}
*/
function () {
return {
ngModule: ThemeSharedModule,
providers: [
{
provide: core.APP_INITIALIZER,
multi: true,
deps: [core.Injector, ErrorHandler],
useFactory: appendScript,
},
{ provide: messageservice.MessageService, useClass: messageservice.MessageService },
],
};
};
ThemeSharedModule.decorators = [
{ type: core.NgModule, args: [{
imports: [ng_core.CoreModule, toast.ToastModule],
declarations: [
BreadcrumbComponent,
ButtonComponent,
ChangePasswordComponent,
ChartComponent,
ConfirmationComponent,
ErrorComponent,
LoaderBarComponent,
ModalComponent,
ProfileComponent,
TableEmptyMessageComponent,
ToastComponent,
],
exports: [
BreadcrumbComponent,
ButtonComponent,
ChangePasswordComponent,
ChartComponent,
ConfirmationComponent,
LoaderBarComponent,
ModalComponent,
ProfileComponent,
TableEmptyMessageComponent,
ToastComponent,
],
entryComponents: [ErrorComponent],
},] }
];
return ThemeSharedModule;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var collapse = animations.trigger('collapse', [
animations.state('open', animations.style({
height: '*',
overflow: 'hidden',
})),
animations.state('close', animations.style({
height: '0px',
overflow: 'hidden',
})),
animations.transition("open <=> close", animations.animate('{{duration}}ms'), { params: { duration: '350' } }),
]);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var fade = animations.trigger('fade', [
animations.state('void', animations.style({ opacity: 1 })),
animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(250)]),
animations.transition(':leave', animations.animate(250, animations.style({ opacity: 0 }))),
]);
/** @type {?} */
var fadeWithStates = animations.trigger('fadeInOut', [
animations.state('out', animations.style({ opacity: 0 })),
animations.state('in', animations.style({ opacity: 1 })),
animations.transition('in <=> out', [animations.animate(250)]),
]);
/** @type {?} */
var fadeIn = animations.trigger('fadeIn', [
animations.state('*', animations.style({ opacity: 1 })),
animations.transition('* => *', [animations.style({ opacity: 0 }), animations.animate(250)]),
animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(250)]),
]);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var slideFromBottom = animations.trigger('routeAnimations', [
animations.state('void', animations.style({ 'margin-top': '20px', opacity: '0' })),
animations.state('*', animations.style({ 'margin-top': '0px', opacity: '1' })),
animations.transition(':enter', [animations.animate('0.2s ease-out', animations.style({ opacity: '1', 'margin-top': '0px' }))]),
]);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Confirmation;
(function (Confirmation) {
/**
* @record
*/
function Options() { }
Confirmation.Options = Options;
if (false) {
/** @type {?|undefined} */
Options.prototype.hideCancelBtn;
/** @type {?|undefined} */
Options.prototype.hideYesBtn;
/** @type {?|undefined} */
Options.prototype.cancelCopy;
/** @type {?|undefined} */
Options.prototype.yesCopy;
}
})(Confirmation || (Confirmation = {}));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function SettingTab() { }
if (false) {
/** @type {?} */
SettingTab.prototype.name;
/** @type {?} */
SettingTab.prototype.order;
/** @type {?|undefined} */
SettingTab.prototype.requiredPolicy;
/** @type {?|undefined} */
SettingTab.prototype.url;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Statistics;
(function (Statistics) {
/**
* @record
*/
function Response() { }
Statistics.Response = Response;
if (false) {
/** @type {?} */
Response.prototype.data;
}
/**
* @record
*/
function Data() { }
Statistics.Data = Data;
/**
* @record
*/
function Filter() { }
Statistics.Filter = Filter;
if (false) {
/** @type {?} */
Filter.prototype.startDate;
/** @type {?} */
Filter.prototype.endDate;
}
})(Statistics || (Statistics = {}));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
(function (Toaster) {
/**
* @record
*/
function Options() { }
Toaster.Options = Options;
if (false) {
/** @type {?|undefined} */
Options.prototype.id;
/** @type {?|undefined} */
Options.prototype.closable;
/** @type {?|undefined} */
Options.prototype.life;
/** @type {?|undefined} */
Options.prototype.sticky;
/** @type {?|undefined} */
Options.prototype.data;
/** @type {?|undefined} */
Options.prototype.messageLocalizationParams;
/** @type {?|undefined} */
Options.prototype.titleLocalizationParams;
}
})(exports.Toaster || (exports.Toaster = {}));
exports.BreadcrumbComponent = BreadcrumbComponent;
exports.ButtonComponent = ButtonComponent;
exports.ChangePasswordComponent = ChangePasswordComponent;
exports.ChartComponent = ChartComponent;
exports.ConfirmationComponent = ConfirmationComponent;
exports.ConfirmationService = ConfirmationService;
exports.LoaderBarComponent = LoaderBarComponent;
exports.ModalComponent = ModalComponent;
exports.ProfileComponent = ProfileComponent;
exports.TableEmptyMessageComponent = TableEmptyMessageComponent;
exports.ThemeSharedModule = ThemeSharedModule;
exports.ToastComponent = ToastComponent;
exports.ToasterService = ToasterService;
exports.appendScript = appendScript;
exports.chartJsLoaded$ = chartJsLoaded$;
exports.collapse = collapse;
exports.fade = fade;
exports.fadeIn = fadeIn;
exports.fadeWithStates = fadeWithStates;
exports.getRandomBackgroundColor = getRandomBackgroundColor;
exports.slideFromBottom = slideFromBottom;
exports.ɵa = BreadcrumbComponent;
exports.ɵb = ButtonComponent;
exports.ɵc = ChangePasswordComponent;
exports.ɵd = ToasterService;
exports.ɵe = AbstractToaster;
exports.ɵf = ChartComponent;
exports.ɵg = ConfirmationComponent;
exports.ɵh = ConfirmationService;
exports.ɵi = ErrorComponent;
exports.ɵj = LoaderBarComponent;
exports.ɵk = ModalComponent;
exports.ɵl = ProfileComponent;
exports.ɵm = TableEmptyMessageComponent;
exports.ɵn = ToastComponent;
exports.ɵo = ErrorHandler;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=abp-ng.theme.shared.umd.js.map