@anglr/datetime 2.0.0 → 2.0.1-beta.20220222061608

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.
@@ -1,47 +0,0 @@
1
- import { DateApi } from '@anglr/datetime';
2
- import { DateApiObject } from '@anglr/datetime';
3
- import { DateTimeRelativeParser } from '@anglr/datetime';
4
- import { DateValue } from '@anglr/datetime';
5
- import { FactoryProvider } from '@angular/core';
6
- import * as i0 from '@angular/core';
7
- import { default as moment_2 } from 'moment';
8
-
9
- /**
10
- * Injection token used for obtaining moment FormatProvider implementation
11
- */
12
- export declare const MOMENT_FORMAT_PROVIDER: FactoryProvider;
13
-
14
- /**
15
- * Date api using MomentJS, used for obtaining DateApi wrapper object
16
- */
17
- export declare class MomentDateApi implements DateApi<moment_2.Moment> {
18
- protected _relativeParser: DateTimeRelativeParser<moment_2.Moment>;
19
- constructor(_relativeParser: DateTimeRelativeParser<moment_2.Moment>);
20
- /**
21
- * Gets wrapping object used for manipulation
22
- * @param value - Value to be converted (parsed) and used for manipulation
23
- * @param format - Format string used for parsing string value
24
- */
25
- getValue(value: DateValue | moment_2.Moment, format?: string): DateApiObject<moment_2.Moment>;
26
- /**
27
- * Gets wrapping object used for manipulation instantiated to current date and time
28
- */
29
- now(): DateApiObject<moment_2.Moment>;
30
- /**
31
- * Gets format string using pseudo format
32
- * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
33
- */
34
- getFormat(pseudoFormat: string): string;
35
- /**
36
- * Gets information
37
- */
38
- weekStartsOnMonday(): boolean;
39
- /**
40
- * Gets array of weekday names in short format, order of days is dependent on locale
41
- */
42
- weekdaysShort(): string[];
43
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateApi, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<MomentDateApi>;
45
- }
46
-
47
- export { }
@@ -1,47 +0,0 @@
1
- import { DateApi } from '@anglr/datetime';
2
- import { DateApiObject } from '@anglr/datetime';
3
- import { DateTimeRelativeParser } from '@anglr/datetime';
4
- import { DateValue } from '@anglr/datetime';
5
- import { FactoryProvider } from '@angular/core';
6
- import * as i0 from '@angular/core';
7
- import { default as moment_2 } from 'moment';
8
-
9
- /**
10
- * Injection token used for obtaining moment FormatProvider implementation
11
- */
12
- export declare const MOMENT_FORMAT_PROVIDER: FactoryProvider;
13
-
14
- /**
15
- * Date api using MomentJS, used for obtaining DateApi wrapper object
16
- */
17
- export declare class MomentDateApi implements DateApi<moment_2.Moment> {
18
- protected _relativeParser: DateTimeRelativeParser<moment_2.Moment>;
19
- constructor(_relativeParser: DateTimeRelativeParser<moment_2.Moment>);
20
- /**
21
- * Gets wrapping object used for manipulation
22
- * @param value - Value to be converted (parsed) and used for manipulation
23
- * @param format - Format string used for parsing string value
24
- */
25
- getValue(value: DateValue | moment_2.Moment, format?: string): DateApiObject<moment_2.Moment>;
26
- /**
27
- * Gets wrapping object used for manipulation instantiated to current date and time
28
- */
29
- now(): DateApiObject<moment_2.Moment>;
30
- /**
31
- * Gets format string using pseudo format
32
- * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
33
- */
34
- getFormat(pseudoFormat: string): string;
35
- /**
36
- * Gets information
37
- */
38
- weekStartsOnMonday(): boolean;
39
- /**
40
- * Gets array of weekday names in short format, order of days is dependent on locale
41
- */
42
- weekdaysShort(): string[];
43
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateApi, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<MomentDateApi>;
45
- }
46
-
47
- export { }
@@ -1,36 +0,0 @@
1
- ## API Report File for "@anglr/datetime-moment"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { DateApi } from '@anglr/datetime';
8
- import { DateApiObject } from '@anglr/datetime';
9
- import { DateTimeRelativeParser } from '@anglr/datetime';
10
- import { DateValue } from '@anglr/datetime';
11
- import { FactoryProvider } from '@angular/core';
12
- import * as i0 from '@angular/core';
13
- import { default as moment_2 } from 'moment';
14
-
15
- // @public
16
- export const MOMENT_FORMAT_PROVIDER: FactoryProvider;
17
-
18
- // @public
19
- export class MomentDateApi implements DateApi<moment_2.Moment> {
20
- constructor(_relativeParser: DateTimeRelativeParser<moment_2.Moment>);
21
- getFormat(pseudoFormat: string): string;
22
- getValue(value: DateValue | moment_2.Moment, format?: string): DateApiObject<moment_2.Moment>;
23
- now(): DateApiObject<moment_2.Moment>;
24
- // (undocumented)
25
- protected _relativeParser: DateTimeRelativeParser<moment_2.Moment>;
26
- weekdaysShort(): string[];
27
- weekStartsOnMonday(): boolean;
28
- // (undocumented)
29
- static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateApi, never>;
30
- // (undocumented)
31
- static ɵprov: i0.ɵɵInjectableDeclaration<MomentDateApi>;
32
- }
33
-
34
- // (No @packageDocumentation comment for this package)
35
-
36
- ```