@memberjunction/ng-core-entity-forms 0.9.51 → 0.9.52
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/generated/Entities/Conversation/sections/details.component.js +45 -21
- package/dist/lib/generated/Entities/DataContext/datacontext.form.component.d.ts +9 -0
- package/dist/lib/generated/Entities/DataContext/datacontext.form.component.js +81 -0
- package/dist/lib/generated/Entities/DataContext/sections/details.component.d.ts +10 -0
- package/dist/lib/generated/Entities/DataContext/sections/details.component.js +241 -0
- package/dist/lib/generated/Entities/DataContextItem/datacontextitem.form.component.d.ts +9 -0
- package/dist/lib/generated/Entities/DataContextItem/datacontextitem.form.component.js +66 -0
- package/dist/lib/generated/Entities/DataContextItem/sections/details.component.d.ts +10 -0
- package/dist/lib/generated/Entities/DataContextItem/sections/details.component.js +289 -0
- package/dist/lib/generated/Entities/User/user.form.component.js +18 -4
- package/dist/lib/generated/generated-forms.module.d.ts +94 -90
- package/dist/lib/generated/generated-forms.module.js +47 -31
- package/package.json +3 -3
|
@@ -57,28 +57,34 @@ function ConversationDetailsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
57
57
|
i0.ɵɵlistener("valueChange", function ConversationDetailsComponent_div_0_div_1_Template_kendo_numerictextbox_valueChange_28_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.record.LinkedRecordID = $event); });
|
|
58
58
|
i0.ɵɵelementEnd()();
|
|
59
59
|
i0.ɵɵelementStart(29, "div", 3)(30, "label", 4);
|
|
60
|
-
i0.ɵɵtext(31, "
|
|
60
|
+
i0.ɵɵtext(31, "Data Context ID");
|
|
61
61
|
i0.ɵɵelementEnd();
|
|
62
|
-
i0.ɵɵelementStart(32, "
|
|
63
|
-
i0.ɵɵ
|
|
62
|
+
i0.ɵɵelementStart(32, "kendo-numerictextbox", 5);
|
|
63
|
+
i0.ɵɵlistener("valueChange", function ConversationDetailsComponent_div_0_div_1_Template_kendo_numerictextbox_valueChange_32_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r11 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r11.record.DataContextID = $event); });
|
|
64
64
|
i0.ɵɵelementEnd()();
|
|
65
|
-
i0.ɵɵelementStart(
|
|
66
|
-
i0.ɵɵtext(
|
|
65
|
+
i0.ɵɵelementStart(33, "div", 3)(34, "label", 4);
|
|
66
|
+
i0.ɵɵtext(35, "Created At");
|
|
67
67
|
i0.ɵɵelementEnd();
|
|
68
|
-
i0.ɵɵelementStart(
|
|
69
|
-
i0.ɵɵtext(
|
|
68
|
+
i0.ɵɵelementStart(36, "span");
|
|
69
|
+
i0.ɵɵtext(37);
|
|
70
70
|
i0.ɵɵelementEnd()();
|
|
71
|
-
i0.ɵɵelementStart(
|
|
72
|
-
i0.ɵɵtext(
|
|
71
|
+
i0.ɵɵelementStart(38, "div", 3)(39, "label", 4);
|
|
72
|
+
i0.ɵɵtext(40, "Updated At");
|
|
73
73
|
i0.ɵɵelementEnd();
|
|
74
|
-
i0.ɵɵelementStart(
|
|
75
|
-
i0.ɵɵtext(
|
|
74
|
+
i0.ɵɵelementStart(41, "span");
|
|
75
|
+
i0.ɵɵtext(42);
|
|
76
76
|
i0.ɵɵelementEnd()();
|
|
77
|
-
i0.ɵɵelementStart(
|
|
78
|
-
i0.ɵɵtext(
|
|
77
|
+
i0.ɵɵelementStart(43, "div", 3)(44, "label", 4);
|
|
78
|
+
i0.ɵɵtext(45, "User");
|
|
79
79
|
i0.ɵɵelementEnd();
|
|
80
|
-
i0.ɵɵelementStart(
|
|
81
|
-
i0.ɵɵtext(
|
|
80
|
+
i0.ɵɵelementStart(46, "span");
|
|
81
|
+
i0.ɵɵtext(47);
|
|
82
|
+
i0.ɵɵelementEnd()();
|
|
83
|
+
i0.ɵɵelementStart(48, "div", 3)(49, "label", 4);
|
|
84
|
+
i0.ɵɵtext(50, "Linked Entity");
|
|
85
|
+
i0.ɵɵelementEnd();
|
|
86
|
+
i0.ɵɵelementStart(51, "span");
|
|
87
|
+
i0.ɵɵtext(52);
|
|
82
88
|
i0.ɵɵelementEnd()()();
|
|
83
89
|
} if (rf & 2) {
|
|
84
90
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -96,6 +102,8 @@ function ConversationDetailsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
96
102
|
i0.ɵɵproperty("value", ctx_r1.record.LinkedEntityID);
|
|
97
103
|
i0.ɵɵadvance(4);
|
|
98
104
|
i0.ɵɵproperty("value", ctx_r1.record.LinkedRecordID);
|
|
105
|
+
i0.ɵɵadvance(4);
|
|
106
|
+
i0.ɵɵproperty("value", ctx_r1.record.DataContextID);
|
|
99
107
|
i0.ɵɵadvance(5);
|
|
100
108
|
i0.ɵɵtextInterpolate(ctx_r1.FormatValue("CreatedAt", 0));
|
|
101
109
|
i0.ɵɵadvance(5);
|
|
@@ -149,28 +157,34 @@ function ConversationDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
149
157
|
i0.ɵɵtext(35);
|
|
150
158
|
i0.ɵɵelementEnd()();
|
|
151
159
|
i0.ɵɵelementStart(36, "div", 3)(37, "label", 4);
|
|
152
|
-
i0.ɵɵtext(38, "
|
|
160
|
+
i0.ɵɵtext(38, "Data Context ID");
|
|
153
161
|
i0.ɵɵelementEnd();
|
|
154
162
|
i0.ɵɵelementStart(39, "span");
|
|
155
163
|
i0.ɵɵtext(40);
|
|
156
164
|
i0.ɵɵelementEnd()();
|
|
157
165
|
i0.ɵɵelementStart(41, "div", 3)(42, "label", 4);
|
|
158
|
-
i0.ɵɵtext(43, "
|
|
166
|
+
i0.ɵɵtext(43, "Created At");
|
|
159
167
|
i0.ɵɵelementEnd();
|
|
160
168
|
i0.ɵɵelementStart(44, "span");
|
|
161
169
|
i0.ɵɵtext(45);
|
|
162
170
|
i0.ɵɵelementEnd()();
|
|
163
171
|
i0.ɵɵelementStart(46, "div", 3)(47, "label", 4);
|
|
164
|
-
i0.ɵɵtext(48, "
|
|
172
|
+
i0.ɵɵtext(48, "Updated At");
|
|
165
173
|
i0.ɵɵelementEnd();
|
|
166
174
|
i0.ɵɵelementStart(49, "span");
|
|
167
175
|
i0.ɵɵtext(50);
|
|
168
176
|
i0.ɵɵelementEnd()();
|
|
169
177
|
i0.ɵɵelementStart(51, "div", 3)(52, "label", 4);
|
|
170
|
-
i0.ɵɵtext(53, "
|
|
178
|
+
i0.ɵɵtext(53, "User");
|
|
171
179
|
i0.ɵɵelementEnd();
|
|
172
180
|
i0.ɵɵelementStart(54, "span");
|
|
173
181
|
i0.ɵɵtext(55);
|
|
182
|
+
i0.ɵɵelementEnd()();
|
|
183
|
+
i0.ɵɵelementStart(56, "div", 3)(57, "label", 4);
|
|
184
|
+
i0.ɵɵtext(58, "Linked Entity");
|
|
185
|
+
i0.ɵɵelementEnd();
|
|
186
|
+
i0.ɵɵelementStart(59, "span");
|
|
187
|
+
i0.ɵɵtext(60);
|
|
174
188
|
i0.ɵɵelementEnd()()();
|
|
175
189
|
} if (rf & 2) {
|
|
176
190
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -193,6 +207,8 @@ function ConversationDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
193
207
|
i0.ɵɵadvance(5);
|
|
194
208
|
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("LinkedRecordID", 0));
|
|
195
209
|
i0.ɵɵadvance(5);
|
|
210
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("DataContextID", 0));
|
|
211
|
+
i0.ɵɵadvance(5);
|
|
196
212
|
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("CreatedAt", 0));
|
|
197
213
|
i0.ɵɵadvance(5);
|
|
198
214
|
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("UpdatedAt", 0));
|
|
@@ -203,7 +219,7 @@ function ConversationDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
203
219
|
} }
|
|
204
220
|
function ConversationDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
205
221
|
i0.ɵɵelementStart(0, "div");
|
|
206
|
-
i0.ɵɵtemplate(1, ConversationDetailsComponent_div_0_div_1_Template,
|
|
222
|
+
i0.ɵɵtemplate(1, ConversationDetailsComponent_div_0_div_1_Template, 53, 12, "div", 1)(2, ConversationDetailsComponent_div_0_div_2_Template, 61, 14, "div", 1);
|
|
207
223
|
i0.ɵɵelementEnd();
|
|
208
224
|
} if (rf & 2) {
|
|
209
225
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -261,6 +277,10 @@ export { ConversationDetailsComponent };
|
|
|
261
277
|
<label class="fieldLabel">Linked Record ID</label>
|
|
262
278
|
<kendo-numerictextbox [(value)]="record.LinkedRecordID" ></kendo-numerictextbox>
|
|
263
279
|
</div>
|
|
280
|
+
<div class="record-form-row">
|
|
281
|
+
<label class="fieldLabel">Data Context ID</label>
|
|
282
|
+
<kendo-numerictextbox [(value)]="record.DataContextID" ></kendo-numerictextbox>
|
|
283
|
+
</div>
|
|
264
284
|
<div class="record-form-row">
|
|
265
285
|
<label class="fieldLabel">Created At</label>
|
|
266
286
|
<span >{{FormatValue('CreatedAt', 0)}}</span>
|
|
@@ -308,6 +328,10 @@ export { ConversationDetailsComponent };
|
|
|
308
328
|
<label class="fieldLabel">Linked Record ID</label>
|
|
309
329
|
<span >{{FormatValue('LinkedRecordID', 0)}}</span>
|
|
310
330
|
</div>
|
|
331
|
+
<div class="record-form-row">
|
|
332
|
+
<label class="fieldLabel">Data Context ID</label>
|
|
333
|
+
<span >{{FormatValue('DataContextID', 0)}}</span>
|
|
334
|
+
</div>
|
|
311
335
|
<div class="record-form-row">
|
|
312
336
|
<label class="fieldLabel">Created At</label>
|
|
313
337
|
<span >{{FormatValue('CreatedAt', 0)}}</span>
|
|
@@ -332,7 +356,7 @@ export { ConversationDetailsComponent };
|
|
|
332
356
|
}], EditMode: [{
|
|
333
357
|
type: Input
|
|
334
358
|
}] }); })();
|
|
335
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConversationDetailsComponent, { className: "ConversationDetailsComponent", filePath: "src\\lib\\generated\\Entities\\Conversation\\sections\\details.component.ts", lineNumber:
|
|
359
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConversationDetailsComponent, { className: "ConversationDetailsComponent", filePath: "src\\lib\\generated\\Entities\\Conversation\\sections\\details.component.ts", lineNumber: 116 }); })();
|
|
336
360
|
export function LoadConversationDetailsComponent() {
|
|
337
361
|
// does nothing, but called in order to prevent tree-shaking from eliminating this component from the build
|
|
338
362
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataContextEntity } from '@memberjunction/core-entities';
|
|
2
|
+
import { BaseFormComponent } from '@memberjunction/ng-explorer-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataContextFormComponent extends BaseFormComponent {
|
|
5
|
+
record: DataContextEntity;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataContextFormComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataContextFormComponent, "gen-datacontext-form", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare function LoadDataContextFormComponent(): void;
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import { Component } from '@angular/core';
|
|
8
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
9
|
+
import { BaseFormComponent } from '@memberjunction/ng-explorer-core';
|
|
10
|
+
import { LoadDataContextDetailsComponent } from "./sections/details.component";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/common";
|
|
13
|
+
import * as i2 from "@angular/forms";
|
|
14
|
+
import * as i3 from "@progress/kendo-angular-layout";
|
|
15
|
+
import * as i4 from "@memberjunction/ng-explorer-core";
|
|
16
|
+
import * as i5 from "@memberjunction/ng-user-view-grid";
|
|
17
|
+
function DataContextFormComponent_form_1_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵtext(0, "Details");
|
|
19
|
+
} }
|
|
20
|
+
function DataContextFormComponent_form_1_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelement(0, "mj-form-section", 12);
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
24
|
+
i0.ɵɵproperty("record", ctx_r5.record)("EditMode", ctx_r5.EditMode);
|
|
25
|
+
} }
|
|
26
|
+
function DataContextFormComponent_form_1_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
+
i0.ɵɵtext(0, "Data Context Items");
|
|
28
|
+
} }
|
|
29
|
+
function DataContextFormComponent_form_1_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
+
i0.ɵɵelement(0, "mj-user-view-grid", 13);
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
33
|
+
i0.ɵɵproperty("Params", ctx_r7.BuildRelationshipViewParamsByEntityName("Data Context Items"))("AllowLoad", ctx_r7.IsCurrentTab("Data Context Items"))("EditMode", ctx_r7.GridEditMode())("BottomMargin", ctx_r7.GridBottomMargin);
|
|
34
|
+
} }
|
|
35
|
+
function DataContextFormComponent_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
37
|
+
i0.ɵɵelementStart(0, "form", 2, 3)(2, "div", 4, 5);
|
|
38
|
+
i0.ɵɵelement(4, "mj-form-toolbar", 6);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
i0.ɵɵelementStart(5, "kendo-tabstrip", 7, 8);
|
|
41
|
+
i0.ɵɵlistener("tabSelect", function DataContextFormComponent_form_1_Template_kendo_tabstrip_tabSelect_5_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onTabSelect($event)); });
|
|
42
|
+
i0.ɵɵelementStart(7, "kendo-tabstrip-tab", 9);
|
|
43
|
+
i0.ɵɵtemplate(8, DataContextFormComponent_form_1_ng_template_8_Template, 1, 0, "ng-template", 10)(9, DataContextFormComponent_form_1_ng_template_9_Template, 1, 2, "ng-template", 11);
|
|
44
|
+
i0.ɵɵelementEnd();
|
|
45
|
+
i0.ɵɵelementStart(10, "kendo-tabstrip-tab", 9);
|
|
46
|
+
i0.ɵɵtemplate(11, DataContextFormComponent_form_1_ng_template_11_Template, 1, 0, "ng-template", 10)(12, DataContextFormComponent_form_1_ng_template_12_Template, 1, 4, "ng-template", 11);
|
|
47
|
+
i0.ɵɵelementEnd()()();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
50
|
+
i0.ɵɵadvance(4);
|
|
51
|
+
i0.ɵɵproperty("form", ctx_r0);
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
|
+
i0.ɵɵproperty("keepTabContent", true)("animate", false)("height", ctx_r0.TabHeight);
|
|
54
|
+
i0.ɵɵadvance(2);
|
|
55
|
+
i0.ɵɵproperty("selected", ctx_r0.RegisterAndCheckIfCurrentTab("Details"));
|
|
56
|
+
i0.ɵɵadvance(3);
|
|
57
|
+
i0.ɵɵproperty("selected", ctx_r0.RegisterAndCheckIfCurrentTab("Data Context Items"));
|
|
58
|
+
} }
|
|
59
|
+
let DataContextFormComponent = class DataContextFormComponent extends BaseFormComponent {
|
|
60
|
+
};
|
|
61
|
+
DataContextFormComponent.ɵfac = /*@__PURE__*/ (() => { let ɵDataContextFormComponent_BaseFactory; return function DataContextFormComponent_Factory(t) { return (ɵDataContextFormComponent_BaseFactory || (ɵDataContextFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DataContextFormComponent)))(t || DataContextFormComponent); }; })();
|
|
62
|
+
DataContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextFormComponent, selectors: [["gen-datacontext-form"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "record-form-container"], ["class", "record-form", 4, "ngIf"], [1, "record-form"], ["form", "ngForm"], [1, "record-form-group"], ["topArea", ""], [3, "form"], [3, "keepTabContent", "animate", "height", "tabSelect"], ["tabStrip", ""], [3, "selected"], ["kendoTabTitle", ""], ["kendoTabContent", ""], ["Entity", "Data Contexts", "Section", "details", 3, "record", "EditMode"], [3, "Params", "AllowLoad", "EditMode", "BottomMargin"]], template: function DataContextFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
63
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
64
|
+
i0.ɵɵtemplate(1, DataContextFormComponent_form_1_Template, 13, 6, "form", 1);
|
|
65
|
+
i0.ɵɵelementEnd();
|
|
66
|
+
} if (rf & 2) {
|
|
67
|
+
i0.ɵɵadvance();
|
|
68
|
+
i0.ɵɵproperty("ngIf", ctx.record);
|
|
69
|
+
} }, dependencies: [i1.NgIf, i2.ɵNgNoValidate, i2.NgControlStatusGroup, i2.NgForm, i3.TabStripComponent, i3.TabStripTabComponent, i3.TabContentDirective, i3.TabTitleDirective, i4.FormToolbarComponent, i4.SectionLoaderComponent, i5.UserViewGridComponent], styles: ["a[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group[_ngcontent-%COMP%] {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton[_ngcontent-%COMP%] {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter[_ngcontent-%COMP%] {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row[_ngcontent-%COMP%] {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form[_ngcontent-%COMP%] {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}"] });
|
|
70
|
+
DataContextFormComponent = __decorate([
|
|
71
|
+
RegisterClass(BaseFormComponent, 'Data Contexts') // Tell MemberJunction about this class
|
|
72
|
+
], DataContextFormComponent);
|
|
73
|
+
export { DataContextFormComponent };
|
|
74
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextFormComponent, [{
|
|
75
|
+
type: Component,
|
|
76
|
+
args: [{ selector: 'gen-datacontext-form', template: "<div class=\"record-form-container\">\n <form *ngIf=\"record\" class=\"record-form\" #form=\"ngForm\">\n <div #topArea class=\"record-form-group\">\n <mj-form-toolbar [form]=\"this\"></mj-form-toolbar>\n \n </div>\n <kendo-tabstrip #tabStrip (tabSelect)=\"onTabSelect($event)\" [keepTabContent]=\"true\" [animate] = \"false\" [height]=\"TabHeight\" >\n \n <kendo-tabstrip-tab [selected]=\"this.RegisterAndCheckIfCurrentTab('Details')\">\n <ng-template kendoTabTitle>Details</ng-template>\n <ng-template kendoTabContent >\n <mj-form-section Entity=\"Data Contexts\" Section=\"details\" [record]=\"record\" [EditMode]=\"this.EditMode\"></mj-form-section>\n </ng-template>\n </kendo-tabstrip-tab>\n \n <kendo-tabstrip-tab [selected]=\"this.RegisterAndCheckIfCurrentTab('Data Context Items')\">\n <ng-template kendoTabTitle>Data Context Items</ng-template>\n <ng-template kendoTabContent >\n <mj-user-view-grid [Params]=\"this.BuildRelationshipViewParamsByEntityName('Data Context Items')\" \n [AllowLoad]=\"this.IsCurrentTab('Data Context Items')\" \n [EditMode]=\"this.GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\"></mj-user-view-grid>\n </ng-template>\n </kendo-tabstrip-tab>\n </kendo-tabstrip>\n </form>\n </div>\n ", styles: ["a {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form h2 {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n/* .record-form .record-form-row:nth-child(odd) {\r\n background-color: #f2f2f2; \r\n} */\r\n\r\n/* \r\n.record-form .record-form-row:nth-child(even) {\r\n background-color: #ffffff; \r\n} */\r\n\r\n.record-form .record-form-row > :first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form .record-form-row > span {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row label {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}\r\n"] }]
|
|
77
|
+
}], null, null); })();
|
|
78
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextFormComponent, { className: "DataContextFormComponent", filePath: "src\\lib\\generated\\Entities\\DataContext\\datacontext.form.component.ts", lineNumber: 12 }); })();
|
|
79
|
+
export function LoadDataContextFormComponent() {
|
|
80
|
+
LoadDataContextDetailsComponent();
|
|
81
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFormSectionComponent } from '@memberjunction/ng-explorer-core';
|
|
2
|
+
import { DataContextEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataContextDetailsComponent extends BaseFormSectionComponent {
|
|
5
|
+
record: DataContextEntity;
|
|
6
|
+
EditMode: boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataContextDetailsComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataContextDetailsComponent, "gen-datacontext-form-details", never, { "record": { "alias": "record"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare function LoadDataContextDetailsComponent(): void;
|
|
@@ -0,0 +1,241 @@
|
|
|
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
|
+
import { Component, Input } from '@angular/core';
|
|
8
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
9
|
+
import { BaseFormSectionComponent } from '@memberjunction/ng-explorer-core';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@angular/common";
|
|
12
|
+
import * as i2 from "@angular/forms";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-inputs";
|
|
14
|
+
import * as i4 from "@progress/kendo-angular-dateinputs";
|
|
15
|
+
import * as i5 from "@memberjunction/ng-link-directives";
|
|
16
|
+
function DataContextDetailsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "label", 4);
|
|
19
|
+
i0.ɵɵtext(3, "Name");
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementStart(4, "kendo-textarea", 5);
|
|
22
|
+
i0.ɵɵlistener("ngModelChange", function DataContextDetailsComponent_div_0_div_1_Template_kendo_textarea_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.record.Name = $event); });
|
|
23
|
+
i0.ɵɵelementEnd()();
|
|
24
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "label", 4);
|
|
25
|
+
i0.ɵɵtext(7, "User ID");
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(8, "kendo-numerictextbox", 6);
|
|
28
|
+
i0.ɵɵlistener("valueChange", function DataContextDetailsComponent_div_0_div_1_Template_kendo_numerictextbox_valueChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.record.UserID = $event); });
|
|
29
|
+
i0.ɵɵelementEnd()();
|
|
30
|
+
i0.ɵɵelementStart(9, "div", 3)(10, "label", 4);
|
|
31
|
+
i0.ɵɵtext(11, "Description");
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(12, "kendo-textbox", 5);
|
|
34
|
+
i0.ɵɵlistener("ngModelChange", function DataContextDetailsComponent_div_0_div_1_Template_kendo_textbox_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.record.Description = $event); });
|
|
35
|
+
i0.ɵɵelementEnd()();
|
|
36
|
+
i0.ɵɵelementStart(13, "div", 3)(14, "label", 4);
|
|
37
|
+
i0.ɵɵtext(15, "Last Refreshed At");
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
i0.ɵɵelementStart(16, "kendo-datepicker", 6);
|
|
40
|
+
i0.ɵɵlistener("valueChange", function DataContextDetailsComponent_div_0_div_1_Template_kendo_datepicker_valueChange_16_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.record.LastRefreshedAt = $event); });
|
|
41
|
+
i0.ɵɵelementEnd()();
|
|
42
|
+
i0.ɵɵelementStart(17, "div", 3)(18, "label", 4);
|
|
43
|
+
i0.ɵɵtext(19, "Created At");
|
|
44
|
+
i0.ɵɵelementEnd();
|
|
45
|
+
i0.ɵɵelementStart(20, "span");
|
|
46
|
+
i0.ɵɵtext(21);
|
|
47
|
+
i0.ɵɵelementEnd()();
|
|
48
|
+
i0.ɵɵelementStart(22, "div", 3)(23, "label", 4);
|
|
49
|
+
i0.ɵɵtext(24, "Updated At");
|
|
50
|
+
i0.ɵɵelementEnd();
|
|
51
|
+
i0.ɵɵelementStart(25, "span");
|
|
52
|
+
i0.ɵɵtext(26);
|
|
53
|
+
i0.ɵɵelementEnd()();
|
|
54
|
+
i0.ɵɵelementStart(27, "div", 3)(28, "label", 4);
|
|
55
|
+
i0.ɵɵtext(29, "User");
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
i0.ɵɵelementStart(30, "span");
|
|
58
|
+
i0.ɵɵtext(31);
|
|
59
|
+
i0.ɵɵelementEnd()()();
|
|
60
|
+
} if (rf & 2) {
|
|
61
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
62
|
+
i0.ɵɵadvance(4);
|
|
63
|
+
i0.ɵɵproperty("ngModel", ctx_r1.record.Name);
|
|
64
|
+
i0.ɵɵadvance(4);
|
|
65
|
+
i0.ɵɵproperty("value", ctx_r1.record.UserID);
|
|
66
|
+
i0.ɵɵadvance(4);
|
|
67
|
+
i0.ɵɵproperty("ngModel", ctx_r1.record.Description);
|
|
68
|
+
i0.ɵɵadvance(4);
|
|
69
|
+
i0.ɵɵproperty("value", ctx_r1.record.LastRefreshedAt);
|
|
70
|
+
i0.ɵɵadvance(5);
|
|
71
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatValue("CreatedAt", 0));
|
|
72
|
+
i0.ɵɵadvance(5);
|
|
73
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatValue("UpdatedAt", 0));
|
|
74
|
+
i0.ɵɵadvance(5);
|
|
75
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormatValue("User", 0));
|
|
76
|
+
} }
|
|
77
|
+
function DataContextDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "label", 4);
|
|
79
|
+
i0.ɵɵtext(3, "Name");
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
i0.ɵɵelementStart(4, "span");
|
|
82
|
+
i0.ɵɵtext(5);
|
|
83
|
+
i0.ɵɵelementEnd()();
|
|
84
|
+
i0.ɵɵelementStart(6, "div", 3)(7, "label", 4);
|
|
85
|
+
i0.ɵɵtext(8, "User ID");
|
|
86
|
+
i0.ɵɵelementEnd();
|
|
87
|
+
i0.ɵɵelementStart(9, "span", 7);
|
|
88
|
+
i0.ɵɵtext(10);
|
|
89
|
+
i0.ɵɵelementEnd()();
|
|
90
|
+
i0.ɵɵelementStart(11, "div", 3)(12, "label", 4);
|
|
91
|
+
i0.ɵɵtext(13, "Description");
|
|
92
|
+
i0.ɵɵelementEnd();
|
|
93
|
+
i0.ɵɵelementStart(14, "span");
|
|
94
|
+
i0.ɵɵtext(15);
|
|
95
|
+
i0.ɵɵelementEnd()();
|
|
96
|
+
i0.ɵɵelementStart(16, "div", 3)(17, "label", 4);
|
|
97
|
+
i0.ɵɵtext(18, "Last Refreshed At");
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
i0.ɵɵelementStart(19, "span");
|
|
100
|
+
i0.ɵɵtext(20);
|
|
101
|
+
i0.ɵɵelementEnd()();
|
|
102
|
+
i0.ɵɵelementStart(21, "div", 3)(22, "label", 4);
|
|
103
|
+
i0.ɵɵtext(23, "Created At");
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
i0.ɵɵelementStart(24, "span");
|
|
106
|
+
i0.ɵɵtext(25);
|
|
107
|
+
i0.ɵɵelementEnd()();
|
|
108
|
+
i0.ɵɵelementStart(26, "div", 3)(27, "label", 4);
|
|
109
|
+
i0.ɵɵtext(28, "Updated At");
|
|
110
|
+
i0.ɵɵelementEnd();
|
|
111
|
+
i0.ɵɵelementStart(29, "span");
|
|
112
|
+
i0.ɵɵtext(30);
|
|
113
|
+
i0.ɵɵelementEnd()();
|
|
114
|
+
i0.ɵɵelementStart(31, "div", 3)(32, "label", 4);
|
|
115
|
+
i0.ɵɵtext(33, "User");
|
|
116
|
+
i0.ɵɵelementEnd();
|
|
117
|
+
i0.ɵɵelementStart(34, "span");
|
|
118
|
+
i0.ɵɵtext(35);
|
|
119
|
+
i0.ɵɵelementEnd()()();
|
|
120
|
+
} if (rf & 2) {
|
|
121
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
122
|
+
i0.ɵɵadvance(5);
|
|
123
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("Name", 0));
|
|
124
|
+
i0.ɵɵadvance(4);
|
|
125
|
+
i0.ɵɵproperty("record", ctx_r2.record);
|
|
126
|
+
i0.ɵɵadvance();
|
|
127
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("UserID", 0));
|
|
128
|
+
i0.ɵɵadvance(5);
|
|
129
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("Description", 0));
|
|
130
|
+
i0.ɵɵadvance(5);
|
|
131
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("LastRefreshedAt", 0));
|
|
132
|
+
i0.ɵɵadvance(5);
|
|
133
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("CreatedAt", 0));
|
|
134
|
+
i0.ɵɵadvance(5);
|
|
135
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("UpdatedAt", 0));
|
|
136
|
+
i0.ɵɵadvance(5);
|
|
137
|
+
i0.ɵɵtextInterpolate(ctx_r2.FormatValue("User", 0));
|
|
138
|
+
} }
|
|
139
|
+
function DataContextDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
+
i0.ɵɵelementStart(0, "div");
|
|
141
|
+
i0.ɵɵtemplate(1, DataContextDetailsComponent_div_0_div_1_Template, 32, 7, "div", 1)(2, DataContextDetailsComponent_div_0_div_2_Template, 36, 8, "div", 1);
|
|
142
|
+
i0.ɵɵelementEnd();
|
|
143
|
+
} if (rf & 2) {
|
|
144
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
145
|
+
i0.ɵɵadvance();
|
|
146
|
+
i0.ɵɵproperty("ngIf", ctx_r0.EditMode);
|
|
147
|
+
i0.ɵɵadvance();
|
|
148
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.EditMode);
|
|
149
|
+
} }
|
|
150
|
+
let DataContextDetailsComponent = class DataContextDetailsComponent extends BaseFormSectionComponent {
|
|
151
|
+
constructor() {
|
|
152
|
+
super(...arguments);
|
|
153
|
+
this.EditMode = false;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
DataContextDetailsComponent.ɵfac = /*@__PURE__*/ (() => { let ɵDataContextDetailsComponent_BaseFactory; return function DataContextDetailsComponent_Factory(t) { return (ɵDataContextDetailsComponent_BaseFactory || (ɵDataContextDetailsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DataContextDetailsComponent)))(t || DataContextDetailsComponent); }; })();
|
|
157
|
+
DataContextDetailsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextDetailsComponent, selectors: [["gen-datacontext-form-details"]], inputs: { record: "record", EditMode: "EditMode" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "record-form", 4, "ngIf"], [1, "record-form"], [1, "record-form-row"], [1, "fieldLabel"], [3, "ngModel", "ngModelChange"], [3, "value", "valueChange"], ["mjFieldLink", "", "fieldName", "UserID", 3, "record"]], template: function DataContextDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
158
|
+
i0.ɵɵtemplate(0, DataContextDetailsComponent_div_0_Template, 3, 2, "div", 0);
|
|
159
|
+
} if (rf & 2) {
|
|
160
|
+
i0.ɵɵproperty("ngIf", ctx.record);
|
|
161
|
+
} }, dependencies: [i1.NgIf, i2.NgControlStatus, i2.NgModel, i3.TextAreaComponent, i3.TextBoxComponent, i3.NumericTextBoxComponent, i4.DatePickerComponent, i5.FieldLink], styles: ["a[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group[_ngcontent-%COMP%] {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton[_ngcontent-%COMP%] {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter[_ngcontent-%COMP%] {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row[_ngcontent-%COMP%] {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form[_ngcontent-%COMP%] {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}"] });
|
|
162
|
+
DataContextDetailsComponent = __decorate([
|
|
163
|
+
RegisterClass(BaseFormSectionComponent, 'Data Contexts.details') // Tell MemberJunction about this class
|
|
164
|
+
], DataContextDetailsComponent);
|
|
165
|
+
export { DataContextDetailsComponent };
|
|
166
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextDetailsComponent, [{
|
|
167
|
+
type: Component,
|
|
168
|
+
args: [{ selector: 'gen-datacontext-form-details', template: `<div *ngIf="this.record">
|
|
169
|
+
<div *ngIf="this.EditMode" class="record-form">
|
|
170
|
+
|
|
171
|
+
<div class="record-form-row">
|
|
172
|
+
<label class="fieldLabel">Name</label>
|
|
173
|
+
<kendo-textarea [(ngModel)]="record.Name" ></kendo-textarea>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="record-form-row">
|
|
176
|
+
<label class="fieldLabel">User ID</label>
|
|
177
|
+
<kendo-numerictextbox [(value)]="record.UserID" ></kendo-numerictextbox>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="record-form-row">
|
|
180
|
+
<label class="fieldLabel">Description</label>
|
|
181
|
+
<kendo-textbox [(ngModel)]="record.Description" />
|
|
182
|
+
</div>
|
|
183
|
+
<div class="record-form-row">
|
|
184
|
+
<label class="fieldLabel">Last Refreshed At</label>
|
|
185
|
+
<kendo-datepicker [(value)]="record.LastRefreshedAt" ></kendo-datepicker>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="record-form-row">
|
|
188
|
+
<label class="fieldLabel">Created At</label>
|
|
189
|
+
<span >{{FormatValue('CreatedAt', 0)}}</span>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="record-form-row">
|
|
192
|
+
<label class="fieldLabel">Updated At</label>
|
|
193
|
+
<span >{{FormatValue('UpdatedAt', 0)}}</span>
|
|
194
|
+
</div>
|
|
195
|
+
<div class="record-form-row">
|
|
196
|
+
<label class="fieldLabel">User</label>
|
|
197
|
+
<span >{{FormatValue('User', 0)}}</span>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
<div *ngIf="!this.EditMode" class="record-form">
|
|
201
|
+
|
|
202
|
+
<div class="record-form-row">
|
|
203
|
+
<label class="fieldLabel">Name</label>
|
|
204
|
+
<span >{{FormatValue('Name', 0)}}</span>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="record-form-row">
|
|
207
|
+
<label class="fieldLabel">User ID</label>
|
|
208
|
+
<span mjFieldLink [record]="record" fieldName="UserID" >{{FormatValue('UserID', 0)}}</span>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="record-form-row">
|
|
211
|
+
<label class="fieldLabel">Description</label>
|
|
212
|
+
<span >{{FormatValue('Description', 0)}}</span>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="record-form-row">
|
|
215
|
+
<label class="fieldLabel">Last Refreshed At</label>
|
|
216
|
+
<span >{{FormatValue('LastRefreshedAt', 0)}}</span>
|
|
217
|
+
</div>
|
|
218
|
+
<div class="record-form-row">
|
|
219
|
+
<label class="fieldLabel">Created At</label>
|
|
220
|
+
<span >{{FormatValue('CreatedAt', 0)}}</span>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="record-form-row">
|
|
223
|
+
<label class="fieldLabel">Updated At</label>
|
|
224
|
+
<span >{{FormatValue('UpdatedAt', 0)}}</span>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="record-form-row">
|
|
227
|
+
<label class="fieldLabel">User</label>
|
|
228
|
+
<span >{{FormatValue('User', 0)}}</span>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
`, styles: ["a {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form h2 {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n/* .record-form .record-form-row:nth-child(odd) {\r\n background-color: #f2f2f2; \r\n} */\r\n\r\n/* \r\n.record-form .record-form-row:nth-child(even) {\r\n background-color: #ffffff; \r\n} */\r\n\r\n.record-form .record-form-row > :first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form .record-form-row > span {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row label {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}\r\n"] }]
|
|
233
|
+
}], null, { record: [{
|
|
234
|
+
type: Input
|
|
235
|
+
}], EditMode: [{
|
|
236
|
+
type: Input
|
|
237
|
+
}] }); })();
|
|
238
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextDetailsComponent, { className: "DataContextDetailsComponent", filePath: "src\\lib\\generated\\Entities\\DataContext\\sections\\details.component.ts", lineNumber: 76 }); })();
|
|
239
|
+
export function LoadDataContextDetailsComponent() {
|
|
240
|
+
// does nothing, but called in order to prevent tree-shaking from eliminating this component from the build
|
|
241
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataContextItemEntity } from '@memberjunction/core-entities';
|
|
2
|
+
import { BaseFormComponent } from '@memberjunction/ng-explorer-core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataContextItemFormComponent extends BaseFormComponent {
|
|
5
|
+
record: DataContextItemEntity;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataContextItemFormComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataContextItemFormComponent, "gen-datacontextitem-form", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare function LoadDataContextItemFormComponent(): void;
|
|
@@ -0,0 +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
|
+
import { Component } from '@angular/core';
|
|
8
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
9
|
+
import { BaseFormComponent } from '@memberjunction/ng-explorer-core';
|
|
10
|
+
import { LoadDataContextItemDetailsComponent } from "./sections/details.component";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/common";
|
|
13
|
+
import * as i2 from "@angular/forms";
|
|
14
|
+
import * as i3 from "@progress/kendo-angular-layout";
|
|
15
|
+
import * as i4 from "@memberjunction/ng-explorer-core";
|
|
16
|
+
function DataContextItemFormComponent_form_1_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
i0.ɵɵtext(0, "Details");
|
|
18
|
+
} }
|
|
19
|
+
function DataContextItemFormComponent_form_1_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelement(0, "mj-form-section", 12);
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
23
|
+
i0.ɵɵproperty("record", ctx_r5.record)("EditMode", ctx_r5.EditMode);
|
|
24
|
+
} }
|
|
25
|
+
function DataContextItemFormComponent_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
27
|
+
i0.ɵɵelementStart(0, "form", 2, 3)(2, "div", 4, 5);
|
|
28
|
+
i0.ɵɵelement(4, "mj-form-toolbar", 6);
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
i0.ɵɵelementStart(5, "kendo-tabstrip", 7, 8);
|
|
31
|
+
i0.ɵɵlistener("tabSelect", function DataContextItemFormComponent_form_1_Template_kendo_tabstrip_tabSelect_5_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.onTabSelect($event)); });
|
|
32
|
+
i0.ɵɵelementStart(7, "kendo-tabstrip-tab", 9);
|
|
33
|
+
i0.ɵɵtemplate(8, DataContextItemFormComponent_form_1_ng_template_8_Template, 1, 0, "ng-template", 10)(9, DataContextItemFormComponent_form_1_ng_template_9_Template, 1, 2, "ng-template", 11);
|
|
34
|
+
i0.ɵɵelementEnd()()();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
|
+
i0.ɵɵadvance(4);
|
|
38
|
+
i0.ɵɵproperty("form", ctx_r0);
|
|
39
|
+
i0.ɵɵadvance();
|
|
40
|
+
i0.ɵɵproperty("keepTabContent", true)("animate", false)("height", ctx_r0.TabHeight);
|
|
41
|
+
i0.ɵɵadvance(2);
|
|
42
|
+
i0.ɵɵproperty("selected", ctx_r0.RegisterAndCheckIfCurrentTab("Details"));
|
|
43
|
+
} }
|
|
44
|
+
let DataContextItemFormComponent = class DataContextItemFormComponent extends BaseFormComponent {
|
|
45
|
+
};
|
|
46
|
+
DataContextItemFormComponent.ɵfac = /*@__PURE__*/ (() => { let ɵDataContextItemFormComponent_BaseFactory; return function DataContextItemFormComponent_Factory(t) { return (ɵDataContextItemFormComponent_BaseFactory || (ɵDataContextItemFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DataContextItemFormComponent)))(t || DataContextItemFormComponent); }; })();
|
|
47
|
+
DataContextItemFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DataContextItemFormComponent, selectors: [["gen-datacontextitem-form"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "record-form-container"], ["class", "record-form", 4, "ngIf"], [1, "record-form"], ["form", "ngForm"], [1, "record-form-group"], ["topArea", ""], [3, "form"], [3, "keepTabContent", "animate", "height", "tabSelect"], ["tabStrip", ""], [3, "selected"], ["kendoTabTitle", ""], ["kendoTabContent", ""], ["Entity", "Data Context Items", "Section", "details", 3, "record", "EditMode"]], template: function DataContextItemFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
49
|
+
i0.ɵɵtemplate(1, DataContextItemFormComponent_form_1_Template, 10, 5, "form", 1);
|
|
50
|
+
i0.ɵɵelementEnd();
|
|
51
|
+
} if (rf & 2) {
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
|
+
i0.ɵɵproperty("ngIf", ctx.record);
|
|
54
|
+
} }, dependencies: [i1.NgIf, i2.ɵNgNoValidate, i2.NgControlStatusGroup, i2.NgForm, i3.TabStripComponent, i3.TabStripTabComponent, i3.TabContentDirective, i3.TabTitleDirective, i4.FormToolbarComponent, i4.SectionLoaderComponent], styles: ["a[_ngcontent-%COMP%] {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group[_ngcontent-%COMP%] {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton[_ngcontent-%COMP%] {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter[_ngcontent-%COMP%] {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row[_ngcontent-%COMP%] {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n\r\n\r\n\r\n\n\r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form[_ngcontent-%COMP%] .record-form-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form[_ngcontent-%COMP%] {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}"] });
|
|
55
|
+
DataContextItemFormComponent = __decorate([
|
|
56
|
+
RegisterClass(BaseFormComponent, 'Data Context Items') // Tell MemberJunction about this class
|
|
57
|
+
], DataContextItemFormComponent);
|
|
58
|
+
export { DataContextItemFormComponent };
|
|
59
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DataContextItemFormComponent, [{
|
|
60
|
+
type: Component,
|
|
61
|
+
args: [{ selector: 'gen-datacontextitem-form', template: "<div class=\"record-form-container\">\n <form *ngIf=\"record\" class=\"record-form\" #form=\"ngForm\">\n <div #topArea class=\"record-form-group\">\n <mj-form-toolbar [form]=\"this\"></mj-form-toolbar>\n \n </div>\n <kendo-tabstrip #tabStrip (tabSelect)=\"onTabSelect($event)\" [keepTabContent]=\"true\" [animate] = \"false\" [height]=\"TabHeight\" >\n \n <kendo-tabstrip-tab [selected]=\"this.RegisterAndCheckIfCurrentTab('Details')\">\n <ng-template kendoTabTitle>Details</ng-template>\n <ng-template kendoTabContent >\n <mj-form-section Entity=\"Data Context Items\" Section=\"details\" [record]=\"record\" [EditMode]=\"this.EditMode\"></mj-form-section>\n </ng-template>\n </kendo-tabstrip-tab>\n \n </kendo-tabstrip>\n </form>\n </div>\n ", styles: ["a {\r\n font-size: 14px;\r\n font-weight: bolder;\r\n}\r\n\r\n.record-form {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.record-form-group {\r\n margin-top: 0px;\r\n}\r\n\r\nbutton {\r\n margin-right: 5px;\r\n}\r\n\r\n.record-form h2 {\r\n margin-bottom: 10px;\r\n}\r\n\r\n.k-splitter {\r\n border-width: 0px;\r\n}\r\n\r\n.record-form-row {\r\n display: grid;\r\n grid-template-columns: auto 1fr;\r\n align-items: start;\r\n gap: 10px;\r\n margin-bottom: 12px;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n}\r\n\r\n\r\n/* .record-form .record-form-row:nth-child(odd) {\r\n background-color: #f2f2f2; \r\n} */\r\n\r\n/* \r\n.record-form .record-form-row:nth-child(even) {\r\n background-color: #ffffff; \r\n} */\r\n\r\n.record-form .record-form-row > :first-child {\r\n font-weight: bold;\r\n padding-right: 10px;\r\n} \r\n\r\n.record-form .record-form-row > span {\r\n white-space: pre-line;\r\n max-height: 300px;\r\n overflow: auto;\r\n}\r\n\r\n \r\n\r\n@media (min-width: 768px) {\r\n .record-form {\r\n padding-left: 5px;\r\n padding-right: 5px;\r\n padding-bottom: 5px;\r\n }\r\n\r\n .record-form-row {\r\n flex-direction: row;\r\n align-items: center;\r\n }\r\n\r\n .record-form-row label {\r\n width: 240px;\r\n margin-bottom: 0;\r\n }\r\n}\r\n"] }]
|
|
62
|
+
}], null, null); })();
|
|
63
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DataContextItemFormComponent, { className: "DataContextItemFormComponent", filePath: "src\\lib\\generated\\Entities\\DataContextItem\\datacontextitem.form.component.ts", lineNumber: 12 }); })();
|
|
64
|
+
export function LoadDataContextItemFormComponent() {
|
|
65
|
+
LoadDataContextItemDetailsComponent();
|
|
66
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFormSectionComponent } from '@memberjunction/ng-explorer-core';
|
|
2
|
+
import { DataContextItemEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataContextItemDetailsComponent extends BaseFormSectionComponent {
|
|
5
|
+
record: DataContextItemEntity;
|
|
6
|
+
EditMode: boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataContextItemDetailsComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataContextItemDetailsComponent, "gen-datacontextitem-form-details", never, { "record": { "alias": "record"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare function LoadDataContextItemDetailsComponent(): void;
|