@wavemaker/app-ng-runtime 11.7.1-next.141118 → 11.7.1-next.141120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +37 -169
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +0 -103
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +1 -2
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +24 -34
- app-ng-runtime/components/input/epoch/esm2022/epoch.module.mjs +4 -8
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +28 -162
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +0 -103
- app-ng-runtime/components/input/epoch/esm2022/date/imaskUtil.mjs +0 -121
|
@@ -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'
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1637
|
+
args: [i4.BsDropdownDirective]
|
|
1639
1638
|
}], bsTimePicker: [{
|
|
1640
1639
|
type: i0.ViewChild,
|
|
1641
1640
|
args: [i6.TimepickerComponent]
|
|
@@ -1682,141 +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
1684
|
const _c0$2 = ["wmDate", ""];
|
|
1806
|
-
function
|
|
1807
|
-
const
|
|
1808
|
-
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1809
|
-
i0__namespace.ɵɵlistener("change", function
|
|
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)); });
|
|
1810
1689
|
i0__namespace.ɵɵelementEnd();
|
|
1811
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
1812
|
-
i0__namespace.ɵɵlistener("click", function
|
|
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)); });
|
|
1813
1692
|
i0__namespace.ɵɵelementEnd();
|
|
1814
1693
|
} if (rf & 2) {
|
|
1815
|
-
const
|
|
1816
|
-
i0__namespace.ɵɵproperty("config",
|
|
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);
|
|
1817
1696
|
i0__namespace.ɵɵadvance(1);
|
|
1818
|
-
i0__namespace.ɵɵproperty("tabindex",
|
|
1819
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
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");
|
|
1820
1699
|
} }
|
|
1821
1700
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
1822
1701
|
const DEFAULT_CLS$2 = 'app-date input-group';
|
|
@@ -1842,14 +1721,6 @@
|
|
|
1842
1721
|
get datavalue() {
|
|
1843
1722
|
return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1844
1723
|
}
|
|
1845
|
-
get mask() {
|
|
1846
|
-
if (this.datepattern) {
|
|
1847
|
-
return validateTheMaskedDate(this.datepattern);
|
|
1848
|
-
}
|
|
1849
|
-
else {
|
|
1850
|
-
return false;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
1724
|
// Todo[Shubham]: needs to be redefined
|
|
1854
1725
|
// sets the dataValue and computes the display model values
|
|
1855
1726
|
// @ts-ignore
|
|
@@ -2058,22 +1929,22 @@
|
|
|
2058
1929
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2059
1930
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2060
1931
|
base.provideAsWidgetRef(DateComponent)
|
|
2061
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls:
|
|
2062
|
-
i0__namespace.ɵɵelementStart(0, "input", 0
|
|
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);
|
|
2063
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); });
|
|
2064
1935
|
i0__namespace.ɵɵelementEnd();
|
|
2065
|
-
i0__namespace.ɵɵelementStart(
|
|
2066
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2067
|
-
i0__namespace.ɵɵelement(
|
|
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);
|
|
2068
1939
|
i0__namespace.ɵɵelementEnd()();
|
|
2069
|
-
i0__namespace.ɵɵelementStart(
|
|
2070
|
-
i0__namespace.ɵɵlistener("onShown", function
|
|
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); });
|
|
2071
1942
|
i0__namespace.ɵɵelementEnd()();
|
|
2072
|
-
i0__namespace.ɵɵtemplate(
|
|
1943
|
+
i0__namespace.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
|
|
2073
1944
|
} if (rf & 2) {
|
|
2074
|
-
i0__namespace.ɵɵproperty("name", ctx.name)("
|
|
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);
|
|
2075
1946
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2076
|
-
i0__namespace.ɵɵadvance(
|
|
1947
|
+
i0__namespace.ɵɵadvance(2);
|
|
2077
1948
|
i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
2078
1949
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
2079
1950
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -2081,7 +1952,7 @@
|
|
|
2081
1952
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2082
1953
|
i0__namespace.ɵɵadvance(2);
|
|
2083
1954
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2084
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
1955
|
+
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2085
1956
|
}
|
|
2086
1957
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
|
|
2087
1958
|
type: i0.Component,
|
|
@@ -2089,7 +1960,7 @@
|
|
|
2089
1960
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2090
1961
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2091
1962
|
base.provideAsWidgetRef(DateComponent)
|
|
2092
|
-
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\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" }]
|
|
2093
1964
|
}], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
2094
1965
|
type: i0.ViewChild,
|
|
2095
1966
|
args: [i3.BsDatepickerDirective]
|
|
@@ -2603,7 +2474,7 @@
|
|
|
2603
2474
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2604
2475
|
i0__namespace.ɵɵadvance(3);
|
|
2605
2476
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2606
|
-
} }, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
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 }); }
|
|
2607
2478
|
}
|
|
2608
2479
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2609
2480
|
type: i0.Component,
|
|
@@ -2993,7 +2864,7 @@
|
|
|
2993
2864
|
i0__namespace.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
2994
2865
|
i0__namespace.ɵɵadvance(3);
|
|
2995
2866
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2996
|
-
} }, dependencies: [i2__namespace.NgIf,
|
|
2867
|
+
} }, dependencies: [i2__namespace.NgIf, i4__namespace.BsDropdownMenuDirective, i4__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 }); }
|
|
2997
2868
|
}
|
|
2998
2869
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
|
|
2999
2870
|
type: i0.Component,
|
|
@@ -3019,11 +2890,10 @@
|
|
|
3019
2890
|
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule }); }
|
|
3020
2891
|
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
3021
2892
|
i3.BsDatepickerModule,
|
|
3022
|
-
i4
|
|
2893
|
+
i4.BsDropdownModule,
|
|
3023
2894
|
i5.FormsModule,
|
|
3024
2895
|
i6.TimepickerModule,
|
|
3025
|
-
base.WmComponentsModule
|
|
3026
|
-
i4.IMaskModule] }); }
|
|
2896
|
+
base.WmComponentsModule] }); }
|
|
3027
2897
|
}
|
|
3028
2898
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
|
|
3029
2899
|
type: i0.NgModule,
|
|
@@ -3031,11 +2901,10 @@
|
|
|
3031
2901
|
imports: [
|
|
3032
2902
|
i2.CommonModule,
|
|
3033
2903
|
i3.BsDatepickerModule,
|
|
3034
|
-
i4
|
|
2904
|
+
i4.BsDropdownModule,
|
|
3035
2905
|
i5.FormsModule,
|
|
3036
2906
|
i6.TimepickerModule,
|
|
3037
|
-
base.WmComponentsModule
|
|
3038
|
-
i4.IMaskModule
|
|
2907
|
+
base.WmComponentsModule
|
|
3039
2908
|
],
|
|
3040
2909
|
declarations: [...components],
|
|
3041
2910
|
exports: [...components]
|
|
@@ -3049,11 +2918,10 @@
|
|
|
3049
2918
|
PickerComponent,
|
|
3050
2919
|
PickerGroupComponent], imports: [i2.CommonModule,
|
|
3051
2920
|
i3.BsDatepickerModule,
|
|
3052
|
-
i4
|
|
2921
|
+
i4.BsDropdownModule,
|
|
3053
2922
|
i5.FormsModule,
|
|
3054
2923
|
i6.TimepickerModule,
|
|
3055
|
-
base.WmComponentsModule,
|
|
3056
|
-
i4.IMaskModule], exports: [DateComponent,
|
|
2924
|
+
base.WmComponentsModule], exports: [DateComponent,
|
|
3057
2925
|
DatetimeComponent,
|
|
3058
2926
|
TimeComponent,
|
|
3059
2927
|
DateTimePickerComponent,
|
|
@@ -21,109 +21,6 @@ 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
|
-
maxLength: number;
|
|
94
|
-
};
|
|
95
|
-
DD: {
|
|
96
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
97
|
-
from: number;
|
|
98
|
-
to: number;
|
|
99
|
-
placeholderChar: string;
|
|
100
|
-
maxLength: number;
|
|
101
|
-
};
|
|
102
|
-
D: {
|
|
103
|
-
mask: typeof import("imask/esm/index").MaskedRange;
|
|
104
|
-
from: number;
|
|
105
|
-
to: number;
|
|
106
|
-
placeholderChar: string;
|
|
107
|
-
maxLength: number;
|
|
108
|
-
};
|
|
109
|
-
ddd: {
|
|
110
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
111
|
-
enum: string[];
|
|
112
|
-
placeholderChar: string;
|
|
113
|
-
maxLength: number;
|
|
114
|
-
};
|
|
115
|
-
dddd: {
|
|
116
|
-
mask: typeof import("imask/esm/index").MaskedEnum;
|
|
117
|
-
enum: string[];
|
|
118
|
-
placeholderChar: string;
|
|
119
|
-
minLength: number;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
autofix: boolean;
|
|
123
|
-
lazy: boolean;
|
|
124
|
-
overwrite: boolean;
|
|
125
|
-
skipInvalid: boolean;
|
|
126
|
-
};
|
|
127
24
|
set datavalue(newVal: any);
|
|
128
25
|
protected bsDatePickerDirective: any;
|
|
129
26
|
constructor(inj: Injector, cdRef: ChangeDetectorRef, appDefaults: AppDefaults);
|
|
@@ -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
|
|
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
|
}
|