@wavemaker/app-ng-runtime 11.4.0-rc.5351 → 11.4.1-next.140983

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 (61) hide show
  1. app-ng-runtime/components/basic/search/bundles/index.umd.js +0 -7
  2. app-ng-runtime/components/basic/search/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/components/basic/search/esm2015/search.component.js +1 -7
  4. app-ng-runtime/components/basic/search/fesm2015/index.js +0 -6
  5. app-ng-runtime/components/basic/search/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/basic/tree/bundles/index.umd.js +132 -236
  7. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  8. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +135 -208
  9. app-ng-runtime/components/basic/tree/fesm2015/index.js +134 -207
  10. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  11. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  12. app-ng-runtime/components/basic/tree/tree.component.d.ts +25 -21
  13. app-ng-runtime/components/chart/bundles/index.umd.js +7 -1
  14. app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
  15. app-ng-runtime/components/chart/esm2015/chart.component.js +8 -2
  16. app-ng-runtime/components/chart/fesm2015/index.js +7 -1
  17. app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
  18. app-ng-runtime/components/chart/index.metadata.json +1 -1
  19. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +29 -2
  20. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  21. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +7 -1
  22. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.props.js +2 -2
  23. app-ng-runtime/components/containers/tabs/esm2015/tabs.component.js +20 -1
  24. app-ng-runtime/components/containers/tabs/esm2015/tabs.props.js +4 -2
  25. app-ng-runtime/components/containers/tabs/fesm2015/index.js +29 -2
  26. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  27. app-ng-runtime/components/containers/tabs/index.metadata.json +1 -1
  28. app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -0
  29. app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -0
  30. app-ng-runtime/components/data/form/bundles/index.umd.js +9 -3
  31. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  32. app-ng-runtime/components/data/form/esm2015/form.component.js +11 -5
  33. app-ng-runtime/components/data/form/fesm2015/index.js +10 -4
  34. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  35. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  36. app-ng-runtime/components/data/pagination/bundles/index.umd.js +0 -1
  37. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  38. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +1 -2
  39. app-ng-runtime/components/data/pagination/fesm2015/index.js +0 -1
  40. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  41. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  42. app-ng-runtime/components/input/default/bundles/index.umd.js +15 -2
  43. app-ng-runtime/components/input/default/bundles/index.umd.js.map +1 -1
  44. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +5 -0
  45. app-ng-runtime/components/input/default/esm2015/checkbox/checkbox.component.js +12 -2
  46. app-ng-runtime/components/input/default/esm2015/checkbox/checkbox.props.js +5 -2
  47. app-ng-runtime/components/input/default/fesm2015/index.js +15 -2
  48. app-ng-runtime/components/input/default/fesm2015/index.js.map +1 -1
  49. app-ng-runtime/components/input/default/index.metadata.json +1 -1
  50. app-ng-runtime/components/input/epoch/bundles/index.umd.js +4 -1
  51. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  52. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +4 -2
  53. app-ng-runtime/components/input/epoch/fesm2015/index.js +3 -1
  54. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  55. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  56. app-ng-runtime/core/bundles/index.umd.js +8 -6
  57. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  58. app-ng-runtime/core/esm2015/services/viewport.service.js +9 -7
  59. app-ng-runtime/core/fesm2015/index.js +8 -6
  60. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  61. app-ng-runtime/package.json +1 -1
@@ -611,7 +611,10 @@
611
611
  ['shortcutkey', base.PROP_STRING],
612
612
  ['show', Object.assign({ value: true }, base.PROP_BOOLEAN)],
613
613
  ['tabindex', Object.assign({ value: 0 }, base.PROP_NUMBER)],
614
- ['uncheckedvalue', Object.assign({ value: false }, base.PROP_STRING)]
614
+ ['uncheckedvalue', Object.assign({ value: false }, base.PROP_STRING)],
615
+ ['togglewithicon', base.PROP_BOOLEAN],
616
+ ['checkedicon', Object.assign({ value: "wi wi-done" }, base.PROP_STRING)],
617
+ ['uncheckedicon', Object.assign({ value: "wi wi-close" }, base.PROP_STRING)]
615
618
  ]);
616
619
  var registerProps$c = function () {
617
620
  base.register('wm-checkbox', checkboxProps);
@@ -712,6 +715,16 @@
712
715
  CheckboxComponent.prototype.handleChange = function (newVal) {
713
716
  this.invokeOnChange(this.datavalue, { type: 'change' }, this.ngModel.valid);
714
717
  };
718
+ CheckboxComponent.prototype.getColor = function () {
719
+ var labelElement = $("div[widget-id='" + this.widgetId + "'] label");
720
+ var bgcolor = $(labelElement).css("background-color");
721
+ return bgcolor;
722
+ };
723
+ CheckboxComponent.prototype.onMouseOver = function () {
724
+ var labelElement = $("div.app-toggle[widget-id='" + this.widgetId + "'] label");
725
+ var bgcolor = $(labelElement).css("background-color");
726
+ document.documentElement.style.setProperty('--boxAfterBackColor', bgcolor);
727
+ };
715
728
  CheckboxComponent.prototype.onKeyDown = function ($event) {
716
729
  $event.preventDefault();
717
730
  this.checkboxEl.nativeElement.click();
@@ -726,7 +739,7 @@
726
739
  CheckboxComponent.decorators = [
727
740
  { type: core.Component, args: [{
728
741
  selector: '[wmCheckbox]',
729
- template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-checked]=\"!!proxyModel\"\n focus-target\n [(ngModel)]=\"proxyModel\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled || readonly\"\n [attr.accesskey]=\"shortcutkey\"\n [tabindex]=\"tabindex\"\n (blur)=\"invokeOnTouched($event)\"\n (ngModelChange)=\"handleChange($event)\">\n <span class=\"caption\" [innerHtml]=\"_caption\"></span>\n <img alt=\"Checkbox Image\" aria-hidden=\"true\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"switch\"/>\n</label>\n<input type=\"hidden\" class=\"ng-hide model-holder\" aria-hidden=\"true\" tabindex=\"-1\" [disabled]=\"disabled\" [value]=\"proxyModel\">\n",
742
+ template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\" (mouseenter)=\"onMouseOver()\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-checked]=\"!!proxyModel\"\n focus-target\n [(ngModel)]=\"proxyModel\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled || readonly\"\n [attr.accesskey]=\"shortcutkey\"\n [tabindex]=\"tabindex\"\n (blur)=\"invokeOnTouched($event)\"\n (ngModelChange)=\"handleChange($event)\">\n <span class=\"toggle_slider\" ng-if=\"!isNativeMobileApplicationType\">\n <i class=\"app-icon {{checkedicon}} toggle-checked\" aria-hidden=\"true\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin, color:getColor(), fontSize:iconwidth}\" *ngIf=\"proxyModel && togglewithicon\"></i>\n <i class=\"app-icon {{uncheckedicon}} toggle-unchecked\" aria-hidden=\"true\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}\" *ngIf=\"!proxyModel && togglewithicon\"></i>\n </span>\n <span class=\"caption\" [innerHtml]=\"_caption\"></span>\n <img alt=\"Checkbox Image\" aria-hidden=\"true\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"switch\"/>\n</label>\n<input type=\"hidden\" class=\"ng-hide model-holder\" aria-hidden=\"true\" tabindex=\"-1\" [disabled]=\"disabled\" [value]=\"proxyModel\">\n",
730
743
  providers: [
731
744
  base.provideAs(CheckboxComponent, forms.NG_VALUE_ACCESSOR, true),
732
745
  base.provideAs(CheckboxComponent, forms.NG_VALIDATORS, true),