@memberjunction/ng-base-forms 1.1.2 → 1.2.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/form-toolbar.d.ts +6 -1
- package/dist/lib/form-toolbar.d.ts.map +1 -1
- package/dist/lib/form-toolbar.js +98 -48
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +7 -3
- package/package.json +7 -6
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { BaseFormComponent } from './base-form-component';
|
|
2
|
+
import { PrimaryKeyValue } from '@memberjunction/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class FormToolbarComponent {
|
|
5
|
+
ShowSkipChatButton: boolean;
|
|
4
6
|
form: BaseFormComponent;
|
|
5
7
|
saveRecord(event: MouseEvent): void;
|
|
8
|
+
get LinkedEntityPrimaryKeys(): PrimaryKeyValue[];
|
|
9
|
+
SkipChatVisible: boolean;
|
|
10
|
+
ShowSkipChat(): void;
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormToolbarComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormToolbarComponent, "mj-form-toolbar", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormToolbarComponent, "mj-form-toolbar", never, { "ShowSkipChatButton": { "alias": "ShowSkipChatButton"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=form-toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-toolbar.d.ts","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-toolbar.d.ts","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,OAAO,EAAY,eAAe,EAAiC,MAAM,sBAAsB,CAAC;;AAKhG,qBAwEa,oBAAoB;IACpB,kBAAkB,EAAE,OAAO,CAAQ;IACnC,IAAI,EAAG,iBAAiB,CAAC;IAE3B,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAS1C,IAAW,uBAAuB,IAAI,eAAe,EAAE,CAEtD;IAEM,eAAe,EAAE,OAAO,CAAS;IACjC,YAAY,IAAI,IAAI;yCAlBlB,oBAAoB;2CAApB,oBAAoB;CAsBhC"}
|
package/dist/lib/form-toolbar.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { SharedService } from '@memberjunction/ng-shared';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import * as i1 from "@memberjunction/ng-record-changes";
|
|
4
5
|
import * as i2 from "@progress/kendo-angular-buttons";
|
|
6
|
+
import * as i3 from "@memberjunction/ng-ask-skip";
|
|
5
7
|
function FormToolbarComponent_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
const
|
|
7
|
-
i0.ɵɵelementStart(0, "button",
|
|
8
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
9
|
-
i0.ɵɵelement(1, "span",
|
|
10
|
-
i0.ɵɵelementStart(2, "span",
|
|
8
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
9
|
+
i0.ɵɵelementStart(0, "button", 6);
|
|
10
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.form.StartEditMode()); });
|
|
11
|
+
i0.ɵɵelement(1, "span", 7);
|
|
12
|
+
i0.ɵɵelementStart(2, "span", 8);
|
|
11
13
|
i0.ɵɵtext(3, "Edit");
|
|
12
14
|
i0.ɵɵelementEnd()();
|
|
13
15
|
} }
|
|
14
16
|
function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
16
|
-
i0.ɵɵelementStart(0, "button", 8);
|
|
17
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r10.form.RemoveFavorite()); });
|
|
18
|
-
i0.ɵɵelement(1, "span", 9);
|
|
19
|
-
i0.ɵɵelementEnd();
|
|
20
|
-
} }
|
|
21
|
-
function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
22
17
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
23
18
|
i0.ɵɵelementStart(0, "button", 10);
|
|
24
|
-
i0.ɵɵlistener("click", function
|
|
19
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r12.form.RemoveFavorite()); });
|
|
25
20
|
i0.ɵɵelement(1, "span", 11);
|
|
26
21
|
i0.ɵɵelementEnd();
|
|
27
22
|
} }
|
|
23
|
+
function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
25
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
26
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r14.form.MakeFavorite()); });
|
|
27
|
+
i0.ɵɵelement(1, "span", 13);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
} }
|
|
28
30
|
function FormToolbarComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
-
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_1_Conditional_0_Template, 2, 0, "button",
|
|
31
|
+
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_1_Conditional_0_Template, 2, 0, "button", 9)(1, FormToolbarComponent_Conditional_1_Conditional_1_Conditional_1_Template, 2, 0);
|
|
30
32
|
} if (rf & 2) {
|
|
31
|
-
const
|
|
32
|
-
i0.ɵɵconditional(0,
|
|
33
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
34
|
+
i0.ɵɵconditional(0, ctx_r7.form.IsFavorite ? 0 : 1);
|
|
33
35
|
} }
|
|
34
36
|
function FormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button",
|
|
37
|
+
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button", 5)(1, FormToolbarComponent_Conditional_1_Conditional_1_Template, 2, 1);
|
|
36
38
|
} if (rf & 2) {
|
|
37
39
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
38
40
|
i0.ɵɵconditional(0, ctx_r0.form.UserCanEdit ? 0 : -1);
|
|
@@ -40,53 +42,73 @@ function FormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
40
42
|
i0.ɵɵconditional(1, ctx_r0.form.FavoriteInitDone ? 1 : -1);
|
|
41
43
|
} }
|
|
42
44
|
function FormToolbarComponent_Conditional_2_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
const
|
|
44
|
-
i0.ɵɵelementStart(0, "button",
|
|
45
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
46
|
-
i0.ɵɵelement(1, "span",
|
|
47
|
-
i0.ɵɵelementStart(2, "span",
|
|
45
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
46
|
+
i0.ɵɵelementStart(0, "button", 19);
|
|
47
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.form.ShowChanges()); });
|
|
48
|
+
i0.ɵɵelement(1, "span", 20);
|
|
49
|
+
i0.ɵɵelementStart(2, "span", 8);
|
|
48
50
|
i0.ɵɵtext(3, "Changes");
|
|
49
51
|
i0.ɵɵelementEnd()();
|
|
50
52
|
} }
|
|
51
53
|
function FormToolbarComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
52
|
-
const
|
|
53
|
-
i0.ɵɵelementStart(0, "button",
|
|
54
|
-
i0.ɵɵlistener("mouseup", function FormToolbarComponent_Conditional_2_Template_button_mouseup_0_listener($event) { i0.ɵɵrestoreView(
|
|
55
|
-
i0.ɵɵelement(1, "span",
|
|
56
|
-
i0.ɵɵelementStart(2, "span",
|
|
54
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
55
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
56
|
+
i0.ɵɵlistener("mouseup", function FormToolbarComponent_Conditional_2_Template_button_mouseup_0_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.saveRecord($event)); });
|
|
57
|
+
i0.ɵɵelement(1, "span", 15);
|
|
58
|
+
i0.ɵɵelementStart(2, "span", 8);
|
|
57
59
|
i0.ɵɵtext(3, "Save");
|
|
58
60
|
i0.ɵɵelementEnd()();
|
|
59
|
-
i0.ɵɵelementStart(4, "button",
|
|
60
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
61
|
-
i0.ɵɵelement(5, "span",
|
|
62
|
-
i0.ɵɵelementStart(6, "span",
|
|
61
|
+
i0.ɵɵelementStart(4, "button", 16);
|
|
62
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r20); const ctx_r21 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r21.form.CancelEdit()); });
|
|
63
|
+
i0.ɵɵelement(5, "span", 17);
|
|
64
|
+
i0.ɵɵelementStart(6, "span", 8);
|
|
63
65
|
i0.ɵɵtext(7, "Cancel");
|
|
64
66
|
i0.ɵɵelementEnd()();
|
|
65
|
-
i0.ɵɵtemplate(8, FormToolbarComponent_Conditional_2_Conditional_8_Template, 4, 0, "button",
|
|
67
|
+
i0.ɵɵtemplate(8, FormToolbarComponent_Conditional_2_Conditional_8_Template, 4, 0, "button", 18);
|
|
66
68
|
} if (rf & 2) {
|
|
67
69
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
68
70
|
i0.ɵɵadvance(8);
|
|
69
71
|
i0.ɵɵconditional(8, ctx_r1.form.record.Dirty ? 8 : -1);
|
|
70
72
|
} }
|
|
71
73
|
function FormToolbarComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
-
const
|
|
73
|
-
i0.ɵɵelementStart(0, "button",
|
|
74
|
-
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
75
|
-
i0.ɵɵelement(1, "span",
|
|
76
|
-
i0.ɵɵelementStart(2, "span",
|
|
74
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
75
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
76
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r22.form.handleHistoryDialog()); });
|
|
77
|
+
i0.ɵɵelement(1, "span", 22);
|
|
78
|
+
i0.ɵɵelementStart(2, "span", 8);
|
|
77
79
|
i0.ɵɵtext(3, "History");
|
|
78
80
|
i0.ɵɵelementEnd()();
|
|
79
81
|
} }
|
|
80
82
|
function FormToolbarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
-
const
|
|
82
|
-
i0.ɵɵelementStart(0, "
|
|
83
|
-
i0.ɵɵlistener("
|
|
83
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
84
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
85
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r24.ShowSkipChat()); });
|
|
86
|
+
i0.ɵɵelement(1, "span", 24);
|
|
87
|
+
i0.ɵɵelementEnd();
|
|
88
|
+
} }
|
|
89
|
+
function FormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
91
|
+
i0.ɵɵelementStart(0, "mj-skip-chat-with-record-window", 25, 26);
|
|
92
|
+
i0.ɵɵlistener("WindowClosed", function FormToolbarComponent_Conditional_5_Template_mj_skip_chat_with_record_window_WindowClosed_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r27.ShowSkipChat()); });
|
|
84
93
|
i0.ɵɵelementEnd();
|
|
85
94
|
} if (rf & 2) {
|
|
86
|
-
const
|
|
87
|
-
i0.ɵɵproperty("
|
|
95
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
96
|
+
i0.ɵɵproperty("LinkedEntityID", ctx_r4.form.EntityInfo.ID)("LinkedEntityPrimaryKeys", ctx_r4.LinkedEntityPrimaryKeys)("WindowOpened", ctx_r4.SkipChatVisible);
|
|
97
|
+
} }
|
|
98
|
+
function FormToolbarComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
99
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
100
|
+
i0.ɵɵelementStart(0, "mj-record-changes", 27);
|
|
101
|
+
i0.ɵɵlistener("dialogClosed", function FormToolbarComponent_Conditional_6_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r29.form.handleHistoryDialog()); });
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
} if (rf & 2) {
|
|
104
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
105
|
+
i0.ɵɵproperty("record", ctx_r5.form.record);
|
|
88
106
|
} }
|
|
89
107
|
export class FormToolbarComponent {
|
|
108
|
+
constructor() {
|
|
109
|
+
this.ShowSkipChatButton = true;
|
|
110
|
+
this.SkipChatVisible = false;
|
|
111
|
+
}
|
|
90
112
|
saveRecord(event) {
|
|
91
113
|
// Ensure the button takes focus
|
|
92
114
|
const button = event.target;
|
|
@@ -94,11 +116,18 @@ export class FormToolbarComponent {
|
|
|
94
116
|
// Proceed to call your save record function
|
|
95
117
|
this.form.SaveRecord(true);
|
|
96
118
|
}
|
|
119
|
+
get LinkedEntityPrimaryKeys() {
|
|
120
|
+
return this.form.record.PrimaryKeys.map(pk => ({ FieldName: pk.Name, Value: pk.Value }));
|
|
121
|
+
}
|
|
122
|
+
ShowSkipChat() {
|
|
123
|
+
this.SkipChatVisible = !this.SkipChatVisible;
|
|
124
|
+
SharedService.Instance.InvokeManualResize();
|
|
125
|
+
}
|
|
97
126
|
}
|
|
98
127
|
FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(); };
|
|
99
|
-
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { form: "form" }, decls:
|
|
128
|
+
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { ShowSkipChatButton: "ShowSkipChatButton", form: "form" }, decls: 7, vars: 5, consts: [[1, "toolbar-container"], ["kendoButton", "", "title", "Show History"], ["kendoButton", "", "title", "Discuss this record with Skip"], [3, "LinkedEntityID", "LinkedEntityPrimaryKeys", "WindowOpened"], [3, "record"], ["kendoButton", "", "title", "Edit Record"], ["kendoButton", "", "title", "Edit Record", 3, "click"], [1, "fa-solid", "fa-pen-to-square"], [1, "button-text"], ["kendoButton", "", "title", "Remove Favorite"], ["kendoButton", "", "title", "Remove Favorite", 3, "click"], [1, "fa-solid", "fa-star"], ["kendoButton", "", "title", "Make Favorite", 3, "click"], [1, "fa-regular", "fa-star"], ["kendoButton", "", "title", "Save Record", 3, "mouseup"], [1, "fa-solid", "fa-floppy-disk"], ["kendoButton", "", "title", "Cancel Edit", 3, "click"], [1, "fa-solid", "fa-rotate-left"], ["kendoButton", "", "title", "Fields you have changed"], ["kendoButton", "", "title", "Fields you have changed", 3, "click"], [1, "fa-solid", "fa-clipboard-list"], ["kendoButton", "", "title", "Show History", 3, "click"], [1, "fa-solid", "fa-business-time"], ["kendoButton", "", "title", "Discuss this record with Skip", 3, "click"], [1, "fa-regular", "fa-comment-dots"], [3, "LinkedEntityID", "LinkedEntityPrimaryKeys", "WindowOpened", "WindowClosed"], ["mjChat", ""], [3, "record", "dialogClosed"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
100
129
|
i0.ɵɵelementStart(0, "div", 0);
|
|
101
|
-
i0.ɵɵtemplate(1, FormToolbarComponent_Conditional_1_Template, 2, 2)(2, FormToolbarComponent_Conditional_2_Template, 9, 1)(3, FormToolbarComponent_Conditional_3_Template, 4, 0, "button", 1)(4, FormToolbarComponent_Conditional_4_Template, 1, 1, "mj-record-changes",
|
|
130
|
+
i0.ɵɵtemplate(1, FormToolbarComponent_Conditional_1_Template, 2, 2)(2, FormToolbarComponent_Conditional_2_Template, 9, 1)(3, FormToolbarComponent_Conditional_3_Template, 4, 0, "button", 1)(4, FormToolbarComponent_Conditional_4_Template, 2, 0, "button", 2)(5, FormToolbarComponent_Conditional_5_Template, 2, 3, "mj-skip-chat-with-record-window", 3)(6, FormToolbarComponent_Conditional_6_Template, 1, 1, "mj-record-changes", 4);
|
|
102
131
|
i0.ɵɵelementEnd();
|
|
103
132
|
} if (rf & 2) {
|
|
104
133
|
i0.ɵɵadvance();
|
|
@@ -106,8 +135,12 @@ FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormTo
|
|
|
106
135
|
i0.ɵɵadvance(2);
|
|
107
136
|
i0.ɵɵconditional(3, (ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges) ? 3 : -1);
|
|
108
137
|
i0.ɵɵadvance();
|
|
109
|
-
i0.ɵɵconditional(4, ctx.
|
|
110
|
-
|
|
138
|
+
i0.ɵɵconditional(4, ctx.ShowSkipChatButton ? 4 : -1);
|
|
139
|
+
i0.ɵɵadvance();
|
|
140
|
+
i0.ɵɵconditional(5, ctx.form.EntityInfo ? 5 : -1);
|
|
141
|
+
i0.ɵɵadvance();
|
|
142
|
+
i0.ɵɵconditional(6, ctx.form.isHistoryDialogOpen ? 6 : -1);
|
|
143
|
+
} }, dependencies: [i1.RecordChangesComponent, i2.ButtonComponent, i3.SkipChatWithRecordWindowComponent], styles: ["button[_ngcontent-%COMP%] { margin-right: 10px; }", ".button-text[_ngcontent-%COMP%] { margin-left: 7px; }", ".toolbar-container[_ngcontent-%COMP%] { border-bottom: solid 1px lightgray; padding-bottom: 10px; margin-bottom: 5px; }"] });
|
|
111
144
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormToolbarComponent, [{
|
|
112
145
|
type: Component,
|
|
113
146
|
args: [{ selector: 'mj-form-toolbar', template: `
|
|
@@ -154,12 +187,29 @@ FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormTo
|
|
|
154
187
|
<span class="button-text">History</span>
|
|
155
188
|
</button>
|
|
156
189
|
}
|
|
190
|
+
@if (ShowSkipChatButton) {
|
|
191
|
+
<button kendoButton (click)="ShowSkipChat()" title="Discuss this record with Skip">
|
|
192
|
+
<span class="fa-regular fa-comment-dots"></span>
|
|
193
|
+
</button>
|
|
194
|
+
}
|
|
195
|
+
@if (form.EntityInfo) {
|
|
196
|
+
<mj-skip-chat-with-record-window
|
|
197
|
+
[LinkedEntityID]="form.EntityInfo.ID"
|
|
198
|
+
[LinkedEntityPrimaryKeys]="LinkedEntityPrimaryKeys"
|
|
199
|
+
#mjChat
|
|
200
|
+
[WindowOpened]="SkipChatVisible"
|
|
201
|
+
(WindowClosed)="ShowSkipChat()"
|
|
202
|
+
>
|
|
203
|
+
</mj-skip-chat-with-record-window>
|
|
204
|
+
}
|
|
157
205
|
@if (form.isHistoryDialogOpen) {
|
|
158
206
|
<mj-record-changes [record]="form.record" (dialogClosed)="form.handleHistoryDialog()"></mj-record-changes>
|
|
159
207
|
}
|
|
160
208
|
</div>
|
|
161
209
|
`, styles: ["button { margin-right: 10px; }", ".button-text { margin-left: 7px; }", ".toolbar-container { border-bottom: solid 1px lightgray; padding-bottom: 10px; margin-bottom: 5px; }"] }]
|
|
162
|
-
}], null, {
|
|
210
|
+
}], null, { ShowSkipChatButton: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}], form: [{
|
|
163
213
|
type: Input
|
|
164
214
|
}] }); })();
|
|
165
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormToolbarComponent, { className: "FormToolbarComponent", filePath: "src/lib/form-toolbar.ts", lineNumber:
|
|
215
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormToolbarComponent, { className: "FormToolbarComponent", filePath: "src/lib/form-toolbar.ts", lineNumber: 83 }); })();
|
package/dist/module.d.ts
CHANGED
|
@@ -11,9 +11,10 @@ import * as i9 from "@progress/kendo-angular-inputs";
|
|
|
11
11
|
import * as i10 from "@progress/kendo-angular-dateinputs";
|
|
12
12
|
import * as i11 from "@progress/kendo-angular-dropdowns";
|
|
13
13
|
import * as i12 from "@memberjunction/ng-link-directives";
|
|
14
|
+
import * as i13 from "@memberjunction/ng-ask-skip";
|
|
14
15
|
export declare class BaseFormsModule {
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormsModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.SectionLoaderComponent, typeof i2.FormToolbarComponent, typeof i3.MJFormField], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MJTabStripModule, typeof i7.RecordChangesModule, typeof i8.ButtonsModule, typeof i9.InputsModule, typeof i10.DateInputsModule, typeof i11.DropDownsModule, typeof i12.LinkDirectivesModule], [typeof i1.SectionLoaderComponent, typeof i2.FormToolbarComponent, typeof i3.MJFormField]>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.SectionLoaderComponent, typeof i2.FormToolbarComponent, typeof i3.MJFormField], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MJTabStripModule, typeof i7.RecordChangesModule, typeof i8.ButtonsModule, typeof i9.InputsModule, typeof i10.DateInputsModule, typeof i11.DropDownsModule, typeof i12.LinkDirectivesModule, typeof i13.AskSkipModule], [typeof i1.SectionLoaderComponent, typeof i2.FormToolbarComponent, typeof i3.MJFormField]>;
|
|
17
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaseFormsModule>;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAoBA,qBAwBa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAI"}
|
package/dist/module.js
CHANGED
|
@@ -12,6 +12,7 @@ import { SectionLoaderComponent } from './lib/section-loader-component';
|
|
|
12
12
|
import { FormToolbarComponent } from './lib/form-toolbar';
|
|
13
13
|
import { MJFormField } from './lib/base-field-component';
|
|
14
14
|
import { LinkDirectivesModule } from '@memberjunction/ng-link-directives';
|
|
15
|
+
import { AskSkipModule } from '@memberjunction/ng-ask-skip';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export class BaseFormsModule {
|
|
17
18
|
}
|
|
@@ -25,7 +26,8 @@ BaseFormsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
25
26
|
InputsModule,
|
|
26
27
|
DateInputsModule,
|
|
27
28
|
DropDownsModule,
|
|
28
|
-
LinkDirectivesModule
|
|
29
|
+
LinkDirectivesModule,
|
|
30
|
+
AskSkipModule] });
|
|
29
31
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseFormsModule, [{
|
|
30
32
|
type: NgModule,
|
|
31
33
|
args: [{
|
|
@@ -43,7 +45,8 @@ BaseFormsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
43
45
|
InputsModule,
|
|
44
46
|
DateInputsModule,
|
|
45
47
|
DropDownsModule,
|
|
46
|
-
LinkDirectivesModule
|
|
48
|
+
LinkDirectivesModule,
|
|
49
|
+
AskSkipModule
|
|
47
50
|
],
|
|
48
51
|
exports: [
|
|
49
52
|
SectionLoaderComponent,
|
|
@@ -62,6 +65,7 @@ BaseFormsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
62
65
|
InputsModule,
|
|
63
66
|
DateInputsModule,
|
|
64
67
|
DropDownsModule,
|
|
65
|
-
LinkDirectivesModule
|
|
68
|
+
LinkDirectivesModule,
|
|
69
|
+
AskSkipModule], exports: [SectionLoaderComponent,
|
|
66
70
|
FormToolbarComponent,
|
|
67
71
|
MJFormField] }); })();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-base-forms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "MemberJunction: Angular Base Form Components",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
"@angular/router": "~17.2.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/global": "~1.
|
|
29
|
-
"@memberjunction/core": "~1.
|
|
30
|
-
"@memberjunction/ng-
|
|
31
|
-
"@memberjunction/ng-
|
|
32
|
-
"@memberjunction/ng-
|
|
28
|
+
"@memberjunction/global": "~1.2.0",
|
|
29
|
+
"@memberjunction/core": "~1.2.0",
|
|
30
|
+
"@memberjunction/ng-ask-skip": "~1.2.0",
|
|
31
|
+
"@memberjunction/ng-record-changes": "~1.2.0",
|
|
32
|
+
"@memberjunction/ng-tabstrip": "~1.2.0",
|
|
33
|
+
"@memberjunction/ng-link-directives": "~1.2.0",
|
|
33
34
|
"@progress/kendo-angular-buttons": "~15.1.0",
|
|
34
35
|
"@progress/kendo-angular-dropdowns": "~15.1.0",
|
|
35
36
|
"@progress/kendo-angular-inputs": "~15.1.0",
|