@wavemaker/app-ng-runtime 11.5.4-rc.5516 → 11.5.4-rc.5517
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 +186 -37
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +88 -0
- app-ng-runtime/components/input/epoch/date/imaskUtil.d.ts +89 -0
- app-ng-runtime/components/input/epoch/epoch.module.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +34 -24
- app-ng-runtime/components/input/epoch/esm2020/date/imaskUtil.mjs +138 -0
- app-ng-runtime/components/input/epoch/esm2020/epoch.module.mjs +8 -4
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +179 -28
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +179 -28
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -6,7 +6,7 @@ import * as i5 from '@angular/forms';
|
|
|
6
6
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
7
7
|
import * as i3 from 'ngx-bootstrap/datepicker';
|
|
8
8
|
import { BsDatepickerConfig, BsDatepickerDirective, BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
|
9
|
-
import * as i4 from 'ngx-bootstrap/dropdown';
|
|
9
|
+
import * as i4$1 from 'ngx-bootstrap/dropdown';
|
|
10
10
|
import { BsDropdownDirective, BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
11
11
|
import * as i6 from 'ngx-bootstrap/timepicker';
|
|
12
12
|
import { TimepickerConfig, TimepickerComponent, TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
@@ -15,6 +15,9 @@ import * as i1$1 from '@wm/core';
|
|
|
15
15
|
import { App, AbstractI18nService, isMobile, getFormattedDate, getDateObj, isString, setAttr, getNativeDateObject, hasCordova, isIos, FormWidgetType, getMomentLocaleObject, getDisplayDateTimeFormat, adjustContainerPosition, adjustContainerRightEdges, addEventListenerOnElement, addClass, $appDigest } from '@wm/core';
|
|
16
16
|
import { BaseFormCustomComponent } from '@wm/components/input';
|
|
17
17
|
import * as i1 from 'ngx-bootstrap/modal';
|
|
18
|
+
import IMask from 'imask';
|
|
19
|
+
import * as i4 from 'angular-imask';
|
|
20
|
+
import { IMaskModule } from 'angular-imask';
|
|
18
21
|
|
|
19
22
|
const _c0$4 = ["*"];
|
|
20
23
|
function PickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1637,21 +1640,158 @@ const registerProps$2 = () => {
|
|
|
1637
1640
|
registerFormWidget(FormWidgetType.DATE, new Map(dateProps));
|
|
1638
1641
|
};
|
|
1639
1642
|
|
|
1643
|
+
const weekNamesShort = [
|
|
1644
|
+
'Mon',
|
|
1645
|
+
'Tue',
|
|
1646
|
+
'Wed',
|
|
1647
|
+
'Thu',
|
|
1648
|
+
'Fri',
|
|
1649
|
+
'Sat',
|
|
1650
|
+
'Sun'
|
|
1651
|
+
];
|
|
1652
|
+
const weekNamesLong = [
|
|
1653
|
+
'Monday',
|
|
1654
|
+
'Tuesday',
|
|
1655
|
+
'Wednesday',
|
|
1656
|
+
'Thursday',
|
|
1657
|
+
'Friday',
|
|
1658
|
+
'Saturday',
|
|
1659
|
+
'Sunday'
|
|
1660
|
+
];
|
|
1661
|
+
const monthNamesShort = [
|
|
1662
|
+
'Jan',
|
|
1663
|
+
'Feb',
|
|
1664
|
+
'Mar',
|
|
1665
|
+
'Apr',
|
|
1666
|
+
'May',
|
|
1667
|
+
'Jun',
|
|
1668
|
+
'Jul',
|
|
1669
|
+
'Aug',
|
|
1670
|
+
'Sep',
|
|
1671
|
+
'Oct',
|
|
1672
|
+
'Nov',
|
|
1673
|
+
'Dec',
|
|
1674
|
+
];
|
|
1675
|
+
const monthNamesLong = [
|
|
1676
|
+
'January',
|
|
1677
|
+
'February',
|
|
1678
|
+
'March',
|
|
1679
|
+
'April',
|
|
1680
|
+
'May',
|
|
1681
|
+
'June',
|
|
1682
|
+
'July',
|
|
1683
|
+
'August',
|
|
1684
|
+
'September',
|
|
1685
|
+
'October',
|
|
1686
|
+
'November',
|
|
1687
|
+
'December',
|
|
1688
|
+
];
|
|
1689
|
+
function validateTheMaskedDate(format) {
|
|
1690
|
+
if (format == 'timestamp') {
|
|
1691
|
+
return {};
|
|
1692
|
+
}
|
|
1693
|
+
const modifiedFormat = format.toUpperCase().replace(/E/g, 'd');
|
|
1694
|
+
const parseFn = str => {
|
|
1695
|
+
return moment(str, modifiedFormat).toDate();
|
|
1696
|
+
};
|
|
1697
|
+
const formatFn = date => {
|
|
1698
|
+
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1699
|
+
};
|
|
1700
|
+
return {
|
|
1701
|
+
mask: Date,
|
|
1702
|
+
pattern: modifiedFormat,
|
|
1703
|
+
format: formatFn,
|
|
1704
|
+
parse: parseFn,
|
|
1705
|
+
blocks: {
|
|
1706
|
+
YYYY: {
|
|
1707
|
+
mask: IMask.MaskedRange,
|
|
1708
|
+
from: 1900,
|
|
1709
|
+
to: 9999,
|
|
1710
|
+
placeholderChar: 'Y',
|
|
1711
|
+
maxLength: 4
|
|
1712
|
+
},
|
|
1713
|
+
YY: {
|
|
1714
|
+
mask: IMask.MaskedRange,
|
|
1715
|
+
from: 0,
|
|
1716
|
+
to: 99,
|
|
1717
|
+
placeholderChar: 'Y',
|
|
1718
|
+
maxLength: 2
|
|
1719
|
+
},
|
|
1720
|
+
M: {
|
|
1721
|
+
mask: IMask.MaskedRange,
|
|
1722
|
+
from: 1,
|
|
1723
|
+
to: 12,
|
|
1724
|
+
placeholderChar: 'M',
|
|
1725
|
+
maxLength: 2
|
|
1726
|
+
},
|
|
1727
|
+
MM: {
|
|
1728
|
+
mask: IMask.MaskedRange,
|
|
1729
|
+
from: 1,
|
|
1730
|
+
to: 12,
|
|
1731
|
+
placeholderChar: 'M',
|
|
1732
|
+
maxLength: 2
|
|
1733
|
+
},
|
|
1734
|
+
MMM: {
|
|
1735
|
+
mask: IMask.MaskedEnum,
|
|
1736
|
+
enum: monthNamesShort,
|
|
1737
|
+
placeholderChar: 'M',
|
|
1738
|
+
maxLength: 3
|
|
1739
|
+
},
|
|
1740
|
+
MMMM: {
|
|
1741
|
+
mask: IMask.MaskedEnum,
|
|
1742
|
+
enum: monthNamesLong,
|
|
1743
|
+
placeholderChar: 'M',
|
|
1744
|
+
minLength: 3
|
|
1745
|
+
},
|
|
1746
|
+
DD: {
|
|
1747
|
+
mask: IMask.MaskedRange,
|
|
1748
|
+
from: 1,
|
|
1749
|
+
to: 31,
|
|
1750
|
+
placeholderChar: 'D',
|
|
1751
|
+
maxLength: 2
|
|
1752
|
+
},
|
|
1753
|
+
D: {
|
|
1754
|
+
mask: IMask.MaskedRange,
|
|
1755
|
+
from: 1,
|
|
1756
|
+
to: 31,
|
|
1757
|
+
placeholderChar: 'D',
|
|
1758
|
+
maxLength: 1
|
|
1759
|
+
},
|
|
1760
|
+
ddd: {
|
|
1761
|
+
mask: IMask.MaskedEnum,
|
|
1762
|
+
enum: weekNamesShort,
|
|
1763
|
+
placeholderChar: 'E',
|
|
1764
|
+
maxLength: 3
|
|
1765
|
+
},
|
|
1766
|
+
dddd: {
|
|
1767
|
+
mask: IMask.MaskedEnum,
|
|
1768
|
+
enum: weekNamesLong,
|
|
1769
|
+
placeholderChar: 'E',
|
|
1770
|
+
minLength: 6
|
|
1771
|
+
},
|
|
1772
|
+
},
|
|
1773
|
+
autofix: true,
|
|
1774
|
+
lazy: false,
|
|
1775
|
+
overwrite: true,
|
|
1776
|
+
skipInvalid: true
|
|
1777
|
+
};
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1640
1780
|
const _c0$2 = ["wmDate", ""];
|
|
1641
|
-
function
|
|
1642
|
-
const
|
|
1643
|
-
i0.ɵɵelementStart(0, "wm-datetimepicker",
|
|
1644
|
-
i0.ɵɵlistener("change", function
|
|
1781
|
+
function DateComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1782
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1783
|
+
i0.ɵɵelementStart(0, "wm-datetimepicker", 9);
|
|
1784
|
+
i0.ɵɵlistener("change", function DateComponent_ng_template_8_Template_wm_datetimepicker_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onDateChange($event)); });
|
|
1645
1785
|
i0.ɵɵelementEnd();
|
|
1646
|
-
i0.ɵɵelementStart(1, "div",
|
|
1647
|
-
i0.ɵɵlistener("focus", function
|
|
1786
|
+
i0.ɵɵelementStart(1, "div", 10);
|
|
1787
|
+
i0.ɵɵlistener("focus", function DateComponent_ng_template_8_Template_div_focus_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); ctx_r5.onDateTimeInputFocus(true); return i0.ɵɵresetView(ctx_r5.invokeOnFocus($event)); })("blur", function DateComponent_ng_template_8_Template_div_blur_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.onDateTimeInputBlur(); return i0.ɵɵresetView(ctx_r6.invokeOnTouched($event)); })("click", function DateComponent_ng_template_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!(ctx_r7.disabled || ctx_r7.readonly || ctx_r7.isCurrentDate) && ctx_r7.showDatePickerModal()); });
|
|
1648
1788
|
i0.ɵɵelementEnd();
|
|
1649
1789
|
} if (rf & 2) {
|
|
1650
|
-
const
|
|
1651
|
-
i0.ɵɵproperty("config",
|
|
1790
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1791
|
+
i0.ɵɵproperty("config", ctx_r2._dateOptions)("placement", ctx_r2.modal)("excludedDaysToDisable", ctx_r2.excludedDaysToDisable)("excludedDatesToDisable", ctx_r2.excludedDatesToDisable)("displayFormat", ctx_r2.dateInputFormat)("value", ctx_r2.bsDataValue);
|
|
1652
1792
|
i0.ɵɵadvance(1);
|
|
1653
|
-
i0.ɵɵproperty("tabindex",
|
|
1654
|
-
i0.ɵɵattribute("aria-label",
|
|
1793
|
+
i0.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
|
|
1794
|
+
i0.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date" + ctx_r2.displayValue : "Choose Date");
|
|
1655
1795
|
} }
|
|
1656
1796
|
const CURRENT_DATE$1 = 'CURRENT_DATE';
|
|
1657
1797
|
const DEFAULT_CLS$2 = 'app-date input-group';
|
|
@@ -1676,6 +1816,14 @@ class DateComponent extends BaseDateTimeComponent {
|
|
|
1676
1816
|
get datavalue() {
|
|
1677
1817
|
return getFormattedDate(this.datePipe, this.bsDataValue, this.outputformat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
1678
1818
|
}
|
|
1819
|
+
get mask() {
|
|
1820
|
+
if (this.datepattern) {
|
|
1821
|
+
return validateTheMaskedDate(this.datepattern);
|
|
1822
|
+
}
|
|
1823
|
+
else {
|
|
1824
|
+
return false;
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1679
1827
|
// Todo[Shubham]: needs to be redefined
|
|
1680
1828
|
// sets the dataValue and computes the display model values
|
|
1681
1829
|
// @ts-ignore
|
|
@@ -1886,22 +2034,22 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
|
|
|
1886
2034
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
1887
2035
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
1888
2036
|
provideAsWidgetRef(DateComponent)
|
|
1889
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls:
|
|
1890
|
-
i0.ɵɵelementStart(0, "input", 0);
|
|
2037
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls: 9, vars: 27, consts: [["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-dateinput", "display-input", 3, "name", "imask", "unmask", "tabindex", "value", "disabled", "autofocus", "required", "readOnly", "click", "focus", "blur", "change", "keydown"], ["dateInput", ""], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "tabindex", "disabled", "click"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "bsDatepicker", "", "placement", "bottom right", 1, "model-holder", 3, "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue", "onShown", "onHidden", "bsValueChange"], ["datepicker", "bsDatepicker"], [3, "ngIf"], ["dateTimePicker", "", "mode", "DATE", 3, "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value", "change"], [1, "mobile-input", "mobile-datepicker-container", 3, "tabindex", "focus", "blur", "click"]], template: function DateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2038
|
+
i0.ɵɵelementStart(0, "input", 0, 1);
|
|
1891
2039
|
i0.ɵɵ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); });
|
|
1892
2040
|
i0.ɵɵelementEnd();
|
|
1893
|
-
i0.ɵɵelementStart(
|
|
1894
|
-
i0.ɵɵlistener("click", function
|
|
1895
|
-
i0.ɵɵelement(
|
|
2041
|
+
i0.ɵɵelementStart(2, "span", 2)(3, "button", 3);
|
|
2042
|
+
i0.ɵɵlistener("click", function DateComponent_Template_button_click_3_listener($event) { return ctx.toggleDpDropdown($event, false); });
|
|
2043
|
+
i0.ɵɵelement(4, "i", 4);
|
|
1896
2044
|
i0.ɵɵelementEnd()();
|
|
1897
|
-
i0.ɵɵelementStart(
|
|
1898
|
-
i0.ɵɵlistener("onShown", function
|
|
2045
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "input", 6, 7);
|
|
2046
|
+
i0.ɵɵlistener("onShown", function DateComponent_Template_input_onShown_6_listener() { return ctx.onDatePickerOpen(); })("onHidden", function DateComponent_Template_input_onHidden_6_listener() { return ctx.hideDatepickerDropdown(); })("bsValueChange", function DateComponent_Template_input_bsValueChange_6_listener($event) { return ctx.onDateChange($event); });
|
|
1899
2047
|
i0.ɵɵelementEnd()();
|
|
1900
|
-
i0.ɵɵtemplate(
|
|
2048
|
+
i0.ɵɵtemplate(8, DateComponent_ng_template_8_Template, 2, 8, "ng-template", 8);
|
|
1901
2049
|
} if (rf & 2) {
|
|
1902
|
-
i0.ɵɵ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);
|
|
2050
|
+
i0.ɵɵproperty("name", ctx.name)("imask", ctx.mask)("unmask", true)("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("value", ctx.displayValue)("disabled", ctx.disabled || ctx.readonly)("autofocus", ctx.autofocus)("required", ctx.required)("readOnly", ctx.isReadOnly);
|
|
1903
2051
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1904
|
-
i0.ɵɵadvance(
|
|
2052
|
+
i0.ɵɵadvance(3);
|
|
1905
2053
|
i0.ɵɵproperty("tabindex", ctx.loadNativeDateInput ? "-1" : ctx.tabindex)("disabled", ctx.disabled || ctx.readonly);
|
|
1906
2054
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput)("aria-label", ctx.displayValue ? "Change Date " + ctx.displayValue : "Choose date by pressing enter");
|
|
1907
2055
|
i0.ɵɵadvance(3);
|
|
@@ -1909,14 +2057,14 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
|
|
|
1909
2057
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
1910
2058
|
i0.ɵɵadvance(2);
|
|
1911
2059
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
1912
|
-
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
2060
|
+
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.IMaskDirective, DateTimePickerComponent], encapsulation: 2 });
|
|
1913
2061
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DateComponent, [{
|
|
1914
2062
|
type: Component,
|
|
1915
2063
|
args: [{ selector: '[wmDate]', providers: [
|
|
1916
2064
|
provideAs(DateComponent, NG_VALUE_ACCESSOR, true),
|
|
1917
2065
|
provideAs(DateComponent, NG_VALIDATORS, true),
|
|
1918
2066
|
provideAsWidgetRef(DateComponent)
|
|
1919
|
-
], 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" }]
|
|
2067
|
+
], template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n #dateInput\n [name]=\"name\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (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" }]
|
|
1920
2068
|
}], function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }]; }, { bsDatePickerDirective: [{
|
|
1921
2069
|
type: ViewChild,
|
|
1922
2070
|
args: [BsDatepickerDirective]
|
|
@@ -2430,7 +2578,7 @@ DatetimeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimeC
|
|
|
2430
2578
|
i0.ɵɵattribute("aria-hidden", !!ctx.loadNativeDateInput);
|
|
2431
2579
|
i0.ɵɵadvance(3);
|
|
2432
2580
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2433
|
-
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2581
|
+
} }, dependencies: [i2.NgIf, i3.BsDatepickerDirective, i3.BsDatepickerInputDirective, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2434
2582
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimeComponent, [{
|
|
2435
2583
|
type: Component,
|
|
2436
2584
|
args: [{ selector: '[wmDateTime]', providers: [
|
|
@@ -2818,7 +2966,7 @@ TimeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeComponent
|
|
|
2818
2966
|
i0.ɵɵproperty("tabindex", ctx.tabindex)("disabled", ctx.disabled || ctx.readonly || ctx.isCurrentTime);
|
|
2819
2967
|
i0.ɵɵadvance(3);
|
|
2820
2968
|
i0.ɵɵproperty("ngIf", ctx.loadNativeDateInput);
|
|
2821
|
-
} }, dependencies: [i2.NgIf, i4.BsDropdownMenuDirective, i4.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2969
|
+
} }, dependencies: [i2.NgIf, i4$1.BsDropdownMenuDirective, i4$1.BsDropdownDirective, i5.NgControlStatus, i5.NgModel, i6.TimepickerComponent, DateTimePickerComponent], encapsulation: 2 });
|
|
2822
2970
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeComponent, [{
|
|
2823
2971
|
type: Component,
|
|
2824
2972
|
args: [{ selector: '[wmTime]', providers: [
|
|
@@ -2847,7 +2995,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2847
2995
|
BsDropdownModule,
|
|
2848
2996
|
FormsModule,
|
|
2849
2997
|
TimepickerModule,
|
|
2850
|
-
WmComponentsModule
|
|
2998
|
+
WmComponentsModule,
|
|
2999
|
+
IMaskModule] });
|
|
2851
3000
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EpochModule, [{
|
|
2852
3001
|
type: NgModule,
|
|
2853
3002
|
args: [{
|
|
@@ -2857,7 +3006,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2857
3006
|
BsDropdownModule,
|
|
2858
3007
|
FormsModule,
|
|
2859
3008
|
TimepickerModule,
|
|
2860
|
-
WmComponentsModule
|
|
3009
|
+
WmComponentsModule,
|
|
3010
|
+
IMaskModule
|
|
2861
3011
|
],
|
|
2862
3012
|
declarations: [...components],
|
|
2863
3013
|
exports: [...components]
|
|
@@ -2874,7 +3024,8 @@ EpochModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2874
3024
|
BsDropdownModule,
|
|
2875
3025
|
FormsModule,
|
|
2876
3026
|
TimepickerModule,
|
|
2877
|
-
WmComponentsModule
|
|
3027
|
+
WmComponentsModule,
|
|
3028
|
+
IMaskModule], exports: [DateComponent,
|
|
2878
3029
|
DatetimeComponent,
|
|
2879
3030
|
TimeComponent,
|
|
2880
3031
|
DateTimePickerComponent,
|