@memberjunction/ng-user-view-grid 0.9.102 → 0.9.109
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.
|
@@ -586,7 +586,12 @@ export class UserViewGridComponent {
|
|
|
586
586
|
let bSaved = false;
|
|
587
587
|
if (this.EditMode === "Save") {
|
|
588
588
|
record = yield md.GetEntityObject(this._entityInfo.Name);
|
|
589
|
-
yield record.
|
|
589
|
+
yield record.InnerLoad(this._entityInfo.PrimaryKeys.map(pk => {
|
|
590
|
+
return {
|
|
591
|
+
FieldName: pk.Name,
|
|
592
|
+
Value: dataItem[pk.Name]
|
|
593
|
+
};
|
|
594
|
+
}));
|
|
590
595
|
record.SetMany(formGroup.value);
|
|
591
596
|
bSaved = yield record.Save();
|
|
592
597
|
if (!bSaved)
|
|
@@ -596,7 +601,12 @@ export class UserViewGridComponent {
|
|
|
596
601
|
record = (_a = this._pendingRecords.find((r) => r.record.Get(pkey) === dataItem[pkey])) === null || _a === void 0 ? void 0 : _a.record;
|
|
597
602
|
if (!record) { // haven't edited this one before
|
|
598
603
|
record = yield md.GetEntityObject(this._viewEntity.Get('Entity'));
|
|
599
|
-
yield record.
|
|
604
|
+
yield record.InnerLoad(this._entityInfo.PrimaryKeys.map(pk => {
|
|
605
|
+
return {
|
|
606
|
+
FieldName: pk.Name,
|
|
607
|
+
Value: dataItem[pk.Name]
|
|
608
|
+
};
|
|
609
|
+
}));
|
|
600
610
|
this._pendingRecords.push({ record,
|
|
601
611
|
row: args.rowIndex,
|
|
602
612
|
dataItem }); // don't save - put the changed record on a queue for saving later by our container
|
|
@@ -829,7 +839,7 @@ export class UserViewGridComponent {
|
|
|
829
839
|
const result = yield md.MergeRecords({
|
|
830
840
|
EntityName: this._entityInfo.Name,
|
|
831
841
|
RecordsToMerge: this.recordsToCompare.map((r) => r.Get(pkey)).filter((pkeyVal) => { var _a; return pkeyVal !== ((_a = this.recordCompareComponent) === null || _a === void 0 ? void 0 : _a.selectedRecordPKeyVal); }),
|
|
832
|
-
|
|
842
|
+
SurvivingRecordPrimaryKeyValues: [{ FieldName: pkey, Value: this.recordCompareComponent.selectedRecordPKeyVal }],
|
|
833
843
|
FieldMap: this.recordCompareComponent.fieldMap.map((fm) => {
|
|
834
844
|
return {
|
|
835
845
|
FieldName: fm.fieldName,
|
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.109",
|
|
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.
|
|
31
|
-
"@memberjunction/core": "^0.9.
|
|
32
|
-
"@memberjunction/ng-compare-records": "^0.9.
|
|
33
|
-
"@memberjunction/ng-container-directives": "^0.9.
|
|
29
|
+
"@memberjunction/core-entities": "^0.9.102",
|
|
30
|
+
"@memberjunction/global": "^0.9.117",
|
|
31
|
+
"@memberjunction/core": "^0.9.128",
|
|
32
|
+
"@memberjunction/ng-compare-records": "^0.9.126",
|
|
33
|
+
"@memberjunction/ng-container-directives": "^0.9.97",
|
|
34
34
|
"tslib": "^2.3.0"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false
|