@wavemaker/app-ng-runtime 11.12.1-rc.6244 → 11.13.0-rc.6255

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. package/build-task/bundles/index.umd.js +26 -24
  2. package/build-task/esm2022/containers/repeat-template.build.mjs +4 -2
  3. package/build-task/esm2022/data/form/form.build.mjs +4 -2
  4. package/build-task/esm2022/data/table/table-row/table-row.build.mjs +5 -3
  5. package/build-task/esm2022/page/page-content/page-content.build.mjs +6 -7
  6. package/build-task/esm2022/page/page.build.mjs +6 -7
  7. package/build-task/esm2022/partial/partial.build.mjs +6 -7
  8. package/build-task/esm2022/prefab/prefab-container/prefab-container.build.mjs +6 -7
  9. package/build-task/fesm2022/index.mjs +26 -24
  10. package/build-task/fesm2022/index.mjs.map +1 -1
  11. package/components/data/live-table/bundles/index.umd.js +4 -2
  12. package/components/data/live-table/esm2022/live-table.component.mjs +5 -3
  13. package/components/data/live-table/fesm2022/index.mjs +4 -2
  14. package/components/data/live-table/fesm2022/index.mjs.map +1 -1
  15. package/components/data/pagination/bundles/index.umd.js +4 -4
  16. package/components/data/pagination/esm2022/pagination.component.mjs +5 -5
  17. package/components/data/pagination/fesm2022/index.mjs +4 -4
  18. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  19. package/components/dialogs/design-dialog/bundles/index.umd.js +6 -12
  20. package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +7 -13
  21. package/components/dialogs/design-dialog/fesm2022/index.mjs +6 -12
  22. package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  23. package/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -16
  24. package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +8 -15
  25. package/components/dialogs/iframe-dialog/fesm2022/index.mjs +7 -14
  26. package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  27. package/components/input/epoch/base-date-time.component.d.ts +6 -0
  28. package/components/input/epoch/bundles/index.umd.js +54 -31
  29. package/components/input/epoch/esm2022/base-date-time.component.mjs +16 -5
  30. package/components/input/epoch/esm2022/date-time/date-time.component.mjs +22 -15
  31. package/components/input/epoch/esm2022/time/time.component.mjs +19 -14
  32. package/components/input/epoch/fesm2022/index.mjs +54 -31
  33. package/components/input/epoch/fesm2022/index.mjs.map +1 -1
  34. package/components/input/slider/bundles/index.umd.js +9 -9
  35. package/components/input/slider/esm2022/slider.component.mjs +10 -10
  36. package/components/input/slider/fesm2022/index.mjs +9 -9
  37. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  38. package/core/bundles/index.umd.js +3 -0
  39. package/core/esm2022/utils/wm-project-properties.mjs +4 -1
  40. package/core/fesm2022/index.mjs +3 -0
  41. package/core/fesm2022/index.mjs.map +1 -1
  42. package/npm-shrinkwrap.json +2 -2
  43. package/package-lock.json +2 -2
  44. package/package.json +1 -1
  45. package/runtime/base/bundles/index.umd.js +1 -1
  46. package/runtime/base/esm2022/services/i18n.service.mjs +2 -2
  47. package/runtime/base/fesm2022/index.mjs +1 -1
  48. package/runtime/base/fesm2022/index.mjs.map +1 -1
  49. package/security/bundles/index.umd.js +2 -2
  50. package/security/esm2022/security.service.mjs +3 -3
  51. package/security/fesm2022/index.mjs +2 -2
  52. package/security/fesm2022/index.mjs.map +1 -1
  53. package/transpiler/bundles/index.umd.js +0 -13
  54. package/transpiler/esm2022/build.mjs +1 -14
  55. package/transpiler/fesm2022/index.mjs +0 -13
  56. package/transpiler/fesm2022/index.mjs.map +1 -1
  57. package/variables/bundles/index.umd.js +1 -1
  58. package/variables/esm2022/service/metadata-service/metadata.service.mjs +2 -2
  59. package/variables/fesm2022/index.mjs +1 -1
  60. package/variables/fesm2022/index.mjs.map +1 -1
  61. package/scripts/hammerjs/hammer.min.js +0 -7
@@ -611,11 +611,13 @@ register('wm-repeat-template', () => {
611
611
  const widgetRef = (parentAccordion && parentAccordion.get('accordion_ref')) || (parentTab && parentTab.get('tabs_ref')) || (parentWizard && parentWizard.get('wizard_ref'));
612
612
  if (widgetRef) {
613
613
  return `@if(${widgetRef}.fieldDefs && !${widgetRef}.fieldDefs.length){<div>{{${widgetRef}.nodatamessage}}</div>}
614
- <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
614
+ @for (item of ${widgetRef}.fieldDefs; track item; let i = $index) {
615
+ <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)}>
615
616
  <ng-container [ngTemplateOutlet]="widgetRef${counter}"
616
617
  [ngTemplateOutletContext]="{item:item, index:i}"
617
618
  [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_pane_' + repeatItemRef.trackId, {item:item, index:i})"></ng-container>
618
619
  </${dynamicTemplateTagName}>
620
+ }
619
621
  <ng-template #widgetRef${counter++} let-item="item" let-index="index">`;
620
622
  }
621
623
  },
@@ -1312,11 +1314,13 @@ const buildTask = (directiveAttr = '') => {
1312
1314
  tabindex.bind="btn.tabindex" [class.hidden]="btn.updateMode ? !${counter}.isUpdateMode : ${counter}.isUpdateMode"></button>
1313
1315
  </ng-template>`;
1314
1316
  mobileFormContentTmpl = `<header wmMobileNavbar name="${name}" ${getAttrMarkup(navbarAttrsMap)}>
1315
- <ng-container *ngFor="let btn of ${counter}.buttonArray; let i = index"
1317
+ @for (btn of ${counter}.buttonArray; track btn; let i = $index) {
1318
+ <ng-container
1316
1319
  [ngTemplateOutlet]="buttonRef"
1317
1320
  [ngTemplateOutletContext]="{btn:btn}"
1318
1321
  [ngTemplateOutletInjector]="${counter}.createCustomInjector('mobile_' + i, {item:item, index:i})">
1319
1322
  </ng-container>
1323
+ }
1320
1324
  </header>
1321
1325
  <div class="form-elements panel-body" >`;
1322
1326
  }
@@ -1999,10 +2003,6 @@ const findChild = (node, childName) => {
1999
2003
  const createElement$4 = name => {
2000
2004
  return new Element(name, [], [], noSpan$4, noSpan$4, noSpan$4);
2001
2005
  };
2002
- const addAtrribute$4 = (node, name, value) => {
2003
- const attr = new Attribute(name, value, noSpan$4, noSpan$4, noSpan$4, undefined, undefined);
2004
- node.attrs.push(attr);
2005
- };
2006
2006
  const getElementNode = (name, node) => {
2007
2007
  let elementNode;
2008
2008
  if (!node) {
@@ -2032,9 +2032,12 @@ register('wm-page', () => {
2032
2032
  }
2033
2033
  if (pageContentNode) {
2034
2034
  const conditionalNode = createElement$4('ng-container');
2035
- addAtrribute$4(conditionalNode, '*ngIf', 'compilePageContent');
2035
+ const ifOpenText = new Text('@if (compilePageContent) {', null, undefined, undefined);
2036
+ conditionalNode.children.push(ifOpenText);
2036
2037
  conditionalNode.children = conditionalNode.children.concat(pageContentNode.children);
2037
2038
  conditionalNode.children.push(new Text('{{onPageContentReady()}}', null, undefined, undefined));
2039
+ const ifCloseText = new Text('}', null, undefined, undefined);
2040
+ conditionalNode.children.push(ifCloseText);
2038
2041
  pageContentNode.children = [conditionalNode];
2039
2042
  }
2040
2043
  },
@@ -2202,10 +2205,6 @@ const tagName$h = 'div';
2202
2205
  const createElement$3 = name => {
2203
2206
  return new Element(name, [], [], noSpan$3, noSpan$3, noSpan$3);
2204
2207
  };
2205
- const addAtrribute$3 = (node, name, value) => {
2206
- const attr = new Attribute(name, value, noSpan$3, noSpan$3, noSpan$3, undefined, undefined);
2207
- node.attrs.push(attr);
2208
- };
2209
2208
  const noSpan$3 = {};
2210
2209
  register('wm-page-content', () => {
2211
2210
  return {
@@ -2213,9 +2212,12 @@ register('wm-page-content', () => {
2213
2212
  for (let attr of node.attrs) {
2214
2213
  if (attr.name === 'spa' && attr.value === 'true') {
2215
2214
  const conditionalNode = createElement$3('ng-container');
2216
- addAtrribute$3(conditionalNode, '*ngIf', 'compilePageContent');
2215
+ const ifOpenText = new Text('@if (compilePageContent) {', null, undefined, undefined);
2216
+ conditionalNode.children.push(ifOpenText);
2217
2217
  conditionalNode.children = conditionalNode.children.concat(node.children);
2218
2218
  conditionalNode.children.push(new Text('{{onPageContentReady()}}', null, undefined, undefined));
2219
+ const ifCloseText = new Text('}', null, undefined, undefined);
2220
+ conditionalNode.children.push(ifCloseText);
2219
2221
  node.children = [conditionalNode];
2220
2222
  break;
2221
2223
  }
@@ -2269,16 +2271,15 @@ const noSpan$2 = {};
2269
2271
  const createElement$2 = name => {
2270
2272
  return new Element(name, [], [], noSpan$2, noSpan$2, noSpan$2);
2271
2273
  };
2272
- const addAtrribute$2 = (node, name, value) => {
2273
- const attr = new Attribute(name, value, noSpan$2, noSpan$2, noSpan$2, undefined, undefined);
2274
- node.attrs.push(attr);
2275
- };
2276
2274
  register('wm-partial', () => {
2277
2275
  return {
2278
2276
  template: (node) => {
2279
2277
  const conditionalNode = createElement$2('ng-container');
2280
- addAtrribute$2(conditionalNode, '*ngIf', 'compileContent');
2278
+ const ifOpenText = new Text('@if (compileContent) {', null, undefined, undefined);
2279
+ conditionalNode.children.push(ifOpenText);
2281
2280
  conditionalNode.children = conditionalNode.children.concat(node.children);
2281
+ const ifCloseText = new Text('}', null, undefined, undefined);
2282
+ conditionalNode.children.push(ifCloseText);
2282
2283
  node.children.length = 0;
2283
2284
  node.children.push(conditionalNode);
2284
2285
  },
@@ -2325,17 +2326,16 @@ const noSpan$1 = {};
2325
2326
  const createElement$1 = name => {
2326
2327
  return new Element(name, [], [], noSpan$1, noSpan$1, noSpan$1);
2327
2328
  };
2328
- const addAtrribute$1 = (node, name, value) => {
2329
- const attr = new Attribute(name, value, noSpan$1, noSpan$1, noSpan$1, undefined, undefined);
2330
- node.attrs.push(attr);
2331
- };
2332
2329
  const tagName$b = 'div';
2333
2330
  register('wm-prefab-container', () => {
2334
2331
  return {
2335
2332
  template: (node) => {
2336
2333
  const conditionalNode = createElement$1('ng-container');
2337
- addAtrribute$1(conditionalNode, '*ngIf', 'compileContent');
2334
+ const ifOpenText = new Text('@if (compileContent) {', null, undefined, undefined);
2335
+ conditionalNode.children.push(ifOpenText);
2338
2336
  conditionalNode.children = conditionalNode.children.concat(node.children);
2337
+ const ifCloseText = new Text('}', null, undefined, undefined);
2338
+ conditionalNode.children.push(ifCloseText);
2339
2339
  node.children.length = 0;
2340
2340
  node.children.push(conditionalNode);
2341
2341
  },
@@ -2684,8 +2684,10 @@ register('wm-table-row', () => {
2684
2684
  <ng-template #rowExpansionTmpl let-row="row" let-rowDef="rowDef" let-containerLoad="containerLoad">
2685
2685
  <div wmContainer partialContainer content.bind="rowDef.content" load.event="containerLoad(widget)"
2686
2686
  [ngStyle]="{'height': rowDef.height, 'overflow-y': 'auto'}">
2687
- <div *ngFor="let param of rowDef.partialParams | keyvalue" wmParam hidden
2688
- [name]="param.key" [value]="param.value"></div>`;
2687
+ @for (param of rowDef.partialParams | keyvalue; track param) {
2688
+ <div wmParam hidden
2689
+ [name]="param.key" [value]="param.value"></div>
2690
+ }`;
2689
2691
  },
2690
2692
  post: () => `</div></ng-template></${tagName$7}>`
2691
2693
  };