@wavemaker/app-ng-runtime 11.5.0-next.24733 → 11.5.0-next.24737

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.
@@ -1692,13 +1692,14 @@ class DateComponent extends BaseDateTimeComponent {
1692
1692
  this.cdRef.detectChanges();
1693
1693
  }
1694
1694
  // TODO use BsLocaleService to set the current user's locale to see the localized labels
1695
- constructor(inj, cdRef, appDefaults) {
1695
+ constructor(inj, cdRef, appDefaults, app) {
1696
1696
  super(inj, WIDGET_CONFIG$2);
1697
1697
  this.cdRef = cdRef;
1698
1698
  this.appDefaults = appDefaults;
1699
1699
  this.isOpen = false;
1700
1700
  this.isEnterPressedOnDateInput = false;
1701
1701
  styler(this.nativeElement, this);
1702
+ this.app = app;
1702
1703
  this.dateContainerCls = `app-date-${this.widgetId}`;
1703
1704
  this._dateOptions.containerClass = `app-date ${this.dateContainerCls}`;
1704
1705
  this._dateOptions.showWeekNumbers = false;
@@ -1778,6 +1779,10 @@ class DateComponent extends BaseDateTimeComponent {
1778
1779
  if (this.deregisterEventListener) {
1779
1780
  this.deregisterEventListener();
1780
1781
  }
1782
+ const parentEl = $(this.nativeElement).closest('.app-composite-widget.caption-floating');
1783
+ if (parentEl.length > 0) {
1784
+ this.app.notify('captionPositionAnimate', { displayVal: this.displayValue, nativeEl: parentEl });
1785
+ }
1781
1786
  this.blurDateInput(this.isOpen);
1782
1787
  }
1783
1788
  // change and blur events are added from the template
@@ -1798,7 +1803,7 @@ class DateComponent extends BaseDateTimeComponent {
1798
1803
  }
1799
1804
  if ($event.type === 'click') {
1800
1805
  this.invokeEventCallback('click', { $event: $event });
1801
- // this.focusOnInputEl();
1806
+ this.focusOnInputEl();
1802
1807
  }
1803
1808
  if ($event.target && $($event.target).is('input') && !(this.isDropDownDisplayEnabledOnInput(this.showdropdownon))) {
1804
1809
  $event.stopPropagation();
@@ -1873,7 +1878,7 @@ class DateComponent extends BaseDateTimeComponent {
1873
1878
  }
1874
1879
  }
1875
1880
  DateComponent.initializeProps = registerProps$2();
1876
- DateComponent.ɵfac = function DateComponent_Factory(t) { return new (t || DateComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.AppDefaults)); };
1881
+ DateComponent.ɵfac = function DateComponent_Factory(t) { return new (t || DateComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.AppDefaults), i0.ɵɵdirectiveInject(i1$1.App)); };
1877
1882
  DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent, selectors: [["", "wmDate", ""]], viewQuery: function DateComponent_Query(rf, ctx) { if (rf & 1) {
1878
1883
  i0.ɵɵviewQuery(BsDatepickerDirective, 5);
1879
1884
  } if (rf & 2) {
@@ -1914,7 +1919,7 @@ DateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DateComponent
1914
1919
  provideAs(DateComponent, NG_VALIDATORS, true),
1915
1920
  provideAsWidgetRef(DateComponent)
1916
1921
  ], 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" }]
1917
- }], function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }]; }, { bsDatePickerDirective: [{
1922
+ }], function () { return [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i1$1.AppDefaults }, { type: i1$1.App }]; }, { bsDatePickerDirective: [{
1918
1923
  type: ViewChild,
1919
1924
  args: [BsDatepickerDirective]
1920
1925
  }] }); })();
@@ -2258,7 +2263,7 @@ class DatetimeComponent extends BaseDateTimeComponent {
2258
2263
  }
2259
2264
  if ($event.type === 'click') {
2260
2265
  this.invokeEventCallback('click', { $event: $event });
2261
- //this.focusOnInputEl();
2266
+ this.focusOnInputEl();
2262
2267
  }
2263
2268
  if ($event.target && $($event.target).is('input') && !(this.isDropDownDisplayEnabledOnInput(this.showdropdownon))) {
2264
2269
  $event.stopPropagation();
@@ -2609,7 +2614,7 @@ class TimeComponent extends BaseDateTimeComponent {
2609
2614
  }
2610
2615
  if ($event.type === 'click') {
2611
2616
  this.invokeEventCallback('click', { $event: $event });
2612
- //this.focusOnInputEl();
2617
+ this.focusOnInputEl();
2613
2618
  }
2614
2619
  if ($event.target && $($event.target).is('input') && !(this.isDropDownDisplayEnabledOnInput(this.showdropdownon))) {
2615
2620
  return;