@sumaris-net/ngx-components 2.4.47 → 2.4.48
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/src/app/shared/functions.mjs +3 -8
- package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +3 -3
- package/esm2020/src/app/social/job/job.module.mjs +5 -3
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +1 -3
- package/esm2020/src/environments/environment.mjs +7 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +16 -15
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +16 -15
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/functions.d.ts +2 -6
- package/src/app/social/job/job.module.d.ts +1 -1
|
@@ -613,15 +613,10 @@ class Beans {
|
|
|
613
613
|
}) === -1;
|
|
614
614
|
}
|
|
615
615
|
static collectById(array) {
|
|
616
|
-
return
|
|
617
|
-
}
|
|
618
|
-
static collectByProperty(array, propertyName) {
|
|
619
|
-
return (array || []).reduce((res, item) => {
|
|
620
|
-
res['' + propertyName] = item;
|
|
621
|
-
return res;
|
|
622
|
-
}, {});
|
|
616
|
+
return collectByProperty(array, 'id');
|
|
623
617
|
}
|
|
624
618
|
}
|
|
619
|
+
Beans.collectByProperty = collectByProperty;
|
|
625
620
|
function findParentWithClass(elem, className) {
|
|
626
621
|
if (!className)
|
|
627
622
|
return undefined;
|
|
@@ -1569,8 +1564,8 @@ class HighlightPipe {
|
|
|
1569
1564
|
const cleanedSearchText = removeDiacritics(searchRegexp).toUpperCase();
|
|
1570
1565
|
const index = removeDiacritics(value.toUpperCase()).indexOf(cleanedSearchText);
|
|
1571
1566
|
if (index !== -1) {
|
|
1572
|
-
return value.substring(0, index
|
|
1573
|
-
'<b>' + value.substring(index, cleanedSearchText.length) + '</b>' +
|
|
1567
|
+
return value.substring(0, index) +
|
|
1568
|
+
'<b>' + value.substring(index, index + cleanedSearchText.length) + '</b>' +
|
|
1574
1569
|
value.substring(index + cleanedSearchText.length);
|
|
1575
1570
|
}
|
|
1576
1571
|
return value;
|
|
@@ -2714,7 +2709,7 @@ function unwrapESModule(commonJSModule) {
|
|
|
2714
2709
|
}
|
|
2715
2710
|
|
|
2716
2711
|
// // Workaround for issue https://github.com/ng-packagr/ng-packagr/issues/2215
|
|
2717
|
-
const moment
|
|
2712
|
+
const moment = unwrapESModule(momentImported);
|
|
2718
2713
|
const momentTZ = unwrapESModule(momentTZImported);
|
|
2719
2714
|
const DATE_UNIX_TIMESTAMP = 'X';
|
|
2720
2715
|
const DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
@@ -2786,7 +2781,7 @@ class DateUtils {
|
|
|
2786
2781
|
return momentDate.day() === weekday;
|
|
2787
2782
|
}
|
|
2788
2783
|
}
|
|
2789
|
-
DateUtils.moment = moment
|
|
2784
|
+
DateUtils.moment = moment;
|
|
2790
2785
|
DateUtils.momentTZ = momentTZ;
|
|
2791
2786
|
DateUtils.toDateISOString = toDateISOString;
|
|
2792
2787
|
DateUtils.fromDateISOString = fromDateISOString;
|
|
@@ -11468,6 +11463,10 @@ const environment = Object.freeze({
|
|
|
11468
11463
|
// TODO: make this works
|
|
11469
11464
|
//offline: true,
|
|
11470
11465
|
peerMinVersion: '1.8.0',
|
|
11466
|
+
defaultPeer: {
|
|
11467
|
+
host: '192.168.0.45',
|
|
11468
|
+
port: 8080
|
|
11469
|
+
},
|
|
11471
11470
|
defaultPeers: [
|
|
11472
11471
|
{
|
|
11473
11472
|
host: 'localhost',
|
|
@@ -11518,7 +11517,8 @@ const environment = Object.freeze({
|
|
|
11518
11517
|
// Basic auth (using Person.username)
|
|
11519
11518
|
// username: 'admq2', password: 'q22006'
|
|
11520
11519
|
// Token auth (using Person.pubkey)
|
|
11521
|
-
username: 'admin@sumaris.net', password: 'admin',
|
|
11520
|
+
//username: 'admin@sumaris.net', password: 'admin',
|
|
11521
|
+
username: 'benoit.lavenier@e-is.pro', password: 'priezPourMoi!',
|
|
11522
11522
|
},
|
|
11523
11523
|
account: {
|
|
11524
11524
|
enableListenChanges: true,
|
|
@@ -32637,7 +32637,8 @@ class JobModule {
|
|
|
32637
32637
|
JobModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: JobModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
32638
32638
|
JobModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: JobModule, declarations: [JobProgressionIcon,
|
|
32639
32639
|
JobProgressionList], imports: [CommonModule,
|
|
32640
|
-
SharedModule, i1$2.TranslateModule], exports: [JobProgressionIcon
|
|
32640
|
+
SharedModule, i1$2.TranslateModule], exports: [JobProgressionIcon,
|
|
32641
|
+
JobProgressionList] });
|
|
32641
32642
|
JobModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: JobModule, imports: [CommonModule,
|
|
32642
32643
|
SharedModule,
|
|
32643
32644
|
TranslateModule.forChild()] });
|
|
@@ -32654,7 +32655,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
32654
32655
|
JobProgressionList
|
|
32655
32656
|
],
|
|
32656
32657
|
exports: [
|
|
32657
|
-
JobProgressionIcon
|
|
32658
|
+
JobProgressionIcon,
|
|
32659
|
+
JobProgressionList
|
|
32658
32660
|
]
|
|
32659
32661
|
}]
|
|
32660
32662
|
}] });
|
|
@@ -35587,7 +35589,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
35587
35589
|
args: [ENVIRONMENT]
|
|
35588
35590
|
}] }]; } });
|
|
35589
35591
|
|
|
35590
|
-
const moment = momentImported;
|
|
35591
35592
|
class UserEventTestingPage {
|
|
35592
35593
|
constructor(userEventService, router, alertController, translateService) {
|
|
35593
35594
|
this.userEventService = userEventService;
|