@wavemaker/app-ng-runtime 11.5.4-rc.5514 → 11.5.4-rc.5517
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 +186 -37
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +88 -0
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +89 -0
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +34 -24
- app-ng-runtime/components/input/epoch/esm2020/date/imaskUtil.mjs +138 -0
- app-ng-runtime/components/input/epoch/esm2020/epoch.module.mjs +8 -4
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +179 -28
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +179 -28
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -6,7 +6,7 @@ import * as i5 from '@angular/forms';
|
|
|
6
6
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
7
7
|
import * as i3 from 'ngx-bootstrap/datepicker';
|
|
8
8
|
import { BsDatepickerConfig, BsDatepickerDirective, BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
|
9
|
-
import * as i4 from 'ngx-bootstrap/dropdown';
|
|
9
|
+
import * as i4$1 from 'ngx-bootstrap/dropdown';
|
|
10
10
|
import { BsDropdownDirective, BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
11
11
|
import * as i6 from 'ngx-bootstrap/timepicker';
|
|
12
12
|
import { TimepickerConfig, TimepickerComponent, TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
@@ -15,6 +15,9 @@ import * as i1$1 from '@wm/core';
|
|
|
15
15
|
import { App, AbstractI18nService, isMobile, getFormattedDate, getDateObj, isString, setAttr, getNativeDateObject, hasCordova, isIos, FormWidgetType, getMomentLocaleObject, getDisplayDateTimeFormat, adjustContainerPosition, adjustContainerRightEdges, addEventListenerOnElement, addClass, $appDigest } from '@wm/core';
|
|
16
16
|
import { BaseFormCustomComponent } from '@wm/components/input';
|
|
17
17
|
import * as i1 from 'ngx-bootstrap/modal';
|
|
18
|
+
import IMask from 'imask';
|
|
19
|
+
import * as i4 from 'angular-imask';
|
|
20
|
+
import { IMaskModule } from 'angular-imask';
|
|
18
21
|
|
|
19
22
|
const _c0$4 = ["*"];
|
|
20
23
|
function PickerComponent_div_6_Template(rf, ctx) {
|
|
@@ -1685,23 +1688,160 @@ const registerProps$2 = () => {
|
|
|
1685
1688
|
registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
|
|
1686
1689
|
};
|
|
1687
1690
|
|
|
1691
|
+
const weekNamesShort = [
|
|
1692
|
+
'Mon',
|
|
1693
|
+
'Tue',
|
|
1694
|
+
'Wed',
|
|
1695
|
+
'Thu',
|
|
1696
|
+
'Fri',
|
|
1697
|
+
'Sat',
|
|
1698
|
+
'Sun'
|
|
1699
|
+
];
|
|
1700
|
+
const weekNamesLong = [
|
|
1701
|
+
'Monday',
|
|
1702
|
+
'Tuesday',
|
|
1703
|
+
'Wednesday',
|
|
1704
|
+
'Thursday',
|
|
1705
|
+
'Friday',
|
|
1706
|
+
'Saturday',
|
|
1707
|
+
'Sunday'
|
|
1708
|
+
];
|
|
1709
|
+
const monthNamesShort = [
|
|
1710
|
+
'Jan',
|
|
1711
|
+
'Feb',
|
|
1712
|
+
'Mar',
|
|
1713
|
+
'Apr',
|
|
1714
|
+
'May',
|
|
1715
|
+
'Jun',
|
|
1716
|
+
'Jul',
|
|
1717
|
+
'Aug',
|
|
1718
|
+
'Sep',
|
|
1719
|
+
'Oct',
|
|
1720
|
+
'Nov',
|
|
1721
|
+
'Dec',
|
|
1722
|
+
];
|
|
1723
|
+
const monthNamesLong = [
|
|
1724
|
+
'January',
|
|
1725
|
+
'February',
|
|
1726
|
+
'March',
|
|
1727
|
+
'April',
|
|
1728
|
+
'May',
|
|
1729
|
+
'June',
|
|
1730
|
+
'July',
|
|
1731
|
+
'August',
|
|
1732
|
+
'September',
|
|
1733
|
+
'October',
|
|
1734
|
+
'November',
|
|
1735
|
+
'December',
|
|
1736
|
+
];
|
|
1737
|
+
function validateTheMaskedDate(format) {
|
|
1738
|
+
if (format == 'timestamp') {
|
|
1739
|
+
return {};
|
|
1740
|
+
}
|
|
1741
|
+
const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
|
|
1742
|
+
const parseFn = str => {
|
|
1743
|
+
return moment(str, modifiedFormat).toDate();
|
|
1744
|
+
};
|
|
1745
|
+
const formatFn = date => {
|
|
1746
|
+
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1747
|
+
};
|
|
1748
|
+
return {
|
|
1749
|
+
mask: Date,
|
|
1750
|
+
pattern: modifiedFormat,
|
|
1751
|
+
format: formatFn,
|
|
1752
|
+
parse: parseFn,
|
|
1753
|
+
blocks: {
|
|
1754
|
+
YYYY: {
|
|
1755
|
+
mask: IMask.MaskedRange,
|
|
1756
|
+
from: 1900,
|
|
1757
|
+
to: 9999,
|
|
1758
|
+
placeholderChar: 'Y',
|
|
1759
|
+
maxLength: 4
|
|
1760
|
+
},
|
|
1761
|
+
YY: {
|
|
1762
|
+
mask: IMask.MaskedRange,
|
|
1763
|
+
from: 0,
|
|
1764
|
+
to: 99,
|
|
1765
|
+
placeholderChar: 'Y',
|
|
1766
|
+
maxLength: 2
|
|
1767
|
+
},
|
|
1768
|
+
M: {
|
|
1769
|
+
mask: IMask.MaskedRange,
|
|
1770
|
+
from: 1,
|
|
1771
|
+
to: 12,
|
|
1772
|
+
placeholderChar: 'M',
|
|
1773
|
+
maxLength: 2
|
|
1774
|
+
},
|
|
1775
|
+
MM: {
|
|
1776
|
+
mask: IMask.MaskedRange,
|
|
1777
|
+
from: 1,
|
|
1778
|
+
to: 12,
|
|
1779
|
+
placeholderChar: 'M',
|
|
1780
|
+
maxLength: 2
|
|
1781
|
+
},
|
|
1782
|
+
MMM: {
|
|
1783
|
+
mask: IMask.MaskedEnum,
|
|
1784
|
+
enum: monthNamesShort,
|
|
1785
|
+
placeholderChar: 'M',
|
|
1786
|
+
maxLength: 3
|
|
1787
|
+
},
|
|
1788
|
+
MMMM: {
|
|
1789
|
+
mask: IMask.MaskedEnum,
|
|
1790
|
+
enum: monthNamesLong,
|
|
1791
|
+
placeholderChar: 'M',
|
|
1792
|
+
minLength: 3
|
|
1793
|
+
},
|
|
1794
|
+
DD: {
|
|
1795
|
+
mask: IMask.MaskedRange,
|
|
1796
|
+
from: 1,
|
|
1797
|
+
to: 31,
|
|
1798
|
+
placeholderChar: 'D',
|
|
1799
|
+
maxLength: 2
|
|
1800
|
+
},
|
|
1801
|
+
D: {
|
|
1802
|
+
mask: IMask.MaskedRange,
|
|
1803
|
+
from: 1,
|
|
1804
|
+
to: 31,
|
|
1805
|
+
placeholderChar: 'D',
|
|
1806
|
+
maxLength: 1
|
|
1807
|
+
},
|
|
1808
|
+
ddd: {
|
|
1809
|
+
mask: IMask.MaskedEnum,
|
|
1810
|
+
enum: weekNamesShort,
|
|
1811
|
+
placeholderChar: 'E',
|
|
1812
|
+
maxLength: 3
|
|
1813
|
+
},
|
|
1814
|
+
dddd: {
|
|
1815
|
+
mask: IMask.MaskedEnum,
|
|
1816
|
+
enum: weekNamesLong,
|
|
1817
|
+
placeholderChar: 'E',
|
|
1818
|
+
minLength: 6
|
|
1819
|
+
},
|
|
1820
|
+
},
|
|
1821
|
+
autofix: true,
|
|
1822
|
+
lazy: false,
|
|
1823
|
+
overwrite: true,
|
|
1824
|
+
skipInvalid: true
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1688
1828
|
const _c0$2 = ["wmDate", ""];
|
|
1689
|
-
function
|
|
1829
|
+
function DateComponent_ng_template_8_Template(rf, ctx) {
|
|
1690
1830
|
if (rf & 1) {
|
|
1691
|
-
const
|
|
1692
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1693
|
-
i0.ɵɵlistener("change", function
|
|
1831
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1832
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
1833
|
+
i0.ɵɵlistener("change", function DateComponent_ng_template_8_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onDateChange($event)); });
|
|
1694
1834
|
i0.ɵɵelementEnd();
|
|
1695
|
-
i0.ɵɵelementStart(1, "div",
|
|
1696
|
-
i0.ɵɵlistener("focus", function
|
|
1835
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
1836
|
+
i0.ɵɵlistener("focus", function DateComponent_ng_template_8_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); ctx_r5.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r5.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_8_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r6.invokeOnTouched($event)); })("click", function DateComponent_ng_template_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r7.disabled || ctx_r7.readonly || ctx_r7.isCurrentDate) && ctx_r7.showDatePickerModal()); });
|
|
1697
1837
|
i0.ɵɵelementEnd();
|
|
1698
1838
|
}
|
|
1699
1839
|
if (rf & 2) {
|
|
1700
|
-
const
|
|
1701
|
-
i0.ɵɵproperty("config",
|
|
1840
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1841
|
+
i0.ɵɵproperty("config", ctx_r2._dateOptions)("placement", ctx_r2.modal)("excludedDaysToDisable", ctx_r2.excludedDaysToDisable)("excludedDatesToDisable", ctx_r2.excludedDatesToDisable)("displayFormat", ctx_r2.dateInputFormat)("value", ctx_r2.bsDataValue);
|
|
1702
1842
|
i0.ɵɵadvance(1);
|
|
1703
|
-
i0.ɵɵproperty("tabindex",
|
|
1704
|
-
i0.ɵɵattribute("aria-label",
|
|
1843
|
+
i0.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
|
|
1844
|
+
i0.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date" + ctx_r2.displayValue : "Choose Date");
|
|
1705
1845
|
}
|
|
1706
1846
|
}
|
|
1707
1847
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
@@ -1727,6 +1867,14 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
1727
1867
|
get datavalue() {
|
|
1728
1868
|
return getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1729
1869
|
}
|
|
1870
|
+
get mask() {
|
|
1871
|
+
if (this.datepattern) {
|
|
1872
|
+
return validateTheMaskedDate(this.datepattern);
|
|
1873
|
+
}
|
|
1874
|
+
else {
|
|
1875
|
+
return false;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1730
1878
|
// Todo[Shubham]: needs to be redefined
|
|
1731
1879
|
// sets the dataValue and computes the display model values
|
|
1732
1880
|
// @ts-ignore
|
|
@@ -1941,24 +2089,24 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
|
|
|
1941
2089
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
1942
2090
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
1943
2091
|
provideAsWidgetRef(DateComponent)
|
|
1944
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls:
|
|
2092
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls: 9, vars: 27, consts: [["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "name", "imask", "unmask", "tabindex", "value", "disabled", "autofocus", "required", "readOnly", "click", "focus", "blur", "change", "keydown"], ["dateInput", ""], [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"], [1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "focus", "blur", "click"]], template: function DateComponent_Template(rf, ctx) {
|
|
1945
2093
|
if (rf & 1) {
|
|
1946
|
-
i0.ɵɵelementStart(0, "input", 0);
|
|
2094
|
+
i0.ɵɵelementStart(0, "input", 0, 1);
|
|
1947
2095
|
i0.ɵɵ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); });
|
|
1948
2096
|
i0.ɵɵelementEnd();
|
|
1949
|
-
i0.ɵɵelementStart(
|
|
1950
|
-
i0.ɵɵlistener("click", function
|
|
1951
|
-
i0.ɵɵelement(
|
|
2097
|
+
i0.ɵɵelementStart(2, "span", 2)(3, "button", 3);
|
|
2098
|
+
i0.ɵɵlistener("click", function DateComponent_Template_button_click_3_listener($event) { return ctx.toggleDpDropdown($event, false); });
|
|
2099
|
+
i0.ɵɵelement(4, "i", 4);
|
|
1952
2100
|
i0.ɵɵelementEnd()();
|
|
1953
|
-
i0.ɵɵelementStart(
|
|
1954
|
-
i0.ɵɵlistener("onShown", function
|
|
2101
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "input", 6, 7);
|
|
2102
|
+
i0.ɵɵlistener("onShown", function DateComponent_Template_input_onShown_6_listener() { return ctx.onDatePickerOpen(); })("onHidden", function DateComponent_Template_input_onHidden_6_listener() { return ctx.hideDatepickerDropdown(); })("bsValueChange", function DateComponent_Template_input_bsValueChange_6_listener($event) { return ctx.onDateChange($event); });
|
|
1955
2103
|
i0.ɵɵelementEnd()();
|
|
1956
|
-
i0.ɵɵtemplate(
|
|
2104
|
+
i0.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
|
|
1957
2105
|
}
|
|
1958
2106
|
if (rf & 2) {
|
|
1959
|
-
i0.ɵɵ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);
|
|
2107
|
+
i0.ɵɵproperty("name", ctx.name)("imask", ctx.mask)("unmask", true)("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("value", ctx.displayValue)("disabled", ctx.disabled || ctx.readonly)("autofocus", ctx.autofocus)("required", ctx.required)("readOnly", ctx.isReadOnly);
|
|
1960
2108
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1961
|
-
i0.ɵɵadvance(
|
|
2109
|
+
i0.ɵɵadvance(3);
|
|
1962
2110
|
i0.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
1963
2111
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
1964
2112
|
i0.ɵɵadvance(3);
|
|
@@ -1967,7 +2115,7 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
|
|
|
1967
2115
|
i0.ɵɵadvance(2);
|
|
1968
2116
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
1969
2117
|
}
|
|
1970
|
-
}, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
2118
|
+
}, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.IMaskDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
1971
2119
|
(function () {
|
|
1972
2120
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateComponent, [{
|
|
1973
2121
|
type: Component,
|
|
@@ -1975,7 +2123,7 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
|
|
|
1975
2123
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
1976
2124
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
1977
2125
|
provideAsWidgetRef(DateComponent)
|
|
1978
|
-
], 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 (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date' + displayValue : 'Choose Date'\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n" }]
|
|
2126
|
+
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n #dateInput\n [name]=\"name\"\n [imask]=\"mask\"\n [unmask]=\"true\"\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 (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date' + displayValue : 'Choose Date'\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n" }]
|
|
1979
2127
|
}], function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
1980
2128
|
type: ViewChild,
|
|
1981
2129
|
args: [BsDatepickerDirective]
|
|
@@ -2504,7 +2652,7 @@ DatetimeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimeC
|
|
|
2504
2652
|
i0.ɵɵadvance(3);
|
|
2505
2653
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2506
2654
|
}
|
|
2507
|
-
}, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2655
|
+
}, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2508
2656
|
(function () {
|
|
2509
2657
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2510
2658
|
type: Component,
|
|
@@ -2903,7 +3051,7 @@ TimeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeComponent
|
|
|
2903
3051
|
i0.ɵɵadvance(3);
|
|
2904
3052
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2905
3053
|
}
|
|
2906
|
-
}, dependencies: [i2.NgIf, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
3054
|
+
}, dependencies: [i2.NgIf, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2907
3055
|
(function () {
|
|
2908
3056
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeComponent, [{
|
|
2909
3057
|
type: Component,
|
|
@@ -2934,7 +3082,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2934
3082
|
BsDropdownModule,
|
|
2935
3083
|
FormsModule,
|
|
2936
3084
|
TimepickerModule,
|
|
2937
|
-
WmComponentsModule
|
|
3085
|
+
WmComponentsModule,
|
|
3086
|
+
IMaskModule] });
|
|
2938
3087
|
(function () {
|
|
2939
3088
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EpochModule, [{
|
|
2940
3089
|
type: NgModule,
|
|
@@ -2945,7 +3094,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2945
3094
|
BsDropdownModule,
|
|
2946
3095
|
FormsModule,
|
|
2947
3096
|
TimepickerModule,
|
|
2948
|
-
WmComponentsModule
|
|
3097
|
+
WmComponentsModule,
|
|
3098
|
+
IMaskModule
|
|
2949
3099
|
],
|
|
2950
3100
|
declarations: [...components],
|
|
2951
3101
|
exports: [...components]
|
|
@@ -2964,7 +3114,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2964
3114
|
BsDropdownModule,
|
|
2965
3115
|
FormsModule,
|
|
2966
3116
|
TimepickerModule,
|
|
2967
|
-
WmComponentsModule
|
|
3117
|
+
WmComponentsModule,
|
|
3118
|
+
IMaskModule], exports: [DateComponent,
|
|
2968
3119
|
DatetimeComponent,
|
|
2969
3120
|
TimeComponent,
|
|
2970
3121
|
DateTimePickerComponent,
|