@anglr/datetime 2.0.0 → 3.0.0-beta.20220315103241
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/changelog.md +7 -0
- package/package.json +25 -19
- package/version.bak +1 -1
- package/date-fns/datetime-date-fns.d.ts +0 -64
- package/date-fns/datetime-date-fns.internal.d.ts +0 -64
- package/date-fns/temp/datetime-date-fns.api.md +0 -47
- package/datetime.d.ts +0 -1915
- package/datetime.internal.d.ts +0 -2090
- package/es2015/karma.conf.js +0 -57
- package/es2015/karma.conf.js.map +0 -1
- package/es2020/karma.conf.js +0 -57
- package/es2020/karma.conf.js.map +0 -1
- package/karma.conf.d.ts +0 -2
- package/karma.conf.d.ts.map +0 -1
- package/moment/datetime-moment.d.ts +0 -47
- package/moment/datetime-moment.internal.d.ts +0 -47
- package/moment/temp/datetime-moment.api.md +0 -36
- package/tsconfig.karma.json +0 -19
package/es2015/karma.conf.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin, path = require('path');
|
|
3
|
-
process.env.CHROME_BIN = require('puppeteer').executablePath();
|
|
4
|
-
// karma.conf.js
|
|
5
|
-
module.exports = function (config) {
|
|
6
|
-
config.set({
|
|
7
|
-
basePath: '.',
|
|
8
|
-
browsers: ['ChromeHeadlessNS'],
|
|
9
|
-
customLaunchers: {
|
|
10
|
-
ChromeHeadlessNS: {
|
|
11
|
-
base: 'ChromeHeadless',
|
|
12
|
-
flags: ['--no-sandbox']
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
frameworks: ['jasmine', 'webpack'],
|
|
16
|
-
plugins: [
|
|
17
|
-
'karma-chrome-launcher',
|
|
18
|
-
'karma-jasmine',
|
|
19
|
-
'karma-webpack'
|
|
20
|
-
],
|
|
21
|
-
preprocessors: {
|
|
22
|
-
'tests/**/*.ts': ['webpack']
|
|
23
|
-
},
|
|
24
|
-
files: [
|
|
25
|
-
{
|
|
26
|
-
pattern: 'tests/**/*.ts',
|
|
27
|
-
watched: false
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
reporters: ['progress'],
|
|
31
|
-
webpack: {
|
|
32
|
-
module: {
|
|
33
|
-
rules: [
|
|
34
|
-
{
|
|
35
|
-
test: /\.ts$/,
|
|
36
|
-
loader: '@ngtools/webpack'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
test: /\.html$/,
|
|
40
|
-
loader: 'raw-loader'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
test: /\.css$/,
|
|
44
|
-
loader: 'raw-loader'
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
plugins: [
|
|
49
|
-
new AngularCompilerPlugin({
|
|
50
|
-
tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),
|
|
51
|
-
sourceMap: true
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=karma.conf.js.map
|
package/es2015/karma.conf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"karma.conf.js","sourceRoot":"","sources":["../karma.conf.ts"],"names":[],"mappings":";AAAA,MAAM,qBAAqB,GAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,EAC1E,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAE/D,gBAAgB;AAChB,MAAM,CAAC,OAAO,GAAG,UAAS,MAAW;IAEjC,MAAM,CAAC,GAAG,CACV;QACI,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;QAC9B,eAAe,EACf;YACI,gBAAgB,EAChB;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,CAAC,cAAc,CAAC;aAC1B;SACJ;QACD,UAAU,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAClC,OAAO,EACP;YACI,uBAAuB;YACvB,eAAe;YACf,eAAe;SAClB;QACD,aAAa,EACb;YACI,eAAe,EAAE,CAAC,SAAS,CAAC;SAC/B;QACD,KAAK,EACL;YACI;gBACI,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,OAAO,EACP;YACI,MAAM,EACN;gBACI,KAAK,EACL;oBACI;wBACI,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE,kBAAkB;qBAC7B;oBACD;wBACI,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,YAAY;qBACvB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,YAAY;qBACvB;iBACJ;aACJ;YACD,OAAO,EACP;gBACI,IAAI,qBAAqB,CACzB;oBACI,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC;oBACzD,SAAS,EAAE,IAAI;iBAClB,CAAC;aACL;SACJ;KACJ,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin,\n path = require('path');\n\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\n// karma.conf.js\nmodule.exports = function(config: any)\n{\n config.set(\n {\n basePath: '.',\n browsers: ['ChromeHeadlessNS'],\n customLaunchers:\n {\n ChromeHeadlessNS:\n {\n base: 'ChromeHeadless',\n flags: ['--no-sandbox']\n }\n },\n frameworks: ['jasmine', 'webpack'],\n plugins:\n [\n 'karma-chrome-launcher',\n 'karma-jasmine',\n 'karma-webpack'\n ],\n preprocessors:\n {\n 'tests/**/*.ts': ['webpack']\n },\n files:\n [\n {\n pattern: 'tests/**/*.ts',\n watched: false\n }\n ],\n reporters: ['progress'],\n webpack:\n {\n module:\n {\n rules:\n [\n {\n test: /\\.ts$/,\n loader: '@ngtools/webpack'\n },\n {\n test: /\\.html$/,\n loader: 'raw-loader'\n },\n {\n test: /\\.css$/,\n loader: 'raw-loader'\n }\n ]\n },\n plugins:\n [\n new AngularCompilerPlugin(\n {\n tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),\n sourceMap: true\n })\n ]\n }\n });\n};"]}
|
package/es2020/karma.conf.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin, path = require('path');
|
|
3
|
-
process.env.CHROME_BIN = require('puppeteer').executablePath();
|
|
4
|
-
// karma.conf.js
|
|
5
|
-
module.exports = function (config) {
|
|
6
|
-
config.set({
|
|
7
|
-
basePath: '.',
|
|
8
|
-
browsers: ['ChromeHeadlessNS'],
|
|
9
|
-
customLaunchers: {
|
|
10
|
-
ChromeHeadlessNS: {
|
|
11
|
-
base: 'ChromeHeadless',
|
|
12
|
-
flags: ['--no-sandbox']
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
frameworks: ['jasmine', 'webpack'],
|
|
16
|
-
plugins: [
|
|
17
|
-
'karma-chrome-launcher',
|
|
18
|
-
'karma-jasmine',
|
|
19
|
-
'karma-webpack'
|
|
20
|
-
],
|
|
21
|
-
preprocessors: {
|
|
22
|
-
'tests/**/*.ts': ['webpack']
|
|
23
|
-
},
|
|
24
|
-
files: [
|
|
25
|
-
{
|
|
26
|
-
pattern: 'tests/**/*.ts',
|
|
27
|
-
watched: false
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
reporters: ['progress'],
|
|
31
|
-
webpack: {
|
|
32
|
-
module: {
|
|
33
|
-
rules: [
|
|
34
|
-
{
|
|
35
|
-
test: /\.ts$/,
|
|
36
|
-
loader: '@ngtools/webpack'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
test: /\.html$/,
|
|
40
|
-
loader: 'raw-loader'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
test: /\.css$/,
|
|
44
|
-
loader: 'raw-loader'
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
plugins: [
|
|
49
|
-
new AngularCompilerPlugin({
|
|
50
|
-
tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),
|
|
51
|
-
sourceMap: true
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=karma.conf.js.map
|
package/es2020/karma.conf.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"karma.conf.js","sourceRoot":"","sources":["../karma.conf.ts"],"names":[],"mappings":";AAAA,MAAM,qBAAqB,GAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC,qBAAqB,EAC1E,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,cAAc,EAAE,CAAC;AAE/D,gBAAgB;AAChB,MAAM,CAAC,OAAO,GAAG,UAAS,MAAW;IAEjC,MAAM,CAAC,GAAG,CACV;QACI,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,CAAC,kBAAkB,CAAC;QAC9B,eAAe,EACf;YACI,gBAAgB,EAChB;gBACI,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,CAAC,cAAc,CAAC;aAC1B;SACJ;QACD,UAAU,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAClC,OAAO,EACP;YACI,uBAAuB;YACvB,eAAe;YACf,eAAe;SAClB;QACD,aAAa,EACb;YACI,eAAe,EAAE,CAAC,SAAS,CAAC;SAC/B;QACD,KAAK,EACL;YACI;gBACI,OAAO,EAAE,eAAe;gBACxB,OAAO,EAAE,KAAK;aACjB;SACJ;QACD,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,OAAO,EACP;YACI,MAAM,EACN;gBACI,KAAK,EACL;oBACI;wBACI,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE,kBAAkB;qBAC7B;oBACD;wBACI,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,YAAY;qBACvB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,YAAY;qBACvB;iBACJ;aACJ;YACD,OAAO,EACP;gBACI,IAAI,qBAAqB,CACzB;oBACI,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC;oBACzD,SAAS,EAAE,IAAI;iBAClB,CAAC;aACL;SACJ;KACJ,CAAC,CAAC;AACP,CAAC,CAAC","sourcesContent":["const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin,\n path = require('path');\n\nprocess.env.CHROME_BIN = require('puppeteer').executablePath();\n\n// karma.conf.js\nmodule.exports = function(config: any)\n{\n config.set(\n {\n basePath: '.',\n browsers: ['ChromeHeadlessNS'],\n customLaunchers:\n {\n ChromeHeadlessNS:\n {\n base: 'ChromeHeadless',\n flags: ['--no-sandbox']\n }\n },\n frameworks: ['jasmine', 'webpack'],\n plugins:\n [\n 'karma-chrome-launcher',\n 'karma-jasmine',\n 'karma-webpack'\n ],\n preprocessors:\n {\n 'tests/**/*.ts': ['webpack']\n },\n files:\n [\n {\n pattern: 'tests/**/*.ts',\n watched: false\n }\n ],\n reporters: ['progress'],\n webpack:\n {\n module:\n {\n rules:\n [\n {\n test: /\\.ts$/,\n loader: '@ngtools/webpack'\n },\n {\n test: /\\.html$/,\n loader: 'raw-loader'\n },\n {\n test: /\\.css$/,\n loader: 'raw-loader'\n }\n ]\n },\n plugins:\n [\n new AngularCompilerPlugin(\n {\n tsConfigPath: path.join(__dirname, 'tsconfig.karma.json'),\n sourceMap: true\n })\n ]\n }\n });\n};"]}
|
package/karma.conf.d.ts
DELETED
package/karma.conf.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"karma.conf.d.ts","sourceRoot":"","sources":["karma.conf.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,KAAqD,EAC1E,IAAI,KAAkB,CAAC"}
|
|
@@ -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
|
-
```
|
package/tsconfig.karma.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions":
|
|
4
|
-
{
|
|
5
|
-
"target": "ES2015",
|
|
6
|
-
"paths":
|
|
7
|
-
{
|
|
8
|
-
"date-fns": ["../node_modules/date-fns/typings.d.ts"],
|
|
9
|
-
"moment": ["../node_modules/moment/ts3.1-typings/moment.d.ts"],
|
|
10
|
-
"@anglr/datetime": ["index.ts"],
|
|
11
|
-
"@anglr/datetime/moment": ["../moment/src/moment.ts"],
|
|
12
|
-
"@anglr/datetime/date-fns": ["../date-fns/src/date-fns.ts"]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"include":
|
|
16
|
-
[
|
|
17
|
-
"tests/**/*.ts"
|
|
18
|
-
]
|
|
19
|
-
}
|