@memberjunction/ng-form-toolbar 2.11.0 → 2.13.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.
|
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { BaseFormComponent } from '@memberjunction/ng-base-forms';
|
|
3
3
|
import { CompositeKey } from '@memberjunction/core';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
|
+
import { ListEntity } from '@memberjunction/core-entities';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FormToolbarComponent implements OnInit {
|
|
7
8
|
private router;
|
|
@@ -15,6 +16,10 @@ export declare class FormToolbarComponent implements OnInit {
|
|
|
15
16
|
* Determines if the toolbar is enabled or disabled.
|
|
16
17
|
*/
|
|
17
18
|
get CurrentlyDisabled(): boolean;
|
|
19
|
+
listDialogVisible: boolean;
|
|
20
|
+
showListDialogLoader: boolean;
|
|
21
|
+
availableLists: ListEntity[];
|
|
22
|
+
selectedLists: ListEntity[];
|
|
18
23
|
/**
|
|
19
24
|
* Internal property that changes over time based on the state of the record being managed. Don't access this directly, use the CurrentlyDisabled property instead.
|
|
20
25
|
*/
|
|
@@ -36,6 +41,8 @@ export declare class FormToolbarComponent implements OnInit {
|
|
|
36
41
|
*/
|
|
37
42
|
ShowSkipChat(): void;
|
|
38
43
|
toggleDeleteDialog(show: boolean): void;
|
|
44
|
+
toggleListDialog(show: boolean): Promise<void>;
|
|
45
|
+
addRecordToList(list: ListEntity): Promise<void>;
|
|
39
46
|
deleteRecord(): Promise<void>;
|
|
40
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormToolbarComponent, never>;
|
|
41
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormToolbarComponent, "mj-form-toolbar", never, { "ShowSkipChatButton": { "alias": "ShowSkipChatButton"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-toolbar.d.ts","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAc,YAAY,
|
|
1
|
+
{"version":3,"file":"form-toolbar.d.ts","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAc,YAAY,EAAiD,MAAM,sBAAsB,CAAC;AAC/G,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAoB,UAAU,EAAE,MAAM,+BAA+B,CAAC;;AAG7E,qBAKa,oBAAqB,YAAW,MAAM;IAwC5B,OAAO,CAAC,MAAM;IAvCxB,kBAAkB,EAAE,OAAO,CAAQ;IACnC,IAAI,EAAG,iBAAiB,CAAC;IAGlC;;OAEG;IACI,QAAQ,EAAE,OAAO,CAAS;IAEjC;;OAEG;IACH,IAAW,iBAAiB,IAAI,OAAO,CAEtC;IAEM,iBAAiB,EAAE,OAAO,CAAS;IACnC,oBAAoB,EAAE,OAAO,CAAS;IACtC,cAAc,EAAE,UAAU,EAAE,CAAM;IAClC,aAAa,EAAE,UAAU,EAAE,CAAM;IAExC;;OAEG;IACI,kBAAkB,EAAE,OAAO,CAAS;IAE3C;;OAEG;IACI,oBAAoB,EAAE,OAAO,CAAS;IAC7C;;OAEG;IACI,sBAAsB,EAAE,OAAO,CAAS;IAE/C,IAAW,sBAAsB,IAAI,YAAY,CAEhD;gBAE0B,MAAM,EAAE,MAAM;IAG5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAGzB,kBAAkB,CAAC,KAAK,EAAE,UAAU;IAkEjD;;OAEG;IACI,YAAY,IAAI,IAAI;IAKpB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAIjC,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAS9C,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBhD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;yCA5JjC,oBAAoB;2CAApB,oBAAoB;CAoLhC"}
|
package/dist/lib/form-toolbar.js
CHANGED
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { Component, Input } from '@angular/core';
|
|
11
11
|
import { EventCodes, SharedService } from '@memberjunction/ng-shared';
|
|
12
|
+
import { LogError, Metadata } from '@memberjunction/core';
|
|
12
13
|
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
import * as i1 from "@angular/router";
|
|
@@ -19,42 +20,42 @@ import * as i5 from "@progress/kendo-angular-dialog";
|
|
|
19
20
|
import * as i6 from "@memberjunction/ng-ask-skip";
|
|
20
21
|
function FormToolbarComponent_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
21
22
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
22
|
-
i0.ɵɵelementStart(0, "button",
|
|
23
|
+
i0.ɵɵelementStart(0, "button", 11);
|
|
23
24
|
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",
|
|
25
|
-
i0.ɵɵelementStart(2, "span",
|
|
25
|
+
i0.ɵɵelement(1, "span", 12);
|
|
26
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
26
27
|
i0.ɵɵtext(3, "Edit");
|
|
27
28
|
i0.ɵɵelementEnd()();
|
|
28
29
|
} }
|
|
29
30
|
function FormToolbarComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
31
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
31
|
-
i0.ɵɵelementStart(0, "button",
|
|
32
|
+
i0.ɵɵelementStart(0, "button", 14);
|
|
32
33
|
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",
|
|
34
|
+
i0.ɵɵelement(1, "span", 15);
|
|
34
35
|
i0.ɵɵelementEnd();
|
|
35
36
|
} }
|
|
36
37
|
function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
37
38
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
38
|
-
i0.ɵɵelementStart(0, "button",
|
|
39
|
+
i0.ɵɵelementStart(0, "button", 18);
|
|
39
40
|
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",
|
|
41
|
+
i0.ɵɵelement(1, "span", 19);
|
|
41
42
|
i0.ɵɵelementEnd();
|
|
42
43
|
} }
|
|
43
44
|
function FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
44
45
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
45
|
-
i0.ɵɵelementStart(0, "button",
|
|
46
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
46
47
|
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",
|
|
48
|
+
i0.ɵɵelement(1, "span", 21);
|
|
48
49
|
i0.ɵɵelementEnd();
|
|
49
50
|
} }
|
|
50
51
|
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",
|
|
52
|
+
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_0_Template, 2, 0, "button", 16)(1, FormToolbarComponent_Conditional_1_Conditional_2_Conditional_1_Template, 2, 0, "button", 17);
|
|
52
53
|
} if (rf & 2) {
|
|
53
54
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
54
55
|
i0.ɵɵconditional(ctx_r1.form.IsFavorite ? 0 : 1);
|
|
55
56
|
} }
|
|
56
57
|
function FormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
-
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button",
|
|
58
|
+
i0.ɵɵtemplate(0, FormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 0, "button", 9)(1, FormToolbarComponent_Conditional_1_Conditional_1_Template, 2, 0, "button", 10)(2, FormToolbarComponent_Conditional_1_Conditional_2_Template, 2, 1);
|
|
58
59
|
} if (rf & 2) {
|
|
59
60
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
60
61
|
i0.ɵɵconditional(ctx_r1.form.UserCanEdit ? 0 : -1);
|
|
@@ -65,31 +66,31 @@ function FormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
65
66
|
} }
|
|
66
67
|
function FormToolbarComponent_Conditional_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
67
68
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
68
|
-
i0.ɵɵelementStart(0, "button",
|
|
69
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
69
70
|
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",
|
|
71
|
-
i0.ɵɵelementStart(2, "span",
|
|
71
|
+
i0.ɵɵelement(1, "span", 27);
|
|
72
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
72
73
|
i0.ɵɵtext(3, "Cancel");
|
|
73
74
|
i0.ɵɵelementEnd()();
|
|
74
75
|
} }
|
|
75
76
|
function FormToolbarComponent_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
76
77
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
77
|
-
i0.ɵɵelementStart(0, "button",
|
|
78
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
78
79
|
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",
|
|
80
|
-
i0.ɵɵelementStart(2, "span",
|
|
80
|
+
i0.ɵɵelement(1, "span", 29);
|
|
81
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
81
82
|
i0.ɵɵtext(3, "Changes");
|
|
82
83
|
i0.ɵɵelementEnd()();
|
|
83
84
|
} }
|
|
84
85
|
function FormToolbarComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
85
86
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
86
|
-
i0.ɵɵelementStart(0, "button",
|
|
87
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
87
88
|
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",
|
|
89
|
-
i0.ɵɵelementStart(2, "span",
|
|
89
|
+
i0.ɵɵelement(1, "span", 23);
|
|
90
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
90
91
|
i0.ɵɵtext(3, "Save");
|
|
91
92
|
i0.ɵɵelementEnd()();
|
|
92
|
-
i0.ɵɵtemplate(4, FormToolbarComponent_Conditional_2_Conditional_4_Template, 4, 0, "button",
|
|
93
|
+
i0.ɵɵtemplate(4, FormToolbarComponent_Conditional_2_Conditional_4_Template, 4, 0, "button", 24)(5, FormToolbarComponent_Conditional_2_Conditional_5_Template, 4, 0, "button", 25);
|
|
93
94
|
} if (rf & 2) {
|
|
94
95
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
95
96
|
i0.ɵɵadvance(4);
|
|
@@ -99,23 +100,23 @@ function FormToolbarComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
99
100
|
} }
|
|
100
101
|
function FormToolbarComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
101
102
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
102
|
-
i0.ɵɵelementStart(0, "button",
|
|
103
|
+
i0.ɵɵelementStart(0, "button", 30);
|
|
103
104
|
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",
|
|
105
|
-
i0.ɵɵelementStart(2, "span",
|
|
105
|
+
i0.ɵɵelement(1, "span", 31);
|
|
106
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
106
107
|
i0.ɵɵtext(3, "History");
|
|
107
108
|
i0.ɵɵelementEnd()();
|
|
108
109
|
} }
|
|
109
110
|
function FormToolbarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
110
111
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
111
|
-
i0.ɵɵelementStart(0, "button",
|
|
112
|
+
i0.ɵɵelementStart(0, "button", 32);
|
|
112
113
|
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",
|
|
114
|
+
i0.ɵɵelement(1, "span", 33);
|
|
114
115
|
i0.ɵɵelementEnd();
|
|
115
116
|
} }
|
|
116
117
|
function FormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
117
118
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
118
|
-
i0.ɵɵelementStart(0, "mj-skip-chat-with-record-window",
|
|
119
|
+
i0.ɵɵelementStart(0, "mj-skip-chat-with-record-window", 34, 0);
|
|
119
120
|
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
121
|
i0.ɵɵelementEnd();
|
|
121
122
|
} if (rf & 2) {
|
|
@@ -124,31 +125,72 @@ function FormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
124
125
|
} }
|
|
125
126
|
function FormToolbarComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
126
127
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
127
|
-
i0.ɵɵelementStart(0, "mj-record-changes",
|
|
128
|
+
i0.ɵɵelementStart(0, "mj-record-changes", 35);
|
|
128
129
|
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
130
|
i0.ɵɵelementEnd();
|
|
130
131
|
} if (rf & 2) {
|
|
131
132
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
132
133
|
i0.ɵɵproperty("record", ctx_r1.form.record);
|
|
133
134
|
} }
|
|
134
|
-
function
|
|
135
|
+
function FormToolbarComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
135
136
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
136
|
-
i0.ɵɵelementStart(0, "
|
|
137
|
-
i0.ɵɵlistener("
|
|
138
|
-
i0.ɵɵ
|
|
137
|
+
i0.ɵɵelementStart(0, "button", 36);
|
|
138
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_Conditional_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleListDialog(true)); });
|
|
139
|
+
i0.ɵɵelement(1, "span", 37);
|
|
140
|
+
i0.ɵɵelementEnd();
|
|
141
|
+
} }
|
|
142
|
+
function FormToolbarComponent_kendo_dialog_8_Template(rf, ctx) { if (rf & 1) {
|
|
143
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
144
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 38);
|
|
145
|
+
i0.ɵɵlistener("close", function FormToolbarComponent_kendo_dialog_8_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleDeleteDialog(false)); });
|
|
146
|
+
i0.ɵɵelementStart(1, "p", 39);
|
|
139
147
|
i0.ɵɵtext(2, " Are you sure you want to delete this record? ");
|
|
140
148
|
i0.ɵɵelementEnd();
|
|
141
|
-
i0.ɵɵelementStart(3, "kendo-dialog-actions",
|
|
142
|
-
i0.ɵɵlistener("click", function
|
|
149
|
+
i0.ɵɵelementStart(3, "kendo-dialog-actions", 40)(4, "button", 41);
|
|
150
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_8_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.deleteRecord()); });
|
|
143
151
|
i0.ɵɵtext(5, " Yes, Delete ");
|
|
144
152
|
i0.ɵɵelementEnd();
|
|
145
|
-
i0.ɵɵelementStart(6, "button",
|
|
146
|
-
i0.ɵɵlistener("click", function
|
|
153
|
+
i0.ɵɵelementStart(6, "button", 42);
|
|
154
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_8_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleDeleteDialog(false)); });
|
|
147
155
|
i0.ɵɵtext(7, " No, Cancel ");
|
|
148
156
|
i0.ɵɵelementEnd()()();
|
|
149
157
|
} if (rf & 2) {
|
|
150
158
|
i0.ɵɵproperty("minWidth", 450)("width", 650);
|
|
151
159
|
} }
|
|
160
|
+
function FormToolbarComponent_kendo_dialog_9_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
162
|
+
i0.ɵɵelementStart(0, "div", 44)(1, "div", 45)(2, "div", 46);
|
|
163
|
+
i0.ɵɵtext(3);
|
|
164
|
+
i0.ɵɵelementEnd();
|
|
165
|
+
i0.ɵɵelementStart(4, "button", 47);
|
|
166
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_9_For_3_Template_button_click_4_listener() { const list_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.addRecordToList(list_r17)); });
|
|
167
|
+
i0.ɵɵelementStart(5, "div", 48);
|
|
168
|
+
i0.ɵɵelement(6, "span", 37);
|
|
169
|
+
i0.ɵɵtext(7, " Add ");
|
|
170
|
+
i0.ɵɵelementEnd()()();
|
|
171
|
+
i0.ɵɵelement(8, "hr");
|
|
172
|
+
i0.ɵɵelementEnd();
|
|
173
|
+
} if (rf & 2) {
|
|
174
|
+
const list_r17 = ctx.$implicit;
|
|
175
|
+
i0.ɵɵadvance(3);
|
|
176
|
+
i0.ɵɵtextInterpolate1(" ", list_r17.Name, " ");
|
|
177
|
+
} }
|
|
178
|
+
function FormToolbarComponent_kendo_dialog_9_Template(rf, ctx) { if (rf & 1) {
|
|
179
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
180
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 43);
|
|
181
|
+
i0.ɵɵlistener("close", function FormToolbarComponent_kendo_dialog_9_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleListDialog(false)); });
|
|
182
|
+
i0.ɵɵelement(1, "hr");
|
|
183
|
+
i0.ɵɵrepeaterCreate(2, FormToolbarComponent_kendo_dialog_9_For_3_Template, 9, 1, "div", 44, i0.ɵɵrepeaterTrackByIdentity);
|
|
184
|
+
i0.ɵɵelementStart(4, "kendo-dialog-actions", 40)(5, "button", 42);
|
|
185
|
+
i0.ɵɵlistener("click", function FormToolbarComponent_kendo_dialog_9_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleListDialog(false)); });
|
|
186
|
+
i0.ɵɵtext(6, " Close ");
|
|
187
|
+
i0.ɵɵelementEnd()()();
|
|
188
|
+
} if (rf & 2) {
|
|
189
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
190
|
+
i0.ɵɵproperty("minWidth", 250)("width", 650)("height", 550);
|
|
191
|
+
i0.ɵɵadvance(2);
|
|
192
|
+
i0.ɵɵrepeater(ctx_r1.availableLists);
|
|
193
|
+
} }
|
|
152
194
|
export class FormToolbarComponent {
|
|
153
195
|
/**
|
|
154
196
|
* Determines if the toolbar is enabled or disabled.
|
|
@@ -166,6 +208,10 @@ export class FormToolbarComponent {
|
|
|
166
208
|
* This property does not get modified by the toolbar as things change within its state, it is the global setting you can change to disable the toolbar
|
|
167
209
|
*/
|
|
168
210
|
this.Disabled = false;
|
|
211
|
+
this.listDialogVisible = false;
|
|
212
|
+
this.showListDialogLoader = false;
|
|
213
|
+
this.availableLists = [];
|
|
214
|
+
this.selectedLists = [];
|
|
169
215
|
/**
|
|
170
216
|
* Internal property that changes over time based on the state of the record being managed. Don't access this directly, use the CurrentlyDisabled property instead.
|
|
171
217
|
*/
|
|
@@ -251,6 +297,35 @@ export class FormToolbarComponent {
|
|
|
251
297
|
toggleDeleteDialog(show) {
|
|
252
298
|
this._deleteDialogVisible = show;
|
|
253
299
|
}
|
|
300
|
+
toggleListDialog(show) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
this.listDialogVisible = show;
|
|
303
|
+
if (show) {
|
|
304
|
+
this.availableLists = [];
|
|
305
|
+
this.availableLists = yield this.form.GetListsCanAddTo();
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
addRecordToList(list) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
this.toggleListDialog(false);
|
|
312
|
+
const md = new Metadata();
|
|
313
|
+
const listDetailEntity = yield md.GetEntityObject("List Details", md.CurrentUser);
|
|
314
|
+
listDetailEntity.NewRecord();
|
|
315
|
+
listDetailEntity.ListID = list.ID;
|
|
316
|
+
listDetailEntity.RecordID = this.form.record.FirstPrimaryKey.Value;
|
|
317
|
+
const saveResult = yield listDetailEntity.Save();
|
|
318
|
+
if (!saveResult) {
|
|
319
|
+
LogError(`Error adding record to list ${list.Name}`, undefined, listDetailEntity.LatestResult);
|
|
320
|
+
}
|
|
321
|
+
if (saveResult) {
|
|
322
|
+
SharedService.Instance.CreateSimpleNotification("Record added to list successfully", "success", 2500);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
SharedService.Instance.CreateSimpleNotification(`Failed to add record to list`, "error", 2500);
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
254
329
|
deleteRecord() {
|
|
255
330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
331
|
this.toggleDeleteDialog(false);
|
|
@@ -277,9 +352,9 @@ export class FormToolbarComponent {
|
|
|
277
352
|
}
|
|
278
353
|
}
|
|
279
354
|
FormToolbarComponent.ɵfac = function FormToolbarComponent_Factory(t) { return new (t || FormToolbarComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
|
|
280
|
-
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { ShowSkipChatButton: "ShowSkipChatButton", form: "form" }, decls:
|
|
355
|
+
FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { ShowSkipChatButton: "ShowSkipChatButton", form: "form" }, decls: 10, vars: 10, consts: [["mjChat", ""], [1, "toolbar-container"], ["kendoButton", "", "title", "Show History"], ["kendoButton", "", "title", "Discuss this record with Skip"], [3, "LinkedEntityID", "LinkedEntityPrimaryKey", "WindowOpened"], [3, "record"], ["kendoButton", "", "title", "Add this record to a list"], ["class", "dialog-wrapper", "title", "Confirm", 3, "minWidth", "width", "close", 4, "ngIf"], ["class", "dialog-wrapper", "title", "Select List to Add Record To", 3, "minWidth", "width", "height", "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"], ["kendoButton", "", "title", "Add this record to a list", 3, "click"], [1, "fa-solid", "fa-plus"], ["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"], ["title", "Select List to Add Record To", 1, "dialog-wrapper", 3, "close", "minWidth", "width", "height"], [1, "overflow-y-scroll"], [1, "list-item"], [1, "list-text"], ["kendoButton", "", 1, "btn-no-border", 3, "click"], [1, "btn-margin-right"]], template: function FormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
281
356
|
i0.ɵɵelementStart(0, "div", 1);
|
|
282
|
-
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,
|
|
357
|
+
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_Conditional_7_Template, 2, 0, "button", 6)(8, FormToolbarComponent_kendo_dialog_8_Template, 8, 2, "kendo-dialog", 7)(9, FormToolbarComponent_kendo_dialog_9_Template, 7, 3, "kendo-dialog", 8);
|
|
283
358
|
i0.ɵɵelementEnd();
|
|
284
359
|
} if (rf & 2) {
|
|
285
360
|
i0.ɵɵclassProp("disabled", ctx.CurrentlyDisabled);
|
|
@@ -294,15 +369,19 @@ FormToolbarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormTo
|
|
|
294
369
|
i0.ɵɵadvance();
|
|
295
370
|
i0.ɵɵconditional(ctx.form.isHistoryDialogOpen ? 6 : -1);
|
|
296
371
|
i0.ɵɵadvance();
|
|
372
|
+
i0.ɵɵconditional(!ctx.form.EditMode ? 7 : -1);
|
|
373
|
+
i0.ɵɵadvance();
|
|
297
374
|
i0.ɵɵproperty("ngIf", ctx._deleteDialogVisible);
|
|
298
|
-
|
|
375
|
+
i0.ɵɵadvance();
|
|
376
|
+
i0.ɵɵproperty("ngIf", ctx.listDialogVisible);
|
|
377
|
+
} }, 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}\n\n.list-item[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n align-items: center;\n}"] });
|
|
299
378
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormToolbarComponent, [{
|
|
300
379
|
type: Component,
|
|
301
|
-
args: [{ selector: 'mj-form-toolbar', template: "\n<div class=\"toolbar-container\" [class.disabled]=\"CurrentlyDisabled\">\n @if (!form.EditMode) {\n @if (form.UserCanEdit) {\n <button kendoButton (click)=\"form.StartEditMode()\" title=\"Edit this Record\">\n <span class=\"fa-solid fa-pen-to-square\"></span>\n <span class=\"button-text\">Edit</span>\n </button> \n }\n @if(form.UserCanDelete){\n <button kendoButton (click)=\"toggleDeleteDialog(true)\" title=\"Delete this Record\">\n <span class=\"fa-regular fa-trash-can\"></span>\n </button> \n }\n @if (form.FavoriteInitDone) {\n @if (form.IsFavorite) {\n <button kendoButton (click)=\"form.RemoveFavorite()\" title=\"Remove Favorite\">\n <span class=\"fa-solid fa-star\"></span>\n </button> \n }\n @else {\n <button kendoButton (click)=\"form.MakeFavorite()\" title=\"Make Favorite\">\n <span class=\"fa-regular fa-star\"></span>\n </button> \n }\n }\n }\n @else {\n <button kendoButton (mouseup)=\"saveExistingRecord($event)\" title=\"Save Record\">\n <span class=\"fa-solid fa-floppy-disk\"></span>\n <span class=\"button-text\">Save</span>\n </button> \n @if (form.record.IsSaved) {\n <!-- Only show the cancel button if the record has already been saved - don't show for a new record. -->\n <button kendoButton (click)=\"form.CancelEdit()\" title=\"Cancel Edit\">\n <span class=\"fa-solid fa-rotate-left\"></span>\n <span class=\"button-text\">Cancel</span>\n </button> \n }\n @if (form.record.Dirty) {\n <button kendoButton (click)=\"form.ShowChanges()\" title=\"Fields you have changed\">\n <span class=\"fa-solid fa-clipboard-list\"></span>\n <span class=\"button-text\">Changes</span>\n </button> \n }\n }\n @if (form.EntityInfo?.TrackRecordChanges && !form.EditMode) {\n <button kendoButton (click)=\"form.handleHistoryDialog()\" title=\"Show History\">\n <span class=\"fa-solid fa-business-time\"></span>\n <span class=\"button-text\">History</span>\n </button> \n }\n @if (ShowSkipChatButton && !form.EditMode) {\n <button kendoButton (click)=\"ShowSkipChat()\" title=\"Discuss this record with Skip\">\n <span class=\"fa-regular fa-comment-dots\"></span>\n </button> \n }\n @if (form.EntityInfo) {\n <mj-skip-chat-with-record-window\n [LinkedEntityID]=\"form.EntityInfo.ID\"\n [LinkedEntityPrimaryKey]=\"LinkedEntityPrimaryKey\" \n #mjChat\n [WindowOpened]=\"_skipChatDialogVisible\" \n (WindowClosed)=\"ShowSkipChat()\"\n >\n </mj-skip-chat-with-record-window>\n }\n @if (form.isHistoryDialogOpen) {\n <mj-record-changes [record]=\"form.record\" (dialogClosed)=\"form.handleHistoryDialog()\"></mj-record-changes>\n }\n <kendo-dialog \n [minWidth]=\"450\"\n [width]=\"650\"\n class=\"dialog-wrapper\" \n title=\"Confirm\" \n *ngIf=\"_deleteDialogVisible\" \n (close)=\"toggleDeleteDialog(false)\">\n <p class=\"k-m-7.5 k-text-center\">\n Are you sure you want to delete this record?\n </p>\n <kendo-dialog-actions class=\"popup-actions-btn\">\n <button class=\"cancel-btn\" (click)=\"deleteRecord()\" kendoButton themeColor=\"info\">\n Yes, Delete\n </button>\n <button class=\"yes-btn\" (click)=\"toggleDeleteDialog(false)\" kendoButton fillMode=\"outline\" themeColor=\"info\">\n No, Cancel\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n</div>", styles: [".toolbar-container { \n border-bottom: solid 1px lightgray; \n padding-bottom: 10px; \n margin-bottom: 5px; \n}\n\n.toolbar-container button { \n margin-right: 7px; \n} \n.toolbar-container .button-text { \n margin-left: 7px; \n} \n\n.toolbar-container.disabled {\n pointer-events: none;\n opacity: 0.8;\n}\n\n.disabled {\n pointer-events: none;\n}\n\n::ng-deep .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; /* Center the text horizontally */\n}\n\n\n::ng-deep .form-toolbar-elapsed-time {\n /*\n we want this littler timer to be small dark gray text in the top right corner with a white background\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::ng-deep .form-toolbar-server-update-message {\n margin-top: 7px;\n font-size: smaller;\n color: black;\n}"] }]
|
|
380
|
+
args: [{ selector: 'mj-form-toolbar', template: "\n<div class=\"toolbar-container\" [class.disabled]=\"CurrentlyDisabled\">\n @if (!form.EditMode) {\n @if (form.UserCanEdit) {\n <button kendoButton (click)=\"form.StartEditMode()\" title=\"Edit this Record\">\n <span class=\"fa-solid fa-pen-to-square\"></span>\n <span class=\"button-text\">Edit</span>\n </button> \n }\n @if(form.UserCanDelete){\n <button kendoButton (click)=\"toggleDeleteDialog(true)\" title=\"Delete this Record\">\n <span class=\"fa-regular fa-trash-can\"></span>\n </button> \n }\n @if (form.FavoriteInitDone) {\n @if (form.IsFavorite) {\n <button kendoButton (click)=\"form.RemoveFavorite()\" title=\"Remove Favorite\">\n <span class=\"fa-solid fa-star\"></span>\n </button> \n }\n @else {\n <button kendoButton (click)=\"form.MakeFavorite()\" title=\"Make Favorite\">\n <span class=\"fa-regular fa-star\"></span>\n </button> \n }\n }\n }\n @else {\n <button kendoButton (mouseup)=\"saveExistingRecord($event)\" title=\"Save Record\">\n <span class=\"fa-solid fa-floppy-disk\"></span>\n <span class=\"button-text\">Save</span>\n </button> \n @if (form.record.IsSaved) {\n <!-- Only show the cancel button if the record has already been saved - don't show for a new record. -->\n <button kendoButton (click)=\"form.CancelEdit()\" title=\"Cancel Edit\">\n <span class=\"fa-solid fa-rotate-left\"></span>\n <span class=\"button-text\">Cancel</span>\n </button> \n }\n @if (form.record.Dirty) {\n <button kendoButton (click)=\"form.ShowChanges()\" title=\"Fields you have changed\">\n <span class=\"fa-solid fa-clipboard-list\"></span>\n <span class=\"button-text\">Changes</span>\n </button> \n }\n }\n @if (form.EntityInfo?.TrackRecordChanges && !form.EditMode) {\n <button kendoButton (click)=\"form.handleHistoryDialog()\" title=\"Show History\">\n <span class=\"fa-solid fa-business-time\"></span>\n <span class=\"button-text\">History</span>\n </button> \n }\n @if (ShowSkipChatButton && !form.EditMode) {\n <button kendoButton (click)=\"ShowSkipChat()\" title=\"Discuss this record with Skip\">\n <span class=\"fa-regular fa-comment-dots\"></span>\n </button> \n }\n @if (form.EntityInfo) {\n <mj-skip-chat-with-record-window\n [LinkedEntityID]=\"form.EntityInfo.ID\"\n [LinkedEntityPrimaryKey]=\"LinkedEntityPrimaryKey\" \n #mjChat\n [WindowOpened]=\"_skipChatDialogVisible\" \n (WindowClosed)=\"ShowSkipChat()\"\n >\n </mj-skip-chat-with-record-window>\n }\n @if (form.isHistoryDialogOpen) {\n <mj-record-changes [record]=\"form.record\" (dialogClosed)=\"form.handleHistoryDialog()\"></mj-record-changes>\n }\n @if(!form.EditMode){\n <button kendoButton (click)=\"toggleListDialog(true)\" title=\"Add this record to a list\">\n <span class=\"fa-solid fa-plus\"></span>\n </button> \n }\n <kendo-dialog \n [minWidth]=\"450\"\n [width]=\"650\"\n class=\"dialog-wrapper\" \n title=\"Confirm\" \n *ngIf=\"_deleteDialogVisible\" \n (close)=\"toggleDeleteDialog(false)\">\n <p class=\"k-m-7.5 k-text-center\">\n Are you sure you want to delete this record?\n </p>\n <kendo-dialog-actions class=\"popup-actions-btn\">\n <button class=\"cancel-btn\" (click)=\"deleteRecord()\" kendoButton themeColor=\"info\">\n Yes, Delete\n </button>\n <button class=\"yes-btn\" (click)=\"toggleDeleteDialog(false)\" kendoButton fillMode=\"outline\" themeColor=\"info\">\n No, Cancel\n </button>\n </kendo-dialog-actions>\n </kendo-dialog>\n\n <kendo-dialog\n class=\"dialog-wrapper\"\n title=\"Select List to Add Record To\"\n *ngIf=\"listDialogVisible\"\n (close)=\"toggleListDialog(false)\"\n [minWidth]=\"250\"\n [width]=\"650\"\n [height]=\"550\"\n >\n <hr>\n @for(list of availableLists; track list){\n <div class=\"overflow-y-scroll\">\n <div class=\"list-item\">\n <div class=\"list-text\">\n {{list.Name}}\n </div>\n <button kendoButton class=\"btn-no-border\" (click)=\"addRecordToList(list)\">\n <div class=\"btn-margin-right\">\n <span class=\"fa-solid fa-plus\"></span>\n Add\n </div>\n </button>\n </div>\n <hr>\n </div>\n }\n <kendo-dialog-actions class=\"popup-actions-btn\">\n <button class=\"yes-btn\" (click)=\"toggleListDialog(false)\" kendoButton fillMode=\"outline\" themeColor=\"info\">\n Close\n </button>\n </kendo-dialog-actions>\n</kendo-dialog>\n</div>", styles: [".toolbar-container { \n border-bottom: solid 1px lightgray; \n padding-bottom: 10px; \n margin-bottom: 5px; \n}\n\n.toolbar-container button { \n margin-right: 7px; \n} \n.toolbar-container .button-text { \n margin-left: 7px; \n} \n\n.toolbar-container.disabled {\n pointer-events: none;\n opacity: 0.8;\n}\n\n.disabled {\n pointer-events: none;\n}\n\n::ng-deep .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; /* Center the text horizontally */\n}\n\n\n::ng-deep .form-toolbar-elapsed-time {\n /*\n we want this littler timer to be small dark gray text in the top right corner with a white background\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::ng-deep .form-toolbar-server-update-message {\n margin-top: 7px;\n font-size: smaller;\n color: black;\n}\n\n.list-item {\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n align-items: center;\n}"] }]
|
|
302
381
|
}], () => [{ type: i1.Router }], { ShowSkipChatButton: [{
|
|
303
382
|
type: Input
|
|
304
383
|
}], form: [{
|
|
305
384
|
type: Input
|
|
306
385
|
}] }); })();
|
|
307
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormToolbarComponent, { className: "FormToolbarComponent", filePath: "src/lib/form-toolbar.ts", lineNumber:
|
|
386
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormToolbarComponent, { className: "FormToolbarComponent", filePath: "src/lib/form-toolbar.ts", lineNumber: 15 }); })();
|
|
308
387
|
//# sourceMappingURL=form-toolbar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-toolbar.js","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts","../../src/lib/form-toolbar.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"form-toolbar.js","sourceRoot":"","sources":["../../src/lib/form-toolbar.ts","../../src/lib/form-toolbar.html"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAA4B,QAAQ,EAAE,QAAQ,EAA6B,MAAM,sBAAsB,CAAC;AAE/G,OAAO,EAAW,WAAW,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;ICD5D,kCAA4E;IAAxD,uMAAS,2BAAoB,KAAC;IAC9C,2BAA+C;IAC/C,gCAA0B;IAAA,oBAAI;IAClC,AADkC,iBAAO,EAChC;;;;IAGT,kCAAkF;IAA9D,uMAAS,0BAAmB,IAAI,CAAC,KAAC;IAClD,2BAA6C;IACjD,iBAAS;;;;IAIL,kCAA4E;IAAxD,qNAAS,4BAAqB,KAAC;IAC/C,2BAAsC;IAC1C,iBAAS;;;;IAGT,kCAAwE;IAApD,qNAAS,0BAAmB,KAAC;IAC7C,2BAAwC;IAC5C,iBAAS;;;IAHb,AALA,6GAAuB,gGAKhB;;;IALP,gDASC;;;IAVL,AALA,AANA,8FAAwB,kFAMA,oEAKK;;;IAX7B,kDAKC;IACD,cAIC;IAJD,oDAIC;IACD,cAWC;IAXD,uDAWC;;;;IASG,kCAAoE;IAAhD,uMAAS,wBAAiB,KAAC;IAC3C,2BAA6C;IAC7C,gCAA0B;IAAA,sBAAM;IACpC,AADoC,iBAAO,EAClC;;;;IAGT,kCAAi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EC;QACD,cAIC;QAJD,6CAIC;QAMA,cAA0B;QAA1B,+CAA0B;QAkB1B,cAAuB;QAAvB,4CAAuB;;iFDpFf,oBAAoB;cALhC,SAAS;2BACI,iBAAiB;uCAKlB,kBAAkB;kBAA1B,KAAK;YACG,IAAI;kBAAZ,KAAK;;kFAFG,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-form-toolbar",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "MemberJunction: Angular Form Toolbar",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"@angular/router": "18.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/global": "2.
|
|
29
|
-
"@memberjunction/core": "2.
|
|
30
|
-
"@memberjunction/ng-shared": "2.
|
|
31
|
-
"@memberjunction/ng-base-forms": "2.
|
|
32
|
-
"@memberjunction/ng-ask-skip": "2.
|
|
33
|
-
"@memberjunction/ng-record-changes": "2.
|
|
34
|
-
"@memberjunction/ng-container-directives": "2.
|
|
28
|
+
"@memberjunction/global": "2.13.0",
|
|
29
|
+
"@memberjunction/core": "2.13.0",
|
|
30
|
+
"@memberjunction/ng-shared": "2.13.0",
|
|
31
|
+
"@memberjunction/ng-base-forms": "2.13.0",
|
|
32
|
+
"@memberjunction/ng-ask-skip": "2.13.0",
|
|
33
|
+
"@memberjunction/ng-record-changes": "2.13.0",
|
|
34
|
+
"@memberjunction/ng-container-directives": "2.13.0",
|
|
35
35
|
"@progress/kendo-angular-buttons": "16.2.0",
|
|
36
36
|
"@progress/kendo-angular-dialog": "16.2.0",
|
|
37
37
|
"ngx-markdown": "^18.0.0",
|