qms-angular 1.0.33 → 1.0.34
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/bundles/qms-angular.umd.js +35 -0
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/related/model/popup-data.model.js +1 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +36 -1
- package/fesm2015/qms-angular.js +35 -0
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/related/model/popup-data.model.d.ts +1 -0
- package/lib/components/related/popup/related-popup.component.d.ts +1 -0
- package/package.json +1 -1
- package/qms-angular.metadata.json +1 -1
@@ -4866,6 +4866,7 @@
|
|
4866
4866
|
this.disabledList = data.disabledList || [];
|
4867
4867
|
this.disabledList2 = data.disabledList2 || [];
|
4868
4868
|
this.splitView = data.splitView;
|
4869
|
+
this.maxSelectItemCount = data.maxSelectItemCount;
|
4869
4870
|
appIconService.registerProcessIcon(iconRegistry, sanitizer);
|
4870
4871
|
appIconService.registerProcessAreaIcon(iconRegistry, sanitizer);
|
4871
4872
|
appIconService.registerDocumentIcon(iconRegistry, sanitizer);
|
@@ -5256,6 +5257,23 @@
|
|
5256
5257
|
if (this.singleSelectedNode) {
|
5257
5258
|
this.checkedNodeList = __spreadArray(__spreadArray([], __read(this.checkedNodeList)), __read(this.singleProcessList));
|
5258
5259
|
}
|
5260
|
+
if (this.maxSelectItemCount && this.maxSelectItemCount > 0) {
|
5261
|
+
var removeList = this.checkedNodeList.slice(0, this.maxSelectItemCount * -1);
|
5262
|
+
if (removeList.length) {
|
5263
|
+
removeList.forEach(function (item) {
|
5264
|
+
_this.removeCheckedNodeList({
|
5265
|
+
id: item.id,
|
5266
|
+
name: item.itemName,
|
5267
|
+
parentId: item.parentId,
|
5268
|
+
level: 0,
|
5269
|
+
expandable: true,
|
5270
|
+
hasChild: true,
|
5271
|
+
disabled: false
|
5272
|
+
});
|
5273
|
+
});
|
5274
|
+
}
|
5275
|
+
this.checkedNodeList = this.checkedNodeList.slice(this.maxSelectItemCount * -1);
|
5276
|
+
}
|
5259
5277
|
}
|
5260
5278
|
};
|
5261
5279
|
RelatedPopupComponent.prototype.getDocumentCheckedNode = function (list) {
|
@@ -5309,6 +5327,23 @@
|
|
5309
5327
|
if (this.singleSelectedNode) {
|
5310
5328
|
this.checkedNodeList = __spreadArray(__spreadArray([], __read(this.checkedNodeList)), __read(this.singleDocumentList));
|
5311
5329
|
}
|
5330
|
+
if (this.maxSelectItemCount && this.maxSelectItemCount > 0) {
|
5331
|
+
var removeList = this.checkedNodeList.slice(0, this.maxSelectItemCount * -1);
|
5332
|
+
if (removeList.length) {
|
5333
|
+
removeList.forEach(function (item) {
|
5334
|
+
_this.removeCheckedNodeList({
|
5335
|
+
id: item.id,
|
5336
|
+
name: item.itemName,
|
5337
|
+
parentId: item.parentId,
|
5338
|
+
level: 0,
|
5339
|
+
expandable: true,
|
5340
|
+
hasChild: true,
|
5341
|
+
disabled: false
|
5342
|
+
});
|
5343
|
+
});
|
5344
|
+
}
|
5345
|
+
this.checkedNodeList = this.checkedNodeList.slice(this.maxSelectItemCount * -1);
|
5346
|
+
}
|
5312
5347
|
}
|
5313
5348
|
};
|
5314
5349
|
RelatedPopupComponent.prototype.onCloseClick = function () {
|