@wavemaker-ai/angular-codegen 1.0.0-rc.309 → 1.0.0-rc.314

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker-ai/angular-app",
3
- "version": "1.0.0-rc.309",
3
+ "version": "1.0.0-rc.314",
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
@@ -36,11 +36,11 @@
36
36
  "@fullcalendar/list": "6.1.18",
37
37
  "@fullcalendar/timegrid": "6.1.18",
38
38
  "@metrichor/jmespath": "0.3.1",
39
- "@wavemaker-ai/custom-widgets-m3": "1.0.0-rc.309",
39
+ "@wavemaker-ai/custom-widgets-m3": "1.0.0-rc.314",
40
40
  "@wavemaker/focus-trap": "1.0.1",
41
- "@wavemaker-ai/foundation-css": "1.0.0-rc.309",
41
+ "@wavemaker-ai/foundation-css": "1.0.0-rc.314",
42
42
  "@wavemaker/nvd3": "1.8.16",
43
- "@wavemaker-ai/variables": "1.0.0-rc.309",
43
+ "@wavemaker-ai/variables": "1.0.0-rc.314",
44
44
  "@ztree/ztree_v3": "3.5.48",
45
45
  "acorn": "8.15.0",
46
46
  "angular-imask": "7.6.1",
@@ -62,7 +62,7 @@
62
62
  "tslib": "2.8.1",
63
63
  "x2js": "3.4.4",
64
64
  "zone.js": "0.15.1",
65
- "@wavemaker-ai/app-ng-runtime": "1.0.0-rc.309"
65
+ "@wavemaker-ai/app-ng-runtime": "1.0.0-rc.314"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@ampproject/rollup-plugin-closure-compiler": "0.27.0",
@@ -38737,7 +38737,7 @@ const quoteAttr = v => {
38737
38737
  const registry$1 = new Map();
38738
38738
  const htmlParser = new HtmlParser();
38739
38739
  const empty = () => '';
38740
- const noSpan = {};
38740
+ const noSpan$1 = {};
38741
38741
  /**
38742
38742
  * Creates an Angular Compiler Element for template transpilation.
38743
38743
  * Angular 20: Element constructor requires 9 arguments including proper endSourceSpan for closing tag generation.
@@ -38745,7 +38745,7 @@ const noSpan = {};
38745
38745
  * @returns Element instance with proper source spans for Angular 20 compatibility
38746
38746
  */
38747
38747
  const createCompilerElement = (name) => {
38748
- return new Element$2(name, [], [], [], false, noSpan, noSpan, noSpan, false);
38748
+ return new Element$2(name, [], [], [], false, noSpan$1, noSpan$1, noSpan$1, false);
38749
38749
  };
38750
38750
  const isEvent = name => name[0] === 'o' && name[1] === 'n' && name[2] === '-';
38751
38751
  const getEventName = key => key.substr(3);
@@ -106398,6 +106398,9 @@ const findChild = (node, childName) => {
106398
106398
  const child = node && node.children.find(e => (e instanceof Element$2 && e.name === childName));
106399
106399
  return child;
106400
106400
  };
106401
+ const createElement = name => {
106402
+ return new Element$2(name, [], [], [], false, noSpan, noSpan, noSpan, false);
106403
+ };
106401
106404
  const getElementNode = (name, node) => {
106402
106405
  let elementNode;
106403
106406
  if (!node) {
@@ -106416,6 +106419,7 @@ const getElementNode = (name, node) => {
106416
106419
  });
106417
106420
  return elementNode;
106418
106421
  };
106422
+ const noSpan = {};
106419
106423
  const idGen$9 = new IDGenerator('wm_page');
106420
106424
  register('wm-page', () => {
106421
106425
  return {
@@ -106425,9 +106429,14 @@ register('wm-page', () => {
106425
106429
  pageContentNode = getElementNode('wm-page-content', getElementNode('wm-content', node));
106426
106430
  }
106427
106431
  if (pageContentNode) {
106428
- // Wrap content in @if block with proper newlines to avoid template syntax errors
106429
- pageContentNode.children.unshift(new Text$1('@if (compilePageContent) {\n', null, undefined, undefined));
106430
- pageContentNode.children.push(new Text$1('\n{{onPageContentReady()}}\n}', null, undefined, undefined));
106432
+ const conditionalNode = createElement('ng-container');
106433
+ const ifOpenText = new Text$1('@if (compilePageContent) {', null, undefined, undefined);
106434
+ conditionalNode.children.push(ifOpenText);
106435
+ conditionalNode.children = conditionalNode.children.concat(pageContentNode.children);
106436
+ conditionalNode.children.push(new Text$1('{{onPageContentReady()}}', null, undefined, undefined));
106437
+ const ifCloseText = new Text$1('}', null, undefined, undefined);
106438
+ conditionalNode.children.push(ifCloseText);
106439
+ pageContentNode.children = [conditionalNode];
106431
106440
  }
106432
106441
  },
106433
106442
  pre: (attrs) => {