@memberjunction/ng-dashboard-viewer 6.2.0-edge.4 → 6.2.0-edge.6

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.
Files changed (84) hide show
  1. package/README.md +17 -3
  2. package/dist/lib/config-panels/artifact-config-panel.component.js +2 -2
  3. package/dist/lib/config-panels/component-config-panel.component.d.ts +51 -0
  4. package/dist/lib/config-panels/component-config-panel.component.d.ts.map +1 -0
  5. package/dist/lib/config-panels/component-config-panel.component.js +246 -0
  6. package/dist/lib/config-panels/component-config-panel.component.js.map +1 -0
  7. package/dist/lib/config-panels/index.d.ts +1 -0
  8. package/dist/lib/config-panels/index.d.ts.map +1 -1
  9. package/dist/lib/config-panels/index.js +1 -0
  10. package/dist/lib/config-panels/index.js.map +1 -1
  11. package/dist/lib/config-panels/query-config-panel.component.js +2 -2
  12. package/dist/lib/config-panels/view-config-panel.component.js +2 -2
  13. package/dist/lib/config-panels/weburl-config-panel.component.js +2 -2
  14. package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts +58 -1
  15. package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts.map +1 -1
  16. package/dist/lib/dashboard-viewer/dashboard-viewer.component.js +186 -4
  17. package/dist/lib/dashboard-viewer/dashboard-viewer.component.js.map +1 -1
  18. package/dist/lib/dashboard-viewer.module.d.ts +22 -17
  19. package/dist/lib/dashboard-viewer.module.d.ts.map +1 -1
  20. package/dist/lib/dashboard-viewer.module.js +29 -4
  21. package/dist/lib/dashboard-viewer.module.js.map +1 -1
  22. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.d.ts +35 -1
  23. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.d.ts.map +1 -1
  24. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.js +307 -34
  25. package/dist/lib/dialogs/part-dialog/dashboard-part-dialog.component.js.map +1 -1
  26. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.d.ts +79 -0
  27. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.d.ts.map +1 -0
  28. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.js +461 -0
  29. package/dist/lib/dialogs/properties-dialog/dashboard-properties-dialog.component.js.map +1 -0
  30. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.d.ts +41 -0
  31. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.d.ts.map +1 -0
  32. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.js +248 -0
  33. package/dist/lib/dialogs/property-default-editor/property-default-editor.component.js.map +1 -0
  34. package/dist/lib/models/dashboard-config-validator.d.ts +30 -0
  35. package/dist/lib/models/dashboard-config-validator.d.ts.map +1 -0
  36. package/dist/lib/models/dashboard-config-validator.js +107 -0
  37. package/dist/lib/models/dashboard-config-validator.js.map +1 -0
  38. package/dist/lib/models/dashboard-part-interfaces.d.ts +42 -0
  39. package/dist/lib/models/dashboard-part-interfaces.d.ts.map +1 -0
  40. package/dist/lib/models/dashboard-part-interfaces.js +180 -0
  41. package/dist/lib/models/dashboard-part-interfaces.js.map +1 -0
  42. package/dist/lib/models/dashboard-properties.d.ts +182 -0
  43. package/dist/lib/models/dashboard-properties.d.ts.map +1 -0
  44. package/dist/lib/models/dashboard-properties.js +263 -0
  45. package/dist/lib/models/dashboard-properties.js.map +1 -0
  46. package/dist/lib/models/dashboard-types.d.ts +8 -0
  47. package/dist/lib/models/dashboard-types.d.ts.map +1 -1
  48. package/dist/lib/models/dashboard-types.js.map +1 -1
  49. package/dist/lib/models/part-inputs-editor.d.ts +36 -0
  50. package/dist/lib/models/part-inputs-editor.d.ts.map +1 -0
  51. package/dist/lib/models/part-inputs-editor.js +53 -0
  52. package/dist/lib/models/part-inputs-editor.js.map +1 -0
  53. package/dist/lib/parts/artifact-part.component.d.ts.map +1 -1
  54. package/dist/lib/parts/artifact-part.component.js +5 -4
  55. package/dist/lib/parts/artifact-part.component.js.map +1 -1
  56. package/dist/lib/parts/base-dashboard-part.d.ts +50 -1
  57. package/dist/lib/parts/base-dashboard-part.d.ts.map +1 -1
  58. package/dist/lib/parts/base-dashboard-part.js +108 -1
  59. package/dist/lib/parts/base-dashboard-part.js.map +1 -1
  60. package/dist/lib/parts/component-part.component.d.ts +54 -0
  61. package/dist/lib/parts/component-part.component.d.ts.map +1 -0
  62. package/dist/lib/parts/component-part.component.js +221 -0
  63. package/dist/lib/parts/component-part.component.js.map +1 -0
  64. package/dist/lib/parts/index.d.ts +1 -0
  65. package/dist/lib/parts/index.d.ts.map +1 -1
  66. package/dist/lib/parts/index.js +1 -0
  67. package/dist/lib/parts/index.js.map +1 -1
  68. package/dist/lib/parts/query-part.component.d.ts +25 -1
  69. package/dist/lib/parts/query-part.component.d.ts.map +1 -1
  70. package/dist/lib/parts/query-part.component.js +93 -10
  71. package/dist/lib/parts/query-part.component.js.map +1 -1
  72. package/dist/lib/parts/view-part.component.d.ts +18 -1
  73. package/dist/lib/parts/view-part.component.d.ts.map +1 -1
  74. package/dist/lib/parts/view-part.component.js +74 -10
  75. package/dist/lib/parts/view-part.component.js.map +1 -1
  76. package/dist/lib/parts/weburl-part.component.d.ts +14 -0
  77. package/dist/lib/parts/weburl-part.component.d.ts.map +1 -1
  78. package/dist/lib/parts/weburl-part.component.js +62 -5
  79. package/dist/lib/parts/weburl-part.component.js.map +1 -1
  80. package/dist/public-api.d.ts +8 -0
  81. package/dist/public-api.d.ts.map +1 -1
  82. package/dist/public-api.js +8 -0
  83. package/dist/public-api.js.map +1 -1
  84. package/package.json +15 -13
@@ -2,12 +2,17 @@ import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ViewChild, V
2
2
  import { MJGlobal, UUIDsEqual } from '@memberjunction/global';
3
3
  import { BaseAngularComponent } from '@memberjunction/ng-base-types';
4
4
  import { BaseConfigPanel } from '../../config-panels/base-config-panel';
5
+ import { GetInputMappings, INPUT_MAPPINGS_KEY } from '../../models/dashboard-properties';
6
+ import { LoadPartInterface } from '../../models/dashboard-part-interfaces';
7
+ import { PartInputsEditor } from '../../models/part-inputs-editor';
5
8
  import * as i0 from "@angular/core";
6
9
  import * as i1 from "@angular/forms";
7
10
  import * as i2 from "@memberjunction/ng-shared-generic";
8
11
  import * as i3 from "@memberjunction/ng-ui-components";
12
+ import * as i4 from "../property-default-editor/property-default-editor.component";
9
13
  const _c0 = ["configPanelContainer"];
10
14
  const _forTrack0 = ($index, $item) => $item.ID;
15
+ const _forTrack1 = ($index, $item) => $item.Input.Name;
11
16
  function DashboardPartDialogComponent_Conditional_0_For_7_Template(rf, ctx) { if (rf & 1) {
12
17
  const _r3 = i0.ɵɵgetCurrentView();
13
18
  i0.ɵɵelementStart(0, "button", 11);
@@ -36,10 +41,10 @@ function DashboardPartDialogComponent_Conditional_0_Conditional_8_Template(rf, c
36
41
  i0.ɵɵelement(0, "mj-empty-state", 7);
37
42
  } }
38
43
  function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
39
- i0.ɵɵelement(0, "mj-loading", 18);
44
+ i0.ɵɵelement(0, "mj-loading", 19);
40
45
  } }
41
46
  function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
42
- i0.ɵɵelementStart(0, "p", 19);
47
+ i0.ɵɵelementStart(0, "p", 20);
43
48
  i0.ɵɵtext(1);
44
49
  i0.ɵɵelementEnd();
45
50
  } if (rf & 2) {
@@ -48,8 +53,8 @@ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_
48
53
  i0.ɵɵtextInterpolate(ctx_r1.LoadError);
49
54
  } }
50
55
  function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_For_8_Template(rf, ctx) { if (rf & 1) {
51
- i0.ɵɵelementStart(0, "p", 20);
52
- i0.ɵɵelement(1, "i", 21);
56
+ i0.ɵɵelementStart(0, "p", 21);
57
+ i0.ɵɵelement(1, "i", 22);
53
58
  i0.ɵɵtext(2);
54
59
  i0.ɵɵelementEnd();
55
60
  } if (rf & 2) {
@@ -58,13 +63,13 @@ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_
58
63
  i0.ɵɵtextInterpolate1(" ", error_r6);
59
64
  } }
60
65
  function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Template(rf, ctx) { if (rf & 1) {
61
- i0.ɵɵelementStart(0, "section")(1, "div", 17);
66
+ i0.ɵɵelementStart(0, "section")(1, "div", 18);
62
67
  i0.ɵɵtext(2, "Source");
63
68
  i0.ɵɵelementEnd();
64
- i0.ɵɵconditionalCreate(3, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_3_Template, 1, 0, "mj-loading", 18);
65
- i0.ɵɵconditionalCreate(4, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_4_Template, 2, 1, "p", 19);
69
+ i0.ɵɵconditionalCreate(3, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_3_Template, 1, 0, "mj-loading", 19);
70
+ i0.ɵɵconditionalCreate(4, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Conditional_4_Template, 2, 1, "p", 20);
66
71
  i0.ɵɵelementContainer(5, null, 0);
67
- i0.ɵɵrepeaterCreate(7, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_For_8_Template, 3, 1, "p", 20, i0.ɵɵrepeaterTrackByIndex);
72
+ i0.ɵɵrepeaterCreate(7, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_For_8_Template, 3, 1, "p", 21, i0.ɵɵrepeaterTrackByIndex);
68
73
  i0.ɵɵelementEnd();
69
74
  } if (rf & 2) {
70
75
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -75,30 +80,173 @@ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_
75
80
  i0.ɵɵadvance(3);
76
81
  i0.ɵɵrepeater(ctx_r1.Errors);
77
82
  } }
78
- function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_For_9_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵelementStart(0, "option", 25);
83
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_1_Template(rf, ctx) { if (rf & 1) {
84
+ i0.ɵɵelementStart(0, "section")(1, "div", 18);
85
+ i0.ɵɵtext(2, "Inputs");
86
+ i0.ɵɵelementEnd();
87
+ i0.ɵɵelement(3, "mj-loading", 23);
88
+ i0.ɵɵelementEnd();
89
+ } }
90
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵelementStart(0, "section")(1, "div", 18);
92
+ i0.ɵɵtext(2, "Inputs");
93
+ i0.ɵɵelementEnd();
94
+ i0.ɵɵelementStart(3, "p", 20);
95
+ i0.ɵɵtext(4);
96
+ i0.ɵɵelementEnd()();
97
+ } if (rf & 2) {
98
+ const ctx_r1 = i0.ɵɵnextContext(3);
99
+ i0.ɵɵadvance(4);
100
+ i0.ɵɵtextInterpolate(ctx_r1.InputsLoadError);
101
+ } }
102
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
103
+ i0.ɵɵelementStart(0, "span", 29);
104
+ i0.ɵɵtext(1, "*");
105
+ i0.ɵɵelementEnd();
106
+ } }
107
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_6_Template(rf, ctx) { if (rf & 1) {
108
+ i0.ɵɵelementStart(0, "span", 30);
109
+ i0.ɵɵelement(1, "i", 32);
110
+ i0.ɵɵtext(2, " Set by server");
111
+ i0.ɵɵelementEnd();
112
+ } }
113
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_7_Template(rf, ctx) { if (rf & 1) {
114
+ i0.ɵɵelementStart(0, "span", 30);
115
+ i0.ɵɵtext(1);
116
+ i0.ɵɵelementEnd();
117
+ } if (rf & 2) {
118
+ const row_r7 = i0.ɵɵnextContext().$implicit;
119
+ i0.ɵɵadvance();
120
+ i0.ɵɵtextInterpolate1("Can't be mapped: a dashboard property can't fill a ", row_r7.Input.Type, " input");
121
+ } }
122
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_For_5_Template(rf, ctx) { if (rf & 1) {
123
+ i0.ɵɵelementStart(0, "option", 35);
80
124
  i0.ɵɵtext(1);
81
125
  i0.ɵɵelementEnd();
82
126
  } if (rf & 2) {
83
- const seconds_r8 = ctx.$implicit;
84
- i0.ɵɵproperty("ngValue", seconds_r8);
127
+ const name_r9 = ctx.$implicit;
128
+ i0.ɵɵproperty("value", name_r9);
129
+ i0.ɵɵadvance();
130
+ i0.ɵɵtextInterpolate(name_r9);
131
+ } }
132
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_Template(rf, ctx) { if (rf & 1) {
133
+ const _r8 = i0.ɵɵgetCurrentView();
134
+ i0.ɵɵelementStart(0, "div", 31)(1, "select", 33);
135
+ i0.ɵɵlistener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_Template_select_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r8); const row_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetInputProperty(row_r7, $event)); });
136
+ i0.ɵɵelementStart(2, "option", 34);
137
+ i0.ɵɵtext(3, "No dashboard property");
138
+ i0.ɵɵelementEnd();
139
+ i0.ɵɵrepeaterCreate(4, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_For_5_Template, 2, 2, "option", 35, i0.ɵɵrepeaterTrackByIdentity);
140
+ i0.ɵɵelementEnd();
141
+ i0.ɵɵelementStart(6, "mj-property-default-editor", 36);
142
+ i0.ɵɵlistener("DefaultChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_Template_mj_property_default_editor_DefaultChange_6_listener($event) { i0.ɵɵrestoreView(_r8); const row_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetInputDefault(row_r7, $event)); });
143
+ i0.ɵɵelementEnd()();
144
+ } if (rf & 2) {
145
+ const row_r7 = i0.ɵɵnextContext().$implicit;
146
+ const editor_r10 = i0.ɵɵnextContext();
147
+ const ctx_r1 = i0.ɵɵnextContext(3);
85
148
  i0.ɵɵadvance();
86
- i0.ɵɵtextInterpolate(seconds_r8);
149
+ i0.ɵɵproperty("ngModel", row_r7.Property ?? "");
150
+ i0.ɵɵattribute("aria-label", "Dashboard property for " + row_r7.Input.Name);
151
+ i0.ɵɵadvance(3);
152
+ i0.ɵɵrepeater(ctx_r1.PropertyChoices(row_r7));
153
+ i0.ɵɵadvance(2);
154
+ i0.ɵɵproperty("Default", row_r7.Default)("Type", editor_r10.DefaultType(row_r7))("Label", "Default for " + row_r7.Input.Name)("NoneLabel", row_r7.Property ? "No fallback" : "Its own default");
87
155
  } }
88
- function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
89
- const _r7 = i0.ɵɵgetCurrentView();
90
- i0.ɵɵelementStart(0, "section", 16)(1, "label", 22)(2, "input", 23);
91
- i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ShowParameterControls, $event) || (ctx_r1.ShowParameterControls = $event); return i0.ɵɵresetView($event); });
156
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Template(rf, ctx) { if (rf & 1) {
157
+ i0.ɵɵelementStart(0, "div", 25)(1, "div", 27);
158
+ i0.ɵɵtext(2);
159
+ i0.ɵɵelementStart(3, "span", 28);
160
+ i0.ɵɵtext(4);
161
+ i0.ɵɵelementEnd();
162
+ i0.ɵɵconditionalCreate(5, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_5_Template, 2, 0, "span", 29);
163
+ i0.ɵɵelementEnd();
164
+ i0.ɵɵconditionalCreate(6, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_6_Template, 3, 0, "span", 30)(7, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_7_Template, 2, 1, "span", 30)(8, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Conditional_8_Template, 7, 6, "div", 31);
165
+ i0.ɵɵelementEnd();
166
+ } if (rf & 2) {
167
+ const row_r7 = ctx.$implicit;
168
+ const editor_r10 = i0.ɵɵnextContext();
169
+ i0.ɵɵadvance(2);
170
+ i0.ɵɵtextInterpolate1(" ", row_r7.Input.Name, " ");
171
+ i0.ɵɵadvance(2);
172
+ i0.ɵɵtextInterpolate(row_r7.Input.Type);
173
+ i0.ɵɵadvance();
174
+ i0.ɵɵconditional(row_r7.Input.IsRequired ? 5 : -1);
175
+ i0.ɵɵadvance();
176
+ i0.ɵɵconditional(row_r7.Input.ServerSet ? 6 : !editor_r10.CanMap(row_r7) ? 7 : 8);
177
+ } }
178
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_8_Template(rf, ctx) { if (rf & 1) {
179
+ const _r11 = i0.ɵɵgetCurrentView();
180
+ i0.ɵɵelementStart(0, "div", 26)(1, "span");
181
+ i0.ɵɵelement(2, "i", 22);
182
+ i0.ɵɵtext(3);
183
+ i0.ɵɵelementEnd();
184
+ i0.ɵɵelementStart(4, "button", 37);
185
+ i0.ɵɵlistener("click", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_8_Template_button_click_4_listener() { const $index_r12 = i0.ɵɵrestoreView(_r11).$index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.RemoveOrphan($index_r12)); });
186
+ i0.ɵɵtext(5, "Remove");
187
+ i0.ɵɵelementEnd()();
188
+ } if (rf & 2) {
189
+ const orphan_r13 = ctx.$implicit;
190
+ i0.ɵɵadvance(3);
191
+ i0.ɵɵtextInterpolate1(" \"", orphan_r13.Input, "\" is mapped but is not an input of this part");
192
+ } }
193
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_Template(rf, ctx) { if (rf & 1) {
194
+ i0.ɵɵelementStart(0, "section", 14)(1, "div", 18);
195
+ i0.ɵɵtext(2, "Inputs");
196
+ i0.ɵɵelementEnd();
197
+ i0.ɵɵelementStart(3, "p", 24);
198
+ i0.ɵɵtext(4, "Feed an input from a dashboard property, fix it with a default, or leave it to its own default.");
199
+ i0.ɵɵelementEnd();
200
+ i0.ɵɵrepeaterCreate(5, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_6_Template, 9, 4, "div", 25, _forTrack1);
201
+ i0.ɵɵrepeaterCreate(7, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_For_8_Template, 6, 1, "div", 26, i0.ɵɵrepeaterTrackByIndex);
202
+ i0.ɵɵelementEnd();
203
+ } if (rf & 2) {
204
+ const editor_r10 = ctx;
205
+ i0.ɵɵadvance(5);
206
+ i0.ɵɵrepeater(editor_r10.Rows);
207
+ i0.ɵɵadvance(2);
208
+ i0.ɵɵrepeater(editor_r10.Orphans);
209
+ } }
210
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_8_For_1_Template(rf, ctx) { if (rf & 1) {
211
+ i0.ɵɵelementStart(0, "p", 21);
212
+ i0.ɵɵelement(1, "i", 22);
213
+ i0.ɵɵtext(2);
214
+ i0.ɵɵelementEnd();
215
+ } if (rf & 2) {
216
+ const error_r14 = ctx.$implicit;
217
+ i0.ɵɵadvance(2);
218
+ i0.ɵɵtextInterpolate1(" ", error_r14);
219
+ } }
220
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_8_Template(rf, ctx) { if (rf & 1) {
221
+ i0.ɵɵrepeaterCreate(0, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_8_For_1_Template, 3, 1, "p", 21, i0.ɵɵrepeaterTrackByIndex);
222
+ } if (rf & 2) {
223
+ const ctx_r1 = i0.ɵɵnextContext(3);
224
+ i0.ɵɵrepeater(ctx_r1.Errors);
225
+ } }
226
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_For_9_Template(rf, ctx) { if (rf & 1) {
227
+ i0.ɵɵelementStart(0, "option", 41);
228
+ i0.ɵɵtext(1);
229
+ i0.ɵɵelementEnd();
230
+ } if (rf & 2) {
231
+ const seconds_r16 = ctx.$implicit;
232
+ i0.ɵɵproperty("ngValue", seconds_r16);
233
+ i0.ɵɵadvance();
234
+ i0.ɵɵtextInterpolate(seconds_r16);
235
+ } }
236
+ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_Template(rf, ctx) { if (rf & 1) {
237
+ const _r15 = i0.ɵɵgetCurrentView();
238
+ i0.ɵɵelementStart(0, "section", 17)(1, "label", 38)(2, "input", 39);
239
+ i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ShowParameterControls, $event) || (ctx_r1.ShowParameterControls = $event); return i0.ɵɵresetView($event); });
92
240
  i0.ɵɵelementEnd();
93
241
  i0.ɵɵtext(3, " Show parameter controls ");
94
242
  i0.ɵɵelementEnd();
95
- i0.ɵɵelementStart(4, "label", 22)(5, "input", 23);
96
- i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AutoRefreshEnabled, $event) || (ctx_r1.AutoRefreshEnabled = $event); return i0.ɵɵresetView($event); });
243
+ i0.ɵɵelementStart(4, "label", 38)(5, "input", 39);
244
+ i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AutoRefreshEnabled, $event) || (ctx_r1.AutoRefreshEnabled = $event); return i0.ɵɵresetView($event); });
97
245
  i0.ɵɵelementEnd();
98
246
  i0.ɵɵtext(6, " Refresh automatically every ");
99
- i0.ɵɵelementStart(7, "select", 24);
100
- i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_Template_select_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AutoRefreshSeconds, $event) || (ctx_r1.AutoRefreshSeconds = $event); return i0.ɵɵresetView($event); });
101
- i0.ɵɵrepeaterCreate(8, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_For_9_Template, 2, 2, "option", 25, i0.ɵɵrepeaterTrackByIdentity);
247
+ i0.ɵɵelementStart(7, "select", 40);
248
+ i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_Template_select_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AutoRefreshSeconds, $event) || (ctx_r1.AutoRefreshSeconds = $event); return i0.ɵɵresetView($event); });
249
+ i0.ɵɵrepeaterCreate(8, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_For_9_Template, 2, 2, "option", 41, i0.ɵɵrepeaterTrackByIdentity);
102
250
  i0.ɵɵelementEnd();
103
251
  i0.ɵɵtext(10, " seconds ");
104
252
  i0.ɵɵelementEnd()();
@@ -117,21 +265,31 @@ function DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_
117
265
  function DashboardPartDialogComponent_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
118
266
  const _r5 = i0.ɵɵgetCurrentView();
119
267
  i0.ɵɵconditionalCreate(0, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_0_Template, 9, 2, "section");
120
- i0.ɵɵelementStart(1, "section")(2, "label", 14);
121
- i0.ɵɵtext(3, "Title");
268
+ i0.ɵɵconditionalCreate(1, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_1_Template, 4, 0, "section")(2, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_2_Template, 5, 1, "section");
269
+ i0.ɵɵconditionalCreate(3, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_3_Template, 9, 0, "section", 14);
270
+ i0.ɵɵelementStart(4, "section")(5, "label", 15);
271
+ i0.ɵɵtext(6, "Title");
122
272
  i0.ɵɵelementEnd();
123
- i0.ɵɵelementStart(4, "input", 15);
124
- i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.Title, $event) || (ctx_r1.Title = $event); return i0.ɵɵresetView($event); });
273
+ i0.ɵɵelementStart(7, "input", 16);
274
+ i0.ɵɵtwoWayListener("ngModelChange", function DashboardPartDialogComponent_Conditional_0_Conditional_9_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.Title, $event) || (ctx_r1.Title = $event); return i0.ɵɵresetView($event); });
125
275
  i0.ɵɵelementEnd()();
126
- i0.ɵɵconditionalCreate(5, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_5_Template, 11, 4, "section", 16);
276
+ i0.ɵɵconditionalCreate(8, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_8_Template, 2, 0);
277
+ i0.ɵɵconditionalCreate(9, DashboardPartDialogComponent_Conditional_0_Conditional_9_Conditional_9_Template, 11, 4, "section", 17);
127
278
  } if (rf & 2) {
279
+ let tmp_4_0;
128
280
  const ctx_r1 = i0.ɵɵnextContext(2);
129
281
  i0.ɵɵconditional(ctx_r1.HasSettingsPanel ? 0 : -1);
282
+ i0.ɵɵadvance();
283
+ i0.ɵɵconditional(ctx_r1.IsLoadingInputs ? 1 : ctx_r1.InputsLoadError ? 2 : -1);
284
+ i0.ɵɵadvance(2);
285
+ i0.ɵɵconditional((tmp_4_0 = !ctx_r1.IsLoadingInputs && !ctx_r1.InputsLoadError && ctx_r1.HasInputs && ctx_r1.InputsEditor) ? 3 : -1, tmp_4_0);
130
286
  i0.ɵɵadvance(4);
131
287
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.Title);
132
288
  i0.ɵɵproperty("placeholder", ctx_r1.TitlePlaceholder);
133
289
  i0.ɵɵadvance();
134
- i0.ɵɵconditional(ctx_r1.IsQuery ? 5 : -1);
290
+ i0.ɵɵconditional(!ctx_r1.HasSettingsPanel ? 8 : -1);
291
+ i0.ɵɵadvance();
292
+ i0.ɵɵconditional(ctx_r1.IsQuery ? 9 : -1);
135
293
  } }
136
294
  function DashboardPartDialogComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
137
295
  const _r1 = i0.ɵɵgetCurrentView();
@@ -145,7 +303,7 @@ function DashboardPartDialogComponent_Conditional_0_Template(rf, ctx) { if (rf &
145
303
  i0.ɵɵelementEnd();
146
304
  i0.ɵɵconditionalCreate(8, DashboardPartDialogComponent_Conditional_0_Conditional_8_Template, 1, 0, "mj-empty-state", 7);
147
305
  i0.ɵɵelementEnd();
148
- i0.ɵɵconditionalCreate(9, DashboardPartDialogComponent_Conditional_0_Conditional_9_Template, 6, 4);
306
+ i0.ɵɵconditionalCreate(9, DashboardPartDialogComponent_Conditional_0_Conditional_9_Template, 10, 7);
149
307
  i0.ɵɵelementEnd();
150
308
  i0.ɵɵelementStart(10, "mj-dialog-actions")(11, "button", 8);
151
309
  i0.ɵɵlistener("click", function DashboardPartDialogComponent_Conditional_0_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Submit()); });
@@ -184,7 +342,13 @@ const PART_TYPE_TILE_COPY = {
184
342
  Query: { Label: 'Query', Description: 'A saved query, with its parameters' },
185
343
  Artifact: { Label: 'Artifact', Description: 'A report, chart or component from Chat' },
186
344
  WebURL: { Label: 'Web page', Description: 'An embedded page' },
345
+ Component: { Label: 'Component', Description: 'An interactive component, with its props' },
187
346
  };
347
+ /** The config keys that say which source a part shows; its declared inputs change only when one of them does. */
348
+ const SOURCE_KEYS = ['type', 'viewId', 'entityName', 'queryId', 'queryName', 'componentName', 'componentNamespace', 'componentVersion', 'url'];
349
+ function sourceSignature(config) {
350
+ return JSON.stringify(SOURCE_KEYS.map(key => config?.[key] ?? null));
351
+ }
188
352
  /**
189
353
  * The dialog that adds a part to a dashboard or edits one, on `mj-dialog`.
190
354
  *
@@ -223,6 +387,8 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
223
387
  PartTypes = [];
224
388
  /** The part to edit in edit mode. Its part type is the one in {@link PartTypes} with its `partTypeId`. */
225
389
  Panel = null;
390
+ /** The dashboard's properties, which the Inputs list maps onto the part's inputs. */
391
+ DashboardProperties = [];
226
392
  /** Emitted on Add part or Apply with the part type, config, title and icon of the part. */
227
393
  Saved = new EventEmitter();
228
394
  /** Emitted on Cancel, and when the user closes the dialog with Escape, the backdrop or the close button. */
@@ -247,6 +413,14 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
247
413
  LoadError = null;
248
414
  /** The settings panel's validation errors from the last Add part or Apply. */
249
415
  Errors = [];
416
+ /** The part's Inputs list, once its declared inputs are loaded. Null before then, or when they couldn't load. */
417
+ InputsEditor = null;
418
+ /** True while the part's declared inputs load. */
419
+ IsLoadingInputs = false;
420
+ /** Why the part's declared inputs couldn't load; its mappings are then kept as they are. */
421
+ InputsLoadError = null;
422
+ inputsSignature = null;
423
+ inputsLoadCount = 0;
250
424
  configPanelRef = null;
251
425
  configChangedSubscription = null;
252
426
  /** The last result the settings panel reported. */
@@ -297,7 +471,7 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
297
471
  * Add part waits until the settings panel reports a valid source.
298
472
  */
299
473
  get CanSubmit() {
300
- if (!this.SelectedPartType || this.IsLoadingPanel)
474
+ if (!this.SelectedPartType || this.IsLoadingPanel || this.IsLoadingInputs)
301
475
  return false;
302
476
  return this.Mode === 'edit' || this.configPanelRef == null || this.latestResult?.isValid === true;
303
477
  }
@@ -327,8 +501,30 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
327
501
  this.setSourceName(panel.getDefaultTitle());
328
502
  }
329
503
  this.Errors = [];
504
+ this.refreshInputs(result.config);
330
505
  this.cdr.markForCheck();
331
506
  }
507
+ /** True when the Inputs list has something to show. */
508
+ get HasInputs() {
509
+ return !!this.InputsEditor && (this.InputsEditor.Rows.length > 0 || this.InputsEditor.Orphans.length > 0);
510
+ }
511
+ /** The property names an input row offers: the compatible properties, plus its current one if that isn't. */
512
+ PropertyChoices(row) {
513
+ const names = this.InputsEditor?.CompatibleProperties(row, this.DashboardProperties).map(p => p.Name) ?? [];
514
+ return row.Property && !names.includes(row.Property) ? [...names, row.Property] : names;
515
+ }
516
+ SetInputProperty(row, property) {
517
+ row.Property = property || null;
518
+ this.Errors = [];
519
+ }
520
+ SetInputDefault(row, value) {
521
+ row.Default = value;
522
+ this.Errors = [];
523
+ }
524
+ RemoveOrphan(index) {
525
+ this.InputsEditor?.RemoveOrphan(index);
526
+ this.Errors = [];
527
+ }
332
528
  /**
333
529
  * Emits {@link Saved}, or shows the settings panel's errors when its source is not valid.
334
530
  * The config is the settings panel's config. Without a panel it names only the part type
@@ -364,6 +560,9 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
364
560
  config['showParameterControls'] = this.ShowParameterControls;
365
561
  config['autoRefreshSeconds'] = this.AutoRefreshEnabled ? this.AutoRefreshSeconds : 0;
366
562
  }
563
+ if (this.refuseInputProblems())
564
+ return;
565
+ this.applyInputMappings(config);
367
566
  this.Saved.emit({
368
567
  PartType: partType,
369
568
  Config: config,
@@ -378,6 +577,7 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
378
577
  ngOnDestroy() {
379
578
  this.destroyed = true;
380
579
  this.loadCount++;
580
+ this.inputsLoadCount++;
381
581
  this.destroyConfigPanel();
382
582
  }
383
583
  /** Starts from the inputs: a new part with the first tile chosen, or the edited part. */
@@ -389,9 +589,73 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
389
589
  this.readQueryOptions(editing ? this.Panel?.config ?? null : null);
390
590
  this.selectType(editing ? this.findEditedPartType() : this.TypeTiles[0] ?? null);
391
591
  }
592
+ /** Shows what is wrong with the Inputs list and returns true, or returns false when nothing is. */
593
+ refuseInputProblems() {
594
+ const problems = this.InputsEditor?.Problems(this.Title.trim() || this.SourceName, this.DashboardProperties) ?? [];
595
+ if (problems.length === 0)
596
+ return false;
597
+ this.Errors = problems;
598
+ this.cdr.markForCheck();
599
+ return true;
600
+ }
601
+ /**
602
+ * Writes the Inputs list into the config. No mappings: the key is removed, so a part without them
603
+ * saves exactly as before. When the part's inputs couldn't load, its mappings are kept as they were.
604
+ */
605
+ applyInputMappings(config) {
606
+ const mappings = this.InputsEditor
607
+ ? this.InputsEditor.BuildMappings()
608
+ : GetInputMappings(this.Mode === 'edit' ? this.Panel?.config : null);
609
+ if (mappings.length > 0) {
610
+ config[INPUT_MAPPINGS_KEY] = mappings;
611
+ }
612
+ else {
613
+ delete config[INPUT_MAPPINGS_KEY];
614
+ }
615
+ }
616
+ /**
617
+ * Loads the inputs the part declares for its source, when the source changed. The current
618
+ * mappings carry over; those to inputs the new source doesn't declare are listed as broken.
619
+ */
620
+ refreshInputs(config) {
621
+ const signature = sourceSignature(config);
622
+ if (signature === this.inputsSignature)
623
+ return;
624
+ this.inputsSignature = signature;
625
+ const loadId = ++this.inputsLoadCount;
626
+ const mappings = this.InputsEditor?.BuildMappings() ?? GetInputMappings(this.Mode === 'edit' ? this.Panel?.config : null);
627
+ this.IsLoadingInputs = true;
628
+ this.InputsLoadError = null;
629
+ LoadPartInterface(config, this.ProviderToUse)
630
+ .then(partInterface => {
631
+ if (loadId === this.inputsLoadCount)
632
+ this.InputsEditor = new PartInputsEditor(partInterface, mappings);
633
+ })
634
+ .catch((error) => {
635
+ if (loadId !== this.inputsLoadCount)
636
+ return;
637
+ this.InputsEditor = null;
638
+ this.InputsLoadError = `The part's inputs could not load (${error instanceof Error ? error.message : String(error)}). Its mappings are kept as they are.`;
639
+ })
640
+ .finally(() => {
641
+ if (loadId !== this.inputsLoadCount || this.destroyed)
642
+ return;
643
+ this.IsLoadingInputs = false;
644
+ this.cdr.markForCheck();
645
+ });
646
+ }
647
+ /** Drops the Inputs list and any load of it. */
648
+ resetInputs() {
649
+ this.inputsLoadCount++;
650
+ this.inputsSignature = null;
651
+ this.InputsEditor = null;
652
+ this.IsLoadingInputs = false;
653
+ this.InputsLoadError = null;
654
+ }
392
655
  /** Removes the settings panel and drops a load that is still running. */
393
656
  close() {
394
657
  this.loadCount++;
658
+ this.resetInputs();
395
659
  this.destroyConfigPanel();
396
660
  this.SelectedPartType = null;
397
661
  this.IsLoadingPanel = false;
@@ -421,6 +685,7 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
421
685
  /** Makes a part type the chosen one and starts to load its settings panel. */
422
686
  selectType(partType) {
423
687
  const loadId = ++this.loadCount;
688
+ this.resetInputs();
424
689
  this.destroyConfigPanel();
425
690
  this.SelectedPartType = partType;
426
691
  this.SourceName = partType ? this.TileLabel(partType) : '';
@@ -434,6 +699,9 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
434
699
  if (partType && className) {
435
700
  void this.loadConfigPanel(partType, className, loadId);
436
701
  }
702
+ else if (partType) {
703
+ this.refreshInputs(this.Mode === 'edit' && this.Panel ? this.Panel.config : { type: partType.Name });
704
+ }
437
705
  }
438
706
  /**
439
707
  * Creates the part type's settings panel in the Source section. A load that a newer load or a
@@ -464,6 +732,9 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
464
732
  this.configChangedSubscription = panel.configChanged.subscribe(result => this.OnConfigChanged(result));
465
733
  this.SourceName = panel.getDefaultTitle();
466
734
  this.IsLoadingPanel = false;
735
+ if (this.Mode === 'edit' && this.Panel) {
736
+ this.refreshInputs(this.Panel.config);
737
+ }
467
738
  this.cdr.detectChanges();
468
739
  }
469
740
  catch (error) {
@@ -507,15 +778,15 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
507
778
  } if (rf & 2) {
508
779
  let _t;
509
780
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.configPanelContainer = _t.first);
510
- } }, inputs: { Visible: "Visible", Mode: "Mode", PartTypes: "PartTypes", Panel: "Panel" }, outputs: { Saved: "Saved", Cancelled: "Cancelled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["configPanelContainer", ""], ["Size", "md", 3, "Visible", "Title"], ["Size", "md", 3, "Close", "Visible", "Title"], [1, "part-dialog"], ["id", "part-dialog-type-label", 1, "part-dialog__label"], ["role", "group", "aria-labelledby", "part-dialog-type-label", 1, "part-dialog__types"], ["type", "button", 1, "part-dialog__type", 3, "part-dialog__type--selected", "disabled"], ["Size", "compact", "Variant", "warning", "Title", "No part types available", "Message", "Dashboard part types have not been set up in this system."], ["mjButton", "", "Variant", "primary", "type", "button", 3, "click", "disabled"], ["aria-hidden", "true"], ["mjButton", "", "Variant", "secondary", "type", "button", 3, "click"], ["type", "button", 1, "part-dialog__type", 3, "click", "disabled"], [1, "part-dialog__type-label"], [1, "part-dialog__type-desc"], ["for", "part-dialog-title", 1, "part-dialog__label"], ["id", "part-dialog-title", "type", "text", 1, "mj-input", 3, "ngModelChange", "ngModel", "placeholder"], [1, "part-dialog__options"], [1, "part-dialog__label"], ["Text", "Loading...", "Size", "small"], [1, "part-dialog__warning"], [1, "part-dialog__error"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], [1, "part-dialog__option"], ["type", "checkbox", 1, "mj-checkbox", 3, "ngModelChange", "ngModel"], ["aria-label", "Refresh interval in seconds", 1, "mj-input", "part-dialog__refresh", 3, "ngModelChange", "ngModel", "disabled"], [3, "ngValue"]], template: function DashboardPartDialogComponent_Template(rf, ctx) { if (rf & 1) {
781
+ } }, inputs: { Visible: "Visible", Mode: "Mode", PartTypes: "PartTypes", Panel: "Panel", DashboardProperties: "DashboardProperties" }, outputs: { Saved: "Saved", Cancelled: "Cancelled" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["configPanelContainer", ""], ["Size", "md", 3, "Visible", "Title"], ["Size", "md", 3, "Close", "Visible", "Title"], [1, "part-dialog"], ["id", "part-dialog-type-label", 1, "part-dialog__label"], ["role", "group", "aria-labelledby", "part-dialog-type-label", 1, "part-dialog__types"], ["type", "button", 1, "part-dialog__type", 3, "part-dialog__type--selected", "disabled"], ["Size", "compact", "Variant", "warning", "Title", "No part types available", "Message", "Dashboard part types have not been set up in this system."], ["mjButton", "", "Variant", "primary", "type", "button", 3, "click", "disabled"], ["aria-hidden", "true"], ["mjButton", "", "Variant", "secondary", "type", "button", 3, "click"], ["type", "button", 1, "part-dialog__type", 3, "click", "disabled"], [1, "part-dialog__type-label"], [1, "part-dialog__type-desc"], [1, "part-dialog__inputs"], ["for", "part-dialog-title", 1, "part-dialog__label"], ["id", "part-dialog-title", "type", "text", 1, "mj-input", 3, "ngModelChange", "ngModel", "placeholder"], [1, "part-dialog__options"], [1, "part-dialog__label"], ["Text", "Loading...", "Size", "small"], [1, "part-dialog__warning"], [1, "part-dialog__error"], ["aria-hidden", "true", 1, "fa-solid", "fa-circle-exclamation"], ["Text", "Loading inputs...", "Size", "small"], [1, "part-dialog__hint"], [1, "part-dialog__input"], [1, "part-dialog__input", "part-dialog__input--broken"], [1, "part-dialog__input-name"], [1, "part-dialog__input-type"], ["title", "Required", 1, "part-dialog__input-required"], [1, "part-dialog__input-note"], [1, "part-dialog__input-controls"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], [1, "mj-input", 3, "ngModelChange", "ngModel"], ["value", ""], [3, "value"], [3, "DefaultChange", "Default", "Type", "Label", "NoneLabel"], ["mjButton", "", "Variant", "flat", "Size", "sm", "type", "button", 3, "click"], [1, "part-dialog__option"], ["type", "checkbox", 1, "mj-checkbox", 3, "ngModelChange", "ngModel"], ["aria-label", "Refresh interval in seconds", 1, "mj-input", "part-dialog__refresh", 3, "ngModelChange", "ngModel", "disabled"], [3, "ngValue"]], template: function DashboardPartDialogComponent_Template(rf, ctx) { if (rf & 1) {
511
782
  i0.ɵɵconditionalCreate(0, DashboardPartDialogComponent_Conditional_0_Template, 16, 8, "mj-dialog", 1);
512
783
  } if (rf & 2) {
513
784
  i0.ɵɵconditional(ctx.Visible ? 0 : -1);
514
- } }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgModel, i2.LoadingComponent, i3.MJEmptyStateComponent, i3.MJDialogComponent, i3.MJDialogActionsComponent, i3.MJButtonDirective], styles: [".part-dialog[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: var(--mj-space-4); }\n.part-dialog__label[_ngcontent-%COMP%] { display: block; margin-bottom: 6px; font-size: var(--mj-text-xs); font-weight: var(--mj-font-semibold); color: var(--mj-text-secondary); }\n.part-dialog__types[_ngcontent-%COMP%] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mj-space-2); }\n.part-dialog__type[_ngcontent-%COMP%] {\n display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left;\n font: inherit; color: inherit; cursor: pointer;\n background: var(--mj-bg-surface); border: 1px solid var(--mj-border-default); border-radius: var(--mj-radius-md);\n transition: border-color var(--mj-transition-fast), background-color var(--mj-transition-fast);\n}\n.part-dialog__type[_ngcontent-%COMP%]:hover:not(:disabled) { border-color: var(--mj-border-strong); }\n.part-dialog__type[_ngcontent-%COMP%]:focus-visible { outline: none; box-shadow: var(--mj-focus-ring); }\n.part-dialog__type[_ngcontent-%COMP%]:disabled { cursor: not-allowed; opacity: 0.5; }\n.part-dialog__type[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 16px; color: var(--mj-text-secondary); }\n.part-dialog__type-label[_ngcontent-%COMP%] { font-size: 13px; font-weight: var(--mj-font-bold); }\n.part-dialog__type-desc[_ngcontent-%COMP%] { font-size: 11px; color: var(--mj-text-muted); }\n.part-dialog__type--selected[_ngcontent-%COMP%] { border-color: var(--mj-brand-primary); background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface)); }\n.part-dialog__type--selected[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-brand-primary); }\n.part-dialog__options[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__option[_ngcontent-%COMP%] { display: flex; align-items: center; gap: var(--mj-space-2); font-size: 13px; }\n.part-dialog__refresh[_ngcontent-%COMP%] { display: inline-block; width: auto; min-height: 32px; padding: 4px 8px; }\n.part-dialog__error[_ngcontent-%COMP%] { margin: var(--mj-space-2) 0 0; font-size: 13px; color: var(--mj-status-error); }\n.part-dialog__warning[_ngcontent-%COMP%] { margin: 0 0 var(--mj-space-2); font-size: 13px; color: var(--mj-status-warning-text); }\n@media (max-width: 900px) { .part-dialog__types[_ngcontent-%COMP%] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }"] });
785
+ } }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgModel, i2.LoadingComponent, i3.MJEmptyStateComponent, i3.MJDialogComponent, i3.MJDialogActionsComponent, i3.MJButtonDirective, i4.PropertyDefaultEditorComponent], styles: [".part-dialog[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: var(--mj-space-4); }\n.part-dialog__label[_ngcontent-%COMP%] { display: block; margin-bottom: 6px; font-size: var(--mj-text-xs); font-weight: var(--mj-font-semibold); color: var(--mj-text-secondary); }\n.part-dialog__types[_ngcontent-%COMP%] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mj-space-2); }\n.part-dialog__type[_ngcontent-%COMP%] {\n display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left;\n font: inherit; color: inherit; cursor: pointer;\n background: var(--mj-bg-surface); border: 1px solid var(--mj-border-default); border-radius: var(--mj-radius-md);\n transition: border-color var(--mj-transition-fast), background-color var(--mj-transition-fast);\n}\n.part-dialog__type[_ngcontent-%COMP%]:hover:not(:disabled) { border-color: var(--mj-border-strong); }\n.part-dialog__type[_ngcontent-%COMP%]:focus-visible { outline: none; box-shadow: var(--mj-focus-ring); }\n.part-dialog__type[_ngcontent-%COMP%]:disabled { cursor: not-allowed; opacity: 0.5; }\n.part-dialog__type[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 16px; color: var(--mj-text-secondary); }\n.part-dialog__type-label[_ngcontent-%COMP%] { font-size: 13px; font-weight: var(--mj-font-bold); }\n.part-dialog__type-desc[_ngcontent-%COMP%] { font-size: 11px; color: var(--mj-text-muted); }\n.part-dialog__type--selected[_ngcontent-%COMP%] { border-color: var(--mj-brand-primary); background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface)); }\n.part-dialog__type--selected[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { color: var(--mj-brand-primary); }\n.part-dialog__options[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__option[_ngcontent-%COMP%] { display: flex; align-items: center; gap: var(--mj-space-2); font-size: 13px; }\n.part-dialog__refresh[_ngcontent-%COMP%] { display: inline-block; width: auto; min-height: 32px; padding: 4px 8px; }\n.part-dialog__error[_ngcontent-%COMP%] { margin: var(--mj-space-2) 0 0; font-size: 13px; color: var(--mj-status-error); }\n.part-dialog__warning[_ngcontent-%COMP%] { margin: 0 0 var(--mj-space-2); font-size: 13px; color: var(--mj-status-warning-text); }\n@media (max-width: 900px) { .part-dialog__types[_ngcontent-%COMP%] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.part-dialog__hint[_ngcontent-%COMP%] { margin: 0 0 var(--mj-space-2); font-size: 12px; color: var(--mj-text-muted); }\n.part-dialog__inputs[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__input[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--mj-border-subtle); border-radius: var(--mj-radius-md); }\n.part-dialog__input--broken[_ngcontent-%COMP%] { flex-direction: row; align-items: center; justify-content: space-between; border-color: var(--mj-status-error-border); color: var(--mj-status-error-text); font-size: 13px; }\n.part-dialog__input-name[_ngcontent-%COMP%] { font-size: 13px; font-weight: var(--mj-font-semibold); color: var(--mj-text-primary); }\n.part-dialog__input-type[_ngcontent-%COMP%] { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--mj-text-muted); }\n.part-dialog__input-required[_ngcontent-%COMP%] { margin-left: 2px; color: var(--mj-status-error); }\n.part-dialog__input-note[_ngcontent-%COMP%] { font-size: 12px; color: var(--mj-text-muted); }\n.part-dialog__input-controls[_ngcontent-%COMP%] { display: flex; flex-direction: column; gap: 6px; }"] });
515
786
  }
516
787
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DashboardPartDialogComponent, [{
517
788
  type: Component,
518
- args: [{ standalone: false, selector: 'mj-dashboard-part-dialog', template: "@if (Visible) {\n <mj-dialog [Visible]=\"true\" Size=\"md\" [Title]=\"DialogTitle\" (Close)=\"Cancel()\">\n <div class=\"part-dialog\">\n <section>\n <div class=\"part-dialog__label\" id=\"part-dialog-type-label\">Part type</div>\n <div class=\"part-dialog__types\" role=\"group\" aria-labelledby=\"part-dialog-type-label\">\n @for (partType of TypeTiles; track partType.ID) {\n <button type=\"button\" class=\"part-dialog__type\"\n [class.part-dialog__type--selected]=\"IsSelected(partType)\"\n [attr.aria-pressed]=\"IsSelected(partType)\"\n [attr.data-autofocus]=\"Mode === 'add' && IsSelected(partType) ? '' : null\"\n [disabled]=\"Mode === 'edit' && !IsSelected(partType)\"\n (click)=\"SelectPartType(partType)\">\n <i [class]=\"partType.Icon || 'fa-solid fa-puzzle-piece'\" aria-hidden=\"true\"></i>\n <span class=\"part-dialog__type-label\">{{ TileLabel(partType) }}</span>\n <span class=\"part-dialog__type-desc\">{{ TileDescription(partType) }}</span>\n </button>\n }\n </div>\n @if (TypeTiles.length === 0) {\n <mj-empty-state Size=\"compact\" Variant=\"warning\" Title=\"No part types available\"\n Message=\"Dashboard part types have not been set up in this system.\" />\n }\n </section>\n\n @if (SelectedPartType) {\n @if (HasSettingsPanel) {\n <section>\n <div class=\"part-dialog__label\">Source</div>\n @if (IsLoadingPanel) {\n <mj-loading Text=\"Loading...\" Size=\"small\"></mj-loading>\n }\n @if (LoadError) {\n <p class=\"part-dialog__warning\">{{ LoadError }}</p>\n }\n <ng-container #configPanelContainer></ng-container>\n @for (error of Errors; track $index) {\n <p class=\"part-dialog__error\"><i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i> {{ error }}</p>\n }\n </section>\n }\n\n <section>\n <label class=\"part-dialog__label\" for=\"part-dialog-title\">Title</label>\n <input id=\"part-dialog-title\" class=\"mj-input\" type=\"text\" [(ngModel)]=\"Title\" [placeholder]=\"TitlePlaceholder\">\n </section>\n\n @if (IsQuery) {\n <section class=\"part-dialog__options\">\n <label class=\"part-dialog__option\">\n <input type=\"checkbox\" class=\"mj-checkbox\" [(ngModel)]=\"ShowParameterControls\"> Show parameter controls\n </label>\n <label class=\"part-dialog__option\">\n <input type=\"checkbox\" class=\"mj-checkbox\" [(ngModel)]=\"AutoRefreshEnabled\"> Refresh automatically every\n <select class=\"mj-input part-dialog__refresh\" [(ngModel)]=\"AutoRefreshSeconds\" [disabled]=\"!AutoRefreshEnabled\" aria-label=\"Refresh interval in seconds\">\n @for (seconds of RefreshChoices; track seconds) {\n <option [ngValue]=\"seconds\">{{ seconds }}</option>\n }\n </select>\n seconds\n </label>\n </section>\n }\n }\n </div>\n <mj-dialog-actions>\n <button mjButton Variant=\"primary\" type=\"button\" [disabled]=\"!CanSubmit\" (click)=\"Submit()\">\n <i [class]=\"SubmitIcon\" aria-hidden=\"true\"></i> {{ SubmitLabel }}\n </button>\n <button mjButton Variant=\"secondary\" type=\"button\" (click)=\"Cancel()\">Cancel</button>\n </mj-dialog-actions>\n </mj-dialog>\n}\n", styles: [".part-dialog { display: flex; flex-direction: column; gap: var(--mj-space-4); }\n.part-dialog__label { display: block; margin-bottom: 6px; font-size: var(--mj-text-xs); font-weight: var(--mj-font-semibold); color: var(--mj-text-secondary); }\n.part-dialog__types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mj-space-2); }\n.part-dialog__type {\n display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left;\n font: inherit; color: inherit; cursor: pointer;\n background: var(--mj-bg-surface); border: 1px solid var(--mj-border-default); border-radius: var(--mj-radius-md);\n transition: border-color var(--mj-transition-fast), background-color var(--mj-transition-fast);\n}\n.part-dialog__type:hover:not(:disabled) { border-color: var(--mj-border-strong); }\n.part-dialog__type:focus-visible { outline: none; box-shadow: var(--mj-focus-ring); }\n.part-dialog__type:disabled { cursor: not-allowed; opacity: 0.5; }\n.part-dialog__type i { font-size: 16px; color: var(--mj-text-secondary); }\n.part-dialog__type-label { font-size: 13px; font-weight: var(--mj-font-bold); }\n.part-dialog__type-desc { font-size: 11px; color: var(--mj-text-muted); }\n.part-dialog__type--selected { border-color: var(--mj-brand-primary); background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface)); }\n.part-dialog__type--selected i { color: var(--mj-brand-primary); }\n.part-dialog__options { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__option { display: flex; align-items: center; gap: var(--mj-space-2); font-size: 13px; }\n.part-dialog__refresh { display: inline-block; width: auto; min-height: 32px; padding: 4px 8px; }\n.part-dialog__error { margin: var(--mj-space-2) 0 0; font-size: 13px; color: var(--mj-status-error); }\n.part-dialog__warning { margin: 0 0 var(--mj-space-2); font-size: 13px; color: var(--mj-status-warning-text); }\n@media (max-width: 900px) { .part-dialog__types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n"] }]
789
+ args: [{ standalone: false, selector: 'mj-dashboard-part-dialog', template: "@if (Visible) {\n <mj-dialog [Visible]=\"true\" Size=\"md\" [Title]=\"DialogTitle\" (Close)=\"Cancel()\">\n <div class=\"part-dialog\">\n <section>\n <div class=\"part-dialog__label\" id=\"part-dialog-type-label\">Part type</div>\n <div class=\"part-dialog__types\" role=\"group\" aria-labelledby=\"part-dialog-type-label\">\n @for (partType of TypeTiles; track partType.ID) {\n <button type=\"button\" class=\"part-dialog__type\"\n [class.part-dialog__type--selected]=\"IsSelected(partType)\"\n [attr.aria-pressed]=\"IsSelected(partType)\"\n [attr.data-autofocus]=\"Mode === 'add' && IsSelected(partType) ? '' : null\"\n [disabled]=\"Mode === 'edit' && !IsSelected(partType)\"\n (click)=\"SelectPartType(partType)\">\n <i [class]=\"partType.Icon || 'fa-solid fa-puzzle-piece'\" aria-hidden=\"true\"></i>\n <span class=\"part-dialog__type-label\">{{ TileLabel(partType) }}</span>\n <span class=\"part-dialog__type-desc\">{{ TileDescription(partType) }}</span>\n </button>\n }\n </div>\n @if (TypeTiles.length === 0) {\n <mj-empty-state Size=\"compact\" Variant=\"warning\" Title=\"No part types available\"\n Message=\"Dashboard part types have not been set up in this system.\" />\n }\n </section>\n\n @if (SelectedPartType) {\n @if (HasSettingsPanel) {\n <section>\n <div class=\"part-dialog__label\">Source</div>\n @if (IsLoadingPanel) {\n <mj-loading Text=\"Loading...\" Size=\"small\"></mj-loading>\n }\n @if (LoadError) {\n <p class=\"part-dialog__warning\">{{ LoadError }}</p>\n }\n <ng-container #configPanelContainer></ng-container>\n @for (error of Errors; track $index) {\n <p class=\"part-dialog__error\"><i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i> {{ error }}</p>\n }\n </section>\n }\n\n @if (IsLoadingInputs) {\n <section>\n <div class=\"part-dialog__label\">Inputs</div>\n <mj-loading Text=\"Loading inputs...\" Size=\"small\"></mj-loading>\n </section>\n } @else if (InputsLoadError) {\n <section>\n <div class=\"part-dialog__label\">Inputs</div>\n <p class=\"part-dialog__warning\">{{ InputsLoadError }}</p>\n </section>\n }\n @if (!IsLoadingInputs && !InputsLoadError && HasInputs && InputsEditor; as editor) {\n <section class=\"part-dialog__inputs\">\n <div class=\"part-dialog__label\">Inputs</div>\n <p class=\"part-dialog__hint\">Feed an input from a dashboard property, fix it with a default, or leave it to its own default.</p>\n @for (row of editor.Rows; track row.Input.Name) {\n <div class=\"part-dialog__input\">\n <div class=\"part-dialog__input-name\">\n {{ row.Input.Name }}\n <span class=\"part-dialog__input-type\">{{ row.Input.Type }}</span>\n @if (row.Input.IsRequired) {\n <span class=\"part-dialog__input-required\" title=\"Required\">*</span>\n }\n </div>\n @if (row.Input.ServerSet) {\n <span class=\"part-dialog__input-note\"><i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i> Set by server</span>\n } @else if (!editor.CanMap(row)) {\n <span class=\"part-dialog__input-note\">Can't be mapped: a dashboard property can't fill a {{ row.Input.Type }} input</span>\n } @else {\n <div class=\"part-dialog__input-controls\">\n <select class=\"mj-input\" [attr.aria-label]=\"'Dashboard property for ' + row.Input.Name\"\n [ngModel]=\"row.Property ?? ''\" (ngModelChange)=\"SetInputProperty(row, $event)\">\n <option value=\"\">No dashboard property</option>\n @for (name of PropertyChoices(row); track name) {\n <option [value]=\"name\">{{ name }}</option>\n }\n </select>\n <mj-property-default-editor [Default]=\"row.Default\" [Type]=\"editor.DefaultType(row)\"\n [Label]=\"'Default for ' + row.Input.Name\"\n [NoneLabel]=\"row.Property ? 'No fallback' : 'Its own default'\"\n (DefaultChange)=\"SetInputDefault(row, $event)\"></mj-property-default-editor>\n </div>\n }\n </div>\n }\n @for (orphan of editor.Orphans; track $index) {\n <div class=\"part-dialog__input part-dialog__input--broken\">\n <span><i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i> \"{{ orphan.Input }}\" is mapped but is not an input of this part</span>\n <button mjButton Variant=\"flat\" Size=\"sm\" type=\"button\" (click)=\"RemoveOrphan($index)\">Remove</button>\n </div>\n }\n </section>\n }\n\n <section>\n <label class=\"part-dialog__label\" for=\"part-dialog-title\">Title</label>\n <input id=\"part-dialog-title\" class=\"mj-input\" type=\"text\" [(ngModel)]=\"Title\" [placeholder]=\"TitlePlaceholder\">\n </section>\n\n @if (!HasSettingsPanel) {\n @for (error of Errors; track $index) {\n <p class=\"part-dialog__error\"><i class=\"fa-solid fa-circle-exclamation\" aria-hidden=\"true\"></i> {{ error }}</p>\n }\n }\n\n @if (IsQuery) {\n <section class=\"part-dialog__options\">\n <label class=\"part-dialog__option\">\n <input type=\"checkbox\" class=\"mj-checkbox\" [(ngModel)]=\"ShowParameterControls\"> Show parameter controls\n </label>\n <label class=\"part-dialog__option\">\n <input type=\"checkbox\" class=\"mj-checkbox\" [(ngModel)]=\"AutoRefreshEnabled\"> Refresh automatically every\n <select class=\"mj-input part-dialog__refresh\" [(ngModel)]=\"AutoRefreshSeconds\" [disabled]=\"!AutoRefreshEnabled\" aria-label=\"Refresh interval in seconds\">\n @for (seconds of RefreshChoices; track seconds) {\n <option [ngValue]=\"seconds\">{{ seconds }}</option>\n }\n </select>\n seconds\n </label>\n </section>\n }\n }\n </div>\n <mj-dialog-actions>\n <button mjButton Variant=\"primary\" type=\"button\" [disabled]=\"!CanSubmit\" (click)=\"Submit()\">\n <i [class]=\"SubmitIcon\" aria-hidden=\"true\"></i> {{ SubmitLabel }}\n </button>\n <button mjButton Variant=\"secondary\" type=\"button\" (click)=\"Cancel()\">Cancel</button>\n </mj-dialog-actions>\n </mj-dialog>\n}\n", styles: [".part-dialog { display: flex; flex-direction: column; gap: var(--mj-space-4); }\n.part-dialog__label { display: block; margin-bottom: 6px; font-size: var(--mj-text-xs); font-weight: var(--mj-font-semibold); color: var(--mj-text-secondary); }\n.part-dialog__types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mj-space-2); }\n.part-dialog__type {\n display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left;\n font: inherit; color: inherit; cursor: pointer;\n background: var(--mj-bg-surface); border: 1px solid var(--mj-border-default); border-radius: var(--mj-radius-md);\n transition: border-color var(--mj-transition-fast), background-color var(--mj-transition-fast);\n}\n.part-dialog__type:hover:not(:disabled) { border-color: var(--mj-border-strong); }\n.part-dialog__type:focus-visible { outline: none; box-shadow: var(--mj-focus-ring); }\n.part-dialog__type:disabled { cursor: not-allowed; opacity: 0.5; }\n.part-dialog__type i { font-size: 16px; color: var(--mj-text-secondary); }\n.part-dialog__type-label { font-size: 13px; font-weight: var(--mj-font-bold); }\n.part-dialog__type-desc { font-size: 11px; color: var(--mj-text-muted); }\n.part-dialog__type--selected { border-color: var(--mj-brand-primary); background: color-mix(in srgb, var(--mj-brand-primary) 8%, var(--mj-bg-surface)); }\n.part-dialog__type--selected i { color: var(--mj-brand-primary); }\n.part-dialog__options { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__option { display: flex; align-items: center; gap: var(--mj-space-2); font-size: 13px; }\n.part-dialog__refresh { display: inline-block; width: auto; min-height: 32px; padding: 4px 8px; }\n.part-dialog__error { margin: var(--mj-space-2) 0 0; font-size: 13px; color: var(--mj-status-error); }\n.part-dialog__warning { margin: 0 0 var(--mj-space-2); font-size: 13px; color: var(--mj-status-warning-text); }\n@media (max-width: 900px) { .part-dialog__types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n.part-dialog__hint { margin: 0 0 var(--mj-space-2); font-size: 12px; color: var(--mj-text-muted); }\n.part-dialog__inputs { display: flex; flex-direction: column; gap: var(--mj-space-2); }\n.part-dialog__input { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--mj-border-subtle); border-radius: var(--mj-radius-md); }\n.part-dialog__input--broken { flex-direction: row; align-items: center; justify-content: space-between; border-color: var(--mj-status-error-border); color: var(--mj-status-error-text); font-size: 13px; }\n.part-dialog__input-name { font-size: 13px; font-weight: var(--mj-font-semibold); color: var(--mj-text-primary); }\n.part-dialog__input-type { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--mj-text-muted); }\n.part-dialog__input-required { margin-left: 2px; color: var(--mj-status-error); }\n.part-dialog__input-note { font-size: 12px; color: var(--mj-text-muted); }\n.part-dialog__input-controls { display: flex; flex-direction: column; gap: 6px; }\n"] }]
519
790
  }], null, { Visible: [{
520
791
  type: Input
521
792
  }], Mode: [{
@@ -524,6 +795,8 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
524
795
  type: Input
525
796
  }], Panel: [{
526
797
  type: Input
798
+ }], DashboardProperties: [{
799
+ type: Input
527
800
  }], Saved: [{
528
801
  type: Output
529
802
  }], Cancelled: [{
@@ -532,5 +805,5 @@ export class DashboardPartDialogComponent extends BaseAngularComponent {
532
805
  type: ViewChild,
533
806
  args: ['configPanelContainer', { read: ViewContainerRef }]
534
807
  }] }); })();
535
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DashboardPartDialogComponent, { className: "DashboardPartDialogComponent", filePath: "src/lib/dialogs/part-dialog/dashboard-part-dialog.component.ts", lineNumber: 71 }); })();
808
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DashboardPartDialogComponent, { className: "DashboardPartDialogComponent", filePath: "src/lib/dialogs/part-dialog/dashboard-part-dialog.component.ts", lineNumber: 83 }); })();
536
809
  //# sourceMappingURL=dashboard-part-dialog.component.js.map