@wavemaker/app-ng-runtime 11.4.0-next.26251 → 11.4.0-next.27501

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.
Files changed (52) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +1 -1
  2. app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
  4. app-ng-runtime/build-task/fesm2015/index.js +1 -1
  5. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -2
  7. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js.map +1 -1
  8. app-ng-runtime/components/basic/rich-text-editor/esm2015/rich-text-editor.component.js +3 -3
  9. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js +2 -2
  10. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js.map +1 -1
  11. app-ng-runtime/components/data/list/bundles/index.umd.js +11 -5
  12. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  13. app-ng-runtime/components/data/list/esm2015/list.component.js +10 -4
  14. app-ng-runtime/components/data/list/fesm2015/index.js +9 -3
  15. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  16. app-ng-runtime/components/data/table/bundles/index.umd.js +2 -1
  17. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  18. app-ng-runtime/components/data/table/esm2015/table-filter.directive.js +3 -2
  19. app-ng-runtime/components/data/table/fesm2015/index.js +2 -1
  20. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  21. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +4 -0
  22. app-ng-runtime/components/input/epoch/bundles/index.umd.js +25 -3
  23. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  24. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +26 -3
  25. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +1 -2
  26. app-ng-runtime/components/input/epoch/fesm2015/index.js +25 -3
  27. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  28. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  29. app-ng-runtime/mobile/core/bundles/index.umd.js +2 -1
  30. app-ng-runtime/mobile/core/bundles/index.umd.js.map +1 -1
  31. app-ng-runtime/mobile/core/esm2015/services/device.service.js +3 -2
  32. app-ng-runtime/mobile/core/fesm2015/index.js +2 -1
  33. app-ng-runtime/mobile/core/fesm2015/index.js.map +1 -1
  34. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +3 -2
  35. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js.map +1 -1
  36. app-ng-runtime/mobile/runtime-dynamic/esm2015/services/live-sync.service.js +4 -3
  37. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js +3 -2
  38. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js.map +1 -1
  39. app-ng-runtime/package.json +1 -1
  40. app-ng-runtime/runtime/base/bundles/index.umd.js +1 -0
  41. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  42. app-ng-runtime/runtime/base/esm2015/services/prefab-manager.service.js +2 -1
  43. app-ng-runtime/runtime/base/fesm2015/index.js +1 -0
  44. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  45. app-ng-runtime/scripts/datatable/datatable.js +31 -12
  46. app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -3
  47. app-ng-runtime/variables/bundles/index.umd.js +5 -12
  48. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  49. app-ng-runtime/variables/esm2015/constants/variables.constants.js +3 -9
  50. app-ng-runtime/variables/fesm2015/index.js +2 -9
  51. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  52. app-ng-runtime/variables/index.metadata.json +1 -1
@@ -40,6 +40,9 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
40
40
  removeKeyupListener: any;
41
41
  loadNativeDateInput: any;
42
42
  showcustompicker: any;
43
+ next: any;
44
+ prev: any;
45
+ clicked: boolean;
43
46
  protected dateNotInRange: boolean;
44
47
  protected timeNotInRange: boolean;
45
48
  protected invalidDateTimeFormat: boolean;
@@ -133,6 +136,7 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
133
136
  * @param timePeriod - String value decides to load other month days or other month or other year
134
137
  */
135
138
  private goToOtherMonthOryear;
139
+ private getMonth;
136
140
  /**
137
141
  * This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
138
142
  */
@@ -638,6 +638,7 @@
638
638
  function BaseDateTimeComponent(inj, WIDGET_CONFIG) {
639
639
  var _this = _super.call(this, inj, WIDGET_CONFIG) || this;
640
640
  _this.isReadOnly = false;
641
+ _this.clicked = false;
641
642
  _this.formatsByLocale = { 'timezone': '' };
642
643
  /**
643
644
  * This is an internal property used to map the containerClass, showWeekNumbers etc., to the bsDatepicker
@@ -882,6 +883,18 @@
882
883
  this.loadYears();
883
884
  }
884
885
  };
886
+ BaseDateTimeComponent.prototype.getMonth = function (date, inc) {
887
+ var currentMonth = new Date(date);
888
+ var month = currentMonth.getMonth();
889
+ var year = currentMonth.getFullYear();
890
+ month += inc;
891
+ var newDate = new Date(year, month);
892
+ var fullMonth = newDate.toLocaleString('en-US', { month: 'long' });
893
+ return {
894
+ date: newDate,
895
+ fullMonth: fullMonth
896
+ };
897
+ };
885
898
  /**
886
899
  * This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
887
900
  */
@@ -889,12 +902,18 @@
889
902
  var _this = this;
890
903
  var datePickerHead = $(".bs-datepicker-head");
891
904
  datePickerHead.find(".previous").click(function (event) {
905
+ _this.next = _this.getMonth(_this.activeDate, 0);
906
+ _this.prev = _this.getMonth(_this.activeDate, -2);
907
+ _this.clicked = true;
892
908
  // check for original mouse click
893
909
  if (event.originalEvent) {
894
910
  _this.setFocusForDate(-1);
895
911
  }
896
912
  });
897
913
  datePickerHead.find(".next").click(function (event) {
914
+ _this.next = _this.getMonth(_this.activeDate, 2);
915
+ _this.prev = _this.getMonth(_this.activeDate, 0);
916
+ _this.clicked = true;
898
917
  // check for original mouse click
899
918
  if (event.originalEvent) {
900
919
  _this.setFocusForDate(1);
@@ -913,8 +932,8 @@
913
932
  _this.setFocusForMonthOrDay();
914
933
  }
915
934
  });
916
- datePickerHead.find('.next').attr('aria-label', 'Next');
917
- datePickerHead.find('.previous').attr('aria-label', 'Previous');
935
+ datePickerHead.find('.next').attr('aria-label', "Next Month " + this.next.fullMonth + " " + this.next.date.getFullYear());
936
+ datePickerHead.find('.previous').attr('aria-label', "Previous Month " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
918
937
  };
919
938
  /**
920
939
  * This method sets focus for months/days depending on the loaded datepicker table
@@ -1004,6 +1023,10 @@
1004
1023
  var _this = this;
1005
1024
  setTimeout(function () {
1006
1025
  $('[bsdatepickerdaydecorator]').not('.is-other-month').attr('tabindex', '0');
1026
+ if (_this.clicked === false) {
1027
+ _this.next = _this.getMonth(_this.activeDate, 1);
1028
+ _this.prev = _this.getMonth(_this.activeDate, -1);
1029
+ }
1007
1030
  _this.addKeyBoardEventsForDays();
1008
1031
  _this.addDatepickerMouseEvents();
1009
1032
  });
@@ -1758,7 +1781,6 @@
1758
1781
  if (!skipFocus) {
1759
1782
  this.onDateTimeInputFocus();
1760
1783
  }
1761
- return;
1762
1784
  }
1763
1785
  if ($event.type === 'click') {
1764
1786
  this.invokeEventCallback('click', { $event: $event });