@osovitny/anatoly 2.0.49 → 2.0.52

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.
Files changed (67) hide show
  1. package/bundles/osovitny-anatoly.umd.js +97 -83
  2. package/bundles/osovitny-anatoly.umd.js.map +1 -1
  3. package/esm2015/lib/core/consts/settings.js +2 -2
  4. package/esm2015/lib/core/convert.js +2 -2
  5. package/esm2015/lib/core/go/base-go.service.js +2 -2
  6. package/esm2015/lib/core/guards/once-import.guard.js +2 -2
  7. package/esm2015/lib/core/guid.js +2 -2
  8. package/esm2015/lib/core/interceptors/httpInterceptor.js +2 -2
  9. package/esm2015/lib/core/localization/localization.module.js +2 -2
  10. package/esm2015/lib/core/localization/localization.service.js +2 -2
  11. package/esm2015/lib/core/localization/localizationSettings.module.js +2 -2
  12. package/esm2015/lib/core/localization/localize.pipe.js +2 -2
  13. package/esm2015/lib/core/localization/utils.js +2 -2
  14. package/esm2015/lib/core/logging/globalErrorHandler.js +2 -2
  15. package/esm2015/lib/core/logging/logging.service.js +2 -2
  16. package/esm2015/lib/core/notifications/alerts.js +2 -2
  17. package/esm2015/lib/core/notifications/interfaces/notification.js +2 -2
  18. package/esm2015/lib/core/notifications/services/notification-service.js +2 -2
  19. package/esm2015/lib/core/services/appcontext.service.js +2 -2
  20. package/esm2015/lib/core/services/dm.service.js +2 -2
  21. package/esm2015/lib/core/services/google-analytics.service.js +2 -2
  22. package/esm2015/lib/core/services/idle.service.js +2 -2
  23. package/esm2015/lib/core/services/loading.service.js +2 -2
  24. package/esm2015/lib/core/services/web-storage.service.js +2 -2
  25. package/esm2015/lib/core/subs.js +2 -2
  26. package/esm2015/lib/core/utils.js +2 -2
  27. package/esm2015/lib/data/base/base-api.service.js +2 -2
  28. package/esm2015/lib/data/base/grid/base-grid-edit.service.js +2 -2
  29. package/esm2015/lib/data/base/grid/base-grid-read.service.js +2 -2
  30. package/esm2015/lib/data/consts.js +2 -2
  31. package/esm2015/lib/data/data.module.js +2 -2
  32. package/esm2015/lib/data/services/billing-api.service.js +2 -2
  33. package/esm2015/lib/data/services/notifications/notifications-api-service.js +2 -2
  34. package/esm2015/lib/ui/components/base-edit.component.js +23 -21
  35. package/esm2015/lib/ui/components/base.component.js +8 -6
  36. package/esm2015/lib/ui/components/billing/buyaccess-button.component.js +2 -2
  37. package/esm2015/lib/ui/components/billing/subscribe-plan-button.component.js +2 -2
  38. package/esm2015/lib/ui/components/billing/upgrade-plan-button.component.js +2 -2
  39. package/esm2015/lib/ui/components/content-header/content-header.component.js +2 -2
  40. package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +7 -5
  41. package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +2 -2
  42. package/esm2015/lib/ui/components/html-editor/html-editor.component.js +2 -2
  43. package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +2 -2
  44. package/esm2015/lib/ui/components/identity/signin-button.component.js +2 -2
  45. package/esm2015/lib/ui/components/identity/signout-button.component.js +2 -2
  46. package/esm2015/lib/ui/components/identity/signup-button.component.js +2 -2
  47. package/esm2015/lib/ui/components/loading/loading.component.js +2 -2
  48. package/esm2015/lib/ui/components/spinner/spinner.component.js +2 -2
  49. package/esm2015/lib/ui/directives/native-element.directive.js +2 -2
  50. package/esm2015/lib/ui/pipes/filesize.pipe.js +2 -2
  51. package/esm2015/lib/ui/pipes/replace-text.pipe.js +2 -2
  52. package/esm2015/lib/ui/pipes/safeHtml.pipe.js +2 -2
  53. package/esm2015/lib/ui/ui.module.js +44 -37
  54. package/esm2015/lib/ui/validation/form-validation-summary.component.js +2 -2
  55. package/esm2015/lib/ui/validation/item-validation-summary.component.js +2 -2
  56. package/esm2015/lib/ui/validation/validation-summary.component.js +24 -21
  57. package/fesm2015/osovitny-anatoly.js +119 -105
  58. package/fesm2015/osovitny-anatoly.js.map +1 -1
  59. package/lib/ui/components/base-edit.component.d.ts +4 -4
  60. package/lib/ui/components/base.component.d.ts +2 -2
  61. package/lib/ui/ui.module.d.ts +1 -1
  62. package/lib/ui/validation/validation-summary.component.d.ts +4 -4
  63. package/osovitny-anatoly.metadata.json +1 -1
  64. package/package.json +1 -1
  65. package/assets/styles/alerts.less +0 -182
  66. package/assets/styles/spinner.less +0 -64
  67. package/assets/styles/toastr.less +0 -192
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Pipe, NgModule, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, Component, Input, ViewEncapsulation, Directive, ElementRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
+ import { Injectable, Pipe, NgModule, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, Component, Input, ViewEncapsulation, Directive, ElementRef } from '@angular/core';
3
3
  import { ActivatedRoute, Router, NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
4
4
  import * as i1$3 from '@angular/common/http';
5
5
  import { HttpResponse, HttpClient } from '@angular/common/http';
@@ -37,7 +37,7 @@ import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
37
37
  Version:
38
38
  1.0
39
39
 
40
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
40
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
41
41
  </file>
42
42
  */
43
43
  const ContextInitState = JSON.parse((document.getElementById('contextInitState')).getAttribute('data-contextinitstate'));
@@ -80,7 +80,7 @@ const Urls = {
80
80
  Version:
81
81
  1.0
82
82
 
83
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
83
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
84
84
  </file>
85
85
  */
86
86
  class BaseGoService {
@@ -116,7 +116,7 @@ BaseGoService.ctorParameters = () => [
116
116
  Version:
117
117
  1.0
118
118
 
119
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
119
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
120
120
  </file>
121
121
  */
122
122
  function throwIfAlreadyLoaded(parentModule, moduleName) {
@@ -140,7 +140,7 @@ function throwIfAlreadyLoaded(parentModule, moduleName) {
140
140
  Version:
141
141
  1.0
142
142
 
143
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
143
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
144
144
  </file>
145
145
  */
146
146
  class LoadingService extends BehaviorSubject {
@@ -205,7 +205,7 @@ LoadingService.ctorParameters = () => [];
205
205
  Version:
206
206
  1.0
207
207
 
208
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
208
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
209
209
  </file>
210
210
  */
211
211
  class LoggingService {
@@ -240,7 +240,7 @@ LoggingService.ctorParameters = () => [];
240
240
  Version:
241
241
  1.0
242
242
 
243
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
243
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
244
244
  </file>
245
245
  */
246
246
  class AnatolyHttpInterceptor {
@@ -340,7 +340,7 @@ AnatolyHttpInterceptor.ctorParameters = () => [
340
340
  Version:
341
341
  1.0
342
342
 
343
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
343
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
344
344
  </file>
345
345
  */
346
346
  class Convert {
@@ -367,7 +367,7 @@ class Convert {
367
367
  Version:
368
368
  1.0
369
369
 
370
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
370
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
371
371
  </file>
372
372
  */
373
373
  class LocalizationService {
@@ -542,7 +542,7 @@ LocalizationService.ctorParameters = () => [
542
542
  Version:
543
543
  1.0
544
544
 
545
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
545
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
546
546
  </file>
547
547
  */
548
548
  class LocalizePipe {
@@ -616,7 +616,7 @@ LocalizePipe.ctorParameters = () => [
616
616
  Version:
617
617
  1.0
618
618
 
619
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
619
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
620
620
  </file>
621
621
  */
622
622
  function customTranslateLoaderFactory(http) {
@@ -685,7 +685,7 @@ LocalizationSettingsModule.ctorParameters = () => [
685
685
  Version:
686
686
  1.0
687
687
 
688
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
688
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
689
689
  </file>
690
690
  */
691
691
  class LocalizationModule {
@@ -721,7 +721,7 @@ LocalizationModule.decorators = [
721
721
  Version:
722
722
  1.0
723
723
 
724
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
724
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
725
725
  </file>
726
726
  */
727
727
  class GlobalErrorHandler {
@@ -757,7 +757,7 @@ GlobalErrorHandler.ctorParameters = () => [
757
757
  Version:
758
758
  1.0
759
759
 
760
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
760
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
761
761
  </file>
762
762
  */
763
763
  class L10nUtils {
@@ -799,7 +799,7 @@ class L10nUtils {
799
799
  Version:
800
800
  1.0
801
801
 
802
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
802
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
803
803
  </file>
804
804
  */
805
805
  class Alerts {
@@ -906,7 +906,7 @@ class Alerts {
906
906
  Version:
907
907
  1.0
908
908
 
909
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
909
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
910
910
  </file>
911
911
  */
912
912
 
@@ -925,7 +925,7 @@ class Alerts {
925
925
  Version:
926
926
  1.0
927
927
 
928
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
928
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
929
929
  </file>
930
930
  */
931
931
  class Guid {
@@ -949,7 +949,7 @@ class Guid {
949
949
  Version:
950
950
  1.0
951
951
 
952
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
952
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
953
953
  </file>
954
954
  */
955
955
  // SignalR
@@ -1169,7 +1169,7 @@ NotificationService.ctorParameters = () => [
1169
1169
  Version:
1170
1170
  1.0
1171
1171
 
1172
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1172
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1173
1173
  </file>
1174
1174
  */
1175
1175
  class BaseApiService {
@@ -1252,7 +1252,7 @@ BaseApiService.ctorParameters = () => [
1252
1252
  Version:
1253
1253
  1.0
1254
1254
 
1255
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1255
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1256
1256
  </file>
1257
1257
  */
1258
1258
  class AppContextService extends BaseApiService {
@@ -1320,7 +1320,7 @@ AppContextService.ctorParameters = () => [
1320
1320
  Version:
1321
1321
  1.0
1322
1322
 
1323
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1323
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1324
1324
  </file>
1325
1325
  */
1326
1326
  class IdleService {
@@ -1389,7 +1389,7 @@ IdleService.decorators = [
1389
1389
  Version:
1390
1390
  1.0
1391
1391
 
1392
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1392
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1393
1393
  </file>
1394
1394
  */
1395
1395
  class WebStorageService {
@@ -1453,7 +1453,7 @@ SessionStorageService.ctorParameters = () => [];
1453
1453
  Version:
1454
1454
  1.0
1455
1455
 
1456
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1456
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1457
1457
  </file>
1458
1458
  */
1459
1459
  class DigitalMarketingService {
@@ -1520,7 +1520,7 @@ DigitalMarketingService.ctorParameters = () => [
1520
1520
  Version:
1521
1521
  1.0
1522
1522
 
1523
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1523
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1524
1524
  </file>
1525
1525
  */
1526
1526
  class GoogleAnalyticsService {
@@ -1599,7 +1599,7 @@ AnatolyCoreModule.ctorParameters = () => [
1599
1599
  Version:
1600
1600
  1.0
1601
1601
 
1602
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1602
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1603
1603
  </file>
1604
1604
  */
1605
1605
  class Subs {
@@ -1633,7 +1633,7 @@ class Subs {
1633
1633
  Version:
1634
1634
  1.0
1635
1635
 
1636
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1636
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1637
1637
  </file>
1638
1638
  */
1639
1639
  class Utils {
@@ -1692,7 +1692,7 @@ class Utils {
1692
1692
  Version:
1693
1693
  1.0
1694
1694
 
1695
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1695
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1696
1696
  </file>
1697
1697
  */
1698
1698
  class BaseGridReadService extends BehaviorSubject {
@@ -1748,7 +1748,7 @@ BaseGridReadService.ctorParameters = () => [
1748
1748
  Version:
1749
1749
  1.0
1750
1750
 
1751
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1751
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1752
1752
  </file>
1753
1753
  */
1754
1754
  class BaseGridEditService extends BaseGridReadService {
@@ -1819,7 +1819,7 @@ BaseGridEditService.ctorParameters = () => [
1819
1819
  Version:
1820
1820
  1.0
1821
1821
 
1822
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1822
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1823
1823
  </file>
1824
1824
  */
1825
1825
  const consts = {
@@ -1843,7 +1843,7 @@ const consts = {
1843
1843
  Version:
1844
1844
  1.0
1845
1845
 
1846
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1846
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1847
1847
  </file>
1848
1848
  */
1849
1849
  class NotificationsApiService extends BaseApiService {
@@ -1881,7 +1881,7 @@ NotificationsApiService.ctorParameters = () => [
1881
1881
  Version:
1882
1882
  1.0
1883
1883
 
1884
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1884
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1885
1885
  </file>
1886
1886
  */
1887
1887
  class BillingApiService extends BaseApiService {
@@ -1940,7 +1940,7 @@ BillingApiService.ctorParameters = () => [
1940
1940
  Version:
1941
1941
  1.0
1942
1942
 
1943
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1943
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1944
1944
  </file>
1945
1945
  */
1946
1946
  class AnatolyDataModule {
@@ -1977,7 +1977,7 @@ AnatolyDataModule.ctorParameters = () => [
1977
1977
  Version:
1978
1978
  1.0
1979
1979
 
1980
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
1980
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
1981
1981
  </file>
1982
1982
  */
1983
1983
  class BuyAccessButtonComponent {
@@ -2045,7 +2045,7 @@ BuyAccessButtonComponent.propDecorators = {
2045
2045
  Version:
2046
2046
  1.0
2047
2047
 
2048
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2048
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2049
2049
  </file>
2050
2050
  */
2051
2051
  class SubscribePlanButtonComponent {
@@ -2104,7 +2104,7 @@ SubscribePlanButtonComponent.propDecorators = {
2104
2104
  Version:
2105
2105
  1.0
2106
2106
 
2107
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2107
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2108
2108
  </file>
2109
2109
  */
2110
2110
  // Services
@@ -2154,7 +2154,7 @@ UpgradePlanButtonComponent.propDecorators = {
2154
2154
  Version:
2155
2155
  1.0
2156
2156
 
2157
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2157
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2158
2158
  </file>
2159
2159
  */
2160
2160
  class ContentHeaderComponent {
@@ -2189,7 +2189,7 @@ ContentHeaderComponent.propDecorators = {
2189
2189
  Version:
2190
2190
  1.0
2191
2191
 
2192
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2192
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2193
2193
  </file>
2194
2194
  */
2195
2195
  const DefaultEditorOptions = {
@@ -2278,7 +2278,7 @@ const DefaultEditorOptions = {
2278
2278
  Version:
2279
2279
  1.0
2280
2280
 
2281
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2281
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2282
2282
  </file>
2283
2283
  */
2284
2284
  class BaseComponent {
@@ -2287,7 +2287,7 @@ class BaseComponent {
2287
2287
  }
2288
2288
  getQSId() {
2289
2289
  var id = Utils.getValueByNameInQS("id");
2290
- if (typeof id === 'undefined' || id == '')
2290
+ if (typeof id === "undefined" || id == "")
2291
2291
  return null;
2292
2292
  return id;
2293
2293
  }
@@ -2296,7 +2296,9 @@ class BaseComponent {
2296
2296
  }
2297
2297
  }
2298
2298
  BaseComponent.decorators = [
2299
- { type: Injectable }
2299
+ { type: Component, args: [{
2300
+ template: ''
2301
+ },] }
2300
2302
  ];
2301
2303
 
2302
2304
  /*
@@ -2314,7 +2316,7 @@ BaseComponent.decorators = [
2314
2316
  Version:
2315
2317
  1.0
2316
2318
 
2317
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2319
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2318
2320
  </file>
2319
2321
  */
2320
2322
  class BaseEditComponent extends BaseComponent {
@@ -2324,7 +2326,7 @@ class BaseEditComponent extends BaseComponent {
2324
2326
  }
2325
2327
  isActionAdding() {
2326
2328
  var id = Utils.getValueByNameInQS("id");
2327
- if (typeof id === 'undefined' || id == '')
2329
+ if (typeof id === "undefined" || id == "")
2328
2330
  return true;
2329
2331
  return false;
2330
2332
  }
@@ -2335,34 +2337,34 @@ class BaseEditComponent extends BaseComponent {
2335
2337
  return !this.isControlInvalid(name, frmGroup);
2336
2338
  }
2337
2339
  isControlInvalid(name, frmGroup = null) {
2338
- if (typeof name === 'undefined' || name == '') {
2340
+ if (typeof name === "undefined" || name == "") {
2339
2341
  return false;
2340
2342
  }
2341
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2343
+ let fg = frmGroup ? frmGroup : this.formGroup;
2342
2344
  if (!fg) {
2343
2345
  return false;
2344
2346
  }
2345
2347
  if (fg.get(name)) {
2346
- return (this.formSubmitted && fg.get(name).invalid) ||
2347
- (fg.get(name).touched && fg.get(name).invalid);
2348
+ return ((this.formSubmitted && fg.get(name).invalid) ||
2349
+ (fg.get(name).touched && fg.get(name).invalid));
2348
2350
  }
2349
2351
  return false;
2350
2352
  }
2351
2353
  //FormGroup functions
2352
2354
  getFormValue(name, frmGroup = null) {
2353
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2355
+ let fg = frmGroup ? frmGroup : this.formGroup;
2354
2356
  return fg.controls[name].value;
2355
2357
  }
2356
2358
  setFormValue(name, value, frmGroup = null) {
2357
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2359
+ let fg = frmGroup ? frmGroup : this.formGroup;
2358
2360
  fg.controls[name].setValue(value);
2359
2361
  }
2360
2362
  getFormGroupValue(groupName, name, frmGroup = null) {
2361
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2363
+ let fg = frmGroup ? frmGroup : this.formGroup;
2362
2364
  return fg.controls[groupName].get(name).value;
2363
2365
  }
2364
2366
  setFormGroupValue(groupName, name, value, frmGroup = null) {
2365
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2367
+ let fg = frmGroup ? frmGroup : this.formGroup;
2366
2368
  fg.controls[groupName].get(name).setValue(value);
2367
2369
  }
2368
2370
  /**
@@ -2372,7 +2374,7 @@ class BaseEditComponent extends BaseComponent {
2372
2374
  * @param formGroup
2373
2375
  */
2374
2376
  addControl(name, formControl, frmGroup = null) {
2375
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2377
+ let fg = frmGroup ? frmGroup : this.formGroup;
2376
2378
  fg.addControl(name, formControl);
2377
2379
  }
2378
2380
  /**
@@ -2381,7 +2383,7 @@ class BaseEditComponent extends BaseComponent {
2381
2383
  * @param formGroup
2382
2384
  */
2383
2385
  removeControl(name, frmGroup = null) {
2384
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2386
+ let fg = frmGroup ? frmGroup : this.formGroup;
2385
2387
  if (fg.get(name)) {
2386
2388
  fg.removeControl(name);
2387
2389
  }
@@ -2403,7 +2405,7 @@ class BaseEditComponent extends BaseComponent {
2403
2405
  */
2404
2406
  setControlError(controlName, err, frmGroup = null) {
2405
2407
  var _a;
2406
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2408
+ let fg = frmGroup ? frmGroup : this.formGroup;
2407
2409
  (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors(err);
2408
2410
  }
2409
2411
  /**
@@ -2413,19 +2415,21 @@ class BaseEditComponent extends BaseComponent {
2413
2415
  */
2414
2416
  setInValidError(controlName, frmGroup = null) {
2415
2417
  var _a;
2416
- let fg = (frmGroup) ? frmGroup : this.formGroup;
2418
+ let fg = frmGroup ? frmGroup : this.formGroup;
2417
2419
  (_a = fg.get(controlName)) === null || _a === void 0 ? void 0 : _a.setErrors({ invalid: true });
2418
2420
  }
2419
2421
  /**
2420
- * returns formgroup controls.
2421
- * main use case is used in html pages
2422
- */
2422
+ * returns formgroup controls.
2423
+ * main use case is used in html pages
2424
+ */
2423
2425
  get fc() {
2424
2426
  return this.formGroup.controls;
2425
2427
  }
2426
2428
  }
2427
2429
  BaseEditComponent.decorators = [
2428
- { type: Injectable }
2430
+ { type: Component, args: [{
2431
+ template: ''
2432
+ },] }
2429
2433
  ];
2430
2434
  BaseEditComponent.ctorParameters = () => [];
2431
2435
  BaseEditComponent.propDecorators = {
@@ -2448,7 +2452,7 @@ BaseEditComponent.propDecorators = {
2448
2452
  Version:
2449
2453
  1.0
2450
2454
 
2451
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2455
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2452
2456
  </file>
2453
2457
  */
2454
2458
  class BaseHtmlEditorComponent extends BaseEditComponent {
@@ -2525,7 +2529,9 @@ class BaseHtmlEditorComponent extends BaseEditComponent {
2525
2529
  }
2526
2530
  }
2527
2531
  BaseHtmlEditorComponent.decorators = [
2528
- { type: Injectable }
2532
+ { type: Component, args: [{
2533
+ template: ""
2534
+ },] }
2529
2535
  ];
2530
2536
  BaseHtmlEditorComponent.ctorParameters = () => [];
2531
2537
  BaseHtmlEditorComponent.propDecorators = {
@@ -2548,7 +2554,7 @@ BaseHtmlEditorComponent.propDecorators = {
2548
2554
  Version:
2549
2555
  1.0
2550
2556
 
2551
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2557
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2552
2558
  </file>
2553
2559
  */
2554
2560
  class FormsHtmlEditorComponent extends BaseHtmlEditorComponent {
@@ -2588,7 +2594,7 @@ FormsHtmlEditorComponent.propDecorators = {
2588
2594
  Version:
2589
2595
  1.0
2590
2596
 
2591
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2597
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2592
2598
  </file>
2593
2599
  */
2594
2600
  class HtmlEditorComponent extends BaseHtmlEditorComponent {
@@ -2635,7 +2641,7 @@ HtmlEditorComponent.ctorParameters = () => [];
2635
2641
  Version:
2636
2642
  1.0
2637
2643
 
2638
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2644
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2639
2645
  </file>
2640
2646
  */
2641
2647
  class SignInButtonComponent {
@@ -2667,7 +2673,7 @@ SignInButtonComponent.propDecorators = {
2667
2673
  Version:
2668
2674
  1.0
2669
2675
 
2670
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2676
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2671
2677
  </file>
2672
2678
  */
2673
2679
  class SignOutButtonComponent {
@@ -2699,7 +2705,7 @@ SignOutButtonComponent.propDecorators = {
2699
2705
  Version:
2700
2706
  1.0
2701
2707
 
2702
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2708
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2703
2709
  </file>
2704
2710
  */
2705
2711
  class SignUpButtonComponent {
@@ -2729,7 +2735,7 @@ SignUpButtonComponent.propDecorators = {
2729
2735
  Version:
2730
2736
  1.0
2731
2737
 
2732
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2738
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2733
2739
  </file>
2734
2740
  */
2735
2741
  class LoadingComponent {
@@ -2774,7 +2780,7 @@ LoadingComponent.ctorParameters = () => [
2774
2780
  Version:
2775
2781
  1.0
2776
2782
 
2777
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2783
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2778
2784
  </file>
2779
2785
  */
2780
2786
  const SpinnerSpinKit = {
@@ -2843,7 +2849,7 @@ SpinnerComponent.propDecorators = {
2843
2849
  Version:
2844
2850
  1.0
2845
2851
 
2846
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2852
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2847
2853
  </file>
2848
2854
  */
2849
2855
  class NativeElementDirective {
@@ -2881,7 +2887,7 @@ NativeElementDirective.ctorParameters = () => [
2881
2887
  Version:
2882
2888
  1.0
2883
2889
 
2884
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2890
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2885
2891
  </file>
2886
2892
  */
2887
2893
  class ReplaceTextPipe {
@@ -2915,7 +2921,7 @@ ReplaceTextPipe.decorators = [
2915
2921
  Version:
2916
2922
  1.0
2917
2923
 
2918
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2924
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2919
2925
  </file>
2920
2926
  */
2921
2927
  class FileSizePipe {
@@ -2954,7 +2960,7 @@ FileSizePipe.decorators = [
2954
2960
  Version:
2955
2961
  1.0
2956
2962
 
2957
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2963
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2958
2964
  </file>
2959
2965
  */
2960
2966
  class SafeHtmlPipe {
@@ -2987,7 +2993,7 @@ SafeHtmlPipe.ctorParameters = () => [
2987
2993
  Version:
2988
2994
  1.0
2989
2995
 
2990
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
2996
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
2991
2997
  </file>
2992
2998
  */
2993
2999
  class ValidationSummaryComponent extends BaseEditComponent {
@@ -2996,16 +3002,16 @@ class ValidationSummaryComponent extends BaseEditComponent {
2996
3002
  }
2997
3003
  getFormValidationMessages() {
2998
3004
  let messages = [];
2999
- Object.keys(this.formGroup.controls).forEach(k => {
3005
+ Object.keys(this.formGroup.controls).forEach((k) => {
3000
3006
  var control = this.formGroup.controls[k];
3001
3007
  if (control.controls != null) {
3002
- Object.keys(control.controls).forEach(k => {
3008
+ Object.keys(control.controls).forEach((k) => {
3003
3009
  var child = control.controls[k];
3004
- this.getValidationMessages(child, this.getControlName(child, k)).forEach(m => messages.push(m));
3010
+ this.getValidationMessages(child, this.getControlName(child, k)).forEach((m) => messages.push(m));
3005
3011
  });
3006
3012
  }
3007
3013
  else {
3008
- this.getValidationMessages(control, this.getControlName(control, k)).forEach(m => messages.push(m));
3014
+ this.getValidationMessages(control, this.getControlName(control, k)).forEach((m) => messages.push(m));
3009
3015
  }
3010
3016
  });
3011
3017
  return messages;
@@ -3017,22 +3023,22 @@ class ValidationSummaryComponent extends BaseEditComponent {
3017
3023
  for (let errorName in state.errors) {
3018
3024
  if (state.errors.hasOwnProperty(errorName)) {
3019
3025
  switch (errorName) {
3020
- case 'required':
3026
+ case "required":
3021
3027
  messages.push(`${thing} is required`);
3022
3028
  break;
3023
- case 'minlength':
3029
+ case "minlength":
3024
3030
  messages.push(`${thing} must be at least ${state.errors["minlength"].requiredLength} characters`);
3025
3031
  break;
3026
- case 'pattern':
3032
+ case "pattern":
3027
3033
  messages.push(`${thing} contains illegal characters`);
3028
3034
  break;
3029
- case 'format':
3035
+ case "format":
3030
3036
  messages.push(`${thing} format mismatch`);
3031
3037
  break;
3032
- case 'maxlength':
3038
+ case "maxlength":
3033
3039
  messages.push(`${thing} must have maximum ${state.errors["maxlength"].requiredLength} characters`);
3034
3040
  break;
3035
- case 'specialcharacters':
3041
+ case "specialcharacters":
3036
3042
  messages.push(`${thing} contains special characters`);
3037
3043
  break;
3038
3044
  }
@@ -3042,10 +3048,10 @@ class ValidationSummaryComponent extends BaseEditComponent {
3042
3048
  return messages;
3043
3049
  }
3044
3050
  /**
3045
- * Get Control Name
3046
- * @param control
3047
- * @param thingName
3048
- */
3051
+ * Get Control Name
3052
+ * @param control
3053
+ * @param thingName
3054
+ */
3049
3055
  getControlName(control, thingName) {
3050
3056
  let value = this.getControlTitle(control);
3051
3057
  return value ? value : thingName;
@@ -3073,21 +3079,24 @@ class ValidationSummaryComponent extends BaseEditComponent {
3073
3079
  // For Kendo time and date picker element title is assigned to the 4th child control.
3074
3080
  case "KENDO-TIMEPICKER":
3075
3081
  case "KENDO-DATEPICKER":
3076
- title = (_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');
3082
+ title =
3083
+ (_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");
3077
3084
  break;
3078
3085
  // For Kendo numaric element title is assigned to the 2nd child control.
3079
3086
  case "KENDO-NUMERICTEXTBOX":
3080
- title = (_f = (_e = nativeElement.children[0]) === null || _e === void 0 ? void 0 : _e.children[0]) === null || _f === void 0 ? void 0 : _f.getAttribute('title');
3087
+ title = (_f = (_e = nativeElement.children[0]) === null || _e === void 0 ? void 0 : _e.children[0]) === null || _f === void 0 ? void 0 : _f.getAttribute("title");
3081
3088
  break;
3082
3089
  default:
3083
- title = nativeElement.getAttribute('title');
3090
+ title = nativeElement.getAttribute("title");
3084
3091
  break;
3085
3092
  }
3086
3093
  return title;
3087
3094
  }
3088
3095
  }
3089
3096
  ValidationSummaryComponent.decorators = [
3090
- { type: Injectable }
3097
+ { type: Component, args: [{
3098
+ template: ""
3099
+ },] }
3091
3100
  ];
3092
3101
  ValidationSummaryComponent.ctorParameters = () => [];
3093
3102
 
@@ -3106,7 +3115,7 @@ ValidationSummaryComponent.ctorParameters = () => [];
3106
3115
  Version:
3107
3116
  1.0
3108
3117
 
3109
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
3118
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
3110
3119
  </file>
3111
3120
  */
3112
3121
  class FormValidationSummaryComponent extends ValidationSummaryComponent {
@@ -3167,7 +3176,7 @@ FormValidationSummaryComponent.propDecorators = {
3167
3176
  Version:
3168
3177
  1.0
3169
3178
 
3170
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
3179
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
3171
3180
  </file>
3172
3181
  */
3173
3182
  class ItemValidationSummaryComponent extends ValidationSummaryComponent {
@@ -3202,7 +3211,7 @@ ItemValidationSummaryComponent.propDecorators = {
3202
3211
  Version:
3203
3212
  1.0
3204
3213
 
3205
- Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
3214
+ Copyright (c) 2016-2021 Osovitny Inc. All rights reserved.
3206
3215
  </file>
3207
3216
  */
3208
3217
  const FroalaEditorModuleWithProviders = FroalaEditorModule.forRoot();
@@ -3225,17 +3234,20 @@ AnatolyUIModule.decorators = [
3225
3234
  SignInButtonComponent,
3226
3235
  SignUpButtonComponent,
3227
3236
  SignOutButtonComponent,
3228
- FormValidationSummaryComponent,
3229
- ItemValidationSummaryComponent,
3230
- HtmlEditorComponent,
3231
- FormsHtmlEditorComponent,
3232
3237
  ContentHeaderComponent,
3233
3238
  SpinnerComponent,
3234
3239
  LoadingComponent,
3235
3240
  NativeElementDirective,
3241
+ //Editor
3242
+ HtmlEditorComponent,
3243
+ FormsHtmlEditorComponent,
3244
+ //Validation
3245
+ FormValidationSummaryComponent,
3246
+ ItemValidationSummaryComponent,
3247
+ //Pipe
3236
3248
  SafeHtmlPipe,
3237
3249
  ReplaceTextPipe,
3238
- FileSizePipe
3250
+ FileSizePipe,
3239
3251
  ],
3240
3252
  declarations: [
3241
3253
  SubscribePlanButtonComponent,
@@ -3244,19 +3256,21 @@ AnatolyUIModule.decorators = [
3244
3256
  SignInButtonComponent,
3245
3257
  SignUpButtonComponent,
3246
3258
  SignOutButtonComponent,
3247
- FormValidationSummaryComponent,
3248
- ItemValidationSummaryComponent,
3249
- HtmlEditorComponent,
3250
- FormsHtmlEditorComponent,
3251
3259
  ContentHeaderComponent,
3252
3260
  SpinnerComponent,
3253
3261
  LoadingComponent,
3254
3262
  NativeElementDirective,
3263
+ //Editor
3264
+ HtmlEditorComponent,
3265
+ FormsHtmlEditorComponent,
3266
+ //Validation
3267
+ FormValidationSummaryComponent,
3268
+ ItemValidationSummaryComponent,
3269
+ //Pipe
3255
3270
  SafeHtmlPipe,
3256
3271
  ReplaceTextPipe,
3257
- FileSizePipe
3258
- ],
3259
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
3272
+ FileSizePipe,
3273
+ ]
3260
3274
  },] }
3261
3275
  ];
3262
3276