@wavemaker/app-ng-runtime 11.4.0-rc.5347 → 11.4.1-next.140982

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 (41) hide show
  1. app-ng-runtime/components/basic/tree/bundles/index.umd.js +132 -236
  2. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +135 -208
  4. app-ng-runtime/components/basic/tree/fesm2015/index.js +134 -207
  5. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  7. app-ng-runtime/components/basic/tree/tree.component.d.ts +25 -21
  8. app-ng-runtime/components/chart/bundles/index.umd.js +6 -1
  9. app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
  10. app-ng-runtime/components/chart/esm2015/chart.component.js +7 -2
  11. app-ng-runtime/components/chart/fesm2015/index.js +6 -1
  12. app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
  13. app-ng-runtime/components/chart/index.metadata.json +1 -1
  14. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +6 -0
  15. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  16. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +7 -1
  17. app-ng-runtime/components/containers/tabs/fesm2015/index.js +6 -0
  18. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  19. app-ng-runtime/components/containers/tabs/index.metadata.json +1 -1
  20. app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -0
  21. app-ng-runtime/components/data/form/bundles/index.umd.js +9 -3
  22. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  23. app-ng-runtime/components/data/form/esm2015/form.component.js +11 -5
  24. app-ng-runtime/components/data/form/fesm2015/index.js +10 -4
  25. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  26. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  27. app-ng-runtime/components/data/pagination/bundles/index.umd.js +0 -1
  28. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  29. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +1 -2
  30. app-ng-runtime/components/data/pagination/fesm2015/index.js +0 -1
  31. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  32. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  33. app-ng-runtime/components/input/default/bundles/index.umd.js +15 -2
  34. app-ng-runtime/components/input/default/bundles/index.umd.js.map +1 -1
  35. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +5 -0
  36. app-ng-runtime/components/input/default/esm2015/checkbox/checkbox.component.js +12 -2
  37. app-ng-runtime/components/input/default/esm2015/checkbox/checkbox.props.js +5 -2
  38. app-ng-runtime/components/input/default/fesm2015/index.js +15 -2
  39. app-ng-runtime/components/input/default/fesm2015/index.js.map +1 -1
  40. app-ng-runtime/components/input/default/index.metadata.json +1 -1
  41. 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\">\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),