@memberjunction/ng-data-context 2.13.4 → 2.15.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"}
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { IMetadataProvider } from '@memberjunction/core';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
4
5
  * Simple dialog wrapper component for the data context component
@@ -6,8 +7,9 @@ import * as i0 from "@angular/core";
6
7
  export declare class DataContextDialogComponent {
7
8
  dialogClosed: EventEmitter<any>;
8
9
  dataContextId: string;
10
+ Provider: IMetadataProvider | null;
9
11
  closePropertiesDialog(): void;
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DataContextDialogComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<DataContextDialogComponent, "mj-data-context-dialog", never, { "dataContextId": { "alias": "dataContextId"; "required": false; }; }, { "dialogClosed": "dialogClosed"; }, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataContextDialogComponent, "mj-data-context-dialog", never, { "dataContextId": { "alias": "dataContextId"; "required": false; }; "Provider": { "alias": "Provider"; "required": false; }; }, { "dialogClosed": "dialogClosed"; }, never, never, false, never>;
12
14
  }
13
15
  //# sourceMappingURL=ng-data-context-dialog.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-data-context-dialog.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-data-context-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;;AAEvE;;GAEG;AACH,qBAKa,0BAA0B;IAC3B,YAAY,oBAAsB;IACnC,aAAa,EAAG,MAAM,CAAC;IAEhC,qBAAqB;yCAJV,0BAA0B;2CAA1B,0BAA0B;CAOtC"}
1
+ {"version":3,"file":"ng-data-context-dialog.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-data-context-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;AAEzD;;GAEG;AACH,qBAKa,0BAA0B;IAC3B,YAAY,oBAAsB;IACnC,aAAa,EAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEnD,qBAAqB;yCALV,0BAA0B;2CAA1B,0BAA0B;CAQtC"}
@@ -8,33 +8,35 @@ import * as i2 from "./ng-data-context.component";
8
8
  export class DataContextDialogComponent {
9
9
  constructor() {
10
10
  this.dialogClosed = new EventEmitter();
11
+ this.Provider = null;
11
12
  }
12
13
  closePropertiesDialog() {
13
14
  this.dialogClosed.emit();
14
15
  }
15
16
  }
16
17
  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);
18
+ DataContextDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDialogComponent, selectors: [["mj-data-context-dialog"]], inputs: { dataContextId: "dataContextId", Provider: "Provider" }, outputs: { dialogClosed: "dialogClosed" }, decls: 4, vars: 7, consts: [[1, "k-overlay"], ["title", "Data Context", 1, "kendo-window-custom", 3, "close", "width", "height", "minHeight", "minWidth", "resizable"], [3, "dataContextId", "Provider"]], template: function DataContextDialogComponent_Template(rf, ctx) { if (rf & 1) {
19
+ i0.ɵɵelementStart(0, "div");
20
+ i0.ɵɵelement(1, "div", 0);
21
+ i0.ɵɵelementStart(2, "kendo-window", 1);
22
+ i0.ɵɵlistener("close", function DataContextDialogComponent_Template_kendo_window_close_2_listener() { return ctx.closePropertiesDialog(); });
23
+ i0.ɵɵelement(3, "mj-data-context", 2);
24
24
  i0.ɵɵelementEnd()();
25
25
  } if (rf & 2) {
26
- i0.ɵɵadvance(3);
26
+ i0.ɵɵadvance(2);
27
27
  i0.ɵɵproperty("width", 700)("height", 525)("minHeight", 300)("minWidth", 400)("resizable", true);
28
28
  i0.ɵɵadvance();
29
- i0.ɵɵproperty("dataContextId", ctx.dataContextId);
29
+ i0.ɵɵproperty("dataContextId", ctx.dataContextId)("Provider", ctx.Provider);
30
30
  } }, dependencies: [i1.WindowComponent, i2.DataContextComponent] });
31
31
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextDialogComponent, [{
32
32
  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>" }]
33
+ 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 \n [dataContextId]=\"dataContextId\" \n [Provider]=\"Provider\"\n ></mj-data-context>\n </kendo-window>\n</div>" }]
34
34
  }], null, { dialogClosed: [{
35
35
  type: Output
36
36
  }], dataContextId: [{
37
37
  type: Input
38
+ }], Provider: [{
39
+ type: Input
38
40
  }] }); })();
39
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextDialogComponent, { className: "DataContextDialogComponent", filePath: "src/lib/ng-data-context-dialog.component.ts", lineNumber: 11 }); })();
41
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextDialogComponent, { className: "DataContextDialogComponent", filePath: "src/lib/ng-data-context-dialog.component.ts", lineNumber: 12 }); })();
40
42
  //# sourceMappingURL=ng-data-context-dialog.component.js.map
@@ -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;;;;AAGvE;;GAEG;AAMH,MAAM,OAAO,0BAA0B;IALvC;QAMY,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;QAEnC,aAAQ,GAA6B,IAAI,CAAC;KAKpD;IAHC,qBAAqB;QACnB,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;;oGAPU,0BAA0B;6EAA1B,0BAA0B;QCXvC,2BAAK;QACD,yBAA6B;QAC7B,uCASC;QADG,6GAAS,2BAAuB,IAAC;QAEjC,qCAGmB;QAE3B,AADI,iBAAe,EACb;;QAbE,eAAa;QAIb,AADA,AADA,AADA,AADA,2BAAa,eACC,kBACG,iBACD,mBACE;QAKV,cAA+B;QAC/B,AADA,iDAA+B,0BACV;;iFDHxB,0BAA0B;cALtC,SAAS;2BACE,wBAAwB;gBAKxB,YAAY;kBAArB,MAAM;YACE,aAAa;kBAArB,KAAK;YACG,QAAQ;kBAAhB,KAAK;;kFAHK,0BAA0B"}
@@ -1,14 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { IMetadataProvider } from '@memberjunction/core';
2
3
  import { DataContextEntity } from '@memberjunction/core-entities';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class DataContextComponent implements OnInit {
5
- showloader: boolean;
6
6
  dataContextId: string;
7
+ Provider: IMetadataProvider | null;
7
8
  dataContextRecord?: DataContextEntity;
8
9
  dataContextItems: any;
10
+ showLoader: boolean;
11
+ get ProviderToUse(): IMetadataProvider;
9
12
  ngOnInit(): void;
10
13
  LoadDataContext(dataContextId: string): Promise<void>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DataContextComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<DataContextComponent, "mj-data-context", never, { "dataContextId": { "alias": "dataContextId"; "required": false; }; }, {}, never, never, false, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataContextComponent, "mj-data-context", never, { "dataContextId": { "alias": "dataContextId"; "required": false; }; "Provider": { "alias": "Provider"; "required": false; }; }, {}, never, never, false, never>;
13
16
  }
14
17
  //# sourceMappingURL=ng-data-context.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-data-context.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-data-context.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAElE,qBAKa,oBAAqB,YAAW,MAAM;IAC1C,UAAU,EAAE,OAAO,CAAS;IAC1B,aAAa,EAAG,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAE7C,gBAAgB,EAAE,GAAG,CAAM;IAE3B,QAAQ,IAAI,IAAI;IAOV,eAAe,CAAC,aAAa,EAAE,MAAM;yCAdhC,oBAAoB;2CAApB,oBAAoB;CAqChC"}
1
+ {"version":3,"file":"ng-data-context.component.d.ts","sourceRoot":"","sources":["../../src/lib/ng-data-context.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAiD,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAElE,qBAKa,oBAAqB,YAAW,MAAM;IACxC,aAAa,EAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAE5C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,gBAAgB,EAAE,GAAG,CAAM;IAC3B,UAAU,EAAE,OAAO,CAAS;IAEnC,IAAW,aAAa,IAAI,iBAAiB,CAE5C;IAED,QAAQ,IAAI,IAAI;IAOV,eAAe,CAAC,aAAa,EAAE,MAAM;yCAnBhC,oBAAoB;2CAApB,oBAAoB;CA0ChC"}
@@ -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,40 +32,47 @@ 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.Provider = null;
57
57
  this.dataContextItems = [];
58
+ this.showLoader = false;
59
+ }
60
+ get ProviderToUse() {
61
+ return this.Provider || Metadata.Provider;
58
62
  }
59
63
  ngOnInit() {
60
64
  if (this.dataContextId) {
61
- this.showloader = true;
65
+ this.showLoader = true;
62
66
  this.LoadDataContext(this.dataContextId);
63
67
  }
64
68
  }
65
69
  LoadDataContext(dataContextId) {
66
70
  return __awaiter(this, void 0, void 0, function* () {
67
71
  if (dataContextId) {
68
- const md = new Metadata();
69
- this.dataContextRecord = yield md.GetEntityObject("Data Contexts");
72
+ const p = this.ProviderToUse;
73
+ this.dataContextRecord = yield p.GetEntityObject("Data Contexts", p.CurrentUser);
70
74
  yield this.dataContextRecord.Load(dataContextId);
71
- const rv = new RunView();
75
+ const rv = new RunView(p);
72
76
  const response = yield rv.RunView({
73
77
  EntityName: "Data Context Items",
74
78
  ExtraFilter: `DataContextID='${dataContextId}'`,
@@ -76,32 +80,32 @@ export class DataContextComponent {
76
80
  });
77
81
  if (response.Success) {
78
82
  this.dataContextItems = response.Results;
79
- this.showloader = false;
83
+ this.showLoader = false;
80
84
  }
81
85
  else {
82
86
  LogError(response.ErrorMessage);
83
- this.showloader = false;
87
+ this.showLoader = false;
84
88
  }
85
89
  }
86
90
  });
87
91
  }
88
92
  }
89
93
  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);
94
+ DataContextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextComponent, selectors: [["mj-data-context"]], inputs: { dataContextId: "dataContextId", Provider: "Provider" }, 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) {
95
+ i0.ɵɵelementStart(0, "div");
96
+ i0.ɵɵtemplate(1, DataContextComponent_Conditional_1_Template, 7, 7, "div", 0)(2, DataContextComponent_Conditional_2_Template, 1, 0, "kendo-loader", 1);
93
97
  i0.ɵɵelementEnd();
94
98
  } if (rf & 2) {
95
- i0.ɵɵadvance(2);
96
- i0.ɵɵproperty("ngIf", ctx.showloader);
97
99
  i0.ɵɵadvance();
98
- i0.ɵɵproperty("ngIf", !ctx.showloader);
100
+ i0.ɵɵconditional(!ctx.showLoader ? 1 : 2);
99
101
  } }, dependencies: [i1.NgIf, i2.GridComponent, i2.DataBindingDirective, i3.LoaderComponent] });
100
102
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextComponent, [{
101
103
  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>" }]
104
+ 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
105
  }], null, { dataContextId: [{
104
106
  type: Input
107
+ }], Provider: [{
108
+ type: Input
105
109
  }] }); })();
106
110
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextComponent, { className: "DataContextComponent", filePath: "src/lib/ng-data-context.component.ts", lineNumber: 10 }); })();
107
111
  //# sourceMappingURL=ng-data-context.component.js.map
@@ -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;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,iCAAyG;IACrG,2EAA+B;IAY3B,AADJ,8BAA+B,QACxB;IAAA,qBAAK;IACZ,AADY,iBAAI,EACV;IACN,8BAAkC;IAC9B,gCASa;IAErB,AADI,iBAAM,EACJ;;;IA1BI,eAAuB;IAAvB,+CAAuB;IAgBrB,eAAqC;IAMrC,AADA,AADA,AADA,AADA,AAFA,0DAAqC,iBAErB,kBACC,8BACK,mBACJ,mBACA;;ADhBlC,MAAM,OAAO,oBAAoB;IALjC;QAMS,eAAU,GAAY,KAAK,CAAC;QAInC,qBAAgB,GAAQ,EAAE,CAAC;KAgC5B;IA9BC,QAAQ;QACN,IAAG,IAAI,CAAC,aAAa,EAAC,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,IAAI,CAA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AI,CAAC,iBAAiB,GAAG,MAAM,CAAC,CAAC,eAAe,CAAoB,eAAe,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;gBACpG,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;gBAEjD,MAAM,EAAE,GAAG,IAAI,OAAO,CAAwB,CAAC,CAAC,CAAC;gBACjD,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC,OAAO,CAC/B;oBACE,UAAU,EAAE,oBAAoB;oBAChC,WAAW,EAAE,kBAAkB,aAAa,GAAG;oBAC/C,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,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;;wFAxCU,oBAAoB;uEAApB,oBAAoB;QCTjC,2BAAK;QA+BD,AA9BA,6EAAmB,yEA8BZ;QAGX,iBAAM;;QAjCF,cAgCC;QAhCD,yCAgCC;;iFDxBQ,oBAAoB;cALhC,SAAS;2BACE,iBAAiB;gBAKlB,aAAa;kBAArB,KAAK;YACG,QAAQ;kBAAhB,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.15.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.15.0",
29
+ "@memberjunction/core-entities": "2.15.0",
30
+ "@memberjunction/global": "2.15.0",
33
31
  "tslib": "^2.3.0"
34
32
  },
35
33
  "sideEffects": false