@memberjunction/ng-base-forms 6.2.0-edge.7 → 6.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/README.md +10 -0
- package/dist/lib/base-form-component.d.ts +15 -2
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +18 -8
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/chrome/form-chrome-coordinator.service.d.ts.map +1 -1
- package/dist/lib/chrome/form-chrome-coordinator.service.js +4 -1
- package/dist/lib/chrome/form-chrome-coordinator.service.js.map +1 -1
- package/dist/lib/chrome/phone-viewport.d.ts +15 -0
- package/dist/lib/chrome/phone-viewport.d.ts.map +1 -0
- package/dist/lib/chrome/phone-viewport.js +28 -0
- package/dist/lib/chrome/phone-viewport.js.map +1 -0
- package/dist/lib/comments/form-record-comments-coordinator.service.d.ts +159 -0
- package/dist/lib/comments/form-record-comments-coordinator.service.d.ts.map +1 -0
- package/dist/lib/comments/form-record-comments-coordinator.service.js +421 -0
- package/dist/lib/comments/form-record-comments-coordinator.service.js.map +1 -0
- package/dist/lib/comments/record-comments.component.d.ts +205 -0
- package/dist/lib/comments/record-comments.component.d.ts.map +1 -0
- package/dist/lib/comments/record-comments.component.js +2019 -0
- package/dist/lib/comments/record-comments.component.js.map +1 -0
- package/dist/lib/container/record-form-container.component.d.ts +47 -1
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +876 -316
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/field/default-fk-lookup-strategy.d.ts.map +1 -1
- package/dist/lib/field/default-fk-lookup-strategy.js +14 -6
- package/dist/lib/field/default-fk-lookup-strategy.js.map +1 -1
- package/dist/lib/field/fk-lookup-strategy.d.ts +11 -0
- package/dist/lib/field/fk-lookup-strategy.d.ts.map +1 -1
- package/dist/lib/field/fk-lookup-strategy.js +10 -0
- package/dist/lib/field/fk-lookup-strategy.js.map +1 -1
- package/dist/lib/field/fk-search-utils.d.ts +17 -0
- package/dist/lib/field/fk-search-utils.d.ts.map +1 -1
- package/dist/lib/field/fk-search-utils.js +29 -0
- package/dist/lib/field/fk-search-utils.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +35 -1
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +631 -446
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +6 -0
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +17 -3
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts +5 -0
- package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.js +109 -30
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
- package/dist/lib/related-grid-height.d.ts +2 -2
- package/dist/lib/related-grid-height.d.ts.map +1 -1
- package/dist/lib/related-grid-height.js +2 -2
- package/dist/lib/related-grid-height.js.map +1 -1
- package/dist/lib/section-indicators/form-section-indicators.d.ts +4 -0
- package/dist/lib/section-indicators/form-section-indicators.d.ts.map +1 -1
- package/dist/lib/section-indicators/form-section-indicators.js +15 -1
- package/dist/lib/section-indicators/form-section-indicators.js.map +1 -1
- package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts +17 -0
- package/dist/lib/toolbar/actions/record-comments-toolbar-action.d.ts.map +1 -0
- package/dist/lib/toolbar/actions/record-comments-toolbar-action.js +52 -0
- package/dist/lib/toolbar/actions/record-comments-toolbar-action.js.map +1 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts +9 -0
- package/dist/lib/toolbar/base-form-toolbar-action.d.ts.map +1 -1
- package/dist/lib/toolbar/base-form-toolbar-action.js.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts +107 -2
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +927 -415
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts.map +1 -1
- package/dist/lib/types/form-toolbar-item.js.map +1 -1
- package/dist/lib/types/form-types.d.ts +8 -0
- package/dist/lib/types/form-types.d.ts.map +1 -1
- package/dist/lib/types/form-types.js.map +1 -1
- package/dist/lib/types/toolbar-config.d.ts +2 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -1
- package/dist/lib/types/toolbar-config.js.map +1 -1
- package/dist/module.d.ts +15 -14
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +15 -5
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +20 -20
|
@@ -2,6 +2,7 @@ import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, Change
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { takeUntil } from 'rxjs/operators';
|
|
4
4
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
5
|
+
import { IsPhoneViewport, WatchPhoneViewport } from '../chrome/phone-viewport';
|
|
5
6
|
import { CompositeKey, LogError } from '@memberjunction/core';
|
|
6
7
|
import { UUIDsEqual } from '@memberjunction/global';
|
|
7
8
|
import { UserInfoEngine } from '@memberjunction/core-entities';
|
|
@@ -13,7 +14,8 @@ import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator
|
|
|
13
14
|
import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, BeforeCancelEventArgs, BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, BeforeCloneEventArgs } from '../types/form-events';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
import * as i1 from "@angular/common";
|
|
16
|
-
import * as i2 from "@memberjunction/ng-
|
|
17
|
+
import * as i2 from "@memberjunction/ng-ui-components";
|
|
18
|
+
import * as i3 from "@memberjunction/ng-record-clone";
|
|
17
19
|
const _c0 = [[["", "toolbar-additional-controls", ""]]];
|
|
18
20
|
const _c1 = ["[toolbar-additional-controls]"];
|
|
19
21
|
const _c2 = a0 => ({ item: a0 });
|
|
@@ -22,32 +24,38 @@ const _forTrack0 = ($index, $item) => $item.Key;
|
|
|
22
24
|
const _forTrack1 = ($index, $item) => $item.ID;
|
|
23
25
|
const _forTrack2 = ($index, $item) => $item.EntityName;
|
|
24
26
|
function MjFormToolbarComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
i0.ɵɵelement(0, "i",
|
|
26
|
-
i0.ɵɵelementStart(1, "span",
|
|
27
|
+
i0.ɵɵelement(0, "i", 16);
|
|
28
|
+
i0.ɵɵelementStart(1, "span", 17)(2, "strong");
|
|
27
29
|
i0.ɵɵtext(3);
|
|
28
30
|
i0.ɵɵelementEnd();
|
|
29
31
|
i0.ɵɵtext(4);
|
|
30
|
-
i0.ɵɵ
|
|
32
|
+
i0.ɵɵelementStart(5, "span", 18);
|
|
33
|
+
i0.ɵɵtext(6);
|
|
34
|
+
i0.ɵɵelementEnd()();
|
|
31
35
|
} if (rf & 2) {
|
|
32
36
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
33
37
|
i0.ɵɵadvance(3);
|
|
34
38
|
i0.ɵɵtextInterpolate(ctx_r1.DirtyFieldDisplayNames.length);
|
|
35
39
|
i0.ɵɵadvance();
|
|
36
|
-
i0.ɵɵ
|
|
40
|
+
i0.ɵɵtextInterpolate1(" field", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "" : "s", " modified ");
|
|
41
|
+
i0.ɵɵadvance(2);
|
|
42
|
+
i0.ɵɵtextInterpolate1("\u2014 ", ctx_r1.DirtyFieldDisplayNames.join(", "));
|
|
37
43
|
} }
|
|
38
44
|
function MjFormToolbarComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
-
i0.ɵɵelement(0, "i",
|
|
40
|
-
i0.ɵɵelementStart(1, "span",
|
|
41
|
-
i0.ɵɵtext(2);
|
|
42
|
-
i0.ɵɵ
|
|
45
|
+
i0.ɵɵelement(0, "i", 19);
|
|
46
|
+
i0.ɵɵelementStart(1, "span", 20);
|
|
47
|
+
i0.ɵɵtext(2, "Editing");
|
|
48
|
+
i0.ɵɵelementStart(3, "span", 21);
|
|
49
|
+
i0.ɵɵtext(4);
|
|
50
|
+
i0.ɵɵelementEnd()();
|
|
43
51
|
} if (rf & 2) {
|
|
44
52
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
45
|
-
i0.ɵɵadvance(
|
|
46
|
-
i0.ɵɵtextInterpolate1("
|
|
53
|
+
i0.ɵɵadvance(4);
|
|
54
|
+
i0.ɵɵtextInterpolate1(": ", ctx_r1.RecordDisplayName);
|
|
47
55
|
} }
|
|
48
56
|
function MjFormToolbarComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "span",
|
|
50
|
-
i0.ɵɵelement(1, "i",
|
|
57
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
58
|
+
i0.ɵɵelement(1, "i", 22);
|
|
51
59
|
i0.ɵɵelementStart(2, "span");
|
|
52
60
|
i0.ɵɵtext(3);
|
|
53
61
|
i0.ɵɵelementEnd()();
|
|
@@ -57,7 +65,7 @@ function MjFormToolbarComponent_Conditional_0_Conditional_3_Template(rf, ctx) {
|
|
|
57
65
|
i0.ɵɵtextInterpolate2("", ctx_r1.EffectiveConflictCount, " ", ctx_r1.EffectiveConflictCount === 1 ? "conflict needs" : "conflicts need", " review");
|
|
58
66
|
} }
|
|
59
67
|
function MjFormToolbarComponent_Conditional_0_For_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelement(0, "i",
|
|
68
|
+
i0.ɵɵelement(0, "i", 24);
|
|
61
69
|
} }
|
|
62
70
|
function MjFormToolbarComponent_Conditional_0_For_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
63
71
|
i0.ɵɵelement(0, "i");
|
|
@@ -66,7 +74,7 @@ function MjFormToolbarComponent_Conditional_0_For_7_Conditional_2_Template(rf, c
|
|
|
66
74
|
i0.ɵɵclassMap(item_r4.Icon);
|
|
67
75
|
} }
|
|
68
76
|
function MjFormToolbarComponent_Conditional_0_For_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
i0.ɵɵelementStart(0, "span",
|
|
77
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
70
78
|
i0.ɵɵtext(1);
|
|
71
79
|
i0.ɵɵelementEnd();
|
|
72
80
|
} if (rf & 2) {
|
|
@@ -75,7 +83,7 @@ function MjFormToolbarComponent_Conditional_0_For_7_Conditional_3_Template(rf, c
|
|
|
75
83
|
i0.ɵɵtextInterpolate(item_r4.Text);
|
|
76
84
|
} }
|
|
77
85
|
function MjFormToolbarComponent_Conditional_0_For_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
-
i0.ɵɵelementStart(0, "span",
|
|
86
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
79
87
|
i0.ɵɵtext(1);
|
|
80
88
|
i0.ɵɵelementEnd();
|
|
81
89
|
} if (rf & 2) {
|
|
@@ -85,11 +93,11 @@ function MjFormToolbarComponent_Conditional_0_For_7_Conditional_4_Template(rf, c
|
|
|
85
93
|
} }
|
|
86
94
|
function MjFormToolbarComponent_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
87
95
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
88
|
-
i0.ɵɵelementStart(0, "button",
|
|
96
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
89
97
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_For_7_Template_button_click_0_listener($event) { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(item_r4, $event)); });
|
|
90
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_7_Conditional_1_Template, 1, 0, "i",
|
|
91
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_7_Conditional_3_Template, 2, 1, "span",
|
|
92
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_7_Conditional_4_Template, 2, 1, "span",
|
|
98
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_7_Conditional_1_Template, 1, 0, "i", 24)(2, MjFormToolbarComponent_Conditional_0_For_7_Conditional_2_Template, 1, 2, "i", 25);
|
|
99
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_7_Conditional_3_Template, 2, 1, "span", 13);
|
|
100
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_7_Conditional_4_Template, 2, 1, "span", 26);
|
|
93
101
|
i0.ɵɵelementEnd();
|
|
94
102
|
} if (rf & 2) {
|
|
95
103
|
const item_r4 = ctx.$implicit;
|
|
@@ -105,7 +113,7 @@ function MjFormToolbarComponent_Conditional_0_For_7_Template(rf, ctx) { if (rf &
|
|
|
105
113
|
i0.ɵɵconditional(item_r4.Badge != null ? 4 : -1);
|
|
106
114
|
} }
|
|
107
115
|
function MjFormToolbarComponent_Conditional_0_For_17_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
108
|
-
i0.ɵɵelement(0, "i",
|
|
116
|
+
i0.ɵɵelement(0, "i", 24);
|
|
109
117
|
} }
|
|
110
118
|
function MjFormToolbarComponent_Conditional_0_For_17_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
111
119
|
i0.ɵɵelement(0, "i");
|
|
@@ -114,7 +122,7 @@ function MjFormToolbarComponent_Conditional_0_For_17_Conditional_2_Template(rf,
|
|
|
114
122
|
i0.ɵɵclassMap(item_r6.Icon);
|
|
115
123
|
} }
|
|
116
124
|
function MjFormToolbarComponent_Conditional_0_For_17_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
-
i0.ɵɵelementStart(0, "span",
|
|
125
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
118
126
|
i0.ɵɵtext(1);
|
|
119
127
|
i0.ɵɵelementEnd();
|
|
120
128
|
} if (rf & 2) {
|
|
@@ -123,7 +131,7 @@ function MjFormToolbarComponent_Conditional_0_For_17_Conditional_3_Template(rf,
|
|
|
123
131
|
i0.ɵɵtextInterpolate(item_r6.Text);
|
|
124
132
|
} }
|
|
125
133
|
function MjFormToolbarComponent_Conditional_0_For_17_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
126
|
-
i0.ɵɵelementStart(0, "span",
|
|
134
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
127
135
|
i0.ɵɵtext(1);
|
|
128
136
|
i0.ɵɵelementEnd();
|
|
129
137
|
} if (rf & 2) {
|
|
@@ -133,11 +141,11 @@ function MjFormToolbarComponent_Conditional_0_For_17_Conditional_4_Template(rf,
|
|
|
133
141
|
} }
|
|
134
142
|
function MjFormToolbarComponent_Conditional_0_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
135
143
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
136
|
-
i0.ɵɵelementStart(0, "button",
|
|
144
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
137
145
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_For_17_Template_button_click_0_listener($event) { const item_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(item_r6, $event)); });
|
|
138
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_17_Conditional_1_Template, 1, 0, "i",
|
|
139
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_17_Conditional_3_Template, 2, 1, "span",
|
|
140
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_17_Conditional_4_Template, 2, 1, "span",
|
|
146
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_17_Conditional_1_Template, 1, 0, "i", 24)(2, MjFormToolbarComponent_Conditional_0_For_17_Conditional_2_Template, 1, 2, "i", 25);
|
|
147
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_17_Conditional_3_Template, 2, 1, "span", 13);
|
|
148
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_17_Conditional_4_Template, 2, 1, "span", 26);
|
|
141
149
|
i0.ɵɵelementEnd();
|
|
142
150
|
} if (rf & 2) {
|
|
143
151
|
const item_r6 = ctx.$implicit;
|
|
@@ -154,25 +162,25 @@ function MjFormToolbarComponent_Conditional_0_For_17_Template(rf, ctx) { if (rf
|
|
|
154
162
|
} }
|
|
155
163
|
function MjFormToolbarComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
156
164
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
157
|
-
i0.ɵɵelementStart(0, "div",
|
|
158
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_Conditional_1_Template,
|
|
159
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_Conditional_3_Template, 4, 2, "span",
|
|
160
|
-
i0.ɵɵelement(4, "div",
|
|
161
|
-
i0.ɵɵelementStart(5, "div",
|
|
162
|
-
i0.ɵɵrepeaterCreate(6, MjFormToolbarComponent_Conditional_0_For_7_Template, 5, 17, "button",
|
|
163
|
-
i0.ɵɵelementStart(8, "button",
|
|
165
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
166
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_Conditional_1_Template, 7, 3)(2, MjFormToolbarComponent_Conditional_0_Conditional_2_Template, 5, 1);
|
|
167
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_Conditional_3_Template, 4, 2, "span", 7);
|
|
168
|
+
i0.ɵɵelement(4, "div", 8);
|
|
169
|
+
i0.ɵɵelementStart(5, "div", 9);
|
|
170
|
+
i0.ɵɵrepeaterCreate(6, MjFormToolbarComponent_Conditional_0_For_7_Template, 5, 17, "button", 10, _forTrack0);
|
|
171
|
+
i0.ɵɵelementStart(8, "button", 11);
|
|
164
172
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSave()); });
|
|
165
|
-
i0.ɵɵelement(9, "i",
|
|
166
|
-
i0.ɵɵelementStart(10, "span",
|
|
173
|
+
i0.ɵɵelement(9, "i", 12);
|
|
174
|
+
i0.ɵɵelementStart(10, "span", 13);
|
|
167
175
|
i0.ɵɵtext(11, "Save Changes");
|
|
168
176
|
i0.ɵɵelementEnd()();
|
|
169
|
-
i0.ɵɵelementStart(12, "button",
|
|
177
|
+
i0.ɵɵelementStart(12, "button", 14);
|
|
170
178
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancel()); });
|
|
171
|
-
i0.ɵɵelement(13, "i",
|
|
172
|
-
i0.ɵɵelementStart(14, "span",
|
|
179
|
+
i0.ɵɵelement(13, "i", 15);
|
|
180
|
+
i0.ɵɵelementStart(14, "span", 13);
|
|
173
181
|
i0.ɵɵtext(15, "Discard");
|
|
174
182
|
i0.ɵɵelementEnd()();
|
|
175
|
-
i0.ɵɵrepeaterCreate(16, MjFormToolbarComponent_Conditional_0_For_17_Template, 5, 17, "button",
|
|
183
|
+
i0.ɵɵrepeaterCreate(16, MjFormToolbarComponent_Conditional_0_For_17_Template, 5, 17, "button", 10, _forTrack0);
|
|
176
184
|
i0.ɵɵelementEnd()();
|
|
177
185
|
} if (rf & 2) {
|
|
178
186
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -189,314 +197,399 @@ function MjFormToolbarComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
189
197
|
i0.ɵɵadvance(4);
|
|
190
198
|
i0.ɵɵrepeater(ctx_r1.ResolvedEditAfterSaveItems);
|
|
191
199
|
} }
|
|
192
|
-
function
|
|
193
|
-
i0.ɵɵ
|
|
200
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
201
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
202
|
+
i0.ɵɵelementStart(0, "button", 34);
|
|
203
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_0_Conditional_1_Template_button_click_0_listener($event) { const editItem_r9 = i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(editItem_r9, $event)); });
|
|
204
|
+
i0.ɵɵelement(1, "i", 35);
|
|
205
|
+
i0.ɵɵelementStart(2, "span");
|
|
206
|
+
i0.ɵɵtext(3, "Edit");
|
|
207
|
+
i0.ɵɵelementEnd()();
|
|
208
|
+
} if (rf & 2) {
|
|
209
|
+
const editItem_r9 = ctx;
|
|
210
|
+
i0.ɵɵproperty("disabled", editItem_r9.Disabled || editItem_r9.IsLoading)("title", editItem_r9.Description);
|
|
211
|
+
} }
|
|
212
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
213
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
214
|
+
i0.ɵɵelementStart(0, "div", 30);
|
|
215
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_0_Conditional_1_Template, 4, 2, "button", 31);
|
|
216
|
+
i0.ɵɵelementStart(2, "button", 32);
|
|
217
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_0_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ExpandToolbarForSession()); });
|
|
218
|
+
i0.ɵɵelement(3, "i", 33);
|
|
219
|
+
i0.ɵɵelementEnd()();
|
|
220
|
+
} if (rf & 2) {
|
|
221
|
+
let tmp_5_0;
|
|
222
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
223
|
+
i0.ɵɵclassProp("mj-forms-toolbar-collapsed-pill--rail", ctx_r1.ChromeLayout === "left-nav");
|
|
224
|
+
i0.ɵɵadvance();
|
|
225
|
+
i0.ɵɵconditional((tmp_5_0 = ctx_r1.EditActionItem) ? 1 : -1, tmp_5_0);
|
|
226
|
+
} }
|
|
227
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
+
i0.ɵɵelementContainer(0, 38);
|
|
194
229
|
} if (rf & 2) {
|
|
195
|
-
const
|
|
196
|
-
i0.ɵɵnextContext(
|
|
197
|
-
const
|
|
198
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
230
|
+
const item_r10 = ctx.$implicit;
|
|
231
|
+
i0.ɵɵnextContext(3);
|
|
232
|
+
const actionButtonTpl_r11 = i0.ɵɵreference(3);
|
|
233
|
+
i0.ɵɵproperty("ngTemplateOutlet", actionButtonTpl_r11)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r10));
|
|
234
|
+
} }
|
|
235
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
236
|
+
i0.ɵɵelementContainer(0, 38);
|
|
237
|
+
} if (rf & 2) {
|
|
238
|
+
const item_r12 = ctx.$implicit;
|
|
239
|
+
i0.ɵɵnextContext(3);
|
|
240
|
+
const actionButtonTpl_r11 = i0.ɵɵreference(3);
|
|
241
|
+
i0.ɵɵproperty("ngTemplateOutlet", actionButtonTpl_r11)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r12));
|
|
242
|
+
} }
|
|
243
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
244
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
245
|
+
i0.ɵɵelementContainer(1, 41);
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
} if (rf & 2) {
|
|
248
|
+
i0.ɵɵnextContext();
|
|
249
|
+
const moreMenuContent_r14 = i0.ɵɵreference(8);
|
|
250
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
251
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-more");
|
|
252
|
+
i0.ɵɵadvance();
|
|
253
|
+
i0.ɵɵproperty("ngTemplateOutlet", moreMenuContent_r14);
|
|
199
254
|
} }
|
|
200
|
-
function
|
|
201
|
-
i0.ɵɵ
|
|
255
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
256
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
257
|
+
i0.ɵɵelementStart(0, "mj-bottom-sheet", 47);
|
|
258
|
+
i0.ɵɵlistener("VisibleChange", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Conditional_6_Template_mj_bottom_sheet_VisibleChange_0_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnMenuSheetVisibleChange("more", $event)); });
|
|
259
|
+
i0.ɵɵelementStart(1, "div", 48);
|
|
260
|
+
i0.ɵɵelementContainer(2, 41);
|
|
261
|
+
i0.ɵɵelementEnd()();
|
|
202
262
|
} if (rf & 2) {
|
|
203
|
-
|
|
204
|
-
i0.ɵɵ
|
|
205
|
-
const
|
|
206
|
-
i0.ɵɵproperty("
|
|
263
|
+
i0.ɵɵnextContext();
|
|
264
|
+
const moreMenuContent_r14 = i0.ɵɵreference(8);
|
|
265
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
266
|
+
i0.ɵɵproperty("Visible", ctx_r1.MoreMenuOpen);
|
|
267
|
+
i0.ɵɵadvance();
|
|
268
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-more");
|
|
269
|
+
i0.ɵɵadvance();
|
|
270
|
+
i0.ɵɵproperty("ngTemplateOutlet", moreMenuContent_r14);
|
|
207
271
|
} }
|
|
208
|
-
function
|
|
209
|
-
i0.ɵɵelement(0, "i",
|
|
272
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
273
|
+
i0.ɵɵelement(0, "i", 24);
|
|
210
274
|
} }
|
|
211
|
-
function
|
|
275
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
212
276
|
i0.ɵɵelement(0, "i");
|
|
213
277
|
} if (rf & 2) {
|
|
214
|
-
const
|
|
215
|
-
i0.ɵɵclassMap(
|
|
278
|
+
const item_r17 = i0.ɵɵnextContext().$implicit;
|
|
279
|
+
i0.ɵɵclassMap(item_r17.Icon);
|
|
216
280
|
} }
|
|
217
|
-
function
|
|
218
|
-
i0.ɵɵelementStart(0, "span",
|
|
281
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
282
|
+
i0.ɵɵelementStart(0, "span", 54);
|
|
219
283
|
i0.ɵɵtext(1);
|
|
220
284
|
i0.ɵɵelementEnd();
|
|
221
285
|
} if (rf & 2) {
|
|
222
|
-
const
|
|
286
|
+
const item_r17 = i0.ɵɵnextContext().$implicit;
|
|
223
287
|
i0.ɵɵadvance();
|
|
224
|
-
i0.ɵɵtextInterpolate(
|
|
288
|
+
i0.ɵɵtextInterpolate(item_r17.Badge);
|
|
225
289
|
} }
|
|
226
|
-
function
|
|
227
|
-
const
|
|
228
|
-
i0.ɵɵelementStart(0, "div",
|
|
229
|
-
i0.ɵɵlistener("click", function
|
|
230
|
-
i0.ɵɵelementStart(2, "span",
|
|
231
|
-
i0.ɵɵconditionalCreate(3,
|
|
290
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
291
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
292
|
+
i0.ɵɵelementStart(0, "div", 50)(1, "button", 51);
|
|
293
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Template_button_click_1_listener($event) { const item_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnMenuItemClick(item_r17, $event)); });
|
|
294
|
+
i0.ɵɵelementStart(2, "span", 52);
|
|
295
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_3_Template, 1, 0, "i", 24)(4, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_4_Template, 1, 2, "i", 25);
|
|
232
296
|
i0.ɵɵelementEnd();
|
|
233
|
-
i0.ɵɵelementStart(5, "span",
|
|
297
|
+
i0.ɵɵelementStart(5, "span", 53);
|
|
234
298
|
i0.ɵɵtext(6);
|
|
235
299
|
i0.ɵɵelementEnd();
|
|
236
|
-
i0.ɵɵconditionalCreate(7,
|
|
300
|
+
i0.ɵɵconditionalCreate(7, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Conditional_7_Template, 2, 1, "span", 54);
|
|
237
301
|
i0.ɵɵelementEnd();
|
|
238
|
-
i0.ɵɵelementStart(8, "button",
|
|
239
|
-
i0.ɵɵlistener("click", function
|
|
240
|
-
i0.ɵɵelement(9, "i",
|
|
302
|
+
i0.ɵɵelementStart(8, "button", 55);
|
|
303
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Template_button_click_8_listener() { const item_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.TogglePin(item_r17.Key)); });
|
|
304
|
+
i0.ɵɵelement(9, "i", 56);
|
|
241
305
|
i0.ɵɵelementEnd()();
|
|
242
306
|
} if (rf & 2) {
|
|
243
|
-
const
|
|
244
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
245
|
-
i0.ɵɵclassProp("disabled",
|
|
307
|
+
const item_r17 = ctx.$implicit;
|
|
308
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
309
|
+
i0.ɵɵclassProp("disabled", item_r17.Disabled);
|
|
246
310
|
i0.ɵɵadvance();
|
|
247
|
-
i0.ɵɵclassProp("mj-forms-btn--links",
|
|
248
|
-
i0.ɵɵproperty("disabled",
|
|
311
|
+
i0.ɵɵclassProp("mj-forms-btn--comments", item_r17.Key === "comments")("mj-forms-btn--links", item_r17.Key === "links")("mj-forms-btn--ask-ai", item_r17.Key === "ask-ai")("mj-forms-toolbar__btn--active", item_r17.Key === "links" && ctx_r1.LinksOpen || item_r17.Key === "comments" && ctx_r1.CommentsOpen);
|
|
312
|
+
i0.ɵɵproperty("disabled", item_r17.Disabled || item_r17.IsLoading)("title", item_r17.Description);
|
|
249
313
|
i0.ɵɵadvance(2);
|
|
250
|
-
i0.ɵɵconditional(
|
|
314
|
+
i0.ɵɵconditional(item_r17.IsLoading ? 3 : item_r17.Icon ? 4 : -1);
|
|
251
315
|
i0.ɵɵadvance(3);
|
|
252
|
-
i0.ɵɵtextInterpolate(
|
|
316
|
+
i0.ɵɵtextInterpolate(item_r17.MenuLabel);
|
|
253
317
|
i0.ɵɵadvance();
|
|
254
|
-
i0.ɵɵconditional(
|
|
318
|
+
i0.ɵɵconditional(item_r17.Badge != null ? 7 : -1);
|
|
255
319
|
i0.ɵɵadvance();
|
|
256
|
-
i0.ɵɵclassProp("pinned", ctx_r1.IsPinned(
|
|
257
|
-
i0.ɵɵproperty("title", ctx_r1.IsPinnedOverCap(
|
|
258
|
-
i0.ɵɵattribute("aria-disabled", !ctx_r1.IsPinned(
|
|
320
|
+
i0.ɵɵclassProp("pinned", ctx_r1.IsPinned(item_r17.Key))("over-cap", ctx_r1.IsPinnedOverCap(item_r17.Key));
|
|
321
|
+
i0.ɵɵproperty("title", ctx_r1.IsPinnedOverCap(item_r17.Key) ? "Pinned, but the toolbar is full (" + ctx_r1.MaxPinnedActions + " max): unpin another to show it, or click to unpin" : ctx_r1.IsPinned(item_r17.Key) ? "Unpin from toolbar" : ctx_r1.CanPinMore ? "Pin to toolbar" : "Unpin another action first (" + ctx_r1.MaxPinnedActions + " max)");
|
|
322
|
+
i0.ɵɵattribute("aria-disabled", !ctx_r1.IsPinned(item_r17.Key) && !ctx_r1.CanPinMore ? "true" : null)("aria-pressed", ctx_r1.IsPinned(item_r17.Key))("aria-label", "Pin " + item_r17.MenuLabel);
|
|
259
323
|
} }
|
|
260
|
-
function
|
|
261
|
-
i0.ɵɵelement(0, "div",
|
|
324
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
325
|
+
i0.ɵɵelement(0, "div", 57);
|
|
262
326
|
} }
|
|
263
|
-
function
|
|
264
|
-
const
|
|
265
|
-
i0.ɵɵconditionalCreate(0,
|
|
266
|
-
i0.ɵɵelementStart(1, "button",
|
|
267
|
-
i0.ɵɵlistener("click", function
|
|
268
|
-
i0.ɵɵelementStart(2, "span",
|
|
327
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
328
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
329
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Conditional_2_Conditional_0_Template, 1, 0, "div", 57);
|
|
330
|
+
i0.ɵɵelementStart(1, "button", 58);
|
|
331
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Conditional_2_Template_button_click_1_listener($event) { const del_r19 = i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnMenuItemClick(del_r19, $event)); });
|
|
332
|
+
i0.ɵɵelementStart(2, "span", 52);
|
|
269
333
|
i0.ɵɵelement(3, "i");
|
|
270
334
|
i0.ɵɵelementEnd();
|
|
271
|
-
i0.ɵɵelementStart(4, "span",
|
|
335
|
+
i0.ɵɵelementStart(4, "span", 53);
|
|
272
336
|
i0.ɵɵtext(5);
|
|
273
337
|
i0.ɵɵelementEnd()();
|
|
274
338
|
} if (rf & 2) {
|
|
275
|
-
const
|
|
276
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
339
|
+
const del_r19 = ctx;
|
|
340
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
277
341
|
i0.ɵɵconditional(ctx_r1.MoreMenuItems.length > 0 ? 0 : -1);
|
|
278
342
|
i0.ɵɵadvance();
|
|
279
|
-
i0.ɵɵproperty("disabled",
|
|
343
|
+
i0.ɵɵproperty("disabled", del_r19.Disabled)("title", del_r19.Description);
|
|
280
344
|
i0.ɵɵadvance(2);
|
|
281
|
-
i0.ɵɵclassMap(
|
|
345
|
+
i0.ɵɵclassMap(del_r19.Icon);
|
|
282
346
|
i0.ɵɵadvance(2);
|
|
283
|
-
i0.ɵɵtextInterpolate(
|
|
347
|
+
i0.ɵɵtextInterpolate(del_r19.MenuLabel);
|
|
284
348
|
} }
|
|
285
|
-
function
|
|
286
|
-
i0.ɵɵ
|
|
287
|
-
i0.ɵɵ
|
|
288
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Template, 6, 6);
|
|
289
|
-
i0.ɵɵelementEnd();
|
|
349
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
350
|
+
i0.ɵɵrepeaterCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_For_1_Template, 10, 23, "div", 49, _forTrack0);
|
|
351
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Conditional_2_Template, 6, 6);
|
|
290
352
|
} if (rf & 2) {
|
|
291
|
-
let
|
|
292
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
293
|
-
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-more");
|
|
294
|
-
i0.ɵɵadvance();
|
|
353
|
+
let tmp_8_0;
|
|
354
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
295
355
|
i0.ɵɵrepeater(ctx_r1.MoreMenuItems);
|
|
296
356
|
i0.ɵɵadvance(2);
|
|
297
|
-
i0.ɵɵconditional((
|
|
298
|
-
} }
|
|
299
|
-
function
|
|
300
|
-
const
|
|
301
|
-
i0.ɵɵelementStart(0, "div",
|
|
302
|
-
i0.ɵɵlistener("click", function
|
|
303
|
-
i0.ɵɵelement(2, "i",
|
|
304
|
-
i0.ɵɵelementStart(3, "span",
|
|
357
|
+
i0.ɵɵconditional((tmp_8_0 = ctx_r1.DeleteMenuItem) ? 2 : -1, tmp_8_0);
|
|
358
|
+
} }
|
|
359
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
360
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
361
|
+
i0.ɵɵelementStart(0, "div", 43)(1, "button", 44);
|
|
362
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ToggleMoreMenu()); });
|
|
363
|
+
i0.ɵɵelement(2, "i", 33);
|
|
364
|
+
i0.ɵɵelementStart(3, "span", 13);
|
|
305
365
|
i0.ɵɵtext(4, "More");
|
|
306
366
|
i0.ɵɵelementEnd()();
|
|
307
|
-
i0.ɵɵconditionalCreate(5,
|
|
367
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Conditional_5_Template, 2, 2, "div", 45);
|
|
368
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Conditional_6_Template, 3, 3, "mj-bottom-sheet", 46);
|
|
369
|
+
i0.ɵɵtemplate(7, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_ng_template_7_Template, 3, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
308
370
|
i0.ɵɵelementEnd();
|
|
309
371
|
} if (rf & 2) {
|
|
310
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
372
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
311
373
|
i0.ɵɵclassProp("open", ctx_r1.MoreMenuOpen);
|
|
312
374
|
i0.ɵɵadvance();
|
|
313
375
|
i0.ɵɵattribute("aria-expanded", ctx_r1.MoreMenuOpen)("aria-controls", ctx_r1.MenuIdPrefix + "-more");
|
|
314
376
|
i0.ɵɵadvance(4);
|
|
315
|
-
i0.ɵɵconditional(ctx_r1.MoreMenuOpen ? 5 : -1);
|
|
377
|
+
i0.ɵɵconditional(ctx_r1.MoreMenuOpen && !ctx_r1.IsAutoHideViewport ? 5 : -1);
|
|
378
|
+
i0.ɵɵadvance();
|
|
379
|
+
i0.ɵɵconditional(ctx_r1.IsAutoHideViewport ? 6 : -1);
|
|
316
380
|
} }
|
|
317
|
-
function
|
|
318
|
-
const
|
|
319
|
-
i0.ɵɵelementStart(0, "span",
|
|
320
|
-
i0.ɵɵelement(1, "i",
|
|
321
|
-
i0.ɵɵelementStart(2, "span",
|
|
381
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
382
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
383
|
+
i0.ɵɵelementStart(0, "span", 40);
|
|
384
|
+
i0.ɵɵelement(1, "i", 59);
|
|
385
|
+
i0.ɵɵelementStart(2, "span", 60);
|
|
322
386
|
i0.ɵɵtext(3);
|
|
323
387
|
i0.ɵɵelementEnd();
|
|
324
|
-
i0.ɵɵelementStart(4, "button",
|
|
325
|
-
i0.ɵɵlistener("click", function
|
|
326
|
-
i0.ɵɵelement(5, "i",
|
|
388
|
+
i0.ɵɵelementStart(4, "button", 61);
|
|
389
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_8_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnClearFilter()); });
|
|
390
|
+
i0.ɵɵelement(5, "i", 62);
|
|
327
391
|
i0.ɵɵelementEnd()();
|
|
328
392
|
} if (rf & 2) {
|
|
329
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
393
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
330
394
|
i0.ɵɵadvance(3);
|
|
331
395
|
i0.ɵɵtextInterpolate(ctx_r1.SearchFilter);
|
|
332
396
|
} }
|
|
333
|
-
function
|
|
334
|
-
i0.ɵɵelement(0, "i",
|
|
397
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
398
|
+
i0.ɵɵelement(0, "i", 24);
|
|
335
399
|
} }
|
|
336
|
-
function
|
|
400
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
337
401
|
i0.ɵɵelement(0, "i");
|
|
338
402
|
} if (rf & 2) {
|
|
339
|
-
const
|
|
340
|
-
i0.ɵɵclassMap(
|
|
403
|
+
const item_r22 = i0.ɵɵnextContext().$implicit;
|
|
404
|
+
i0.ɵɵclassMap(item_r22.Icon);
|
|
341
405
|
} }
|
|
342
|
-
function
|
|
343
|
-
i0.ɵɵelementStart(0, "span",
|
|
406
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
407
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
344
408
|
i0.ɵɵtext(1);
|
|
345
409
|
i0.ɵɵelementEnd();
|
|
346
410
|
} if (rf & 2) {
|
|
347
|
-
const
|
|
411
|
+
const item_r22 = i0.ɵɵnextContext().$implicit;
|
|
348
412
|
i0.ɵɵadvance();
|
|
349
|
-
i0.ɵɵtextInterpolate(
|
|
413
|
+
i0.ɵɵtextInterpolate(item_r22.Text);
|
|
350
414
|
} }
|
|
351
|
-
function
|
|
352
|
-
i0.ɵɵelementStart(0, "span",
|
|
415
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
416
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
353
417
|
i0.ɵɵtext(1);
|
|
354
418
|
i0.ɵɵelementEnd();
|
|
355
419
|
} if (rf & 2) {
|
|
356
|
-
const
|
|
420
|
+
const item_r22 = i0.ɵɵnextContext().$implicit;
|
|
357
421
|
i0.ɵɵadvance();
|
|
358
|
-
i0.ɵɵtextInterpolate(
|
|
422
|
+
i0.ɵɵtextInterpolate(item_r22.Badge);
|
|
359
423
|
} }
|
|
360
|
-
function
|
|
361
|
-
const
|
|
362
|
-
i0.ɵɵelementStart(0, "button",
|
|
363
|
-
i0.ɵɵlistener("click", function
|
|
364
|
-
i0.ɵɵconditionalCreate(1,
|
|
365
|
-
i0.ɵɵconditionalCreate(3,
|
|
366
|
-
i0.ɵɵconditionalCreate(4,
|
|
424
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
425
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
426
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
427
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Template_button_click_0_listener($event) { const item_r22 = i0.ɵɵrestoreView(_r21).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(item_r22, $event)); });
|
|
428
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_1_Template, 1, 0, "i", 24)(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_2_Template, 1, 2, "i", 25);
|
|
429
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_3_Template, 2, 1, "span", 13);
|
|
430
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Conditional_4_Template, 2, 1, "span", 26);
|
|
367
431
|
i0.ɵɵelementEnd();
|
|
368
432
|
} if (rf & 2) {
|
|
369
|
-
const
|
|
370
|
-
i0.ɵɵclassMap(
|
|
371
|
-
i0.ɵɵclassProp("mj-forms-btn--primary",
|
|
372
|
-
i0.ɵɵproperty("disabled",
|
|
433
|
+
const item_r22 = ctx.$implicit;
|
|
434
|
+
i0.ɵɵclassMap(item_r22.CssClass);
|
|
435
|
+
i0.ɵɵclassProp("mj-forms-btn--primary", item_r22.Variant === "primary")("mj-forms-btn--secondary", item_r22.Variant === "secondary")("mj-forms-btn--accent", item_r22.Variant === "accent")("mj-forms-btn--danger", item_r22.Variant === "danger")("mj-forms-btn--ghost", item_r22.Variant === "ghost");
|
|
436
|
+
i0.ɵɵproperty("disabled", item_r22.Disabled || item_r22.IsLoading)("title", item_r22.Description);
|
|
373
437
|
i0.ɵɵadvance();
|
|
374
|
-
i0.ɵɵconditional(
|
|
438
|
+
i0.ɵɵconditional(item_r22.IsLoading ? 1 : item_r22.Icon ? 2 : -1);
|
|
375
439
|
i0.ɵɵadvance(2);
|
|
376
|
-
i0.ɵɵconditional(
|
|
440
|
+
i0.ɵɵconditional(item_r22.Text ? 3 : -1);
|
|
377
441
|
i0.ɵɵadvance();
|
|
378
|
-
i0.ɵɵconditional(
|
|
442
|
+
i0.ɵɵconditional(item_r22.Badge != null ? 4 : -1);
|
|
379
443
|
} }
|
|
380
|
-
function
|
|
381
|
-
i0.ɵɵelementStart(0, "div",
|
|
382
|
-
i0.ɵɵrepeaterCreate(1,
|
|
444
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
445
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
446
|
+
i0.ɵɵrepeaterCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_For_2_Template, 5, 17, "button", 10, _forTrack0);
|
|
383
447
|
i0.ɵɵelementEnd();
|
|
384
448
|
} if (rf & 2) {
|
|
385
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
449
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
386
450
|
i0.ɵɵadvance();
|
|
387
451
|
i0.ɵɵrepeater(ctx_r1.ResolvedRightItems);
|
|
388
452
|
} }
|
|
389
|
-
function
|
|
390
|
-
i0.ɵɵelementStart(0, "span",
|
|
453
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
454
|
+
i0.ɵɵelementStart(0, "span", 65);
|
|
391
455
|
i0.ɵɵtext(1);
|
|
392
456
|
i0.ɵɵelementEnd();
|
|
393
457
|
} if (rf & 2) {
|
|
394
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
458
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
395
459
|
i0.ɵɵadvance();
|
|
396
460
|
i0.ɵɵtextInterpolate(ctx_r1.CurrentVariantLabel);
|
|
397
461
|
} }
|
|
398
|
-
function
|
|
399
|
-
|
|
400
|
-
i0.ɵɵ
|
|
401
|
-
i0.ɵɵ
|
|
402
|
-
|
|
462
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
463
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
464
|
+
i0.ɵɵelementContainer(1, 41);
|
|
465
|
+
i0.ɵɵelementEnd();
|
|
466
|
+
} if (rf & 2) {
|
|
467
|
+
i0.ɵɵnextContext();
|
|
468
|
+
const viewMenuContent_r24 = i0.ɵɵreference(9);
|
|
469
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
470
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-view");
|
|
471
|
+
i0.ɵɵadvance();
|
|
472
|
+
i0.ɵɵproperty("ngTemplateOutlet", viewMenuContent_r24);
|
|
473
|
+
} }
|
|
474
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
475
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
476
|
+
i0.ɵɵelementStart(0, "mj-bottom-sheet", 68);
|
|
477
|
+
i0.ɵɵlistener("VisibleChange", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_7_Template_mj_bottom_sheet_VisibleChange_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnMenuSheetVisibleChange("view", $event)); });
|
|
478
|
+
i0.ɵɵelementStart(1, "div", 69);
|
|
479
|
+
i0.ɵɵelementContainer(2, 41);
|
|
480
|
+
i0.ɵɵelementEnd()();
|
|
481
|
+
} if (rf & 2) {
|
|
482
|
+
i0.ɵɵnextContext();
|
|
483
|
+
const viewMenuContent_r24 = i0.ɵɵreference(9);
|
|
484
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
485
|
+
i0.ɵɵproperty("Visible", ctx_r1.ViewMenuOpen);
|
|
486
|
+
i0.ɵɵadvance();
|
|
487
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-view");
|
|
488
|
+
i0.ɵɵadvance();
|
|
489
|
+
i0.ɵɵproperty("ngTemplateOutlet", viewMenuContent_r24);
|
|
490
|
+
} }
|
|
491
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
492
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
493
|
+
i0.ɵɵelementStart(0, "button", 75);
|
|
494
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(7); return i0.ɵɵresetView(ctx_r1.OnClearFilter()); });
|
|
495
|
+
i0.ɵɵelement(1, "i", 62);
|
|
403
496
|
i0.ɵɵelementEnd();
|
|
404
497
|
} }
|
|
405
|
-
function
|
|
406
|
-
const
|
|
407
|
-
i0.ɵɵelementStart(0, "div",
|
|
408
|
-
i0.ɵɵlistener("input", function
|
|
498
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
499
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
500
|
+
i0.ɵɵelementStart(0, "div", 70)(1, "input", 73);
|
|
501
|
+
i0.ɵɵlistener("input", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnFilterInput($event)); });
|
|
409
502
|
i0.ɵɵelementEnd();
|
|
410
|
-
i0.ɵɵconditionalCreate(2,
|
|
503
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Conditional_2_Template, 2, 0, "button", 74);
|
|
411
504
|
i0.ɵɵelementEnd();
|
|
412
505
|
} if (rf & 2) {
|
|
413
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
506
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
414
507
|
i0.ɵɵadvance();
|
|
415
508
|
i0.ɵɵclassProp("mj-section-search--active", ctx_r1.SearchFilter);
|
|
416
509
|
i0.ɵɵproperty("value", ctx_r1.SearchFilter);
|
|
417
510
|
i0.ɵɵadvance();
|
|
418
511
|
i0.ɵɵconditional(ctx_r1.SearchFilter ? 2 : -1);
|
|
419
512
|
} }
|
|
420
|
-
function
|
|
421
|
-
i0.ɵɵelementStart(0, "div",
|
|
513
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
514
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
422
515
|
i0.ɵɵtext(1, "Sections");
|
|
423
516
|
i0.ɵɵelementEnd();
|
|
424
517
|
} }
|
|
425
|
-
function
|
|
426
|
-
const
|
|
427
|
-
i0.ɵɵelementStart(0, "button",
|
|
428
|
-
i0.ɵɵlistener("click", function
|
|
429
|
-
i0.ɵɵelementStart(1, "span",
|
|
430
|
-
i0.ɵɵelement(2, "i",
|
|
518
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
519
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
520
|
+
i0.ɵɵelementStart(0, "button", 76);
|
|
521
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); });
|
|
522
|
+
i0.ɵɵelementStart(1, "span", 52);
|
|
523
|
+
i0.ɵɵelement(2, "i", 77);
|
|
431
524
|
i0.ɵɵelementEnd();
|
|
432
|
-
i0.ɵɵelementStart(3, "span",
|
|
525
|
+
i0.ɵɵelementStart(3, "span", 53);
|
|
433
526
|
i0.ɵɵtext(4, "Expand all");
|
|
434
527
|
i0.ɵɵelementEnd()();
|
|
435
|
-
i0.ɵɵelementStart(5, "button",
|
|
436
|
-
i0.ɵɵlistener("click", function
|
|
437
|
-
i0.ɵɵelementStart(6, "span",
|
|
438
|
-
i0.ɵɵelement(7, "i",
|
|
528
|
+
i0.ɵɵelementStart(5, "button", 78);
|
|
529
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_2_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); });
|
|
530
|
+
i0.ɵɵelementStart(6, "span", 52);
|
|
531
|
+
i0.ɵɵelement(7, "i", 79);
|
|
439
532
|
i0.ɵɵelementEnd();
|
|
440
|
-
i0.ɵɵelementStart(8, "span",
|
|
533
|
+
i0.ɵɵelementStart(8, "span", 53);
|
|
441
534
|
i0.ɵɵtext(9, "Collapse all");
|
|
442
535
|
i0.ɵɵelementEnd()();
|
|
443
536
|
} if (rf & 2) {
|
|
444
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
537
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
445
538
|
i0.ɵɵproperty("disabled", ctx_r1.ExpandedSectionCount >= ctx_r1.VisibleSectionCount);
|
|
446
539
|
i0.ɵɵadvance(5);
|
|
447
540
|
i0.ɵɵproperty("disabled", ctx_r1.ExpandedSectionCount === 0);
|
|
448
541
|
} }
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
i0.ɵɵelementStart(0, "button",
|
|
452
|
-
i0.ɵɵlistener("click", function
|
|
453
|
-
i0.ɵɵelementStart(1, "span",
|
|
454
|
-
i0.ɵɵelement(2, "i",
|
|
542
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
543
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
544
|
+
i0.ɵɵelementStart(0, "button", 80);
|
|
545
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnReorderSectionsFromView()); });
|
|
546
|
+
i0.ɵɵelementStart(1, "span", 52);
|
|
547
|
+
i0.ɵɵelement(2, "i", 81);
|
|
455
548
|
i0.ɵɵelementEnd();
|
|
456
|
-
i0.ɵɵelementStart(3, "span",
|
|
549
|
+
i0.ɵɵelementStart(3, "span", 53);
|
|
457
550
|
i0.ɵɵtext(4, "Reorder sections");
|
|
458
551
|
i0.ɵɵelementEnd()();
|
|
459
552
|
} }
|
|
460
|
-
function
|
|
461
|
-
const
|
|
462
|
-
i0.ɵɵelementStart(0, "button",
|
|
463
|
-
i0.ɵɵlistener("click", function
|
|
464
|
-
i0.ɵɵelementStart(1, "span",
|
|
465
|
-
i0.ɵɵelement(2, "i",
|
|
553
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
554
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
555
|
+
i0.ɵɵelementStart(0, "button", 80);
|
|
556
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); });
|
|
557
|
+
i0.ɵɵelementStart(1, "span", 52);
|
|
558
|
+
i0.ɵɵelement(2, "i", 82);
|
|
466
559
|
i0.ɵɵelementEnd();
|
|
467
|
-
i0.ɵɵelementStart(3, "span",
|
|
560
|
+
i0.ɵɵelementStart(3, "span", 53);
|
|
468
561
|
i0.ɵɵtext(4, "Reset section order");
|
|
469
562
|
i0.ɵɵelementEnd()();
|
|
470
563
|
} }
|
|
471
|
-
function
|
|
472
|
-
const
|
|
473
|
-
i0.ɵɵelementStart(0, "div",
|
|
564
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
565
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
566
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
474
567
|
i0.ɵɵtext(1, "Layout");
|
|
475
568
|
i0.ɵɵelementEnd();
|
|
476
|
-
i0.ɵɵelementStart(2, "button",
|
|
477
|
-
i0.ɵɵlistener("click", function
|
|
478
|
-
i0.ɵɵelementStart(3, "span",
|
|
569
|
+
i0.ɵɵelementStart(2, "button", 80);
|
|
570
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnToggleWidthMode()); });
|
|
571
|
+
i0.ɵɵelementStart(3, "span", 52);
|
|
479
572
|
i0.ɵɵelement(4, "i");
|
|
480
573
|
i0.ɵɵelementEnd();
|
|
481
|
-
i0.ɵɵelementStart(5, "span",
|
|
574
|
+
i0.ɵɵelementStart(5, "span", 53);
|
|
482
575
|
i0.ɵɵtext(6);
|
|
483
576
|
i0.ɵɵelementEnd()();
|
|
484
577
|
} if (rf & 2) {
|
|
485
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
578
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
486
579
|
i0.ɵɵadvance(4);
|
|
487
580
|
i0.ɵɵclassMap(ctx_r1.WidthMode === "centered" ? "fa-solid fa-arrows-left-right-to-line" : "fa-solid fa-compress");
|
|
488
581
|
i0.ɵɵadvance(2);
|
|
489
582
|
i0.ɵɵtextInterpolate(ctx_r1.WidthMode === "centered" ? "Use full width" : "Center content");
|
|
490
583
|
} }
|
|
491
|
-
function
|
|
492
|
-
i0.ɵɵconditionalCreate(0,
|
|
493
|
-
i0.ɵɵconditionalCreate(1,
|
|
494
|
-
i0.ɵɵconditionalCreate(2,
|
|
495
|
-
i0.ɵɵconditionalCreate(3,
|
|
496
|
-
i0.ɵɵconditionalCreate(4,
|
|
497
|
-
i0.ɵɵconditionalCreate(5,
|
|
584
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
585
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_0_Template, 3, 4, "div", 70);
|
|
586
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_1_Template, 2, 0, "div", 71);
|
|
587
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_2_Template, 10, 2);
|
|
588
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_3_Template, 5, 0, "button", 72);
|
|
589
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_4_Template, 5, 0, "button", 72);
|
|
590
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Conditional_5_Template, 7, 3);
|
|
498
591
|
} if (rf & 2) {
|
|
499
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
592
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
500
593
|
i0.ɵɵconditional(ctx_r1.Config.ShowSectionFilter ? 0 : -1);
|
|
501
594
|
i0.ɵɵadvance();
|
|
502
595
|
i0.ɵɵconditional(ctx_r1.ShowExpandCollapseAll || ctx_r1.HasCustomSectionOrder || ctx_r1.Config.ShowSectionManager ? 1 : -1);
|
|
@@ -509,56 +602,56 @@ function MjFormToolbarComponent_Conditional_1_Conditional_10_Conditional_6_Condi
|
|
|
509
602
|
i0.ɵɵadvance();
|
|
510
603
|
i0.ɵɵconditional(ctx_r1.Config.ShowWidthToggle ? 5 : -1);
|
|
511
604
|
} }
|
|
512
|
-
function
|
|
513
|
-
i0.ɵɵelement(0, "i",
|
|
605
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
606
|
+
i0.ɵɵelement(0, "i", 88);
|
|
514
607
|
} }
|
|
515
|
-
function
|
|
516
|
-
i0.ɵɵelement(0, "i",
|
|
608
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_For_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
609
|
+
i0.ɵɵelement(0, "i", 88);
|
|
517
610
|
} }
|
|
518
|
-
function
|
|
519
|
-
const
|
|
520
|
-
i0.ɵɵelementStart(0, "button",
|
|
521
|
-
i0.ɵɵlistener("click", function
|
|
522
|
-
i0.ɵɵelementStart(1, "div",
|
|
611
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_For_12_Template(rf, ctx) { if (rf & 1) {
|
|
612
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
613
|
+
i0.ɵɵelementStart(0, "button", 90);
|
|
614
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_For_12_Template_button_click_0_listener() { const v_r34 = i0.ɵɵrestoreView(_r33).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnVariantClick(v_r34.ID)); });
|
|
615
|
+
i0.ɵɵelementStart(1, "div", 84)(2, "span", 85);
|
|
523
616
|
i0.ɵɵtext(3);
|
|
524
617
|
i0.ɵɵelementEnd();
|
|
525
|
-
i0.ɵɵelementStart(4, "span",
|
|
618
|
+
i0.ɵɵelementStart(4, "span", 87);
|
|
526
619
|
i0.ɵɵtext(5);
|
|
527
620
|
i0.ɵɵelementEnd()();
|
|
528
|
-
i0.ɵɵconditionalCreate(6,
|
|
621
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_For_12_Conditional_6_Template, 1, 0, "i", 88);
|
|
529
622
|
i0.ɵɵelementEnd();
|
|
530
623
|
} if (rf & 2) {
|
|
531
|
-
const
|
|
532
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
533
|
-
i0.ɵɵclassProp("current",
|
|
534
|
-
i0.ɵɵattribute("aria-pressed",
|
|
624
|
+
const v_r34 = ctx.$implicit;
|
|
625
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
626
|
+
i0.ɵɵclassProp("current", v_r34.ID === ctx_r1.CurrentVariantID)("inactive", v_r34.Status !== "Active");
|
|
627
|
+
i0.ɵɵattribute("aria-pressed", v_r34.ID === ctx_r1.CurrentVariantID);
|
|
535
628
|
i0.ɵɵadvance(3);
|
|
536
|
-
i0.ɵɵtextInterpolate(
|
|
629
|
+
i0.ɵɵtextInterpolate(v_r34.Label);
|
|
537
630
|
i0.ɵɵadvance(2);
|
|
538
|
-
i0.ɵɵtextInterpolate(ctx_r1.VariantSubtitle(
|
|
631
|
+
i0.ɵɵtextInterpolate(ctx_r1.VariantSubtitle(v_r34));
|
|
539
632
|
i0.ɵɵadvance();
|
|
540
|
-
i0.ɵɵconditional(
|
|
633
|
+
i0.ɵɵconditional(v_r34.ID === ctx_r1.CurrentVariantID ? 6 : -1);
|
|
541
634
|
} }
|
|
542
|
-
function
|
|
543
|
-
const
|
|
544
|
-
i0.ɵɵelementStart(0, "div",
|
|
635
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
636
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
637
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
545
638
|
i0.ɵɵtext(1, "Form");
|
|
546
639
|
i0.ɵɵelementEnd();
|
|
547
|
-
i0.ɵɵelementStart(2, "button",
|
|
548
|
-
i0.ɵɵlistener("click", function
|
|
549
|
-
i0.ɵɵelementStart(3, "div",
|
|
640
|
+
i0.ɵɵelementStart(2, "button", 83);
|
|
641
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnVariantClick(null)); });
|
|
642
|
+
i0.ɵɵelementStart(3, "div", 84)(4, "span", 85);
|
|
550
643
|
i0.ɵɵtext(5, " Default form ");
|
|
551
|
-
i0.ɵɵelementStart(6, "span",
|
|
644
|
+
i0.ɵɵelementStart(6, "span", 86);
|
|
552
645
|
i0.ɵɵtext(7, "(default)");
|
|
553
646
|
i0.ɵɵelementEnd()();
|
|
554
|
-
i0.ɵɵelementStart(8, "span",
|
|
647
|
+
i0.ɵɵelementStart(8, "span", 87);
|
|
555
648
|
i0.ɵɵtext(9, "CodeGen-generated Angular fallback");
|
|
556
649
|
i0.ɵɵelementEnd()();
|
|
557
|
-
i0.ɵɵconditionalCreate(10,
|
|
650
|
+
i0.ɵɵconditionalCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_Conditional_10_Template, 1, 0, "i", 88);
|
|
558
651
|
i0.ɵɵelementEnd();
|
|
559
|
-
i0.ɵɵrepeaterCreate(11,
|
|
652
|
+
i0.ɵɵrepeaterCreate(11, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_For_12_Template, 7, 8, "button", 89, _forTrack1);
|
|
560
653
|
} if (rf & 2) {
|
|
561
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
654
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
562
655
|
i0.ɵɵadvance(2);
|
|
563
656
|
i0.ɵɵclassProp("current", !ctx_r1.CurrentVariantID);
|
|
564
657
|
i0.ɵɵattribute("aria-pressed", !ctx_r1.CurrentVariantID);
|
|
@@ -567,33 +660,126 @@ function MjFormToolbarComponent_Conditional_1_Conditional_10_Conditional_6_Condi
|
|
|
567
660
|
i0.ɵɵadvance();
|
|
568
661
|
i0.ɵɵrepeater(ctx_r1.Variants);
|
|
569
662
|
} }
|
|
570
|
-
function
|
|
571
|
-
i0.ɵɵ
|
|
572
|
-
i0.ɵɵ
|
|
573
|
-
i0.ɵɵ
|
|
663
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
664
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
665
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
666
|
+
i0.ɵɵtext(1, "Form");
|
|
667
|
+
i0.ɵɵelementEnd();
|
|
668
|
+
i0.ɵɵelementStart(2, "button", 80);
|
|
669
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnFormModeSwitchClick()); });
|
|
670
|
+
i0.ɵɵelementStart(3, "span", 52);
|
|
671
|
+
i0.ɵɵelement(4, "i", 91);
|
|
672
|
+
i0.ɵɵelementEnd();
|
|
673
|
+
i0.ɵɵelementStart(5, "span", 53);
|
|
674
|
+
i0.ɵɵtext(6);
|
|
675
|
+
i0.ɵɵelementEnd()();
|
|
676
|
+
} if (rf & 2) {
|
|
677
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
678
|
+
i0.ɵɵadvance(4);
|
|
679
|
+
i0.ɵɵclassProp("fa-table-list", ctx_r1.FormModeSwitch.Mode === "default")("fa-wand-magic-sparkles", ctx_r1.FormModeSwitch.Mode === "standard");
|
|
680
|
+
i0.ɵɵadvance(2);
|
|
681
|
+
i0.ɵɵtextInterpolate(ctx_r1.FormModeSwitch.Mode === "standard" ? "Back to custom view" : "Open standard form");
|
|
682
|
+
} }
|
|
683
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_2_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
684
|
+
i0.ɵɵelementStart(0, "span", 54);
|
|
685
|
+
i0.ɵɵtext(1);
|
|
574
686
|
i0.ɵɵelementEnd();
|
|
575
687
|
} if (rf & 2) {
|
|
576
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
577
|
-
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-view");
|
|
688
|
+
const ctx_r1 = i0.ɵɵnextContext(7);
|
|
578
689
|
i0.ɵɵadvance();
|
|
579
|
-
i0.ɵɵ
|
|
690
|
+
i0.ɵɵtextInterpolate(ctx_r1.EntityToolbarPinState ? "Pinned" : "Auto-hide");
|
|
691
|
+
} }
|
|
692
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
693
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
694
|
+
i0.ɵɵelementStart(0, "button", 97);
|
|
695
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.ToggleEntityToolbarPin()); });
|
|
696
|
+
i0.ɵɵelementStart(1, "span", 52);
|
|
697
|
+
i0.ɵɵelement(2, "i", 56);
|
|
698
|
+
i0.ɵɵelementEnd();
|
|
699
|
+
i0.ɵɵelementStart(3, "span", 53);
|
|
700
|
+
i0.ɵɵtext(4);
|
|
701
|
+
i0.ɵɵelementEnd();
|
|
702
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_2_Conditional_5_Template, 2, 1, "span", 54);
|
|
703
|
+
i0.ɵɵelementEnd();
|
|
704
|
+
} if (rf & 2) {
|
|
705
|
+
const ctx_r1 = i0.ɵɵnextContext(6);
|
|
706
|
+
i0.ɵɵattribute("aria-pressed", ctx_r1.IsToolbarPinnedOpen);
|
|
707
|
+
i0.ɵɵadvance(4);
|
|
708
|
+
i0.ɵɵtextInterpolate(ctx_r1.IsToolbarPinnedOpen ? "Unpin toolbar for " + ctx_r1.CurrentEntityDisplayName : "Pin toolbar for " + ctx_r1.CurrentEntityDisplayName);
|
|
580
709
|
i0.ɵɵadvance();
|
|
581
|
-
i0.ɵɵconditional(ctx_r1.
|
|
710
|
+
i0.ɵɵconditional(ctx_r1.EntityToolbarPinState !== undefined ? 5 : -1);
|
|
582
711
|
} }
|
|
583
|
-
function
|
|
584
|
-
|
|
585
|
-
i0.ɵɵ
|
|
586
|
-
i0.ɵɵ
|
|
587
|
-
|
|
588
|
-
|
|
712
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
713
|
+
i0.ɵɵelementStart(0, "span", 54);
|
|
714
|
+
i0.ɵɵtext(1, "Pinned");
|
|
715
|
+
i0.ɵɵelementEnd();
|
|
716
|
+
} }
|
|
717
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
718
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
719
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
720
|
+
i0.ɵɵtext(1, "Toolbar");
|
|
721
|
+
i0.ɵɵelementEnd();
|
|
722
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_2_Template, 6, 3, "button", 92);
|
|
723
|
+
i0.ɵɵelementStart(3, "button", 93);
|
|
724
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.ToggleGlobalToolbarPin()); });
|
|
725
|
+
i0.ɵɵelementStart(4, "span", 52);
|
|
726
|
+
i0.ɵɵelement(5, "i", 94);
|
|
727
|
+
i0.ɵɵelementEnd();
|
|
728
|
+
i0.ɵɵelementStart(6, "span", 53);
|
|
729
|
+
i0.ɵɵtext(7);
|
|
730
|
+
i0.ɵɵelementEnd();
|
|
731
|
+
i0.ɵɵconditionalCreate(8, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Conditional_8_Template, 2, 0, "span", 54);
|
|
732
|
+
i0.ɵɵelementEnd();
|
|
733
|
+
i0.ɵɵelementStart(9, "button", 95);
|
|
734
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.CollapseToolbarForSession()); });
|
|
735
|
+
i0.ɵɵelementStart(10, "span", 52);
|
|
736
|
+
i0.ɵɵelement(11, "i", 96);
|
|
737
|
+
i0.ɵɵelementEnd();
|
|
738
|
+
i0.ɵɵelementStart(12, "span", 53);
|
|
739
|
+
i0.ɵɵtext(13, "Hide toolbar now");
|
|
740
|
+
i0.ɵɵelementEnd()();
|
|
741
|
+
} if (rf & 2) {
|
|
742
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
743
|
+
i0.ɵɵadvance(2);
|
|
744
|
+
i0.ɵɵconditional(ctx_r1.CurrentEntityName ? 2 : -1);
|
|
745
|
+
i0.ɵɵadvance();
|
|
746
|
+
i0.ɵɵattribute("aria-pressed", ctx_r1.IsGlobalToolbarPinned);
|
|
747
|
+
i0.ɵɵadvance(4);
|
|
748
|
+
i0.ɵɵtextInterpolate(ctx_r1.IsGlobalToolbarPinned ? "Unpin toolbar on all forms" : "Pin toolbar on all forms");
|
|
749
|
+
i0.ɵɵadvance();
|
|
750
|
+
i0.ɵɵconditional(ctx_r1.IsGlobalToolbarPinned ? 8 : -1);
|
|
751
|
+
} }
|
|
752
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
753
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_0_Template, 6, 6);
|
|
754
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_1_Template, 13, 4);
|
|
755
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_2_Template, 7, 5);
|
|
756
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Conditional_3_Template, 14, 4);
|
|
757
|
+
} if (rf & 2) {
|
|
758
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
759
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowSectionControls ? 0 : -1);
|
|
760
|
+
i0.ɵɵadvance();
|
|
761
|
+
i0.ɵɵconditional(ctx_r1.ShowVariantPickerButton ? 1 : -1);
|
|
762
|
+
i0.ɵɵadvance();
|
|
763
|
+
i0.ɵɵconditional(ctx_r1.IsAutoHideViewport && ctx_r1.FormModeSwitch ? 2 : -1);
|
|
764
|
+
i0.ɵɵadvance();
|
|
765
|
+
i0.ɵɵconditional(ctx_r1.IsAutoHideViewport ? 3 : -1);
|
|
766
|
+
} }
|
|
767
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
768
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
769
|
+
i0.ɵɵelementStart(0, "div", 43)(1, "button", 63);
|
|
770
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ToggleViewMenu()); });
|
|
771
|
+
i0.ɵɵelement(2, "i", 64);
|
|
772
|
+
i0.ɵɵelementStart(3, "span", 13);
|
|
589
773
|
i0.ɵɵtext(4, "View");
|
|
590
774
|
i0.ɵɵelementEnd();
|
|
591
|
-
i0.ɵɵconditionalCreate(5,
|
|
775
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_5_Template, 2, 1, "span", 65);
|
|
592
776
|
i0.ɵɵelementEnd();
|
|
593
|
-
i0.ɵɵconditionalCreate(6,
|
|
777
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_6_Template, 2, 2, "div", 66);
|
|
778
|
+
i0.ɵɵconditionalCreate(7, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Conditional_7_Template, 3, 3, "mj-bottom-sheet", 67);
|
|
779
|
+
i0.ɵɵtemplate(8, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_ng_template_8_Template, 4, 4, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
594
780
|
i0.ɵɵelementEnd();
|
|
595
781
|
} if (rf & 2) {
|
|
596
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
782
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
597
783
|
i0.ɵɵclassProp("open", ctx_r1.ViewMenuOpen);
|
|
598
784
|
i0.ɵɵadvance();
|
|
599
785
|
i0.ɵɵproperty("title", ctx_r1.CurrentVariantID ? "Sections and layout (form: " + ctx_r1.CurrentVariantLabel + ")" : "Sections and layout");
|
|
@@ -601,44 +787,87 @@ function MjFormToolbarComponent_Conditional_1_Conditional_10_Template(rf, ctx) {
|
|
|
601
787
|
i0.ɵɵadvance(4);
|
|
602
788
|
i0.ɵɵconditional(ctx_r1.CurrentVariantID ? 5 : -1);
|
|
603
789
|
i0.ɵɵadvance();
|
|
604
|
-
i0.ɵɵconditional(ctx_r1.ViewMenuOpen ? 6 : -1);
|
|
790
|
+
i0.ɵɵconditional(ctx_r1.ViewMenuOpen && !ctx_r1.IsAutoHideViewport ? 6 : -1);
|
|
791
|
+
i0.ɵɵadvance();
|
|
792
|
+
i0.ɵɵconditional(ctx_r1.IsAutoHideViewport ? 7 : -1);
|
|
605
793
|
} }
|
|
606
|
-
function
|
|
607
|
-
i0.ɵɵelementContainer(0,
|
|
794
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
795
|
+
i0.ɵɵelementContainer(0, 41);
|
|
608
796
|
} if (rf & 2) {
|
|
609
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
797
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
610
798
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.AdditionalActionsTemplate);
|
|
611
799
|
} }
|
|
612
|
-
function
|
|
613
|
-
const
|
|
614
|
-
i0.ɵɵelementStart(0, "button",
|
|
615
|
-
i0.ɵɵlistener("click", function
|
|
616
|
-
i0.ɵɵelement(1, "i",
|
|
800
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
801
|
+
const _r38 = i0.ɵɵgetCurrentView();
|
|
802
|
+
i0.ɵɵelementStart(0, "button", 98);
|
|
803
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r38); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.CollapseToolbarForSession()); });
|
|
804
|
+
i0.ɵɵelement(1, "i", 99);
|
|
805
|
+
i0.ɵɵelementEnd();
|
|
806
|
+
} }
|
|
807
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
808
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "div", 37);
|
|
809
|
+
i0.ɵɵrepeaterCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_1_For_3_Template, 1, 4, "ng-container", 38, _forTrack0);
|
|
810
|
+
i0.ɵɵrepeaterCreate(4, MjFormToolbarComponent_Conditional_1_Conditional_1_For_5_Template, 1, 4, "ng-container", 38, _forTrack0);
|
|
811
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_6_Template, 9, 6, "div", 39);
|
|
812
|
+
i0.ɵɵelementEnd();
|
|
813
|
+
i0.ɵɵelement(7, "div", 8);
|
|
814
|
+
i0.ɵɵconditionalCreate(8, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_8_Template, 6, 1, "span", 40);
|
|
815
|
+
i0.ɵɵconditionalCreate(9, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_9_Template, 3, 0, "div", 37);
|
|
816
|
+
i0.ɵɵconditionalCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_10_Template, 10, 8, "div", 39);
|
|
817
|
+
i0.ɵɵconditionalCreate(11, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_11_Template, 1, 1, "ng-container", 41);
|
|
818
|
+
i0.ɵɵprojection(12);
|
|
819
|
+
i0.ɵɵconditionalCreate(13, MjFormToolbarComponent_Conditional_1_Conditional_1_Conditional_13_Template, 2, 0, "button", 42);
|
|
820
|
+
i0.ɵɵelementEnd();
|
|
821
|
+
} if (rf & 2) {
|
|
822
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
823
|
+
i0.ɵɵclassProp("mj-forms-toolbar--sticky", ctx_r1.Config.StickyToolbar);
|
|
824
|
+
i0.ɵɵadvance(2);
|
|
825
|
+
i0.ɵɵrepeater(ctx_r1.InlineActionItems);
|
|
826
|
+
i0.ɵɵadvance(2);
|
|
827
|
+
i0.ɵɵrepeater(ctx_r1.PinnedActionItems);
|
|
828
|
+
i0.ɵɵadvance(2);
|
|
829
|
+
i0.ɵɵconditional(ctx_r1.ShowMoreMenu ? 6 : -1);
|
|
830
|
+
i0.ɵɵadvance(2);
|
|
831
|
+
i0.ɵɵconditional(ctx_r1.SearchFilter && !ctx_r1.ViewMenuOpen ? 8 : -1);
|
|
832
|
+
i0.ɵɵadvance();
|
|
833
|
+
i0.ɵɵconditional(ctx_r1.ResolvedRightItems.length > 0 ? 9 : -1);
|
|
834
|
+
i0.ɵɵadvance();
|
|
835
|
+
i0.ɵɵconditional(ctx_r1.ShowViewMenu ? 10 : -1);
|
|
836
|
+
i0.ɵɵadvance();
|
|
837
|
+
i0.ɵɵconditional(ctx_r1.AdditionalActionsTemplate ? 11 : -1);
|
|
838
|
+
i0.ɵɵadvance(2);
|
|
839
|
+
i0.ɵɵconditional(ctx_r1.IsAutoHideViewport ? 13 : -1);
|
|
840
|
+
} }
|
|
841
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_2_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
842
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
843
|
+
i0.ɵɵelementStart(0, "button", 102);
|
|
844
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_2_For_3_Template_button_click_0_listener($event) { const parent_r40 = i0.ɵɵrestoreView(_r39).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnParentBadgeClick(parent_r40, $event)); });
|
|
845
|
+
i0.ɵɵelement(1, "i", 103);
|
|
617
846
|
i0.ɵɵtext(2);
|
|
618
847
|
i0.ɵɵelementEnd();
|
|
619
|
-
i0.ɵɵelementStart(3, "span",
|
|
620
|
-
i0.ɵɵelement(4, "i",
|
|
848
|
+
i0.ɵɵelementStart(3, "span", 104);
|
|
849
|
+
i0.ɵɵelement(4, "i", 105);
|
|
621
850
|
i0.ɵɵelementEnd();
|
|
622
851
|
} if (rf & 2) {
|
|
623
|
-
const
|
|
624
|
-
i0.ɵɵproperty("title", "Navigate to parent: " +
|
|
852
|
+
const parent_r40 = ctx.$implicit;
|
|
853
|
+
i0.ɵɵproperty("title", "Navigate to parent: " + parent_r40.Name);
|
|
625
854
|
i0.ɵɵadvance(2);
|
|
626
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
855
|
+
i0.ɵɵtextInterpolate1(" ", parent_r40.Name, " ");
|
|
627
856
|
} }
|
|
628
|
-
function
|
|
629
|
-
i0.ɵɵelementContainer(0,
|
|
857
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
858
|
+
i0.ɵɵelementContainer(0, 38);
|
|
630
859
|
} if (rf & 2) {
|
|
631
860
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
632
|
-
const
|
|
633
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
861
|
+
const descendantTreeTpl_r41 = i0.ɵɵreference(8);
|
|
862
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r41)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, ctx_r1.DescendantTree));
|
|
634
863
|
} }
|
|
635
|
-
function
|
|
636
|
-
i0.ɵɵelementStart(0, "div", 29)(1, "div",
|
|
637
|
-
i0.ɵɵrepeaterCreate(2,
|
|
638
|
-
i0.ɵɵelementStart(4, "span",
|
|
864
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
865
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "div", 100);
|
|
866
|
+
i0.ɵɵrepeaterCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_2_For_3_Template, 5, 2, null, null, _forTrack1);
|
|
867
|
+
i0.ɵɵelementStart(4, "span", 101);
|
|
639
868
|
i0.ɵɵtext(5);
|
|
640
869
|
i0.ɵɵelementEnd();
|
|
641
|
-
i0.ɵɵconditionalCreate(6,
|
|
870
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_2_Conditional_6_Template, 1, 4, "ng-container", 38);
|
|
642
871
|
i0.ɵɵelementEnd()();
|
|
643
872
|
} if (rf & 2) {
|
|
644
873
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -650,125 +879,100 @@ function MjFormToolbarComponent_Conditional_1_Conditional_13_Template(rf, ctx) {
|
|
|
650
879
|
i0.ɵɵconditional(ctx_r1.DescendantTree.length > 0 ? 6 : -1);
|
|
651
880
|
} }
|
|
652
881
|
function MjFormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
653
|
-
i0.ɵɵ
|
|
654
|
-
i0.ɵɵ
|
|
655
|
-
i0.ɵɵrepeaterCreate(4, MjFormToolbarComponent_Conditional_1_For_5_Template, 1, 4, "ng-container", 25, _forTrack0);
|
|
656
|
-
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_6_Template, 6, 5, "div", 26);
|
|
657
|
-
i0.ɵɵelementEnd();
|
|
658
|
-
i0.ɵɵelement(7, "div", 6);
|
|
659
|
-
i0.ɵɵconditionalCreate(8, MjFormToolbarComponent_Conditional_1_Conditional_8_Template, 6, 1, "span", 27);
|
|
660
|
-
i0.ɵɵconditionalCreate(9, MjFormToolbarComponent_Conditional_1_Conditional_9_Template, 3, 0, "div", 24);
|
|
661
|
-
i0.ɵɵconditionalCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_10_Template, 7, 7, "div", 26);
|
|
662
|
-
i0.ɵɵconditionalCreate(11, MjFormToolbarComponent_Conditional_1_Conditional_11_Template, 1, 1, "ng-container", 28);
|
|
663
|
-
i0.ɵɵprojection(12);
|
|
664
|
-
i0.ɵɵelementEnd();
|
|
665
|
-
i0.ɵɵconditionalCreate(13, MjFormToolbarComponent_Conditional_1_Conditional_13_Template, 7, 2, "div", 29);
|
|
882
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_0_Template, 4, 3, "div", 27)(1, MjFormToolbarComponent_Conditional_1_Conditional_1_Template, 14, 8, "div", 28);
|
|
883
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_2_Template, 7, 2, "div", 29);
|
|
666
884
|
} if (rf & 2) {
|
|
667
885
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
668
|
-
i0.ɵɵ
|
|
669
|
-
i0.ɵɵadvance(2);
|
|
670
|
-
i0.ɵɵrepeater(ctx_r1.InlineActionItems);
|
|
671
|
-
i0.ɵɵadvance(2);
|
|
672
|
-
i0.ɵɵrepeater(ctx_r1.PinnedActionItems);
|
|
673
|
-
i0.ɵɵadvance(2);
|
|
674
|
-
i0.ɵɵconditional(ctx_r1.ShowMoreMenu ? 6 : -1);
|
|
675
|
-
i0.ɵɵadvance(2);
|
|
676
|
-
i0.ɵɵconditional(ctx_r1.SearchFilter && !ctx_r1.ViewMenuOpen ? 8 : -1);
|
|
677
|
-
i0.ɵɵadvance();
|
|
678
|
-
i0.ɵɵconditional(ctx_r1.ResolvedRightItems.length > 0 ? 9 : -1);
|
|
679
|
-
i0.ɵɵadvance();
|
|
680
|
-
i0.ɵɵconditional(ctx_r1.ShowViewMenu ? 10 : -1);
|
|
681
|
-
i0.ɵɵadvance();
|
|
682
|
-
i0.ɵɵconditional(ctx_r1.AdditionalActionsTemplate ? 11 : -1);
|
|
886
|
+
i0.ɵɵconditional(!ctx_r1.IsToolbarExpanded ? 0 : 1);
|
|
683
887
|
i0.ɵɵadvance(2);
|
|
684
|
-
i0.ɵɵconditional(ctx_r1.Config.ShowEntityHierarchy && ctx_r1.IsInHierarchy ?
|
|
888
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowEntityHierarchy && ctx_r1.IsInHierarchy ? 2 : -1);
|
|
685
889
|
} }
|
|
686
890
|
function MjFormToolbarComponent_ng_template_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
687
|
-
i0.ɵɵelement(0, "i",
|
|
891
|
+
i0.ɵɵelement(0, "i", 24);
|
|
688
892
|
} }
|
|
689
893
|
function MjFormToolbarComponent_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
690
894
|
i0.ɵɵelement(0, "i");
|
|
691
895
|
} if (rf & 2) {
|
|
692
|
-
const
|
|
693
|
-
i0.ɵɵclassMap(
|
|
896
|
+
const item_r43 = i0.ɵɵnextContext().item;
|
|
897
|
+
i0.ɵɵclassMap(item_r43.Icon);
|
|
694
898
|
} }
|
|
695
899
|
function MjFormToolbarComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
696
|
-
i0.ɵɵelementStart(0, "span",
|
|
900
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
697
901
|
i0.ɵɵtext(1);
|
|
698
902
|
i0.ɵɵelementEnd();
|
|
699
903
|
} if (rf & 2) {
|
|
700
|
-
const
|
|
904
|
+
const item_r43 = i0.ɵɵnextContext().item;
|
|
701
905
|
i0.ɵɵadvance();
|
|
702
|
-
i0.ɵɵtextInterpolate(
|
|
906
|
+
i0.ɵɵtextInterpolate(item_r43.Text);
|
|
703
907
|
} }
|
|
704
908
|
function MjFormToolbarComponent_ng_template_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
705
909
|
i0.ɵɵelementStart(0, "span");
|
|
706
910
|
i0.ɵɵtext(1);
|
|
707
911
|
i0.ɵɵelementEnd();
|
|
708
912
|
} if (rf & 2) {
|
|
709
|
-
const
|
|
710
|
-
i0.ɵɵclassMap(
|
|
913
|
+
const item_r43 = i0.ɵɵnextContext().item;
|
|
914
|
+
i0.ɵɵclassMap(item_r43.Key === "history" ? "mj-version-count-badge" : "mj-list-count-badge");
|
|
711
915
|
i0.ɵɵadvance();
|
|
712
|
-
i0.ɵɵtextInterpolate(
|
|
916
|
+
i0.ɵɵtextInterpolate(item_r43.Badge);
|
|
713
917
|
} }
|
|
714
918
|
function MjFormToolbarComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
715
|
-
const
|
|
716
|
-
i0.ɵɵelementStart(0, "button",
|
|
717
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_2_Template_button_click_0_listener($event) { const
|
|
718
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_ng_template_2_Conditional_1_Template, 1, 0, "i",
|
|
719
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_ng_template_2_Conditional_3_Template, 2, 1, "span",
|
|
720
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_2_Conditional_4_Template, 2, 3, "span",
|
|
919
|
+
const _r42 = i0.ɵɵgetCurrentView();
|
|
920
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
921
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_2_Template_button_click_0_listener($event) { const item_r43 = i0.ɵɵrestoreView(_r42).item; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(item_r43, $event)); });
|
|
922
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_ng_template_2_Conditional_1_Template, 1, 0, "i", 24)(2, MjFormToolbarComponent_ng_template_2_Conditional_2_Template, 1, 2, "i", 25);
|
|
923
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_ng_template_2_Conditional_3_Template, 2, 1, "span", 13);
|
|
924
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_2_Conditional_4_Template, 2, 3, "span", 25);
|
|
721
925
|
i0.ɵɵelementEnd();
|
|
722
926
|
} if (rf & 2) {
|
|
723
|
-
const
|
|
927
|
+
const item_r43 = ctx.item;
|
|
724
928
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
725
|
-
i0.ɵɵclassMap(
|
|
726
|
-
i0.ɵɵclassProp("mj-forms-btn--primary",
|
|
727
|
-
i0.ɵɵproperty("disabled",
|
|
728
|
-
i0.ɵɵattribute("aria-label",
|
|
929
|
+
i0.ɵɵclassMap(item_r43.CssClass);
|
|
930
|
+
i0.ɵɵclassProp("mj-forms-btn--primary", item_r43.Variant === "primary")("mj-forms-btn--secondary", item_r43.Variant === "secondary")("mj-forms-btn--accent", item_r43.Variant === "accent")("mj-forms-btn--danger", item_r43.Variant === "danger")("mj-forms-btn--ghost", item_r43.Variant === "ghost")("mj-forms-btn--history", item_r43.Key === "history")("mj-forms-btn--list", item_r43.Key === "list")("mj-forms-btn--tags", item_r43.Key === "tags")("mj-forms-btn--comments", item_r43.Key === "comments")("mj-forms-btn--links", item_r43.Key === "links")("mj-forms-btn--ask-ai", item_r43.Key === "ask-ai")("mj-forms-toolbar__btn--active", item_r43.Key === "links" && ctx_r1.LinksOpen || item_r43.Key === "comments" && ctx_r1.CommentsOpen)("mj-forms-btn--attachments", item_r43.Key === "attachments");
|
|
931
|
+
i0.ɵɵproperty("disabled", item_r43.Disabled || item_r43.IsLoading)("title", item_r43.Description);
|
|
932
|
+
i0.ɵɵattribute("aria-label", item_r43.Text ? null : item_r43.Description || item_r43.MenuLabel);
|
|
729
933
|
i0.ɵɵadvance();
|
|
730
|
-
i0.ɵɵconditional(
|
|
934
|
+
i0.ɵɵconditional(item_r43.IsLoading ? 1 : item_r43.Icon ? 2 : -1);
|
|
731
935
|
i0.ɵɵadvance(2);
|
|
732
|
-
i0.ɵɵconditional(
|
|
936
|
+
i0.ɵɵconditional(item_r43.Text ? 3 : -1);
|
|
733
937
|
i0.ɵɵadvance();
|
|
734
|
-
i0.ɵɵconditional(
|
|
938
|
+
i0.ɵɵconditional(item_r43.Badge != null ? 4 : -1);
|
|
735
939
|
} }
|
|
736
940
|
function MjFormToolbarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
737
|
-
const
|
|
738
|
-
i0.ɵɵelementStart(0, "mj-record-clone-slide-in",
|
|
739
|
-
i0.ɵɵlistener("VisibleChange", function MjFormToolbarComponent_Conditional_4_Template_mj_record_clone_slide_in_VisibleChange_0_listener($event) { i0.ɵɵrestoreView(
|
|
941
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
942
|
+
i0.ɵɵelementStart(0, "mj-record-clone-slide-in", 106);
|
|
943
|
+
i0.ɵɵlistener("VisibleChange", function MjFormToolbarComponent_Conditional_4_Template_mj_record_clone_slide_in_VisibleChange_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnClonePanelVisibleChange($event)); })("CloneCompleted", function MjFormToolbarComponent_Conditional_4_Template_mj_record_clone_slide_in_CloneCompleted_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCloneCompleted($event)); })("NavigateToRecord", function MjFormToolbarComponent_Conditional_4_Template_mj_record_clone_slide_in_NavigateToRecord_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCloneNavigate($event)); });
|
|
740
944
|
i0.ɵɵelementEnd();
|
|
741
945
|
} if (rf & 2) {
|
|
742
946
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
743
947
|
i0.ɵɵproperty("Provider", ctx_r1.Provider)("Record", ctx_r1.Record)("Visible", ctx_r1.IsClonePanelOpen);
|
|
744
948
|
} }
|
|
745
949
|
function MjFormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
746
|
-
const
|
|
747
|
-
i0.ɵɵelementStart(0, "div",
|
|
748
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
749
|
-
i0.ɵɵelementStart(1, "div",
|
|
950
|
+
const _r45 = i0.ɵɵgetCurrentView();
|
|
951
|
+
i0.ɵɵelementStart(0, "div", 107);
|
|
952
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
953
|
+
i0.ɵɵelementStart(1, "div", 108);
|
|
750
954
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_div_click_1_listener($event) { return $event.stopPropagation(); });
|
|
751
|
-
i0.ɵɵelementStart(2, "div",
|
|
955
|
+
i0.ɵɵelementStart(2, "div", 109)(3, "h3");
|
|
752
956
|
i0.ɵɵtext(4, "Discard Changes?");
|
|
753
957
|
i0.ɵɵelementEnd();
|
|
754
|
-
i0.ɵɵelementStart(5, "button",
|
|
755
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_5_listener() { i0.ɵɵrestoreView(
|
|
756
|
-
i0.ɵɵelement(6, "i",
|
|
958
|
+
i0.ɵɵelementStart(5, "button", 110);
|
|
959
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
960
|
+
i0.ɵɵelement(6, "i", 62);
|
|
757
961
|
i0.ɵɵelementEnd()();
|
|
758
|
-
i0.ɵɵelementStart(7, "div",
|
|
962
|
+
i0.ɵɵelementStart(7, "div", 111)(8, "p");
|
|
759
963
|
i0.ɵɵtext(9, "You have ");
|
|
760
964
|
i0.ɵɵelementStart(10, "strong");
|
|
761
965
|
i0.ɵɵtext(11);
|
|
762
966
|
i0.ɵɵelementEnd();
|
|
763
967
|
i0.ɵɵtext(12);
|
|
764
968
|
i0.ɵɵelementEnd()();
|
|
765
|
-
i0.ɵɵelementStart(13, "div",
|
|
766
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_14_listener() { i0.ɵɵrestoreView(
|
|
767
|
-
i0.ɵɵelement(15, "i",
|
|
969
|
+
i0.ɵɵelementStart(13, "div", 112)(14, "button", 113);
|
|
970
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardConfirm()); });
|
|
971
|
+
i0.ɵɵelement(15, "i", 15);
|
|
768
972
|
i0.ɵɵtext(16, " Discard Changes ");
|
|
769
973
|
i0.ɵɵelementEnd();
|
|
770
|
-
i0.ɵɵelementStart(17, "button",
|
|
771
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_17_listener() { i0.ɵɵrestoreView(
|
|
974
|
+
i0.ɵɵelementStart(17, "button", 114);
|
|
975
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r45); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
772
976
|
i0.ɵɵtext(18, " Keep Editing ");
|
|
773
977
|
i0.ɵɵelementEnd()()()();
|
|
774
978
|
} if (rf & 2) {
|
|
@@ -779,102 +983,104 @@ function MjFormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
779
983
|
i0.ɵɵtextInterpolate2(" unsaved change", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "" : "s", ". Are you sure you want to discard ", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "it" : "them", "?");
|
|
780
984
|
} }
|
|
781
985
|
function MjFormToolbarComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
782
|
-
const
|
|
783
|
-
i0.ɵɵelementStart(0, "div",
|
|
784
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
785
|
-
i0.ɵɵelementStart(1, "div",
|
|
986
|
+
const _r46 = i0.ɵɵgetCurrentView();
|
|
987
|
+
i0.ɵɵelementStart(0, "div", 107);
|
|
988
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
989
|
+
i0.ɵɵelementStart(1, "div", 108);
|
|
786
990
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_div_click_1_listener($event) { return $event.stopPropagation(); });
|
|
787
|
-
i0.ɵɵelementStart(2, "div",
|
|
991
|
+
i0.ɵɵelementStart(2, "div", 109)(3, "h3");
|
|
788
992
|
i0.ɵɵtext(4, "Confirm Deletion");
|
|
789
993
|
i0.ɵɵelementEnd();
|
|
790
|
-
i0.ɵɵelementStart(5, "button",
|
|
791
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_5_listener() { i0.ɵɵrestoreView(
|
|
792
|
-
i0.ɵɵelement(6, "i",
|
|
994
|
+
i0.ɵɵelementStart(5, "button", 110);
|
|
995
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
996
|
+
i0.ɵɵelement(6, "i", 62);
|
|
793
997
|
i0.ɵɵelementEnd()();
|
|
794
|
-
i0.ɵɵelementStart(7, "div",
|
|
998
|
+
i0.ɵɵelementStart(7, "div", 111)(8, "p");
|
|
795
999
|
i0.ɵɵtext(9, "Are you sure you want to delete this record? This action cannot be undone.");
|
|
796
1000
|
i0.ɵɵelementEnd()();
|
|
797
|
-
i0.ɵɵelementStart(10, "div",
|
|
798
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_11_listener() { i0.ɵɵrestoreView(
|
|
799
|
-
i0.ɵɵelement(12, "i",
|
|
1001
|
+
i0.ɵɵelementStart(10, "div", 112)(11, "button", 113);
|
|
1002
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteConfirm()); });
|
|
1003
|
+
i0.ɵɵelement(12, "i", 115);
|
|
800
1004
|
i0.ɵɵtext(13, " Delete ");
|
|
801
1005
|
i0.ɵɵelementEnd();
|
|
802
|
-
i0.ɵɵelementStart(14, "button",
|
|
803
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_14_listener() { i0.ɵɵrestoreView(
|
|
1006
|
+
i0.ɵɵelementStart(14, "button", 114);
|
|
1007
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r46); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
804
1008
|
i0.ɵɵtext(15, " Cancel ");
|
|
805
1009
|
i0.ɵɵelementEnd()()()();
|
|
806
1010
|
} }
|
|
807
1011
|
function MjFormToolbarComponent_ng_template_7_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
808
|
-
i0.ɵɵelementContainer(0,
|
|
1012
|
+
i0.ɵɵelementContainer(0, 38);
|
|
809
1013
|
} if (rf & 2) {
|
|
810
|
-
const
|
|
1014
|
+
const items_r48 = i0.ɵɵnextContext(2).items;
|
|
811
1015
|
i0.ɵɵnextContext();
|
|
812
|
-
const
|
|
813
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
1016
|
+
const descendantTreeTpl_r41 = i0.ɵɵreference(8);
|
|
1017
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r41)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, items_r48[0].Children));
|
|
814
1018
|
} }
|
|
815
1019
|
function MjFormToolbarComponent_ng_template_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
816
|
-
const
|
|
817
|
-
i0.ɵɵelementStart(0, "span",
|
|
818
|
-
i0.ɵɵelement(1, "i",
|
|
1020
|
+
const _r47 = i0.ɵɵgetCurrentView();
|
|
1021
|
+
i0.ɵɵelementStart(0, "span", 104);
|
|
1022
|
+
i0.ɵɵelement(1, "i", 105);
|
|
819
1023
|
i0.ɵɵelementEnd();
|
|
820
|
-
i0.ɵɵelementStart(2, "button",
|
|
821
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_0_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(
|
|
822
|
-
i0.ɵɵelement(3, "i",
|
|
1024
|
+
i0.ɵɵelementStart(2, "button", 117);
|
|
1025
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_0_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r47); const items_r48 = i0.ɵɵnextContext().items; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDescendantBadgeClick(items_r48[0].EntityName, $event)); });
|
|
1026
|
+
i0.ɵɵelement(3, "i", 118);
|
|
823
1027
|
i0.ɵɵtext(4);
|
|
824
1028
|
i0.ɵɵelementEnd();
|
|
825
|
-
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_ng_template_7_Conditional_0_Conditional_5_Template, 1, 4, "ng-container",
|
|
1029
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_ng_template_7_Conditional_0_Conditional_5_Template, 1, 4, "ng-container", 38);
|
|
826
1030
|
} if (rf & 2) {
|
|
827
|
-
const
|
|
1031
|
+
const items_r48 = i0.ɵɵnextContext().items;
|
|
828
1032
|
i0.ɵɵadvance(2);
|
|
829
|
-
i0.ɵɵproperty("title", "Navigate to: " +
|
|
1033
|
+
i0.ɵɵproperty("title", "Navigate to: " + items_r48[0].EntityName);
|
|
830
1034
|
i0.ɵɵadvance(2);
|
|
831
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
1035
|
+
i0.ɵɵtextInterpolate1(" ", items_r48[0].EntityName, " ");
|
|
832
1036
|
i0.ɵɵadvance();
|
|
833
|
-
i0.ɵɵconditional(
|
|
1037
|
+
i0.ɵɵconditional(items_r48[0].Children.length > 0 ? 5 : -1);
|
|
834
1038
|
} }
|
|
835
1039
|
function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
836
|
-
i0.ɵɵelementContainer(0,
|
|
1040
|
+
i0.ɵɵelementContainer(0, 38);
|
|
837
1041
|
} if (rf & 2) {
|
|
838
|
-
const
|
|
1042
|
+
const item_r50 = i0.ɵɵnextContext().$implicit;
|
|
839
1043
|
i0.ɵɵnextContext(3);
|
|
840
|
-
const
|
|
841
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
1044
|
+
const descendantTreeTpl_r41 = i0.ɵɵreference(8);
|
|
1045
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r41)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, item_r50.Children));
|
|
842
1046
|
} }
|
|
843
1047
|
function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
844
|
-
const
|
|
845
|
-
i0.ɵɵelementStart(0, "div",
|
|
846
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template_button_click_1_listener($event) { const
|
|
847
|
-
i0.ɵɵelement(2, "i",
|
|
1048
|
+
const _r49 = i0.ɵɵgetCurrentView();
|
|
1049
|
+
i0.ɵɵelementStart(0, "div", 119)(1, "button", 117);
|
|
1050
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template_button_click_1_listener($event) { const item_r50 = i0.ɵɵrestoreView(_r49).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnDescendantBadgeClick(item_r50.EntityName, $event)); });
|
|
1051
|
+
i0.ɵɵelement(2, "i", 118);
|
|
848
1052
|
i0.ɵɵtext(3);
|
|
849
1053
|
i0.ɵɵelementEnd();
|
|
850
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Conditional_4_Template, 1, 4, "ng-container",
|
|
1054
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Conditional_4_Template, 1, 4, "ng-container", 38);
|
|
851
1055
|
i0.ɵɵelementEnd();
|
|
852
1056
|
} if (rf & 2) {
|
|
853
|
-
const
|
|
1057
|
+
const item_r50 = ctx.$implicit;
|
|
854
1058
|
i0.ɵɵadvance();
|
|
855
|
-
i0.ɵɵproperty("title", "Navigate to: " +
|
|
1059
|
+
i0.ɵɵproperty("title", "Navigate to: " + item_r50.EntityName);
|
|
856
1060
|
i0.ɵɵadvance(2);
|
|
857
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
1061
|
+
i0.ɵɵtextInterpolate1(" ", item_r50.EntityName, " ");
|
|
858
1062
|
i0.ɵɵadvance();
|
|
859
|
-
i0.ɵɵconditional(
|
|
1063
|
+
i0.ɵɵconditional(item_r50.Children.length > 0 ? 4 : -1);
|
|
860
1064
|
} }
|
|
861
1065
|
function MjFormToolbarComponent_ng_template_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
862
|
-
i0.ɵɵelementStart(0, "div",
|
|
863
|
-
i0.ɵɵrepeaterCreate(1, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template, 5, 3, "div",
|
|
1066
|
+
i0.ɵɵelementStart(0, "div", 116);
|
|
1067
|
+
i0.ɵɵrepeaterCreate(1, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template, 5, 3, "div", 119, _forTrack2);
|
|
864
1068
|
i0.ɵɵelementEnd();
|
|
865
1069
|
} if (rf & 2) {
|
|
866
|
-
const
|
|
1070
|
+
const items_r48 = i0.ɵɵnextContext().items;
|
|
867
1071
|
i0.ɵɵadvance();
|
|
868
|
-
i0.ɵɵrepeater(
|
|
1072
|
+
i0.ɵɵrepeater(items_r48);
|
|
869
1073
|
} }
|
|
870
1074
|
function MjFormToolbarComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
871
|
-
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_ng_template_7_Conditional_0_Template, 6, 3)(1, MjFormToolbarComponent_ng_template_7_Conditional_1_Template, 3, 0, "div",
|
|
1075
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_ng_template_7_Conditional_0_Template, 6, 3)(1, MjFormToolbarComponent_ng_template_7_Conditional_1_Template, 3, 0, "div", 116);
|
|
872
1076
|
} if (rf & 2) {
|
|
873
|
-
const
|
|
874
|
-
i0.ɵɵconditional(
|
|
1077
|
+
const items_r48 = ctx.items;
|
|
1078
|
+
i0.ɵɵconditional(items_r48.length === 1 ? 0 : items_r48.length > 1 ? 1 : -1);
|
|
875
1079
|
} }
|
|
876
1080
|
/** User setting that stores the toolbar actions a user pinned, shared across every form. */
|
|
877
1081
|
export const TOOLBAR_PINS_SETTING_KEY = 'mj.form.toolbar.pinnedActions';
|
|
1082
|
+
/** User setting that stores whether the form toolbar stays pinned open in Read Mode (global + per-entity). */
|
|
1083
|
+
export const TOOLBAR_VISIBILITY_SETTING_KEY = 'mj.form.toolbar.visibility';
|
|
878
1084
|
/** Built-in actions that start pinned for a user who has not chosen pins. */
|
|
879
1085
|
export const DEFAULT_PINNED_TOOLBAR_ACTIONS = ['favorite', 'history'];
|
|
880
1086
|
/** More-menu labels for the built-in actions, whose buttons are icon-only. */
|
|
@@ -887,6 +1093,7 @@ const STANDARD_MENU_LABELS = {
|
|
|
887
1093
|
history: 'History',
|
|
888
1094
|
list: 'Add to list',
|
|
889
1095
|
tags: 'Tags',
|
|
1096
|
+
comments: 'Comments',
|
|
890
1097
|
links: 'Links',
|
|
891
1098
|
attachments: 'Attachments',
|
|
892
1099
|
'ask-ai': 'Ask AI',
|
|
@@ -958,6 +1165,10 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
958
1165
|
LinksOpen = false;
|
|
959
1166
|
/** Number of linked records for this record */
|
|
960
1167
|
LinkCount = 0;
|
|
1168
|
+
/** Whether the comments drawer is currently open */
|
|
1169
|
+
CommentsOpen = false;
|
|
1170
|
+
/** Number of open anchored comments on this record */
|
|
1171
|
+
CommentCount = 0;
|
|
961
1172
|
/** Number of active field conflicts requiring review in edit mode */
|
|
962
1173
|
ConflictCount = 0;
|
|
963
1174
|
/** Number of attachments linked to this record */
|
|
@@ -1014,6 +1225,11 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1014
1225
|
FormComponent = null;
|
|
1015
1226
|
/** The currently-applied variant ID, or null when the Default form is active. */
|
|
1016
1227
|
CurrentVariantID = null;
|
|
1228
|
+
/**
|
|
1229
|
+
* Callback supplied by the form host when the entity has both a custom view
|
|
1230
|
+
* and a CodeGen standard form. Shown inside the View bottom sheet on phones.
|
|
1231
|
+
*/
|
|
1232
|
+
FormModeSwitch = null;
|
|
1017
1233
|
// ---- Outputs ----
|
|
1018
1234
|
/** Emitted when any toolbar item (standard or custom) is clicked */
|
|
1019
1235
|
ToolbarItemClick = new EventEmitter();
|
|
@@ -1051,6 +1267,8 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1051
1267
|
TagsPanelToggled = new EventEmitter();
|
|
1052
1268
|
/** Emitted when the Links button is clicked */
|
|
1053
1269
|
LinksRequest = new EventEmitter();
|
|
1270
|
+
/** Emitted when the Comments button is clicked */
|
|
1271
|
+
CommentsRequest = new EventEmitter();
|
|
1054
1272
|
/** Emitted when the Ask AI button is clicked */
|
|
1055
1273
|
AskAIRequested = new EventEmitter();
|
|
1056
1274
|
/** Emitted when the user pins or unpins a toolbar action in the More menu */
|
|
@@ -1093,6 +1311,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1093
1311
|
_chainsLoading = false;
|
|
1094
1312
|
// ---- Lifecycle ----
|
|
1095
1313
|
ngOnInit() {
|
|
1314
|
+
this.watchAutoHideViewport();
|
|
1096
1315
|
this.recordRefresh?.Refreshed$.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
1097
1316
|
this.InvalidateHierarchy();
|
|
1098
1317
|
});
|
|
@@ -1105,6 +1324,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1105
1324
|
}
|
|
1106
1325
|
}
|
|
1107
1326
|
ngOnDestroy() {
|
|
1327
|
+
this.unwatchAutoHideViewport();
|
|
1108
1328
|
this.stopDocumentListeners();
|
|
1109
1329
|
this.destroy$.next();
|
|
1110
1330
|
this.destroy$.complete();
|
|
@@ -1120,6 +1340,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1120
1340
|
this.checkDescendantChains();
|
|
1121
1341
|
this.checkCloneCapability();
|
|
1122
1342
|
this.checkPinsChanged();
|
|
1343
|
+
this.checkVisibilityChanged();
|
|
1123
1344
|
}
|
|
1124
1345
|
/** Redraws when the saved pins changed elsewhere (another open form, another tab). */
|
|
1125
1346
|
checkPinsChanged() {
|
|
@@ -1129,6 +1350,14 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1129
1350
|
this.cdr.markForCheck();
|
|
1130
1351
|
}
|
|
1131
1352
|
}
|
|
1353
|
+
/** Redraws when the toolbar visibility setting changed elsewhere. */
|
|
1354
|
+
checkVisibilityChanged() {
|
|
1355
|
+
const before = this._visibilityRaw;
|
|
1356
|
+
this.readVisibilitySetting();
|
|
1357
|
+
if (this._visibilityRaw !== before) {
|
|
1358
|
+
this.cdr.markForCheck();
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1132
1361
|
/**
|
|
1133
1362
|
* Sync toolbar state from the legacy form reference.
|
|
1134
1363
|
* Only active when [Form] is set (backward-compat mode).
|
|
@@ -1457,6 +1686,11 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1457
1686
|
return;
|
|
1458
1687
|
this.LinksRequest.emit();
|
|
1459
1688
|
}
|
|
1689
|
+
OnComments() {
|
|
1690
|
+
if (this.dispatchToFormRef('HandleCommentsPanel'))
|
|
1691
|
+
return;
|
|
1692
|
+
this.CommentsRequest.emit();
|
|
1693
|
+
}
|
|
1460
1694
|
OnAskAI() {
|
|
1461
1695
|
if (this.dispatchToFormRef('OnAskAIRequested'))
|
|
1462
1696
|
return;
|
|
@@ -1581,6 +1815,19 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1581
1815
|
Order: 60,
|
|
1582
1816
|
Visible: this.Config.ShowTagsButton,
|
|
1583
1817
|
Disabled: false,
|
|
1818
|
+
}, {
|
|
1819
|
+
Key: 'comments',
|
|
1820
|
+
Text: '',
|
|
1821
|
+
Description: this.CommentCount > 0 ? `${this.CommentCount} open comment${this.CommentCount === 1 ? '' : 's'}` : 'Comments',
|
|
1822
|
+
Icon: 'fa-regular fa-comment-dots',
|
|
1823
|
+
Badge: this.CommentCount > 0 ? this.CommentCount : undefined,
|
|
1824
|
+
Variant: 'default',
|
|
1825
|
+
Mode: 'read',
|
|
1826
|
+
Placement: 'actions',
|
|
1827
|
+
Order: 62,
|
|
1828
|
+
Visible: this.Config.ShowCommentsButton !== false && (this.Record?.IsSaved ?? false) && (this.EntityInfo?.AllowRecordComments !== false),
|
|
1829
|
+
Disabled: false,
|
|
1830
|
+
CssClass: this.CommentsOpen ? 'mj-forms-toolbar__btn--active active' : '',
|
|
1584
1831
|
}, {
|
|
1585
1832
|
Key: 'links',
|
|
1586
1833
|
Text: '',
|
|
@@ -1653,7 +1900,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1653
1900
|
}
|
|
1654
1901
|
// 4. Resolve states, evaluate predicates, apply overrides
|
|
1655
1902
|
const resolved = [];
|
|
1656
|
-
const standardKeys = new Set(['edit', 'delete', 'refresh', 'clone', 'favorite', 'history', 'list', 'tags', 'links', 'attachments', 'ask-ai']);
|
|
1903
|
+
const standardKeys = new Set(['edit', 'delete', 'refresh', 'clone', 'favorite', 'history', 'list', 'tags', 'comments', 'links', 'attachments', 'ask-ai']);
|
|
1657
1904
|
for (const item of rawItems) {
|
|
1658
1905
|
const overrides = this.ItemOverrides?.get(item.Key);
|
|
1659
1906
|
const merged = overrides ? { ...item, ...overrides } : item;
|
|
@@ -1800,6 +2047,177 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1800
2047
|
get InlineActionItems() {
|
|
1801
2048
|
return this.ResolvedActionItems.filter(item => !item.Pinnable);
|
|
1802
2049
|
}
|
|
2050
|
+
/** The resolved 'edit' action item when visible in read mode (used by the collapsed trigger pill). */
|
|
2051
|
+
get EditActionItem() {
|
|
2052
|
+
return this.ResolvedActionItems.find(item => item.Key === 'edit');
|
|
2053
|
+
}
|
|
2054
|
+
// ── Toolbar Auto-Hide & Visibility Pinning ──────────────────────
|
|
2055
|
+
/** Whether the user expanded the full toolbar for the current viewing session in Read Mode. */
|
|
2056
|
+
ToolbarSessionExpanded = false;
|
|
2057
|
+
_visibilityRaw;
|
|
2058
|
+
_visibilityParsed = null;
|
|
2059
|
+
_localVisibility = null;
|
|
2060
|
+
_visibilityRawAtWrite;
|
|
2061
|
+
/** Name of the current entity from EntityInfo input or Record.EntityInfo. */
|
|
2062
|
+
get CurrentEntityName() {
|
|
2063
|
+
return this.EntityInfo?.Name ?? this.Record?.EntityInfo?.Name ?? null;
|
|
2064
|
+
}
|
|
2065
|
+
/** Display name of the current entity for UI labels. */
|
|
2066
|
+
get CurrentEntityDisplayName() {
|
|
2067
|
+
return this.EntityInfo?.DisplayNameOrName ?? this.Record?.EntityInfo?.DisplayNameOrName ?? 'this entity';
|
|
2068
|
+
}
|
|
2069
|
+
/** Current resolved toolbar visibility setting. */
|
|
2070
|
+
get ToolbarVisibilitySetting() {
|
|
2071
|
+
return this.readVisibilitySetting() ?? { Version: 1, GlobalPinned: false };
|
|
2072
|
+
}
|
|
2073
|
+
/** True when the user has pinned the toolbar globally across all forms. */
|
|
2074
|
+
get IsGlobalToolbarPinned() {
|
|
2075
|
+
return this.ToolbarVisibilitySetting.GlobalPinned === true;
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Per-entity toolbar pin override for the current entity:
|
|
2079
|
+
* - `true`: pinned open on this entity
|
|
2080
|
+
* - `false`: explicitly unpinned/collapsed on this entity (overrides GlobalPinned)
|
|
2081
|
+
* - `undefined`: no entity override (inherits GlobalPinned)
|
|
2082
|
+
*/
|
|
2083
|
+
get EntityToolbarPinState() {
|
|
2084
|
+
const entityName = this.CurrentEntityName;
|
|
2085
|
+
if (!entityName)
|
|
2086
|
+
return undefined;
|
|
2087
|
+
const state = this.ToolbarVisibilitySetting.EntityPinned?.[entityName];
|
|
2088
|
+
return typeof state === 'boolean' ? state : undefined;
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Whether the toolbar is pinned open for the current form:
|
|
2092
|
+
* 1. Look up `EntityPinned?.[entityName]`. If boolean (`true` or `false`), return it.
|
|
2093
|
+
* 2. Otherwise return `GlobalPinned ?? false`.
|
|
2094
|
+
*/
|
|
2095
|
+
get IsToolbarPinnedOpen() {
|
|
2096
|
+
const entityState = this.EntityToolbarPinState;
|
|
2097
|
+
if (typeof entityState === 'boolean') {
|
|
2098
|
+
return entityState;
|
|
2099
|
+
}
|
|
2100
|
+
return this.IsGlobalToolbarPinned;
|
|
2101
|
+
}
|
|
2102
|
+
stopWatchingPhoneViewport = null;
|
|
2103
|
+
/**
|
|
2104
|
+
* True at phone width, where pixels matter enough to hide the toolbar by default. Desktop
|
|
2105
|
+
* always shows the full toolbar; the pin and hide controls exist only here.
|
|
2106
|
+
*/
|
|
2107
|
+
get IsAutoHideViewport() {
|
|
2108
|
+
return IsPhoneViewport();
|
|
2109
|
+
}
|
|
2110
|
+
watchAutoHideViewport() {
|
|
2111
|
+
this.stopWatchingPhoneViewport = WatchPhoneViewport(() => this.cdr.markForCheck());
|
|
2112
|
+
}
|
|
2113
|
+
unwatchAutoHideViewport() {
|
|
2114
|
+
this.stopWatchingPhoneViewport?.();
|
|
2115
|
+
this.stopWatchingPhoneViewport = null;
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* Whether the full toolbar renders (`true`) vs. the compact Read-Mode trigger pill (`false`).
|
|
2119
|
+
* Only a phone-width viewport ever collapses. An IS-A hierarchy does not force the toolbar
|
|
2120
|
+
* open: its breadcrumb is its own row below the toolbar block, so it renders either way.
|
|
2121
|
+
*/
|
|
2122
|
+
get IsToolbarExpanded() {
|
|
2123
|
+
if (!this.IsAutoHideViewport)
|
|
2124
|
+
return true;
|
|
2125
|
+
if (this.EditMode)
|
|
2126
|
+
return true;
|
|
2127
|
+
if (this.SearchFilter.trim().length > 0)
|
|
2128
|
+
return true;
|
|
2129
|
+
if (this.IsToolbarPinnedOpen)
|
|
2130
|
+
return true;
|
|
2131
|
+
if (this.ToolbarSessionExpanded)
|
|
2132
|
+
return true;
|
|
2133
|
+
return false;
|
|
2134
|
+
}
|
|
2135
|
+
/**
|
|
2136
|
+
* Expands the full toolbar in Read Mode for the current viewing session. Focus moves to the
|
|
2137
|
+
* "Hide toolbar" chevron once the swap has rendered.
|
|
2138
|
+
*/
|
|
2139
|
+
ExpandToolbarForSession() {
|
|
2140
|
+
this.ToolbarSessionExpanded = true;
|
|
2141
|
+
this.cdr.markForCheck();
|
|
2142
|
+
this.focusAfterRender('.mj-forms-toolbar-collapse-btn');
|
|
2143
|
+
}
|
|
2144
|
+
/**
|
|
2145
|
+
* Collapses the full toolbar back to the compact Read-Mode trigger pill.
|
|
2146
|
+
* If the toolbar was pinned open, unpins it for this entity only so it collapses immediately:
|
|
2147
|
+
* an entity pin is cleared (or overridden to `false` when the global pin would still show it),
|
|
2148
|
+
* and a global pin gets an entity override of `false`. The global pin itself is never touched
|
|
2149
|
+
* here; only "Unpin toolbar on all forms" changes it. Focus moves to the "…" expand button
|
|
2150
|
+
* once the swap has rendered, so a keyboard user is not dropped on `<body>`.
|
|
2151
|
+
*/
|
|
2152
|
+
CollapseToolbarForSession() {
|
|
2153
|
+
this.ToolbarSessionExpanded = false;
|
|
2154
|
+
this.CloseMenus();
|
|
2155
|
+
if (this.IsToolbarPinnedOpen) {
|
|
2156
|
+
this.unpinToolbarForEntity();
|
|
2157
|
+
}
|
|
2158
|
+
this.cdr.markForCheck();
|
|
2159
|
+
this.focusAfterRender('.mj-forms-collapsed-btn--expand');
|
|
2160
|
+
}
|
|
2161
|
+
/** Writes the per-entity override that makes `IsToolbarPinnedOpen` false for the current entity. */
|
|
2162
|
+
unpinToolbarForEntity() {
|
|
2163
|
+
const entityName = this.CurrentEntityName;
|
|
2164
|
+
if (!entityName)
|
|
2165
|
+
return;
|
|
2166
|
+
const current = this.ToolbarVisibilitySetting;
|
|
2167
|
+
const nextEntityPinned = { ...(current.EntityPinned ?? {}) };
|
|
2168
|
+
if (current.GlobalPinned) {
|
|
2169
|
+
nextEntityPinned[entityName] = false;
|
|
2170
|
+
}
|
|
2171
|
+
else {
|
|
2172
|
+
delete nextEntityPinned[entityName];
|
|
2173
|
+
}
|
|
2174
|
+
this.writeVisibilitySetting({
|
|
2175
|
+
Version: 1,
|
|
2176
|
+
GlobalPinned: current.GlobalPinned,
|
|
2177
|
+
EntityPinned: nextEntityPinned,
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Focuses the first element matching `selector` inside this component after the next render.
|
|
2182
|
+
* The expand/collapse controls replace each other in an `@if` swap, so the activated button is
|
|
2183
|
+
* gone by the time the view updates; this hands focus to its counterpart. A no-op when nothing
|
|
2184
|
+
* matches (the toolbar stayed expanded because of a search filter, say).
|
|
2185
|
+
*/
|
|
2186
|
+
focusAfterRender(selector) {
|
|
2187
|
+
setTimeout(() => {
|
|
2188
|
+
const root = this.host.nativeElement;
|
|
2189
|
+
root.querySelector(selector)?.focus();
|
|
2190
|
+
}, 0);
|
|
2191
|
+
}
|
|
2192
|
+
/** Toggles pinning the toolbar open globally across all forms. */
|
|
2193
|
+
ToggleGlobalToolbarPin() {
|
|
2194
|
+
const current = this.ToolbarVisibilitySetting;
|
|
2195
|
+
const nextGlobal = !current.GlobalPinned;
|
|
2196
|
+
this.writeVisibilitySetting({
|
|
2197
|
+
Version: 1,
|
|
2198
|
+
GlobalPinned: nextGlobal,
|
|
2199
|
+
EntityPinned: current.EntityPinned,
|
|
2200
|
+
});
|
|
2201
|
+
this.ToolbarSessionExpanded = nextGlobal;
|
|
2202
|
+
this.cdr.markForCheck();
|
|
2203
|
+
}
|
|
2204
|
+
/** Toggles pinning the toolbar open specifically for the current entity (overrides GlobalPinned). */
|
|
2205
|
+
ToggleEntityToolbarPin() {
|
|
2206
|
+
const entityName = this.CurrentEntityName;
|
|
2207
|
+
if (!entityName)
|
|
2208
|
+
return;
|
|
2209
|
+
const current = this.ToolbarVisibilitySetting;
|
|
2210
|
+
const nextEntityPinned = { ...(current.EntityPinned ?? {}) };
|
|
2211
|
+
const nextState = !this.IsToolbarPinnedOpen;
|
|
2212
|
+
nextEntityPinned[entityName] = nextState;
|
|
2213
|
+
this.writeVisibilitySetting({
|
|
2214
|
+
Version: 1,
|
|
2215
|
+
GlobalPinned: current.GlobalPinned,
|
|
2216
|
+
EntityPinned: nextEntityPinned,
|
|
2217
|
+
});
|
|
2218
|
+
this.ToolbarSessionExpanded = nextState;
|
|
2219
|
+
this.cdr.markForCheck();
|
|
2220
|
+
}
|
|
1803
2221
|
/** Pinned actions this form offers, in pin order, up to MaxPinnedActions. Computed once per pass. */
|
|
1804
2222
|
get PinnedActionItems() {
|
|
1805
2223
|
return (this._pinnedItems ??= this.resolvePinnedItems()).Items;
|
|
@@ -1878,6 +2296,17 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1878
2296
|
if (this.MoreMenuOpen)
|
|
1879
2297
|
this.focusFirstIn(`#${this.MenuIdPrefix}-more`);
|
|
1880
2298
|
}
|
|
2299
|
+
/** The phone sheet closed itself (scrim, grab handle, Escape inside it): drop the matching menu state. */
|
|
2300
|
+
OnMenuSheetVisibleChange(menu, visible) {
|
|
2301
|
+
if (visible)
|
|
2302
|
+
return;
|
|
2303
|
+
if (menu === 'more')
|
|
2304
|
+
this.MoreMenuOpen = false;
|
|
2305
|
+
else
|
|
2306
|
+
this.ViewMenuOpen = false;
|
|
2307
|
+
this.syncDocumentListeners();
|
|
2308
|
+
this.cdr.markForCheck();
|
|
2309
|
+
}
|
|
1881
2310
|
ToggleViewMenu() {
|
|
1882
2311
|
this.ViewMenuOpen = !this.ViewMenuOpen;
|
|
1883
2312
|
this.MoreMenuOpen = false;
|
|
@@ -1945,7 +2374,16 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1945
2374
|
!!this.Config.ShowSectionManager ||
|
|
1946
2375
|
this.HasCustomSectionOrder ||
|
|
1947
2376
|
!!this.Config.ShowWidthToggle);
|
|
1948
|
-
return sections || this.ShowVariantPickerButton;
|
|
2377
|
+
return sections || this.ShowVariantPickerButton || (this.IsAutoHideViewport && !!this.FormModeSwitch);
|
|
2378
|
+
}
|
|
2379
|
+
/** Switch between the entity's custom view and its CodeGen standard form from the phone View sheet. */
|
|
2380
|
+
OnFormModeSwitchClick() {
|
|
2381
|
+
if (!this.FormModeSwitch)
|
|
2382
|
+
return;
|
|
2383
|
+
const next = this.FormModeSwitch.Mode === 'standard' ? 'default' : 'standard';
|
|
2384
|
+
if (this.FormModeSwitch.Switch(next)) {
|
|
2385
|
+
this.OnMenuSheetVisibleChange('view', false);
|
|
2386
|
+
}
|
|
1949
2387
|
}
|
|
1950
2388
|
OnDocumentClick(event) {
|
|
1951
2389
|
if (!this.host.nativeElement.contains(event.target)) {
|
|
@@ -2016,6 +2454,67 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2016
2454
|
// No user context (tests, anonymous hosts): the pins still apply for this session.
|
|
2017
2455
|
}
|
|
2018
2456
|
}
|
|
2457
|
+
safeGetRawVisibility() {
|
|
2458
|
+
try {
|
|
2459
|
+
return this.userInfoEngine.GetSetting(TOOLBAR_VISIBILITY_SETTING_KEY);
|
|
2460
|
+
}
|
|
2461
|
+
catch {
|
|
2462
|
+
return undefined;
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
readVisibilitySetting() {
|
|
2466
|
+
const raw = this.safeGetRawVisibility();
|
|
2467
|
+
if (this._localVisibility !== null) {
|
|
2468
|
+
if (raw === this._visibilityRawAtWrite) {
|
|
2469
|
+
return this._localVisibility;
|
|
2470
|
+
}
|
|
2471
|
+
this._localVisibility = null;
|
|
2472
|
+
this._visibilityRawAtWrite = undefined;
|
|
2473
|
+
}
|
|
2474
|
+
if (raw !== this._visibilityRaw) {
|
|
2475
|
+
this._visibilityRaw = raw;
|
|
2476
|
+
this._visibilityParsed = null;
|
|
2477
|
+
if (raw) {
|
|
2478
|
+
try {
|
|
2479
|
+
const parsed = JSON.parse(raw);
|
|
2480
|
+
const entityPinned = {};
|
|
2481
|
+
if (parsed.EntityPinned && typeof parsed.EntityPinned === 'object') {
|
|
2482
|
+
for (const [k, v] of Object.entries(parsed.EntityPinned)) {
|
|
2483
|
+
if (typeof v === 'boolean') {
|
|
2484
|
+
entityPinned[k] = v;
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
this._visibilityParsed = {
|
|
2489
|
+
Version: 1,
|
|
2490
|
+
GlobalPinned: parsed.GlobalPinned === true,
|
|
2491
|
+
...(Object.keys(entityPinned).length > 0 ? { EntityPinned: entityPinned } : {}),
|
|
2492
|
+
};
|
|
2493
|
+
}
|
|
2494
|
+
catch {
|
|
2495
|
+
this._visibilityParsed = null;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
return this._visibilityParsed;
|
|
2500
|
+
}
|
|
2501
|
+
writeVisibilitySetting(setting) {
|
|
2502
|
+
const normalized = {
|
|
2503
|
+
Version: 1,
|
|
2504
|
+
GlobalPinned: setting.GlobalPinned === true,
|
|
2505
|
+
...(setting.EntityPinned && Object.keys(setting.EntityPinned).length > 0
|
|
2506
|
+
? { EntityPinned: { ...setting.EntityPinned } }
|
|
2507
|
+
: {}),
|
|
2508
|
+
};
|
|
2509
|
+
this._localVisibility = normalized;
|
|
2510
|
+
this._visibilityRawAtWrite = this.safeGetRawVisibility();
|
|
2511
|
+
try {
|
|
2512
|
+
this.userInfoEngine.SetSettingDebounced(TOOLBAR_VISIBILITY_SETTING_KEY, JSON.stringify(normalized));
|
|
2513
|
+
}
|
|
2514
|
+
catch {
|
|
2515
|
+
// No user context (tests, anonymous hosts): setting still applies for this session.
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2019
2518
|
async OnToolbarItemClick(item, event) {
|
|
2020
2519
|
if (item.Disabled || item.IsLoading) {
|
|
2021
2520
|
return;
|
|
@@ -2051,6 +2550,11 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2051
2550
|
case 'tags':
|
|
2052
2551
|
this.OnTagsPanel();
|
|
2053
2552
|
break;
|
|
2553
|
+
case 'comments':
|
|
2554
|
+
if (!item.Config.OnClick) {
|
|
2555
|
+
this.OnComments();
|
|
2556
|
+
}
|
|
2557
|
+
break;
|
|
2054
2558
|
case 'links':
|
|
2055
2559
|
if (!item.Config.OnClick) {
|
|
2056
2560
|
this.OnLinks();
|
|
@@ -2326,14 +2830,14 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2326
2830
|
this.ManageSectionsRequested.emit();
|
|
2327
2831
|
}
|
|
2328
2832
|
static ɵfac = /*@__PURE__*/ (() => { let ɵMjFormToolbarComponent_BaseFactory; return function MjFormToolbarComponent_Factory(__ngFactoryType__) { return (ɵMjFormToolbarComponent_BaseFactory || (ɵMjFormToolbarComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MjFormToolbarComponent)))(__ngFactoryType__ || MjFormToolbarComponent); }; })();
|
|
2329
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { Form: "Form", _deprecatedForm: [0, "form", "_deprecatedForm"], Record: "Record", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", TagCount: "TagCount", IsTagsPanelOpen: "IsTagsPanelOpen", LinksOpen: "LinksOpen", LinkCount: "LinkCount", ConflictCount: "ConflictCount", AttachmentCount: "AttachmentCount", AttachmentsAvailable: "AttachmentsAvailable", IsAttachmentsPanelOpen: "IsAttachmentsPanelOpen", VersionCount: "VersionCount", EntityInfo: "EntityInfo", Config: "Config", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", VisibleSectionCount: "VisibleSectionCount", TotalSectionCount: "TotalSectionCount", ExpandedSectionCount: "ExpandedSectionCount", SearchFilter: "SearchFilter", ShowEmptyFields: "ShowEmptyFields", WidthMode: "WidthMode", HasCustomSectionOrder: "HasCustomSectionOrder", ChromeLayout: "ChromeLayout", AdditionalActionsTemplate: "AdditionalActionsTemplate", Variants: "Variants", RegisteredItems: "RegisteredItems", ItemOverrides: "ItemOverrides", FormComponent: "FormComponent", CurrentVariantID: "CurrentVariantID" }, outputs: { ToolbarItemClick: "ToolbarItemClick", Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", TagsPanelToggled: "TagsPanelToggled", LinksRequest: "LinksRequest", AskAIRequested: "AskAIRequested", ActionPinChanged: "ActionPinChanged", AttachmentsPanelToggled: "AttachmentsPanelToggled", ShowChangesRequested: "ShowChangesRequested", VariantPicked: "VariantPicked", CustomButtonClick: "CustomButtonClick", FilterChange: "FilterChange", ExpandAllRequested: "ExpandAllRequested", CollapseAllRequested: "CollapseAllRequested", ShowEmptyFieldsChange: "ShowEmptyFieldsChange", WidthModeChange: "WidthModeChange", ResetSectionOrderRequested: "ResetSectionOrderRequested", ManageSectionsRequested: "ManageSectionsRequested", BeforeClone: "BeforeClone", CloneCompleted: "CloneCompleted" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 9, vars: 5, consts: [["actionButtonTpl", ""], ["descendantTreeTpl", ""], [1, "mj-forms-edit-banner"], [3, "Provider", "Record", "Visible"], [1, "mj-dialog-overlay"], ["role", "status", 1, "mj-forms-edit-banner-conflicts"], [1, "mj-forms-toolbar-spacer"], [1, "mj-forms-edit-banner-actions"], [1, "mj-forms-btn", 3, "mj-forms-btn--primary", "mj-forms-btn--secondary", "mj-forms-btn--accent", "mj-forms-btn--danger", "mj-forms-btn--ghost", "class", "disabled", "title"], ["title", "Save Changes", 1, "mj-forms-btn", "mj-forms-btn--primary", 3, "click", "disabled"], [1, "fa-solid", "fa-floppy-disk"], [1, "mj-forms-btn-text"], ["title", "Discard Changes", 1, "mj-forms-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-rotate-left"], [1, "fa-solid", "fa-circle-exclamation", "mj-forms-edit-banner-icon--dirty"], [1, "mj-forms-edit-banner-dirty"], [1, "fa-solid", "fa-pen-to-square"], [1, "mj-forms-edit-banner-text"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "mj-forms-btn", 3, "click", "disabled", "title"], [1, "fa-solid", "fa-spinner", "fa-spin"], [3, "class"], [1, "mj-list-count-badge"], [1, "mj-forms-toolbar"], [1, "mj-forms-toolbar-group"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mj-forms-menu-host", 3, "open"], ["title", "Sections are filtered", 1, "mj-forms-filter-chip"], [3, "ngTemplateOutlet"], [1, "mj-forms-
|
|
2833
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MjFormToolbarComponent, selectors: [["mj-form-toolbar"]], inputs: { Form: "Form", _deprecatedForm: [0, "form", "_deprecatedForm"], Record: "Record", EditMode: "EditMode", UserCanEdit: "UserCanEdit", UserCanDelete: "UserCanDelete", IsFavorite: "IsFavorite", FavoriteInitDone: "FavoriteInitDone", IsDirty: "IsDirty", DirtyFieldNames: "DirtyFieldNames", ListCount: "ListCount", TagCount: "TagCount", IsTagsPanelOpen: "IsTagsPanelOpen", LinksOpen: "LinksOpen", LinkCount: "LinkCount", CommentsOpen: "CommentsOpen", CommentCount: "CommentCount", ConflictCount: "ConflictCount", AttachmentCount: "AttachmentCount", AttachmentsAvailable: "AttachmentsAvailable", IsAttachmentsPanelOpen: "IsAttachmentsPanelOpen", VersionCount: "VersionCount", EntityInfo: "EntityInfo", Config: "Config", IsSaving: "IsSaving", IsRefreshing: "IsRefreshing", VisibleSectionCount: "VisibleSectionCount", TotalSectionCount: "TotalSectionCount", ExpandedSectionCount: "ExpandedSectionCount", SearchFilter: "SearchFilter", ShowEmptyFields: "ShowEmptyFields", WidthMode: "WidthMode", HasCustomSectionOrder: "HasCustomSectionOrder", ChromeLayout: "ChromeLayout", AdditionalActionsTemplate: "AdditionalActionsTemplate", Variants: "Variants", RegisteredItems: "RegisteredItems", ItemOverrides: "ItemOverrides", FormComponent: "FormComponent", CurrentVariantID: "CurrentVariantID", FormModeSwitch: "FormModeSwitch" }, outputs: { ToolbarItemClick: "ToolbarItemClick", Navigate: "Navigate", EditModeChange: "EditModeChange", BeforeSave: "BeforeSave", SaveRequested: "SaveRequested", BeforeCancel: "BeforeCancel", CancelRequested: "CancelRequested", BeforeDelete: "BeforeDelete", DeleteRequested: "DeleteRequested", BeforeRefresh: "BeforeRefresh", RefreshRequested: "RefreshRequested", FavoriteToggled: "FavoriteToggled", BeforeHistoryView: "BeforeHistoryView", HistoryRequested: "HistoryRequested", BeforeListManagement: "BeforeListManagement", ListManagementRequested: "ListManagementRequested", TagsPanelToggled: "TagsPanelToggled", LinksRequest: "LinksRequest", CommentsRequest: "CommentsRequest", AskAIRequested: "AskAIRequested", ActionPinChanged: "ActionPinChanged", AttachmentsPanelToggled: "AttachmentsPanelToggled", ShowChangesRequested: "ShowChangesRequested", VariantPicked: "VariantPicked", CustomButtonClick: "CustomButtonClick", FilterChange: "FilterChange", ExpandAllRequested: "ExpandAllRequested", CollapseAllRequested: "CollapseAllRequested", ShowEmptyFieldsChange: "ShowEmptyFieldsChange", WidthModeChange: "WidthModeChange", ResetSectionOrderRequested: "ResetSectionOrderRequested", ManageSectionsRequested: "ManageSectionsRequested", BeforeClone: "BeforeClone", CloneCompleted: "CloneCompleted" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 9, vars: 5, consts: [["actionButtonTpl", ""], ["descendantTreeTpl", ""], ["moreMenuContent", ""], ["viewMenuContent", ""], [1, "mj-forms-edit-banner"], [3, "Provider", "Record", "Visible"], [1, "mj-dialog-overlay"], ["role", "status", 1, "mj-forms-edit-banner-conflicts"], [1, "mj-forms-toolbar-spacer"], [1, "mj-forms-edit-banner-actions"], [1, "mj-forms-btn", 3, "mj-forms-btn--primary", "mj-forms-btn--secondary", "mj-forms-btn--accent", "mj-forms-btn--danger", "mj-forms-btn--ghost", "class", "disabled", "title"], ["title", "Save Changes", 1, "mj-forms-btn", "mj-forms-btn--primary", 3, "click", "disabled"], [1, "fa-solid", "fa-floppy-disk"], [1, "mj-forms-btn-text"], ["title", "Discard Changes", 1, "mj-forms-btn", 3, "click", "disabled"], [1, "fa-solid", "fa-rotate-left"], [1, "fa-solid", "fa-circle-exclamation", "mj-forms-edit-banner-icon--dirty"], [1, "mj-forms-edit-banner-dirty"], [1, "mj-forms-dirty-chips"], [1, "fa-solid", "fa-pen-to-square"], [1, "mj-forms-edit-banner-text"], [1, "mj-forms-edit-banner-record-name"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "mj-forms-btn", 3, "click", "disabled", "title"], [1, "fa-solid", "fa-spinner", "fa-spin"], [3, "class"], [1, "mj-list-count-badge"], ["role", "toolbar", "aria-label", "Form actions", 1, "mj-forms-toolbar-collapsed-pill", 3, "mj-forms-toolbar-collapsed-pill--rail"], [1, "mj-forms-toolbar", 3, "mj-forms-toolbar--sticky"], [1, "mj-forms-hierarchy-row"], ["role", "toolbar", "aria-label", "Form actions", 1, "mj-forms-toolbar-collapsed-pill"], ["type", "button", 1, "mj-forms-collapsed-btn", "mj-forms-collapsed-btn--edit", 3, "disabled", "title"], ["type", "button", "aria-label", "Show form toolbar", "title", "Show toolbar actions and view options", 1, "mj-forms-collapsed-btn", "mj-forms-collapsed-btn--expand", 3, "click"], [1, "fa-solid", "fa-ellipsis"], ["type", "button", 1, "mj-forms-collapsed-btn", "mj-forms-collapsed-btn--edit", 3, "click", "disabled", "title"], [1, "fa-solid", "fa-pen"], [1, "mj-forms-toolbar"], [1, "mj-forms-toolbar-group"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mj-forms-menu-host", 3, "open"], ["title", "Sections are filtered", 1, "mj-forms-filter-chip"], [3, "ngTemplateOutlet"], ["type", "button", "aria-label", "Hide form toolbar", "title", "Hide toolbar", 1, "mj-forms-btn", "mj-forms-btn--icon-only", "mj-forms-toolbar-collapse-btn"], [1, "mj-forms-menu-host"], ["type", "button", "data-menu-trigger", "more", "title", "More actions", 1, "mj-forms-btn", "mj-forms-menu-trigger", 3, "click"], ["role", "group", "aria-label", "More actions", 1, "mj-forms-menu", "mj-forms-menu--left", 3, "id"], ["Title", "More actions", 3, "Visible"], ["Title", "More actions", 3, "VisibleChange", "Visible"], ["role", "group", "aria-label", "More actions", 1, "mj-forms-menu", "mj-forms-menu--sheet", 3, "id"], [1, "mj-forms-menu-row", 3, "disabled"], [1, "mj-forms-menu-row"], ["type", "button", 1, "mj-forms-menu-item", 3, "click", "disabled", "title"], [1, "mj-forms-menu-icon"], [1, "mj-forms-menu-label"], [1, "mj-forms-menu-badge"], ["type", "button", 1, "mj-forms-menu-pin", 3, "click", "title"], [1, "fa-solid", "fa-thumbtack"], [1, "mj-forms-menu-sep"], ["type", "button", 1, "mj-forms-menu-item", "mj-forms-menu-item--danger", 3, "click", "disabled", "title"], [1, "fa-solid", "fa-filter"], [1, "mj-forms-filter-chip-text"], ["type", "button", "aria-label", "Clear section filter", "title", "Clear section filter", 1, "mj-forms-filter-chip-clear", 3, "click"], [1, "fa-solid", "fa-xmark"], ["type", "button", "data-menu-trigger", "view", 1, "mj-forms-btn", "mj-forms-menu-trigger", 3, "click", "title"], [1, "fa-solid", "fa-sliders"], [1, "mj-forms-variant-tag"], ["role", "group", "aria-label", "Sections and layout", 1, "mj-forms-menu", "mj-forms-menu--right", 3, "id"], ["Title", "Sections and layout", 3, "Visible"], ["Title", "Sections and layout", 3, "VisibleChange", "Visible"], ["role", "group", "aria-label", "Sections and layout", 1, "mj-forms-menu", "mj-forms-menu--sheet", 3, "id"], [1, "mj-forms-menu-search"], [1, "mj-forms-menu-heading"], ["type", "button", 1, "mj-forms-menu-item"], ["type", "text", "placeholder", "Search sections...", "aria-label", "Search sections", 1, "mj-section-search", 3, "input", "value"], ["type", "button", "aria-label", "Clear section search", "title", "Clear search", 1, "mj-clear-search"], ["type", "button", "aria-label", "Clear section search", "title", "Clear search", 1, "mj-clear-search", 3, "click"], ["type", "button", "title", "Expand all sections", 1, "mj-forms-menu-item", 3, "click", "disabled"], [1, "fa-solid", "fa-angles-down"], ["type", "button", "title", "Collapse all sections", 1, "mj-forms-menu-item", 3, "click", "disabled"], [1, "fa-solid", "fa-angles-up"], ["type", "button", 1, "mj-forms-menu-item", 3, "click"], [1, "fa-solid", "fa-bars-staggered"], [1, "fa-solid", "fa-arrow-rotate-left"], ["type", "button", 1, "mj-form-variant-picker-row", "mj-form-variant-picker-default", 3, "click"], [1, "mj-form-variant-picker-row-main"], [1, "mj-form-variant-picker-row-title"], [1, "mj-form-variant-picker-default-tag"], [1, "mj-form-variant-picker-row-sub"], [1, "fa-solid", "fa-check", "mj-form-variant-picker-check"], ["type", "button", 1, "mj-form-variant-picker-row", 3, "current", "inactive"], ["type", "button", 1, "mj-form-variant-picker-row", 3, "click"], [1, "fa-solid"], ["type", "button", "data-toolbar-pin", "entity", 1, "mj-forms-menu-item"], ["type", "button", "data-toolbar-pin", "global", 1, "mj-forms-menu-item", 3, "click"], [1, "fa-solid", "fa-globe"], ["type", "button", "data-toolbar-collapse", "menu", 1, "mj-forms-menu-item", 3, "click"], [1, "fa-solid", "fa-eye-slash"], ["type", "button", "data-toolbar-pin", "entity", 1, "mj-forms-menu-item", 3, "click"], ["type", "button", "aria-label", "Hide form toolbar", "title", "Hide toolbar", 1, "mj-forms-btn", "mj-forms-btn--icon-only", "mj-forms-toolbar-collapse-btn", 3, "click"], [1, "fa-solid", "fa-chevron-up"], [1, "mj-entity-hierarchy"], [1, "mj-entity-badge", "mj-entity-badge--current"], ["type", "button", 1, "mj-entity-badge", "mj-entity-badge--parent", 3, "click", "title"], [1, "fa-solid", "fa-arrow-up"], [1, "mj-hierarchy-arrow"], [1, "fa-solid", "fa-chevron-right"], [3, "VisibleChange", "CloneCompleted", "NavigateToRecord", "Provider", "Record", "Visible"], [1, "mj-dialog-overlay", 3, "click"], [1, "mj-dialog", 3, "click"], [1, "mj-dialog-header"], [1, "mj-dialog-close", 3, "click"], [1, "mj-dialog-body"], [1, "mj-dialog-footer"], [1, "mj-forms-btn", "mj-forms-btn--danger", 3, "click"], [1, "mj-forms-btn", 3, "click"], [1, "fa-solid", "fa-trash-can"], [1, "mj-descendant-chains"], ["type", "button", 1, "mj-entity-badge", "mj-entity-badge--child", 3, "click", "title"], [1, "fa-solid", "fa-arrow-down"], [1, "mj-descendant-chain"]], template: function MjFormToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2330
2834
|
i0.ɵɵprojectionDef(_c0);
|
|
2331
|
-
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_0_Template, 18, 4, "div",
|
|
2332
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Template,
|
|
2333
|
-
i0.ɵɵtemplate(2, MjFormToolbarComponent_ng_template_2_Template, 5,
|
|
2334
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_4_Template, 1, 3, "mj-record-clone-slide-in",
|
|
2335
|
-
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_5_Template, 19, 3, "div",
|
|
2336
|
-
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_6_Template, 16, 0, "div",
|
|
2835
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_0_Template, 18, 4, "div", 4);
|
|
2836
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Template, 3, 2);
|
|
2837
|
+
i0.ɵɵtemplate(2, MjFormToolbarComponent_ng_template_2_Template, 5, 34, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
2838
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_4_Template, 1, 3, "mj-record-clone-slide-in", 5);
|
|
2839
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_5_Template, 19, 3, "div", 6);
|
|
2840
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_6_Template, 16, 0, "div", 6);
|
|
2337
2841
|
i0.ɵɵtemplate(7, MjFormToolbarComponent_ng_template_7_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
2338
2842
|
} if (rf & 2) {
|
|
2339
2843
|
i0.ɵɵconditional(ctx.EditMode && ctx.Config.ShowEditBanner ? 0 : -1);
|
|
@@ -2345,11 +2849,11 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2345
2849
|
i0.ɵɵconditional(ctx.ShowDiscardDialog ? 5 : -1);
|
|
2346
2850
|
i0.ɵɵadvance();
|
|
2347
2851
|
i0.ɵɵconditional(ctx.ShowDeleteDialog ? 6 : -1);
|
|
2348
|
-
} }, dependencies: [i1.NgTemplateOutlet, i2.RecordCloneSlideInComponent], styles: ["\n\n\n[_nghost-%COMP%] {\n display: block;\n}\n\n\n\n\n.mj-forms-edit-banner[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 16px 16px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-bottom: 2px solid var(--mj-brand-primary);\n font-size: 13px;\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-edit-banner[_ngcontent-%COMP%] > i[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-icon--dirty[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-size: var(--mj-text-base);\n}\n\n.mj-forms-edit-banner-text[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-dirty[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-edit-banner-dirty[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-forms-edit-banner-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n}\n\n\n\n\n.mj-forms-toolbar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 22px 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 2px solid var(--mj-border-default);\n flex-wrap: wrap;\n z-index: 40;\n}\n\n.mj-forms-toolbar--sticky[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n}\n\n.mj-forms-toolbar--disabled[_ngcontent-%COMP%] {\n pointer-events: none;\n opacity: 0.7;\n}\n\n.mj-forms-toolbar-group[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-toolbar-separator[_ngcontent-%COMP%] {\n width: 1px;\n height: 24px;\n background: var(--mj-border-default);\n margin: 0 4px;\n}\n\n.mj-forms-toolbar-spacer[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n\n\n\n.mj-forms-btn[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n font-size: 13px;\n font-weight: var(--mj-font-medium);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n white-space: nowrap;\n font-family: inherit;\n line-height: 1;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n box-shadow: var(--mj-shadow-sm);\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:active {\n transform: translateY(0);\n box-shadow: none;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 15px;\n line-height: 1;\n}\n\n.mj-forms-btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--primary[_ngcontent-%COMP%]:hover {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n}\n\n.mj-forms-btn--secondary[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n.mj-forms-btn--secondary[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--accent[_ngcontent-%COMP%] {\n background: var(--mj-brand-accent, #6366f1);\n color: var(--mj-text-inverse, #ffffff);\n border-color: var(--mj-brand-accent, #6366f1);\n}\n\n.mj-forms-btn--accent[_ngcontent-%COMP%]:hover {\n filter: brightness(1.1);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-accent, #6366f1) 30%, transparent);\n}\n\n.mj-forms-btn--danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, transparent);\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n}\n\n.mj-forms-btn--danger[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, var(--mj-bg-surface));\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-btn--ghost[_ngcontent-%COMP%] {\n border-color: transparent;\n background: transparent;\n}\n\n.mj-forms-btn--ghost[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-color: transparent;\n}\n\n.mj-forms-btn--icon-only[_ngcontent-%COMP%] {\n padding: 7px 9px;\n}\n\n.mj-forms-btn--sm[_ngcontent-%COMP%] {\n padding: 5px 12px;\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn--sm[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn-text[_ngcontent-%COMP%] {\n margin-left: 2px;\n}\n\n.mj-icon--favorite[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n}\n\n\n.mj-forms-btn--list[_ngcontent-%COMP%] {\n position: relative;\n}\n\n\n.mj-forms-btn--history[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.mj-version-count-badge[_ngcontent-%COMP%] {\n position: absolute;\n top: -6px;\n right: -10px;\n padding: 0 5px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-success) 0%, color-mix(in srgb, var(--mj-status-success) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n height: 16px;\n border: 2px solid var(--mj-bg-surface-card);\n white-space: nowrap;\n line-height: 1;\n}\n\n.mj-list-count-badge[_ngcontent-%COMP%] {\n position: absolute;\n top: -6px;\n right: -6px;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-info) 0%, color-mix(in srgb, var(--mj-status-info) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--mj-bg-surface-card);\n}\n\n\n\n\n.mj-entity-hierarchy[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mj-entity-badge[_ngcontent-%COMP%] {\n \n font-family: inherit;\n line-height: inherit;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n text-decoration: none;\n border: 1px solid transparent;\n}\n\n.mj-entity-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n}\n\n.mj-entity-badge--parent[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-accent) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-accent);\n border-color: color-mix(in srgb, var(--mj-brand-accent) 25%, transparent);\n}\n\n.mj-entity-badge--parent[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-accent) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-accent);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-brand-accent) 15%, transparent);\n}\n\n.mj-entity-badge--current[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n font-size: 13px;\n color: var(--mj-text-primary);\n padding: 4px 8px;\n background: var(--mj-bg-surface-hover);\n border-radius: var(--mj-radius-sm);\n cursor: default;\n}\n\n.mj-entity-badge--child[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-info) 10%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border-color: color-mix(in srgb, var(--mj-status-info) 25%, transparent);\n}\n\n.mj-entity-badge--child[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-info) 18%, var(--mj-bg-surface));\n border-color: var(--mj-status-info);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-info) 15%, transparent);\n}\n\n.mj-entity-badge--overlapping[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 10%, var(--mj-bg-surface));\n color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n border-color: color-mix(in srgb, var(--mj-status-warning) 40%, transparent);\n}\n\n.mj-entity-badge--overlapping[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-warning) 18%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-warning) 15%, transparent);\n}\n\n.mj-entity-badge-group[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex-wrap: wrap;\n}\n\n.mj-child-count[_ngcontent-%COMP%] {\n background: var(--mj-status-info);\n color: var(--mj-text-inverse);\n font-size: 10px;\n padding: 1px 5px;\n border-radius: var(--mj-radius-full);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-entity-badge--leaf[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mj-entity-badge--root[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mj-hierarchy-arrow[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 10px;\n}\n\n\n.mj-descendant-chains[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n position: relative;\n padding-left: 20px;\n}\n\n\n.mj-descendant-chains[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: -4px;\n top: 50%;\n width: 4px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n.mj-descendant-chain[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n padding: 2px 0;\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: -20px;\n top: 50%;\n width: 18px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n left: -20px;\n top: 0;\n bottom: 0;\n border-left: 1.5px solid var(--mj-text-muted);\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]:first-child::after {\n top: 50%;\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]:last-child::after {\n bottom: 50%;\n}\n\n\n\n\n\n\n.mj-section-controls[_ngcontent-%COMP%] {\n gap: 6px;\n}\n\n.mj-forms-search-wrapper[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.mj-section-search[_ngcontent-%COMP%] {\n max-width: 180px;\n font-size: 13px;\n padding: 6px 28px 6px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n outline: none;\n font-family: inherit;\n transition: all var(--mj-transition-base);\n}\n\n.mj-section-search[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n\n.mj-section-search--active[_ngcontent-%COMP%] {\n background-color: color-mix(in srgb, var(--mj-status-warning) 40%, var(--mj-bg-surface));\n border-color: var(--mj-status-warning);\n color: color-mix(in srgb, var(--mj-status-warning) 80%, black);\n font-weight: var(--mj-font-semibold);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-status-warning) 25%, transparent);\n}\n\n.mj-section-search[_ngcontent-%COMP%]::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-clear-search[_ngcontent-%COMP%] {\n position: absolute;\n right: 4px;\n padding: 4px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: var(--mj-text-xs);\n line-height: 1;\n}\n\n.mj-clear-search[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-secondary);\n}\n\n\n\n\n.mj-dialog-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n animation: _ngcontent-%COMP%_mj-fade-in 150ms ease;\n}\n\n.mj-dialog[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-lg);\n min-width: 400px;\n max-width: 550px;\n animation: _ngcontent-%COMP%_mj-slide-up 200ms ease;\n}\n\n.mj-dialog-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mj-dialog-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-base);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-dialog-close[_ngcontent-%COMP%] {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n font-size: var(--mj-text-base);\n transition: color var(--mj-transition-base);\n}\n\n.mj-dialog-close[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n}\n\n.mj-dialog-body[_ngcontent-%COMP%] {\n padding: 20px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n}\n\n.mj-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n}\n\n.mj-dialog-footer[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n}\n\n@keyframes _ngcontent-%COMP%_mj-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes _ngcontent-%COMP%_mj-slide-up {\n from { transform: translateY(8px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n}\n\n\n\n\n\n.mj-form-variant-picker-host[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n}\n\n.mj-form-variant-picker-trigger[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 240px;\n}\n\n.mj-form-variant-picker-trigger[_ngcontent-%COMP%] .chev[_ngcontent-%COMP%] {\n font-size: 10px;\n opacity: 0.7;\n}\n\n.mj-form-variant-picker-current-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 160px;\n font-size: 12px;\n font-weight: 500;\n}\n\n.mj-form-variant-picker-host.open[_ngcontent-%COMP%] .mj-form-variant-picker-trigger[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-form-variant-picker-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 50;\n min-width: 280px;\n max-height: 360px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n padding: 4px 0;\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n padding: 8px 12px;\n border: 0;\n background: none;\n font: inherit;\n text-align: left;\n cursor: pointer;\n color: var(--mj-text-primary);\n font-size: 13px;\n transition: background 120ms;\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%]:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-form-variant-picker-row.current[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-form-variant-picker-row.inactive[_ngcontent-%COMP%] {\n opacity: 0.6;\n}\n\n.mj-form-variant-picker-row-main[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-form-variant-picker-row-title[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.mj-form-variant-picker-row-sub[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.mj-form-variant-picker-default-tag[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin-left: 4px;\n}\n\n.mj-form-variant-picker-default[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-variant-picker-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n margin-top: 2px;\n}\n\n\n\n\n.mj-forms-menu-host[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n}\n\n.mj-forms-menu-host.open[_ngcontent-%COMP%] .mj-forms-menu-trigger[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-forms-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 4px);\n z-index: 50;\n min-width: 260px;\n max-height: 420px;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu--left[_ngcontent-%COMP%] { left: 0; }\n.mj-forms-menu--right[_ngcontent-%COMP%] { right: 0; }\n\n.mj-forms-menu-heading[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-2) var(--mj-space-1);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-menu-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-1);\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: 6px var(--mj-space-2);\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-primary);\n font: inherit;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:hover:not(:disabled), \n.mj-forms-menu-item[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-hover);\n outline: none;\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.mj-forms-menu-item--danger[_ngcontent-%COMP%], \n.mj-forms-menu-item--danger[_ngcontent-%COMP%] .mj-forms-menu-icon[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n.mj-forms-menu-icon[_ngcontent-%COMP%] {\n width: 18px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-menu-label[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n.mj-forms-menu-badge[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n padding: 0 6px;\n border-radius: 9px;\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%] {\n width: 26px;\n height: 26px;\n display: grid;\n place-items: center;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%]:hover:not(:disabled), \n.mj-forms-menu-pin[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-menu-pin.pinned[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n\n.mj-forms-menu-pin.pinned.over-cap[_ngcontent-%COMP%] {\n outline: 1px dashed var(--mj-brand-primary);\n outline-offset: -3px;\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%]:disabled, \n.mj-forms-menu-pin[aria-disabled=\"true\"][_ngcontent-%COMP%] {\n opacity: 0.35;\n cursor: default;\n}\n\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:focus-visible, \n.mj-forms-menu-pin[_ngcontent-%COMP%]:focus-visible, \n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:focus-visible, \n.mj-entity-badge[_ngcontent-%COMP%]:focus-visible {\n box-shadow: var(--mj-focus-ring);\n}\n\n\n.mj-forms-variant-tag[_ngcontent-%COMP%] {\n max-width: 12rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 6px;\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-menu-sep[_ngcontent-%COMP%] {\n height: 1px;\n margin: var(--mj-space-1) var(--mj-space-1);\n background: var(--mj-border-default);\n}\n\n.mj-forms-menu-search[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu-search[_ngcontent-%COMP%] .mj-section-search[_ngcontent-%COMP%] {\n flex: 1;\n width: auto;\n max-width: none;\n}\n\n\n.mj-forms-hierarchy-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: var(--mj-space-2) 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n overflow-x: auto;\n}\n\n.mj-forms-filter-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n max-width: 220px;\n padding: 2px 4px 2px 10px;\n border: 1px solid var(--mj-border-focus);\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-text-primary);\n font-size: 12px;\n}\n\n.mj-forms-filter-chip-text[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-filter-chip-clear[_ngcontent-%COMP%] {\n display: grid;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 0;\n border-radius: var(--mj-radius-full);\n background: transparent;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:hover, \n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-toolbar__btn--active[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 14%, transparent);\n color: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n.mj-forms-edit-banner-conflicts[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-left: 10px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 18%, transparent);\n color: var(--mj-status-warning-text, #b45309);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 40%, transparent);\n}"], changeDetection: 0 });
|
|
2852
|
+
} }, dependencies: [i1.NgTemplateOutlet, i2.MJBottomSheetComponent, i3.RecordCloneSlideInComponent], styles: ["\n\n\n[_nghost-%COMP%] {\n display: block;\n}\n\n\n\n\n.mj-forms-edit-banner[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 16px 16px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-bottom: 2px solid var(--mj-brand-primary);\n font-size: 13px;\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-edit-banner[_ngcontent-%COMP%] > i[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-icon--dirty[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-size: var(--mj-text-base);\n}\n\n.mj-forms-edit-banner-text[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-dirty[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-edit-banner-dirty[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-forms-edit-banner-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n}\n\n\n\n\n.mj-forms-toolbar[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 22px 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 2px solid var(--mj-border-default);\n flex-wrap: wrap;\n z-index: 40;\n}\n\n.mj-forms-toolbar--sticky[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n}\n\n.mj-forms-toolbar--disabled[_ngcontent-%COMP%] {\n pointer-events: none;\n opacity: 0.7;\n}\n\n.mj-forms-toolbar-group[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-toolbar-separator[_ngcontent-%COMP%] {\n width: 1px;\n height: 24px;\n background: var(--mj-border-default);\n margin: 0 4px;\n}\n\n.mj-forms-toolbar-spacer[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n\n\n\n.mj-forms-btn[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n font-size: 13px;\n font-weight: var(--mj-font-medium);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n white-space: nowrap;\n font-family: inherit;\n line-height: 1;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n box-shadow: var(--mj-shadow-sm);\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:active {\n transform: translateY(0);\n box-shadow: none;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 15px;\n line-height: 1;\n}\n\n.mj-forms-btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--primary[_ngcontent-%COMP%]:hover {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n}\n\n.mj-forms-btn--secondary[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n.mj-forms-btn--secondary[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--accent[_ngcontent-%COMP%] {\n background: var(--mj-brand-accent, #6366f1);\n color: var(--mj-text-inverse, #ffffff);\n border-color: var(--mj-brand-accent, #6366f1);\n}\n\n.mj-forms-btn--accent[_ngcontent-%COMP%]:hover {\n filter: brightness(1.1);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-accent, #6366f1) 30%, transparent);\n}\n\n.mj-forms-btn--danger[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, transparent);\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n}\n\n.mj-forms-btn--danger[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, var(--mj-bg-surface));\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-btn--ghost[_ngcontent-%COMP%] {\n border-color: transparent;\n background: transparent;\n}\n\n.mj-forms-btn--ghost[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-color: transparent;\n}\n\n.mj-forms-btn--icon-only[_ngcontent-%COMP%] {\n padding: 7px 9px;\n}\n\n.mj-forms-btn--sm[_ngcontent-%COMP%] {\n padding: 5px 12px;\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn--sm[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn-text[_ngcontent-%COMP%] {\n margin-left: 2px;\n}\n\n.mj-icon--favorite[_ngcontent-%COMP%] {\n color: var(--mj-status-warning);\n}\n\n\n.mj-forms-btn--list[_ngcontent-%COMP%] {\n position: relative;\n}\n\n\n.mj-forms-btn--history[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.mj-version-count-badge[_ngcontent-%COMP%] {\n position: absolute;\n top: -6px;\n right: -10px;\n padding: 0 5px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-success) 0%, color-mix(in srgb, var(--mj-status-success) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n height: 16px;\n border: 2px solid var(--mj-bg-surface-card);\n white-space: nowrap;\n line-height: 1;\n}\n\n.mj-list-count-badge[_ngcontent-%COMP%] {\n position: absolute;\n top: -6px;\n right: -6px;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-info) 0%, color-mix(in srgb, var(--mj-status-info) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--mj-bg-surface-card);\n}\n\n\n\n\n.mj-entity-hierarchy[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mj-entity-badge[_ngcontent-%COMP%] {\n \n font-family: inherit;\n line-height: inherit;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n text-decoration: none;\n border: 1px solid transparent;\n}\n\n.mj-entity-badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 11px;\n}\n\n.mj-entity-badge--parent[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-accent) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-accent);\n border-color: color-mix(in srgb, var(--mj-brand-accent) 25%, transparent);\n}\n\n.mj-entity-badge--parent[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-brand-accent) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-accent);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-brand-accent) 15%, transparent);\n}\n\n.mj-entity-badge--current[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n font-size: 13px;\n color: var(--mj-text-primary);\n padding: 4px 8px;\n background: var(--mj-bg-surface-hover);\n border-radius: var(--mj-radius-sm);\n cursor: default;\n}\n\n.mj-entity-badge--child[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-info) 10%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border-color: color-mix(in srgb, var(--mj-status-info) 25%, transparent);\n}\n\n.mj-entity-badge--child[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-info) 18%, var(--mj-bg-surface));\n border-color: var(--mj-status-info);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-info) 15%, transparent);\n}\n\n.mj-entity-badge--overlapping[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 10%, var(--mj-bg-surface));\n color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n border-color: color-mix(in srgb, var(--mj-status-warning) 40%, transparent);\n}\n\n.mj-entity-badge--overlapping[_ngcontent-%COMP%]:hover {\n background: color-mix(in srgb, var(--mj-status-warning) 18%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-warning) 15%, transparent);\n}\n\n.mj-entity-badge-group[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex-wrap: wrap;\n}\n\n.mj-child-count[_ngcontent-%COMP%] {\n background: var(--mj-status-info);\n color: var(--mj-text-inverse);\n font-size: 10px;\n padding: 1px 5px;\n border-radius: var(--mj-radius-full);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-entity-badge--leaf[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mj-entity-badge--root[_ngcontent-%COMP%] {\n border-style: dashed;\n}\n\n.mj-hierarchy-arrow[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: 10px;\n}\n\n\n.mj-descendant-chains[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 6px;\n position: relative;\n padding-left: 20px;\n}\n\n\n.mj-descendant-chains[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: -4px;\n top: 50%;\n width: 4px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n.mj-descendant-chain[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n padding: 2px 0;\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: -20px;\n top: 50%;\n width: 18px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n left: -20px;\n top: 0;\n bottom: 0;\n border-left: 1.5px solid var(--mj-text-muted);\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]:first-child::after {\n top: 50%;\n}\n\n\n.mj-descendant-chain[_ngcontent-%COMP%]:last-child::after {\n bottom: 50%;\n}\n\n\n\n\n\n\n.mj-section-controls[_ngcontent-%COMP%] {\n gap: 6px;\n}\n\n.mj-forms-search-wrapper[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.mj-section-search[_ngcontent-%COMP%] {\n max-width: 180px;\n font-size: 13px;\n padding: 6px 28px 6px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n outline: none;\n font-family: inherit;\n transition: all var(--mj-transition-base);\n}\n\n.mj-section-search[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n\n.mj-section-search--active[_ngcontent-%COMP%] {\n background-color: color-mix(in srgb, var(--mj-status-warning) 40%, var(--mj-bg-surface));\n border-color: var(--mj-status-warning);\n color: color-mix(in srgb, var(--mj-status-warning) 80%, black);\n font-weight: var(--mj-font-semibold);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-status-warning) 25%, transparent);\n}\n\n.mj-section-search[_ngcontent-%COMP%]::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-clear-search[_ngcontent-%COMP%] {\n position: absolute;\n right: 4px;\n padding: 4px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: var(--mj-text-xs);\n line-height: 1;\n}\n\n.mj-clear-search[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-secondary);\n}\n\n\n\n\n.mj-dialog-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n animation: _ngcontent-%COMP%_mj-fade-in 150ms ease;\n}\n\n.mj-dialog[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-lg);\n min-width: 400px;\n max-width: 550px;\n animation: _ngcontent-%COMP%_mj-slide-up 200ms ease;\n}\n\n.mj-dialog-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mj-dialog-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-base);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-dialog-close[_ngcontent-%COMP%] {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n font-size: var(--mj-text-base);\n transition: color var(--mj-transition-base);\n}\n\n.mj-dialog-close[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n}\n\n.mj-dialog-body[_ngcontent-%COMP%] {\n padding: 20px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n}\n\n.mj-dialog-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n}\n\n.mj-dialog-footer[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n}\n\n@keyframes _ngcontent-%COMP%_mj-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes _ngcontent-%COMP%_mj-slide-up {\n from { transform: translateY(8px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n}\n\n\n\n\n\n.mj-form-variant-picker-host[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n}\n\n.mj-form-variant-picker-trigger[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 240px;\n}\n\n.mj-form-variant-picker-trigger[_ngcontent-%COMP%] .chev[_ngcontent-%COMP%] {\n font-size: 10px;\n opacity: 0.7;\n}\n\n.mj-form-variant-picker-current-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 160px;\n font-size: 12px;\n font-weight: 500;\n}\n\n.mj-form-variant-picker-host.open[_ngcontent-%COMP%] .mj-form-variant-picker-trigger[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-form-variant-picker-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 50;\n min-width: 280px;\n max-height: 360px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n padding: 4px 0;\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n padding: 8px 12px;\n border: 0;\n background: none;\n font: inherit;\n text-align: left;\n cursor: pointer;\n color: var(--mj-text-primary);\n font-size: 13px;\n transition: background 120ms;\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-form-variant-picker-row[_ngcontent-%COMP%]:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-form-variant-picker-row.current[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-form-variant-picker-row.inactive[_ngcontent-%COMP%] {\n opacity: 0.6;\n}\n\n.mj-form-variant-picker-row-main[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-form-variant-picker-row-title[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.mj-form-variant-picker-row-sub[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.mj-form-variant-picker-default-tag[_ngcontent-%COMP%] {\n font-size: 10px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin-left: 4px;\n}\n\n.mj-form-variant-picker-default[_ngcontent-%COMP%] {\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-variant-picker-check[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n margin-top: 2px;\n}\n\n\n\n\n.mj-forms-menu-host[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n}\n\n.mj-forms-menu-host.open[_ngcontent-%COMP%] .mj-forms-menu-trigger[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-forms-menu[_ngcontent-%COMP%] {\n position: absolute;\n top: calc(100% + 4px);\n z-index: 50;\n min-width: 260px;\n max-height: 420px;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu--left[_ngcontent-%COMP%] { left: 0; }\n.mj-forms-menu--right[_ngcontent-%COMP%] { right: 0; }\n\n.mj-forms-menu-heading[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-2) var(--mj-space-1);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-menu-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-1);\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: 6px var(--mj-space-2);\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-primary);\n font: inherit;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:hover:not(:disabled), \n.mj-forms-menu-item[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-hover);\n outline: none;\n}\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.mj-forms-menu-item--danger[_ngcontent-%COMP%], \n.mj-forms-menu-item--danger[_ngcontent-%COMP%] .mj-forms-menu-icon[_ngcontent-%COMP%] {\n color: var(--mj-status-error);\n}\n\n.mj-forms-menu-icon[_ngcontent-%COMP%] {\n width: 18px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-menu-label[_ngcontent-%COMP%] {\n flex: 1;\n}\n\n.mj-forms-menu-badge[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: 600;\n padding: 0 6px;\n border-radius: 9px;\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%] {\n width: 26px;\n height: 26px;\n display: grid;\n place-items: center;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%]:hover:not(:disabled), \n.mj-forms-menu-pin[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-menu-pin.pinned[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n}\n\n\n.mj-forms-menu-pin.pinned.over-cap[_ngcontent-%COMP%] {\n outline: 1px dashed var(--mj-brand-primary);\n outline-offset: -3px;\n}\n\n.mj-forms-menu-pin[_ngcontent-%COMP%]:disabled, \n.mj-forms-menu-pin[aria-disabled=\"true\"][_ngcontent-%COMP%] {\n opacity: 0.35;\n cursor: default;\n}\n\n\n.mj-forms-menu-item[_ngcontent-%COMP%]:focus-visible, \n.mj-forms-menu-pin[_ngcontent-%COMP%]:focus-visible, \n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:focus-visible, \n.mj-entity-badge[_ngcontent-%COMP%]:focus-visible {\n box-shadow: var(--mj-focus-ring);\n}\n\n\n.mj-forms-variant-tag[_ngcontent-%COMP%] {\n max-width: 12rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 6px;\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-menu-sep[_ngcontent-%COMP%] {\n height: 1px;\n margin: var(--mj-space-1) var(--mj-space-1);\n background: var(--mj-border-default);\n}\n\n.mj-forms-menu-search[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu-search[_ngcontent-%COMP%] .mj-section-search[_ngcontent-%COMP%] {\n flex: 1;\n width: auto;\n max-width: none;\n}\n\n\n.mj-forms-hierarchy-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: var(--mj-space-2) 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n overflow-x: auto;\n}\n\n.mj-forms-filter-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n max-width: 220px;\n padding: 2px 4px 2px 10px;\n border: 1px solid var(--mj-border-focus);\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-text-primary);\n font-size: 12px;\n}\n\n.mj-forms-filter-chip-text[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-filter-chip-clear[_ngcontent-%COMP%] {\n display: grid;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 0;\n border-radius: var(--mj-radius-full);\n background: transparent;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:hover, \n.mj-forms-filter-chip-clear[_ngcontent-%COMP%]:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-toolbar__btn--active[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 14%, transparent);\n color: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n.mj-forms-edit-banner-conflicts[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-left: 10px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 18%, transparent);\n color: var(--mj-status-warning-text, #b45309);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 40%, transparent);\n}\n\n\n\n\n\n.mj-forms-toolbar-collapsed-pill[_ngcontent-%COMP%] {\n position: absolute;\n top: 10px;\n right: 16px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full, 9999px);\n box-shadow: var(--mj-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));\n padding: 2px;\n gap: 2px;\n}\n\n.mj-forms-collapsed-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n min-height: 28px;\n padding: 5px 10px;\n font-family: inherit;\n font-size: 12.5px;\n font-weight: var(--mj-font-semibold, 600);\n line-height: 1;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-radius: var(--mj-radius-full, 9999px);\n cursor: pointer;\n transition: background var(--mj-transition-base, 150ms) ease, color var(--mj-transition-base, 150ms) ease;\n white-space: nowrap;\n}\n\n.mj-forms-collapsed-btn[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-forms-collapsed-btn[_ngcontent-%COMP%]:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-forms-collapsed-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-collapsed-btn--edit[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n padding: 5px 12px;\n}\n\n.mj-forms-collapsed-btn--edit[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n}\n\n.mj-forms-collapsed-btn--edit[_ngcontent-%COMP%] + .mj-forms-collapsed-btn--expand[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.mj-forms-collapsed-btn--edit[_ngcontent-%COMP%] + .mj-forms-collapsed-btn--expand[_ngcontent-%COMP%]::before {\n content: '';\n position: absolute;\n left: -2px;\n top: 6px;\n bottom: 6px;\n width: 1px;\n background: var(--mj-border-default);\n}\n\n\n\n\n@media (max-width: 768px) {\n \n\n .mj-forms-toolbar-collapsed-pill[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n right: auto;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 100%;\n height: 40px;\n box-sizing: border-box;\n padding: 0 12px;\n gap: 2px;\n border-radius: 0;\n border-top: none;\n border-left: none;\n border-right: none;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n box-shadow: none;\n }\n\n \n .mj-forms-toolbar-collapsed-pill.mj-forms-toolbar-collapsed-pill--rail[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n right: 0;\n width: auto;\n height: 44px;\n padding: 0 8px;\n border-left: 1px solid var(--mj-border-default);\n box-shadow: -6px 0 10px -6px rgba(0, 0, 0, 0.08);\n }\n\n .mj-forms-collapsed-btn[_ngcontent-%COMP%] {\n height: 34px;\n min-height: 34px;\n padding: 0 10px;\n font-size: 12.5px;\n }\n\n .mj-forms-collapsed-btn--edit[_ngcontent-%COMP%] {\n padding: 0 11px;\n }\n\n .mj-forms-toolbar[_ngcontent-%COMP%] {\n padding: 8px 12px;\n gap: 6px;\n flex-wrap: wrap;\n overflow: visible;\n }\n\n .mj-forms-toolbar[_ngcontent-%COMP%] .mj-forms-btn[_ngcontent-%COMP%] {\n padding: 6px 10px;\n font-size: 12.5px;\n }\n\n .mj-forms-edit-banner[_ngcontent-%COMP%] {\n padding: 8px 12px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n\n \n .mj-forms-edit-banner-record-name[_ngcontent-%COMP%], \n .mj-forms-dirty-chips[_ngcontent-%COMP%] {\n display: none;\n }\n\n \n\n .mj-forms-menu--sheet[_ngcontent-%COMP%] {\n position: static;\n min-width: 0;\n max-height: none;\n overflow: visible;\n padding: 0 var(--mj-space-2) var(--mj-space-3);\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n\n .mj-forms-menu--sheet[_ngcontent-%COMP%] .mj-forms-menu-item[_ngcontent-%COMP%], \n .mj-forms-menu--sheet[_ngcontent-%COMP%] .mj-form-variant-picker-row[_ngcontent-%COMP%] {\n min-height: 44px;\n }\n\n .mj-forms-menu--sheet[_ngcontent-%COMP%] .mj-section-search[_ngcontent-%COMP%] {\n max-width: none;\n width: 100%;\n }\n}"], changeDetection: 0 });
|
|
2349
2853
|
}
|
|
2350
2854
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjFormToolbarComponent, [{
|
|
2351
2855
|
type: Component,
|
|
2352
|
-
args: [{ standalone: false, selector: 'mj-form-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- ============================================\n EDIT MODE BANNER (shows above toolbar when editing)\n ============================================ -->\n@if (EditMode && Config.ShowEditBanner) {\n <div class=\"mj-forms-edit-banner\">\n @if (DirtyFieldDisplayNames.length > 0) {\n <i class=\"fa-solid fa-circle-exclamation mj-forms-edit-banner-icon--dirty\"></i>\n <span class=\"mj-forms-edit-banner-dirty\">\n <strong>{{ DirtyFieldDisplayNames.length }}</strong>\n field{{ DirtyFieldDisplayNames.length === 1 ? '' : 's' }} modified\n — {{ DirtyFieldDisplayNames.join(', ') }}\n </span>\n } @else {\n <i class=\"fa-solid fa-pen-to-square\"></i>\n <span class=\"mj-forms-edit-banner-text\">Editing: {{ RecordDisplayName }}</span>\n }\n @if (EffectiveConflictCount > 0) {\n <span class=\"mj-forms-edit-banner-conflicts\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ EffectiveConflictCount }} {{ EffectiveConflictCount === 1 ? 'conflict needs' : 'conflicts need' }} review</span>\n </span>\n }\n <div class=\"mj-forms-toolbar-spacer\"></div>\n <div class=\"mj-forms-edit-banner-actions\">\n @for (item of ResolvedEditBeforeSaveItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading || IsSaving\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n <button class=\"mj-forms-btn mj-forms-btn--primary\" (click)=\"OnSave()\" [disabled]=\"IsSaving\" title=\"Save Changes\">\n <i class=\"fa-solid fa-floppy-disk\"></i>\n <span class=\"mj-forms-btn-text\">Save Changes</span>\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnCancel()\" [disabled]=\"IsSaving\" title=\"Discard Changes\">\n <i class=\"fa-solid fa-rotate-left\"></i>\n <span class=\"mj-forms-btn-text\">Discard</span>\n </button>\n @for (item of ResolvedEditAfterSaveItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading || IsSaving\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n </div>\n </div>\n}\n\n<!-- ============================================\n MAIN TOOLBAR (read mode only \u2014 hidden in edit mode)\n Inline actions (Edit + custom items), the user's pinned actions,\n a More menu for everything else, and a View menu for section and\n layout controls. Pins are per user (UserInfoEngine); until a user\n chooses, the configured defaults (Favorite and History) are pinned.\n ============================================ -->\n@if (!EditMode) {\n <div class=\"mj-forms-toolbar\" [class.mj-forms-toolbar--sticky]=\"Config.StickyToolbar\">\n\n <div class=\"mj-forms-toolbar-group\">\n @for (item of InlineActionItems; track item.Key) {\n <ng-container [ngTemplateOutlet]=\"actionButtonTpl\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n }\n @for (item of PinnedActionItems; track item.Key) {\n <ng-container [ngTemplateOutlet]=\"actionButtonTpl\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n }\n\n @if (ShowMoreMenu) {\n <div class=\"mj-forms-menu-host\" [class.open]=\"MoreMenuOpen\">\n <button class=\"mj-forms-btn mj-forms-menu-trigger\" type=\"button\" data-menu-trigger=\"more\"\n [attr.aria-expanded]=\"MoreMenuOpen\" [attr.aria-controls]=\"MenuIdPrefix + '-more'\"\n title=\"More actions\" (click)=\"ToggleMoreMenu()\">\n <i class=\"fa-solid fa-ellipsis\"></i>\n <span class=\"mj-forms-btn-text\">More</span>\n </button>\n @if (MoreMenuOpen) {\n <div class=\"mj-forms-menu mj-forms-menu--left\" [id]=\"MenuIdPrefix + '-more'\" role=\"group\" aria-label=\"More actions\">\n @for (item of MoreMenuItems; track item.Key) {\n <div class=\"mj-forms-menu-row\" [class.disabled]=\"item.Disabled\">\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [class.mj-forms-btn--links]=\"item.Key === 'links'\"\n [class.mj-forms-btn--ask-ai]=\"item.Key === 'ask-ai'\"\n [class.mj-forms-toolbar__btn--active]=\"item.Key === 'links' && LinksOpen\"\n [disabled]=\"item.Disabled || item.IsLoading\" [title]=\"item.Description\"\n (click)=\"OnMenuItemClick(item, $event)\">\n <span class=\"mj-forms-menu-icon\">\n @if (item.IsLoading) { <i class=\"fa-solid fa-spinner fa-spin\"></i> } @else if (item.Icon) { <i [class]=\"item.Icon\"></i> }\n </span>\n <span class=\"mj-forms-menu-label\">{{ item.MenuLabel }}</span>\n @if (item.Badge != null) { <span class=\"mj-forms-menu-badge\">{{ item.Badge }}</span> }\n </button>\n <!-- aria-disabled, not disabled: at the cap the button stays reachable, so its hint can be read. -->\n <button class=\"mj-forms-menu-pin\" type=\"button\"\n [class.pinned]=\"IsPinned(item.Key)\"\n [class.over-cap]=\"IsPinnedOverCap(item.Key)\"\n [attr.aria-disabled]=\"!IsPinned(item.Key) && !CanPinMore ? 'true' : null\"\n [attr.aria-pressed]=\"IsPinned(item.Key)\"\n [attr.aria-label]=\"'Pin ' + item.MenuLabel\"\n [title]=\"IsPinnedOverCap(item.Key) ? 'Pinned, but the toolbar is full (' + MaxPinnedActions + ' max): unpin another to show it, or click to unpin' : IsPinned(item.Key) ? 'Unpin from toolbar' : (CanPinMore ? 'Pin to toolbar' : 'Unpin another action first (' + MaxPinnedActions + ' max)')\"\n (click)=\"TogglePin(item.Key)\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n </div>\n }\n @if (DeleteMenuItem; as del) {\n @if (MoreMenuItems.length > 0) { <div class=\"mj-forms-menu-sep\"></div> }\n <button class=\"mj-forms-menu-item mj-forms-menu-item--danger\" type=\"button\"\n [disabled]=\"del.Disabled\" [title]=\"del.Description\" (click)=\"OnMenuItemClick(del, $event)\">\n <span class=\"mj-forms-menu-icon\"><i [class]=\"del.Icon\"></i></span>\n <span class=\"mj-forms-menu-label\">{{ del.MenuLabel }}</span>\n </button>\n }\n </div>\n }\n </div>\n }\n </div>\n\n <!-- Spacer pushes the View menu to the right -->\n <div class=\"mj-forms-toolbar-spacer\"></div>\n\n <!-- An active section filter stays visible after the View menu closes -->\n @if (SearchFilter && !ViewMenuOpen) {\n <span class=\"mj-forms-filter-chip\" title=\"Sections are filtered\">\n <i class=\"fa-solid fa-filter\"></i>\n <span class=\"mj-forms-filter-chip-text\">{{ SearchFilter }}</span>\n <button type=\"button\" class=\"mj-forms-filter-chip-clear\" (click)=\"OnClearFilter()\" aria-label=\"Clear section filter\" title=\"Clear section filter\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </span>\n }\n\n <!--\n Right-placed registered items. They sit with the View menu rather than with the record\n actions: an item placed here acts on the form's chrome, not on the record. Items\n registered for the overflow group land here too \u2014 the More menu lists only `actions`\n items, and an item that renders nowhere is worse than one in the wrong group.\n -->\n @if (ResolvedRightItems.length > 0) {\n <div class=\"mj-forms-toolbar-group\">\n @for (item of ResolvedRightItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n </div>\n }\n\n @if (ShowViewMenu) {\n <div class=\"mj-forms-menu-host\" [class.open]=\"ViewMenuOpen\">\n <button class=\"mj-forms-btn mj-forms-menu-trigger\" type=\"button\" data-menu-trigger=\"view\"\n [attr.aria-expanded]=\"ViewMenuOpen\" [attr.aria-controls]=\"MenuIdPrefix + '-view'\"\n [title]=\"CurrentVariantID ? 'Sections and layout (form: ' + CurrentVariantLabel + ')' : 'Sections and layout'\"\n (click)=\"ToggleViewMenu()\">\n <i class=\"fa-solid fa-sliders\"></i>\n <span class=\"mj-forms-btn-text\">View</span>\n <!-- A non-default form variant stays visible while the panel is closed. -->\n @if (CurrentVariantID) {\n <span class=\"mj-forms-variant-tag\">{{ CurrentVariantLabel }}</span>\n }\n </button>\n @if (ViewMenuOpen) {\n <div class=\"mj-forms-menu mj-forms-menu--right\" [id]=\"MenuIdPrefix + '-view'\" role=\"group\" aria-label=\"Sections and layout\">\n @if (Config.ShowSectionControls) {\n @if (Config.ShowSectionFilter) {\n <div class=\"mj-forms-menu-search\">\n <input type=\"text\"\n class=\"mj-section-search\"\n [class.mj-section-search--active]=\"SearchFilter\"\n [value]=\"SearchFilter\"\n (input)=\"OnFilterInput($event)\"\n placeholder=\"Search sections...\"\n aria-label=\"Search sections\">\n @if (SearchFilter) {\n <button class=\"mj-clear-search\" type=\"button\" (click)=\"OnClearFilter()\" aria-label=\"Clear section search\" title=\"Clear search\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n @if (ShowExpandCollapseAll || HasCustomSectionOrder || Config.ShowSectionManager) {\n <div class=\"mj-forms-menu-heading\">Sections</div>\n }\n @if (ShowExpandCollapseAll) {\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [disabled]=\"ExpandedSectionCount >= VisibleSectionCount\" title=\"Expand all sections\" (click)=\"OnExpandAll()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-angles-down\"></i></span>\n <span class=\"mj-forms-menu-label\">Expand all</span>\n </button>\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [disabled]=\"ExpandedSectionCount === 0\" title=\"Collapse all sections\" (click)=\"OnCollapseAll()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-angles-up\"></i></span>\n <span class=\"mj-forms-menu-label\">Collapse all</span>\n </button>\n }\n @if (Config.ShowSectionManager) {\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnReorderSectionsFromView()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-bars-staggered\"></i></span>\n <span class=\"mj-forms-menu-label\">Reorder sections</span>\n </button>\n }\n @if (HasCustomSectionOrder) {\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnResetSectionOrder()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-arrow-rotate-left\"></i></span>\n <span class=\"mj-forms-menu-label\">Reset section order</span>\n </button>\n }\n @if (Config.ShowWidthToggle) {\n <div class=\"mj-forms-menu-heading\">Layout</div>\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnToggleWidthMode()\">\n <span class=\"mj-forms-menu-icon\">\n <i [class]=\"WidthMode === 'centered' ? 'fa-solid fa-arrows-left-right-to-line' : 'fa-solid fa-compress'\"></i>\n </span>\n <span class=\"mj-forms-menu-label\">{{ WidthMode === 'centered' ? 'Use full width' : 'Center content' }}</span>\n </button>\n }\n }\n @if (ShowVariantPickerButton) {\n <div class=\"mj-forms-menu-heading\">Form</div>\n <button type=\"button\" class=\"mj-form-variant-picker-row mj-form-variant-picker-default\"\n [class.current]=\"!CurrentVariantID\" [attr.aria-pressed]=\"!CurrentVariantID\"\n (click)=\"OnVariantClick(null)\">\n <div class=\"mj-form-variant-picker-row-main\">\n <span class=\"mj-form-variant-picker-row-title\">\n Default form <span class=\"mj-form-variant-picker-default-tag\">(default)</span>\n </span>\n <span class=\"mj-form-variant-picker-row-sub\">CodeGen-generated Angular fallback</span>\n </div>\n @if (!CurrentVariantID) {\n <i class=\"fa-solid fa-check mj-form-variant-picker-check\"></i>\n }\n </button>\n @for (v of Variants; track v.ID) {\n <button type=\"button\" class=\"mj-form-variant-picker-row\"\n [class.current]=\"v.ID === CurrentVariantID\" [attr.aria-pressed]=\"v.ID === CurrentVariantID\"\n [class.inactive]=\"v.Status !== 'Active'\"\n (click)=\"OnVariantClick(v.ID)\">\n <div class=\"mj-form-variant-picker-row-main\">\n <span class=\"mj-form-variant-picker-row-title\">{{ v.Label }}</span>\n <span class=\"mj-form-variant-picker-row-sub\">{{ VariantSubtitle(v) }}</span>\n </div>\n @if (v.ID === CurrentVariantID) {\n <i class=\"fa-solid fa-check mj-form-variant-picker-check\"></i>\n }\n </button>\n }\n }\n </div>\n }\n </div>\n }\n\n <!-- Additional actions slot -->\n @if (AdditionalActionsTemplate) {\n <ng-container [ngTemplateOutlet]=\"AdditionalActionsTemplate\"></ng-container>\n }\n <ng-content select=\"[toolbar-additional-controls]\"></ng-content>\n </div>\n\n <!-- IS-A Entity Hierarchy Breadcrumb: its own row, only for entities in a hierarchy -->\n @if (Config.ShowEntityHierarchy && IsInHierarchy) {\n <div class=\"mj-forms-hierarchy-row\">\n <div class=\"mj-entity-hierarchy\">\n @for (parent of ParentChain; track parent.ID) {\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--parent\"\n [title]=\"'Navigate to parent: ' + parent.Name\"\n (click)=\"OnParentBadgeClick(parent, $event)\">\n <i class=\"fa-solid fa-arrow-up\"></i>\n {{ parent.Name }}\n </button>\n <span class=\"mj-hierarchy-arrow\"><i class=\"fa-solid fa-chevron-right\"></i></span>\n }\n <span class=\"mj-entity-badge mj-entity-badge--current\">{{ EntityInfo?.Name }}</span>\n @if (DescendantTree.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: DescendantTree }\"></ng-container>\n }\n </div>\n </div>\n }\n}\n\n<!-- One read-mode action button (inline or pinned) -->\n<ng-template #actionButtonTpl let-item=\"item\">\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class.mj-forms-btn--history]=\"item.Key === 'history'\"\n [class.mj-forms-btn--list]=\"item.Key === 'list'\"\n [class.mj-forms-btn--tags]=\"item.Key === 'tags'\"\n [class.mj-forms-btn--links]=\"item.Key === 'links'\"\n [class.mj-forms-btn--ask-ai]=\"item.Key === 'ask-ai'\"\n [class.mj-forms-toolbar__btn--active]=\"item.Key === 'links' && LinksOpen\"\n [class.mj-forms-btn--attachments]=\"item.Key === 'attachments'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading\"\n [title]=\"item.Description\"\n [attr.aria-label]=\"item.Text ? null : (item.Description || item.MenuLabel)\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span [class]=\"item.Key === 'history' ? 'mj-version-count-badge' : 'mj-list-count-badge'\">{{ item.Badge }}</span>\n }\n </button>\n</ng-template>\n\n<!-- ============================================\n RECORD CLONE SLIDE-IN (ng-record-clone)\n Created only when the Clone action is available; navigation it\n requests leaves through this toolbar's Navigate output.\n ============================================ -->\n@if (ShowCloneAction) {\n <mj-record-clone-slide-in\n [Provider]=\"Provider\"\n [Record]=\"Record\"\n [Visible]=\"IsClonePanelOpen\"\n (VisibleChange)=\"OnClonePanelVisibleChange($event)\"\n (CloneCompleted)=\"OnCloneCompleted($event)\"\n (NavigateToRecord)=\"OnCloneNavigate($event)\">\n </mj-record-clone-slide-in>\n}\n\n<!-- ============================================\n DISCARD CHANGES CONFIRMATION DIALOG\n ============================================ -->\n@if (ShowDiscardDialog) {\n <div class=\"mj-dialog-overlay\" (click)=\"OnDiscardCancel()\">\n <div class=\"mj-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"mj-dialog-header\">\n <h3>Discard Changes?</h3>\n <button class=\"mj-dialog-close\" (click)=\"OnDiscardCancel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"mj-dialog-body\">\n <p>You have <strong>{{ DirtyFieldDisplayNames.length }}</strong> unsaved change{{ DirtyFieldDisplayNames.length === 1 ? '' : 's' }}. Are you sure you want to discard {{ DirtyFieldDisplayNames.length === 1 ? 'it' : 'them' }}?</p>\n </div>\n <div class=\"mj-dialog-footer\">\n <button class=\"mj-forms-btn mj-forms-btn--danger\" (click)=\"OnDiscardConfirm()\">\n <i class=\"fa-solid fa-rotate-left\"></i>\n Discard Changes\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnDiscardCancel()\">\n Keep Editing\n </button>\n </div>\n </div>\n </div>\n}\n\n<!-- ============================================\n DELETE CONFIRMATION DIALOG\n ============================================ -->\n@if (ShowDeleteDialog) {\n <div class=\"mj-dialog-overlay\" (click)=\"OnDeleteCancel()\">\n <div class=\"mj-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"mj-dialog-header\">\n <h3>Confirm Deletion</h3>\n <button class=\"mj-dialog-close\" (click)=\"OnDeleteCancel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"mj-dialog-body\">\n <p>Are you sure you want to delete this record? This action cannot be undone.</p>\n </div>\n <div class=\"mj-dialog-footer\">\n <button class=\"mj-forms-btn mj-forms-btn--danger\" (click)=\"OnDeleteConfirm()\">\n <i class=\"fa-solid fa-trash-can\"></i>\n Delete\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnDeleteCancel()\">\n Cancel\n </button>\n </div>\n </div>\n </div>\n}\n\n<!-- Recursive template for IS-A descendant tree rendering.\n Single child at a level \u2192 inline with chevron.\n Multiple children at a level \u2192 tree branch with CSS connector lines. -->\n<ng-template #descendantTreeTpl let-items=\"items\">\n @if (items.length === 1) {\n <span class=\"mj-hierarchy-arrow\"><i class=\"fa-solid fa-chevron-right\"></i></span>\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--child\"\n [title]=\"'Navigate to: ' + items[0].EntityName\"\n (click)=\"OnDescendantBadgeClick(items[0].EntityName, $event)\">\n <i class=\"fa-solid fa-arrow-down\"></i>\n {{ items[0].EntityName }}\n </button>\n @if (items[0].Children.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: items[0].Children }\"></ng-container>\n }\n } @else if (items.length > 1) {\n <div class=\"mj-descendant-chains\">\n @for (item of items; track item.EntityName) {\n <div class=\"mj-descendant-chain\">\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--child\"\n [title]=\"'Navigate to: ' + item.EntityName\"\n (click)=\"OnDescendantBadgeClick(item.EntityName, $event)\">\n <i class=\"fa-solid fa-arrow-down\"></i>\n {{ item.EntityName }}\n </button>\n @if (item.Children.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: item.Children }\"></ng-container>\n }\n </div>\n }\n </div>\n }\n</ng-template>\n", styles: ["/* ============================================\n FORM TOOLBAR \u2014 uses global --mj-* design tokens\n ============================================ */\n:host {\n display: block;\n}\n\n/* ============================================\n EDIT BANNER\n ============================================ */\n.mj-forms-edit-banner {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 16px 16px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-bottom: 2px solid var(--mj-brand-primary);\n font-size: 13px;\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-edit-banner > i {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-icon--dirty {\n color: var(--mj-status-warning);\n font-size: var(--mj-text-base);\n}\n\n.mj-forms-edit-banner-text {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-dirty {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-edit-banner-dirty strong {\n color: var(--mj-status-warning);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-forms-edit-banner-actions {\n display: flex;\n gap: 8px;\n}\n\n/* ============================================\n MAIN TOOLBAR\n ============================================ */\n.mj-forms-toolbar {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 22px 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 2px solid var(--mj-border-default);\n flex-wrap: wrap;\n z-index: 40;\n}\n\n.mj-forms-toolbar--sticky {\n position: sticky;\n top: 0;\n}\n\n.mj-forms-toolbar--disabled {\n pointer-events: none;\n opacity: 0.7;\n}\n\n.mj-forms-toolbar-group {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-toolbar-separator {\n width: 1px;\n height: 24px;\n background: var(--mj-border-default);\n margin: 0 4px;\n}\n\n.mj-forms-toolbar-spacer {\n flex: 1;\n}\n\n/* ============================================\n BUTTONS\n ============================================ */\n.mj-forms-btn {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n font-size: 13px;\n font-weight: var(--mj-font-medium);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n white-space: nowrap;\n font-family: inherit;\n line-height: 1;\n}\n\n.mj-forms-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n box-shadow: var(--mj-shadow-sm);\n}\n\n.mj-forms-btn:active {\n transform: translateY(0);\n box-shadow: none;\n}\n\n.mj-forms-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-btn i {\n font-size: 15px;\n line-height: 1;\n}\n\n.mj-forms-btn--primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--primary:hover {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n}\n\n.mj-forms-btn--secondary {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n.mj-forms-btn--secondary:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--accent {\n background: var(--mj-brand-accent, #6366f1);\n color: var(--mj-text-inverse, #ffffff);\n border-color: var(--mj-brand-accent, #6366f1);\n}\n\n.mj-forms-btn--accent:hover {\n filter: brightness(1.1);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-accent, #6366f1) 30%, transparent);\n}\n\n.mj-forms-btn--danger {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, transparent);\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n}\n\n.mj-forms-btn--danger:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, var(--mj-bg-surface));\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-btn--ghost {\n border-color: transparent;\n background: transparent;\n}\n\n.mj-forms-btn--ghost:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-color: transparent;\n}\n\n.mj-forms-btn--icon-only {\n padding: 7px 9px;\n}\n\n.mj-forms-btn--sm {\n padding: 5px 12px;\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn--sm i {\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn-text {\n margin-left: 2px;\n}\n\n.mj-icon--favorite {\n color: var(--mj-status-warning);\n}\n\n/* List button with count badge */\n.mj-forms-btn--list {\n position: relative;\n}\n\n/* History button with version badge */\n.mj-forms-btn--history {\n position: relative;\n}\n\n.mj-version-count-badge {\n position: absolute;\n top: -6px;\n right: -10px;\n padding: 0 5px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-success) 0%, color-mix(in srgb, var(--mj-status-success) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n height: 16px;\n border: 2px solid var(--mj-bg-surface-card);\n white-space: nowrap;\n line-height: 1;\n}\n\n.mj-list-count-badge {\n position: absolute;\n top: -6px;\n right: -6px;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-info) 0%, color-mix(in srgb, var(--mj-status-info) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--mj-bg-surface-card);\n}\n\n/* ============================================\n IS-A ENTITY HIERARCHY\n ============================================ */\n.mj-entity-hierarchy {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mj-entity-badge {\n /* A button now (keyboard-reachable); keep the badge look. */\n font-family: inherit;\n line-height: inherit;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n text-decoration: none;\n border: 1px solid transparent;\n}\n\n.mj-entity-badge i {\n font-size: 11px;\n}\n\n.mj-entity-badge--parent {\n background: color-mix(in srgb, var(--mj-brand-accent) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-accent);\n border-color: color-mix(in srgb, var(--mj-brand-accent) 25%, transparent);\n}\n\n.mj-entity-badge--parent:hover {\n background: color-mix(in srgb, var(--mj-brand-accent) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-accent);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-brand-accent) 15%, transparent);\n}\n\n.mj-entity-badge--current {\n font-weight: var(--mj-font-semibold);\n font-size: 13px;\n color: var(--mj-text-primary);\n padding: 4px 8px;\n background: var(--mj-bg-surface-hover);\n border-radius: var(--mj-radius-sm);\n cursor: default;\n}\n\n.mj-entity-badge--child {\n background: color-mix(in srgb, var(--mj-status-info) 10%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border-color: color-mix(in srgb, var(--mj-status-info) 25%, transparent);\n}\n\n.mj-entity-badge--child:hover {\n background: color-mix(in srgb, var(--mj-status-info) 18%, var(--mj-bg-surface));\n border-color: var(--mj-status-info);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-info) 15%, transparent);\n}\n\n.mj-entity-badge--overlapping {\n background: color-mix(in srgb, var(--mj-status-warning) 10%, var(--mj-bg-surface));\n color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n border-color: color-mix(in srgb, var(--mj-status-warning) 40%, transparent);\n}\n\n.mj-entity-badge--overlapping:hover {\n background: color-mix(in srgb, var(--mj-status-warning) 18%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-warning) 15%, transparent);\n}\n\n.mj-entity-badge-group {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex-wrap: wrap;\n}\n\n.mj-child-count {\n background: var(--mj-status-info);\n color: var(--mj-text-inverse);\n font-size: 10px;\n padding: 1px 5px;\n border-radius: var(--mj-radius-full);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-entity-badge--leaf {\n border-style: dashed;\n}\n\n.mj-entity-badge--root {\n border-style: dashed;\n}\n\n.mj-hierarchy-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n}\n\n/* Descendant chain tree (connecting lines when multiple chains branch) */\n.mj-descendant-chains {\n display: flex;\n flex-direction: column;\n gap: 6px;\n position: relative;\n padding-left: 20px;\n}\n\n/* Horizontal connector from parent entity badge to tree trunk */\n.mj-descendant-chains::before {\n content: '';\n position: absolute;\n left: -4px;\n top: 50%;\n width: 4px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n.mj-descendant-chain {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n padding: 2px 0;\n}\n\n/* Horizontal branch line from trunk to chain content */\n.mj-descendant-chain::before {\n content: '';\n position: absolute;\n left: -20px;\n top: 50%;\n width: 18px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n/* Vertical trunk segment (each chain draws its portion) */\n.mj-descendant-chain::after {\n content: '';\n position: absolute;\n left: -20px;\n top: 0;\n bottom: 0;\n border-left: 1.5px solid var(--mj-text-muted);\n}\n\n/* First chain: trunk starts from center */\n.mj-descendant-chain:first-child::after {\n top: 50%;\n}\n\n/* Last chain: trunk ends at center */\n.mj-descendant-chain:last-child::after {\n bottom: 50%;\n}\n\n/* (dirty summary removed \u2014 now inline in edit banner) */\n\n/* ============================================\n SECTION CONTROLS\n ============================================ */\n.mj-section-controls {\n gap: 6px;\n}\n\n.mj-forms-search-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.mj-section-search {\n max-width: 180px;\n font-size: 13px;\n padding: 6px 28px 6px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n outline: none;\n font-family: inherit;\n transition: all var(--mj-transition-base);\n}\n\n.mj-section-search:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n/* Active filter highlight \u2014 matches the yellow used on matched panel/field names */\n.mj-section-search--active {\n background-color: color-mix(in srgb, var(--mj-status-warning) 40%, var(--mj-bg-surface));\n border-color: var(--mj-status-warning);\n color: color-mix(in srgb, var(--mj-status-warning) 80%, black);\n font-weight: var(--mj-font-semibold);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-status-warning) 25%, transparent);\n}\n\n.mj-section-search::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-clear-search {\n position: absolute;\n right: 4px;\n padding: 4px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: var(--mj-text-xs);\n line-height: 1;\n}\n\n.mj-clear-search:hover {\n color: var(--mj-text-secondary);\n}\n\n/* ============================================\n DIALOG (lightweight inline)\n ============================================ */\n.mj-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n animation: mj-fade-in 150ms ease;\n}\n\n.mj-dialog {\n background: var(--mj-bg-surface-card);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-lg);\n min-width: 400px;\n max-width: 550px;\n animation: mj-slide-up 200ms ease;\n}\n\n.mj-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mj-dialog-header h3 {\n margin: 0;\n font-size: var(--mj-text-base);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-dialog-close {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n font-size: var(--mj-text-base);\n transition: color var(--mj-transition-base);\n}\n\n.mj-dialog-close:hover {\n color: var(--mj-text-primary);\n}\n\n.mj-dialog-body {\n padding: 20px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n}\n\n.mj-dialog-body p {\n margin: 0;\n}\n\n.mj-dialog-footer {\n display: flex;\n gap: 8px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n}\n\n@keyframes mj-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes mj-slide-up {\n from { transform: translateY(8px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n}\n\n/* ============================================================ */\n/* FORM-VARIANT PICKER (toolbar-embedded; right-side) */\n/* ============================================================ */\n\n.mj-form-variant-picker-host {\n position: relative;\n display: inline-flex;\n}\n\n.mj-form-variant-picker-trigger {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 240px;\n}\n\n.mj-form-variant-picker-trigger .chev {\n font-size: 10px;\n opacity: 0.7;\n}\n\n.mj-form-variant-picker-current-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 160px;\n font-size: 12px;\n font-weight: 500;\n}\n\n.mj-form-variant-picker-host.open .mj-form-variant-picker-trigger {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 50;\n min-width: 280px;\n max-height: 360px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n padding: 4px 0;\n}\n\n.mj-form-variant-picker-row {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n padding: 8px 12px;\n border: 0;\n background: none;\n font: inherit;\n text-align: left;\n cursor: pointer;\n color: var(--mj-text-primary);\n font-size: 13px;\n transition: background 120ms;\n}\n\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-form-variant-picker-row:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-form-variant-picker-row.inactive {\n opacity: 0.6;\n}\n\n.mj-form-variant-picker-row-main {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-form-variant-picker-row-title {\n font-weight: 600;\n}\n\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.mj-form-variant-picker-default-tag {\n font-size: 10px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin-left: 4px;\n}\n\n.mj-form-variant-picker-default {\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n margin-top: 2px;\n}\n\n/* ============================================\n MORE / VIEW MENUS\n ============================================ */\n.mj-forms-menu-host {\n position: relative;\n display: inline-flex;\n}\n\n.mj-forms-menu-host.open .mj-forms-menu-trigger {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-forms-menu {\n position: absolute;\n top: calc(100% + 4px);\n z-index: 50;\n min-width: 260px;\n max-height: 420px;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu--left { left: 0; }\n.mj-forms-menu--right { right: 0; }\n\n.mj-forms-menu-heading {\n padding: var(--mj-space-2) var(--mj-space-2) var(--mj-space-1);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-menu-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-1);\n}\n\n.mj-forms-menu-item {\n flex: 1;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: 6px var(--mj-space-2);\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-primary);\n font: inherit;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-menu-item:hover:not(:disabled),\n.mj-forms-menu-item:focus-visible {\n background: var(--mj-bg-surface-hover);\n outline: none;\n}\n\n.mj-forms-menu-item:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.mj-forms-menu-item--danger,\n.mj-forms-menu-item--danger .mj-forms-menu-icon {\n color: var(--mj-status-error);\n}\n\n.mj-forms-menu-icon {\n width: 18px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-menu-label {\n flex: 1;\n}\n\n.mj-forms-menu-badge {\n font-size: 11px;\n font-weight: 600;\n padding: 0 6px;\n border-radius: 9px;\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-menu-pin {\n width: 26px;\n height: 26px;\n display: grid;\n place-items: center;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-menu-pin:hover:not(:disabled),\n.mj-forms-menu-pin:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-menu-pin.pinned {\n color: var(--mj-brand-primary);\n}\n\n/* Pinned, but past the cap on this form: dashed, so it reads as waiting for a free slot. */\n.mj-forms-menu-pin.pinned.over-cap {\n outline: 1px dashed var(--mj-brand-primary);\n outline-offset: -3px;\n}\n\n.mj-forms-menu-pin:disabled,\n.mj-forms-menu-pin[aria-disabled=\"true\"] {\n opacity: 0.35;\n cursor: default;\n}\n\n/* Keyboard focus is a ring, not just the hover tint, on every panel control. */\n.mj-forms-menu-item:focus-visible,\n.mj-forms-menu-pin:focus-visible,\n.mj-forms-filter-chip-clear:focus-visible,\n.mj-entity-badge:focus-visible {\n box-shadow: var(--mj-focus-ring);\n}\n\n/* The active form variant, on the View button, when it isn't the default form. */\n.mj-forms-variant-tag {\n max-width: 12rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 6px;\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-menu-sep {\n height: 1px;\n margin: var(--mj-space-1) var(--mj-space-1);\n background: var(--mj-border-default);\n}\n\n.mj-forms-menu-search {\n position: relative;\n display: flex;\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu-search .mj-section-search {\n flex: 1;\n width: auto;\n max-width: none;\n}\n\n/* IS-A hierarchy breadcrumb row below the toolbar */\n.mj-forms-hierarchy-row {\n display: flex;\n align-items: center;\n padding: var(--mj-space-2) 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n overflow-x: auto;\n}\n\n.mj-forms-filter-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n max-width: 220px;\n padding: 2px 4px 2px 10px;\n border: 1px solid var(--mj-border-focus);\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-text-primary);\n font-size: 12px;\n}\n\n.mj-forms-filter-chip-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-filter-chip-clear {\n display: grid;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 0;\n border-radius: var(--mj-radius-full);\n background: transparent;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-forms-filter-chip-clear:hover,\n.mj-forms-filter-chip-clear:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-toolbar__btn--active {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 14%, transparent);\n color: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n.mj-forms-edit-banner-conflicts {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-left: 10px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 18%, transparent);\n color: var(--mj-status-warning-text, #b45309);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 40%, transparent);\n}\n\n"] }]
|
|
2856
|
+
args: [{ standalone: false, selector: 'mj-form-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- ============================================\n EDIT MODE BANNER (shows above toolbar when editing)\n ============================================ -->\n@if (EditMode && Config.ShowEditBanner) {\n <div class=\"mj-forms-edit-banner\">\n @if (DirtyFieldDisplayNames.length > 0) {\n <i class=\"fa-solid fa-circle-exclamation mj-forms-edit-banner-icon--dirty\"></i>\n <span class=\"mj-forms-edit-banner-dirty\">\n <strong>{{ DirtyFieldDisplayNames.length }}</strong>\n field{{ DirtyFieldDisplayNames.length === 1 ? '' : 's' }} modified\n <span class=\"mj-forms-dirty-chips\">— {{ DirtyFieldDisplayNames.join(', ') }}</span>\n </span>\n } @else {\n <i class=\"fa-solid fa-pen-to-square\"></i>\n <span class=\"mj-forms-edit-banner-text\">Editing<span class=\"mj-forms-edit-banner-record-name\">: {{ RecordDisplayName }}</span></span>\n }\n @if (EffectiveConflictCount > 0) {\n <span class=\"mj-forms-edit-banner-conflicts\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ EffectiveConflictCount }} {{ EffectiveConflictCount === 1 ? 'conflict needs' : 'conflicts need' }} review</span>\n </span>\n }\n <div class=\"mj-forms-toolbar-spacer\"></div>\n <div class=\"mj-forms-edit-banner-actions\">\n @for (item of ResolvedEditBeforeSaveItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading || IsSaving\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n <button class=\"mj-forms-btn mj-forms-btn--primary\" (click)=\"OnSave()\" [disabled]=\"IsSaving\" title=\"Save Changes\">\n <i class=\"fa-solid fa-floppy-disk\"></i>\n <span class=\"mj-forms-btn-text\">Save Changes</span>\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnCancel()\" [disabled]=\"IsSaving\" title=\"Discard Changes\">\n <i class=\"fa-solid fa-rotate-left\"></i>\n <span class=\"mj-forms-btn-text\">Discard</span>\n </button>\n @for (item of ResolvedEditAfterSaveItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading || IsSaving\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n </div>\n </div>\n}\n\n<!-- ============================================\n MAIN TOOLBAR (read mode only \u2014 hidden in edit mode)\n Inline actions (Edit + custom items), the user's pinned actions,\n a More menu for everything else, and a View menu for section and\n layout controls. Pins are per user (UserInfoEngine); until a user\n chooses, the configured defaults (Favorite and History) are pinned.\n ============================================ -->\n@if (!EditMode) {\n @if (!IsToolbarExpanded) {\n <div class=\"mj-forms-toolbar-collapsed-pill\"\n [class.mj-forms-toolbar-collapsed-pill--rail]=\"ChromeLayout === 'left-nav'\"\n role=\"toolbar\"\n aria-label=\"Form actions\">\n @if (EditActionItem; as editItem) {\n <button type=\"button\"\n class=\"mj-forms-collapsed-btn mj-forms-collapsed-btn--edit\"\n [disabled]=\"editItem.Disabled || editItem.IsLoading\"\n [title]=\"editItem.Description\"\n (click)=\"OnToolbarItemClick(editItem, $event)\">\n <i class=\"fa-solid fa-pen\"></i>\n <span>Edit</span>\n </button>\n }\n <button type=\"button\"\n class=\"mj-forms-collapsed-btn mj-forms-collapsed-btn--expand\"\n (click)=\"ExpandToolbarForSession()\"\n aria-label=\"Show form toolbar\"\n title=\"Show toolbar actions and view options\">\n <i class=\"fa-solid fa-ellipsis\"></i>\n </button>\n </div>\n } @else {\n <div class=\"mj-forms-toolbar\" [class.mj-forms-toolbar--sticky]=\"Config.StickyToolbar\">\n\n <div class=\"mj-forms-toolbar-group\">\n @for (item of InlineActionItems; track item.Key) {\n <ng-container [ngTemplateOutlet]=\"actionButtonTpl\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n }\n @for (item of PinnedActionItems; track item.Key) {\n <ng-container [ngTemplateOutlet]=\"actionButtonTpl\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n }\n\n @if (ShowMoreMenu) {\n <div class=\"mj-forms-menu-host\" [class.open]=\"MoreMenuOpen\">\n <button class=\"mj-forms-btn mj-forms-menu-trigger\" type=\"button\" data-menu-trigger=\"more\"\n [attr.aria-expanded]=\"MoreMenuOpen\" [attr.aria-controls]=\"MenuIdPrefix + '-more'\"\n title=\"More actions\" (click)=\"ToggleMoreMenu()\">\n <i class=\"fa-solid fa-ellipsis\"></i>\n <span class=\"mj-forms-btn-text\">More</span>\n </button>\n @if (MoreMenuOpen && !IsAutoHideViewport) {\n <div class=\"mj-forms-menu mj-forms-menu--left\" [id]=\"MenuIdPrefix + '-more'\" role=\"group\" aria-label=\"More actions\">\n <ng-container [ngTemplateOutlet]=\"moreMenuContent\"></ng-container>\n </div>\n }\n @if (IsAutoHideViewport) {\n <!-- Phone: the same rows, as a bottom sheet. A dropdown hanging off a 32px button\n is the wrong container when the thumb is the pointer. -->\n <mj-bottom-sheet [Visible]=\"MoreMenuOpen\"\n (VisibleChange)=\"OnMenuSheetVisibleChange('more', $event)\"\n Title=\"More actions\">\n <div class=\"mj-forms-menu mj-forms-menu--sheet\" [id]=\"MenuIdPrefix + '-more'\" role=\"group\" aria-label=\"More actions\">\n <ng-container [ngTemplateOutlet]=\"moreMenuContent\"></ng-container>\n </div>\n </mj-bottom-sheet>\n }\n <ng-template #moreMenuContent>\n @for (item of MoreMenuItems; track item.Key) {\n <div class=\"mj-forms-menu-row\" [class.disabled]=\"item.Disabled\">\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [class.mj-forms-btn--comments]=\"item.Key === 'comments'\"\n [class.mj-forms-btn--links]=\"item.Key === 'links'\"\n [class.mj-forms-btn--ask-ai]=\"item.Key === 'ask-ai'\"\n [class.mj-forms-toolbar__btn--active]=\"(item.Key === 'links' && LinksOpen) || (item.Key === 'comments' && CommentsOpen)\"\n [disabled]=\"item.Disabled || item.IsLoading\" [title]=\"item.Description\"\n (click)=\"OnMenuItemClick(item, $event)\">\n <span class=\"mj-forms-menu-icon\">\n @if (item.IsLoading) { <i class=\"fa-solid fa-spinner fa-spin\"></i> } @else if (item.Icon) { <i [class]=\"item.Icon\"></i> }\n </span>\n <span class=\"mj-forms-menu-label\">{{ item.MenuLabel }}</span>\n @if (item.Badge != null) { <span class=\"mj-forms-menu-badge\">{{ item.Badge }}</span> }\n </button>\n <!-- aria-disabled, not disabled: at the cap the button stays reachable, so its hint can be read. -->\n <button class=\"mj-forms-menu-pin\" type=\"button\"\n [class.pinned]=\"IsPinned(item.Key)\"\n [class.over-cap]=\"IsPinnedOverCap(item.Key)\"\n [attr.aria-disabled]=\"!IsPinned(item.Key) && !CanPinMore ? 'true' : null\"\n [attr.aria-pressed]=\"IsPinned(item.Key)\"\n [attr.aria-label]=\"'Pin ' + item.MenuLabel\"\n [title]=\"IsPinnedOverCap(item.Key) ? 'Pinned, but the toolbar is full (' + MaxPinnedActions + ' max): unpin another to show it, or click to unpin' : IsPinned(item.Key) ? 'Unpin from toolbar' : (CanPinMore ? 'Pin to toolbar' : 'Unpin another action first (' + MaxPinnedActions + ' max)')\"\n (click)=\"TogglePin(item.Key)\">\n <i class=\"fa-solid fa-thumbtack\"></i>\n </button>\n </div>\n }\n @if (DeleteMenuItem; as del) {\n @if (MoreMenuItems.length > 0) { <div class=\"mj-forms-menu-sep\"></div> }\n <button class=\"mj-forms-menu-item mj-forms-menu-item--danger\" type=\"button\"\n [disabled]=\"del.Disabled\" [title]=\"del.Description\" (click)=\"OnMenuItemClick(del, $event)\">\n <span class=\"mj-forms-menu-icon\"><i [class]=\"del.Icon\"></i></span>\n <span class=\"mj-forms-menu-label\">{{ del.MenuLabel }}</span>\n </button>\n }\n </ng-template>\n </div>\n }\n </div>\n\n <!-- Spacer pushes the View menu to the right -->\n <div class=\"mj-forms-toolbar-spacer\"></div>\n\n <!-- An active section filter stays visible after the View menu closes -->\n @if (SearchFilter && !ViewMenuOpen) {\n <span class=\"mj-forms-filter-chip\" title=\"Sections are filtered\">\n <i class=\"fa-solid fa-filter\"></i>\n <span class=\"mj-forms-filter-chip-text\">{{ SearchFilter }}</span>\n <button type=\"button\" class=\"mj-forms-filter-chip-clear\" (click)=\"OnClearFilter()\" aria-label=\"Clear section filter\" title=\"Clear section filter\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </span>\n }\n\n <!--\n Right-placed registered items. They sit with the View menu rather than with the record\n actions: an item placed here acts on the form's chrome, not on the record. Items\n registered for the overflow group land here too \u2014 the More menu lists only `actions`\n items, and an item that renders nowhere is worse than one in the wrong group.\n -->\n @if (ResolvedRightItems.length > 0) {\n <div class=\"mj-forms-toolbar-group\">\n @for (item of ResolvedRightItems; track item.Key) {\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading\"\n [title]=\"item.Description\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span class=\"mj-list-count-badge\">{{ item.Badge }}</span>\n }\n </button>\n }\n </div>\n }\n\n @if (ShowViewMenu) {\n <div class=\"mj-forms-menu-host\" [class.open]=\"ViewMenuOpen\">\n <button class=\"mj-forms-btn mj-forms-menu-trigger\" type=\"button\" data-menu-trigger=\"view\"\n [attr.aria-expanded]=\"ViewMenuOpen\" [attr.aria-controls]=\"MenuIdPrefix + '-view'\"\n [title]=\"CurrentVariantID ? 'Sections and layout (form: ' + CurrentVariantLabel + ')' : 'Sections and layout'\"\n (click)=\"ToggleViewMenu()\">\n <i class=\"fa-solid fa-sliders\"></i>\n <span class=\"mj-forms-btn-text\">View</span>\n <!-- A non-default form variant stays visible while the panel is closed. -->\n @if (CurrentVariantID) {\n <span class=\"mj-forms-variant-tag\">{{ CurrentVariantLabel }}</span>\n }\n </button>\n @if (ViewMenuOpen && !IsAutoHideViewport) {\n <div class=\"mj-forms-menu mj-forms-menu--right\" [id]=\"MenuIdPrefix + '-view'\" role=\"group\" aria-label=\"Sections and layout\">\n <ng-container [ngTemplateOutlet]=\"viewMenuContent\"></ng-container>\n </div>\n }\n @if (IsAutoHideViewport) {\n <mj-bottom-sheet [Visible]=\"ViewMenuOpen\"\n (VisibleChange)=\"OnMenuSheetVisibleChange('view', $event)\"\n Title=\"Sections and layout\">\n <div class=\"mj-forms-menu mj-forms-menu--sheet\" [id]=\"MenuIdPrefix + '-view'\" role=\"group\" aria-label=\"Sections and layout\">\n <ng-container [ngTemplateOutlet]=\"viewMenuContent\"></ng-container>\n </div>\n </mj-bottom-sheet>\n }\n <ng-template #viewMenuContent>\n @if (Config.ShowSectionControls) {\n @if (Config.ShowSectionFilter) {\n <div class=\"mj-forms-menu-search\">\n <input type=\"text\"\n class=\"mj-section-search\"\n [class.mj-section-search--active]=\"SearchFilter\"\n [value]=\"SearchFilter\"\n (input)=\"OnFilterInput($event)\"\n placeholder=\"Search sections...\"\n aria-label=\"Search sections\">\n @if (SearchFilter) {\n <button class=\"mj-clear-search\" type=\"button\" (click)=\"OnClearFilter()\" aria-label=\"Clear section search\" title=\"Clear search\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n @if (ShowExpandCollapseAll || HasCustomSectionOrder || Config.ShowSectionManager) {\n <div class=\"mj-forms-menu-heading\">Sections</div>\n }\n @if (ShowExpandCollapseAll) {\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [disabled]=\"ExpandedSectionCount >= VisibleSectionCount\" title=\"Expand all sections\" (click)=\"OnExpandAll()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-angles-down\"></i></span>\n <span class=\"mj-forms-menu-label\">Expand all</span>\n </button>\n <button class=\"mj-forms-menu-item\" type=\"button\"\n [disabled]=\"ExpandedSectionCount === 0\" title=\"Collapse all sections\" (click)=\"OnCollapseAll()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-angles-up\"></i></span>\n <span class=\"mj-forms-menu-label\">Collapse all</span>\n </button>\n }\n @if (Config.ShowSectionManager) {\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnReorderSectionsFromView()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-bars-staggered\"></i></span>\n <span class=\"mj-forms-menu-label\">Reorder sections</span>\n </button>\n }\n @if (HasCustomSectionOrder) {\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnResetSectionOrder()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-arrow-rotate-left\"></i></span>\n <span class=\"mj-forms-menu-label\">Reset section order</span>\n </button>\n }\n @if (Config.ShowWidthToggle) {\n <div class=\"mj-forms-menu-heading\">Layout</div>\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnToggleWidthMode()\">\n <span class=\"mj-forms-menu-icon\">\n <i [class]=\"WidthMode === 'centered' ? 'fa-solid fa-arrows-left-right-to-line' : 'fa-solid fa-compress'\"></i>\n </span>\n <span class=\"mj-forms-menu-label\">{{ WidthMode === 'centered' ? 'Use full width' : 'Center content' }}</span>\n </button>\n }\n }\n @if (ShowVariantPickerButton) {\n <div class=\"mj-forms-menu-heading\">Form</div>\n <button type=\"button\" class=\"mj-form-variant-picker-row mj-form-variant-picker-default\"\n [class.current]=\"!CurrentVariantID\" [attr.aria-pressed]=\"!CurrentVariantID\"\n (click)=\"OnVariantClick(null)\">\n <div class=\"mj-form-variant-picker-row-main\">\n <span class=\"mj-form-variant-picker-row-title\">\n Default form <span class=\"mj-form-variant-picker-default-tag\">(default)</span>\n </span>\n <span class=\"mj-form-variant-picker-row-sub\">CodeGen-generated Angular fallback</span>\n </div>\n @if (!CurrentVariantID) {\n <i class=\"fa-solid fa-check mj-form-variant-picker-check\"></i>\n }\n </button>\n @for (v of Variants; track v.ID) {\n <button type=\"button\" class=\"mj-form-variant-picker-row\"\n [class.current]=\"v.ID === CurrentVariantID\" [attr.aria-pressed]=\"v.ID === CurrentVariantID\"\n [class.inactive]=\"v.Status !== 'Active'\"\n (click)=\"OnVariantClick(v.ID)\">\n <div class=\"mj-form-variant-picker-row-main\">\n <span class=\"mj-form-variant-picker-row-title\">{{ v.Label }}</span>\n <span class=\"mj-form-variant-picker-row-sub\">{{ VariantSubtitle(v) }}</span>\n </div>\n @if (v.ID === CurrentVariantID) {\n <i class=\"fa-solid fa-check mj-form-variant-picker-check\"></i>\n }\n </button>\n }\n }\n @if (IsAutoHideViewport && FormModeSwitch) {\n <div class=\"mj-forms-menu-heading\">Form</div>\n <button class=\"mj-forms-menu-item\" type=\"button\" (click)=\"OnFormModeSwitchClick()\">\n <span class=\"mj-forms-menu-icon\">\n <i class=\"fa-solid\" [class.fa-table-list]=\"FormModeSwitch.Mode === 'default'\" [class.fa-wand-magic-sparkles]=\"FormModeSwitch.Mode === 'standard'\"></i>\n </span>\n <span class=\"mj-forms-menu-label\">{{ FormModeSwitch.Mode === 'standard' ? 'Back to custom view' : 'Open standard form' }}</span>\n </button>\n }\n @if (IsAutoHideViewport) {\n <div class=\"mj-forms-menu-heading\">Toolbar</div>\n @if (CurrentEntityName) {\n <button class=\"mj-forms-menu-item\" type=\"button\"\n data-toolbar-pin=\"entity\"\n [attr.aria-pressed]=\"IsToolbarPinnedOpen\"\n (click)=\"ToggleEntityToolbarPin()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-thumbtack\"></i></span>\n <span class=\"mj-forms-menu-label\">{{ IsToolbarPinnedOpen ? 'Unpin toolbar for ' + CurrentEntityDisplayName : 'Pin toolbar for ' + CurrentEntityDisplayName }}</span>\n @if (EntityToolbarPinState !== undefined) {\n <span class=\"mj-forms-menu-badge\">{{ EntityToolbarPinState ? 'Pinned' : 'Auto-hide' }}</span>\n }\n </button>\n }\n <button class=\"mj-forms-menu-item\" type=\"button\"\n data-toolbar-pin=\"global\"\n [attr.aria-pressed]=\"IsGlobalToolbarPinned\"\n (click)=\"ToggleGlobalToolbarPin()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-globe\"></i></span>\n <span class=\"mj-forms-menu-label\">{{ IsGlobalToolbarPinned ? 'Unpin toolbar on all forms' : 'Pin toolbar on all forms' }}</span>\n @if (IsGlobalToolbarPinned) {\n <span class=\"mj-forms-menu-badge\">Pinned</span>\n }\n </button>\n <button class=\"mj-forms-menu-item\" type=\"button\"\n data-toolbar-collapse=\"menu\"\n (click)=\"CollapseToolbarForSession()\">\n <span class=\"mj-forms-menu-icon\"><i class=\"fa-solid fa-eye-slash\"></i></span>\n <span class=\"mj-forms-menu-label\">Hide toolbar now</span>\n </button>\n }\n </ng-template>\n </div>\n }\n\n <!-- Additional actions slot -->\n @if (AdditionalActionsTemplate) {\n <ng-container [ngTemplateOutlet]=\"AdditionalActionsTemplate\"></ng-container>\n }\n <ng-content select=\"[toolbar-additional-controls]\"></ng-content>\n\n @if (IsAutoHideViewport) {\n <button class=\"mj-forms-btn mj-forms-btn--icon-only mj-forms-toolbar-collapse-btn\"\n type=\"button\"\n aria-label=\"Hide form toolbar\"\n title=\"Hide toolbar\"\n (click)=\"CollapseToolbarForSession()\">\n <i class=\"fa-solid fa-chevron-up\"></i>\n </button>\n }\n </div>\n }\n\n <!-- IS-A Entity Hierarchy Breadcrumb: its own row, only for entities in a hierarchy -->\n @if (Config.ShowEntityHierarchy && IsInHierarchy) {\n <div class=\"mj-forms-hierarchy-row\">\n <div class=\"mj-entity-hierarchy\">\n @for (parent of ParentChain; track parent.ID) {\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--parent\"\n [title]=\"'Navigate to parent: ' + parent.Name\"\n (click)=\"OnParentBadgeClick(parent, $event)\">\n <i class=\"fa-solid fa-arrow-up\"></i>\n {{ parent.Name }}\n </button>\n <span class=\"mj-hierarchy-arrow\"><i class=\"fa-solid fa-chevron-right\"></i></span>\n }\n <span class=\"mj-entity-badge mj-entity-badge--current\">{{ EntityInfo?.Name }}</span>\n @if (DescendantTree.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: DescendantTree }\"></ng-container>\n }\n </div>\n </div>\n }\n}\n\n<!-- One read-mode action button (inline or pinned) -->\n<ng-template #actionButtonTpl let-item=\"item\">\n <button class=\"mj-forms-btn\"\n [class.mj-forms-btn--primary]=\"item.Variant === 'primary'\"\n [class.mj-forms-btn--secondary]=\"item.Variant === 'secondary'\"\n [class.mj-forms-btn--accent]=\"item.Variant === 'accent'\"\n [class.mj-forms-btn--danger]=\"item.Variant === 'danger'\"\n [class.mj-forms-btn--ghost]=\"item.Variant === 'ghost'\"\n [class.mj-forms-btn--history]=\"item.Key === 'history'\"\n [class.mj-forms-btn--list]=\"item.Key === 'list'\"\n [class.mj-forms-btn--tags]=\"item.Key === 'tags'\"\n [class.mj-forms-btn--comments]=\"item.Key === 'comments'\"\n [class.mj-forms-btn--links]=\"item.Key === 'links'\"\n [class.mj-forms-btn--ask-ai]=\"item.Key === 'ask-ai'\"\n [class.mj-forms-toolbar__btn--active]=\"(item.Key === 'links' && LinksOpen) || (item.Key === 'comments' && CommentsOpen)\"\n [class.mj-forms-btn--attachments]=\"item.Key === 'attachments'\"\n [class]=\"item.CssClass\"\n [disabled]=\"item.Disabled || item.IsLoading\"\n [title]=\"item.Description\"\n [attr.aria-label]=\"item.Text ? null : (item.Description || item.MenuLabel)\"\n (click)=\"OnToolbarItemClick(item, $event)\">\n @if (item.IsLoading) {\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n } @else if (item.Icon) {\n <i [class]=\"item.Icon\"></i>\n }\n @if (item.Text) {\n <span class=\"mj-forms-btn-text\">{{ item.Text }}</span>\n }\n @if (item.Badge != null) {\n <span [class]=\"item.Key === 'history' ? 'mj-version-count-badge' : 'mj-list-count-badge'\">{{ item.Badge }}</span>\n }\n </button>\n</ng-template>\n\n<!-- ============================================\n RECORD CLONE SLIDE-IN (ng-record-clone)\n Created only when the Clone action is available; navigation it\n requests leaves through this toolbar's Navigate output.\n ============================================ -->\n@if (ShowCloneAction) {\n <mj-record-clone-slide-in\n [Provider]=\"Provider\"\n [Record]=\"Record\"\n [Visible]=\"IsClonePanelOpen\"\n (VisibleChange)=\"OnClonePanelVisibleChange($event)\"\n (CloneCompleted)=\"OnCloneCompleted($event)\"\n (NavigateToRecord)=\"OnCloneNavigate($event)\">\n </mj-record-clone-slide-in>\n}\n\n<!-- ============================================\n DISCARD CHANGES CONFIRMATION DIALOG\n ============================================ -->\n@if (ShowDiscardDialog) {\n <div class=\"mj-dialog-overlay\" (click)=\"OnDiscardCancel()\">\n <div class=\"mj-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"mj-dialog-header\">\n <h3>Discard Changes?</h3>\n <button class=\"mj-dialog-close\" (click)=\"OnDiscardCancel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"mj-dialog-body\">\n <p>You have <strong>{{ DirtyFieldDisplayNames.length }}</strong> unsaved change{{ DirtyFieldDisplayNames.length === 1 ? '' : 's' }}. Are you sure you want to discard {{ DirtyFieldDisplayNames.length === 1 ? 'it' : 'them' }}?</p>\n </div>\n <div class=\"mj-dialog-footer\">\n <button class=\"mj-forms-btn mj-forms-btn--danger\" (click)=\"OnDiscardConfirm()\">\n <i class=\"fa-solid fa-rotate-left\"></i>\n Discard Changes\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnDiscardCancel()\">\n Keep Editing\n </button>\n </div>\n </div>\n </div>\n}\n\n<!-- ============================================\n DELETE CONFIRMATION DIALOG\n ============================================ -->\n@if (ShowDeleteDialog) {\n <div class=\"mj-dialog-overlay\" (click)=\"OnDeleteCancel()\">\n <div class=\"mj-dialog\" (click)=\"$event.stopPropagation()\">\n <div class=\"mj-dialog-header\">\n <h3>Confirm Deletion</h3>\n <button class=\"mj-dialog-close\" (click)=\"OnDeleteCancel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <div class=\"mj-dialog-body\">\n <p>Are you sure you want to delete this record? This action cannot be undone.</p>\n </div>\n <div class=\"mj-dialog-footer\">\n <button class=\"mj-forms-btn mj-forms-btn--danger\" (click)=\"OnDeleteConfirm()\">\n <i class=\"fa-solid fa-trash-can\"></i>\n Delete\n </button>\n <button class=\"mj-forms-btn\" (click)=\"OnDeleteCancel()\">\n Cancel\n </button>\n </div>\n </div>\n </div>\n}\n\n<!-- Recursive template for IS-A descendant tree rendering.\n Single child at a level \u2192 inline with chevron.\n Multiple children at a level \u2192 tree branch with CSS connector lines. -->\n<ng-template #descendantTreeTpl let-items=\"items\">\n @if (items.length === 1) {\n <span class=\"mj-hierarchy-arrow\"><i class=\"fa-solid fa-chevron-right\"></i></span>\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--child\"\n [title]=\"'Navigate to: ' + items[0].EntityName\"\n (click)=\"OnDescendantBadgeClick(items[0].EntityName, $event)\">\n <i class=\"fa-solid fa-arrow-down\"></i>\n {{ items[0].EntityName }}\n </button>\n @if (items[0].Children.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: items[0].Children }\"></ng-container>\n }\n } @else if (items.length > 1) {\n <div class=\"mj-descendant-chains\">\n @for (item of items; track item.EntityName) {\n <div class=\"mj-descendant-chain\">\n <button type=\"button\" class=\"mj-entity-badge mj-entity-badge--child\"\n [title]=\"'Navigate to: ' + item.EntityName\"\n (click)=\"OnDescendantBadgeClick(item.EntityName, $event)\">\n <i class=\"fa-solid fa-arrow-down\"></i>\n {{ item.EntityName }}\n </button>\n @if (item.Children.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: item.Children }\"></ng-container>\n }\n </div>\n }\n </div>\n }\n</ng-template>\n", styles: ["/* ============================================\n FORM TOOLBAR \u2014 uses global --mj-* design tokens\n ============================================ */\n:host {\n display: block;\n}\n\n/* ============================================\n EDIT BANNER\n ============================================ */\n.mj-forms-edit-banner {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 16px 16px;\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-bottom: 2px solid var(--mj-brand-primary);\n font-size: 13px;\n color: var(--mj-brand-primary);\n font-weight: var(--mj-font-medium);\n}\n\n.mj-forms-edit-banner > i {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-icon--dirty {\n color: var(--mj-status-warning);\n font-size: var(--mj-text-base);\n}\n\n.mj-forms-edit-banner-text {\n font-size: var(--mj-text-sm);\n}\n\n.mj-forms-edit-banner-dirty {\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-edit-banner-dirty strong {\n color: var(--mj-status-warning);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-forms-edit-banner-actions {\n display: flex;\n gap: 8px;\n}\n\n/* ============================================\n MAIN TOOLBAR\n ============================================ */\n.mj-forms-toolbar {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 22px 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 2px solid var(--mj-border-default);\n flex-wrap: wrap;\n z-index: 40;\n}\n\n.mj-forms-toolbar--sticky {\n position: sticky;\n top: 0;\n}\n\n.mj-forms-toolbar--disabled {\n pointer-events: none;\n opacity: 0.7;\n}\n\n.mj-forms-toolbar-group {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mj-forms-toolbar-separator {\n width: 1px;\n height: 24px;\n background: var(--mj-border-default);\n margin: 0 4px;\n}\n\n.mj-forms-toolbar-spacer {\n flex: 1;\n}\n\n/* ============================================\n BUTTONS\n ============================================ */\n.mj-forms-btn {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n font-size: 13px;\n font-weight: var(--mj-font-medium);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n white-space: nowrap;\n font-family: inherit;\n line-height: 1;\n}\n\n.mj-forms-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n box-shadow: var(--mj-shadow-sm);\n}\n\n.mj-forms-btn:active {\n transform: translateY(0);\n box-shadow: none;\n}\n\n.mj-forms-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-btn i {\n font-size: 15px;\n line-height: 1;\n}\n\n.mj-forms-btn--primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--primary:hover {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-primary) 30%, transparent);\n}\n\n.mj-forms-btn--secondary {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n.mj-forms-btn--secondary:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-primary);\n}\n\n.mj-forms-btn--accent {\n background: var(--mj-brand-accent, #6366f1);\n color: var(--mj-text-inverse, #ffffff);\n border-color: var(--mj-brand-accent, #6366f1);\n}\n\n.mj-forms-btn--accent:hover {\n filter: brightness(1.1);\n box-shadow: 0 2px 8px color-mix(in srgb, var(--mj-brand-accent, #6366f1) 30%, transparent);\n}\n\n.mj-forms-btn--danger {\n color: var(--mj-status-error);\n border-color: color-mix(in srgb, var(--mj-status-error) 30%, transparent);\n background: color-mix(in srgb, var(--mj-status-error) 5%, var(--mj-bg-surface));\n}\n\n.mj-forms-btn--danger:hover {\n background: color-mix(in srgb, var(--mj-status-error) 10%, var(--mj-bg-surface));\n border-color: var(--mj-status-error);\n}\n\n.mj-forms-btn--ghost {\n border-color: transparent;\n background: transparent;\n}\n\n.mj-forms-btn--ghost:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 8%, transparent);\n border-color: transparent;\n}\n\n.mj-forms-btn--icon-only {\n padding: 7px 9px;\n}\n\n.mj-forms-btn--sm {\n padding: 5px 12px;\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn--sm i {\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-btn-text {\n margin-left: 2px;\n}\n\n.mj-icon--favorite {\n color: var(--mj-status-warning);\n}\n\n/* List button with count badge */\n.mj-forms-btn--list {\n position: relative;\n}\n\n/* History button with version badge */\n.mj-forms-btn--history {\n position: relative;\n}\n\n.mj-version-count-badge {\n position: absolute;\n top: -6px;\n right: -10px;\n padding: 0 5px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-success) 0%, color-mix(in srgb, var(--mj-status-success) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n height: 16px;\n border: 2px solid var(--mj-bg-surface-card);\n white-space: nowrap;\n line-height: 1;\n}\n\n.mj-list-count-badge {\n position: absolute;\n top: -6px;\n right: -6px;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n font-size: 10px;\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-inverse);\n background: linear-gradient(135deg, var(--mj-status-info) 0%, color-mix(in srgb, var(--mj-status-info) 85%, black) 100%);\n border-radius: var(--mj-radius-full);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--mj-bg-surface-card);\n}\n\n/* ============================================\n IS-A ENTITY HIERARCHY\n ============================================ */\n.mj-entity-hierarchy {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mj-entity-badge {\n /* A button now (keyboard-reachable); keep the badge look. */\n font-family: inherit;\n line-height: inherit;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 10px;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n border-radius: var(--mj-radius-sm);\n cursor: pointer;\n transition: all var(--mj-transition-base) ease;\n text-decoration: none;\n border: 1px solid transparent;\n}\n\n.mj-entity-badge i {\n font-size: 11px;\n}\n\n.mj-entity-badge--parent {\n background: color-mix(in srgb, var(--mj-brand-accent) 10%, var(--mj-bg-surface));\n color: var(--mj-brand-accent);\n border-color: color-mix(in srgb, var(--mj-brand-accent) 25%, transparent);\n}\n\n.mj-entity-badge--parent:hover {\n background: color-mix(in srgb, var(--mj-brand-accent) 18%, var(--mj-bg-surface));\n border-color: var(--mj-brand-accent);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-brand-accent) 15%, transparent);\n}\n\n.mj-entity-badge--current {\n font-weight: var(--mj-font-semibold);\n font-size: 13px;\n color: var(--mj-text-primary);\n padding: 4px 8px;\n background: var(--mj-bg-surface-hover);\n border-radius: var(--mj-radius-sm);\n cursor: default;\n}\n\n.mj-entity-badge--child {\n background: color-mix(in srgb, var(--mj-status-info) 10%, var(--mj-bg-surface));\n color: var(--mj-status-info);\n border-color: color-mix(in srgb, var(--mj-status-info) 25%, transparent);\n}\n\n.mj-entity-badge--child:hover {\n background: color-mix(in srgb, var(--mj-status-info) 18%, var(--mj-bg-surface));\n border-color: var(--mj-status-info);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-info) 15%, transparent);\n}\n\n.mj-entity-badge--overlapping {\n background: color-mix(in srgb, var(--mj-status-warning) 10%, var(--mj-bg-surface));\n color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n border-color: color-mix(in srgb, var(--mj-status-warning) 40%, transparent);\n}\n\n.mj-entity-badge--overlapping:hover {\n background: color-mix(in srgb, var(--mj-status-warning) 18%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-status-warning) 85%, black);\n box-shadow: 0 2px 6px color-mix(in srgb, var(--mj-status-warning) 15%, transparent);\n}\n\n.mj-entity-badge-group {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex-wrap: wrap;\n}\n\n.mj-child-count {\n background: var(--mj-status-info);\n color: var(--mj-text-inverse);\n font-size: 10px;\n padding: 1px 5px;\n border-radius: var(--mj-radius-full);\n font-weight: var(--mj-font-bold);\n}\n\n.mj-entity-badge--leaf {\n border-style: dashed;\n}\n\n.mj-entity-badge--root {\n border-style: dashed;\n}\n\n.mj-hierarchy-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n}\n\n/* Descendant chain tree (connecting lines when multiple chains branch) */\n.mj-descendant-chains {\n display: flex;\n flex-direction: column;\n gap: 6px;\n position: relative;\n padding-left: 20px;\n}\n\n/* Horizontal connector from parent entity badge to tree trunk */\n.mj-descendant-chains::before {\n content: '';\n position: absolute;\n left: -4px;\n top: 50%;\n width: 4px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n.mj-descendant-chain {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n padding: 2px 0;\n}\n\n/* Horizontal branch line from trunk to chain content */\n.mj-descendant-chain::before {\n content: '';\n position: absolute;\n left: -20px;\n top: 50%;\n width: 18px;\n border-top: 1.5px solid var(--mj-text-muted);\n}\n\n/* Vertical trunk segment (each chain draws its portion) */\n.mj-descendant-chain::after {\n content: '';\n position: absolute;\n left: -20px;\n top: 0;\n bottom: 0;\n border-left: 1.5px solid var(--mj-text-muted);\n}\n\n/* First chain: trunk starts from center */\n.mj-descendant-chain:first-child::after {\n top: 50%;\n}\n\n/* Last chain: trunk ends at center */\n.mj-descendant-chain:last-child::after {\n bottom: 50%;\n}\n\n/* (dirty summary removed \u2014 now inline in edit banner) */\n\n/* ============================================\n SECTION CONTROLS\n ============================================ */\n.mj-section-controls {\n gap: 6px;\n}\n\n.mj-forms-search-wrapper {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n\n.mj-section-search {\n max-width: 180px;\n font-size: 13px;\n padding: 6px 28px 6px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n outline: none;\n font-family: inherit;\n transition: all var(--mj-transition-base);\n}\n\n.mj-section-search:focus {\n border-color: var(--mj-brand-primary);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n/* Active filter highlight \u2014 matches the yellow used on matched panel/field names */\n.mj-section-search--active {\n background-color: color-mix(in srgb, var(--mj-status-warning) 40%, var(--mj-bg-surface));\n border-color: var(--mj-status-warning);\n color: color-mix(in srgb, var(--mj-status-warning) 80%, black);\n font-weight: var(--mj-font-semibold);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-status-warning) 25%, transparent);\n}\n\n.mj-section-search::placeholder {\n color: var(--mj-text-muted);\n font-style: italic;\n}\n\n.mj-clear-search {\n position: absolute;\n right: 4px;\n padding: 4px;\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n font-size: var(--mj-text-xs);\n line-height: 1;\n}\n\n.mj-clear-search:hover {\n color: var(--mj-text-secondary);\n}\n\n/* ============================================\n DIALOG (lightweight inline)\n ============================================ */\n.mj-dialog-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--mj-bg-overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n animation: mj-fade-in 150ms ease;\n}\n\n.mj-dialog {\n background: var(--mj-bg-surface-card);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-lg);\n min-width: 400px;\n max-width: 550px;\n animation: mj-slide-up 200ms ease;\n}\n\n.mj-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mj-dialog-header h3 {\n margin: 0;\n font-size: var(--mj-text-base);\n font-weight: var(--mj-font-semibold);\n}\n\n.mj-dialog-close {\n background: none;\n border: none;\n color: var(--mj-text-muted);\n cursor: pointer;\n padding: 4px;\n font-size: var(--mj-text-base);\n transition: color var(--mj-transition-base);\n}\n\n.mj-dialog-close:hover {\n color: var(--mj-text-primary);\n}\n\n.mj-dialog-body {\n padding: 20px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.6;\n}\n\n.mj-dialog-body p {\n margin: 0;\n}\n\n.mj-dialog-footer {\n display: flex;\n gap: 8px;\n padding: 16px 20px;\n border-top: 1px solid var(--mj-border-default);\n}\n\n@keyframes mj-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes mj-slide-up {\n from { transform: translateY(8px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n}\n\n/* ============================================================ */\n/* FORM-VARIANT PICKER (toolbar-embedded; right-side) */\n/* ============================================================ */\n\n.mj-form-variant-picker-host {\n position: relative;\n display: inline-flex;\n}\n\n.mj-form-variant-picker-trigger {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n max-width: 240px;\n}\n\n.mj-form-variant-picker-trigger .chev {\n font-size: 10px;\n opacity: 0.7;\n}\n\n.mj-form-variant-picker-current-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 160px;\n font-size: 12px;\n font-weight: 500;\n}\n\n.mj-form-variant-picker-host.open .mj-form-variant-picker-trigger {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-form-variant-picker-menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 50;\n min-width: 280px;\n max-height: 360px;\n overflow-y: auto;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);\n padding: 4px 0;\n}\n\n.mj-form-variant-picker-row {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n width: 100%;\n padding: 8px 12px;\n border: 0;\n background: none;\n font: inherit;\n text-align: left;\n cursor: pointer;\n color: var(--mj-text-primary);\n font-size: 13px;\n transition: background 120ms;\n}\n\n.mj-form-variant-picker-row:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-form-variant-picker-row:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-form-variant-picker-row.current {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, transparent);\n}\n\n.mj-form-variant-picker-row.inactive {\n opacity: 0.6;\n}\n\n.mj-form-variant-picker-row-main {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mj-form-variant-picker-row-title {\n font-weight: 600;\n}\n\n.mj-form-variant-picker-row-sub {\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.mj-form-variant-picker-default-tag {\n font-size: 10px;\n font-weight: 500;\n color: var(--mj-text-muted);\n margin-left: 4px;\n}\n\n.mj-form-variant-picker-default {\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mj-form-variant-picker-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n margin-top: 2px;\n}\n\n/* ============================================\n MORE / VIEW MENUS\n ============================================ */\n.mj-forms-menu-host {\n position: relative;\n display: inline-flex;\n}\n\n.mj-forms-menu-host.open .mj-forms-menu-trigger {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-focus);\n}\n\n.mj-forms-menu {\n position: absolute;\n top: calc(100% + 4px);\n z-index: 50;\n min-width: 260px;\n max-height: 420px;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n background: var(--mj-bg-surface-elevated);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n box-shadow: var(--mj-shadow-lg);\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu--left { left: 0; }\n.mj-forms-menu--right { right: 0; }\n\n.mj-forms-menu-heading {\n padding: var(--mj-space-2) var(--mj-space-2) var(--mj-space-1);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mj-forms-menu-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-1);\n}\n\n.mj-forms-menu-item {\n flex: 1;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n width: 100%;\n padding: 6px var(--mj-space-2);\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-primary);\n font: inherit;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n}\n\n.mj-forms-menu-item:hover:not(:disabled),\n.mj-forms-menu-item:focus-visible {\n background: var(--mj-bg-surface-hover);\n outline: none;\n}\n\n.mj-forms-menu-item:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.mj-forms-menu-item--danger,\n.mj-forms-menu-item--danger .mj-forms-menu-icon {\n color: var(--mj-status-error);\n}\n\n.mj-forms-menu-icon {\n width: 18px;\n text-align: center;\n color: var(--mj-text-secondary);\n}\n\n.mj-forms-menu-label {\n flex: 1;\n}\n\n.mj-forms-menu-badge {\n font-size: 11px;\n font-weight: 600;\n padding: 0 6px;\n border-radius: 9px;\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n}\n\n.mj-forms-menu-pin {\n width: 26px;\n height: 26px;\n display: grid;\n place-items: center;\n border: 0;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n\n.mj-forms-menu-pin:hover:not(:disabled),\n.mj-forms-menu-pin:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-menu-pin.pinned {\n color: var(--mj-brand-primary);\n}\n\n/* Pinned, but past the cap on this form: dashed, so it reads as waiting for a free slot. */\n.mj-forms-menu-pin.pinned.over-cap {\n outline: 1px dashed var(--mj-brand-primary);\n outline-offset: -3px;\n}\n\n.mj-forms-menu-pin:disabled,\n.mj-forms-menu-pin[aria-disabled=\"true\"] {\n opacity: 0.35;\n cursor: default;\n}\n\n/* Keyboard focus is a ring, not just the hover tint, on every panel control. */\n.mj-forms-menu-item:focus-visible,\n.mj-forms-menu-pin:focus-visible,\n.mj-forms-filter-chip-clear:focus-visible,\n.mj-entity-badge:focus-visible {\n box-shadow: var(--mj-focus-ring);\n}\n\n/* The active form variant, on the View button, when it isn't the default form. */\n.mj-forms-variant-tag {\n max-width: 12rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 0 6px;\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mj-forms-menu-sep {\n height: 1px;\n margin: var(--mj-space-1) var(--mj-space-1);\n background: var(--mj-border-default);\n}\n\n.mj-forms-menu-search {\n position: relative;\n display: flex;\n padding: var(--mj-space-1);\n}\n\n.mj-forms-menu-search .mj-section-search {\n flex: 1;\n width: auto;\n max-width: none;\n}\n\n/* IS-A hierarchy breadcrumb row below the toolbar */\n.mj-forms-hierarchy-row {\n display: flex;\n align-items: center;\n padding: var(--mj-space-2) 16px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n overflow-x: auto;\n}\n\n.mj-forms-filter-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-1);\n max-width: 220px;\n padding: 2px 4px 2px 10px;\n border: 1px solid var(--mj-border-focus);\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n color: var(--mj-text-primary);\n font-size: 12px;\n}\n\n.mj-forms-filter-chip-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mj-forms-filter-chip-clear {\n display: grid;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 0;\n border-radius: var(--mj-radius-full);\n background: transparent;\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mj-forms-filter-chip-clear:hover,\n.mj-forms-filter-chip-clear:focus-visible {\n background: var(--mj-bg-surface-active);\n color: var(--mj-text-primary);\n outline: none;\n}\n\n.mj-forms-toolbar__btn--active {\n background: color-mix(in srgb, var(--mj-brand-primary, #3b82f6) 14%, transparent);\n color: var(--mj-brand-primary, #3b82f6);\n border-color: var(--mj-brand-primary, #3b82f6);\n}\n\n.mj-forms-edit-banner-conflicts {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-left: 10px;\n padding: 3px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-status-warning, #f59e0b) 18%, transparent);\n color: var(--mj-status-warning-text, #b45309);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning, #f59e0b) 40%, transparent);\n}\n\n/* ============================================\n COLLAPSED READ-MODE TRIGGER PILL\n Zero-layout-height corner pill ([\u270E Edit | \u2022\u2022\u2022])\n ============================================ */\n.mj-forms-toolbar-collapsed-pill {\n position: absolute;\n top: 10px;\n right: 16px;\n z-index: 45;\n display: inline-flex;\n align-items: center;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface-card));\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full, 9999px);\n box-shadow: var(--mj-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));\n padding: 2px;\n gap: 2px;\n}\n\n.mj-forms-collapsed-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n min-height: 28px;\n padding: 5px 10px;\n font-family: inherit;\n font-size: 12.5px;\n font-weight: var(--mj-font-semibold, 600);\n line-height: 1;\n color: var(--mj-text-primary);\n background: transparent;\n border: none;\n border-radius: var(--mj-radius-full, 9999px);\n cursor: pointer;\n transition: background var(--mj-transition-base, 150ms) ease, color var(--mj-transition-base, 150ms) ease;\n white-space: nowrap;\n}\n\n.mj-forms-collapsed-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-hover);\n}\n\n.mj-forms-collapsed-btn:focus-visible {\n outline: none;\n box-shadow: var(--mj-focus-ring);\n}\n\n.mj-forms-collapsed-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mj-forms-collapsed-btn--edit {\n color: var(--mj-brand-primary);\n padding: 5px 12px;\n}\n\n.mj-forms-collapsed-btn--edit:hover:not(:disabled) {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n}\n\n.mj-forms-collapsed-btn--edit + .mj-forms-collapsed-btn--expand {\n position: relative;\n}\n\n.mj-forms-collapsed-btn--edit + .mj-forms-collapsed-btn--expand::before {\n content: '';\n position: absolute;\n left: -2px;\n top: 6px;\n bottom: 6px;\n width: 1px;\n background: var(--mj-border-default);\n}\n\n/* ============================================\n MOBILE TOOLBAR & EDIT BANNER DENSITY (<= 768px)\n ============================================ */\n@media (max-width: 768px) {\n /* Accordion forms (no section rail): slim 40px right-aligned bar so the pill never overlaps\n the first collapsible panel's header or collapse chevron. */\n .mj-forms-toolbar-collapsed-pill {\n position: sticky;\n top: 0;\n right: auto;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n width: 100%;\n height: 40px;\n box-sizing: border-box;\n padding: 0 12px;\n gap: 2px;\n border-radius: 0;\n border-top: none;\n border-left: none;\n border-right: none;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n box-shadow: none;\n }\n\n /* Left-nav forms: dock flush as the right-side cap on the 44px mobile section rail */\n .mj-forms-toolbar-collapsed-pill.mj-forms-toolbar-collapsed-pill--rail {\n position: absolute;\n top: 0;\n right: 0;\n width: auto;\n height: 44px;\n padding: 0 8px;\n border-left: 1px solid var(--mj-border-default);\n box-shadow: -6px 0 10px -6px rgba(0, 0, 0, 0.08);\n }\n\n .mj-forms-collapsed-btn {\n height: 34px;\n min-height: 34px;\n padding: 0 10px;\n font-size: 12.5px;\n }\n\n .mj-forms-collapsed-btn--edit {\n padding: 0 11px;\n }\n\n .mj-forms-toolbar {\n padding: 8px 12px;\n gap: 6px;\n flex-wrap: wrap;\n overflow: visible;\n }\n\n .mj-forms-toolbar .mj-forms-btn {\n padding: 6px 10px;\n font-size: 12.5px;\n }\n\n .mj-forms-edit-banner {\n padding: 8px 12px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n\n /* Hide verbose record subtitle in mobile edit banner so Save/Discard fit on 1 row */\n .mj-forms-edit-banner-record-name,\n .mj-forms-dirty-chips {\n display: none;\n }\n\n /* Phone: More and View are bottom sheets. The sheet owns position, surface and\n scrolling; the menu keeps only its row layout. */\n .mj-forms-menu--sheet {\n position: static;\n min-width: 0;\n max-height: none;\n overflow: visible;\n padding: 0 var(--mj-space-2) var(--mj-space-3);\n background: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n\n .mj-forms-menu--sheet .mj-forms-menu-item,\n .mj-forms-menu--sheet .mj-form-variant-picker-row {\n min-height: 44px;\n }\n\n .mj-forms-menu--sheet .mj-section-search {\n max-width: none;\n width: 100%;\n }\n}\n\n"] }]
|
|
2353
2857
|
}], null, { Form: [{
|
|
2354
2858
|
type: Input
|
|
2355
2859
|
}], _deprecatedForm: [{
|
|
@@ -2381,6 +2885,10 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2381
2885
|
type: Input
|
|
2382
2886
|
}], LinkCount: [{
|
|
2383
2887
|
type: Input
|
|
2888
|
+
}], CommentsOpen: [{
|
|
2889
|
+
type: Input
|
|
2890
|
+
}], CommentCount: [{
|
|
2891
|
+
type: Input
|
|
2384
2892
|
}], ConflictCount: [{
|
|
2385
2893
|
type: Input
|
|
2386
2894
|
}], AttachmentCount: [{
|
|
@@ -2427,6 +2935,8 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2427
2935
|
type: Input
|
|
2428
2936
|
}], CurrentVariantID: [{
|
|
2429
2937
|
type: Input
|
|
2938
|
+
}], FormModeSwitch: [{
|
|
2939
|
+
type: Input
|
|
2430
2940
|
}], ToolbarItemClick: [{
|
|
2431
2941
|
type: Output
|
|
2432
2942
|
}], Navigate: [{
|
|
@@ -2463,6 +2973,8 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2463
2973
|
type: Output
|
|
2464
2974
|
}], LinksRequest: [{
|
|
2465
2975
|
type: Output
|
|
2976
|
+
}], CommentsRequest: [{
|
|
2977
|
+
type: Output
|
|
2466
2978
|
}], AskAIRequested: [{
|
|
2467
2979
|
type: Output
|
|
2468
2980
|
}], ActionPinChanged: [{
|
|
@@ -2494,5 +3006,5 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
2494
3006
|
}], CloneCompleted: [{
|
|
2495
3007
|
type: Output
|
|
2496
3008
|
}] }); })();
|
|
2497
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormToolbarComponent, { className: "MjFormToolbarComponent", filePath: "src/lib/toolbar/form-toolbar.component.ts", lineNumber:
|
|
3009
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormToolbarComponent, { className: "MjFormToolbarComponent", filePath: "src/lib/toolbar/form-toolbar.component.ts", lineNumber: 96 }); })();
|
|
2498
3010
|
//# sourceMappingURL=form-toolbar.component.js.map
|