mmhglobal-dynamicform 2.24.2 → 2.24.3
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.
- package/README.md +3 -2
- package/esm2020/lib/services/main.service.mjs +13 -1
- package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +2 -2
- package/fesm2015/mmhglobal-dynamicform.mjs +13 -1
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +13 -1
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/lib/services/main.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1335,6 +1335,7 @@ class MainService {
|
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
1337
|
if (group.isCloneNew) {
|
|
1338
|
+
this.reloadAllWorkflowButtonList(group);
|
|
1338
1339
|
this.afterCloneNewModel(group, group.zModel);
|
|
1339
1340
|
}
|
|
1340
1341
|
else {
|
|
@@ -1343,6 +1344,17 @@ class MainService {
|
|
|
1343
1344
|
}
|
|
1344
1345
|
})).subscribe();
|
|
1345
1346
|
}
|
|
1347
|
+
reloadAllWorkflowButtonList(group) {
|
|
1348
|
+
const workflowButtonList = Object.keys(group.zComponents)
|
|
1349
|
+
.filter(key => key.startsWith('zworkflowbuttons_'))
|
|
1350
|
+
.reduce((obj, key) => {
|
|
1351
|
+
obj[key] = group.zComponents[key];
|
|
1352
|
+
return obj;
|
|
1353
|
+
}, {});
|
|
1354
|
+
Object.values(workflowButtonList).forEach(value => {
|
|
1355
|
+
value['loadButton']();
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1346
1358
|
createModel(event, group) {
|
|
1347
1359
|
const fg = group.form;
|
|
1348
1360
|
const resMessage = group.SuccessCreatedMessage || DefaultMessage.recordCreated;
|
|
@@ -7476,7 +7488,7 @@ class ZselectmultipleComponent extends InputFieldBase {
|
|
|
7476
7488
|
}
|
|
7477
7489
|
}
|
|
7478
7490
|
handleFilter(searchTerm, justOneTime) {
|
|
7479
|
-
if (this.multiselect) {
|
|
7491
|
+
if (this.multiselect && this.data.SearchLength) {
|
|
7480
7492
|
const meetsLengthCondition = this.data.SearchLength && this.data.SearchLength <= searchTerm.length;
|
|
7481
7493
|
this.multiselect.toggle(meetsLengthCondition);
|
|
7482
7494
|
}
|