@datarailsshared/datarailsshared 1.5.565 → 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.
- package/assets/styles/_storybook-styles.scss +1 -0
- package/assets/styles/_styles.scss +2 -0
- package/datarailsshared-datarailsshared-1.5.567.tgz +0 -0
- package/esm2022/lib/directives/dr-shine-animation/dr-shine-animation.directive.mjs +63 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +62 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/directives/dr-shine-animation/dr-shine-animation.directive.d.ts +18 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles.css +27 -0
- package/datarailsshared-datarailsshared-1.5.565.tgz +0 -0
|
@@ -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
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';
|
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
|
+
|
|
Binary file
|