@wavemaker/app-ng-runtime 11.5.4-rc.5522 → 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 -150
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +0 -98
- 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 -143
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +28 -143
- 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 -99
- app-ng-runtime/components/input/epoch/esm2020/date/imaskUtil.mjs +0 -102
|
@@ -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,124 +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
|
-
YY: {
|
|
1729
|
-
mask: IMask.MaskedRange,
|
|
1730
|
-
from: 0,
|
|
1731
|
-
to: 99,
|
|
1732
|
-
placeholderChar: 'Y',
|
|
1733
|
-
maxLength: 2,
|
|
1734
|
-
overwrite: false,
|
|
1735
|
-
},
|
|
1736
|
-
M: {
|
|
1737
|
-
mask: IMask.MaskedRange,
|
|
1738
|
-
from: 1,
|
|
1739
|
-
to: 12,
|
|
1740
|
-
placeholderChar: 'M',
|
|
1741
|
-
maxLength: 2,
|
|
1742
|
-
overwrite: false,
|
|
1743
|
-
},
|
|
1744
|
-
MM: {
|
|
1745
|
-
mask: IMask.MaskedRange,
|
|
1746
|
-
from: 1,
|
|
1747
|
-
to: 12,
|
|
1748
|
-
placeholderChar: 'M',
|
|
1749
|
-
maxLength: 2,
|
|
1750
|
-
overwrite: false,
|
|
1751
|
-
},
|
|
1752
|
-
MMM: {
|
|
1753
|
-
mask: IMask.MaskedEnum,
|
|
1754
|
-
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'short' })),
|
|
1755
|
-
placeholderChar: 'M',
|
|
1756
|
-
maxLength: 3,
|
|
1757
|
-
overwrite: false,
|
|
1758
|
-
},
|
|
1759
|
-
MMMM: {
|
|
1760
|
-
mask: IMask.MaskedEnum,
|
|
1761
|
-
enum: Array.from({ length: 12 }, (_, i) => new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })),
|
|
1762
|
-
placeholderChar: 'M',
|
|
1763
|
-
minLength: 3,
|
|
1764
|
-
overwrite: false,
|
|
1765
|
-
},
|
|
1766
|
-
DD: {
|
|
1767
|
-
mask: IMask.MaskedRange,
|
|
1768
|
-
from: 1,
|
|
1769
|
-
to: 31,
|
|
1770
|
-
placeholderChar: 'D',
|
|
1771
|
-
maxLength: 2,
|
|
1772
|
-
overwrite: false,
|
|
1773
|
-
},
|
|
1774
|
-
D: {
|
|
1775
|
-
mask: IMask.MaskedRange,
|
|
1776
|
-
from: 1,
|
|
1777
|
-
to: 31,
|
|
1778
|
-
placeholderChar: 'D',
|
|
1779
|
-
maxLength: 1,
|
|
1780
|
-
overwrite: false,
|
|
1781
|
-
},
|
|
1782
|
-
ddd: {
|
|
1783
|
-
mask: IMask.MaskedEnum,
|
|
1784
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'short' })),
|
|
1785
|
-
placeholderChar: 'E',
|
|
1786
|
-
maxLength: 3,
|
|
1787
|
-
overwrite: false,
|
|
1788
|
-
},
|
|
1789
|
-
dddd: {
|
|
1790
|
-
mask: IMask.MaskedEnum,
|
|
1791
|
-
enum: Array.from({ length: 7 }, (_, i) => new Date(0, 0, i + 1).toLocaleString(window.navigator.language, { weekday: 'long' })),
|
|
1792
|
-
placeholderChar: 'E',
|
|
1793
|
-
minLength: 6,
|
|
1794
|
-
overwrite: false,
|
|
1795
|
-
},
|
|
1796
|
-
},
|
|
1797
|
-
autofix: true,
|
|
1798
|
-
lazy: false,
|
|
1799
|
-
overwrite: false,
|
|
1800
|
-
skipInvalid: true
|
|
1801
|
-
};
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
1702
|
const _c0$2 = ["wmDate", ""];
|
|
1805
|
-
function
|
|
1703
|
+
function DateComponent_ng_template_7_Template(rf, ctx) {
|
|
1806
1704
|
if (rf & 1) {
|
|
1807
|
-
const
|
|
1808
|
-
i0__namespace.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1809
|
-
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)); });
|
|
1810
1708
|
i0__namespace.ɵɵelementEnd();
|
|
1811
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
1812
|
-
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()); });
|
|
1813
1711
|
i0__namespace.ɵɵelementEnd();
|
|
1814
1712
|
}
|
|
1815
1713
|
if (rf & 2) {
|
|
1816
|
-
const
|
|
1817
|
-
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);
|
|
1818
1716
|
i0__namespace.ɵɵadvance(1);
|
|
1819
|
-
i0__namespace.ɵɵproperty("tabindex",
|
|
1820
|
-
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");
|
|
1821
1719
|
}
|
|
1822
1720
|
}
|
|
1823
1721
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
@@ -1843,14 +1741,6 @@
|
|
|
1843
1741
|
get datavalue() {
|
|
1844
1742
|
return i1$1.getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1845
1743
|
}
|
|
1846
|
-
get mask() {
|
|
1847
|
-
if (this.datepattern) {
|
|
1848
|
-
return validateTheMaskedDate(this.datepattern);
|
|
1849
|
-
}
|
|
1850
|
-
else {
|
|
1851
|
-
return false;
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
1744
|
// Todo[Shubham]: needs to be redefined
|
|
1855
1745
|
// sets the dataValue and computes the display model values
|
|
1856
1746
|
// @ts-ignore
|
|
@@ -2065,24 +1955,24 @@
|
|
|
2065
1955
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2066
1956
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2067
1957
|
base.provideAsWidgetRef(DateComponent)
|
|
2068
|
-
]), 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) {
|
|
2069
1959
|
if (rf & 1) {
|
|
2070
|
-
i0__namespace.ɵɵelementStart(0, "input", 0
|
|
1960
|
+
i0__namespace.ɵɵelementStart(0, "input", 0);
|
|
2071
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); });
|
|
2072
1962
|
i0__namespace.ɵɵelementEnd();
|
|
2073
|
-
i0__namespace.ɵɵelementStart(
|
|
2074
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2075
|
-
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);
|
|
2076
1966
|
i0__namespace.ɵɵelementEnd()();
|
|
2077
|
-
i0__namespace.ɵɵelementStart(
|
|
2078
|
-
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); });
|
|
2079
1969
|
i0__namespace.ɵɵelementEnd()();
|
|
2080
|
-
i0__namespace.ɵɵtemplate(
|
|
1970
|
+
i0__namespace.ɵɵtemplate(7, DateComponent_ng_template_7_Template, 2, 8, "ng-template", 7);
|
|
2081
1971
|
}
|
|
2082
1972
|
if (rf & 2) {
|
|
2083
|
-
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);
|
|
2084
1974
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2085
|
-
i0__namespace.ɵɵadvance(
|
|
1975
|
+
i0__namespace.ɵɵadvance(2);
|
|
2086
1976
|
i0__namespace.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
2087
1977
|
i0__namespace.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
2088
1978
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -2091,7 +1981,7 @@
|
|
|
2091
1981
|
i0__namespace.ɵɵadvance(2);
|
|
2092
1982
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2093
1983
|
}
|
|
2094
|
-
}, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective,
|
|
1984
|
+
}, dependencies: [i2__namespace.NgIf, i3__namespace.BsDatepickerDirective, i3__namespace.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
2095
1985
|
(function () {
|
|
2096
1986
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DateComponent, [{
|
|
2097
1987
|
type: i0.Component,
|
|
@@ -2099,7 +1989,7 @@
|
|
|
2099
1989
|
base.provideAs(DateComponent, i5.NG_VALUE_ACCESSOR, true),
|
|
2100
1990
|
base.provideAs(DateComponent, i5.NG_VALIDATORS, true),
|
|
2101
1991
|
base.provideAsWidgetRef(DateComponent)
|
|
2102
|
-
], 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" }]
|
|
2103
1993
|
}], function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1$1__namespace.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
2104
1994
|
type: i0.ViewChild,
|
|
2105
1995
|
args: [i3.BsDatepickerDirective]
|
|
@@ -2628,7 +2518,7 @@
|
|
|
2628
2518
|
i0__namespace.ɵɵadvance(3);
|
|
2629
2519
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2630
2520
|
}
|
|
2631
|
-
}, 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 });
|
|
2632
2522
|
(function () {
|
|
2633
2523
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2634
2524
|
type: i0.Component,
|
|
@@ -3027,7 +2917,7 @@
|
|
|
3027
2917
|
i0__namespace.ɵɵadvance(3);
|
|
3028
2918
|
i0__namespace.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
3029
2919
|
}
|
|
3030
|
-
}, 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 });
|
|
3031
2921
|
(function () {
|
|
3032
2922
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TimeComponent, [{
|
|
3033
2923
|
type: i0.Component,
|
|
@@ -3055,11 +2945,10 @@
|
|
|
3055
2945
|
EpochModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: EpochModule });
|
|
3056
2946
|
EpochModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
3057
2947
|
i3.BsDatepickerModule,
|
|
3058
|
-
i4
|
|
2948
|
+
i4.BsDropdownModule,
|
|
3059
2949
|
i5.FormsModule,
|
|
3060
2950
|
i6.TimepickerModule,
|
|
3061
|
-
base.WmComponentsModule
|
|
3062
|
-
i4.IMaskModule] });
|
|
2951
|
+
base.WmComponentsModule] });
|
|
3063
2952
|
(function () {
|
|
3064
2953
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EpochModule, [{
|
|
3065
2954
|
type: i0.NgModule,
|
|
@@ -3067,11 +2956,10 @@
|
|
|
3067
2956
|
imports: [
|
|
3068
2957
|
i2.CommonModule,
|
|
3069
2958
|
i3.BsDatepickerModule,
|
|
3070
|
-
i4
|
|
2959
|
+
i4.BsDropdownModule,
|
|
3071
2960
|
i5.FormsModule,
|
|
3072
2961
|
i6.TimepickerModule,
|
|
3073
|
-
base.WmComponentsModule
|
|
3074
|
-
i4.IMaskModule
|
|
2962
|
+
base.WmComponentsModule
|
|
3075
2963
|
],
|
|
3076
2964
|
declarations: [...components],
|
|
3077
2965
|
exports: [...components]
|
|
@@ -3087,11 +2975,10 @@
|
|
|
3087
2975
|
PickerComponent,
|
|
3088
2976
|
PickerGroupComponent], imports: [i2.CommonModule,
|
|
3089
2977
|
i3.BsDatepickerModule,
|
|
3090
|
-
i4
|
|
2978
|
+
i4.BsDropdownModule,
|
|
3091
2979
|
i5.FormsModule,
|
|
3092
2980
|
i6.TimepickerModule,
|
|
3093
|
-
base.WmComponentsModule,
|
|
3094
|
-
i4.IMaskModule], exports: [DateComponent,
|
|
2981
|
+
base.WmComponentsModule], exports: [DateComponent,
|
|
3095
2982
|
DatetimeComponent,
|
|
3096
2983
|
TimeComponent,
|
|
3097
2984
|
DateTimePickerComponent,
|
|
@@ -21,104 +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
|
-
YY: {
|
|
49
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
50
|
-
from: number;
|
|
51
|
-
to: number;
|
|
52
|
-
placeholderChar: string;
|
|
53
|
-
maxLength: number;
|
|
54
|
-
overwrite: boolean;
|
|
55
|
-
};
|
|
56
|
-
M: {
|
|
57
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
58
|
-
from: number;
|
|
59
|
-
to: number;
|
|
60
|
-
placeholderChar: string;
|
|
61
|
-
maxLength: number;
|
|
62
|
-
overwrite: boolean;
|
|
63
|
-
};
|
|
64
|
-
MM: {
|
|
65
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
66
|
-
from: number;
|
|
67
|
-
to: number;
|
|
68
|
-
placeholderChar: string;
|
|
69
|
-
maxLength: number;
|
|
70
|
-
overwrite: boolean;
|
|
71
|
-
};
|
|
72
|
-
MMM: {
|
|
73
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
74
|
-
enum: string[];
|
|
75
|
-
placeholderChar: string;
|
|
76
|
-
maxLength: number;
|
|
77
|
-
overwrite: boolean;
|
|
78
|
-
};
|
|
79
|
-
MMMM: {
|
|
80
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
81
|
-
enum: string[];
|
|
82
|
-
placeholderChar: string;
|
|
83
|
-
minLength: number;
|
|
84
|
-
overwrite: boolean;
|
|
85
|
-
};
|
|
86
|
-
DD: {
|
|
87
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
88
|
-
from: number;
|
|
89
|
-
to: number;
|
|
90
|
-
placeholderChar: string;
|
|
91
|
-
maxLength: number;
|
|
92
|
-
overwrite: boolean;
|
|
93
|
-
};
|
|
94
|
-
D: {
|
|
95
|
-
mask: typeof import("imask").default.MaskedRange;
|
|
96
|
-
from: number;
|
|
97
|
-
to: number;
|
|
98
|
-
placeholderChar: string;
|
|
99
|
-
maxLength: number;
|
|
100
|
-
overwrite: boolean;
|
|
101
|
-
};
|
|
102
|
-
ddd: {
|
|
103
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
104
|
-
enum: string[];
|
|
105
|
-
placeholderChar: string;
|
|
106
|
-
maxLength: number;
|
|
107
|
-
overwrite: boolean;
|
|
108
|
-
};
|
|
109
|
-
dddd: {
|
|
110
|
-
mask: typeof import("imask").default.MaskedEnum;
|
|
111
|
-
enum: string[];
|
|
112
|
-
placeholderChar: string;
|
|
113
|
-
minLength: number;
|
|
114
|
-
overwrite: boolean;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
autofix: boolean;
|
|
118
|
-
lazy: boolean;
|
|
119
|
-
overwrite: boolean;
|
|
120
|
-
skipInvalid: boolean;
|
|
121
|
-
};
|
|
122
24
|
set datavalue(newVal: any);
|
|
123
25
|
protected bsDatePickerDirective: any;
|
|
124
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
|
}
|