@memberjunction/ng-core-entity-forms 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/generated/Entities/AIModel/aimodel.form.component.js +19 -8
- package/dist/lib/generated/Entities/AIModel/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/AIModel/sections/details.component.js +13 -4
- package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPrompt/aiprompt.form.component.js +72 -0
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.d.ts +11 -0
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPrompt/sections/details.component.js +175 -0
- package/dist/lib/generated/Entities/AIPromptCategory/aipromptcategory.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/AIPromptCategory/aipromptcategory.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPromptCategory/aipromptcategory.form.component.js +83 -0
- package/dist/lib/generated/Entities/AIPromptCategory/sections/details.component.d.ts +11 -0
- package/dist/lib/generated/Entities/AIPromptCategory/sections/details.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPromptCategory/sections/details.component.js +108 -0
- package/dist/lib/generated/Entities/AIPromptType/aiprompttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/AIPromptType/aiprompttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPromptType/aiprompttype.form.component.js +72 -0
- package/dist/lib/generated/Entities/AIPromptType/sections/details.component.d.ts +11 -0
- package/dist/lib/generated/Entities/AIPromptType/sections/details.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIPromptType/sections/details.component.js +88 -0
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.js +60 -0
- package/dist/lib/generated/Entities/AIResultCache/sections/details.component.d.ts +11 -0
- package/dist/lib/generated/Entities/AIResultCache/sections/details.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/AIResultCache/sections/details.component.js +155 -0
- package/dist/lib/generated/Entities/Template/template.form.component.js +19 -8
- package/dist/lib/generated/generated-forms.module.d.ts +291 -278
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
- package/dist/lib/generated/generated-forms.module.js +291 -202
- package/package.json +11 -11
|
@@ -18,7 +18,8 @@ import * as i6 from "@memberjunction/ng-tabstrip";
|
|
|
18
18
|
import * as i7 from "@memberjunction/ng-container-directives";
|
|
19
19
|
const _c0 = () => ({ EntityRelationshipID: "CDD61E0C-31AE-4068-BA4D-00E7672D9EE6" });
|
|
20
20
|
const _c1 = () => ({ EntityRelationshipID: "66CB4FC4-BD66-4325-B1BF-85707475A25C" });
|
|
21
|
-
const _c2 = () => ({ EntityRelationshipID: "
|
|
21
|
+
const _c2 = () => ({ EntityRelationshipID: "64D6B0B0-BF59-EF11-991A-000D3A9D8BF3" });
|
|
22
|
+
const _c3 = () => ({ EntityRelationshipID: "334567F3-3E3B-EF11-86D4-0022481D1B23" });
|
|
22
23
|
function TemplateFormComponent_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
23
24
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
24
25
|
i0.ɵɵelementStart(0, "form", 3, 0);
|
|
@@ -44,10 +45,16 @@ function TemplateFormComponent_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
44
45
|
i0.ɵɵelement(15, "mj-user-view-grid", 9);
|
|
45
46
|
i0.ɵɵelementEnd();
|
|
46
47
|
i0.ɵɵelementStart(16, "mj-tab", 11);
|
|
47
|
-
i0.ɵɵtext(17, "
|
|
48
|
+
i0.ɵɵtext(17, " AI Prompts ");
|
|
48
49
|
i0.ɵɵelementEnd();
|
|
49
50
|
i0.ɵɵelementStart(18, "mj-tab-body");
|
|
50
51
|
i0.ɵɵelement(19, "mj-user-view-grid", 9);
|
|
52
|
+
i0.ɵɵelementEnd();
|
|
53
|
+
i0.ɵɵelementStart(20, "mj-tab", 12);
|
|
54
|
+
i0.ɵɵtext(21, " Entity Documents ");
|
|
55
|
+
i0.ɵɵelementEnd();
|
|
56
|
+
i0.ɵɵelementStart(22, "mj-tab-body");
|
|
57
|
+
i0.ɵɵelement(23, "mj-user-view-grid", 9);
|
|
51
58
|
i0.ɵɵelementEnd()()();
|
|
52
59
|
} if (rf & 2) {
|
|
53
60
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -56,24 +63,28 @@ function TemplateFormComponent_form_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
56
63
|
i0.ɵɵadvance(5);
|
|
57
64
|
i0.ɵɵproperty("record", ctx_r1.record)("EditMode", ctx_r1.EditMode);
|
|
58
65
|
i0.ɵɵadvance();
|
|
59
|
-
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(
|
|
66
|
+
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(31, _c0));
|
|
60
67
|
i0.ɵɵadvance(3);
|
|
61
68
|
i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Template Contents"))("NewRecordValues", ctx_r1.NewRecordValues("Template Contents"))("AllowLoad", ctx_r1.IsCurrentTab("Template Contents"))("EditMode", ctx_r1.GridEditMode())("BottomMargin", ctx_r1.GridBottomMargin);
|
|
62
69
|
i0.ɵɵadvance();
|
|
63
|
-
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(
|
|
70
|
+
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(32, _c1));
|
|
64
71
|
i0.ɵɵadvance(3);
|
|
65
72
|
i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Template Params"))("NewRecordValues", ctx_r1.NewRecordValues("Template Params"))("AllowLoad", ctx_r1.IsCurrentTab("Template Params"))("EditMode", ctx_r1.GridEditMode())("BottomMargin", ctx_r1.GridBottomMargin);
|
|
66
73
|
i0.ɵɵadvance();
|
|
67
|
-
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(
|
|
74
|
+
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(33, _c2));
|
|
75
|
+
i0.ɵɵadvance(3);
|
|
76
|
+
i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("AI Prompts"))("NewRecordValues", ctx_r1.NewRecordValues("AI Prompts"))("AllowLoad", ctx_r1.IsCurrentTab("AI Prompts"))("EditMode", ctx_r1.GridEditMode())("BottomMargin", ctx_r1.GridBottomMargin);
|
|
77
|
+
i0.ɵɵadvance();
|
|
78
|
+
i0.ɵɵproperty("Visible", ctx_r1.record.IsSaved)("Props", i0.ɵɵpureFunction0(34, _c3));
|
|
68
79
|
i0.ɵɵadvance(3);
|
|
69
80
|
i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("Entity Documents"))("NewRecordValues", ctx_r1.NewRecordValues("Entity Documents"))("AllowLoad", ctx_r1.IsCurrentTab("Entity Documents"))("EditMode", ctx_r1.GridEditMode())("BottomMargin", ctx_r1.GridBottomMargin);
|
|
70
81
|
} }
|
|
71
82
|
let TemplateFormComponent = class TemplateFormComponent extends BaseFormComponent {
|
|
72
83
|
};
|
|
73
84
|
TemplateFormComponent.ɵfac = /*@__PURE__*/ (() => { let ɵTemplateFormComponent_BaseFactory; return function TemplateFormComponent_Factory(t) { return (ɵTemplateFormComponent_BaseFactory || (ɵTemplateFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(TemplateFormComponent)))(t || TemplateFormComponent); }; })();
|
|
74
|
-
TemplateFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TemplateFormComponent, selectors: [["gen-template-form"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [["form", "ngForm"], ["mjFillContainer", "", 1, "record-form-container", 3, "bottomMargin", "rightMargin"], ["class", "record-form", "mjFillContainer", "", 4, "ngIf"], ["mjFillContainer", "", 1, "record-form"], [3, "form"], ["mjFillContainer", "", 3, "TabSelected"], ["Name", "Details"], ["Entity", "Templates", "Section", "details", 3, "record", "EditMode"], ["Name", "Template Contents", 3, "Visible", "Props"], [3, "Params", "NewRecordValues", "AllowLoad", "EditMode", "BottomMargin"], ["Name", "Template Params", 3, "Visible", "Props"], ["Name", "Entity Documents", 3, "Visible", "Props"]], template: function TemplateFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
+
TemplateFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TemplateFormComponent, selectors: [["gen-template-form"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [["form", "ngForm"], ["mjFillContainer", "", 1, "record-form-container", 3, "bottomMargin", "rightMargin"], ["class", "record-form", "mjFillContainer", "", 4, "ngIf"], ["mjFillContainer", "", 1, "record-form"], [3, "form"], ["mjFillContainer", "", 3, "TabSelected"], ["Name", "Details"], ["Entity", "Templates", "Section", "details", 3, "record", "EditMode"], ["Name", "Template Contents", 3, "Visible", "Props"], [3, "Params", "NewRecordValues", "AllowLoad", "EditMode", "BottomMargin"], ["Name", "Template Params", 3, "Visible", "Props"], ["Name", "AI Prompts", 3, "Visible", "Props"], ["Name", "Entity Documents", 3, "Visible", "Props"]], template: function TemplateFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
86
|
i0.ɵɵelementStart(0, "div", 1);
|
|
76
|
-
i0.ɵɵtemplate(1, TemplateFormComponent_form_1_Template,
|
|
87
|
+
i0.ɵɵtemplate(1, TemplateFormComponent_form_1_Template, 24, 35, "form", 2);
|
|
77
88
|
i0.ɵɵelementEnd();
|
|
78
89
|
} if (rf & 2) {
|
|
79
90
|
i0.ɵɵproperty("bottomMargin", 20)("rightMargin", 5);
|
|
@@ -86,7 +97,7 @@ TemplateFormComponent = __decorate([
|
|
|
86
97
|
export { TemplateFormComponent };
|
|
87
98
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TemplateFormComponent, [{
|
|
88
99
|
type: Component,
|
|
89
|
-
args: [{ selector: 'gen-template-form', template: "<div class=\"record-form-container\" mjFillContainer [bottomMargin]=\"20\" [rightMargin]=\"5\">\n <form *ngIf=\"record\" class=\"record-form\" #form=\"ngForm\" mjFillContainer>\n <mj-form-toolbar [form]=\"this\"></mj-form-toolbar>\n\n <mj-tabstrip (TabSelected)=\"onTabSelect($event.index)\" mjFillContainer>\n \n <mj-tab Name=\"Details\">\n Details\n </mj-tab>\n <mj-tab-body>\n <mj-form-section \n Entity=\"Templates\" \n Section=\"details\" \n [record]=\"record\" \n [EditMode]=\"this.EditMode\">\n </mj-form-section>\n </mj-tab-body>\n \n <mj-tab Name=\"Template Contents\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: 'CDD61E0C-31AE-4068-BA4D-00E7672D9EE6'}\">\n Template Contents\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Template Contents')\" \n [NewRecordValues]=\"NewRecordValues('Template Contents')\"\n [AllowLoad]=\"IsCurrentTab('Template Contents')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n\n <mj-tab Name=\"Template Params\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: '66CB4FC4-BD66-4325-B1BF-85707475A25C'}\">\n Template Params\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Template Params')\" \n [NewRecordValues]=\"NewRecordValues('Template Params')\"\n [AllowLoad]=\"IsCurrentTab('Template Params')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n\n <mj-tab Name=\"Entity Documents\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: '334567F3-3E3B-EF11-86D4-0022481D1B23'}\">\n Entity Documents\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Entity Documents')\" \n [NewRecordValues]=\"NewRecordValues('Entity Documents')\"\n [AllowLoad]=\"IsCurrentTab('Entity Documents')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n </mj-tabstrip>\n </form>\n</div>\n ", styles: [".k-pane {\n background-color: #F5F6FA;\n} \n\n\na {\n font-size: 14px;\n font-weight: bolder;\n}\n\n.tab-header-icon {\n margin-right: 5px;\n}\n\n.record-form {\n display: block;\n flex-direction: column;\n background-color: #F5F6FA;\n padding: 10px;\n}\n\n.record-form-group {\n margin-top: 0px;\n background-color: #F5F6FA;\n}\n\nbutton {\n margin-right: 5px;\n}\n\n.record-form h2 {\n margin-bottom: 10px;\n}\n\n.k-splitter {\n border-width: 0px;\n}\n\n.record-form-row {\n display: grid;\n grid-template-columns: auto 1fr;\n align-items: start;\n gap: 10px;\n margin-bottom: 12px;\n padding-top: 5px;\n padding-bottom: 5px;\n}\n\n\n/* .record-form .record-form-row:nth-child(odd) {\n background-color: #f2f2f2; \n} */\n\n/* \n.record-form .record-form-row:nth-child(even) {\n background-color: #ffffff; \n} */\n\n.record-form .record-form-row > :first-child {\n font-weight: bold;\n padding-right: 10px;\n} \n\n.record-form .record-form-row > span {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n \n\n@media (min-width: 768px) {\n .record-form-row {\n flex-direction: row;\n align-items: center;\n }\n\n .record-form-row label {\n width: 240px;\n margin-bottom: 0;\n }\n}\n"] }]
|
|
100
|
+
args: [{ selector: 'gen-template-form', template: "<div class=\"record-form-container\" mjFillContainer [bottomMargin]=\"20\" [rightMargin]=\"5\">\n <form *ngIf=\"record\" class=\"record-form\" #form=\"ngForm\" mjFillContainer>\n <mj-form-toolbar [form]=\"this\"></mj-form-toolbar>\n\n <mj-tabstrip (TabSelected)=\"onTabSelect($event.index)\" mjFillContainer>\n \n <mj-tab Name=\"Details\">\n Details\n </mj-tab>\n <mj-tab-body>\n <mj-form-section \n Entity=\"Templates\" \n Section=\"details\" \n [record]=\"record\" \n [EditMode]=\"this.EditMode\">\n </mj-form-section>\n </mj-tab-body>\n \n <mj-tab Name=\"Template Contents\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: 'CDD61E0C-31AE-4068-BA4D-00E7672D9EE6'}\">\n Template Contents\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Template Contents')\" \n [NewRecordValues]=\"NewRecordValues('Template Contents')\"\n [AllowLoad]=\"IsCurrentTab('Template Contents')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n\n <mj-tab Name=\"Template Params\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: '66CB4FC4-BD66-4325-B1BF-85707475A25C'}\">\n Template Params\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Template Params')\" \n [NewRecordValues]=\"NewRecordValues('Template Params')\"\n [AllowLoad]=\"IsCurrentTab('Template Params')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n\n <mj-tab Name=\"AI Prompts\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: '64D6B0B0-BF59-EF11-991A-000D3A9D8BF3'}\">\n AI Prompts\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('AI Prompts')\" \n [NewRecordValues]=\"NewRecordValues('AI Prompts')\"\n [AllowLoad]=\"IsCurrentTab('AI Prompts')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n\n <mj-tab Name=\"Entity Documents\" \n [Visible]=\"record.IsSaved\" \n [Props]=\"{EntityRelationshipID: '334567F3-3E3B-EF11-86D4-0022481D1B23'}\">\n Entity Documents\n </mj-tab>\n <mj-tab-body>\n <mj-user-view-grid \n [Params]=\"BuildRelationshipViewParamsByEntityName('Entity Documents')\" \n [NewRecordValues]=\"NewRecordValues('Entity Documents')\"\n [AllowLoad]=\"IsCurrentTab('Entity Documents')\" \n [EditMode]=\"GridEditMode()\" \n [BottomMargin]=\"GridBottomMargin\">\n </mj-user-view-grid> \n </mj-tab-body>\n </mj-tabstrip>\n </form>\n</div>\n ", styles: [".k-pane {\n background-color: #F5F6FA;\n} \n\n\na {\n font-size: 14px;\n font-weight: bolder;\n}\n\n.tab-header-icon {\n margin-right: 5px;\n}\n\n.record-form {\n display: block;\n flex-direction: column;\n background-color: #F5F6FA;\n padding: 10px;\n}\n\n.record-form-group {\n margin-top: 0px;\n background-color: #F5F6FA;\n}\n\nbutton {\n margin-right: 5px;\n}\n\n.record-form h2 {\n margin-bottom: 10px;\n}\n\n.k-splitter {\n border-width: 0px;\n}\n\n.record-form-row {\n display: grid;\n grid-template-columns: auto 1fr;\n align-items: start;\n gap: 10px;\n margin-bottom: 12px;\n padding-top: 5px;\n padding-bottom: 5px;\n}\n\n\n/* .record-form .record-form-row:nth-child(odd) {\n background-color: #f2f2f2; \n} */\n\n/* \n.record-form .record-form-row:nth-child(even) {\n background-color: #ffffff; \n} */\n\n.record-form .record-form-row > :first-child {\n font-weight: bold;\n padding-right: 10px;\n} \n\n.record-form .record-form-row > span {\n white-space: pre-line;\n max-height: 300px;\n overflow: auto;\n}\n\n \n\n@media (min-width: 768px) {\n .record-form-row {\n flex-direction: row;\n align-items: center;\n }\n\n .record-form-row label {\n width: 240px;\n margin-bottom: 0;\n }\n}\n"] }]
|
|
90
101
|
}], null, null); })();
|
|
91
102
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TemplateFormComponent, { className: "TemplateFormComponent", filePath: "src/lib/generated/Entities/Template/template.form.component.ts", lineNumber: 14 }); })();
|
|
92
103
|
export function LoadTemplateFormComponent() {
|