@wavemaker/angular-codegen 11.5.2-next.141118 → 11.5.2-next.141120

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.
@@ -67841,11 +67841,21 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
67841
67841
  default: iframe_build
67842
67842
  });
67843
67843
 
67844
- const tagName$1v = 'label';
67844
+ let tagName$1v = 'p';
67845
67845
  const idGen$p = new IDGenerator('wm_label');
67846
67846
  register('wm-label', () => {
67847
67847
  return {
67848
67848
  pre: (attrs) => {
67849
+ if (!attrs.get("notag")) {
67850
+ if (!attrs.get('type')) {
67851
+ const classList = attrs.get('class') ? attrs.get('class').split(' ').filter(element => ["h1", "h2", "h3", "h4", "h5", "h6", "p"].includes(element)) : [];
67852
+ attrs.set('type', classList.length ? classList[0] : "p");
67853
+ }
67854
+ tagName$1v = attrs.get('type');
67855
+ }
67856
+ else {
67857
+ tagName$1v = 'label';
67858
+ }
67849
67859
  const counter = idGen$p.nextUid();
67850
67860
  return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
67851
67861
  },
@@ -67841,11 +67841,21 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
67841
67841
  default: iframe_build
67842
67842
  });
67843
67843
 
67844
- const tagName$1v = 'label';
67844
+ let tagName$1v = 'p';
67845
67845
  const idGen$p = new IDGenerator('wm_label');
67846
67846
  register('wm-label', () => {
67847
67847
  return {
67848
67848
  pre: (attrs) => {
67849
+ if (!attrs.get("notag")) {
67850
+ if (!attrs.get('type')) {
67851
+ const classList = attrs.get('class') ? attrs.get('class').split(' ').filter(element => ["h1", "h2", "h3", "h4", "h5", "h6", "p"].includes(element)) : [];
67852
+ attrs.set('type', classList.length ? classList[0] : "p");
67853
+ }
67854
+ tagName$1v = attrs.get('type');
67855
+ }
67856
+ else {
67857
+ tagName$1v = 'label';
67858
+ }
67849
67859
  const counter = idGen$p.nextUid();
67850
67860
  return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
67851
67861
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.5.2-next.141118",
3
+ "version": "11.5.2-next.141120",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {