@spicainternational/ngx-sds-components 5.13.0 → 5.14.0
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/public-api.mjs +5 -1
- package/esm2020/src/lib/color-picker/color-picker.component.mjs +11 -27
- package/esm2020/src/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2020/src/lib/date-picker/date-picker.model.mjs +1 -1
- package/esm2020/src/lib/ellipsis/directives/ellipsis.directive.mjs +51 -0
- package/esm2020/src/lib/ellipsis/ellipsis.module.mjs +26 -0
- package/esm2020/src/lib/ellipsis/public-api.mjs +3 -0
- package/esm2020/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +5 -0
- package/esm2020/src/lib/intersection/directives/index.mjs +2 -0
- package/esm2020/src/lib/intersection/directives/intersection.directive.mjs +51 -0
- package/esm2020/src/lib/intersection/intersection.module.mjs +22 -0
- package/esm2020/src/lib/intersection/public-api.mjs +4 -0
- package/esm2020/src/lib/intersection/services/index.mjs +2 -0
- package/esm2020/src/lib/intersection/services/intersection.service.mjs +54 -0
- package/esm2020/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.mjs +5 -0
- package/esm2020/src/lib/keyboard-shortcut/directives/index.mjs +2 -0
- package/esm2020/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.mjs +56 -0
- package/esm2020/src/lib/keyboard-shortcut/keyboard-shortcut.module.mjs +26 -0
- package/esm2020/src/lib/keyboard-shortcut/public-api.mjs +3 -0
- package/esm2020/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +5 -0
- package/esm2020/src/lib/timer/public-api.mjs +4 -0
- package/esm2020/src/lib/timer/services/index.mjs +2 -0
- package/esm2020/src/lib/timer/services/timer.service.mjs +99 -0
- package/esm2020/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.mjs +5 -0
- package/esm2020/src/lib/timer/timer.module.mjs +36 -0
- package/esm2020/src/lib/timer/utils/index.mjs +2 -0
- package/esm2020/src/lib/timer/utils/timer.utils.mjs +97 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +10 -26
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +2 -2
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +82 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs +129 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +87 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs +237 -0
- package/fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -0
- package/fesm2015/spicainternational-ngx-sds-components.mjs +4 -0
- package/fesm2015/spicainternational-ngx-sds-components.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs +10 -26
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-color-picker.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs +2 -2
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-date-picker.mjs.map +1 -1
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs +81 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs.map +1 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs +126 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs.map +1 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs +85 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs.map +1 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs +235 -0
- package/fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs.map +1 -0
- package/fesm2020/spicainternational-ngx-sds-components.mjs +4 -0
- package/fesm2020/spicainternational-ngx-sds-components.mjs.map +1 -1
- package/package.json +33 -1
- package/public-api.d.ts +4 -0
- package/src/lib/color-picker/color-picker.component.d.ts +6 -2
- package/src/lib/date-picker/date-picker.model.d.ts +1 -0
- package/src/lib/ellipsis/directives/ellipsis.directive.d.ts +13 -0
- package/src/lib/ellipsis/ellipsis.module.d.ts +8 -0
- package/src/lib/ellipsis/package.json +10 -0
- package/src/lib/ellipsis/public-api.d.ts +2 -0
- package/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts +5 -0
- package/src/lib/intersection/directives/index.d.ts +1 -0
- package/src/lib/intersection/directives/intersection.directive.d.ts +24 -0
- package/src/lib/intersection/intersection.module.d.ts +8 -0
- package/src/lib/intersection/package.json +10 -0
- package/src/lib/intersection/public-api.d.ts +3 -0
- package/src/lib/intersection/services/index.d.ts +1 -0
- package/src/lib/intersection/services/intersection.service.d.ts +19 -0
- package/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.d.ts +5 -0
- package/src/lib/keyboard-shortcut/directives/index.d.ts +1 -0
- package/src/lib/keyboard-shortcut/directives/keyboard-shortcut.directive.d.ts +22 -0
- package/src/lib/keyboard-shortcut/keyboard-shortcut.module.d.ts +8 -0
- package/src/lib/keyboard-shortcut/package.json +10 -0
- package/src/lib/keyboard-shortcut/public-api.d.ts +2 -0
- package/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.d.ts +5 -0
- package/src/lib/timer/package.json +10 -0
- package/src/lib/timer/public-api.d.ts +3 -0
- package/src/lib/timer/services/index.d.ts +1 -0
- package/src/lib/timer/services/timer.service.d.ts +78 -0
- package/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.d.ts +5 -0
- package/src/lib/timer/timer.module.d.ts +10 -0
- package/src/lib/timer/utils/index.d.ts +1 -0
- package/src/lib/timer/utils/timer.utils.d.ts +61 -0
package/public-api.d.ts
CHANGED
|
@@ -3,12 +3,15 @@ export * from '@spicainternational/ngx-sds-components/src/lib/avatar';
|
|
|
3
3
|
export * from '@spicainternational/ngx-sds-components/src/lib/badge';
|
|
4
4
|
export * from '@spicainternational/ngx-sds-components/src/lib/callout';
|
|
5
5
|
export * from '@spicainternational/ngx-sds-components/src/lib/color-picker';
|
|
6
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/ellipsis';
|
|
6
7
|
export * from '@spicainternational/ngx-sds-components/src/lib/expansion-panel';
|
|
7
8
|
export * from '@spicainternational/ngx-sds-components/src/lib/date-picker';
|
|
8
9
|
export * from '@spicainternational/ngx-sds-components/src/lib/date-pipes';
|
|
9
10
|
export * from '@spicainternational/ngx-sds-components/src/lib/duration-pipe';
|
|
10
11
|
export * from '@spicainternational/ngx-sds-components/src/lib/duration-box';
|
|
11
12
|
export * from '@spicainternational/ngx-sds-components/src/lib/highlight-text';
|
|
13
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/intersection';
|
|
14
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/keyboard-shortcut';
|
|
12
15
|
export * from '@spicainternational/ngx-sds-components/src/lib/layout';
|
|
13
16
|
export * from '@spicainternational/ngx-sds-components/src/lib/message';
|
|
14
17
|
export * from '@spicainternational/ngx-sds-components/src/lib/modal';
|
|
@@ -19,4 +22,5 @@ export * from '@spicainternational/ngx-sds-components/src/lib/quick-info';
|
|
|
19
22
|
export * from '@spicainternational/ngx-sds-components/src/lib/segmented-control';
|
|
20
23
|
export * from '@spicainternational/ngx-sds-components/src/lib/side-bar';
|
|
21
24
|
export * from '@spicainternational/ngx-sds-components/src/lib/static-value';
|
|
25
|
+
export * from '@spicainternational/ngx-sds-components/src/lib/timer';
|
|
22
26
|
export * from '@spicainternational/ngx-sds-components/src/lib/tooltip';
|
|
@@ -6,12 +6,16 @@ export declare class SdsColorPickerComponent implements OnInit, OnChanges {
|
|
|
6
6
|
selectedColor?: string;
|
|
7
7
|
defaultColor?: string;
|
|
8
8
|
selectedColorChange: EventEmitter<string>;
|
|
9
|
-
style: 'inline' | '
|
|
9
|
+
style: 'inline' | 'dropdown';
|
|
10
|
+
showCaret: boolean;
|
|
11
|
+
shape: 'circle' | 'square';
|
|
10
12
|
dropdownGridTemplateColumns?: string;
|
|
11
13
|
showDropdown: boolean;
|
|
12
14
|
elementUUID: string;
|
|
13
15
|
checkIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
14
16
|
private gridSize;
|
|
17
|
+
circleRadius: string;
|
|
18
|
+
squareRadius: string;
|
|
15
19
|
constructor();
|
|
16
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17
21
|
ngOnInit(): void;
|
|
@@ -19,5 +23,5 @@ export declare class SdsColorPickerComponent implements OnInit, OnChanges {
|
|
|
19
23
|
onKeyDown($event: KeyboardEvent): void;
|
|
20
24
|
toggleDropdown(): void;
|
|
21
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SdsColorPickerComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SdsColorPickerComponent, "sds-color-picker", never, { "colors": "colors"; "disabled": "disabled"; "selectedColor": "selectedColor"; "defaultColor": "defaultColor"; "style": "style"; }, { "selectedColorChange": "selectedColorChange"; }, never, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SdsColorPickerComponent, "sds-color-picker", never, { "colors": "colors"; "disabled": "disabled"; "selectedColor": "selectedColor"; "defaultColor": "defaultColor"; "style": "style"; "showCaret": "showCaret"; "shape": "shape"; }, { "selectedColorChange": "selectedColorChange"; }, never, never>;
|
|
23
27
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SdsEllipsisDirective implements AfterViewInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private renderer;
|
|
6
|
+
tooltipText?: string;
|
|
7
|
+
private element?;
|
|
8
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
enter(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsEllipsisDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SdsEllipsisDirective, "[sdsEllipsis]", never, { "tooltipText": "tooltipText"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./directives/ellipsis.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SdsEllipsisModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsEllipsisModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsEllipsisModule, [typeof i1.SdsEllipsisDirective], [typeof i2.CommonModule], [typeof i1.SdsEllipsisDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdsEllipsisModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
3
|
+
"es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
4
|
+
"esm2020": "../../../esm2020/src/lib/ellipsis/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
5
|
+
"fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
6
|
+
"fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-ellipsis.mjs",
|
|
7
|
+
"typings": "spicainternational-ngx-sds-components-src-lib-ellipsis.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@spicainternational/ngx-sds-components/src/lib/ellipsis"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './intersection.directive';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IntersectionService } from '../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IntersectionDirective implements OnInit, OnDestroy, AfterViewInit {
|
|
5
|
+
private readonly _element;
|
|
6
|
+
private readonly _intersectionService;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
get intersectionOptions(): IntersectionObserverInit | undefined;
|
|
11
|
+
set intersectionOptions(value: IntersectionObserverInit | undefined);
|
|
12
|
+
/**
|
|
13
|
+
* Emits current visibility status
|
|
14
|
+
*/
|
|
15
|
+
elementInSight: EventEmitter<boolean>;
|
|
16
|
+
private _intersectionOptions;
|
|
17
|
+
private _subscriptions;
|
|
18
|
+
constructor(_element: ElementRef, _intersectionService: IntersectionService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IntersectionDirective, "[sdsIntersection]", never, { "intersectionOptions": "intersectionOptions"; }, { "elementInSight": "elementInSight"; }, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./directives/intersection.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SdsIntersectionModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsIntersectionModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsIntersectionModule, [typeof i1.IntersectionDirective], [typeof i2.CommonModule], [typeof i1.IntersectionDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdsIntersectionModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
3
|
+
"es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
4
|
+
"esm2020": "../../../esm2020/src/lib/intersection/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
5
|
+
"fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
6
|
+
"fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-intersection.mjs",
|
|
7
|
+
"typings": "spicainternational-ngx-sds-components-src-lib-intersection.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@spicainternational/ngx-sds-components/src/lib/intersection"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './intersection.service';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IntersectionService {
|
|
5
|
+
private _documentVisible$;
|
|
6
|
+
constructor(document: any);
|
|
7
|
+
/**
|
|
8
|
+
* @description
|
|
9
|
+
* Method responsible for determining if element is visible
|
|
10
|
+
* on screen or not. Please
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API for options meaning
|
|
12
|
+
* @param { ElementRef } element
|
|
13
|
+
* @param { IntersectionObserverInit } options
|
|
14
|
+
* @returns { Observable<boolean> }
|
|
15
|
+
*/
|
|
16
|
+
elementInSight$(element: ElementRef, options?: IntersectionObserverInit): Observable<boolean>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './keyboard-shortcut.directive';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KeyboardShortcutDirective implements OnInit, OnDestroy {
|
|
4
|
+
private readonly _document;
|
|
5
|
+
/**
|
|
6
|
+
* OUTPUTS
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Emitted when user presses Escape
|
|
10
|
+
*/
|
|
11
|
+
closeShortcut: EventEmitter<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Emitted when user presses ctrl+Enter or cmd+Enter
|
|
14
|
+
*/
|
|
15
|
+
saveRecordShortcut: EventEmitter<void>;
|
|
16
|
+
private _subscriptions;
|
|
17
|
+
constructor(_document: any);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardShortcutDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardShortcutDirective, "[sdsKeyboardShortcut]", never, {}, { "closeShortcut": "closeShortcut"; "saveRecordShortcut": "saveRecordShortcut"; }, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./directives/keyboard-shortcut.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class SdsKeyboardShortcutModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsKeyboardShortcutModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsKeyboardShortcutModule, [typeof i1.KeyboardShortcutDirective], [typeof i2.CommonModule], [typeof i1.KeyboardShortcutDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdsKeyboardShortcutModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
3
|
+
"es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
4
|
+
"esm2020": "../../../esm2020/src/lib/keyboard-shortcut/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
5
|
+
"fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
6
|
+
"fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.mjs",
|
|
7
|
+
"typings": "spicainternational-ngx-sds-components-src-lib-keyboard-shortcut.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@spicainternational/ngx-sds-components/src/lib/keyboard-shortcut"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
3
|
+
"es2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
4
|
+
"esm2020": "../../../esm2020/src/lib/timer/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
5
|
+
"fesm2020": "../../../fesm2020/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
6
|
+
"fesm2015": "../../../fesm2015/spicainternational-ngx-sds-components-src-lib-timer.mjs",
|
|
7
|
+
"typings": "spicainternational-ngx-sds-components-src-lib-timer.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@spicainternational/ngx-sds-components/src/lib/timer"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './timer.service';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TimerService {
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Timer emitted every 15 minutes (e.g. 08:00, 08:15, 08:30, etc.)
|
|
7
|
+
*/
|
|
8
|
+
fifteenMinutesInterval$: Observable<void>;
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Timer emitted every 5 minutes (e.g. 08:00, 08:05, 08:10, etc.)
|
|
12
|
+
*/
|
|
13
|
+
fiveMinutesInterval$: Observable<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @description
|
|
16
|
+
* Timer that invokes each full hour
|
|
17
|
+
*/
|
|
18
|
+
fullHourInterval$: Observable<void>;
|
|
19
|
+
/**
|
|
20
|
+
* @description
|
|
21
|
+
* Timer emitted every 30 minutes at full and half hour (e.g. at 10:00, 10:30, 11:00, etc.)
|
|
22
|
+
*/
|
|
23
|
+
halfHourInterval$: Observable<void>;
|
|
24
|
+
/**
|
|
25
|
+
* @description
|
|
26
|
+
* Timer emitted every minute (e.g. 08:00, 08:01, 08:02, etc.)
|
|
27
|
+
*/
|
|
28
|
+
minuteInterval$: Observable<void>;
|
|
29
|
+
/**
|
|
30
|
+
* @description
|
|
31
|
+
* Timer emitted every second
|
|
32
|
+
*/
|
|
33
|
+
secondsInterval$: Observable<void>;
|
|
34
|
+
/**
|
|
35
|
+
* @description
|
|
36
|
+
* Timer emitted every 10 minutes (e.g. 08:00, 08:10, 08:20, etc.)
|
|
37
|
+
*/
|
|
38
|
+
tenMinutesInterval$: Observable<void>;
|
|
39
|
+
/**
|
|
40
|
+
* @description
|
|
41
|
+
* Source for fifteen minute interval
|
|
42
|
+
*/
|
|
43
|
+
private _fifteenMinutesInterval;
|
|
44
|
+
/**
|
|
45
|
+
* @description
|
|
46
|
+
* Source for five minute interval
|
|
47
|
+
*/
|
|
48
|
+
private _fiveMinutesInterval;
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
* Source for half hour interval
|
|
52
|
+
*/
|
|
53
|
+
private _fullHourInterval;
|
|
54
|
+
/**
|
|
55
|
+
* @description
|
|
56
|
+
* Source for half hour interval
|
|
57
|
+
*/
|
|
58
|
+
private _halfHourInterval;
|
|
59
|
+
/**
|
|
60
|
+
* @description
|
|
61
|
+
* Source for minute interval
|
|
62
|
+
*/
|
|
63
|
+
private _minuteInterval;
|
|
64
|
+
/**
|
|
65
|
+
* @description
|
|
66
|
+
* Source for secong interval
|
|
67
|
+
*/
|
|
68
|
+
private _secondsInterval;
|
|
69
|
+
/**
|
|
70
|
+
* @description
|
|
71
|
+
* Source for ten minutes interval
|
|
72
|
+
*/
|
|
73
|
+
private _tenMinutesInterval;
|
|
74
|
+
private _subscriptions;
|
|
75
|
+
constructor();
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimerService, never>;
|
|
77
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimerService>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
export declare class SdsTimerModule {
|
|
5
|
+
static forRoot(): ModuleWithProviders<SdsTimerModule>;
|
|
6
|
+
constructor(parentModule: SdsTimerModule);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdsTimerModule, [{ optional: true; skipSelf: true; }]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdsTimerModule, never, [typeof i1.CommonModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdsTimerModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './timer.utils';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public @function timeToNextFifteenMinutesInterval
|
|
3
|
+
* @description
|
|
4
|
+
* Function responsible for calc of time until next fifteen minutes interval. By fifteen minutes interval
|
|
5
|
+
* we mean (e.g. 08:15, 08:30, 08:45,...)
|
|
6
|
+
* @param { number } currentTimestampMs
|
|
7
|
+
* @returns { number }
|
|
8
|
+
*/
|
|
9
|
+
export declare const timeToNextFifteenMinutesInterval: (currentTimestamp: number) => number;
|
|
10
|
+
/**
|
|
11
|
+
* @public @function timeToNextFiveMinutesInterval
|
|
12
|
+
* @description
|
|
13
|
+
* Function responsible for calc of time until next five minutes interval. By five minutes interval
|
|
14
|
+
* we mean (e.g. 08:05, 08:10, 08:15,...)
|
|
15
|
+
* @param { number } currentTimestampMs
|
|
16
|
+
* @returns { number }
|
|
17
|
+
*/
|
|
18
|
+
export declare const timeToNextFiveMinutesInterval: (currentTimestamp: number) => number;
|
|
19
|
+
/**
|
|
20
|
+
* @public @function timeToNextHour
|
|
21
|
+
* @description
|
|
22
|
+
* Function responsible for calc of time until next hour
|
|
23
|
+
* @param { number } currentTimestampMs
|
|
24
|
+
* @returns { number }
|
|
25
|
+
*/
|
|
26
|
+
export declare const timeToNextHour: (currentTimestamp: number) => number;
|
|
27
|
+
/**
|
|
28
|
+
* @public @function timeToNextHalfHour
|
|
29
|
+
* @description
|
|
30
|
+
* Function responsible for calc of time until half hour
|
|
31
|
+
* @param { number } currentTimestampMs
|
|
32
|
+
* @returns { number }
|
|
33
|
+
*/
|
|
34
|
+
export declare const timeToNextHalfHour: (currentTimestamp: number) => number;
|
|
35
|
+
/**
|
|
36
|
+
* @public @function timeToNextMinuteInterval
|
|
37
|
+
* @description
|
|
38
|
+
* Function responsible for calc of time until next minute interval. By minute interval
|
|
39
|
+
* we mean (e.g. 08:00, 08:01, 08:02,...)
|
|
40
|
+
* @param { number } currentTimestampMs
|
|
41
|
+
* @returns { number }
|
|
42
|
+
*/
|
|
43
|
+
export declare const timeToNextMinuteInterval: (currentTimestamp: number) => number;
|
|
44
|
+
/**
|
|
45
|
+
* @public @function timeToNextSecondInterval
|
|
46
|
+
* @description
|
|
47
|
+
* Function responsible for calc of time until next second interval. By second interval
|
|
48
|
+
* we mean (e.g. 08:00:01, 08:00:01, 08:00:02,...)
|
|
49
|
+
* @param { number } currentTimestampMs
|
|
50
|
+
* @returns { number }
|
|
51
|
+
*/
|
|
52
|
+
export declare const timeToNextSecondInterval: (currentTimestamp: number) => number;
|
|
53
|
+
/**
|
|
54
|
+
* @public @function timeToNextTenMinutesInterval
|
|
55
|
+
* @description
|
|
56
|
+
* Function responsible for calc of time until next ten minutes interval. By ten minutes interval
|
|
57
|
+
* we mean (e.g. 08:10, 08:20, 08:30,...)
|
|
58
|
+
* @param { number } currentTimestampMs
|
|
59
|
+
* @returns { number }
|
|
60
|
+
*/
|
|
61
|
+
export declare const timeToNextTenMinutesInterval: (currentTimestamp: number) => number;
|