@osovitny/anatoly 2.1.13 → 2.14.1
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/assets/styles/alerts.less +182 -0
- package/assets/styles/spinner.less +64 -0
- package/assets/styles/toastr.less +192 -0
- package/esm2020/lib/core/convert.mjs +62 -0
- package/esm2020/lib/core/core.module.mjs +72 -0
- package/esm2020/lib/core/go/base-go.service.mjs +41 -0
- package/esm2020/lib/core/guid.mjs +22 -0
- package/esm2020/lib/core/interceptors/httpInterceptor.mjs +108 -0
- package/esm2020/lib/core/localization/localization.module.mjs +47 -0
- package/esm2020/lib/core/localization/localization.service.mjs +185 -0
- package/esm2020/lib/core/localization/localizationSettings.module.mjs +88 -0
- package/esm2020/lib/core/localization/localize.pipe.mjs +78 -0
- package/esm2020/lib/core/logging/globalErrorHandler.mjs +44 -0
- package/esm2020/lib/core/logging/logging.service.mjs +39 -0
- package/esm2020/lib/core/notifications/services/notification-service.mjs +228 -0
- package/esm2020/lib/core/services/appcontext.service.mjs +118 -0
- package/esm2020/lib/core/services/dm.service.mjs +72 -0
- package/esm2020/lib/core/services/google-analytics.service.mjs +54 -0
- package/{esm2015/lib/core/services/idle.service.js → esm2020/lib/core/services/idle.service.mjs} +9 -7
- package/{esm2015/lib/core/services/loading.service.js → esm2020/lib/core/services/loading.service.mjs} +9 -8
- package/esm2020/lib/core/services/web-storage.service.mjs +69 -0
- package/esm2020/lib/core/subs.mjs +31 -0
- package/esm2020/lib/core/utils.mjs +82 -0
- package/esm2020/lib/data/base/base-api.service.mjs +89 -0
- package/esm2020/lib/data/base/grid/base-grid-edit.service.mjs +77 -0
- package/esm2020/lib/data/base/grid/base-grid-read.service.mjs +62 -0
- package/esm2020/lib/data/data.module.mjs +51 -0
- package/esm2020/lib/data/services/billing-api.service.mjs +65 -0
- package/esm2020/lib/data/services/notifications/notifications-api-service.mjs +43 -0
- package/esm2020/lib/ui/components/base-edit.component.mjs +143 -0
- package/esm2020/lib/ui/components/base.component.mjs +47 -0
- package/esm2020/lib/ui/components/base.dialog.mjs +49 -0
- package/esm2020/lib/ui/components/billing/buyaccess-button.component.mjs +69 -0
- package/esm2020/lib/ui/components/billing/subscribe-plan-button.component.mjs +63 -0
- package/esm2020/lib/ui/components/billing/upgrade-plan-button.component.mjs +53 -0
- package/esm2020/lib/ui/components/content-header/content-header.component.mjs +37 -0
- package/esm2020/lib/ui/components/html-editor/base-html-editor.component.mjs +111 -0
- package/esm2020/lib/ui/components/html-editor/forms-html-editor.component.mjs +48 -0
- package/esm2020/lib/ui/components/html-editor/html-editor.component.mjs +52 -0
- package/esm2020/lib/ui/components/identity/signin-button.component.mjs +32 -0
- package/esm2020/lib/ui/components/identity/signout-button.component.mjs +32 -0
- package/esm2020/lib/ui/components/identity/signup-button.component.mjs +31 -0
- package/esm2020/lib/ui/components/loading/loading.component.mjs +48 -0
- package/esm2020/lib/ui/components/spinner/spinner.component.mjs +74 -0
- package/esm2020/lib/ui/directives/native-element.directive.mjs +41 -0
- package/esm2020/lib/ui/pipes/filesize.pipe.mjs +45 -0
- package/esm2020/lib/ui/pipes/replace-text.pipe.mjs +40 -0
- package/esm2020/lib/ui/pipes/safeHtml.pipe.mjs +37 -0
- package/esm2020/lib/ui/ui.module.mjs +155 -0
- package/esm2020/lib/ui/validation/form-validation-summary.component.mjs +66 -0
- package/esm2020/lib/ui/validation/item-validation-summary.component.mjs +39 -0
- package/esm2020/lib/ui/validation/validation-summary.component.mjs +128 -0
- package/fesm2015/{osovitny-anatoly.js → osovitny-anatoly.mjs} +823 -765
- package/fesm2015/osovitny-anatoly.mjs.map +1 -0
- package/fesm2020/osovitny-anatoly.mjs +3496 -0
- package/fesm2020/osovitny-anatoly.mjs.map +1 -0
- package/{osovitny-anatoly.d.ts → index.d.ts} +1 -0
- package/lib/core/core.module.d.ts +5 -0
- package/lib/core/go/base-go.service.d.ts +3 -0
- package/lib/core/interceptors/httpInterceptor.d.ts +3 -0
- package/lib/core/localization/localization.module.d.ts +6 -0
- package/lib/core/localization/localization.service.d.ts +3 -0
- package/lib/core/localization/localizationSettings.module.d.ts +5 -0
- package/lib/core/localization/localize.pipe.d.ts +3 -0
- package/lib/core/logging/globalErrorHandler.d.ts +3 -0
- package/lib/core/logging/logging.service.d.ts +3 -0
- package/lib/core/notifications/services/notification-service.d.ts +3 -0
- package/lib/core/services/appcontext.service.d.ts +5 -2
- package/lib/core/services/dm.service.d.ts +3 -0
- package/lib/core/services/google-analytics.service.d.ts +3 -0
- package/lib/core/services/idle.service.d.ts +3 -0
- package/lib/core/services/loading.service.d.ts +3 -0
- package/lib/core/services/web-storage.service.d.ts +5 -0
- package/lib/data/base/base-api.service.d.ts +3 -0
- package/lib/data/base/grid/base-grid-edit.service.d.ts +3 -0
- package/lib/data/base/grid/base-grid-read.service.d.ts +3 -0
- package/lib/data/data.module.d.ts +5 -0
- package/lib/data/services/billing-api.service.d.ts +3 -0
- package/lib/data/services/notifications/notifications-api-service.d.ts +3 -0
- package/lib/ui/components/base-edit.component.d.ts +5 -2
- package/lib/ui/components/base.component.d.ts +3 -0
- package/lib/ui/components/base.dialog.d.ts +3 -0
- package/lib/ui/components/billing/buyaccess-button.component.d.ts +3 -0
- package/lib/ui/components/billing/subscribe-plan-button.component.d.ts +3 -0
- package/lib/ui/components/billing/upgrade-plan-button.component.d.ts +3 -0
- package/lib/ui/components/content-header/content-header.component.d.ts +3 -0
- package/lib/ui/components/html-editor/base-html-editor.component.d.ts +3 -0
- package/lib/ui/components/html-editor/forms-html-editor.component.d.ts +3 -0
- package/lib/ui/components/html-editor/html-editor.component.d.ts +3 -0
- package/lib/ui/components/identity/signin-button.component.d.ts +3 -0
- package/lib/ui/components/identity/signout-button.component.d.ts +3 -0
- package/lib/ui/components/identity/signup-button.component.d.ts +3 -0
- package/lib/ui/components/loading/loading.component.d.ts +3 -0
- package/lib/ui/components/spinner/spinner.component.d.ts +3 -0
- package/lib/ui/directives/native-element.directive.d.ts +3 -0
- package/lib/ui/pipes/filesize.pipe.d.ts +3 -0
- package/lib/ui/pipes/replace-text.pipe.d.ts +3 -0
- package/lib/ui/pipes/safeHtml.pipe.d.ts +3 -0
- package/lib/ui/ui.module.d.ts +24 -0
- package/lib/ui/validation/form-validation-summary.component.d.ts +3 -0
- package/lib/ui/validation/item-validation-summary.component.d.ts +3 -0
- package/lib/ui/validation/validation-summary.component.d.ts +3 -0
- package/package.json +23 -11
- package/bundles/osovitny-anatoly.umd.js +0 -3696
- package/bundles/osovitny-anatoly.umd.js.map +0 -1
- package/esm2015/lib/core/convert.js +0 -65
- package/esm2015/lib/core/core.module.js +0 -43
- package/esm2015/lib/core/go/base-go.service.js +0 -42
- package/esm2015/lib/core/guid.js +0 -25
- package/esm2015/lib/core/interceptors/httpInterceptor.js +0 -109
- package/esm2015/lib/core/localization/localization.module.js +0 -41
- package/esm2015/lib/core/localization/localization.service.js +0 -187
- package/esm2015/lib/core/localization/localizationSettings.module.js +0 -78
- package/esm2015/lib/core/localization/localize.pipe.js +0 -78
- package/esm2015/lib/core/logging/globalErrorHandler.js +0 -44
- package/esm2015/lib/core/logging/logging.service.js +0 -38
- package/esm2015/lib/core/notifications/services/notification-service.js +0 -230
- package/esm2015/lib/core/services/appcontext.service.js +0 -118
- package/esm2015/lib/core/services/dm.service.js +0 -74
- package/esm2015/lib/core/services/google-analytics.service.js +0 -53
- package/esm2015/lib/core/services/web-storage.service.js +0 -66
- package/esm2015/lib/core/subs.js +0 -34
- package/esm2015/lib/core/utils.js +0 -84
- package/esm2015/lib/data/base/base-api.service.js +0 -89
- package/esm2015/lib/data/base/grid/base-grid-edit.service.js +0 -77
- package/esm2015/lib/data/base/grid/base-grid-read.service.js +0 -62
- package/esm2015/lib/data/data.module.js +0 -43
- package/esm2015/lib/data/services/billing-api.service.js +0 -65
- package/esm2015/lib/data/services/notifications/notifications-api-service.js +0 -45
- package/esm2015/lib/ui/components/base-edit.component.js +0 -142
- package/esm2015/lib/ui/components/base.component.js +0 -43
- package/esm2015/lib/ui/components/base.dialog.js +0 -47
- package/esm2015/lib/ui/components/billing/buyaccess-button.component.js +0 -71
- package/esm2015/lib/ui/components/billing/subscribe-plan-button.component.js +0 -63
- package/esm2015/lib/ui/components/billing/upgrade-plan-button.component.js +0 -54
- package/esm2015/lib/ui/components/content-header/content-header.component.js +0 -37
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +0 -108
- package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +0 -44
- package/esm2015/lib/ui/components/html-editor/html-editor.component.js +0 -51
- package/esm2015/lib/ui/components/identity/signin-button.component.js +0 -33
- package/esm2015/lib/ui/components/identity/signout-button.component.js +0 -33
- package/esm2015/lib/ui/components/identity/signup-button.component.js +0 -31
- package/esm2015/lib/ui/components/loading/loading.component.js +0 -49
- package/esm2015/lib/ui/components/spinner/spinner.component.js +0 -73
- package/esm2015/lib/ui/directives/native-element.directive.js +0 -41
- package/esm2015/lib/ui/pipes/filesize.pipe.js +0 -41
- package/esm2015/lib/ui/pipes/replace-text.pipe.js +0 -36
- package/esm2015/lib/ui/pipes/safeHtml.pipe.js +0 -36
- package/esm2015/lib/ui/ui.module.js +0 -105
- package/esm2015/lib/ui/validation/form-validation-summary.component.js +0 -64
- package/esm2015/lib/ui/validation/item-validation-summary.component.js +0 -38
- package/esm2015/lib/ui/validation/validation-summary.component.js +0 -126
- package/fesm2015/osovitny-anatoly.js.map +0 -1
- package/osovitny-anatoly.metadata.json +0 -1
- /package/{esm2015/lib/core/consts/settings.js → esm2020/lib/core/consts/settings.mjs} +0 -0
- /package/{esm2015/lib/core/consts/urls.js → esm2020/lib/core/consts/urls.mjs} +0 -0
- /package/{esm2015/lib/core/guards/once-import.guard.js → esm2020/lib/core/guards/once-import.guard.mjs} +0 -0
- /package/{esm2015/lib/core/localization/utils.js → esm2020/lib/core/localization/utils.mjs} +0 -0
- /package/{esm2015/lib/core/notifications/alerts.js → esm2020/lib/core/notifications/alerts.mjs} +0 -0
- /package/{esm2015/lib/core/notifications/interfaces/notification.js → esm2020/lib/core/notifications/interfaces/notification.mjs} +0 -0
- /package/{esm2015/lib/data/consts.js → esm2020/lib/data/consts.mjs} +0 -0
- /package/{esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js → esm2020/lib/ui/components/html-editor/html-editor.defaultoptions.mjs} +0 -0
- /package/{esm2015/osovitny-anatoly.js → esm2020/osovitny-anatoly.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Pipe,
|
|
3
|
-
import
|
|
2
|
+
import { Injectable, Pipe, APP_INITIALIZER, Injector, NgModule, Inject, Optional, SkipSelf, Component, Input, Directive, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
|
|
4
5
|
import * as i1$3 from '@angular/common/http';
|
|
5
6
|
import { HttpResponse, HttpClient } from '@angular/common/http';
|
|
6
7
|
import { tap, map } from 'rxjs/operators';
|
|
7
8
|
import { BehaviorSubject, Subject, timer, merge, fromEvent } from 'rxjs';
|
|
8
|
-
import * as i1 from '@ngx-translate/core';
|
|
9
|
-
import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
10
9
|
import { isValid, format, formatDistance, formatDistanceToNow } from 'date-fns';
|
|
11
10
|
import { utcToZonedTime } from 'date-fns-tz';
|
|
12
11
|
import enUS from 'date-fns/locale/en-US';
|
|
13
|
-
import * as
|
|
12
|
+
import * as i1$1 from '@ngx-translate/core';
|
|
13
|
+
import { TranslateModule, TranslateLoader, TranslateService } from '@ngx-translate/core';
|
|
14
|
+
import * as i1$5 from '@angular/common';
|
|
14
15
|
import { LOCATION_INITIALIZED, DOCUMENT, CommonModule } from '@angular/common';
|
|
15
16
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
16
17
|
import Swal from 'sweetalert2';
|
|
17
|
-
import * as i1$1 from 'ngx-toastr';
|
|
18
|
-
import { ToastrService } from 'ngx-toastr';
|
|
19
18
|
import { v4 } from 'uuid';
|
|
20
|
-
import * as i1$2 from '
|
|
21
|
-
import
|
|
22
|
-
import
|
|
19
|
+
import * as i1$2 from 'ngx-toastr';
|
|
20
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
21
|
+
import * as i2 from '@angular/forms';
|
|
22
|
+
import { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
23
|
+
import * as i1$6 from 'angular-froala-wysiwyg';
|
|
23
24
|
import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
|
|
24
25
|
|
|
25
26
|
/*
|
|
@@ -91,13 +92,11 @@ class BaseGoService {
|
|
|
91
92
|
window.location.href = "/";
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
|
-
BaseGoService
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{ type: Router }
|
|
100
|
-
];
|
|
95
|
+
BaseGoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGoService, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
96
|
+
BaseGoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGoService });
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGoService, decorators: [{
|
|
98
|
+
type: Injectable
|
|
99
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }]; } });
|
|
101
100
|
|
|
102
101
|
/*
|
|
103
102
|
<file>
|
|
@@ -180,13 +179,14 @@ class LoadingService extends BehaviorSubject {
|
|
|
180
179
|
this.counter = 0;
|
|
181
180
|
}
|
|
182
181
|
}
|
|
183
|
-
LoadingService.ɵ
|
|
184
|
-
LoadingService
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
182
|
+
LoadingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
183
|
+
LoadingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoadingService, providedIn: "root" });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoadingService, decorators: [{
|
|
185
|
+
type: Injectable,
|
|
186
|
+
args: [{
|
|
187
|
+
providedIn: "root",
|
|
188
|
+
}]
|
|
189
|
+
}], ctorParameters: function () { return []; } });
|
|
190
190
|
|
|
191
191
|
/*
|
|
192
192
|
<file>
|
|
@@ -215,13 +215,14 @@ class LoggingService {
|
|
|
215
215
|
console.info(info);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
LoggingService.ɵ
|
|
219
|
-
LoggingService
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
LoggingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoggingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
219
|
+
LoggingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoggingService, providedIn: "root" });
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoggingService, decorators: [{
|
|
221
|
+
type: Injectable,
|
|
222
|
+
args: [{
|
|
223
|
+
providedIn: "root",
|
|
224
|
+
}]
|
|
225
|
+
}], ctorParameters: function () { return []; } });
|
|
225
226
|
|
|
226
227
|
/*
|
|
227
228
|
<file>
|
|
@@ -315,13 +316,11 @@ class AnatolyHttpInterceptor {
|
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
|
-
AnatolyHttpInterceptor
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
{ type: LoggingService }
|
|
324
|
-
];
|
|
319
|
+
AnatolyHttpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyHttpInterceptor, deps: [{ token: LoadingService }, { token: LoggingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
320
|
+
AnatolyHttpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyHttpInterceptor });
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyHttpInterceptor, decorators: [{
|
|
322
|
+
type: Injectable
|
|
323
|
+
}], ctorParameters: function () { return [{ type: LoadingService }, { type: LoggingService }]; } });
|
|
325
324
|
|
|
326
325
|
/*
|
|
327
326
|
<file>
|
|
@@ -335,9 +334,6 @@ AnatolyHttpInterceptor.ctorParameters = () => [
|
|
|
335
334
|
Created:
|
|
336
335
|
29 June 2020
|
|
337
336
|
|
|
338
|
-
Version:
|
|
339
|
-
1.0
|
|
340
|
-
|
|
341
337
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
342
338
|
</file>
|
|
343
339
|
*/
|
|
@@ -553,15 +549,14 @@ class LocalizationService {
|
|
|
553
549
|
return result;
|
|
554
550
|
}
|
|
555
551
|
}
|
|
556
|
-
LocalizationService.ɵ
|
|
557
|
-
LocalizationService
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
];
|
|
552
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
553
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationService, providedIn: 'root' });
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationService, decorators: [{
|
|
555
|
+
type: Injectable,
|
|
556
|
+
args: [{
|
|
557
|
+
providedIn: 'root'
|
|
558
|
+
}]
|
|
559
|
+
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
|
|
565
560
|
|
|
566
561
|
/*
|
|
567
562
|
<file>
|
|
@@ -628,14 +623,14 @@ class LocalizePipe {
|
|
|
628
623
|
return inputData;
|
|
629
624
|
}
|
|
630
625
|
}
|
|
631
|
-
LocalizePipe
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
];
|
|
626
|
+
LocalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizePipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
627
|
+
LocalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: LocalizePipe, name: "localize" });
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizePipe, decorators: [{
|
|
629
|
+
type: Pipe,
|
|
630
|
+
args: [{
|
|
631
|
+
name: 'localize'
|
|
632
|
+
}]
|
|
633
|
+
}], ctorParameters: function () { return [{ type: LocalizationService }]; } });
|
|
639
634
|
|
|
640
635
|
/*
|
|
641
636
|
<file>
|
|
@@ -686,25 +681,33 @@ class LocalizationSettingsModule {
|
|
|
686
681
|
LocalizationInjectorInstance = this.injector;
|
|
687
682
|
}
|
|
688
683
|
}
|
|
689
|
-
LocalizationSettingsModule
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
]
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
684
|
+
LocalizationSettingsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationSettingsModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
685
|
+
LocalizationSettingsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: LocalizationSettingsModule, imports: [i1$1.TranslateModule] });
|
|
686
|
+
LocalizationSettingsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationSettingsModule, providers: [
|
|
687
|
+
{
|
|
688
|
+
provide: APP_INITIALIZER,
|
|
689
|
+
useFactory: localizationInitializerFactory,
|
|
690
|
+
deps: [TranslateService, LocalizationService, Injector],
|
|
691
|
+
multi: true
|
|
692
|
+
}
|
|
693
|
+
], imports: [TranslateModuleAtRoot] });
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationSettingsModule, decorators: [{
|
|
695
|
+
type: NgModule,
|
|
696
|
+
args: [{
|
|
697
|
+
imports: [
|
|
698
|
+
TranslateModuleAtRoot
|
|
699
|
+
],
|
|
700
|
+
providers: [
|
|
701
|
+
{
|
|
702
|
+
provide: APP_INITIALIZER,
|
|
703
|
+
useFactory: localizationInitializerFactory,
|
|
704
|
+
deps: [TranslateService, LocalizationService, Injector],
|
|
705
|
+
multi: true
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
exports: []
|
|
709
|
+
}]
|
|
710
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
708
711
|
|
|
709
712
|
/*
|
|
710
713
|
<file>
|
|
@@ -726,21 +729,26 @@ LocalizationSettingsModule.ctorParameters = () => [
|
|
|
726
729
|
*/
|
|
727
730
|
class LocalizationModule {
|
|
728
731
|
}
|
|
729
|
-
LocalizationModule
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
732
|
+
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
733
|
+
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: LocalizationModule, declarations: [LocalizePipe], imports: [TranslateModule], exports: [TranslateModule,
|
|
734
|
+
LocalizePipe] });
|
|
735
|
+
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationModule, imports: [TranslateModule, TranslateModule] });
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
737
|
+
type: NgModule,
|
|
738
|
+
args: [{
|
|
739
|
+
imports: [
|
|
740
|
+
TranslateModule
|
|
741
|
+
],
|
|
742
|
+
exports: [
|
|
743
|
+
TranslateModule,
|
|
744
|
+
LocalizePipe
|
|
745
|
+
],
|
|
746
|
+
declarations: [
|
|
747
|
+
LocalizePipe
|
|
748
|
+
],
|
|
749
|
+
providers: []
|
|
750
|
+
}]
|
|
751
|
+
}] });
|
|
744
752
|
|
|
745
753
|
/*
|
|
746
754
|
<file>
|
|
@@ -771,12 +779,11 @@ class GlobalErrorHandler {
|
|
|
771
779
|
throw error;
|
|
772
780
|
}
|
|
773
781
|
}
|
|
774
|
-
GlobalErrorHandler
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
];
|
|
782
|
+
GlobalErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GlobalErrorHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
783
|
+
GlobalErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GlobalErrorHandler });
|
|
784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GlobalErrorHandler, decorators: [{
|
|
785
|
+
type: Injectable
|
|
786
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
780
787
|
|
|
781
788
|
/*
|
|
782
789
|
<file>
|
|
@@ -927,25 +934,6 @@ class Alerts {
|
|
|
927
934
|
;
|
|
928
935
|
}
|
|
929
936
|
|
|
930
|
-
/*
|
|
931
|
-
<file>
|
|
932
|
-
Project:
|
|
933
|
-
@osovitny/anatoly
|
|
934
|
-
|
|
935
|
-
Authors:
|
|
936
|
-
Vadim Osovitny
|
|
937
|
-
Anatoly Osovitny
|
|
938
|
-
|
|
939
|
-
Created:
|
|
940
|
-
2 Jun 2020
|
|
941
|
-
|
|
942
|
-
Version:
|
|
943
|
-
1.0
|
|
944
|
-
|
|
945
|
-
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
946
|
-
</file>
|
|
947
|
-
*/
|
|
948
|
-
|
|
949
937
|
/*
|
|
950
938
|
<file>
|
|
951
939
|
Project:
|
|
@@ -958,9 +946,6 @@ class Alerts {
|
|
|
958
946
|
Created:
|
|
959
947
|
26 Jun 2020
|
|
960
948
|
|
|
961
|
-
Version:
|
|
962
|
-
1.0
|
|
963
|
-
|
|
964
949
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
965
950
|
</file>
|
|
966
951
|
*/
|
|
@@ -1182,13 +1167,12 @@ class NotificationService {
|
|
|
1182
1167
|
this._serverNotifications.next(val);
|
|
1183
1168
|
}
|
|
1184
1169
|
}
|
|
1185
|
-
NotificationService.ɵ
|
|
1186
|
-
NotificationService
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
];
|
|
1170
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationService, deps: [{ token: i1$2.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1171
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
1172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationService, decorators: [{
|
|
1173
|
+
type: Injectable,
|
|
1174
|
+
args: [{ providedIn: 'root' }]
|
|
1175
|
+
}], ctorParameters: function () { return [{ type: i1$2.ToastrService }]; } });
|
|
1192
1176
|
|
|
1193
1177
|
/*
|
|
1194
1178
|
<file>
|
|
@@ -1266,12 +1250,11 @@ class BaseApiService {
|
|
|
1266
1250
|
return this.http.get(url).pipe(map(res => res));
|
|
1267
1251
|
}
|
|
1268
1252
|
}
|
|
1269
|
-
BaseApiService
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
];
|
|
1253
|
+
BaseApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseApiService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1254
|
+
BaseApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseApiService });
|
|
1255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseApiService, decorators: [{
|
|
1256
|
+
type: Injectable
|
|
1257
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
1275
1258
|
|
|
1276
1259
|
/*
|
|
1277
1260
|
<file>
|
|
@@ -1323,19 +1306,21 @@ class LocalStorageService extends WebStorageService {
|
|
|
1323
1306
|
super('localStorage');
|
|
1324
1307
|
}
|
|
1325
1308
|
}
|
|
1326
|
-
LocalStorageService
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1309
|
+
LocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1310
|
+
LocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalStorageService });
|
|
1311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LocalStorageService, decorators: [{
|
|
1312
|
+
type: Injectable
|
|
1313
|
+
}], ctorParameters: function () { return []; } });
|
|
1330
1314
|
class SessionStorageService extends WebStorageService {
|
|
1331
1315
|
constructor() {
|
|
1332
1316
|
super('sessionStorage');
|
|
1333
1317
|
}
|
|
1334
1318
|
}
|
|
1335
|
-
SessionStorageService
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1319
|
+
SessionStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SessionStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1320
|
+
SessionStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SessionStorageService });
|
|
1321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SessionStorageService, decorators: [{
|
|
1322
|
+
type: Injectable
|
|
1323
|
+
}], ctorParameters: function () { return []; } });
|
|
1339
1324
|
|
|
1340
1325
|
/*
|
|
1341
1326
|
<file>
|
|
@@ -1397,6 +1382,7 @@ class AppContextService extends BaseApiService {
|
|
|
1397
1382
|
this.subscription.unsubscribe();
|
|
1398
1383
|
this.subscription = null;
|
|
1399
1384
|
}
|
|
1385
|
+
//Public
|
|
1400
1386
|
getCurrent(success = null, getCachedIfExist = true) {
|
|
1401
1387
|
let context = this.getCurrentFromSession();
|
|
1402
1388
|
if (getCachedIfExist && context != null) {
|
|
@@ -1440,13 +1426,11 @@ class AppContextService extends BaseApiService {
|
|
|
1440
1426
|
this.setCurrentFromSession(value);
|
|
1441
1427
|
}
|
|
1442
1428
|
}
|
|
1443
|
-
AppContextService
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
{ type: SessionStorageService }
|
|
1449
|
-
];
|
|
1429
|
+
AppContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AppContextService, deps: [{ token: i1$3.HttpClient }, { token: SessionStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1430
|
+
AppContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AppContextService });
|
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AppContextService, decorators: [{
|
|
1432
|
+
type: Injectable
|
|
1433
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: SessionStorageService }]; } });
|
|
1450
1434
|
|
|
1451
1435
|
/*
|
|
1452
1436
|
<file>
|
|
@@ -1510,12 +1494,14 @@ class IdleService {
|
|
|
1510
1494
|
this.startTimer();
|
|
1511
1495
|
}
|
|
1512
1496
|
}
|
|
1513
|
-
IdleService.ɵ
|
|
1514
|
-
IdleService
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1497
|
+
IdleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: IdleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1498
|
+
IdleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: IdleService, providedIn: 'root' });
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: IdleService, decorators: [{
|
|
1500
|
+
type: Injectable,
|
|
1501
|
+
args: [{
|
|
1502
|
+
providedIn: 'root'
|
|
1503
|
+
}]
|
|
1504
|
+
}] });
|
|
1519
1505
|
|
|
1520
1506
|
/*
|
|
1521
1507
|
<file>
|
|
@@ -1572,17 +1558,19 @@ class DigitalMarketingService {
|
|
|
1572
1558
|
link.setAttribute('href', canUrl);
|
|
1573
1559
|
}
|
|
1574
1560
|
}
|
|
1575
|
-
DigitalMarketingService.ɵ
|
|
1576
|
-
DigitalMarketingService
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
]
|
|
1561
|
+
DigitalMarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: DigitalMarketingService, deps: [{ token: i1$4.Title }, { token: i1$4.Meta }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1562
|
+
DigitalMarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: DigitalMarketingService, providedIn: 'root' });
|
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: DigitalMarketingService, decorators: [{
|
|
1564
|
+
type: Injectable,
|
|
1565
|
+
args: [{
|
|
1566
|
+
providedIn: 'root'
|
|
1567
|
+
}]
|
|
1568
|
+
}], ctorParameters: function () {
|
|
1569
|
+
return [{ type: i1$4.Title }, { type: i1$4.Meta }, { type: undefined, decorators: [{
|
|
1570
|
+
type: Inject,
|
|
1571
|
+
args: [DOCUMENT]
|
|
1572
|
+
}] }];
|
|
1573
|
+
} });
|
|
1586
1574
|
|
|
1587
1575
|
/*
|
|
1588
1576
|
<file>
|
|
@@ -1627,13 +1615,27 @@ class GoogleAnalyticsService {
|
|
|
1627
1615
|
}
|
|
1628
1616
|
}
|
|
1629
1617
|
}
|
|
1630
|
-
GoogleAnalyticsService
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
];
|
|
1618
|
+
GoogleAnalyticsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1619
|
+
GoogleAnalyticsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GoogleAnalyticsService });
|
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
|
|
1621
|
+
type: Injectable
|
|
1622
|
+
}], ctorParameters: function () { return [{ type: i1.Router }]; } });
|
|
1636
1623
|
|
|
1624
|
+
/*
|
|
1625
|
+
<file>
|
|
1626
|
+
Project:
|
|
1627
|
+
@osovitny/anatoly
|
|
1628
|
+
|
|
1629
|
+
Authors:
|
|
1630
|
+
Vadim Osovitny
|
|
1631
|
+
Anatoly Osovitny
|
|
1632
|
+
|
|
1633
|
+
Created:
|
|
1634
|
+
29 June 2020
|
|
1635
|
+
|
|
1636
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
1637
|
+
</file>
|
|
1638
|
+
*/
|
|
1637
1639
|
let InjectorInstance;
|
|
1638
1640
|
class AnatolyCoreModule {
|
|
1639
1641
|
constructor(injector, parentModule) {
|
|
@@ -1642,26 +1644,41 @@ class AnatolyCoreModule {
|
|
|
1642
1644
|
InjectorInstance = this.injector;
|
|
1643
1645
|
}
|
|
1644
1646
|
}
|
|
1645
|
-
AnatolyCoreModule
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
]
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1647
|
+
AnatolyCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyCoreModule, deps: [{ token: i0.Injector }, { token: AnatolyCoreModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1648
|
+
AnatolyCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: AnatolyCoreModule, imports: [CommonModule] });
|
|
1649
|
+
AnatolyCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyCoreModule, providers: [
|
|
1650
|
+
LoggingService,
|
|
1651
|
+
NotificationService,
|
|
1652
|
+
AppContextService,
|
|
1653
|
+
LoadingService,
|
|
1654
|
+
DigitalMarketingService,
|
|
1655
|
+
GoogleAnalyticsService,
|
|
1656
|
+
LocalStorageService,
|
|
1657
|
+
SessionStorageService
|
|
1658
|
+
], imports: [CommonModule] });
|
|
1659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyCoreModule, decorators: [{
|
|
1660
|
+
type: NgModule,
|
|
1661
|
+
args: [{
|
|
1662
|
+
imports: [CommonModule],
|
|
1663
|
+
exports: [],
|
|
1664
|
+
providers: [
|
|
1665
|
+
LoggingService,
|
|
1666
|
+
NotificationService,
|
|
1667
|
+
AppContextService,
|
|
1668
|
+
LoadingService,
|
|
1669
|
+
DigitalMarketingService,
|
|
1670
|
+
GoogleAnalyticsService,
|
|
1671
|
+
LocalStorageService,
|
|
1672
|
+
SessionStorageService
|
|
1673
|
+
],
|
|
1674
|
+
}]
|
|
1675
|
+
}], ctorParameters: function () {
|
|
1676
|
+
return [{ type: i0.Injector }, { type: AnatolyCoreModule, decorators: [{
|
|
1677
|
+
type: Optional
|
|
1678
|
+
}, {
|
|
1679
|
+
type: SkipSelf
|
|
1680
|
+
}] }];
|
|
1681
|
+
} });
|
|
1665
1682
|
|
|
1666
1683
|
/*
|
|
1667
1684
|
<file>
|
|
@@ -1675,9 +1692,6 @@ AnatolyCoreModule.ctorParameters = () => [
|
|
|
1675
1692
|
Created:
|
|
1676
1693
|
26 Jun 2020
|
|
1677
1694
|
|
|
1678
|
-
Version:
|
|
1679
|
-
1.0
|
|
1680
|
-
|
|
1681
1695
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
1682
1696
|
</file>
|
|
1683
1697
|
*/
|
|
@@ -1709,9 +1723,6 @@ class Subs {
|
|
|
1709
1723
|
Created:
|
|
1710
1724
|
19 March 2020
|
|
1711
1725
|
|
|
1712
|
-
Version:
|
|
1713
|
-
1.0
|
|
1714
|
-
|
|
1715
1726
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
1716
1727
|
</file>
|
|
1717
1728
|
*/
|
|
@@ -1746,8 +1757,9 @@ class Utils {
|
|
|
1746
1757
|
link.click();
|
|
1747
1758
|
}
|
|
1748
1759
|
static downloadBlobFile(value, fileName) {
|
|
1749
|
-
|
|
1750
|
-
|
|
1760
|
+
const nav = window.navigator;
|
|
1761
|
+
if (nav.msSaveOrOpenBlob) {
|
|
1762
|
+
nav.msSaveOrOpenBlob(value, fileName);
|
|
1751
1763
|
}
|
|
1752
1764
|
else {
|
|
1753
1765
|
const downloadURL = window.URL.createObjectURL(value);
|
|
@@ -1830,12 +1842,11 @@ class BaseGridReadService extends BehaviorSubject {
|
|
|
1830
1842
|
});
|
|
1831
1843
|
}
|
|
1832
1844
|
}
|
|
1833
|
-
BaseGridReadService
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
];
|
|
1845
|
+
BaseGridReadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridReadService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1846
|
+
BaseGridReadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridReadService });
|
|
1847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridReadService, decorators: [{
|
|
1848
|
+
type: Injectable
|
|
1849
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
1839
1850
|
|
|
1840
1851
|
/*
|
|
1841
1852
|
<file>
|
|
@@ -1901,12 +1912,11 @@ class BaseGridEditService extends BaseGridReadService {
|
|
|
1901
1912
|
return this.http.post(url, data).pipe(map(res => res));
|
|
1902
1913
|
}
|
|
1903
1914
|
}
|
|
1904
|
-
BaseGridEditService
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
];
|
|
1915
|
+
BaseGridEditService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridEditService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1916
|
+
BaseGridEditService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridEditService });
|
|
1917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseGridEditService, decorators: [{
|
|
1918
|
+
type: Injectable
|
|
1919
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
1910
1920
|
|
|
1911
1921
|
/*
|
|
1912
1922
|
<file>
|
|
@@ -1960,15 +1970,14 @@ class NotificationsApiService extends BaseApiService {
|
|
|
1960
1970
|
return this.get('retrieveNotifications');
|
|
1961
1971
|
}
|
|
1962
1972
|
}
|
|
1963
|
-
NotificationsApiService.ɵ
|
|
1964
|
-
NotificationsApiService
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
];
|
|
1973
|
+
NotificationsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationsApiService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1974
|
+
NotificationsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationsApiService, providedIn: 'root' });
|
|
1975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NotificationsApiService, decorators: [{
|
|
1976
|
+
type: Injectable,
|
|
1977
|
+
args: [{
|
|
1978
|
+
providedIn: 'root'
|
|
1979
|
+
}]
|
|
1980
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
1972
1981
|
|
|
1973
1982
|
/*
|
|
1974
1983
|
<file>
|
|
@@ -2022,12 +2031,11 @@ class BillingApiService extends BaseApiService {
|
|
|
2022
2031
|
});
|
|
2023
2032
|
}
|
|
2024
2033
|
}
|
|
2025
|
-
BillingApiService
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
];
|
|
2034
|
+
BillingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BillingApiService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2035
|
+
BillingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BillingApiService });
|
|
2036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BillingApiService, decorators: [{
|
|
2037
|
+
type: Injectable
|
|
2038
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }]; } });
|
|
2031
2039
|
|
|
2032
2040
|
/*
|
|
2033
2041
|
<file>
|
|
@@ -2052,19 +2060,28 @@ class AnatolyDataModule {
|
|
|
2052
2060
|
throwIfAlreadyLoaded(parentModule, 'AnatolyDataModule');
|
|
2053
2061
|
}
|
|
2054
2062
|
}
|
|
2055
|
-
AnatolyDataModule
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2063
|
+
AnatolyDataModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyDataModule, deps: [{ token: AnatolyDataModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2064
|
+
AnatolyDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: AnatolyDataModule, imports: [CommonModule] });
|
|
2065
|
+
AnatolyDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyDataModule, providers: [
|
|
2066
|
+
BillingApiService
|
|
2067
|
+
], imports: [CommonModule] });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyDataModule, decorators: [{
|
|
2069
|
+
type: NgModule,
|
|
2070
|
+
args: [{
|
|
2071
|
+
imports: [
|
|
2072
|
+
CommonModule
|
|
2073
|
+
],
|
|
2074
|
+
providers: [
|
|
2075
|
+
BillingApiService
|
|
2076
|
+
],
|
|
2077
|
+
}]
|
|
2078
|
+
}], ctorParameters: function () {
|
|
2079
|
+
return [{ type: AnatolyDataModule, decorators: [{
|
|
2080
|
+
type: Optional
|
|
2081
|
+
}, {
|
|
2082
|
+
type: SkipSelf
|
|
2083
|
+
}] }];
|
|
2084
|
+
} });
|
|
2068
2085
|
|
|
2069
2086
|
/*
|
|
2070
2087
|
<file>
|
|
@@ -2098,11 +2115,14 @@ class BaseComponent {
|
|
|
2098
2115
|
this.subs.unsubscribe();
|
|
2099
2116
|
}
|
|
2100
2117
|
}
|
|
2101
|
-
BaseComponent
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2118
|
+
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2119
|
+
BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: BaseComponent, selector: "ng-component", ngImport: i0, template: '', isInline: true });
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseComponent, decorators: [{
|
|
2121
|
+
type: Component,
|
|
2122
|
+
args: [{
|
|
2123
|
+
template: ''
|
|
2124
|
+
}]
|
|
2125
|
+
}] });
|
|
2106
2126
|
|
|
2107
2127
|
/*
|
|
2108
2128
|
<file>
|
|
@@ -2229,16 +2249,18 @@ class BaseEditComponent extends BaseComponent {
|
|
|
2229
2249
|
return this.formGroup.controls;
|
|
2230
2250
|
}
|
|
2231
2251
|
}
|
|
2232
|
-
BaseEditComponent
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
}
|
|
2252
|
+
BaseEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2253
|
+
BaseEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: BaseEditComponent, selector: "ng-component", inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseEditComponent, decorators: [{
|
|
2255
|
+
type: Component,
|
|
2256
|
+
args: [{
|
|
2257
|
+
template: ''
|
|
2258
|
+
}]
|
|
2259
|
+
}], ctorParameters: function () { return []; }, propDecorators: { formGroup: [{
|
|
2260
|
+
type: Input
|
|
2261
|
+
}], formSubmitted: [{
|
|
2262
|
+
type: Input
|
|
2263
|
+
}] } });
|
|
2242
2264
|
|
|
2243
2265
|
/*
|
|
2244
2266
|
<file>
|
|
@@ -2273,15 +2295,45 @@ class BaseDialog extends BaseEditComponent {
|
|
|
2273
2295
|
this._opened = false;
|
|
2274
2296
|
}
|
|
2275
2297
|
}
|
|
2276
|
-
BaseDialog
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2298
|
+
BaseDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2299
|
+
BaseDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: BaseDialog, selector: "ng-component", inputs: { opened: "opened" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseDialog, decorators: [{
|
|
2301
|
+
type: Component,
|
|
2302
|
+
args: [{
|
|
2303
|
+
template: ''
|
|
2304
|
+
}]
|
|
2305
|
+
}], ctorParameters: function () { return []; }, propDecorators: { opened: [{
|
|
2306
|
+
type: Input
|
|
2307
|
+
}] } });
|
|
2308
|
+
|
|
2309
|
+
/*
|
|
2310
|
+
<file>
|
|
2311
|
+
Project:
|
|
2312
|
+
@osovitny/anatoly
|
|
2313
|
+
|
|
2314
|
+
Authors:
|
|
2315
|
+
Vadim Osovitny
|
|
2316
|
+
Anatoly Osovitny
|
|
2317
|
+
|
|
2318
|
+
Created:
|
|
2319
|
+
4 Jul 2018
|
|
2320
|
+
|
|
2321
|
+
Version:
|
|
2322
|
+
1.0
|
|
2323
|
+
|
|
2324
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2325
|
+
</file>
|
|
2326
|
+
*/
|
|
2327
|
+
class SignUpButtonComponent {
|
|
2328
|
+
}
|
|
2329
|
+
SignUpButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignUpButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2330
|
+
SignUpButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: { classbtn: "classbtn" }, ngImport: i0, template: "<a href=\"identity/signup\" class=\"{{classbtn}}\">Sign Up</a>\r\n" });
|
|
2331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignUpButtonComponent, decorators: [{
|
|
2332
|
+
type: Component,
|
|
2333
|
+
args: [{ selector: "anatoly-signup-button", template: "<a href=\"identity/signup\" class=\"{{classbtn}}\">Sign Up</a>\r\n" }]
|
|
2334
|
+
}], propDecorators: { classbtn: [{
|
|
2335
|
+
type: Input
|
|
2336
|
+
}] } });
|
|
2285
2337
|
|
|
2286
2338
|
/*
|
|
2287
2339
|
<file>
|
|
@@ -2333,20 +2385,64 @@ class BuyAccessButtonComponent {
|
|
|
2333
2385
|
});
|
|
2334
2386
|
}
|
|
2335
2387
|
}
|
|
2336
|
-
BuyAccessButtonComponent
|
|
2337
|
-
{ type:
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
];
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
];
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2388
|
+
BuyAccessButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BuyAccessButtonComponent, deps: [{ token: AppContextService }, { token: BillingApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2389
|
+
BuyAccessButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: BuyAccessButtonComponent, selector: "anatoly-buyaccess-button", inputs: { plan: "plan", plantitle: "plantitle" }, ngImport: i0, 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", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
|
|
2390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BuyAccessButtonComponent, decorators: [{
|
|
2391
|
+
type: Component,
|
|
2392
|
+
args: [{ 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" }]
|
|
2393
|
+
}], ctorParameters: function () { return [{ type: AppContextService }, { type: BillingApiService }]; }, propDecorators: { plan: [{
|
|
2394
|
+
type: Input
|
|
2395
|
+
}], plantitle: [{
|
|
2396
|
+
type: Input
|
|
2397
|
+
}] } });
|
|
2398
|
+
|
|
2399
|
+
/*
|
|
2400
|
+
<file>
|
|
2401
|
+
Project:
|
|
2402
|
+
@osovitny/anatoly
|
|
2403
|
+
|
|
2404
|
+
Authors:
|
|
2405
|
+
Vadim Osovitny
|
|
2406
|
+
Anatoly Osovitny
|
|
2407
|
+
|
|
2408
|
+
Created:
|
|
2409
|
+
12 Nov 2017
|
|
2410
|
+
|
|
2411
|
+
Version:
|
|
2412
|
+
1.0
|
|
2413
|
+
|
|
2414
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2415
|
+
</file>
|
|
2416
|
+
*/
|
|
2417
|
+
// Services
|
|
2418
|
+
class UpgradePlanButtonComponent {
|
|
2419
|
+
constructor(api) {
|
|
2420
|
+
this.api = api;
|
|
2421
|
+
}
|
|
2422
|
+
onUpgradePlan() {
|
|
2423
|
+
const text = `Current plan: ${this.currentplantitle} New plan: ${this.requestedplantitle}`;
|
|
2424
|
+
const that = this;
|
|
2425
|
+
Alerts.areYouSure(text, 'Change billing plan', 'Confirm change', 'Cancel', () => {
|
|
2426
|
+
that.api.requestNewSubscription(that.requestedplan, () => {
|
|
2427
|
+
Alerts.success('Your request for changing plan has been sent.', null, null, () => {
|
|
2428
|
+
window.location.reload();
|
|
2429
|
+
});
|
|
2430
|
+
});
|
|
2431
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
UpgradePlanButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: UpgradePlanButtonComponent, deps: [{ token: BillingApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2435
|
+
UpgradePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: UpgradePlanButtonComponent, selector: "anatoly-upgrade-plan-button", inputs: { currentplantitle: "currentplantitle", requestedplan: "requestedplan", requestedplantitle: "requestedplantitle" }, ngImport: i0, template: "<button class=\"btn btn-block btn-primary\" (click)=\"onUpgradePlan()\">\r\n Upgrade\r\n</button>\r\n" });
|
|
2436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: UpgradePlanButtonComponent, decorators: [{
|
|
2437
|
+
type: Component,
|
|
2438
|
+
args: [{ selector: 'anatoly-upgrade-plan-button', template: "<button class=\"btn btn-block btn-primary\" (click)=\"onUpgradePlan()\">\r\n Upgrade\r\n</button>\r\n" }]
|
|
2439
|
+
}], ctorParameters: function () { return [{ type: BillingApiService }]; }, propDecorators: { currentplantitle: [{
|
|
2440
|
+
type: Input
|
|
2441
|
+
}], requestedplan: [{
|
|
2442
|
+
type: Input
|
|
2443
|
+
}], requestedplantitle: [{
|
|
2444
|
+
type: Input
|
|
2445
|
+
}] } });
|
|
2350
2446
|
|
|
2351
2447
|
/*
|
|
2352
2448
|
<file>
|
|
@@ -2393,69 +2489,16 @@ class SubscribePlanButtonComponent {
|
|
|
2393
2489
|
});
|
|
2394
2490
|
}
|
|
2395
2491
|
}
|
|
2396
|
-
SubscribePlanButtonComponent
|
|
2397
|
-
{ type:
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
];
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
plan: [{ type: Input }],
|
|
2407
|
-
plantitle: [{ type: Input }]
|
|
2408
|
-
};
|
|
2409
|
-
|
|
2410
|
-
/*
|
|
2411
|
-
<file>
|
|
2412
|
-
Project:
|
|
2413
|
-
@osovitny/anatoly
|
|
2414
|
-
|
|
2415
|
-
Authors:
|
|
2416
|
-
Vadim Osovitny
|
|
2417
|
-
Anatoly Osovitny
|
|
2418
|
-
|
|
2419
|
-
Created:
|
|
2420
|
-
12 Nov 2017
|
|
2421
|
-
|
|
2422
|
-
Version:
|
|
2423
|
-
1.0
|
|
2424
|
-
|
|
2425
|
-
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2426
|
-
</file>
|
|
2427
|
-
*/
|
|
2428
|
-
// Services
|
|
2429
|
-
class UpgradePlanButtonComponent {
|
|
2430
|
-
constructor(api) {
|
|
2431
|
-
this.api = api;
|
|
2432
|
-
}
|
|
2433
|
-
onUpgradePlan() {
|
|
2434
|
-
const text = `Current plan: ${this.currentplantitle} New plan: ${this.requestedplantitle}`;
|
|
2435
|
-
const that = this;
|
|
2436
|
-
Alerts.areYouSure(text, 'Change billing plan', 'Confirm change', 'Cancel', () => {
|
|
2437
|
-
that.api.requestNewSubscription(that.requestedplan, () => {
|
|
2438
|
-
Alerts.success('Your request for changing plan has been sent.', null, null, () => {
|
|
2439
|
-
window.location.reload();
|
|
2440
|
-
});
|
|
2441
|
-
});
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
UpgradePlanButtonComponent.decorators = [
|
|
2446
|
-
{ type: Component, args: [{
|
|
2447
|
-
selector: 'anatoly-upgrade-plan-button',
|
|
2448
|
-
template: "<button class=\"btn btn-block btn-primary\" (click)=\"onUpgradePlan()\">\r\n Upgrade\r\n</button>\r\n"
|
|
2449
|
-
},] }
|
|
2450
|
-
];
|
|
2451
|
-
UpgradePlanButtonComponent.ctorParameters = () => [
|
|
2452
|
-
{ type: BillingApiService }
|
|
2453
|
-
];
|
|
2454
|
-
UpgradePlanButtonComponent.propDecorators = {
|
|
2455
|
-
currentplantitle: [{ type: Input }],
|
|
2456
|
-
requestedplan: [{ type: Input }],
|
|
2457
|
-
requestedplantitle: [{ type: Input }]
|
|
2458
|
-
};
|
|
2492
|
+
SubscribePlanButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SubscribePlanButtonComponent, deps: [{ token: AppContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2493
|
+
SubscribePlanButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: SubscribePlanButtonComponent, selector: "anatoly-subscribe-plan-button", inputs: { plan: "plan", plantitle: "plantitle" }, ngImport: i0, 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", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: UpgradePlanButtonComponent, selector: "anatoly-upgrade-plan-button", inputs: ["currentplantitle", "requestedplan", "requestedplantitle"] }, { kind: "component", type: SignUpButtonComponent, selector: "anatoly-signup-button", inputs: ["classbtn"] }] });
|
|
2494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SubscribePlanButtonComponent, decorators: [{
|
|
2495
|
+
type: Component,
|
|
2496
|
+
args: [{ 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" }]
|
|
2497
|
+
}], ctorParameters: function () { return [{ type: AppContextService }]; }, propDecorators: { plan: [{
|
|
2498
|
+
type: Input
|
|
2499
|
+
}], plantitle: [{
|
|
2500
|
+
type: Input
|
|
2501
|
+
}] } });
|
|
2459
2502
|
|
|
2460
2503
|
/*
|
|
2461
2504
|
<file>
|
|
@@ -2482,15 +2525,14 @@ class ContentHeaderComponent {
|
|
|
2482
2525
|
}
|
|
2483
2526
|
}
|
|
2484
2527
|
}
|
|
2485
|
-
ContentHeaderComponent
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
]
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
};
|
|
2528
|
+
ContentHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ContentHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2529
|
+
ContentHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: ContentHeaderComponent, selector: "anatoly-content-header", inputs: { title: "title" }, ngImport: i0, template: "<h2 class=\"page-header\">\r\n {{title}}\r\n <!--<small>Optional {{title}}</small>-->\r\n</h2>\r\n" });
|
|
2530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ContentHeaderComponent, decorators: [{
|
|
2531
|
+
type: Component,
|
|
2532
|
+
args: [{ selector: "anatoly-content-header", template: "<h2 class=\"page-header\">\r\n {{title}}\r\n <!--<small>Optional {{title}}</small>-->\r\n</h2>\r\n" }]
|
|
2533
|
+
}], propDecorators: { title: [{
|
|
2534
|
+
type: Input
|
|
2535
|
+
}] } });
|
|
2494
2536
|
|
|
2495
2537
|
/*
|
|
2496
2538
|
<file>
|
|
@@ -2672,16 +2714,18 @@ class BaseHtmlEditorComponent extends BaseEditComponent {
|
|
|
2672
2714
|
});
|
|
2673
2715
|
}
|
|
2674
2716
|
}
|
|
2675
|
-
BaseHtmlEditorComponent
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
}
|
|
2717
|
+
BaseHtmlEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseHtmlEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2718
|
+
BaseHtmlEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: BaseHtmlEditorComponent, selector: "ng-component", inputs: { editorLabelText: "editorLabelText", editorOptions: "editorOptions" }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
2719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: BaseHtmlEditorComponent, decorators: [{
|
|
2720
|
+
type: Component,
|
|
2721
|
+
args: [{
|
|
2722
|
+
template: "",
|
|
2723
|
+
}]
|
|
2724
|
+
}], ctorParameters: function () { return []; }, propDecorators: { editorLabelText: [{
|
|
2725
|
+
type: Input
|
|
2726
|
+
}], editorOptions: [{
|
|
2727
|
+
type: Input
|
|
2728
|
+
}] } });
|
|
2685
2729
|
|
|
2686
2730
|
/*
|
|
2687
2731
|
<file>
|
|
@@ -2693,7 +2737,7 @@ BaseHtmlEditorComponent.propDecorators = {
|
|
|
2693
2737
|
Anatoly Osovitny
|
|
2694
2738
|
|
|
2695
2739
|
Created:
|
|
2696
|
-
|
|
2740
|
+
28 Jun 2020
|
|
2697
2741
|
|
|
2698
2742
|
Version:
|
|
2699
2743
|
1.0
|
|
@@ -2701,27 +2745,24 @@ BaseHtmlEditorComponent.propDecorators = {
|
|
|
2701
2745
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2702
2746
|
</file>
|
|
2703
2747
|
*/
|
|
2704
|
-
class
|
|
2705
|
-
constructor() {
|
|
2706
|
-
|
|
2707
|
-
this.
|
|
2748
|
+
class NativeElementDirective {
|
|
2749
|
+
constructor(el, control) {
|
|
2750
|
+
this.el = el;
|
|
2751
|
+
this.control = control;
|
|
2708
2752
|
}
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
});
|
|
2753
|
+
ngOnInit() {
|
|
2754
|
+
// sets the localization key to the control
|
|
2755
|
+
this.control.control.nativeElement = this.el.nativeElement;
|
|
2713
2756
|
}
|
|
2714
2757
|
}
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
]
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
editorFormKey: [{ type: Input }]
|
|
2724
|
-
};
|
|
2758
|
+
NativeElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NativeElementDirective, deps: [{ token: i0.ElementRef }, { token: i2.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2759
|
+
NativeElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.5", type: NativeElementDirective, selector: "[formControl], [formControlName]", ngImport: i0 });
|
|
2760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: NativeElementDirective, decorators: [{
|
|
2761
|
+
type: Directive,
|
|
2762
|
+
args: [{
|
|
2763
|
+
selector: '[formControl], [formControlName]'
|
|
2764
|
+
}]
|
|
2765
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.NgControl }]; } });
|
|
2725
2766
|
|
|
2726
2767
|
/*
|
|
2727
2768
|
<file>
|
|
@@ -2733,7 +2774,7 @@ FormsHtmlEditorComponent.propDecorators = {
|
|
|
2733
2774
|
Anatoly Osovitny
|
|
2734
2775
|
|
|
2735
2776
|
Created:
|
|
2736
|
-
|
|
2777
|
+
8 Dec 2017
|
|
2737
2778
|
|
|
2738
2779
|
Version:
|
|
2739
2780
|
1.0
|
|
@@ -2741,76 +2782,239 @@ FormsHtmlEditorComponent.propDecorators = {
|
|
|
2741
2782
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2742
2783
|
</file>
|
|
2743
2784
|
*/
|
|
2744
|
-
class
|
|
2785
|
+
class ValidationSummaryComponent extends BaseEditComponent {
|
|
2745
2786
|
constructor() {
|
|
2746
2787
|
super();
|
|
2747
2788
|
}
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2789
|
+
getFormValidationMessages() {
|
|
2790
|
+
let messages = [];
|
|
2791
|
+
Object.keys(this.formGroup.controls).forEach((k) => {
|
|
2792
|
+
var control = this.formGroup.controls[k];
|
|
2793
|
+
if (control.controls != null) {
|
|
2794
|
+
Object.keys(control.controls).forEach((k) => {
|
|
2795
|
+
var child = control.controls[k];
|
|
2796
|
+
this.getValidationMessages(child, this.getControlName(child, k)).forEach((m) => messages.push(m));
|
|
2797
|
+
});
|
|
2798
|
+
}
|
|
2799
|
+
else {
|
|
2800
|
+
this.getValidationMessages(control, this.getControlName(control, k)).forEach((m) => messages.push(m));
|
|
2753
2801
|
}
|
|
2754
|
-
editor.html.set(content);
|
|
2755
2802
|
});
|
|
2803
|
+
return messages;
|
|
2756
2804
|
}
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2805
|
+
getValidationMessages(state, thingName) {
|
|
2806
|
+
let thing = state.path || thingName;
|
|
2807
|
+
let messages = [];
|
|
2808
|
+
if (state.errors) {
|
|
2809
|
+
for (let errorName in state.errors) {
|
|
2810
|
+
if (state.errors.hasOwnProperty(errorName)) {
|
|
2811
|
+
switch (errorName) {
|
|
2812
|
+
case "required":
|
|
2813
|
+
messages.push(`${thing} is required`);
|
|
2814
|
+
break;
|
|
2815
|
+
case "minlength":
|
|
2816
|
+
messages.push(`${thing} must be at least ${state.errors["minlength"].requiredLength} characters`);
|
|
2817
|
+
break;
|
|
2818
|
+
case "pattern":
|
|
2819
|
+
messages.push(`${thing} contains illegal characters`);
|
|
2820
|
+
break;
|
|
2821
|
+
case "format":
|
|
2822
|
+
messages.push(`${thing} format mismatch`);
|
|
2823
|
+
break;
|
|
2824
|
+
case "maxlength":
|
|
2825
|
+
messages.push(`${thing} must have maximum ${state.errors["maxlength"].requiredLength} characters`);
|
|
2826
|
+
break;
|
|
2827
|
+
case "specialcharacters":
|
|
2828
|
+
messages.push(`${thing} contains special characters`);
|
|
2829
|
+
break;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2761
2833
|
}
|
|
2762
|
-
return
|
|
2834
|
+
return messages;
|
|
2763
2835
|
}
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2836
|
+
/**
|
|
2837
|
+
* Get Control Name
|
|
2838
|
+
* @param control
|
|
2839
|
+
* @param thingName
|
|
2840
|
+
*/
|
|
2841
|
+
getControlName(control, thingName) {
|
|
2842
|
+
let value = this.getControlTitle(control);
|
|
2843
|
+
return value ? value : thingName;
|
|
2844
|
+
}
|
|
2845
|
+
/**
|
|
2846
|
+
* Retrieve tilte of control
|
|
2847
|
+
* @param control
|
|
2848
|
+
*/
|
|
2849
|
+
getControlTitle(control) {
|
|
2850
|
+
if (control === null || control === void 0 ? void 0 : control.nativeElement) {
|
|
2851
|
+
let controlTitle = this.getTitleAttribute(control.nativeElement);
|
|
2852
|
+
if (controlTitle) {
|
|
2853
|
+
return controlTitle;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
return undefined;
|
|
2857
|
+
}
|
|
2858
|
+
/**
|
|
2859
|
+
* Return title attribute of form control
|
|
2860
|
+
*/
|
|
2861
|
+
getTitleAttribute(nativeElement) {
|
|
2862
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2863
|
+
let title;
|
|
2864
|
+
switch (nativeElement.tagName) {
|
|
2865
|
+
// For Kendo time and date picker element title is assigned to the 4th child control.
|
|
2866
|
+
case "KENDO-TIMEPICKER":
|
|
2867
|
+
case "KENDO-DATEPICKER":
|
|
2868
|
+
title =
|
|
2869
|
+
(_d = (_c = (_b = (_a = nativeElement.children[0]) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children[0]) === null || _c === void 0 ? void 0 : _c.children[0]) === null || _d === void 0 ? void 0 : _d.getAttribute("title");
|
|
2870
|
+
break;
|
|
2871
|
+
// For Kendo numaric element title is assigned to the 2nd child control.
|
|
2872
|
+
case "KENDO-NUMERICTEXTBOX":
|
|
2873
|
+
title = (_f = (_e = nativeElement.children[0]) === null || _e === void 0 ? void 0 : _e.children[0]) === null || _f === void 0 ? void 0 : _f.getAttribute("title");
|
|
2874
|
+
break;
|
|
2875
|
+
default:
|
|
2876
|
+
title = nativeElement.getAttribute("title");
|
|
2877
|
+
break;
|
|
2878
|
+
}
|
|
2879
|
+
return title;
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
ValidationSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ValidationSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2883
|
+
ValidationSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: ValidationSummaryComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
2884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ValidationSummaryComponent, decorators: [{
|
|
2885
|
+
type: Component,
|
|
2886
|
+
args: [{
|
|
2887
|
+
template: "",
|
|
2888
|
+
}]
|
|
2889
|
+
}], ctorParameters: function () { return []; } });
|
|
2890
|
+
|
|
2891
|
+
/*
|
|
2892
|
+
<file>
|
|
2893
|
+
Project:
|
|
2894
|
+
@osovitny/anatoly
|
|
2895
|
+
|
|
2896
|
+
Authors:
|
|
2897
|
+
Vadim Osovitny
|
|
2898
|
+
Anatoly Osovitny
|
|
2899
|
+
|
|
2900
|
+
Created:
|
|
2901
|
+
6 Dec 2017
|
|
2902
|
+
|
|
2903
|
+
Version:
|
|
2904
|
+
1.0
|
|
2905
|
+
|
|
2906
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2907
|
+
</file>
|
|
2908
|
+
*/
|
|
2909
|
+
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
2910
|
+
constructor() {
|
|
2911
|
+
super();
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
ItemValidationSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ItemValidationSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2915
|
+
ItemValidationSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: ItemValidationSummaryComponent, selector: "anatoly-item-validation-summary", inputs: { controlName: "controlName", controlTitle: "controlTitle" }, usesInheritance: true, ngImport: i0, template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(controlName), controlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n", dependencies: [{ kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ItemValidationSummaryComponent, decorators: [{
|
|
2917
|
+
type: Component,
|
|
2918
|
+
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(controlName), controlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n" }]
|
|
2919
|
+
}], ctorParameters: function () { return []; }, propDecorators: { controlName: [{
|
|
2920
|
+
type: Input
|
|
2921
|
+
}], controlTitle: [{
|
|
2922
|
+
type: Input
|
|
2923
|
+
}] } });
|
|
2924
|
+
|
|
2925
|
+
/*
|
|
2926
|
+
<file>
|
|
2927
|
+
Project:
|
|
2928
|
+
@osovitny/anatoly
|
|
2929
|
+
|
|
2930
|
+
Authors:
|
|
2931
|
+
Vadim Osovitny
|
|
2932
|
+
Anatoly Osovitny
|
|
2933
|
+
|
|
2934
|
+
Created:
|
|
2935
|
+
12 Dec 2017
|
|
2936
|
+
|
|
2937
|
+
Version:
|
|
2938
|
+
1.0
|
|
2939
|
+
|
|
2940
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2941
|
+
</file>
|
|
2942
|
+
*/
|
|
2943
|
+
class FormsHtmlEditorComponent extends BaseHtmlEditorComponent {
|
|
2944
|
+
constructor() {
|
|
2945
|
+
super();
|
|
2946
|
+
this.editorFormKey = "html";
|
|
2947
|
+
}
|
|
2948
|
+
setFormValueAfterInitialized(name, value) {
|
|
2949
|
+
this.doAfterInitialized(function (that) {
|
|
2950
|
+
that.setFormValue(name, value);
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
FormsHtmlEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FormsHtmlEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2955
|
+
FormsHtmlEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: FormsHtmlEditorComponent, selector: "anatoly-forms-html-editor", inputs: { editorFormKey: "editorFormKey" }, usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"formGroup\">\r\n <div class=\"form-group\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\">\r\n <label class=\"control-label\">{{ editorLabelText }}</label>\r\n <textarea [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 [controlName]=\"editorFormKey\"\r\n [controlTitle]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$6.FroalaEditorDirective, selector: "[froalaEditor]", inputs: ["froalaEditor", "froalaModel"], outputs: ["froalaModelChange", "froalaInit"], exportAs: ["froalaEditor"] }, { kind: "directive", type: NativeElementDirective, selector: "[formControl], [formControlName]" }, { kind: "component", type: ItemValidationSummaryComponent, selector: "anatoly-item-validation-summary", inputs: ["controlName", "controlTitle"] }] });
|
|
2956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FormsHtmlEditorComponent, decorators: [{
|
|
2957
|
+
type: Component,
|
|
2958
|
+
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\">\r\n <div class=\"form-group\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\">\r\n <label class=\"control-label\">{{ editorLabelText }}</label>\r\n <textarea [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 [controlName]=\"editorFormKey\"\r\n [controlTitle]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n</div>\r\n" }]
|
|
2959
|
+
}], ctorParameters: function () { return []; }, propDecorators: { editorFormKey: [{
|
|
2960
|
+
type: Input
|
|
2961
|
+
}] } });
|
|
2962
|
+
|
|
2963
|
+
/*
|
|
2964
|
+
<file>
|
|
2965
|
+
Project:
|
|
2966
|
+
@osovitny/anatoly
|
|
2967
|
+
|
|
2968
|
+
Authors:
|
|
2969
|
+
Vadim Osovitny
|
|
2970
|
+
Anatoly Osovitny
|
|
2971
|
+
|
|
2972
|
+
Created:
|
|
2973
|
+
12 Dec 2017
|
|
2974
|
+
|
|
2975
|
+
Version:
|
|
2976
|
+
1.0
|
|
2977
|
+
|
|
2978
|
+
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2979
|
+
</file>
|
|
2980
|
+
*/
|
|
2981
|
+
class HtmlEditorComponent extends BaseHtmlEditorComponent {
|
|
2982
|
+
constructor() {
|
|
2983
|
+
super();
|
|
2984
|
+
}
|
|
2985
|
+
setHtml(content) {
|
|
2986
|
+
this.doAfterInitialized(function (that) {
|
|
2987
|
+
var editor = that.getEditor();
|
|
2988
|
+
if (typeof editor == "undefined" || editor == null) {
|
|
2989
|
+
return;
|
|
2990
|
+
}
|
|
2991
|
+
editor.html.set(content);
|
|
2992
|
+
});
|
|
2993
|
+
}
|
|
2994
|
+
getHtml() {
|
|
2995
|
+
var editor = this.getEditor();
|
|
2996
|
+
if (typeof editor == "undefined" || editor == null) {
|
|
2997
|
+
return;
|
|
2998
|
+
}
|
|
2999
|
+
return editor.html.get(false);
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
HtmlEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: HtmlEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3003
|
+
HtmlEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: HtmlEditorComponent, selector: "anatoly-html-editor", usesInheritance: true, ngImport: i0, template: "<div>\r\n <label>{{ editorLabelText }}</label>\r\n <textarea [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\">\r\n </textarea>\r\n</div>", dependencies: [{ kind: "directive", type: i1$6.FroalaEditorDirective, selector: "[froalaEditor]", inputs: ["froalaEditor", "froalaModel"], outputs: ["froalaModelChange", "froalaInit"], exportAs: ["froalaEditor"] }] });
|
|
3004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: HtmlEditorComponent, decorators: [{
|
|
3005
|
+
type: Component,
|
|
3006
|
+
args: [{ selector: "anatoly-html-editor", template: "<div>\r\n <label>{{ editorLabelText }}</label>\r\n <textarea [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\">\r\n </textarea>\r\n</div>" }]
|
|
3007
|
+
}], ctorParameters: function () { return []; } });
|
|
3008
|
+
|
|
3009
|
+
/*
|
|
3010
|
+
<file>
|
|
3011
|
+
Project:
|
|
3012
|
+
@osovitny/anatoly
|
|
3013
|
+
|
|
3014
|
+
Authors:
|
|
3015
|
+
Vadim Osovitny
|
|
3016
|
+
Anatoly Osovitny
|
|
3017
|
+
|
|
2814
3018
|
Created:
|
|
2815
3019
|
4 Jul 2018
|
|
2816
3020
|
|
|
@@ -2820,19 +3024,17 @@ SignInButtonComponent.propDecorators = {
|
|
|
2820
3024
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2821
3025
|
</file>
|
|
2822
3026
|
*/
|
|
2823
|
-
class
|
|
3027
|
+
class SignInButtonComponent {
|
|
2824
3028
|
constructor() { }
|
|
2825
3029
|
}
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
];
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
classbtn: [{ type: Input }]
|
|
2835
|
-
};
|
|
3030
|
+
SignInButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignInButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3031
|
+
SignInButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: SignInButtonComponent, selector: "anatoly-signin-button", inputs: { classbtn: "classbtn" }, ngImport: i0, template: "<a href=\"identity/signIn\" class=\"{{classbtn}}\">Sign In</a>\r\n" });
|
|
3032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignInButtonComponent, decorators: [{
|
|
3033
|
+
type: Component,
|
|
3034
|
+
args: [{ selector: "anatoly-signin-button", template: "<a href=\"identity/signIn\" class=\"{{classbtn}}\">Sign In</a>\r\n" }]
|
|
3035
|
+
}], ctorParameters: function () { return []; }, propDecorators: { classbtn: [{
|
|
3036
|
+
type: Input
|
|
3037
|
+
}] } });
|
|
2836
3038
|
|
|
2837
3039
|
/*
|
|
2838
3040
|
<file>
|
|
@@ -2852,17 +3054,17 @@ SignOutButtonComponent.propDecorators = {
|
|
|
2852
3054
|
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2853
3055
|
</file>
|
|
2854
3056
|
*/
|
|
2855
|
-
class
|
|
3057
|
+
class SignOutButtonComponent {
|
|
3058
|
+
constructor() { }
|
|
2856
3059
|
}
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
];
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
};
|
|
3060
|
+
SignOutButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignOutButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3061
|
+
SignOutButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: SignOutButtonComponent, selector: "anatoly-signout-button", inputs: { classbtn: "classbtn" }, ngImport: i0, template: "<a href=\"identity/signOut\" class=\"{{classbtn}}\">Sign Out</a>\r\n" });
|
|
3062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SignOutButtonComponent, decorators: [{
|
|
3063
|
+
type: Component,
|
|
3064
|
+
args: [{ selector: "anatoly-signout-button", template: "<a href=\"identity/signOut\" class=\"{{classbtn}}\">Sign Out</a>\r\n" }]
|
|
3065
|
+
}], ctorParameters: function () { return []; }, propDecorators: { classbtn: [{
|
|
3066
|
+
type: Input
|
|
3067
|
+
}] } });
|
|
2866
3068
|
|
|
2867
3069
|
/*
|
|
2868
3070
|
<file>
|
|
@@ -2899,15 +3101,12 @@ class LoadingComponent {
|
|
|
2899
3101
|
this.subs.unsubscribe();
|
|
2900
3102
|
}
|
|
2901
3103
|
}
|
|
2902
|
-
LoadingComponent
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
];
|
|
2908
|
-
LoadingComponent.ctorParameters = () => [
|
|
2909
|
-
{ type: LoadingService }
|
|
2910
|
-
];
|
|
3104
|
+
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoadingComponent, deps: [{ token: LoadingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3105
|
+
LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: LoadingComponent, selector: "anatoly-loading", ngImport: i0, template: "<div *ngIf=\"show\">\r\n <span id=\"pnlLoading\" class=\"k-icon k-i-loading\"></span>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
3107
|
+
type: Component,
|
|
3108
|
+
args: [{ selector: 'anatoly-loading', template: "<div *ngIf=\"show\">\r\n <span id=\"pnlLoading\" class=\"k-icon k-i-loading\"></span>\r\n</div>\r\n" }]
|
|
3109
|
+
}], ctorParameters: function () { return [{ type: LoadingService }]; } });
|
|
2911
3110
|
|
|
2912
3111
|
/*
|
|
2913
3112
|
<file>
|
|
@@ -2962,59 +3161,21 @@ class SpinnerComponent {
|
|
|
2962
3161
|
this.isSpinnerVisible = false;
|
|
2963
3162
|
}
|
|
2964
3163
|
}
|
|
2965
|
-
SpinnerComponent
|
|
2966
|
-
{ type:
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
};
|
|
2980
|
-
|
|
2981
|
-
/*
|
|
2982
|
-
<file>
|
|
2983
|
-
Project:
|
|
2984
|
-
@osovitny/anatoly
|
|
2985
|
-
|
|
2986
|
-
Authors:
|
|
2987
|
-
Vadim Osovitny
|
|
2988
|
-
Anatoly Osovitny
|
|
2989
|
-
|
|
2990
|
-
Created:
|
|
2991
|
-
28 Jun 2020
|
|
2992
|
-
|
|
2993
|
-
Version:
|
|
2994
|
-
1.0
|
|
2995
|
-
|
|
2996
|
-
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
2997
|
-
</file>
|
|
2998
|
-
*/
|
|
2999
|
-
class NativeElementDirective {
|
|
3000
|
-
constructor(el, control) {
|
|
3001
|
-
this.el = el;
|
|
3002
|
-
this.control = control;
|
|
3003
|
-
}
|
|
3004
|
-
ngOnInit() {
|
|
3005
|
-
// sets the localization key to the control
|
|
3006
|
-
this.control.control.nativeElement = this.el.nativeElement;
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
NativeElementDirective.decorators = [
|
|
3010
|
-
{ type: Directive, args: [{
|
|
3011
|
-
selector: '[formControl], [formControlName]'
|
|
3012
|
-
},] }
|
|
3013
|
-
];
|
|
3014
|
-
NativeElementDirective.ctorParameters = () => [
|
|
3015
|
-
{ type: ElementRef },
|
|
3016
|
-
{ type: NgControl }
|
|
3017
|
-
];
|
|
3164
|
+
SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SpinnerComponent, deps: [{ token: i1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
3165
|
+
SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: SpinnerComponent, selector: "spinner", inputs: { backgroundColor: "backgroundColor", spinner: "spinner" }, ngImport: i0, template: "<div id=\"spinner-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"spinner-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === spinnerSpinKit.spinnerLine\">\r\n <div class=\"spinner-child spinner-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
3166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
3167
|
+
type: Component,
|
|
3168
|
+
args: [{ selector: 'spinner', encapsulation: ViewEncapsulation.None, template: "<div id=\"spinner-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"spinner-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === spinnerSpinKit.spinnerLine\">\r\n <div class=\"spinner-child spinner-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
3169
|
+
}], ctorParameters: function () {
|
|
3170
|
+
return [{ type: i1.Router }, { type: Document, decorators: [{
|
|
3171
|
+
type: Inject,
|
|
3172
|
+
args: [DOCUMENT]
|
|
3173
|
+
}] }];
|
|
3174
|
+
}, propDecorators: { backgroundColor: [{
|
|
3175
|
+
type: Input
|
|
3176
|
+
}], spinner: [{
|
|
3177
|
+
type: Input
|
|
3178
|
+
}] } });
|
|
3018
3179
|
|
|
3019
3180
|
/*
|
|
3020
3181
|
<file>
|
|
@@ -3044,11 +3205,14 @@ class ReplaceTextPipe {
|
|
|
3044
3205
|
}
|
|
3045
3206
|
}
|
|
3046
3207
|
}
|
|
3047
|
-
ReplaceTextPipe
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3208
|
+
ReplaceTextPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ReplaceTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3209
|
+
ReplaceTextPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: ReplaceTextPipe, name: "replaceText" });
|
|
3210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: ReplaceTextPipe, decorators: [{
|
|
3211
|
+
type: Pipe,
|
|
3212
|
+
args: [{
|
|
3213
|
+
name: "replaceText",
|
|
3214
|
+
}]
|
|
3215
|
+
}] });
|
|
3052
3216
|
|
|
3053
3217
|
/*
|
|
3054
3218
|
<file>
|
|
@@ -3083,11 +3247,14 @@ class FileSizePipe {
|
|
|
3083
3247
|
return bytes.toFixed(+precision) + ' ' + this.units[unit];
|
|
3084
3248
|
}
|
|
3085
3249
|
}
|
|
3086
|
-
FileSizePipe
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3250
|
+
FileSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FileSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3251
|
+
FileSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: FileSizePipe, name: "filesize" });
|
|
3252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FileSizePipe, decorators: [{
|
|
3253
|
+
type: Pipe,
|
|
3254
|
+
args: [{
|
|
3255
|
+
name: 'filesize',
|
|
3256
|
+
}]
|
|
3257
|
+
}] });
|
|
3091
3258
|
|
|
3092
3259
|
/*
|
|
3093
3260
|
<file>
|
|
@@ -3115,134 +3282,12 @@ class SafeHtmlPipe {
|
|
|
3115
3282
|
return this.sanitized.bypassSecurityTrustHtml(value);
|
|
3116
3283
|
}
|
|
3117
3284
|
}
|
|
3118
|
-
SafeHtmlPipe
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
];
|
|
3124
|
-
|
|
3125
|
-
/*
|
|
3126
|
-
<file>
|
|
3127
|
-
Project:
|
|
3128
|
-
@osovitny/anatoly
|
|
3129
|
-
|
|
3130
|
-
Authors:
|
|
3131
|
-
Vadim Osovitny
|
|
3132
|
-
Anatoly Osovitny
|
|
3133
|
-
|
|
3134
|
-
Created:
|
|
3135
|
-
8 Dec 2017
|
|
3136
|
-
|
|
3137
|
-
Version:
|
|
3138
|
-
1.0
|
|
3139
|
-
|
|
3140
|
-
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
3141
|
-
</file>
|
|
3142
|
-
*/
|
|
3143
|
-
class ValidationSummaryComponent extends BaseEditComponent {
|
|
3144
|
-
constructor() {
|
|
3145
|
-
super();
|
|
3146
|
-
}
|
|
3147
|
-
getFormValidationMessages() {
|
|
3148
|
-
let messages = [];
|
|
3149
|
-
Object.keys(this.formGroup.controls).forEach((k) => {
|
|
3150
|
-
var control = this.formGroup.controls[k];
|
|
3151
|
-
if (control.controls != null) {
|
|
3152
|
-
Object.keys(control.controls).forEach((k) => {
|
|
3153
|
-
var child = control.controls[k];
|
|
3154
|
-
this.getValidationMessages(child, this.getControlName(child, k)).forEach((m) => messages.push(m));
|
|
3155
|
-
});
|
|
3156
|
-
}
|
|
3157
|
-
else {
|
|
3158
|
-
this.getValidationMessages(control, this.getControlName(control, k)).forEach((m) => messages.push(m));
|
|
3159
|
-
}
|
|
3160
|
-
});
|
|
3161
|
-
return messages;
|
|
3162
|
-
}
|
|
3163
|
-
getValidationMessages(state, thingName) {
|
|
3164
|
-
let thing = state.path || thingName;
|
|
3165
|
-
let messages = [];
|
|
3166
|
-
if (state.errors) {
|
|
3167
|
-
for (let errorName in state.errors) {
|
|
3168
|
-
if (state.errors.hasOwnProperty(errorName)) {
|
|
3169
|
-
switch (errorName) {
|
|
3170
|
-
case "required":
|
|
3171
|
-
messages.push(`${thing} is required`);
|
|
3172
|
-
break;
|
|
3173
|
-
case "minlength":
|
|
3174
|
-
messages.push(`${thing} must be at least ${state.errors["minlength"].requiredLength} characters`);
|
|
3175
|
-
break;
|
|
3176
|
-
case "pattern":
|
|
3177
|
-
messages.push(`${thing} contains illegal characters`);
|
|
3178
|
-
break;
|
|
3179
|
-
case "format":
|
|
3180
|
-
messages.push(`${thing} format mismatch`);
|
|
3181
|
-
break;
|
|
3182
|
-
case "maxlength":
|
|
3183
|
-
messages.push(`${thing} must have maximum ${state.errors["maxlength"].requiredLength} characters`);
|
|
3184
|
-
break;
|
|
3185
|
-
case "specialcharacters":
|
|
3186
|
-
messages.push(`${thing} contains special characters`);
|
|
3187
|
-
break;
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
return messages;
|
|
3193
|
-
}
|
|
3194
|
-
/**
|
|
3195
|
-
* Get Control Name
|
|
3196
|
-
* @param control
|
|
3197
|
-
* @param thingName
|
|
3198
|
-
*/
|
|
3199
|
-
getControlName(control, thingName) {
|
|
3200
|
-
let value = this.getControlTitle(control);
|
|
3201
|
-
return value ? value : thingName;
|
|
3202
|
-
}
|
|
3203
|
-
/**
|
|
3204
|
-
* Retrieve tilte of control
|
|
3205
|
-
* @param control
|
|
3206
|
-
*/
|
|
3207
|
-
getControlTitle(control) {
|
|
3208
|
-
if (control === null || control === void 0 ? void 0 : control.nativeElement) {
|
|
3209
|
-
let controlTitle = this.getTitleAttribute(control.nativeElement);
|
|
3210
|
-
if (controlTitle) {
|
|
3211
|
-
return controlTitle;
|
|
3212
|
-
}
|
|
3213
|
-
}
|
|
3214
|
-
return undefined;
|
|
3215
|
-
}
|
|
3216
|
-
/**
|
|
3217
|
-
* Return title attribute of form control
|
|
3218
|
-
*/
|
|
3219
|
-
getTitleAttribute(nativeElement) {
|
|
3220
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3221
|
-
let title;
|
|
3222
|
-
switch (nativeElement.tagName) {
|
|
3223
|
-
// For Kendo time and date picker element title is assigned to the 4th child control.
|
|
3224
|
-
case "KENDO-TIMEPICKER":
|
|
3225
|
-
case "KENDO-DATEPICKER":
|
|
3226
|
-
title =
|
|
3227
|
-
(_d = (_c = (_b = (_a = nativeElement.children[0]) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children[0]) === null || _c === void 0 ? void 0 : _c.children[0]) === null || _d === void 0 ? void 0 : _d.getAttribute("title");
|
|
3228
|
-
break;
|
|
3229
|
-
// For Kendo numaric element title is assigned to the 2nd child control.
|
|
3230
|
-
case "KENDO-NUMERICTEXTBOX":
|
|
3231
|
-
title = (_f = (_e = nativeElement.children[0]) === null || _e === void 0 ? void 0 : _e.children[0]) === null || _f === void 0 ? void 0 : _f.getAttribute("title");
|
|
3232
|
-
break;
|
|
3233
|
-
default:
|
|
3234
|
-
title = nativeElement.getAttribute("title");
|
|
3235
|
-
break;
|
|
3236
|
-
}
|
|
3237
|
-
return title;
|
|
3238
|
-
}
|
|
3239
|
-
}
|
|
3240
|
-
ValidationSummaryComponent.decorators = [
|
|
3241
|
-
{ type: Component, args: [{
|
|
3242
|
-
template: ""
|
|
3243
|
-
},] }
|
|
3244
|
-
];
|
|
3245
|
-
ValidationSummaryComponent.ctorParameters = () => [];
|
|
3285
|
+
SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3286
|
+
SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
|
|
3287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
3288
|
+
type: Pipe,
|
|
3289
|
+
args: [{ name: 'safeHtml' }]
|
|
3290
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
3246
3291
|
|
|
3247
3292
|
/*
|
|
3248
3293
|
<file>
|
|
@@ -3292,53 +3337,18 @@ class FormValidationSummaryComponent extends ValidationSummaryComponent {
|
|
|
3292
3337
|
return messages;
|
|
3293
3338
|
}
|
|
3294
3339
|
}
|
|
3295
|
-
FormValidationSummaryComponent
|
|
3296
|
-
{ type:
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
];
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
};
|
|
3307
|
-
|
|
3308
|
-
/*
|
|
3309
|
-
<file>
|
|
3310
|
-
Project:
|
|
3311
|
-
@osovitny/anatoly
|
|
3312
|
-
|
|
3313
|
-
Authors:
|
|
3314
|
-
Vadim Osovitny
|
|
3315
|
-
Anatoly Osovitny
|
|
3316
|
-
|
|
3317
|
-
Created:
|
|
3318
|
-
6 Dec 2017
|
|
3319
|
-
|
|
3320
|
-
Version:
|
|
3321
|
-
1.0
|
|
3322
|
-
|
|
3323
|
-
Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
|
|
3324
|
-
</file>
|
|
3325
|
-
*/
|
|
3326
|
-
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
3327
|
-
constructor() {
|
|
3328
|
-
super();
|
|
3329
|
-
}
|
|
3330
|
-
}
|
|
3331
|
-
ItemValidationSummaryComponent.decorators = [
|
|
3332
|
-
{ type: Component, args: [{
|
|
3333
|
-
selector: "anatoly-item-validation-summary",
|
|
3334
|
-
template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(controlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(controlName), controlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n"
|
|
3335
|
-
},] }
|
|
3336
|
-
];
|
|
3337
|
-
ItemValidationSummaryComponent.ctorParameters = () => [];
|
|
3338
|
-
ItemValidationSummaryComponent.propDecorators = {
|
|
3339
|
-
controlName: [{ type: Input }],
|
|
3340
|
-
controlTitle: [{ type: Input }]
|
|
3341
|
-
};
|
|
3340
|
+
FormValidationSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FormValidationSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3341
|
+
FormValidationSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.5", type: FormValidationSummaryComponent, selector: "anatoly-form-validation-summary", inputs: { visible: "visible", customerrors: "customerrors", viewtype: "viewtype" }, usesInheritance: true, ngImport: i0, template: "<div class=\"callout callout-danger\" *ngIf=\"visible\">\r\n <h6 class=\"box-title\">There are problems with the form</h6>\r\n <ul>\r\n <li *ngFor=\"let error of getErrors()\"><span>{{error}}</span></li>\r\n </ul>\r\n</div>\r\n\r\n", dependencies: [{ kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: FormValidationSummaryComponent, decorators: [{
|
|
3343
|
+
type: Component,
|
|
3344
|
+
args: [{ selector: "anatoly-form-validation-summary", template: "<div class=\"callout callout-danger\" *ngIf=\"visible\">\r\n <h6 class=\"box-title\">There are problems with the form</h6>\r\n <ul>\r\n <li *ngFor=\"let error of getErrors()\"><span>{{error}}</span></li>\r\n </ul>\r\n</div>\r\n\r\n" }]
|
|
3345
|
+
}], ctorParameters: function () { return []; }, propDecorators: { visible: [{
|
|
3346
|
+
type: Input
|
|
3347
|
+
}], customerrors: [{
|
|
3348
|
+
type: Input
|
|
3349
|
+
}], viewtype: [{
|
|
3350
|
+
type: Input
|
|
3351
|
+
}] } });
|
|
3342
3352
|
|
|
3343
3353
|
/*
|
|
3344
3354
|
<file>
|
|
@@ -3362,61 +3372,109 @@ const FroalaEditorModuleWithProviders = FroalaEditorModule.forRoot();
|
|
|
3362
3372
|
const FroalaViewModuleWithProviders = FroalaViewModule.forRoot();
|
|
3363
3373
|
class AnatolyUIModule {
|
|
3364
3374
|
}
|
|
3365
|
-
AnatolyUIModule
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3375
|
+
AnatolyUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3376
|
+
AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.5", ngImport: i0, type: AnatolyUIModule, declarations: [SubscribePlanButtonComponent,
|
|
3377
|
+
UpgradePlanButtonComponent,
|
|
3378
|
+
BuyAccessButtonComponent,
|
|
3379
|
+
SignInButtonComponent,
|
|
3380
|
+
SignUpButtonComponent,
|
|
3381
|
+
SignOutButtonComponent,
|
|
3382
|
+
ContentHeaderComponent,
|
|
3383
|
+
SpinnerComponent,
|
|
3384
|
+
LoadingComponent,
|
|
3385
|
+
NativeElementDirective,
|
|
3386
|
+
//Editor
|
|
3387
|
+
HtmlEditorComponent,
|
|
3388
|
+
FormsHtmlEditorComponent,
|
|
3389
|
+
//Validation
|
|
3390
|
+
FormValidationSummaryComponent,
|
|
3391
|
+
ItemValidationSummaryComponent,
|
|
3392
|
+
//Pipe
|
|
3393
|
+
SafeHtmlPipe,
|
|
3394
|
+
ReplaceTextPipe,
|
|
3395
|
+
FileSizePipe], imports: [CommonModule,
|
|
3396
|
+
ReactiveFormsModule,
|
|
3397
|
+
FormsModule, i1$6.FroalaEditorModule, i1$6.FroalaViewModule], exports: [SubscribePlanButtonComponent,
|
|
3398
|
+
UpgradePlanButtonComponent,
|
|
3399
|
+
BuyAccessButtonComponent,
|
|
3400
|
+
SignInButtonComponent,
|
|
3401
|
+
SignUpButtonComponent,
|
|
3402
|
+
SignOutButtonComponent,
|
|
3403
|
+
ContentHeaderComponent,
|
|
3404
|
+
SpinnerComponent,
|
|
3405
|
+
LoadingComponent,
|
|
3406
|
+
NativeElementDirective,
|
|
3407
|
+
//Editor
|
|
3408
|
+
HtmlEditorComponent,
|
|
3409
|
+
FormsHtmlEditorComponent,
|
|
3410
|
+
//Validation
|
|
3411
|
+
FormValidationSummaryComponent,
|
|
3412
|
+
ItemValidationSummaryComponent,
|
|
3413
|
+
//Pipe
|
|
3414
|
+
SafeHtmlPipe,
|
|
3415
|
+
ReplaceTextPipe,
|
|
3416
|
+
FileSizePipe] });
|
|
3417
|
+
AnatolyUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyUIModule, imports: [CommonModule,
|
|
3418
|
+
ReactiveFormsModule,
|
|
3419
|
+
FormsModule,
|
|
3420
|
+
FroalaEditorModuleWithProviders,
|
|
3421
|
+
FroalaViewModuleWithProviders] });
|
|
3422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.5", ngImport: i0, type: AnatolyUIModule, decorators: [{
|
|
3423
|
+
type: NgModule,
|
|
3424
|
+
args: [{
|
|
3425
|
+
imports: [
|
|
3426
|
+
CommonModule,
|
|
3427
|
+
ReactiveFormsModule,
|
|
3428
|
+
FormsModule,
|
|
3429
|
+
FroalaEditorModuleWithProviders,
|
|
3430
|
+
FroalaViewModuleWithProviders,
|
|
3431
|
+
],
|
|
3432
|
+
exports: [
|
|
3433
|
+
SubscribePlanButtonComponent,
|
|
3434
|
+
UpgradePlanButtonComponent,
|
|
3435
|
+
BuyAccessButtonComponent,
|
|
3436
|
+
SignInButtonComponent,
|
|
3437
|
+
SignUpButtonComponent,
|
|
3438
|
+
SignOutButtonComponent,
|
|
3439
|
+
ContentHeaderComponent,
|
|
3440
|
+
SpinnerComponent,
|
|
3441
|
+
LoadingComponent,
|
|
3442
|
+
NativeElementDirective,
|
|
3443
|
+
//Editor
|
|
3444
|
+
HtmlEditorComponent,
|
|
3445
|
+
FormsHtmlEditorComponent,
|
|
3446
|
+
//Validation
|
|
3447
|
+
FormValidationSummaryComponent,
|
|
3448
|
+
ItemValidationSummaryComponent,
|
|
3449
|
+
//Pipe
|
|
3450
|
+
SafeHtmlPipe,
|
|
3451
|
+
ReplaceTextPipe,
|
|
3452
|
+
FileSizePipe,
|
|
3453
|
+
],
|
|
3454
|
+
declarations: [
|
|
3455
|
+
SubscribePlanButtonComponent,
|
|
3456
|
+
UpgradePlanButtonComponent,
|
|
3457
|
+
BuyAccessButtonComponent,
|
|
3458
|
+
SignInButtonComponent,
|
|
3459
|
+
SignUpButtonComponent,
|
|
3460
|
+
SignOutButtonComponent,
|
|
3461
|
+
ContentHeaderComponent,
|
|
3462
|
+
SpinnerComponent,
|
|
3463
|
+
LoadingComponent,
|
|
3464
|
+
NativeElementDirective,
|
|
3465
|
+
//Editor
|
|
3466
|
+
HtmlEditorComponent,
|
|
3467
|
+
FormsHtmlEditorComponent,
|
|
3468
|
+
//Validation
|
|
3469
|
+
FormValidationSummaryComponent,
|
|
3470
|
+
ItemValidationSummaryComponent,
|
|
3471
|
+
//Pipe
|
|
3472
|
+
SafeHtmlPipe,
|
|
3473
|
+
ReplaceTextPipe,
|
|
3474
|
+
FileSizePipe,
|
|
3475
|
+
]
|
|
3476
|
+
}]
|
|
3477
|
+
}] });
|
|
3420
3478
|
|
|
3421
3479
|
/*
|
|
3422
3480
|
* Public API Surface of anatoly-lib
|
|
@@ -3427,4 +3485,4 @@ AnatolyUIModule.decorators = [
|
|
|
3427
3485
|
*/
|
|
3428
3486
|
|
|
3429
3487
|
export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, ContentHeaderComponent, ContextInitState, Convert, DefaultEditorOptions, DigitalMarketingService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
3430
|
-
//# sourceMappingURL=osovitny-anatoly.
|
|
3488
|
+
//# sourceMappingURL=osovitny-anatoly.mjs.map
|