@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.
- package/esm2020/lib/core/services/appcontext.service.mjs +11 -5
- package/esm2020/lib/ui/components/spinners/loading/loading.component.mjs +49 -0
- package/esm2020/lib/ui/components/spinners/pagespinner/pagespinner.component.mjs +61 -0
- package/esm2020/lib/ui/components/spinners/pagespinner/spinkits.mjs +12 -0
- package/esm2020/lib/ui/ui.module.mjs +25 -11
- package/esm2020/public-api.mjs +5 -4
- package/fesm2015/osovitny-anatoly.mjs +71 -53
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +71 -53
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/{loading → spinners/loading}/loading.component.d.ts +1 -1
- package/lib/ui/components/{spinner/spinner.component.d.ts → spinners/pagespinner/pagespinner.component.d.ts} +3 -3
- package/lib/ui/ui.module.d.ts +4 -4
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/esm2020/lib/ui/components/loading/loading.component.mjs +0 -49
- package/esm2020/lib/ui/components/spinner/spinkits.mjs +0 -12
- package/esm2020/lib/ui/components/spinner/spinner.component.mjs +0 -61
- /package/lib/ui/components/{spinner → spinners/pagespinner}/spinkits.d.ts +0 -0
|
@@ -1384,15 +1384,22 @@ class AppContextService extends BaseApiService {
|
|
|
1384
1384
|
if (!context) {
|
|
1385
1385
|
return;
|
|
1386
1386
|
}
|
|
1387
|
-
let
|
|
1388
|
-
|
|
1387
|
+
let shouldBeUpdated = false;
|
|
1388
|
+
let lr = context.lastRequested;
|
|
1389
|
+
if (lr) {
|
|
1389
1390
|
let now = new Date();
|
|
1390
1391
|
let lastRequested = new Date(context.lastRequested);
|
|
1391
1392
|
let in2Mins = new Date(lastRequested.getFullYear(), lastRequested.getMonth(), lastRequested.getDate(), lastRequested.getHours(), lastRequested.getMinutes() + 2, 0, 0);
|
|
1392
1393
|
if (in2Mins.getTime() < now.getTime()) {
|
|
1393
|
-
|
|
1394
|
+
shouldBeUpdated = true;
|
|
1394
1395
|
}
|
|
1395
1396
|
}
|
|
1397
|
+
else {
|
|
1398
|
+
shouldBeUpdated = true;
|
|
1399
|
+
}
|
|
1400
|
+
if (shouldBeUpdated) {
|
|
1401
|
+
this.updateCurrent();
|
|
1402
|
+
}
|
|
1396
1403
|
}
|
|
1397
1404
|
dataReceived(data) {
|
|
1398
1405
|
this.current = data;
|
|
@@ -1441,7 +1448,6 @@ class AppContextService extends BaseApiService {
|
|
|
1441
1448
|
return ContextInitState.isUserAdmin;
|
|
1442
1449
|
}
|
|
1443
1450
|
//Properties
|
|
1444
|
-
//current
|
|
1445
1451
|
get current() {
|
|
1446
1452
|
this.updateCurrentIfExpired();
|
|
1447
1453
|
return this.getCurrentFromSession();
|
|
@@ -2948,6 +2954,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
2948
2954
|
type: Input
|
|
2949
2955
|
}] } });
|
|
2950
2956
|
|
|
2957
|
+
/*
|
|
2958
|
+
<file>
|
|
2959
|
+
Project:
|
|
2960
|
+
@osovitny/anatoly
|
|
2961
|
+
|
|
2962
|
+
Authors:
|
|
2963
|
+
Vadim Osovitny
|
|
2964
|
+
Anatoly Osovitny
|
|
2965
|
+
|
|
2966
|
+
Created:
|
|
2967
|
+
29 Jul 2022
|
|
2968
|
+
|
|
2969
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
2970
|
+
</file>
|
|
2971
|
+
*/
|
|
2972
|
+
class NodataComponent {
|
|
2973
|
+
constructor() {
|
|
2974
|
+
this.icon = 'fas fa-cubes fa-w-16 fa-9x';
|
|
2975
|
+
this.heading = 'No data found';
|
|
2976
|
+
this.headingClass = 'text-uppercase text-primary';
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2980
|
+
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" });
|
|
2981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
|
|
2982
|
+
type: Component,
|
|
2983
|
+
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" }]
|
|
2984
|
+
}], propDecorators: { icon: [{
|
|
2985
|
+
type: Input
|
|
2986
|
+
}], heading: [{
|
|
2987
|
+
type: Input
|
|
2988
|
+
}], headingClass: [{
|
|
2989
|
+
type: Input
|
|
2990
|
+
}] } });
|
|
2991
|
+
|
|
2951
2992
|
/*
|
|
2952
2993
|
<file>
|
|
2953
2994
|
Project:
|
|
@@ -3017,7 +3058,7 @@ const Spinkit = {
|
|
|
3017
3058
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
3018
3059
|
</file>
|
|
3019
3060
|
*/
|
|
3020
|
-
class
|
|
3061
|
+
class PageSpinnerComponent {
|
|
3021
3062
|
constructor(router, document) {
|
|
3022
3063
|
this.router = router;
|
|
3023
3064
|
this.document = document;
|
|
@@ -3040,11 +3081,11 @@ class SpinnerComponent {
|
|
|
3040
3081
|
this.isSpinnerVisible = false;
|
|
3041
3082
|
}
|
|
3042
3083
|
}
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type:
|
|
3084
|
+
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 });
|
|
3085
|
+
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 });
|
|
3086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: PageSpinnerComponent, decorators: [{
|
|
3046
3087
|
type: Component,
|
|
3047
|
-
args: [{ selector: 'anatoly-
|
|
3088
|
+
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" }]
|
|
3048
3089
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: Document, decorators: [{
|
|
3049
3090
|
type: Inject,
|
|
3050
3091
|
args: [DOCUMENT]
|
|
@@ -3054,41 +3095,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3054
3095
|
type: Input
|
|
3055
3096
|
}] } });
|
|
3056
3097
|
|
|
3057
|
-
/*
|
|
3058
|
-
<file>
|
|
3059
|
-
Project:
|
|
3060
|
-
@osovitny/anatoly
|
|
3061
|
-
|
|
3062
|
-
Authors:
|
|
3063
|
-
Vadim Osovitny
|
|
3064
|
-
Anatoly Osovitny
|
|
3065
|
-
|
|
3066
|
-
Created:
|
|
3067
|
-
29 Jul 2022
|
|
3068
|
-
|
|
3069
|
-
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
3070
|
-
</file>
|
|
3071
|
-
*/
|
|
3072
|
-
class NodataComponent {
|
|
3073
|
-
constructor() {
|
|
3074
|
-
this.icon = 'fas fa-cubes fa-w-16 fa-9x';
|
|
3075
|
-
this.heading = 'No data found';
|
|
3076
|
-
this.headingClass = 'text-uppercase text-primary';
|
|
3077
|
-
}
|
|
3078
|
-
}
|
|
3079
|
-
NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3080
|
-
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" });
|
|
3081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
|
|
3082
|
-
type: Component,
|
|
3083
|
-
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" }]
|
|
3084
|
-
}], propDecorators: { icon: [{
|
|
3085
|
-
type: Input
|
|
3086
|
-
}], heading: [{
|
|
3087
|
-
type: Input
|
|
3088
|
-
}], headingClass: [{
|
|
3089
|
-
type: Input
|
|
3090
|
-
}] } });
|
|
3091
|
-
|
|
3092
3098
|
/*
|
|
3093
3099
|
<file>
|
|
3094
3100
|
Project:
|
|
@@ -3692,13 +3698,16 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
3692
3698
|
SignInButtonComponent,
|
|
3693
3699
|
SignUpButtonComponent,
|
|
3694
3700
|
SignOutButtonComponent,
|
|
3695
|
-
SpinnerComponent,
|
|
3696
|
-
LoadingComponent,
|
|
3697
3701
|
NodataComponent,
|
|
3702
|
+
//Spinners
|
|
3703
|
+
PageSpinnerComponent,
|
|
3704
|
+
LoadingComponent,
|
|
3705
|
+
//Cards
|
|
3698
3706
|
CardComponent,
|
|
3699
3707
|
CardHeaderComponent,
|
|
3700
3708
|
CardBodyComponent,
|
|
3701
3709
|
CardFooterComponent,
|
|
3710
|
+
//HtmlEditor
|
|
3702
3711
|
HtmlEditorComponent,
|
|
3703
3712
|
FormsHtmlEditorComponent,
|
|
3704
3713
|
//Directives
|
|
@@ -3724,13 +3733,16 @@ AnatolyUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
3724
3733
|
SignInButtonComponent,
|
|
3725
3734
|
SignUpButtonComponent,
|
|
3726
3735
|
SignOutButtonComponent,
|
|
3727
|
-
SpinnerComponent,
|
|
3728
|
-
LoadingComponent,
|
|
3729
3736
|
NodataComponent,
|
|
3737
|
+
//Spinners
|
|
3738
|
+
PageSpinnerComponent,
|
|
3739
|
+
LoadingComponent,
|
|
3740
|
+
//Cards
|
|
3730
3741
|
CardComponent,
|
|
3731
3742
|
CardHeaderComponent,
|
|
3732
3743
|
CardBodyComponent,
|
|
3733
3744
|
CardFooterComponent,
|
|
3745
|
+
//HtmlEditor
|
|
3734
3746
|
HtmlEditorComponent,
|
|
3735
3747
|
FormsHtmlEditorComponent,
|
|
3736
3748
|
//Directives
|
|
@@ -3774,13 +3786,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3774
3786
|
SignInButtonComponent,
|
|
3775
3787
|
SignUpButtonComponent,
|
|
3776
3788
|
SignOutButtonComponent,
|
|
3777
|
-
SpinnerComponent,
|
|
3778
|
-
LoadingComponent,
|
|
3779
3789
|
NodataComponent,
|
|
3790
|
+
//Spinners
|
|
3791
|
+
PageSpinnerComponent,
|
|
3792
|
+
LoadingComponent,
|
|
3793
|
+
//Cards
|
|
3780
3794
|
CardComponent,
|
|
3781
3795
|
CardHeaderComponent,
|
|
3782
3796
|
CardBodyComponent,
|
|
3783
3797
|
CardFooterComponent,
|
|
3798
|
+
//HtmlEditor
|
|
3784
3799
|
HtmlEditorComponent,
|
|
3785
3800
|
FormsHtmlEditorComponent,
|
|
3786
3801
|
//Directives
|
|
@@ -3804,13 +3819,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3804
3819
|
SignInButtonComponent,
|
|
3805
3820
|
SignUpButtonComponent,
|
|
3806
3821
|
SignOutButtonComponent,
|
|
3807
|
-
SpinnerComponent,
|
|
3808
|
-
LoadingComponent,
|
|
3809
3822
|
NodataComponent,
|
|
3823
|
+
//Spinners
|
|
3824
|
+
PageSpinnerComponent,
|
|
3825
|
+
LoadingComponent,
|
|
3826
|
+
//Cards
|
|
3810
3827
|
CardComponent,
|
|
3811
3828
|
CardHeaderComponent,
|
|
3812
3829
|
CardBodyComponent,
|
|
3813
3830
|
CardFooterComponent,
|
|
3831
|
+
//HtmlEditor
|
|
3814
3832
|
HtmlEditorComponent,
|
|
3815
3833
|
FormsHtmlEditorComponent,
|
|
3816
3834
|
//Directives
|
|
@@ -3838,5 +3856,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3838
3856
|
* Generated bundle index. Do not edit.
|
|
3839
3857
|
*/
|
|
3840
3858
|
|
|
3841
|
-
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,
|
|
3859
|
+
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 };
|
|
3842
3860
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|