@wavemaker/app-ng-runtime 11.7.1-next.26361 → 11.7.1-next.26364

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