@wavemaker/app-ng-runtime 11.5.4-rc.5523 → 11.5.4-rc.5614
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/data/table/bundles/index.umd.js +0 -3
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +1 -3
- app-ng-runtime/components/data/table/esm2020/table.props.mjs +1 -2
- app-ng-runtime/components/data/table/fesm2015/index.mjs +0 -3
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +0 -3
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +0 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +37 -166
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +0 -114
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +1 -2
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +24 -34
- app-ng-runtime/components/input/epoch/esm2020/epoch.module.mjs +4 -8
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +28 -159
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +28 -159
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +0 -56
- app-ng-runtime/components/navigation/menu/esm2020/menu-dropdown/menu-dropdown.component.mjs +1 -51
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +1 -5
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +0 -56
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +0 -54
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +0 -4
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -2
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +3 -33
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +0 -115
- app-ng-runtime/components/input/epoch/esm2020/date/imaskUtil.mjs +0 -118
|
@@ -55,7 +55,6 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
|
55
55
|
enablecolumnselection: any;
|
|
56
56
|
enablesort: boolean;
|
|
57
57
|
filtermode: any;
|
|
58
|
-
filteronkeypress: any;
|
|
59
58
|
searchlabel: any;
|
|
60
59
|
formposition: any;
|
|
61
60
|
gridclass: any;
|
|
@@ -190,7 +189,6 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
|
190
189
|
direction: string;
|
|
191
190
|
};
|
|
192
191
|
filtermode: string;
|
|
193
|
-
filteronkeypress: boolean;
|
|
194
192
|
searchLabel: string;
|
|
195
193
|
rowActions: any[];
|
|
196
194
|
headerConfig: any[];
|
|
@@ -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) {
|
|
@@ -1636,7 +1635,7 @@
|
|
|
1636
1635
|
BaseDateTimeComponent.ɵfac = function BaseDateTimeComponent_Factory(t) { i0__namespace.ɵɵinvalidFactory(); };
|
|
1637
1636
|
BaseDateTimeComponent.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: BaseDateTimeComponent, viewQuery: function BaseDateTimeComponent_Query(rf, ctx) {
|
|
1638
1637
|
if (rf & 1) {
|
|
1639
|
-
i0__namespace.ɵɵviewQuery(i4
|
|
1638
|
+
i0__namespace.ɵɵviewQuery(i4.BsDropdownDirective, 5);
|
|
1640
1639
|
i0__namespace.ɵɵviewQuery(i6.TimepickerComponent, 5);
|
|
1641
1640
|
i0__namespace.ɵɵviewQuery(DateTimePickerComponent, 5);
|
|
1642
1641
|
}
|
|
@@ -1652,7 +1651,7 @@
|
|
|
1652
1651
|
type: i0.Directive
|
|
1653
1652
|
}], function () { return [{ type: i0__namespace.Injector }, { type: undefined }]; }, { bsDropdown: [{
|
|
1654
1653
|
type: i0.ViewChild,
|
|
1655
|
-
args: [i4
|
|
1654
|
+
args: [i4.BsDropdownDirective]
|
|
1656
1655
|
}], bsTimePicker: [{
|
|
1657
1656
|
type: i0.ViewChild,
|
|
1658
1657
|
args: [i6.TimepickerComponent]
|
|
@@ -1700,140 +1699,23 @@
|
|
|
1700
1699
|
base.registerFormWidget(i1$1.FormWidgetType.DATE, new Map(dateProps));
|
|
1701
1700
|
};
|
|
1702
1701
|
|
|
1703
|
-
function validateTheMaskedDate(format) {
|
|
1704
|
-
if (format == 'timestamp') {
|
|
1705
|
-
return {};
|
|
1706
|
-
}
|
|
1707
|
-
const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
|
|
1708
|
-
const parseFn = str => {
|
|
1709
|
-
return moment(str, modifiedFormat).toDate();
|
|
1710
|
-
};
|
|
1711
|
-
const formatFn = date => {
|
|
1712
|
-
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1713
|
-
};
|
|
1714
|
-
return {
|
|
1715
|
-
mask: Date,
|
|
1716
|
-
pattern: modifiedFormat,
|
|
1717
|
-
format: formatFn,
|
|
1718
|
-
parse: parseFn,
|
|
1719
|
-
blocks: {
|
|
1720
|
-
YYYY: {
|
|
1721
|
-
mask: IMask.MaskedRange,
|
|
1722
|
-
from: 1900,
|
|
1723
|
-
to: 9999,
|
|
1724
|
-
placeholderChar: 'Y',
|
|
1725
|
-
maxLength: 4,
|
|
1726
|
-
overwrite: false,
|
|
1727
|
-
},
|
|
1728
|
-
YYY: {
|
|
1729
|
-
mask: IMask.MaskedRange,
|
|
1730
|
-
from: 0,
|
|
1731
|
-
to: 9999,
|
|
1732
|
-
placeholderChar: 'Y',
|
|
1733
|
-
maxLength: 4,
|
|
1734
|
-
overwrite: false,
|
|
1735
|
-
},
|
|
1736
|
-
YY: {
|
|
1737
|
-
mask: IMask.MaskedRange,
|
|
1738
|
-
from: 0,
|
|
1739
|
-
to: 9999,
|
|
1740
|
-
placeholderChar: 'Y',
|
|
1741
|
-
maxLength: 4,
|
|
1742
|
-
overwrite: false,
|
|
1743
|
-
},
|
|
1744
|
-
Y: {
|
|
1745
|
-
mask: IMask.MaskedRange,
|
|
1746
|
-
from: 0,
|
|
1747
|
-
to: 9999,
|
|
1748
|
-
placeholderChar: 'Y',
|
|
1749
|
-
maxLength: 4,
|
|
1750
|
-
overwrite: false,
|
|
1751
|
-
},
|
|
1752
|
-
M: {
|
|
1753
|
-
mask: IMask.MaskedRange,
|
|
1754
|
-
from: 1,
|
|
1755
|
-
to: 12,
|
|
1756
|
-
placeholderChar: 'M',
|
|
1757
|
-
maxLength: 2,
|
|
1758
|
-
overwrite: false,
|
|
1759
|
-
},
|
|
1760
|
-
MM: {
|
|
1761
|
-
mask: IMask.MaskedRange,
|
|
1762
|
-
from: 1,
|
|
1763
|
-
to: 12,
|
|
1764
|
-
placeholderChar: 'M',
|
|
1765
|
-
maxLength: 2,
|
|
1766
|
-
overwrite: false,
|
|
1767
|
-
},
|
|
1768
|
-
MMM: {
|
|
1769
|
-
mask: IMask.MaskedEnum,
|
|
1770
|
-
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
|
|
1771
|
-
placeholderChar: 'M',
|
|
1772
|
-
maxLength: 3,
|
|
1773
|
-
overwrite: false,
|
|
1774
|
-
},
|
|
1775
|
-
MMMM: {
|
|
1776
|
-
mask: IMask.MaskedEnum,
|
|
1777
|
-
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })),
|
|
1778
|
-
placeholderChar: 'M',
|
|
1779
|
-
minLength: 3,
|
|
1780
|
-
overwrite: false,
|
|
1781
|
-
},
|
|
1782
|
-
DD: {
|
|
1783
|
-
mask: IMask.MaskedRange,
|
|
1784
|
-
from: 1,
|
|
1785
|
-
to: 31,
|
|
1786
|
-
placeholderChar: 'D',
|
|
1787
|
-
maxLength: 2,
|
|
1788
|
-
overwrite: false,
|
|
1789
|
-
},
|
|
1790
|
-
D: {
|
|
1791
|
-
mask: IMask.MaskedRange,
|
|
1792
|
-
from: 1,
|
|
1793
|
-
to: 31,
|
|
1794
|
-
placeholderChar: 'D',
|
|
1795
|
-
maxLength: 1,
|
|
1796
|
-
overwrite: false,
|
|
1797
|
-
},
|
|
1798
|
-
ddd: {
|
|
1799
|
-
mask: IMask.MaskedEnum,
|
|
1800
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
|
|
1801
|
-
placeholderChar: 'E',
|
|
1802
|
-
maxLength: 3,
|
|
1803
|
-
overwrite: false,
|
|
1804
|
-
},
|
|
1805
|
-
dddd: {
|
|
1806
|
-
mask: IMask.MaskedEnum,
|
|
1807
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
|
|
1808
|
-
placeholderChar: 'E',
|
|
1809
|
-
minLength: 6,
|
|
1810
|
-
overwrite: false,
|
|
1811
|
-
},
|
|
1812
|
-
},
|
|
1813
|
-
autofix: true,
|
|
1814
|
-
lazy: false,
|
|
1815
|
-
overwrite: false,
|
|
1816
|
-
skipInvalid: true
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
1702
|
const _c0$2 = ["wmDate", ""];
|
|
1821
|
-
function
|
|
1703
|
+
function DateComponent_ng_template_7_Template(rf, ctx) {
|
|
1822
1704
|
if (rf & 1) {
|
|
1823
|
-
const
|
|
1824
|
-
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1825
|
-
i0__namespace.ɵɵlistener("change", function
|
|
1705
|
+
const _r3 = i0__namespace.ɵɵgetCurrentView();
|
|
1706
|
+
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker", 8);
|
|
1707
|
+
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)); });
|
|
1826
1708
|
i0__namespace.ɵɵelementEnd();
|
|
1827
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
1828
|
-
i0__namespace.ɵɵlistener("focus", function
|
|
1709
|
+
i0__namespace.ɵɵelementStart(1, "div", 9);
|
|
1710
|
+
i0__namespace.ɵɵlistener("focus", function DateComponent_ng_template_7_Template_div_focus_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r4 = i0__namespace.ɵɵnextContext(); ctx_r4.onDateTimeInputFocus(true); return i0__namespace.ɵɵresetView(ctx_r4.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_7_Template_div_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3); const ctx_r5 = i0__namespace.ɵɵnextContext(); ctx_r5.onDateTimeInputBlur(); return i0__namespace.ɵɵresetView(ctx_r5.invokeOnTouched($event)); })("click", function DateComponent_ng_template_7_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r3); const ctx_r6 = i0__namespace.ɵɵnextContext(); return i0__namespace.ɵɵresetView(!(ctx_r6.disabled || ctx_r6.readonly || ctx_r6.isCurrentDate) && ctx_r6.showDatePickerModal()); });
|
|
1829
1711
|
i0__namespace.ɵɵelementEnd();
|
|
1830
1712
|
}
|
|
1831
1713
|
if (rf & 2) {
|
|
1832
|
-
const
|
|
1833
|
-
i0__namespace.ɵɵproperty("config",
|
|
1714
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
1715
|
+
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);
|
|
1834
1716
|
i0__namespace.ɵɵadvance(1);
|
|
1835
|
-
i0__namespace.ɵɵproperty("tabindex",
|
|
1836
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
1717
|
+
i0__namespace.ɵɵproperty("tabindex", ctx_r1.tabindex || 0);
|
|
1718
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.displayValue ? "Change Date" + ctx_r1.displayValue : "Choose Date");
|
|
1837
1719
|
}
|
|
1838
1720
|
}
|
|
1839
1721
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
@@ -1859,14 +1741,6 @@
|
|
|
1859
1741
|
get datavalue() {
|
|
1860
1742
|
return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1861
1743
|
}
|
|
1862
|
-
get mask() {
|
|
1863
|
-
if (this.datepattern) {
|
|
1864
|
-
return validateTheMaskedDate(this.datepattern);
|
|
1865
|
-
}
|
|
1866
|
-
else {
|
|
1867
|
-
return false;
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
1744
|
// Todo[Shubham]: needs to be redefined
|
|
1871
1745
|
// sets the dataValue and computes the display model values
|
|
1872
1746
|
// @ts-ignore
|
|
@@ -2081,24 +1955,24 @@
|
|
|
2081
1955
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2082
1956
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2083
1957
|
base.provideAsWidgetRef(DateComponent)
|
|
2084
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls:
|
|
1958
|
+
]), 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"], [1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "focus", "blur", "click"]], template: function DateComponent_Template(rf, ctx) {
|
|
2085
1959
|
if (rf & 1) {
|
|
2086
|
-
i0__namespace.ɵɵelementStart(0, "input", 0
|
|
1960
|
+
i0__namespace.ɵɵelementStart(0, "input", 0);
|
|
2087
1961
|
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); });
|
|
2088
1962
|
i0__namespace.ɵɵelementEnd();
|
|
2089
|
-
i0__namespace.ɵɵelementStart(
|
|
2090
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2091
|
-
i0__namespace.ɵɵelement(
|
|
1963
|
+
i0__namespace.ɵɵelementStart(1, "span", 1)(2, "button", 2);
|
|
1964
|
+
i0__namespace.ɵɵlistener("click", function DateComponent_Template_button_click_2_listener($event) { return ctx.toggleDpDropdown($event, false); });
|
|
1965
|
+
i0__namespace.ɵɵelement(3, "i", 3);
|
|
2092
1966
|
i0__namespace.ɵɵelementEnd()();
|
|
2093
|
-
i0__namespace.ɵɵelementStart(
|
|
2094
|
-
i0__namespace.ɵɵlistener("onShown", function
|
|
1967
|
+
i0__namespace.ɵɵelementStart(4, "div", 4)(5, "input", 5, 6);
|
|
1968
|
+
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); });
|
|
2095
1969
|
i0__namespace.ɵɵelementEnd()();
|
|
2096
|
-
i0__namespace.ɵɵtemplate(
|
|
1970
|
+
i0__namespace.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
|
|
2097
1971
|
}
|
|
2098
1972
|
if (rf & 2) {
|
|
2099
|
-
i0__namespace.ɵɵproperty("name", ctx.name)("
|
|
1973
|
+
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);
|
|
2100
1974
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2101
|
-
i0__namespace.ɵɵadvance(
|
|
1975
|
+
i0__namespace.ɵɵadvance(2);
|
|
2102
1976
|
i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
2103
1977
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
2104
1978
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -2107,7 +1981,7 @@
|
|
|
2107
1981
|
i0__namespace.ɵɵadvance(2);
|
|
2108
1982
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2109
1983
|
}
|
|
2110
|
-
}, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
1984
|
+
}, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
2111
1985
|
(function () {
|
|
2112
1986
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
|
|
2113
1987
|
type: i0.Component,
|
|
@@ -2115,7 +1989,7 @@
|
|
|
2115
1989
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2116
1990
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2117
1991
|
base.provideAsWidgetRef(DateComponent)
|
|
2118
|
-
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n
|
|
1992
|
+
], 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 (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date' + displayValue : 'Choose Date'\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n" }]
|
|
2119
1993
|
}], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
2120
1994
|
type: i0.ViewChild,
|
|
2121
1995
|
args: [i3.BsDatepickerDirective]
|
|
@@ -2644,7 +2518,7 @@
|
|
|
2644
2518
|
i0__namespace.ɵɵadvance(3);
|
|
2645
2519
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2646
2520
|
}
|
|
2647
|
-
}, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
2521
|
+
}, 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 });
|
|
2648
2522
|
(function () {
|
|
2649
2523
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2650
2524
|
type: i0.Component,
|
|
@@ -3043,7 +2917,7 @@
|
|
|
3043
2917
|
i0__namespace.ɵɵadvance(3);
|
|
3044
2918
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
3045
2919
|
}
|
|
3046
|
-
}, dependencies: [i2__namespace.NgIf,
|
|
2920
|
+
}, dependencies: [i2__namespace.NgIf, i4__namespace.BsDropdownMenuDirective, i4__namespace.BsDropdownDirective, i5__namespace.NgControlStatus, i5__namespace.NgModel, i6__namespace.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
3047
2921
|
(function () {
|
|
3048
2922
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
|
|
3049
2923
|
type: i0.Component,
|
|
@@ -3071,11 +2945,10 @@
|
|
|
3071
2945
|
EpochModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule });
|
|
3072
2946
|
EpochModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
3073
2947
|
i3.BsDatepickerModule,
|
|
3074
|
-
i4
|
|
2948
|
+
i4.BsDropdownModule,
|
|
3075
2949
|
i5.FormsModule,
|
|
3076
2950
|
i6.TimepickerModule,
|
|
3077
|
-
base.WmComponentsModule
|
|
3078
|
-
i4.IMaskModule] });
|
|
2951
|
+
base.WmComponentsModule] });
|
|
3079
2952
|
(function () {
|
|
3080
2953
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
|
|
3081
2954
|
type: i0.NgModule,
|
|
@@ -3083,11 +2956,10 @@
|
|
|
3083
2956
|
imports: [
|
|
3084
2957
|
i2.CommonModule,
|
|
3085
2958
|
i3.BsDatepickerModule,
|
|
3086
|
-
i4
|
|
2959
|
+
i4.BsDropdownModule,
|
|
3087
2960
|
i5.FormsModule,
|
|
3088
2961
|
i6.TimepickerModule,
|
|
3089
|
-
base.WmComponentsModule
|
|
3090
|
-
i4.IMaskModule
|
|
2962
|
+
base.WmComponentsModule
|
|
3091
2963
|
],
|
|
3092
2964
|
declarations: [...components],
|
|
3093
2965
|
exports: [...components]
|
|
@@ -3103,11 +2975,10 @@
|
|
|
3103
2975
|
PickerComponent,
|
|
3104
2976
|
PickerGroupComponent], imports: [i2.CommonModule,
|
|
3105
2977
|
i3.BsDatepickerModule,
|
|
3106
|
-
i4
|
|
2978
|
+
i4.BsDropdownModule,
|
|
3107
2979
|
i5.FormsModule,
|
|
3108
2980
|
i6.TimepickerModule,
|
|
3109
|
-
base.WmComponentsModule,
|
|
3110
|
-
i4.IMaskModule], exports: [DateComponent,
|
|
2981
|
+
base.WmComponentsModule], exports: [DateComponent,
|
|
3111
2982
|
DatetimeComponent,
|
|
3112
2983
|
TimeComponent,
|
|
3113
2984
|
DateTimePickerComponent,
|
|
@@ -21,120 +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").default.MaskedRange;
|
|
42
|
-
from: number;
|
|
43
|
-
to: number;
|
|
44
|
-
placeholderChar: string;
|
|
45
|
-
maxLength: number;
|
|
46
|
-
overwrite: boolean;
|
|
47
|
-
};
|
|
48
|
-
YYY: {
|
|
49
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
50
|
-
from: number;
|
|
51
|
-
to: number;
|
|
52
|
-
placeholderChar: string;
|
|
53
|
-
maxLength: number;
|
|
54
|
-
overwrite: boolean;
|
|
55
|
-
};
|
|
56
|
-
YY: {
|
|
57
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
58
|
-
from: number;
|
|
59
|
-
to: number;
|
|
60
|
-
placeholderChar: string;
|
|
61
|
-
maxLength: number;
|
|
62
|
-
overwrite: boolean;
|
|
63
|
-
};
|
|
64
|
-
Y: {
|
|
65
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
66
|
-
from: number;
|
|
67
|
-
to: number;
|
|
68
|
-
placeholderChar: string;
|
|
69
|
-
maxLength: number;
|
|
70
|
-
overwrite: boolean;
|
|
71
|
-
};
|
|
72
|
-
M: {
|
|
73
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
74
|
-
from: number;
|
|
75
|
-
to: number;
|
|
76
|
-
placeholderChar: string;
|
|
77
|
-
maxLength: number;
|
|
78
|
-
overwrite: boolean;
|
|
79
|
-
};
|
|
80
|
-
MM: {
|
|
81
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
82
|
-
from: number;
|
|
83
|
-
to: number;
|
|
84
|
-
placeholderChar: string;
|
|
85
|
-
maxLength: number;
|
|
86
|
-
overwrite: boolean;
|
|
87
|
-
};
|
|
88
|
-
MMM: {
|
|
89
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
90
|
-
enum: string[];
|
|
91
|
-
placeholderChar: string;
|
|
92
|
-
maxLength: number;
|
|
93
|
-
overwrite: boolean;
|
|
94
|
-
};
|
|
95
|
-
MMMM: {
|
|
96
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
97
|
-
enum: string[];
|
|
98
|
-
placeholderChar: string;
|
|
99
|
-
minLength: number;
|
|
100
|
-
overwrite: boolean;
|
|
101
|
-
};
|
|
102
|
-
DD: {
|
|
103
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
104
|
-
from: number;
|
|
105
|
-
to: number;
|
|
106
|
-
placeholderChar: string;
|
|
107
|
-
maxLength: number;
|
|
108
|
-
overwrite: boolean;
|
|
109
|
-
};
|
|
110
|
-
D: {
|
|
111
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
112
|
-
from: number;
|
|
113
|
-
to: number;
|
|
114
|
-
placeholderChar: string;
|
|
115
|
-
maxLength: number;
|
|
116
|
-
overwrite: boolean;
|
|
117
|
-
};
|
|
118
|
-
ddd: {
|
|
119
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
120
|
-
enum: string[];
|
|
121
|
-
placeholderChar: string;
|
|
122
|
-
maxLength: number;
|
|
123
|
-
overwrite: boolean;
|
|
124
|
-
};
|
|
125
|
-
dddd: {
|
|
126
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
127
|
-
enum: string[];
|
|
128
|
-
placeholderChar: string;
|
|
129
|
-
minLength: number;
|
|
130
|
-
overwrite: boolean;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
autofix: boolean;
|
|
134
|
-
lazy: boolean;
|
|
135
|
-
overwrite: boolean;
|
|
136
|
-
skipInvalid: boolean;
|
|
137
|
-
};
|
|
138
24
|
set datavalue(newVal: any);
|
|
139
25
|
protected bsDatePickerDirective: any;
|
|
140
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
|
}
|