@osovitny/anatoly 2.14.9 → 2.14.10

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.
@@ -3024,6 +3024,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3024
3024
  args: [{ selector: 'anatoly-loading', template: "<div id=\"pnlLoading\" *ngIf=\"show\">\r\n <span class=\"k-icon k-i-loading\"></span>\r\n</div>\r\n" }]
3025
3025
  }], ctorParameters: function () { return [{ type: LoadingService }]; } });
3026
3026
 
3027
+ const Spinkit = {
3028
+ skChasingDots: 'sk-chasing-dots',
3029
+ skCubeGrid: 'sk-cube-grid',
3030
+ skDoubleBounce: 'sk-double-bounce',
3031
+ skRotatingPlane: 'sk-rotationg-plane',
3032
+ skSpinnerPulse: 'sk-spinner-pulse',
3033
+ skThreeBounce: 'sk-three-bounce',
3034
+ skWanderingCubes: 'sk-wandering-cubes',
3035
+ skWave: 'sk-wave',
3036
+ skLine: 'sk-line-material'
3037
+ };
3038
+
3027
3039
  /*
3028
3040
  <file>
3029
3041
  Project:
@@ -3036,32 +3048,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3036
3048
  Created:
3037
3049
  16 May 2020
3038
3050
 
3039
- Version:
3040
- 1.0
3041
-
3042
3051
  Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
3043
3052
  </file>
3044
3053
  */
3045
- const SpinnerSpinKit = {
3046
- spinnerLine: 'spinner-line-material',
3047
- // ToDo
3048
- ChasingDots: 'spinner-chasing-dots',
3049
- CubeGrid: 'spinner-cube-grid',
3050
- DoubleBounce: 'spinner-double-bounce',
3051
- RotatingPlane: 'spinner-rotationg-plane',
3052
- SpinnerPulse: 'spinner-spinner-pulse',
3053
- ThreeBounce: 'spinner-three-bounce',
3054
- WanderingCubes: 'spinner-wandering-cubes',
3055
- Wave: 'spinner-wave'
3056
- };
3057
3054
  class SpinnerComponent {
3058
3055
  constructor(router, document) {
3059
3056
  this.router = router;
3060
3057
  this.document = document;
3058
+ this.backgroundColor = '#2196f3';
3059
+ this.spinner = Spinkit.skLine;
3061
3060
  this.isSpinnerVisible = true;
3062
- this.spinnerSpinKit = SpinnerSpinKit;
3063
- this.backgroundColor = '#007CB0';
3064
- this.spinner = SpinnerSpinKit.spinnerLine;
3061
+ this.Spinkit = Spinkit;
3065
3062
  this.router.events.subscribe(event => {
3066
3063
  if (event instanceof NavigationStart) {
3067
3064
  this.isSpinnerVisible = true;
@@ -3078,10 +3075,10 @@ class SpinnerComponent {
3078
3075
  }
3079
3076
  }
3080
3077
  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 });
3081
- SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", 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 });
3078
+ 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 });
3082
3079
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: SpinnerComponent, decorators: [{
3083
3080
  type: Component,
3084
- 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" }]
3081
+ 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" }]
3085
3082
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: Document, decorators: [{
3086
3083
  type: Inject,
3087
3084
  args: [DOCUMENT]