@acorex/core 21.0.1-next.7 → 21.0.1-next.71
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/fesm2022/acorex-core-components.mjs +5 -5
- package/fesm2022/acorex-core-components.mjs.map +1 -1
- package/fesm2022/acorex-core-config.mjs +3 -3
- package/fesm2022/acorex-core-config.mjs.map +1 -1
- package/fesm2022/acorex-core-constants.mjs +214 -3
- package/fesm2022/acorex-core-constants.mjs.map +1 -1
- package/fesm2022/acorex-core-date-time.mjs +30 -31
- package/fesm2022/acorex-core-date-time.mjs.map +1 -1
- package/fesm2022/acorex-core-events.mjs +3 -3
- package/fesm2022/acorex-core-events.mjs.map +1 -1
- package/fesm2022/acorex-core-file.mjs +10 -10
- package/fesm2022/acorex-core-file.mjs.map +1 -1
- package/fesm2022/acorex-core-format.mjs +19 -19
- package/fesm2022/acorex-core-format.mjs.map +1 -1
- package/fesm2022/acorex-core-full-screen.mjs +16 -6
- package/fesm2022/acorex-core-full-screen.mjs.map +1 -1
- package/fesm2022/acorex-core-icon.mjs +3 -3
- package/fesm2022/acorex-core-icon.mjs.map +1 -1
- package/fesm2022/acorex-core-image.mjs +3 -3
- package/fesm2022/acorex-core-image.mjs.map +1 -1
- package/fesm2022/acorex-core-locale.mjs +10 -10
- package/fesm2022/acorex-core-locale.mjs.map +1 -1
- package/fesm2022/acorex-core-network.mjs +3 -3
- package/fesm2022/acorex-core-network.mjs.map +1 -1
- package/fesm2022/acorex-core-pipes.mjs +3 -3
- package/fesm2022/acorex-core-pipes.mjs.map +1 -1
- package/fesm2022/acorex-core-platform.mjs +3 -3
- package/fesm2022/acorex-core-platform.mjs.map +1 -1
- package/fesm2022/acorex-core-storage.mjs +9 -9
- package/fesm2022/acorex-core-storage.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +145 -63
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-utils.mjs +3 -4
- package/fesm2022/acorex-core-utils.mjs.map +1 -1
- package/fesm2022/acorex-core-validation.mjs +40 -40
- package/fesm2022/acorex-core-validation.mjs.map +1 -1
- package/fesm2022/acorex-core-z-index.mjs +44 -0
- package/fesm2022/acorex-core-z-index.mjs.map +1 -0
- package/package.json +28 -26
- package/{components/index.d.ts → types/acorex-core-components.d.ts} +2 -2
- package/{constants/index.d.ts → types/acorex-core-constants.d.ts} +2 -1
- package/{format/index.d.ts → types/acorex-core-format.d.ts} +2 -2
- package/{full-screen/index.d.ts → types/acorex-core-full-screen.d.ts} +5 -0
- package/{translation/index.d.ts → types/acorex-core-translation.d.ts} +29 -4
- package/{validation/index.d.ts → types/acorex-core-validation.d.ts} +10 -10
- package/types/acorex-core-z-index.d.ts +20 -0
- package/z-index/README.md +3 -0
- /package/{config/index.d.ts → types/acorex-core-config.d.ts} +0 -0
- /package/{date-time/index.d.ts → types/acorex-core-date-time.d.ts} +0 -0
- /package/{events/index.d.ts → types/acorex-core-events.d.ts} +0 -0
- /package/{file/index.d.ts → types/acorex-core-file.d.ts} +0 -0
- /package/{icon/index.d.ts → types/acorex-core-icon.d.ts} +0 -0
- /package/{image/index.d.ts → types/acorex-core-image.d.ts} +0 -0
- /package/{locale/index.d.ts → types/acorex-core-locale.d.ts} +0 -0
- /package/{memoize/index.d.ts → types/acorex-core-memoize.d.ts} +0 -0
- /package/{network/index.d.ts → types/acorex-core-network.d.ts} +0 -0
- /package/{pipes/index.d.ts → types/acorex-core-pipes.d.ts} +0 -0
- /package/{platform/index.d.ts → types/acorex-core-platform.d.ts} +0 -0
- /package/{storage/index.d.ts → types/acorex-core-storage.d.ts} +0 -0
- /package/{utils/index.d.ts → types/acorex-core-utils.d.ts} +0 -0
- /package/{index.d.ts → types/acorex-core.d.ts} +0 -0
|
@@ -282,7 +282,7 @@ class AXDateTime {
|
|
|
282
282
|
return p == 0 ? func(this.second, val.second) : p;
|
|
283
283
|
case 'ms':
|
|
284
284
|
default:
|
|
285
|
-
return func(this.date
|
|
285
|
+
return func(this.date?.getTime(), val.date?.getTime());
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
@@ -376,8 +376,8 @@ class AXDateTimeRange {
|
|
|
376
376
|
// Average lengths for approximate total months/years
|
|
377
377
|
const ONE_YEAR_AVG = 365.25 * ONE_DAY;
|
|
378
378
|
const ONE_MONTH_AVG = ONE_YEAR_AVG / 12;
|
|
379
|
-
const startTime = this._startTime.date
|
|
380
|
-
const endTime = this._endTime.date
|
|
379
|
+
const startTime = this._startTime.date?.getTime();
|
|
380
|
+
const endTime = this._endTime.date?.getTime();
|
|
381
381
|
// Calculate the absolute difference in milliseconds
|
|
382
382
|
const diff = Math.abs(endTime - startTime);
|
|
383
383
|
// --- Calculate Total Durations ---
|
|
@@ -1239,10 +1239,10 @@ class AXCalendarService {
|
|
|
1239
1239
|
calendar: calendar.name(),
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1243
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1243
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
|
|
1244
1244
|
}
|
|
1245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXCalendarService, decorators: [{
|
|
1246
1246
|
type: Injectable,
|
|
1247
1247
|
args: [{ providedIn: 'root' }]
|
|
1248
1248
|
}], ctorParameters: () => [] });
|
|
@@ -1266,10 +1266,10 @@ class AXDateTimePipe {
|
|
|
1266
1266
|
const val = this._calendarService.convert(value, calendar.name());
|
|
1267
1267
|
return this.formatService.format(val, 'datetime', format);
|
|
1268
1268
|
}
|
|
1269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1270
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1270
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
|
|
1271
1271
|
}
|
|
1272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimePipe, decorators: [{
|
|
1273
1273
|
type: Pipe,
|
|
1274
1274
|
args: [{ name: 'axDate' }]
|
|
1275
1275
|
}] });
|
|
@@ -1314,10 +1314,10 @@ class AXDateFormatter {
|
|
|
1314
1314
|
.convert(value, effectiveOptions.calendar)
|
|
1315
1315
|
.format(format, { locale: effectiveOptions.locale });
|
|
1316
1316
|
}
|
|
1317
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1318
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1318
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateFormatter }); }
|
|
1319
1319
|
}
|
|
1320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateFormatter, decorators: [{
|
|
1321
1321
|
type: Injectable
|
|
1322
1322
|
}] });
|
|
1323
1323
|
|
|
@@ -1371,10 +1371,10 @@ class AXDateTimeFormatter {
|
|
|
1371
1371
|
.convert(value, effectiveOptions.calendar)
|
|
1372
1372
|
.format(format, { locale: effectiveOptions.locale });
|
|
1373
1373
|
}
|
|
1374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeFormatter }); }
|
|
1376
1376
|
}
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
|
|
1378
1378
|
type: Injectable
|
|
1379
1379
|
}] });
|
|
1380
1380
|
|
|
@@ -1497,10 +1497,10 @@ class AXTimeDurationFormatter {
|
|
|
1497
1497
|
return result.join(separator);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeDurationFormatter }); }
|
|
1502
1502
|
}
|
|
1503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
|
|
1504
1504
|
type: Injectable
|
|
1505
1505
|
}] });
|
|
1506
1506
|
|
|
@@ -1544,10 +1544,10 @@ class AXTimeFormatter {
|
|
|
1544
1544
|
.convert(value, effectiveOptions.calendar)
|
|
1545
1545
|
.format(format, { locale: effectiveOptions.locale });
|
|
1546
1546
|
}
|
|
1547
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1548
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1547
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1548
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeFormatter }); }
|
|
1549
1549
|
}
|
|
1550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeFormatter, decorators: [{
|
|
1551
1551
|
type: Injectable
|
|
1552
1552
|
}] });
|
|
1553
1553
|
|
|
@@ -1578,10 +1578,9 @@ class AXTimeLeftFormatter {
|
|
|
1578
1578
|
// Determine the best format if format is null (following standard conventions)
|
|
1579
1579
|
// Standard time thresholds based on common social media platforms
|
|
1580
1580
|
if (isNil(format)) {
|
|
1581
|
-
if (durationInSeconds <
|
|
1581
|
+
if (durationInSeconds < 60)
|
|
1582
1582
|
format = 'now'; // 0-10s: "just now"
|
|
1583
|
-
else if (durationInSeconds < 60)
|
|
1584
|
-
format = 's'; // 10-60s: "X seconds ago"
|
|
1583
|
+
// else if (durationInSeconds < 60) format = 's'; // 10-60s: "X seconds ago"
|
|
1585
1584
|
else if (durationInSeconds < 3600)
|
|
1586
1585
|
format = 'm'; // 1-60 min: "X minutes ago"
|
|
1587
1586
|
else if (durationInSeconds < 86400)
|
|
@@ -1670,21 +1669,21 @@ class AXTimeLeftFormatter {
|
|
|
1670
1669
|
return 'Invalid format';
|
|
1671
1670
|
}
|
|
1672
1671
|
}
|
|
1673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1674
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeLeftFormatter }); }
|
|
1675
1674
|
}
|
|
1676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
|
|
1677
1676
|
type: Injectable
|
|
1678
1677
|
}] });
|
|
1679
1678
|
|
|
1680
1679
|
class AXDateTimeModule {
|
|
1681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1682
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1683
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1681
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
|
|
1682
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
|
|
1684
1683
|
formatters: [AXDateTimeFormatter, AXDateFormatter, AXTimeFormatter, AXTimeLeftFormatter, AXTimeDurationFormatter],
|
|
1685
1684
|
})] }); }
|
|
1686
1685
|
}
|
|
1687
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXDateTimeModule, decorators: [{
|
|
1688
1687
|
type: NgModule,
|
|
1689
1688
|
args: [{
|
|
1690
1689
|
imports: [
|