@osovitny/anatoly 2.14.11 → 2.14.13

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.
@@ -1365,15 +1365,22 @@ class AppContextService extends BaseApiService {
1365
1365
  if (!context) {
1366
1366
  return;
1367
1367
  }
1368
- let lu = context.lastRequested;
1369
- if (lu) {
1368
+ let shouldBeUpdated = false;
1369
+ let lr = context.lastRequested;
1370
+ if (lr) {
1370
1371
  let now = new Date();
1371
1372
  let lastRequested = new Date(context.lastRequested);
1372
1373
  let in2Mins = new Date(lastRequested.getFullYear(), lastRequested.getMonth(), lastRequested.getDate(), lastRequested.getHours(), lastRequested.getMinutes() + 2, 0, 0);
1373
1374
  if (in2Mins.getTime() < now.getTime()) {
1374
- this.updateCurrent();
1375
+ shouldBeUpdated = true;
1375
1376
  }
1376
1377
  }
1378
+ else {
1379
+ shouldBeUpdated = true;
1380
+ }
1381
+ if (shouldBeUpdated) {
1382
+ this.updateCurrent();
1383
+ }
1377
1384
  }
1378
1385
  dataReceived(data) {
1379
1386
  this.current = data;
@@ -1422,7 +1429,6 @@ class AppContextService extends BaseApiService {
1422
1429
  return ContextInitState.isUserAdmin;
1423
1430
  }
1424
1431
  //Properties
1425
- //current
1426
1432
  get current() {
1427
1433
  this.updateCurrentIfExpired();
1428
1434
  return this.getCurrentFromSession();
@@ -2934,6 +2940,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
2934
2940
  type: Input
2935
2941
  }] } });
2936
2942
 
2943
+ /*
2944
+ <file>
2945
+ Project:
2946
+ @osovitny/anatoly
2947
+
2948
+ Authors:
2949
+ Vadim Osovitny
2950
+ Anatoly Osovitny
2951
+
2952
+ Created:
2953
+ 29 Jul 2022
2954
+
2955
+ Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
2956
+ </file>
2957
+ */
2958
+ class NodataComponent {
2959
+ constructor() {
2960
+ this.icon = 'fas fa-cubes fa-w-16 fa-9x';
2961
+ this.heading = 'No data found';
2962
+ this.headingClass = 'text-uppercase text-primary';
2963
+ }
2964
+ }
2965
+ NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2966
+ NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" });
2967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
2968
+ type: Component,
2969
+ args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
2970
+ }], propDecorators: { icon: [{
2971
+ type: Input
2972
+ }], heading: [{
2973
+ type: Input
2974
+ }], headingClass: [{
2975
+ type: Input
2976
+ }] } });
2977
+
2937
2978
  /*
2938
2979
  <file>
2939
2980
  Project:
@@ -3003,7 +3044,7 @@ const Spinkit = {
3003
3044
  Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3004
3045
  </file>
3005
3046
  */
3006
- class SpinnerComponent {
3047
+ class PageSpinnerComponent {
3007
3048
  constructor(router, document) {
3008
3049
  this.router = router;
3009
3050
  this.document = document;
@@ -3026,11 +3067,11 @@ class SpinnerComponent {
3026
3067
  this.isSpinnerVisible = false;
3027
3068
  }
3028
3069
  }
3029
- SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SpinnerComponent, deps: [{ token: i1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
3030
- SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: SpinnerComponent, selector: "anatoly-spinner", inputs: { backgroundColor: "backgroundColor", spinner: "spinner" }, ngImport: i0, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-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 });
3031
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SpinnerComponent, decorators: [{
3070
+ PageSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, deps: [{ token: i1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
3071
+ PageSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: PageSpinnerComponent, selector: "anatoly-pagespinner", inputs: { backgroundColor: "backgroundColor", spinner: "spinner" }, ngImport: i0, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-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 });
3072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, decorators: [{
3032
3073
  type: Component,
3033
- args: [{ selector: 'anatoly-spinner', encapsulation: ViewEncapsulation.None, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
3074
+ args: [{ selector: 'anatoly-pagespinner', encapsulation: ViewEncapsulation.None, template: "<div id=\"http-loader\" *ngIf=\"isSpinnerVisible\">\r\n <div class=\"loader-bg\">\r\n <div class=\"sk-line-material\" [class.colored]=\"!backgroundColor\" *ngIf=\"spinner === Spinkit.skLine\">\r\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
3034
3075
  }], ctorParameters: function () {
3035
3076
  return [{ type: i1.Router }, { type: Document, decorators: [{
3036
3077
  type: Inject,
@@ -3042,41 +3083,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3042
3083
  type: Input
3043
3084
  }] } });
3044
3085
 
3045
- /*
3046
- <file>
3047
- Project:
3048
- @osovitny/anatoly
3049
-
3050
- Authors:
3051
- Vadim Osovitny
3052
- Anatoly Osovitny
3053
-
3054
- Created:
3055
- 29 Jul 2022
3056
-
3057
- Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3058
- </file>
3059
- */
3060
- class NodataComponent {
3061
- constructor() {
3062
- this.icon = 'fas fa-cubes fa-w-16 fa-9x';
3063
- this.heading = 'No data found';
3064
- this.headingClass = 'text-uppercase text-primary';
3065
- }
3066
- }
3067
- NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3068
- NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" });
3069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
3070
- type: Component,
3071
- args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
3072
- }], propDecorators: { icon: [{
3073
- type: Input
3074
- }], heading: [{
3075
- type: Input
3076
- }], headingClass: [{
3077
- type: Input
3078
- }] } });
3079
-
3080
3086
  /*
3081
3087
  <file>
3082
3088
  Project:
@@ -3685,13 +3691,16 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
3685
3691
  SignInButtonComponent,
3686
3692
  SignUpButtonComponent,
3687
3693
  SignOutButtonComponent,
3688
- SpinnerComponent,
3689
- LoadingComponent,
3690
3694
  NodataComponent,
3695
+ //Spinners
3696
+ PageSpinnerComponent,
3697
+ LoadingComponent,
3698
+ //Cards
3691
3699
  CardComponent,
3692
3700
  CardHeaderComponent,
3693
3701
  CardBodyComponent,
3694
3702
  CardFooterComponent,
3703
+ //HtmlEditor
3695
3704
  HtmlEditorComponent,
3696
3705
  FormsHtmlEditorComponent,
3697
3706
  //Directives
@@ -3717,13 +3726,16 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
3717
3726
  SignInButtonComponent,
3718
3727
  SignUpButtonComponent,
3719
3728
  SignOutButtonComponent,
3720
- SpinnerComponent,
3721
- LoadingComponent,
3722
3729
  NodataComponent,
3730
+ //Spinners
3731
+ PageSpinnerComponent,
3732
+ LoadingComponent,
3733
+ //Cards
3723
3734
  CardComponent,
3724
3735
  CardHeaderComponent,
3725
3736
  CardBodyComponent,
3726
3737
  CardFooterComponent,
3738
+ //HtmlEditor
3727
3739
  HtmlEditorComponent,
3728
3740
  FormsHtmlEditorComponent,
3729
3741
  //Directives
@@ -3767,13 +3779,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3767
3779
  SignInButtonComponent,
3768
3780
  SignUpButtonComponent,
3769
3781
  SignOutButtonComponent,
3770
- SpinnerComponent,
3771
- LoadingComponent,
3772
3782
  NodataComponent,
3783
+ //Spinners
3784
+ PageSpinnerComponent,
3785
+ LoadingComponent,
3786
+ //Cards
3773
3787
  CardComponent,
3774
3788
  CardHeaderComponent,
3775
3789
  CardBodyComponent,
3776
3790
  CardFooterComponent,
3791
+ //HtmlEditor
3777
3792
  HtmlEditorComponent,
3778
3793
  FormsHtmlEditorComponent,
3779
3794
  //Directives
@@ -3797,13 +3812,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3797
3812
  SignInButtonComponent,
3798
3813
  SignUpButtonComponent,
3799
3814
  SignOutButtonComponent,
3800
- SpinnerComponent,
3801
- LoadingComponent,
3802
3815
  NodataComponent,
3816
+ //Spinners
3817
+ PageSpinnerComponent,
3818
+ LoadingComponent,
3819
+ //Cards
3803
3820
  CardComponent,
3804
3821
  CardHeaderComponent,
3805
3822
  CardBodyComponent,
3806
3823
  CardFooterComponent,
3824
+ //HtmlEditor
3807
3825
  HtmlEditorComponent,
3808
3826
  FormsHtmlEditorComponent,
3809
3827
  //Directives
@@ -3831,5 +3849,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3831
3849
  * Generated bundle index. Do not edit.
3832
3850
  */
3833
3851
 
3834
- export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ContactUsDialog, ContactUsForm, 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, NodataComponent, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
3852
+ export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ContactUsDialog, ContactUsForm, 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, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
3835
3853
  //# sourceMappingURL=osovitny-anatoly.mjs.map