@memberjunction/ng-base-forms 6.2.0-edge.0 → 6.2.0-edge.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/base-form-component.d.ts +34 -0
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +68 -1
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/base-form-section-info.js +5 -5
- package/dist/lib/base-form-section-info.js.map +1 -1
- package/dist/lib/chrome/resolve-form-chrome.d.ts.map +1 -1
- package/dist/lib/chrome/resolve-form-chrome.js +22 -12
- package/dist/lib/chrome/resolve-form-chrome.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +41 -12
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -1
- package/dist/lib/container/record-form-container.component.js +476 -378
- package/dist/lib/container/record-form-container.component.js.map +1 -1
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts +150 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.d.ts.map +1 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.js +263 -0
- package/dist/lib/duplicate-entry-check/duplicate-entry-check.js.map +1 -0
- package/dist/lib/explorer-entity-data-grid.component.d.ts +18 -1
- package/dist/lib/explorer-entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/explorer-entity-data-grid.component.js +38 -10
- package/dist/lib/explorer-entity-data-grid.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +42 -5
- package/dist/lib/field/form-field.component.d.ts.map +1 -1
- package/dist/lib/field/form-field.component.js +118 -23
- package/dist/lib/field/form-field.component.js.map +1 -1
- package/dist/lib/form-field-edit.coordinator.d.ts +25 -0
- package/dist/lib/form-field-edit.coordinator.d.ts.map +1 -0
- package/dist/lib/form-field-edit.coordinator.js +27 -0
- package/dist/lib/form-field-edit.coordinator.js.map +1 -0
- package/dist/lib/form-state.service.d.ts +58 -0
- package/dist/lib/form-state.service.d.ts.map +1 -1
- package/dist/lib/form-state.service.js +156 -40
- package/dist/lib/form-state.service.js.map +1 -1
- package/dist/lib/host/entity-form-host.component.d.ts +10 -2
- package/dist/lib/host/entity-form-host.component.d.ts.map +1 -1
- package/dist/lib/host/entity-form-host.component.js +24 -8
- package/dist/lib/host/entity-form-host.component.js.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.d.ts +16 -4
- package/dist/lib/interactive-form/interactive-form.component.d.ts.map +1 -1
- package/dist/lib/interactive-form/interactive-form.component.js +38 -12
- package/dist/lib/interactive-form/interactive-form.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-card.component.d.ts +3 -3
- package/dist/lib/isa-related-panel/isa-related-card.component.js +6 -6
- package/dist/lib/isa-related-panel/isa-related-card.component.js.map +1 -1
- package/dist/lib/isa-related-panel/isa-related-panel.component.d.ts +3 -3
- package/dist/lib/isa-related-panel/isa-related-panel.component.js +8 -8
- package/dist/lib/isa-related-panel/isa-related-panel.component.js.map +1 -1
- package/dist/lib/overlays/form-slide-in.component.d.ts +2 -0
- package/dist/lib/overlays/form-slide-in.component.d.ts.map +1 -1
- package/dist/lib/overlays/form-slide-in.component.js +5 -1
- package/dist/lib/overlays/form-slide-in.component.js.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts +9 -9
- package/dist/lib/panel/collapsible-panel.component.js +23 -23
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -1
- package/dist/lib/panel-slot/base-form-panel.d.ts +2 -0
- package/dist/lib/panel-slot/base-form-panel.d.ts.map +1 -1
- package/dist/lib/panel-slot/base-form-panel.js +5 -1
- package/dist/lib/panel-slot/base-form-panel.js.map +1 -1
- package/dist/lib/panel-slot/form-contribution.d.ts +12 -0
- package/dist/lib/panel-slot/form-contribution.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-contribution.js +43 -10
- package/dist/lib/panel-slot/form-contribution.js.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts +10 -0
- package/dist/lib/panel-slot/form-slot-coordinator.service.d.ts.map +1 -1
- package/dist/lib/panel-slot/form-slot-coordinator.service.js +25 -5
- package/dist/lib/panel-slot/form-slot-coordinator.service.js.map +1 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts +2 -0
- package/dist/lib/panel-slot/related-entity-grid-panel.component.d.ts.map +1 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js +5 -1
- package/dist/lib/panel-slot/related-entity-grid-panel.component.js.map +1 -1
- package/dist/lib/section-loader-component.d.ts +5 -1
- package/dist/lib/section-loader-component.d.ts.map +1 -1
- package/dist/lib/section-loader-component.js +13 -5
- package/dist/lib/section-loader-component.js.map +1 -1
- package/dist/lib/section-manager/section-manager.component.d.ts +2 -2
- package/dist/lib/section-manager/section-manager.component.js +6 -6
- package/dist/lib/section-manager/section-manager.component.js.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts +127 -7
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.js +935 -334
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -1
- package/dist/lib/types/form-events.d.ts +6 -0
- package/dist/lib/types/form-events.d.ts.map +1 -1
- package/dist/lib/types/form-events.js +6 -0
- package/dist/lib/types/form-events.js.map +1 -1
- package/dist/lib/types/form-toolbar-item.d.ts +20 -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 +7 -0
- package/dist/lib/types/form-types.d.ts.map +1 -1
- package/dist/lib/types/form-types.js +5 -1
- package/dist/lib/types/form-types.js.map +1 -1
- package/dist/lib/types/toolbar-config.d.ts +16 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -1
- package/dist/lib/types/toolbar-config.js +3 -0
- package/dist/lib/types/toolbar-config.js.map +1 -1
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +7 -3
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +2 -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 -18
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject } from '@angular/core';
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef, inject, ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { takeUntil } from 'rxjs/operators';
|
|
4
4
|
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
|
|
5
|
+
import { CompositeKey, LogError } from '@memberjunction/core';
|
|
5
6
|
import { UUIDsEqual } from '@memberjunction/global';
|
|
7
|
+
import { UserInfoEngine } from '@memberjunction/core-entities';
|
|
8
|
+
import { RecordCloneService } from '@memberjunction/ng-record-clone';
|
|
6
9
|
import { DEFAULT_TOOLBAR_CONFIG } from '../types/toolbar-config';
|
|
7
10
|
import { IsAccordionFormChrome } from '../chrome/form-chrome';
|
|
8
11
|
import { DiscoverISADescendants, BuildDescendantTree } from '../isa-related-panel/isa-hierarchy-utils';
|
|
9
12
|
import { FormRecordRefreshCoordinator } from '../form-record-refresh.coordinator';
|
|
10
|
-
import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, BeforeCancelEventArgs, BeforeHistoryViewEventArgs, BeforeListManagementEventArgs } from '../types/form-events';
|
|
13
|
+
import { BeforeSaveEventArgs, BeforeDeleteEventArgs, BeforeRefreshEventArgs, BeforeCancelEventArgs, BeforeHistoryViewEventArgs, BeforeListManagementEventArgs, BeforeCloneEventArgs } from '../types/form-events';
|
|
11
14
|
import * as i0 from "@angular/core";
|
|
12
15
|
import * as i1 from "@angular/common";
|
|
16
|
+
import * as i2 from "@memberjunction/ng-record-clone";
|
|
13
17
|
const _c0 = [[["", "toolbar-additional-controls", ""]]];
|
|
14
18
|
const _c1 = ["[toolbar-additional-controls]"];
|
|
15
|
-
const _c2 = a0 => ({
|
|
19
|
+
const _c2 = a0 => ({ item: a0 });
|
|
20
|
+
const _c3 = a0 => ({ items: a0 });
|
|
16
21
|
const _forTrack0 = ($index, $item) => $item.Key;
|
|
17
22
|
const _forTrack1 = ($index, $item) => $item.ID;
|
|
18
23
|
const _forTrack2 = ($index, $item) => $item.EntityName;
|
|
19
24
|
function MjFormToolbarComponent_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵelement(0, "i",
|
|
21
|
-
i0.ɵɵelementStart(1, "span",
|
|
25
|
+
i0.ɵɵelement(0, "i", 13);
|
|
26
|
+
i0.ɵɵelementStart(1, "span", 14)(2, "strong");
|
|
22
27
|
i0.ɵɵtext(3);
|
|
23
28
|
i0.ɵɵelementEnd();
|
|
24
29
|
i0.ɵɵtext(4);
|
|
@@ -31,8 +36,8 @@ function MjFormToolbarComponent_Conditional_0_Conditional_1_Template(rf, ctx) {
|
|
|
31
36
|
i0.ɵɵtextInterpolate2(" field", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "" : "s", " modified \u2014 ", ctx_r1.DirtyFieldDisplayNames.join(", "), " ");
|
|
32
37
|
} }
|
|
33
38
|
function MjFormToolbarComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
-
i0.ɵɵelement(0, "i",
|
|
35
|
-
i0.ɵɵelementStart(1, "span",
|
|
39
|
+
i0.ɵɵelement(0, "i", 15);
|
|
40
|
+
i0.ɵɵelementStart(1, "span", 16);
|
|
36
41
|
i0.ɵɵtext(2);
|
|
37
42
|
i0.ɵɵelementEnd();
|
|
38
43
|
} if (rf & 2) {
|
|
@@ -41,7 +46,7 @@ function MjFormToolbarComponent_Conditional_0_Conditional_2_Template(rf, ctx) {
|
|
|
41
46
|
i0.ɵɵtextInterpolate1("Editing: ", ctx_r1.RecordDisplayName);
|
|
42
47
|
} }
|
|
43
48
|
function MjFormToolbarComponent_Conditional_0_For_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
-
i0.ɵɵelement(0, "i",
|
|
49
|
+
i0.ɵɵelement(0, "i", 18);
|
|
45
50
|
} }
|
|
46
51
|
function MjFormToolbarComponent_Conditional_0_For_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
47
52
|
i0.ɵɵelement(0, "i");
|
|
@@ -50,7 +55,7 @@ function MjFormToolbarComponent_Conditional_0_For_6_Conditional_2_Template(rf, c
|
|
|
50
55
|
i0.ɵɵclassMap(item_r4.Icon);
|
|
51
56
|
} }
|
|
52
57
|
function MjFormToolbarComponent_Conditional_0_For_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
-
i0.ɵɵelementStart(0, "span",
|
|
58
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
54
59
|
i0.ɵɵtext(1);
|
|
55
60
|
i0.ɵɵelementEnd();
|
|
56
61
|
} if (rf & 2) {
|
|
@@ -59,7 +64,7 @@ function MjFormToolbarComponent_Conditional_0_For_6_Conditional_3_Template(rf, c
|
|
|
59
64
|
i0.ɵɵtextInterpolate(item_r4.Text);
|
|
60
65
|
} }
|
|
61
66
|
function MjFormToolbarComponent_Conditional_0_For_6_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
-
i0.ɵɵelementStart(0, "span",
|
|
67
|
+
i0.ɵɵelementStart(0, "span", 20);
|
|
63
68
|
i0.ɵɵtext(1);
|
|
64
69
|
i0.ɵɵelementEnd();
|
|
65
70
|
} if (rf & 2) {
|
|
@@ -69,11 +74,11 @@ function MjFormToolbarComponent_Conditional_0_For_6_Conditional_4_Template(rf, c
|
|
|
69
74
|
} }
|
|
70
75
|
function MjFormToolbarComponent_Conditional_0_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
71
76
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
72
|
-
i0.ɵɵelementStart(0, "button",
|
|
77
|
+
i0.ɵɵelementStart(0, "button", 17);
|
|
73
78
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_For_6_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)); });
|
|
74
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_6_Conditional_1_Template, 1, 0, "i",
|
|
75
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_6_Conditional_3_Template, 2, 1, "span",
|
|
76
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_6_Conditional_4_Template, 2, 1, "span",
|
|
79
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_6_Conditional_1_Template, 1, 0, "i", 18)(2, MjFormToolbarComponent_Conditional_0_For_6_Conditional_2_Template, 1, 2, "i", 19);
|
|
80
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_6_Conditional_3_Template, 2, 1, "span", 10);
|
|
81
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_6_Conditional_4_Template, 2, 1, "span", 20);
|
|
77
82
|
i0.ɵɵelementEnd();
|
|
78
83
|
} if (rf & 2) {
|
|
79
84
|
const item_r4 = ctx.$implicit;
|
|
@@ -89,7 +94,7 @@ function MjFormToolbarComponent_Conditional_0_For_6_Template(rf, ctx) { if (rf &
|
|
|
89
94
|
i0.ɵɵconditional(item_r4.Badge != null ? 4 : -1);
|
|
90
95
|
} }
|
|
91
96
|
function MjFormToolbarComponent_Conditional_0_For_16_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵelement(0, "i",
|
|
97
|
+
i0.ɵɵelement(0, "i", 18);
|
|
93
98
|
} }
|
|
94
99
|
function MjFormToolbarComponent_Conditional_0_For_16_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
95
100
|
i0.ɵɵelement(0, "i");
|
|
@@ -98,7 +103,7 @@ function MjFormToolbarComponent_Conditional_0_For_16_Conditional_2_Template(rf,
|
|
|
98
103
|
i0.ɵɵclassMap(item_r6.Icon);
|
|
99
104
|
} }
|
|
100
105
|
function MjFormToolbarComponent_Conditional_0_For_16_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
-
i0.ɵɵelementStart(0, "span",
|
|
106
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
102
107
|
i0.ɵɵtext(1);
|
|
103
108
|
i0.ɵɵelementEnd();
|
|
104
109
|
} if (rf & 2) {
|
|
@@ -107,7 +112,7 @@ function MjFormToolbarComponent_Conditional_0_For_16_Conditional_3_Template(rf,
|
|
|
107
112
|
i0.ɵɵtextInterpolate(item_r6.Text);
|
|
108
113
|
} }
|
|
109
114
|
function MjFormToolbarComponent_Conditional_0_For_16_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
-
i0.ɵɵelementStart(0, "span",
|
|
115
|
+
i0.ɵɵelementStart(0, "span", 20);
|
|
111
116
|
i0.ɵɵtext(1);
|
|
112
117
|
i0.ɵɵelementEnd();
|
|
113
118
|
} if (rf & 2) {
|
|
@@ -117,11 +122,11 @@ function MjFormToolbarComponent_Conditional_0_For_16_Conditional_4_Template(rf,
|
|
|
117
122
|
} }
|
|
118
123
|
function MjFormToolbarComponent_Conditional_0_For_16_Template(rf, ctx) { if (rf & 1) {
|
|
119
124
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
120
|
-
i0.ɵɵelementStart(0, "button",
|
|
125
|
+
i0.ɵɵelementStart(0, "button", 17);
|
|
121
126
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_For_16_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)); });
|
|
122
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_16_Conditional_1_Template, 1, 0, "i",
|
|
123
|
-
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_16_Conditional_3_Template, 2, 1, "span",
|
|
124
|
-
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_16_Conditional_4_Template, 2, 1, "span",
|
|
127
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_For_16_Conditional_1_Template, 1, 0, "i", 18)(2, MjFormToolbarComponent_Conditional_0_For_16_Conditional_2_Template, 1, 2, "i", 19);
|
|
128
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_0_For_16_Conditional_3_Template, 2, 1, "span", 10);
|
|
129
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_0_For_16_Conditional_4_Template, 2, 1, "span", 20);
|
|
125
130
|
i0.ɵɵelementEnd();
|
|
126
131
|
} if (rf & 2) {
|
|
127
132
|
const item_r6 = ctx.$implicit;
|
|
@@ -138,24 +143,24 @@ function MjFormToolbarComponent_Conditional_0_For_16_Template(rf, ctx) { if (rf
|
|
|
138
143
|
} }
|
|
139
144
|
function MjFormToolbarComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
140
145
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
141
|
-
i0.ɵɵelementStart(0, "div",
|
|
146
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
142
147
|
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_0_Conditional_1_Template, 5, 3)(2, MjFormToolbarComponent_Conditional_0_Conditional_2_Template, 3, 1);
|
|
143
|
-
i0.ɵɵelement(3, "div",
|
|
144
|
-
i0.ɵɵelementStart(4, "div",
|
|
145
|
-
i0.ɵɵrepeaterCreate(5, MjFormToolbarComponent_Conditional_0_For_6_Template, 5, 17, "button",
|
|
146
|
-
i0.ɵɵelementStart(7, "button",
|
|
148
|
+
i0.ɵɵelement(3, "div", 5);
|
|
149
|
+
i0.ɵɵelementStart(4, "div", 6);
|
|
150
|
+
i0.ɵɵrepeaterCreate(5, MjFormToolbarComponent_Conditional_0_For_6_Template, 5, 17, "button", 7, _forTrack0);
|
|
151
|
+
i0.ɵɵelementStart(7, "button", 8);
|
|
147
152
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnSave()); });
|
|
148
|
-
i0.ɵɵelement(8, "i",
|
|
149
|
-
i0.ɵɵelementStart(9, "span",
|
|
153
|
+
i0.ɵɵelement(8, "i", 9);
|
|
154
|
+
i0.ɵɵelementStart(9, "span", 10);
|
|
150
155
|
i0.ɵɵtext(10, "Save Changes");
|
|
151
156
|
i0.ɵɵelementEnd()();
|
|
152
|
-
i0.ɵɵelementStart(11, "button",
|
|
157
|
+
i0.ɵɵelementStart(11, "button", 11);
|
|
153
158
|
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_0_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancel()); });
|
|
154
|
-
i0.ɵɵelement(12, "i",
|
|
155
|
-
i0.ɵɵelementStart(13, "span",
|
|
159
|
+
i0.ɵɵelement(12, "i", 12);
|
|
160
|
+
i0.ɵɵelementStart(13, "span", 10);
|
|
156
161
|
i0.ɵɵtext(14, "Discard");
|
|
157
162
|
i0.ɵɵelementEnd()();
|
|
158
|
-
i0.ɵɵrepeaterCreate(15, MjFormToolbarComponent_Conditional_0_For_16_Template, 5, 17, "button",
|
|
163
|
+
i0.ɵɵrepeaterCreate(15, MjFormToolbarComponent_Conditional_0_For_16_Template, 5, 17, "button", 7, _forTrack0);
|
|
159
164
|
i0.ɵɵelementEnd()();
|
|
160
165
|
} if (rf & 2) {
|
|
161
166
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -170,321 +175,525 @@ function MjFormToolbarComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
170
175
|
i0.ɵɵadvance(4);
|
|
171
176
|
i0.ɵɵrepeater(ctx_r1.ResolvedEditAfterSaveItems);
|
|
172
177
|
} }
|
|
173
|
-
function
|
|
174
|
-
i0.ɵɵ
|
|
178
|
+
function MjFormToolbarComponent_Conditional_1_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
179
|
+
i0.ɵɵelementContainer(0, 23);
|
|
180
|
+
} if (rf & 2) {
|
|
181
|
+
const item_r7 = ctx.$implicit;
|
|
182
|
+
i0.ɵɵnextContext(2);
|
|
183
|
+
const actionButtonTpl_r8 = i0.ɵɵreference(3);
|
|
184
|
+
i0.ɵɵproperty("ngTemplateOutlet", actionButtonTpl_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r7));
|
|
175
185
|
} }
|
|
176
|
-
function
|
|
177
|
-
i0.ɵɵ
|
|
186
|
+
function MjFormToolbarComponent_Conditional_1_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
+
i0.ɵɵelementContainer(0, 23);
|
|
178
188
|
} if (rf & 2) {
|
|
179
|
-
const
|
|
180
|
-
i0.ɵɵ
|
|
189
|
+
const item_r9 = ctx.$implicit;
|
|
190
|
+
i0.ɵɵnextContext(2);
|
|
191
|
+
const actionButtonTpl_r8 = i0.ɵɵreference(3);
|
|
192
|
+
i0.ɵɵproperty("ngTemplateOutlet", actionButtonTpl_r8)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r9));
|
|
181
193
|
} }
|
|
182
|
-
function
|
|
183
|
-
i0.ɵɵ
|
|
184
|
-
|
|
185
|
-
|
|
194
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
195
|
+
i0.ɵɵelement(0, "i", 18);
|
|
196
|
+
} }
|
|
197
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
198
|
+
i0.ɵɵelement(0, "i");
|
|
186
199
|
} if (rf & 2) {
|
|
187
|
-
const
|
|
188
|
-
i0.ɵɵ
|
|
189
|
-
i0.ɵɵtextInterpolate(item_r8.Text);
|
|
200
|
+
const item_r12 = i0.ɵɵnextContext().$implicit;
|
|
201
|
+
i0.ɵɵclassMap(item_r12.Icon);
|
|
190
202
|
} }
|
|
191
|
-
function
|
|
192
|
-
i0.ɵɵelementStart(0, "span");
|
|
203
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
204
|
+
i0.ɵɵelementStart(0, "span", 37);
|
|
193
205
|
i0.ɵɵtext(1);
|
|
194
206
|
i0.ɵɵelementEnd();
|
|
195
207
|
} if (rf & 2) {
|
|
196
|
-
const
|
|
197
|
-
i0.ɵɵclassMap(item_r8.Key === "history" ? "mj-version-count-badge" : "mj-list-count-badge");
|
|
208
|
+
const item_r12 = i0.ɵɵnextContext().$implicit;
|
|
198
209
|
i0.ɵɵadvance();
|
|
199
|
-
i0.ɵɵtextInterpolate(
|
|
210
|
+
i0.ɵɵtextInterpolate(item_r12.Badge);
|
|
200
211
|
} }
|
|
201
|
-
function
|
|
202
|
-
const
|
|
203
|
-
i0.ɵɵelementStart(0, "button",
|
|
204
|
-
i0.ɵɵlistener("click", function
|
|
205
|
-
i0.ɵɵ
|
|
206
|
-
i0.ɵɵconditionalCreate(3,
|
|
207
|
-
i0.ɵɵ
|
|
212
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
213
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
214
|
+
i0.ɵɵelementStart(0, "div", 33)(1, "button", 34);
|
|
215
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Template_button_click_1_listener($event) { const item_r12 = i0.ɵɵrestoreView(_r11).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnMenuItemClick(item_r12, $event)); });
|
|
216
|
+
i0.ɵɵelementStart(2, "span", 35);
|
|
217
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_3_Template, 1, 0, "i", 18)(4, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_4_Template, 1, 2, "i", 19);
|
|
218
|
+
i0.ɵɵelementEnd();
|
|
219
|
+
i0.ɵɵelementStart(5, "span", 36);
|
|
220
|
+
i0.ɵɵtext(6);
|
|
221
|
+
i0.ɵɵelementEnd();
|
|
222
|
+
i0.ɵɵconditionalCreate(7, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Conditional_7_Template, 2, 1, "span", 37);
|
|
208
223
|
i0.ɵɵelementEnd();
|
|
224
|
+
i0.ɵɵelementStart(8, "button", 38);
|
|
225
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Template_button_click_8_listener() { const item_r12 = i0.ɵɵrestoreView(_r11).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.TogglePin(item_r12.Key)); });
|
|
226
|
+
i0.ɵɵelement(9, "i", 39);
|
|
227
|
+
i0.ɵɵelementEnd()();
|
|
209
228
|
} if (rf & 2) {
|
|
210
|
-
const
|
|
211
|
-
i0.ɵɵ
|
|
212
|
-
i0.ɵɵclassProp("
|
|
213
|
-
i0.ɵɵproperty("disabled", item_r8.Disabled || item_r8.IsLoading)("title", item_r8.Description);
|
|
229
|
+
const item_r12 = ctx.$implicit;
|
|
230
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
231
|
+
i0.ɵɵclassProp("disabled", item_r12.Disabled);
|
|
214
232
|
i0.ɵɵadvance();
|
|
215
|
-
i0.ɵɵ
|
|
233
|
+
i0.ɵɵproperty("disabled", item_r12.Disabled || item_r12.IsLoading)("title", item_r12.Description);
|
|
216
234
|
i0.ɵɵadvance(2);
|
|
217
|
-
i0.ɵɵconditional(
|
|
235
|
+
i0.ɵɵconditional(item_r12.IsLoading ? 3 : item_r12.Icon ? 4 : -1);
|
|
236
|
+
i0.ɵɵadvance(3);
|
|
237
|
+
i0.ɵɵtextInterpolate(item_r12.MenuLabel);
|
|
238
|
+
i0.ɵɵadvance();
|
|
239
|
+
i0.ɵɵconditional(item_r12.Badge != null ? 7 : -1);
|
|
218
240
|
i0.ɵɵadvance();
|
|
219
|
-
i0.ɵɵ
|
|
241
|
+
i0.ɵɵclassProp("pinned", ctx_r1.IsPinned(item_r12.Key))("over-cap", ctx_r1.IsPinnedOverCap(item_r12.Key));
|
|
242
|
+
i0.ɵɵproperty("title", ctx_r1.IsPinnedOverCap(item_r12.Key) ? "Pinned, but the toolbar is full (" + ctx_r1.MaxPinnedActions + " max): unpin another to show it, or click to unpin" : ctx_r1.IsPinned(item_r12.Key) ? "Unpin from toolbar" : ctx_r1.CanPinMore ? "Pin to toolbar" : "Unpin another action first (" + ctx_r1.MaxPinnedActions + " max)");
|
|
243
|
+
i0.ɵɵattribute("aria-disabled", !ctx_r1.IsPinned(item_r12.Key) && !ctx_r1.CanPinMore ? "true" : null)("aria-pressed", ctx_r1.IsPinned(item_r12.Key))("aria-label", "Pin " + item_r12.MenuLabel);
|
|
220
244
|
} }
|
|
221
|
-
function
|
|
222
|
-
i0.ɵɵelement(0, "div",
|
|
245
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
+
i0.ɵɵelement(0, "div", 40);
|
|
223
247
|
} }
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
i0.ɵɵ
|
|
227
|
-
i0.ɵɵ
|
|
228
|
-
i0.ɵɵ
|
|
229
|
-
i0.ɵɵ
|
|
230
|
-
i0.ɵɵ
|
|
231
|
-
i0.ɵɵelementStart(3, "span", 32);
|
|
232
|
-
i0.ɵɵelement(4, "i", 33);
|
|
248
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
249
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
250
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Conditional_0_Template, 1, 0, "div", 40);
|
|
251
|
+
i0.ɵɵelementStart(1, "button", 41);
|
|
252
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Template_button_click_1_listener($event) { const del_r14 = i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnMenuItemClick(del_r14, $event)); });
|
|
253
|
+
i0.ɵɵelementStart(2, "span", 35);
|
|
254
|
+
i0.ɵɵelement(3, "i");
|
|
233
255
|
i0.ɵɵelementEnd();
|
|
256
|
+
i0.ɵɵelementStart(4, "span", 36);
|
|
257
|
+
i0.ɵɵtext(5);
|
|
258
|
+
i0.ɵɵelementEnd()();
|
|
234
259
|
} if (rf & 2) {
|
|
235
|
-
const
|
|
236
|
-
i0.ɵɵ
|
|
260
|
+
const del_r14 = ctx;
|
|
261
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
262
|
+
i0.ɵɵconditional(ctx_r1.MoreMenuItems.length > 0 ? 0 : -1);
|
|
263
|
+
i0.ɵɵadvance();
|
|
264
|
+
i0.ɵɵproperty("disabled", del_r14.Disabled)("title", del_r14.Description);
|
|
237
265
|
i0.ɵɵadvance(2);
|
|
238
|
-
i0.ɵɵ
|
|
266
|
+
i0.ɵɵclassMap(del_r14.Icon);
|
|
267
|
+
i0.ɵɵadvance(2);
|
|
268
|
+
i0.ɵɵtextInterpolate(del_r14.MenuLabel);
|
|
239
269
|
} }
|
|
240
|
-
function
|
|
241
|
-
i0.ɵɵ
|
|
270
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
271
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
272
|
+
i0.ɵɵrepeaterCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_For_2_Template, 10, 15, "div", 32, _forTrack0);
|
|
273
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Conditional_3_Template, 6, 6);
|
|
274
|
+
i0.ɵɵelementEnd();
|
|
242
275
|
} if (rf & 2) {
|
|
276
|
+
let tmp_7_0;
|
|
243
277
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
244
|
-
|
|
245
|
-
i0.ɵɵ
|
|
278
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-more");
|
|
279
|
+
i0.ɵɵadvance();
|
|
280
|
+
i0.ɵɵrepeater(ctx_r1.MoreMenuItems);
|
|
281
|
+
i0.ɵɵadvance(2);
|
|
282
|
+
i0.ɵɵconditional((tmp_7_0 = ctx_r1.DeleteMenuItem) ? 3 : -1, tmp_7_0);
|
|
246
283
|
} }
|
|
247
|
-
function
|
|
248
|
-
i0.ɵɵ
|
|
249
|
-
i0.ɵɵ
|
|
250
|
-
i0.ɵɵ
|
|
251
|
-
i0.ɵɵ
|
|
252
|
-
i0.ɵɵ
|
|
253
|
-
i0.ɵɵ
|
|
284
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
285
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
286
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "button", 29);
|
|
287
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_6_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ToggleMoreMenu()); });
|
|
288
|
+
i0.ɵɵelement(2, "i", 30);
|
|
289
|
+
i0.ɵɵelementStart(3, "span", 10);
|
|
290
|
+
i0.ɵɵtext(4, "More");
|
|
291
|
+
i0.ɵɵelementEnd()();
|
|
292
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_6_Conditional_5_Template, 4, 2, "div", 31);
|
|
254
293
|
i0.ɵɵelementEnd();
|
|
255
294
|
} if (rf & 2) {
|
|
256
295
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
296
|
+
i0.ɵɵclassProp("open", ctx_r1.MoreMenuOpen);
|
|
257
297
|
i0.ɵɵadvance();
|
|
258
|
-
i0.ɵɵ
|
|
259
|
-
i0.ɵɵadvance(
|
|
260
|
-
i0.ɵɵ
|
|
261
|
-
i0.ɵɵadvance();
|
|
262
|
-
i0.ɵɵconditional(ctx_r1.DescendantTree.length > 0 ? 5 : -1);
|
|
263
|
-
} }
|
|
264
|
-
function MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
265
|
-
i0.ɵɵelement(0, "i", 46);
|
|
266
|
-
} }
|
|
267
|
-
function MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_For_11_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
268
|
-
i0.ɵɵelement(0, "i", 46);
|
|
298
|
+
i0.ɵɵattribute("aria-expanded", ctx_r1.MoreMenuOpen)("aria-controls", ctx_r1.MenuIdPrefix + "-more");
|
|
299
|
+
i0.ɵɵadvance(4);
|
|
300
|
+
i0.ɵɵconditional(ctx_r1.MoreMenuOpen ? 5 : -1);
|
|
269
301
|
} }
|
|
270
|
-
function
|
|
271
|
-
const
|
|
272
|
-
i0.ɵɵelementStart(0, "
|
|
273
|
-
i0.ɵɵ
|
|
274
|
-
i0.ɵɵelementStart(
|
|
302
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
303
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
304
|
+
i0.ɵɵelementStart(0, "span", 25);
|
|
305
|
+
i0.ɵɵelement(1, "i", 42);
|
|
306
|
+
i0.ɵɵelementStart(2, "span", 43);
|
|
275
307
|
i0.ɵɵtext(3);
|
|
276
308
|
i0.ɵɵelementEnd();
|
|
277
|
-
i0.ɵɵelementStart(4, "
|
|
278
|
-
i0.ɵɵ
|
|
309
|
+
i0.ɵɵelementStart(4, "button", 44);
|
|
310
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_8_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnClearFilter()); });
|
|
311
|
+
i0.ɵɵelement(5, "i", 45);
|
|
279
312
|
i0.ɵɵelementEnd()();
|
|
280
|
-
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_For_11_Conditional_6_Template, 1, 0, "i", 46);
|
|
281
|
-
i0.ɵɵelementEnd();
|
|
282
313
|
} if (rf & 2) {
|
|
283
|
-
const
|
|
284
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
285
|
-
i0.ɵɵclassProp("current", v_r15.ID === ctx_r1.CurrentVariantID)("inactive", v_r15.Status !== "Active");
|
|
314
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
286
315
|
i0.ɵɵadvance(3);
|
|
287
|
-
i0.ɵɵtextInterpolate(
|
|
288
|
-
i0.ɵɵadvance(2);
|
|
289
|
-
i0.ɵɵtextInterpolate(ctx_r1.VariantSubtitle(v_r15));
|
|
290
|
-
i0.ɵɵadvance();
|
|
291
|
-
i0.ɵɵconditional(v_r15.ID === ctx_r1.CurrentVariantID ? 6 : -1);
|
|
316
|
+
i0.ɵɵtextInterpolate(ctx_r1.SearchFilter);
|
|
292
317
|
} }
|
|
293
|
-
function
|
|
294
|
-
|
|
295
|
-
i0.ɵɵ
|
|
296
|
-
i0.ɵɵlistener("mousedown", function MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Template_div_mousedown_0_listener($event) { return $event.preventDefault(); })("click", function MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Template_div_click_0_listener($event) { return $event.stopPropagation(); });
|
|
297
|
-
i0.ɵɵelementStart(1, "div", 41);
|
|
298
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnVariantClick(null)); });
|
|
299
|
-
i0.ɵɵelementStart(2, "div", 42)(3, "span", 43);
|
|
300
|
-
i0.ɵɵtext(4, " Default form ");
|
|
301
|
-
i0.ɵɵelementStart(5, "span", 44);
|
|
302
|
-
i0.ɵɵtext(6, "(default)");
|
|
303
|
-
i0.ɵɵelementEnd()();
|
|
304
|
-
i0.ɵɵelementStart(7, "span", 45);
|
|
305
|
-
i0.ɵɵtext(8, "CodeGen-generated Angular fallback");
|
|
306
|
-
i0.ɵɵelementEnd()();
|
|
307
|
-
i0.ɵɵconditionalCreate(9, MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Conditional_9_Template, 1, 0, "i", 46);
|
|
308
|
-
i0.ɵɵelementEnd();
|
|
309
|
-
i0.ɵɵrepeaterCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_For_11_Template, 7, 7, "div", 47, _forTrack1);
|
|
318
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
319
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
320
|
+
i0.ɵɵtext(1);
|
|
310
321
|
i0.ɵɵelementEnd();
|
|
311
322
|
} if (rf & 2) {
|
|
312
323
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
313
324
|
i0.ɵɵadvance();
|
|
314
|
-
i0.ɵɵclassProp("current", !ctx_r1.CurrentVariantID);
|
|
315
|
-
i0.ɵɵadvance(8);
|
|
316
|
-
i0.ɵɵconditional(!ctx_r1.CurrentVariantID ? 9 : -1);
|
|
317
|
-
i0.ɵɵadvance();
|
|
318
|
-
i0.ɵɵrepeater(ctx_r1.Variants);
|
|
319
|
-
} }
|
|
320
|
-
function MjFormToolbarComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
321
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
322
|
-
i0.ɵɵelementStart(0, "div", 34)(1, "button", 35);
|
|
323
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_7_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ToggleVariantMenu()); })("blur", function MjFormToolbarComponent_Conditional_1_Conditional_7_Template_button_blur_1_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.CloseVariantMenu()); });
|
|
324
|
-
i0.ɵɵelement(2, "i", 36);
|
|
325
|
-
i0.ɵɵelementStart(3, "span", 37);
|
|
326
|
-
i0.ɵɵtext(4);
|
|
327
|
-
i0.ɵɵelementEnd();
|
|
328
|
-
i0.ɵɵelement(5, "i", 38);
|
|
329
|
-
i0.ɵɵelementEnd();
|
|
330
|
-
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_7_Conditional_6_Template, 12, 3, "div", 39);
|
|
331
|
-
i0.ɵɵelementEnd();
|
|
332
|
-
} if (rf & 2) {
|
|
333
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
334
|
-
i0.ɵɵclassProp("open", ctx_r1.VariantMenuOpen);
|
|
335
|
-
i0.ɵɵadvance();
|
|
336
|
-
i0.ɵɵproperty("title", "Form variant: " + ctx_r1.CurrentVariantLabel + " \u2014 click to change");
|
|
337
|
-
i0.ɵɵadvance(3);
|
|
338
325
|
i0.ɵɵtextInterpolate(ctx_r1.CurrentVariantLabel);
|
|
339
|
-
i0.ɵɵadvance(2);
|
|
340
|
-
i0.ɵɵconditional(ctx_r1.VariantMenuOpen ? 6 : -1);
|
|
341
326
|
} }
|
|
342
|
-
function
|
|
343
|
-
const
|
|
327
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
328
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
344
329
|
i0.ɵɵelementStart(0, "button", 55);
|
|
345
|
-
i0.ɵɵlistener("click", function
|
|
346
|
-
i0.ɵɵelement(1, "i",
|
|
330
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnClearFilter()); });
|
|
331
|
+
i0.ɵɵelement(1, "i", 45);
|
|
347
332
|
i0.ɵɵelementEnd();
|
|
348
333
|
} }
|
|
349
|
-
function
|
|
350
|
-
const
|
|
351
|
-
i0.ɵɵelementStart(0, "div",
|
|
352
|
-
i0.ɵɵlistener("input", function
|
|
334
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
335
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
336
|
+
i0.ɵɵelementStart(0, "div", 50)(1, "input", 53);
|
|
337
|
+
i0.ɵɵlistener("input", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnFilterInput($event)); });
|
|
353
338
|
i0.ɵɵelementEnd();
|
|
354
|
-
i0.ɵɵconditionalCreate(2,
|
|
339
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Conditional_2_Template, 2, 0, "button", 54);
|
|
355
340
|
i0.ɵɵelementEnd();
|
|
356
341
|
} if (rf & 2) {
|
|
357
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
342
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
358
343
|
i0.ɵɵadvance();
|
|
359
344
|
i0.ɵɵclassProp("mj-section-search--active", ctx_r1.SearchFilter);
|
|
360
345
|
i0.ɵɵproperty("value", ctx_r1.SearchFilter);
|
|
361
346
|
i0.ɵɵadvance();
|
|
362
347
|
i0.ɵɵconditional(ctx_r1.SearchFilter ? 2 : -1);
|
|
363
348
|
} }
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
i0.ɵɵ
|
|
367
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_8_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); });
|
|
368
|
-
i0.ɵɵelement(1, "i", 58);
|
|
349
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
350
|
+
i0.ɵɵelementStart(0, "div", 51);
|
|
351
|
+
i0.ɵɵtext(1, "Sections");
|
|
369
352
|
i0.ɵɵelementEnd();
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
i0.ɵɵ
|
|
353
|
+
} }
|
|
354
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
355
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
356
|
+
i0.ɵɵelementStart(0, "button", 56);
|
|
357
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnExpandAll()); });
|
|
358
|
+
i0.ɵɵelementStart(1, "span", 35);
|
|
359
|
+
i0.ɵɵelement(2, "i", 57);
|
|
373
360
|
i0.ɵɵelementEnd();
|
|
361
|
+
i0.ɵɵelementStart(3, "span", 36);
|
|
362
|
+
i0.ɵɵtext(4, "Expand all");
|
|
363
|
+
i0.ɵɵelementEnd()();
|
|
364
|
+
i0.ɵɵelementStart(5, "button", 58);
|
|
365
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_2_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnCollapseAll()); });
|
|
366
|
+
i0.ɵɵelementStart(6, "span", 35);
|
|
367
|
+
i0.ɵɵelement(7, "i", 59);
|
|
368
|
+
i0.ɵɵelementEnd();
|
|
369
|
+
i0.ɵɵelementStart(8, "span", 36);
|
|
370
|
+
i0.ɵɵtext(9, "Collapse all");
|
|
371
|
+
i0.ɵɵelementEnd()();
|
|
374
372
|
} if (rf & 2) {
|
|
375
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
373
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
376
374
|
i0.ɵɵproperty("disabled", ctx_r1.ExpandedSectionCount >= ctx_r1.VisibleSectionCount);
|
|
377
|
-
i0.ɵɵadvance(
|
|
375
|
+
i0.ɵɵadvance(5);
|
|
378
376
|
i0.ɵɵproperty("disabled", ctx_r1.ExpandedSectionCount === 0);
|
|
379
377
|
} }
|
|
380
|
-
function
|
|
381
|
-
const _r19 = i0.ɵɵgetCurrentView();
|
|
382
|
-
i0.ɵɵelementStart(0, "button", 61);
|
|
383
|
-
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_8_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); });
|
|
384
|
-
i0.ɵɵelement(1, "i", 62);
|
|
385
|
-
i0.ɵɵelementEnd();
|
|
386
|
-
} }
|
|
387
|
-
function MjFormToolbarComponent_Conditional_1_Conditional_8_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
378
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
388
379
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
389
|
-
i0.ɵɵelementStart(0, "button",
|
|
390
|
-
i0.ɵɵlistener("click", function
|
|
391
|
-
i0.ɵɵ
|
|
380
|
+
i0.ɵɵelementStart(0, "button", 60);
|
|
381
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnReorderSectionsFromView()); });
|
|
382
|
+
i0.ɵɵelementStart(1, "span", 35);
|
|
383
|
+
i0.ɵɵelement(2, "i", 61);
|
|
392
384
|
i0.ɵɵelementEnd();
|
|
385
|
+
i0.ɵɵelementStart(3, "span", 36);
|
|
386
|
+
i0.ɵɵtext(4, "Reorder sections");
|
|
387
|
+
i0.ɵɵelementEnd()();
|
|
393
388
|
} }
|
|
394
|
-
function
|
|
389
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
395
390
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
396
|
-
i0.ɵɵelementStart(0, "button",
|
|
397
|
-
i0.ɵɵlistener("click", function
|
|
398
|
-
i0.ɵɵ
|
|
391
|
+
i0.ɵɵelementStart(0, "button", 60);
|
|
392
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnResetSectionOrder()); });
|
|
393
|
+
i0.ɵɵelementStart(1, "span", 35);
|
|
394
|
+
i0.ɵɵelement(2, "i", 62);
|
|
395
|
+
i0.ɵɵelementEnd();
|
|
396
|
+
i0.ɵɵelementStart(3, "span", 36);
|
|
397
|
+
i0.ɵɵtext(4, "Reset section order");
|
|
398
|
+
i0.ɵɵelementEnd()();
|
|
399
|
+
} }
|
|
400
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
401
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
402
|
+
i0.ɵɵelementStart(0, "div", 51);
|
|
403
|
+
i0.ɵɵtext(1, "Layout");
|
|
399
404
|
i0.ɵɵelementEnd();
|
|
405
|
+
i0.ɵɵelementStart(2, "button", 60);
|
|
406
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnToggleWidthMode()); });
|
|
407
|
+
i0.ɵɵelementStart(3, "span", 35);
|
|
408
|
+
i0.ɵɵelement(4, "i");
|
|
409
|
+
i0.ɵɵelementEnd();
|
|
410
|
+
i0.ɵɵelementStart(5, "span", 36);
|
|
411
|
+
i0.ɵɵtext(6);
|
|
412
|
+
i0.ɵɵelementEnd()();
|
|
400
413
|
} if (rf & 2) {
|
|
401
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
402
|
-
i0.ɵɵ
|
|
403
|
-
i0.ɵɵadvance();
|
|
414
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
415
|
+
i0.ɵɵadvance(4);
|
|
404
416
|
i0.ɵɵclassMap(ctx_r1.WidthMode === "centered" ? "fa-solid fa-arrows-left-right-to-line" : "fa-solid fa-compress");
|
|
417
|
+
i0.ɵɵadvance(2);
|
|
418
|
+
i0.ɵɵtextInterpolate(ctx_r1.WidthMode === "centered" ? "Use full width" : "Center content");
|
|
405
419
|
} }
|
|
406
|
-
function
|
|
407
|
-
i0.ɵɵ
|
|
408
|
-
i0.ɵɵconditionalCreate(1,
|
|
409
|
-
i0.ɵɵconditionalCreate(2,
|
|
410
|
-
i0.ɵɵconditionalCreate(3,
|
|
411
|
-
i0.ɵɵconditionalCreate(4,
|
|
412
|
-
i0.ɵɵconditionalCreate(5,
|
|
413
|
-
i0.ɵɵelementEnd();
|
|
420
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
421
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_0_Template, 3, 4, "div", 50);
|
|
422
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_1_Template, 2, 0, "div", 51);
|
|
423
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_2_Template, 10, 2);
|
|
424
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_3_Template, 5, 0, "button", 52);
|
|
425
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_4_Template, 5, 0, "button", 52);
|
|
426
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Conditional_5_Template, 7, 3);
|
|
414
427
|
} if (rf & 2) {
|
|
415
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
428
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
429
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowSectionFilter ? 0 : -1);
|
|
416
430
|
i0.ɵɵadvance();
|
|
417
|
-
i0.ɵɵconditional(ctx_r1.Config.
|
|
431
|
+
i0.ɵɵconditional(ctx_r1.ShowExpandCollapseAll || ctx_r1.HasCustomSectionOrder || ctx_r1.Config.ShowSectionManager ? 1 : -1);
|
|
418
432
|
i0.ɵɵadvance();
|
|
419
433
|
i0.ɵɵconditional(ctx_r1.ShowExpandCollapseAll ? 2 : -1);
|
|
420
434
|
i0.ɵɵadvance();
|
|
421
|
-
i0.ɵɵconditional(ctx_r1.
|
|
435
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowSectionManager ? 3 : -1);
|
|
422
436
|
i0.ɵɵadvance();
|
|
423
|
-
i0.ɵɵconditional(ctx_r1.
|
|
437
|
+
i0.ɵɵconditional(ctx_r1.HasCustomSectionOrder ? 4 : -1);
|
|
424
438
|
i0.ɵɵadvance();
|
|
425
439
|
i0.ɵɵconditional(ctx_r1.Config.ShowWidthToggle ? 5 : -1);
|
|
426
440
|
} }
|
|
441
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
442
|
+
i0.ɵɵelement(0, "i", 68);
|
|
443
|
+
} }
|
|
444
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_For_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
445
|
+
i0.ɵɵelement(0, "i", 68);
|
|
446
|
+
} }
|
|
447
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_For_12_Template(rf, ctx) { if (rf & 1) {
|
|
448
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
449
|
+
i0.ɵɵelementStart(0, "button", 70);
|
|
450
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_For_12_Template_button_click_0_listener() { const v_r25 = i0.ɵɵrestoreView(_r24).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnVariantClick(v_r25.ID)); });
|
|
451
|
+
i0.ɵɵelementStart(1, "div", 64)(2, "span", 65);
|
|
452
|
+
i0.ɵɵtext(3);
|
|
453
|
+
i0.ɵɵelementEnd();
|
|
454
|
+
i0.ɵɵelementStart(4, "span", 67);
|
|
455
|
+
i0.ɵɵtext(5);
|
|
456
|
+
i0.ɵɵelementEnd()();
|
|
457
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_For_12_Conditional_6_Template, 1, 0, "i", 68);
|
|
458
|
+
i0.ɵɵelementEnd();
|
|
459
|
+
} if (rf & 2) {
|
|
460
|
+
const v_r25 = ctx.$implicit;
|
|
461
|
+
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
462
|
+
i0.ɵɵclassProp("current", v_r25.ID === ctx_r1.CurrentVariantID)("inactive", v_r25.Status !== "Active");
|
|
463
|
+
i0.ɵɵattribute("aria-pressed", v_r25.ID === ctx_r1.CurrentVariantID);
|
|
464
|
+
i0.ɵɵadvance(3);
|
|
465
|
+
i0.ɵɵtextInterpolate(v_r25.Label);
|
|
466
|
+
i0.ɵɵadvance(2);
|
|
467
|
+
i0.ɵɵtextInterpolate(ctx_r1.VariantSubtitle(v_r25));
|
|
468
|
+
i0.ɵɵadvance();
|
|
469
|
+
i0.ɵɵconditional(v_r25.ID === ctx_r1.CurrentVariantID ? 6 : -1);
|
|
470
|
+
} }
|
|
471
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
472
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
473
|
+
i0.ɵɵelementStart(0, "div", 51);
|
|
474
|
+
i0.ɵɵtext(1, "Form");
|
|
475
|
+
i0.ɵɵelementEnd();
|
|
476
|
+
i0.ɵɵelementStart(2, "button", 63);
|
|
477
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnVariantClick(null)); });
|
|
478
|
+
i0.ɵɵelementStart(3, "div", 64)(4, "span", 65);
|
|
479
|
+
i0.ɵɵtext(5, " Default form ");
|
|
480
|
+
i0.ɵɵelementStart(6, "span", 66);
|
|
481
|
+
i0.ɵɵtext(7, "(default)");
|
|
482
|
+
i0.ɵɵelementEnd()();
|
|
483
|
+
i0.ɵɵelementStart(8, "span", 67);
|
|
484
|
+
i0.ɵɵtext(9, "CodeGen-generated Angular fallback");
|
|
485
|
+
i0.ɵɵelementEnd()();
|
|
486
|
+
i0.ɵɵconditionalCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_Conditional_10_Template, 1, 0, "i", 68);
|
|
487
|
+
i0.ɵɵelementEnd();
|
|
488
|
+
i0.ɵɵrepeaterCreate(11, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_For_12_Template, 7, 8, "button", 69, _forTrack1);
|
|
489
|
+
} if (rf & 2) {
|
|
490
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
491
|
+
i0.ɵɵadvance(2);
|
|
492
|
+
i0.ɵɵclassProp("current", !ctx_r1.CurrentVariantID);
|
|
493
|
+
i0.ɵɵattribute("aria-pressed", !ctx_r1.CurrentVariantID);
|
|
494
|
+
i0.ɵɵadvance(8);
|
|
495
|
+
i0.ɵɵconditional(!ctx_r1.CurrentVariantID ? 10 : -1);
|
|
496
|
+
i0.ɵɵadvance();
|
|
497
|
+
i0.ɵɵrepeater(ctx_r1.Variants);
|
|
498
|
+
} }
|
|
499
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
500
|
+
i0.ɵɵelementStart(0, "div", 49);
|
|
501
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_1_Template, 6, 6);
|
|
502
|
+
i0.ɵɵconditionalCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Conditional_2_Template, 13, 4);
|
|
503
|
+
i0.ɵɵelementEnd();
|
|
504
|
+
} if (rf & 2) {
|
|
505
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
506
|
+
i0.ɵɵproperty("id", ctx_r1.MenuIdPrefix + "-view");
|
|
507
|
+
i0.ɵɵadvance();
|
|
508
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowSectionControls ? 1 : -1);
|
|
509
|
+
i0.ɵɵadvance();
|
|
510
|
+
i0.ɵɵconditional(ctx_r1.ShowVariantPickerButton ? 2 : -1);
|
|
511
|
+
} }
|
|
427
512
|
function MjFormToolbarComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
428
|
-
i0.ɵɵ
|
|
513
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
514
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "button", 46);
|
|
515
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_9_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.ToggleViewMenu()); });
|
|
516
|
+
i0.ɵɵelement(2, "i", 47);
|
|
517
|
+
i0.ɵɵelementStart(3, "span", 10);
|
|
518
|
+
i0.ɵɵtext(4, "View");
|
|
519
|
+
i0.ɵɵelementEnd();
|
|
520
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_5_Template, 2, 1, "span", 48);
|
|
521
|
+
i0.ɵɵelementEnd();
|
|
522
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_9_Conditional_6_Template, 3, 3, "div", 49);
|
|
523
|
+
i0.ɵɵelementEnd();
|
|
524
|
+
} if (rf & 2) {
|
|
525
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
526
|
+
i0.ɵɵclassProp("open", ctx_r1.ViewMenuOpen);
|
|
527
|
+
i0.ɵɵadvance();
|
|
528
|
+
i0.ɵɵproperty("title", ctx_r1.CurrentVariantID ? "Sections and layout (form: " + ctx_r1.CurrentVariantLabel + ")" : "Sections and layout");
|
|
529
|
+
i0.ɵɵattribute("aria-expanded", ctx_r1.ViewMenuOpen)("aria-controls", ctx_r1.MenuIdPrefix + "-view");
|
|
530
|
+
i0.ɵɵadvance(4);
|
|
531
|
+
i0.ɵɵconditional(ctx_r1.CurrentVariantID ? 5 : -1);
|
|
532
|
+
i0.ɵɵadvance();
|
|
533
|
+
i0.ɵɵconditional(ctx_r1.ViewMenuOpen ? 6 : -1);
|
|
534
|
+
} }
|
|
535
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
536
|
+
i0.ɵɵelementContainer(0, 26);
|
|
429
537
|
} if (rf & 2) {
|
|
430
538
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
431
539
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.AdditionalActionsTemplate);
|
|
432
540
|
} }
|
|
541
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_12_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
542
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
543
|
+
i0.ɵɵelementStart(0, "button", 73);
|
|
544
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_1_Conditional_12_For_3_Template_button_click_0_listener($event) { const parent_r27 = i0.ɵɵrestoreView(_r26).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnParentBadgeClick(parent_r27, $event)); });
|
|
545
|
+
i0.ɵɵelement(1, "i", 74);
|
|
546
|
+
i0.ɵɵtext(2);
|
|
547
|
+
i0.ɵɵelementEnd();
|
|
548
|
+
i0.ɵɵelementStart(3, "span", 75);
|
|
549
|
+
i0.ɵɵelement(4, "i", 76);
|
|
550
|
+
i0.ɵɵelementEnd();
|
|
551
|
+
} if (rf & 2) {
|
|
552
|
+
const parent_r27 = ctx.$implicit;
|
|
553
|
+
i0.ɵɵproperty("title", "Navigate to parent: " + parent_r27.Name);
|
|
554
|
+
i0.ɵɵadvance(2);
|
|
555
|
+
i0.ɵɵtextInterpolate1(" ", parent_r27.Name, " ");
|
|
556
|
+
} }
|
|
557
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_12_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
558
|
+
i0.ɵɵelementContainer(0, 23);
|
|
559
|
+
} if (rf & 2) {
|
|
560
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
561
|
+
const descendantTreeTpl_r28 = i0.ɵɵreference(8);
|
|
562
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r28)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, ctx_r1.DescendantTree));
|
|
563
|
+
} }
|
|
564
|
+
function MjFormToolbarComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
565
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "div", 71);
|
|
566
|
+
i0.ɵɵrepeaterCreate(2, MjFormToolbarComponent_Conditional_1_Conditional_12_For_3_Template, 5, 2, null, null, _forTrack1);
|
|
567
|
+
i0.ɵɵelementStart(4, "span", 72);
|
|
568
|
+
i0.ɵɵtext(5);
|
|
569
|
+
i0.ɵɵelementEnd();
|
|
570
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_12_Conditional_6_Template, 1, 4, "ng-container", 23);
|
|
571
|
+
i0.ɵɵelementEnd()();
|
|
572
|
+
} if (rf & 2) {
|
|
573
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
574
|
+
i0.ɵɵadvance(2);
|
|
575
|
+
i0.ɵɵrepeater(ctx_r1.ParentChain);
|
|
576
|
+
i0.ɵɵadvance(3);
|
|
577
|
+
i0.ɵɵtextInterpolate(ctx_r1.EntityInfo == null ? null : ctx_r1.EntityInfo.Name);
|
|
578
|
+
i0.ɵɵadvance();
|
|
579
|
+
i0.ɵɵconditional(ctx_r1.DescendantTree.length > 0 ? 6 : -1);
|
|
580
|
+
} }
|
|
433
581
|
function MjFormToolbarComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
434
|
-
i0.ɵɵelementStart(0, "div",
|
|
435
|
-
i0.ɵɵrepeaterCreate(2, MjFormToolbarComponent_Conditional_1_For_3_Template,
|
|
582
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "div", 22);
|
|
583
|
+
i0.ɵɵrepeaterCreate(2, MjFormToolbarComponent_Conditional_1_For_3_Template, 1, 4, "ng-container", 23, _forTrack0);
|
|
584
|
+
i0.ɵɵrepeaterCreate(4, MjFormToolbarComponent_Conditional_1_For_5_Template, 1, 4, "ng-container", 23, _forTrack0);
|
|
585
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_1_Conditional_6_Template, 6, 5, "div", 24);
|
|
436
586
|
i0.ɵɵelementEnd();
|
|
437
|
-
i0.ɵɵ
|
|
438
|
-
i0.ɵɵconditionalCreate(
|
|
439
|
-
i0.ɵɵ
|
|
440
|
-
i0.ɵɵconditionalCreate(
|
|
441
|
-
i0.ɵɵ
|
|
442
|
-
i0.ɵɵconditionalCreate(9, MjFormToolbarComponent_Conditional_1_Conditional_9_Template, 1, 1, "ng-container", 27);
|
|
443
|
-
i0.ɵɵprojection(10);
|
|
587
|
+
i0.ɵɵelement(7, "div", 5);
|
|
588
|
+
i0.ɵɵconditionalCreate(8, MjFormToolbarComponent_Conditional_1_Conditional_8_Template, 6, 1, "span", 25);
|
|
589
|
+
i0.ɵɵconditionalCreate(9, MjFormToolbarComponent_Conditional_1_Conditional_9_Template, 7, 7, "div", 24);
|
|
590
|
+
i0.ɵɵconditionalCreate(10, MjFormToolbarComponent_Conditional_1_Conditional_10_Template, 1, 1, "ng-container", 26);
|
|
591
|
+
i0.ɵɵprojection(11);
|
|
444
592
|
i0.ɵɵelementEnd();
|
|
593
|
+
i0.ɵɵconditionalCreate(12, MjFormToolbarComponent_Conditional_1_Conditional_12_Template, 7, 2, "div", 27);
|
|
445
594
|
} if (rf & 2) {
|
|
446
595
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
447
596
|
i0.ɵɵclassProp("mj-forms-toolbar--sticky", ctx_r1.Config.StickyToolbar);
|
|
448
597
|
i0.ɵɵadvance(2);
|
|
449
|
-
i0.ɵɵrepeater(ctx_r1.
|
|
598
|
+
i0.ɵɵrepeater(ctx_r1.InlineActionItems);
|
|
450
599
|
i0.ɵɵadvance(2);
|
|
451
|
-
i0.ɵɵ
|
|
600
|
+
i0.ɵɵrepeater(ctx_r1.PinnedActionItems);
|
|
601
|
+
i0.ɵɵadvance(2);
|
|
602
|
+
i0.ɵɵconditional(ctx_r1.ShowMoreMenu ? 6 : -1);
|
|
603
|
+
i0.ɵɵadvance(2);
|
|
604
|
+
i0.ɵɵconditional(ctx_r1.SearchFilter && !ctx_r1.ViewMenuOpen ? 8 : -1);
|
|
452
605
|
i0.ɵɵadvance();
|
|
453
|
-
i0.ɵɵconditional(ctx_r1.
|
|
606
|
+
i0.ɵɵconditional(ctx_r1.ShowViewMenu ? 9 : -1);
|
|
607
|
+
i0.ɵɵadvance();
|
|
608
|
+
i0.ɵɵconditional(ctx_r1.AdditionalActionsTemplate ? 10 : -1);
|
|
454
609
|
i0.ɵɵadvance(2);
|
|
455
|
-
i0.ɵɵconditional(ctx_r1.
|
|
610
|
+
i0.ɵɵconditional(ctx_r1.Config.ShowEntityHierarchy && ctx_r1.IsInHierarchy ? 12 : -1);
|
|
611
|
+
} }
|
|
612
|
+
function MjFormToolbarComponent_ng_template_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
613
|
+
i0.ɵɵelement(0, "i", 18);
|
|
614
|
+
} }
|
|
615
|
+
function MjFormToolbarComponent_ng_template_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
616
|
+
i0.ɵɵelement(0, "i");
|
|
617
|
+
} if (rf & 2) {
|
|
618
|
+
const item_r30 = i0.ɵɵnextContext().item;
|
|
619
|
+
i0.ɵɵclassMap(item_r30.Icon);
|
|
620
|
+
} }
|
|
621
|
+
function MjFormToolbarComponent_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
622
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
623
|
+
i0.ɵɵtext(1);
|
|
624
|
+
i0.ɵɵelementEnd();
|
|
625
|
+
} if (rf & 2) {
|
|
626
|
+
const item_r30 = i0.ɵɵnextContext().item;
|
|
456
627
|
i0.ɵɵadvance();
|
|
457
|
-
i0.ɵɵ
|
|
628
|
+
i0.ɵɵtextInterpolate(item_r30.Text);
|
|
629
|
+
} }
|
|
630
|
+
function MjFormToolbarComponent_ng_template_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
631
|
+
i0.ɵɵelementStart(0, "span");
|
|
632
|
+
i0.ɵɵtext(1);
|
|
633
|
+
i0.ɵɵelementEnd();
|
|
634
|
+
} if (rf & 2) {
|
|
635
|
+
const item_r30 = i0.ɵɵnextContext().item;
|
|
636
|
+
i0.ɵɵclassMap(item_r30.Key === "history" ? "mj-version-count-badge" : "mj-list-count-badge");
|
|
458
637
|
i0.ɵɵadvance();
|
|
459
|
-
i0.ɵɵ
|
|
638
|
+
i0.ɵɵtextInterpolate(item_r30.Badge);
|
|
460
639
|
} }
|
|
461
|
-
function
|
|
462
|
-
const
|
|
463
|
-
i0.ɵɵelementStart(0, "
|
|
464
|
-
i0.ɵɵlistener("click", function
|
|
465
|
-
i0.ɵɵ
|
|
466
|
-
i0.ɵɵ
|
|
467
|
-
i0.ɵɵ
|
|
640
|
+
function MjFormToolbarComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
641
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
642
|
+
i0.ɵɵelementStart(0, "button", 17);
|
|
643
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_2_Template_button_click_0_listener($event) { const item_r30 = i0.ɵɵrestoreView(_r29).item; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnToolbarItemClick(item_r30, $event)); });
|
|
644
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_ng_template_2_Conditional_1_Template, 1, 0, "i", 18)(2, MjFormToolbarComponent_ng_template_2_Conditional_2_Template, 1, 2, "i", 19);
|
|
645
|
+
i0.ɵɵconditionalCreate(3, MjFormToolbarComponent_ng_template_2_Conditional_3_Template, 2, 1, "span", 10);
|
|
646
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_2_Conditional_4_Template, 2, 3, "span", 19);
|
|
647
|
+
i0.ɵɵelementEnd();
|
|
648
|
+
} if (rf & 2) {
|
|
649
|
+
const item_r30 = ctx.item;
|
|
650
|
+
i0.ɵɵclassMap(item_r30.CssClass);
|
|
651
|
+
i0.ɵɵclassProp("mj-forms-btn--primary", item_r30.Variant === "primary")("mj-forms-btn--secondary", item_r30.Variant === "secondary")("mj-forms-btn--accent", item_r30.Variant === "accent")("mj-forms-btn--danger", item_r30.Variant === "danger")("mj-forms-btn--ghost", item_r30.Variant === "ghost")("mj-forms-btn--history", item_r30.Key === "history")("mj-forms-btn--list", item_r30.Key === "list")("mj-forms-btn--tags", item_r30.Key === "tags")("mj-forms-btn--attachments", item_r30.Key === "attachments");
|
|
652
|
+
i0.ɵɵproperty("disabled", item_r30.Disabled || item_r30.IsLoading)("title", item_r30.Description);
|
|
653
|
+
i0.ɵɵattribute("aria-label", item_r30.Text ? null : item_r30.Description || item_r30.MenuLabel);
|
|
654
|
+
i0.ɵɵadvance();
|
|
655
|
+
i0.ɵɵconditional(item_r30.IsLoading ? 1 : item_r30.Icon ? 2 : -1);
|
|
656
|
+
i0.ɵɵadvance(2);
|
|
657
|
+
i0.ɵɵconditional(item_r30.Text ? 3 : -1);
|
|
658
|
+
i0.ɵɵadvance();
|
|
659
|
+
i0.ɵɵconditional(item_r30.Badge != null ? 4 : -1);
|
|
660
|
+
} }
|
|
661
|
+
function MjFormToolbarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
662
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
663
|
+
i0.ɵɵelementStart(0, "mj-record-clone-slide-in", 77);
|
|
664
|
+
i0.ɵɵlistener("VisibleChange", function MjFormToolbarComponent_Conditional_4_Template_mj_record_clone_slide_in_VisibleChange_0_listener($event) { i0.ɵɵrestoreView(_r31); 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(_r31); 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(_r31); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCloneNavigate($event)); });
|
|
665
|
+
i0.ɵɵelementEnd();
|
|
666
|
+
} if (rf & 2) {
|
|
667
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
668
|
+
i0.ɵɵproperty("Provider", ctx_r1.Provider)("Record", ctx_r1.Record)("Visible", ctx_r1.IsClonePanelOpen);
|
|
669
|
+
} }
|
|
670
|
+
function MjFormToolbarComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
671
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
672
|
+
i0.ɵɵelementStart(0, "div", 78);
|
|
673
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
674
|
+
i0.ɵɵelementStart(1, "div", 79);
|
|
675
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_div_click_1_listener($event) { return $event.stopPropagation(); });
|
|
676
|
+
i0.ɵɵelementStart(2, "div", 80)(3, "h3");
|
|
468
677
|
i0.ɵɵtext(4, "Discard Changes?");
|
|
469
678
|
i0.ɵɵelementEnd();
|
|
470
|
-
i0.ɵɵelementStart(5, "button",
|
|
471
|
-
i0.ɵɵlistener("click", function
|
|
472
|
-
i0.ɵɵelement(6, "i",
|
|
679
|
+
i0.ɵɵelementStart(5, "button", 81);
|
|
680
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
681
|
+
i0.ɵɵelement(6, "i", 45);
|
|
473
682
|
i0.ɵɵelementEnd()();
|
|
474
|
-
i0.ɵɵelementStart(7, "div",
|
|
683
|
+
i0.ɵɵelementStart(7, "div", 82)(8, "p");
|
|
475
684
|
i0.ɵɵtext(9, "You have ");
|
|
476
685
|
i0.ɵɵelementStart(10, "strong");
|
|
477
686
|
i0.ɵɵtext(11);
|
|
478
687
|
i0.ɵɵelementEnd();
|
|
479
688
|
i0.ɵɵtext(12);
|
|
480
689
|
i0.ɵɵelementEnd()();
|
|
481
|
-
i0.ɵɵelementStart(13, "div",
|
|
482
|
-
i0.ɵɵlistener("click", function
|
|
483
|
-
i0.ɵɵelement(15, "i",
|
|
690
|
+
i0.ɵɵelementStart(13, "div", 83)(14, "button", 84);
|
|
691
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardConfirm()); });
|
|
692
|
+
i0.ɵɵelement(15, "i", 12);
|
|
484
693
|
i0.ɵɵtext(16, " Discard Changes ");
|
|
485
694
|
i0.ɵɵelementEnd();
|
|
486
|
-
i0.ɵɵelementStart(17, "button",
|
|
487
|
-
i0.ɵɵlistener("click", function
|
|
695
|
+
i0.ɵɵelementStart(17, "button", 85);
|
|
696
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_5_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDiscardCancel()); });
|
|
488
697
|
i0.ɵɵtext(18, " Keep Editing ");
|
|
489
698
|
i0.ɵɵelementEnd()()()();
|
|
490
699
|
} if (rf & 2) {
|
|
@@ -494,101 +703,117 @@ function MjFormToolbarComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
494
703
|
i0.ɵɵadvance();
|
|
495
704
|
i0.ɵɵtextInterpolate2(" unsaved change", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "" : "s", ". Are you sure you want to discard ", ctx_r1.DirtyFieldDisplayNames.length === 1 ? "it" : "them", "?");
|
|
496
705
|
} }
|
|
497
|
-
function
|
|
498
|
-
const
|
|
499
|
-
i0.ɵɵelementStart(0, "div",
|
|
500
|
-
i0.ɵɵlistener("click", function
|
|
501
|
-
i0.ɵɵelementStart(1, "div",
|
|
502
|
-
i0.ɵɵlistener("click", function
|
|
503
|
-
i0.ɵɵelementStart(2, "div",
|
|
706
|
+
function MjFormToolbarComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
707
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
708
|
+
i0.ɵɵelementStart(0, "div", 78);
|
|
709
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
710
|
+
i0.ɵɵelementStart(1, "div", 79);
|
|
711
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_div_click_1_listener($event) { return $event.stopPropagation(); });
|
|
712
|
+
i0.ɵɵelementStart(2, "div", 80)(3, "h3");
|
|
504
713
|
i0.ɵɵtext(4, "Confirm Deletion");
|
|
505
714
|
i0.ɵɵelementEnd();
|
|
506
|
-
i0.ɵɵelementStart(5, "button",
|
|
507
|
-
i0.ɵɵlistener("click", function
|
|
508
|
-
i0.ɵɵelement(6, "i",
|
|
715
|
+
i0.ɵɵelementStart(5, "button", 81);
|
|
716
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
717
|
+
i0.ɵɵelement(6, "i", 45);
|
|
509
718
|
i0.ɵɵelementEnd()();
|
|
510
|
-
i0.ɵɵelementStart(7, "div",
|
|
719
|
+
i0.ɵɵelementStart(7, "div", 82)(8, "p");
|
|
511
720
|
i0.ɵɵtext(9, "Are you sure you want to delete this record? This action cannot be undone.");
|
|
512
721
|
i0.ɵɵelementEnd()();
|
|
513
|
-
i0.ɵɵelementStart(10, "div",
|
|
514
|
-
i0.ɵɵlistener("click", function
|
|
515
|
-
i0.ɵɵelement(12, "i",
|
|
722
|
+
i0.ɵɵelementStart(10, "div", 83)(11, "button", 84);
|
|
723
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteConfirm()); });
|
|
724
|
+
i0.ɵɵelement(12, "i", 86);
|
|
516
725
|
i0.ɵɵtext(13, " Delete ");
|
|
517
726
|
i0.ɵɵelementEnd();
|
|
518
|
-
i0.ɵɵelementStart(14, "button",
|
|
519
|
-
i0.ɵɵlistener("click", function
|
|
727
|
+
i0.ɵɵelementStart(14, "button", 85);
|
|
728
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_Conditional_6_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteCancel()); });
|
|
520
729
|
i0.ɵɵtext(15, " Cancel ");
|
|
521
730
|
i0.ɵɵelementEnd()()()();
|
|
522
731
|
} }
|
|
523
|
-
function
|
|
524
|
-
i0.ɵɵelementContainer(0,
|
|
732
|
+
function MjFormToolbarComponent_ng_template_7_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
733
|
+
i0.ɵɵelementContainer(0, 23);
|
|
525
734
|
} if (rf & 2) {
|
|
526
|
-
const
|
|
735
|
+
const items_r35 = i0.ɵɵnextContext(2).items;
|
|
527
736
|
i0.ɵɵnextContext();
|
|
528
|
-
const
|
|
529
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
737
|
+
const descendantTreeTpl_r28 = i0.ɵɵreference(8);
|
|
738
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r28)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, items_r35[0].Children));
|
|
530
739
|
} }
|
|
531
|
-
function
|
|
532
|
-
const
|
|
533
|
-
i0.ɵɵelementStart(0, "span",
|
|
534
|
-
i0.ɵɵelement(1, "i",
|
|
740
|
+
function MjFormToolbarComponent_ng_template_7_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
741
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
742
|
+
i0.ɵɵelementStart(0, "span", 75);
|
|
743
|
+
i0.ɵɵelement(1, "i", 76);
|
|
535
744
|
i0.ɵɵelementEnd();
|
|
536
|
-
i0.ɵɵelementStart(2, "
|
|
537
|
-
i0.ɵɵlistener("click", function
|
|
538
|
-
i0.ɵɵelement(3, "i",
|
|
745
|
+
i0.ɵɵelementStart(2, "button", 88);
|
|
746
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_0_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r34); const items_r35 = i0.ɵɵnextContext().items; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDescendantBadgeClick(items_r35[0].EntityName, $event)); });
|
|
747
|
+
i0.ɵɵelement(3, "i", 89);
|
|
539
748
|
i0.ɵɵtext(4);
|
|
540
749
|
i0.ɵɵelementEnd();
|
|
541
|
-
i0.ɵɵconditionalCreate(5,
|
|
750
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_ng_template_7_Conditional_0_Conditional_5_Template, 1, 4, "ng-container", 23);
|
|
542
751
|
} if (rf & 2) {
|
|
543
|
-
const
|
|
752
|
+
const items_r35 = i0.ɵɵnextContext().items;
|
|
544
753
|
i0.ɵɵadvance(2);
|
|
545
|
-
i0.ɵɵproperty("title", "Navigate to: " +
|
|
754
|
+
i0.ɵɵproperty("title", "Navigate to: " + items_r35[0].EntityName);
|
|
546
755
|
i0.ɵɵadvance(2);
|
|
547
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
756
|
+
i0.ɵɵtextInterpolate1(" ", items_r35[0].EntityName, " ");
|
|
548
757
|
i0.ɵɵadvance();
|
|
549
|
-
i0.ɵɵconditional(
|
|
758
|
+
i0.ɵɵconditional(items_r35[0].Children.length > 0 ? 5 : -1);
|
|
550
759
|
} }
|
|
551
|
-
function
|
|
552
|
-
i0.ɵɵelementContainer(0,
|
|
760
|
+
function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
761
|
+
i0.ɵɵelementContainer(0, 23);
|
|
553
762
|
} if (rf & 2) {
|
|
554
|
-
const
|
|
763
|
+
const item_r37 = i0.ɵɵnextContext().$implicit;
|
|
555
764
|
i0.ɵɵnextContext(3);
|
|
556
|
-
const
|
|
557
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
765
|
+
const descendantTreeTpl_r28 = i0.ɵɵreference(8);
|
|
766
|
+
i0.ɵɵproperty("ngTemplateOutlet", descendantTreeTpl_r28)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c3, item_r37.Children));
|
|
558
767
|
} }
|
|
559
|
-
function
|
|
560
|
-
const
|
|
561
|
-
i0.ɵɵelementStart(0, "div",
|
|
562
|
-
i0.ɵɵlistener("click", function
|
|
563
|
-
i0.ɵɵelement(2, "i",
|
|
768
|
+
function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
769
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
770
|
+
i0.ɵɵelementStart(0, "div", 90)(1, "button", 88);
|
|
771
|
+
i0.ɵɵlistener("click", function MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template_button_click_1_listener($event) { const item_r37 = i0.ɵɵrestoreView(_r36).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnDescendantBadgeClick(item_r37.EntityName, $event)); });
|
|
772
|
+
i0.ɵɵelement(2, "i", 89);
|
|
564
773
|
i0.ɵɵtext(3);
|
|
565
774
|
i0.ɵɵelementEnd();
|
|
566
|
-
i0.ɵɵconditionalCreate(4,
|
|
775
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Conditional_4_Template, 1, 4, "ng-container", 23);
|
|
567
776
|
i0.ɵɵelementEnd();
|
|
568
777
|
} if (rf & 2) {
|
|
569
|
-
const
|
|
778
|
+
const item_r37 = ctx.$implicit;
|
|
570
779
|
i0.ɵɵadvance();
|
|
571
|
-
i0.ɵɵproperty("title", "Navigate to: " +
|
|
780
|
+
i0.ɵɵproperty("title", "Navigate to: " + item_r37.EntityName);
|
|
572
781
|
i0.ɵɵadvance(2);
|
|
573
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
782
|
+
i0.ɵɵtextInterpolate1(" ", item_r37.EntityName, " ");
|
|
574
783
|
i0.ɵɵadvance();
|
|
575
|
-
i0.ɵɵconditional(
|
|
784
|
+
i0.ɵɵconditional(item_r37.Children.length > 0 ? 4 : -1);
|
|
576
785
|
} }
|
|
577
|
-
function
|
|
578
|
-
i0.ɵɵelementStart(0, "div",
|
|
579
|
-
i0.ɵɵrepeaterCreate(1,
|
|
786
|
+
function MjFormToolbarComponent_ng_template_7_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
787
|
+
i0.ɵɵelementStart(0, "div", 87);
|
|
788
|
+
i0.ɵɵrepeaterCreate(1, MjFormToolbarComponent_ng_template_7_Conditional_1_For_2_Template, 5, 3, "div", 90, _forTrack2);
|
|
580
789
|
i0.ɵɵelementEnd();
|
|
581
790
|
} if (rf & 2) {
|
|
582
|
-
const
|
|
791
|
+
const items_r35 = i0.ɵɵnextContext().items;
|
|
583
792
|
i0.ɵɵadvance();
|
|
584
|
-
i0.ɵɵrepeater(
|
|
793
|
+
i0.ɵɵrepeater(items_r35);
|
|
585
794
|
} }
|
|
586
|
-
function
|
|
587
|
-
i0.ɵɵconditionalCreate(0,
|
|
795
|
+
function MjFormToolbarComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
796
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_ng_template_7_Conditional_0_Template, 6, 3)(1, MjFormToolbarComponent_ng_template_7_Conditional_1_Template, 3, 0, "div", 87);
|
|
588
797
|
} if (rf & 2) {
|
|
589
|
-
const
|
|
590
|
-
i0.ɵɵconditional(
|
|
798
|
+
const items_r35 = ctx.items;
|
|
799
|
+
i0.ɵɵconditional(items_r35.length === 1 ? 0 : items_r35.length > 1 ? 1 : -1);
|
|
591
800
|
} }
|
|
801
|
+
/** User setting that stores the toolbar actions a user pinned, shared across every form. */
|
|
802
|
+
export const TOOLBAR_PINS_SETTING_KEY = 'mj.form.toolbar.pinnedActions';
|
|
803
|
+
/** Built-in actions that start pinned for a user who has not chosen pins. */
|
|
804
|
+
export const DEFAULT_PINNED_TOOLBAR_ACTIONS = ['favorite', 'history'];
|
|
805
|
+
/** More-menu labels for the built-in actions, whose buttons are icon-only. */
|
|
806
|
+
const STANDARD_MENU_LABELS = {
|
|
807
|
+
edit: 'Edit',
|
|
808
|
+
delete: 'Delete record',
|
|
809
|
+
refresh: 'Refresh',
|
|
810
|
+
clone: 'Clone',
|
|
811
|
+
favorite: 'Favorite',
|
|
812
|
+
history: 'History',
|
|
813
|
+
list: 'Add to list',
|
|
814
|
+
tags: 'Tags',
|
|
815
|
+
attachments: 'Attachments',
|
|
816
|
+
};
|
|
592
817
|
/**
|
|
593
818
|
* Configurable form toolbar component.
|
|
594
819
|
*
|
|
@@ -614,6 +839,9 @@ function MjFormToolbarComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
614
839
|
export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
615
840
|
cdr = inject(ChangeDetectorRef);
|
|
616
841
|
recordRefresh = inject(FormRecordRefreshCoordinator, { optional: true });
|
|
842
|
+
cloneService = inject(RecordCloneService);
|
|
843
|
+
host = inject((ElementRef));
|
|
844
|
+
renderer = inject(Renderer2);
|
|
617
845
|
destroy$ = new Subject();
|
|
618
846
|
// ---- Deprecated form reference (backward compat) ----
|
|
619
847
|
_formRef;
|
|
@@ -758,6 +986,10 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
758
986
|
WidthModeChange = new EventEmitter();
|
|
759
987
|
ResetSectionOrderRequested = new EventEmitter();
|
|
760
988
|
ManageSectionsRequested = new EventEmitter();
|
|
989
|
+
/** Emitted before the clone slide-in opens. Set `Cancel` to handle cloning yourself. */
|
|
990
|
+
BeforeClone = new EventEmitter();
|
|
991
|
+
/** Emitted after the clone slide-in commits a clone of this record. */
|
|
992
|
+
CloneCompleted = new EventEmitter();
|
|
761
993
|
// ---- Internal state ----
|
|
762
994
|
ShowDeleteDialog = false;
|
|
763
995
|
ShowDiscardDialog = false;
|
|
@@ -772,20 +1004,35 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
772
1004
|
});
|
|
773
1005
|
}
|
|
774
1006
|
ngOnDestroy() {
|
|
1007
|
+
this.stopDocumentListeners();
|
|
775
1008
|
this.destroy$.next();
|
|
776
1009
|
this.destroy$.complete();
|
|
777
1010
|
}
|
|
778
1011
|
ngDoCheck() {
|
|
1012
|
+
// Inputs and record state may have changed since the last pass: resolve the items afresh.
|
|
1013
|
+
this._resolvedItems = null;
|
|
1014
|
+
this._pinnedItems = null;
|
|
1015
|
+
this._userInfoEngine = null;
|
|
779
1016
|
if (this._formRef) {
|
|
780
|
-
this.
|
|
1017
|
+
this.syncFromFormRef();
|
|
1018
|
+
}
|
|
1019
|
+
this.checkDescendantChains();
|
|
1020
|
+
this.checkCloneCapability();
|
|
1021
|
+
this.checkPinsChanged();
|
|
1022
|
+
}
|
|
1023
|
+
/** Redraws when the saved pins changed elsewhere (another open form, another tab). */
|
|
1024
|
+
checkPinsChanged() {
|
|
1025
|
+
const before = this._pinsRaw;
|
|
1026
|
+
this.readPins();
|
|
1027
|
+
if (this._pinsRaw !== before) {
|
|
1028
|
+
this.cdr.markForCheck();
|
|
781
1029
|
}
|
|
782
|
-
this.CheckDescendantChains();
|
|
783
1030
|
}
|
|
784
1031
|
/**
|
|
785
1032
|
* Sync toolbar state from the legacy form reference.
|
|
786
1033
|
* Only active when [Form] is set (backward-compat mode).
|
|
787
1034
|
*/
|
|
788
|
-
|
|
1035
|
+
syncFromFormRef() {
|
|
789
1036
|
const ref = this._formRef;
|
|
790
1037
|
const rec = ref['record'];
|
|
791
1038
|
let changed = false;
|
|
@@ -936,14 +1183,14 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
936
1183
|
*/
|
|
937
1184
|
InvalidateHierarchy() {
|
|
938
1185
|
this._lastRecordForChains = null;
|
|
939
|
-
this.
|
|
1186
|
+
this.computeDescendantChains();
|
|
940
1187
|
this.cdr.markForCheck();
|
|
941
1188
|
}
|
|
942
1189
|
/**
|
|
943
1190
|
* Check if descendant chains need recomputation (called from DoCheck).
|
|
944
1191
|
* Only triggers async computation when the record identity changes.
|
|
945
1192
|
*/
|
|
946
|
-
|
|
1193
|
+
checkDescendantChains() {
|
|
947
1194
|
if (!this.Record) {
|
|
948
1195
|
if (this.DescendantTree.length > 0) {
|
|
949
1196
|
this.DescendantTree = [];
|
|
@@ -953,14 +1200,14 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
953
1200
|
return;
|
|
954
1201
|
}
|
|
955
1202
|
if (this.Record !== this._lastRecordForChains && !this._chainsLoading) {
|
|
956
|
-
this.
|
|
1203
|
+
this.computeDescendantChains();
|
|
957
1204
|
}
|
|
958
1205
|
}
|
|
959
1206
|
/**
|
|
960
1207
|
* Asynchronously discover all IS-A descendants and convert to chains
|
|
961
1208
|
* for breadcrumb display. Each chain is a root-to-leaf path of entity names.
|
|
962
1209
|
*/
|
|
963
|
-
|
|
1210
|
+
computeDescendantChains() {
|
|
964
1211
|
this._lastRecordForChains = this.Record;
|
|
965
1212
|
if (!this.Record?.EntityInfo?.IsParentType) {
|
|
966
1213
|
this.DescendantTree = [];
|
|
@@ -992,7 +1239,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
992
1239
|
}
|
|
993
1240
|
// ---- Actions ----
|
|
994
1241
|
OnEdit() {
|
|
995
|
-
if (this.
|
|
1242
|
+
if (this.dispatchToFormRef('StartEditMode'))
|
|
996
1243
|
return;
|
|
997
1244
|
this.EditModeChange.emit(true);
|
|
998
1245
|
}
|
|
@@ -1004,7 +1251,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1004
1251
|
this.BeforeSave.emit(beforeEvent);
|
|
1005
1252
|
if (beforeEvent.Cancel)
|
|
1006
1253
|
return;
|
|
1007
|
-
if (this.
|
|
1254
|
+
if (this.dispatchToFormRef('SaveRecord', true))
|
|
1008
1255
|
return;
|
|
1009
1256
|
this.SaveRequested.emit();
|
|
1010
1257
|
});
|
|
@@ -1017,24 +1264,24 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1017
1264
|
return;
|
|
1018
1265
|
}
|
|
1019
1266
|
// No changes - cancel immediately
|
|
1020
|
-
this.
|
|
1267
|
+
this.emitCancel();
|
|
1021
1268
|
}
|
|
1022
1269
|
OnDiscardConfirm() {
|
|
1023
1270
|
this.ShowDiscardDialog = false;
|
|
1024
|
-
this.
|
|
1271
|
+
this.emitCancel();
|
|
1025
1272
|
this.cdr.markForCheck();
|
|
1026
1273
|
}
|
|
1027
1274
|
OnDiscardCancel() {
|
|
1028
1275
|
this.ShowDiscardDialog = false;
|
|
1029
1276
|
this.cdr.markForCheck();
|
|
1030
1277
|
}
|
|
1031
|
-
|
|
1278
|
+
emitCancel() {
|
|
1032
1279
|
// Emit Before event - handler can cancel by setting event.Cancel = true
|
|
1033
1280
|
const beforeEvent = new BeforeCancelEventArgs();
|
|
1034
1281
|
this.BeforeCancel.emit(beforeEvent);
|
|
1035
1282
|
if (beforeEvent.Cancel)
|
|
1036
1283
|
return;
|
|
1037
|
-
if (this.
|
|
1284
|
+
if (this.dispatchToFormRef('CancelEdit'))
|
|
1038
1285
|
return;
|
|
1039
1286
|
this.CancelRequested.emit();
|
|
1040
1287
|
}
|
|
@@ -1051,7 +1298,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1051
1298
|
this.cdr.markForCheck();
|
|
1052
1299
|
return;
|
|
1053
1300
|
}
|
|
1054
|
-
if (this.
|
|
1301
|
+
if (this.dispatchToFormRef('OnDeleteRequested')) {
|
|
1055
1302
|
this.cdr.markForCheck();
|
|
1056
1303
|
return;
|
|
1057
1304
|
}
|
|
@@ -1070,12 +1317,12 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1070
1317
|
this.BeforeRefresh.emit(beforeEvent);
|
|
1071
1318
|
if (beforeEvent.Cancel)
|
|
1072
1319
|
return;
|
|
1073
|
-
if (this.
|
|
1320
|
+
if (this.dispatchToFormRef('RefreshRecord'))
|
|
1074
1321
|
return;
|
|
1075
1322
|
this.RefreshRequested.emit();
|
|
1076
1323
|
}
|
|
1077
1324
|
OnFavoriteToggle() {
|
|
1078
|
-
if (this.
|
|
1325
|
+
if (this.dispatchToFormRef('OnFavoriteToggled'))
|
|
1079
1326
|
return;
|
|
1080
1327
|
this.FavoriteToggled.emit();
|
|
1081
1328
|
}
|
|
@@ -1085,7 +1332,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1085
1332
|
this.BeforeHistoryView.emit(beforeEvent);
|
|
1086
1333
|
if (beforeEvent.Cancel)
|
|
1087
1334
|
return;
|
|
1088
|
-
if (this.
|
|
1335
|
+
if (this.dispatchToFormRef('OnHistoryRequested'))
|
|
1089
1336
|
return;
|
|
1090
1337
|
this.HistoryRequested.emit();
|
|
1091
1338
|
}
|
|
@@ -1095,17 +1342,17 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1095
1342
|
this.BeforeListManagement.emit(beforeEvent);
|
|
1096
1343
|
if (beforeEvent.Cancel)
|
|
1097
1344
|
return;
|
|
1098
|
-
if (this.
|
|
1345
|
+
if (this.dispatchToFormRef('OnListManagementRequested'))
|
|
1099
1346
|
return;
|
|
1100
1347
|
this.ListManagementRequested.emit();
|
|
1101
1348
|
}
|
|
1102
1349
|
OnTagsPanel() {
|
|
1103
|
-
if (this.
|
|
1350
|
+
if (this.dispatchToFormRef('HandleTagsPanel'))
|
|
1104
1351
|
return;
|
|
1105
1352
|
this.TagsPanelToggled.emit();
|
|
1106
1353
|
}
|
|
1107
1354
|
OnAttachmentsPanel() {
|
|
1108
|
-
if (this.
|
|
1355
|
+
if (this.dispatchToFormRef('HandleAttachmentsPanel'))
|
|
1109
1356
|
return;
|
|
1110
1357
|
this.AttachmentsPanelToggled.emit();
|
|
1111
1358
|
}
|
|
@@ -1122,6 +1369,12 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1122
1369
|
* evaluated against the current Record and EditMode.
|
|
1123
1370
|
*/
|
|
1124
1371
|
get ResolvedToolbarItems() {
|
|
1372
|
+
// Many template bindings read this per pass (five per More-menu row); resolve once per pass.
|
|
1373
|
+
return (this._resolvedItems ??= this.resolveToolbarItems());
|
|
1374
|
+
}
|
|
1375
|
+
/** The resolved items for the current change-detection pass; cleared in ngDoCheck. */
|
|
1376
|
+
_resolvedItems = null;
|
|
1377
|
+
resolveToolbarItems() {
|
|
1125
1378
|
const rawItems = [];
|
|
1126
1379
|
// 1. Standard Built-in Items
|
|
1127
1380
|
rawItems.push({
|
|
@@ -1158,6 +1411,18 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1158
1411
|
Visible: this.Config.ShowRefreshButton !== false && (this.Record?.IsSaved ?? false),
|
|
1159
1412
|
Disabled: this.IsSaving || this.IsRefreshing,
|
|
1160
1413
|
IsLoading: this.IsRefreshing,
|
|
1414
|
+
}, {
|
|
1415
|
+
Key: 'clone',
|
|
1416
|
+
Text: '',
|
|
1417
|
+
Description: `Clone this ${this.EntityInfo?.DisplayNameOrName ?? 'record'} and the records it owns`,
|
|
1418
|
+
Icon: 'fa-solid fa-clone',
|
|
1419
|
+
Variant: 'default',
|
|
1420
|
+
Mode: 'read',
|
|
1421
|
+
Placement: 'actions',
|
|
1422
|
+
Order: 15,
|
|
1423
|
+
Visible: this.ShowCloneAction,
|
|
1424
|
+
Disabled: false,
|
|
1425
|
+
CssClass: this.IsClonePanelOpen ? 'active' : '',
|
|
1161
1426
|
}, {
|
|
1162
1427
|
Key: 'favorite',
|
|
1163
1428
|
Text: '',
|
|
@@ -1253,7 +1518,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1253
1518
|
}
|
|
1254
1519
|
// 4. Resolve states, evaluate predicates, apply overrides
|
|
1255
1520
|
const resolved = [];
|
|
1256
|
-
const standardKeys = new Set(['edit', 'delete', 'refresh', 'favorite', 'history', 'list', 'tags', 'attachments']);
|
|
1521
|
+
const standardKeys = new Set(['edit', 'delete', 'refresh', 'clone', 'favorite', 'history', 'list', 'tags', 'attachments']);
|
|
1257
1522
|
for (const item of rawItems) {
|
|
1258
1523
|
const overrides = this.ItemOverrides?.get(item.Key);
|
|
1259
1524
|
const merged = overrides ? { ...item, ...overrides } : item;
|
|
@@ -1331,6 +1596,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1331
1596
|
badge = merged.Badge;
|
|
1332
1597
|
}
|
|
1333
1598
|
const description = disabled && disabledReason ? disabledReason : (merged.Description ?? '');
|
|
1599
|
+
const isStandard = standardKeys.has(merged.Key);
|
|
1334
1600
|
resolved.push({
|
|
1335
1601
|
Key: merged.Key,
|
|
1336
1602
|
Text: merged.Text ?? '',
|
|
@@ -1346,7 +1612,9 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1346
1612
|
Badge: badge,
|
|
1347
1613
|
IsLoading: isLoading,
|
|
1348
1614
|
CssClass: merged.CssClass ?? '',
|
|
1349
|
-
IsStandard:
|
|
1615
|
+
IsStandard: isStandard,
|
|
1616
|
+
MenuLabel: merged.MenuLabel || merged.Text || (isStandard ? STANDARD_MENU_LABELS[merged.Key] : '') || merged.Description || merged.Key,
|
|
1617
|
+
Pinnable: merged.Pinnable ?? (isStandard && merged.Key !== 'edit'),
|
|
1350
1618
|
Config: merged,
|
|
1351
1619
|
});
|
|
1352
1620
|
}
|
|
@@ -1364,6 +1632,244 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1364
1632
|
get ResolvedRightItems() {
|
|
1365
1633
|
return this.ResolvedToolbarItems.filter(item => item.Placement === 'right');
|
|
1366
1634
|
}
|
|
1635
|
+
// ── Pinned actions and the More menu ────────────────────────────
|
|
1636
|
+
/** Whether the More menu is open. */
|
|
1637
|
+
MoreMenuOpen = false;
|
|
1638
|
+
/** Whether the View menu (section and layout controls) is open. */
|
|
1639
|
+
ViewMenuOpen = false;
|
|
1640
|
+
/** Last raw pins setting read from UserInfoEngine, and its parse, so each change detection pass doesn't re-parse. */
|
|
1641
|
+
_pinsRaw;
|
|
1642
|
+
_pinsParsed = null;
|
|
1643
|
+
/** Pins set in this session when no user settings are available (tests, anonymous hosts). */
|
|
1644
|
+
_localPins = null;
|
|
1645
|
+
/** The maximum number of pinned buttons, the same for every user. */
|
|
1646
|
+
get MaxPinnedActions() {
|
|
1647
|
+
return Math.max(0, this.Config.MaxPinnedActions ?? 3);
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Keys the user pinned, in their order, or the configured defaults until they choose. Read from
|
|
1651
|
+
* UserInfoEngine on every pass (pending debounced writes included), so every open form agrees.
|
|
1652
|
+
* May include actions this form doesn't offer; those neither render nor use a slot here.
|
|
1653
|
+
*/
|
|
1654
|
+
get PinnedKeys() {
|
|
1655
|
+
return this.readPins() ?? this._localPins ?? this.Config.DefaultPinnedActions ?? [...DEFAULT_PINNED_TOOLBAR_ACTIONS];
|
|
1656
|
+
}
|
|
1657
|
+
/** Read-mode actions that always render as buttons: Edit and custom items that are not pinnable. */
|
|
1658
|
+
get InlineActionItems() {
|
|
1659
|
+
return this.ResolvedActionItems.filter(item => !item.Pinnable);
|
|
1660
|
+
}
|
|
1661
|
+
/** Pinned actions this form offers, in pin order, up to MaxPinnedActions. Computed once per pass. */
|
|
1662
|
+
get PinnedActionItems() {
|
|
1663
|
+
return (this._pinnedItems ??= this.resolvePinnedItems()).Items;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* The pinned items for the current change-detection pass (cleared in ngDoCheck): those shown as
|
|
1667
|
+
* buttons, and every pinned key this form offers, including ones past the cap.
|
|
1668
|
+
*/
|
|
1669
|
+
_pinnedItems = null;
|
|
1670
|
+
resolvePinnedItems() {
|
|
1671
|
+
const byKey = new Map(this.MoreMenuItems.map(i => [i.Key, i]));
|
|
1672
|
+
const offered = this.PinnedKeys
|
|
1673
|
+
.map(k => byKey.get(k))
|
|
1674
|
+
.filter((i) => !!i);
|
|
1675
|
+
const items = offered.slice(0, this.MaxPinnedActions);
|
|
1676
|
+
return { Items: items, Shown: new Set(items.map(i => i.Key)), Pinned: new Set(offered.map(i => i.Key)) };
|
|
1677
|
+
}
|
|
1678
|
+
/** Pinnable actions listed in the More menu, Delete excluded (it has its own row). */
|
|
1679
|
+
get MoreMenuItems() {
|
|
1680
|
+
return this.ResolvedActionItems.filter(i => i.Pinnable && i.Key !== 'delete');
|
|
1681
|
+
}
|
|
1682
|
+
/** The Delete action, shown last in the More menu, unless a host made it an inline button. */
|
|
1683
|
+
get DeleteMenuItem() {
|
|
1684
|
+
return this.ResolvedActionItems.find(i => i.Key === 'delete' && i.Pinnable);
|
|
1685
|
+
}
|
|
1686
|
+
get ShowMoreMenu() {
|
|
1687
|
+
return this.MoreMenuItems.length > 0 || !!this.DeleteMenuItem;
|
|
1688
|
+
}
|
|
1689
|
+
/** Whether the action is pinned for this user and offered on this form (shown as a button, or waiting past the cap). */
|
|
1690
|
+
IsPinned(key) {
|
|
1691
|
+
return (this._pinnedItems ??= this.resolvePinnedItems()).Pinned.has(key);
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Pinned (in the user's list) but not shown on this form, because the pins before it filled every
|
|
1695
|
+
* slot. Pins count per form, so one saved on a form without some of the others can land here.
|
|
1696
|
+
*/
|
|
1697
|
+
IsPinnedOverCap(key) {
|
|
1698
|
+
const pinned = (this._pinnedItems ??= this.resolvePinnedItems());
|
|
1699
|
+
return pinned.Pinned.has(key) && !pinned.Shown.has(key);
|
|
1700
|
+
}
|
|
1701
|
+
/** Whether another action can be pinned here; counts only the pinned buttons this form shows. */
|
|
1702
|
+
get CanPinMore() {
|
|
1703
|
+
return this.PinnedActionItems.length < this.MaxPinnedActions;
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Pins or unpins an action for this user and saves the choice. Pins for actions this form
|
|
1707
|
+
* doesn't offer are kept, so they come back on forms that do.
|
|
1708
|
+
*/
|
|
1709
|
+
TogglePin(key) {
|
|
1710
|
+
const pins = [...this.PinnedKeys];
|
|
1711
|
+
if (pins.includes(key)) {
|
|
1712
|
+
pins.splice(pins.indexOf(key), 1);
|
|
1713
|
+
}
|
|
1714
|
+
else if (this.CanPinMore) {
|
|
1715
|
+
pins.push(key);
|
|
1716
|
+
}
|
|
1717
|
+
else {
|
|
1718
|
+
return; // at the cap: the button stays focusable (aria-disabled) so its hint can be read
|
|
1719
|
+
}
|
|
1720
|
+
this.writePins(pins);
|
|
1721
|
+
this._pinnedItems = null;
|
|
1722
|
+
this.cdr.markForCheck();
|
|
1723
|
+
}
|
|
1724
|
+
static nextMenuId = 0;
|
|
1725
|
+
/** Prefix for the More and View panels' ids, unique per toolbar, for the triggers' aria-controls. */
|
|
1726
|
+
MenuIdPrefix = `mj-forms-toolbar-${++MjFormToolbarComponent.nextMenuId}`;
|
|
1727
|
+
ToggleMoreMenu() {
|
|
1728
|
+
this.MoreMenuOpen = !this.MoreMenuOpen;
|
|
1729
|
+
this.ViewMenuOpen = false;
|
|
1730
|
+
this.syncDocumentListeners();
|
|
1731
|
+
this.cdr.markForCheck();
|
|
1732
|
+
if (this.MoreMenuOpen)
|
|
1733
|
+
this.focusFirstIn(`#${this.MenuIdPrefix}-more`);
|
|
1734
|
+
}
|
|
1735
|
+
ToggleViewMenu() {
|
|
1736
|
+
this.ViewMenuOpen = !this.ViewMenuOpen;
|
|
1737
|
+
this.MoreMenuOpen = false;
|
|
1738
|
+
this.syncDocumentListeners();
|
|
1739
|
+
this.cdr.markForCheck();
|
|
1740
|
+
// The section search if there is one, otherwise the first control.
|
|
1741
|
+
if (this.ViewMenuOpen)
|
|
1742
|
+
this.focusFirstIn(`#${this.MenuIdPrefix}-view`);
|
|
1743
|
+
}
|
|
1744
|
+
/** Puts focus back on a panel's trigger, for when the control that had focus goes away with the panel. */
|
|
1745
|
+
focusTrigger(menu) {
|
|
1746
|
+
this.host.nativeElement.querySelector(`[data-menu-trigger="${menu}"]`)?.focus();
|
|
1747
|
+
}
|
|
1748
|
+
/** Moves focus into a just-opened panel, once it has rendered, so keyboard users land in it. */
|
|
1749
|
+
focusFirstIn(panelSelector) {
|
|
1750
|
+
// A macrotask, not a microtask: the panel's @if block renders in the change detection that
|
|
1751
|
+
// runs after this handler, and a microtask would still find it missing.
|
|
1752
|
+
setTimeout(() => {
|
|
1753
|
+
const panel = this.host.nativeElement.querySelector(panelSelector);
|
|
1754
|
+
const first = panel?.querySelector('input, button:not([disabled])');
|
|
1755
|
+
first?.focus();
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Runs a More-menu item and closes the menu. Focus goes back to the More button first, so a
|
|
1760
|
+
* keyboard user isn't left on <body>; an item that opens its own drawer or dialog then takes it.
|
|
1761
|
+
*/
|
|
1762
|
+
OnMenuItemClick(item, event) {
|
|
1763
|
+
this.MoreMenuOpen = false;
|
|
1764
|
+
this.syncDocumentListeners();
|
|
1765
|
+
this.focusTrigger('more');
|
|
1766
|
+
void this.OnToolbarItemClick(item, event);
|
|
1767
|
+
}
|
|
1768
|
+
CloseMenus() {
|
|
1769
|
+
if (this.MoreMenuOpen || this.ViewMenuOpen || this.VariantMenuOpen) {
|
|
1770
|
+
this.MoreMenuOpen = false;
|
|
1771
|
+
this.ViewMenuOpen = false;
|
|
1772
|
+
this.VariantMenuOpen = false;
|
|
1773
|
+
this.cdr.markForCheck();
|
|
1774
|
+
}
|
|
1775
|
+
this.syncDocumentListeners();
|
|
1776
|
+
}
|
|
1777
|
+
/** Document listeners run only while a panel is open, so a click elsewhere in the app costs closed toolbars nothing. */
|
|
1778
|
+
_unlistenDocument = [];
|
|
1779
|
+
syncDocumentListeners() {
|
|
1780
|
+
const open = this.MoreMenuOpen || this.ViewMenuOpen || this.VariantMenuOpen;
|
|
1781
|
+
if (open && this._unlistenDocument.length === 0) {
|
|
1782
|
+
this._unlistenDocument = [
|
|
1783
|
+
this.renderer.listen('document', 'click', (e) => this.OnDocumentClick(e)),
|
|
1784
|
+
this.renderer.listen('document', 'keydown.escape', (e) => this.OnEscape(e)),
|
|
1785
|
+
];
|
|
1786
|
+
}
|
|
1787
|
+
else if (!open) {
|
|
1788
|
+
this.stopDocumentListeners();
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
stopDocumentListeners() {
|
|
1792
|
+
this._unlistenDocument.forEach(unlisten => unlisten());
|
|
1793
|
+
this._unlistenDocument = [];
|
|
1794
|
+
}
|
|
1795
|
+
/** Whether the View menu has anything to show. */
|
|
1796
|
+
get ShowViewMenu() {
|
|
1797
|
+
const sections = !!this.Config.ShowSectionControls && (!!this.Config.ShowSectionFilter ||
|
|
1798
|
+
this.ShowExpandCollapseAll ||
|
|
1799
|
+
!!this.Config.ShowSectionManager ||
|
|
1800
|
+
this.HasCustomSectionOrder ||
|
|
1801
|
+
!!this.Config.ShowWidthToggle);
|
|
1802
|
+
return sections || this.ShowVariantPickerButton;
|
|
1803
|
+
}
|
|
1804
|
+
OnDocumentClick(event) {
|
|
1805
|
+
if (!this.host.nativeElement.contains(event.target)) {
|
|
1806
|
+
this.CloseMenus();
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
OnEscape(event) {
|
|
1810
|
+
// Escape in a section search that has text clears the text first; the next Escape closes the panel.
|
|
1811
|
+
const target = event?.target;
|
|
1812
|
+
if (target?.classList?.contains('mj-section-search') && target.value) {
|
|
1813
|
+
this.OnClearFilter();
|
|
1814
|
+
return;
|
|
1815
|
+
}
|
|
1816
|
+
// Closing a panel that holds focus returns focus to the button that opened it.
|
|
1817
|
+
const open = this.MoreMenuOpen ? 'more' : this.ViewMenuOpen ? 'view' : null;
|
|
1818
|
+
const focusInside = open !== null && this.host.nativeElement.contains(document.activeElement);
|
|
1819
|
+
this.CloseMenus();
|
|
1820
|
+
if (open && focusInside) {
|
|
1821
|
+
this.focusTrigger(open);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* The engine for this component's provider (a multi-provider host has one per connection), else
|
|
1826
|
+
* the global one. Resolved once per change-detection pass (cleared in ngDoCheck).
|
|
1827
|
+
*/
|
|
1828
|
+
get userInfoEngine() {
|
|
1829
|
+
return (this._userInfoEngine ??= this.resolveUserInfoEngine());
|
|
1830
|
+
}
|
|
1831
|
+
_userInfoEngine = null;
|
|
1832
|
+
resolveUserInfoEngine() {
|
|
1833
|
+
const provider = this.ProviderToUse;
|
|
1834
|
+
const engine = provider
|
|
1835
|
+
? UserInfoEngine.GetProviderInstance(provider, UserInfoEngine)
|
|
1836
|
+
: UserInfoEngine.Instance;
|
|
1837
|
+
// A host that never ran startup (lazy startup, a bare form) can hand back a fresh, unloaded
|
|
1838
|
+
// engine with no settings: pins would never load. Use the loaded global one then.
|
|
1839
|
+
return engine.Loaded ? engine : UserInfoEngine.Instance;
|
|
1840
|
+
}
|
|
1841
|
+
readPins() {
|
|
1842
|
+
let raw;
|
|
1843
|
+
try {
|
|
1844
|
+
raw = this.userInfoEngine.GetSetting(TOOLBAR_PINS_SETTING_KEY);
|
|
1845
|
+
}
|
|
1846
|
+
catch {
|
|
1847
|
+
return null;
|
|
1848
|
+
}
|
|
1849
|
+
if (raw !== this._pinsRaw) {
|
|
1850
|
+
this._pinsRaw = raw;
|
|
1851
|
+
this._pinsParsed = null;
|
|
1852
|
+
if (raw) {
|
|
1853
|
+
try {
|
|
1854
|
+
const parsed = JSON.parse(raw);
|
|
1855
|
+
this._pinsParsed = Array.isArray(parsed.Pinned) ? parsed.Pinned.filter((k) => typeof k === 'string') : null;
|
|
1856
|
+
}
|
|
1857
|
+
catch {
|
|
1858
|
+
this._pinsParsed = null;
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
return this._pinsParsed;
|
|
1863
|
+
}
|
|
1864
|
+
writePins(pins) {
|
|
1865
|
+
this._localPins = pins;
|
|
1866
|
+
try {
|
|
1867
|
+
this.userInfoEngine.SetSettingDebounced(TOOLBAR_PINS_SETTING_KEY, JSON.stringify({ Version: 1, Pinned: pins }));
|
|
1868
|
+
}
|
|
1869
|
+
catch {
|
|
1870
|
+
// No user context (tests, anonymous hosts): the pins still apply for this session.
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1367
1873
|
async OnToolbarItemClick(item, event) {
|
|
1368
1874
|
if (item.Disabled || item.IsLoading) {
|
|
1369
1875
|
return;
|
|
@@ -1402,6 +1908,9 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1402
1908
|
case 'attachments':
|
|
1403
1909
|
this.OnAttachmentsPanel();
|
|
1404
1910
|
break;
|
|
1911
|
+
case 'clone':
|
|
1912
|
+
this.OnClone();
|
|
1913
|
+
break;
|
|
1405
1914
|
}
|
|
1406
1915
|
}
|
|
1407
1916
|
this.ToolbarItemClick.emit(clickArgs);
|
|
@@ -1426,8 +1935,79 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1426
1935
|
}
|
|
1427
1936
|
}
|
|
1428
1937
|
}
|
|
1938
|
+
// ── Record cloning ──────────────────────────────────────────────
|
|
1939
|
+
/** Whether the clone slide-in is open. */
|
|
1940
|
+
IsClonePanelOpen = false;
|
|
1941
|
+
/** Whether the server said this user may clone records of the current entity. */
|
|
1942
|
+
CanCloneEntity = false;
|
|
1943
|
+
/** The entity name the last clone capability check ran for. */
|
|
1944
|
+
_cloneCheckedEntity = null;
|
|
1945
|
+
_cloneRecordKey = null;
|
|
1946
|
+
/** True when the Clone action should render for the current record. */
|
|
1947
|
+
get ShowCloneAction() {
|
|
1948
|
+
return !!this.Config.ShowCloneButton && this.CanCloneEntity && !!this.Record?.IsSaved;
|
|
1949
|
+
}
|
|
1950
|
+
/** Opens the clone slide-in, unless a `BeforeClone` handler cancels. */
|
|
1951
|
+
OnClone() {
|
|
1952
|
+
const beforeEvent = new BeforeCloneEventArgs();
|
|
1953
|
+
this.BeforeClone.emit(beforeEvent);
|
|
1954
|
+
if (beforeEvent.Cancel)
|
|
1955
|
+
return;
|
|
1956
|
+
this.IsClonePanelOpen = true;
|
|
1957
|
+
this.cdr.markForCheck();
|
|
1958
|
+
}
|
|
1959
|
+
OnClonePanelVisibleChange(visible) {
|
|
1960
|
+
this.IsClonePanelOpen = visible;
|
|
1961
|
+
this.cdr.markForCheck();
|
|
1962
|
+
}
|
|
1963
|
+
OnCloneCompleted(event) {
|
|
1964
|
+
this.CloneCompleted.emit(event);
|
|
1965
|
+
}
|
|
1966
|
+
/** Turns the clone widget's navigation request into the toolbar's own `Navigate` event. */
|
|
1967
|
+
OnCloneNavigate(event) {
|
|
1968
|
+
const entityInfo = this.ProviderToUse?.EntityByName(event.EntityName);
|
|
1969
|
+
this.Navigate.emit({
|
|
1970
|
+
Kind: 'record',
|
|
1971
|
+
EntityName: event.EntityName,
|
|
1972
|
+
PrimaryKey: CompositeKey.FromURLSegment(entityInfo, event.RecordKey),
|
|
1973
|
+
OpenInNewTab: true,
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* Asks `RecordClone.Describe` (cached per entity per session) once per entity whether the
|
|
1978
|
+
* user may clone it. Entities whose `Configuration.Clone.Enabled` is not true are skipped
|
|
1979
|
+
* without a server call.
|
|
1980
|
+
*/
|
|
1981
|
+
checkCloneCapability() {
|
|
1982
|
+
// A panel opened for one record must not stay open over the next one the form loads.
|
|
1983
|
+
const recordKey = this.Record?.PrimaryKey?.ToConcatenatedString() ?? null;
|
|
1984
|
+
if (recordKey !== this._cloneRecordKey) {
|
|
1985
|
+
this._cloneRecordKey = recordKey;
|
|
1986
|
+
this.IsClonePanelOpen = false;
|
|
1987
|
+
}
|
|
1988
|
+
const entityName = this.Config.ShowCloneButton ? this.Record?.EntityInfo?.Name ?? null : null;
|
|
1989
|
+
if (entityName === this._cloneCheckedEntity)
|
|
1990
|
+
return;
|
|
1991
|
+
this._cloneCheckedEntity = entityName;
|
|
1992
|
+
this.CanCloneEntity = false;
|
|
1993
|
+
this.IsClonePanelOpen = false; // a panel opened for the previous entity must not reopen itself for this one
|
|
1994
|
+
if (!entityName || this.Record?.EntityInfo?.CloneConfig?.Enabled !== true)
|
|
1995
|
+
return;
|
|
1996
|
+
this.cloneService
|
|
1997
|
+
.DescribeRecord({ EntityName: entityName }, this.ProviderToUse)
|
|
1998
|
+
.then((describe) => {
|
|
1999
|
+
if (this._cloneCheckedEntity !== entityName)
|
|
2000
|
+
return;
|
|
2001
|
+
this.CanCloneEntity = describe.CanClone;
|
|
2002
|
+
this.cdr.markForCheck();
|
|
2003
|
+
})
|
|
2004
|
+
.catch((err) => {
|
|
2005
|
+
// A failed capability check hides the action; the server re-checks on every clone.
|
|
2006
|
+
LogError(`Clone capability check failed for ${entityName}: ${err instanceof Error ? err.message : String(err)}`);
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
1429
2009
|
OnShowChanges() {
|
|
1430
|
-
if (this.
|
|
2010
|
+
if (this.dispatchToFormRef('ShowChanges'))
|
|
1431
2011
|
return;
|
|
1432
2012
|
this.ShowChangesRequested.emit();
|
|
1433
2013
|
}
|
|
@@ -1458,10 +2038,12 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1458
2038
|
VariantSubtitle(v) {
|
|
1459
2039
|
return `${v.Scope} · ${v.Status}`;
|
|
1460
2040
|
}
|
|
2041
|
+
/** @deprecated The variant list lives in the View panel; nothing opens a separate variant menu. */
|
|
1461
2042
|
ToggleVariantMenu() {
|
|
1462
2043
|
this.VariantMenuOpen = !this.VariantMenuOpen;
|
|
1463
2044
|
this.cdr.markForCheck();
|
|
1464
2045
|
}
|
|
2046
|
+
/** @deprecated The variant list lives in the View panel; use {@link CloseMenus}. */
|
|
1465
2047
|
CloseVariantMenu() {
|
|
1466
2048
|
if (this.VariantMenuOpen) {
|
|
1467
2049
|
this.VariantMenuOpen = false;
|
|
@@ -1475,7 +2057,11 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1475
2057
|
*/
|
|
1476
2058
|
OnVariantClick(variantID) {
|
|
1477
2059
|
this.VariantMenuOpen = false;
|
|
2060
|
+
this.ViewMenuOpen = false;
|
|
2061
|
+
this.syncDocumentListeners();
|
|
1478
2062
|
if (variantID === this.CurrentVariantID) {
|
|
2063
|
+
// Nothing reloads, so the row that had focus just went away: back to the View button.
|
|
2064
|
+
this.focusTrigger('view');
|
|
1479
2065
|
this.cdr.markForCheck();
|
|
1480
2066
|
return;
|
|
1481
2067
|
}
|
|
@@ -1485,7 +2071,7 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1485
2071
|
* Try to call a method on the legacy form reference.
|
|
1486
2072
|
* Returns true if the method was found and called, false otherwise.
|
|
1487
2073
|
*/
|
|
1488
|
-
|
|
2074
|
+
dispatchToFormRef(methodName, ...args) {
|
|
1489
2075
|
if (!this._formRef)
|
|
1490
2076
|
return false;
|
|
1491
2077
|
const ref = this._formRef;
|
|
@@ -1575,30 +2161,41 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1575
2161
|
OnResetSectionOrder() {
|
|
1576
2162
|
this.ResetSectionOrderRequested.emit();
|
|
1577
2163
|
}
|
|
2164
|
+
/** "Reorder sections" in the View panel: close it properly (listeners, focus on View), then open the manager. */
|
|
2165
|
+
OnReorderSectionsFromView() {
|
|
2166
|
+
this.ViewMenuOpen = false;
|
|
2167
|
+
this.syncDocumentListeners();
|
|
2168
|
+
this.focusTrigger('view');
|
|
2169
|
+
this.OnManageSections();
|
|
2170
|
+
}
|
|
1578
2171
|
OnManageSections() {
|
|
1579
2172
|
this.ManageSectionsRequested.emit();
|
|
1580
2173
|
}
|
|
1581
2174
|
static ɵfac = /*@__PURE__*/ (() => { let ɵMjFormToolbarComponent_BaseFactory; return function MjFormToolbarComponent_Factory(__ngFactoryType__) { return (ɵMjFormToolbarComponent_BaseFactory || (ɵMjFormToolbarComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MjFormToolbarComponent)))(__ngFactoryType__ || MjFormToolbarComponent); }; })();
|
|
1582
|
-
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", 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", AttachmentsPanelToggled: "AttachmentsPanelToggled", ShowChangesRequested: "ShowChangesRequested", VariantPicked: "VariantPicked", CustomButtonClick: "CustomButtonClick", FilterChange: "FilterChange", ExpandAllRequested: "ExpandAllRequested", CollapseAllRequested: "CollapseAllRequested", ShowEmptyFieldsChange: "ShowEmptyFieldsChange", WidthModeChange: "WidthModeChange", ResetSectionOrderRequested: "ResetSectionOrderRequested", ManageSectionsRequested: "ManageSectionsRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls:
|
|
2175
|
+
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", 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", 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"], [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, "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-hierarchy-row"], [1, "mj-forms-menu-host"], ["type", "button", "data-menu-trigger", "more", "title", "More actions", 1, "mj-forms-btn", "mj-forms-menu-trigger", 3, "click"], [1, "fa-solid", "fa-ellipsis"], ["role", "group", "aria-label", "More actions", 1, "mj-forms-menu", "mj-forms-menu--left", 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"], [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, "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) {
|
|
1583
2176
|
i0.ɵɵprojectionDef(_c0);
|
|
1584
|
-
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_0_Template, 17, 3, "div",
|
|
1585
|
-
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Template,
|
|
1586
|
-
i0.ɵɵ
|
|
1587
|
-
i0.ɵɵconditionalCreate(
|
|
1588
|
-
i0.ɵɵ
|
|
2177
|
+
i0.ɵɵconditionalCreate(0, MjFormToolbarComponent_Conditional_0_Template, 17, 3, "div", 2);
|
|
2178
|
+
i0.ɵɵconditionalCreate(1, MjFormToolbarComponent_Conditional_1_Template, 13, 7);
|
|
2179
|
+
i0.ɵɵtemplate(2, MjFormToolbarComponent_ng_template_2_Template, 5, 26, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
2180
|
+
i0.ɵɵconditionalCreate(4, MjFormToolbarComponent_Conditional_4_Template, 1, 3, "mj-record-clone-slide-in", 3);
|
|
2181
|
+
i0.ɵɵconditionalCreate(5, MjFormToolbarComponent_Conditional_5_Template, 19, 3, "div", 4);
|
|
2182
|
+
i0.ɵɵconditionalCreate(6, MjFormToolbarComponent_Conditional_6_Template, 16, 0, "div", 4);
|
|
2183
|
+
i0.ɵɵtemplate(7, MjFormToolbarComponent_ng_template_7_Template, 2, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
1589
2184
|
} if (rf & 2) {
|
|
1590
2185
|
i0.ɵɵconditional(ctx.EditMode && ctx.Config.ShowEditBanner ? 0 : -1);
|
|
1591
2186
|
i0.ɵɵadvance();
|
|
1592
2187
|
i0.ɵɵconditional(!ctx.EditMode ? 1 : -1);
|
|
2188
|
+
i0.ɵɵadvance(3);
|
|
2189
|
+
i0.ɵɵconditional(ctx.ShowCloneAction ? 4 : -1);
|
|
1593
2190
|
i0.ɵɵadvance();
|
|
1594
|
-
i0.ɵɵconditional(ctx.ShowDiscardDialog ?
|
|
2191
|
+
i0.ɵɵconditional(ctx.ShowDiscardDialog ? 5 : -1);
|
|
1595
2192
|
i0.ɵɵadvance();
|
|
1596
|
-
i0.ɵɵconditional(ctx.ShowDeleteDialog ?
|
|
1597
|
-
} }, dependencies: [i1.NgTemplateOutlet], 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 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 padding: 8px 12px;\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.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}"], changeDetection: 0 });
|
|
2193
|
+
i0.ɵɵconditional(ctx.ShowDeleteDialog ? 6 : -1);
|
|
2194
|
+
} }, 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}"], changeDetection: 0 });
|
|
1598
2195
|
}
|
|
1599
2196
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MjFormToolbarComponent, [{
|
|
1600
2197
|
type: Component,
|
|
1601
|
-
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 <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 ============================================ -->\n@if (!EditMode) {\n <div class=\"mj-forms-toolbar\" [class.mj-forms-toolbar--sticky]=\"Config.StickyToolbar\">\n\n <!-- Action buttons -->\n <div class=\"mj-forms-toolbar-group\">\n @for (item of ResolvedActionItems; 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.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--attachments]=\"item.Key === 'attachments'\"\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]=\"item.Key === 'history' ? 'mj-version-count-badge' : 'mj-list-count-badge'\">{{ item.Badge }}</span>\n }\n </button>\n }\n </div>\n\n <!-- Separator before hierarchy -->\n @if (Config.ShowEntityHierarchy && IsInHierarchy) {\n <div class=\"mj-forms-toolbar-separator\"></div>\n }\n\n <!-- IS-A Entity Hierarchy Breadcrumb (bidirectional: Root \u2192 ... \u2192 Current \u2192 ... \u2192 Leaf) -->\n @if (Config.ShowEntityHierarchy && IsInHierarchy) {\n <div class=\"mj-entity-hierarchy\">\n <!-- Parent chain (root \u2192 ... \u2192 immediate parent) -->\n @for (parent of ParentChain; track parent.ID) {\n <a 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 </a>\n <span class=\"mj-hierarchy-arrow\"><i class=\"fa-solid fa-chevron-right\"></i></span>\n }\n\n <!-- Current entity (always shown) -->\n <span class=\"mj-entity-badge mj-entity-badge--current\">{{ EntityInfo?.Name }}</span>\n\n <!-- Descendant tree (recursive: inline for single paths, branching for multiple) -->\n @if (DescendantTree.length > 0) {\n <ng-container [ngTemplateOutlet]=\"descendantTreeTpl\"\n [ngTemplateOutletContext]=\"{ items: DescendantTree }\"></ng-container>\n }\n </div>\n }\n\n <!-- Spacer pushes section controls to the right -->\n <div class=\"mj-forms-toolbar-spacer\"></div>\n\n <!-- Form-variant picker: right-side toolbar button. Opens a dropdown\n with the Default (CodeGen Angular) form + every variant the host\n supplied. Persists the user's pick via the host's resolver (which\n goes through UserInfoEngine settings, not localStorage). Hidden\n entirely when the host disables ShowFormVariantPicker or supplied\n fewer than 2 variants. -->\n @if (ShowVariantPickerButton) {\n <div class=\"mj-form-variant-picker-host\"\n [class.open]=\"VariantMenuOpen\">\n <button class=\"mj-forms-btn mj-form-variant-picker-trigger\"\n type=\"button\"\n (click)=\"ToggleVariantMenu()\"\n (blur)=\"CloseVariantMenu()\"\n [title]=\"'Form variant: ' + CurrentVariantLabel + ' \u2014 click to change'\">\n <i class=\"fa-solid fa-pen-ruler\"></i>\n <span class=\"mj-form-variant-picker-current-label\">{{ CurrentVariantLabel }}</span>\n <i class=\"fa-solid fa-chevron-down chev\"></i>\n </button>\n @if (VariantMenuOpen) {\n <div class=\"mj-form-variant-picker-menu\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"mj-form-variant-picker-row mj-form-variant-picker-default\"\n [class.current]=\"!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 </div>\n @for (v of Variants; track v.ID) {\n <div class=\"mj-form-variant-picker-row\"\n [class.current]=\"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 </div>\n }\n </div>\n }\n </div>\n }\n\n <!-- Section Controls -->\n @if (Config.ShowSectionControls) {\n <div class=\"mj-forms-toolbar-group mj-section-controls\">\n @if (Config.ShowSectionFilter) {\n <div class=\"mj-forms-search-wrapper\">\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 @if (SearchFilter) {\n <button class=\"mj-clear-search\" (click)=\"OnClearFilter()\" title=\"Clear search\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n }\n </div>\n }\n @if (ShowExpandCollapseAll) {\n <button class=\"mj-forms-btn mj-forms-btn--ghost mj-forms-btn--icon-only\"\n [disabled]=\"ExpandedSectionCount >= VisibleSectionCount\"\n (click)=\"OnExpandAll()\" title=\"Expand all sections\">\n <i class=\"fa-solid fa-angles-down\"></i>\n </button>\n <button class=\"mj-forms-btn mj-forms-btn--ghost mj-forms-btn--icon-only\"\n [disabled]=\"ExpandedSectionCount === 0\"\n (click)=\"OnCollapseAll()\" title=\"Collapse all sections\">\n <i class=\"fa-solid fa-angles-up\"></i>\n </button>\n }\n @if (HasCustomSectionOrder) {\n <button class=\"mj-forms-btn mj-forms-btn--ghost mj-forms-btn--icon-only\" (click)=\"OnResetSectionOrder()\" title=\"Reset section order\">\n <i class=\"fa-solid fa-arrow-rotate-left\"></i>\n </button>\n }\n @if (Config.ShowSectionManager) {\n <button class=\"mj-forms-btn mj-forms-btn--ghost mj-forms-btn--icon-only\"\n (click)=\"OnManageSections()\" title=\"Manage section order\">\n <i class=\"fa-solid fa-bars-staggered\"></i>\n </button>\n }\n @if (Config.ShowWidthToggle) {\n <button class=\"mj-forms-btn mj-forms-btn--ghost mj-forms-btn--icon-only\"\n (click)=\"OnToggleWidthMode()\"\n [title]=\"WidthMode === 'centered' ? 'Expand to full width' : 'Center content'\">\n <i [class]=\"WidthMode === 'centered' ? 'fa-solid fa-arrows-left-right-to-line' : 'fa-solid fa-compress'\"></i>\n </button>\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\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 <a 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 </a>\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 <a 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 </a>\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 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 padding: 8px 12px;\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.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"] }]
|
|
2198
|
+
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 <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 [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 @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--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"] }]
|
|
1602
2199
|
}], null, { Form: [{
|
|
1603
2200
|
type: Input
|
|
1604
2201
|
}], _deprecatedForm: [{
|
|
@@ -1726,6 +2323,10 @@ export class MjFormToolbarComponent extends BaseAngularComponent {
|
|
|
1726
2323
|
type: Output
|
|
1727
2324
|
}], ManageSectionsRequested: [{
|
|
1728
2325
|
type: Output
|
|
2326
|
+
}], BeforeClone: [{
|
|
2327
|
+
type: Output
|
|
2328
|
+
}], CloneCompleted: [{
|
|
2329
|
+
type: Output
|
|
1729
2330
|
}] }); })();
|
|
1730
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormToolbarComponent, { className: "MjFormToolbarComponent", filePath: "src/lib/toolbar/form-toolbar.component.ts", lineNumber:
|
|
2331
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MjFormToolbarComponent, { className: "MjFormToolbarComponent", filePath: "src/lib/toolbar/form-toolbar.component.ts", lineNumber: 76 }); })();
|
|
1731
2332
|
//# sourceMappingURL=form-toolbar.component.js.map
|