@wavemaker/app-ng-runtime 11.5.2-next.141129 → 11.5.2-next.141132
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.
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +39 -201
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +0 -106
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +1 -2
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +26 -67
- app-ng-runtime/components/input/epoch/esm2022/epoch.module.mjs +4 -8
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +30 -194
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +0 -103
- app-ng-runtime/components/input/epoch/esm2022/date/imaskUtil.mjs +0 -121
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/datepicker'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/timepicker'), require('@wm/components/base'), require('@wm/core'), require('@wm/components/input'), require('ngx-bootstrap/modal')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', '@wm/components/base', '@wm/core', '@wm/components/input', 'ngx-bootstrap/modal'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.epoch = {}), global.ng.core, global.ng.common, global.ng.forms, global.datepicker, global.dropdown, global.timepicker, global.wm.components.base, global.wm.core, global.wm.components.input, global.modal
|
|
5
|
-
})(this, (function (exports, i0, i2, i5, i3, i4
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/datepicker'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/timepicker'), require('@wm/components/base'), require('@wm/core'), require('@wm/components/input'), require('ngx-bootstrap/modal')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', '@wm/components/base', '@wm/core', '@wm/components/input', 'ngx-bootstrap/modal'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.epoch = {}), global.ng.core, global.ng.common, global.ng.forms, global.datepicker, global.dropdown, global.timepicker, global.wm.components.base, global.wm.core, global.wm.components.input, global.modal));
|
|
5
|
+
})(this, (function (exports, i0, i2, i5, i3, i4, i6, base, i1$1, input, i1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -25,11 +25,10 @@
|
|
|
25
25
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
26
26
|
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
27
27
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
28
|
-
var
|
|
28
|
+
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
29
29
|
var i6__namespace = /*#__PURE__*/_interopNamespaceDefault(i6);
|
|
30
30
|
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
31
31
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
32
|
-
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
33
32
|
|
|
34
33
|
const _c0$4 = ["*"];
|
|
35
34
|
function PickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1621,7 +1620,7 @@
|
|
|
1621
1620
|
}
|
|
1622
1621
|
static { this.ɵfac = function BaseDateTimeComponent_Factory(t) { i0__namespace.ɵɵinvalidFactory(); }; }
|
|
1623
1622
|
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: BaseDateTimeComponent, viewQuery: function BaseDateTimeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1624
|
-
i0__namespace.ɵɵviewQuery(i4
|
|
1623
|
+
i0__namespace.ɵɵviewQuery(i4.BsDropdownDirective, 5);
|
|
1625
1624
|
i0__namespace.ɵɵviewQuery(i6.TimepickerComponent, 5);
|
|
1626
1625
|
i0__namespace.ɵɵviewQuery(DateTimePickerComponent, 5);
|
|
1627
1626
|
} if (rf & 2) {
|
|
@@ -1635,7 +1634,7 @@
|
|
|
1635
1634
|
type: i0.Directive
|
|
1636
1635
|
}], function () { return [{ type: i0__namespace.Injector }, { type: undefined }]; }, { bsDropdown: [{
|
|
1637
1636
|
type: i0.ViewChild,
|
|
1638
|
-
args: [i4
|
|
1637
|
+
args: [i4.BsDropdownDirective]
|
|
1639
1638
|
}], bsTimePicker: [{
|
|
1640
1639
|
type: i0.ViewChild,
|
|
1641
1640
|
args: [i6.TimepickerComponent]
|
|
@@ -1682,142 +1681,21 @@
|
|
|
1682
1681
|
base.registerFormWidget(i1$1.FormWidgetType.DATE, new Map(dateProps));
|
|
1683
1682
|
};
|
|
1684
1683
|
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
'May',
|
|
1691
|
-
'June',
|
|
1692
|
-
'July',
|
|
1693
|
-
'August',
|
|
1694
|
-
'September',
|
|
1695
|
-
'October',
|
|
1696
|
-
'November',
|
|
1697
|
-
'December',
|
|
1698
|
-
];
|
|
1699
|
-
function validateTheMaskedDate(format) {
|
|
1700
|
-
if (format == 'timestamp') {
|
|
1701
|
-
return {};
|
|
1702
|
-
}
|
|
1703
|
-
const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
|
|
1704
|
-
const parseFn = str => {
|
|
1705
|
-
return moment(str, modifiedFormat).toDate();
|
|
1706
|
-
};
|
|
1707
|
-
const formatFn = date => {
|
|
1708
|
-
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1709
|
-
};
|
|
1710
|
-
return {
|
|
1711
|
-
mask: Date,
|
|
1712
|
-
pattern: modifiedFormat,
|
|
1713
|
-
format: formatFn,
|
|
1714
|
-
parse: parseFn,
|
|
1715
|
-
blocks: {
|
|
1716
|
-
YYYY: {
|
|
1717
|
-
mask: IMask.MaskedRange,
|
|
1718
|
-
from: 1900,
|
|
1719
|
-
to: 9999,
|
|
1720
|
-
placeholderChar: 'Y',
|
|
1721
|
-
maxLength: 4,
|
|
1722
|
-
},
|
|
1723
|
-
YYY: {
|
|
1724
|
-
mask: IMask.MaskedRange,
|
|
1725
|
-
from: 900,
|
|
1726
|
-
to: 999,
|
|
1727
|
-
placeholderChar: 'Y',
|
|
1728
|
-
maxLength: 3,
|
|
1729
|
-
overwrite: false,
|
|
1730
|
-
},
|
|
1731
|
-
YY: {
|
|
1732
|
-
mask: IMask.MaskedRange,
|
|
1733
|
-
from: 0,
|
|
1734
|
-
to: 99,
|
|
1735
|
-
placeholderChar: 'Y',
|
|
1736
|
-
maxLength: 2,
|
|
1737
|
-
},
|
|
1738
|
-
Y: {
|
|
1739
|
-
mask: IMask.MaskedRange,
|
|
1740
|
-
from: 0,
|
|
1741
|
-
to: 9999,
|
|
1742
|
-
placeholderChar: 'Y',
|
|
1743
|
-
maxLength: 4,
|
|
1744
|
-
},
|
|
1745
|
-
M: {
|
|
1746
|
-
mask: IMask.MaskedRange,
|
|
1747
|
-
from: 1,
|
|
1748
|
-
to: 12,
|
|
1749
|
-
placeholderChar: 'M',
|
|
1750
|
-
maxLength: 2,
|
|
1751
|
-
},
|
|
1752
|
-
MM: {
|
|
1753
|
-
mask: IMask.MaskedRange,
|
|
1754
|
-
from: 1,
|
|
1755
|
-
to: 12,
|
|
1756
|
-
placeholderChar: 'M',
|
|
1757
|
-
maxLength: 2,
|
|
1758
|
-
},
|
|
1759
|
-
MMM: {
|
|
1760
|
-
mask: IMask.MaskedEnum,
|
|
1761
|
-
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
|
|
1762
|
-
placeholderChar: 'M',
|
|
1763
|
-
maxLength: 3,
|
|
1764
|
-
},
|
|
1765
|
-
MMMM: {
|
|
1766
|
-
mask: IMask.MaskedEnum,
|
|
1767
|
-
enum: monthNamesLong,
|
|
1768
|
-
placeholderChar: "M",
|
|
1769
|
-
maxLength: 4
|
|
1770
|
-
},
|
|
1771
|
-
DD: {
|
|
1772
|
-
mask: IMask.MaskedRange,
|
|
1773
|
-
from: 1,
|
|
1774
|
-
to: 31,
|
|
1775
|
-
placeholderChar: 'D',
|
|
1776
|
-
maxLength: 2,
|
|
1777
|
-
},
|
|
1778
|
-
D: {
|
|
1779
|
-
mask: IMask.MaskedRange,
|
|
1780
|
-
from: 1,
|
|
1781
|
-
to: 31,
|
|
1782
|
-
placeholderChar: 'D',
|
|
1783
|
-
maxLength: 1,
|
|
1784
|
-
},
|
|
1785
|
-
ddd: {
|
|
1786
|
-
mask: IMask.MaskedEnum,
|
|
1787
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
|
|
1788
|
-
placeholderChar: 'E',
|
|
1789
|
-
maxLength: 3,
|
|
1790
|
-
},
|
|
1791
|
-
dddd: {
|
|
1792
|
-
mask: IMask.MaskedEnum,
|
|
1793
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
|
|
1794
|
-
placeholderChar: 'E',
|
|
1795
|
-
minLength: 6,
|
|
1796
|
-
},
|
|
1797
|
-
},
|
|
1798
|
-
autofix: true,
|
|
1799
|
-
lazy: false,
|
|
1800
|
-
overwrite: true,
|
|
1801
|
-
skipInvalid: true
|
|
1802
|
-
};
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
const _c0$2 = ["dateInput"];
|
|
1806
|
-
const _c1 = ["wmDate", ""];
|
|
1807
|
-
function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1808
|
-
const _r4 = i0__namespace.ɵɵgetCurrentView();
|
|
1809
|
-
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
1810
|
-
i0__namespace.ɵɵlistener("change", function DateComponent_ng_template_8_Template_wm_datetimepicker_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r4); const ctx_r3 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r3.onDateChange($event)); });
|
|
1684
|
+
const _c0$2 = ["wmDate", ""];
|
|
1685
|
+
function DateComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1686
|
+
const _r3 = i0__namespace.ɵɵgetCurrentView();
|
|
1687
|
+
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker", 8);
|
|
1688
|
+
i0__namespace.ɵɵlistener("change", function DateComponent_ng_template_7_Template_wm_datetimepicker_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r2 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(ctx_r2.onDateChange($event)); });
|
|
1811
1689
|
i0__namespace.ɵɵelementEnd();
|
|
1812
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
1813
|
-
i0__namespace.ɵɵlistener("click", function
|
|
1690
|
+
i0__namespace.ɵɵelementStart(1, "div", 9);
|
|
1691
|
+
i0__namespace.ɵɵlistener("click", function DateComponent_ng_template_7_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r3); const ctx_r4 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(!(ctx_r4.disabled || ctx_r4.readonly || ctx_r4.isCurrentDate) && ctx_r4.showDatePickerModal(ctx_r4.bsDataValue)); })("focus", function DateComponent_ng_template_7_Template_div_focus_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r5 = i0__namespace.ɵɵnextContext(); ctx_r5.onDateTimeInputFocus(true); return i0__namespace.ɵɵresetView(ctx_r5.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_7_Template_div_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.onDateTimeInputBlur(); return i0__namespace.ɵɵresetView(ctx_r6.invokeOnTouched($event)); });
|
|
1814
1692
|
i0__namespace.ɵɵelementEnd();
|
|
1815
1693
|
} if (rf & 2) {
|
|
1816
|
-
const
|
|
1817
|
-
i0__namespace.ɵɵproperty("config",
|
|
1694
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
1695
|
+
i0__namespace.ɵɵproperty("config", ctx_r1._dateOptions)("placement", ctx_r1.modal)("excludedDaysToDisable", ctx_r1.excludedDaysToDisable)("excludedDatesToDisable", ctx_r1.excludedDatesToDisable)("displayFormat", ctx_r1.dateInputFormat)("value", ctx_r1.bsDataValue);
|
|
1818
1696
|
i0__namespace.ɵɵadvance(1);
|
|
1819
|
-
i0__namespace.ɵɵproperty("tabindex",
|
|
1820
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
1697
|
+
i0__namespace.ɵɵproperty("tabindex", ctx_r1.tabindex || 0);
|
|
1698
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.displayValue ? "Change Date " + ctx_r1.displayValue : ctx_r1.hint || "Choose Date");
|
|
1821
1699
|
} }
|
|
1822
1700
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
1823
1701
|
const DEFAULT_CLS$2 = 'app-date input-group';
|
|
@@ -1843,14 +1721,6 @@
|
|
|
1843
1721
|
get datavalue() {
|
|
1844
1722
|
return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1845
1723
|
}
|
|
1846
|
-
get mask() {
|
|
1847
|
-
if (this.datepattern) {
|
|
1848
|
-
return validateTheMaskedDate(this.datepattern);
|
|
1849
|
-
}
|
|
1850
|
-
else {
|
|
1851
|
-
return {};
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
1724
|
// Todo[Shubham]: needs to be redefined
|
|
1855
1725
|
// sets the dataValue and computes the display model values
|
|
1856
1726
|
// @ts-ignore
|
|
@@ -1883,17 +1753,11 @@
|
|
|
1883
1753
|
this._bsDefaultLoadCheck = true;
|
|
1884
1754
|
this.datepattern = this.appDefaults.dateFormat || i1$1.getDisplayDateTimeFormat(i1$1.FormWidgetType.DATE);
|
|
1885
1755
|
this.updateFormat('datepattern');
|
|
1886
|
-
if (this.imask) {
|
|
1887
|
-
this.imask.maskRef.updateValue();
|
|
1888
|
-
}
|
|
1889
1756
|
}
|
|
1890
1757
|
/**
|
|
1891
1758
|
* This is an internal method triggered when the date input changes
|
|
1892
1759
|
*/
|
|
1893
1760
|
onDisplayDateChange($event, isNativePicker = false) {
|
|
1894
|
-
if (this.imask) {
|
|
1895
|
-
this.imask.maskRef.updateValue();
|
|
1896
|
-
}
|
|
1897
1761
|
if (this.isEnterPressedOnDateInput) {
|
|
1898
1762
|
this.isEnterPressedOnDateInput = false;
|
|
1899
1763
|
return;
|
|
@@ -1909,9 +1773,6 @@
|
|
|
1909
1773
|
if (isNativePicker && this.minDateMaxDateValidationOnInput(newVal, $event, this.displayValue, isNativePicker)) {
|
|
1910
1774
|
return;
|
|
1911
1775
|
}
|
|
1912
|
-
if (this.imask) {
|
|
1913
|
-
this.imask.maskRef.value = newVal.toDateString();
|
|
1914
|
-
}
|
|
1915
1776
|
this.setDataValue(newVal);
|
|
1916
1777
|
}
|
|
1917
1778
|
// sets the dataValue and computes the display model values
|
|
@@ -1925,7 +1786,6 @@
|
|
|
1925
1786
|
}
|
|
1926
1787
|
if (newVal) {
|
|
1927
1788
|
this.bsDataValue = newVal;
|
|
1928
|
-
this.imask.maskRef.value = newVal.toDateString();
|
|
1929
1789
|
}
|
|
1930
1790
|
else {
|
|
1931
1791
|
this.bsDataValue = undefined;
|
|
@@ -1938,9 +1798,6 @@
|
|
|
1938
1798
|
if (!this.bsDataValue) {
|
|
1939
1799
|
this.hightlightToday(this.activeDate);
|
|
1940
1800
|
}
|
|
1941
|
-
if (this.imask) {
|
|
1942
|
-
this.imask.maskRef.updateValue();
|
|
1943
|
-
}
|
|
1944
1801
|
// We are using the two input tags(To maintain the modal and proxy modal) for the date control.
|
|
1945
1802
|
// So actual bootstrap input target width we made it to 0, so bootstrap calculating the calendar container top position improperly.
|
|
1946
1803
|
// To fix the container top position set the width 1px;
|
|
@@ -1956,19 +1813,11 @@
|
|
|
1956
1813
|
i1$1.adjustContainerRightEdges($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
|
|
1957
1814
|
}
|
|
1958
1815
|
onInputBlur($event) {
|
|
1959
|
-
if (this.imask) {
|
|
1960
|
-
this.imask.maskRef.updateValue();
|
|
1961
|
-
}
|
|
1962
1816
|
if (!$($event.relatedTarget).hasClass('current-date')) {
|
|
1963
1817
|
this.invokeOnTouched();
|
|
1964
1818
|
this.invokeEventCallback('blur', { $event });
|
|
1965
1819
|
}
|
|
1966
1820
|
}
|
|
1967
|
-
onInputFocus($event) {
|
|
1968
|
-
if (this.imask) {
|
|
1969
|
-
this.imask.maskRef.value = $event.target.value;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
1821
|
hideDatepickerDropdown() {
|
|
1973
1822
|
this.invokeOnTouched();
|
|
1974
1823
|
this.isOpen = false;
|
|
@@ -2043,9 +1892,6 @@
|
|
|
2043
1892
|
this.invalidDateTimeFormat = false;
|
|
2044
1893
|
this.isEnterPressedOnDateInput = true;
|
|
2045
1894
|
this.bsDatePickerDirective.bsValue = event.target.value ? newVal : '';
|
|
2046
|
-
if (this.imask) {
|
|
2047
|
-
this.imask.maskRef.value = event.target.value;
|
|
2048
|
-
}
|
|
2049
1895
|
}
|
|
2050
1896
|
this.toggleDpDropdown(event);
|
|
2051
1897
|
}
|
|
@@ -2076,31 +1922,29 @@
|
|
|
2076
1922
|
static { this.ɵfac = function DateComponent_Factory(t) { return new (t || DateComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AppDefaults)); }; }
|
|
2077
1923
|
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: DateComponent, selectors: [["", "wmDate", ""]], viewQuery: function DateComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2078
1924
|
i0__namespace.ɵɵviewQuery(i3.BsDatepickerDirective, 5);
|
|
2079
|
-
i0__namespace.ɵɵviewQuery(_c0$2, 5, i4.IMaskDirective);
|
|
2080
1925
|
} if (rf & 2) {
|
|
2081
1926
|
let _t;
|
|
2082
1927
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.bsDatePickerDirective = _t.first);
|
|
2083
|
-
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
2084
1928
|
} }, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2085
1929
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2086
1930
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2087
1931
|
base.provideAsWidgetRef(DateComponent)
|
|
2088
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs:
|
|
2089
|
-
i0__namespace.ɵɵelementStart(0, "input", 0
|
|
2090
|
-
i0__namespace.ɵɵlistener("click", function DateComponent_Template_input_click_0_listener($event) { return ctx.toggleDpDropdown($event, true); })("focus", function DateComponent_Template_input_focus_0_listener($event) { ctx.onDateTimeInputFocus();
|
|
1932
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls: 8, vars: 25, consts: [["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "name", "tabindex", "value", "disabled", "autofocus", "required", "readOnly", "click", "focus", "blur", "change", "keydown"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "tabindex", "disabled", "click"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "bsDatepicker", "", "placement", "bottom right", 1, "model-holder", 3, "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue", "onShown", "onHidden", "bsValueChange"], ["datepicker", "bsDatepicker"], [3, "ngIf"], ["dateTimePicker", "", "mode", "DATE", 3, "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value", "change"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "click", "focus", "blur"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1933
|
+
i0__namespace.ɵɵelementStart(0, "input", 0);
|
|
1934
|
+
i0__namespace.ɵɵlistener("click", function DateComponent_Template_input_click_0_listener($event) { return ctx.toggleDpDropdown($event, true); })("focus", function DateComponent_Template_input_focus_0_listener($event) { ctx.onDateTimeInputFocus(); return ctx.invokeOnFocus($event); })("blur", function DateComponent_Template_input_blur_0_listener($event) { return ctx.onInputBlur($event); })("change", function DateComponent_Template_input_change_0_listener($event) { return ctx.onDisplayDateChange($event); })("keydown", function DateComponent_Template_input_keydown_0_listener($event) { ctx._triggeredByUser = true; return ctx.onDisplayKeydown($event); });
|
|
2091
1935
|
i0__namespace.ɵɵelementEnd();
|
|
2092
|
-
i0__namespace.ɵɵelementStart(
|
|
2093
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2094
|
-
i0__namespace.ɵɵelement(
|
|
1936
|
+
i0__namespace.ɵɵelementStart(1, "span", 1)(2, "button", 2);
|
|
1937
|
+
i0__namespace.ɵɵlistener("click", function DateComponent_Template_button_click_2_listener($event) { return ctx.toggleDpDropdown($event, false); });
|
|
1938
|
+
i0__namespace.ɵɵelement(3, "i", 3);
|
|
2095
1939
|
i0__namespace.ɵɵelementEnd()();
|
|
2096
|
-
i0__namespace.ɵɵelementStart(
|
|
2097
|
-
i0__namespace.ɵɵlistener("onShown", function
|
|
1940
|
+
i0__namespace.ɵɵelementStart(4, "div", 4)(5, "input", 5, 6);
|
|
1941
|
+
i0__namespace.ɵɵlistener("onShown", function DateComponent_Template_input_onShown_5_listener() { return ctx.onDatePickerOpen(); })("onHidden", function DateComponent_Template_input_onHidden_5_listener() { return ctx.hideDatepickerDropdown(); })("bsValueChange", function DateComponent_Template_input_bsValueChange_5_listener($event) { return ctx.onDateChange($event); });
|
|
2098
1942
|
i0__namespace.ɵɵelementEnd()();
|
|
2099
|
-
i0__namespace.ɵɵtemplate(
|
|
1943
|
+
i0__namespace.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
|
|
2100
1944
|
} if (rf & 2) {
|
|
2101
|
-
i0__namespace.ɵɵproperty("name", ctx.name)("
|
|
1945
|
+
i0__namespace.ɵɵproperty("name", ctx.name)("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("value", ctx.displayValue)("disabled", ctx.disabled || ctx.readonly)("autofocus", ctx.autofocus)("required", ctx.required)("readOnly", ctx.isReadOnly);
|
|
2102
1946
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2103
|
-
i0__namespace.ɵɵadvance(
|
|
1947
|
+
i0__namespace.ɵɵadvance(2);
|
|
2104
1948
|
i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
2105
1949
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
2106
1950
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -2108,7 +1952,7 @@
|
|
|
2108
1952
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2109
1953
|
i0__namespace.ɵɵadvance(2);
|
|
2110
1954
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2111
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
1955
|
+
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2112
1956
|
}
|
|
2113
1957
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
|
|
2114
1958
|
type: i0.Component,
|
|
@@ -2116,13 +1960,10 @@
|
|
|
2116
1960
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2117
1961
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2118
1962
|
base.provideAsWidgetRef(DateComponent)
|
|
2119
|
-
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n
|
|
1963
|
+
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal(bsDataValue)\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : hint || 'Choose Date'\"\n role=\"button\">\n </div>\n</ng-template>\n" }]
|
|
2120
1964
|
}], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
2121
1965
|
type: i0.ViewChild,
|
|
2122
1966
|
args: [i3.BsDatepickerDirective]
|
|
2123
|
-
}], imask: [{
|
|
2124
|
-
type: i0.ViewChild,
|
|
2125
|
-
args: ['dateInput', { read: i4.IMaskDirective }]
|
|
2126
1967
|
}] }); })();
|
|
2127
1968
|
|
|
2128
1969
|
const dateTimeProps = new Map([
|
|
@@ -2633,7 +2474,7 @@
|
|
|
2633
2474
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2634
2475
|
i0__namespace.ɵɵadvance(3);
|
|
2635
2476
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2636
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
2477
|
+
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, i4__namespace.BsDropdownMenuDirective, i4__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2637
2478
|
}
|
|
2638
2479
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2639
2480
|
type: i0.Component,
|
|
@@ -3023,7 +2864,7 @@
|
|
|
3023
2864
|
i0__namespace.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
3024
2865
|
i0__namespace.ɵɵadvance(3);
|
|
3025
2866
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
3026
|
-
} }, dependencies: [i2__namespace.NgIf,
|
|
2867
|
+
} }, dependencies: [i2__namespace.NgIf, i4__namespace.BsDropdownMenuDirective, i4__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
3027
2868
|
}
|
|
3028
2869
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
|
|
3029
2870
|
type: i0.Component,
|
|
@@ -3049,11 +2890,10 @@
|
|
|
3049
2890
|
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule }); }
|
|
3050
2891
|
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
3051
2892
|
i3.BsDatepickerModule,
|
|
3052
|
-
i4
|
|
2893
|
+
i4.BsDropdownModule,
|
|
3053
2894
|
i5.FormsModule,
|
|
3054
2895
|
i6.TimepickerModule,
|
|
3055
|
-
base.WmComponentsModule
|
|
3056
|
-
i4.IMaskModule] }); }
|
|
2896
|
+
base.WmComponentsModule] }); }
|
|
3057
2897
|
}
|
|
3058
2898
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
|
|
3059
2899
|
type: i0.NgModule,
|
|
@@ -3061,11 +2901,10 @@
|
|
|
3061
2901
|
imports: [
|
|
3062
2902
|
i2.CommonModule,
|
|
3063
2903
|
i3.BsDatepickerModule,
|
|
3064
|
-
i4
|
|
2904
|
+
i4.BsDropdownModule,
|
|
3065
2905
|
i5.FormsModule,
|
|
3066
2906
|
i6.TimepickerModule,
|
|
3067
|
-
base.WmComponentsModule
|
|
3068
|
-
i4.IMaskModule
|
|
2907
|
+
base.WmComponentsModule
|
|
3069
2908
|
],
|
|
3070
2909
|
declarations: [...components],
|
|
3071
2910
|
exports: [...components]
|
|
@@ -3079,11 +2918,10 @@
|
|
|
3079
2918
|
PickerComponent,
|
|
3080
2919
|
PickerGroupComponent], imports: [i2.CommonModule,
|
|
3081
2920
|
i3.BsDatepickerModule,
|
|
3082
|
-
i4
|
|
2921
|
+
i4.BsDropdownModule,
|
|
3083
2922
|
i5.FormsModule,
|
|
3084
2923
|
i6.TimepickerModule,
|
|
3085
|
-
base.WmComponentsModule,
|
|
3086
|
-
i4.IMaskModule], exports: [DateComponent,
|
|
2924
|
+
base.WmComponentsModule], exports: [DateComponent,
|
|
3087
2925
|
DatetimeComponent,
|
|
3088
2926
|
TimeComponent,
|
|
3089
2927
|
DateTimePickerComponent,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
2
|
import { AppDefaults } from '@wm/core';
|
|
3
3
|
import { BaseDateTimeComponent } from './../base-date-time.component';
|
|
4
|
-
import { IMaskDirective } from 'angular-imask';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class DateComponent extends BaseDateTimeComponent {
|
|
7
6
|
private cdRef;
|
|
@@ -22,112 +21,8 @@ export declare class DateComponent extends BaseDateTimeComponent {
|
|
|
22
21
|
get displayValue(): any;
|
|
23
22
|
get nativeDisplayValue(): any;
|
|
24
23
|
get datavalue(): any;
|
|
25
|
-
get mask(): {
|
|
26
|
-
mask?: undefined;
|
|
27
|
-
pattern?: undefined;
|
|
28
|
-
format?: undefined;
|
|
29
|
-
parse?: undefined;
|
|
30
|
-
blocks?: undefined;
|
|
31
|
-
autofix?: undefined;
|
|
32
|
-
lazy?: undefined;
|
|
33
|
-
overwrite?: undefined;
|
|
34
|
-
skipInvalid?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
mask: DateConstructor;
|
|
37
|
-
pattern: any;
|
|
38
|
-
format: (date: any) => any;
|
|
39
|
-
parse: (str: any) => any;
|
|
40
|
-
blocks: {
|
|
41
|
-
YYYY: {
|
|
42
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
43
|
-
from: number;
|
|
44
|
-
to: number;
|
|
45
|
-
placeholderChar: string;
|
|
46
|
-
maxLength: number;
|
|
47
|
-
};
|
|
48
|
-
YYY: {
|
|
49
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
50
|
-
from: number;
|
|
51
|
-
to: number;
|
|
52
|
-
placeholderChar: string;
|
|
53
|
-
maxLength: number;
|
|
54
|
-
overwrite: boolean;
|
|
55
|
-
};
|
|
56
|
-
YY: {
|
|
57
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
58
|
-
from: number;
|
|
59
|
-
to: number;
|
|
60
|
-
placeholderChar: string;
|
|
61
|
-
maxLength: number;
|
|
62
|
-
};
|
|
63
|
-
Y: {
|
|
64
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
65
|
-
from: number;
|
|
66
|
-
to: number;
|
|
67
|
-
placeholderChar: string;
|
|
68
|
-
maxLength: number;
|
|
69
|
-
};
|
|
70
|
-
M: {
|
|
71
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
72
|
-
from: number;
|
|
73
|
-
to: number;
|
|
74
|
-
placeholderChar: string;
|
|
75
|
-
maxLength: number;
|
|
76
|
-
};
|
|
77
|
-
MM: {
|
|
78
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
79
|
-
from: number;
|
|
80
|
-
to: number;
|
|
81
|
-
placeholderChar: string;
|
|
82
|
-
maxLength: number;
|
|
83
|
-
};
|
|
84
|
-
MMM: {
|
|
85
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
86
|
-
enum: string[];
|
|
87
|
-
placeholderChar: string;
|
|
88
|
-
maxLength: number;
|
|
89
|
-
};
|
|
90
|
-
MMMM: {
|
|
91
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
92
|
-
enum: string[];
|
|
93
|
-
placeholderChar: string;
|
|
94
|
-
maxLength: number;
|
|
95
|
-
};
|
|
96
|
-
DD: {
|
|
97
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
98
|
-
from: number;
|
|
99
|
-
to: number;
|
|
100
|
-
placeholderChar: string;
|
|
101
|
-
maxLength: number;
|
|
102
|
-
};
|
|
103
|
-
D: {
|
|
104
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
105
|
-
from: number;
|
|
106
|
-
to: number;
|
|
107
|
-
placeholderChar: string;
|
|
108
|
-
maxLength: number;
|
|
109
|
-
};
|
|
110
|
-
ddd: {
|
|
111
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
112
|
-
enum: string[];
|
|
113
|
-
placeholderChar: string;
|
|
114
|
-
maxLength: number;
|
|
115
|
-
};
|
|
116
|
-
dddd: {
|
|
117
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
118
|
-
enum: string[];
|
|
119
|
-
placeholderChar: string;
|
|
120
|
-
minLength: number;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
autofix: boolean;
|
|
124
|
-
lazy: boolean;
|
|
125
|
-
overwrite: boolean;
|
|
126
|
-
skipInvalid: boolean;
|
|
127
|
-
};
|
|
128
24
|
set datavalue(newVal: any);
|
|
129
25
|
protected bsDatePickerDirective: any;
|
|
130
|
-
imask: IMaskDirective<any>;
|
|
131
26
|
constructor(inj: Injector, cdRef: ChangeDetectorRef, appDefaults: AppDefaults);
|
|
132
27
|
/**
|
|
133
28
|
* This is an internal method triggered when the date input changes
|
|
@@ -136,7 +31,6 @@ export declare class DateComponent extends BaseDateTimeComponent {
|
|
|
136
31
|
private setDataValue;
|
|
137
32
|
onDatePickerOpen(): void;
|
|
138
33
|
onInputBlur($event: any): void;
|
|
139
|
-
onInputFocus($event: any): void;
|
|
140
34
|
hideDatepickerDropdown(): void;
|
|
141
35
|
protected handleEvent(node: HTMLElement, eventName: string, callback: Function, locals: any): void;
|
|
142
36
|
/**
|
|
@@ -10,9 +10,8 @@ import * as i8 from "ngx-bootstrap/dropdown";
|
|
|
10
10
|
import * as i9 from "@angular/forms";
|
|
11
11
|
import * as i10 from "ngx-bootstrap/timepicker";
|
|
12
12
|
import * as i11 from "@wm/components/base";
|
|
13
|
-
import * as i12 from "angular-imask";
|
|
14
13
|
export declare class EpochModule {
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<EpochModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EpochModule, [typeof i1.DateComponent, typeof i2.DatetimeComponent, typeof i3.TimeComponent, typeof i4.DateTimePickerComponent, typeof i4.TimePickerComponent, typeof i5.PickerComponent, typeof i5.PickerGroupComponent], [typeof i6.CommonModule, typeof i7.BsDatepickerModule, typeof i8.BsDropdownModule, typeof i9.FormsModule, typeof i10.TimepickerModule, typeof i11.WmComponentsModule
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EpochModule, [typeof i1.DateComponent, typeof i2.DatetimeComponent, typeof i3.TimeComponent, typeof i4.DateTimePickerComponent, typeof i4.TimePickerComponent, typeof i5.PickerComponent, typeof i5.PickerGroupComponent], [typeof i6.CommonModule, typeof i7.BsDatepickerModule, typeof i8.BsDropdownModule, typeof i9.FormsModule, typeof i10.TimepickerModule, typeof i11.WmComponentsModule], [typeof i1.DateComponent, typeof i2.DatetimeComponent, typeof i3.TimeComponent, typeof i4.DateTimePickerComponent, typeof i4.TimePickerComponent, typeof i5.PickerComponent, typeof i5.PickerGroupComponent]>;
|
|
17
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<EpochModule>;
|
|
18
17
|
}
|