@annalib/anna-core 16.1.4 → 16.1.6
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/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.mjs +8 -3
- package/esm2020/lib/anna-core.module.mjs +10 -5
- package/fesm2015/annalib-anna-core.mjs +27 -18
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +27 -18
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.d.ts +1 -0
- package/lib/anna-core.module.d.ts +12 -11
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
|
32
32
|
import { isDataSource, ArrayDataSource } from '@angular/cdk/collections';
|
|
33
33
|
import * as i2$2 from '@angular/cdk/table';
|
|
34
34
|
import { _COALESCED_STYLE_SCHEDULER, STICKY_POSITIONING_LISTENER, CdkHeaderRowDef } from '@angular/cdk/table';
|
|
35
|
+
import customParseFormat from 'dayjs/plugin/isSameOrAfter';
|
|
35
36
|
import hash from 'object-hash';
|
|
36
37
|
|
|
37
38
|
class AnnaFilterSearchedTextPipe {
|
|
@@ -6141,6 +6142,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
6141
6142
|
type: Output
|
|
6142
6143
|
}] } });
|
|
6143
6144
|
|
|
6145
|
+
class AnnaDateFormatterPipe {
|
|
6146
|
+
constructor() {
|
|
6147
|
+
}
|
|
6148
|
+
transform(value, format) {
|
|
6149
|
+
dayjs.extend(customParseFormat);
|
|
6150
|
+
let formattedTime = dayjs(value).format(format);
|
|
6151
|
+
return formattedTime;
|
|
6152
|
+
}
|
|
6153
|
+
}
|
|
6154
|
+
AnnaDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6155
|
+
AnnaDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, name: "AnnaDateFormatter" });
|
|
6156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, decorators: [{
|
|
6157
|
+
type: Pipe,
|
|
6158
|
+
args: [{
|
|
6159
|
+
name: 'AnnaDateFormatter'
|
|
6160
|
+
}]
|
|
6161
|
+
}], ctorParameters: function () { return []; } });
|
|
6162
|
+
|
|
6144
6163
|
// Angular import statements
|
|
6145
6164
|
class AnnaCoreModule {
|
|
6146
6165
|
}
|
|
@@ -6169,7 +6188,8 @@ AnnaCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
6169
6188
|
AnnaColumnDateRangeFilterComponent,
|
|
6170
6189
|
AnnaColumnTimeFilterComponent,
|
|
6171
6190
|
AnnaColumnCheckboxFilterComponent,
|
|
6172
|
-
AnnaDeletedOrderIconTemplateComponent
|
|
6191
|
+
AnnaDeletedOrderIconTemplateComponent,
|
|
6192
|
+
AnnaDateFormatterPipe], imports: [CommonModule,
|
|
6173
6193
|
NgbModule,
|
|
6174
6194
|
FormsModule,
|
|
6175
6195
|
MatRadioModule,
|
|
@@ -6201,7 +6221,8 @@ AnnaCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
6201
6221
|
AnnaColumnCheckboxFilterComponent,
|
|
6202
6222
|
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
6203
6223
|
DigitOnlyDirective,
|
|
6204
|
-
AnnaDeletedOrderIconTemplateComponent
|
|
6224
|
+
AnnaDeletedOrderIconTemplateComponent,
|
|
6225
|
+
AnnaDateFormatterPipe] });
|
|
6205
6226
|
AnnaCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaCoreModule, imports: [CommonModule,
|
|
6206
6227
|
NgbModule,
|
|
6207
6228
|
FormsModule,
|
|
@@ -6247,7 +6268,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
6247
6268
|
AnnaColumnDateRangeFilterComponent,
|
|
6248
6269
|
AnnaColumnTimeFilterComponent,
|
|
6249
6270
|
AnnaColumnCheckboxFilterComponent,
|
|
6250
|
-
AnnaDeletedOrderIconTemplateComponent
|
|
6271
|
+
AnnaDeletedOrderIconTemplateComponent,
|
|
6272
|
+
AnnaDateFormatterPipe
|
|
6251
6273
|
],
|
|
6252
6274
|
imports: [
|
|
6253
6275
|
CommonModule,
|
|
@@ -6293,7 +6315,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
6293
6315
|
AnnaColumnCheckboxFilterComponent,
|
|
6294
6316
|
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
6295
6317
|
DigitOnlyDirective,
|
|
6296
|
-
AnnaDeletedOrderIconTemplateComponent
|
|
6318
|
+
AnnaDeletedOrderIconTemplateComponent,
|
|
6319
|
+
AnnaDateFormatterPipe
|
|
6297
6320
|
]
|
|
6298
6321
|
}]
|
|
6299
6322
|
}] });
|
|
@@ -6466,20 +6489,6 @@ OrderSources.WOC_unlinked = "WOC Unlinked";
|
|
|
6466
6489
|
OrderSources.WOC_linked = "WOC Linked";
|
|
6467
6490
|
OrderSources.WOZ = "WOZ";
|
|
6468
6491
|
|
|
6469
|
-
class AnnaDateFormatterPipe {
|
|
6470
|
-
transform(value, format) {
|
|
6471
|
-
return dayjs(value, format);
|
|
6472
|
-
}
|
|
6473
|
-
}
|
|
6474
|
-
AnnaDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6475
|
-
AnnaDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, name: "AnnaDateFormatter" });
|
|
6476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnaDateFormatterPipe, decorators: [{
|
|
6477
|
-
type: Pipe,
|
|
6478
|
-
args: [{
|
|
6479
|
-
name: 'AnnaDateFormatter'
|
|
6480
|
-
}]
|
|
6481
|
-
}] });
|
|
6482
|
-
|
|
6483
6492
|
/*
|
|
6484
6493
|
* Public API Surface of anna-core
|
|
6485
6494
|
*/
|