@onemrvapublic/design-system 18.2.16-develop.8 → 18.2.16-develop.9
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/esm2022/shared/src/lib/adapters/index.mjs +4 -3
- package/esm2022/shared/src/lib/adapters/luxon.date.adapter.mjs +248 -0
- package/esm2022/shared/src/lib/adapters/luxon.utils.mjs +23 -0
- package/esm2022/shared/src/lib/adapters/luxon.year-month.date.adapter.mjs +248 -0
- package/esm2022/shared/src/lib/adapters/native.date.adapter.mjs +66 -0
- package/esm2022/shared/src/lib/adapters/native.year-month.date.adapter.mjs +59 -0
- package/esm2022/shared/src/lib/providers/onemrva.date.luxon.provider.mjs +9 -8
- package/esm2022/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.mjs +10 -9
- package/esm2022/shared/src/lib/providers/onemrva.date.native.provider.mjs +4 -10
- package/esm2022/shared/src/lib/providers/onemrva.date.native.year.month.provider.mjs +4 -10
- package/fesm2022/onemrvapublic-design-system-shared.mjs +287 -30
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/src/lib/adapters/index.d.ts +3 -2
- package/shared/src/lib/adapters/luxon.date.adapter.d.ts +50 -0
- package/shared/src/lib/adapters/luxon.utils.d.ts +26 -0
- package/shared/src/lib/adapters/luxon.year-month.date.adapter.d.ts +50 -0
- package/shared/src/lib/adapters/{date.adapter.d.ts → native.date.adapter.d.ts} +3 -3
- package/shared/src/lib/adapters/{year-month.adapter.d.ts → native.year-month.date.adapter.d.ts} +3 -3
- package/esm2022/shared/src/lib/adapters/date.adapter.mjs +0 -66
- package/esm2022/shared/src/lib/adapters/year-month.adapter.mjs +0 -59
|
@@ -21,7 +21,7 @@ import { DateAdapter, MatNativeDateModule, MAT_DATE_LOCALE, NativeDateAdapter, M
|
|
|
21
21
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
22
22
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
23
23
|
import { provideLuxonDateAdapter } from '@angular/material-luxon-adapter';
|
|
24
|
-
import { DateTime } from 'luxon';
|
|
24
|
+
import { DateTime, Info } from 'luxon';
|
|
25
25
|
|
|
26
26
|
class ClipboardIconComponent {
|
|
27
27
|
constructor(_elementRef, clipboardService) {
|
|
@@ -1413,7 +1413,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1413
1413
|
}]
|
|
1414
1414
|
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1415
1415
|
|
|
1416
|
-
class
|
|
1416
|
+
class OnemrvaNativeDateAdapter extends NativeDateAdapter {
|
|
1417
1417
|
constructor(translateService) {
|
|
1418
1418
|
super();
|
|
1419
1419
|
this.translateService = translateService;
|
|
@@ -1465,14 +1465,277 @@ class OnemrvaDateAdapter extends NativeDateAdapter {
|
|
|
1465
1465
|
this.destroyNotifier$.next();
|
|
1466
1466
|
this.destroyNotifier$.complete();
|
|
1467
1467
|
}
|
|
1468
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1469
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1468
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1469
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeDateAdapter }); }
|
|
1470
1470
|
}
|
|
1471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeDateAdapter, decorators: [{
|
|
1472
1472
|
type: Injectable
|
|
1473
1473
|
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1474
1474
|
|
|
1475
|
-
|
|
1475
|
+
/** InjectionToken for LuxonDateAdapter to configure options. */
|
|
1476
|
+
const MAT_LUXON_DATE_ADAPTER_OPTIONS = new InjectionToken('MAT_LUXON_DATE_ADAPTER_OPTIONS', {
|
|
1477
|
+
providedIn: 'root',
|
|
1478
|
+
factory: MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY,
|
|
1479
|
+
});
|
|
1480
|
+
/** @docs-private */
|
|
1481
|
+
function MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY() {
|
|
1482
|
+
return {
|
|
1483
|
+
useUtc: false,
|
|
1484
|
+
firstDayOfWeek: 0,
|
|
1485
|
+
defaultOutputCalendar: 'gregory',
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
/** Creates an array and fills it with values. */
|
|
1489
|
+
function luxonRange(length, valueFunction) {
|
|
1490
|
+
const valuesArray = Array(length);
|
|
1491
|
+
for (let i = 0; i < length; i++) {
|
|
1492
|
+
valuesArray[i] = valueFunction(i);
|
|
1493
|
+
}
|
|
1494
|
+
return valuesArray;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* @license
|
|
1499
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1500
|
+
*
|
|
1501
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1502
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
1503
|
+
*/
|
|
1504
|
+
/** Adapts Luxon Dates for use with Angular Material. */
|
|
1505
|
+
class OnemrvaLuxonDateAdapter extends DateAdapter {
|
|
1506
|
+
constructor(translateService) {
|
|
1507
|
+
super();
|
|
1508
|
+
this.translateService = translateService;
|
|
1509
|
+
const dateLocale = inject(MAT_DATE_LOCALE, { optional: true });
|
|
1510
|
+
const options = inject(MAT_LUXON_DATE_ADAPTER_OPTIONS, {
|
|
1511
|
+
optional: true,
|
|
1512
|
+
});
|
|
1513
|
+
this._useUTC = !!options?.useUtc;
|
|
1514
|
+
this._firstDayOfWeek = options?.firstDayOfWeek || 0;
|
|
1515
|
+
this._defaultOutputCalendar = options?.defaultOutputCalendar || 'gregory';
|
|
1516
|
+
this.setLocale(dateLocale || DateTime.local().locale);
|
|
1517
|
+
this.setLocale(this.translateService.currentLang);
|
|
1518
|
+
if (this.translateService !== undefined) {
|
|
1519
|
+
this.translateService.onLangChange
|
|
1520
|
+
.pipe(takeUntilDestroyed())
|
|
1521
|
+
.subscribe(({ lang }) => {
|
|
1522
|
+
this.setLocale(lang);
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
getYear(date) {
|
|
1527
|
+
return date.year;
|
|
1528
|
+
}
|
|
1529
|
+
getMonth(date) {
|
|
1530
|
+
// Luxon works with 1-indexed months whereas our code expects 0-indexed.
|
|
1531
|
+
return date.month - 1;
|
|
1532
|
+
}
|
|
1533
|
+
getDate(date) {
|
|
1534
|
+
return date.day;
|
|
1535
|
+
}
|
|
1536
|
+
getDayOfWeek(date) {
|
|
1537
|
+
return date.weekday;
|
|
1538
|
+
}
|
|
1539
|
+
getMonthNames(style) {
|
|
1540
|
+
// Adding outputCalendar option, because LuxonInfo doesn't get effected by LuxonSettings
|
|
1541
|
+
return Info.months(style, {
|
|
1542
|
+
locale: this.locale,
|
|
1543
|
+
outputCalendar: this._defaultOutputCalendar,
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
getDateNames() {
|
|
1547
|
+
// At the time of writing, Luxon doesn't offer similar
|
|
1548
|
+
// functionality so we have to fall back to the Intl API.
|
|
1549
|
+
const dtf = new Intl.DateTimeFormat(this.locale, {
|
|
1550
|
+
day: 'numeric',
|
|
1551
|
+
timeZone: 'utc',
|
|
1552
|
+
});
|
|
1553
|
+
// Format a UTC date in order to avoid DST issues.
|
|
1554
|
+
return luxonRange(31, i => dtf.format(DateTime.utc(2017, 1, i + 1).toJSDate()));
|
|
1555
|
+
}
|
|
1556
|
+
getDayOfWeekNames(style) {
|
|
1557
|
+
// Note that we shift the array once, because Luxon returns Monday as the
|
|
1558
|
+
// first day of the week, whereas our logic assumes that it's Sunday. See:
|
|
1559
|
+
// https://moment.github.io/luxon/api-docs/index.html#infoweekdays
|
|
1560
|
+
const days = Info.weekdays(style, { locale: this.locale });
|
|
1561
|
+
days.unshift(days.pop());
|
|
1562
|
+
return days;
|
|
1563
|
+
}
|
|
1564
|
+
getYearName(date) {
|
|
1565
|
+
return date.toFormat('yyyy', this._getOptions());
|
|
1566
|
+
}
|
|
1567
|
+
getFirstDayOfWeek() {
|
|
1568
|
+
return this._firstDayOfWeek;
|
|
1569
|
+
}
|
|
1570
|
+
getNumDaysInMonth(date) {
|
|
1571
|
+
return date.daysInMonth;
|
|
1572
|
+
}
|
|
1573
|
+
clone(date) {
|
|
1574
|
+
return DateTime.fromObject(date.toObject(), this._getOptions());
|
|
1575
|
+
}
|
|
1576
|
+
createDate(year, month, date) {
|
|
1577
|
+
const options = this._getOptions();
|
|
1578
|
+
if (month < 0 || month > 11) {
|
|
1579
|
+
throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);
|
|
1580
|
+
}
|
|
1581
|
+
if (date < 1) {
|
|
1582
|
+
throw Error(`Invalid date "${date}". Date has to be greater than 0.`);
|
|
1583
|
+
}
|
|
1584
|
+
// Luxon uses 1-indexed months so we need to add one to the month.
|
|
1585
|
+
const result = this._useUTC
|
|
1586
|
+
? DateTime.utc(year, month + 1, date, options)
|
|
1587
|
+
: DateTime.local(year, month + 1, date, options);
|
|
1588
|
+
if (!this.isValid(result)) {
|
|
1589
|
+
throw Error(`Invalid date "${date}". Reason: "${result.invalidReason}".`);
|
|
1590
|
+
}
|
|
1591
|
+
return result;
|
|
1592
|
+
}
|
|
1593
|
+
today() {
|
|
1594
|
+
const options = this._getOptions();
|
|
1595
|
+
return this._useUTC
|
|
1596
|
+
? DateTime.utc(options)
|
|
1597
|
+
: DateTime.local(options);
|
|
1598
|
+
}
|
|
1599
|
+
parse(value, parseFormat) {
|
|
1600
|
+
const options = this._getOptions();
|
|
1601
|
+
if (typeof value == 'string' && value.length > 0) {
|
|
1602
|
+
const iso8601Date = DateTime.fromISO(value, options);
|
|
1603
|
+
if (this.isValid(iso8601Date)) {
|
|
1604
|
+
return iso8601Date;
|
|
1605
|
+
}
|
|
1606
|
+
const formats = Array.isArray(parseFormat) ? parseFormat : [parseFormat];
|
|
1607
|
+
if (!parseFormat.length) {
|
|
1608
|
+
throw Error('Formats array must not be empty.');
|
|
1609
|
+
}
|
|
1610
|
+
for (const format of formats) {
|
|
1611
|
+
const fromFormat = DateTime.fromFormat(value, format, options);
|
|
1612
|
+
if (this.isValid(fromFormat)) {
|
|
1613
|
+
return fromFormat;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
return this.invalid();
|
|
1617
|
+
}
|
|
1618
|
+
else if (typeof value === 'number') {
|
|
1619
|
+
return DateTime.fromMillis(value, options);
|
|
1620
|
+
}
|
|
1621
|
+
else if (value instanceof Date) {
|
|
1622
|
+
return DateTime.fromJSDate(value, options);
|
|
1623
|
+
}
|
|
1624
|
+
else if (value instanceof DateTime) {
|
|
1625
|
+
return DateTime.fromMillis(value.toMillis(), options);
|
|
1626
|
+
}
|
|
1627
|
+
return null;
|
|
1628
|
+
}
|
|
1629
|
+
format(date, displayFormat) {
|
|
1630
|
+
if (!this.isValid(date)) {
|
|
1631
|
+
throw Error('LuxonDateAdapter: Cannot format invalid date.');
|
|
1632
|
+
}
|
|
1633
|
+
if (this._useUTC) {
|
|
1634
|
+
return date.setLocale(this.locale).setZone('utc').toFormat(displayFormat);
|
|
1635
|
+
}
|
|
1636
|
+
else {
|
|
1637
|
+
return date.setLocale(this.locale).toFormat(displayFormat);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
addCalendarYears(date, years) {
|
|
1641
|
+
return date.reconfigure(this._getOptions()).plus({ years });
|
|
1642
|
+
}
|
|
1643
|
+
addCalendarMonths(date, months) {
|
|
1644
|
+
return date.reconfigure(this._getOptions()).plus({ months });
|
|
1645
|
+
}
|
|
1646
|
+
addCalendarDays(date, days) {
|
|
1647
|
+
return date.reconfigure(this._getOptions()).plus({ days });
|
|
1648
|
+
}
|
|
1649
|
+
toIso8601(date) {
|
|
1650
|
+
return date.toISO();
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Returns the given value if given a valid Luxon or null. Deserializes valid ISO 8601 strings
|
|
1654
|
+
* (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid DateTime and empty
|
|
1655
|
+
* string into null. Returns an invalid date for all other values.
|
|
1656
|
+
*/
|
|
1657
|
+
deserialize(value) {
|
|
1658
|
+
const options = this._getOptions();
|
|
1659
|
+
let date;
|
|
1660
|
+
if (value instanceof Date) {
|
|
1661
|
+
date = DateTime.fromJSDate(value, options);
|
|
1662
|
+
}
|
|
1663
|
+
if (typeof value === 'string') {
|
|
1664
|
+
if (!value) {
|
|
1665
|
+
return null;
|
|
1666
|
+
}
|
|
1667
|
+
date = DateTime.fromISO(value, options);
|
|
1668
|
+
}
|
|
1669
|
+
if (date && this.isValid(date)) {
|
|
1670
|
+
return date;
|
|
1671
|
+
}
|
|
1672
|
+
return super.deserialize(value);
|
|
1673
|
+
}
|
|
1674
|
+
isDateInstance(obj) {
|
|
1675
|
+
return obj instanceof DateTime;
|
|
1676
|
+
}
|
|
1677
|
+
isValid(date) {
|
|
1678
|
+
return date.isValid;
|
|
1679
|
+
}
|
|
1680
|
+
invalid() {
|
|
1681
|
+
return DateTime.invalid('Invalid Luxon DateTime object.');
|
|
1682
|
+
}
|
|
1683
|
+
setTime(target, hours, minutes, seconds) {
|
|
1684
|
+
//if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1685
|
+
if (hours < 0 || hours > 23) {
|
|
1686
|
+
throw Error(`Invalid hours "${hours}". Hours value must be between 0 and 23.`);
|
|
1687
|
+
}
|
|
1688
|
+
if (minutes < 0 || minutes > 59) {
|
|
1689
|
+
throw Error(`Invalid minutes "${minutes}". Minutes value must be between 0 and 59.`);
|
|
1690
|
+
}
|
|
1691
|
+
if (seconds < 0 || seconds > 59) {
|
|
1692
|
+
throw Error(`Invalid seconds "${seconds}". Seconds value must be between 0 and 59.`);
|
|
1693
|
+
}
|
|
1694
|
+
//}
|
|
1695
|
+
return this.clone(target).set({
|
|
1696
|
+
hour: hours,
|
|
1697
|
+
minute: minutes,
|
|
1698
|
+
second: seconds,
|
|
1699
|
+
millisecond: 0,
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
getHours(date) {
|
|
1703
|
+
return date.hour;
|
|
1704
|
+
}
|
|
1705
|
+
getMinutes(date) {
|
|
1706
|
+
return date.minute;
|
|
1707
|
+
}
|
|
1708
|
+
getSeconds(date) {
|
|
1709
|
+
return date.second;
|
|
1710
|
+
}
|
|
1711
|
+
parseTime(value, parseFormat) {
|
|
1712
|
+
const result = this.parse(value, parseFormat);
|
|
1713
|
+
if ((!result || !this.isValid(result)) && typeof value === 'string') {
|
|
1714
|
+
// It seems like Luxon doesn't work well cross-browser for strings that have
|
|
1715
|
+
// additional characters around the time. Try parsing without those characters.
|
|
1716
|
+
return (this.parse(value.replace(/[^0-9:(AM|PM)]/gi, ''), parseFormat) || result);
|
|
1717
|
+
}
|
|
1718
|
+
return result;
|
|
1719
|
+
}
|
|
1720
|
+
addSeconds(date, amount) {
|
|
1721
|
+
return date.reconfigure(this._getOptions()).plus({ seconds: amount });
|
|
1722
|
+
}
|
|
1723
|
+
/** Gets the options that should be used when constructing a new `DateTime` object. */
|
|
1724
|
+
_getOptions() {
|
|
1725
|
+
return {
|
|
1726
|
+
zone: this._useUTC ? 'utc' : undefined,
|
|
1727
|
+
locale: this.locale,
|
|
1728
|
+
outputCalendar: this._defaultOutputCalendar,
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaLuxonDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1732
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaLuxonDateAdapter }); }
|
|
1733
|
+
}
|
|
1734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaLuxonDateAdapter, decorators: [{
|
|
1735
|
+
type: Injectable
|
|
1736
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1737
|
+
|
|
1738
|
+
class OnemrvaNativeYearMonthAdapter extends NativeDateAdapter {
|
|
1476
1739
|
constructor(translateService) {
|
|
1477
1740
|
super();
|
|
1478
1741
|
this.translateService = translateService;
|
|
@@ -1518,45 +1781,35 @@ class OnemrvaYearMonthAdapter extends NativeDateAdapter {
|
|
|
1518
1781
|
this.destroyNotifier$.next();
|
|
1519
1782
|
this.destroyNotifier$.complete();
|
|
1520
1783
|
}
|
|
1521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1522
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeYearMonthAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1785
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeYearMonthAdapter }); }
|
|
1523
1786
|
}
|
|
1524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type:
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaNativeYearMonthAdapter, decorators: [{
|
|
1525
1788
|
type: Injectable
|
|
1526
1789
|
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1527
1790
|
|
|
1528
1791
|
function onemrvaDateNativeYearMonthProvider() {
|
|
1529
1792
|
return [
|
|
1530
|
-
{
|
|
1531
|
-
provide: MAT_DATE_LOCALE,
|
|
1532
|
-
useFactory: (translateService) => translateService.currentLang,
|
|
1533
|
-
deps: [TranslateService],
|
|
1534
|
-
},
|
|
1535
1793
|
{
|
|
1536
1794
|
provide: MAT_DATE_FORMATS,
|
|
1537
1795
|
useValue: ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT,
|
|
1538
1796
|
},
|
|
1539
1797
|
{
|
|
1540
1798
|
provide: DateAdapter,
|
|
1541
|
-
useValue:
|
|
1799
|
+
useValue: OnemrvaNativeDateAdapter,
|
|
1542
1800
|
},
|
|
1543
1801
|
];
|
|
1544
1802
|
}
|
|
1545
1803
|
|
|
1546
1804
|
function onemrvaDateNativeProvider() {
|
|
1547
1805
|
return [
|
|
1548
|
-
{
|
|
1549
|
-
provide: MAT_DATE_LOCALE,
|
|
1550
|
-
useFactory: (translateService) => translateService.currentLang,
|
|
1551
|
-
deps: [TranslateService],
|
|
1552
|
-
},
|
|
1553
1806
|
{
|
|
1554
1807
|
provide: MAT_DATE_FORMATS,
|
|
1555
1808
|
useValue: ONEMRVA_MAT_NATIVE_DATE_FORMAT,
|
|
1556
1809
|
},
|
|
1557
1810
|
{
|
|
1558
1811
|
provide: DateAdapter,
|
|
1559
|
-
useClass:
|
|
1812
|
+
useClass: OnemrvaNativeDateAdapter,
|
|
1560
1813
|
},
|
|
1561
1814
|
];
|
|
1562
1815
|
}
|
|
@@ -1564,22 +1817,26 @@ function onemrvaDateNativeProvider() {
|
|
|
1564
1817
|
function onemrvaDateLuxonProvider() {
|
|
1565
1818
|
return [
|
|
1566
1819
|
{
|
|
1567
|
-
provide:
|
|
1568
|
-
|
|
1569
|
-
|
|
1820
|
+
provide: MAT_DATE_FORMATS,
|
|
1821
|
+
useValue: ONEMRVA_MAT_LUXON_DATE_FORMATS,
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
provide: DateAdapter,
|
|
1825
|
+
useClass: OnemrvaLuxonDateAdapter,
|
|
1570
1826
|
},
|
|
1571
|
-
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_DATE_FORMATS),
|
|
1572
1827
|
];
|
|
1573
1828
|
}
|
|
1574
1829
|
|
|
1575
1830
|
function onemrvaDateLuxonYearMonthProvider() {
|
|
1576
1831
|
return [
|
|
1577
1832
|
{
|
|
1578
|
-
provide:
|
|
1579
|
-
|
|
1580
|
-
|
|
1833
|
+
provide: MAT_DATE_FORMATS,
|
|
1834
|
+
useValue: ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS,
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
provide: DateAdapter,
|
|
1838
|
+
useClass: OnemrvaLuxonDateAdapter,
|
|
1581
1839
|
},
|
|
1582
|
-
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS),
|
|
1583
1840
|
];
|
|
1584
1841
|
}
|
|
1585
1842
|
|
|
@@ -1591,5 +1848,5 @@ function onemrvaDateLuxonYearMonthProvider() {
|
|
|
1591
1848
|
* Generated bundle index. Do not edit.
|
|
1592
1849
|
*/
|
|
1593
1850
|
|
|
1594
|
-
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, MatRowClickableDirective, NISS_MASK, ONEMRVA_MAT_LUXON_DATE_FORMATS, ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS, ONEMRVA_MAT_NATIVE_DATE_FORMAT, ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemrvaBcePipe,
|
|
1851
|
+
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, MatRowClickableDirective, NISS_MASK, ONEMRVA_MAT_LUXON_DATE_FORMATS, ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS, ONEMRVA_MAT_NATIVE_DATE_FORMAT, ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemrvaBcePipe, OnemrvaDatepickerLuxonSharedModule, OnemrvaDatepickerLuxonYearMonthSharedModule, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaNativeDateAdapter, OnemrvaNativeYearMonthAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, setTranslationLanguage, setTranslationLanguageFromWO };
|
|
1595
1852
|
//# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map
|