@memberjunction/ng-explorer-core 0.9.79 → 0.9.116
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/dist/lib/ask-skip/ask-skip.component.d.ts +87 -86
- package/dist/lib/ask-skip/ask-skip.component.js +615 -580
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.d.ts +12 -12
- package/dist/lib/ask-skip/skip-dynamic-report-wrapper.js +40 -39
- package/dist/lib/auth-button/auth-button.component.d.ts +12 -12
- package/dist/lib/auth-button/auth-button.component.js +44 -43
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.d.ts +18 -18
- package/dist/lib/dashboard-browser-component/dashboard-browser.component.js +118 -117
- package/dist/lib/data-browser-component/data-browser.component.d.ts +16 -14
- package/dist/lib/data-browser-component/data-browser.component.js +96 -91
- package/dist/lib/favorites/favorites.component.d.ts +14 -14
- package/dist/lib/favorites/favorites.component.js +114 -114
- package/dist/lib/generic/base-form-component.d.ts +76 -76
- package/dist/lib/generic/base-form-component.js +436 -436
- package/dist/lib/generic/base-form-section-component.d.ts +6 -6
- package/dist/lib/generic/base-form-section-component.js +9 -9
- package/dist/lib/generic/base-record-component.d.ts +6 -6
- package/dist/lib/generic/base-record-component.js +15 -15
- package/dist/lib/generic/base-resource-component.d.ts +34 -34
- package/dist/lib/generic/base-resource-component.js +75 -75
- package/dist/lib/generic/dynamic-chart.d.ts +33 -33
- package/dist/lib/generic/dynamic-chart.js +236 -235
- package/dist/lib/generic/dynamic-grid.d.ts +25 -25
- package/dist/lib/generic/dynamic-grid.js +120 -119
- package/dist/lib/generic/dynamic-report.d.ts +38 -38
- package/dist/lib/generic/dynamic-report.js +353 -347
- package/dist/lib/generic/form-toolbar.d.ts +7 -7
- package/dist/lib/generic/form-toolbar.js +85 -89
- package/dist/lib/generic/resource-container-component.d.ts +25 -25
- package/dist/lib/generic/resource-container-component.js +104 -103
- package/dist/lib/generic/section-loader-component.d.ts +17 -17
- package/dist/lib/generic/section-loader-component.js +66 -65
- package/dist/lib/generic-browse-list/generic-browse-list.component.d.ts +26 -24
- package/dist/lib/generic-browse-list/generic-browse-list.component.js +145 -143
- package/dist/lib/guards/auth-guard.service.d.ts +11 -11
- package/dist/lib/guards/auth-guard.service.js +24 -24
- package/dist/lib/guards/entities.guard.d.ts +3 -3
- package/dist/lib/guards/entities.guard.js +38 -38
- package/dist/lib/header/MSFT_UserImageService.d.ts +11 -11
- package/dist/lib/header/MSFT_UserImageService.js +23 -23
- package/dist/lib/header/header.component.d.ts +51 -51
- package/dist/lib/header/header.component.js +220 -208
- package/dist/lib/home-component/home.component.d.ts +11 -9
- package/dist/lib/home-component/home.component.js +77 -54
- package/dist/lib/join-grid/join-grid.component.d.ts +30 -30
- package/dist/lib/join-grid/join-grid.component.js +222 -225
- package/dist/lib/navigation/navigation.component.d.ts +104 -103
- package/dist/lib/navigation/navigation.component.js +1026 -1004
- package/dist/lib/query-browser-component/query-browser.component.d.ts +14 -0
- package/dist/lib/query-browser-component/query-browser.component.js +56 -0
- package/dist/lib/report-browser-component/report-browser.component.d.ts +14 -14
- package/dist/lib/report-browser-component/report-browser.component.js +56 -55
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +51 -50
- package/dist/lib/resource-wrappers/query-resource.component.d.ts +10 -0
- package/dist/lib/resource-wrappers/query-resource.component.js +55 -0
- package/dist/lib/resource-wrappers/record-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/record-resource.component.js +71 -70
- package/dist/lib/resource-wrappers/report-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/report-resource.component.js +55 -54
- package/dist/lib/resource-wrappers/resource-wrappers-loader.d.ts +1 -1
- package/dist/lib/resource-wrappers/resource-wrappers-loader.js +14 -12
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +10 -10
- package/dist/lib/resource-wrappers/search-results-resource.component.js +52 -51
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +8 -8
- package/dist/lib/resource-wrappers/view-resource.component.js +61 -60
- package/dist/lib/settings/settings.component.d.ts +5 -5
- package/dist/lib/settings/settings.component.js +15 -14
- package/dist/lib/single-application/single-application.component.d.ts +20 -20
- package/dist/lib/single-application/single-application.component.js +113 -113
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.d.ts +28 -28
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +210 -212
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.d.ts +13 -13
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +60 -59
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.d.ts +26 -26
- package/dist/lib/single-dashboard/Components/edit-dashboard/edit-dashboard.component.js +170 -169
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts +75 -75
- package/dist/lib/single-dashboard/single-dashboard.component.js +464 -456
- package/dist/lib/single-entity/single-entity.component.d.ts +33 -33
- package/dist/lib/single-entity/single-entity.component.js +258 -252
- package/dist/lib/single-query/single-query.component.d.ts +16 -0
- package/dist/lib/single-query/single-query.component.js +70 -0
- package/dist/lib/single-record/single-record.component.d.ts +21 -21
- package/dist/lib/single-record/single-record.component.js +95 -95
- package/dist/lib/single-report/single-report.component.d.ts +21 -22
- package/dist/lib/single-report/single-report.component.js +89 -87
- package/dist/lib/single-search-result/single-search-result.component.d.ts +15 -15
- package/dist/lib/single-search-result/single-search-result.component.js +61 -60
- package/dist/lib/single-view/single-view.component.d.ts +38 -38
- package/dist/lib/single-view/single-view.component.js +201 -201
- package/dist/lib/user-notifications/user-notifications.component.d.ts +32 -32
- package/dist/lib/user-notifications/user-notifications.component.js +282 -282
- package/dist/lib/user-profile/user-profile.component.d.ts +10 -10
- package/dist/lib/user-profile/user-profile.component.js +42 -41
- package/dist/lib/user-view-properties/view-properties-dialog.component.d.ts +71 -71
- package/dist/lib/user-view-properties/view-properties-dialog.component.js +594 -581
- package/dist/module.d.ts +65 -65
- package/dist/module.js +328 -338
- package/dist/public-api.d.ts +42 -47
- package/dist/public-api.js +45 -50
- package/dist/shared/shared.service.d.ts +94 -92
- package/dist/shared/shared.service.js +324 -318
- package/dist/shared/urlPipe.d.ts +7 -7
- package/dist/shared/urlPipe.js +16 -16
- package/package.json +24 -15
|
@@ -1,70 +1,71 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
import { Component } from '@angular/core';
|
|
17
|
-
import { BaseResourceComponent } from '
|
|
18
|
-
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
-
import { Metadata } from '@memberjunction/core';
|
|
20
|
-
import { SharedService } from '
|
|
21
|
-
import * as i0 from "@angular/core";
|
|
22
|
-
import * as i1 from "../single-record/single-record.component";
|
|
23
|
-
export function LoadRecordResource() {
|
|
24
|
-
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.
|
|
25
|
-
}
|
|
26
|
-
let EntityRecordResource = class EntityRecordResource extends BaseResourceComponent {
|
|
27
|
-
get primaryKeyValues() {
|
|
28
|
-
const md = new Metadata();
|
|
29
|
-
const e = md.Entities.find(e => e.Name.trim().toLowerCase() === this.Data.Configuration.Entity.trim().toLowerCase());
|
|
30
|
-
if (!e)
|
|
31
|
-
throw new Error(`Entity ${this.Data.Configuration.Entity} not found in metadata`);
|
|
32
|
-
const pKeys = SharedService.ParsePrimaryKeys(e, this.Data.ResourceRecordID);
|
|
33
|
-
return pKeys;
|
|
34
|
-
}
|
|
35
|
-
GetResourceDisplayName(data) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (!data.Configuration.Entity)
|
|
38
|
-
return '';
|
|
39
|
-
else {
|
|
40
|
-
const md = new Metadata();
|
|
41
|
-
const name = yield md.GetEntityRecordName(data.Configuration.Entity, [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
42
|
-
const e = md.Entities.find(e => e.Name === data.Configuration.Entity);
|
|
43
|
-
if (!e)
|
|
44
|
-
throw new Error(`Entity ${data.Configuration.Entity} not found in metadata`);
|
|
45
|
-
const pKeys = SharedService.ParsePrimaryKeys(e, data.ResourceRecordID);
|
|
46
|
-
const displayId = pKeys.length > 1 ? pKeys.map(p => p.Value).join(', ') : pKeys[0].Value;
|
|
47
|
-
return (name ? name : data.Configuration.Entity) + ` (${displayId})`;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
EntityRecordResource.ɵfac = /*@__PURE__*/
|
|
53
|
-
EntityRecordResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityRecordResource, selectors: [["record-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [[3, "primaryKeyValues", "entityName", "loadComplete"]], template: function EntityRecordResource_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
-
i0.ɵɵelementStart(0, "app-single-record", 0);
|
|
55
|
-
i0.ɵɵlistener("loadComplete", function EntityRecordResource_Template_app_single_record_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); });
|
|
56
|
-
i0.ɵɵelementEnd();
|
|
57
|
-
} if (rf & 2) {
|
|
58
|
-
i0.ɵɵproperty("primaryKeyValues", ctx.primaryKeyValues)("entityName", ctx.Data.Configuration.Entity);
|
|
59
|
-
} }, dependencies: [i1.SingleRecordComponent], encapsulation: 2 });
|
|
60
|
-
EntityRecordResource = __decorate([
|
|
61
|
-
RegisterClass(BaseResourceComponent, 'Records')
|
|
62
|
-
], EntityRecordResource);
|
|
63
|
-
export { EntityRecordResource };
|
|
64
|
-
(
|
|
65
|
-
type: Component,
|
|
66
|
-
args: [{
|
|
67
|
-
selector: 'record-resource',
|
|
68
|
-
template: `<app-single-record [primaryKeyValues]="this.primaryKeyValues" [entityName]="Data.Configuration.Entity" (loadComplete)="NotifyLoadComplete()"></app-single-record>`
|
|
69
|
-
}]
|
|
70
|
-
}], null, null); })();
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
18
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
+
import { Metadata } from '@memberjunction/core';
|
|
20
|
+
import { SharedService } from '@memberjunction/ng-shared';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
import * as i1 from "../single-record/single-record.component";
|
|
23
|
+
export function LoadRecordResource() {
|
|
24
|
+
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.
|
|
25
|
+
}
|
|
26
|
+
let EntityRecordResource = class EntityRecordResource extends BaseResourceComponent {
|
|
27
|
+
get primaryKeyValues() {
|
|
28
|
+
const md = new Metadata();
|
|
29
|
+
const e = md.Entities.find(e => e.Name.trim().toLowerCase() === this.Data.Configuration.Entity.trim().toLowerCase());
|
|
30
|
+
if (!e)
|
|
31
|
+
throw new Error(`Entity ${this.Data.Configuration.Entity} not found in metadata`);
|
|
32
|
+
const pKeys = SharedService.ParsePrimaryKeys(e, this.Data.ResourceRecordID);
|
|
33
|
+
return pKeys;
|
|
34
|
+
}
|
|
35
|
+
GetResourceDisplayName(data) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (!data.Configuration.Entity)
|
|
38
|
+
return '';
|
|
39
|
+
else {
|
|
40
|
+
const md = new Metadata();
|
|
41
|
+
const name = yield md.GetEntityRecordName(data.Configuration.Entity, [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
42
|
+
const e = md.Entities.find(e => e.Name === data.Configuration.Entity);
|
|
43
|
+
if (!e)
|
|
44
|
+
throw new Error(`Entity ${data.Configuration.Entity} not found in metadata`);
|
|
45
|
+
const pKeys = SharedService.ParsePrimaryKeys(e, data.ResourceRecordID);
|
|
46
|
+
const displayId = pKeys.length > 1 ? pKeys.map(p => p.Value).join(', ') : pKeys[0].Value;
|
|
47
|
+
return (name ? name : data.Configuration.Entity) + ` (${displayId})`;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
EntityRecordResource.ɵfac = /*@__PURE__*/ (() => { let ɵEntityRecordResource_BaseFactory; return function EntityRecordResource_Factory(t) { return (ɵEntityRecordResource_BaseFactory || (ɵEntityRecordResource_BaseFactory = i0.ɵɵgetInheritedFactory(EntityRecordResource)))(t || EntityRecordResource); }; })();
|
|
53
|
+
EntityRecordResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntityRecordResource, selectors: [["record-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [[3, "primaryKeyValues", "entityName", "loadComplete"]], template: function EntityRecordResource_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
i0.ɵɵelementStart(0, "app-single-record", 0);
|
|
55
|
+
i0.ɵɵlistener("loadComplete", function EntityRecordResource_Template_app_single_record_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); });
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} if (rf & 2) {
|
|
58
|
+
i0.ɵɵproperty("primaryKeyValues", ctx.primaryKeyValues)("entityName", ctx.Data.Configuration.Entity);
|
|
59
|
+
} }, dependencies: [i1.SingleRecordComponent], encapsulation: 2 });
|
|
60
|
+
EntityRecordResource = __decorate([
|
|
61
|
+
RegisterClass(BaseResourceComponent, 'Records')
|
|
62
|
+
], EntityRecordResource);
|
|
63
|
+
export { EntityRecordResource };
|
|
64
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntityRecordResource, [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{
|
|
67
|
+
selector: 'record-resource',
|
|
68
|
+
template: `<app-single-record [primaryKeyValues]="this.primaryKeyValues" [entityName]="Data.Configuration.Entity" (loadComplete)="NotifyLoadComplete()"></app-single-record>`
|
|
69
|
+
}]
|
|
70
|
+
}], null, null); })();
|
|
71
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EntityRecordResource, { className: "EntityRecordResource", filePath: "src\\lib\\resource-wrappers\\record-resource.component.ts", lineNumber: 16 }); })();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseResourceComponent, ResourceData } from '
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function LoadReportResource(): void;
|
|
5
|
-
export declare class ReportResource extends BaseResourceComponent implements OnInit {
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReportResource, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReportResource, "report-resource", never, {}, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseResourceComponent, ResourceData } from '@memberjunction/ng-shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare function LoadReportResource(): void;
|
|
5
|
+
export declare class ReportResource extends BaseResourceComponent implements OnInit {
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportResource, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportResource, "report-resource", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
import { Component } from '@angular/core';
|
|
17
|
-
import { BaseResourceComponent } from '
|
|
18
|
-
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
-
import { Metadata } from '@memberjunction/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
import * as i1 from "../single-report/single-report.component";
|
|
22
|
-
export function LoadReportResource() {
|
|
23
|
-
const test = new ReportResource(); // 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.
|
|
24
|
-
}
|
|
25
|
-
let ReportResource = class ReportResource extends BaseResourceComponent {
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
}
|
|
28
|
-
GetResourceDisplayName(data) {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const md = new Metadata();
|
|
31
|
-
const name = yield md.GetEntityRecordName('Reports', [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
32
|
-
return `${name ? name : 'Report ID: ' + data.ResourceRecordID}`;
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
ReportResource.ɵfac = /*@__PURE__*/
|
|
37
|
-
ReportResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportResource, selectors: [["report-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "reportId", "loadComplete", "loadStarted"]], template: function ReportResource_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
-
i0.ɵɵelementStart(0, "app-single-report", 0);
|
|
39
|
-
i0.ɵɵlistener("loadComplete", function ReportResource_Template_app_single_report_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); })("loadStarted", function ReportResource_Template_app_single_report_loadStarted_0_listener() { return ctx.NotifyLoadStarted(); });
|
|
40
|
-
i0.ɵɵelementEnd();
|
|
41
|
-
} if (rf & 2) {
|
|
42
|
-
i0.ɵɵproperty("reportId", ctx.Data.ResourceRecordID);
|
|
43
|
-
} }, dependencies: [i1.SingleReportComponent], encapsulation: 2 });
|
|
44
|
-
ReportResource = __decorate([
|
|
45
|
-
RegisterClass(BaseResourceComponent, 'Reports')
|
|
46
|
-
], ReportResource);
|
|
47
|
-
export { ReportResource };
|
|
48
|
-
(
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'report-resource',
|
|
52
|
-
template: `<app-single-report [reportId]="Data.ResourceRecordID" (loadComplete)="NotifyLoadComplete()" (loadStarted)="NotifyLoadStarted()"></app-single-report>`
|
|
53
|
-
}]
|
|
54
|
-
}], null, null); })();
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
18
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
+
import { Metadata } from '@memberjunction/core';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
import * as i1 from "../single-report/single-report.component";
|
|
22
|
+
export function LoadReportResource() {
|
|
23
|
+
const test = new ReportResource(); // 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.
|
|
24
|
+
}
|
|
25
|
+
let ReportResource = class ReportResource extends BaseResourceComponent {
|
|
26
|
+
ngOnInit() {
|
|
27
|
+
}
|
|
28
|
+
GetResourceDisplayName(data) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const md = new Metadata();
|
|
31
|
+
const name = yield md.GetEntityRecordName('Reports', [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
32
|
+
return `${name ? name : 'Report ID: ' + data.ResourceRecordID}`;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
ReportResource.ɵfac = /*@__PURE__*/ (() => { let ɵReportResource_BaseFactory; return function ReportResource_Factory(t) { return (ɵReportResource_BaseFactory || (ɵReportResource_BaseFactory = i0.ɵɵgetInheritedFactory(ReportResource)))(t || ReportResource); }; })();
|
|
37
|
+
ReportResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportResource, selectors: [["report-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "reportId", "loadComplete", "loadStarted"]], template: function ReportResource_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵelementStart(0, "app-single-report", 0);
|
|
39
|
+
i0.ɵɵlistener("loadComplete", function ReportResource_Template_app_single_report_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); })("loadStarted", function ReportResource_Template_app_single_report_loadStarted_0_listener() { return ctx.NotifyLoadStarted(); });
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
i0.ɵɵproperty("reportId", ctx.Data.ResourceRecordID);
|
|
43
|
+
} }, dependencies: [i1.SingleReportComponent], encapsulation: 2 });
|
|
44
|
+
ReportResource = __decorate([
|
|
45
|
+
RegisterClass(BaseResourceComponent, 'Reports')
|
|
46
|
+
], ReportResource);
|
|
47
|
+
export { ReportResource };
|
|
48
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReportResource, [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: 'report-resource',
|
|
52
|
+
template: `<app-single-report [reportId]="Data.ResourceRecordID" (loadComplete)="NotifyLoadComplete()" (loadStarted)="NotifyLoadStarted()"></app-single-report>`
|
|
53
|
+
}]
|
|
54
|
+
}], null, null); })();
|
|
55
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReportResource, { className: "ReportResource", filePath: "src\\lib\\resource-wrappers\\report-resource.component.ts", lineNumber: 15 }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function LoadResourceWrappers(): void;
|
|
1
|
+
export declare function LoadResourceWrappers(): void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { LoadDashboardResource } from "./dashboard-resource.component";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { LoadDashboardResource } from "./dashboard-resource.component";
|
|
2
|
+
import { LoadQueryResource } from "./query-resource.component";
|
|
3
|
+
import { LoadRecordResource } from "./record-resource.component";
|
|
4
|
+
import { LoadReportResource } from "./report-resource.component";
|
|
5
|
+
import { LoadSearchResultsResource } from "./search-results-resource.component";
|
|
6
|
+
import { LoadViewResource } from "./view-resource.component";
|
|
7
|
+
export function LoadResourceWrappers() {
|
|
8
|
+
LoadViewResource();
|
|
9
|
+
LoadReportResource();
|
|
10
|
+
LoadDashboardResource();
|
|
11
|
+
LoadRecordResource();
|
|
12
|
+
LoadSearchResultsResource();
|
|
13
|
+
LoadQueryResource();
|
|
14
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseResourceComponent, ResourceData } from '
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare function LoadSearchResultsResource(): void;
|
|
5
|
-
export declare class SearchResultsResource extends BaseResourceComponent implements OnInit {
|
|
6
|
-
ngOnInit(): void;
|
|
7
|
-
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SearchResultsResource, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchResultsResource, "search-results-resource", never, {}, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseResourceComponent, ResourceData } from '@memberjunction/ng-shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare function LoadSearchResultsResource(): void;
|
|
5
|
+
export declare class SearchResultsResource extends BaseResourceComponent implements OnInit {
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchResultsResource, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchResultsResource, "search-results-resource", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
import { Component } from '@angular/core';
|
|
17
|
-
import { BaseResourceComponent } from '
|
|
18
|
-
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
-
import * as i0 from "@angular/core";
|
|
20
|
-
import * as i1 from "../single-search-result/single-search-result.component";
|
|
21
|
-
export function LoadSearchResultsResource() {
|
|
22
|
-
const test = new SearchResultsResource(); // 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.
|
|
23
|
-
}
|
|
24
|
-
let SearchResultsResource = class SearchResultsResource extends BaseResourceComponent {
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
}
|
|
27
|
-
GetResourceDisplayName(data) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
return `Search (${data.Configuration.Entity}): ${data.Configuration.SearchInput}`;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
SearchResultsResource.ɵfac = /*@__PURE__*/
|
|
34
|
-
SearchResultsResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsResource, selectors: [["search-results-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [[3, "entity", "searchInput", "loadComplete", "loadStarted"]], template: function SearchResultsResource_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵelementStart(0, "app-single-search-result", 0);
|
|
36
|
-
i0.ɵɵlistener("loadComplete", function SearchResultsResource_Template_app_single_search_result_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); })("loadStarted", function SearchResultsResource_Template_app_single_search_result_loadStarted_0_listener() { return ctx.NotifyLoadStarted(); });
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
i0.ɵɵproperty("entity", ctx.Data.Configuration.Entity)("searchInput", ctx.Data.Configuration.SearchInput);
|
|
40
|
-
} }, dependencies: [i1.SingleSearchResultComponent], encapsulation: 2 });
|
|
41
|
-
SearchResultsResource = __decorate([
|
|
42
|
-
RegisterClass(BaseResourceComponent, 'Search Results')
|
|
43
|
-
], SearchResultsResource);
|
|
44
|
-
export { SearchResultsResource };
|
|
45
|
-
(
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: 'search-results-resource',
|
|
49
|
-
template: `<app-single-search-result [entity]="Data.Configuration.Entity" [searchInput]="Data.Configuration.SearchInput" (loadComplete)="NotifyLoadComplete()" (loadStarted)="NotifyLoadStarted()"></app-single-search-result>`
|
|
50
|
-
}]
|
|
51
|
-
}], null, null); })();
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
18
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
import * as i1 from "../single-search-result/single-search-result.component";
|
|
21
|
+
export function LoadSearchResultsResource() {
|
|
22
|
+
const test = new SearchResultsResource(); // 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.
|
|
23
|
+
}
|
|
24
|
+
let SearchResultsResource = class SearchResultsResource extends BaseResourceComponent {
|
|
25
|
+
ngOnInit() {
|
|
26
|
+
}
|
|
27
|
+
GetResourceDisplayName(data) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return `Search (${data.Configuration.Entity}): ${data.Configuration.SearchInput}`;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
SearchResultsResource.ɵfac = /*@__PURE__*/ (() => { let ɵSearchResultsResource_BaseFactory; return function SearchResultsResource_Factory(t) { return (ɵSearchResultsResource_BaseFactory || (ɵSearchResultsResource_BaseFactory = i0.ɵɵgetInheritedFactory(SearchResultsResource)))(t || SearchResultsResource); }; })();
|
|
34
|
+
SearchResultsResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsResource, selectors: [["search-results-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 2, consts: [[3, "entity", "searchInput", "loadComplete", "loadStarted"]], template: function SearchResultsResource_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
i0.ɵɵelementStart(0, "app-single-search-result", 0);
|
|
36
|
+
i0.ɵɵlistener("loadComplete", function SearchResultsResource_Template_app_single_search_result_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); })("loadStarted", function SearchResultsResource_Template_app_single_search_result_loadStarted_0_listener() { return ctx.NotifyLoadStarted(); });
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
i0.ɵɵproperty("entity", ctx.Data.Configuration.Entity)("searchInput", ctx.Data.Configuration.SearchInput);
|
|
40
|
+
} }, dependencies: [i1.SingleSearchResultComponent], encapsulation: 2 });
|
|
41
|
+
SearchResultsResource = __decorate([
|
|
42
|
+
RegisterClass(BaseResourceComponent, 'Search Results')
|
|
43
|
+
], SearchResultsResource);
|
|
44
|
+
export { SearchResultsResource };
|
|
45
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultsResource, [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: 'search-results-resource',
|
|
49
|
+
template: `<app-single-search-result [entity]="Data.Configuration.Entity" [searchInput]="Data.Configuration.SearchInput" (loadComplete)="NotifyLoadComplete()" (loadStarted)="NotifyLoadStarted()"></app-single-search-result>`
|
|
50
|
+
}]
|
|
51
|
+
}], null, null); })();
|
|
52
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchResultsResource, { className: "SearchResultsResource", filePath: "src\\lib\\resource-wrappers\\search-results-resource.component.ts", lineNumber: 14 }); })();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseResourceComponent, ResourceData } from '
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare function LoadViewResource(): void;
|
|
4
|
-
export declare class UserViewResource extends BaseResourceComponent {
|
|
5
|
-
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewResource, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewResource, "userview-resource", never, {}, {}, never, never, false, never>;
|
|
8
|
-
}
|
|
1
|
+
import { BaseResourceComponent, ResourceData } from '@memberjunction/ng-shared';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare function LoadViewResource(): void;
|
|
4
|
+
export declare class UserViewResource extends BaseResourceComponent {
|
|
5
|
+
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewResource, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewResource, "userview-resource", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
import { Component } from '@angular/core';
|
|
17
|
-
import { BaseResourceComponent } from '
|
|
18
|
-
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
-
import { Metadata } from '@memberjunction/core';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
import * as i1 from "../single-view/single-view.component";
|
|
22
|
-
export function LoadViewResource() {
|
|
23
|
-
const test = new UserViewResource(); // 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.
|
|
24
|
-
}
|
|
25
|
-
let UserViewResource = class UserViewResource extends BaseResourceComponent {
|
|
26
|
-
GetResourceDisplayName(data) {
|
|
27
|
-
var _a, _b, _c;
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const md = new Metadata();
|
|
30
|
-
if (data.ResourceRecordID > 0) {
|
|
31
|
-
const name = yield md.GetEntityRecordName('User Views', [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
32
|
-
return name ? name : 'View: ' + data.ResourceRecordID;
|
|
33
|
-
}
|
|
34
|
-
else if (((_a = data.Configuration) === null || _a === void 0 ? void 0 : _a.Entity) && ((_b = data.Configuration) === null || _b === void 0 ? void 0 : _b.Entity.length) > 0) {
|
|
35
|
-
return `${(_c = data.Configuration) === null || _c === void 0 ? void 0 : _c.Entity} [Dynamic${data.Configuration.ExtraFilter ? ' - Filtered' : ' - All'}]`;
|
|
36
|
-
}
|
|
37
|
-
else
|
|
38
|
-
return 'User Views [Error]';
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
UserViewResource.ɵfac = /*@__PURE__*/
|
|
43
|
-
UserViewResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewResource, selectors: [["userview-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 4, consts: [[3, "viewId", "viewName", "entityName", "extraFilter", "loadComplete"]], template: function UserViewResource_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
i0.ɵɵelementStart(0, "app-single-view", 0);
|
|
45
|
-
i0.ɵɵlistener("loadComplete", function UserViewResource_Template_app_single_view_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); });
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
47
|
-
} if (rf & 2) {
|
|
48
|
-
i0.ɵɵproperty("viewId", ctx.Data.ResourceRecordID)("viewName", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.ViewName)("entityName", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.Entity)("extraFilter", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.ExtraFilter);
|
|
49
|
-
} }, dependencies: [i1.SingleViewComponent], encapsulation: 2 });
|
|
50
|
-
UserViewResource = __decorate([
|
|
51
|
-
RegisterClass(BaseResourceComponent, 'User Views')
|
|
52
|
-
], UserViewResource);
|
|
53
|
-
export { UserViewResource };
|
|
54
|
-
(
|
|
55
|
-
type: Component,
|
|
56
|
-
args: [{
|
|
57
|
-
selector: 'userview-resource',
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
18
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
19
|
+
import { Metadata } from '@memberjunction/core';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
import * as i1 from "../single-view/single-view.component";
|
|
22
|
+
export function LoadViewResource() {
|
|
23
|
+
const test = new UserViewResource(); // 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.
|
|
24
|
+
}
|
|
25
|
+
let UserViewResource = class UserViewResource extends BaseResourceComponent {
|
|
26
|
+
GetResourceDisplayName(data) {
|
|
27
|
+
var _a, _b, _c;
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const md = new Metadata();
|
|
30
|
+
if (data.ResourceRecordID > 0) {
|
|
31
|
+
const name = yield md.GetEntityRecordName('User Views', [{ FieldName: "ID", Value: data.ResourceRecordID }]);
|
|
32
|
+
return name ? name : 'View: ' + data.ResourceRecordID;
|
|
33
|
+
}
|
|
34
|
+
else if (((_a = data.Configuration) === null || _a === void 0 ? void 0 : _a.Entity) && ((_b = data.Configuration) === null || _b === void 0 ? void 0 : _b.Entity.length) > 0) {
|
|
35
|
+
return `${(_c = data.Configuration) === null || _c === void 0 ? void 0 : _c.Entity} [Dynamic${data.Configuration.ExtraFilter ? ' - Filtered' : ' - All'}]`;
|
|
36
|
+
}
|
|
37
|
+
else
|
|
38
|
+
return 'User Views [Error]';
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
UserViewResource.ɵfac = /*@__PURE__*/ (() => { let ɵUserViewResource_BaseFactory; return function UserViewResource_Factory(t) { return (ɵUserViewResource_BaseFactory || (ɵUserViewResource_BaseFactory = i0.ɵɵgetInheritedFactory(UserViewResource)))(t || UserViewResource); }; })();
|
|
43
|
+
UserViewResource.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewResource, selectors: [["userview-resource"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 4, consts: [[3, "viewId", "viewName", "entityName", "extraFilter", "loadComplete"]], template: function UserViewResource_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
+
i0.ɵɵelementStart(0, "app-single-view", 0);
|
|
45
|
+
i0.ɵɵlistener("loadComplete", function UserViewResource_Template_app_single_view_loadComplete_0_listener() { return ctx.NotifyLoadComplete(); });
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
} if (rf & 2) {
|
|
48
|
+
i0.ɵɵproperty("viewId", ctx.Data.ResourceRecordID)("viewName", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.ViewName)("entityName", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.Entity)("extraFilter", ctx.Data.Configuration == null ? null : ctx.Data.Configuration.ExtraFilter);
|
|
49
|
+
} }, dependencies: [i1.SingleViewComponent], encapsulation: 2 });
|
|
50
|
+
UserViewResource = __decorate([
|
|
51
|
+
RegisterClass(BaseResourceComponent, 'User Views')
|
|
52
|
+
], UserViewResource);
|
|
53
|
+
export { UserViewResource };
|
|
54
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewResource, [{
|
|
55
|
+
type: Component,
|
|
56
|
+
args: [{
|
|
57
|
+
selector: 'userview-resource',
|
|
58
58
|
template: `<app-single-view [viewId]="Data.ResourceRecordID"
|
|
59
59
|
[viewName]="Data.Configuration?.ViewName"
|
|
60
60
|
[entityName]="Data.Configuration?.Entity"
|
|
61
61
|
[extraFilter]="Data.Configuration?.ExtraFilter"
|
|
62
62
|
(loadComplete)="NotifyLoadComplete()">
|
|
63
|
-
</app-single-view>`
|
|
64
|
-
}]
|
|
65
|
-
}], null, null); })();
|
|
63
|
+
</app-single-view>`
|
|
64
|
+
}]
|
|
65
|
+
}], null, null); })();
|
|
66
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewResource, { className: "UserViewResource", filePath: "src\\lib\\resource-wrappers\\view-resource.component.ts", lineNumber: 20 }); })();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class SettingsComponent {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "app-settings", never, {}, {}, never, never, false, never>;
|
|
5
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SettingsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "app-settings", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|