@wavemaker/app-ng-runtime 11.7.0-rc.5556 → 11.7.0-rc.5569
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +174 -49
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +102 -0
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +102 -0
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +19 -11
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +35 -25
- app-ng-runtime/components/input/epoch/esm2022/date/imaskUtil.mjs +106 -0
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +2 -2
- app-ng-runtime/components/input/epoch/esm2022/epoch.module.mjs +8 -4
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +167 -40
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/locales/moment-timezone/moment-timezone-with-data.js +66 -33
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +35 -2
|
@@ -119,7 +119,7 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
|
|
|
119
119
|
/**
|
|
120
120
|
* This method is used to highlight the current date
|
|
121
121
|
*/
|
|
122
|
-
protected hightlightToday(): void;
|
|
122
|
+
protected hightlightToday(newDate: any): void;
|
|
123
123
|
/**
|
|
124
124
|
* This method is used to find the new date is from another year or not
|
|
125
125
|
* @param newDate - newly selected date value
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/datepicker'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/timepicker'), require('@wm/components/base'), require('@wm/core'), require('@wm/components/input'), require('ngx-bootstrap/modal')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', '@wm/components/base', '@wm/core', '@wm/components/input', 'ngx-bootstrap/modal'], 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';
|
|
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('angular-imask'), require('@wm/components/base'), require('@wm/core'), require('@wm/components/input'), require('ngx-bootstrap/modal'), require('imask')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/datepicker', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', 'angular-imask', '@wm/components/base', '@wm/core', '@wm/components/input', 'ngx-bootstrap/modal', '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.angularIMask, global.wm.components.base, global.wm.core, global.wm.components.input, global.modal, global.IMask));
|
|
5
|
+
})(this, (function (exports, i0, i2, i5, i3, i4$1, i6, i4, base, i1$1, input, i1, IMask) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
26
26
|
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
27
27
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
28
|
-
var
|
|
28
|
+
var i4$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i4$1);
|
|
29
29
|
var i6__namespace = /*#__PURE__*/_interopNamespaceDefault(i6);
|
|
30
|
+
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
30
31
|
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
31
32
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
32
33
|
|
|
@@ -848,13 +849,18 @@
|
|
|
848
849
|
/**
|
|
849
850
|
* This method is used to highlight the current date
|
|
850
851
|
*/
|
|
851
|
-
hightlightToday() {
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
852
|
+
hightlightToday(newDate) {
|
|
853
|
+
const activeMonth = $(`.bs-datepicker-head .current`).first().text();
|
|
854
|
+
const activeYear = $(".bs-datepicker-head .current").eq(1).text();
|
|
855
|
+
const monthName = new Date().toLocaleString('default', { month: 'long' });
|
|
856
|
+
if (activeMonth == monthName && activeYear == new Date().getFullYear() && newDate.getDate() === new Date().getDate() && newDate.getMonth() === new Date().getMonth() && newDate.getFullYear() === new Date().getFullYear()) {
|
|
857
|
+
const toDay = new Date().getDate().toString();
|
|
858
|
+
_.filter($(`span:contains(${toDay})`).not('.is-other-month'), (obj) => {
|
|
859
|
+
if ($(obj).text() === toDay) {
|
|
860
|
+
$(obj).addClass('current-date text-info');
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
}
|
|
858
864
|
}
|
|
859
865
|
/**
|
|
860
866
|
* This method is used to find the new date is from another year or not
|
|
@@ -915,7 +921,10 @@
|
|
|
915
921
|
setTimeout(() => {
|
|
916
922
|
const newDay = newDate.getDate().toString();
|
|
917
923
|
_.filter($(`span:contains(${newDay})`).not('.is-other-month'), (obj) => {
|
|
918
|
-
|
|
924
|
+
const activeMonth = $(`.bs-datepicker-head .current`).first().text();
|
|
925
|
+
const activeYear = $(".bs-datepicker-head .current").eq(1).text();
|
|
926
|
+
const monthName = new Date().toLocaleString('default', { month: 'long' });
|
|
927
|
+
if ($(obj).text() === newDay && activeMonth == monthName && activeYear == new Date().getFullYear()) {
|
|
919
928
|
if ($(obj).hasClass('selected')) {
|
|
920
929
|
$(obj).parent().attr('aria-selected', 'true');
|
|
921
930
|
}
|
|
@@ -926,8 +935,8 @@
|
|
|
926
935
|
this.activeDate = newDate;
|
|
927
936
|
}
|
|
928
937
|
});
|
|
929
|
-
if (newDate.getMonth() === new Date().getMonth() && newDate.getFullYear() === new Date().getFullYear()) {
|
|
930
|
-
this.hightlightToday();
|
|
938
|
+
if (newDate.getDate() === new Date().getDate() && newDate.getMonth() === new Date().getMonth() && newDate.getFullYear() === new Date().getFullYear()) {
|
|
939
|
+
this.hightlightToday(newDate);
|
|
931
940
|
}
|
|
932
941
|
});
|
|
933
942
|
}
|
|
@@ -1612,7 +1621,7 @@
|
|
|
1612
1621
|
}
|
|
1613
1622
|
static { this.ɵfac = function BaseDateTimeComponent_Factory(t) { i0__namespace.ɵɵinvalidFactory(); }; }
|
|
1614
1623
|
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: BaseDateTimeComponent, viewQuery: function BaseDateTimeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1615
|
-
i0__namespace.ɵɵviewQuery(i4.BsDropdownDirective, 5);
|
|
1624
|
+
i0__namespace.ɵɵviewQuery(i4$1.BsDropdownDirective, 5);
|
|
1616
1625
|
i0__namespace.ɵɵviewQuery(i6.TimepickerComponent, 5);
|
|
1617
1626
|
i0__namespace.ɵɵviewQuery(DateTimePickerComponent, 5);
|
|
1618
1627
|
} if (rf & 2) {
|
|
@@ -1626,7 +1635,7 @@
|
|
|
1626
1635
|
type: i0.Directive
|
|
1627
1636
|
}], function () { return [{ type: i0__namespace.Injector }, { type: undefined }]; }, { bsDropdown: [{
|
|
1628
1637
|
type: i0.ViewChild,
|
|
1629
|
-
args: [i4.BsDropdownDirective]
|
|
1638
|
+
args: [i4$1.BsDropdownDirective]
|
|
1630
1639
|
}], bsTimePicker: [{
|
|
1631
1640
|
type: i0.ViewChild,
|
|
1632
1641
|
args: [i6.TimepickerComponent]
|
|
@@ -1673,21 +1682,126 @@
|
|
|
1673
1682
|
base.registerFormWidget(i1$1.FormWidgetType.DATE, new Map(dateProps));
|
|
1674
1683
|
};
|
|
1675
1684
|
|
|
1685
|
+
function validateTheMaskedDate(format) {
|
|
1686
|
+
if (format == 'timestamp') {
|
|
1687
|
+
return {};
|
|
1688
|
+
}
|
|
1689
|
+
const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
|
|
1690
|
+
const parseFn = str => {
|
|
1691
|
+
return moment(str, modifiedFormat).toDate();
|
|
1692
|
+
};
|
|
1693
|
+
const formatFn = date => {
|
|
1694
|
+
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1695
|
+
};
|
|
1696
|
+
return {
|
|
1697
|
+
mask: Date,
|
|
1698
|
+
pattern: modifiedFormat,
|
|
1699
|
+
format: formatFn,
|
|
1700
|
+
parse: parseFn,
|
|
1701
|
+
blocks: {
|
|
1702
|
+
YYYY: {
|
|
1703
|
+
mask: IMask.MaskedRange,
|
|
1704
|
+
from: 1900,
|
|
1705
|
+
to: 9999,
|
|
1706
|
+
placeholderChar: 'Y',
|
|
1707
|
+
maxLength: 4,
|
|
1708
|
+
},
|
|
1709
|
+
YYY: {
|
|
1710
|
+
mask: IMask.MaskedRange,
|
|
1711
|
+
from: 900,
|
|
1712
|
+
to: 999,
|
|
1713
|
+
placeholderChar: 'Y',
|
|
1714
|
+
maxLength: 3,
|
|
1715
|
+
overwrite: false,
|
|
1716
|
+
},
|
|
1717
|
+
YY: {
|
|
1718
|
+
mask: IMask.MaskedRange,
|
|
1719
|
+
from: 0,
|
|
1720
|
+
to: 99,
|
|
1721
|
+
placeholderChar: 'Y',
|
|
1722
|
+
maxLength: 2,
|
|
1723
|
+
},
|
|
1724
|
+
Y: {
|
|
1725
|
+
mask: IMask.MaskedRange,
|
|
1726
|
+
from: 0,
|
|
1727
|
+
to: 9,
|
|
1728
|
+
placeholderChar: 'Y',
|
|
1729
|
+
maxLength: 1,
|
|
1730
|
+
},
|
|
1731
|
+
M: {
|
|
1732
|
+
mask: IMask.MaskedRange,
|
|
1733
|
+
from: 1,
|
|
1734
|
+
to: 12,
|
|
1735
|
+
placeholderChar: 'M',
|
|
1736
|
+
maxLength: 2,
|
|
1737
|
+
},
|
|
1738
|
+
MM: {
|
|
1739
|
+
mask: IMask.MaskedRange,
|
|
1740
|
+
from: 1,
|
|
1741
|
+
to: 12,
|
|
1742
|
+
placeholderChar: 'M',
|
|
1743
|
+
maxLength: 2,
|
|
1744
|
+
},
|
|
1745
|
+
MMM: {
|
|
1746
|
+
mask: IMask.MaskedEnum,
|
|
1747
|
+
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
|
|
1748
|
+
placeholderChar: 'M',
|
|
1749
|
+
maxLength: 3,
|
|
1750
|
+
},
|
|
1751
|
+
MMMM: {
|
|
1752
|
+
mask: IMask.MaskedEnum,
|
|
1753
|
+
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })),
|
|
1754
|
+
placeholderChar: 'M',
|
|
1755
|
+
},
|
|
1756
|
+
DD: {
|
|
1757
|
+
mask: IMask.MaskedRange,
|
|
1758
|
+
from: 1,
|
|
1759
|
+
to: 31,
|
|
1760
|
+
placeholderChar: 'D',
|
|
1761
|
+
maxLength: 2,
|
|
1762
|
+
},
|
|
1763
|
+
D: {
|
|
1764
|
+
mask: IMask.MaskedRange,
|
|
1765
|
+
from: 1,
|
|
1766
|
+
to: 31,
|
|
1767
|
+
placeholderChar: 'D',
|
|
1768
|
+
maxLength: 1,
|
|
1769
|
+
},
|
|
1770
|
+
ddd: {
|
|
1771
|
+
mask: IMask.MaskedEnum,
|
|
1772
|
+
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
|
|
1773
|
+
placeholderChar: 'E',
|
|
1774
|
+
maxLength: 3,
|
|
1775
|
+
},
|
|
1776
|
+
dddd: {
|
|
1777
|
+
mask: IMask.MaskedEnum,
|
|
1778
|
+
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
|
|
1779
|
+
placeholderChar: 'E',
|
|
1780
|
+
minLength: 6,
|
|
1781
|
+
},
|
|
1782
|
+
},
|
|
1783
|
+
autofix: true,
|
|
1784
|
+
lazy: false,
|
|
1785
|
+
overwrite: true,
|
|
1786
|
+
skipInvalid: true
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1676
1790
|
const _c0$2 = ["wmDate", ""];
|
|
1677
|
-
function
|
|
1678
|
-
const
|
|
1679
|
-
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1680
|
-
i0__namespace.ɵɵlistener("change", function
|
|
1791
|
+
function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1792
|
+
const _r4 = i0__namespace.ɵɵgetCurrentView();
|
|
1793
|
+
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
1794
|
+
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)); });
|
|
1681
1795
|
i0__namespace.ɵɵelementEnd();
|
|
1682
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
1683
|
-
i0__namespace.ɵɵlistener("click", function
|
|
1796
|
+
i0__namespace.ɵɵelementStart(1, "div", 10);
|
|
1797
|
+
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)); });
|
|
1684
1798
|
i0__namespace.ɵɵelementEnd();
|
|
1685
1799
|
} if (rf & 2) {
|
|
1686
|
-
const
|
|
1687
|
-
i0__namespace.ɵɵproperty("config",
|
|
1800
|
+
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
1801
|
+
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);
|
|
1688
1802
|
i0__namespace.ɵɵadvance(1);
|
|
1689
|
-
i0__namespace.ɵɵproperty("tabindex",
|
|
1690
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
1803
|
+
i0__namespace.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
|
|
1804
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date " + ctx_r2.displayValue : ctx_r2.hint || "Choose Date");
|
|
1691
1805
|
} }
|
|
1692
1806
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
1693
1807
|
const DEFAULT_CLS$2 = 'app-date input-group';
|
|
@@ -1713,6 +1827,14 @@
|
|
|
1713
1827
|
get datavalue() {
|
|
1714
1828
|
return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1715
1829
|
}
|
|
1830
|
+
get mask() {
|
|
1831
|
+
if (this.datepattern) {
|
|
1832
|
+
return validateTheMaskedDate(this.datepattern);
|
|
1833
|
+
}
|
|
1834
|
+
else {
|
|
1835
|
+
return false;
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1716
1838
|
// Todo[Shubham]: needs to be redefined
|
|
1717
1839
|
// sets the dataValue and computes the display model values
|
|
1718
1840
|
// @ts-ignore
|
|
@@ -1788,7 +1910,7 @@
|
|
|
1788
1910
|
this.isOpen = true;
|
|
1789
1911
|
this.bsDataValue ? this.activeDate = this.bsDataValue : this.activeDate = new Date();
|
|
1790
1912
|
if (!this.bsDataValue) {
|
|
1791
|
-
this.hightlightToday();
|
|
1913
|
+
this.hightlightToday(this.activeDate);
|
|
1792
1914
|
}
|
|
1793
1915
|
// We are using the two input tags(To maintain the modal and proxy modal) for the date control.
|
|
1794
1916
|
// So actual bootstrap input target width we made it to 0, so bootstrap calculating the calendar container top position improperly.
|
|
@@ -1921,22 +2043,22 @@
|
|
|
1921
2043
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
1922
2044
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
1923
2045
|
base.provideAsWidgetRef(DateComponent)
|
|
1924
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls:
|
|
1925
|
-
i0__namespace.ɵɵelementStart(0, "input", 0);
|
|
2046
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls: 9, vars: 27, consts: [["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "name", "imask", "unmask", "tabindex", "value", "disabled", "autofocus", "required", "readOnly", "click", "focus", "blur", "change", "keydown"], ["dateInput", ""], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "tabindex", "disabled", "click"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "bsDatepicker", "", "placement", "bottom right", 1, "model-holder", 3, "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue", "onShown", "onHidden", "bsValueChange"], ["datepicker", "bsDatepicker"], [3, "ngIf"], ["dateTimePicker", "", "mode", "DATE", 3, "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value", "change"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "click", "focus", "blur"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2047
|
+
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
1926
2048
|
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); });
|
|
1927
2049
|
i0__namespace.ɵɵelementEnd();
|
|
1928
|
-
i0__namespace.ɵɵelementStart(
|
|
1929
|
-
i0__namespace.ɵɵlistener("click", function
|
|
1930
|
-
i0__namespace.ɵɵelement(
|
|
2050
|
+
i0__namespace.ɵɵelementStart(2, "span", 2)(3, "button", 3);
|
|
2051
|
+
i0__namespace.ɵɵlistener("click", function DateComponent_Template_button_click_3_listener($event) { return ctx.toggleDpDropdown($event, false); });
|
|
2052
|
+
i0__namespace.ɵɵelement(4, "i", 4);
|
|
1931
2053
|
i0__namespace.ɵɵelementEnd()();
|
|
1932
|
-
i0__namespace.ɵɵelementStart(
|
|
1933
|
-
i0__namespace.ɵɵlistener("onShown", function
|
|
2054
|
+
i0__namespace.ɵɵelementStart(5, "div", 5)(6, "input", 6, 7);
|
|
2055
|
+
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); });
|
|
1934
2056
|
i0__namespace.ɵɵelementEnd()();
|
|
1935
|
-
i0__namespace.ɵɵtemplate(
|
|
2057
|
+
i0__namespace.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
|
|
1936
2058
|
} if (rf & 2) {
|
|
1937
|
-
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);
|
|
2059
|
+
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);
|
|
1938
2060
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1939
|
-
i0__namespace.ɵɵadvance(
|
|
2061
|
+
i0__namespace.ɵɵadvance(3);
|
|
1940
2062
|
i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
1941
2063
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
1942
2064
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -1944,7 +2066,7 @@
|
|
|
1944
2066
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
1945
2067
|
i0__namespace.ɵɵadvance(2);
|
|
1946
2068
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
1947
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2069
|
+
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, i4__namespace.IMaskDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
1948
2070
|
}
|
|
1949
2071
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
|
|
1950
2072
|
type: i0.Component,
|
|
@@ -1952,7 +2074,7 @@
|
|
|
1952
2074
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
1953
2075
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
1954
2076
|
base.provideAsWidgetRef(DateComponent)
|
|
1955
|
-
], 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" }]
|
|
2077
|
+
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n #dateInput\n [name]=\"name\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (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" }]
|
|
1956
2078
|
}], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
1957
2079
|
type: i0.ViewChild,
|
|
1958
2080
|
args: [i3.BsDatepickerDirective]
|
|
@@ -2197,7 +2319,7 @@
|
|
|
2197
2319
|
this.focusTrap.activate();
|
|
2198
2320
|
this.bsDateValue ? this.activeDate = this.bsDateValue : this.activeDate = new Date();
|
|
2199
2321
|
if (!this.bsDateValue) {
|
|
2200
|
-
this.hightlightToday();
|
|
2322
|
+
this.hightlightToday(this.activeDate);
|
|
2201
2323
|
}
|
|
2202
2324
|
this.addDatepickerKeyboardEvents(this, true);
|
|
2203
2325
|
i1$1.adjustContainerPosition($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
|
|
@@ -2466,7 +2588,7 @@
|
|
|
2466
2588
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2467
2589
|
i0__namespace.ɵɵadvance(3);
|
|
2468
2590
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2469
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
2591
|
+
} }, 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 }); }
|
|
2470
2592
|
}
|
|
2471
2593
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2472
2594
|
type: i0.Component,
|
|
@@ -2856,7 +2978,7 @@
|
|
|
2856
2978
|
i0__namespace.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
2857
2979
|
i0__namespace.ɵɵadvance(3);
|
|
2858
2980
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2859
|
-
} }, dependencies: [i2__namespace.NgIf,
|
|
2981
|
+
} }, dependencies: [i2__namespace.NgIf, i4$1__namespace.BsDropdownMenuDirective, i4$1__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2860
2982
|
}
|
|
2861
2983
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
|
|
2862
2984
|
type: i0.Component,
|
|
@@ -2882,10 +3004,11 @@
|
|
|
2882
3004
|
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule }); }
|
|
2883
3005
|
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
2884
3006
|
i3.BsDatepickerModule,
|
|
2885
|
-
i4.BsDropdownModule,
|
|
3007
|
+
i4$1.BsDropdownModule,
|
|
2886
3008
|
i5.FormsModule,
|
|
2887
3009
|
i6.TimepickerModule,
|
|
2888
|
-
base.WmComponentsModule
|
|
3010
|
+
base.WmComponentsModule,
|
|
3011
|
+
i4.IMaskModule] }); }
|
|
2889
3012
|
}
|
|
2890
3013
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
|
|
2891
3014
|
type: i0.NgModule,
|
|
@@ -2893,10 +3016,11 @@
|
|
|
2893
3016
|
imports: [
|
|
2894
3017
|
i2.CommonModule,
|
|
2895
3018
|
i3.BsDatepickerModule,
|
|
2896
|
-
i4.BsDropdownModule,
|
|
3019
|
+
i4$1.BsDropdownModule,
|
|
2897
3020
|
i5.FormsModule,
|
|
2898
3021
|
i6.TimepickerModule,
|
|
2899
|
-
base.WmComponentsModule
|
|
3022
|
+
base.WmComponentsModule,
|
|
3023
|
+
i4.IMaskModule
|
|
2900
3024
|
],
|
|
2901
3025
|
declarations: [...components],
|
|
2902
3026
|
exports: [...components]
|
|
@@ -2910,10 +3034,11 @@
|
|
|
2910
3034
|
PickerComponent,
|
|
2911
3035
|
PickerGroupComponent], imports: [i2.CommonModule,
|
|
2912
3036
|
i3.BsDatepickerModule,
|
|
2913
|
-
i4.BsDropdownModule,
|
|
3037
|
+
i4$1.BsDropdownModule,
|
|
2914
3038
|
i5.FormsModule,
|
|
2915
3039
|
i6.TimepickerModule,
|
|
2916
|
-
base.WmComponentsModule
|
|
3040
|
+
base.WmComponentsModule,
|
|
3041
|
+
i4.IMaskModule], exports: [DateComponent,
|
|
2917
3042
|
DatetimeComponent,
|
|
2918
3043
|
TimeComponent,
|
|
2919
3044
|
DateTimePickerComponent,
|
|
@@ -21,6 +21,108 @@ export declare class DateComponent extends BaseDateTimeComponent {
|
|
|
21
21
|
get displayValue(): any;
|
|
22
22
|
get nativeDisplayValue(): any;
|
|
23
23
|
get datavalue(): any;
|
|
24
|
+
get mask(): false | {
|
|
25
|
+
mask?: undefined;
|
|
26
|
+
pattern?: undefined;
|
|
27
|
+
format?: undefined;
|
|
28
|
+
parse?: undefined;
|
|
29
|
+
blocks?: undefined;
|
|
30
|
+
autofix?: undefined;
|
|
31
|
+
lazy?: undefined;
|
|
32
|
+
overwrite?: undefined;
|
|
33
|
+
skipInvalid?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
mask: DateConstructor;
|
|
36
|
+
pattern: any;
|
|
37
|
+
format: (date: any) => any;
|
|
38
|
+
parse: (str: any) => any;
|
|
39
|
+
blocks: {
|
|
40
|
+
YYYY: {
|
|
41
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
42
|
+
from: number;
|
|
43
|
+
to: number;
|
|
44
|
+
placeholderChar: string;
|
|
45
|
+
maxLength: number;
|
|
46
|
+
};
|
|
47
|
+
YYY: {
|
|
48
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
49
|
+
from: number;
|
|
50
|
+
to: number;
|
|
51
|
+
placeholderChar: string;
|
|
52
|
+
maxLength: number;
|
|
53
|
+
overwrite: boolean;
|
|
54
|
+
};
|
|
55
|
+
YY: {
|
|
56
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
57
|
+
from: number;
|
|
58
|
+
to: number;
|
|
59
|
+
placeholderChar: string;
|
|
60
|
+
maxLength: number;
|
|
61
|
+
};
|
|
62
|
+
Y: {
|
|
63
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
placeholderChar: string;
|
|
67
|
+
maxLength: number;
|
|
68
|
+
};
|
|
69
|
+
M: {
|
|
70
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
71
|
+
from: number;
|
|
72
|
+
to: number;
|
|
73
|
+
placeholderChar: string;
|
|
74
|
+
maxLength: number;
|
|
75
|
+
};
|
|
76
|
+
MM: {
|
|
77
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
78
|
+
from: number;
|
|
79
|
+
to: number;
|
|
80
|
+
placeholderChar: string;
|
|
81
|
+
maxLength: number;
|
|
82
|
+
};
|
|
83
|
+
MMM: {
|
|
84
|
+
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
85
|
+
enum: string[];
|
|
86
|
+
placeholderChar: string;
|
|
87
|
+
maxLength: number;
|
|
88
|
+
};
|
|
89
|
+
MMMM: {
|
|
90
|
+
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
91
|
+
enum: string[];
|
|
92
|
+
placeholderChar: string;
|
|
93
|
+
};
|
|
94
|
+
DD: {
|
|
95
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
96
|
+
from: number;
|
|
97
|
+
to: number;
|
|
98
|
+
placeholderChar: string;
|
|
99
|
+
maxLength: number;
|
|
100
|
+
};
|
|
101
|
+
D: {
|
|
102
|
+
mask: typeof import("imask/esm/index").MaskedRange;
|
|
103
|
+
from: number;
|
|
104
|
+
to: number;
|
|
105
|
+
placeholderChar: string;
|
|
106
|
+
maxLength: number;
|
|
107
|
+
};
|
|
108
|
+
ddd: {
|
|
109
|
+
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
110
|
+
enum: string[];
|
|
111
|
+
placeholderChar: string;
|
|
112
|
+
maxLength: number;
|
|
113
|
+
};
|
|
114
|
+
dddd: {
|
|
115
|
+
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
116
|
+
enum: string[];
|
|
117
|
+
placeholderChar: string;
|
|
118
|
+
minLength: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
autofix: boolean;
|
|
122
|
+
lazy: boolean;
|
|
123
|
+
overwrite: boolean;
|
|
124
|
+
skipInvalid: boolean;
|
|
125
|
+
};
|
|
24
126
|
set datavalue(newVal: any);
|
|
25
127
|
protected bsDatePickerDirective: any;
|
|
26
128
|
constructor(inj: Injector, cdRef: ChangeDetectorRef, appDefaults: AppDefaults);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare function validateTheMaskedDate(format: any): {
|
|
2
|
+
mask?: undefined;
|
|
3
|
+
pattern?: undefined;
|
|
4
|
+
format?: undefined;
|
|
5
|
+
parse?: undefined;
|
|
6
|
+
blocks?: undefined;
|
|
7
|
+
autofix?: undefined;
|
|
8
|
+
lazy?: undefined;
|
|
9
|
+
overwrite?: undefined;
|
|
10
|
+
skipInvalid?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
mask: DateConstructor;
|
|
13
|
+
pattern: any;
|
|
14
|
+
format: (date: any) => any;
|
|
15
|
+
parse: (str: any) => any;
|
|
16
|
+
blocks: {
|
|
17
|
+
YYYY: {
|
|
18
|
+
mask: typeof import("imask").MaskedRange;
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
placeholderChar: string;
|
|
22
|
+
maxLength: number;
|
|
23
|
+
};
|
|
24
|
+
YYY: {
|
|
25
|
+
mask: typeof import("imask").MaskedRange;
|
|
26
|
+
from: number;
|
|
27
|
+
to: number;
|
|
28
|
+
placeholderChar: string;
|
|
29
|
+
maxLength: number;
|
|
30
|
+
overwrite: boolean;
|
|
31
|
+
};
|
|
32
|
+
YY: {
|
|
33
|
+
mask: typeof import("imask").MaskedRange;
|
|
34
|
+
from: number;
|
|
35
|
+
to: number;
|
|
36
|
+
placeholderChar: string;
|
|
37
|
+
maxLength: number;
|
|
38
|
+
};
|
|
39
|
+
Y: {
|
|
40
|
+
mask: typeof import("imask").MaskedRange;
|
|
41
|
+
from: number;
|
|
42
|
+
to: number;
|
|
43
|
+
placeholderChar: string;
|
|
44
|
+
maxLength: number;
|
|
45
|
+
};
|
|
46
|
+
M: {
|
|
47
|
+
mask: typeof import("imask").MaskedRange;
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
placeholderChar: string;
|
|
51
|
+
maxLength: number;
|
|
52
|
+
};
|
|
53
|
+
MM: {
|
|
54
|
+
mask: typeof import("imask").MaskedRange;
|
|
55
|
+
from: number;
|
|
56
|
+
to: number;
|
|
57
|
+
placeholderChar: string;
|
|
58
|
+
maxLength: number;
|
|
59
|
+
};
|
|
60
|
+
MMM: {
|
|
61
|
+
mask: typeof import("imask").MaskedEnum;
|
|
62
|
+
enum: string[];
|
|
63
|
+
placeholderChar: string;
|
|
64
|
+
maxLength: number;
|
|
65
|
+
};
|
|
66
|
+
MMMM: {
|
|
67
|
+
mask: typeof import("imask").MaskedEnum;
|
|
68
|
+
enum: string[];
|
|
69
|
+
placeholderChar: string;
|
|
70
|
+
};
|
|
71
|
+
DD: {
|
|
72
|
+
mask: typeof import("imask").MaskedRange;
|
|
73
|
+
from: number;
|
|
74
|
+
to: number;
|
|
75
|
+
placeholderChar: string;
|
|
76
|
+
maxLength: number;
|
|
77
|
+
};
|
|
78
|
+
D: {
|
|
79
|
+
mask: typeof import("imask").MaskedRange;
|
|
80
|
+
from: number;
|
|
81
|
+
to: number;
|
|
82
|
+
placeholderChar: string;
|
|
83
|
+
maxLength: number;
|
|
84
|
+
};
|
|
85
|
+
ddd: {
|
|
86
|
+
mask: typeof import("imask").MaskedEnum;
|
|
87
|
+
enum: string[];
|
|
88
|
+
placeholderChar: string;
|
|
89
|
+
maxLength: number;
|
|
90
|
+
};
|
|
91
|
+
dddd: {
|
|
92
|
+
mask: typeof import("imask").MaskedEnum;
|
|
93
|
+
enum: string[];
|
|
94
|
+
placeholderChar: string;
|
|
95
|
+
minLength: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
autofix: boolean;
|
|
99
|
+
lazy: boolean;
|
|
100
|
+
overwrite: boolean;
|
|
101
|
+
skipInvalid: boolean;
|
|
102
|
+
};
|
|
@@ -10,8 +10,9 @@ 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";
|
|
13
14
|
export declare class EpochModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<EpochModule, never>;
|
|
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]>;
|
|
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]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<EpochModule>;
|
|
17
18
|
}
|