@memberjunction/ng-explorer-core 0.9.225 → 0.9.227
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.
|
@@ -78,9 +78,9 @@ ResourceContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
78
78
|
} if (rf & 2) {
|
|
79
79
|
let _t;
|
|
80
80
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resourceContainer = _t.first);
|
|
81
|
-
} }, inputs: { Data: "Data", isVisible: "isVisible" }, outputs: { ResourceRecordSaved: "ResourceRecordSaved", ContentLoadingStarted: "ContentLoadingStarted", ContentLoadingComplete: "ContentLoadingComplete" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["mjContainer", "", "mjFillContainer", ""]], template: function ResourceContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
i0.ɵɵelementStart(0, "div");
|
|
83
|
-
i0.ɵɵtemplate(1, ResourceContainerComponent_ng_template_1_Template, 0, 0, "ng-template",
|
|
81
|
+
} }, inputs: { Data: "Data", isVisible: "isVisible" }, outputs: { ResourceRecordSaved: "ResourceRecordSaved", ContentLoadingStarted: "ContentLoadingStarted", ContentLoadingComplete: "ContentLoadingComplete" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["mjFillContainer", ""], ["mjContainer", "", "mjFillContainer", ""]], template: function ResourceContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
83
|
+
i0.ɵɵtemplate(1, ResourceContainerComponent_ng_template_1_Template, 0, 0, "ng-template", 1);
|
|
84
84
|
i0.ɵɵelementEnd();
|
|
85
85
|
} if (rf & 2) {
|
|
86
86
|
i0.ɵɵstyleProp("display", !ctx.isVisible ? "none" : "block");
|
|
@@ -89,7 +89,7 @@ ResourceContainerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
89
89
|
type: Component,
|
|
90
90
|
args: [{
|
|
91
91
|
selector: 'mj-resource',
|
|
92
|
-
template: `<div [style.display]="!isVisible ? 'none' : 'block'"><ng-template mjContainer mjFillContainer></ng-template></div>`,
|
|
92
|
+
template: `<div [style.display]="!isVisible ? 'none' : 'block'" mjFillContainer><ng-template mjContainer mjFillContainer></ng-template></div>`,
|
|
93
93
|
}]
|
|
94
94
|
}], () => [{ type: i1.SharedService }], { Data: [{
|
|
95
95
|
type: Input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../src/lib/navigation/navigation.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,EAAE,SAAS,EAA6B,aAAa,EAAE,SAAS,EAAS,iBAAiB,EAAyC,MAAM,eAAe,CAAC;AAC1M,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAA2C,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAiD,MAAM,gCAAgC,CAAC;AAC3J,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAoC,oBAAoB,EAAyB,MAAM,sBAAsB,CAAC;AAC5J,OAAO,EAAE,OAAO,EAAyB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAc,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAwC,cAAc,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAyB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,mBAAmB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AAC;IAsClD,0BAA0B,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO;IAKhD,eAAe,CAAC,KAAK,EAAE,cAAc;IAS3C,iBAAiB,CAAC,KAAK,EAAE,QAAQ;IAW3B,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBtD,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,oBAAoB,GAAG,IAAI;IA8B3E,cAAc;IAQd,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI1C,WAAW;IAUJ,cAAc,CAAC,EAAE,EAAE,iBAAiB,GAAG,IAAI;IAelD,SAAS,KAAK,cAAc,IAAI,MAAM,CAKrC;IAED,SAAS,KAAK,cAAc,CAAC,KAAK,EAAE,MAAM,EAGzC;IAEM,yBAAyB,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAYlE,sBAAsB,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI;IAehE,OAAO;YA2BC,UAAU;cA4CR,QAAQ,CAAC,EAAE,EAAE,QAAQ;cAWrB,QAAQ,CAAC,EAAE,EAAE,QAAQ;cAWrB,YAAY,CAAC,EAAE,EAAE,QAAQ;cAYzB,SAAS;cAqBT,gBAAgB,CAAC,EAAE,EAAE,QAAQ;cAW7B,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;IAiBhG,eAAe;IAWf,MAAM;yCAx+BF,mBAAmB;2CAAnB,mBAAmB;CA4+B/B"}
|
|
@@ -652,7 +652,15 @@ export class NavigationComponent {
|
|
|
652
652
|
const queryParams = new URLSearchParams(existingQuery);
|
|
653
653
|
// Your cached query params, assuming it's an object like { key1: 'value1', key2: 'value2' }
|
|
654
654
|
const tabIndex = this.tabs.indexOf(tab) + 1; // we add 1 Because the HOME tab is not in the array so we have to offset by 1 here for our data structure
|
|
655
|
-
|
|
655
|
+
let cachedQueryParams = this.tabQueryParams['tab_' + tabIndex]; // Replace with your actual method to get cached params
|
|
656
|
+
if (!cachedQueryParams) {
|
|
657
|
+
// there is a case when we are first loading and cached query params might have been stuffed into a 'tab_-1' key because at the time activeTabIndex wasn't yet known. So we need to check for that
|
|
658
|
+
cachedQueryParams = this.tabQueryParams['tab_-1'];
|
|
659
|
+
if (cachedQueryParams) {
|
|
660
|
+
delete this.tabQueryParams['tab_-1']; // remove it from the -1 key
|
|
661
|
+
this.tabQueryParams['tab_' + tabIndex] = cachedQueryParams; // stuff it into the correct key
|
|
662
|
+
}
|
|
663
|
+
}
|
|
656
664
|
if (cachedQueryParams) {
|
|
657
665
|
// Merge cached query params if they don't already exist in the URL
|
|
658
666
|
const keys = Object.keys(cachedQueryParams);
|
|
@@ -1089,4 +1097,4 @@ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Navigat
|
|
|
1089
1097
|
type: HostListener,
|
|
1090
1098
|
args: ['document:click']
|
|
1091
1099
|
}] }); })();
|
|
1092
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NavigationComponent, { className: "NavigationComponent", filePath: "src\\lib\\navigation\\navigation.component.ts", lineNumber:
|
|
1100
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NavigationComponent, { className: "NavigationComponent", filePath: "src\\lib\\navigation\\navigation.component.ts", lineNumber: 32 }); })();
|
|
@@ -20,7 +20,8 @@ import { RegisterClass } from '@memberjunction/global';
|
|
|
20
20
|
import { Metadata } from '@memberjunction/core';
|
|
21
21
|
import { SharedService } from '@memberjunction/ng-shared';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
|
-
import * as i1 from "
|
|
23
|
+
import * as i1 from "@memberjunction/ng-container-directives";
|
|
24
|
+
import * as i2 from "../single-record/single-record.component";
|
|
24
25
|
export function LoadRecordResource() {
|
|
25
26
|
const test = new EntityRecordResource(); // this looks really dumb. Thing is, in production builds, tree shaking causes the class below to not be included in the bundle. This is a hack to force it to be included.
|
|
26
27
|
}
|
|
@@ -51,13 +52,13 @@ let EntityRecordResource = EntityRecordResource_1 = class EntityRecordResource e
|
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
EntityRecordResource.ɵfac = /*@__PURE__*/ (() => { let ɵEntityRecordResource_BaseFactory; return function EntityRecordResource_Factory(t) { return (ɵEntityRecordResource_BaseFactory || (ɵEntityRecordResource_BaseFactory = i0.ɵɵgetInheritedFactory(EntityRecordResource)))(t || EntityRecordResource); }; })();
|
|
54
|
-
EntityRecordResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityRecordResource, selectors: [["mj-record-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [[3, "primaryKeyValues", "entityName", "loadComplete"]], template: function EntityRecordResource_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
EntityRecordResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityRecordResource, selectors: [["mj-record-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [["mjFillContainer", "", 3, "primaryKeyValues", "entityName", "loadComplete"]], template: function EntityRecordResource_Template(rf, ctx) { if (rf & 1) {
|
|
55
56
|
i0.ɵɵelementStart(0, "mj-single-record", 0);
|
|
56
57
|
i0.ɵɵlistener("loadComplete", function EntityRecordResource_Template_mj_single_record_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); });
|
|
57
58
|
i0.ɵɵelementEnd();
|
|
58
59
|
} if (rf & 2) {
|
|
59
60
|
i0.ɵɵproperty("primaryKeyValues", ctx.primaryKeyValues)("entityName", ctx.Data.Configuration.Entity);
|
|
60
|
-
} }, dependencies: [i1.SingleRecordComponent], encapsulation: 2 });
|
|
61
|
+
} }, dependencies: [i1.FillContainer, i2.SingleRecordComponent], encapsulation: 2 });
|
|
61
62
|
EntityRecordResource = EntityRecordResource_1 = __decorate([
|
|
62
63
|
RegisterClass(BaseResourceComponent, 'Records')
|
|
63
64
|
], EntityRecordResource);
|
|
@@ -66,7 +67,7 @@ export { EntityRecordResource };
|
|
|
66
67
|
type: Component,
|
|
67
68
|
args: [{
|
|
68
69
|
selector: 'mj-record-resource',
|
|
69
|
-
template: `<mj-single-record [primaryKeyValues]="this.primaryKeyValues" [entityName]="Data.Configuration.Entity" (loadComplete)="NotifyLoadComplete()"></mj-single-record>`
|
|
70
|
+
template: `<mj-single-record [primaryKeyValues]="this.primaryKeyValues" [entityName]="Data.Configuration.Entity" (loadComplete)="NotifyLoadComplete()" mjFillContainer></mj-single-record>`
|
|
70
71
|
}]
|
|
71
72
|
}], null, null); })();
|
|
72
73
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EntityRecordResource, { className: "EntityRecordResource", filePath: "src\\lib\\resource-wrappers\\record-resource.component.ts", lineNumber: 16 }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-explorer-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.227",
|
|
4
4
|
"description": "MemberJunction Explorer: Core Angular Components",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@memberjunction/global": "^0.9.167",
|
|
30
30
|
"@memberjunction/core": "^0.9.185",
|
|
31
|
-
"@memberjunction/ng-compare-records": "^0.9.
|
|
32
|
-
"@memberjunction/ng-file-storage": "^0.9.
|
|
33
|
-
"@memberjunction/ng-record-changes": "^0.9.
|
|
31
|
+
"@memberjunction/ng-compare-records": "^0.9.197",
|
|
32
|
+
"@memberjunction/ng-file-storage": "^0.9.22",
|
|
33
|
+
"@memberjunction/ng-record-changes": "^0.9.131",
|
|
34
34
|
"@memberjunction/ng-container-directives": "^0.9.148",
|
|
35
|
-
"@memberjunction/ng-user-view-grid": "^0.9.
|
|
36
|
-
"@memberjunction/ng-query-grid": "^0.9.
|
|
37
|
-
"@memberjunction/ng-user-view-properties": "^0.9.
|
|
38
|
-
"@memberjunction/ng-shared": "^0.9.
|
|
39
|
-
"@memberjunction/ng-tabstrip": "^0.9.
|
|
40
|
-
"@memberjunction/ng-ask-skip": "^0.9.
|
|
35
|
+
"@memberjunction/ng-user-view-grid": "^0.9.232",
|
|
36
|
+
"@memberjunction/ng-query-grid": "^0.9.79",
|
|
37
|
+
"@memberjunction/ng-user-view-properties": "^0.9.6",
|
|
38
|
+
"@memberjunction/ng-shared": "^0.9.49",
|
|
39
|
+
"@memberjunction/ng-tabstrip": "^0.9.5",
|
|
40
|
+
"@memberjunction/ng-ask-skip": "^0.9.120",
|
|
41
41
|
"@memberjunction/ng-auth-services": "^0.9.107",
|
|
42
|
-
"@memberjunction/ng-explorer-settings": "^0.9.
|
|
43
|
-
"@memberjunction/ng-base-forms": "^0.9.
|
|
42
|
+
"@memberjunction/ng-explorer-settings": "^0.9.28",
|
|
43
|
+
"@memberjunction/ng-base-forms": "^0.9.18",
|
|
44
44
|
"@progress/kendo-angular-grid": "~15.1.0",
|
|
45
45
|
"@progress/kendo-angular-buttons": "~15.1.0",
|
|
46
46
|
"@progress/kendo-angular-listview": "~15.1.0",
|