@memberjunction/ng-join-grid 1.5.2 → 1.5.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.
|
@@ -24,93 +24,93 @@ function JoinGridComponent_Conditional_6_Conditional_5_For_1_Template(rf, ctx) {
|
|
|
24
24
|
i0.ɵɵtext(1);
|
|
25
25
|
i0.ɵɵelementEnd();
|
|
26
26
|
} if (rf & 2) {
|
|
27
|
-
const
|
|
28
|
-
const
|
|
27
|
+
const colRecord_r1 = ctx.$implicit;
|
|
28
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
29
29
|
i0.ɵɵadvance();
|
|
30
|
-
i0.ɵɵtextInterpolate(
|
|
30
|
+
i0.ɵɵtextInterpolate(colRecord_r1.Get(ctx_r1.ColumnsEntityDisplayField));
|
|
31
31
|
} }
|
|
32
32
|
function JoinGridComponent_Conditional_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
33
33
|
i0.ɵɵrepeaterCreate(0, JoinGridComponent_Conditional_6_Conditional_5_For_1_Template, 2, 1, "th", null, i0.ɵɵrepeaterTrackByIdentity);
|
|
34
34
|
} if (rf & 2) {
|
|
35
|
-
const
|
|
36
|
-
i0.ɵɵrepeater(
|
|
35
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
36
|
+
i0.ɵɵrepeater(ctx_r1._columnsEntityData);
|
|
37
37
|
} }
|
|
38
38
|
function JoinGridComponent_Conditional_6_Conditional_6_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
39
39
|
i0.ɵɵelementStart(0, "th");
|
|
40
40
|
i0.ɵɵtext(1);
|
|
41
41
|
i0.ɵɵelementEnd();
|
|
42
42
|
} if (rf & 2) {
|
|
43
|
-
const
|
|
43
|
+
const colName_r3 = ctx.$implicit;
|
|
44
44
|
i0.ɵɵadvance();
|
|
45
|
-
i0.ɵɵtextInterpolate(
|
|
45
|
+
i0.ɵɵtextInterpolate(colName_r3);
|
|
46
46
|
} }
|
|
47
47
|
function JoinGridComponent_Conditional_6_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
48
48
|
i0.ɵɵrepeaterCreate(0, JoinGridComponent_Conditional_6_Conditional_6_For_1_Template, 2, 1, "th", null, i0.ɵɵrepeaterTrackByIdentity);
|
|
49
49
|
} if (rf & 2) {
|
|
50
|
-
const
|
|
51
|
-
i0.ɵɵrepeater(
|
|
50
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
51
|
+
i0.ɵɵrepeater(ctx_r1.JoinEntityDisplayColumns);
|
|
52
52
|
} }
|
|
53
53
|
function JoinGridComponent_Conditional_6_For_9_Conditional_4_td_0_Template(rf, ctx) { if (rf & 1) {
|
|
54
54
|
i0.ɵɵelementStart(0, "td");
|
|
55
|
-
i0.ɵɵelement(1, "input",
|
|
55
|
+
i0.ɵɵelement(1, "input", 6);
|
|
56
56
|
i0.ɵɵelementEnd();
|
|
57
57
|
} }
|
|
58
58
|
function JoinGridComponent_Conditional_6_For_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵtemplate(0, JoinGridComponent_Conditional_6_For_9_Conditional_4_td_0_Template, 2, 0, "td",
|
|
59
|
+
i0.ɵɵtemplate(0, JoinGridComponent_Conditional_6_For_9_Conditional_4_td_0_Template, 2, 0, "td", 5);
|
|
60
60
|
} if (rf & 2) {
|
|
61
|
-
const
|
|
62
|
-
i0.ɵɵproperty("ngForOf",
|
|
61
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
62
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.JoinEntityDisplayColumns);
|
|
63
63
|
} }
|
|
64
64
|
function JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
-
const
|
|
66
|
-
i0.ɵɵelementStart(0, "td",
|
|
67
|
-
i0.ɵɵlistener("click", function JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template_td_click_0_listener($event) { const
|
|
68
|
-
i0.ɵɵelementStart(1, "input",
|
|
69
|
-
i0.ɵɵlistener("click", function JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template_input_click_1_listener($event) { const
|
|
65
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
66
|
+
i0.ɵɵelementStart(0, "td", 7);
|
|
67
|
+
i0.ɵɵlistener("click", function JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template_td_click_0_listener($event) { const cell_r5 = i0.ɵɵrestoreView(_r4).$implicit; const row_r6 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1._FlipRecord($event, row_r6, cell_r5)); });
|
|
68
|
+
i0.ɵɵelementStart(1, "input", 8);
|
|
69
|
+
i0.ɵɵlistener("click", function JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template_input_click_1_listener($event) { const cell_r5 = i0.ɵɵrestoreView(_r4).$implicit; const row_r6 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1._FlipRecord($event, row_r6, cell_r5, true)); });
|
|
70
70
|
i0.ɵɵelementEnd()();
|
|
71
71
|
} if (rf & 2) {
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
i0.ɵɵproperty("ngClass",
|
|
72
|
+
const cell_r5 = ctx.$implicit;
|
|
73
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
74
|
+
i0.ɵɵproperty("ngClass", ctx_r1.IsCellReallyDirty(cell_r5) ? "dirty-cell" : "");
|
|
75
75
|
i0.ɵɵadvance();
|
|
76
|
-
i0.ɵɵproperty("checked",
|
|
76
|
+
i0.ɵɵproperty("checked", ctx_r1._IsColumnChecked(cell_r5));
|
|
77
77
|
} }
|
|
78
78
|
function JoinGridComponent_Conditional_6_For_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
79
|
-
i0.ɵɵrepeaterCreate(0, JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template, 2, 2, "td",
|
|
79
|
+
i0.ɵɵrepeaterCreate(0, JoinGridComponent_Conditional_6_For_9_Conditional_5_For_1_Template, 2, 2, "td", 3, i0.ɵɵrepeaterTrackByIdentity);
|
|
80
80
|
} if (rf & 2) {
|
|
81
|
-
const
|
|
82
|
-
i0.ɵɵrepeater(
|
|
81
|
+
const row_r6 = i0.ɵɵnextContext().$implicit;
|
|
82
|
+
i0.ɵɵrepeater(row_r6.ColumnData);
|
|
83
83
|
} }
|
|
84
84
|
function JoinGridComponent_Conditional_6_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
-
i0.ɵɵelementStart(0, "tr",
|
|
85
|
+
i0.ɵɵelementStart(0, "tr", 3)(1, "td", 4)(2, "span");
|
|
86
86
|
i0.ɵɵtext(3);
|
|
87
87
|
i0.ɵɵelementEnd()();
|
|
88
88
|
i0.ɵɵtemplate(4, JoinGridComponent_Conditional_6_For_9_Conditional_4_Template, 1, 1, "td")(5, JoinGridComponent_Conditional_6_For_9_Conditional_5_Template, 2, 0);
|
|
89
89
|
i0.ɵɵelementEnd();
|
|
90
90
|
} if (rf & 2) {
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
i0.ɵɵproperty("ngClass",
|
|
91
|
+
const row_r6 = ctx.$implicit;
|
|
92
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
93
|
+
i0.ɵɵproperty("ngClass", ctx_r1.IsRecordReallyDirty(row_r6) ? "dirty-row" : "");
|
|
94
94
|
i0.ɵɵadvance(3);
|
|
95
|
-
i0.ɵɵtextInterpolate(
|
|
95
|
+
i0.ɵɵtextInterpolate(row_r6.FirstColValue);
|
|
96
96
|
i0.ɵɵadvance();
|
|
97
|
-
i0.ɵɵconditional(
|
|
97
|
+
i0.ɵɵconditional(ctx_r1.ColumnsMode === "Fields" ? 4 : 5);
|
|
98
98
|
} }
|
|
99
99
|
function JoinGridComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
100
|
-
i0.ɵɵelementStart(0, "table",
|
|
100
|
+
i0.ɵɵelementStart(0, "table", 2)(1, "thead")(2, "tr")(3, "th");
|
|
101
101
|
i0.ɵɵtext(4);
|
|
102
102
|
i0.ɵɵelementEnd();
|
|
103
103
|
i0.ɵɵtemplate(5, JoinGridComponent_Conditional_6_Conditional_5_Template, 2, 0)(6, JoinGridComponent_Conditional_6_Conditional_6_Template, 2, 0);
|
|
104
104
|
i0.ɵɵelementEnd()();
|
|
105
105
|
i0.ɵɵelementStart(7, "tbody");
|
|
106
|
-
i0.ɵɵrepeaterCreate(8, JoinGridComponent_Conditional_6_For_9_Template, 6, 3, "tr",
|
|
106
|
+
i0.ɵɵrepeaterCreate(8, JoinGridComponent_Conditional_6_For_9_Template, 6, 3, "tr", 3, i0.ɵɵrepeaterTrackByIdentity);
|
|
107
107
|
i0.ɵɵelementEnd()();
|
|
108
108
|
} if (rf & 2) {
|
|
109
109
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
110
110
|
i0.ɵɵadvance(4);
|
|
111
111
|
i0.ɵɵtextInterpolate(ctx_r1.RowsEntityName);
|
|
112
112
|
i0.ɵɵadvance();
|
|
113
|
-
i0.ɵɵconditional(
|
|
113
|
+
i0.ɵɵconditional(ctx_r1.ColumnsMode === "Entity" ? 5 : 6);
|
|
114
114
|
i0.ɵɵadvance(3);
|
|
115
115
|
i0.ɵɵrepeater(ctx_r1._GridData);
|
|
116
116
|
} }
|
|
@@ -366,8 +366,8 @@ export class JoinGridComponent {
|
|
|
366
366
|
this._GridData = gridData;
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
_FlipRecord(
|
|
370
|
-
return __awaiter(this,
|
|
369
|
+
_FlipRecord(event_1, row_1, cell_1) {
|
|
370
|
+
return __awaiter(this, arguments, void 0, function* (event, row, cell, stopPropagation = false) {
|
|
371
371
|
if (stopPropagation)
|
|
372
372
|
event.stopPropagation();
|
|
373
373
|
if (!cell)
|
|
@@ -409,7 +409,7 @@ export class JoinGridComponent {
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
JoinGridComponent.ɵfac = function JoinGridComponent_Factory(t) { return new (t || JoinGridComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
412
|
-
JoinGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: JoinGridComponent, selectors: [["mj-join-grid"]], inputs: { RowsEntityName: "RowsEntityName", RowsEntityDisplayField: "RowsEntityDisplayField", RowsEntityDataSource: "RowsEntityDataSource", RowsExtraFilter: "RowsExtraFilter", RowsOrderBy: "RowsOrderBy", RowsEntityViewName: "RowsEntityViewName", RowsEntityArray: "RowsEntityArray", ColumnsMode: "ColumnsMode", ColumnsEntityName: "ColumnsEntityName", ColumnsEntityDisplayField: "ColumnsEntityDisplayField", ColumnsEntityDataSource: "ColumnsEntityDataSource", ColumnsExtraFilter: "ColumnsExtraFilter", ColumnsOrderBy: "ColumnsOrderBy", ColumnsEntityViewName: "ColumnsEntityViewName", ColumnsEntityArray: "ColumnsEntityArray", JoinEntityName: "JoinEntityName", JoinEntityRowForeignKey: "JoinEntityRowForeignKey", JoinEntityColumnForeignKey: "JoinEntityColumnForeignKey", JoinEntityDisplayColumns: "JoinEntityDisplayColumns", CheckBoxValueMode: "CheckBoxValueMode", CheckBoxValueField: "CheckBoxValueField", NewRecordDefaultValues: "NewRecordDefaultValues" }, decls: 7, vars: 4, consts: [["mjFillContainer", "", 1, "wrapper"], ["kendoButton", "", 3, "
|
|
412
|
+
JoinGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: JoinGridComponent, selectors: [["mj-join-grid"]], inputs: { RowsEntityName: "RowsEntityName", RowsEntityDisplayField: "RowsEntityDisplayField", RowsEntityDataSource: "RowsEntityDataSource", RowsExtraFilter: "RowsExtraFilter", RowsOrderBy: "RowsOrderBy", RowsEntityViewName: "RowsEntityViewName", RowsEntityArray: "RowsEntityArray", ColumnsMode: "ColumnsMode", ColumnsEntityName: "ColumnsEntityName", ColumnsEntityDisplayField: "ColumnsEntityDisplayField", ColumnsEntityDataSource: "ColumnsEntityDataSource", ColumnsExtraFilter: "ColumnsExtraFilter", ColumnsOrderBy: "ColumnsOrderBy", ColumnsEntityViewName: "ColumnsEntityViewName", ColumnsEntityArray: "ColumnsEntityArray", JoinEntityName: "JoinEntityName", JoinEntityRowForeignKey: "JoinEntityRowForeignKey", JoinEntityColumnForeignKey: "JoinEntityColumnForeignKey", JoinEntityDisplayColumns: "JoinEntityDisplayColumns", CheckBoxValueMode: "CheckBoxValueMode", CheckBoxValueField: "CheckBoxValueField", NewRecordDefaultValues: "NewRecordDefaultValues" }, decls: 7, vars: 4, consts: [["mjFillContainer", "", 1, "wrapper"], ["kendoButton", "", 3, "click", "disabled"], [1, "grid"], [3, "ngClass"], [1, "first-column"], [4, "ngFor", "ngForOf"], ["type", "checkbox", "kendoCheckBox", ""], [3, "click", "ngClass"], ["type", "checkbox", "kendoCheckBox", "", 3, "click", "checked"]], template: function JoinGridComponent_Template(rf, ctx) { if (rf & 1) {
|
|
413
413
|
i0.ɵɵelementStart(0, "div", 0);
|
|
414
414
|
i0.ɵɵtemplate(1, JoinGridComponent_Conditional_1_Template, 2, 0, "div");
|
|
415
415
|
i0.ɵɵelementStart(2, "button", 1);
|
|
@@ -424,13 +424,13 @@ JoinGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: JoinGridC
|
|
|
424
424
|
i0.ɵɵelementEnd();
|
|
425
425
|
} if (rf & 2) {
|
|
426
426
|
i0.ɵɵadvance();
|
|
427
|
-
i0.ɵɵconditional(
|
|
427
|
+
i0.ɵɵconditional(ctx._IsLoading ? 1 : -1);
|
|
428
428
|
i0.ɵɵadvance();
|
|
429
429
|
i0.ɵɵproperty("disabled", ctx.NumDirtyRecords === 0);
|
|
430
430
|
i0.ɵɵadvance(2);
|
|
431
431
|
i0.ɵɵproperty("disabled", ctx.NumDirtyRecords === 0);
|
|
432
432
|
i0.ɵɵadvance(2);
|
|
433
|
-
i0.ɵɵconditional(
|
|
433
|
+
i0.ɵɵconditional(!ctx._IsLoading ? 6 : -1);
|
|
434
434
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i2.ButtonComponent, i3.LoaderComponent, i4.FillContainer], styles: [".wrapper[_ngcontent-%COMP%] {\n overflow: auto;\n}\n\n\n\ntable[_ngcontent-%COMP%] {\n margin-left: 5px;\n margin-top: 5px;\n border-collapse: collapse; \n\n}\n\nbutton[_ngcontent-%COMP%] {\n margin-left: 5px;\n margin-top: 5px;\n width: 125px;\n}\n \ntable[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background-color: #f2f2f2; \n\n color: black; \n\n font-weight: bold; \n\n cursor: pointer;\n}\n\n.permission-left-col[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n\n\ntable[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border: 1px solid gray; \n\n height: 36px; \n\n text-align: center;\n padding: 0 8px; \n\n}\n\n\n\ntable[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child {\n min-width: 150px; \n\n text-align: left;\n}\n\n\n\ntable[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:not(:first-child), table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(:first-child) {\n width: 100px; \n\n}\n\n\n\ntable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd) {\n background-color: white; \n\n}\n\ntable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even) {\n background-color: #e7f4ff; \n\n}\n\ntable[_ngcontent-%COMP%] tr.dirty-row[_ngcontent-%COMP%] {\n font-style: italic;\n background-color: #ffcccc;\n}\n\ntable[_ngcontent-%COMP%] td.dirty-cell[_ngcontent-%COMP%] {\n font-style: italic;\n background-color: #ffcccc;\n}"] });
|
|
435
435
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JoinGridComponent, [{
|
|
436
436
|
type: Component,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-join-grid",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "MemberJunction: Grid component that is able to display/edit the relationship between two entities. For example being able to edit Users + Roles in a single grid.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -15,26 +15,26 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@angular/compiler": "
|
|
19
|
-
"@angular/compiler-cli": "
|
|
18
|
+
"@angular/compiler": "18.0.2",
|
|
19
|
+
"@angular/compiler-cli": "18.0.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/forms": "
|
|
25
|
-
"@angular/router": "
|
|
22
|
+
"@angular/common": "18.0.2",
|
|
23
|
+
"@angular/core": "18.0.2",
|
|
24
|
+
"@angular/forms": "18.0.2",
|
|
25
|
+
"@angular/router": "18.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core-entities": "
|
|
29
|
-
"@memberjunction/global": "
|
|
30
|
-
"@memberjunction/core": "
|
|
31
|
-
"@memberjunction/ng-shared": "
|
|
32
|
-
"@memberjunction/ng-container-directives": "
|
|
33
|
-
"@progress/kendo-angular-buttons": "
|
|
34
|
-
"@progress/kendo-angular-dialog": "
|
|
35
|
-
"@progress/kendo-angular-layout": "
|
|
36
|
-
"@progress/kendo-angular-grid": "
|
|
37
|
-
"@progress/kendo-angular-indicators": "
|
|
28
|
+
"@memberjunction/core-entities": "1.5.3",
|
|
29
|
+
"@memberjunction/global": "1.5.3",
|
|
30
|
+
"@memberjunction/core": "1.5.3",
|
|
31
|
+
"@memberjunction/ng-shared": "1.5.3",
|
|
32
|
+
"@memberjunction/ng-container-directives": "1.5.3",
|
|
33
|
+
"@progress/kendo-angular-buttons": "16.2.0",
|
|
34
|
+
"@progress/kendo-angular-dialog": "16.2.0",
|
|
35
|
+
"@progress/kendo-angular-layout": "16.2.0",
|
|
36
|
+
"@progress/kendo-angular-grid": "16.2.0",
|
|
37
|
+
"@progress/kendo-angular-indicators": "16.2.0",
|
|
38
38
|
"tslib": "^2.3.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false
|