mirror of https://github.com/abpframework/abp.git
64 changed files with 3582 additions and 18 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||
<h1> @abp/ng.theme.basic </h1> |
|||
@ -0,0 +1,12 @@ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export * from './public-api'; |
|||
export { AddNavigationElement as ɵg, RemoveNavigationElementByName as ɵh } from './lib/actions/layout.actions'; |
|||
export { AccountLayoutComponent as ɵc } from './lib/components/account-layout/account-layout.component'; |
|||
export { ApplicationLayoutComponent as ɵa } from './lib/components/application-layout/application-layout.component'; |
|||
export { EmptyLayoutComponent as ɵd } from './lib/components/empty-layout/empty-layout.component'; |
|||
export { LayoutComponent as ɵe } from './lib/components/layout/layout.component'; |
|||
export { Layout as ɵi } from './lib/models/layout'; |
|||
export { LayoutState as ɵb } from './lib/states'; |
|||
export { LayoutState as ɵf } from './lib/states/layout.state'; |
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,850 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@angular/core'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-validate/core'), require('@ngxs/store'), require('primeng/toast'), require('@ngxs/router-plugin'), require('angular-oauth2-oidc'), require('just-compare'), require('rxjs'), require('rxjs/operators'), require('snq')) : |
|||
typeof define === 'function' && define.amd ? define('@abp/ng.theme.basic', ['exports', '@abp/ng.core', '@abp/ng.theme.shared', '@angular/core', '@ng-bootstrap/ng-bootstrap', '@ngx-validate/core', '@ngxs/store', 'primeng/toast', '@ngxs/router-plugin', 'angular-oauth2-oidc', 'just-compare', 'rxjs', 'rxjs/operators', 'snq'], 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.basic = {}), global.ng_core, global.ng_theme_shared, global.ng.core, global.ngBootstrap, global.core$1, global.store, global.toast, global.routerPlugin, global.angularOauth2Oidc, global.compare, global.rxjs, global.rxjs.operators, global.snq)); |
|||
}(this, function (exports, ng_core, ng_theme_shared, core, ngBootstrap, core$1, store, toast, routerPlugin, angularOauth2Oidc, compare, rxjs, operators, snq) { 'use strict'; |
|||
|
|||
compare = compare && compare.hasOwnProperty('default') ? compare['default'] : compare; |
|||
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 AccountLayoutComponent = /** @class */ (function () { |
|||
function AccountLayoutComponent() { |
|||
} |
|||
// required for dynamic component
|
|||
AccountLayoutComponent.type = "account" /* account */; |
|||
AccountLayoutComponent.decorators = [ |
|||
{ type: core.Component, args: [{ |
|||
selector: 'abp-layout-account', |
|||
template: "<router-outlet></router-outlet>\n" |
|||
}] } |
|||
]; |
|||
return AccountLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AccountLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var AddNavigationElement = /** @class */ (function () { |
|||
function AddNavigationElement(payload) { |
|||
this.payload = payload; |
|||
} |
|||
AddNavigationElement.type = '[Layout] Add Navigation Element'; |
|||
return AddNavigationElement; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AddNavigationElement.type; |
|||
/** @type {?} */ |
|||
AddNavigationElement.prototype.payload; |
|||
} |
|||
var RemoveNavigationElementByName = /** @class */ (function () { |
|||
function RemoveNavigationElementByName(name) { |
|||
this.name = name; |
|||
} |
|||
RemoveNavigationElementByName.type = '[Layout] Remove Navigation ElementByName'; |
|||
return RemoveNavigationElementByName; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.type; |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.prototype.name; |
|||
} |
|||
|
|||
/** |
|||
* @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 LayoutState = /** @class */ (function () { |
|||
function LayoutState() { |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.getNavigationElements = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var navigationElements = _a.navigationElements; |
|||
return navigationElements; |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.prototype.layoutAddAction = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var getState = _a.getState, patchState = _a.patchState; |
|||
var _c = _b.payload, payload = _c === void 0 ? [] : _c; |
|||
var navigationElements = getState().navigationElements; |
|||
if (!Array.isArray(payload)) { |
|||
payload = [payload]; |
|||
} |
|||
if (navigationElements.length) { |
|||
payload = snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return ((/** @type {?} */ (payload))).filter((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var name = _a.name; |
|||
return navigationElements.findIndex((/** |
|||
* @param {?} nav |
|||
* @return {?} |
|||
*/ |
|||
function (nav) { return nav.name === name; })) < 0; |
|||
})); |
|||
}), []); |
|||
} |
|||
if (!payload.length) |
|||
return; |
|||
navigationElements = __spread(navigationElements, payload).map((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (element) { return (__assign({}, element, { order: element.order || 99 })); })) |
|||
.sort((/** |
|||
* @param {?} a |
|||
* @param {?} b |
|||
* @return {?} |
|||
*/ |
|||
function (a, b) { return a.order - b.order; })); |
|||
return patchState({ |
|||
navigationElements: navigationElements, |
|||
}); |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.prototype.layoutRemoveAction = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var getState = _a.getState, patchState = _a.patchState; |
|||
var name = _b.name; |
|||
var navigationElements = getState().navigationElements; |
|||
/** @type {?} */ |
|||
var index = navigationElements.findIndex((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (element) { return element.name === name; })); |
|||
if (index > -1) { |
|||
navigationElements = navigationElements.splice(index, 1); |
|||
} |
|||
return patchState({ |
|||
navigationElements: navigationElements, |
|||
}); |
|||
}; |
|||
__decorate([ |
|||
store.Action(AddNavigationElement), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, AddNavigationElement]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutAddAction", null); |
|||
__decorate([ |
|||
store.Action(RemoveNavigationElementByName), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, RemoveNavigationElementByName]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutRemoveAction", null); |
|||
__decorate([ |
|||
store.Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", Array) |
|||
], LayoutState, "getNavigationElements", null); |
|||
LayoutState = __decorate([ |
|||
store.State({ |
|||
name: 'LayoutState', |
|||
defaults: (/** @type {?} */ ({ navigationElements: [] })), |
|||
}) |
|||
], LayoutState); |
|||
return LayoutState; |
|||
}()); |
|||
|
|||
/** |
|||
* @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 ApplicationLayoutComponent = /** @class */ (function () { |
|||
function ApplicationLayoutComponent(store, oauthService) { |
|||
this.store = store; |
|||
this.oauthService = oauthService; |
|||
this.isOpenChangePassword = false; |
|||
this.isOpenProfile = false; |
|||
this.rightPartElements = []; |
|||
this.trackByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
function (_, item) { return item.name; }); |
|||
this.trackElementByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (_, element) { return element; }); |
|||
} |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "visibleRoutes$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.routes$.pipe(operators.map((/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
function (routes) { return getVisibleRoutes(routes); }))); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "defaultLanguage$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
return this.languages$.pipe(operators.map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
function (languages) { return snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return languages.find((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
function (lang) { return lang.cultureName === _this.selectedLangCulture; })).displayName; })); }), '')); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "dropdownLanguages$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
return this.languages$.pipe(operators.map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
function (languages) { return snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return languages.filter((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
function (lang) { return lang.cultureName !== _this.selectedLangCulture; })); })); }), [])); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "selectedLangCulture", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.store.selectSnapshot(ng_core.SessionState.getLanguage); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
/** |
|||
* @private |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.checkWindowWidth = /** |
|||
* @private |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.navbarRootDropdowns.forEach((/** |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
function (item) { |
|||
item.close(); |
|||
})); |
|||
if (window.innerWidth < 768) { |
|||
_this.isDropdownChildDynamic = false; |
|||
} |
|||
else { |
|||
_this.isDropdownChildDynamic = true; |
|||
} |
|||
}), 0); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.ngAfterViewInit = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
/** @type {?} */ |
|||
var navigations = this.store.selectSnapshot(LayoutState.getNavigationElements).map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var name = _a.name; |
|||
return name; |
|||
})); |
|||
if (navigations.indexOf('LanguageRef') < 0) { |
|||
this.store.dispatch(new AddNavigationElement([ |
|||
{ element: this.languageRef, order: 4, name: 'LanguageRef' }, |
|||
{ element: this.currentUserRef, order: 5, name: 'CurrentUserRef' }, |
|||
])); |
|||
} |
|||
this.navElements$ |
|||
.pipe(operators.map((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { return elements.map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var element = _a.element; |
|||
return element; |
|||
})); })), operators.filter((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { return !compare(elements, _this.rightPartElements); })), ng_core.takeUntilDestroy(this)) |
|||
.subscribe((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return (_this.rightPartElements = elements); }), 0); |
|||
})); |
|||
this.checkWindowWidth(); |
|||
rxjs.fromEvent(window, 'resize') |
|||
.pipe(ng_core.takeUntilDestroy(this), operators.debounceTime(250)) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.checkWindowWidth(); |
|||
})); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.ngOnDestroy = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { }; |
|||
/** |
|||
* @param {?} cultureName |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.onChangeLang = /** |
|||
* @param {?} cultureName |
|||
* @return {?} |
|||
*/ |
|||
function (cultureName) { |
|||
this.store.dispatch(new ng_core.SetLanguage(cultureName)); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.logout = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
this.oauthService.logOut(); |
|||
this.store.dispatch(new routerPlugin.Navigate(['/'], null, { |
|||
state: { redirectUrl: this.store.selectSnapshot(routerPlugin.RouterState).state.url }, |
|||
})); |
|||
this.store.dispatch(new ng_core.GetAppConfiguration()); |
|||
}; |
|||
// required for dynamic component
|
|||
ApplicationLayoutComponent.type = "application" /* application */; |
|||
ApplicationLayoutComponent.decorators = [ |
|||
{ type: core.Component, args: [{ |
|||
selector: 'abp-layout-application', |
|||
template: "<abp-layout>\n <ul class=\"navbar-nav mr-auto\">\n <ng-container\n *ngFor=\"let route of visibleRoutes$ | async; trackBy: trackByFn\"\n [ngTemplateOutlet]=\"route?.children?.length ? dropdownLink : defaultLink\"\n [ngTemplateOutletContext]=\"{ $implicit: route }\"\n >\n </ng-container>\n\n <ng-template #defaultLink let-route>\n <li class=\"nav-item\" [abpPermission]=\"route.requiredPolicy\">\n <a class=\"nav-link\" [routerLink]=\"[route.url]\">{{ route.name | abpLocalization }}</a>\n </li>\n </ng-template>\n\n <ng-template #dropdownLink let-route>\n <li\n #navbarRootDropdown\n ngbDropdown\n [abpPermission]=\"route.requiredPolicy\"\n [abpVisibility]=\"routeContainer\"\n class=\"nav-item dropdown pointer\"\n display=\"static\"\n >\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle pointer\" data-toggle=\"dropdown\">\n {{ route.name | abpLocalization }}\n </a>\n <div #routeContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n #forTemplate\n ngFor\n [ngForOf]=\"route.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </li>\n </ng-template>\n\n <ng-template #childWrapper let-child>\n <ng-template\n [ngTemplateOutlet]=\"child?.children?.length ? dropdownChild : defaultChild\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"\n ></ng-template>\n </ng-template>\n\n <ng-template #defaultChild let-child>\n <div class=\"dropdown-submenu\" [abpPermission]=\"child.requiredPolicy\">\n <a class=\"dropdown-item py-2 px-2\" [routerLink]=\"[child.url]\">\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}</a\n >\n </div>\n </ng-template>\n\n <ng-template #dropdownChild let-child>\n <div\n [abpVisibility]=\"childrenContainer\"\n class=\"dropdown-submenu pointer\"\n ngbDropdown\n [display]=\"isDropdownChildDynamic ? 'dynamic' : 'static'\"\n placement=\"right-top\"\n [abpPermission]=\"child.requiredPolicy\"\n >\n <div ngbDropdownToggle [class.dropdown-toggle]=\"false\" class=\"pointer\">\n <a\n abpEllipsis=\"210px\"\n [abpEllipsisEnabled]=\"isDropdownChildDynamic\"\n role=\"button\"\n class=\"btn d-block text-left py-2 px-2 dropdown-toggle\"\n >\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}\n </a>\n </div>\n <div #childrenContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n ngFor\n [ngForOf]=\"child.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </div>\n </ng-template>\n </ul>\n\n <ul class=\"navbar-nav ml-auto\">\n <ng-container\n *ngFor=\"let element of rightPartElements; trackBy: trackElementByFn\"\n [ngTemplateOutlet]=\"element\"\n ></ng-container>\n </ul>\n</abp-layout>\n\n<ng-template #language>\n <li class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ defaultLanguage$ | async }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a\n *ngFor=\"let lang of dropdownLanguages$ | async\"\n class=\"dropdown-item\"\n (click)=\"onChangeLang(lang.cultureName)\"\n >{{ lang?.displayName }}</a\n >\n </div>\n </li>\n</ng-template>\n\n<ng-template #currentUser>\n <li *ngIf=\"(currentUser$ | async)?.isAuthenticated\" class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ (currentUser$ | async)?.userName }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a class=\"dropdown-item pointer\" (click)=\"isOpenChangePassword = true\">{{\n 'AbpUi::ChangePassword' | abpLocalization\n }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"isOpenProfile = true\">{{ 'AbpUi::PersonalInfo' | abpLocalization }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"logout()\">{{ 'AbpUi::Logout' | abpLocalization }}</a>\n </div>\n </li>\n\n <abp-change-password [(visible)]=\"isOpenChangePassword\"></abp-change-password>\n\n <abp-profile [(visible)]=\"isOpenProfile\"></abp-profile>\n</ng-template>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
ApplicationLayoutComponent.ctorParameters = function () { return [ |
|||
{ type: store.Store }, |
|||
{ type: angularOauth2Oidc.OAuthService } |
|||
]; }; |
|||
ApplicationLayoutComponent.propDecorators = { |
|||
currentUserRef: [{ type: core.ViewChild, args: ['currentUser', { static: false, read: core.TemplateRef },] }], |
|||
languageRef: [{ type: core.ViewChild, args: ['language', { static: false, read: core.TemplateRef },] }], |
|||
navbarRootDropdowns: [{ type: core.ViewChildren, args: ['navbarRootDropdown', { read: ngBootstrap.NgbDropdown },] }] |
|||
}; |
|||
__decorate([ |
|||
store.Select(ng_core.ConfigState.getOne('routes')), |
|||
__metadata("design:type", rxjs.Observable) |
|||
], ApplicationLayoutComponent.prototype, "routes$", void 0); |
|||
__decorate([ |
|||
store.Select(ng_core.ConfigState.getOne('currentUser')), |
|||
__metadata("design:type", rxjs.Observable) |
|||
], ApplicationLayoutComponent.prototype, "currentUser$", void 0); |
|||
__decorate([ |
|||
store.Select(ng_core.ConfigState.getDeep('localization.languages')), |
|||
__metadata("design:type", rxjs.Observable) |
|||
], ApplicationLayoutComponent.prototype, "languages$", void 0); |
|||
__decorate([ |
|||
store.Select(LayoutState.getNavigationElements), |
|||
__metadata("design:type", rxjs.Observable) |
|||
], ApplicationLayoutComponent.prototype, "navElements$", void 0); |
|||
return ApplicationLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.type; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.routes$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUser$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languages$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navElements$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUserRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languageRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navbarRootDropdowns; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenChangePassword; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenProfile; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isDropdownChildDynamic; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.rightPartElements; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackByFn; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackElementByFn; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.store; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.oauthService; |
|||
} |
|||
/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
function getVisibleRoutes(routes) { |
|||
return routes.reduce((/** |
|||
* @param {?} acc |
|||
* @param {?} val |
|||
* @return {?} |
|||
*/ |
|||
function (acc, val) { |
|||
if (val.invisible) |
|||
return acc; |
|||
if (val.children && val.children.length) { |
|||
val.children = getVisibleRoutes(val.children); |
|||
} |
|||
return __spread(acc, [val]); |
|||
}), []); |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var EmptyLayoutComponent = /** @class */ (function () { |
|||
function EmptyLayoutComponent() { |
|||
} |
|||
EmptyLayoutComponent.type = "empty" /* empty */; |
|||
EmptyLayoutComponent.decorators = [ |
|||
{ type: core.Component, args: [{ |
|||
selector: 'abp-layout-empty', |
|||
template: "\n Layout-empty\n <router-outlet></router-outlet>\n " |
|||
}] } |
|||
]; |
|||
return EmptyLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
EmptyLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var LayoutComponent = /** @class */ (function () { |
|||
function LayoutComponent(store) { |
|||
this.store = store; |
|||
this.isCollapsed = true; |
|||
} |
|||
Object.defineProperty(LayoutComponent.prototype, "appInfo", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.store.selectSnapshot(ng_core.ConfigState.getApplicationInfo); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
LayoutComponent.decorators = [ |
|||
{ type: core.Component, args: [{ |
|||
selector: ' abp-layout', |
|||
template: "<nav class=\"navbar navbar-expand-md navbar-dark bg-dark fixed-top\" id=\"main-navbar\">\n <a class=\"navbar-brand\" routerLink=\"/\">\n <img *ngIf=\"appInfo.logoUrl; else appName\" [src]=\"appInfo.logoUrl\" [alt]=\"appInfo.name\" />\n </a>\n <button class=\"navbar-toggler\" type=\"button\" [attr.aria-expanded]=\"!isCollapsed\" (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"main-navbar-collapse\" [ngbCollapse]=\"isCollapsed\">\n <ng-content></ng-content>\n </div>\n</nav>\n\n<div\n [@routeAnimations]=\"outlet && outlet.activatedRoute && outlet.activatedRoute.routeConfig.path\"\n style=\"padding-top: 5rem;\"\n class=\"container\"\n>\n <router-outlet #outlet=\"outlet\"></router-outlet>\n</div>\n\n<abp-confirmation></abp-confirmation>\n<abp-toast></abp-toast>\n\n<ng-template #appName>\n {{ appInfo.name }}\n</ng-template>\n", |
|||
animations: [ng_theme_shared.slideFromBottom] |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
LayoutComponent.ctorParameters = function () { return [ |
|||
{ type: store.Store } |
|||
]; }; |
|||
return LayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
LayoutComponent.prototype.isCollapsed; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
LayoutComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** @type {?} */ |
|||
var LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent]; |
|||
var ThemeBasicModule = /** @class */ (function () { |
|||
function ThemeBasicModule() { |
|||
} |
|||
ThemeBasicModule.decorators = [ |
|||
{ type: core.NgModule, args: [{ |
|||
declarations: __spread(LAYOUTS, [LayoutComponent]), |
|||
imports: [ |
|||
ng_core.CoreModule, |
|||
ng_theme_shared.ThemeSharedModule, |
|||
ngBootstrap.NgbCollapseModule, |
|||
ngBootstrap.NgbDropdownModule, |
|||
toast.ToastModule, |
|||
core$1.NgxValidateCoreModule, |
|||
store.NgxsModule.forFeature([LayoutState]), |
|||
], |
|||
exports: __spread(LAYOUTS), |
|||
entryComponents: __spread(LAYOUTS), |
|||
},] } |
|||
]; |
|||
return ThemeBasicModule; |
|||
}()); |
|||
|
|||
/** |
|||
* @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 Layout; |
|||
(function (Layout) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
Layout.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.navigationElements; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function NavigationElement() { } |
|||
Layout.NavigationElement = NavigationElement; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.name; |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.element; |
|||
/** @type {?|undefined} */ |
|||
NavigationElement.prototype.order; |
|||
} |
|||
})(Layout || (Layout = {})); |
|||
|
|||
exports.AccountLayoutComponent = AccountLayoutComponent; |
|||
exports.AddNavigationElement = AddNavigationElement; |
|||
exports.ApplicationLayoutComponent = ApplicationLayoutComponent; |
|||
exports.EmptyLayoutComponent = EmptyLayoutComponent; |
|||
exports.LAYOUTS = LAYOUTS; |
|||
exports.LayoutState = LayoutState; |
|||
exports.RemoveNavigationElementByName = RemoveNavigationElementByName; |
|||
exports.ThemeBasicModule = ThemeBasicModule; |
|||
exports.ɵa = ApplicationLayoutComponent; |
|||
exports.ɵb = LayoutState; |
|||
exports.ɵc = AccountLayoutComponent; |
|||
exports.ɵd = EmptyLayoutComponent; |
|||
exports.ɵe = LayoutComponent; |
|||
exports.ɵf = LayoutState; |
|||
exports.ɵg = AddNavigationElement; |
|||
exports.ɵh = RemoveNavigationElementByName; |
|||
|
|||
Object.defineProperty(exports, '__esModule', { value: true }); |
|||
|
|||
})); |
|||
//# sourceMappingURL=abp-ng.theme.basic.umd.js.map
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,16 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export { LAYOUTS, ThemeBasicModule, AddNavigationElement, RemoveNavigationElementByName, AccountLayoutComponent, ApplicationLayoutComponent, EmptyLayoutComponent, LayoutState } from './public-api'; |
|||
export { AddNavigationElement as ɵg, RemoveNavigationElementByName as ɵh } from './lib/actions/layout.actions'; |
|||
export { AccountLayoutComponent as ɵc } from './lib/components/account-layout/account-layout.component'; |
|||
export { ApplicationLayoutComponent as ɵa } from './lib/components/application-layout/application-layout.component'; |
|||
export { EmptyLayoutComponent as ɵd } from './lib/components/empty-layout/empty-layout.component'; |
|||
export { LayoutComponent as ɵe } from './lib/components/layout/layout.component'; |
|||
export { LayoutState as ɵb } from './lib/states'; |
|||
export { LayoutState as ɵf } from './lib/states/layout.state'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJwLW5nLnRoZW1lLmJhc2ljLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImFicC1uZy50aGVtZS5iYXNpYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsc0xBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsNkJBQTZCLElBQUksRUFBRSxFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDNUcsT0FBTyxFQUFDLHNCQUFzQixJQUFJLEVBQUUsRUFBQyxNQUFNLDBEQUEwRCxDQUFDO0FBQ3RHLE9BQU8sRUFBQywwQkFBMEIsSUFBSSxFQUFFLEVBQUMsTUFBTSxrRUFBa0UsQ0FBQztBQUNsSCxPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sc0RBQXNELENBQUM7QUFDaEcsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUUvRSxPQUFPLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUMvQyxPQUFPLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0FkZE5hdmlnYXRpb25FbGVtZW50IGFzIMm1ZyxSZW1vdmVOYXZpZ2F0aW9uRWxlbWVudEJ5TmFtZSBhcyDJtWh9IGZyb20gJy4vbGliL2FjdGlvbnMvbGF5b3V0LmFjdGlvbnMnO1xuZXhwb3J0IHtBY2NvdW50TGF5b3V0Q29tcG9uZW50IGFzIMm1Y30gZnJvbSAnLi9saWIvY29tcG9uZW50cy9hY2NvdW50LWxheW91dC9hY2NvdW50LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtBcHBsaWNhdGlvbkxheW91dENvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvYXBwbGljYXRpb24tbGF5b3V0L2FwcGxpY2F0aW9uLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtFbXB0eUxheW91dENvbXBvbmVudCBhcyDJtWR9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvZW1wdHktbGF5b3V0L2VtcHR5LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtMYXlvdXRDb21wb25lbnQgYXMgybVlfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL2xheW91dC9sYXlvdXQuY29tcG9uZW50JztcbmV4cG9ydCB7TGF5b3V0IGFzIMm1aX0gZnJvbSAnLi9saWIvbW9kZWxzL2xheW91dCc7XG5leHBvcnQge0xheW91dFN0YXRlIGFzIMm1Yn0gZnJvbSAnLi9saWIvc3RhdGVzJztcbmV4cG9ydCB7TGF5b3V0U3RhdGUgYXMgybVmfSBmcm9tICcuL2xpYi9zdGF0ZXMvbGF5b3V0LnN0YXRlJzsiXX0=
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { AddNavigationElement, RemoveNavigationElementByName } from './layout.actions'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2FjdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLG9FQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9sYXlvdXQuYWN0aW9ucyc7XG4iXX0=
|
|||
@ -0,0 +1,35 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export class AddNavigationElement { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
AddNavigationElement.type = '[Layout] Add Navigation Element'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AddNavigationElement.type; |
|||
/** @type {?} */ |
|||
AddNavigationElement.prototype.payload; |
|||
} |
|||
export class RemoveNavigationElementByName { |
|||
/** |
|||
* @param {?} name |
|||
*/ |
|||
constructor(name) { |
|||
this.name = name; |
|||
} |
|||
} |
|||
RemoveNavigationElementByName.type = '[Layout] Remove Navigation ElementByName'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.type; |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.prototype.name; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2FjdGlvbnMvbGF5b3V0LmFjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUVBLE1BQU0sT0FBTyxvQkFBb0I7Ozs7SUFFL0IsWUFBbUIsT0FBOEQ7UUFBOUQsWUFBTyxHQUFQLE9BQU8sQ0FBdUQ7SUFBRyxDQUFDOztBQURyRSx5QkFBSSxHQUFHLGlDQUFpQyxDQUFDOzs7SUFBekQsMEJBQXlEOztJQUM3Qyx1Q0FBcUU7O0FBR25GLE1BQU0sT0FBTyw2QkFBNkI7Ozs7SUFFeEMsWUFBbUIsSUFBWTtRQUFaLFNBQUksR0FBSixJQUFJLENBQVE7SUFBRyxDQUFDOztBQURuQixrQ0FBSSxHQUFHLDBDQUEwQyxDQUFDOzs7SUFBbEUsbUNBQWtFOztJQUN0RCw2Q0FBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMYXlvdXQgfSBmcm9tICcuLi9tb2RlbHMvbGF5b3V0JztcblxuZXhwb3J0IGNsYXNzIEFkZE5hdmlnYXRpb25FbGVtZW50IHtcbiAgc3RhdGljIHJlYWRvbmx5IHR5cGUgPSAnW0xheW91dF0gQWRkIE5hdmlnYXRpb24gRWxlbWVudCc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBwYXlsb2FkOiBMYXlvdXQuTmF2aWdhdGlvbkVsZW1lbnQgfCBMYXlvdXQuTmF2aWdhdGlvbkVsZW1lbnRbXSkge31cbn1cblxuZXhwb3J0IGNsYXNzIFJlbW92ZU5hdmlnYXRpb25FbGVtZW50QnlOYW1lIHtcbiAgc3RhdGljIHJlYWRvbmx5IHR5cGUgPSAnW0xheW91dF0gUmVtb3ZlIE5hdmlnYXRpb24gRWxlbWVudEJ5TmFtZSc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBuYW1lOiBzdHJpbmcpIHt9XG59XG4iXX0=
|
|||
@ -0,0 +1,20 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Component } from '@angular/core'; |
|||
export class AccountLayoutComponent { |
|||
} |
|||
// required for dynamic component
|
|||
AccountLayoutComponent.type = "account" /* account */; |
|||
AccountLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-account', |
|||
template: "<router-outlet></router-outlet>\n" |
|||
}] } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AccountLayoutComponent.type; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1sYXlvdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2FjY291bnQtbGF5b3V0L2FjY291bnQtbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU8xQyxNQUFNLE9BQU8sc0JBQXNCOzs7QUFFMUIsMkJBQUksMkJBQXVCOztZQU5uQyxTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLG9CQUFvQjtnQkFDOUIsNkNBQThDO2FBQy9DOzs7O0lBR0MsNEJBQWtDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBlTGF5b3V0VHlwZSB9IGZyb20gJ0BhYnAvbmcuY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2FicC1sYXlvdXQtYWNjb3VudCcsXG4gIHRlbXBsYXRlVXJsOiAnLi9hY2NvdW50LWxheW91dC5jb21wb25lbnQuaHRtbCcsXG59KVxuZXhwb3J0IGNsYXNzIEFjY291bnRMYXlvdXRDb21wb25lbnQge1xuICAvLyByZXF1aXJlZCBmb3IgZHluYW1pYyBjb21wb25lbnRcbiAgc3RhdGljIHR5cGUgPSBlTGF5b3V0VHlwZS5hY2NvdW50O1xufVxuIl19
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,22 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Component } from '@angular/core'; |
|||
export class EmptyLayoutComponent { |
|||
} |
|||
EmptyLayoutComponent.type = "empty" /* empty */; |
|||
EmptyLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-empty', |
|||
template: ` |
|||
Layout-empty |
|||
<router-outlet></router-outlet> |
|||
` |
|||
}] } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
EmptyLayoutComponent.type; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHktbGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9lbXB0eS1sYXlvdXQvZW1wdHktbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQVUxQyxNQUFNLE9BQU8sb0JBQW9COztBQUN4Qix5QkFBSSx1QkFBcUI7O1lBUmpDLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1QixRQUFRLEVBQUU7OztHQUdUO2FBQ0Y7Ozs7SUFFQywwQkFBZ0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IGVMYXlvdXRUeXBlIH0gZnJvbSAnQGFicC9uZy5jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYWJwLWxheW91dC1lbXB0eScsXG4gIHRlbXBsYXRlOiBgXG4gICAgTGF5b3V0LWVtcHR5XG4gICAgPHJvdXRlci1vdXRsZXQ+PC9yb3V0ZXItb3V0bGV0PlxuICBgLFxufSlcbmV4cG9ydCBjbGFzcyBFbXB0eUxheW91dENvbXBvbmVudCB7XG4gIHN0YXRpYyB0eXBlID0gZUxheW91dFR5cGUuZW1wdHk7XG59XG4iXX0=
|
|||
@ -0,0 +1,8 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { AccountLayoutComponent } from './account-layout/account-layout.component'; |
|||
export { ApplicationLayoutComponent } from './application-layout/application-layout.component'; |
|||
export { EmptyLayoutComponent } from './empty-layout/empty-layout.component'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVDQUFjLDJDQUEyQyxDQUFDO0FBQzFELDJDQUFjLG1EQUFtRCxDQUFDO0FBQ2xFLHFDQUFjLHVDQUF1QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hY2NvdW50LWxheW91dC9hY2NvdW50LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9hcHBsaWNhdGlvbi1sYXlvdXQvYXBwbGljYXRpb24tbGF5b3V0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2VtcHR5LWxheW91dC9lbXB0eS1sYXlvdXQuY29tcG9uZW50JztcbiJdfQ==
|
|||
@ -0,0 +1,44 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { ConfigState } from '@abp/ng.core'; |
|||
import { slideFromBottom } from '@abp/ng.theme.shared'; |
|||
import { Component } from '@angular/core'; |
|||
import { Store } from '@ngxs/store'; |
|||
export class LayoutComponent { |
|||
/** |
|||
* @param {?} store |
|||
*/ |
|||
constructor(store) { |
|||
this.store = store; |
|||
this.isCollapsed = true; |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get appInfo() { |
|||
return this.store.selectSnapshot(ConfigState.getApplicationInfo); |
|||
} |
|||
} |
|||
LayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: ' abp-layout', |
|||
template: "<nav class=\"navbar navbar-expand-md navbar-dark bg-dark fixed-top\" id=\"main-navbar\">\n <a class=\"navbar-brand\" routerLink=\"/\">\n <img *ngIf=\"appInfo.logoUrl; else appName\" [src]=\"appInfo.logoUrl\" [alt]=\"appInfo.name\" />\n </a>\n <button class=\"navbar-toggler\" type=\"button\" [attr.aria-expanded]=\"!isCollapsed\" (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"main-navbar-collapse\" [ngbCollapse]=\"isCollapsed\">\n <ng-content></ng-content>\n </div>\n</nav>\n\n<div\n [@routeAnimations]=\"outlet && outlet.activatedRoute && outlet.activatedRoute.routeConfig.path\"\n style=\"padding-top: 5rem;\"\n class=\"container\"\n>\n <router-outlet #outlet=\"outlet\"></router-outlet>\n</div>\n\n<abp-confirmation></abp-confirmation>\n<abp-toast></abp-toast>\n\n<ng-template #appName>\n {{ appInfo.name }}\n</ng-template>\n", |
|||
animations: [slideFromBottom] |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
LayoutComponent.ctorParameters = () => [ |
|||
{ type: Store } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
LayoutComponent.prototype.isCollapsed; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
LayoutComponent.prototype.store; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9sYXlvdXQvbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFVLFdBQVcsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdkQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBT3BDLE1BQU0sT0FBTyxlQUFlOzs7O0lBTzFCLFlBQW9CLEtBQVk7UUFBWixVQUFLLEdBQUwsS0FBSyxDQUFPO1FBTmhDLGdCQUFXLEdBQVksSUFBSSxDQUFDO0lBTU8sQ0FBQzs7OztJQUpwQyxJQUFJLE9BQU87UUFDVCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsY0FBYyxDQUFDLFdBQVcsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0lBQ25FLENBQUM7OztZQVZGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsYUFBYTtnQkFDdkIsZzhCQUFzQztnQkFDdEMsVUFBVSxFQUFFLENBQUMsZUFBZSxDQUFDO2FBQzlCOzs7O1lBTlEsS0FBSzs7OztJQVFaLHNDQUE0Qjs7Ozs7SUFNaEIsZ0NBQW9CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29uZmlnLCBDb25maWdTdGF0ZSB9IGZyb20gJ0BhYnAvbmcuY29yZSc7XG5pbXBvcnQgeyBzbGlkZUZyb21Cb3R0b20gfSBmcm9tICdAYWJwL25nLnRoZW1lLnNoYXJlZCc7XG5pbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFN0b3JlIH0gZnJvbSAnQG5neHMvc3RvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICcgYWJwLWxheW91dCcsXG4gIHRlbXBsYXRlVXJsOiAnLi9sYXlvdXQuY29tcG9uZW50Lmh0bWwnLFxuICBhbmltYXRpb25zOiBbc2xpZGVGcm9tQm90dG9tXSxcbn0pXG5leHBvcnQgY2xhc3MgTGF5b3V0Q29tcG9uZW50IHtcbiAgaXNDb2xsYXBzZWQ6IGJvb2xlYW4gPSB0cnVlO1xuXG4gIGdldCBhcHBJbmZvKCk6IENvbmZpZy5BcHBsaWNhdGlvbiB7XG4gICAgcmV0dXJuIHRoaXMuc3RvcmUuc2VsZWN0U25hcHNob3QoQ29uZmlnU3RhdGUuZ2V0QXBwbGljYXRpb25JbmZvKTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgc3RvcmU6IFN0b3JlKSB7fVxufVxuIl19
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export {} from './layout'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL21vZGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsZUFBYyxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xheW91dCc7XG4iXX0=
|
|||
@ -0,0 +1,30 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export var Layout; |
|||
(function (Layout) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
Layout.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.navigationElements; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function NavigationElement() { } |
|||
Layout.NavigationElement = NavigationElement; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.name; |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.element; |
|||
/** @type {?|undefined} */ |
|||
NavigationElement.prototype.order; |
|||
} |
|||
})(Layout || (Layout = {})); |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLEtBQVcsTUFBTSxDQVV0QjtBQVZELFdBQWlCLE1BQU07Ozs7SUFDckIsb0JBRUM7Ozs7UUFEQyxtQ0FBd0M7Ozs7O0lBRzFDLGdDQUlDOzs7O1FBSEMsaUNBQWE7O1FBQ2Isb0NBQTBCOztRQUMxQixrQ0FBZTs7QUFFbkIsQ0FBQyxFQVZnQixNQUFNLEtBQU4sTUFBTSxRQVV0QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRlbXBsYXRlUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBuYW1lc3BhY2UgTGF5b3V0IHtcbiAgZXhwb3J0IGludGVyZmFjZSBTdGF0ZSB7XG4gICAgbmF2aWdhdGlvbkVsZW1lbnRzOiBOYXZpZ2F0aW9uRWxlbWVudFtdO1xuICB9XG5cbiAgZXhwb3J0IGludGVyZmFjZSBOYXZpZ2F0aW9uRWxlbWVudCB7XG4gICAgbmFtZTogc3RyaW5nO1xuICAgIGVsZW1lbnQ6IFRlbXBsYXRlUmVmPGFueT47XG4gICAgb3JkZXI/OiBudW1iZXI7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { LayoutState } from "./layout.state"; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL3N0YXRlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsNEJBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9sYXlvdXQuc3RhdGVcIjtcbiJdfQ==
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,37 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { NgModule } from '@angular/core'; |
|||
import { NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|||
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|||
import { NgxsModule } from '@ngxs/store'; |
|||
import { ToastModule } from 'primeng/toast'; |
|||
import { AccountLayoutComponent } from './components/account-layout/account-layout.component'; |
|||
import { ApplicationLayoutComponent } from './components/application-layout/application-layout.component'; |
|||
import { EmptyLayoutComponent } from './components/empty-layout/empty-layout.component'; |
|||
import { LayoutComponent } from './components/layout/layout.component'; |
|||
import { LayoutState } from './states/layout.state'; |
|||
/** @type {?} */ |
|||
export const LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent]; |
|||
export class ThemeBasicModule { |
|||
} |
|||
ThemeBasicModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [...LAYOUTS, LayoutComponent], |
|||
imports: [ |
|||
CoreModule, |
|||
ThemeSharedModule, |
|||
NgbCollapseModule, |
|||
NgbDropdownModule, |
|||
ToastModule, |
|||
NgxValidateCoreModule, |
|||
NgxsModule.forFeature([LayoutState]), |
|||
], |
|||
exports: [...LAYOUTS], |
|||
entryComponents: [...LAYOUTS], |
|||
},] } |
|||
]; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtYmFzaWMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi90aGVtZS1iYXNpYy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDMUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDekQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNsRixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUMzRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUMsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sc0RBQXNELENBQUM7QUFDOUYsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sOERBQThELENBQUM7QUFDMUcsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0RBQWtELENBQUM7QUFDeEYsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFFcEQsTUFBTSxPQUFPLE9BQU8sR0FBRyxDQUFDLDBCQUEwQixFQUFFLHNCQUFzQixFQUFFLG9CQUFvQixDQUFDO0FBZ0JqRyxNQUFNLE9BQU8sZ0JBQWdCOzs7WUFkNUIsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLEdBQUcsT0FBTyxFQUFFLGVBQWUsQ0FBQztnQkFDM0MsT0FBTyxFQUFFO29CQUNQLFVBQVU7b0JBQ1YsaUJBQWlCO29CQUNqQixpQkFBaUI7b0JBQ2pCLGlCQUFpQjtvQkFDakIsV0FBVztvQkFDWCxxQkFBcUI7b0JBQ3JCLFVBQVUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0FBQztpQkFDckM7Z0JBQ0QsT0FBTyxFQUFFLENBQUMsR0FBRyxPQUFPLENBQUM7Z0JBQ3JCLGVBQWUsRUFBRSxDQUFDLEdBQUcsT0FBTyxDQUFDO2FBQzlCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29yZU1vZHVsZSB9IGZyb20gJ0BhYnAvbmcuY29yZSc7XG5pbXBvcnQgeyBUaGVtZVNoYXJlZE1vZHVsZSB9IGZyb20gJ0BhYnAvbmcudGhlbWUuc2hhcmVkJztcbmltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBOZ2JDb2xsYXBzZU1vZHVsZSwgTmdiRHJvcGRvd25Nb2R1bGUgfSBmcm9tICdAbmctYm9vdHN0cmFwL25nLWJvb3RzdHJhcCc7XG5pbXBvcnQgeyBOZ3hWYWxpZGF0ZUNvcmVNb2R1bGUgfSBmcm9tICdAbmd4LXZhbGlkYXRlL2NvcmUnO1xuaW1wb3J0IHsgTmd4c01vZHVsZSB9IGZyb20gJ0BuZ3hzL3N0b3JlJztcbmltcG9ydCB7IFRvYXN0TW9kdWxlIH0gZnJvbSAncHJpbWVuZy90b2FzdCc7XG5pbXBvcnQgeyBBY2NvdW50TGF5b3V0Q29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL2FjY291bnQtbGF5b3V0L2FjY291bnQtbGF5b3V0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBBcHBsaWNhdGlvbkxheW91dENvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy9hcHBsaWNhdGlvbi1sYXlvdXQvYXBwbGljYXRpb24tbGF5b3V0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBFbXB0eUxheW91dENvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy9lbXB0eS1sYXlvdXQvZW1wdHktbGF5b3V0LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBMYXlvdXRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvbGF5b3V0L2xheW91dC5jb21wb25lbnQnO1xuaW1wb3J0IHsgTGF5b3V0U3RhdGUgfSBmcm9tICcuL3N0YXRlcy9sYXlvdXQuc3RhdGUnO1xuXG5leHBvcnQgY29uc3QgTEFZT1VUUyA9IFtBcHBsaWNhdGlvbkxheW91dENvbXBvbmVudCwgQWNjb3VudExheW91dENvbXBvbmVudCwgRW1wdHlMYXlvdXRDb21wb25lbnRdO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFsuLi5MQVlPVVRTLCBMYXlvdXRDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29yZU1vZHVsZSxcbiAgICBUaGVtZVNoYXJlZE1vZHVsZSxcbiAgICBOZ2JDb2xsYXBzZU1vZHVsZSxcbiAgICBOZ2JEcm9wZG93bk1vZHVsZSxcbiAgICBUb2FzdE1vZHVsZSxcbiAgICBOZ3hWYWxpZGF0ZUNvcmVNb2R1bGUsXG4gICAgTmd4c01vZHVsZS5mb3JGZWF0dXJlKFtMYXlvdXRTdGF0ZV0pLFxuICBdLFxuICBleHBvcnRzOiBbLi4uTEFZT1VUU10sXG4gIGVudHJ5Q29tcG9uZW50czogWy4uLkxBWU9VVFNdLFxufSlcbmV4cG9ydCBjbGFzcyBUaGVtZUJhc2ljTW9kdWxlIHt9XG4iXX0=
|
|||
@ -0,0 +1,13 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/* |
|||
* Public API Surface of theme-basic |
|||
*/ |
|||
export { LAYOUTS, ThemeBasicModule } from './lib/theme-basic.module'; |
|||
export { AddNavigationElement, RemoveNavigationElementByName } from './lib/actions'; |
|||
export { AccountLayoutComponent, ApplicationLayoutComponent, EmptyLayoutComponent } from './lib/components'; |
|||
export {} from './lib/models'; |
|||
export { LayoutState } from './lib/states'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwwQ0FBYywwQkFBMEIsQ0FBQztBQUN6QyxvRUFBYyxlQUFlLENBQUM7QUFDOUIseUZBQWMsa0JBQWtCLENBQUM7QUFDakMsZUFBYyxjQUFjLENBQUM7QUFDN0IsNEJBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB0aGVtZS1iYXNpY1xuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3RoZW1lLWJhc2ljLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hY3Rpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0YXRlcyc7XG4iXX0=
|
|||
@ -0,0 +1,16 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** |
|||
* Generated bundle index. Do not edit. |
|||
*/ |
|||
export { LAYOUTS, ThemeBasicModule, AddNavigationElement, RemoveNavigationElementByName, AccountLayoutComponent, ApplicationLayoutComponent, EmptyLayoutComponent, LayoutState } from './public-api'; |
|||
export { AddNavigationElement as ɵg, RemoveNavigationElementByName as ɵh } from './lib/actions/layout.actions'; |
|||
export { AccountLayoutComponent as ɵc } from './lib/components/account-layout/account-layout.component'; |
|||
export { ApplicationLayoutComponent as ɵa } from './lib/components/application-layout/application-layout.component'; |
|||
export { EmptyLayoutComponent as ɵd } from './lib/components/empty-layout/empty-layout.component'; |
|||
export { LayoutComponent as ɵe } from './lib/components/layout/layout.component'; |
|||
export { LayoutState as ɵb } from './lib/states'; |
|||
export { LayoutState as ɵf } from './lib/states/layout.state'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJwLW5nLnRoZW1lLmJhc2ljLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImFicC1uZy50aGVtZS5iYXNpYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsc0xBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxvQkFBb0IsSUFBSSxFQUFFLEVBQUMsNkJBQTZCLElBQUksRUFBRSxFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDNUcsT0FBTyxFQUFDLHNCQUFzQixJQUFJLEVBQUUsRUFBQyxNQUFNLDBEQUEwRCxDQUFDO0FBQ3RHLE9BQU8sRUFBQywwQkFBMEIsSUFBSSxFQUFFLEVBQUMsTUFBTSxrRUFBa0UsQ0FBQztBQUNsSCxPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sc0RBQXNELENBQUM7QUFDaEcsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUUvRSxPQUFPLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxNQUFNLGNBQWMsQ0FBQztBQUMvQyxPQUFPLEVBQUMsV0FBVyxJQUFJLEVBQUUsRUFBQyxNQUFNLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge0FkZE5hdmlnYXRpb25FbGVtZW50IGFzIMm1ZyxSZW1vdmVOYXZpZ2F0aW9uRWxlbWVudEJ5TmFtZSBhcyDJtWh9IGZyb20gJy4vbGliL2FjdGlvbnMvbGF5b3V0LmFjdGlvbnMnO1xuZXhwb3J0IHtBY2NvdW50TGF5b3V0Q29tcG9uZW50IGFzIMm1Y30gZnJvbSAnLi9saWIvY29tcG9uZW50cy9hY2NvdW50LWxheW91dC9hY2NvdW50LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtBcHBsaWNhdGlvbkxheW91dENvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvYXBwbGljYXRpb24tbGF5b3V0L2FwcGxpY2F0aW9uLWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtFbXB0eUxheW91dENvbXBvbmVudCBhcyDJtWR9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvZW1wdHktbGF5b3V0L2VtcHR5LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0IHtMYXlvdXRDb21wb25lbnQgYXMgybVlfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL2xheW91dC9sYXlvdXQuY29tcG9uZW50JztcbmV4cG9ydCB7TGF5b3V0IGFzIMm1aX0gZnJvbSAnLi9saWIvbW9kZWxzL2xheW91dCc7XG5leHBvcnQge0xheW91dFN0YXRlIGFzIMm1Yn0gZnJvbSAnLi9saWIvc3RhdGVzJztcbmV4cG9ydCB7TGF5b3V0U3RhdGUgYXMgybVmfSBmcm9tICcuL2xpYi9zdGF0ZXMvbGF5b3V0LnN0YXRlJzsiXX0=
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { AddNavigationElement, RemoveNavigationElementByName } from './layout.actions'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2FjdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLG9FQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9sYXlvdXQuYWN0aW9ucyc7XG4iXX0=
|
|||
@ -0,0 +1,33 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var AddNavigationElement = /** @class */ (function () { |
|||
function AddNavigationElement(payload) { |
|||
this.payload = payload; |
|||
} |
|||
AddNavigationElement.type = '[Layout] Add Navigation Element'; |
|||
return AddNavigationElement; |
|||
}()); |
|||
export { AddNavigationElement }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AddNavigationElement.type; |
|||
/** @type {?} */ |
|||
AddNavigationElement.prototype.payload; |
|||
} |
|||
var RemoveNavigationElementByName = /** @class */ (function () { |
|||
function RemoveNavigationElementByName(name) { |
|||
this.name = name; |
|||
} |
|||
RemoveNavigationElementByName.type = '[Layout] Remove Navigation ElementByName'; |
|||
return RemoveNavigationElementByName; |
|||
}()); |
|||
export { RemoveNavigationElementByName }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.type; |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.prototype.name; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmFjdGlvbnMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2FjdGlvbnMvbGF5b3V0LmFjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUVBO0lBRUUsOEJBQW1CLE9BQThEO1FBQTlELFlBQU8sR0FBUCxPQUFPLENBQXVEO0lBQUcsQ0FBQztJQURyRSx5QkFBSSxHQUFHLGlDQUFpQyxDQUFDO0lBRTNELDJCQUFDO0NBQUEsQUFIRCxJQUdDO1NBSFksb0JBQW9COzs7SUFDL0IsMEJBQXlEOztJQUM3Qyx1Q0FBcUU7O0FBR25GO0lBRUUsdUNBQW1CLElBQVk7UUFBWixTQUFJLEdBQUosSUFBSSxDQUFRO0lBQUcsQ0FBQztJQURuQixrQ0FBSSxHQUFHLDBDQUEwQyxDQUFDO0lBRXBFLG9DQUFDO0NBQUEsQUFIRCxJQUdDO1NBSFksNkJBQTZCOzs7SUFDeEMsbUNBQWtFOztJQUN0RCw2Q0FBbUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMYXlvdXQgfSBmcm9tICcuLi9tb2RlbHMvbGF5b3V0JztcblxuZXhwb3J0IGNsYXNzIEFkZE5hdmlnYXRpb25FbGVtZW50IHtcbiAgc3RhdGljIHJlYWRvbmx5IHR5cGUgPSAnW0xheW91dF0gQWRkIE5hdmlnYXRpb24gRWxlbWVudCc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBwYXlsb2FkOiBMYXlvdXQuTmF2aWdhdGlvbkVsZW1lbnQgfCBMYXlvdXQuTmF2aWdhdGlvbkVsZW1lbnRbXSkge31cbn1cblxuZXhwb3J0IGNsYXNzIFJlbW92ZU5hdmlnYXRpb25FbGVtZW50QnlOYW1lIHtcbiAgc3RhdGljIHJlYWRvbmx5IHR5cGUgPSAnW0xheW91dF0gUmVtb3ZlIE5hdmlnYXRpb24gRWxlbWVudEJ5TmFtZSc7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBuYW1lOiBzdHJpbmcpIHt9XG59XG4iXX0=
|
|||
@ -0,0 +1,24 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Component } from '@angular/core'; |
|||
var AccountLayoutComponent = /** @class */ (function () { |
|||
function AccountLayoutComponent() { |
|||
} |
|||
// required for dynamic component
|
|||
AccountLayoutComponent.type = "account" /* account */; |
|||
AccountLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-account', |
|||
template: "<router-outlet></router-outlet>\n" |
|||
}] } |
|||
]; |
|||
return AccountLayoutComponent; |
|||
}()); |
|||
export { AccountLayoutComponent }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AccountLayoutComponent.type; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1sYXlvdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2FjY291bnQtbGF5b3V0L2FjY291bnQtbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcxQztJQUFBO0lBT0EsQ0FBQzs7SUFEUSwyQkFBSSwyQkFBdUI7O2dCQU5uQyxTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLG9CQUFvQjtvQkFDOUIsNkNBQThDO2lCQUMvQzs7SUFJRCw2QkFBQztDQUFBLEFBUEQsSUFPQztTQUhZLHNCQUFzQjs7O0lBRWpDLDRCQUFrQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgZUxheW91dFR5cGUgfSBmcm9tICdAYWJwL25nLmNvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdhYnAtbGF5b3V0LWFjY291bnQnLFxuICB0ZW1wbGF0ZVVybDogJy4vYWNjb3VudC1sYXlvdXQuY29tcG9uZW50Lmh0bWwnLFxufSlcbmV4cG9ydCBjbGFzcyBBY2NvdW50TGF5b3V0Q29tcG9uZW50IHtcbiAgLy8gcmVxdWlyZWQgZm9yIGR5bmFtaWMgY29tcG9uZW50XG4gIHN0YXRpYyB0eXBlID0gZUxheW91dFR5cGUuYWNjb3VudDtcbn1cbiJdfQ==
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,23 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { Component } from '@angular/core'; |
|||
var EmptyLayoutComponent = /** @class */ (function () { |
|||
function EmptyLayoutComponent() { |
|||
} |
|||
EmptyLayoutComponent.type = "empty" /* empty */; |
|||
EmptyLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-empty', |
|||
template: "\n Layout-empty\n <router-outlet></router-outlet>\n " |
|||
}] } |
|||
]; |
|||
return EmptyLayoutComponent; |
|||
}()); |
|||
export { EmptyLayoutComponent }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
EmptyLayoutComponent.type; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1wdHktbGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9lbXB0eS1sYXlvdXQvZW1wdHktbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcxQztJQUFBO0lBU0EsQ0FBQztJQURRLHlCQUFJLHVCQUFxQjs7Z0JBUmpDLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsa0JBQWtCO29CQUM1QixRQUFRLEVBQUUsNkRBR1Q7aUJBQ0Y7O0lBR0QsMkJBQUM7Q0FBQSxBQVRELElBU0M7U0FGWSxvQkFBb0I7OztJQUMvQiwwQkFBZ0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IGVMYXlvdXRUeXBlIH0gZnJvbSAnQGFicC9uZy5jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYWJwLWxheW91dC1lbXB0eScsXG4gIHRlbXBsYXRlOiBgXG4gICAgTGF5b3V0LWVtcHR5XG4gICAgPHJvdXRlci1vdXRsZXQ+PC9yb3V0ZXItb3V0bGV0PlxuICBgLFxufSlcbmV4cG9ydCBjbGFzcyBFbXB0eUxheW91dENvbXBvbmVudCB7XG4gIHN0YXRpYyB0eXBlID0gZUxheW91dFR5cGUuZW1wdHk7XG59XG4iXX0=
|
|||
@ -0,0 +1,8 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { AccountLayoutComponent } from './account-layout/account-layout.component'; |
|||
export { ApplicationLayoutComponent } from './application-layout/application-layout.component'; |
|||
export { EmptyLayoutComponent } from './empty-layout/empty-layout.component'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHVDQUFjLDJDQUEyQyxDQUFDO0FBQzFELDJDQUFjLG1EQUFtRCxDQUFDO0FBQ2xFLHFDQUFjLHVDQUF1QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hY2NvdW50LWxheW91dC9hY2NvdW50LWxheW91dC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9hcHBsaWNhdGlvbi1sYXlvdXQvYXBwbGljYXRpb24tbGF5b3V0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2VtcHR5LWxheW91dC9lbXB0eS1sYXlvdXQuY29tcG9uZW50JztcbiJdfQ==
|
|||
@ -0,0 +1,47 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import { ConfigState } from '@abp/ng.core'; |
|||
import { slideFromBottom } from '@abp/ng.theme.shared'; |
|||
import { Component } from '@angular/core'; |
|||
import { Store } from '@ngxs/store'; |
|||
var LayoutComponent = /** @class */ (function () { |
|||
function LayoutComponent(store) { |
|||
this.store = store; |
|||
this.isCollapsed = true; |
|||
} |
|||
Object.defineProperty(LayoutComponent.prototype, "appInfo", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.store.selectSnapshot(ConfigState.getApplicationInfo); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
LayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: ' abp-layout', |
|||
template: "<nav class=\"navbar navbar-expand-md navbar-dark bg-dark fixed-top\" id=\"main-navbar\">\n <a class=\"navbar-brand\" routerLink=\"/\">\n <img *ngIf=\"appInfo.logoUrl; else appName\" [src]=\"appInfo.logoUrl\" [alt]=\"appInfo.name\" />\n </a>\n <button class=\"navbar-toggler\" type=\"button\" [attr.aria-expanded]=\"!isCollapsed\" (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"main-navbar-collapse\" [ngbCollapse]=\"isCollapsed\">\n <ng-content></ng-content>\n </div>\n</nav>\n\n<div\n [@routeAnimations]=\"outlet && outlet.activatedRoute && outlet.activatedRoute.routeConfig.path\"\n style=\"padding-top: 5rem;\"\n class=\"container\"\n>\n <router-outlet #outlet=\"outlet\"></router-outlet>\n</div>\n\n<abp-confirmation></abp-confirmation>\n<abp-toast></abp-toast>\n\n<ng-template #appName>\n {{ appInfo.name }}\n</ng-template>\n", |
|||
animations: [slideFromBottom] |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
LayoutComponent.ctorParameters = function () { return [ |
|||
{ type: Store } |
|||
]; }; |
|||
return LayoutComponent; |
|||
}()); |
|||
export { LayoutComponent }; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
LayoutComponent.prototype.isCollapsed; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
LayoutComponent.prototype.store; |
|||
} |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9sYXlvdXQvbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFVLFdBQVcsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdkQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRXBDO0lBWUUseUJBQW9CLEtBQVk7UUFBWixVQUFLLEdBQUwsS0FBSyxDQUFPO1FBTmhDLGdCQUFXLEdBQVksSUFBSSxDQUFDO0lBTU8sQ0FBQztJQUpwQyxzQkFBSSxvQ0FBTzs7OztRQUFYO1lBQ0UsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLGNBQWMsQ0FBQyxXQUFXLENBQUMsa0JBQWtCLENBQUMsQ0FBQztRQUNuRSxDQUFDOzs7T0FBQTs7Z0JBVkYsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSxhQUFhO29CQUN2QixnOEJBQXNDO29CQUN0QyxVQUFVLEVBQUUsQ0FBQyxlQUFlLENBQUM7aUJBQzlCOzs7O2dCQU5RLEtBQUs7O0lBZWQsc0JBQUM7Q0FBQSxBQWJELElBYUM7U0FSWSxlQUFlOzs7SUFDMUIsc0NBQTRCOzs7OztJQU1oQixnQ0FBb0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb25maWcsIENvbmZpZ1N0YXRlIH0gZnJvbSAnQGFicC9uZy5jb3JlJztcbmltcG9ydCB7IHNsaWRlRnJvbUJvdHRvbSB9IGZyb20gJ0BhYnAvbmcudGhlbWUuc2hhcmVkJztcbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgU3RvcmUgfSBmcm9tICdAbmd4cy9zdG9yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJyBhYnAtbGF5b3V0JyxcbiAgdGVtcGxhdGVVcmw6ICcuL2xheW91dC5jb21wb25lbnQuaHRtbCcsXG4gIGFuaW1hdGlvbnM6IFtzbGlkZUZyb21Cb3R0b21dLFxufSlcbmV4cG9ydCBjbGFzcyBMYXlvdXRDb21wb25lbnQge1xuICBpc0NvbGxhcHNlZDogYm9vbGVhbiA9IHRydWU7XG5cbiAgZ2V0IGFwcEluZm8oKTogQ29uZmlnLkFwcGxpY2F0aW9uIHtcbiAgICByZXR1cm4gdGhpcy5zdG9yZS5zZWxlY3RTbmFwc2hvdChDb25maWdTdGF0ZS5nZXRBcHBsaWNhdGlvbkluZm8pO1xuICB9XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBzdG9yZTogU3RvcmUpIHt9XG59XG4iXX0=
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export {} from './layout'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL21vZGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsZUFBYyxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xheW91dCc7XG4iXX0=
|
|||
@ -0,0 +1,30 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export var Layout; |
|||
(function (Layout) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
Layout.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.navigationElements; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function NavigationElement() { } |
|||
Layout.NavigationElement = NavigationElement; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.name; |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.element; |
|||
/** @type {?|undefined} */ |
|||
NavigationElement.prototype.order; |
|||
} |
|||
})(Layout || (Layout = {})); |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvbGF5b3V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLEtBQVcsTUFBTSxDQVV0QjtBQVZELFdBQWlCLE1BQU07Ozs7SUFDckIsb0JBRUM7Ozs7UUFEQyxtQ0FBd0M7Ozs7O0lBRzFDLGdDQUlDOzs7O1FBSEMsaUNBQWE7O1FBQ2Isb0NBQTBCOztRQUMxQixrQ0FBZTs7QUFFbkIsQ0FBQyxFQVZnQixNQUFNLEtBQU4sTUFBTSxRQVV0QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRlbXBsYXRlUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBuYW1lc3BhY2UgTGF5b3V0IHtcbiAgZXhwb3J0IGludGVyZmFjZSBTdGF0ZSB7XG4gICAgbmF2aWdhdGlvbkVsZW1lbnRzOiBOYXZpZ2F0aW9uRWxlbWVudFtdO1xuICB9XG5cbiAgZXhwb3J0IGludGVyZmFjZSBOYXZpZ2F0aW9uRWxlbWVudCB7XG4gICAgbmFtZTogc3RyaW5nO1xuICAgIGVsZW1lbnQ6IFRlbXBsYXRlUmVmPGFueT47XG4gICAgb3JkZXI/OiBudW1iZXI7XG4gIH1cbn1cbiJdfQ==
|
|||
@ -0,0 +1,6 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
export { LayoutState } from "./layout.state"; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnRoZW1lLmJhc2ljLyIsInNvdXJjZXMiOlsibGliL3N0YXRlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsNEJBQWMsZ0JBQWdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9sYXlvdXQuc3RhdGVcIjtcbiJdfQ==
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,42 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
import * as tslib_1 from "tslib"; |
|||
import { CoreModule } from '@abp/ng.core'; |
|||
import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { NgModule } from '@angular/core'; |
|||
import { NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|||
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|||
import { NgxsModule } from '@ngxs/store'; |
|||
import { ToastModule } from 'primeng/toast'; |
|||
import { AccountLayoutComponent } from './components/account-layout/account-layout.component'; |
|||
import { ApplicationLayoutComponent } from './components/application-layout/application-layout.component'; |
|||
import { EmptyLayoutComponent } from './components/empty-layout/empty-layout.component'; |
|||
import { LayoutComponent } from './components/layout/layout.component'; |
|||
import { LayoutState } from './states/layout.state'; |
|||
/** @type {?} */ |
|||
export var LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent]; |
|||
var ThemeBasicModule = /** @class */ (function () { |
|||
function ThemeBasicModule() { |
|||
} |
|||
ThemeBasicModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: tslib_1.__spread(LAYOUTS, [LayoutComponent]), |
|||
imports: [ |
|||
CoreModule, |
|||
ThemeSharedModule, |
|||
NgbCollapseModule, |
|||
NgbDropdownModule, |
|||
ToastModule, |
|||
NgxValidateCoreModule, |
|||
NgxsModule.forFeature([LayoutState]), |
|||
], |
|||
exports: tslib_1.__spread(LAYOUTS), |
|||
entryComponents: tslib_1.__spread(LAYOUTS), |
|||
},] } |
|||
]; |
|||
return ThemeBasicModule; |
|||
}()); |
|||
export { ThemeBasicModule }; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtYmFzaWMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5iYXNpYy8iLCJzb3VyY2VzIjpbImxpYi90aGVtZS1iYXNpYy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQzFDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGlCQUFpQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDbEYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDM0QsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHNEQUFzRCxDQUFDO0FBQzlGLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLDhEQUE4RCxDQUFDO0FBQzFHLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUN2RSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7O0FBRXBELE1BQU0sS0FBTyxPQUFPLEdBQUcsQ0FBQywwQkFBMEIsRUFBRSxzQkFBc0IsRUFBRSxvQkFBb0IsQ0FBQztBQUVqRztJQUFBO0lBYytCLENBQUM7O2dCQWQvQixRQUFRLFNBQUM7b0JBQ1IsWUFBWSxtQkFBTSxPQUFPLEdBQUUsZUFBZSxFQUFDO29CQUMzQyxPQUFPLEVBQUU7d0JBQ1AsVUFBVTt3QkFDVixpQkFBaUI7d0JBQ2pCLGlCQUFpQjt3QkFDakIsaUJBQWlCO3dCQUNqQixXQUFXO3dCQUNYLHFCQUFxQjt3QkFDckIsVUFBVSxDQUFDLFVBQVUsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxDQUFDO3FCQUNyQztvQkFDRCxPQUFPLG1CQUFNLE9BQU8sQ0FBQztvQkFDckIsZUFBZSxtQkFBTSxPQUFPLENBQUM7aUJBQzlCOztJQUM4Qix1QkFBQztDQUFBLEFBZGhDLElBY2dDO1NBQW5CLGdCQUFnQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvcmVNb2R1bGUgfSBmcm9tICdAYWJwL25nLmNvcmUnO1xuaW1wb3J0IHsgVGhlbWVTaGFyZWRNb2R1bGUgfSBmcm9tICdAYWJwL25nLnRoZW1lLnNoYXJlZCc7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTmdiQ29sbGFwc2VNb2R1bGUsIE5nYkRyb3Bkb3duTW9kdWxlIH0gZnJvbSAnQG5nLWJvb3RzdHJhcC9uZy1ib290c3RyYXAnO1xuaW1wb3J0IHsgTmd4VmFsaWRhdGVDb3JlTW9kdWxlIH0gZnJvbSAnQG5neC12YWxpZGF0ZS9jb3JlJztcbmltcG9ydCB7IE5neHNNb2R1bGUgfSBmcm9tICdAbmd4cy9zdG9yZSc7XG5pbXBvcnQgeyBUb2FzdE1vZHVsZSB9IGZyb20gJ3ByaW1lbmcvdG9hc3QnO1xuaW1wb3J0IHsgQWNjb3VudExheW91dENvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy9hY2NvdW50LWxheW91dC9hY2NvdW50LWxheW91dC5jb21wb25lbnQnO1xuaW1wb3J0IHsgQXBwbGljYXRpb25MYXlvdXRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvYXBwbGljYXRpb24tbGF5b3V0L2FwcGxpY2F0aW9uLWxheW91dC5jb21wb25lbnQnO1xuaW1wb3J0IHsgRW1wdHlMYXlvdXRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvZW1wdHktbGF5b3V0L2VtcHR5LWxheW91dC5jb21wb25lbnQnO1xuaW1wb3J0IHsgTGF5b3V0Q29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL2xheW91dC9sYXlvdXQuY29tcG9uZW50JztcbmltcG9ydCB7IExheW91dFN0YXRlIH0gZnJvbSAnLi9zdGF0ZXMvbGF5b3V0LnN0YXRlJztcblxuZXhwb3J0IGNvbnN0IExBWU9VVFMgPSBbQXBwbGljYXRpb25MYXlvdXRDb21wb25lbnQsIEFjY291bnRMYXlvdXRDb21wb25lbnQsIEVtcHR5TGF5b3V0Q29tcG9uZW50XTtcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbLi4uTEFZT1VUUywgTGF5b3V0Q29tcG9uZW50XSxcbiAgaW1wb3J0czogW1xuICAgIENvcmVNb2R1bGUsXG4gICAgVGhlbWVTaGFyZWRNb2R1bGUsXG4gICAgTmdiQ29sbGFwc2VNb2R1bGUsXG4gICAgTmdiRHJvcGRvd25Nb2R1bGUsXG4gICAgVG9hc3RNb2R1bGUsXG4gICAgTmd4VmFsaWRhdGVDb3JlTW9kdWxlLFxuICAgIE5neHNNb2R1bGUuZm9yRmVhdHVyZShbTGF5b3V0U3RhdGVdKSxcbiAgXSxcbiAgZXhwb3J0czogWy4uLkxBWU9VVFNdLFxuICBlbnRyeUNvbXBvbmVudHM6IFsuLi5MQVlPVVRTXSxcbn0pXG5leHBvcnQgY2xhc3MgVGhlbWVCYXNpY01vZHVsZSB7fVxuIl19
|
|||
@ -0,0 +1,13 @@ |
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/* |
|||
* Public API Surface of theme-basic |
|||
*/ |
|||
export { LAYOUTS, ThemeBasicModule } from './lib/theme-basic.module'; |
|||
export { AddNavigationElement, RemoveNavigationElementByName } from './lib/actions'; |
|||
export { AccountLayoutComponent, ApplicationLayoutComponent, EmptyLayoutComponent } from './lib/components'; |
|||
export {} from './lib/models'; |
|||
export { LayoutState } from './lib/states'; |
|||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYnAvbmcudGhlbWUuYmFzaWMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSwwQ0FBYywwQkFBMEIsQ0FBQztBQUN6QyxvRUFBYyxlQUFlLENBQUM7QUFDOUIseUZBQWMsa0JBQWtCLENBQUM7QUFDakMsZUFBYyxjQUFjLENBQUM7QUFDN0IsNEJBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB0aGVtZS1iYXNpY1xuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3RoZW1lLWJhc2ljLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hY3Rpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbXBvbmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kZWxzJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3N0YXRlcyc7XG4iXX0=
|
|||
@ -0,0 +1,585 @@ |
|||
import { SessionState, takeUntilDestroy, SetLanguage, GetAppConfiguration, ConfigState, CoreModule } from '@abp/ng.core'; |
|||
import { slideFromBottom, ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { Component, ViewChild, TemplateRef, ViewChildren, NgModule } from '@angular/core'; |
|||
import { NgbDropdown, NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|||
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|||
import { Action, Selector, State, Store, Select, NgxsModule } from '@ngxs/store'; |
|||
import { ToastModule } from 'primeng/toast'; |
|||
import { __decorate, __metadata } from 'tslib'; |
|||
import { Navigate, RouterState } from '@ngxs/router-plugin'; |
|||
import { OAuthService } from 'angular-oauth2-oidc'; |
|||
import compare from 'just-compare'; |
|||
import { fromEvent, Observable } from 'rxjs'; |
|||
import { map, filter, debounceTime } from 'rxjs/operators'; |
|||
import snq from 'snq'; |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class AccountLayoutComponent { |
|||
} |
|||
// required for dynamic component
|
|||
AccountLayoutComponent.type = "account" /* account */; |
|||
AccountLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-account', |
|||
template: "<router-outlet></router-outlet>\n" |
|||
}] } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AccountLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class AddNavigationElement { |
|||
/** |
|||
* @param {?} payload |
|||
*/ |
|||
constructor(payload) { |
|||
this.payload = payload; |
|||
} |
|||
} |
|||
AddNavigationElement.type = '[Layout] Add Navigation Element'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AddNavigationElement.type; |
|||
/** @type {?} */ |
|||
AddNavigationElement.prototype.payload; |
|||
} |
|||
class RemoveNavigationElementByName { |
|||
/** |
|||
* @param {?} name |
|||
*/ |
|||
constructor(name) { |
|||
this.name = name; |
|||
} |
|||
} |
|||
RemoveNavigationElementByName.type = '[Layout] Remove Navigation ElementByName'; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.type; |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.prototype.name; |
|||
} |
|||
|
|||
/** |
|||
* @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 |
|||
*/ |
|||
let LayoutState = class LayoutState { |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
static getNavigationElements({ navigationElements }) { |
|||
return navigationElements; |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
layoutAddAction({ getState, patchState }, { payload = [] }) { |
|||
let { navigationElements } = getState(); |
|||
if (!Array.isArray(payload)) { |
|||
payload = [payload]; |
|||
} |
|||
if (navigationElements.length) { |
|||
payload = snq((/** |
|||
* @return {?} |
|||
*/ |
|||
() => ((/** @type {?} */ (payload))).filter((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
({ name }) => navigationElements.findIndex((/** |
|||
* @param {?} nav |
|||
* @return {?} |
|||
*/ |
|||
nav => nav.name === name)) < 0))), []); |
|||
} |
|||
if (!payload.length) |
|||
return; |
|||
navigationElements = [...navigationElements, ...payload] |
|||
.map((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
element => (Object.assign({}, element, { order: element.order || 99 })))) |
|||
.sort((/** |
|||
* @param {?} a |
|||
* @param {?} b |
|||
* @return {?} |
|||
*/ |
|||
(a, b) => a.order - b.order)); |
|||
return patchState({ |
|||
navigationElements, |
|||
}); |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
layoutRemoveAction({ getState, patchState }, { name }) { |
|||
let { navigationElements } = getState(); |
|||
/** @type {?} */ |
|||
const index = navigationElements.findIndex((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
element => element.name === name)); |
|||
if (index > -1) { |
|||
navigationElements = navigationElements.splice(index, 1); |
|||
} |
|||
return patchState({ |
|||
navigationElements, |
|||
}); |
|||
} |
|||
}; |
|||
__decorate([ |
|||
Action(AddNavigationElement), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, AddNavigationElement]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutAddAction", null); |
|||
__decorate([ |
|||
Action(RemoveNavigationElementByName), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, RemoveNavigationElementByName]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutRemoveAction", null); |
|||
__decorate([ |
|||
Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", Array) |
|||
], LayoutState, "getNavigationElements", null); |
|||
LayoutState = __decorate([ |
|||
State({ |
|||
name: 'LayoutState', |
|||
defaults: (/** @type {?} */ ({ navigationElements: [] })), |
|||
}) |
|||
], LayoutState); |
|||
|
|||
/** |
|||
* @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 |
|||
*/ |
|||
class ApplicationLayoutComponent { |
|||
/** |
|||
* @param {?} store |
|||
* @param {?} oauthService |
|||
*/ |
|||
constructor(store, oauthService) { |
|||
this.store = store; |
|||
this.oauthService = oauthService; |
|||
this.isOpenChangePassword = false; |
|||
this.isOpenProfile = false; |
|||
this.rightPartElements = []; |
|||
this.trackByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
(_, item) => item.name); |
|||
this.trackElementByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
(_, element) => element); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get visibleRoutes$() { |
|||
return this.routes$.pipe(map((/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
routes => getVisibleRoutes(routes)))); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get defaultLanguage$() { |
|||
return this.languages$.pipe(map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
languages => snq((/** |
|||
* @return {?} |
|||
*/ |
|||
() => languages.find((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
lang => lang.cultureName === this.selectedLangCulture)).displayName))), '')); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get dropdownLanguages$() { |
|||
return this.languages$.pipe(map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
languages => snq((/** |
|||
* @return {?} |
|||
*/ |
|||
() => languages.filter((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
lang => lang.cultureName !== this.selectedLangCulture))))), [])); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get selectedLangCulture() { |
|||
return this.store.selectSnapshot(SessionState.getLanguage); |
|||
} |
|||
/** |
|||
* @private |
|||
* @return {?} |
|||
*/ |
|||
checkWindowWidth() { |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
() => { |
|||
this.navbarRootDropdowns.forEach((/** |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
item => { |
|||
item.close(); |
|||
})); |
|||
if (window.innerWidth < 768) { |
|||
this.isDropdownChildDynamic = false; |
|||
} |
|||
else { |
|||
this.isDropdownChildDynamic = true; |
|||
} |
|||
}), 0); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ngAfterViewInit() { |
|||
/** @type {?} */ |
|||
const navigations = this.store.selectSnapshot(LayoutState.getNavigationElements).map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
({ name }) => name)); |
|||
if (navigations.indexOf('LanguageRef') < 0) { |
|||
this.store.dispatch(new AddNavigationElement([ |
|||
{ element: this.languageRef, order: 4, name: 'LanguageRef' }, |
|||
{ element: this.currentUserRef, order: 5, name: 'CurrentUserRef' }, |
|||
])); |
|||
} |
|||
this.navElements$ |
|||
.pipe(map((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
elements => elements.map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
({ element }) => element)))), filter((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
elements => !compare(elements, this.rightPartElements))), takeUntilDestroy(this)) |
|||
.subscribe((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
elements => { |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
() => (this.rightPartElements = elements)), 0); |
|||
})); |
|||
this.checkWindowWidth(); |
|||
fromEvent(window, 'resize') |
|||
.pipe(takeUntilDestroy(this), debounceTime(250)) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
() => { |
|||
this.checkWindowWidth(); |
|||
})); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ngOnDestroy() { } |
|||
/** |
|||
* @param {?} cultureName |
|||
* @return {?} |
|||
*/ |
|||
onChangeLang(cultureName) { |
|||
this.store.dispatch(new SetLanguage(cultureName)); |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
logout() { |
|||
this.oauthService.logOut(); |
|||
this.store.dispatch(new Navigate(['/'], null, { |
|||
state: { redirectUrl: this.store.selectSnapshot(RouterState).state.url }, |
|||
})); |
|||
this.store.dispatch(new GetAppConfiguration()); |
|||
} |
|||
} |
|||
// required for dynamic component
|
|||
ApplicationLayoutComponent.type = "application" /* application */; |
|||
ApplicationLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-application', |
|||
template: "<abp-layout>\n <ul class=\"navbar-nav mr-auto\">\n <ng-container\n *ngFor=\"let route of visibleRoutes$ | async; trackBy: trackByFn\"\n [ngTemplateOutlet]=\"route?.children?.length ? dropdownLink : defaultLink\"\n [ngTemplateOutletContext]=\"{ $implicit: route }\"\n >\n </ng-container>\n\n <ng-template #defaultLink let-route>\n <li class=\"nav-item\" [abpPermission]=\"route.requiredPolicy\">\n <a class=\"nav-link\" [routerLink]=\"[route.url]\">{{ route.name | abpLocalization }}</a>\n </li>\n </ng-template>\n\n <ng-template #dropdownLink let-route>\n <li\n #navbarRootDropdown\n ngbDropdown\n [abpPermission]=\"route.requiredPolicy\"\n [abpVisibility]=\"routeContainer\"\n class=\"nav-item dropdown pointer\"\n display=\"static\"\n >\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle pointer\" data-toggle=\"dropdown\">\n {{ route.name | abpLocalization }}\n </a>\n <div #routeContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n #forTemplate\n ngFor\n [ngForOf]=\"route.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </li>\n </ng-template>\n\n <ng-template #childWrapper let-child>\n <ng-template\n [ngTemplateOutlet]=\"child?.children?.length ? dropdownChild : defaultChild\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"\n ></ng-template>\n </ng-template>\n\n <ng-template #defaultChild let-child>\n <div class=\"dropdown-submenu\" [abpPermission]=\"child.requiredPolicy\">\n <a class=\"dropdown-item py-2 px-2\" [routerLink]=\"[child.url]\">\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}</a\n >\n </div>\n </ng-template>\n\n <ng-template #dropdownChild let-child>\n <div\n [abpVisibility]=\"childrenContainer\"\n class=\"dropdown-submenu pointer\"\n ngbDropdown\n [display]=\"isDropdownChildDynamic ? 'dynamic' : 'static'\"\n placement=\"right-top\"\n [abpPermission]=\"child.requiredPolicy\"\n >\n <div ngbDropdownToggle [class.dropdown-toggle]=\"false\" class=\"pointer\">\n <a\n abpEllipsis=\"210px\"\n [abpEllipsisEnabled]=\"isDropdownChildDynamic\"\n role=\"button\"\n class=\"btn d-block text-left py-2 px-2 dropdown-toggle\"\n >\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}\n </a>\n </div>\n <div #childrenContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n ngFor\n [ngForOf]=\"child.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </div>\n </ng-template>\n </ul>\n\n <ul class=\"navbar-nav ml-auto\">\n <ng-container\n *ngFor=\"let element of rightPartElements; trackBy: trackElementByFn\"\n [ngTemplateOutlet]=\"element\"\n ></ng-container>\n </ul>\n</abp-layout>\n\n<ng-template #language>\n <li class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ defaultLanguage$ | async }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a\n *ngFor=\"let lang of dropdownLanguages$ | async\"\n class=\"dropdown-item\"\n (click)=\"onChangeLang(lang.cultureName)\"\n >{{ lang?.displayName }}</a\n >\n </div>\n </li>\n</ng-template>\n\n<ng-template #currentUser>\n <li *ngIf=\"(currentUser$ | async)?.isAuthenticated\" class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ (currentUser$ | async)?.userName }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a class=\"dropdown-item pointer\" (click)=\"isOpenChangePassword = true\">{{\n 'AbpUi::ChangePassword' | abpLocalization\n }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"isOpenProfile = true\">{{ 'AbpUi::PersonalInfo' | abpLocalization }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"logout()\">{{ 'AbpUi::Logout' | abpLocalization }}</a>\n </div>\n </li>\n\n <abp-change-password [(visible)]=\"isOpenChangePassword\"></abp-change-password>\n\n <abp-profile [(visible)]=\"isOpenProfile\"></abp-profile>\n</ng-template>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
ApplicationLayoutComponent.ctorParameters = () => [ |
|||
{ type: Store }, |
|||
{ type: OAuthService } |
|||
]; |
|||
ApplicationLayoutComponent.propDecorators = { |
|||
currentUserRef: [{ type: ViewChild, args: ['currentUser', { static: false, read: TemplateRef },] }], |
|||
languageRef: [{ type: ViewChild, args: ['language', { static: false, read: TemplateRef },] }], |
|||
navbarRootDropdowns: [{ type: ViewChildren, args: ['navbarRootDropdown', { read: NgbDropdown },] }] |
|||
}; |
|||
__decorate([ |
|||
Select(ConfigState.getOne('routes')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "routes$", void 0); |
|||
__decorate([ |
|||
Select(ConfigState.getOne('currentUser')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "currentUser$", void 0); |
|||
__decorate([ |
|||
Select(ConfigState.getDeep('localization.languages')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "languages$", void 0); |
|||
__decorate([ |
|||
Select(LayoutState.getNavigationElements), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "navElements$", void 0); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.type; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.routes$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUser$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languages$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navElements$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUserRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languageRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navbarRootDropdowns; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenChangePassword; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenProfile; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isDropdownChildDynamic; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.rightPartElements; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackByFn; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackElementByFn; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.store; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.oauthService; |
|||
} |
|||
/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
function getVisibleRoutes(routes) { |
|||
return routes.reduce((/** |
|||
* @param {?} acc |
|||
* @param {?} val |
|||
* @return {?} |
|||
*/ |
|||
(acc, val) => { |
|||
if (val.invisible) |
|||
return acc; |
|||
if (val.children && val.children.length) { |
|||
val.children = getVisibleRoutes(val.children); |
|||
} |
|||
return [...acc, val]; |
|||
}), []); |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class EmptyLayoutComponent { |
|||
} |
|||
EmptyLayoutComponent.type = "empty" /* empty */; |
|||
EmptyLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-empty', |
|||
template: ` |
|||
Layout-empty |
|||
<router-outlet></router-outlet> |
|||
` |
|||
}] } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
EmptyLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
class LayoutComponent { |
|||
/** |
|||
* @param {?} store |
|||
*/ |
|||
constructor(store) { |
|||
this.store = store; |
|||
this.isCollapsed = true; |
|||
} |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
get appInfo() { |
|||
return this.store.selectSnapshot(ConfigState.getApplicationInfo); |
|||
} |
|||
} |
|||
LayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: ' abp-layout', |
|||
template: "<nav class=\"navbar navbar-expand-md navbar-dark bg-dark fixed-top\" id=\"main-navbar\">\n <a class=\"navbar-brand\" routerLink=\"/\">\n <img *ngIf=\"appInfo.logoUrl; else appName\" [src]=\"appInfo.logoUrl\" [alt]=\"appInfo.name\" />\n </a>\n <button class=\"navbar-toggler\" type=\"button\" [attr.aria-expanded]=\"!isCollapsed\" (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"main-navbar-collapse\" [ngbCollapse]=\"isCollapsed\">\n <ng-content></ng-content>\n </div>\n</nav>\n\n<div\n [@routeAnimations]=\"outlet && outlet.activatedRoute && outlet.activatedRoute.routeConfig.path\"\n style=\"padding-top: 5rem;\"\n class=\"container\"\n>\n <router-outlet #outlet=\"outlet\"></router-outlet>\n</div>\n\n<abp-confirmation></abp-confirmation>\n<abp-toast></abp-toast>\n\n<ng-template #appName>\n {{ appInfo.name }}\n</ng-template>\n", |
|||
animations: [slideFromBottom] |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
LayoutComponent.ctorParameters = () => [ |
|||
{ type: Store } |
|||
]; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
LayoutComponent.prototype.isCollapsed; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
LayoutComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** @type {?} */ |
|||
const LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent]; |
|||
class ThemeBasicModule { |
|||
} |
|||
ThemeBasicModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: [...LAYOUTS, LayoutComponent], |
|||
imports: [ |
|||
CoreModule, |
|||
ThemeSharedModule, |
|||
NgbCollapseModule, |
|||
NgbDropdownModule, |
|||
ToastModule, |
|||
NgxValidateCoreModule, |
|||
NgxsModule.forFeature([LayoutState]), |
|||
], |
|||
exports: [...LAYOUTS], |
|||
entryComponents: [...LAYOUTS], |
|||
},] } |
|||
]; |
|||
|
|||
/** |
|||
* @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 Layout; |
|||
(function (Layout) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
Layout.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.navigationElements; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function NavigationElement() { } |
|||
Layout.NavigationElement = NavigationElement; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.name; |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.element; |
|||
/** @type {?|undefined} */ |
|||
NavigationElement.prototype.order; |
|||
} |
|||
})(Layout || (Layout = {})); |
|||
|
|||
/** |
|||
* @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 |
|||
*/ |
|||
|
|||
export { AccountLayoutComponent, AddNavigationElement, ApplicationLayoutComponent, EmptyLayoutComponent, LAYOUTS, LayoutState, RemoveNavigationElementByName, ThemeBasicModule, ApplicationLayoutComponent as ɵa, LayoutState as ɵb, AccountLayoutComponent as ɵc, EmptyLayoutComponent as ɵd, LayoutComponent as ɵe, LayoutState as ɵf, AddNavigationElement as ɵg, RemoveNavigationElementByName as ɵh }; |
|||
//# sourceMappingURL=abp-ng.theme.basic.js.map
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,655 @@ |
|||
import { __spread, __assign, __decorate, __metadata } from 'tslib'; |
|||
import { SessionState, takeUntilDestroy, SetLanguage, GetAppConfiguration, ConfigState, CoreModule } from '@abp/ng.core'; |
|||
import { slideFromBottom, ThemeSharedModule } from '@abp/ng.theme.shared'; |
|||
import { Component, ViewChild, TemplateRef, ViewChildren, NgModule } from '@angular/core'; |
|||
import { NgbDropdown, NgbCollapseModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'; |
|||
import { NgxValidateCoreModule } from '@ngx-validate/core'; |
|||
import { Action, Selector, State, Store, Select, NgxsModule } from '@ngxs/store'; |
|||
import { ToastModule } from 'primeng/toast'; |
|||
import { Navigate, RouterState } from '@ngxs/router-plugin'; |
|||
import { OAuthService } from 'angular-oauth2-oidc'; |
|||
import compare from 'just-compare'; |
|||
import { fromEvent, Observable } from 'rxjs'; |
|||
import { map, filter, debounceTime } from 'rxjs/operators'; |
|||
import snq from 'snq'; |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var AccountLayoutComponent = /** @class */ (function () { |
|||
function AccountLayoutComponent() { |
|||
} |
|||
// required for dynamic component
|
|||
AccountLayoutComponent.type = "account" /* account */; |
|||
AccountLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-account', |
|||
template: "<router-outlet></router-outlet>\n" |
|||
}] } |
|||
]; |
|||
return AccountLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AccountLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var AddNavigationElement = /** @class */ (function () { |
|||
function AddNavigationElement(payload) { |
|||
this.payload = payload; |
|||
} |
|||
AddNavigationElement.type = '[Layout] Add Navigation Element'; |
|||
return AddNavigationElement; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
AddNavigationElement.type; |
|||
/** @type {?} */ |
|||
AddNavigationElement.prototype.payload; |
|||
} |
|||
var RemoveNavigationElementByName = /** @class */ (function () { |
|||
function RemoveNavigationElementByName(name) { |
|||
this.name = name; |
|||
} |
|||
RemoveNavigationElementByName.type = '[Layout] Remove Navigation ElementByName'; |
|||
return RemoveNavigationElementByName; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.type; |
|||
/** @type {?} */ |
|||
RemoveNavigationElementByName.prototype.name; |
|||
} |
|||
|
|||
/** |
|||
* @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 LayoutState = /** @class */ (function () { |
|||
function LayoutState() { |
|||
} |
|||
/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.getNavigationElements = /** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var navigationElements = _a.navigationElements; |
|||
return navigationElements; |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.prototype.layoutAddAction = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var getState = _a.getState, patchState = _a.patchState; |
|||
var _c = _b.payload, payload = _c === void 0 ? [] : _c; |
|||
var navigationElements = getState().navigationElements; |
|||
if (!Array.isArray(payload)) { |
|||
payload = [payload]; |
|||
} |
|||
if (navigationElements.length) { |
|||
payload = snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return ((/** @type {?} */ (payload))).filter((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var name = _a.name; |
|||
return navigationElements.findIndex((/** |
|||
* @param {?} nav |
|||
* @return {?} |
|||
*/ |
|||
function (nav) { return nav.name === name; })) < 0; |
|||
})); |
|||
}), []); |
|||
} |
|||
if (!payload.length) |
|||
return; |
|||
navigationElements = __spread(navigationElements, payload).map((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (element) { return (__assign({}, element, { order: element.order || 99 })); })) |
|||
.sort((/** |
|||
* @param {?} a |
|||
* @param {?} b |
|||
* @return {?} |
|||
*/ |
|||
function (a, b) { return a.order - b.order; })); |
|||
return patchState({ |
|||
navigationElements: navigationElements, |
|||
}); |
|||
}; |
|||
/** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
LayoutState.prototype.layoutRemoveAction = /** |
|||
* @param {?} __0 |
|||
* @param {?} __1 |
|||
* @return {?} |
|||
*/ |
|||
function (_a, _b) { |
|||
var getState = _a.getState, patchState = _a.patchState; |
|||
var name = _b.name; |
|||
var navigationElements = getState().navigationElements; |
|||
/** @type {?} */ |
|||
var index = navigationElements.findIndex((/** |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (element) { return element.name === name; })); |
|||
if (index > -1) { |
|||
navigationElements = navigationElements.splice(index, 1); |
|||
} |
|||
return patchState({ |
|||
navigationElements: navigationElements, |
|||
}); |
|||
}; |
|||
__decorate([ |
|||
Action(AddNavigationElement), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, AddNavigationElement]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutAddAction", null); |
|||
__decorate([ |
|||
Action(RemoveNavigationElementByName), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object, RemoveNavigationElementByName]), |
|||
__metadata("design:returntype", void 0) |
|||
], LayoutState.prototype, "layoutRemoveAction", null); |
|||
__decorate([ |
|||
Selector(), |
|||
__metadata("design:type", Function), |
|||
__metadata("design:paramtypes", [Object]), |
|||
__metadata("design:returntype", Array) |
|||
], LayoutState, "getNavigationElements", null); |
|||
LayoutState = __decorate([ |
|||
State({ |
|||
name: 'LayoutState', |
|||
defaults: (/** @type {?} */ ({ navigationElements: [] })), |
|||
}) |
|||
], LayoutState); |
|||
return LayoutState; |
|||
}()); |
|||
|
|||
/** |
|||
* @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 ApplicationLayoutComponent = /** @class */ (function () { |
|||
function ApplicationLayoutComponent(store, oauthService) { |
|||
this.store = store; |
|||
this.oauthService = oauthService; |
|||
this.isOpenChangePassword = false; |
|||
this.isOpenProfile = false; |
|||
this.rightPartElements = []; |
|||
this.trackByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
function (_, item) { return item.name; }); |
|||
this.trackElementByFn = (/** |
|||
* @param {?} _ |
|||
* @param {?} element |
|||
* @return {?} |
|||
*/ |
|||
function (_, element) { return element; }); |
|||
} |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "visibleRoutes$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.routes$.pipe(map((/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
function (routes) { return getVisibleRoutes(routes); }))); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "defaultLanguage$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
return this.languages$.pipe(map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
function (languages) { return snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return languages.find((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
function (lang) { return lang.cultureName === _this.selectedLangCulture; })).displayName; })); }), '')); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "dropdownLanguages$", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
return this.languages$.pipe(map((/** |
|||
* @param {?} languages |
|||
* @return {?} |
|||
*/ |
|||
function (languages) { return snq((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return languages.filter((/** |
|||
* @param {?} lang |
|||
* @return {?} |
|||
*/ |
|||
function (lang) { return lang.cultureName !== _this.selectedLangCulture; })); })); }), [])); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
Object.defineProperty(ApplicationLayoutComponent.prototype, "selectedLangCulture", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.store.selectSnapshot(SessionState.getLanguage); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
/** |
|||
* @private |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.checkWindowWidth = /** |
|||
* @private |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.navbarRootDropdowns.forEach((/** |
|||
* @param {?} item |
|||
* @return {?} |
|||
*/ |
|||
function (item) { |
|||
item.close(); |
|||
})); |
|||
if (window.innerWidth < 768) { |
|||
_this.isDropdownChildDynamic = false; |
|||
} |
|||
else { |
|||
_this.isDropdownChildDynamic = true; |
|||
} |
|||
}), 0); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.ngAfterViewInit = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
var _this = this; |
|||
/** @type {?} */ |
|||
var navigations = this.store.selectSnapshot(LayoutState.getNavigationElements).map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var name = _a.name; |
|||
return name; |
|||
})); |
|||
if (navigations.indexOf('LanguageRef') < 0) { |
|||
this.store.dispatch(new AddNavigationElement([ |
|||
{ element: this.languageRef, order: 4, name: 'LanguageRef' }, |
|||
{ element: this.currentUserRef, order: 5, name: 'CurrentUserRef' }, |
|||
])); |
|||
} |
|||
this.navElements$ |
|||
.pipe(map((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { return elements.map((/** |
|||
* @param {?} __0 |
|||
* @return {?} |
|||
*/ |
|||
function (_a) { |
|||
var element = _a.element; |
|||
return element; |
|||
})); })), filter((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { return !compare(elements, _this.rightPartElements); })), takeUntilDestroy(this)) |
|||
.subscribe((/** |
|||
* @param {?} elements |
|||
* @return {?} |
|||
*/ |
|||
function (elements) { |
|||
setTimeout((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { return (_this.rightPartElements = elements); }), 0); |
|||
})); |
|||
this.checkWindowWidth(); |
|||
fromEvent(window, 'resize') |
|||
.pipe(takeUntilDestroy(this), debounceTime(250)) |
|||
.subscribe((/** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
_this.checkWindowWidth(); |
|||
})); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.ngOnDestroy = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { }; |
|||
/** |
|||
* @param {?} cultureName |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.onChangeLang = /** |
|||
* @param {?} cultureName |
|||
* @return {?} |
|||
*/ |
|||
function (cultureName) { |
|||
this.store.dispatch(new SetLanguage(cultureName)); |
|||
}; |
|||
/** |
|||
* @return {?} |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.logout = /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
this.oauthService.logOut(); |
|||
this.store.dispatch(new Navigate(['/'], null, { |
|||
state: { redirectUrl: this.store.selectSnapshot(RouterState).state.url }, |
|||
})); |
|||
this.store.dispatch(new GetAppConfiguration()); |
|||
}; |
|||
// required for dynamic component
|
|||
ApplicationLayoutComponent.type = "application" /* application */; |
|||
ApplicationLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-application', |
|||
template: "<abp-layout>\n <ul class=\"navbar-nav mr-auto\">\n <ng-container\n *ngFor=\"let route of visibleRoutes$ | async; trackBy: trackByFn\"\n [ngTemplateOutlet]=\"route?.children?.length ? dropdownLink : defaultLink\"\n [ngTemplateOutletContext]=\"{ $implicit: route }\"\n >\n </ng-container>\n\n <ng-template #defaultLink let-route>\n <li class=\"nav-item\" [abpPermission]=\"route.requiredPolicy\">\n <a class=\"nav-link\" [routerLink]=\"[route.url]\">{{ route.name | abpLocalization }}</a>\n </li>\n </ng-template>\n\n <ng-template #dropdownLink let-route>\n <li\n #navbarRootDropdown\n ngbDropdown\n [abpPermission]=\"route.requiredPolicy\"\n [abpVisibility]=\"routeContainer\"\n class=\"nav-item dropdown pointer\"\n display=\"static\"\n >\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle pointer\" data-toggle=\"dropdown\">\n {{ route.name | abpLocalization }}\n </a>\n <div #routeContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n #forTemplate\n ngFor\n [ngForOf]=\"route.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </li>\n </ng-template>\n\n <ng-template #childWrapper let-child>\n <ng-template\n [ngTemplateOutlet]=\"child?.children?.length ? dropdownChild : defaultChild\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"\n ></ng-template>\n </ng-template>\n\n <ng-template #defaultChild let-child>\n <div class=\"dropdown-submenu\" [abpPermission]=\"child.requiredPolicy\">\n <a class=\"dropdown-item py-2 px-2\" [routerLink]=\"[child.url]\">\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}</a\n >\n </div>\n </ng-template>\n\n <ng-template #dropdownChild let-child>\n <div\n [abpVisibility]=\"childrenContainer\"\n class=\"dropdown-submenu pointer\"\n ngbDropdown\n [display]=\"isDropdownChildDynamic ? 'dynamic' : 'static'\"\n placement=\"right-top\"\n [abpPermission]=\"child.requiredPolicy\"\n >\n <div ngbDropdownToggle [class.dropdown-toggle]=\"false\" class=\"pointer\">\n <a\n abpEllipsis=\"210px\"\n [abpEllipsisEnabled]=\"isDropdownChildDynamic\"\n role=\"button\"\n class=\"btn d-block text-left py-2 px-2 dropdown-toggle\"\n >\n <i *ngIf=\"child.iconClass\" [ngClass]=\"child.iconClass\"></i>\n {{ child.name | abpLocalization }}\n </a>\n </div>\n <div #childrenContainer ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <ng-template\n ngFor\n [ngForOf]=\"child.children\"\n [ngForTrackBy]=\"trackByFn\"\n [ngForTemplate]=\"childWrapper\"\n ></ng-template>\n </div>\n </div>\n </ng-template>\n </ul>\n\n <ul class=\"navbar-nav ml-auto\">\n <ng-container\n *ngFor=\"let element of rightPartElements; trackBy: trackElementByFn\"\n [ngTemplateOutlet]=\"element\"\n ></ng-container>\n </ul>\n</abp-layout>\n\n<ng-template #language>\n <li class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ defaultLanguage$ | async }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a\n *ngFor=\"let lang of dropdownLanguages$ | async\"\n class=\"dropdown-item\"\n (click)=\"onChangeLang(lang.cultureName)\"\n >{{ lang?.displayName }}</a\n >\n </div>\n </li>\n</ng-template>\n\n<ng-template #currentUser>\n <li *ngIf=\"(currentUser$ | async)?.isAuthenticated\" class=\"nav-item dropdown pointer\" ngbDropdown>\n <a ngbDropdownToggle class=\"nav-link dropdown-toggle text-white pointer\" data-toggle=\"dropdown\">\n {{ (currentUser$ | async)?.userName }}\n </a>\n <div ngbDropdownMenu class=\"dropdown-menu dropdown-menu-right\">\n <a class=\"dropdown-item pointer\" (click)=\"isOpenChangePassword = true\">{{\n 'AbpUi::ChangePassword' | abpLocalization\n }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"isOpenProfile = true\">{{ 'AbpUi::PersonalInfo' | abpLocalization }}</a>\n <a class=\"dropdown-item pointer\" (click)=\"logout()\">{{ 'AbpUi::Logout' | abpLocalization }}</a>\n </div>\n </li>\n\n <abp-change-password [(visible)]=\"isOpenChangePassword\"></abp-change-password>\n\n <abp-profile [(visible)]=\"isOpenProfile\"></abp-profile>\n</ng-template>\n" |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
ApplicationLayoutComponent.ctorParameters = function () { return [ |
|||
{ type: Store }, |
|||
{ type: OAuthService } |
|||
]; }; |
|||
ApplicationLayoutComponent.propDecorators = { |
|||
currentUserRef: [{ type: ViewChild, args: ['currentUser', { static: false, read: TemplateRef },] }], |
|||
languageRef: [{ type: ViewChild, args: ['language', { static: false, read: TemplateRef },] }], |
|||
navbarRootDropdowns: [{ type: ViewChildren, args: ['navbarRootDropdown', { read: NgbDropdown },] }] |
|||
}; |
|||
__decorate([ |
|||
Select(ConfigState.getOne('routes')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "routes$", void 0); |
|||
__decorate([ |
|||
Select(ConfigState.getOne('currentUser')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "currentUser$", void 0); |
|||
__decorate([ |
|||
Select(ConfigState.getDeep('localization.languages')), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "languages$", void 0); |
|||
__decorate([ |
|||
Select(LayoutState.getNavigationElements), |
|||
__metadata("design:type", Observable) |
|||
], ApplicationLayoutComponent.prototype, "navElements$", void 0); |
|||
return ApplicationLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.type; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.routes$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUser$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languages$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navElements$; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.currentUserRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.languageRef; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.navbarRootDropdowns; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenChangePassword; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isOpenProfile; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.isDropdownChildDynamic; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.rightPartElements; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackByFn; |
|||
/** @type {?} */ |
|||
ApplicationLayoutComponent.prototype.trackElementByFn; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.store; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
ApplicationLayoutComponent.prototype.oauthService; |
|||
} |
|||
/** |
|||
* @param {?} routes |
|||
* @return {?} |
|||
*/ |
|||
function getVisibleRoutes(routes) { |
|||
return routes.reduce((/** |
|||
* @param {?} acc |
|||
* @param {?} val |
|||
* @return {?} |
|||
*/ |
|||
function (acc, val) { |
|||
if (val.invisible) |
|||
return acc; |
|||
if (val.children && val.children.length) { |
|||
val.children = getVisibleRoutes(val.children); |
|||
} |
|||
return __spread(acc, [val]); |
|||
}), []); |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var EmptyLayoutComponent = /** @class */ (function () { |
|||
function EmptyLayoutComponent() { |
|||
} |
|||
EmptyLayoutComponent.type = "empty" /* empty */; |
|||
EmptyLayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: 'abp-layout-empty', |
|||
template: "\n Layout-empty\n <router-outlet></router-outlet>\n " |
|||
}] } |
|||
]; |
|||
return EmptyLayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
EmptyLayoutComponent.type; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
var LayoutComponent = /** @class */ (function () { |
|||
function LayoutComponent(store) { |
|||
this.store = store; |
|||
this.isCollapsed = true; |
|||
} |
|||
Object.defineProperty(LayoutComponent.prototype, "appInfo", { |
|||
get: /** |
|||
* @return {?} |
|||
*/ |
|||
function () { |
|||
return this.store.selectSnapshot(ConfigState.getApplicationInfo); |
|||
}, |
|||
enumerable: true, |
|||
configurable: true |
|||
}); |
|||
LayoutComponent.decorators = [ |
|||
{ type: Component, args: [{ |
|||
selector: ' abp-layout', |
|||
template: "<nav class=\"navbar navbar-expand-md navbar-dark bg-dark fixed-top\" id=\"main-navbar\">\n <a class=\"navbar-brand\" routerLink=\"/\">\n <img *ngIf=\"appInfo.logoUrl; else appName\" [src]=\"appInfo.logoUrl\" [alt]=\"appInfo.name\" />\n </a>\n <button class=\"navbar-toggler\" type=\"button\" [attr.aria-expanded]=\"!isCollapsed\" (click)=\"isCollapsed = !isCollapsed\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"collapse navbar-collapse\" id=\"main-navbar-collapse\" [ngbCollapse]=\"isCollapsed\">\n <ng-content></ng-content>\n </div>\n</nav>\n\n<div\n [@routeAnimations]=\"outlet && outlet.activatedRoute && outlet.activatedRoute.routeConfig.path\"\n style=\"padding-top: 5rem;\"\n class=\"container\"\n>\n <router-outlet #outlet=\"outlet\"></router-outlet>\n</div>\n\n<abp-confirmation></abp-confirmation>\n<abp-toast></abp-toast>\n\n<ng-template #appName>\n {{ appInfo.name }}\n</ng-template>\n", |
|||
animations: [slideFromBottom] |
|||
}] } |
|||
]; |
|||
/** @nocollapse */ |
|||
LayoutComponent.ctorParameters = function () { return [ |
|||
{ type: Store } |
|||
]; }; |
|||
return LayoutComponent; |
|||
}()); |
|||
if (false) { |
|||
/** @type {?} */ |
|||
LayoutComponent.prototype.isCollapsed; |
|||
/** |
|||
* @type {?} |
|||
* @private |
|||
*/ |
|||
LayoutComponent.prototype.store; |
|||
} |
|||
|
|||
/** |
|||
* @fileoverview added by tsickle |
|||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc |
|||
*/ |
|||
/** @type {?} */ |
|||
var LAYOUTS = [ApplicationLayoutComponent, AccountLayoutComponent, EmptyLayoutComponent]; |
|||
var ThemeBasicModule = /** @class */ (function () { |
|||
function ThemeBasicModule() { |
|||
} |
|||
ThemeBasicModule.decorators = [ |
|||
{ type: NgModule, args: [{ |
|||
declarations: __spread(LAYOUTS, [LayoutComponent]), |
|||
imports: [ |
|||
CoreModule, |
|||
ThemeSharedModule, |
|||
NgbCollapseModule, |
|||
NgbDropdownModule, |
|||
ToastModule, |
|||
NgxValidateCoreModule, |
|||
NgxsModule.forFeature([LayoutState]), |
|||
], |
|||
exports: __spread(LAYOUTS), |
|||
entryComponents: __spread(LAYOUTS), |
|||
},] } |
|||
]; |
|||
return ThemeBasicModule; |
|||
}()); |
|||
|
|||
/** |
|||
* @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 Layout; |
|||
(function (Layout) { |
|||
/** |
|||
* @record |
|||
*/ |
|||
function State() { } |
|||
Layout.State = State; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
State.prototype.navigationElements; |
|||
} |
|||
/** |
|||
* @record |
|||
*/ |
|||
function NavigationElement() { } |
|||
Layout.NavigationElement = NavigationElement; |
|||
if (false) { |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.name; |
|||
/** @type {?} */ |
|||
NavigationElement.prototype.element; |
|||
/** @type {?|undefined} */ |
|||
NavigationElement.prototype.order; |
|||
} |
|||
})(Layout || (Layout = {})); |
|||
|
|||
/** |
|||
* @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 |
|||
*/ |
|||
|
|||
export { AccountLayoutComponent, AddNavigationElement, ApplicationLayoutComponent, EmptyLayoutComponent, LAYOUTS, LayoutState, RemoveNavigationElementByName, ThemeBasicModule, ApplicationLayoutComponent as ɵa, LayoutState as ɵb, AccountLayoutComponent as ɵc, EmptyLayoutComponent as ɵd, LayoutComponent as ɵe, LayoutState as ɵf, AddNavigationElement as ɵg, RemoveNavigationElementByName as ɵh }; |
|||
//# sourceMappingURL=abp-ng.theme.basic.js.map
|
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||
export * from './layout.actions'; |
|||
@ -0,0 +1,11 @@ |
|||
import { Layout } from '../models/layout'; |
|||
export declare class AddNavigationElement { |
|||
payload: Layout.NavigationElement | Layout.NavigationElement[]; |
|||
static readonly type = "[Layout] Add Navigation Element"; |
|||
constructor(payload: Layout.NavigationElement | Layout.NavigationElement[]); |
|||
} |
|||
export declare class RemoveNavigationElementByName { |
|||
name: string; |
|||
static readonly type = "[Layout] Remove Navigation ElementByName"; |
|||
constructor(name: string); |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
import { eLayoutType } from '@abp/ng.core'; |
|||
export declare class AccountLayoutComponent { |
|||
static type: eLayoutType; |
|||
} |
|||
@ -0,0 +1,35 @@ |
|||
import { ABP, ApplicationConfiguration, eLayoutType } from '@abp/ng.core'; |
|||
import { AfterViewInit, OnDestroy, QueryList, TemplateRef, TrackByFunction } from '@angular/core'; |
|||
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap'; |
|||
import { Store } from '@ngxs/store'; |
|||
import { OAuthService } from 'angular-oauth2-oidc'; |
|||
import { Observable } from 'rxjs'; |
|||
import { Layout } from '../../models/layout'; |
|||
export declare class ApplicationLayoutComponent implements AfterViewInit, OnDestroy { |
|||
private store; |
|||
private oauthService; |
|||
static type: eLayoutType; |
|||
routes$: Observable<ABP.FullRoute[]>; |
|||
currentUser$: Observable<ApplicationConfiguration.CurrentUser>; |
|||
languages$: Observable<ApplicationConfiguration.Language[]>; |
|||
navElements$: Observable<Layout.NavigationElement[]>; |
|||
currentUserRef: TemplateRef<any>; |
|||
languageRef: TemplateRef<any>; |
|||
navbarRootDropdowns: QueryList<NgbDropdown>; |
|||
isOpenChangePassword: boolean; |
|||
isOpenProfile: boolean; |
|||
isDropdownChildDynamic: boolean; |
|||
readonly visibleRoutes$: Observable<ABP.FullRoute[]>; |
|||
readonly defaultLanguage$: Observable<string>; |
|||
readonly dropdownLanguages$: Observable<ApplicationConfiguration.Language[]>; |
|||
readonly selectedLangCulture: string; |
|||
rightPartElements: TemplateRef<any>[]; |
|||
trackByFn: TrackByFunction<ABP.FullRoute>; |
|||
trackElementByFn: TrackByFunction<ABP.FullRoute>; |
|||
constructor(store: Store, oauthService: OAuthService); |
|||
private checkWindowWidth; |
|||
ngAfterViewInit(): void; |
|||
ngOnDestroy(): void; |
|||
onChangeLang(cultureName: string): void; |
|||
logout(): void; |
|||
} |
|||
@ -0,0 +1,4 @@ |
|||
import { eLayoutType } from '@abp/ng.core'; |
|||
export declare class EmptyLayoutComponent { |
|||
static type: eLayoutType; |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
export * from './account-layout/account-layout.component'; |
|||
export * from './application-layout/application-layout.component'; |
|||
export * from './empty-layout/empty-layout.component'; |
|||
@ -0,0 +1,8 @@ |
|||
import { Config } from '@abp/ng.core'; |
|||
import { Store } from '@ngxs/store'; |
|||
export declare class LayoutComponent { |
|||
private store; |
|||
isCollapsed: boolean; |
|||
readonly appInfo: Config.Application; |
|||
constructor(store: Store); |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from './layout'; |
|||
@ -0,0 +1,11 @@ |
|||
import { TemplateRef } from '@angular/core'; |
|||
export declare namespace Layout { |
|||
interface State { |
|||
navigationElements: NavigationElement[]; |
|||
} |
|||
interface NavigationElement { |
|||
name: string; |
|||
element: TemplateRef<any>; |
|||
order?: number; |
|||
} |
|||
} |
|||
@ -0,0 +1 @@ |
|||
export * from "./layout.state"; |
|||
@ -0,0 +1,8 @@ |
|||
import { StateContext } from '@ngxs/store'; |
|||
import { AddNavigationElement, RemoveNavigationElementByName } from '../actions/layout.actions'; |
|||
import { Layout } from '../models/layout'; |
|||
export declare class LayoutState { |
|||
static getNavigationElements({ navigationElements }: Layout.State): Layout.NavigationElement[]; |
|||
layoutAddAction({ getState, patchState }: StateContext<Layout.State>, { payload }: AddNavigationElement): Layout.State; |
|||
layoutRemoveAction({ getState, patchState }: StateContext<Layout.State>, { name }: RemoveNavigationElementByName): Layout.State; |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
import { AccountLayoutComponent } from './components/account-layout/account-layout.component'; |
|||
import { ApplicationLayoutComponent } from './components/application-layout/application-layout.component'; |
|||
export declare const LAYOUTS: (typeof ApplicationLayoutComponent | typeof AccountLayoutComponent)[]; |
|||
export declare class ThemeBasicModule { |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
{ |
|||
"name": "@abp/ng.theme.basic", |
|||
"version": "0.8.3", |
|||
"dependencies": { |
|||
"@abp/ng.theme.shared": "^0.8.3", |
|||
"tslib": "^1.9.0" |
|||
}, |
|||
"publishConfig": { |
|||
"access": "public" |
|||
}, |
|||
"main": "bundles/abp-ng.theme.basic.umd.js", |
|||
"module": "fesm5/abp-ng.theme.basic.js", |
|||
"es2015": "fesm2015/abp-ng.theme.basic.js", |
|||
"esm5": "esm5/abp-ng.theme.basic.js", |
|||
"esm2015": "esm2015/abp-ng.theme.basic.js", |
|||
"fesm5": "fesm5/abp-ng.theme.basic.js", |
|||
"fesm2015": "fesm2015/abp-ng.theme.basic.js", |
|||
"typings": "abp-ng.theme.basic.d.ts", |
|||
"metadata": "abp-ng.theme.basic.metadata.json", |
|||
"sideEffects": false |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
export * from './lib/theme-basic.module'; |
|||
export * from './lib/actions'; |
|||
export * from './lib/components'; |
|||
export * from './lib/models'; |
|||
export * from './lib/states'; |
|||
Loading…
Reference in new issue