@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.
package/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 2.0.1 (2022-02-22)
4
+
5
+ ### Bug Fixes
6
+
7
+ - fixed typings, not using rolled up typings for now
8
+ - fixed scss entry points
9
+
3
10
  ## Version 2.0.0 (2022-02-21)
4
11
 
5
12
  ### BREAKING CHANGES
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@anglr/datetime",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-beta.20220222061608",
4
4
  "description": "Angular library for datetime manipulation components",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
- "build": "ngc --declaration --declarationDir . --declarationMap && ngc -t es2015 --outDir es2015 && npm run dts:rollup",
8
+ "build": "ngc --declaration --declarationDir . --declarationMap && ngc -t es2015 --outDir es2015",
9
9
  "dts:rollup": "npm run api -- api-extractor.json && npm run api -- date-fns/api-extractor.json && npm run api -- moment/api-extractor.json",
10
10
  "api": "api-extractor run --local --verbose -c",
11
11
  "clean": "rimraf */temp temp es2015 es2020 **/tsdoc-metadata.json src/**/*.d.ts src/**/*.d.ts.map */src/**/*.d.ts */src/**/*.d.ts.map ./*.d.ts ./*.d.ts.map */*.d.ts",
@@ -116,13 +116,22 @@
116
116
  "es2020": "./es2020/src/index.js",
117
117
  "es2015": "./es2015/src/index.js",
118
118
  "module": "./es2015/src/index.js",
119
- "typings": "./datetime.d.ts",
119
+ "typings": "./src/index.d.ts",
120
120
  "exports": {
121
121
  "./package.json": {
122
122
  "default": "./package.json"
123
123
  },
124
+ "./src/theme.scss": {
125
+ "sass": "./src/theme.scss"
126
+ },
127
+ "./src/dark.scss": {
128
+ "sass": "./src/dark.scss"
129
+ },
130
+ "./src/default.scss": {
131
+ "sass": "./src/default.scss"
132
+ },
124
133
  ".": {
125
- "types": "./datetime.d.ts",
134
+ "types": "./src/index.d.ts",
126
135
  "esm2020": "./es2020/src/index.js",
127
136
  "es2020": "./es2020/src/index.js",
128
137
  "es2015": "./es2015/src/index.js",
@@ -130,7 +139,7 @@
130
139
  "default": "./es2020/src/index.js"
131
140
  },
132
141
  "./date-fns": {
133
- "types": "./date-fns/datetime-date-fns.d.ts",
142
+ "types": "./date-fns/src/index.d.ts",
134
143
  "esm2020": "./es2020/date-fns/src/index.js",
135
144
  "es2020": "./es2020/date-fns/src/index.js",
136
145
  "es2015": "./es2015/date-fns/src/index.js",
@@ -138,7 +147,7 @@
138
147
  "default": "./es2020/date-fns/src/index.js"
139
148
  },
140
149
  "./moment": {
141
- "types": "./moment/datetime-moment.d.ts",
150
+ "types": "./moment/src/index.d.ts",
142
151
  "esm2020": "./es2020/moment/src/index.js",
143
152
  "es2020": "./es2020/moment/src/index.js",
144
153
  "es2015": "./es2015/moment/src/index.js",
package/version.bak CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1-beta.20220222061608
@@ -1,64 +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 { InjectionToken } from '@angular/core';
8
- import { Locale as Locale_2 } from 'date-fns';
9
-
10
- /**
11
- * Injection token used for obtaining Date fns locale service
12
- */
13
- export declare const DATE_FNS_LOCALE: InjectionToken<DateFnsLocale>;
14
-
15
- /**
16
- * Injection token used for obtaining date-fns FormatProvider implementation
17
- */
18
- export declare const DATEFNS_FORMAT_PROVIDER: FactoryProvider;
19
-
20
- /**
21
- * Date api using DateFnsJS, used for obtaining DateApi wrapper object
22
- */
23
- export declare class DateFnsDateApi implements DateApi<Date> {
24
- protected _localeSvc: DateFnsLocale;
25
- protected _relativeParser: DateTimeRelativeParser<Date>;
26
- constructor(_localeSvc: DateFnsLocale, _relativeParser: DateTimeRelativeParser<Date>);
27
- /**
28
- * Gets wrapping object used for manipulation
29
- * @param value - Value to be converted (parsed) and used for manipulation
30
- * @param format - Format string used for parsing string value
31
- */
32
- getValue(value: DateValue | Date, format?: string): DateApiObject<Date>;
33
- /**
34
- * Gets wrapping object used for manipulation instantiated to current date and time
35
- */
36
- now(): DateApiObject<Date>;
37
- /**
38
- * Gets format string using pseudo format
39
- * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
40
- */
41
- getFormat(pseudoFormat: string): string;
42
- /**
43
- * Gets information
44
- */
45
- weekStartsOnMonday(): boolean;
46
- /**
47
- * Gets array of weekday names in short format, order of days is dependent on locale
48
- */
49
- weekdaysShort(): string[];
50
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsDateApi, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsDateApi>;
52
- }
53
-
54
- /**
55
- * Date FNS locale service, used for obtaining locale
56
- */
57
- export declare interface DateFnsLocale {
58
- /**
59
- * Gets current active locale for date fns
60
- */
61
- readonly locale: Locale_2;
62
- }
63
-
64
- export { }
@@ -1,64 +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 { InjectionToken } from '@angular/core';
8
- import { Locale as Locale_2 } from 'date-fns';
9
-
10
- /**
11
- * Injection token used for obtaining Date fns locale service
12
- */
13
- export declare const DATE_FNS_LOCALE: InjectionToken<DateFnsLocale>;
14
-
15
- /**
16
- * Injection token used for obtaining date-fns FormatProvider implementation
17
- */
18
- export declare const DATEFNS_FORMAT_PROVIDER: FactoryProvider;
19
-
20
- /**
21
- * Date api using DateFnsJS, used for obtaining DateApi wrapper object
22
- */
23
- export declare class DateFnsDateApi implements DateApi<Date> {
24
- protected _localeSvc: DateFnsLocale;
25
- protected _relativeParser: DateTimeRelativeParser<Date>;
26
- constructor(_localeSvc: DateFnsLocale, _relativeParser: DateTimeRelativeParser<Date>);
27
- /**
28
- * Gets wrapping object used for manipulation
29
- * @param value - Value to be converted (parsed) and used for manipulation
30
- * @param format - Format string used for parsing string value
31
- */
32
- getValue(value: DateValue | Date, format?: string): DateApiObject<Date>;
33
- /**
34
- * Gets wrapping object used for manipulation instantiated to current date and time
35
- */
36
- now(): DateApiObject<Date>;
37
- /**
38
- * Gets format string using pseudo format
39
- * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
40
- */
41
- getFormat(pseudoFormat: string): string;
42
- /**
43
- * Gets information
44
- */
45
- weekStartsOnMonday(): boolean;
46
- /**
47
- * Gets array of weekday names in short format, order of days is dependent on locale
48
- */
49
- weekdaysShort(): string[];
50
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsDateApi, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsDateApi>;
52
- }
53
-
54
- /**
55
- * Date FNS locale service, used for obtaining locale
56
- */
57
- export declare interface DateFnsLocale {
58
- /**
59
- * Gets current active locale for date fns
60
- */
61
- readonly locale: Locale_2;
62
- }
63
-
64
- export { }
@@ -1,47 +0,0 @@
1
- ## API Report File for "@anglr/datetime-date-fns"
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 { InjectionToken } from '@angular/core';
14
- import { Locale as Locale_2 } from 'date-fns';
15
-
16
- // @public
17
- export const DATE_FNS_LOCALE: InjectionToken<DateFnsLocale>;
18
-
19
- // @public
20
- export const DATEFNS_FORMAT_PROVIDER: FactoryProvider;
21
-
22
- // @public
23
- export class DateFnsDateApi implements DateApi<Date> {
24
- constructor(_localeSvc: DateFnsLocale, _relativeParser: DateTimeRelativeParser<Date>);
25
- getFormat(pseudoFormat: string): string;
26
- getValue(value: DateValue | Date, format?: string): DateApiObject<Date>;
27
- // (undocumented)
28
- protected _localeSvc: DateFnsLocale;
29
- now(): DateApiObject<Date>;
30
- // (undocumented)
31
- protected _relativeParser: DateTimeRelativeParser<Date>;
32
- weekdaysShort(): string[];
33
- weekStartsOnMonday(): boolean;
34
- // (undocumented)
35
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsDateApi, never>;
36
- // (undocumented)
37
- static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsDateApi>;
38
- }
39
-
40
- // @public
41
- export interface DateFnsLocale {
42
- readonly locale: Locale_2;
43
- }
44
-
45
- // (No @packageDocumentation comment for this package)
46
-
47
- ```