@memberjunction/ng-form-toolbar 1.5.2 → 1.6.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.
@@ -18,132 +18,132 @@ import * as i4 from "@progress/kendo-angular-buttons";
18
18
  import * as i5 from "@progress/kendo-angular-dialog";
19
19
  import * as i6 from "@memberjunction/ng-ask-skip";
20
20
  function FormToolbarComponent_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
21
- const _r11 = i0.ɵɵgetCurrentView();
22
- i0.ɵɵelementStart(0, "button", 8);
23
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.form.StartEditMode()); });
24
- i0.ɵɵelement(1, "span", 9);
25
- i0.ɵɵelementStart(2, "span", 10);
21
+ const _r1 = i0.ɵɵgetCurrentView();
22
+ i0.ɵɵelementStart(0, "button", 9);
23
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.form.StartEditMode()); });
24
+ i0.ɵɵelement(1, "span", 10);
25
+ i0.ɵɵelementStart(2, "span", 11);
26
26
  i0.ɵɵtext(3, "Edit");
27
27
  i0.ɵɵelementEnd()();
28
28
  } }
29
29
  function FormToolbarComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
30
- const _r13 = i0.ɵɵgetCurrentView();
31
- i0.ɵɵelementStart(0, "button", 11);
32
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.toggleDeleteDialog(true)); });
33
- i0.ɵɵelement(1, "span", 12);
30
+ const _r3 = i0.ɵɵgetCurrentView();
31
+ i0.ɵɵelementStart(0, "button", 12);
32
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleDeleteDialog(true)); });
33
+ i0.ɵɵelement(1, "span", 13);
34
34
  i0.ɵɵelementEnd();
35
35
  } }
36
36
  function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
37
- const _r17 = i0.ɵɵgetCurrentView();
38
- i0.ɵɵelementStart(0, "button", 14);
39
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r16.form.RemoveFavorite()); });
40
- i0.ɵɵelement(1, "span", 15);
37
+ const _r4 = i0.ɵɵgetCurrentView();
38
+ i0.ɵɵelementStart(0, "button", 16);
39
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.form.RemoveFavorite()); });
40
+ i0.ɵɵelement(1, "span", 17);
41
41
  i0.ɵɵelementEnd();
42
42
  } }
43
43
  function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
44
- const _r19 = i0.ɵɵgetCurrentView();
45
- i0.ɵɵelementStart(0, "button", 16);
46
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r18.form.MakeFavorite()); });
47
- i0.ɵɵelement(1, "span", 17);
44
+ const _r5 = i0.ɵɵgetCurrentView();
45
+ i0.ɵɵelementStart(0, "button", 18);
46
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.form.MakeFavorite()); });
47
+ i0.ɵɵelement(1, "span", 19);
48
48
  i0.ɵɵelementEnd();
49
49
  } }
50
50
  function FormToolbarComponent_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
51
- i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template, 2, 0, "button", 13)(1, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template, 2, 0);
51
+ i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template, 2, 0, "button", 14)(1, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template, 2, 0, "button", 15);
52
52
  } if (rf & 2) {
53
- const ctx_r9 = i0.ɵɵnextContext(2);
54
- i0.ɵɵconditional(0, ctx_r9.form.IsFavorite ? 0 : 1);
53
+ const ctx_r1 = i0.ɵɵnextContext(2);
54
+ i0.ɵɵconditional(ctx_r1.form.IsFavorite ? 0 : 1);
55
55
  } }
56
56
  function FormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
57
- i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button", 6)(1, FormToolbarComponent_Conditional_1_Conditional_1_Template, 2, 0, "button", 7)(2, FormToolbarComponent_Conditional_1_Conditional_2_Template, 2, 1);
57
+ i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button", 7)(1, FormToolbarComponent_Conditional_1_Conditional_1_Template, 2, 0, "button", 8)(2, FormToolbarComponent_Conditional_1_Conditional_2_Template, 2, 1);
58
58
  } if (rf & 2) {
59
- const ctx_r0 = i0.ɵɵnextContext();
60
- i0.ɵɵconditional(0, ctx_r0.form.UserCanEdit ? 0 : -1);
59
+ const ctx_r1 = i0.ɵɵnextContext();
60
+ i0.ɵɵconditional(ctx_r1.form.UserCanEdit ? 0 : -1);
61
61
  i0.ɵɵadvance();
62
- i0.ɵɵconditional(1, ctx_r0.form.UserCanDelete ? 1 : -1);
62
+ i0.ɵɵconditional(ctx_r1.form.UserCanDelete ? 1 : -1);
63
63
  i0.ɵɵadvance();
64
- i0.ɵɵconditional(2, ctx_r0.form.FavoriteInitDone ? 2 : -1);
64
+ i0.ɵɵconditional(ctx_r1.form.FavoriteInitDone ? 2 : -1);
65
65
  } }
66
66
  function FormToolbarComponent_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
67
- const _r23 = i0.ɵɵgetCurrentView();
68
- i0.ɵɵelementStart(0, "button", 22);
69
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r22.form.CancelEdit()); });
70
- i0.ɵɵelement(1, "span", 23);
71
- i0.ɵɵelementStart(2, "span", 10);
67
+ const _r7 = i0.ɵɵgetCurrentView();
68
+ i0.ɵɵelementStart(0, "button", 24);
69
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.form.CancelEdit()); });
70
+ i0.ɵɵelement(1, "span", 25);
71
+ i0.ɵɵelementStart(2, "span", 11);
72
72
  i0.ɵɵtext(3, "Cancel");
73
73
  i0.ɵɵelementEnd()();
74
74
  } }
75
75
  function FormToolbarComponent_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
76
- const _r25 = i0.ɵɵgetCurrentView();
77
- i0.ɵɵelementStart(0, "button", 24);
78
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.form.ShowChanges()); });
79
- i0.ɵɵelement(1, "span", 25);
80
- i0.ɵɵelementStart(2, "span", 10);
76
+ const _r8 = i0.ɵɵgetCurrentView();
77
+ i0.ɵɵelementStart(0, "button", 26);
78
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_2_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.form.ShowChanges()); });
79
+ i0.ɵɵelement(1, "span", 27);
80
+ i0.ɵɵelementStart(2, "span", 11);
81
81
  i0.ɵɵtext(3, "Changes");
82
82
  i0.ɵɵelementEnd()();
83
83
  } }
84
84
  function FormToolbarComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
85
- const _r27 = i0.ɵɵgetCurrentView();
86
- i0.ɵɵelementStart(0, "button", 18);
87
- i0.ɵɵlistener("mouseup", function FormToolbarComponent_Conditional_2_Template_button_mouseup_0_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r26 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r26.saveExistingRecord($event)); });
88
- i0.ɵɵelement(1, "span", 19);
89
- i0.ɵɵelementStart(2, "span", 10);
85
+ const _r6 = i0.ɵɵgetCurrentView();
86
+ i0.ɵɵelementStart(0, "button", 20);
87
+ i0.ɵɵlistener("mouseup", function FormToolbarComponent_Conditional_2_Template_button_mouseup_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.saveExistingRecord($event)); });
88
+ i0.ɵɵelement(1, "span", 21);
89
+ i0.ɵɵelementStart(2, "span", 11);
90
90
  i0.ɵɵtext(3, "Save");
91
91
  i0.ɵɵelementEnd()();
92
- i0.ɵɵtemplate(4, FormToolbarComponent_Conditional_2_Conditional_4_Template, 4, 0, "button", 20)(5, FormToolbarComponent_Conditional_2_Conditional_5_Template, 4, 0, "button", 21);
92
+ i0.ɵɵtemplate(4, FormToolbarComponent_Conditional_2_Conditional_4_Template, 4, 0, "button", 22)(5, FormToolbarComponent_Conditional_2_Conditional_5_Template, 4, 0, "button", 23);
93
93
  } if (rf & 2) {
94
94
  const ctx_r1 = i0.ɵɵnextContext();
95
95
  i0.ɵɵadvance(4);
96
- i0.ɵɵconditional(4, ctx_r1.form.record.IsSaved ? 4 : -1);
96
+ i0.ɵɵconditional(ctx_r1.form.record.IsSaved ? 4 : -1);
97
97
  i0.ɵɵadvance();
98
- i0.ɵɵconditional(5, ctx_r1.form.record.Dirty ? 5 : -1);
98
+ i0.ɵɵconditional(ctx_r1.form.record.Dirty ? 5 : -1);
99
99
  } }
100
100
  function FormToolbarComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
101
- const _r29 = i0.ɵɵgetCurrentView();
102
- i0.ɵɵelementStart(0, "button", 26);
103
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r28.form.handleHistoryDialog()); });
104
- i0.ɵɵelement(1, "span", 27);
105
- i0.ɵɵelementStart(2, "span", 10);
101
+ const _r9 = i0.ɵɵgetCurrentView();
102
+ i0.ɵɵelementStart(0, "button", 28);
103
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.form.handleHistoryDialog()); });
104
+ i0.ɵɵelement(1, "span", 29);
105
+ i0.ɵɵelementStart(2, "span", 11);
106
106
  i0.ɵɵtext(3, "History");
107
107
  i0.ɵɵelementEnd()();
108
108
  } }
109
109
  function FormToolbarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
110
- const _r31 = i0.ɵɵgetCurrentView();
111
- i0.ɵɵelementStart(0, "button", 28);
112
- i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r30.ShowSkipChat()); });
113
- i0.ɵɵelement(1, "span", 29);
110
+ const _r10 = i0.ɵɵgetCurrentView();
111
+ i0.ɵɵelementStart(0, "button", 30);
112
+ i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ShowSkipChat()); });
113
+ i0.ɵɵelement(1, "span", 31);
114
114
  i0.ɵɵelementEnd();
115
115
  } }
116
116
  function FormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
117
- const _r34 = i0.ɵɵgetCurrentView();
118
- i0.ɵɵelementStart(0, "mj-skip-chat-with-record-window", 30, 31);
119
- i0.ɵɵlistener("WindowClosed", function FormToolbarComponent_Conditional_5_Template_mj_skip_chat_with_record_window_WindowClosed_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r33.ShowSkipChat()); });
117
+ const _r11 = i0.ɵɵgetCurrentView();
118
+ i0.ɵɵelementStart(0, "mj-skip-chat-with-record-window", 32, 0);
119
+ i0.ɵɵlistener("WindowClosed", function FormToolbarComponent_Conditional_5_Template_mj_skip_chat_with_record_window_WindowClosed_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ShowSkipChat()); });
120
120
  i0.ɵɵelementEnd();
121
121
  } if (rf & 2) {
122
- const ctx_r4 = i0.ɵɵnextContext();
123
- i0.ɵɵproperty("LinkedEntityID", ctx_r4.form.EntityInfo.ID)("LinkedEntityPrimaryKey", ctx_r4.LinkedEntityPrimaryKey)("WindowOpened", ctx_r4._skipChatDialogVisible);
122
+ const ctx_r1 = i0.ɵɵnextContext();
123
+ i0.ɵɵproperty("LinkedEntityID", ctx_r1.form.EntityInfo.ID)("LinkedEntityPrimaryKey", ctx_r1.LinkedEntityPrimaryKey)("WindowOpened", ctx_r1._skipChatDialogVisible);
124
124
  } }
125
125
  function FormToolbarComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
126
- const _r36 = i0.ɵɵgetCurrentView();
127
- i0.ɵɵelementStart(0, "mj-record-changes", 32);
128
- i0.ɵɵlistener("dialogClosed", function FormToolbarComponent_Conditional_6_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r35.form.handleHistoryDialog()); });
126
+ const _r12 = i0.ɵɵgetCurrentView();
127
+ i0.ɵɵelementStart(0, "mj-record-changes", 33);
128
+ i0.ɵɵlistener("dialogClosed", function FormToolbarComponent_Conditional_6_Template_mj_record_changes_dialogClosed_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.form.handleHistoryDialog()); });
129
129
  i0.ɵɵelementEnd();
130
130
  } if (rf & 2) {
131
- const ctx_r5 = i0.ɵɵnextContext();
132
- i0.ɵɵproperty("record", ctx_r5.form.record);
131
+ const ctx_r1 = i0.ɵɵnextContext();
132
+ i0.ɵɵproperty("record", ctx_r1.form.record);
133
133
  } }
134
134
  function FormToolbarComponent_kendo_dialog_7_Template(rf, ctx) { if (rf & 1) {
135
- const _r38 = i0.ɵɵgetCurrentView();
136
- i0.ɵɵelementStart(0, "kendo-dialog", 33);
137
- i0.ɵɵlistener("close", function FormToolbarComponent_kendo_dialog_7_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r37.toggleDeleteDialog(false)); });
138
- i0.ɵɵelementStart(1, "p", 34);
135
+ const _r13 = i0.ɵɵgetCurrentView();
136
+ i0.ɵɵelementStart(0, "kendo-dialog", 34);
137
+ i0.ɵɵlistener("close", function FormToolbarComponent_kendo_dialog_7_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleDeleteDialog(false)); });
138
+ i0.ɵɵelementStart(1, "p", 35);
139
139
  i0.ɵɵtext(2, " Are you sure you want to delete this record? ");
140
140
  i0.ɵɵelementEnd();
141
- i0.ɵɵelementStart(3, "kendo-dialog-actions", 35)(4, "button", 36);
142
- i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_7_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r38); const ctx_r39 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r39.deleteRecord()); });
141
+ i0.ɵɵelementStart(3, "kendo-dialog-actions", 36)(4, "button", 37);
142
+ i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_7_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.deleteRecord()); });
143
143
  i0.ɵɵtext(5, " Yes, Delete ");
144
144
  i0.ɵɵelementEnd();
145
- i0.ɵɵelementStart(6, "button", 37);
146
- i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_7_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r38); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.toggleDeleteDialog(false)); });
145
+ i0.ɵɵelementStart(6, "button", 38);
146
+ i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_7_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleDeleteDialog(false)); });
147
147
  i0.ɵɵtext(7, " No, Cancel ");
148
148
  i0.ɵɵelementEnd()()();
149
149
  } if (rf & 2) {
@@ -274,22 +274,22 @@ export class FormToolbarComponent {
274
274
  }
275
275
  }
276
276
  FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
277
- FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { ShowSkipChatButton: "ShowSkipChatButton", form: "form" }, decls: 8, vars: 8, consts: [[1, "toolbar-container"], ["kendoButton", "", "title", "Show History"], ["kendoButton", "", "title", "Discuss this record with Skip"], [3, "LinkedEntityID", "LinkedEntityPrimaryKey", "WindowOpened"], [3, "record"], ["class", "dialog-wrapper", "title", "Confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["kendoButton", "", "title", "Edit this Record"], ["kendoButton", "", "title", "Delete this Record"], ["kendoButton", "", "title", "Edit this Record", 3, "click"], [1, "fa-solid", "fa-pen-to-square"], [1, "button-text"], ["kendoButton", "", "title", "Delete this Record", 3, "click"], [1, "fa-regular", "fa-trash-can"], ["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"], ["kendoButton", "", "title", "Fields you have changed"], ["kendoButton", "", "title", "Cancel Edit", 3, "click"], [1, "fa-solid", "fa-rotate-left"], ["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", "LinkedEntityPrimaryKey", "WindowOpened", "WindowClosed"], ["mjChat", ""], [3, "record", "dialogClosed"], ["title", "Confirm", 1, "dialog-wrapper", 3, "minWidth", "width", "close"], [1, "k-m-7.5", "k-text-center"], [1, "popup-actions-btn"], ["kendoButton", "", "themeColor", "info", 1, "cancel-btn", 3, "click"], ["kendoButton", "", "fillMode", "outline", "themeColor", "info", 1, "yes-btn", 3, "click"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
278
- i0.ɵɵelementStart(0, "div", 0);
279
- i0.ɵɵtemplate(1, FormToolbarComponent_Conditional_1_Template, 3, 3)(2, FormToolbarComponent_Conditional_2_Template, 6, 2)(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)(7, FormToolbarComponent_kendo_dialog_7_Template, 8, 2, "kendo-dialog", 5);
277
+ FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { ShowSkipChatButton: "ShowSkipChatButton", form: "form" }, decls: 8, vars: 8, consts: [["mjChat", ""], [1, "toolbar-container"], ["kendoButton", "", "title", "Show History"], ["kendoButton", "", "title", "Discuss this record with Skip"], [3, "LinkedEntityID", "LinkedEntityPrimaryKey", "WindowOpened"], [3, "record"], ["class", "dialog-wrapper", "title", "Confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["kendoButton", "", "title", "Edit this Record"], ["kendoButton", "", "title", "Delete this Record"], ["kendoButton", "", "title", "Edit this Record", 3, "click"], [1, "fa-solid", "fa-pen-to-square"], [1, "button-text"], ["kendoButton", "", "title", "Delete this Record", 3, "click"], [1, "fa-regular", "fa-trash-can"], ["kendoButton", "", "title", "Remove Favorite"], ["kendoButton", "", "title", "Make 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"], ["kendoButton", "", "title", "Fields you have changed"], ["kendoButton", "", "title", "Cancel Edit", 3, "click"], [1, "fa-solid", "fa-rotate-left"], ["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, "WindowClosed", "LinkedEntityID", "LinkedEntityPrimaryKey", "WindowOpened"], [3, "dialogClosed", "record"], ["title", "Confirm", 1, "dialog-wrapper", 3, "close", "minWidth", "width"], [1, "k-m-7.5", "k-text-center"], [1, "popup-actions-btn"], ["kendoButton", "", "themeColor", "info", 1, "cancel-btn", 3, "click"], ["kendoButton", "", "fillMode", "outline", "themeColor", "info", 1, "yes-btn", 3, "click"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
278
+ i0.ɵɵelementStart(0, "div", 1);
279
+ i0.ɵɵtemplate(1, FormToolbarComponent_Conditional_1_Template, 3, 3)(2, FormToolbarComponent_Conditional_2_Template, 6, 2)(3, FormToolbarComponent_Conditional_3_Template, 4, 0, "button", 2)(4, FormToolbarComponent_Conditional_4_Template, 2, 0, "button", 3)(5, FormToolbarComponent_Conditional_5_Template, 2, 3, "mj-skip-chat-with-record-window", 4)(6, FormToolbarComponent_Conditional_6_Template, 1, 1, "mj-record-changes", 5)(7, FormToolbarComponent_kendo_dialog_7_Template, 8, 2, "kendo-dialog", 6);
280
280
  i0.ɵɵelementEnd();
281
281
  } if (rf & 2) {
282
282
  i0.ɵɵclassProp("disabled", ctx.CurrentlyDisabled);
283
283
  i0.ɵɵadvance();
284
- i0.ɵɵconditional(1, !ctx.form.EditMode ? 1 : 2);
284
+ i0.ɵɵconditional(!ctx.form.EditMode ? 1 : 2);
285
285
  i0.ɵɵadvance(2);
286
- i0.ɵɵconditional(3, (ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges) && !ctx.form.EditMode ? 3 : -1);
286
+ i0.ɵɵconditional((ctx.form.EntityInfo == null ? null : ctx.form.EntityInfo.TrackRecordChanges) && !ctx.form.EditMode ? 3 : -1);
287
287
  i0.ɵɵadvance();
288
- i0.ɵɵconditional(4, ctx.ShowSkipChatButton && !ctx.form.EditMode ? 4 : -1);
288
+ i0.ɵɵconditional(ctx.ShowSkipChatButton && !ctx.form.EditMode ? 4 : -1);
289
289
  i0.ɵɵadvance();
290
- i0.ɵɵconditional(5, ctx.form.EntityInfo ? 5 : -1);
290
+ i0.ɵɵconditional(ctx.form.EntityInfo ? 5 : -1);
291
291
  i0.ɵɵadvance();
292
- i0.ɵɵconditional(6, ctx.form.isHistoryDialogOpen ? 6 : -1);
292
+ i0.ɵɵconditional(ctx.form.isHistoryDialogOpen ? 6 : -1);
293
293
  i0.ɵɵadvance();
294
294
  i0.ɵɵproperty("ngIf", ctx._deleteDialogVisible);
295
295
  } }, dependencies: [i2.NgIf, i3.RecordChangesComponent, i4.ButtonComponent, i5.DialogComponent, i5.DialogActionsComponent, i6.SkipChatWithRecordWindowComponent], styles: [".toolbar-container[_ngcontent-%COMP%] { \n border-bottom: solid 1px lightgray; \n padding-bottom: 10px; \n margin-bottom: 5px; \n}\n\n.toolbar-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { \n margin-right: 7px; \n} \n.toolbar-container[_ngcontent-%COMP%] .button-text[_ngcontent-%COMP%] { \n margin-left: 7px; \n} \n\n.toolbar-container.disabled[_ngcontent-%COMP%] {\n pointer-events: none;\n opacity: 0.8;\n}\n\n.disabled[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n .form-toolbar-status-message {\n background: #f0f0f0;\n padding: 15px;\n border-radius: 5px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n opacity: 1;\n z-index: 1000;\n color:#1d7032;\n font: 16px;\n font-weight: bold;\n min-width: 100px;\n\n text-align: center; \n\n}\n\n\n .form-toolbar-elapsed-time {\n \n\n\n\n position: absolute;\n top: 0;\n right: 0;\n color: darkgray;\n font-size: smaller;\n padding: 2px;\n border-radius: 5px;\n margin: 5px;\n z-index: 1000;\n}\n\n .form-toolbar-server-update-message {\n margin-top: 7px;\n font-size: smaller;\n color: black;\n}"] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-form-toolbar",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "MemberJunction: Angular Form Toolbar",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -15,25 +15,26 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "devDependencies": {
18
- "@angular/compiler": "~17.2.2",
19
- "@angular/compiler-cli": "~17.2.2"
18
+ "@angular/compiler": "18.0.2",
19
+ "@angular/compiler-cli": "18.0.2"
20
20
  },
21
21
  "peerDependencies": {
22
- "@angular/common": "~17.2.2",
23
- "@angular/core": "~17.2.2",
24
- "@angular/forms": "~17.2.2",
25
- "@angular/router": "~17.2.2"
22
+ "@angular/common": "18.0.2",
23
+ "@angular/core": "18.0.2",
24
+ "@angular/forms": "18.0.2",
25
+ "@angular/router": "18.0.2"
26
26
  },
27
27
  "dependencies": {
28
- "@memberjunction/global": "~1.5.2",
29
- "@memberjunction/core": "~1.5.2",
30
- "@memberjunction/ng-shared": "~1.5.2",
31
- "@memberjunction/ng-base-forms": "~1.5.2",
32
- "@memberjunction/ng-ask-skip": "~1.5.2",
33
- "@memberjunction/ng-record-changes": "~1.5.2",
34
- "@memberjunction/ng-container-directives": "~1.5.2",
35
- "@progress/kendo-angular-buttons": "~15.1.0",
36
- "@progress/kendo-angular-dialog": "~15.1.0",
28
+ "@memberjunction/global": "1.6.0",
29
+ "@memberjunction/core": "1.6.0",
30
+ "@memberjunction/ng-shared": "1.6.0",
31
+ "@memberjunction/ng-base-forms": "1.6.0",
32
+ "@memberjunction/ng-ask-skip": "1.6.0",
33
+ "@memberjunction/ng-record-changes": "1.6.0",
34
+ "@memberjunction/ng-container-directives": "1.6.0",
35
+ "@progress/kendo-angular-buttons": "16.2.0",
36
+ "@progress/kendo-angular-dialog": "16.2.0",
37
+ "ngx-markdown": "^18.0.0",
37
38
  "tslib": "^2.3.0"
38
39
  },
39
40
  "sideEffects": false