@memberjunction/ng-user-view-grid 0.9.45 → 0.9.47
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.
|
@@ -771,41 +771,7 @@ export class UserViewGridComponent {
|
|
|
771
771
|
// selectedKeys is an array of indexes in the this.viewData, and we need to make our
|
|
772
772
|
// this.recordsToCompare an array of records from this.viewData so just map() the selectedKeys for this
|
|
773
773
|
this.recordsToCompare = this.selectedKeys.map((i) => this.viewData[i]);
|
|
774
|
-
|
|
775
|
-
// if(this.compareRecords.length && args?.deselectedRows?.length){
|
|
776
|
-
// const tempRow = args?.deselectedRows[0]?.dataItem;
|
|
777
|
-
// this.compareRecords = this.compareRecords.filter(record => record.ID !== tempRow?.ID);
|
|
778
|
-
// } else if(args?.selectedRows?.length){
|
|
779
|
-
// const tempRow = args?.selectedRows[0]?.dataItem;
|
|
780
|
-
// this.compareRecords.push(tempRow);
|
|
781
|
-
// }
|
|
782
|
-
// }
|
|
783
|
-
// else if (this.mergeMode) {
|
|
784
|
-
// if(this.mergeRecords.length && args?.deselectedRows?.length){
|
|
785
|
-
// const tempRow = args?.deselectedRows[0]?.dataItem;
|
|
786
|
-
// this.mergeRecords = this.mergeRecords.filter(record => record.ID !== tempRow?.ID);
|
|
787
|
-
// } else if(args?.selectedRows?.length){
|
|
788
|
-
// const tempRow = args?.selectedRows[0]?.dataItem;
|
|
789
|
-
// this.mergeRecords.push(tempRow);
|
|
790
|
-
// }
|
|
791
|
-
// }
|
|
792
|
-
}
|
|
793
|
-
// enableCompare(cancel: boolean = false){
|
|
794
|
-
// if(!cancel && this.recordsToCompare.length >= 2){
|
|
795
|
-
// // this scenario occurs when we've already started the compare and the user has selected records, then clicked the compare button again
|
|
796
|
-
// this.isCompareDialogOpened = true;
|
|
797
|
-
// }
|
|
798
|
-
// else if (cancel) {
|
|
799
|
-
// // the user clicked cancel in our toolbar
|
|
800
|
-
// this.compareMode = false;
|
|
801
|
-
// this.recordsToCompare = [];
|
|
802
|
-
// this.selectedKeys = [];
|
|
803
|
-
// }
|
|
804
|
-
// else {
|
|
805
|
-
// // just turning on compare mode from the compare button, so just turn it on and let the user select records
|
|
806
|
-
// this.compareMode = true;
|
|
807
|
-
// }
|
|
808
|
-
// }
|
|
774
|
+
}
|
|
809
775
|
enableMergeOrCompare(cancel = false, type) {
|
|
810
776
|
if (!cancel && this.recordsToCompare.length >= 2) {
|
|
811
777
|
// this scenario occurs when we've already started the merge/compare and the user has selected records, then clicked the merge/compare button again
|
|
@@ -848,8 +814,6 @@ export class UserViewGridComponent {
|
|
|
848
814
|
// merge was successful, so refresh the grid
|
|
849
815
|
this.selectedKeys = [];
|
|
850
816
|
this.recordsToCompare = [];
|
|
851
|
-
// this.compareRecords = [];
|
|
852
|
-
// this.mergeRecords = [];
|
|
853
817
|
this.mergeMode = false;
|
|
854
818
|
this.compareMode = false;
|
|
855
819
|
// close the dialogs
|
|
@@ -883,8 +847,6 @@ export class UserViewGridComponent {
|
|
|
883
847
|
default: // close and cancel
|
|
884
848
|
this.selectedKeys = [];
|
|
885
849
|
this.recordsToCompare = [];
|
|
886
|
-
// this.compareRecords = [];
|
|
887
|
-
// this.mergeRecords = [];
|
|
888
850
|
this.mergeMode = false;
|
|
889
851
|
this.compareMode = false;
|
|
890
852
|
this.isCompareDialogOpened = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-user-view-grid",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.47",
|
|
4
4
|
"description": "MemberJunction: Angular Grid to display dynamic and saved user views for any entity in MemberJunction.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@progress/kendo-angular-grid": "^12.1.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memberjunction/core-entities": "^0.9.
|
|
30
|
-
"@memberjunction/global": "^0.9.
|
|
29
|
+
"@memberjunction/core-entities": "^0.9.35",
|
|
30
|
+
"@memberjunction/global": "^0.9.63",
|
|
31
31
|
"@memberjunction/core": "^0.9.59",
|
|
32
|
-
"@memberjunction/ng-compare-records": "^0.9.
|
|
33
|
-
"@memberjunction/ng-container-directives": "^0.9.
|
|
32
|
+
"@memberjunction/ng-compare-records": "^0.9.67",
|
|
33
|
+
"@memberjunction/ng-container-directives": "^0.9.43",
|
|
34
34
|
"tslib": "^2.3.0"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false
|