@wavemaker/app-ng-runtime 11.7.1-next.26362 → 11.7.1-next.26366

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.
@@ -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'), require('imask'), require('angular-imask')) :
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', 'imask', 'angular-imask'], 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, global.IMask, global.angularIMask));
5
- })(this, (function (exports, i0, i2, i5, i3, i4$1, i6, base, i1$1, input, i1, IMask, i4) { 'use strict';
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 i4$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i4$1);
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$1.BsDropdownDirective, 5);
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$1.BsDropdownDirective]
1637
+ args: [i4.BsDropdownDirective]
1639
1638
  }], bsTimePicker: [{
1640
1639
  type: i0.ViewChild,
1641
1640
  args: [i6.TimepickerComponent]
@@ -1682,121 +1681,21 @@
1682
1681
  base.registerFormWidget(i1$1.FormWidgetType.DATE, new Map(dateProps));
1683
1682
  };
1684
1683
 
1685
- function validateTheMaskedDate(format, locale) {
1686
- if (format == 'timestamp') {
1687
- return false;
1688
- }
1689
- const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
1690
- return {
1691
- mask: Date,
1692
- pattern: modifiedFormat,
1693
- format: (str) => moment(str, modifiedFormat).toDate(),
1694
- parse: (str) => { return moment(str, modifiedFormat).toDate(); },
1695
- blocks: {
1696
- YYYY: {
1697
- mask: IMask.MaskedRange,
1698
- from: 1900,
1699
- to: 9999,
1700
- placeholderChar: 'Y',
1701
- maxLength: 4,
1702
- },
1703
- YYY: {
1704
- mask: IMask.MaskedRange,
1705
- from: 900,
1706
- to: 999,
1707
- placeholderChar: 'Y',
1708
- maxLength: 3,
1709
- },
1710
- YY: {
1711
- mask: IMask.MaskedRange,
1712
- from: 0,
1713
- to: 99,
1714
- placeholderChar: 'Y',
1715
- maxLength: 2,
1716
- },
1717
- Y: {
1718
- mask: IMask.MaskedRange,
1719
- from: 1900,
1720
- to: 9999,
1721
- placeholderChar: 'Y',
1722
- maxLength: 4,
1723
- },
1724
- M: {
1725
- mask: IMask.MaskedRange,
1726
- from: 1,
1727
- to: 12,
1728
- placeholderChar: 'M',
1729
- maxLength: 2,
1730
- },
1731
- MM: {
1732
- mask: IMask.MaskedRange,
1733
- from: 1,
1734
- to: 12,
1735
- placeholderChar: 'M',
1736
- maxLength: 2,
1737
- },
1738
- MMM: {
1739
- mask: IMask.MaskedEnum,
1740
- enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: 'short' })),
1741
- placeholderChar: 'M',
1742
- maxLength: 3,
1743
- },
1744
- MMMM: {
1745
- mask: IMask.MaskedEnum,
1746
- enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(locale, { month: 'long' })),
1747
- placeholderChar: "M",
1748
- maxLength: 4
1749
- },
1750
- DD: {
1751
- mask: IMask.MaskedRange,
1752
- from: 1,
1753
- to: 31,
1754
- placeholderChar: 'D',
1755
- maxLength: 2,
1756
- },
1757
- D: {
1758
- mask: IMask.MaskedRange,
1759
- from: 1,
1760
- to: 31,
1761
- placeholderChar: 'D',
1762
- maxLength: 2,
1763
- },
1764
- ddd: {
1765
- mask: IMask.MaskedEnum,
1766
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: 'short' })),
1767
- placeholderChar: 'E',
1768
- maxLength: 3,
1769
- },
1770
- dddd: {
1771
- mask: IMask.MaskedEnum,
1772
- enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(locale, { weekday: 'long' })),
1773
- placeholderChar: 'E',
1774
- minLength: 6,
1775
- },
1776
- },
1777
- autofix: true,
1778
- lazy: false,
1779
- overwrite: true,
1780
- skipInvalid: true
1781
- };
1782
- }
1783
-
1784
- const _c0$2 = ["dateInput"];
1785
- const _c1 = ["wmDate", ""];
1786
- function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1787
- const _r4 = i0__namespace.ɵɵgetCurrentView();
1788
- i0__namespace.ɵɵelementStart(0, "wm-datetimepicker", 9);
1789
- 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)); });
1790
1689
  i0__namespace.ɵɵelementEnd();
1791
- i0__namespace.ɵɵelementStart(1, "div", 10);
1792
- i0__namespace.ɵɵlistener("click", function DateComponent_ng_template_8_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r4); const ctx_r5 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵ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__namespace.ɵɵrestoreView(_r4); const ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.onDateTimeInputFocus(true); return i0__namespace.ɵɵresetView(ctx_r6.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_8_Template_div_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r4); const ctx_r7 = i0__namespace.ɵɵnextContext(); ctx_r7.onDateTimeInputBlur(); return i0__namespace.ɵɵresetView(ctx_r7.invokeOnTouched($event)); });
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)); });
1793
1692
  i0__namespace.ɵɵelementEnd();
1794
1693
  } if (rf & 2) {
1795
- const ctx_r2 = i0__namespace.ɵɵnextContext();
1796
- i0__namespace.ɵɵ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);
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);
1797
1696
  i0__namespace.ɵɵadvance(1);
1798
- i0__namespace.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
1799
- i0__namespace.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date " + ctx_r2.displayValue : ctx_r2.hint || "Choose Date");
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");
1800
1699
  } }
1801
1700
  const CURRENT_DATE$1 = 'CURRENT_DATE';
1802
1701
  const DEFAULT_CLS$2 = 'app-date input-group';
@@ -1822,17 +1721,6 @@
1822
1721
  get datavalue() {
1823
1722
  return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
1824
1723
  }
1825
- get mask() {
1826
- if (this.imask) {
1827
- this.imask.destroyMask();
1828
- }
1829
- if (this.datepattern) {
1830
- return validateTheMaskedDate(this.datepattern, this.selectedLocale);
1831
- }
1832
- else {
1833
- return false;
1834
- }
1835
- }
1836
1724
  // Todo[Shubham]: needs to be redefined
1837
1725
  // sets the dataValue and computes the display model values
1838
1726
  // @ts-ignore
@@ -1865,17 +1753,11 @@
1865
1753
  this._bsDefaultLoadCheck = true;
1866
1754
  this.datepattern = this.appDefaults.dateFormat || i1$1.getDisplayDateTimeFormat(i1$1.FormWidgetType.DATE);
1867
1755
  this.updateFormat('datepattern');
1868
- if (this.imask) {
1869
- this.imask.maskRef.updateValue();
1870
- }
1871
1756
  }
1872
1757
  /**
1873
1758
  * This is an internal method triggered when the date input changes
1874
1759
  */
1875
1760
  onDisplayDateChange($event, isNativePicker = false) {
1876
- if (this.imask) {
1877
- this.imask.maskRef.updateValue();
1878
- }
1879
1761
  if (this.isEnterPressedOnDateInput) {
1880
1762
  this.isEnterPressedOnDateInput = false;
1881
1763
  return;
@@ -1904,9 +1786,6 @@
1904
1786
  }
1905
1787
  if (newVal) {
1906
1788
  this.bsDataValue = newVal;
1907
- if (this.imask) {
1908
- this.imask.maskRef.updateValue();
1909
- }
1910
1789
  }
1911
1790
  else {
1912
1791
  this.bsDataValue = undefined;
@@ -1919,9 +1798,6 @@
1919
1798
  if (!this.bsDataValue) {
1920
1799
  this.hightlightToday(this.activeDate);
1921
1800
  }
1922
- if (this.imask) {
1923
- this.imask.maskRef.updateValue();
1924
- }
1925
1801
  // We are using the two input tags(To maintain the modal and proxy modal) for the date control.
1926
1802
  // So actual bootstrap input target width we made it to 0, so bootstrap calculating the calendar container top position improperly.
1927
1803
  // To fix the container top position set the width 1px;
@@ -1937,19 +1813,11 @@
1937
1813
  i1$1.adjustContainerRightEdges($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
1938
1814
  }
1939
1815
  onInputBlur($event) {
1940
- if (this.imask) {
1941
- this.imask.maskRef.updateValue();
1942
- }
1943
1816
  if (!$($event.relatedTarget).hasClass('current-date')) {
1944
1817
  this.invokeOnTouched();
1945
1818
  this.invokeEventCallback('blur', { $event });
1946
1819
  }
1947
1820
  }
1948
- onInputFocus($event) {
1949
- if (this.imask) {
1950
- this.imask.maskRef.updateValue();
1951
- }
1952
- }
1953
1821
  hideDatepickerDropdown() {
1954
1822
  this.invokeOnTouched();
1955
1823
  this.isOpen = false;
@@ -2024,9 +1892,6 @@
2024
1892
  this.invalidDateTimeFormat = false;
2025
1893
  this.isEnterPressedOnDateInput = true;
2026
1894
  this.bsDatePickerDirective.bsValue = event.target.value ? newVal : '';
2027
- if (this.imask) {
2028
- this.imask.maskRef.updateValue();
2029
- }
2030
1895
  }
2031
1896
  this.toggleDpDropdown(event);
2032
1897
  }
@@ -2057,31 +1922,29 @@
2057
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)); }; }
2058
1923
  static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: DateComponent, selectors: [["", "wmDate", ""]], viewQuery: function DateComponent_Query(rf, ctx) { if (rf & 1) {
2059
1924
  i0__namespace.ɵɵviewQuery(i3.BsDatepickerDirective, 5);
2060
- i0__namespace.ɵɵviewQuery(_c0$2, 5, i4.IMaskDirective);
2061
1925
  } if (rf & 2) {
2062
1926
  let _t;
2063
1927
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.bsDatePickerDirective = _t.first);
2064
- i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
2065
1928
  } }, features: [i0__namespace.ɵɵProvidersFeature([
2066
1929
  base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
2067
1930
  base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
2068
1931
  base.provideAsWidgetRef(DateComponent)
2069
- ]), i0__namespace.ɵɵ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) {
2070
- i0__namespace.ɵɵelementStart(0, "input", 0, 1);
2071
- 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(); 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); });
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); });
2072
1935
  i0__namespace.ɵɵelementEnd();
2073
- i0__namespace.ɵɵelementStart(2, "span", 2)(3, "button", 3);
2074
- i0__namespace.ɵɵlistener("click", function DateComponent_Template_button_click_3_listener($event) { return ctx.toggleDpDropdown($event, false); });
2075
- i0__namespace.ɵɵelement(4, "i", 4);
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);
2076
1939
  i0__namespace.ɵɵelementEnd()();
2077
- i0__namespace.ɵɵelementStart(5, "div", 5)(6, "input", 6, 7);
2078
- i0__namespace.ɵɵ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); });
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); });
2079
1942
  i0__namespace.ɵɵelementEnd()();
2080
- i0__namespace.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
1943
+ i0__namespace.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
2081
1944
  } if (rf & 2) {
2082
- i0__namespace.ɵɵ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);
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);
2083
1946
  i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
2084
- i0__namespace.ɵɵadvance(3);
1947
+ i0__namespace.ɵɵadvance(2);
2085
1948
  i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
2086
1949
  i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
2087
1950
  i0__namespace.ɵɵadvance(3);
@@ -2089,7 +1952,7 @@
2089
1952
  i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
2090
1953
  i0__namespace.ɵɵadvance(2);
2091
1954
  i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
2092
- } }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, i4__namespace.IMaskDirective, DateTimePickerComponent], encapsulation: 2 }); }
1955
+ } }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 }); }
2093
1956
  }
2094
1957
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
2095
1958
  type: i0.Component,
@@ -2097,13 +1960,10 @@
2097
1960
  base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
2098
1961
  base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
2099
1962
  base.provideAsWidgetRef(DateComponent)
2100
- ], 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" }]
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" }]
2101
1964
  }], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
2102
1965
  type: i0.ViewChild,
2103
1966
  args: [i3.BsDatepickerDirective]
2104
- }], imask: [{
2105
- type: i0.ViewChild,
2106
- args: ['dateInput', { read: i4.IMaskDirective }]
2107
1967
  }] }); })();
2108
1968
 
2109
1969
  const dateTimeProps = new Map([
@@ -2614,7 +2474,7 @@
2614
2474
  i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
2615
2475
  i0__namespace.ɵɵadvance(3);
2616
2476
  i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
2617
- } }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, i4$1__namespace.BsDropdownMenuDirective, i4$1__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
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 }); }
2618
2478
  }
2619
2479
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
2620
2480
  type: i0.Component,
@@ -3004,7 +2864,7 @@
3004
2864
  i0__namespace.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
3005
2865
  i0__namespace.ɵɵadvance(3);
3006
2866
  i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
3007
- } }, dependencies: [i2__namespace.NgIf, i4$1__namespace.BsDropdownMenuDirective, i4$1__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
2867
+ } }, dependencies: [i2__namespace.NgIf, i4__namespace.BsDropdownMenuDirective, i4__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
3008
2868
  }
3009
2869
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
3010
2870
  type: i0.Component,
@@ -3030,11 +2890,10 @@
3030
2890
  static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule }); }
3031
2891
  static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
3032
2892
  i3.BsDatepickerModule,
3033
- i4$1.BsDropdownModule,
2893
+ i4.BsDropdownModule,
3034
2894
  i5.FormsModule,
3035
2895
  i6.TimepickerModule,
3036
- base.WmComponentsModule,
3037
- i4.IMaskModule] }); }
2896
+ base.WmComponentsModule] }); }
3038
2897
  }
3039
2898
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
3040
2899
  type: i0.NgModule,
@@ -3042,11 +2901,10 @@
3042
2901
  imports: [
3043
2902
  i2.CommonModule,
3044
2903
  i3.BsDatepickerModule,
3045
- i4$1.BsDropdownModule,
2904
+ i4.BsDropdownModule,
3046
2905
  i5.FormsModule,
3047
2906
  i6.TimepickerModule,
3048
- base.WmComponentsModule,
3049
- i4.IMaskModule
2907
+ base.WmComponentsModule
3050
2908
  ],
3051
2909
  declarations: [...components],
3052
2910
  exports: [...components]
@@ -3060,11 +2918,10 @@
3060
2918
  PickerComponent,
3061
2919
  PickerGroupComponent], imports: [i2.CommonModule,
3062
2920
  i3.BsDatepickerModule,
3063
- i4$1.BsDropdownModule,
2921
+ i4.BsDropdownModule,
3064
2922
  i5.FormsModule,
3065
2923
  i6.TimepickerModule,
3066
- base.WmComponentsModule,
3067
- i4.IMaskModule], exports: [DateComponent,
2924
+ base.WmComponentsModule], exports: [DateComponent,
3068
2925
  DatetimeComponent,
3069
2926
  TimeComponent,
3070
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,101 +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(): false | {
26
- mask: DateConstructor;
27
- pattern: any;
28
- format: (str: any) => any;
29
- parse: (str: any) => any;
30
- blocks: {
31
- YYYY: {
32
- mask: typeof import("imask/esm/index").MaskedRange;
33
- from: number;
34
- to: number;
35
- placeholderChar: string;
36
- maxLength: number;
37
- };
38
- YYY: {
39
- mask: typeof import("imask/esm/index").MaskedRange;
40
- from: number;
41
- to: number;
42
- placeholderChar: string;
43
- maxLength: number;
44
- };
45
- YY: {
46
- mask: typeof import("imask/esm/index").MaskedRange;
47
- from: number;
48
- to: number;
49
- placeholderChar: string;
50
- maxLength: number;
51
- };
52
- Y: {
53
- mask: typeof import("imask/esm/index").MaskedRange;
54
- from: number;
55
- to: number;
56
- placeholderChar: string;
57
- maxLength: number;
58
- };
59
- M: {
60
- mask: typeof import("imask/esm/index").MaskedRange;
61
- from: number;
62
- to: number;
63
- placeholderChar: string;
64
- maxLength: number;
65
- };
66
- MM: {
67
- mask: typeof import("imask/esm/index").MaskedRange;
68
- from: number;
69
- to: number;
70
- placeholderChar: string;
71
- maxLength: number;
72
- };
73
- MMM: {
74
- mask: typeof import("imask/esm/index").MaskedEnum;
75
- enum: string[];
76
- placeholderChar: string;
77
- maxLength: number;
78
- };
79
- MMMM: {
80
- mask: typeof import("imask/esm/index").MaskedEnum;
81
- enum: string[];
82
- placeholderChar: string;
83
- maxLength: number;
84
- };
85
- DD: {
86
- mask: typeof import("imask/esm/index").MaskedRange;
87
- from: number;
88
- to: number;
89
- placeholderChar: string;
90
- maxLength: number;
91
- };
92
- D: {
93
- mask: typeof import("imask/esm/index").MaskedRange;
94
- from: number;
95
- to: number;
96
- placeholderChar: string;
97
- maxLength: number;
98
- };
99
- ddd: {
100
- mask: typeof import("imask/esm/index").MaskedEnum;
101
- enum: string[];
102
- placeholderChar: string;
103
- maxLength: number;
104
- };
105
- dddd: {
106
- mask: typeof import("imask/esm/index").MaskedEnum;
107
- enum: string[];
108
- placeholderChar: string;
109
- minLength: number;
110
- };
111
- };
112
- autofix: boolean;
113
- lazy: boolean;
114
- overwrite: boolean;
115
- skipInvalid: boolean;
116
- };
117
24
  set datavalue(newVal: any);
118
25
  protected bsDatePickerDirective: any;
119
- imask: IMaskDirective<any>;
120
26
  constructor(inj: Injector, cdRef: ChangeDetectorRef, appDefaults: AppDefaults);
121
27
  /**
122
28
  * This is an internal method triggered when the date input changes
@@ -125,7 +31,6 @@ export declare class DateComponent extends BaseDateTimeComponent {
125
31
  private setDataValue;
126
32
  onDatePickerOpen(): void;
127
33
  onInputBlur($event: any): void;
128
- onInputFocus($event: any): void;
129
34
  hideDatepickerDropdown(): void;
130
35
  protected handleEvent(node: HTMLElement, eventName: string, callback: Function, locals: any): void;
131
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, typeof i12.IMaskModule], [typeof i1.DateComponent, typeof i2.DatetimeComponent, typeof i3.TimeComponent, typeof i4.DateTimePickerComponent, typeof i4.TimePickerComponent, typeof i5.PickerComponent, typeof i5.PickerGroupComponent]>;
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
  }