@memberjunction/ng-data-context 2.13.4 → 2.14.0

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.
@@ -2,18 +2,13 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./ng-data-context.component";
3
3
  import * as i2 from "./ng-data-context-dialog.component";
4
4
  import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/router";
7
- import * as i6 from "@progress/kendo-angular-grid";
8
- import * as i7 from "@progress/kendo-angular-dialog";
9
- import * as i8 from "@progress/kendo-angular-excel-export";
10
- import * as i9 from "@progress/kendo-angular-buttons";
11
- import * as i10 from "@memberjunction/ng-compare-records";
12
- import * as i11 from "@memberjunction/ng-container-directives";
13
- import * as i12 from "@progress/kendo-angular-indicators";
5
+ import * as i4 from "@progress/kendo-angular-grid";
6
+ import * as i5 from "@progress/kendo-angular-dialog";
7
+ import * as i6 from "@progress/kendo-angular-buttons";
8
+ import * as i7 from "@progress/kendo-angular-indicators";
14
9
  export declare class DataContextModule {
15
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DataContextModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<DataContextModule, [typeof i1.DataContextComponent, typeof i2.DataContextDialogComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.RouterModule, typeof i6.GridModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.ButtonsModule, typeof i10.CompareRecordsModule, typeof i11.ContainerDirectivesModule, typeof i12.IndicatorsModule], [typeof i1.DataContextComponent, typeof i2.DataContextDialogComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DataContextModule, [typeof i1.DataContextComponent, typeof i2.DataContextDialogComponent], [typeof i3.CommonModule, typeof i4.GridModule, typeof i5.DialogsModule, typeof i6.ButtonsModule, typeof i7.IndicatorsModule], [typeof i1.DataContextComponent, typeof i2.DataContextDialogComponent]>;
17
12
  static ɵinj: i0.ɵɵInjectorDeclaration<DataContextModule>;
18
13
  }
19
14
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAiBA,qBAuBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAI"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;AAYA,qBAiBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAI"}
@@ -1,32 +1,21 @@
1
1
  import { NgModule } from '@angular/core';
2
- import { DataContextDialogComponent } from './ng-data-context-dialog.component';
3
2
  import { CommonModule } from '@angular/common';
4
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5
- import { RouterModule } from '@angular/router';
6
3
  // Kendo UI Angular imports
7
4
  import { GridModule } from '@progress/kendo-angular-grid';
8
- import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
5
  import { DialogsModule } from "@progress/kendo-angular-dialog";
10
6
  import { ButtonsModule } from '@progress/kendo-angular-buttons';
11
7
  import { IndicatorsModule } from '@progress/kendo-angular-indicators';
12
- import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
13
- import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
14
8
  import { DataContextComponent } from './ng-data-context.component';
9
+ import { DataContextDialogComponent } from './ng-data-context-dialog.component';
15
10
  import * as i0 from "@angular/core";
16
11
  export class DataContextModule {
17
12
  }
18
13
  DataContextModule.ɵfac = function DataContextModule_Factory(t) { return new (t || DataContextModule)(); };
19
14
  DataContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DataContextModule });
20
15
  DataContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
21
- FormsModule,
22
- ReactiveFormsModule,
23
- RouterModule,
24
16
  GridModule,
25
17
  DialogsModule,
26
- ExcelExportModule,
27
18
  ButtonsModule,
28
- CompareRecordsModule,
29
- ContainerDirectivesModule,
30
19
  IndicatorsModule] });
31
20
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextModule, [{
32
21
  type: NgModule,
@@ -37,15 +26,9 @@ DataContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
37
26
  ],
38
27
  imports: [
39
28
  CommonModule,
40
- FormsModule,
41
- ReactiveFormsModule,
42
- RouterModule,
43
29
  GridModule,
44
30
  DialogsModule,
45
- ExcelExportModule,
46
31
  ButtonsModule,
47
- CompareRecordsModule,
48
- ContainerDirectivesModule,
49
32
  IndicatorsModule
50
33
  ],
51
34
  exports: [
@@ -56,15 +39,9 @@ DataContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Common
56
39
  }], null, null); })();
57
40
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DataContextModule, { declarations: [DataContextComponent,
58
41
  DataContextDialogComponent], imports: [CommonModule,
59
- FormsModule,
60
- ReactiveFormsModule,
61
- RouterModule,
62
42
  GridModule,
63
43
  DialogsModule,
64
- ExcelExportModule,
65
44
  ButtonsModule,
66
- CompareRecordsModule,
67
- ContainerDirectivesModule,
68
45
  IndicatorsModule], exports: [DataContextComponent,
69
46
  DataContextDialogComponent] }); })();
70
47
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,M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AgB,aAGhB,oBAAoB;QACpB,0BAA0B"}
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,2BAA2B;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;;AAmBhF,MAAM,OAAO,iBAAiB;;kFAAjB,iBAAiB;mEAAjB,iBAAiB;uEAX1B,YAAY;QACZ,UAAU;QACV,aAAa;QACb,aAAa;QACb,gBAAgB;iFAOP,iBAAiB;cAjB7B,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,oBAAoB;oBACpB,0BAA0B;iBAC3B;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,UAAU;oBACV,aAAa;oBACb,aAAa;oBACb,gBAAgB;iBACjB;gBACD,OAAO,EAAE;oBACP,oBAAoB;oBACpB,0BAA0B;iBAC3B;aACF;;wFACY,iBAAiB,mBAf1B,oBAAoB;QACpB,0BAA0B,aAG1B,YAAY;QACZ,UAAU;QACV,aAAa;QACb,aAAa;QACb,gBAAgB,aAGhB,oBAAoB;QACpB,0BAA0B"}
@@ -14,23 +14,22 @@ export class DataContextDialogComponent {
14
14
  }
15
15
  }
16
16
  DataContextDialogComponent.ɵfac = function DataContextDialogComponent_Factory(t) { return new (t || DataContextDialogComponent)(); };
17
- DataContextDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDialogComponent, selectors: [["mj-data-context-dialog"]], inputs: { dataContextId: "dataContextId" }, outputs: { dialogClosed: "dialogClosed" }, decls: 5, vars: 6, consts: [["recordChangesWrapper", ""], [1, "k-overlay"], ["title", "Data Context", 1, "kendo-window-custom", 3, "close", "width", "height", "minHeight", "minWidth", "resizable"], [3, "dataContextId"]], template: function DataContextDialogComponent_Template(rf, ctx) { if (rf & 1) {
18
- const _r1 = i0.ɵɵgetCurrentView();
19
- i0.ɵɵelementStart(0, "div", null, 0);
20
- i0.ɵɵelement(2, "div", 1);
21
- i0.ɵɵelementStart(3, "kendo-window", 2);
22
- i0.ɵɵlistener("close", function DataContextDialogComponent_Template_kendo_window_close_3_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.closePropertiesDialog()); });
23
- i0.ɵɵelement(4, "mj-data-context", 3);
17
+ DataContextDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDialogComponent, selectors: [["mj-data-context-dialog"]], inputs: { dataContextId: "dataContextId" }, outputs: { dialogClosed: "dialogClosed" }, decls: 4, vars: 6, consts: [[1, "k-overlay"], ["title", "Data Context", 1, "kendo-window-custom", 3, "close", "width", "height", "minHeight", "minWidth", "resizable"], [3, "dataContextId"]], template: function DataContextDialogComponent_Template(rf, ctx) { if (rf & 1) {
18
+ i0.ɵɵelementStart(0, "div");
19
+ i0.ɵɵelement(1, "div", 0);
20
+ i0.ɵɵelementStart(2, "kendo-window", 1);
21
+ i0.ɵɵlistener("close", function DataContextDialogComponent_Template_kendo_window_close_2_listener() { return ctx.closePropertiesDialog(); });
22
+ i0.ɵɵelement(3, "mj-data-context", 2);
24
23
  i0.ɵɵelementEnd()();
25
24
  } if (rf & 2) {
26
- i0.ɵɵadvance(3);
25
+ i0.ɵɵadvance(2);
27
26
  i0.ɵɵproperty("width", 700)("height", 525)("minHeight", 300)("minWidth", 400)("resizable", true);
28
27
  i0.ɵɵadvance();
29
28
  i0.ɵɵproperty("dataContextId", ctx.dataContextId);
30
29
  } }, dependencies: [i1.WindowComponent, i2.DataContextComponent] });
31
30
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextDialogComponent, [{
32
31
  type: Component,
33
- args: [{ selector: 'mj-data-context-dialog', template: "<div #recordChangesWrapper>\n <div class=\"k-overlay\"></div>\n <kendo-window \n class=\"kendo-window-custom\"\n [width]=\"700\"\n [height]=\"525\"\n [minHeight]=\"300\"\n [minWidth]=\"400\"\n [resizable]=\"true\"\n title=\"Data Context\"\n (close)=\"closePropertiesDialog()\"\n >\n <mj-data-context [dataContextId]=\"dataContextId\" ></mj-data-context>\n </kendo-window>\n</div>" }]
32
+ args: [{ selector: 'mj-data-context-dialog', template: "<div>\n <div class=\"k-overlay\"></div>\n <kendo-window \n class=\"kendo-window-custom\"\n [width]=\"700\"\n [height]=\"525\"\n [minHeight]=\"300\"\n [minWidth]=\"400\"\n [resizable]=\"true\"\n title=\"Data Context\"\n (close)=\"closePropertiesDialog()\"\n >\n <mj-data-context [dataContextId]=\"dataContextId\" ></mj-data-context>\n </kendo-window>\n</div>" }]
34
33
  }], null, { dialogClosed: [{
35
34
  type: Output
36
35
  }], dataContextId: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ng-data-context-dialog.component.js","sourceRoot":"","sources":["../../src/lib/ng-data-context-dialog.component.ts","../../src/lib/ng-data-context-dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;;;AAEvE;;GAEG;AAMH,MAAM,OAAO,0BAA0B;IALvC;QAMY,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;KAM7C;IAHC,qBAAqB;QACnB,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;;oGANU,0BAA0B;6EAA1B,0BAA0B;;QCVvC,oCAA2B;QACvB,yBAA6B;QAC7B,uCASC;QADG,mJAAS,2BAAuB,KAAC;QAEjC,qCAAoE;QAE5E,AADI,iBAAe,EACb;;QAVE,eAAa;QAIb,AADA,AADA,AADA,AADA,2BAAa,eACC,kBACG,iBACD,mBACE;QAID,cAA+B;QAA/B,iDAA+B;;iFDF3C,0BAA0B;cALtC,SAAS;2BACE,wBAAwB;gBAKxB,YAAY;kBAArB,MAAM;YACE,aAAa;kBAArB,KAAK;;kFAFK,0BAA0B"}
1
+ {"version":3,"file":"ng-data-context-dialog.component.js","sourceRoot":"","sources":["../../src/lib/ng-data-context-dialog.component.ts","../../src/lib/ng-data-context-dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;;;AAEvE;;GAEG;AAMH,MAAM,OAAO,0BAA0B;IALvC;QAMY,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;KAM7C;IAHC,qBAAqB;QACnB,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;;oGANU,0BAA0B;6EAA1B,0BAA0B;QCVvC,2BAAK;QACD,yBAA6B;QAC7B,uCASC;QADG,6GAAS,2BAAuB,IAAC;QAEjC,qCAAoE;QAE5E,AADI,iBAAe,EACb;;QAVE,eAAa;QAIb,AADA,AADA,AADA,AADA,2BAAa,eACC,kBACG,iBACD,mBACE;QAID,cAA+B;QAA/B,iDAA+B;;iFDF3C,0BAA0B;cALtC,SAAS;2BACE,wBAAwB;gBAKxB,YAAY;kBAArB,MAAM;YACE,aAAa;kBAArB,KAAK;;kFAFK,0BAA0B"}
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { DataContextEntity } from '@memberjunction/core-entities';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DataContextComponent implements OnInit {
5
- showloader: boolean;
5
+ showLoader: boolean;
6
6
  dataContextId: string;
7
7
  dataContextRecord?: DataContextEntity;
8
8
  dataContextItems: any;
@@ -13,10 +13,7 @@ import * as i0 from "@angular/core";
13
13
  import * as i1 from "@angular/common";
14
14
  import * as i2 from "@progress/kendo-angular-grid";
15
15
  import * as i3 from "@progress/kendo-angular-indicators";
16
- function DataContextComponent_kendo_loader_2_Template(rf, ctx) { if (rf & 1) {
17
- i0.ɵɵelement(0, "kendo-loader", 4);
18
- } }
19
- function DataContextComponent_div_3_div_2_Template(rf, ctx) { if (rf & 1) {
16
+ function DataContextComponent_Conditional_1_div_1_Template(rf, ctx) { if (rf & 1) {
20
17
  i0.ɵɵelementStart(0, "div")(1, "div");
21
18
  i0.ɵɵtext(2);
22
19
  i0.ɵɵelementEnd();
@@ -35,30 +32,33 @@ function DataContextComponent_div_3_div_2_Template(rf, ctx) { if (rf & 1) {
35
32
  i0.ɵɵadvance(2);
36
33
  i0.ɵɵtextInterpolate1(" Description: ", ctx_r0.dataContextRecord.Description, " ");
37
34
  } }
38
- function DataContextComponent_div_3_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵelementStart(0, "div", 5, 1);
40
- i0.ɵɵtemplate(2, DataContextComponent_div_3_div_2_Template, 7, 3, "div", 6);
41
- i0.ɵɵelementStart(3, "div", 7)(4, "b");
42
- i0.ɵɵtext(5, "Items");
35
+ function DataContextComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
36
+ i0.ɵɵelementStart(0, "div", 0);
37
+ i0.ɵɵtemplate(1, DataContextComponent_Conditional_1_div_1_Template, 7, 3, "div", 2);
38
+ i0.ɵɵelementStart(2, "div", 3)(3, "b");
39
+ i0.ɵɵtext(4, "Items");
43
40
  i0.ɵɵelementEnd()();
44
- i0.ɵɵelementStart(6, "div", 8);
45
- i0.ɵɵelement(7, "kendo-grid", 9);
41
+ i0.ɵɵelementStart(5, "div", 4);
42
+ i0.ɵɵelement(6, "kendo-grid", 5);
46
43
  i0.ɵɵelementEnd()();
47
44
  } if (rf & 2) {
48
45
  const ctx_r0 = i0.ɵɵnextContext();
49
- i0.ɵɵadvance(2);
46
+ i0.ɵɵadvance();
50
47
  i0.ɵɵproperty("ngIf", ctx_r0.dataContextRecord);
51
48
  i0.ɵɵadvance(5);
52
- i0.ɵɵproperty("kendoGridBinding", ctx_r0.dataContextItems)("pageSize", 100)("sortable", true)("loading", ctx_r0.showloader)("resizable", true)("navigable", true);
49
+ i0.ɵɵproperty("kendoGridBinding", ctx_r0.dataContextItems)("pageSize", 100)("sortable", true)("loading", ctx_r0.showLoader)("resizable", true)("navigable", true);
50
+ } }
51
+ function DataContextComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
52
+ i0.ɵɵelement(0, "kendo-loader", 1);
53
53
  } }
54
54
  export class DataContextComponent {
55
55
  constructor() {
56
- this.showloader = false;
56
+ this.showLoader = false;
57
57
  this.dataContextItems = [];
58
58
  }
59
59
  ngOnInit() {
60
60
  if (this.dataContextId) {
61
- this.showloader = true;
61
+ this.showLoader = true;
62
62
  this.LoadDataContext(this.dataContextId);
63
63
  }
64
64
  }
@@ -76,30 +76,28 @@ export class DataContextComponent {
76
76
  });
77
77
  if (response.Success) {
78
78
  this.dataContextItems = response.Results;
79
- this.showloader = false;
79
+ this.showLoader = false;
80
80
  }
81
81
  else {
82
82
  LogError(response.ErrorMessage);
83
- this.showloader = false;
83
+ this.showLoader = false;
84
84
  }
85
85
  }
86
86
  });
87
87
  }
88
88
  }
89
89
  DataContextComponent.ɵfac = function DataContextComponent_Factory(t) { return new (t || DataContextComponent)(); };
90
- DataContextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextComponent, selectors: [["mj-data-context"]], inputs: { dataContextId: "dataContextId" }, decls: 4, vars: 2, consts: [["wrapper", ""], ["dialogContainer", ""], ["type", "converging-spinner", 4, "ngIf"], ["class", "k-d-flex k-flex-col k-justify-content-between k-h-full", 4, "ngIf"], ["type", "converging-spinner"], [1, "k-d-flex", "k-flex-col", "k-justify-content-between", "k-h-full"], [4, "ngIf"], [2, "margin-top", "10px"], [1, "kendo-grid-container"], ["scrollable", "virtual", 3, "kendoGridBinding", "pageSize", "sortable", "loading", "resizable", "navigable"]], template: function DataContextComponent_Template(rf, ctx) { if (rf & 1) {
91
- i0.ɵɵelementStart(0, "div", null, 0);
92
- i0.ɵɵtemplate(2, DataContextComponent_kendo_loader_2_Template, 1, 0, "kendo-loader", 2)(3, DataContextComponent_div_3_Template, 8, 7, "div", 3);
90
+ DataContextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextComponent, selectors: [["mj-data-context"]], inputs: { dataContextId: "dataContextId" }, decls: 3, vars: 1, consts: [[1, "k-d-flex", "k-flex-col", "k-justify-content-between", "k-h-full"], ["type", "converging-spinner"], [4, "ngIf"], [2, "margin-top", "10px"], [1, "kendo-grid-container"], ["scrollable", "virtual", 3, "kendoGridBinding", "pageSize", "sortable", "loading", "resizable", "navigable"]], template: function DataContextComponent_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelementStart(0, "div");
92
+ i0.ɵɵtemplate(1, DataContextComponent_Conditional_1_Template, 7, 7, "div", 0)(2, DataContextComponent_Conditional_2_Template, 1, 0, "kendo-loader", 1);
93
93
  i0.ɵɵelementEnd();
94
94
  } if (rf & 2) {
95
- i0.ɵɵadvance(2);
96
- i0.ɵɵproperty("ngIf", ctx.showloader);
97
95
  i0.ɵɵadvance();
98
- i0.ɵɵproperty("ngIf", !ctx.showloader);
96
+ i0.ɵɵconditional(!ctx.showLoader ? 1 : 2);
99
97
  } }, dependencies: [i1.NgIf, i2.GridComponent, i2.DataBindingDirective, i3.LoaderComponent] });
100
98
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextComponent, [{
101
99
  type: Component,
102
- args: [{ selector: 'mj-data-context', template: "<div #wrapper>\n <kendo-loader *ngIf=\"showloader\" type=\"converging-spinner\" ></kendo-loader>\n <div class=\"k-d-flex k-flex-col k-justify-content-between k-h-full\" #dialogContainer *ngIf=\"!showloader\">\n <div *ngIf=\"dataContextRecord\">\n <div>\n ID: {{dataContextRecord.ID}}\n </div>\n <div>\n Name: {{dataContextRecord.Name}}\n </div>\n <div>\n Description: {{dataContextRecord.Description}}\n </div>\n </div>\n <div style=\"margin-top: 10px;\">\n <b>Items</b>\n </div>\n <div class=\"kendo-grid-container\">\n <kendo-grid \n [kendoGridBinding]=\"dataContextItems\" \n scrollable=\"virtual\" \n [pageSize]=\"100\" \n [sortable]=\"true\"\n [loading]=\"showloader\" \n [resizable]=\"true\" \n [navigable]=\"true\"\n >\n </kendo-grid>\n </div>\n </div>\n</div>" }]
100
+ args: [{ selector: 'mj-data-context', template: "<div>\n @if (!showLoader) {\n <div class=\"k-d-flex k-flex-col k-justify-content-between k-h-full\">\n <div *ngIf=\"dataContextRecord\">\n <div>\n ID: {{dataContextRecord.ID}}\n </div>\n <div>\n Name: {{dataContextRecord.Name}}\n </div>\n <div>\n Description: {{dataContextRecord.Description}}\n </div>\n </div>\n <div style=\"margin-top: 10px;\">\n <b>Items</b>\n </div>\n <div class=\"kendo-grid-container\">\n <kendo-grid \n [kendoGridBinding]=\"dataContextItems\" \n scrollable=\"virtual\" \n [pageSize]=\"100\" \n [sortable]=\"true\"\n [loading]=\"showLoader\" \n [resizable]=\"true\" \n [navigable]=\"true\"\n >\n </kendo-grid>\n </div>\n </div> \n }\n @else {\n <kendo-loader type=\"converging-spinner\" ></kendo-loader>\n }\n</div>" }]
103
101
  }], null, { dataContextId: [{
104
102
  type: Input
105
103
  }] }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"ng-data-context.component.js","sourceRoot":"","sources":["../../src/lib/ng-data-context.component.ts","../../src/lib/ng-data-context.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;;;ICA/D,kCAA2E;;;IAGnE,AADJ,2BAA+B,UACtB;IAC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E,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC;iBACrE,CAAC,CAAC;gBACL,IAAG,QAAQ,CAAC,OAAO,EAAC,CAAC;oBACnB,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC,OAAO,CAAC;oBACzC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBAC1B,CAAC;qBAAM,CAAC;oBACN,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;oBAChC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBAC1B,CAAC;YACH,CAAC;QACH,CAAC;KAAA;;wFAnCU,oBAAoB;uEAApB,oBAAoB;QCTjC,oCAAc;QAEV,AADA,uFAA4D,wDAC6C;QA4B7G,iBAAM;;QA7Ba,eAAgB;QAAhB,qCAAgB;QACuD,cAAiB;QAAjB,sCAAiB;;iFDO9F,oBAAoB;cALhC,SAAS;2BACE,iBAAiB;gBAMlB,aAAa;kBAArB,KAAK;;kFAFK,oBAAoB"}
1
+ {"version":3,"file":"ng-data-context.component.js","sourceRoot":"","sources":["../../src/lib/ng-data-context.component.ts","../../src/lib/ng-data-context.component.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;;;;;;ICGnD,AADJ,2BAA+B,UACtB;IACD,YACJ;IAAA,iBAAM;IACN,2BAAK;IACD,YACJ;IAAA,iBAAM;IACN,2BAAK;IACD,YACJ;IACJ,AADI,iBAAM,EACJ;;;IARE,eACJ;IADI,gEACJ;IAEI,eACJ;IADI,oEACJ;IAEI,eACJ;IADI,kFACJ;;;IAVR,8BAAoE;IAChE,mFAA+B;IAY3B,AADJ,8BAA+B,QACxB;IAAA,qBAAK;IACZ,AADY,iBAAI,EACV;IACN,8BAAkC;IAC9B,gCASa;IAErB,AADI,iBAAM,EACJ;;;IA1BI,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AK,CAAC;gBAC1B,CAAC;YACH,CAAC;QACH,CAAC;KAAA;;wFAnCU,oBAAoB;uEAApB,oBAAoB;QCTjC,2BAAK;QA+BD,AA9BA,6EAAmB,yEA8BZ;QAGX,iBAAM;;QAjCF,cAgCC;QAhCD,yCAgCC;;iFDxBQ,oBAAoB;cALhC,SAAS;2BACE,iBAAiB;gBAMlB,aAAa;kBAArB,KAAK;;kFAFK,oBAAoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-data-context",
3
- "version": "2.13.4",
3
+ "version": "2.14.0",
4
4
  "description": "MemberJunction: Angular component and pop-up window to display and edit the contents of a data context.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -21,15 +21,13 @@
21
21
  "peerDependencies": {
22
22
  "@angular/common": "18.0.2",
23
23
  "@angular/core": "18.0.2",
24
- "@angular/forms": "18.0.2",
25
- "@angular/router": "18.0.2",
26
24
  "@progress/kendo-angular-grid": "16.2.0",
27
25
  "@progress/kendo-angular-indicators": "16.2.0"
28
26
  },
29
27
  "dependencies": {
30
- "@memberjunction/core": "2.13.4",
31
- "@memberjunction/global": "2.13.4",
32
- "@memberjunction/ng-compare-records": "2.13.4",
28
+ "@memberjunction/core": "2.14.0",
29
+ "@memberjunction/core-entities": "2.14.0",
30
+ "@memberjunction/global": "2.14.0",
33
31
  "tslib": "^2.3.0"
34
32
  },
35
33
  "sideEffects": false