@osovitny/anatoly 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/osovitny-anatoly.umd.js +93 -51
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/ui/components/base-edit.component.js +4 -1
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +86 -0
- package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +37 -0
- package/esm2015/lib/ui/components/html-editor/html-editor.component.js +6 -78
- package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +38 -0
- package/esm2015/lib/ui/index.js +2 -1
- package/esm2015/lib/ui/ui.module.js +8 -5
- package/esm5/lib/ui/components/base-edit.component.js +4 -1
- package/esm5/lib/ui/components/html-editor/base-html-editor.component.js +90 -0
- package/esm5/lib/ui/components/html-editor/forms-html-editor.component.js +40 -0
- package/esm5/lib/ui/components/html-editor/html-editor.component.js +6 -79
- package/esm5/lib/ui/components/html-editor/html-editor.defaultoptions.js +38 -0
- package/esm5/lib/ui/index.js +2 -1
- package/esm5/lib/ui/ui.module.js +8 -5
- package/fesm2015/osovitny-anatoly.js +83 -47
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/fesm5/osovitny-anatoly.js +93 -52
- package/fesm5/osovitny-anatoly.js.map +1 -1
- package/lib/ui/components/html-editor/base-html-editor.component.d.ts +16 -0
- package/lib/ui/components/html-editor/forms-html-editor.component.d.ts +6 -0
- package/lib/ui/components/html-editor/html-editor.component.d.ts +3 -16
- package/lib/ui/index.d.ts +1 -0
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
- package/esm2015/lib/ui/components/html-editor/html-editor.consts.js +0 -47
- package/esm5/lib/ui/components/html-editor/html-editor.consts.js +0 -47
- /package/lib/ui/components/html-editor/{html-editor.consts.d.ts → html-editor.defaultoptions.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"osovitny-anatoly.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@osovitny/anatoly/lib/core/consts.ts","ng://@osovitny/anatoly/lib/core/services/base-api.service.ts","ng://@osovitny/anatoly/lib/core/services/base-gridedit.service.ts","ng://@osovitny/anatoly/lib/core/services/base-go.service.ts","ng://@osovitny/anatoly/lib/core/services/appcontext.service.ts","ng://@osovitny/anatoly/lib/core/core.module.ts","ng://@osovitny/anatoly/lib/core/index.ts","ng://@osovitny/anatoly/lib/billing/services/base-billing-api.service.ts","ng://@osovitny/anatoly/lib/billing/components/buyaccess/buyaccess-button.component.ts","ng://@osovitny/anatoly/lib/billing/components/subscriptions/subscribe-plan-button.component.ts","ng://@osovitny/anatoly/lib/billing/components/subscriptions/upgrade-plan-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signin-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signout-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signup-button.component.ts","ng://@osovitny/anatoly/lib/identity/identity.module.ts","ng://@osovitny/anatoly/lib/identity/index.ts","ng://@osovitny/anatoly/lib/billing/billing.module.ts","ng://@osovitny/anatoly/lib/billing/index.ts","ng://@osovitny/anatoly/lib/ui/components/base.component.ts","ng://@osovitny/anatoly/lib/ui/components/base-edit.component.ts","ng://@osovitny/anatoly/lib/ui/components/content-header/content-header.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/form-validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/item-validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/html-editor.consts.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/html-editor.component.ts","ng://@osovitny/anatoly/lib/ui/ui.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","namespace anatoly.consts {\r\n export const jsonUrl: string = \"/dist/json/\";\r\n export const appUrl = \"/\";\r\n export const apiUrl = \"/api/\";\r\n}\r\n\r\n(<any>window).anatoly = anatoly;","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 13 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//RxJs\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n \r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class BaseApiService {\r\n protected baseUrl: string;\r\n protected jsonUrl: string;\r\n\r\n constructor(protected http: HttpClient) {\r\n this.baseUrl = anatoly.consts.apiUrl;\r\n }\r\n\r\n private serializeParams(data?: any): string {\r\n return data ? ('?' + $.param(data)) : '';\r\n }\r\n\r\n //webApi\r\n public get<T>(action: String, data?: any): Observable<T> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.get(url).pipe(\r\n map(res => <T>res)\r\n );\r\n }\r\n\r\n public post(action: String, data?: any): Observable<any> {\r\n var url = this.baseUrl + `${action}`;\r\n return this.http.post(url, data, { responseType: 'text' });\r\n }\r\n\r\n public postQS(action: String, data?: any): Observable<any> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.post(url, null, { responseType: 'text' });\r\n }\r\n\r\n //gets\r\n public getAll<T>(data?: any): Observable<T[]> {\r\n return this.get('getall', data).pipe(\r\n map(res => <T[]>res)\r\n );\r\n }\r\n\r\n public getJsonFile(fileName: string, jsonVersion: string): Observable<any[]> {\r\n if (!jsonVersion) {\r\n jsonVersion = \"1.0\";\r\n }\r\n\r\n var url = anatoly.consts.jsonUrl + fileName + '?' + jsonVersion;\r\n return this.http.get(url).pipe(\r\n map(res => <any[]>res)\r\n );\r\n }\r\n\r\n public getNewGuid(): Observable<string> {\r\n var url = this.baseUrl + 'getNewGuid';\r\n return this.http.get(url, { responseType: 'text' });\r\n }\r\n\r\n //CRUD function\r\n public getById<T>(id: any): Observable<T> {\r\n return this.get<T>('getById', { id: id });\r\n }\r\n\r\n public remove(id: any): Observable<string> {\r\n return this.postQS('remove', { id: id });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 29 Apr 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//RxJs\r\nimport { Observable } from 'rxjs';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class BaseGridEditService extends BehaviorSubject<any[]> {\r\n protected baseUrl: string;\r\n protected baseReadUrl: string;\r\n protected savedReadParams: any;\r\n private data: any[] = [];\r\n\r\n constructor(protected http: HttpClient) {\r\n super([]);\r\n\r\n this.baseUrl = anatoly.consts.apiUrl;\r\n this.baseReadUrl = this.baseUrl + \"getAll\";\r\n }\r\n\r\n private serializeParams(data?: any): string {\r\n return data ? ('?' + $.param(data)) : '';\r\n }\r\n\r\n private reset() {\r\n this.data = [];\r\n }\r\n\r\n public resetItem(dataItem: any) {\r\n if (!dataItem) { return; }\r\n\r\n //find orignal data item\r\n const originalDataItem = this.data.find(item => item.Id === dataItem.Id);\r\n\r\n //revert changes\r\n Object.assign(originalDataItem, dataItem);\r\n super.next(this.data);\r\n }\r\n\r\n public read(params?: any) {\r\n if (this.data.length) {\r\n return super.next(this.data);\r\n } \r\n\r\n var url = this.baseReadUrl;\r\n\r\n if (typeof params === 'undefined') {\r\n params = this.savedReadParams;\r\n }\r\n\r\n if (typeof params !== 'undefined') {\r\n url = this.baseReadUrl + `${this.serializeParams(params)}`;\r\n this.savedReadParams = params;\r\n }\r\n\r\n // this.http.get(url)\r\n // .map(res => <any[]>res)\r\n // .do(data => { this.data = data; }).subscribe(data => { super.next(data); });\r\n //}\r\n\r\n this.http.get(url).pipe(\r\n map(res => <any[]>res) \r\n ).subscribe(data => { super.next(data) });\r\n }\r\n\r\n\r\n public save(data: any, isNew: boolean, sucess?: Function) {\r\n const action = isNew ? 'add' : 'update';\r\n\r\n this.reset();\r\n this.post(action, data).subscribe(\r\n () => {\r\n },\r\n () => {\r\n this.read(); \r\n },\r\n () => {\r\n this.read();\r\n if (sucess) sucess();\r\n }\r\n );\r\n }\r\n\r\n public remove(data: any, sucess?: Function) {\r\n this.reset();\r\n this.post('remove', data).subscribe(\r\n () => {\r\n },\r\n () => {\r\n this.read();\r\n },\r\n () => {\r\n this.read();\r\n if (sucess) sucess();\r\n }\r\n );\r\n }\r\n\r\n post(action: any, data?: any): Observable<any[]> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.post(url, data).pipe(\r\n map(res => <any[]>res)\r\n );\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 17 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\n\r\n@Injectable()\r\nexport class BaseGoService {\r\n protected route: ActivatedRoute;\r\n protected router: Router;\r\n\r\n constructor(route: ActivatedRoute, router: Router) {\r\n this.route = route;\r\n this.router = router;\r\n }\r\n\r\n locationReload() {\r\n //this.router.navigate([this.route.url]);\r\n (<any>window).location.reload();\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 13 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Subscription } from 'rxjs';\r\n\r\n//Custom\r\nimport { BaseApiService } from './base-api.service';\r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class AppContextService extends BaseApiService {\r\n private current = null;\r\n private successes = [];\r\n private subscription: Subscription = null;\r\n\r\n constructor(protected http: HttpClient) {\r\n super(http);\r\n this.baseUrl = anatoly.consts.apiUrl + 'appcontext/';\r\n }\r\n\r\n getCurrent(success: Function) {\r\n if (typeof success == \"undefined\") {\r\n return;\r\n }\r\n\r\n if (this.current != null) {\r\n success(this.current);\r\n return;\r\n }\r\n\r\n this.successes.push(success);\r\n\r\n if (this.subscription != null) {\r\n return;\r\n }\r\n\r\n this.subscription = this.get('GetCurrentContext', null).subscribe(\r\n data => {\r\n this.dataReceived(data);\r\n },\r\n e => { }\r\n );\r\n }\r\n\r\n dataReceived(data) {\r\n this.current = data;\r\n\r\n for (var i = 0; i < this.successes.length; i++) {\r\n var success = this.successes[i];\r\n success(data);\r\n }\r\n\r\n this.successes = [];\r\n this.subscription.unsubscribe();\r\n this.subscription = null;\r\n this.current = null;\r\n }\r\n\r\n isUserSignedIn() {\r\n return (<any>window).__context_isUserSignedIn;\r\n }\r\n\r\n isUserAdmin() {\r\n return (<any>window).__context_isUserAdmin;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 10 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\n\r\n//Services\r\nimport { AppContextService } from './services/appcontext.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule\r\n ],\r\n declarations: [\r\n ],\r\n providers: [\r\n AppContextService\r\n ]\r\n})\r\n\r\nexport class AnatolyCoreModule {\r\n}\r\n","// Base\r\nexport * from './services/base-api.service';\r\nexport * from './services/base-gridedit.service';\r\nexport * from './services/base-go.service';\r\n\r\n// Services\r\nexport * from './services/appcontext.service';\r\n\r\n//Module\r\nexport { AnatolyCoreModule } from './core.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//@osovitny/anatoly\r\nimport { BaseApiService } from '../../core'\r\n\r\n@Injectable()\r\nexport class BaseBillingApiService extends BaseApiService {\r\n constructor(protected http: HttpClient) {\r\n super(http);\r\n this.baseUrl += 'billing/';\r\n }\r\n\r\n public requestNewSubscription(requestedPlan: Number, success?: Function, error?: Function) {\r\n this.postQS('requestNewSubscription', { requestedPlan: requestedPlan })\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n\r\n public cancelRequestedSubscription(success?: Function, error?: Function) {\r\n this.postQS('cancelRequestedSubscription', null)\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n\r\n public buyAccess(requestedPlan: Number, success?: Function, error?: Function) {\r\n this.postQS('buyAccess', { requestedPlan: requestedPlan })\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 14 Aug 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n//Services\r\nimport { AppContextService } from '../../../core/services/appcontext.service';\r\nimport { BaseBillingApiService } from '../../services/base-billing-api.service';\r\n\r\n@Component({\r\n selector: 'anatoly-buyaccess-button',\r\n templateUrl: './buyaccess-button.component.html'\r\n})\r\n\r\nexport class BuyAccessButtonComponent implements OnInit {\r\n public contextUpdated: boolean = false;\r\n public isUserSignedIn: boolean = false;\r\n public currentPlan: number = 0;\r\n public currentPlanTitle: string = \"\";\r\n\r\n @Input() plan: number;\r\n @Input() plantitle: string;\r\n\r\n constructor(private appcontext: AppContextService, private api: BaseBillingApiService) {\r\n }\r\n\r\n ngOnInit() {\r\n if (!this.appcontext.isUserSignedIn()) {\r\n this.contextUpdated = true;\r\n return;\r\n }\r\n\r\n this.appcontext.getCurrent((current) => {\r\n this.isUserSignedIn = current.isUserSignedIn;\r\n\r\n if (this.isUserSignedIn) {\r\n this.currentPlan = current.account.billingPlan;\r\n this.currentPlanTitle = current.account.billingPlanAsString;\r\n }\r\n\r\n this.contextUpdated = true;\r\n });\r\n }\r\n\r\n onBuyPlan() {\r\n const text = `Requested plan: ${this.plantitle} `;\r\n\r\n var that = this;\r\n osovitny.ui.areYouSure(text, 'Buying access', 'Confirm change', 'Cancel', () => {\r\n that.api.buyAccess(that.plan, () => {\r\n osovitny.ui.alertSuccess('Access Granted', null, () => {\r\n (<any>window).location.reload();\r\n });\r\n });\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 1 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n//Services\r\nimport { AppContextService } from '../../../core/services/appcontext.service';\r\n\r\n@Component({\r\n selector: 'anatoly-subscribe-plan-button',\r\n templateUrl: './subscribe-plan-button.component.html'\r\n})\r\n\r\nexport class SubscribePlanButtonComponent implements OnInit {\r\n public contextUpdated: boolean = false;\r\n public isUserSignedIn: boolean = false;\r\n public currentPlan: number = 0;\r\n public currentPlanTitle: string = \"\";\r\n public requestedPlan: number = 0;\r\n public requestedPlanTitle: string = \"\";\r\n\r\n @Input() plan: number;\r\n @Input() plantitle: string;\r\n\r\n constructor(private appcontext: AppContextService) {\r\n }\r\n\r\n ngOnInit() {\r\n if (!this.appcontext.isUserSignedIn()) {\r\n this.contextUpdated = true;\r\n return;\r\n }\r\n\r\n this.appcontext.getCurrent((current) => {\r\n this.isUserSignedIn = current.isUserSignedIn;\r\n\r\n if (this.isUserSignedIn) {\r\n this.currentPlan = current.account.billingPlan;\r\n this.currentPlanTitle = current.account.billingPlanAsString;\r\n this.requestedPlan = current.account.requestedBillingPlan;\r\n this.requestedPlanTitle = current.account.requestedBillingPlanAsString;\r\n }\r\n\r\n this.contextUpdated = true;\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\n\r\n//Services\r\nimport { BaseBillingApiService } from '../../services/base-billing-api.service';\r\n\r\n@Component({\r\n selector: 'anatoly-upgrade-plan-button',\r\n templateUrl: './upgrade-plan-button.component.html'\r\n})\r\n\r\nexport class UpgradePlanButtonComponent {\r\n @Input() currentplantitle: string;\r\n @Input() requestedplan: number;\r\n @Input() requestedplantitle: string;\r\n\r\n constructor(private api: BaseBillingApiService) {\r\n }\r\n\r\n onUpgradePlan() {\r\n const text = `Current plan: ${this.currentplantitle} New plan: ${this.requestedplantitle}`;\r\n\r\n var that = this;\r\n osovitny.ui.areYouSure(text, 'Change billing plan', 'Confirm change', 'Cancel', () => {\r\n that.api.requestNewSubscription(that.requestedplan, () => {\r\n osovitny.ui.alertSuccess('Your request for changing plan has been sent.', null, () => {\r\n (<any>window).location.reload();\r\n });\r\n });\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signin-button',\r\n templateUrl: './signin-button.component.html'\r\n})\r\n\r\nexport class SignInButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() { }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signout-button',\r\n templateUrl: './signout-button.component.html'\r\n})\r\n\r\nexport class SignOutButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() { }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signup-button',\r\n templateUrl: './signup-button.component.html'\r\n})\r\n\r\nexport class SignUpButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() {\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//System\r\nimport { NgModule } from '@angular/core';\r\n\r\n//Custom\r\nimport { SignInButtonComponent } from './components/signin-button.component';\r\nimport { SignUpButtonComponent } from './components/signup-button.component';\r\nimport { SignOutButtonComponent } from './components/signout-button.component';\r\n\r\n@NgModule({\r\n imports: [\r\n ],\r\n exports: [\r\n SignInButtonComponent,\r\n SignUpButtonComponent,\r\n SignOutButtonComponent\r\n ],\r\n declarations: [\r\n SignInButtonComponent,\r\n SignUpButtonComponent,\r\n SignOutButtonComponent\r\n ],\r\n providers: []\r\n})\r\n\r\nexport class AnatolyIdentityModule {\r\n}\r\n","// Components\r\nexport * from './components/signin-button.component';\r\nexport * from './components/signout-button.component';\r\nexport * from './components/signup-button.component';\r\n\r\n//Module\r\nexport { AnatolyIdentityModule } from './identity.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 10 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\n\r\n//@osovitny/anatoly\r\nimport { AnatolyIdentityModule } from '../identity'\r\n\r\n//Components/subscriptions\r\nimport { SubscribePlanButtonComponent } from './components/subscriptions/subscribe-plan-button.component';\r\nimport { UpgradePlanButtonComponent } from './components/subscriptions/upgrade-plan-button.component';\r\n\r\n//Components/buyaccess\r\nimport { BuyAccessButtonComponent } from './components/buyaccess/buyaccess-button.component';\r\n\r\n//Services\r\nimport { BaseBillingApiService } from './services/base-billing-api.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n AnatolyIdentityModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n SubscribePlanButtonComponent,\r\n UpgradePlanButtonComponent,\r\n BuyAccessButtonComponent\r\n ],\r\n declarations: [\r\n SubscribePlanButtonComponent,\r\n UpgradePlanButtonComponent,\r\n BuyAccessButtonComponent\r\n ],\r\n providers: [\r\n BaseBillingApiService\r\n ]\r\n})\r\n\r\nexport class AnatolyBillingModule {\r\n}\r\n","// Components\r\nexport * from './components/buyaccess/buyaccess-button.component';\r\nexport * from './components/subscriptions/subscribe-plan-button.component';\r\nexport * from './components/subscriptions/upgrade-plan-button.component';\r\n\r\n// Services\r\nexport * from './services/base-billing-api.service';\r\n\r\n//Module\r\nexport { AnatolyBillingModule } from './billing.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 28 Aug 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nexport class BaseComponent {\r\n constructor() {\r\n }\r\n\r\n getQSId() {\r\n var id = osovitny.utils.getValueByNameInQS(\"id\");\r\n if (typeof id === 'undefined' || id == '') return null;\r\n\r\n return id;\r\n }\r\n\r\n showLoading() {\r\n var panelLoading = $('#pnlLoading');\r\n panelLoading.show();\r\n }\r\n\r\n hideLoading() {\r\n var panelLoading = $('#pnlLoading');\r\n panelLoading.hide();\r\n }\r\n\r\n handleError(e) {\r\n this.hideLoading();\r\n osovitny.ui.errorOccurred();\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 20 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\n//Custom\r\nimport { BaseComponent } from './base.component';\r\n\r\nexport class BaseEditComponent extends BaseComponent {\r\n @Input() \r\n public formGroup: FormGroup;\r\n \r\n @Input()\r\n public formSubmitted: boolean = false;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n isActionAdding() {\r\n var id = osovitny.utils.getValueByNameInQS(\"id\");\r\n if (typeof id === 'undefined' || id == '') return true;\r\n\r\n return false;\r\n }\r\n\r\n getEntityId() {\r\n return this.getQSId();\r\n }\r\n\r\n isItemInvalid(name: string) {\r\n if (typeof name === 'undefined' || name == '') {\r\n return false;\r\n }\r\n\r\n if (this.formGroup.get(name)) {\r\n return (this.formSubmitted && this.formGroup.get(name).invalid) ||\r\n (this.formGroup.get(name).touched && this.formGroup.get(name).invalid);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n getFormValue(name) {\r\n return this.formGroup.controls[name].value;\r\n }\r\n\r\n setFormValue(name, value) {\r\n this.formGroup.controls[name].setValue(value);\r\n }\r\n\r\n getFormGroupValue(groupName, name) {\r\n return this.formGroup.controls[groupName].get(name).value;\r\n }\r\n\r\n setFormGroupValue(groupName, name, value) {\r\n this.formGroup.controls[groupName].get(name).setValue(value);\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n\r\n Created:\r\n 23 Apr 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-content-header',\r\n templateUrl: './content-header.component.html'\r\n})\r\n\r\nexport class ContentHeaderComponent implements OnInit {\r\n @Input() title?: string;\r\n\r\n ngOnInit() {\r\n if (this.title == null) {\r\n this.title = '';\r\n }\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 8 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\n//Custom\r\nimport { BaseEditComponent } from '../base-edit.component';\r\n\r\nexport class ValidationSummaryComponent extends BaseEditComponent {\r\n constructor() {\r\n super();\r\n }\r\n\r\n getFormValidationMessages(): string[] {\r\n let messages: string[] = [];\r\n\r\n Object.keys(this.formGroup.controls).forEach(k => {\r\n var control = this.formGroup.controls[k];\r\n\r\n if ((<FormGroup>control).controls != null) {\r\n Object.keys((<FormGroup>control).controls).forEach(k => {\r\n var child = (<FormGroup>control).controls[k];\r\n this.getValidationMessages(child, k).forEach(m => messages.push(m));\r\n });\r\n }\r\n else {\r\n this.getValidationMessages(control, k).forEach(m => messages.push(m));\r\n }\r\n });\r\n\r\n return messages;\r\n }\r\n\r\n getValidationMessages(state: any, thingName?: string) {\r\n let thing: string = state.path || thingName;\r\n let messages: string[] = [];\r\n\r\n if (state.errors) {\r\n for (let errorName in state.errors) {\r\n if (state.errors.hasOwnProperty(errorName)) {\r\n switch (errorName) {\r\n case 'required':\r\n messages.push(`${thing} is required`);\r\n break;\r\n\r\n case 'minlength':\r\n messages.push(`${thing} must be at least ${state.errors['minlength'].requiredLength} characters`);\r\n break;\r\n\r\n case 'pattern':\r\n messages.push(`${thing} contains illegal characters`);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return messages;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 7 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { ValidationSummaryComponent } from \"./validation-summary.component\";\r\n\r\n@Component({\r\n selector: 'anatoly-form-validation-summary',\r\n templateUrl: './form-validation-summary.component.html'\r\n})\r\n\r\nexport class FormValidationSummaryComponent extends ValidationSummaryComponent {\r\n @Input() visible: boolean = false;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n getErrors(): string[] {\r\n var messages = this.getFormValidationMessages();\r\n return messages;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 6 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { ValidationSummaryComponent } from \"./validation-summary.component\";\r\n\r\n@Component({\r\n selector: 'anatoly-item-validation-summary',\r\n templateUrl: './item-validation-summary.component.html'\r\n})\r\n\r\nexport class ItemValidationSummaryComponent extends ValidationSummaryComponent {\r\n @Input() key: string;\r\n @Input() title: string;\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","export const DefaultEditorOptions: Object = { \r\n placeholderText: 'Edit Your Content Here',\r\n charCounterCount: true,\r\n heightMin: 100,\r\n toolbarInline: false,\r\n\r\n toolbarButtons: {\r\n 'moreText': {\r\n 'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', \r\n 'fontFamily', 'fontSize', 'textColor', 'backgroundColor', 'inlineClass', 'inlineStyle']\r\n },\r\n 'moreParagraph': {\r\n 'buttons': ['alignLeft', 'alignCenter', 'formatOLSimple', 'alignRight', 'alignJustify', \r\n 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote']\r\n },\r\n 'moreRich': {\r\n 'buttons': ['insertLink', 'insertImage', 'insertTable', 'emoticons', 'fontAwesome', \r\n 'specialCharacters', 'embedly']\r\n },\r\n 'moreMisc': {\r\n 'buttons': ['selectAll', 'clearFormatting', 'html', 'undo', 'redo', 'fullscreen'],\r\n 'align': 'right',\r\n }\r\n },\r\n\r\n /*\r\n Upload:\r\n https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload\r\n */\r\n imageUploadURL: '/api/HtmlEditor/UploadImage',\r\n imageAllowedTypes: ['jpeg', 'jpg', 'png'],\r\n imageUploadParams: { uploadType: '', uploadParentId: '' },\r\n\r\n //Events\r\n events: {\r\n 'image.beforeUpload': function (images) {\r\n //let editor = this;\r\n //alert(\"image.beforeUpload uploadType: \" + editor.opts.imageUploadParams.uploadType + \"_\" + editor.opts.imageUploadParams.uploadParentId)\r\n },\r\n\r\n 'initialized': function () {\r\n },\r\n\r\n 'contentChanged': function () {\r\n let editor = this;\r\n //alert('contentChanged');\r\n }\r\n }\r\n};","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\nimport FroalaEditor from 'froala-editor';\r\n\r\n//Custom\r\nimport { BaseEditComponent } from '../base-edit.component';\r\n\r\n//Consts\r\nimport { DefaultEditorOptions } from './html-editor.consts';\r\n\r\n@Component({\r\n selector: 'anatoly-html-editor',\r\n templateUrl: './html-editor.component.html'\r\n})\r\n\r\nexport class HtmlEditorComponent extends BaseEditComponent implements OnInit {\r\n //Private members\r\n private _control;\r\n private _editorInitialized: boolean = false;\r\n\r\n //Public members\r\n public options;\r\n\r\n //General params\r\n @Input() editorId: string = '';\r\n @Input() editorLabelText: string = 'Html';\r\n @Input() editorOptions: Object = {};\r\n\r\n //Form based params\r\n @Input() isFormBased: string = '1';\r\n @Input() editorFormKey: string = 'html';\r\n\r\n ngOnInit() {\r\n var opt = this.editorOptions;\r\n if (typeof this.editorOptions == \"string\") {\r\n opt = JSON.parse(this.editorOptions);\r\n }\r\n\r\n var newOptions = $.extend({}, DefaultEditorOptions, opt);\r\n var key = (<any>window).__froalaEditor_Key;\r\n if (key) {\r\n newOptions = $.extend({}, JSON.parse('{ \"key\": \"' + key + '\" }'), newOptions);\r\n }\r\n\r\n this.options = newOptions;\r\n }\r\n\r\n private doAfterEditorInitialized(action) {\r\n var that = this;\r\n var timeOut = 500;\r\n\r\n if (this._editorInitialized) {\r\n timeOut = 100;\r\n }\r\n\r\n setTimeout(function () { action(that); }, timeOut);\r\n }\r\n\r\n private getEditor() {\r\n if (this._control)\r\n return this._control.getEditor();\r\n\r\n return null;\r\n }\r\n\r\n //Public Funcs\r\n public initializeControl(control) {\r\n this._control = control;\r\n this._control.initialize();\r\n \r\n this._editorInitialized = true;\r\n }\r\n\r\n public setUploadParams(uploadType, uploadParentId) { \r\n this.doAfterEditorInitialized(function (that) {\r\n var editor = that.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n editor.opts.imageUploadParams.uploadType = uploadType;\r\n editor.opts.imageUploadParams.uploadParentId = uploadParentId;\r\n });\r\n }\r\n\r\n public setHtml(content) {\r\n if (this.isFormBased == \"1\") {\r\n return;\r\n }\r\n\r\n this.doAfterEditorInitialized(function (that) {\r\n var editor = that.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n editor.html.set(content);\r\n });\r\n }\r\n\r\n public getHtml() {\r\n if (this.isFormBased == \"1\") {\r\n return null;\r\n }\r\n\r\n var editor = this.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n return editor.html.get(false);\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 3 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//System\r\nimport { NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\n\r\n//kendo/froala\r\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\r\nimport { GridModule } from '@progress/kendo-angular-grid';\r\nimport { PopupModule } from '@progress/kendo-angular-popup';\r\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\r\nimport { DropDownsModule } from '@progress/kendo-angular-dropdowns';\r\n\r\n//Components\r\nimport { FormValidationSummaryComponent } from './components/validation/form-validation-summary.component';\r\nimport { ItemValidationSummaryComponent } from './components/validation/item-validation-summary.component';\r\nimport { HtmlEditorComponent } from './components/html-editor/html-editor.component';\r\nimport { ContentHeaderComponent } from './components/content-header/content-header.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n\r\n FroalaEditorModule.forRoot(),\r\n FroalaViewModule.forRoot(),\r\n GridModule,\r\n PopupModule,\r\n ButtonsModule,\r\n DropDownsModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n\r\n ItemValidationSummaryComponent,\r\n FormValidationSummaryComponent,\r\n HtmlEditorComponent,\r\n ContentHeaderComponent\r\n ],\r\n declarations: [\r\n ItemValidationSummaryComponent,\r\n FormValidationSummaryComponent,\r\n HtmlEditorComponent,\r\n ContentHeaderComponent\r\n ],\r\n providers: [\r\n ],\r\n schemas: [\r\n CUSTOM_ELEMENTS_SCHEMA,\r\n NO_ERRORS_SCHEMA\r\n ] \r\n})\r\n\r\nexport class AnatolyUIModule {\r\n}\r\n"],"names":["anatoly","map","HttpClient","Injectable","BehaviorSubject","ActivatedRoute","Router","NgModule","CommonModule","HttpClientModule","HttpClientXsrfModule","HttpClientJsonpModule","Input","Component","ReactiveFormsModule","FormsModule","FroalaEditorModule","FroalaViewModule","GridModule","PopupModule","ButtonsModule","DropDownsModule","CUSTOM_ELEMENTS_SCHEMA","NO_ERRORS_SCHEMA"],"mappings":";;;;;;IAAA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAA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gBACD,OAAO,EAAE;oBACPW,2BAAsB;oBACtBC,qBAAgB;iBACjB;aACF,CAAC;WAEW,eAAe,CAC3B;QAAD,sBAAC;KADD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"osovitny-anatoly.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@osovitny/anatoly/lib/core/consts.ts","ng://@osovitny/anatoly/lib/core/services/base-api.service.ts","ng://@osovitny/anatoly/lib/core/services/base-gridedit.service.ts","ng://@osovitny/anatoly/lib/core/services/base-go.service.ts","ng://@osovitny/anatoly/lib/core/services/appcontext.service.ts","ng://@osovitny/anatoly/lib/core/core.module.ts","ng://@osovitny/anatoly/lib/core/index.ts","ng://@osovitny/anatoly/lib/billing/services/base-billing-api.service.ts","ng://@osovitny/anatoly/lib/billing/components/buyaccess/buyaccess-button.component.ts","ng://@osovitny/anatoly/lib/billing/components/subscriptions/subscribe-plan-button.component.ts","ng://@osovitny/anatoly/lib/billing/components/subscriptions/upgrade-plan-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signin-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signout-button.component.ts","ng://@osovitny/anatoly/lib/identity/components/signup-button.component.ts","ng://@osovitny/anatoly/lib/identity/identity.module.ts","ng://@osovitny/anatoly/lib/identity/index.ts","ng://@osovitny/anatoly/lib/billing/billing.module.ts","ng://@osovitny/anatoly/lib/billing/index.ts","ng://@osovitny/anatoly/lib/ui/components/base.component.ts","ng://@osovitny/anatoly/lib/ui/components/base-edit.component.ts","ng://@osovitny/anatoly/lib/ui/components/content-header/content-header.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/form-validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/validation/item-validation-summary.component.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/html-editor.defaultoptions.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/base-html-editor.component.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/html-editor.component.ts","ng://@osovitny/anatoly/lib/ui/components/html-editor/forms-html-editor.component.ts","ng://@osovitny/anatoly/lib/ui/ui.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n 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); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","namespace anatoly.consts {\r\n export const jsonUrl: string = \"/dist/json/\";\r\n export const appUrl = \"/\";\r\n export const apiUrl = \"/api/\";\r\n}\r\n\r\n(<any>window).anatoly = anatoly;","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 13 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//RxJs\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n \r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class BaseApiService {\r\n protected baseUrl: string;\r\n protected jsonUrl: string;\r\n\r\n constructor(protected http: HttpClient) {\r\n this.baseUrl = anatoly.consts.apiUrl;\r\n }\r\n\r\n private serializeParams(data?: any): string {\r\n return data ? ('?' + $.param(data)) : '';\r\n }\r\n\r\n //webApi\r\n public get<T>(action: String, data?: any): Observable<T> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.get(url).pipe(\r\n map(res => <T>res)\r\n );\r\n }\r\n\r\n public post(action: String, data?: any): Observable<any> {\r\n var url = this.baseUrl + `${action}`;\r\n return this.http.post(url, data, { responseType: 'text' });\r\n }\r\n\r\n public postQS(action: String, data?: any): Observable<any> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.post(url, null, { responseType: 'text' });\r\n }\r\n\r\n //gets\r\n public getAll<T>(data?: any): Observable<T[]> {\r\n return this.get('getall', data).pipe(\r\n map(res => <T[]>res)\r\n );\r\n }\r\n\r\n public getJsonFile(fileName: string, jsonVersion: string): Observable<any[]> {\r\n if (!jsonVersion) {\r\n jsonVersion = \"1.0\";\r\n }\r\n\r\n var url = anatoly.consts.jsonUrl + fileName + '?' + jsonVersion;\r\n return this.http.get(url).pipe(\r\n map(res => <any[]>res)\r\n );\r\n }\r\n\r\n public getNewGuid(): Observable<string> {\r\n var url = this.baseUrl + 'getNewGuid';\r\n return this.http.get(url, { responseType: 'text' });\r\n }\r\n\r\n //CRUD function\r\n public getById<T>(id: any): Observable<T> {\r\n return this.get<T>('getById', { id: id });\r\n }\r\n\r\n public remove(id: any): Observable<string> {\r\n return this.postQS('remove', { id: id });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 29 Apr 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//RxJs\r\nimport { Observable } from 'rxjs';\r\nimport { BehaviorSubject } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class BaseGridEditService extends BehaviorSubject<any[]> {\r\n protected baseUrl: string;\r\n protected baseReadUrl: string;\r\n protected savedReadParams: any;\r\n private data: any[] = [];\r\n\r\n constructor(protected http: HttpClient) {\r\n super([]);\r\n\r\n this.baseUrl = anatoly.consts.apiUrl;\r\n this.baseReadUrl = this.baseUrl + \"getAll\";\r\n }\r\n\r\n private serializeParams(data?: any): string {\r\n return data ? ('?' + $.param(data)) : '';\r\n }\r\n\r\n private reset() {\r\n this.data = [];\r\n }\r\n\r\n public resetItem(dataItem: any) {\r\n if (!dataItem) { return; }\r\n\r\n //find orignal data item\r\n const originalDataItem = this.data.find(item => item.Id === dataItem.Id);\r\n\r\n //revert changes\r\n Object.assign(originalDataItem, dataItem);\r\n super.next(this.data);\r\n }\r\n\r\n public read(params?: any) {\r\n if (this.data.length) {\r\n return super.next(this.data);\r\n } \r\n\r\n var url = this.baseReadUrl;\r\n\r\n if (typeof params === 'undefined') {\r\n params = this.savedReadParams;\r\n }\r\n\r\n if (typeof params !== 'undefined') {\r\n url = this.baseReadUrl + `${this.serializeParams(params)}`;\r\n this.savedReadParams = params;\r\n }\r\n\r\n // this.http.get(url)\r\n // .map(res => <any[]>res)\r\n // .do(data => { this.data = data; }).subscribe(data => { super.next(data); });\r\n //}\r\n\r\n this.http.get(url).pipe(\r\n map(res => <any[]>res) \r\n ).subscribe(data => { super.next(data) });\r\n }\r\n\r\n\r\n public save(data: any, isNew: boolean, sucess?: Function) {\r\n const action = isNew ? 'add' : 'update';\r\n\r\n this.reset();\r\n this.post(action, data).subscribe(\r\n () => {\r\n },\r\n () => {\r\n this.read(); \r\n },\r\n () => {\r\n this.read();\r\n if (sucess) sucess();\r\n }\r\n );\r\n }\r\n\r\n public remove(data: any, sucess?: Function) {\r\n this.reset();\r\n this.post('remove', data).subscribe(\r\n () => {\r\n },\r\n () => {\r\n this.read();\r\n },\r\n () => {\r\n this.read();\r\n if (sucess) sucess();\r\n }\r\n );\r\n }\r\n\r\n post(action: any, data?: any): Observable<any[]> {\r\n var url = this.baseUrl + `${action}${this.serializeParams(data)}`;\r\n return this.http.post(url, data).pipe(\r\n map(res => <any[]>res)\r\n );\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 17 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Injectable } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\n\r\n@Injectable()\r\nexport class BaseGoService {\r\n protected route: ActivatedRoute;\r\n protected router: Router;\r\n\r\n constructor(route: ActivatedRoute, router: Router) {\r\n this.route = route;\r\n this.router = router;\r\n }\r\n\r\n locationReload() {\r\n //this.router.navigate([this.route.url]);\r\n (<any>window).location.reload();\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 13 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Subscription } from 'rxjs';\r\n\r\n//Custom\r\nimport { BaseApiService } from './base-api.service';\r\nimport '../consts';\r\n\r\n@Injectable()\r\nexport class AppContextService extends BaseApiService {\r\n private current = null;\r\n private successes = [];\r\n private subscription: Subscription = null;\r\n\r\n constructor(protected http: HttpClient) {\r\n super(http);\r\n this.baseUrl = anatoly.consts.apiUrl + 'appcontext/';\r\n }\r\n\r\n getCurrent(success: Function) {\r\n if (typeof success == \"undefined\") {\r\n return;\r\n }\r\n\r\n if (this.current != null) {\r\n success(this.current);\r\n return;\r\n }\r\n\r\n this.successes.push(success);\r\n\r\n if (this.subscription != null) {\r\n return;\r\n }\r\n\r\n this.subscription = this.get('GetCurrentContext', null).subscribe(\r\n data => {\r\n this.dataReceived(data);\r\n },\r\n e => { }\r\n );\r\n }\r\n\r\n dataReceived(data) {\r\n this.current = data;\r\n\r\n for (var i = 0; i < this.successes.length; i++) {\r\n var success = this.successes[i];\r\n success(data);\r\n }\r\n\r\n this.successes = [];\r\n this.subscription.unsubscribe();\r\n this.subscription = null;\r\n this.current = null;\r\n }\r\n\r\n isUserSignedIn() {\r\n return (<any>window).__context_isUserSignedIn;\r\n }\r\n\r\n isUserAdmin() {\r\n return (<any>window).__context_isUserAdmin;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 10 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\n\r\n//Services\r\nimport { AppContextService } from './services/appcontext.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule\r\n ],\r\n declarations: [\r\n ],\r\n providers: [\r\n AppContextService\r\n ]\r\n})\r\n\r\nexport class AnatolyCoreModule {\r\n}\r\n","// Base\r\nexport * from './services/base-api.service';\r\nexport * from './services/base-gridedit.service';\r\nexport * from './services/base-go.service';\r\n\r\n// Services\r\nexport * from './services/appcontext.service';\r\n\r\n//Module\r\nexport { AnatolyCoreModule } from './core.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n//@osovitny/anatoly\r\nimport { BaseApiService } from '../../core'\r\n\r\n@Injectable()\r\nexport class BaseBillingApiService extends BaseApiService {\r\n constructor(protected http: HttpClient) {\r\n super(http);\r\n this.baseUrl += 'billing/';\r\n }\r\n\r\n public requestNewSubscription(requestedPlan: Number, success?: Function, error?: Function) {\r\n this.postQS('requestNewSubscription', { requestedPlan: requestedPlan })\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n\r\n public cancelRequestedSubscription(success?: Function, error?: Function) {\r\n this.postQS('cancelRequestedSubscription', null)\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n\r\n public buyAccess(requestedPlan: Number, success?: Function, error?: Function) {\r\n this.postQS('buyAccess', { requestedPlan: requestedPlan })\r\n .subscribe(\r\n data => { },\r\n e => { if (error) error() },\r\n () => { if (success) success() }\r\n );\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 14 Aug 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n//Services\r\nimport { AppContextService } from '../../../core/services/appcontext.service';\r\nimport { BaseBillingApiService } from '../../services/base-billing-api.service';\r\n\r\n@Component({\r\n selector: 'anatoly-buyaccess-button',\r\n templateUrl: './buyaccess-button.component.html'\r\n})\r\n\r\nexport class BuyAccessButtonComponent implements OnInit {\r\n public contextUpdated: boolean = false;\r\n public isUserSignedIn: boolean = false;\r\n public currentPlan: number = 0;\r\n public currentPlanTitle: string = \"\";\r\n\r\n @Input() plan: number;\r\n @Input() plantitle: string;\r\n\r\n constructor(private appcontext: AppContextService, private api: BaseBillingApiService) {\r\n }\r\n\r\n ngOnInit() {\r\n if (!this.appcontext.isUserSignedIn()) {\r\n this.contextUpdated = true;\r\n return;\r\n }\r\n\r\n this.appcontext.getCurrent((current) => {\r\n this.isUserSignedIn = current.isUserSignedIn;\r\n\r\n if (this.isUserSignedIn) {\r\n this.currentPlan = current.account.billingPlan;\r\n this.currentPlanTitle = current.account.billingPlanAsString;\r\n }\r\n\r\n this.contextUpdated = true;\r\n });\r\n }\r\n\r\n onBuyPlan() {\r\n const text = `Requested plan: ${this.plantitle} `;\r\n\r\n var that = this;\r\n osovitny.ui.areYouSure(text, 'Buying access', 'Confirm change', 'Cancel', () => {\r\n that.api.buyAccess(that.plan, () => {\r\n osovitny.ui.alertSuccess('Access Granted', null, () => {\r\n (<any>window).location.reload();\r\n });\r\n });\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 1 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n//Services\r\nimport { AppContextService } from '../../../core/services/appcontext.service';\r\n\r\n@Component({\r\n selector: 'anatoly-subscribe-plan-button',\r\n templateUrl: './subscribe-plan-button.component.html'\r\n})\r\n\r\nexport class SubscribePlanButtonComponent implements OnInit {\r\n public contextUpdated: boolean = false;\r\n public isUserSignedIn: boolean = false;\r\n public currentPlan: number = 0;\r\n public currentPlanTitle: string = \"\";\r\n public requestedPlan: number = 0;\r\n public requestedPlanTitle: string = \"\";\r\n\r\n @Input() plan: number;\r\n @Input() plantitle: string;\r\n\r\n constructor(private appcontext: AppContextService) {\r\n }\r\n\r\n ngOnInit() {\r\n if (!this.appcontext.isUserSignedIn()) {\r\n this.contextUpdated = true;\r\n return;\r\n }\r\n\r\n this.appcontext.getCurrent((current) => {\r\n this.isUserSignedIn = current.isUserSignedIn;\r\n\r\n if (this.isUserSignedIn) {\r\n this.currentPlan = current.account.billingPlan;\r\n this.currentPlanTitle = current.account.billingPlanAsString;\r\n this.requestedPlan = current.account.requestedBillingPlan;\r\n this.requestedPlanTitle = current.account.requestedBillingPlanAsString;\r\n }\r\n\r\n this.contextUpdated = true;\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\n\r\n//Services\r\nimport { BaseBillingApiService } from '../../services/base-billing-api.service';\r\n\r\n@Component({\r\n selector: 'anatoly-upgrade-plan-button',\r\n templateUrl: './upgrade-plan-button.component.html'\r\n})\r\n\r\nexport class UpgradePlanButtonComponent {\r\n @Input() currentplantitle: string;\r\n @Input() requestedplan: number;\r\n @Input() requestedplantitle: string;\r\n\r\n constructor(private api: BaseBillingApiService) {\r\n }\r\n\r\n onUpgradePlan() {\r\n const text = `Current plan: ${this.currentplantitle} New plan: ${this.requestedplantitle}`;\r\n\r\n var that = this;\r\n osovitny.ui.areYouSure(text, 'Change billing plan', 'Confirm change', 'Cancel', () => {\r\n that.api.requestNewSubscription(that.requestedplan, () => {\r\n osovitny.ui.alertSuccess('Your request for changing plan has been sent.', null, () => {\r\n (<any>window).location.reload();\r\n });\r\n });\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signin-button',\r\n templateUrl: './signin-button.component.html'\r\n})\r\n\r\nexport class SignInButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() { }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signout-button',\r\n templateUrl: './signout-button.component.html'\r\n})\r\n\r\nexport class SignOutButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() { }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\nimport { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-signup-button',\r\n templateUrl: './signup-button.component.html'\r\n})\r\n\r\nexport class SignUpButtonComponent {\r\n @Input() classbtn: string;\r\n\r\n constructor() {\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 4 Jul 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2018 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//System\r\nimport { NgModule } from '@angular/core';\r\n\r\n//Custom\r\nimport { SignInButtonComponent } from './components/signin-button.component';\r\nimport { SignUpButtonComponent } from './components/signup-button.component';\r\nimport { SignOutButtonComponent } from './components/signout-button.component';\r\n\r\n@NgModule({\r\n imports: [\r\n ],\r\n exports: [\r\n SignInButtonComponent,\r\n SignUpButtonComponent,\r\n SignOutButtonComponent\r\n ],\r\n declarations: [\r\n SignInButtonComponent,\r\n SignUpButtonComponent,\r\n SignOutButtonComponent\r\n ],\r\n providers: []\r\n})\r\n\r\nexport class AnatolyIdentityModule {\r\n}\r\n","// Components\r\nexport * from './components/signin-button.component';\r\nexport * from './components/signout-button.component';\r\nexport * from './components/signup-button.component';\r\n\r\n//Module\r\nexport { AnatolyIdentityModule } from './identity.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 10 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\n\r\n//@osovitny/anatoly\r\nimport { AnatolyIdentityModule } from '../identity'\r\n\r\n//Components/subscriptions\r\nimport { SubscribePlanButtonComponent } from './components/subscriptions/subscribe-plan-button.component';\r\nimport { UpgradePlanButtonComponent } from './components/subscriptions/upgrade-plan-button.component';\r\n\r\n//Components/buyaccess\r\nimport { BuyAccessButtonComponent } from './components/buyaccess/buyaccess-button.component';\r\n\r\n//Services\r\nimport { BaseBillingApiService } from './services/base-billing-api.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n AnatolyIdentityModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n SubscribePlanButtonComponent,\r\n UpgradePlanButtonComponent,\r\n BuyAccessButtonComponent\r\n ],\r\n declarations: [\r\n SubscribePlanButtonComponent,\r\n UpgradePlanButtonComponent,\r\n BuyAccessButtonComponent\r\n ],\r\n providers: [\r\n BaseBillingApiService\r\n ]\r\n})\r\n\r\nexport class AnatolyBillingModule {\r\n}\r\n","// Components\r\nexport * from './components/buyaccess/buyaccess-button.component';\r\nexport * from './components/subscriptions/subscribe-plan-button.component';\r\nexport * from './components/subscriptions/upgrade-plan-button.component';\r\n\r\n// Services\r\nexport * from './services/base-billing-api.service';\r\n\r\n//Module\r\nexport { AnatolyBillingModule } from './billing.module';","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 28 Aug 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nexport class BaseComponent {\r\n constructor() {\r\n }\r\n\r\n getQSId() {\r\n var id = osovitny.utils.getValueByNameInQS(\"id\");\r\n if (typeof id === 'undefined' || id == '') return null;\r\n\r\n return id;\r\n }\r\n\r\n showLoading() {\r\n var panelLoading = $('#pnlLoading');\r\n panelLoading.show();\r\n }\r\n\r\n hideLoading() {\r\n var panelLoading = $('#pnlLoading');\r\n panelLoading.hide();\r\n }\r\n\r\n handleError(e) {\r\n this.hideLoading();\r\n osovitny.ui.errorOccurred();\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 20 Nov 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\n//Custom\r\nimport { BaseComponent } from './base.component';\r\n\r\nexport class BaseEditComponent extends BaseComponent {\r\n @Input() \r\n public formGroup: FormGroup;\r\n \r\n @Input()\r\n public formSubmitted: boolean = false;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n isActionAdding() {\r\n var id = osovitny.utils.getValueByNameInQS(\"id\");\r\n if (typeof id === 'undefined' || id == '') return true;\r\n\r\n return false;\r\n }\r\n\r\n getEntityId() {\r\n return this.getQSId();\r\n }\r\n\r\n isItemInvalid(name: string) {\r\n if (typeof name === 'undefined' || name == '') {\r\n return false;\r\n }\r\n\r\n if (!this.formGroup) {\r\n return false;\r\n }\r\n\r\n if (this.formGroup.get(name)) {\r\n return (this.formSubmitted && this.formGroup.get(name).invalid) ||\r\n (this.formGroup.get(name).touched && this.formGroup.get(name).invalid);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n getFormValue(name) {\r\n return this.formGroup.controls[name].value;\r\n }\r\n\r\n setFormValue(name, value) {\r\n this.formGroup.controls[name].setValue(value);\r\n }\r\n\r\n getFormGroupValue(groupName, name) {\r\n return this.formGroup.controls[groupName].get(name).value;\r\n }\r\n\r\n setFormGroupValue(groupName, name, value) {\r\n this.formGroup.controls[groupName].get(name).setValue(value);\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n\r\n Created:\r\n 23 Apr 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'anatoly-content-header',\r\n templateUrl: './content-header.component.html'\r\n})\r\n\r\nexport class ContentHeaderComponent implements OnInit {\r\n @Input() title?: string;\r\n\r\n ngOnInit() {\r\n if (this.title == null) {\r\n this.title = '';\r\n }\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 8 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Input } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\n//Custom\r\nimport { BaseEditComponent } from '../base-edit.component';\r\n\r\nexport class ValidationSummaryComponent extends BaseEditComponent {\r\n constructor() {\r\n super();\r\n }\r\n\r\n getFormValidationMessages(): string[] {\r\n let messages: string[] = [];\r\n\r\n Object.keys(this.formGroup.controls).forEach(k => {\r\n var control = this.formGroup.controls[k];\r\n\r\n if ((<FormGroup>control).controls != null) {\r\n Object.keys((<FormGroup>control).controls).forEach(k => {\r\n var child = (<FormGroup>control).controls[k];\r\n this.getValidationMessages(child, k).forEach(m => messages.push(m));\r\n });\r\n }\r\n else {\r\n this.getValidationMessages(control, k).forEach(m => messages.push(m));\r\n }\r\n });\r\n\r\n return messages;\r\n }\r\n\r\n getValidationMessages(state: any, thingName?: string) {\r\n let thing: string = state.path || thingName;\r\n let messages: string[] = [];\r\n\r\n if (state.errors) {\r\n for (let errorName in state.errors) {\r\n if (state.errors.hasOwnProperty(errorName)) {\r\n switch (errorName) {\r\n case 'required':\r\n messages.push(`${thing} is required`);\r\n break;\r\n\r\n case 'minlength':\r\n messages.push(`${thing} must be at least ${state.errors['minlength'].requiredLength} characters`);\r\n break;\r\n\r\n case 'pattern':\r\n messages.push(`${thing} contains illegal characters`);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return messages;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 7 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { ValidationSummaryComponent } from \"./validation-summary.component\";\r\n\r\n@Component({\r\n selector: 'anatoly-form-validation-summary',\r\n templateUrl: './form-validation-summary.component.html'\r\n})\r\n\r\nexport class FormValidationSummaryComponent extends ValidationSummaryComponent {\r\n @Input() visible: boolean = false;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n getErrors(): string[] {\r\n var messages = this.getFormValidationMessages();\r\n return messages;\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 6 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\nimport { ValidationSummaryComponent } from \"./validation-summary.component\";\r\n\r\n@Component({\r\n selector: 'anatoly-item-validation-summary',\r\n templateUrl: './item-validation-summary.component.html'\r\n})\r\n\r\nexport class ItemValidationSummaryComponent extends ValidationSummaryComponent {\r\n @Input() key: string;\r\n @Input() title: string;\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","export const DefaultEditorOptions: Object = { \r\n placeholderText: 'Edit Your Content Here',\r\n charCounterCount: true,\r\n heightMin: 100,\r\n toolbarInline: false,\r\n\r\n toolbarButtons: {\r\n 'moreText': {\r\n 'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', \r\n 'fontFamily', 'fontSize', 'textColor', 'backgroundColor', 'inlineClass', 'inlineStyle']\r\n },\r\n 'moreParagraph': {\r\n 'buttons': ['alignLeft', 'alignCenter', 'formatOLSimple', 'alignRight', 'alignJustify', \r\n 'formatOL', 'formatUL', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote']\r\n },\r\n 'moreRich': {\r\n 'buttons': ['insertLink', 'insertImage', 'insertTable', 'emoticons', 'fontAwesome', \r\n 'specialCharacters', 'embedly']\r\n },\r\n 'moreMisc': {\r\n 'buttons': ['selectAll', 'clearFormatting', 'html', 'undo', 'redo', 'fullscreen'],\r\n 'align': 'right',\r\n }\r\n },\r\n\r\n /*\r\n Upload:\r\n https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload\r\n */\r\n imageUploadURL: '/api/HtmlEditor/UploadImage',\r\n imageAllowedTypes: ['jpeg', 'jpg', 'png'],\r\n imageUploadParams: { uploadType: '', uploadParentId: '' },\r\n\r\n events: {\r\n 'image.beforeUpload': function (images) {\r\n }\r\n }\r\n};","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, OnInit, Input, AfterViewInit } from '@angular/core';\r\n\r\n//Custom\r\nimport { BaseEditComponent } from '../base-edit.component';\r\n\r\n//Consts\r\nimport { DefaultEditorOptions } from './html-editor.defaultoptions';\r\n\r\nexport class BaseHtmlEditorComponent extends BaseEditComponent implements OnInit {\r\n protected _control; \r\n\r\n //Public members\r\n public options;\r\n public editorInitialized: boolean = false;\r\n\r\n //General params\r\n @Input() editorId: string = '';\r\n @Input() editorLabelText: string = 'Html';\r\n @Input() editorOptions: Object = {};\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n let opt = this.editorOptions;\r\n if (typeof this.editorOptions == \"string\") {\r\n opt = JSON.parse(this.editorOptions);\r\n }\r\n\r\n let newOptions: any = $.extend({}, DefaultEditorOptions, opt);\r\n let key = (<any>window).__froalaEditor_Key;\r\n if (key) {\r\n newOptions = $.extend({}, newOptions, JSON.parse('{ \"key\": \"' + key + '\" }'));\r\n }\r\n \r\n if (newOptions.events && newOptions.events.initialized) {\r\n newOptions.events.initialized.overridden = false;\r\n }\r\n \r\n this.options = newOptions;\r\n }\r\n\r\n protected doAfterEditorInitialized(action) {\r\n var that = this;\r\n var timeOut = 500;\r\n\r\n if (this.editorInitialized) {\r\n timeOut = 100;\r\n }\r\n\r\n setTimeout(function () { action(that); }, timeOut);\r\n }\r\n\r\n protected getEditor() {\r\n if (this._control)\r\n return this._control.getEditor();\r\n\r\n return null;\r\n }\r\n\r\n //Public Funcs\r\n public initializeControl(control) {\r\n this._control = control; \r\n this._control.initialize(); \r\n this.editorInitialized = true;\r\n }\r\n\r\n public setUploadParams(uploadType, uploadParentId) { \r\n this.doAfterEditorInitialized(function (that) {\r\n var editor = that.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n editor.opts.imageUploadParams.uploadType = uploadType;\r\n editor.opts.imageUploadParams.uploadParentId = uploadParentId;\r\n });\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\n\r\n//Custom\r\nimport { BaseHtmlEditorComponent } from './base-html-editor.component';\r\n\r\n@Component({\r\n selector: 'anatoly-html-editor',\r\n templateUrl: './html-editor.component.html'\r\n})\r\nexport class HtmlEditorComponent extends BaseHtmlEditorComponent {\r\n constructor() {\r\n super();\r\n }\r\n\r\n public setHtml(content) {\r\n this.doAfterEditorInitialized(function (that) {\r\n var editor = that.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n editor.html.set(content);\r\n });\r\n }\r\n\r\n public getHtml() {\r\n var editor = this.getEditor();\r\n if (typeof (editor) == \"undefined\" || editor == null) {\r\n return;\r\n }\r\n\r\n return editor.html.get(false);\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Anatoly Osovitny\r\n Vadim Osovitny\r\n\r\n Created:\r\n 12 Dec 2017\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { Component, Input } from '@angular/core';\r\n\r\n//Custom\r\nimport { BaseHtmlEditorComponent } from './base-html-editor.component';\r\n\r\n@Component({\r\n selector: 'anatoly-forms-html-editor',\r\n templateUrl: './forms-html-editor.component.html'\r\n})\r\nexport class FormsHtmlEditorComponent extends BaseHtmlEditorComponent {\r\n content;\r\n \r\n @Input() editorFormKey: string = 'html';\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","/*\r\n<file>\r\n Authors:\r\n Vadim Osovitny\r\n\r\n Created:\r\n 3 Jun 2018\r\n\r\n Version:\r\n 1.0\r\n\r\n Copyright (c) 2016-2019 Osovitny Inc. All rights reserved.\r\n</file>\r\n*/\r\n\r\n//Node\r\nimport { NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule, HttpClientXsrfModule, HttpClientJsonpModule, HttpClient } from '@angular/common/http';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\n\r\n//kendo/froala\r\nimport { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';\r\nimport { GridModule } from '@progress/kendo-angular-grid';\r\nimport { PopupModule } from '@progress/kendo-angular-popup';\r\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\r\nimport { DropDownsModule } from '@progress/kendo-angular-dropdowns';\r\n\r\n//Components\r\nimport { FormValidationSummaryComponent } from './components/validation/form-validation-summary.component';\r\nimport { ItemValidationSummaryComponent } from './components/validation/item-validation-summary.component';\r\nimport { ContentHeaderComponent } from './components/content-header/content-header.component';\r\nimport { BaseHtmlEditorComponent } from './components/html-editor/base-html-editor.component';\r\nimport { HtmlEditorComponent } from './components/html-editor/html-editor.component';\r\nimport { FormsHtmlEditorComponent } from './components/html-editor/forms-html-editor.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n\r\n FroalaEditorModule.forRoot(),\r\n FroalaViewModule.forRoot(),\r\n GridModule,\r\n PopupModule,\r\n ButtonsModule,\r\n DropDownsModule\r\n ],\r\n exports: [\r\n CommonModule,\r\n HttpClientModule,\r\n HttpClientXsrfModule,\r\n HttpClientJsonpModule,\r\n\r\n ItemValidationSummaryComponent,\r\n FormValidationSummaryComponent,\r\n ContentHeaderComponent,\r\n\r\n HtmlEditorComponent,\r\n FormsHtmlEditorComponent\r\n ],\r\n declarations: [\r\n ItemValidationSummaryComponent,\r\n FormValidationSummaryComponent,\r\n ContentHeaderComponent,\r\n\r\n HtmlEditorComponent,\r\n FormsHtmlEditorComponent\r\n ],\r\n providers: [\r\n ],\r\n schemas: [\r\n CUSTOM_ELEMENTS_SCHEMA,\r\n NO_ERRORS_SCHEMA\r\n ] \r\n})\r\n\r\nexport class AnatolyUIModule {\r\n}\r\n"],"names":["anatoly","map","HttpClient","Injectable","BehaviorSubject","ActivatedRoute","Router","NgModule","CommonModule","HttpClientModule","HttpClientXsrfModule","HttpClientJsonpModule","Input","Component","ReactiveFormsModule","FormsModule","FroalaEditorModule","FroalaViewModule","GridModule","PopupModule","ButtonsModule","DropDownsModule","CUSTOM_ELEMENTS_SCHEMA","NO_ERRORS_SCHEMA"],"mappings":";;;;;;IAAA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACF;IACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;IAC3C,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC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CAAC;WAEW,eAAe,CAC3B;QAAD,sBAAC;KADD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */var f=function(t,n){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function g(t,n){function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var h;function m(t,n,e,o){var r,i=arguments.length,a=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(n,e,a):r(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}!function(t){!function(t){t.jsonUrl="/dist/json/",t.appUrl="/",t.apiUrl="/api/"}(t.consts||(t.consts={}))}(h||(h={})),window.anatoly=h;var y=function(){function t(t){this.http=t,this.baseUrl=anatoly.consts.apiUrl}return t.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},t.prototype.get=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.get(e).pipe(o.map((function(t){return t})))},t.prototype.post=function(t,n){var e=this.baseUrl+""+t;return this.http.post(e,n,{responseType:"text"})},t.prototype.postQS=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.post(e,null,{responseType:"text"})},t.prototype.getAll=function(t){return this.get("getall",t).pipe(o.map((function(t){return t})))},t.prototype.getJsonFile=function(t,n){n||(n="1.0");var e=anatoly.consts.jsonUrl+t+"?"+n;return this.http.get(e).pipe(o.map((function(t){return t})))},t.prototype.getNewGuid=function(){var t=this.baseUrl+"getNewGuid";return this.http.get(t,{responseType:"text"})},t.prototype.getById=function(t){return this.get("getById",{id:t})},t.prototype.remove=function(t){return this.postQS("remove",{id:t})},t.ctorParameters=function(){return[{type:e.HttpClient}]},t=m([n.Injectable()],t)}(),b=function(t){function r(n){var e=t.call(this,[])||this;return e.http=n,e.data=[],e.baseUrl=anatoly.consts.apiUrl,e.baseReadUrl=e.baseUrl+"getAll",e}return g(r,t),r.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},r.prototype.reset=function(){this.data=[]},r.prototype.resetItem=function(n){if(n){var e=this.data.find((function(t){return t.Id===n.Id}));Object.assign(e,n),t.prototype.next.call(this,this.data)}},r.prototype.read=function(n){var e=this;if(this.data.length)return t.prototype.next.call(this,this.data);var r=this.baseReadUrl;void 0===n&&(n=this.savedReadParams),void 0!==n&&(r=this.baseReadUrl+""+this.serializeParams(n),this.savedReadParams=n),this.http.get(r).pipe(o.map((function(t){return t}))).subscribe((function(n){t.prototype.next.call(e,n)}))},r.prototype.save=function(t,n,e){var o=this,r=n?"add":"update";this.reset(),this.post(r,t).subscribe((function(){}),(function(){o.read()}),(function(){o.read(),e&&e()}))},r.prototype.remove=function(t,n){var e=this;this.reset(),this.post("remove",t).subscribe((function(){}),(function(){e.read()}),(function(){e.read(),n&&n()}))},r.prototype.post=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.post(e,n).pipe(o.map((function(t){return t})))},r.ctorParameters=function(){return[{type:e.HttpClient}]},r=m([n.Injectable()],r)}(r.BehaviorSubject),v=function(){function t(t,n){this.route=t,this.router=n}return t.prototype.locationReload=function(){window.location.reload()},t.ctorParameters=function(){return[{type:i.ActivatedRoute},{type:i.Router}]},t=m([n.Injectable()],t)}(),I=function(t){function o(n){var e=t.call(this,n)||this;return e.http=n,e.current=null,e.successes=[],e.subscription=null,e.baseUrl=anatoly.consts.apiUrl+"appcontext/",e}return g(o,t),o.prototype.getCurrent=function(t){var n=this;void 0!==t&&(null==this.current?(this.successes.push(t),null==this.subscription&&(this.subscription=this.get("GetCurrentContext",null).subscribe((function(t){n.dataReceived(t)}),(function(t){})))):t(this.current))},o.prototype.dataReceived=function(t){this.current=t;for(var n=0;n<this.successes.length;n++){(0,this.successes[n])(t)}this.successes=[],this.subscription.unsubscribe(),this.subscription=null,this.current=null},o.prototype.isUserSignedIn=function(){return window.__context_isUserSignedIn},o.prototype.isUserAdmin=function(){return window.__context_isUserAdmin},o.ctorParameters=function(){return[{type:e.HttpClient}]},o=m([n.Injectable()],o)}(y),C=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule],declarations:[],providers:[I]})],t)}(),P=function(t){function o(n){var e=t.call(this,n)||this;return e.http=n,e.baseUrl+="billing/",e}return g(o,t),o.prototype.requestNewSubscription=function(t,n,e){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){}),(function(t){e&&e()}),(function(){n&&n()}))},o.prototype.cancelRequestedSubscription=function(t,n){this.postQS("cancelRequestedSubscription",null).subscribe((function(t){}),(function(t){n&&n()}),(function(){t&&t()}))},o.prototype.buyAccess=function(t,n,e){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){}),(function(t){e&&e()}),(function(){n&&n()}))},o.ctorParameters=function(){return[{type:e.HttpClient}]},o=m([n.Injectable()],o)}(y),S=function(){function t(t,n){this.appcontext=t,this.api=n,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(n){t.isUserSignedIn=n.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=n.account.billingPlan,t.currentPlanTitle=n.account.billingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.prototype.onBuyPlan=function(){var t="Requested plan: "+this.plantitle+" ",n=this;osovitny.ui.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){n.api.buyAccess(n.plan,(function(){osovitny.ui.alertSuccess("Access Granted",null,(function(){window.location.reload()}))}))}))},t.ctorParameters=function(){return[{type:I},{type:P}]},m([n.Input()],t.prototype,"plan",void 0),m([n.Input()],t.prototype,"plantitle",void 0),t=m([n.Component({selector:"anatoly-buyaccess-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="plan != currentPlan && currentPlan == 1" (click)="onBuyPlan()">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n'})],t)}(),U=function(){function t(t){this.appcontext=t,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle="",this.requestedPlan=0,this.requestedPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(n){t.isUserSignedIn=n.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=n.account.billingPlan,t.currentPlanTitle=n.account.billingPlanAsString,t.requestedPlan=n.account.requestedBillingPlan,t.requestedPlanTitle=n.account.requestedBillingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.ctorParameters=function(){return[{type:I}]},m([n.Input()],t.prototype,"plan",void 0),m([n.Input()],t.prototype,"plantitle",void 0),t=m([n.Component({selector:"anatoly-subscribe-plan-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="requestedPlan != null && requestedPlan != 0 && plan == requestedPlan">\r\n Requested\r\n </button>\r\n\r\n <anatoly-upgrade-plan-button *ngIf="plan != currentPlan && plan != requestedPlan"\r\n [currentplantitle]="currentPlanTitle"\r\n [requestedplan]=plan\r\n [requestedplantitle]="plantitle">\r\n </anatoly-upgrade-plan-button>\r\n </div>\r\n</div>\r\n'})],t)}(),x=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,n=this;osovitny.ui.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){n.api.requestNewSubscription(n.requestedplan,(function(){osovitny.ui.alertSuccess("Your request for changing plan has been sent.",null,(function(){window.location.reload()}))}))}))},t.ctorParameters=function(){return[{type:P}]},m([n.Input()],t.prototype,"currentplantitle",void 0),m([n.Input()],t.prototype,"requestedplan",void 0),m([n.Input()],t.prototype,"requestedplantitle",void 0),t=m([n.Component({selector:"anatoly-upgrade-plan-button",template:'<button class="btn btn-block btn-primary" (click)="onUpgradePlan()">\r\n Upgrade\r\n</button>\r\n'})],t)}(),M=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'})],t)}(),w=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'})],t)}(),q=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'})],t)}(),k=function(){function t(){}return t=m([n.NgModule({imports:[],exports:[M,q,w],declarations:[M,q,w],providers:[]})],t)}(),A=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,k],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,U,x,S],declarations:[U,x,S],providers:[P]})],t)}(),B=function(){function t(){}return t.prototype.getQSId=function(){var t=osovitny.utils.getValueByNameInQS("id");return void 0===t||""==t?null:t},t.prototype.showLoading=function(){$("#pnlLoading").show()},t.prototype.hideLoading=function(){$("#pnlLoading").hide()},t.prototype.handleError=function(t){this.hideLoading(),osovitny.ui.errorOccurred()},t}(),O=function(t){function e(){var n=t.call(this)||this;return n.formSubmitted=!1,n}return g(e,t),e.prototype.isActionAdding=function(){var t=osovitny.utils.getValueByNameInQS("id");return void 0===t||""==t},e.prototype.getEntityId=function(){return this.getQSId()},e.prototype.isItemInvalid=function(t){return void 0!==t&&""!=t&&(!!this.formGroup.get(t)&&(this.formSubmitted&&this.formGroup.get(t).invalid||this.formGroup.get(t).touched&&this.formGroup.get(t).invalid))},e.prototype.getFormValue=function(t){return this.formGroup.controls[t].value},e.prototype.setFormValue=function(t,n){this.formGroup.controls[t].setValue(n)},e.prototype.getFormGroupValue=function(t,n){return this.formGroup.controls[t].get(n).value},e.prototype.setFormGroupValue=function(t,n,e){this.formGroup.controls[t].get(n).setValue(e)},m([n.Input()],e.prototype,"formGroup",void 0),m([n.Input()],e.prototype,"formSubmitted",void 0),e}(B),H=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},m([n.Input()],t.prototype,"title",void 0),t=m([n.Component({selector:"anatoly-content-header",template:'<h2 class="page-header">\r\n {{title}}\r\n \x3c!--<small>Optional {{title}}</small>--\x3e\r\n</h2>\r\n'})],t)}(),E=function(t){function n(){return t.call(this)||this}return g(n,t),n.prototype.getFormValidationMessages=function(){var t=this,n=[];return Object.keys(this.formGroup.controls).forEach((function(e){var o=t.formGroup.controls[e];null!=o.controls?Object.keys(o.controls).forEach((function(e){var r=o.controls[e];t.getValidationMessages(r,e).forEach((function(t){return n.push(t)}))})):t.getValidationMessages(o,e).forEach((function(t){return n.push(t)}))})),n},n.prototype.getValidationMessages=function(t,n){var e=t.path||n,o=[];if(t.errors)for(var r in t.errors)if(t.errors.hasOwnProperty(r))switch(r){case"required":o.push(e+" is required");break;case"minlength":o.push(e+" must be at least "+t.errors.minlength.requiredLength+" characters");break;case"pattern":o.push(e+" contains illegal characters")}return o},n}(O),_=function(t){function e(){var n=t.call(this)||this;return n.visible=!1,n}return g(e,t),e.prototype.getErrors=function(){return this.getFormValidationMessages()},m([n.Input()],e.prototype,"visible",void 0),e=m([n.Component({selector:"anatoly-form-validation-summary",template:'<div class="callout callout-danger" *ngIf="visible">\r\n <h4 class="box-title">There are problems with the form</h4>\r\n <p *ngFor="let error of getErrors()"><span class="help-block " style="color:white">{{error}}</span></p>\r\n</div>\r\n'})],e)}(E),F=function(t){function e(){return t.call(this)||this}return g(e,t),m([n.Input()],e.prototype,"key",void 0),m([n.Input()],e.prototype,"title",void 0),e=m([n.Component({selector:"anatoly-item-validation-summary",template:'<ul class="list-unstyled" *ngIf="isItemInvalid(key)">\r\n <li *ngFor="let error of getValidationMessages(formGroup.get(key), title)">\r\n <span class="help-block">{{ error }}</span>\r\n </li>\r\n</ul>'})],e)}(E),j={placeholderText:"Edit Your Content Here",charCounterCount:!0,heightMin:100,toolbarInline:!1,toolbarButtons:{moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreRich:{buttons:["insertLink","insertImage","insertTable","emoticons","fontAwesome","specialCharacters","embedly"]},moreMisc:{buttons:["selectAll","clearFormatting","html","undo","redo","fullscreen"],align:"right"}},imageUploadURL:"/api/HtmlEditor/UploadImage",imageAllowedTypes:["jpeg","jpg","png"],imageUploadParams:{uploadType:"",uploadParentId:""},events:{"image.beforeUpload":function(t){},initialized:function(){},contentChanged:function(){}}},G=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._editorInitialized=!1,n.editorId="",n.editorLabelText="Html",n.editorOptions={},n.isFormBased="1",n.editorFormKey="html",n}return g(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var n=$.extend({},j,t),e=window.__froalaEditor_Key;e&&(n=$.extend({},JSON.parse('{ "key": "'+e+'" }'),n)),this.options=n},e.prototype.doAfterEditorInitialized=function(t){var n=this,e=500;this._editorInitialized&&(e=100),setTimeout((function(){t(n)}),e)},e.prototype.getEditor=function(){return this._control?this._control.getEditor():null},e.prototype.initializeControl=function(t){this._control=t,this._control.initialize(),this._editorInitialized=!0},e.prototype.setUploadParams=function(t,n){this.doAfterEditorInitialized((function(e){var o=e.getEditor();void 0!==o&&null!=o&&(o.opts.imageUploadParams.uploadType=t,o.opts.imageUploadParams.uploadParentId=n)}))},e.prototype.setHtml=function(t){"1"!=this.isFormBased&&this.doAfterEditorInitialized((function(n){var e=n.getEditor();void 0!==e&&null!=e&&e.html.set(t)}))},e.prototype.getHtml=function(){if("1"==this.isFormBased)return null;var t=this.getEditor();return void 0!==t&&null!=t?t.html.get(!1):void 0},m([n.Input()],e.prototype,"editorId",void 0),m([n.Input()],e.prototype,"editorLabelText",void 0),m([n.Input()],e.prototype,"editorOptions",void 0),m([n.Input()],e.prototype,"isFormBased",void 0),m([n.Input()],e.prototype,"editorFormKey",void 0),e=m([n.Component({selector:"anatoly-html-editor",template:'<div [ngSwitch]="isFormBased">\r\n <ng-template ngSwitchCase="0">\r\n <label>{{ editorLabelText }}</label>\r\n <textarea id="htmleditor-{{editorId}}" class="htmleditor-{{editorId}}" \r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n </ng-template>\r\n\r\n <ng-template ngSwitchCase="1">\r\n <div [formGroup]="formGroup">\r\n <div class="form-group" [ngClass]="{\'has-error\': isItemInvalid(editorFormKey) }">\r\n <label class="control-label">{{ editorLabelText }}</label>\r\n <textarea id="htmleditor-{{editorId}}" class="htmleditor-{{editorId}}"\r\n [formControlName]="editorFormKey"\r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n <anatoly-item-validation-summary [formGroup]="formGroup"\r\n [formSubmitted]="formSubmitted"\r\n [key]="editorFormKey"\r\n [title]="editorLabelText">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n'})],e)}(O),R=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,s.ReactiveFormsModule,s.FormsModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,l.FroalaEditorModule.forRoot(),l.FroalaViewModule.forRoot(),u.GridModule,p.PopupModule,c.ButtonsModule,d.DropDownsModule],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,F,_,G,H],declarations:[F,_,G,H],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA,n.NO_ERRORS_SCHEMA]})],t)}();t.AnatolyBillingModule=A,t.AnatolyCoreModule=C,t.AnatolyIdentityModule=k,t.AnatolyUIModule=R,t.AppContextService=I,t.BaseApiService=y,t.BaseBillingApiService=P,t.BaseComponent=B,t.BaseEditComponent=O,t.BaseGoService=v,t.BaseGridEditService=b,t.BuyAccessButtonComponent=S,t.ContentHeaderComponent=H,t.FormValidationSummaryComponent=_,t.HtmlEditorComponent=G,t.ItemValidationSummaryComponent=F,t.SignInButtonComponent=M,t.SignOutButtonComponent=w,t.SignUpButtonComponent=q,t.SubscribePlanButtonComponent=U,t.UpgradePlanButtonComponent=x,t.ValidationSummaryComponent=E,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var f=function(t,n){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function h(t,n){function e(){this.constructor=t}f(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var g;function m(t,n,e,o){var r,i=arguments.length,a=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(i<3?r(a):i>3?r(n,e,a):r(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}!function(t){!function(t){t.jsonUrl="/dist/json/",t.appUrl="/",t.apiUrl="/api/"}(t.consts||(t.consts={}))}(g||(g={})),window.anatoly=g;var y=function(){function t(t){this.http=t,this.baseUrl=anatoly.consts.apiUrl}return t.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},t.prototype.get=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.get(e).pipe(o.map((function(t){return t})))},t.prototype.post=function(t,n){var e=this.baseUrl+""+t;return this.http.post(e,n,{responseType:"text"})},t.prototype.postQS=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.post(e,null,{responseType:"text"})},t.prototype.getAll=function(t){return this.get("getall",t).pipe(o.map((function(t){return t})))},t.prototype.getJsonFile=function(t,n){n||(n="1.0");var e=anatoly.consts.jsonUrl+t+"?"+n;return this.http.get(e).pipe(o.map((function(t){return t})))},t.prototype.getNewGuid=function(){var t=this.baseUrl+"getNewGuid";return this.http.get(t,{responseType:"text"})},t.prototype.getById=function(t){return this.get("getById",{id:t})},t.prototype.remove=function(t){return this.postQS("remove",{id:t})},t.ctorParameters=function(){return[{type:e.HttpClient}]},t=m([n.Injectable()],t)}(),b=function(t){function r(n){var e=t.call(this,[])||this;return e.http=n,e.data=[],e.baseUrl=anatoly.consts.apiUrl,e.baseReadUrl=e.baseUrl+"getAll",e}return h(r,t),r.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},r.prototype.reset=function(){this.data=[]},r.prototype.resetItem=function(n){if(n){var e=this.data.find((function(t){return t.Id===n.Id}));Object.assign(e,n),t.prototype.next.call(this,this.data)}},r.prototype.read=function(n){var e=this;if(this.data.length)return t.prototype.next.call(this,this.data);var r=this.baseReadUrl;void 0===n&&(n=this.savedReadParams),void 0!==n&&(r=this.baseReadUrl+""+this.serializeParams(n),this.savedReadParams=n),this.http.get(r).pipe(o.map((function(t){return t}))).subscribe((function(n){t.prototype.next.call(e,n)}))},r.prototype.save=function(t,n,e){var o=this,r=n?"add":"update";this.reset(),this.post(r,t).subscribe((function(){}),(function(){o.read()}),(function(){o.read(),e&&e()}))},r.prototype.remove=function(t,n){var e=this;this.reset(),this.post("remove",t).subscribe((function(){}),(function(){e.read()}),(function(){e.read(),n&&n()}))},r.prototype.post=function(t,n){var e=this.baseUrl+""+t+this.serializeParams(n);return this.http.post(e,n).pipe(o.map((function(t){return t})))},r.ctorParameters=function(){return[{type:e.HttpClient}]},r=m([n.Injectable()],r)}(r.BehaviorSubject),v=function(){function t(t,n){this.route=t,this.router=n}return t.prototype.locationReload=function(){window.location.reload()},t.ctorParameters=function(){return[{type:i.ActivatedRoute},{type:i.Router}]},t=m([n.Injectable()],t)}(),I=function(t){function o(n){var e=t.call(this,n)||this;return e.http=n,e.current=null,e.successes=[],e.subscription=null,e.baseUrl=anatoly.consts.apiUrl+"appcontext/",e}return h(o,t),o.prototype.getCurrent=function(t){var n=this;void 0!==t&&(null==this.current?(this.successes.push(t),null==this.subscription&&(this.subscription=this.get("GetCurrentContext",null).subscribe((function(t){n.dataReceived(t)}),(function(t){})))):t(this.current))},o.prototype.dataReceived=function(t){this.current=t;for(var n=0;n<this.successes.length;n++){(0,this.successes[n])(t)}this.successes=[],this.subscription.unsubscribe(),this.subscription=null,this.current=null},o.prototype.isUserSignedIn=function(){return window.__context_isUserSignedIn},o.prototype.isUserAdmin=function(){return window.__context_isUserAdmin},o.ctorParameters=function(){return[{type:e.HttpClient}]},o=m([n.Injectable()],o)}(y),C=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule],declarations:[],providers:[I]})],t)}(),P=function(t){function o(n){var e=t.call(this,n)||this;return e.http=n,e.baseUrl+="billing/",e}return h(o,t),o.prototype.requestNewSubscription=function(t,n,e){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){}),(function(t){e&&e()}),(function(){n&&n()}))},o.prototype.cancelRequestedSubscription=function(t,n){this.postQS("cancelRequestedSubscription",null).subscribe((function(t){}),(function(t){n&&n()}),(function(){t&&t()}))},o.prototype.buyAccess=function(t,n,e){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){}),(function(t){e&&e()}),(function(){n&&n()}))},o.ctorParameters=function(){return[{type:e.HttpClient}]},o=m([n.Injectable()],o)}(y),S=function(){function t(t,n){this.appcontext=t,this.api=n,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(n){t.isUserSignedIn=n.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=n.account.billingPlan,t.currentPlanTitle=n.account.billingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.prototype.onBuyPlan=function(){var t="Requested plan: "+this.plantitle+" ",n=this;osovitny.ui.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){n.api.buyAccess(n.plan,(function(){osovitny.ui.alertSuccess("Access Granted",null,(function(){window.location.reload()}))}))}))},t.ctorParameters=function(){return[{type:I},{type:P}]},m([n.Input()],t.prototype,"plan",void 0),m([n.Input()],t.prototype,"plantitle",void 0),t=m([n.Component({selector:"anatoly-buyaccess-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="plan != currentPlan && currentPlan == 1" (click)="onBuyPlan()">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n'})],t)}(),U=function(){function t(t){this.appcontext=t,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle="",this.requestedPlan=0,this.requestedPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(n){t.isUserSignedIn=n.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=n.account.billingPlan,t.currentPlanTitle=n.account.billingPlanAsString,t.requestedPlan=n.account.requestedBillingPlan,t.requestedPlanTitle=n.account.requestedBillingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.ctorParameters=function(){return[{type:I}]},m([n.Input()],t.prototype,"plan",void 0),m([n.Input()],t.prototype,"plantitle",void 0),t=m([n.Component({selector:"anatoly-subscribe-plan-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="requestedPlan != null && requestedPlan != 0 && plan == requestedPlan">\r\n Requested\r\n </button>\r\n\r\n <anatoly-upgrade-plan-button *ngIf="plan != currentPlan && plan != requestedPlan"\r\n [currentplantitle]="currentPlanTitle"\r\n [requestedplan]=plan\r\n [requestedplantitle]="plantitle">\r\n </anatoly-upgrade-plan-button>\r\n </div>\r\n</div>\r\n'})],t)}(),x=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,n=this;osovitny.ui.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){n.api.requestNewSubscription(n.requestedplan,(function(){osovitny.ui.alertSuccess("Your request for changing plan has been sent.",null,(function(){window.location.reload()}))}))}))},t.ctorParameters=function(){return[{type:P}]},m([n.Input()],t.prototype,"currentplantitle",void 0),m([n.Input()],t.prototype,"requestedplan",void 0),m([n.Input()],t.prototype,"requestedplantitle",void 0),t=m([n.Component({selector:"anatoly-upgrade-plan-button",template:'<button class="btn btn-block btn-primary" (click)="onUpgradePlan()">\r\n Upgrade\r\n</button>\r\n'})],t)}(),M=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'})],t)}(),w=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'})],t)}(),q=function(){function t(){}return m([n.Input()],t.prototype,"classbtn",void 0),t=m([n.Component({selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'})],t)}(),k=function(){function t(){}return t=m([n.NgModule({imports:[],exports:[M,q,w],declarations:[M,q,w],providers:[]})],t)}(),A=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,k],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,U,x,S],declarations:[U,x,S],providers:[P]})],t)}(),H=function(){function t(){}return t.prototype.getQSId=function(){var t=osovitny.utils.getValueByNameInQS("id");return void 0===t||""==t?null:t},t.prototype.showLoading=function(){$("#pnlLoading").show()},t.prototype.hideLoading=function(){$("#pnlLoading").hide()},t.prototype.handleError=function(t){this.hideLoading(),osovitny.ui.errorOccurred()},t}(),O=function(t){function e(){var n=t.call(this)||this;return n.formSubmitted=!1,n}return h(e,t),e.prototype.isActionAdding=function(){var t=osovitny.utils.getValueByNameInQS("id");return void 0===t||""==t},e.prototype.getEntityId=function(){return this.getQSId()},e.prototype.isItemInvalid=function(t){return void 0!==t&&""!=t&&(!!this.formGroup&&(!!this.formGroup.get(t)&&(this.formSubmitted&&this.formGroup.get(t).invalid||this.formGroup.get(t).touched&&this.formGroup.get(t).invalid)))},e.prototype.getFormValue=function(t){return this.formGroup.controls[t].value},e.prototype.setFormValue=function(t,n){this.formGroup.controls[t].setValue(n)},e.prototype.getFormGroupValue=function(t,n){return this.formGroup.controls[t].get(n).value},e.prototype.setFormGroupValue=function(t,n,e){this.formGroup.controls[t].get(n).setValue(e)},m([n.Input()],e.prototype,"formGroup",void 0),m([n.Input()],e.prototype,"formSubmitted",void 0),e}(H),E=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},m([n.Input()],t.prototype,"title",void 0),t=m([n.Component({selector:"anatoly-content-header",template:'<h2 class="page-header">\r\n {{title}}\r\n \x3c!--<small>Optional {{title}}</small>--\x3e\r\n</h2>\r\n'})],t)}(),B=function(t){function n(){return t.call(this)||this}return h(n,t),n.prototype.getFormValidationMessages=function(){var t=this,n=[];return Object.keys(this.formGroup.controls).forEach((function(e){var o=t.formGroup.controls[e];null!=o.controls?Object.keys(o.controls).forEach((function(e){var r=o.controls[e];t.getValidationMessages(r,e).forEach((function(t){return n.push(t)}))})):t.getValidationMessages(o,e).forEach((function(t){return n.push(t)}))})),n},n.prototype.getValidationMessages=function(t,n){var e=t.path||n,o=[];if(t.errors)for(var r in t.errors)if(t.errors.hasOwnProperty(r))switch(r){case"required":o.push(e+" is required");break;case"minlength":o.push(e+" must be at least "+t.errors.minlength.requiredLength+" characters");break;case"pattern":o.push(e+" contains illegal characters")}return o},n}(O),j=function(t){function e(){var n=t.call(this)||this;return n.visible=!1,n}return h(e,t),e.prototype.getErrors=function(){return this.getFormValidationMessages()},m([n.Input()],e.prototype,"visible",void 0),e=m([n.Component({selector:"anatoly-form-validation-summary",template:'<div class="callout callout-danger" *ngIf="visible">\r\n <h4 class="box-title">There are problems with the form</h4>\r\n <p *ngFor="let error of getErrors()"><span class="help-block " style="color:white">{{error}}</span></p>\r\n</div>\r\n'})],e)}(B),G=function(t){function e(){return t.call(this)||this}return h(e,t),m([n.Input()],e.prototype,"key",void 0),m([n.Input()],e.prototype,"title",void 0),e=m([n.Component({selector:"anatoly-item-validation-summary",template:'<ul class="list-unstyled" *ngIf="isItemInvalid(key)">\r\n <li *ngFor="let error of getValidationMessages(formGroup.get(key), title)">\r\n <span class="help-block">{{ error }}</span>\r\n </li>\r\n</ul>'})],e)}(B),_={placeholderText:"Edit Your Content Here",charCounterCount:!0,heightMin:100,toolbarInline:!1,toolbarButtons:{moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreRich:{buttons:["insertLink","insertImage","insertTable","emoticons","fontAwesome","specialCharacters","embedly"]},moreMisc:{buttons:["selectAll","clearFormatting","html","undo","redo","fullscreen"],align:"right"}},imageUploadURL:"/api/HtmlEditor/UploadImage",imageAllowedTypes:["jpeg","jpg","png"],imageUploadParams:{uploadType:"",uploadParentId:""},events:{"image.beforeUpload":function(t){}}},R=function(t){function e(){var n=t.call(this)||this;return n.editorInitialized=!1,n.editorId="",n.editorLabelText="Html",n.editorOptions={},n}return h(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var n=$.extend({},_,t),e=window.__froalaEditor_Key;e&&(n=$.extend({},n,JSON.parse('{ "key": "'+e+'" }'))),n.events&&n.events.initialized&&(n.events.initialized.overridden=!1),this.options=n},e.prototype.doAfterEditorInitialized=function(t){var n=this,e=500;this.editorInitialized&&(e=100),setTimeout((function(){t(n)}),e)},e.prototype.getEditor=function(){return this._control?this._control.getEditor():null},e.prototype.initializeControl=function(t){this._control=t,this._control.initialize(),this.editorInitialized=!0},e.prototype.setUploadParams=function(t,n){this.doAfterEditorInitialized((function(e){var o=e.getEditor();void 0!==o&&null!=o&&(o.opts.imageUploadParams.uploadType=t,o.opts.imageUploadParams.uploadParentId=n)}))},m([n.Input()],e.prototype,"editorId",void 0),m([n.Input()],e.prototype,"editorLabelText",void 0),m([n.Input()],e.prototype,"editorOptions",void 0),e}(O),T=function(t){function e(){return t.call(this)||this}return h(e,t),e.prototype.setHtml=function(t){this.doAfterEditorInitialized((function(n){var e=n.getEditor();void 0!==e&&null!=e&&e.html.set(t)}))},e.prototype.getHtml=function(){var t=this.getEditor();if(void 0!==t&&null!=t)return t.html.get(!1)},e=m([n.Component({selector:"anatoly-html-editor",template:'<div>\r\n <label>{{ editorLabelText }}</label>\r\n <textarea id="htmleditor-{{editorId}}" class="htmleditor-{{editorId}}" \r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n</div>'})],e)}(R),F=function(t){function e(){var n=t.call(this)||this;return n.editorFormKey="html",n}return h(e,t),m([n.Input()],e.prototype,"editorFormKey",void 0),e=m([n.Component({selector:"anatoly-forms-html-editor",template:'<div [formGroup]="formGroup">\r\n <div class="form-group" [ngClass]="{\'has-error\': isItemInvalid(editorFormKey) }">\r\n <label class="control-label">{{ editorLabelText }}</label>\r\n <textarea id="htmleditor-{{editorId}}" class="htmleditor-{{editorId}}"\r\n [formControlName]="editorFormKey"\r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n <anatoly-item-validation-summary [formGroup]="formGroup"\r\n [formSubmitted]="formSubmitted"\r\n [key]="editorFormKey"\r\n [title]="editorLabelText">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n</div>\r\n'})],e)}(R),z=function(){function t(){}return t=m([n.NgModule({imports:[a.CommonModule,s.ReactiveFormsModule,s.FormsModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,l.FroalaEditorModule.forRoot(),l.FroalaViewModule.forRoot(),u.GridModule,p.PopupModule,c.ButtonsModule,d.DropDownsModule],exports:[a.CommonModule,e.HttpClientModule,e.HttpClientXsrfModule,e.HttpClientJsonpModule,G,j,E,T,F],declarations:[G,j,E,T,F],providers:[],schemas:[n.CUSTOM_ELEMENTS_SCHEMA,n.NO_ERRORS_SCHEMA]})],t)}();t.AnatolyBillingModule=A,t.AnatolyCoreModule=C,t.AnatolyIdentityModule=k,t.AnatolyUIModule=z,t.AppContextService=I,t.BaseApiService=y,t.BaseBillingApiService=P,t.BaseComponent=H,t.BaseEditComponent=O,t.BaseGoService=v,t.BaseGridEditService=b,t.BuyAccessButtonComponent=S,t.ContentHeaderComponent=E,t.FormValidationSummaryComponent=j,t.FormsHtmlEditorComponent=F,t.HtmlEditorComponent=T,t.ItemValidationSummaryComponent=G,t.SignInButtonComponent=M,t.SignOutButtonComponent=w,t.SignUpButtonComponent=q,t.SubscribePlanButtonComponent=U,t.UpgradePlanButtonComponent=x,t.ValidationSummaryComponent=B,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=osovitny-anatoly.umd.min.js.map
|