@memberjunction/ng-data-context 6.2.1 → 6.3.0-edge.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.
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ Main component for displaying a data context and its items.
|
|
|
127
127
|
|
|
128
128
|
### DataContextDialogComponent (`mj-data-context-dialog`)
|
|
129
129
|
|
|
130
|
-
Dialog wrapper displaying the DataContextComponent in
|
|
130
|
+
Dialog wrapper displaying the DataContextComponent in an MJ dialog.
|
|
131
131
|
|
|
132
132
|
#### Inputs
|
|
133
133
|
|
|
@@ -157,7 +157,7 @@ A data context in MemberJunction consists of:
|
|
|
157
157
|
## Features
|
|
158
158
|
|
|
159
159
|
- **Multi-source composition**: Combine entity views, stored queries, raw SQL, and specific records into a single named context
|
|
160
|
-
- **Virtual scrolling**: Efficient handling of large datasets via
|
|
160
|
+
- **Virtual scrolling**: Efficient handling of large datasets via Data Grid
|
|
161
161
|
- **Column sorting and resizing**: Interactive grid features
|
|
162
162
|
- **Metadata integration**: Uses MemberJunction's metadata system for entity loading
|
|
163
163
|
- **Loading state management**: Built-in loading indicators
|
|
@@ -175,10 +175,9 @@ A data context in MemberJunction consists of:
|
|
|
175
175
|
| `@memberjunction/global` | Global utilities |
|
|
176
176
|
| `@memberjunction/ng-container-directives` | Container directives |
|
|
177
177
|
| `@memberjunction/ng-shared` | Shared Angular utilities |
|
|
178
|
-
| `@
|
|
179
|
-
| `@
|
|
180
|
-
| `@
|
|
181
|
-
| `@progress/kendo-angular-buttons` | Button components |
|
|
178
|
+
| `@memberjunction/ng-ui-components` | Loading indicators |
|
|
179
|
+
| `@memberjunction/ng-ui-components` | Dialog component |
|
|
180
|
+
| `@memberjunction/ng-ui-components` | Button components |
|
|
182
181
|
|
|
183
182
|
### Peer Dependencies
|
|
184
183
|
|
|
@@ -72,29 +72,27 @@ export class DataContextDialogComponent {
|
|
|
72
72
|
return this.ToggleMaximize();
|
|
73
73
|
}
|
|
74
74
|
static ɵfac = function DataContextDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DataContextDialogComponent)(); };
|
|
75
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDialogComponent, selectors: [["mj-data-context-dialog"]], inputs: { DataContextId: "DataContextId", dataContextId: "dataContextId", DataContextName: "DataContextName", dataContextName: "dataContextName", Provider: "Provider" }, outputs: { DialogClosed: "DialogClosed", dialogClosed: "dialogClosed" }, standalone: false, decls:
|
|
76
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
77
|
-
i0.ɵɵ
|
|
78
|
-
i0.ɵɵelementStart(2, "mj-window", 2);
|
|
79
|
-
i0.ɵɵ
|
|
80
|
-
i0.ɵɵelementStart(
|
|
81
|
-
i0.ɵɵ
|
|
82
|
-
i0.ɵɵelementStart(6, "span");
|
|
83
|
-
i0.ɵɵtext(7);
|
|
75
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDialogComponent, selectors: [["mj-data-context-dialog"]], inputs: { DataContextId: "DataContextId", dataContextId: "dataContextId", DataContextName: "DataContextName", dataContextName: "dataContextName", Provider: "Provider" }, outputs: { DialogClosed: "DialogClosed", dialogClosed: "dialogClosed" }, standalone: false, decls: 14, vars: 18, consts: [[1, "data-context-dialog-wrapper"], [1, "data-context-window", 3, "Close", "Visible", "Width", "Height", "MinHeight", "MinWidth", "Resizable", "Draggable"], [1, "window-title"], [1, "fa-solid", "fa-layer-group", "title-icon"], [1, "window-actions"], [1, "window-action-btn", 3, "click", "title"], [1, "fa-solid"], ["title", "Close", 1, "window-action-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "dialog-content"], [3, "dataContextId", "Provider"]], template: function DataContextDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mj-window", 1);
|
|
77
|
+
i0.ɵɵlistener("Close", function DataContextDialogComponent_Template_mj_window_Close_1_listener() { return ctx.closeDialog(); });
|
|
78
|
+
i0.ɵɵelementStart(2, "mj-window-titlebar")(3, "div", 2);
|
|
79
|
+
i0.ɵɵelement(4, "i", 3);
|
|
80
|
+
i0.ɵɵelementStart(5, "span");
|
|
81
|
+
i0.ɵɵtext(6);
|
|
84
82
|
i0.ɵɵelementEnd()();
|
|
85
|
-
i0.ɵɵelementStart(
|
|
86
|
-
i0.ɵɵlistener("click", function
|
|
87
|
-
i0.ɵɵelement(
|
|
83
|
+
i0.ɵɵelementStart(7, "div", 4)(8, "button", 5);
|
|
84
|
+
i0.ɵɵlistener("click", function DataContextDialogComponent_Template_button_click_8_listener() { return ctx.toggleMaximize(); });
|
|
85
|
+
i0.ɵɵelement(9, "i", 6);
|
|
88
86
|
i0.ɵɵelementEnd();
|
|
89
|
-
i0.ɵɵelementStart(
|
|
90
|
-
i0.ɵɵlistener("click", function
|
|
91
|
-
i0.ɵɵelement(
|
|
87
|
+
i0.ɵɵelementStart(10, "button", 7);
|
|
88
|
+
i0.ɵɵlistener("click", function DataContextDialogComponent_Template_button_click_10_listener() { return ctx.closeDialog(); });
|
|
89
|
+
i0.ɵɵelement(11, "i", 8);
|
|
92
90
|
i0.ɵɵelementEnd()()();
|
|
93
|
-
i0.ɵɵelementStart(
|
|
94
|
-
i0.ɵɵelement(
|
|
91
|
+
i0.ɵɵelementStart(12, "div", 9);
|
|
92
|
+
i0.ɵɵelement(13, "mj-data-context", 10);
|
|
95
93
|
i0.ɵɵelementEnd()()();
|
|
96
94
|
} if (rf & 2) {
|
|
97
|
-
i0.ɵɵadvance(
|
|
95
|
+
i0.ɵɵadvance();
|
|
98
96
|
i0.ɵɵclassProp("maximized", ctx.isMaximized);
|
|
99
97
|
i0.ɵɵproperty("Visible", true)("Width", ctx.dialogWidth)("Height", ctx.dialogHeight)("MinHeight", 400)("MinWidth", 600)("Resizable", !ctx.isMaximized)("Draggable", !ctx.isMaximized);
|
|
100
98
|
i0.ɵɵadvance(5);
|
|
@@ -105,11 +103,11 @@ export class DataContextDialogComponent {
|
|
|
105
103
|
i0.ɵɵclassProp("fa-maximize", !ctx.isMaximized)("fa-compress", ctx.isMaximized);
|
|
106
104
|
i0.ɵɵadvance(4);
|
|
107
105
|
i0.ɵɵproperty("dataContextId", ctx.dataContextId)("Provider", ctx.Provider);
|
|
108
|
-
} }, dependencies: [i1.MJWindowComponent, i1.MJWindowTitlebarComponent, i2.DataContextComponent], styles: [".data-context-dialog-wrapper[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.data-context-window[_ngcontent-%COMP%] {\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n box-shadow: var(--mj-shadow-lg);\n}\n\n\n
|
|
106
|
+
} }, dependencies: [i1.MJWindowComponent, i1.MJWindowTitlebarComponent, i2.DataContextComponent], styles: [".data-context-dialog-wrapper[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.data-context-window[_ngcontent-%COMP%] {\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n box-shadow: var(--mj-shadow-lg);\n}\n\n\n.data-context-window.maximized[_ngcontent-%COMP%] {\n position: fixed !important;\n top: 2.5% !important;\n left: 2.5% !important;\n}\n\n\n.window-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: var(--mj-text-base);\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.title-icon[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: var(--mj-text-lg);\n}\n\n.window-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 4px;\n margin-left: auto;\n}\n\n.window-action-btn[_ngcontent-%COMP%] {\n background: none;\n border: none;\n padding: 8px 10px;\n cursor: pointer;\n color: var(--mj-text-muted);\n transition: all 0.2s;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-sm);\n}\n\n.window-action-btn[_ngcontent-%COMP%]:hover {\n background-color: var(--mj-brand-primary-subtle);\n color: var(--mj-brand-primary);\n}\n\n.window-action-btn[_ngcontent-%COMP%]:last-child:hover {\n background-color: var(--mj-status-error-subtle);\n color: var(--mj-status-error);\n}\n\n\n.dialog-content[_ngcontent-%COMP%] {\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n\n\n@keyframes _ngcontent-%COMP%_fadeIn {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.data-context-window[_ngcontent-%COMP%] {\n animation: _ngcontent-%COMP%_fadeIn 0.2s ease-out;\n}"] });
|
|
109
107
|
}
|
|
110
108
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextDialogComponent, [{
|
|
111
109
|
type: Component,
|
|
112
|
-
args: [{ standalone: false, selector: 'mj-data-context-dialog', template: "<div class=\"data-context-dialog-wrapper\">\n <
|
|
110
|
+
args: [{ standalone: false, selector: 'mj-data-context-dialog', template: "<div class=\"data-context-dialog-wrapper\">\n <mj-window\n class=\"data-context-window\"\n [class.maximized]=\"isMaximized\"\n [Visible]=\"true\"\n [Width]=\"dialogWidth\"\n [Height]=\"dialogHeight\"\n [MinHeight]=\"400\"\n [MinWidth]=\"600\"\n [Resizable]=\"!isMaximized\"\n [Draggable]=\"!isMaximized\"\n (Close)=\"closeDialog()\">\n\n <mj-window-titlebar>\n <div class=\"window-title\">\n <i class=\"fa-solid fa-layer-group title-icon\"></i>\n <span>Data Context{{ dataContextName ? ': ' + dataContextName : '' }}</span>\n </div>\n <div class=\"window-actions\">\n <button\n (click)=\"toggleMaximize()\"\n title=\"{{ isMaximized ? 'Restore' : 'Maximize' }}\"\n class=\"window-action-btn\">\n <i class=\"fa-solid\" [class.fa-maximize]=\"!isMaximized\" [class.fa-compress]=\"isMaximized\"></i>\n </button>\n <button\n (click)=\"closeDialog()\"\n title=\"Close\"\n class=\"window-action-btn\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n </mj-window-titlebar>\n\n <div class=\"dialog-content\">\n <mj-data-context\n [dataContextId]=\"dataContextId\"\n [Provider]=\"Provider\">\n </mj-data-context>\n </div>\n </mj-window>\n</div>", styles: [".data-context-dialog-wrapper {\n position: relative;\n}\n\n.data-context-window {\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n box-shadow: var(--mj-shadow-lg);\n}\n\n\n.data-context-window.maximized {\n position: fixed !important;\n top: 2.5% !important;\n left: 2.5% !important;\n}\n\n/* Custom Title Bar */\n.window-title {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: var(--mj-text-base);\n font-weight: 500;\n color: var(--mj-text-primary);\n}\n\n.title-icon {\n color: var(--mj-brand-primary);\n font-size: var(--mj-text-lg);\n}\n\n.window-actions {\n display: flex;\n gap: 4px;\n margin-left: auto;\n}\n\n.window-action-btn {\n background: none;\n border: none;\n padding: 8px 10px;\n cursor: pointer;\n color: var(--mj-text-muted);\n transition: all 0.2s;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-sm);\n}\n\n.window-action-btn:hover {\n background-color: var(--mj-brand-primary-subtle);\n color: var(--mj-brand-primary);\n}\n\n.window-action-btn:last-child:hover {\n background-color: var(--mj-status-error-subtle);\n color: var(--mj-status-error);\n}\n\n/* Dialog Content */\n.dialog-content {\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n\n/* Animations */\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.data-context-window {\n animation: fadeIn 0.2s ease-out;\n}\n"] }]
|
|
113
111
|
}], null, { DialogClosed: [{
|
|
114
112
|
type: Output
|
|
115
113
|
}], dialogClosed: [{
|
|
@@ -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,eAA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C;IAC3B,CAAC;IAED,WAAW;QACT,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,2CAA2C;IAC3C,WAAW;QACT,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;IACvC,CAAC;IAED,8CAA8C;IAC9C,cAAc;QACZ,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC/B,CAAC;oHA9EU,0BAA0B;6DAA1B,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;AAOH,MAAM,OAAO,0BAA0B;IAC3B,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAE5C;;;;;;OAMG;IACO,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IAClC,aAAa,CAAU;IAEhC,6CAA6C;IAC7C,IAAa,aAAa,CAAC,KAAa;QACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;IAC7B,CAAC;IACD,6CAA6C;IAC7C,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IACQ,eAAe,CAAU;IAElC,+CAA+C;IAC/C,IAAa,eAAe,CAAC,KAAyB;QACpD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC/B,CAAC;IACD,+CAA+C;IAC/C,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACQ,QAAQ,GAA6B,IAAI,CAAC;IAE5C,WAAW,GAAY,KAAK,CAAC;IAEpC,2CAA2C;IAC3C,IAAW,WAAW;QACpB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C,AADI,AADI,iBAAS,EACP,EACW;YAErB,+BAA4B;YACxB,uCAGkB;YAG9B,AADI,AADI,iBAAM,EACE,EACV;;YAtCE,cAA+B;YAA/B,4CAA+B;YAO/B,AADA,AADA,AADA,AADA,AADA,AADA,8BAAgB,0BACK,4BACE,kBACN,iBACD,+BACU,+BACA;YAMZ,eAA+D;YAA/D,4FAA+D;YAKjE,eAAkD;YAAlD,uBAAA,0DAAkD,CAAA;YAE9B,cAAkC;YAAC,AAAnC,+CAAkC,gCAAkC;YAa5F,eAA+B;YAC/B,AADA,iDAA+B,0BACV;;;iFDzBxB,0BAA0B;cANtC,SAAS;6BACI,KAAK,YACP,wBAAwB;;kBAKjC,MAAM;;kBASN,MAAM;;kBACN,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kFA/BK,0BAA0B","sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { IMetadataProvider } from '@memberjunction/core';\n\n/**\n * Enhanced dialog wrapper component for the data context viewer\n */\n@Component({\n standalone: false,\n selector: 'mj-data-context-dialog',\n templateUrl: './ng-data-context-dialog.component.html',\n styleUrls: ['./ng-data-context-dialog.component.css']\n})\nexport class DataContextDialogComponent {\n @Output() DialogClosed = new EventEmitter();\n\n /**\n * @deprecated Use {@link DialogClosed}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (dialogClosed) keeps working. Must stay AFTER DialogClosed: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() dialogClosed = this.DialogClosed;\n @Input() DataContextId!: string;\n\n /** @deprecated Use {@link DataContextId}. */\n @Input() set dataContextId(value: string) {\n this.DataContextId = value;\n }\n /** @deprecated Use {@link DataContextId}. */\n get dataContextId(): string {\n return this.DataContextId;\n }\n @Input() DataContextName?: string;\n\n /** @deprecated Use {@link DataContextName}. */\n @Input() set dataContextName(value: string | undefined) {\n this.DataContextName = value;\n }\n /** @deprecated Use {@link DataContextName}. */\n get dataContextName(): string | undefined {\n return this.DataContextName;\n }\n @Input() Provider: IMetadataProvider | null = null;\n \n public IsMaximized: boolean = false;\n\n /** @deprecated Use {@link IsMaximized}. */\n public get isMaximized(): boolean {\n return this.IsMaximized;\n }\n /** @deprecated Use {@link IsMaximized}. */\n public set isMaximized(value: boolean) {\n this.IsMaximized = value;\n }\n\n public get DialogWidth(): number {\n return this.IsMaximized ? window.innerWidth * 0.95 : 900;\n }\n\n /** @deprecated Use {@link DialogWidth}. */\n public get dialogWidth(): number {\n return this.DialogWidth;\n }\n\n public get DialogHeight(): number {\n return this.IsMaximized ? window.innerHeight * 0.95 : 700;\n }\n\n /** @deprecated Use {@link DialogHeight}. */\n public get dialogHeight(): number {\n return this.DialogHeight;\n }\n\n CloseDialog(): void {\n this.DialogClosed.emit();\n }\n\n /** @deprecated Use {@link CloseDialog}. */\n closeDialog(): void {\n return this.CloseDialog();\n }\n\n ToggleMaximize(): void {\n this.IsMaximized = !this.IsMaximized;\n }\n\n /** @deprecated Use {@link ToggleMaximize}. */\n toggleMaximize(): void {\n return this.ToggleMaximize();\n }\n}","<div class=\"data-context-dialog-wrapper\">\n <mj-window\n class=\"data-context-window\"\n [class.maximized]=\"isMaximized\"\n [Visible]=\"true\"\n [Width]=\"dialogWidth\"\n [Height]=\"dialogHeight\"\n [MinHeight]=\"400\"\n [MinWidth]=\"600\"\n [Resizable]=\"!isMaximized\"\n [Draggable]=\"!isMaximized\"\n (Close)=\"closeDialog()\">\n\n <mj-window-titlebar>\n <div class=\"window-title\">\n <i class=\"fa-solid fa-layer-group title-icon\"></i>\n <span>Data Context{{ dataContextName ? ': ' + dataContextName : '' }}</span>\n </div>\n <div class=\"window-actions\">\n <button\n (click)=\"toggleMaximize()\"\n title=\"{{ isMaximized ? 'Restore' : 'Maximize' }}\"\n class=\"window-action-btn\">\n <i class=\"fa-solid\" [class.fa-maximize]=\"!isMaximized\" [class.fa-compress]=\"isMaximized\"></i>\n </button>\n <button\n (click)=\"closeDialog()\"\n title=\"Close\"\n class=\"window-action-btn\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n </mj-window-titlebar>\n\n <div class=\"dialog-content\">\n <mj-data-context\n [dataContextId]=\"dataContextId\"\n [Provider]=\"Provider\">\n </mj-data-context>\n </div>\n </mj-window>\n</div>"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-data-context",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0-edge.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",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@angular/compiler": "21.2.22",
|
|
15
15
|
"@angular/compiler-cli": "21.2.22",
|
|
16
|
-
"@memberjunction/ng-test-utils": "6.
|
|
16
|
+
"@memberjunction/ng-test-utils": "6.3.0-edge.0",
|
|
17
17
|
"vitest": "^4.0.18"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@angular/forms": "^21.2.22"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@memberjunction/core": "6.
|
|
26
|
-
"@memberjunction/ng-base-types": "6.
|
|
27
|
-
"@memberjunction/core-entities": "6.
|
|
28
|
-
"@memberjunction/global": "6.
|
|
29
|
-
"@memberjunction/ng-container-directives": "6.
|
|
30
|
-
"@memberjunction/ng-shared-generic": "6.
|
|
31
|
-
"@memberjunction/ng-ui-components": "6.
|
|
25
|
+
"@memberjunction/core": "6.3.0-edge.0",
|
|
26
|
+
"@memberjunction/ng-base-types": "6.3.0-edge.0",
|
|
27
|
+
"@memberjunction/core-entities": "6.3.0-edge.0",
|
|
28
|
+
"@memberjunction/global": "6.3.0-edge.0",
|
|
29
|
+
"@memberjunction/ng-container-directives": "6.3.0-edge.0",
|
|
30
|
+
"@memberjunction/ng-shared-generic": "6.3.0-edge.0",
|
|
31
|
+
"@memberjunction/ng-ui-components": "6.3.0-edge.0",
|
|
32
32
|
"tslib": "^2.8.1"
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": false,
|