@acorex/core 22.1.8 → 22.2.0-next.1
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/constants/README.md +7 -1
- package/fesm2022/acorex-core-components.mjs +3 -3
- 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 +27809 -1
- package/fesm2022/acorex-core-constants.mjs.map +1 -1
- package/fesm2022/acorex-core-date-time.mjs +37 -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 +53 -46
- 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 +232 -59
- 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-memoize.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 +4 -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-theme-builder.mjs +10 -3
- package/fesm2022/acorex-core-theme-builder.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +16 -16
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-utils.mjs +6 -6
- 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 +3 -3
- package/fesm2022/acorex-core-z-index.mjs.map +1 -1
- package/fesm2022/acorex-core.mjs.map +1 -1
- package/i18n/en-AU/acorex.json +149 -4
- package/i18n/en-US/acorex.json +168 -4
- package/i18n/fa-IR/acorex.json +168 -4
- package/package.json +2 -1
- package/types/acorex-core-components.d.ts +1 -1
- package/types/acorex-core-config.d.ts +1 -1
- package/types/acorex-core-constants.d.ts +58 -2
- package/types/acorex-core-date-time.d.ts +6 -5
- package/types/acorex-core-events.d.ts +1 -1
- package/types/acorex-core-file.d.ts +12 -11
- package/types/acorex-core-format.d.ts +3 -3
- package/types/acorex-core-full-screen.d.ts +67 -18
- package/types/acorex-core-icon.d.ts +1 -1
- package/types/acorex-core-image.d.ts +1 -1
- package/types/acorex-core-locale.d.ts +2 -2
- package/types/acorex-core-network.d.ts +1 -1
- package/types/acorex-core-platform.d.ts +1 -1
- package/types/acorex-core-storage.d.ts +3 -3
- package/types/acorex-core-translation.d.ts +1 -1
- package/types/acorex-core-utils.d.ts +2 -2
- package/types/acorex-core-validation.d.ts +12 -12
- package/types/acorex-core-z-index.d.ts +1 -1
|
@@ -1273,10 +1273,10 @@ class AXCalendarService {
|
|
|
1273
1273
|
calendar: calendar.name(),
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1277
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1276
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1277
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
|
|
1278
1278
|
}
|
|
1279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXCalendarService, decorators: [{
|
|
1280
1280
|
type: Injectable,
|
|
1281
1281
|
args: [{ providedIn: 'root' }]
|
|
1282
1282
|
}], ctorParameters: () => [] });
|
|
@@ -1300,10 +1300,10 @@ class AXDateTimePipe {
|
|
|
1300
1300
|
const val = this._calendarService.convert(value, calendar.name());
|
|
1301
1301
|
return this.formatService.format(val, 'datetime', format);
|
|
1302
1302
|
}
|
|
1303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1304
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.
|
|
1303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1304
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
|
|
1305
1305
|
}
|
|
1306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimePipe, decorators: [{
|
|
1307
1307
|
type: Pipe,
|
|
1308
1308
|
args: [{ name: 'axDate' }]
|
|
1309
1309
|
}] });
|
|
@@ -1348,10 +1348,10 @@ class AXDateFormatter {
|
|
|
1348
1348
|
.convert(value, effectiveOptions.calendar)
|
|
1349
1349
|
.format(format, { locale: effectiveOptions.locale });
|
|
1350
1350
|
}
|
|
1351
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1352
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1351
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1352
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter }); }
|
|
1353
1353
|
}
|
|
1354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateFormatter, decorators: [{
|
|
1355
1355
|
type: Injectable
|
|
1356
1356
|
}] });
|
|
1357
1357
|
|
|
@@ -1405,10 +1405,10 @@ class AXDateTimeFormatter {
|
|
|
1405
1405
|
.convert(value, effectiveOptions.calendar)
|
|
1406
1406
|
.format(format, { locale: effectiveOptions.locale });
|
|
1407
1407
|
}
|
|
1408
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1409
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1409
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter }); }
|
|
1410
1410
|
}
|
|
1411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
|
|
1412
1412
|
type: Injectable
|
|
1413
1413
|
}] });
|
|
1414
1414
|
|
|
@@ -1458,7 +1458,7 @@ class AXTimeDurationFormatter {
|
|
|
1458
1458
|
// Join the parts according to the format
|
|
1459
1459
|
return formattedTime.join(format.includes('ms') || format.includes('MS') ? ':' : ':');
|
|
1460
1460
|
}
|
|
1461
|
-
async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false, maskDigits = '00:00:00:00:00:00:00:000', padZero = false) {
|
|
1461
|
+
async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false, maskDigits = '00:00:00:00:00:00:00:000', padZero = false, sequence = 'descending') {
|
|
1462
1462
|
if (ms <= 0)
|
|
1463
1463
|
return '';
|
|
1464
1464
|
const yearDigits = maskDigits.split(':')[0];
|
|
@@ -1496,10 +1496,12 @@ class AXTimeDurationFormatter {
|
|
|
1496
1496
|
];
|
|
1497
1497
|
const startIndex = units.findIndex((u) => u.key === startUnit.toUpperCase());
|
|
1498
1498
|
const endIndex = units.findIndex((u) => u.key === endUnit.toUpperCase());
|
|
1499
|
-
if (startIndex === -1 || endIndex === -1
|
|
1499
|
+
if (startIndex === -1 || endIndex === -1) {
|
|
1500
1500
|
throw new Error('Invalid time unit range');
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1502
|
+
const from = Math.min(startIndex, endIndex);
|
|
1503
|
+
const to = Math.max(startIndex, endIndex);
|
|
1504
|
+
const limitedUnits = units.slice(from, to + 1);
|
|
1503
1505
|
let remainingMs = ms;
|
|
1504
1506
|
const result = [];
|
|
1505
1507
|
for (let i = 0; i < limitedUnits.length; i++) {
|
|
@@ -1517,24 +1519,28 @@ class AXTimeDurationFormatter {
|
|
|
1517
1519
|
: `${padZero ? unitValue.toString().padStart(unit.digits.length, '0') : unitValue}`;
|
|
1518
1520
|
result.push(displayValue);
|
|
1519
1521
|
}
|
|
1522
|
+
let orderedResult = result;
|
|
1523
|
+
if (sequence === 'ascending') {
|
|
1524
|
+
orderedResult = [...result].reverse();
|
|
1525
|
+
}
|
|
1520
1526
|
const separator = label ? ' : ' : ':';
|
|
1521
1527
|
const reverseSeparator = label ? ' : ' : ':';
|
|
1522
1528
|
if (label) {
|
|
1523
1529
|
if (this.translationService.getActiveLang() === 'fa-IR') {
|
|
1524
|
-
return
|
|
1530
|
+
return orderedResult.reverse().join(reverseSeparator);
|
|
1525
1531
|
}
|
|
1526
1532
|
else {
|
|
1527
|
-
return
|
|
1533
|
+
return orderedResult.join(separator);
|
|
1528
1534
|
}
|
|
1529
1535
|
}
|
|
1530
1536
|
else {
|
|
1531
|
-
return
|
|
1537
|
+
return orderedResult.join(separator);
|
|
1532
1538
|
}
|
|
1533
1539
|
}
|
|
1534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1535
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1540
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1541
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter }); }
|
|
1536
1542
|
}
|
|
1537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
|
|
1538
1544
|
type: Injectable
|
|
1539
1545
|
}] });
|
|
1540
1546
|
|
|
@@ -1578,10 +1584,10 @@ class AXTimeFormatter {
|
|
|
1578
1584
|
.convert(value, effectiveOptions.calendar)
|
|
1579
1585
|
.format(format, { locale: effectiveOptions.locale });
|
|
1580
1586
|
}
|
|
1581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1582
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1588
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter }); }
|
|
1583
1589
|
}
|
|
1584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeFormatter, decorators: [{
|
|
1585
1591
|
type: Injectable
|
|
1586
1592
|
}] });
|
|
1587
1593
|
|
|
@@ -1703,21 +1709,21 @@ class AXTimeLeftFormatter {
|
|
|
1703
1709
|
return 'Invalid format';
|
|
1704
1710
|
}
|
|
1705
1711
|
}
|
|
1706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1707
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
1712
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1713
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter }); }
|
|
1708
1714
|
}
|
|
1709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
|
|
1710
1716
|
type: Injectable
|
|
1711
1717
|
}] });
|
|
1712
1718
|
|
|
1713
1719
|
class AXDateTimeModule {
|
|
1714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1715
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
1716
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
1720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1721
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
|
|
1722
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
|
|
1717
1723
|
formatters: [AXDateTimeFormatter, AXDateFormatter, AXTimeFormatter, AXTimeLeftFormatter, AXTimeDurationFormatter],
|
|
1718
1724
|
})] }); }
|
|
1719
1725
|
}
|
|
1720
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXDateTimeModule, decorators: [{
|
|
1721
1727
|
type: NgModule,
|
|
1722
1728
|
args: [{
|
|
1723
1729
|
imports: [
|