@koobiq/angular-moment-adapter 17.8.1 → 18.0.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.
|
@@ -10,9 +10,9 @@ export declare const KBQ_MOMENT_DATE_ADAPTER_OPTIONS: InjectionToken<MomentDateA
|
|
|
10
10
|
/** @docs-private */
|
|
11
11
|
export declare function KBQ_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY(): IKbqMomentDateAdapterOptions;
|
|
12
12
|
export declare class MomentDateAdapter extends BaseMomentDateAdapter {
|
|
13
|
-
protected readonly options?:
|
|
13
|
+
protected readonly options?: IKbqMomentDateAdapterOptions | undefined;
|
|
14
14
|
private localeService?;
|
|
15
|
-
constructor(dateLocale: string, options?:
|
|
15
|
+
constructor(dateLocale: string, options?: IKbqMomentDateAdapterOptions | undefined, localeService?: KbqLocaleService | undefined);
|
|
16
16
|
/** A stream that emits when the locale changes. */
|
|
17
17
|
get localeChanges(): Observable<any>;
|
|
18
18
|
private _localeChanges;
|
|
@@ -5,9 +5,9 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export * from './moment-date-adapter';
|
|
6
6
|
export * from './moment-date-formats';
|
|
7
7
|
export class MomentDateModule {
|
|
8
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule }); }
|
|
10
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, providers: [
|
|
11
11
|
{
|
|
12
12
|
provide: DateAdapter,
|
|
13
13
|
useClass: MomentDateAdapter,
|
|
@@ -15,7 +15,7 @@ export class MomentDateModule {
|
|
|
15
15
|
}
|
|
16
16
|
] }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, decorators: [{
|
|
19
19
|
type: NgModule,
|
|
20
20
|
args: [{
|
|
21
21
|
providers: [
|
|
@@ -28,9 +28,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
28
28
|
}]
|
|
29
29
|
}] });
|
|
30
30
|
export class KbqMomentDateModule {
|
|
31
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
33
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
31
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
32
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, imports: [MomentDateModule, KbqLocaleServiceModule] }); }
|
|
33
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, providers: [
|
|
34
34
|
{
|
|
35
35
|
// todo после добавления McLocaleServiceModule возможно уже неактуально
|
|
36
36
|
provide: KBQ_DATE_FORMATS,
|
|
@@ -38,7 +38,7 @@ export class KbqMomentDateModule {
|
|
|
38
38
|
}
|
|
39
39
|
], imports: [MomentDateModule, KbqLocaleServiceModule] }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, decorators: [{
|
|
42
42
|
type: NgModule,
|
|
43
43
|
args: [{
|
|
44
44
|
imports: [MomentDateModule, KbqLocaleServiceModule],
|
|
@@ -37,10 +37,10 @@ export class MomentDateAdapter extends BaseMomentDateAdapter {
|
|
|
37
37
|
get localeChanges() {
|
|
38
38
|
return this._localeChanges;
|
|
39
39
|
}
|
|
40
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
40
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter, deps: [{ token: KBQ_DATE_LOCALE, optional: true }, { token: KBQ_MOMENT_DATE_ADAPTER_OPTIONS, optional: true }, { token: KBQ_LOCALE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
41
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter }); }
|
|
42
42
|
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter, decorators: [{
|
|
44
44
|
type: Injectable
|
|
45
45
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
46
46
|
type: Optional
|
|
@@ -38,10 +38,10 @@ class MomentDateAdapter extends MomentDateAdapter$1 {
|
|
|
38
38
|
get localeChanges() {
|
|
39
39
|
return this._localeChanges;
|
|
40
40
|
}
|
|
41
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
41
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter, deps: [{ token: KBQ_DATE_LOCALE, optional: true }, { token: KBQ_MOMENT_DATE_ADAPTER_OPTIONS, optional: true }, { token: KBQ_LOCALE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
42
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter }); }
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateAdapter, decorators: [{
|
|
45
45
|
type: Injectable
|
|
46
46
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
47
47
|
type: Optional
|
|
@@ -63,9 +63,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
63
63
|
const KBQ_MOMENT_DATE_FORMATS = MOMENT_DATE_FORMATS;
|
|
64
64
|
|
|
65
65
|
class MomentDateModule {
|
|
66
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
67
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
68
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
66
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
67
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule }); }
|
|
68
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, providers: [
|
|
69
69
|
{
|
|
70
70
|
provide: DateAdapter,
|
|
71
71
|
useClass: MomentDateAdapter,
|
|
@@ -73,7 +73,7 @@ class MomentDateModule {
|
|
|
73
73
|
}
|
|
74
74
|
] }); }
|
|
75
75
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: MomentDateModule, decorators: [{
|
|
77
77
|
type: NgModule,
|
|
78
78
|
args: [{
|
|
79
79
|
providers: [
|
|
@@ -86,9 +86,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
86
86
|
}]
|
|
87
87
|
}] });
|
|
88
88
|
class KbqMomentDateModule {
|
|
89
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
90
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
91
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
89
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
90
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, imports: [MomentDateModule, KbqLocaleServiceModule] }); }
|
|
91
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, providers: [
|
|
92
92
|
{
|
|
93
93
|
// todo после добавления McLocaleServiceModule возможно уже неактуально
|
|
94
94
|
provide: KBQ_DATE_FORMATS,
|
|
@@ -96,7 +96,7 @@ class KbqMomentDateModule {
|
|
|
96
96
|
}
|
|
97
97
|
], imports: [MomentDateModule, KbqLocaleServiceModule] }); }
|
|
98
98
|
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: KbqMomentDateModule, decorators: [{
|
|
100
100
|
type: NgModule,
|
|
101
101
|
args: [{
|
|
102
102
|
imports: [MomentDateModule, KbqLocaleServiceModule],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/angular-moment-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "Koobiq Moment Adapter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@koobiq/moment-date-adapter": "^3.1.2",
|
|
17
|
-
"@koobiq/components": "
|
|
17
|
+
"@koobiq/components": "18.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.6.2"
|