@wavemaker/app-ng-runtime 11.11.0-next.27920 → 11.11.0-rc.209
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.
- package/build-task/bundles/index.umd.js +1 -1
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +2 -2
- package/build-task/fesm2022/index.mjs +1 -1
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/base/bundles/index.umd.js +14 -8
- package/components/base/esm2022/pipes/custom-pipes.mjs +3 -2
- package/components/base/esm2022/utils/form-utils.mjs +3 -2
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +4 -2
- package/components/base/fesm2022/index.mjs +10 -5
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/pipes/custom-pipes.d.ts +1 -1
- package/components/chart/bundles/index.umd.js +4 -2
- package/components/chart/esm2022/chart.utils.mjs +3 -2
- package/components/chart/fesm2022/index.mjs +2 -1
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/bundles/index.umd.js +28 -4
- package/components/containers/tabs/esm2022/tabs.component.mjs +27 -6
- package/components/containers/tabs/esm2022/tabs.props.mjs +2 -1
- package/components/containers/tabs/fesm2022/index.mjs +27 -5
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/tabs.component.d.ts +2 -0
- package/components/containers/wizard/bundles/index.umd.js +8 -11
- package/components/containers/wizard/esm2022/wizard.component.mjs +9 -12
- package/components/containers/wizard/fesm2022/index.mjs +8 -11
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/wizard.component.d.ts +2 -2
- package/components/data/table/bundles/index.umd.js +10 -7
- package/components/data/table/esm2022/table-filter.directive.mjs +3 -2
- package/components/data/table/esm2022/table.component.mjs +6 -4
- package/components/data/table/fesm2022/index.mjs +7 -4
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/bundles/index.umd.js +8 -3
- package/components/input/calendar/esm2022/calendar.component.mjs +7 -3
- package/components/input/calendar/fesm2022/index.mjs +6 -2
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/bundles/index.umd.js +5 -3
- package/components/input/color-picker/esm2022/color-picker.component.mjs +7 -5
- package/components/input/color-picker/fesm2022/index.mjs +6 -4
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/bundles/index.umd.js +45 -39
- package/components/input/epoch/esm2022/base-date-time.component.mjs +3 -2
- package/components/input/epoch/esm2022/date/imaskUtil.mjs +3 -2
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +5 -4
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +4 -3
- package/components/input/epoch/esm2022/time/time.component.mjs +4 -3
- package/components/input/epoch/fesm2022/index.mjs +43 -38
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/core/bundles/index.umd.js +6 -4
- package/core/esm2022/types/types.mjs +1 -1
- package/core/esm2022/utils/utils.mjs +3 -2
- package/core/fesm2022/index.mjs +2 -1
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/types/types.d.ts +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +4 -2
- package/oAuth/esm2022/oAuth.utils.mjs +3 -2
- package/oAuth/fesm2022/index.mjs +2 -1
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +13 -4
- package/runtime/base/esm2022/services/app.service.mjs +8 -1
- package/runtime/base/esm2022/services/i18n.service.mjs +4 -2
- package/runtime/base/fesm2022/index.mjs +9 -1
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/services/app.service.d.ts +1 -0
- package/runtime/dynamic/app/app.config.d.ts +5 -0
- package/runtime/dynamic/bundles/index.umd.js +165 -56
- package/runtime/dynamic/esm2022/app/app.config.mjs +136 -0
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +2 -4
- package/runtime/dynamic/esm2022/main.mjs +10 -10
- package/runtime/dynamic/fesm2022/index.mjs +189 -78
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/transpiler/bundles/index.umd.js +1 -1
- package/transpiler/esm2022/imports.mjs +2 -2
- package/transpiler/fesm2022/index.mjs +1 -1
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +5 -2
- package/variables/esm2022/util/variable/variables.utils.mjs +3 -2
- package/variables/fesm2022/index.mjs +2 -1
- package/variables/fesm2022/index.mjs.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wm/components/base'), require('angular-imask'), require('@angular/core'), require('@angular/forms'), require('ngx-bootstrap/datepicker'), require('@wm/core'), require('@angular/common'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/timepicker'), require('@wm/components/input'), require('ngx-bootstrap/modal'), require('lodash-es'), require('moment'), require('imask')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@wm/components/base', 'angular-imask', '@angular/core', '@angular/forms', 'ngx-bootstrap/datepicker', '@wm/core', '@angular/common', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', '@wm/components/input', 'ngx-bootstrap/modal', 'lodash-es', 'moment', 'imask'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.epoch = {}), global.wm.components.base, global.angularIMask, global.ng.core, global.ng.forms, global.datepicker, global.wm.core, global.ng.common, global.dropdown, global.timepicker, global.wm.components.input, global.modal, global._, global.
|
|
5
|
-
})(this, (function (exports, base, i2$1, i0, i2$2, i2, i1$1, common, i3, i5, input, i1, lodashEs,
|
|
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.wm.components.base, global.angularIMask, global.ng.core, global.ng.forms, global.datepicker, global.wm.core, global.ng.common, global.dropdown, global.timepicker, global.wm.components.input, global.modal, global._, global.momentLib, global.IMask));
|
|
5
|
+
})(this, (function (exports, base, i2$1, i0, i2$2, i2, i1$1, common, i3, i5, input, i1, lodashEs, momentLib, IMask) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
30
30
|
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
31
31
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
32
|
+
var momentLib__namespace = /*#__PURE__*/_interopNamespaceDefault(momentLib);
|
|
32
33
|
|
|
33
34
|
const _c0$4 = ["*"];
|
|
34
35
|
function PickerComponent_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -281,6 +282,7 @@
|
|
|
281
282
|
i0__namespace.ɵɵadvance(2);
|
|
282
283
|
i0__namespace.ɵɵtextInterpolate(ctx_r2.appLocale.LABEL_CLEAR_DATE || "Clear");
|
|
283
284
|
} }
|
|
285
|
+
const moment$4 = momentLib__namespace.default || window['moment'];
|
|
284
286
|
class DateTimePickerComponent {
|
|
285
287
|
constructor(inj, bsModalService) {
|
|
286
288
|
this.inj = inj;
|
|
@@ -319,19 +321,19 @@
|
|
|
319
321
|
if (!this.changedValue) {
|
|
320
322
|
return true;
|
|
321
323
|
}
|
|
322
|
-
const cd = moment(this.changedValue);
|
|
324
|
+
const cd = moment$4(this.changedValue);
|
|
323
325
|
const minDate = this._bsDatepickerConfig?.minDate;
|
|
324
326
|
const maxDate = this._bsDatepickerConfig?.maxDate;
|
|
325
327
|
if (minDate
|
|
326
328
|
&& ((this.mode === 'DATE'
|
|
327
|
-
&& moment(minDate).startOf('day').toDate() > this.changedValue)
|
|
329
|
+
&& moment$4(minDate).startOf('day').toDate() > this.changedValue)
|
|
328
330
|
|| (this.mode !== 'DATE'
|
|
329
331
|
&& minDate > this.changedValue))) {
|
|
330
332
|
return false;
|
|
331
333
|
}
|
|
332
334
|
if (maxDate
|
|
333
335
|
&& ((this.mode === 'DATE'
|
|
334
|
-
&& moment(maxDate).endOf('day').toDate() < this.changedValue)
|
|
336
|
+
&& moment$4(maxDate).endOf('day').toDate() < this.changedValue)
|
|
335
337
|
|| (this.mode !== 'DATE'
|
|
336
338
|
&& maxDate < this.changedValue))) {
|
|
337
339
|
return false;
|
|
@@ -368,7 +370,7 @@
|
|
|
368
370
|
$('body>modal-container .date-picker-modal').click(() => this.onCancelClick());
|
|
369
371
|
}
|
|
370
372
|
getDateLabel() {
|
|
371
|
-
return moment(this.changedValue).format(this.displayFormat);
|
|
373
|
+
return moment$4(this.changedValue).format(this.displayFormat);
|
|
372
374
|
}
|
|
373
375
|
openDatePicker() {
|
|
374
376
|
this.isTimeOpen = false;
|
|
@@ -417,7 +419,7 @@
|
|
|
417
419
|
this.hideModal();
|
|
418
420
|
}
|
|
419
421
|
setToday() {
|
|
420
|
-
const today = moment().startOf('day').toDate();
|
|
422
|
+
const today = moment$4().startOf('day').toDate();
|
|
421
423
|
this.onDateUpdate(today);
|
|
422
424
|
}
|
|
423
425
|
reset() {
|
|
@@ -542,7 +544,7 @@
|
|
|
542
544
|
}], displayFormat: [{
|
|
543
545
|
type: i0.Input
|
|
544
546
|
}] }); })();
|
|
545
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
547
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(DateTimePickerComponent, { className: "DateTimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 67 }); })();
|
|
546
548
|
class TimePickerComponent {
|
|
547
549
|
constructor(inj) {
|
|
548
550
|
this.inj = inj;
|
|
@@ -572,16 +574,16 @@
|
|
|
572
574
|
}
|
|
573
575
|
set({ index, value }, unit) {
|
|
574
576
|
if (unit === 'HOUR') {
|
|
575
|
-
this.value = moment(this.value).hour(parseInt(value)).toDate();
|
|
577
|
+
this.value = moment$4(this.value).hour(parseInt(value)).toDate();
|
|
576
578
|
}
|
|
577
579
|
else if (unit === 'MINUTE') {
|
|
578
|
-
this.value = moment(this.value).minute(parseInt(value)).toDate();
|
|
580
|
+
this.value = moment$4(this.value).minute(parseInt(value)).toDate();
|
|
579
581
|
}
|
|
580
582
|
else if (unit === 'SECOND') {
|
|
581
|
-
this.value = moment(this.value).second(parseInt(value)).toDate();
|
|
583
|
+
this.value = moment$4(this.value).second(parseInt(value)).toDate();
|
|
582
584
|
}
|
|
583
585
|
else if (unit === 'MERIDIAN') {
|
|
584
|
-
this.value = moment(this.value).minute(value).toDate();
|
|
586
|
+
this.value = moment$4(this.value).minute(value).toDate();
|
|
585
587
|
}
|
|
586
588
|
if (this.min && this.value < this.min) {
|
|
587
589
|
this.value = this.min;
|
|
@@ -592,13 +594,13 @@
|
|
|
592
594
|
this.change.emit(this.value);
|
|
593
595
|
}
|
|
594
596
|
get hour() {
|
|
595
|
-
return moment(this.value).hour();
|
|
597
|
+
return moment$4(this.value).hour();
|
|
596
598
|
}
|
|
597
599
|
get minute() {
|
|
598
|
-
return moment(this.value).minute();
|
|
600
|
+
return moment$4(this.value).minute();
|
|
599
601
|
}
|
|
600
602
|
get second() {
|
|
601
|
-
return moment(this.value).second();
|
|
603
|
+
return moment$4(this.value).second();
|
|
602
604
|
}
|
|
603
605
|
get meridian() {
|
|
604
606
|
return 'AM';
|
|
@@ -668,8 +670,9 @@
|
|
|
668
670
|
}], change: [{
|
|
669
671
|
type: i0.Output
|
|
670
672
|
}] }); })();
|
|
671
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber:
|
|
673
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TimePickerComponent, { className: "TimePickerComponent", filePath: "date-time/date-time-picker.component.ts", lineNumber: 320 }); })();
|
|
672
674
|
|
|
675
|
+
const moment$3 = momentLib__namespace.default || window['moment'];
|
|
673
676
|
const CURRENT_DATE$2 = 'CURRENT_DATE';
|
|
674
677
|
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
675
678
|
const DATEPICKER_DROPDOWN_OPTIONS = {
|
|
@@ -805,9 +808,9 @@
|
|
|
805
808
|
minDateMaxDateValidationOnInput(newVal, $event, displayValue, isNativePicker) {
|
|
806
809
|
if (newVal) {
|
|
807
810
|
const dateTimeVal = newVal;
|
|
808
|
-
newVal = moment(newVal).startOf('day').toDate();
|
|
809
|
-
const minDate = moment(i1$1.getDateObj(this.mindate)).startOf('day').toDate();
|
|
810
|
-
const maxDate = moment(i1$1.getDateObj(this.maxdate)).startOf('day').toDate();
|
|
811
|
+
newVal = moment$3(newVal).startOf('day').toDate();
|
|
812
|
+
const minDate = moment$3(i1$1.getDateObj(this.mindate)).startOf('day').toDate();
|
|
813
|
+
const maxDate = moment$3(i1$1.getDateObj(this.maxdate)).startOf('day').toDate();
|
|
811
814
|
if (this.mindate && newVal < minDate) {
|
|
812
815
|
const msg = `${this.appLocale.LABEL_MINDATE_VALIDATION_MESSAGE} ${this.mindate}.`;
|
|
813
816
|
this.invokeOnChange(this.datavalue, undefined, false);
|
|
@@ -947,7 +950,7 @@
|
|
|
947
950
|
if ($(obj).hasClass('selected')) {
|
|
948
951
|
$(obj).parent().attr('aria-selected', 'true');
|
|
949
952
|
}
|
|
950
|
-
$(obj).attr('aria-label', moment(newDate).format('dddd, MMMM Do YYYY'));
|
|
953
|
+
$(obj).attr('aria-label', moment$3(newDate).format('dddd, MMMM Do YYYY'));
|
|
951
954
|
$('[bsdatepickerdaydecorator]').not('.is-other-month').attr('tabindex', '-1');
|
|
952
955
|
$(obj).attr('tabindex', '0');
|
|
953
956
|
$(obj).focus();
|
|
@@ -1076,7 +1079,7 @@
|
|
|
1076
1079
|
let newdate;
|
|
1077
1080
|
if (event.key === 'ArrowDown') {
|
|
1078
1081
|
event.preventDefault();
|
|
1079
|
-
newdate = moment(this.activeDate).add(7, 'days').toDate();
|
|
1082
|
+
newdate = moment$3(this.activeDate).add(7, 'days').toDate();
|
|
1080
1083
|
this.setActiveDateFocus(newdate);
|
|
1081
1084
|
}
|
|
1082
1085
|
else if (event.ctrlKey && event.key === 'ArrowUp') {
|
|
@@ -1087,25 +1090,25 @@
|
|
|
1087
1090
|
}
|
|
1088
1091
|
else if (event.key === 'ArrowUp') {
|
|
1089
1092
|
event.preventDefault();
|
|
1090
|
-
newdate = moment(this.activeDate).add(-7, 'days').toDate();
|
|
1093
|
+
newdate = moment$3(this.activeDate).add(-7, 'days').toDate();
|
|
1091
1094
|
this.setActiveDateFocus(newdate);
|
|
1092
1095
|
}
|
|
1093
1096
|
else if (event.key === 'ArrowLeft') {
|
|
1094
|
-
newdate = moment(this.activeDate).add(-1, 'days').toDate();
|
|
1097
|
+
newdate = moment$3(this.activeDate).add(-1, 'days').toDate();
|
|
1095
1098
|
this.setActiveDateFocus(newdate);
|
|
1096
1099
|
}
|
|
1097
1100
|
else if (event.key === 'ArrowRight') {
|
|
1098
|
-
newdate = moment(this.activeDate).add(1, 'days').toDate();
|
|
1101
|
+
newdate = moment$3(this.activeDate).add(1, 'days').toDate();
|
|
1099
1102
|
this.setActiveDateFocus(newdate);
|
|
1100
1103
|
}
|
|
1101
1104
|
else if (event.key === 'PageUp') {
|
|
1102
1105
|
event.preventDefault();
|
|
1103
|
-
newdate = moment(this.activeDate).add(-1, 'month').toDate();
|
|
1106
|
+
newdate = moment$3(this.activeDate).add(-1, 'month').toDate();
|
|
1104
1107
|
this.setActiveDateFocus(newdate);
|
|
1105
1108
|
}
|
|
1106
1109
|
else if (event.key === 'PageDown') {
|
|
1107
1110
|
event.preventDefault();
|
|
1108
|
-
newdate = moment(this.activeDate).add(1, 'month').toDate();
|
|
1111
|
+
newdate = moment$3(this.activeDate).add(1, 'month').toDate();
|
|
1109
1112
|
this.setActiveDateFocus(newdate);
|
|
1110
1113
|
}
|
|
1111
1114
|
else if (event.key === 'Enter') {
|
|
@@ -1157,20 +1160,20 @@
|
|
|
1157
1160
|
}
|
|
1158
1161
|
else if (event.key === 'ArrowDown') {
|
|
1159
1162
|
event.preventDefault();
|
|
1160
|
-
newdate = moment(this.activeDate).add(3, 'month').toDate();
|
|
1163
|
+
newdate = moment$3(this.activeDate).add(3, 'month').toDate();
|
|
1161
1164
|
this.setActiveMonthFocus(newdate);
|
|
1162
1165
|
}
|
|
1163
1166
|
else if (event.key === 'ArrowUp') {
|
|
1164
1167
|
event.preventDefault();
|
|
1165
|
-
newdate = moment(this.activeDate).add(-3, 'month').toDate();
|
|
1168
|
+
newdate = moment$3(this.activeDate).add(-3, 'month').toDate();
|
|
1166
1169
|
this.setActiveMonthFocus(newdate);
|
|
1167
1170
|
}
|
|
1168
1171
|
else if (event.key === 'ArrowLeft') {
|
|
1169
|
-
newdate = moment(this.activeDate).add(-1, 'month').toDate();
|
|
1172
|
+
newdate = moment$3(this.activeDate).add(-1, 'month').toDate();
|
|
1170
1173
|
this.setActiveMonthFocus(newdate);
|
|
1171
1174
|
}
|
|
1172
1175
|
else if (event.key === 'ArrowRight') {
|
|
1173
|
-
newdate = moment(this.activeDate).add(1, 'month').toDate();
|
|
1176
|
+
newdate = moment$3(this.activeDate).add(1, 'month').toDate();
|
|
1174
1177
|
this.setActiveMonthFocus(newdate);
|
|
1175
1178
|
}
|
|
1176
1179
|
});
|
|
@@ -1223,20 +1226,20 @@
|
|
|
1223
1226
|
}
|
|
1224
1227
|
else if (event.key === 'ArrowDown') {
|
|
1225
1228
|
event.preventDefault();
|
|
1226
|
-
newdate = moment(this.activeDate).add(4, 'year').toDate();
|
|
1229
|
+
newdate = moment$3(this.activeDate).add(4, 'year').toDate();
|
|
1227
1230
|
this.setActiveYearFocus(newdate);
|
|
1228
1231
|
}
|
|
1229
1232
|
else if (event.key === 'ArrowUp') {
|
|
1230
1233
|
event.preventDefault();
|
|
1231
|
-
newdate = moment(this.activeDate).add(-4, 'year').toDate();
|
|
1234
|
+
newdate = moment$3(this.activeDate).add(-4, 'year').toDate();
|
|
1232
1235
|
this.setActiveYearFocus(newdate);
|
|
1233
1236
|
}
|
|
1234
1237
|
else if (event.key === 'ArrowLeft') {
|
|
1235
|
-
newdate = moment(this.activeDate).add(-1, 'year').toDate();
|
|
1238
|
+
newdate = moment$3(this.activeDate).add(-1, 'year').toDate();
|
|
1236
1239
|
this.setActiveYearFocus(newdate);
|
|
1237
1240
|
}
|
|
1238
1241
|
else if (event.key === 'ArrowRight') {
|
|
1239
|
-
newdate = moment(this.activeDate).add(1, 'year').toDate();
|
|
1242
|
+
newdate = moment$3(this.activeDate).add(1, 'year').toDate();
|
|
1240
1243
|
this.setActiveYearFocus(newdate);
|
|
1241
1244
|
}
|
|
1242
1245
|
});
|
|
@@ -1709,6 +1712,7 @@
|
|
|
1709
1712
|
base.registerFormWidget(i1$1.FormWidgetType.DATE, new Map(dateProps));
|
|
1710
1713
|
};
|
|
1711
1714
|
|
|
1715
|
+
const moment$2 = momentLib__namespace.default || window['moment'];
|
|
1712
1716
|
function validateTheMaskedDate(format, locale) {
|
|
1713
1717
|
if (format == 'timestamp') {
|
|
1714
1718
|
return false;
|
|
@@ -1721,10 +1725,10 @@
|
|
|
1721
1725
|
modifiedFormat = modifiedFormat.replace('M', 'MM');
|
|
1722
1726
|
}
|
|
1723
1727
|
const parseFn = str => {
|
|
1724
|
-
return moment(str, modifiedFormat).toDate();
|
|
1728
|
+
return moment$2(str, modifiedFormat).toDate();
|
|
1725
1729
|
};
|
|
1726
1730
|
const formatFn = date => {
|
|
1727
|
-
return moment(date, modifiedFormat).format(modifiedFormat);
|
|
1731
|
+
return moment$2(date, modifiedFormat).format(modifiedFormat);
|
|
1728
1732
|
};
|
|
1729
1733
|
return {
|
|
1730
1734
|
mask: Date,
|
|
@@ -2243,6 +2247,7 @@
|
|
|
2243
2247
|
i0__namespace.ɵɵproperty("tabindex", ctx_r2.tabindex || 0);
|
|
2244
2248
|
i0__namespace.ɵɵattribute("aria-label", ctx_r2.displayValue ? "Change Date " + ctx_r2.displayValue : ctx_r2.arialabel || "Choose Date");
|
|
2245
2249
|
} }
|
|
2250
|
+
const moment$1 = momentLib__namespace.default || window['moment'];
|
|
2246
2251
|
const DEFAULT_CLS$1 = 'app-datetime input-group';
|
|
2247
2252
|
const WIDGET_CONFIG$1 = { widgetType: 'wm-datetime', hostClass: DEFAULT_CLS$1 };
|
|
2248
2253
|
const CURRENT_DATE = 'CURRENT_DATE';
|
|
@@ -2435,7 +2440,7 @@
|
|
|
2435
2440
|
if (!newVal) {
|
|
2436
2441
|
// Set timevalue as 00:00:00 if we remove any one from hours/minutes/seconds field in timepicker after selecting date
|
|
2437
2442
|
if (this.bsDateValue && this.bsTimePicker && (this.bsTimePicker.hours === '' || this.bsTimePicker.minutes === '' || this.bsTimePicker.seconds === '')) {
|
|
2438
|
-
this.bsDateValue = this.bsTimeValue = this.proxyModel = moment(this.bsDateValue).startOf('day').toDate();
|
|
2443
|
+
this.bsDateValue = this.bsTimeValue = this.proxyModel = moment$1(this.bsDateValue).startOf('day').toDate();
|
|
2439
2444
|
}
|
|
2440
2445
|
else {
|
|
2441
2446
|
this.bsDateValue = this.bsTimeValue = this.proxyModel = undefined;
|
|
@@ -2703,7 +2708,7 @@
|
|
|
2703
2708
|
type: i0.ViewChild,
|
|
2704
2709
|
args: [i2.BsDatepickerDirective]
|
|
2705
2710
|
}] }); })();
|
|
2706
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(DatetimeComponent, { className: "DatetimeComponent", filePath: "date-time/date-time.component.ts", lineNumber:
|
|
2711
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(DatetimeComponent, { className: "DatetimeComponent", filePath: "date-time/date-time.component.ts", lineNumber: 63 }); })();
|
|
2707
2712
|
|
|
2708
2713
|
const timeProps = new Map([
|
|
2709
2714
|
['autofocus', base.PROP_BOOLEAN],
|
|
@@ -2768,6 +2773,7 @@
|
|
|
2768
2773
|
i0__namespace.ɵɵadvance();
|
|
2769
2774
|
i0__namespace.ɵɵattribute("aria-label", ctx_r1.displayValue ? "Change time " + ctx_r1.displayValue : ctx_r1.arialabel || "Select time");
|
|
2770
2775
|
} }
|
|
2776
|
+
const moment = momentLib__namespace.default || window['moment'];
|
|
2771
2777
|
const CURRENT_TIME = 'CURRENT_TIME';
|
|
2772
2778
|
const DEFAULT_CLS = 'input-group app-timeinput';
|
|
2773
2779
|
const WIDGET_CONFIG = { widgetType: 'wm-time', hostClass: DEFAULT_CLS };
|
|
@@ -3101,7 +3107,7 @@
|
|
|
3101
3107
|
}, {
|
|
3102
3108
|
type: i0.Optional
|
|
3103
3109
|
}] }], null); })();
|
|
3104
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TimeComponent, { className: "TimeComponent", filePath: "time/time.component.ts", lineNumber:
|
|
3110
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TimeComponent, { className: "TimeComponent", filePath: "time/time.component.ts", lineNumber: 49 }); })();
|
|
3105
3111
|
|
|
3106
3112
|
exports.DateComponent = DateComponent;
|
|
3107
3113
|
exports.DateTimePickerComponent = DateTimePickerComponent;
|