@wavemaker-ai/app-ng-runtime 1.0.0-rc.322 → 1.0.0-rc.326

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 (96) hide show
  1. package/components/base/bundles/index.umd.js +30 -9
  2. package/components/base/fesm2022/index.mjs +30 -9
  3. package/components/base/fesm2022/index.mjs.map +1 -1
  4. package/components/base/index.d.ts +5 -1
  5. package/components/basic/anchor/bundles/index.umd.js +1 -1
  6. package/components/basic/anchor/fesm2022/index.mjs +1 -1
  7. package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
  8. package/components/basic/icon/bundles/index.umd.js +1 -1
  9. package/components/basic/icon/fesm2022/index.mjs +1 -1
  10. package/components/basic/icon/fesm2022/index.mjs.map +1 -1
  11. package/components/basic/search/bundles/index.umd.js +1 -1
  12. package/components/basic/search/fesm2022/index.mjs +1 -1
  13. package/components/basic/search/fesm2022/index.mjs.map +1 -1
  14. package/components/basic/spinner/bundles/index.umd.js +1 -1
  15. package/components/basic/spinner/fesm2022/index.mjs +1 -1
  16. package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
  17. package/components/chart/bundles/index.umd.js +1 -1
  18. package/components/chart/fesm2022/index.mjs +1 -1
  19. package/components/chart/fesm2022/index.mjs.map +1 -1
  20. package/components/containers/accordion/bundles/index.umd.js +1 -1
  21. package/components/containers/accordion/fesm2022/index.mjs +1 -1
  22. package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  23. package/components/containers/panel/bundles/index.umd.js +1 -1
  24. package/components/containers/panel/fesm2022/index.mjs +1 -1
  25. package/components/containers/panel/fesm2022/index.mjs.map +1 -1
  26. package/components/containers/tabs/bundles/index.umd.js +1 -1
  27. package/components/containers/tabs/fesm2022/index.mjs +1 -1
  28. package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  29. package/components/containers/wizard/bundles/index.umd.js +1 -1
  30. package/components/containers/wizard/fesm2022/index.mjs +1 -1
  31. package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  32. package/components/data/card/bundles/index.umd.js +1 -1
  33. package/components/data/card/fesm2022/index.mjs +1 -1
  34. package/components/data/card/fesm2022/index.mjs.map +1 -1
  35. package/components/data/form/bundles/index.umd.js +1 -1
  36. package/components/data/form/fesm2022/index.mjs +1 -1
  37. package/components/data/form/fesm2022/index.mjs.map +1 -1
  38. package/components/data/list/bundles/index.umd.js +1 -1
  39. package/components/data/list/fesm2022/index.mjs +1 -1
  40. package/components/data/list/fesm2022/index.mjs.map +1 -1
  41. package/components/data/pagination/bundles/index.umd.js +3 -0
  42. package/components/data/pagination/fesm2022/index.mjs +3 -0
  43. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  44. package/components/data/table/bundles/index.umd.js +9 -2
  45. package/components/data/table/fesm2022/index.mjs +9 -2
  46. package/components/data/table/fesm2022/index.mjs.map +1 -1
  47. package/components/dialogs/default/bundles/index.umd.js +1 -1
  48. package/components/dialogs/default/fesm2022/index.mjs +1 -1
  49. package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  50. package/components/input/button/bundles/index.umd.js +1 -1
  51. package/components/input/button/fesm2022/index.mjs +1 -1
  52. package/components/input/button/fesm2022/index.mjs.map +1 -1
  53. package/components/input/checkbox/bundles/index.umd.js +1 -1
  54. package/components/input/checkbox/fesm2022/index.mjs +1 -1
  55. package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
  56. package/components/input/dataset-aware-form/bundles/index.umd.js +1 -1
  57. package/components/input/dataset-aware-form/fesm2022/index.mjs +1 -1
  58. package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
  59. package/components/input/file-upload/bundles/index.umd.js +1 -1
  60. package/components/input/file-upload/fesm2022/index.mjs +1 -1
  61. package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  62. package/components/input/rating/bundles/index.umd.js +1 -1
  63. package/components/input/rating/fesm2022/index.mjs +1 -1
  64. package/components/input/rating/fesm2022/index.mjs.map +1 -1
  65. package/components/input/slider/bundles/index.umd.js +1 -1
  66. package/components/input/slider/fesm2022/index.mjs +1 -1
  67. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  68. package/components/input/switch/bundles/index.umd.js +1 -1
  69. package/components/input/switch/fesm2022/index.mjs +1 -1
  70. package/components/input/switch/fesm2022/index.mjs.map +1 -1
  71. package/components/input/text/bundles/index.umd.js +1 -1
  72. package/components/input/text/fesm2022/index.mjs +1 -1
  73. package/components/input/text/fesm2022/index.mjs.map +1 -1
  74. package/components/navigation/breadcrumb/bundles/index.umd.js +3 -3
  75. package/components/navigation/breadcrumb/fesm2022/index.mjs +4 -4
  76. package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  77. package/components/navigation/menu/bundles/index.umd.js +1 -1
  78. package/components/navigation/menu/fesm2022/index.mjs +1 -1
  79. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  80. package/components/navigation/navbar/bundles/index.umd.js +1 -1
  81. package/components/navigation/navbar/fesm2022/index.mjs +1 -1
  82. package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
  83. package/components/page/default/bundles/index.umd.js +1 -0
  84. package/components/page/default/fesm2022/index.mjs +1 -0
  85. package/components/page/default/fesm2022/index.mjs.map +1 -1
  86. package/core/fesm2022/index.mjs.map +1 -1
  87. package/npm-shrinkwrap.json +2 -2
  88. package/package-lock.json +2 -2
  89. package/package.json +1 -1
  90. package/runtime/base/bundles/index.umd.js +7 -4
  91. package/runtime/base/fesm2022/index.mjs +7 -4
  92. package/runtime/base/fesm2022/index.mjs.map +1 -1
  93. package/scripts/datatable/datatable.js +3 -3
  94. package/transpiler/bundles/index.umd.js +3 -0
  95. package/transpiler/fesm2022/index.mjs +3 -0
  96. package/transpiler/fesm2022/index.mjs.map +1 -1
@@ -502,6 +502,7 @@
502
502
  onDeactivate: () => container.classList.remove('is-active'),
503
503
  allowOutsideClick: allowOutsideClick,
504
504
  setReturnFocus: setReturnFocusElement,
505
+ preventScroll: true,
505
506
  });
506
507
  };
507
508
  /**
@@ -3008,6 +3009,9 @@
3008
3009
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3009
3010
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3010
3011
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3012
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3013
+ this._resetNodes();
3014
+ });
3011
3015
  }
3012
3016
  /**
3013
3017
  * constructs individual node for the widget model.
@@ -3148,6 +3152,9 @@
3148
3152
  super.onPropertyChange(key, nv, ov);
3149
3153
  }
3150
3154
  ngOnDestroy() {
3155
+ if (this.cancelLocaleChangeSubscription) {
3156
+ this.cancelLocaleChangeSubscription();
3157
+ }
3151
3158
  // MEMORY LEAK FIX: Cancel debounced function
3152
3159
  if (this._resetNodes && this._resetNodes.cancel) {
3153
3160
  this._resetNodes.cancel();
@@ -6080,14 +6087,14 @@
6080
6087
  i0__namespace.ɵɵelement(0, "i", 0);
6081
6088
  } if (rf & 2) {
6082
6089
  const ctx_r0 = i0__namespace.ɵɵnextContext();
6083
- i0__namespace.ɵɵproperty("ngClass", ctx_r0._svgClasses)("ngStyle", ctx_r0.iconStyle)("iconUrl", ctx_r0.iconurl);
6090
+ i0__namespace.ɵɵproperty("ngClass", ctx_r0._svgClasses)("ngStyle", ctx_r0.iconStyle)("iconUrl", ctx_r0._effectiveIconurl);
6084
6091
  } }
6085
6092
  function WmAppIconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
6086
6093
  i0__namespace.ɵɵelement(0, "img", 1);
6087
6094
  i0__namespace.ɵɵpipe(1, "image");
6088
6095
  } if (rf & 2) {
6089
6096
  const ctx_r0 = i0__namespace.ɵɵnextContext();
6090
- i0__namespace.ɵɵproperty("ngClass", ctx_r0._imageClasses)("src", i0__namespace.ɵɵpipeBind1(1, 4, ctx_r0.iconurl), i0__namespace.ɵɵsanitizeUrl)("ngStyle", ctx_r0.iconStyle);
6097
+ i0__namespace.ɵɵproperty("ngClass", ctx_r0._imageClasses)("src", i0__namespace.ɵɵpipeBind1(1, 4, ctx_r0._effectiveIconurl), i0__namespace.ɵɵsanitizeUrl)("ngStyle", ctx_r0.iconStyle);
6091
6098
  i0__namespace.ɵɵattribute("alt", ctx_r0.alt || "");
6092
6099
  } }
6093
6100
  function WmAppIconComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
@@ -6120,14 +6127,26 @@
6120
6127
  * working - the wrapper element is layout-transparent.
6121
6128
  */
6122
6129
  class WmAppIconComponent {
6130
+ get _effectiveIconurl() {
6131
+ if (this.iconurl) {
6132
+ return this.iconurl;
6133
+ }
6134
+ return isSvgIconUrl(this.icon) ? this.icon : null;
6135
+ }
6136
+ get _effectiveIconclass() {
6137
+ if (this.iconclass) {
6138
+ return this.iconclass;
6139
+ }
6140
+ return this.icon && !isSvgIconUrl(this.icon) ? this.icon : null;
6141
+ }
6123
6142
  get _isSvg() {
6124
- return isSvgIconUrl(this.iconurl);
6143
+ return isSvgIconUrl(this._effectiveIconurl);
6125
6144
  }
6126
6145
  get _isImage() {
6127
- return !!this.iconurl && !this._isSvg;
6146
+ return !!this._effectiveIconurl && !this._isSvg;
6128
6147
  }
6129
6148
  get _fontClass() {
6130
- return [this.defaultIconClass, this.iconclass]
6149
+ return [this.defaultIconClass, this._effectiveIconclass]
6131
6150
  .filter(Boolean)
6132
6151
  .join(' ');
6133
6152
  }
@@ -6153,7 +6172,7 @@
6153
6172
  static { this.ɵfac = function WmAppIconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WmAppIconComponent)(); }; }
6154
6173
  static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: WmAppIconComponent, selectors: [["wm-app-icon"]], hostVars: 2, hostBindings: function WmAppIconComponent_HostBindings(rf, ctx) { if (rf & 2) {
6155
6174
  i0__namespace.ɵɵstyleProp("display", "contents");
6156
- } }, inputs: { iconclass: "iconclass", iconurl: "iconurl", defaultIconClass: "defaultIconClass", defaultClasses: "defaultClasses", iconStyle: "iconStyle", alt: "alt" }, decls: 3, vars: 1, consts: [["role", "img", "aria-hidden", "true", "data-identifier", "svg", 3, "ngClass", "ngStyle", "iconUrl"], ["data-identifier", "img", 3, "ngClass", "src", "ngStyle"], ["aria-hidden", "true", 3, "ngClass", "ngStyle"]], template: function WmAppIconComponent_Template(rf, ctx) { if (rf & 1) {
6175
+ } }, inputs: { icon: "icon", iconclass: "iconclass", iconurl: "iconurl", defaultIconClass: "defaultIconClass", defaultClasses: "defaultClasses", iconStyle: "iconStyle", alt: "alt" }, decls: 3, vars: 1, consts: [["role", "img", "aria-hidden", "true", "data-identifier", "svg", 3, "ngClass", "ngStyle", "iconUrl"], ["data-identifier", "img", 3, "ngClass", "src", "ngStyle"], ["aria-hidden", "true", 3, "ngClass", "ngStyle"]], template: function WmAppIconComponent_Template(rf, ctx) { if (rf & 1) {
6157
6176
  i0__namespace.ɵɵconditionalCreate(0, WmAppIconComponent_Conditional_0_Template, 1, 3, "i", 0)(1, WmAppIconComponent_Conditional_1_Template, 2, 6, "img", 1)(2, WmAppIconComponent_Conditional_2_Template, 1, 2, "i", 2);
6158
6177
  } if (rf & 2) {
6159
6178
  i0__namespace.ɵɵconditional(ctx._isSvg ? 0 : ctx._isImage ? 1 : ctx._fontClass ? 2 : -1);
@@ -6176,12 +6195,12 @@
6176
6195
  aria-hidden="true"
6177
6196
  data-identifier="svg"
6178
6197
  [ngStyle]="iconStyle"
6179
- [iconUrl]="iconurl"></i>
6198
+ [iconUrl]="_effectiveIconurl"></i>
6180
6199
  } @else if (_isImage) {
6181
6200
  <img [ngClass]="_imageClasses"
6182
6201
  data-identifier="img"
6183
6202
  [attr.alt]="alt || ''"
6184
- [src]="iconurl | image"
6203
+ [src]="_effectiveIconurl | image"
6185
6204
  [ngStyle]="iconStyle"/>
6186
6205
  } @else if (_fontClass) {
6187
6206
  <i [ngClass]="_fontClasses"
@@ -6190,7 +6209,9 @@
6190
6209
  }
6191
6210
  `
6192
6211
  }]
6193
- }], null, { iconclass: [{
6212
+ }], null, { icon: [{
6213
+ type: i0.Input
6214
+ }], iconclass: [{
6194
6215
  type: i0.Input
6195
6216
  }], iconurl: [{
6196
6217
  type: i0.Input
@@ -492,6 +492,7 @@ const setFocusTrap = (container, allowOutsideClick, setReturnFocusElement) => {
492
492
  onDeactivate: () => container.classList.remove('is-active'),
493
493
  allowOutsideClick: allowOutsideClick,
494
494
  setReturnFocus: setReturnFocusElement,
495
+ preventScroll: true,
495
496
  });
496
497
  };
497
498
  /**
@@ -3006,6 +3007,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3006
3007
  this.binditemtarget = this.nativeElement.getAttribute('itemtarget.bind');
3007
3008
  this.binduserrole = this.nativeElement.getAttribute('userrole.bind');
3008
3009
  this.bindisactive = this.nativeElement.getAttribute('isactive.bind');
3010
+ this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe('locale-changed', () => {
3011
+ this._resetNodes();
3012
+ });
3009
3013
  }
3010
3014
  /**
3011
3015
  * constructs individual node for the widget model.
@@ -3146,6 +3150,9 @@ class DatasetAwareNavComponent extends StylableComponent {
3146
3150
  super.onPropertyChange(key, nv, ov);
3147
3151
  }
3148
3152
  ngOnDestroy() {
3153
+ if (this.cancelLocaleChangeSubscription) {
3154
+ this.cancelLocaleChangeSubscription();
3155
+ }
3149
3156
  // MEMORY LEAK FIX: Cancel debounced function
3150
3157
  if (this._resetNodes && this._resetNodes.cancel) {
3151
3158
  this._resetNodes.cancel();
@@ -6081,14 +6088,14 @@ function WmAppIconComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
6081
6088
  i0.ɵɵelement(0, "i", 0);
6082
6089
  } if (rf & 2) {
6083
6090
  const ctx_r0 = i0.ɵɵnextContext();
6084
- i0.ɵɵproperty("ngClass", ctx_r0._svgClasses)("ngStyle", ctx_r0.iconStyle)("iconUrl", ctx_r0.iconurl);
6091
+ i0.ɵɵproperty("ngClass", ctx_r0._svgClasses)("ngStyle", ctx_r0.iconStyle)("iconUrl", ctx_r0._effectiveIconurl);
6085
6092
  } }
6086
6093
  function WmAppIconComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
6087
6094
  i0.ɵɵelement(0, "img", 1);
6088
6095
  i0.ɵɵpipe(1, "image");
6089
6096
  } if (rf & 2) {
6090
6097
  const ctx_r0 = i0.ɵɵnextContext();
6091
- i0.ɵɵproperty("ngClass", ctx_r0._imageClasses)("src", i0.ɵɵpipeBind1(1, 4, ctx_r0.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", ctx_r0.iconStyle);
6098
+ i0.ɵɵproperty("ngClass", ctx_r0._imageClasses)("src", i0.ɵɵpipeBind1(1, 4, ctx_r0._effectiveIconurl), i0.ɵɵsanitizeUrl)("ngStyle", ctx_r0.iconStyle);
6092
6099
  i0.ɵɵattribute("alt", ctx_r0.alt || "");
6093
6100
  } }
6094
6101
  function WmAppIconComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
@@ -6121,14 +6128,26 @@ function WmAppIconComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
6121
6128
  * working - the wrapper element is layout-transparent.
6122
6129
  */
6123
6130
  class WmAppIconComponent {
6131
+ get _effectiveIconurl() {
6132
+ if (this.iconurl) {
6133
+ return this.iconurl;
6134
+ }
6135
+ return isSvgIconUrl(this.icon) ? this.icon : null;
6136
+ }
6137
+ get _effectiveIconclass() {
6138
+ if (this.iconclass) {
6139
+ return this.iconclass;
6140
+ }
6141
+ return this.icon && !isSvgIconUrl(this.icon) ? this.icon : null;
6142
+ }
6124
6143
  get _isSvg() {
6125
- return isSvgIconUrl(this.iconurl);
6144
+ return isSvgIconUrl(this._effectiveIconurl);
6126
6145
  }
6127
6146
  get _isImage() {
6128
- return !!this.iconurl && !this._isSvg;
6147
+ return !!this._effectiveIconurl && !this._isSvg;
6129
6148
  }
6130
6149
  get _fontClass() {
6131
- return [this.defaultIconClass, this.iconclass]
6150
+ return [this.defaultIconClass, this._effectiveIconclass]
6132
6151
  .filter(Boolean)
6133
6152
  .join(' ');
6134
6153
  }
@@ -6154,7 +6173,7 @@ class WmAppIconComponent {
6154
6173
  static { this.ɵfac = function WmAppIconComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WmAppIconComponent)(); }; }
6155
6174
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WmAppIconComponent, selectors: [["wm-app-icon"]], hostVars: 2, hostBindings: function WmAppIconComponent_HostBindings(rf, ctx) { if (rf & 2) {
6156
6175
  i0.ɵɵstyleProp("display", "contents");
6157
- } }, inputs: { iconclass: "iconclass", iconurl: "iconurl", defaultIconClass: "defaultIconClass", defaultClasses: "defaultClasses", iconStyle: "iconStyle", alt: "alt" }, decls: 3, vars: 1, consts: [["role", "img", "aria-hidden", "true", "data-identifier", "svg", 3, "ngClass", "ngStyle", "iconUrl"], ["data-identifier", "img", 3, "ngClass", "src", "ngStyle"], ["aria-hidden", "true", 3, "ngClass", "ngStyle"]], template: function WmAppIconComponent_Template(rf, ctx) { if (rf & 1) {
6176
+ } }, inputs: { icon: "icon", iconclass: "iconclass", iconurl: "iconurl", defaultIconClass: "defaultIconClass", defaultClasses: "defaultClasses", iconStyle: "iconStyle", alt: "alt" }, decls: 3, vars: 1, consts: [["role", "img", "aria-hidden", "true", "data-identifier", "svg", 3, "ngClass", "ngStyle", "iconUrl"], ["data-identifier", "img", 3, "ngClass", "src", "ngStyle"], ["aria-hidden", "true", 3, "ngClass", "ngStyle"]], template: function WmAppIconComponent_Template(rf, ctx) { if (rf & 1) {
6158
6177
  i0.ɵɵconditionalCreate(0, WmAppIconComponent_Conditional_0_Template, 1, 3, "i", 0)(1, WmAppIconComponent_Conditional_1_Template, 2, 6, "img", 1)(2, WmAppIconComponent_Conditional_2_Template, 1, 2, "i", 2);
6159
6178
  } if (rf & 2) {
6160
6179
  i0.ɵɵconditional(ctx._isSvg ? 0 : ctx._isImage ? 1 : ctx._fontClass ? 2 : -1);
@@ -6177,12 +6196,12 @@ class WmAppIconComponent {
6177
6196
  aria-hidden="true"
6178
6197
  data-identifier="svg"
6179
6198
  [ngStyle]="iconStyle"
6180
- [iconUrl]="iconurl"></i>
6199
+ [iconUrl]="_effectiveIconurl"></i>
6181
6200
  } @else if (_isImage) {
6182
6201
  <img [ngClass]="_imageClasses"
6183
6202
  data-identifier="img"
6184
6203
  [attr.alt]="alt || ''"
6185
- [src]="iconurl | image"
6204
+ [src]="_effectiveIconurl | image"
6186
6205
  [ngStyle]="iconStyle"/>
6187
6206
  } @else if (_fontClass) {
6188
6207
  <i [ngClass]="_fontClasses"
@@ -6191,7 +6210,9 @@ class WmAppIconComponent {
6191
6210
  }
6192
6211
  `
6193
6212
  }]
6194
- }], null, { iconclass: [{
6213
+ }], null, { icon: [{
6214
+ type: Input
6215
+ }], iconclass: [{
6195
6216
  type: Input
6196
6217
  }], iconurl: [{
6197
6218
  type: Input