@wavemaker/app-ng-runtime 11.5.2-next.141129 → 11.5.2-next.141131

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.
@@ -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$1 from 'ngx-bootstrap/dropdown';
9
+ import * as i4 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,9 +15,6 @@ 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 { IMaskDirective, IMaskModule } from 'angular-imask';
21
18
 
22
19
  const _c0$4 = ["*"];
23
20
  function PickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
@@ -1670,142 +1667,21 @@ const registerProps$2 = () => {
1670
1667
  registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
1671
1668
  };
1672
1669
 
1673
- const monthNamesLong = [
1674
- 'January',
1675
- 'February',
1676
- 'March',
1677
- 'April',
1678
- 'May',
1679
- 'June',
1680
- 'July',
1681
- 'August',
1682
- 'September',
1683
- 'October',
1684
- 'November',
1685
- 'December',
1686
- ];
1687
- function validateTheMaskedDate(format) {
1688
- if (format == 'timestamp') {
1689
- return {};
1690
- }
1691
- const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
1692
- const parseFn = str => {
1693
- return moment(str, modifiedFormat).toDate();
1694
- };
1695
- const formatFn = date => {
1696
- return moment(date, modifiedFormat).format(modifiedFormat);
1697
- };
1698
- return {
1699
- mask: Date,
1700
- pattern: modifiedFormat,
1701
- format: formatFn,
1702
- parse: parseFn,
1703
- blocks: {
1704
- YYYY: {
1705
- mask: IMask.MaskedRange,
1706
- from: 1900,
1707
- to: 9999,
1708
- placeholderChar: 'Y',
1709
- maxLength: 4,
1710
- },
1711
- YYY: {
1712
- mask: IMask.MaskedRange,
1713
- from: 900,
1714
- to: 999,
1715
- placeholderChar: 'Y',
1716
- maxLength: 3,
1717
- overwrite: false,
1718
- },
1719
- YY: {
1720
- mask: IMask.MaskedRange,
1721
- from: 0,
1722
- to: 99,
1723
- placeholderChar: 'Y',
1724
- maxLength: 2,
1725
- },
1726
- Y: {
1727
- mask: IMask.MaskedRange,
1728
- from: 0,
1729
- to: 9999,
1730
- placeholderChar: 'Y',
1731
- maxLength: 4,
1732
- },
1733
- M: {
1734
- mask: IMask.MaskedRange,
1735
- from: 1,
1736
- to: 12,
1737
- placeholderChar: 'M',
1738
- maxLength: 2,
1739
- },
1740
- MM: {
1741
- mask: IMask.MaskedRange,
1742
- from: 1,
1743
- to: 12,
1744
- placeholderChar: 'M',
1745
- maxLength: 2,
1746
- },
1747
- MMM: {
1748
- mask: IMask.MaskedEnum,
1749
- enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
1750
- placeholderChar: 'M',
1751
- maxLength: 3,
1752
- },
1753
- MMMM: {
1754
- mask: IMask.MaskedEnum,
1755
- enum: monthNamesLong,
1756
- placeholderChar: "M",
1757
- maxLength: 4
1758
- },
1759
- DD: {
1760
- mask: IMask.MaskedRange,
1761
- from: 1,
1762
- to: 31,
1763
- placeholderChar: 'D',
1764
- maxLength: 2,
1765
- },
1766
- D: {
1767
- mask: IMask.MaskedRange,
1768
- from: 1,
1769
- to: 31,
1770
- placeholderChar: 'D',
1771
- maxLength: 1,
1772
- },
1773
- ddd: {
1774
- mask: IMask.MaskedEnum,
1775
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
1776
- placeholderChar: 'E',
1777
- maxLength: 3,
1778
- },
1779
- dddd: {
1780
- mask: IMask.MaskedEnum,
1781
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
1782
- placeholderChar: 'E',
1783
- minLength: 6,
1784
- },
1785
- },
1786
- autofix: true,
1787
- lazy: false,
1788
- overwrite: true,
1789
- skipInvalid: true
1790
- };
1791
- }
1792
-
1793
- const _c0$2 = ["dateInput"];
1794
- const _c1 = ["wmDate", ""];
1795
- function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1796
- const _r4 = i0.ɵɵgetCurrentView();
1797
- i0.ɵɵelementStart(0, "wm-datetimepicker", 9);
1798
- 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)); });
1670
+ const _c0$2 = ["wmDate", ""];
1671
+ function DateComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1672
+ const _r3 = i0.ɵɵgetCurrentView();
1673
+ i0.ɵɵelementStart(0, "wm-datetimepicker", 8);
1674
+ i0.ɵɵlistener("change", function DateComponent_ng_template_7_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDateChange($event)); });
1799
1675
  i0.ɵɵelementEnd();
1800
- i0.ɵɵelementStart(1, "div", 10);
1801
- i0.ɵɵlistener("click", function DateComponent_ng_template_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r5.disabled || ctx_r5.readonly || ctx_r5.isCurrentDate) && ctx_r5.showDatePickerModal(ctx_r5.bsDataValue)); })("focus", function DateComponent_ng_template_8_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r6.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_8_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r7 = i0.ɵɵnextContext(); ctx_r7.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r7.invokeOnTouched($event)); });
1676
+ i0.ɵɵelementStart(1, "div", 9);
1677
+ i0.ɵɵlistener("click", function DateComponent_ng_template_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵ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.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); ctx_r5.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r5.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_7_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r6.invokeOnTouched($event)); });
1802
1678
  i0.ɵɵelementEnd();
1803
1679
  } if (rf & 2) {
1804
- const ctx_r2 = i0.ɵɵnextContext();
1805
- 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);
1680
+ const ctx_r1 = i0.ɵɵnextContext();
1681
+ i0.ɵɵ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);
1806
1682
  i0.ɵɵadvance(1);
1807
- i0.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
1808
- i0.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date " + ctx_r2.displayValue : ctx_r2.hint || "Choose Date");
1683
+ i0.ɵɵproperty("tabindex", ctx_r1.tabindex || 0);
1684
+ i0.ɵɵattribute("aria-label", ctx_r1.displayValue ? "Change Date " + ctx_r1.displayValue : ctx_r1.hint || "Choose Date");
1809
1685
  } }
1810
1686
  const CURRENT_DATE$1 = 'CURRENT_DATE';
1811
1687
  const DEFAULT_CLS$2 = 'app-date input-group';
@@ -1831,14 +1707,6 @@ class DateComponent extends BaseDateTimeComponent {
1831
1707
  get datavalue() {
1832
1708
  return getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
1833
1709
  }
1834
- get mask() {
1835
- if (this.datepattern) {
1836
- return validateTheMaskedDate(this.datepattern);
1837
- }
1838
- else {
1839
- return {};
1840
- }
1841
- }
1842
1710
  // Todo[Shubham]: needs to be redefined
1843
1711
  // sets the dataValue and computes the display model values
1844
1712
  // @ts-ignore
@@ -1871,17 +1739,11 @@ class DateComponent extends BaseDateTimeComponent {
1871
1739
  this._bsDefaultLoadCheck = true;
1872
1740
  this.datepattern = this.appDefaults.dateFormat || getDisplayDateTimeFormat(FormWidgetType.DATE);
1873
1741
  this.updateFormat('datepattern');
1874
- if (this.imask) {
1875
- this.imask.maskRef.updateValue();
1876
- }
1877
1742
  }
1878
1743
  /**
1879
1744
  * This is an internal method triggered when the date input changes
1880
1745
  */
1881
1746
  onDisplayDateChange($event, isNativePicker = false) {
1882
- if (this.imask) {
1883
- this.imask.maskRef.updateValue();
1884
- }
1885
1747
  if (this.isEnterPressedOnDateInput) {
1886
1748
  this.isEnterPressedOnDateInput = false;
1887
1749
  return;
@@ -1897,9 +1759,6 @@ class DateComponent extends BaseDateTimeComponent {
1897
1759
  if (isNativePicker && this.minDateMaxDateValidationOnInput(newVal, $event, this.displayValue, isNativePicker)) {
1898
1760
  return;
1899
1761
  }
1900
- if (this.imask) {
1901
- this.imask.maskRef.value = newVal.toDateString();
1902
- }
1903
1762
  this.setDataValue(newVal);
1904
1763
  }
1905
1764
  // sets the dataValue and computes the display model values
@@ -1913,7 +1772,6 @@ class DateComponent extends BaseDateTimeComponent {
1913
1772
  }
1914
1773
  if (newVal) {
1915
1774
  this.bsDataValue = newVal;
1916
- this.imask.maskRef.value = newVal.toDateString();
1917
1775
  }
1918
1776
  else {
1919
1777
  this.bsDataValue = undefined;
@@ -1926,9 +1784,6 @@ class DateComponent extends BaseDateTimeComponent {
1926
1784
  if (!this.bsDataValue) {
1927
1785
  this.hightlightToday(this.activeDate);
1928
1786
  }
1929
- if (this.imask) {
1930
- this.imask.maskRef.updateValue();
1931
- }
1932
1787
  // We are using the two input tags(To maintain the modal and proxy modal) for the date control.
1933
1788
  // So actual bootstrap input target width we made it to 0, so bootstrap calculating the calendar container top position improperly.
1934
1789
  // To fix the container top position set the width 1px;
@@ -1944,19 +1799,11 @@ class DateComponent extends BaseDateTimeComponent {
1944
1799
  adjustContainerRightEdges($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
1945
1800
  }
1946
1801
  onInputBlur($event) {
1947
- if (this.imask) {
1948
- this.imask.maskRef.updateValue();
1949
- }
1950
1802
  if (!$($event.relatedTarget).hasClass('current-date')) {
1951
1803
  this.invokeOnTouched();
1952
1804
  this.invokeEventCallback('blur', { $event });
1953
1805
  }
1954
1806
  }
1955
- onInputFocus($event) {
1956
- if (this.imask) {
1957
- this.imask.maskRef.value = $event.target.value;
1958
- }
1959
- }
1960
1807
  hideDatepickerDropdown() {
1961
1808
  this.invokeOnTouched();
1962
1809
  this.isOpen = false;
@@ -2031,9 +1878,6 @@ class DateComponent extends BaseDateTimeComponent {
2031
1878
  this.invalidDateTimeFormat = false;
2032
1879
  this.isEnterPressedOnDateInput = true;
2033
1880
  this.bsDatePickerDirective.bsValue = event.target.value ? newVal : '';
2034
- if (this.imask) {
2035
- this.imask.maskRef.value = event.target.value;
2036
- }
2037
1881
  }
2038
1882
  this.toggleDpDropdown(event);
2039
1883
  }
@@ -2064,31 +1908,29 @@ class DateComponent extends BaseDateTimeComponent {
2064
1908
  static { this.ɵfac = function DateComponent_Factory(t) { return new (t || DateComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.AppDefaults)); }; }
2065
1909
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent, selectors: [["", "wmDate", ""]], viewQuery: function DateComponent_Query(rf, ctx) { if (rf & 1) {
2066
1910
  i0.ɵɵviewQuery(BsDatepickerDirective, 5);
2067
- i0.ɵɵviewQuery(_c0$2, 5, IMaskDirective);
2068
1911
  } if (rf & 2) {
2069
1912
  let _t;
2070
1913
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bsDatePickerDirective = _t.first);
2071
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.imask = _t.first);
2072
1914
  } }, features: [i0.ɵɵProvidersFeature([
2073
1915
  provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
2074
1916
  provideAs(DateComponent, NG_VALIDATORS, true),
2075
1917
  provideAsWidgetRef(DateComponent)
2076
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, 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"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "click", "focus", "blur"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
2077
- i0.ɵɵelementStart(0, "input", 0, 1);
2078
- 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(); ctx.invokeOnFocus($event); return ctx.onInputFocus($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); });
1918
+ ]), i0.ɵɵ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) {
1919
+ i0.ɵɵelementStart(0, "input", 0);
1920
+ 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); });
2079
1921
  i0.ɵɵelementEnd();
2080
- i0.ɵɵelementStart(2, "span", 2)(3, "button", 3);
2081
- i0.ɵɵlistener("click", function DateComponent_Template_button_click_3_listener($event) { return ctx.toggleDpDropdown($event, false); });
2082
- i0.ɵɵelement(4, "i", 4);
1922
+ i0.ɵɵelementStart(1, "span", 1)(2, "button", 2);
1923
+ i0.ɵɵlistener("click", function DateComponent_Template_button_click_2_listener($event) { return ctx.toggleDpDropdown($event, false); });
1924
+ i0.ɵɵelement(3, "i", 3);
2083
1925
  i0.ɵɵelementEnd()();
2084
- i0.ɵɵelementStart(5, "div", 5)(6, "input", 6, 7);
2085
- 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); });
1926
+ i0.ɵɵelementStart(4, "div", 4)(5, "input", 5, 6);
1927
+ i0.ɵɵ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); });
2086
1928
  i0.ɵɵelementEnd()();
2087
- i0.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
1929
+ i0.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
2088
1930
  } if (rf & 2) {
2089
- 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);
1931
+ 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);
2090
1932
  i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2091
- i0.ɵɵadvance(3);
1933
+ i0.ɵɵadvance(2);
2092
1934
  i0.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
2093
1935
  i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
2094
1936
  i0.ɵɵadvance(3);
@@ -2096,7 +1938,7 @@ class DateComponent extends BaseDateTimeComponent {
2096
1938
  i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
2097
1939
  i0.ɵɵadvance(2);
2098
1940
  i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
2099
- } }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.IMaskDirective, DateTimePickerComponent], encapsulation: 2 }); }
1941
+ } }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 }); }
2100
1942
  }
2101
1943
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateComponent, [{
2102
1944
  type: Component,
@@ -2104,13 +1946,10 @@ class DateComponent extends BaseDateTimeComponent {
2104
1946
  provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
2105
1947
  provideAs(DateComponent, NG_VALIDATORS, true),
2106
1948
  provideAsWidgetRef(DateComponent)
2107
- ], 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);onInputFocus($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" }]
1949
+ ], 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" }]
2108
1950
  }], function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }]; }, { bsDatePickerDirective: [{
2109
1951
  type: ViewChild,
2110
1952
  args: [BsDatepickerDirective]
2111
- }], imask: [{
2112
- type: ViewChild,
2113
- args: ['dateInput', { read: IMaskDirective }]
2114
1953
  }] }); })();
2115
1954
 
2116
1955
  const dateTimeProps = new Map([
@@ -2621,7 +2460,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
2621
2460
  i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
2622
2461
  i0.ɵɵadvance(3);
2623
2462
  i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
2624
- } }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
2463
+ } }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
2625
2464
  }
2626
2465
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimeComponent, [{
2627
2466
  type: Component,
@@ -3011,7 +2850,7 @@ class TimeComponent extends BaseDateTimeComponent {
3011
2850
  i0.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
3012
2851
  i0.ɵɵadvance(3);
3013
2852
  i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
3014
- } }, dependencies: [i2.NgIf, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
2853
+ } }, dependencies: [i2.NgIf, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
3015
2854
  }
3016
2855
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeComponent, [{
3017
2856
  type: Component,
@@ -3040,8 +2879,7 @@ class EpochModule {
3040
2879
  BsDropdownModule,
3041
2880
  FormsModule,
3042
2881
  TimepickerModule,
3043
- WmComponentsModule,
3044
- IMaskModule] }); }
2882
+ WmComponentsModule] }); }
3045
2883
  }
3046
2884
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EpochModule, [{
3047
2885
  type: NgModule,
@@ -3052,8 +2890,7 @@ class EpochModule {
3052
2890
  BsDropdownModule,
3053
2891
  FormsModule,
3054
2892
  TimepickerModule,
3055
- WmComponentsModule,
3056
- IMaskModule
2893
+ WmComponentsModule
3057
2894
  ],
3058
2895
  declarations: [...components],
3059
2896
  exports: [...components]
@@ -3070,8 +2907,7 @@ class EpochModule {
3070
2907
  BsDropdownModule,
3071
2908
  FormsModule,
3072
2909
  TimepickerModule,
3073
- WmComponentsModule,
3074
- IMaskModule], exports: [DateComponent,
2910
+ WmComponentsModule], exports: [DateComponent,
3075
2911
  DatetimeComponent,
3076
2912
  TimeComponent,
3077
2913
  DateTimePickerComponent,