@wavemaker/app-ng-runtime 11.8.1-next.27351 → 11.8.1-next.27358
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/default/bundles/index.umd.js +5 -0
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +5 -0
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +31 -7
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +5 -0
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +33 -8
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +31 -7
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +1 -1
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +2 -2
- app-ng-runtime/core/esm2022/utils/utils.mjs +3 -3
- app-ng-runtime/core/fesm2022/index.mjs +2 -2
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +1 -1
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- app-ng-runtime/runtime/base/fesm2022/index.mjs +1 -1
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
|
@@ -2173,8 +2173,9 @@ const registerProps$1 = () => {
|
|
|
2173
2173
|
registerFormWidget(FormWidgetType.TIMESTAMP, new Map(dateTimeProps));
|
|
2174
2174
|
};
|
|
2175
2175
|
|
|
2176
|
-
const _c0$1 = ["
|
|
2177
|
-
const _c1$1 =
|
|
2176
|
+
const _c0$1 = ["dateInput"];
|
|
2177
|
+
const _c1$1 = ["wmDateTime", ""];
|
|
2178
|
+
const _c2 = () => ({ standalone: true });
|
|
2178
2179
|
function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
2179
2180
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
2180
2181
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -2188,7 +2189,7 @@ function DatetimeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
2188
2189
|
i0.ɵɵadvance();
|
|
2189
2190
|
i0.ɵɵproperty("showMeridian", ctx_r2.ismeridian)("readonlyInput", ctx_r2.disabled || ctx_r2.readonly || ctx_r2.isCurrentDate);
|
|
2190
2191
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.bsTimeValue);
|
|
2191
|
-
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(12,
|
|
2192
|
+
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(12, _c2))("min", ctx_r2.minTime)("max", ctx_r2.maxTime)("hourStep", ctx_r2.hourstep)("minuteStep", ctx_r2.minutestep)("secondsStep", ctx_r2.secondsstep)("mousewheel", true)("arrowkeys", true)("showSeconds", ctx_r2.showseconds);
|
|
2192
2193
|
} }
|
|
2193
2194
|
function DatetimeComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
2194
2195
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -2221,7 +2222,10 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2221
2222
|
* @returns {any|string}
|
|
2222
2223
|
*/
|
|
2223
2224
|
get displayValue() {
|
|
2224
|
-
|
|
2225
|
+
if (this.showdateformatasplaceholder && this.imask?.maskRef && this.maskDateInputFormat) {
|
|
2226
|
+
return getFormattedDate(this.datePipe, this.bsDateValue, this.maskDateInputFormat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
2227
|
+
}
|
|
2228
|
+
return getFormattedDate(this.datePipe, this.bsDateValue, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this) || '';
|
|
2225
2229
|
}
|
|
2226
2230
|
get nativeDisplayValue() {
|
|
2227
2231
|
return getFormattedDate(this.datePipe, this.proxyModel, 'yyyy-MM-ddTHH:mm:ss', this.timeZone, this.key, this.isCurrentDate, this) || '';
|
|
@@ -2256,6 +2260,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2256
2260
|
this.cdRef = cdRef;
|
|
2257
2261
|
this.appDefaults = appDefaults;
|
|
2258
2262
|
this.isEnterPressedOnDateInput = false;
|
|
2263
|
+
this.showdateformatasplaceholder = false;
|
|
2259
2264
|
/**
|
|
2260
2265
|
* This property checks if the timePicker is Open
|
|
2261
2266
|
*/
|
|
@@ -2371,12 +2376,23 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2371
2376
|
const datePickerContainer = $('.bs-datepicker-container')[0];
|
|
2372
2377
|
this.focusTrap = setFocusTrap(datePickerContainer, true);
|
|
2373
2378
|
this.focusTrap.activate();
|
|
2374
|
-
this.
|
|
2379
|
+
this.activeDate = this.bsDateValue ? this.bsDateValue : (this.timeZone ? getMomentLocaleObject(this.timeZone) : new Date());
|
|
2375
2380
|
if (!this.bsDateValue) {
|
|
2376
2381
|
this.hightlightToday(this.activeDate);
|
|
2377
2382
|
}
|
|
2378
2383
|
this.addDatepickerKeyboardEvents(this, true);
|
|
2379
2384
|
adjustContainerPosition($('bs-datepicker-container'), this.nativeElement, this.bsDatePickerDirective._datepicker);
|
|
2385
|
+
if (this.timeZone) {
|
|
2386
|
+
const todayBtn = document.querySelector(`.${this.dateContainerCls} .bs-datepicker-buttons .btn-today-wrapper button`);
|
|
2387
|
+
const setTodayTZHandler = (event) => {
|
|
2388
|
+
const todayTZ = getMomentLocaleObject(this.timeZone);
|
|
2389
|
+
if (new Date(this.bsDateValue).toDateString() !== new Date(todayTZ).toDateString()) {
|
|
2390
|
+
this.bsDateValue = todayTZ;
|
|
2391
|
+
}
|
|
2392
|
+
todayBtn.removeEventListener('click', setTodayTZHandler);
|
|
2393
|
+
};
|
|
2394
|
+
todayBtn.addEventListener('click', setTodayTZHandler);
|
|
2395
|
+
}
|
|
2380
2396
|
}
|
|
2381
2397
|
/**
|
|
2382
2398
|
* This is an internal method to update the model
|
|
@@ -2388,6 +2404,9 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2388
2404
|
$(this.nativeElement).find('.display-input').val(this.displayValue);
|
|
2389
2405
|
}
|
|
2390
2406
|
}
|
|
2407
|
+
if (newVal && !this.bsDateValue && this.timeZone) {
|
|
2408
|
+
newVal = getMomentLocaleObject(this.timeZone, newVal);
|
|
2409
|
+
}
|
|
2391
2410
|
// min date and max date validation in web.
|
|
2392
2411
|
// if invalid dates are entered, device is showing validation message.
|
|
2393
2412
|
this.minDateMaxDateValidationOnInput(newVal);
|
|
@@ -2598,15 +2617,17 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2598
2617
|
static { this.ɵfac = function DatetimeComponent_Factory(t) { return new (t || DatetimeComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.AppDefaults), i0.ɵɵdirectiveInject(i1$1.App), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2599
2618
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimeComponent, selectors: [["", "wmDateTime", ""]], viewQuery: function DatetimeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2600
2619
|
i0.ɵɵviewQuery(BsDatepickerDirective, 5);
|
|
2620
|
+
i0.ɵɵviewQuery(_c0$1, 5, IMaskDirective);
|
|
2601
2621
|
} if (rf & 2) {
|
|
2602
2622
|
let _t;
|
|
2603
2623
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bsDatePickerDirective = _t.first);
|
|
2624
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
2604
2625
|
} }, features: [i0.ɵɵProvidersFeature([
|
|
2605
2626
|
provideAs(DatetimeComponent, NG_VALUE_ACCESSOR, true),
|
|
2606
2627
|
provideAs(DatetimeComponent, NG_VALIDATORS, true),
|
|
2607
2628
|
provideAsWidgetRef(DatetimeComponent),
|
|
2608
2629
|
{ provide: TimepickerConfig, deps: [AbstractI18nService], useFactory: getTimepickerConfig }
|
|
2609
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs:
|
|
2630
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 12, vars: 30, consts: [["datepicker", "bsDatepicker"], ["dropdown", "", "autoClose", "false", 2, "display", "inherit", 3, "onShown", "isOpen", "container"], ["focus-target", "", "type", "text", 1, "form-control", "app-textbox", "display-input", 3, "click", "focus", "blur", "change", "keydown", "name", "tabindex", "value", "autofocus", "disabled", "required", "readOnly"], [1, "input-group-btn"], ["type", "button", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-date", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-calendar"], ["type", "button", "aria-label", "Select time", "aria-haspopup", "true", "aria-expanded", "false", 1, "btn", "btn-default", "btn-time", 3, "click", "tabindex", "disabled"], ["aria-hidden", "true", 1, "app-icon", "wm-sl-l", "sl-time"], [2, "width", "0", "display", "inline-block"], ["aria-label", "datepicker dropdownmenu", "aria-controls", "date", "focus-target", "", "placement", "bottom right", "bsDatepicker", "", 1, "model-holder", 3, "onShown", "onHidden", "bsValueChange", "tabindex", "container", "bsConfig", "isOpen", "daysDisabled", "datesDisabled", "isDisabled", "bsValue"], ["class", "dropdown-menu", "aria-label", "timepicker dropdown", "aria-controls", "time", 3, "click", 4, "dropdownMenu"], [3, "ngIf"], ["aria-label", "timepicker dropdown", "aria-controls", "time", 1, "dropdown-menu", 3, "click"], [1, "model-holder", 3, "ngModelChange", "isValid", "showMeridian", "readonlyInput", "ngModel", "ngModelOptions", "min", "max", "hourStep", "minuteStep", "secondsStep", "mousewheel", "arrowkeys", "showSeconds"], ["dateTimePicker", "", 3, "change", "config", "placement", "excludedDaysToDisable", "excludedDatesToDisable", "displayFormat", "value"], ["role", "button", 1, "mobile-input", "mobile-datepicker-container", 3, "click", "focus", "blur", "tabindex"]], template: function DatetimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2610
2631
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2611
2632
|
i0.ɵɵelementStart(0, "div", 1);
|
|
2612
2633
|
i0.ɵɵlistener("onShown", function DatetimeComponent_Template_div_onShown_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onTimepickerOpen()); });
|
|
@@ -2661,8 +2682,11 @@ class DatetimeComponent extends BaseDateTimeComponent {
|
|
|
2661
2682
|
}] }], { bsDatePickerDirective: [{
|
|
2662
2683
|
type: ViewChild,
|
|
2663
2684
|
args: [BsDatepickerDirective]
|
|
2685
|
+
}], imask: [{
|
|
2686
|
+
type: ViewChild,
|
|
2687
|
+
args: ['dateInput', { read: IMaskDirective }]
|
|
2664
2688
|
}] }); })();
|
|
2665
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DatetimeComponent, { className: "DatetimeComponent", filePath: "date-time/date-time.component.ts", lineNumber:
|
|
2689
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DatetimeComponent, { className: "DatetimeComponent", filePath: "date-time/date-time.component.ts", lineNumber: 57 }); })();
|
|
2666
2690
|
|
|
2667
2691
|
const timeProps = new Map([
|
|
2668
2692
|
['autofocus', PROP_BOOLEAN],
|