@datarailsshared/datarailsshared 1.5.561 → 1.5.567

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.
@@ -0,0 +1,18 @@
1
+ import { ElementRef, Renderer2, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const DR_SHINE_ANIMATION_CLASS = "dr-shine-effect-animation";
4
+ export declare class DrShineAnimationDirective implements OnChanges, OnDestroy {
5
+ private el;
6
+ private renderer;
7
+ isShineEnabled: boolean;
8
+ drShineAnimationInterval: number;
9
+ private intervalId;
10
+ constructor(el: ElementRef, renderer: Renderer2);
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ ngOnDestroy(): void;
13
+ private startShine;
14
+ private stopShine;
15
+ private addShineEffect;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrShineAnimationDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DrShineAnimationDirective, "[drShineAnimation]", never, { "isShineEnabled": { "alias": "drShineAnimation"; "required": false; }; "drShineAnimationInterval": { "alias": "drShineAnimationInterval"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.5.561",
3
+ "version": "1.5.567",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -97,6 +97,7 @@ export * from './lib/dr-dialog/interfaces/dialog-data';
97
97
  export * from './lib/dr-avatar/types';
98
98
  export * from './lib/dr-inputs/dr-model-debounce-change.directive';
99
99
  export * from './lib/directives/click-outside/click-outside.directive';
100
+ export * from './lib/directives/dr-shine-animation/dr-shine-animation.directive';
100
101
  export * from './lib/models/datePicker';
101
102
  export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer, IDynamicTag, TDynamicTagValue, TDynamicTag, TagTypes, TagsConfigSubType, TConnectedTags, } from './lib/models/serverTags';
102
103
  export { ISpinnerOptions, SpinnerType, SpinnerSize } from './lib/models/spinnerOptions';
@@ -109,6 +110,7 @@ export * from './lib/models/feedback';
109
110
  export * from './lib/models/toastr';
110
111
  export * from './lib/models/datePickerRange';
111
112
  export * from './lib/dr-code-editor/models/code-editor-hint';
113
+ export * from './lib/dr-tags/dr-tag.types';
112
114
  export { ScenarioService } from './lib/dr-scenario/services/scenario.service';
113
115
  export { TagsConstructorService } from './lib/dr-tags-constructor/tags-constructor.service';
114
116
  export { DrAvatarService } from './lib/dr-avatar/services/dr-avatar.service';
package/styles.css CHANGED
@@ -720,3 +720,30 @@ li.CodeMirror-hint-active {
720
720
  color: white;
721
721
  }
722
722
 
723
+
724
+ .dr-shine-effect-animation {
725
+ position: relative;
726
+ overflow: hidden;
727
+ display: inline-block;
728
+ }
729
+
730
+ .dr-shine-effect-animation::after {
731
+ content: '';
732
+ position: absolute;
733
+ top: 0;
734
+ left: -150%;
735
+ width: 150%;
736
+ height: 100%;
737
+ background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
738
+ animation: shine 2s infinite;
739
+ }
740
+
741
+ @keyframes shine {
742
+ 0% {
743
+ left: -150%;
744
+ }
745
+ 100% {
746
+ left: 150%;
747
+ }
748
+ }
749
+