@wavemaker/app-ng-runtime 11.5.0-rc.5397 → 11.5.1-next.26253

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.
@@ -1195,7 +1195,9 @@ const buildTask = (directiveAttr = '') => {
1195
1195
  const role = parentLoginWidget && parentLoginWidget.get('isLogin') ? 'app-login' : '';
1196
1196
  const counter = idGen$d.nextUid();
1197
1197
  const dependsOn = attrs.get('dependson') ? `dependson="${attrs.get('dependson')}"` : '';
1198
- const dependsOnTable = attrs.get('dependson') ? `dependsontable="${attrs.get('dependson')}"` : '';
1198
+ if (dependsOn) {
1199
+ attrs.set('dependsontable', attrs.get('dependson'));
1200
+ }
1199
1201
  const classProp = attrs.get('formlayout') === 'page' ? 'app-device-liveform panel liveform-inline' : '';
1200
1202
  const dialogAttributes = ['title', 'title.bind', 'iconclass', 'iconclass.bind', 'width'];
1201
1203
  attrs.delete('dependson');
@@ -1240,7 +1242,8 @@ const buildTask = (directiveAttr = '') => {
1240
1242
  <div class="form-elements panel-body" >`;
1241
1243
  }
1242
1244
  tmpl = getAttrMarkup(attrs);
1243
- return `<div ${dependsOn}>${liveFormTmpl} ${tmpl} ${dependsOnTable}>
1245
+ const dependsOnTmpl = dependsOn ? `<div ${dependsOn}>` : '';
1246
+ return `${dependsOnTmpl}${liveFormTmpl} ${tmpl}>
1244
1247
  ${buttonTemplate} ${mobileFormContentTmpl}`;
1245
1248
  },
1246
1249
  post: (attrs) => {
@@ -1250,7 +1253,10 @@ const buildTask = (directiveAttr = '') => {
1250
1253
  if (attrs.get('formlayout') === 'page') {
1251
1254
  return `</div></${tagName$V}>`;
1252
1255
  }
1253
- return `</${tagName$V}></div>`;
1256
+ if (attrs.get('dependsontable')) {
1257
+ return `</${tagName$V}></div>`;
1258
+ }
1259
+ return `</${tagName$V}>`;
1254
1260
  },
1255
1261
  provide: (attrs, shared) => {
1256
1262
  const provider = new Map();