@memberjunction/ng-entity-viewer 6.2.0-edge.6 → 6.2.0-edge.8
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/entity-data-grid/entity-data-grid.component.d.ts +99 -2
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.js +619 -272
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-data-grid/open-in-excel.d.ts +40 -0
- package/dist/lib/entity-data-grid/open-in-excel.d.ts.map +1 -0
- package/dist/lib/entity-data-grid/open-in-excel.js +60 -0
- package/dist/lib/entity-data-grid/open-in-excel.js.map +1 -0
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +40 -0
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js +72 -8
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts +13 -1
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +35 -5
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/utils/record.util.d.ts +23 -0
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +34 -0
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +34 -5
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.js +158 -56
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-selector/view-selector.component.d.ts +7 -1
- package/dist/lib/view-selector/view-selector.component.d.ts.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +134 -119
- package/dist/lib/view-selector/view-selector.component.js.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +7 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js +13 -3
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/view-type.contracts.d.ts +6 -0
- package/dist/lib/view-types/view-type.contracts.d.ts.map +1 -1
- package/dist/lib/view-types/view-type.contracts.js.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts +20 -0
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +104 -19
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
- package/package.json +23 -22
|
@@ -10,7 +10,7 @@ import * as i2 from "@memberjunction/ng-ui-components";
|
|
|
10
10
|
const _forTrack0 = ($index, $item) => $item.id;
|
|
11
11
|
function ViewSelectorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
12
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13
|
-
i0.ɵɵelementStart(0, "div",
|
|
13
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
14
14
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseDropdown()); });
|
|
15
15
|
i0.ɵɵelementEnd();
|
|
16
16
|
} }
|
|
@@ -20,7 +20,7 @@ function ViewSelectorComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20
20
|
i0.ɵɵelementEnd();
|
|
21
21
|
} }
|
|
22
22
|
function ViewSelectorComponent_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelementStart(0, "span",
|
|
23
|
+
i0.ɵɵelementStart(0, "span", 19);
|
|
24
24
|
i0.ɵɵtext(1);
|
|
25
25
|
i0.ɵɵelementEnd();
|
|
26
26
|
} if (rf & 2) {
|
|
@@ -29,26 +29,26 @@ function ViewSelectorComponent_Conditional_9_Conditional_5_Template(rf, ctx) { i
|
|
|
29
29
|
i0.ɵɵtextInterpolate(ctx_r1.Entity.DisplayNameOrName);
|
|
30
30
|
} }
|
|
31
31
|
function ViewSelectorComponent_Conditional_9_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelement(0, "i",
|
|
32
|
+
i0.ɵɵelement(0, "i", 38);
|
|
33
33
|
} }
|
|
34
34
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵelement(0, "i",
|
|
35
|
+
i0.ɵɵelement(0, "i", 49);
|
|
36
36
|
} }
|
|
37
37
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
-
i0.ɵɵelement(0, "i",
|
|
38
|
+
i0.ɵɵelement(0, "i", 50);
|
|
39
39
|
} }
|
|
40
40
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
-
i0.ɵɵelementStart(0, "span",
|
|
41
|
+
i0.ɵɵelementStart(0, "span", 32);
|
|
42
42
|
i0.ɵɵtext(1, "Default");
|
|
43
43
|
i0.ɵɵelementEnd();
|
|
44
44
|
} }
|
|
45
45
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
i0.ɵɵelementStart(0, "span",
|
|
46
|
+
i0.ɵɵelementStart(0, "span", 51);
|
|
47
47
|
i0.ɵɵtext(1, "Shared");
|
|
48
48
|
i0.ɵɵelementEnd();
|
|
49
49
|
} }
|
|
50
50
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
-
i0.ɵɵelementStart(0, "div",
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 33);
|
|
52
52
|
i0.ɵɵtext(1);
|
|
53
53
|
i0.ɵɵelementEnd();
|
|
54
54
|
} if (rf & 2) {
|
|
@@ -57,8 +57,8 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10
|
|
|
57
57
|
i0.ɵɵtextInterpolate(view_r5.entity.Description);
|
|
58
58
|
} }
|
|
59
59
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelementStart(0, "span",
|
|
61
|
-
i0.ɵɵelement(1, "i",
|
|
60
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
61
|
+
i0.ɵɵelement(1, "i", 59);
|
|
62
62
|
i0.ɵɵtext(2);
|
|
63
63
|
i0.ɵɵelementEnd();
|
|
64
64
|
} if (rf & 2) {
|
|
@@ -68,20 +68,20 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11
|
|
|
68
68
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewAlternateBaseViewLabel(view_r5));
|
|
69
69
|
} }
|
|
70
70
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
-
i0.ɵɵelementStart(0, "span",
|
|
72
|
-
i0.ɵɵelement(1, "i",
|
|
71
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
72
|
+
i0.ɵɵelement(1, "i", 60);
|
|
73
73
|
i0.ɵɵtext(2, " Smart Filter");
|
|
74
74
|
i0.ɵɵelementEnd();
|
|
75
75
|
} }
|
|
76
76
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
-
i0.ɵɵelementStart(0, "span",
|
|
78
|
-
i0.ɵɵelement(1, "i",
|
|
77
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
78
|
+
i0.ɵɵelement(1, "i", 61);
|
|
79
79
|
i0.ɵɵtext(2, " Custom SQL");
|
|
80
80
|
i0.ɵɵelementEnd();
|
|
81
81
|
} }
|
|
82
82
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
-
i0.ɵɵelementStart(0, "span",
|
|
84
|
-
i0.ɵɵelement(1, "i",
|
|
83
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
84
|
+
i0.ɵɵelement(1, "i", 62);
|
|
85
85
|
i0.ɵɵtext(2);
|
|
86
86
|
i0.ɵɵelementEnd();
|
|
87
87
|
} if (rf & 2) {
|
|
@@ -91,8 +91,8 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11
|
|
|
91
91
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewFilterCount(view_r5), " filter", ctx_r1.GetViewFilterCount(view_r5) !== 1 ? "s" : "");
|
|
92
92
|
} }
|
|
93
93
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
-
i0.ɵɵelementStart(0, "span",
|
|
95
|
-
i0.ɵɵelement(1, "i",
|
|
94
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
95
|
+
i0.ɵɵelement(1, "i", 63);
|
|
96
96
|
i0.ɵɵtext(2);
|
|
97
97
|
i0.ɵɵelementEnd();
|
|
98
98
|
} if (rf & 2) {
|
|
@@ -102,8 +102,8 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11
|
|
|
102
102
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewColumnCount(view_r5), " col", ctx_r1.GetViewColumnCount(view_r5) !== 1 ? "s" : "");
|
|
103
103
|
} }
|
|
104
104
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
105
|
-
i0.ɵɵelementStart(0, "span",
|
|
106
|
-
i0.ɵɵelement(1, "i",
|
|
105
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
106
|
+
i0.ɵɵelement(1, "i", 64);
|
|
107
107
|
i0.ɵɵtext(2);
|
|
108
108
|
i0.ɵɵelementEnd();
|
|
109
109
|
} if (rf & 2) {
|
|
@@ -113,11 +113,11 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11
|
|
|
113
113
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewSortInfo(view_r5));
|
|
114
114
|
} }
|
|
115
115
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
-
i0.ɵɵelementStart(0, "div",
|
|
117
|
-
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template, 3, 1, "span",
|
|
118
|
-
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template, 3, 0, "span",
|
|
119
|
-
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template, 3, 2, "span",
|
|
120
|
-
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template, 3, 1, "span",
|
|
116
|
+
i0.ɵɵelementStart(0, "div", 52);
|
|
117
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template, 3, 1, "span", 58);
|
|
118
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template, 3, 0, "span", 58)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_3_Template, 3, 0, "span", 58)(4, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_4_Template, 3, 2, "span", 58);
|
|
119
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template, 3, 2, "span", 58);
|
|
120
|
+
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template, 3, 1, "span", 58);
|
|
121
121
|
i0.ɵɵelementEnd();
|
|
122
122
|
} if (rf & 2) {
|
|
123
123
|
const view_r5 = i0.ɵɵnextContext().$implicit;
|
|
@@ -132,37 +132,37 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11
|
|
|
132
132
|
i0.ɵɵconditional(ctx_r1.GetViewSortInfo(view_r5) ? 6 : -1);
|
|
133
133
|
} }
|
|
134
134
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
-
i0.ɵɵelement(0, "i",
|
|
135
|
+
i0.ɵɵelement(0, "i", 38);
|
|
136
136
|
} }
|
|
137
137
|
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
138
138
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
139
|
-
i0.ɵɵelementStart(0, "div",
|
|
139
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
140
140
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template_div_click_0_listener() { const view_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SelectView(view_r5)); });
|
|
141
|
-
i0.ɵɵelementStart(1, "div",
|
|
142
|
-
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template, 1, 0, "i",
|
|
141
|
+
i0.ɵɵelementStart(1, "div", 27);
|
|
142
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template, 1, 0, "i", 49)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template, 1, 0, "i", 50);
|
|
143
143
|
i0.ɵɵelementEnd();
|
|
144
|
-
i0.ɵɵelementStart(4, "div",
|
|
144
|
+
i0.ɵɵelementStart(4, "div", 29)(5, "div", 30)(6, "span", 31);
|
|
145
145
|
i0.ɵɵtext(7);
|
|
146
146
|
i0.ɵɵelementEnd();
|
|
147
|
-
i0.ɵɵconditionalCreate(8, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template, 2, 0, "span",
|
|
148
|
-
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template, 2, 0, "span",
|
|
147
|
+
i0.ɵɵconditionalCreate(8, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template, 2, 0, "span", 32);
|
|
148
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template, 2, 0, "span", 51);
|
|
149
149
|
i0.ɵɵelementEnd();
|
|
150
|
-
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10_Template, 2, 1, "div",
|
|
151
|
-
i0.ɵɵconditionalCreate(11, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template, 7, 4, "div",
|
|
150
|
+
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10_Template, 2, 1, "div", 33);
|
|
151
|
+
i0.ɵɵconditionalCreate(11, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template, 7, 4, "div", 52);
|
|
152
152
|
i0.ɵɵelementEnd();
|
|
153
|
-
i0.ɵɵelementStart(12, "div",
|
|
153
|
+
i0.ɵɵelementStart(12, "div", 34)(13, "div", 35)(14, "button", 53);
|
|
154
154
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template_button_click_14_listener($event) { const view_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnConfigureViewById(view_r5.id, $event)); });
|
|
155
|
-
i0.ɵɵelement(15, "i",
|
|
155
|
+
i0.ɵɵelement(15, "i", 37);
|
|
156
156
|
i0.ɵɵelementEnd();
|
|
157
|
-
i0.ɵɵelementStart(16, "button",
|
|
157
|
+
i0.ɵɵelementStart(16, "button", 54);
|
|
158
158
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template_button_click_16_listener($event) { const view_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnDuplicateView(view_r5.id, $event)); });
|
|
159
|
-
i0.ɵɵelement(17, "i",
|
|
159
|
+
i0.ɵɵelement(17, "i", 55);
|
|
160
160
|
i0.ɵɵelementEnd();
|
|
161
|
-
i0.ɵɵelementStart(18, "button",
|
|
161
|
+
i0.ɵɵelementStart(18, "button", 56);
|
|
162
162
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template_button_click_18_listener($event) { const view_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnOpenViewInTab(view_r5.id, $event)); });
|
|
163
|
-
i0.ɵɵelement(19, "i",
|
|
163
|
+
i0.ɵɵelement(19, "i", 57);
|
|
164
164
|
i0.ɵɵelementEnd()();
|
|
165
|
-
i0.ɵɵconditionalCreate(20, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template, 1, 0, "i",
|
|
165
|
+
i0.ɵɵconditionalCreate(20, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template, 1, 0, "i", 38);
|
|
166
166
|
i0.ɵɵelementEnd()();
|
|
167
167
|
} if (rf & 2) {
|
|
168
168
|
const view_r5 = ctx.$implicit;
|
|
@@ -186,15 +186,15 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template(rf, c
|
|
|
186
186
|
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r5.id ? 20 : -1);
|
|
187
187
|
} }
|
|
188
188
|
function ViewSelectorComponent_Conditional_9_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
-
i0.ɵɵelementStart(0, "div",
|
|
190
|
-
i0.ɵɵelement(2, "i",
|
|
189
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 45);
|
|
190
|
+
i0.ɵɵelement(2, "i", 46);
|
|
191
191
|
i0.ɵɵelementStart(3, "span");
|
|
192
192
|
i0.ɵɵtext(4, "My Views");
|
|
193
193
|
i0.ɵɵelementEnd();
|
|
194
|
-
i0.ɵɵelementStart(5, "span",
|
|
194
|
+
i0.ɵɵelementStart(5, "span", 47);
|
|
195
195
|
i0.ɵɵtext(6);
|
|
196
196
|
i0.ɵɵelementEnd()();
|
|
197
|
-
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template, 21, 11, "div",
|
|
197
|
+
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template, 21, 11, "div", 48, _forTrack0);
|
|
198
198
|
i0.ɵɵelementEnd();
|
|
199
199
|
} if (rf & 2) {
|
|
200
200
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -204,17 +204,17 @@ function ViewSelectorComponent_Conditional_9_Conditional_28_Template(rf, ctx) {
|
|
|
204
204
|
i0.ɵɵrepeater(ctx_r1.FilteredMyViews);
|
|
205
205
|
} }
|
|
206
206
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
-
i0.ɵɵelementStart(0, "span",
|
|
207
|
+
i0.ɵɵelementStart(0, "span", 51);
|
|
208
208
|
i0.ɵɵtext(1, "View Only");
|
|
209
209
|
i0.ɵɵelementEnd();
|
|
210
210
|
} }
|
|
211
211
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
212
|
-
i0.ɵɵelementStart(0, "span",
|
|
212
|
+
i0.ɵɵelementStart(0, "span", 68);
|
|
213
213
|
i0.ɵɵtext(1, "Can Edit");
|
|
214
214
|
i0.ɵɵelementEnd();
|
|
215
215
|
} }
|
|
216
216
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
217
|
-
i0.ɵɵelementStart(0, "div",
|
|
217
|
+
i0.ɵɵelementStart(0, "div", 33);
|
|
218
218
|
i0.ɵɵtext(1);
|
|
219
219
|
i0.ɵɵelementEnd();
|
|
220
220
|
} if (rf & 2) {
|
|
@@ -223,8 +223,8 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_
|
|
|
223
223
|
i0.ɵɵtextInterpolate(view_r7.entity.Description);
|
|
224
224
|
} }
|
|
225
225
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
226
|
-
i0.ɵɵelementStart(0, "span",
|
|
227
|
-
i0.ɵɵelement(1, "i",
|
|
226
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
227
|
+
i0.ɵɵelement(1, "i", 59);
|
|
228
228
|
i0.ɵɵtext(2);
|
|
229
229
|
i0.ɵɵelementEnd();
|
|
230
230
|
} if (rf & 2) {
|
|
@@ -234,20 +234,20 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10
|
|
|
234
234
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewAlternateBaseViewLabel(view_r7));
|
|
235
235
|
} }
|
|
236
236
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
237
|
-
i0.ɵɵelementStart(0, "span",
|
|
238
|
-
i0.ɵɵelement(1, "i",
|
|
237
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
238
|
+
i0.ɵɵelement(1, "i", 60);
|
|
239
239
|
i0.ɵɵtext(2, " Smart Filter");
|
|
240
240
|
i0.ɵɵelementEnd();
|
|
241
241
|
} }
|
|
242
242
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
243
|
-
i0.ɵɵelementStart(0, "span",
|
|
244
|
-
i0.ɵɵelement(1, "i",
|
|
243
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
244
|
+
i0.ɵɵelement(1, "i", 61);
|
|
245
245
|
i0.ɵɵtext(2, " Custom SQL");
|
|
246
246
|
i0.ɵɵelementEnd();
|
|
247
247
|
} }
|
|
248
248
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
249
|
-
i0.ɵɵelementStart(0, "span",
|
|
250
|
-
i0.ɵɵelement(1, "i",
|
|
249
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
250
|
+
i0.ɵɵelement(1, "i", 62);
|
|
251
251
|
i0.ɵɵtext(2);
|
|
252
252
|
i0.ɵɵelementEnd();
|
|
253
253
|
} if (rf & 2) {
|
|
@@ -257,8 +257,8 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10
|
|
|
257
257
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewFilterCount(view_r7), " filter", ctx_r1.GetViewFilterCount(view_r7) !== 1 ? "s" : "");
|
|
258
258
|
} }
|
|
259
259
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
260
|
-
i0.ɵɵelementStart(0, "span",
|
|
261
|
-
i0.ɵɵelement(1, "i",
|
|
260
|
+
i0.ɵɵelementStart(0, "span", 58);
|
|
261
|
+
i0.ɵɵelement(1, "i", 63);
|
|
262
262
|
i0.ɵɵtext(2);
|
|
263
263
|
i0.ɵɵelementEnd();
|
|
264
264
|
} if (rf & 2) {
|
|
@@ -268,10 +268,10 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10
|
|
|
268
268
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewColumnCount(view_r7), " col", ctx_r1.GetViewColumnCount(view_r7) !== 1 ? "s" : "");
|
|
269
269
|
} }
|
|
270
270
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
271
|
-
i0.ɵɵelementStart(0, "div",
|
|
272
|
-
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template, 3, 1, "span",
|
|
273
|
-
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template, 3, 0, "span",
|
|
274
|
-
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template, 3, 2, "span",
|
|
271
|
+
i0.ɵɵelementStart(0, "div", 52);
|
|
272
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template, 3, 1, "span", 58);
|
|
273
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template, 3, 0, "span", 58)(3, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_3_Template, 3, 0, "span", 58)(4, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_4_Template, 3, 2, "span", 58);
|
|
274
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template, 3, 2, "span", 58);
|
|
275
275
|
i0.ɵɵelementEnd();
|
|
276
276
|
} if (rf & 2) {
|
|
277
277
|
const view_r7 = i0.ɵɵnextContext().$implicit;
|
|
@@ -285,40 +285,40 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10
|
|
|
285
285
|
} }
|
|
286
286
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
287
287
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
288
|
-
i0.ɵɵelementStart(0, "button",
|
|
288
|
+
i0.ɵɵelementStart(0, "button", 53);
|
|
289
289
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const view_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnConfigureViewById(view_r7.id, $event)); });
|
|
290
|
-
i0.ɵɵelement(1, "i",
|
|
290
|
+
i0.ɵɵelement(1, "i", 37);
|
|
291
291
|
i0.ɵɵelementEnd();
|
|
292
292
|
} }
|
|
293
293
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
294
|
-
i0.ɵɵelement(0, "i",
|
|
294
|
+
i0.ɵɵelement(0, "i", 38);
|
|
295
295
|
} }
|
|
296
296
|
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
297
297
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
298
|
-
i0.ɵɵelementStart(0, "div",
|
|
298
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
299
299
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template_div_click_0_listener() { const view_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SelectView(view_r7)); });
|
|
300
|
-
i0.ɵɵelementStart(1, "div",
|
|
301
|
-
i0.ɵɵelement(2, "i",
|
|
300
|
+
i0.ɵɵelementStart(1, "div", 66);
|
|
301
|
+
i0.ɵɵelement(2, "i", 67);
|
|
302
302
|
i0.ɵɵelementEnd();
|
|
303
|
-
i0.ɵɵelementStart(3, "div",
|
|
303
|
+
i0.ɵɵelementStart(3, "div", 29)(4, "div", 30)(5, "span", 31);
|
|
304
304
|
i0.ɵɵtext(6);
|
|
305
305
|
i0.ɵɵelementEnd();
|
|
306
|
-
i0.ɵɵconditionalCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_7_Template, 2, 0, "span",
|
|
306
|
+
i0.ɵɵconditionalCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_7_Template, 2, 0, "span", 51)(8, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_8_Template, 2, 0, "span", 68);
|
|
307
307
|
i0.ɵɵelementEnd();
|
|
308
|
-
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template, 2, 1, "div",
|
|
309
|
-
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template, 6, 3, "div",
|
|
308
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template, 2, 1, "div", 33);
|
|
309
|
+
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template, 6, 3, "div", 52);
|
|
310
310
|
i0.ɵɵelementEnd();
|
|
311
|
-
i0.ɵɵelementStart(11, "div",
|
|
312
|
-
i0.ɵɵconditionalCreate(13, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template, 2, 0, "button",
|
|
313
|
-
i0.ɵɵelementStart(14, "button",
|
|
311
|
+
i0.ɵɵelementStart(11, "div", 34)(12, "div", 35);
|
|
312
|
+
i0.ɵɵconditionalCreate(13, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template, 2, 0, "button", 69);
|
|
313
|
+
i0.ɵɵelementStart(14, "button", 70);
|
|
314
314
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template_button_click_14_listener($event) { const view_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnDuplicateView(view_r7.id, $event)); });
|
|
315
|
-
i0.ɵɵelement(15, "i",
|
|
315
|
+
i0.ɵɵelement(15, "i", 55);
|
|
316
316
|
i0.ɵɵelementEnd();
|
|
317
|
-
i0.ɵɵelementStart(16, "button",
|
|
317
|
+
i0.ɵɵelementStart(16, "button", 56);
|
|
318
318
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template_button_click_16_listener($event) { const view_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnOpenViewInTab(view_r7.id, $event)); });
|
|
319
|
-
i0.ɵɵelement(17, "i",
|
|
319
|
+
i0.ɵɵelement(17, "i", 57);
|
|
320
320
|
i0.ɵɵelementEnd()();
|
|
321
|
-
i0.ɵɵconditionalCreate(18, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template, 1, 0, "i",
|
|
321
|
+
i0.ɵɵconditionalCreate(18, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template, 1, 0, "i", 38);
|
|
322
322
|
i0.ɵɵelementEnd()();
|
|
323
323
|
} if (rf & 2) {
|
|
324
324
|
const view_r7 = ctx.$implicit;
|
|
@@ -340,15 +340,15 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template(rf, c
|
|
|
340
340
|
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r7.id ? 18 : -1);
|
|
341
341
|
} }
|
|
342
342
|
function ViewSelectorComponent_Conditional_9_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
343
|
-
i0.ɵɵelementStart(0, "div",
|
|
344
|
-
i0.ɵɵelement(2, "i",
|
|
343
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 45);
|
|
344
|
+
i0.ɵɵelement(2, "i", 65);
|
|
345
345
|
i0.ɵɵelementStart(3, "span");
|
|
346
346
|
i0.ɵɵtext(4, "Shared With Me");
|
|
347
347
|
i0.ɵɵelementEnd();
|
|
348
|
-
i0.ɵɵelementStart(5, "span",
|
|
348
|
+
i0.ɵɵelementStart(5, "span", 47);
|
|
349
349
|
i0.ɵɵtext(6);
|
|
350
350
|
i0.ɵɵelementEnd()();
|
|
351
|
-
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template, 19, 10, "div",
|
|
351
|
+
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template, 19, 10, "div", 48, _forTrack0);
|
|
352
352
|
i0.ɵɵelementEnd();
|
|
353
353
|
} if (rf & 2) {
|
|
354
354
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -358,72 +358,72 @@ function ViewSelectorComponent_Conditional_9_Conditional_29_Template(rf, ctx) {
|
|
|
358
358
|
i0.ɵɵrepeater(ctx_r1.FilteredSharedViews);
|
|
359
359
|
} }
|
|
360
360
|
function ViewSelectorComponent_Conditional_9_Conditional_30_Template(rf, ctx) { if (rf & 1) {
|
|
361
|
-
i0.ɵɵelement(0, "mj-empty-state",
|
|
361
|
+
i0.ɵɵelement(0, "mj-empty-state", 39);
|
|
362
362
|
} }
|
|
363
363
|
function ViewSelectorComponent_Conditional_9_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
364
|
-
i0.ɵɵelement(0, "mj-empty-state",
|
|
364
|
+
i0.ɵɵelement(0, "mj-empty-state", 40);
|
|
365
365
|
} if (rf & 2) {
|
|
366
366
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
367
367
|
i0.ɵɵproperty("Title", ctx_r1.NoViewsMatchMessage);
|
|
368
368
|
} }
|
|
369
369
|
function ViewSelectorComponent_Conditional_9_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
370
|
-
i0.ɵɵelementStart(0, "div",
|
|
371
|
-
i0.ɵɵelement(1, "i",
|
|
370
|
+
i0.ɵɵelementStart(0, "div", 41);
|
|
371
|
+
i0.ɵɵelement(1, "i", 71);
|
|
372
372
|
i0.ɵɵelementStart(2, "span");
|
|
373
373
|
i0.ɵɵtext(3, "Loading views...");
|
|
374
374
|
i0.ɵɵelementEnd()();
|
|
375
375
|
} }
|
|
376
376
|
function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
377
377
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
378
|
-
i0.ɵɵelementStart(0, "div", 8)(1, "div",
|
|
379
|
-
i0.ɵɵelement(2, "i",
|
|
380
|
-
i0.ɵɵelementStart(3, "span",
|
|
378
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 16);
|
|
379
|
+
i0.ɵɵelement(2, "i", 17);
|
|
380
|
+
i0.ɵɵelementStart(3, "span", 18);
|
|
381
381
|
i0.ɵɵtext(4, "Saved Views");
|
|
382
382
|
i0.ɵɵelementEnd();
|
|
383
|
-
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_5_Template, 2, 1, "span",
|
|
384
|
-
i0.ɵɵelementStart(6, "button",
|
|
383
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_5_Template, 2, 1, "span", 19);
|
|
384
|
+
i0.ɵɵelementStart(6, "button", 20);
|
|
385
385
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseDropdown()); });
|
|
386
|
-
i0.ɵɵelement(7, "i",
|
|
386
|
+
i0.ɵɵelement(7, "i", 21);
|
|
387
387
|
i0.ɵɵelementEnd()();
|
|
388
|
-
i0.ɵɵelementStart(8, "div",
|
|
388
|
+
i0.ɵɵelementStart(8, "div", 22)(9, "input", 23);
|
|
389
389
|
i0.ɵɵtwoWayListener("ngModelChange", function ViewSelectorComponent_Conditional_9_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.SearchText, $event) || (ctx_r1.SearchText = $event); return i0.ɵɵresetView($event); });
|
|
390
390
|
i0.ɵɵlistener("keydown.escape", function ViewSelectorComponent_Conditional_9_Template_input_keydown_escape_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SearchText = ""); });
|
|
391
391
|
i0.ɵɵelementEnd()();
|
|
392
|
-
i0.ɵɵelementStart(10, "div",
|
|
392
|
+
i0.ɵɵelementStart(10, "div", 24)(11, "div", 25)(12, "div", 26);
|
|
393
393
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_div_click_12_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SelectDefault()); });
|
|
394
|
-
i0.ɵɵelementStart(13, "div",
|
|
395
|
-
i0.ɵɵelement(14, "i",
|
|
394
|
+
i0.ɵɵelementStart(13, "div", 27);
|
|
395
|
+
i0.ɵɵelement(14, "i", 28);
|
|
396
396
|
i0.ɵɵelementEnd();
|
|
397
|
-
i0.ɵɵelementStart(15, "div",
|
|
397
|
+
i0.ɵɵelementStart(15, "div", 29)(16, "div", 30)(17, "span", 31);
|
|
398
398
|
i0.ɵɵtext(18, "(Default)");
|
|
399
399
|
i0.ɵɵelementEnd();
|
|
400
|
-
i0.ɵɵelementStart(19, "span",
|
|
400
|
+
i0.ɵɵelementStart(19, "span", 32);
|
|
401
401
|
i0.ɵɵtext(20, "Personal Layout");
|
|
402
402
|
i0.ɵɵelementEnd()();
|
|
403
|
-
i0.ɵɵelementStart(21, "div",
|
|
403
|
+
i0.ɵɵelementStart(21, "div", 33);
|
|
404
404
|
i0.ɵɵtext(22, "All records with your personal default columns & sort order");
|
|
405
405
|
i0.ɵɵelementEnd()();
|
|
406
|
-
i0.ɵɵelementStart(23, "div",
|
|
406
|
+
i0.ɵɵelementStart(23, "div", 34)(24, "div", 35)(25, "button", 36);
|
|
407
407
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_25_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConfigureDefaultLayout($event)); });
|
|
408
|
-
i0.ɵɵelement(26, "i",
|
|
408
|
+
i0.ɵɵelement(26, "i", 37);
|
|
409
409
|
i0.ɵɵelementEnd()();
|
|
410
|
-
i0.ɵɵconditionalCreate(27, ViewSelectorComponent_Conditional_9_Conditional_27_Template, 1, 0, "i",
|
|
410
|
+
i0.ɵɵconditionalCreate(27, ViewSelectorComponent_Conditional_9_Conditional_27_Template, 1, 0, "i", 38);
|
|
411
411
|
i0.ɵɵelementEnd()()();
|
|
412
|
-
i0.ɵɵconditionalCreate(28, ViewSelectorComponent_Conditional_9_Conditional_28_Template, 9, 1, "div",
|
|
413
|
-
i0.ɵɵconditionalCreate(29, ViewSelectorComponent_Conditional_9_Conditional_29_Template, 9, 1, "div",
|
|
414
|
-
i0.ɵɵconditionalCreate(30, ViewSelectorComponent_Conditional_9_Conditional_30_Template, 1, 0, "mj-empty-state",
|
|
415
|
-
i0.ɵɵconditionalCreate(31, ViewSelectorComponent_Conditional_9_Conditional_31_Template, 1, 1, "mj-empty-state",
|
|
416
|
-
i0.ɵɵconditionalCreate(32, ViewSelectorComponent_Conditional_9_Conditional_32_Template, 4, 0, "div",
|
|
412
|
+
i0.ɵɵconditionalCreate(28, ViewSelectorComponent_Conditional_9_Conditional_28_Template, 9, 1, "div", 25);
|
|
413
|
+
i0.ɵɵconditionalCreate(29, ViewSelectorComponent_Conditional_9_Conditional_29_Template, 9, 1, "div", 25);
|
|
414
|
+
i0.ɵɵconditionalCreate(30, ViewSelectorComponent_Conditional_9_Conditional_30_Template, 1, 0, "mj-empty-state", 39);
|
|
415
|
+
i0.ɵɵconditionalCreate(31, ViewSelectorComponent_Conditional_9_Conditional_31_Template, 1, 1, "mj-empty-state", 40);
|
|
416
|
+
i0.ɵɵconditionalCreate(32, ViewSelectorComponent_Conditional_9_Conditional_32_Template, 4, 0, "div", 41);
|
|
417
417
|
i0.ɵɵelementEnd();
|
|
418
|
-
i0.ɵɵelementStart(33, "div",
|
|
418
|
+
i0.ɵɵelementStart(33, "div", 42)(34, "button", 43);
|
|
419
419
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_34_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCreateNewView()); });
|
|
420
420
|
i0.ɵɵelement(35, "i", 13);
|
|
421
421
|
i0.ɵɵelementStart(36, "span");
|
|
422
422
|
i0.ɵɵtext(37, "New Saved View");
|
|
423
423
|
i0.ɵɵelementEnd()();
|
|
424
|
-
i0.ɵɵelementStart(38, "button",
|
|
424
|
+
i0.ɵɵelementStart(38, "button", 44);
|
|
425
425
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_38_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnConfigureDefaultLayout($event)); });
|
|
426
|
-
i0.ɵɵelement(39, "i",
|
|
426
|
+
i0.ɵɵelement(39, "i", 37);
|
|
427
427
|
i0.ɵɵelementStart(40, "span");
|
|
428
428
|
i0.ɵɵtext(41, "Default Layout");
|
|
429
429
|
i0.ɵɵelementEnd()()()();
|
|
@@ -452,9 +452,16 @@ function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
452
452
|
} }
|
|
453
453
|
function ViewSelectorComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
454
454
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
455
|
-
i0.ɵɵelementStart(0, "button",
|
|
455
|
+
i0.ɵɵelementStart(0, "button", 72);
|
|
456
456
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnOpenInTab()); });
|
|
457
|
-
i0.ɵɵelement(1, "i",
|
|
457
|
+
i0.ɵɵelement(1, "i", 73);
|
|
458
|
+
i0.ɵɵelementEnd();
|
|
459
|
+
} }
|
|
460
|
+
function ViewSelectorComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
461
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
462
|
+
i0.ɵɵelementStart(0, "button", 74);
|
|
463
|
+
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_15_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExport()); });
|
|
464
|
+
i0.ɵɵelement(1, "i", 75);
|
|
458
465
|
i0.ɵɵelementEnd();
|
|
459
466
|
} }
|
|
460
467
|
/**
|
|
@@ -484,6 +491,12 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
484
491
|
* Whether the current view has unsaved modifications
|
|
485
492
|
*/
|
|
486
493
|
ViewModified = false;
|
|
494
|
+
/**
|
|
495
|
+
* Whether to render the Export icon button in the selector bar. Defaults to `true` for standalone
|
|
496
|
+
* usage; `mj-view-workspace` sets this to `false` when the active view type (such as Grid) already
|
|
497
|
+
* provides an Export button in its own toolbar.
|
|
498
|
+
*/
|
|
499
|
+
ShowExportButton = true;
|
|
487
500
|
/**
|
|
488
501
|
* Emitted when a view is selected
|
|
489
502
|
*/
|
|
@@ -959,7 +972,7 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
959
972
|
this.CloseDropdown();
|
|
960
973
|
}
|
|
961
974
|
static ɵfac = function ViewSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ViewSelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
962
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewSelectorComponent, selectors: [["mj-view-selector"]], inputs: { Entity: "Entity", SelectedViewID: "SelectedViewID", SelectedAlternateBaseView: "SelectedAlternateBaseView", ViewModified: "ViewModified" }, outputs: { ViewSelected: "ViewSelected", AlternateBaseViewSelected: "AlternateBaseViewSelected", SaveViewRequested: "SaveViewRequested", ManageViewsRequested: "ManageViewsRequested", OpenInTabRequested: "OpenInTabRequested", ConfigureViewRequested: "ConfigureViewRequested", CreateNewRecordRequested: "CreateNewRecordRequested", ExportRequested: "ExportRequested", DuplicateViewRequested: "DuplicateViewRequested", QuickSaveRequested: "QuickSaveRequested", RevertRequested: "RevertRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls:
|
|
975
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewSelectorComponent, selectors: [["mj-view-selector"]], inputs: { Entity: "Entity", SelectedViewID: "SelectedViewID", SelectedAlternateBaseView: "SelectedAlternateBaseView", ViewModified: "ViewModified", ShowExportButton: "ShowExportButton" }, outputs: { ViewSelected: "ViewSelected", AlternateBaseViewSelected: "AlternateBaseViewSelected", SaveViewRequested: "SaveViewRequested", ManageViewsRequested: "ManageViewsRequested", OpenInTabRequested: "OpenInTabRequested", ConfigureViewRequested: "ConfigureViewRequested", CreateNewRecordRequested: "CreateNewRecordRequested", ExportRequested: "ExportRequested", DuplicateViewRequested: "DuplicateViewRequested", QuickSaveRequested: "QuickSaveRequested", RevertRequested: "RevertRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 16, vars: 13, consts: [[1, "vs-container"], [1, "vs-backdrop"], [1, "vs-wrapper"], ["title", "Select a saved view", 1, "vs-button", 3, "click", "disabled"], [1, "fa-solid", "fa-layer-group", "vs-btn-icon"], [1, "vs-btn-name"], ["title", "View has unsaved changes", 1, "vs-modified-dot"], [1, "fa-solid", "fa-chevron-down", "vs-arrow"], [1, "vs-panel"], ["title", "Open this view in a new tab", 1, "vs-icon-btn"], ["title", "Configure view settings (columns, filters, sorting)", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-sliders-h"], ["title", "Create new record", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-plus"], ["title", "Export", 1, "vs-icon-btn", "vs-export-btn"], [1, "vs-backdrop", 3, "click"], [1, "vs-panel-header"], [1, "fa-solid", "fa-layer-group", "vs-header-icon"], [1, "vs-panel-title"], [1, "vs-entity-badge"], ["title", "Close", 1, "vs-close-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "vs-panel-search"], ["type", "text", "placeholder", "Filter views by name or description...", 1, "vs-search-input", 3, "ngModelChange", "keydown.escape", "ngModel"], [1, "vs-panel-body"], [1, "vs-section"], [1, "vs-card", 3, "click"], [1, "vs-card-icon"], [1, "fa-solid", "fa-table-cells"], [1, "vs-card-content"], [1, "vs-card-top"], [1, "vs-card-name-text"], [1, "vs-default-badge"], [1, "vs-card-desc"], [1, "vs-card-right"], [1, "vs-card-actions"], ["title", "Customize Personal Default Layout", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-sliders"], [1, "fa-solid", "fa-check", "vs-card-check"], ["Size", "compact", "Icon", "fa-solid fa-bookmark", "Title", "No saved views yet", "Message", "Save your current configuration as a view"], ["Size", "compact", "Variant", "no-results", 3, "Title"], [1, "vs-loading"], [1, "vs-panel-footer"], ["title", "Create a new saved view in the View Studio", 1, "vs-panel-btn", "primary", 3, "click"], ["title", "Customize your personal default layout", 1, "vs-panel-btn", 3, "click"], [1, "vs-section-header"], [1, "fa-solid", "fa-user"], [1, "vs-section-count"], [1, "vs-card", 3, "active"], [1, "fa-solid", "fa-star"], [1, "fa-solid", "fa-layer-group"], [1, "vs-shared-badge"], [1, "vs-card-meta"], ["title", "Edit View in Studio", 1, "vs-action-btn", 3, "click"], ["title", "Duplicate View", 1, "vs-action-btn", 3, "click"], [1, "fa-regular", "fa-copy"], ["title", "Open in Tab", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-up-right-from-square"], [1, "vs-meta-pill"], [1, "fa-solid", "fa-database"], [1, "fa-solid", "fa-wand-magic-sparkles"], [1, "fa-solid", "fa-code"], [1, "fa-solid", "fa-filter"], [1, "fa-solid", "fa-table-columns"], [1, "fa-solid", "fa-arrow-down-short-wide"], [1, "fa-solid", "fa-share-nodes"], [1, "vs-card-icon", "shared"], [1, "fa-solid", "fa-globe"], [1, "vs-shared-badge", "editable"], ["title", "Edit View in Studio", 1, "vs-action-btn"], ["title", "Duplicate as My View", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-spinner", "fa-spin"], ["title", "Open this view in a new tab", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-external-link-alt"], ["title", "Export", 1, "vs-icon-btn", "vs-export-btn", 3, "click"], [1, "fa-solid", "fa-file-excel"]], template: function ViewSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
963
976
|
i0.ɵɵelementStart(0, "div", 0);
|
|
964
977
|
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_1_Template, 1, 0, "div", 1);
|
|
965
978
|
i0.ɵɵelementStart(2, "div", 2)(3, "button", 3);
|
|
@@ -982,10 +995,8 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
982
995
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Template_button_click_13_listener() { return ctx.OnCreateNewRecord(); });
|
|
983
996
|
i0.ɵɵelement(14, "i", 13);
|
|
984
997
|
i0.ɵɵelementEnd();
|
|
985
|
-
i0.ɵɵ
|
|
986
|
-
i0.ɵɵ
|
|
987
|
-
i0.ɵɵelement(16, "i", 15);
|
|
988
|
-
i0.ɵɵelementEnd()();
|
|
998
|
+
i0.ɵɵconditionalCreate(15, ViewSelectorComponent_Conditional_15_Template, 2, 0, "button", 14);
|
|
999
|
+
i0.ɵɵelementEnd();
|
|
989
1000
|
} if (rf & 2) {
|
|
990
1001
|
i0.ɵɵadvance();
|
|
991
1002
|
i0.ɵɵconditional(ctx.IsDropdownOpen ? 1 : -1);
|
|
@@ -1002,11 +1013,13 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
1002
1013
|
i0.ɵɵconditional(ctx.IsDropdownOpen ? 9 : -1);
|
|
1003
1014
|
i0.ɵɵadvance();
|
|
1004
1015
|
i0.ɵɵconditional(ctx.SelectedViewID ? 10 : -1);
|
|
1016
|
+
i0.ɵɵadvance(5);
|
|
1017
|
+
i0.ɵɵconditional(ctx.ShowExportButton ? 15 : -1);
|
|
1005
1018
|
} }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MJEmptyStateComponent], styles: ["/* ========================================\n VIEW SELECTOR - All classes prefixed vs-\n to avoid conflicts (ViewEncapsulation.None)\n ======================================== */\n\n/* Container */\n.vs-container {\n display: flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n\n/* Backdrop for closing panel */\n.vs-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n background: transparent;\n}\n\n.vs-wrapper {\n position: relative;\n}\n\n/* Main Button */\n.vs-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n transition: all 0.15s ease;\n min-width: 140px;\n max-width: 280px;\n}\n\n.vs-button:hover {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.vs-button.open {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button.modified {\n border-color: var(--mj-status-warning);\n}\n\n.vs-btn-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.vs-btn-name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n\n.vs-modified-dot {\n color: var(--mj-status-warning);\n font-weight: bold;\n font-size: 18px;\n line-height: 1;\n}\n\n.vs-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n transition: transform 0.2s ease;\n}\n\n.vs-arrow.rotated {\n transform: rotate(180deg);\n}\n\n/* ========================================\n RICH VIEW PANEL\n Styles ported directly from prototype\n ======================================== */\n\n/* Reset inherited styles inside panel */\n.vs-panel,\n.vs-panel * {\n box-sizing: border-box;\n line-height: 1.5;\n text-align: left;\n}\n\n.vs-panel {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n width: 440px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 12px;\n box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);\n z-index: 1000;\n overflow: hidden;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 13px;\n color: var(--mj-text-primary);\n}\n\n/* Panel Header */\n.vs-panel-header {\n padding: 12px 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 13px;\n}\n\n.vs-panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 999px;\n max-width: 190px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-close-btn {\n margin-left: auto;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n background: transparent;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-close-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 10px 14px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 7px 12px 7px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 7px;\n font-size: 13px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208z'/%3E%3C/svg%3E\") no-repeat 10px center;\n background-size: 13px;\n box-sizing: border-box;\n font-family: inherit;\n transition: border-color 0.15s ease;\n}\n\n.vs-search-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.vs-search-input::placeholder {\n color: var(--mj-text-muted);\n}\n\n/* Panel Body */\n.vs-panel-body {\n max-height: 380px;\n overflow-y: auto;\n padding: 6px;\n}\n\n/* View Section */\n.vs-section {\n padding: 2px 0;\n}\n\n.vs-section-header {\n padding: 8px 10px 4px;\n font-size: 10px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-section-header i {\n font-size: 10px;\n}\n\n.vs-section-count {\n margin-left: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n color: var(--mj-text-secondary);\n}\n\n/* View Card */\n.vs-card {\n padding: 9px 10px;\n border-radius: 8px;\n border: 1px solid transparent;\n cursor: pointer;\n transition: background 0.12s ease, border-color 0.12s ease;\n display: flex;\n align-items: flex-start;\n gap: 10px;\n}\n\n.vs-card:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 1px;\n}\n\n.vs-card-icon.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.vs-card-icon.shared {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted);\n}\n\n.vs-card-icon.shared.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n}\n\n.vs-card-top {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.vs-card-name-text {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card.active .vs-card-name-text {\n color: var(--mj-brand-primary);\n}\n\n/* Non-wrapping status pills \u2014 never wraps onto 2 lines */\n.vs-default-badge {\n font-size: 10px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge {\n font-size: 10px;\n font-weight: 600;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-muted);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n border-color: transparent;\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n margin-top: 5px;\n}\n\n.vs-meta-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: 10.5px;\n white-space: nowrap;\n}\n\n.vs-meta-pill i {\n font-size: 9.5px;\n color: var(--mj-brand-primary);\n}\n\n/* Right Action & Checkmark Column */\n.vs-card-right {\n display: flex;\n align-items: center;\n gap: 2px;\n flex-shrink: 0;\n align-self: center;\n}\n\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n padding: 0 6px;\n}\n\n/* View Card Actions (hover & focus-within reveal) */\n.vs-card-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 2px;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.12s ease;\n}\n\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.vs-card:hover .vs-card-check,\n.vs-card:focus-within .vs-card-check {\n display: none;\n}\n\n.vs-action-btn {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n font-size: 11px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n/* Loading */\n.vs-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 20px;\n color: var(--mj-text-muted);\n font-size: 13px;\n text-align: center;\n}\n\n/* Panel Footer */\n.vs-panel-footer {\n padding: 10px 12px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 7px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n transition: all 0.15s ease;\n font-family: inherit;\n text-align: center;\n}\n\n.vs-panel-btn:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.vs-panel-btn i {\n font-size: 11px;\n}\n\n/* ========================================\n ICON BUTTONS (outside panel)\n ======================================== */\n\n.vs-icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-secondary);\n transition: all 0.15s ease;\n}\n\n.vs-icon-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-brand-primary);\n}\n\n.vs-icon-btn i {\n font-size: 12px;\n}\n\n.vs-export-btn:hover {\n color: var(--mj-status-success);\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .vs-button {\n min-width: 100px;\n max-width: 180px;\n padding: 6px 10px;\n }\n\n .vs-panel {\n width: calc(100vw - 32px);\n max-width: 400px;\n }\n}\n"], encapsulation: 2 });
|
|
1006
1019
|
}
|
|
1007
1020
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewSelectorComponent, [{
|
|
1008
1021
|
type: Component,
|
|
1009
|
-
args: [{ standalone: false, selector: 'mj-view-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"vs-container\">\n <!-- Backdrop for closing panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-backdrop\" (click)=\"CloseDropdown()\"></div>\n }\n\n <!-- Main View Selector Button -->\n <div class=\"vs-wrapper\">\n <button\n class=\"vs-button\"\n [class.modified]=\"ViewModified\"\n [class.open]=\"IsDropdownOpen\"\n (click)=\"ToggleDropdown()\"\n [disabled]=\"IsLoading\"\n title=\"Select a saved view\">\n <i class=\"fa-solid fa-layer-group vs-btn-icon\"></i>\n <span class=\"vs-btn-name\">{{ DisplayName }}</span>\n @if (ViewModified) {\n <span class=\"vs-modified-dot\" title=\"View has unsaved changes\">\u2022</span>\n }\n <i class=\"fa-solid fa-chevron-down vs-arrow\" [class.rotated]=\"IsDropdownOpen\"></i>\n </button>\n\n <!-- Rich View Panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-panel\">\n <!-- Panel Header -->\n <div class=\"vs-panel-header\">\n <i class=\"fa-solid fa-layer-group vs-header-icon\"></i>\n <span class=\"vs-panel-title\">Saved Views</span>\n @if (Entity) {\n <span class=\"vs-entity-badge\">{{ Entity.DisplayNameOrName }}</span>\n }\n <button class=\"vs-close-btn\" (click)=\"CloseDropdown()\" title=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n\n <!-- Search -->\n <div class=\"vs-panel-search\">\n <input\n type=\"text\"\n class=\"vs-search-input\"\n placeholder=\"Filter views by name or description...\"\n [(ngModel)]=\"SearchText\"\n (keydown.escape)=\"SearchText = ''\"\n />\n </div>\n\n <!-- Panel Body -->\n <div class=\"vs-panel-body\">\n <!-- Default Option -->\n <div class=\"vs-section\">\n <div\n class=\"vs-card\"\n [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\"\n (click)=\"SelectDefault()\">\n <div class=\"vs-card-icon\" [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\">\n <i class=\"fa-solid fa-table-cells\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">(Default)</span>\n <span class=\"vs-default-badge\">Personal Layout</span>\n </div>\n <div class=\"vs-card-desc\">All records with your personal default columns & sort order</div>\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize Personal Default Layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n </div>\n @if (!SelectedViewID && !SelectedAlternateBaseView) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n </div>\n\n <!-- My Views Section -->\n @if (FilteredMyViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-user\"></i>\n <span>My Views</span>\n <span class=\"vs-section-count\">{{ FilteredMyViews.length }}</span>\n </div>\n @for (view of FilteredMyViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon\" [class.active]=\"SelectedViewID === view.id\">\n @if (view.isDefault) {\n <i class=\"fa-solid fa-star\"></i>\n } @else {\n <i class=\"fa-solid fa-layer-group\"></i>\n }\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (view.isDefault) {\n <span class=\"vs-default-badge\">Default</span>\n }\n @if (view.isShared) {\n <span class=\"vs-shared-badge\">Shared</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewSortInfo(view) || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewSortInfo(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-arrow-down-short-wide\"></i> {{ GetViewSortInfo(view) }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- Shared Views Section -->\n @if (FilteredSharedViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n <span>Shared With Me</span>\n <span class=\"vs-section-count\">{{ FilteredSharedViews.length }}</span>\n </div>\n @for (view of FilteredSharedViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon shared\" [class.active]=\"SelectedViewID === view.id\">\n <i class=\"fa-solid fa-globe\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (!view.userCanEdit) {\n <span class=\"vs-shared-badge\">View Only</span>\n } @else {\n <span class=\"vs-shared-badge editable\">Can Edit</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n @if (view.userCanEdit) {\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n }\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate as My View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- No Views Message -->\n @if (!HasViews && !IsLoading) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-bookmark\"\n Title=\"No saved views yet\"\n Message=\"Save your current configuration as a view\" />\n }\n\n <!-- No Search Results -->\n @if (HasViews && FilteredMyViews.length === 0 && FilteredSharedViews.length === 0 && SearchText) {\n <mj-empty-state\n Size=\"compact\"\n Variant=\"no-results\"\n [Title]=\"NoViewsMatchMessage\" />\n }\n\n <!-- Loading Indicator -->\n @if (IsLoading) {\n <div class=\"vs-loading\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>Loading views...</span>\n </div>\n }\n </div>\n\n <!-- Panel Footer (MJ Convention: Primary action on LEFT, Secondary on RIGHT) -->\n <div class=\"vs-panel-footer\">\n <button\n class=\"vs-panel-btn primary\"\n (click)=\"OnCreateNewView()\"\n title=\"Create a new saved view in the View Studio\">\n <i class=\"fa-solid fa-plus\"></i>\n <span>New Saved View</span>\n </button>\n <button\n class=\"vs-panel-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize your personal default layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n <span>Default Layout</span>\n </button>\n </div>\n </div>\n }\n </div>\n\n <!-- Open in Tab Button (only visible when a view is selected) -->\n @if (SelectedViewID) {\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnOpenInTab()\"\n title=\"Open this view in a new tab\">\n <i class=\"fa-solid fa-external-link-alt\"></i>\n </button>\n }\n\n <!-- Configure View Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnConfigureView()\"\n title=\"Configure view settings (columns, filters, sorting)\">\n <i class=\"fa-solid fa-sliders-h\"></i>\n </button>\n\n <!-- Create New Record Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnCreateNewRecord()\"\n title=\"Create new record\">\n <i class=\"fa-solid fa-plus\"></i>\n </button>\n\n <!-- Export Button -->\n <button\n class=\"vs-icon-btn vs-export-btn\"\n (click)=\"OnExport()\"\n title=\"Export\">\n <i class=\"fa-solid fa-file-excel\"></i>\n </button>\n</div>\n", styles: ["/* ========================================\n VIEW SELECTOR - All classes prefixed vs-\n to avoid conflicts (ViewEncapsulation.None)\n ======================================== */\n\n/* Container */\n.vs-container {\n display: flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n\n/* Backdrop for closing panel */\n.vs-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n background: transparent;\n}\n\n.vs-wrapper {\n position: relative;\n}\n\n/* Main Button */\n.vs-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n transition: all 0.15s ease;\n min-width: 140px;\n max-width: 280px;\n}\n\n.vs-button:hover {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.vs-button.open {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button.modified {\n border-color: var(--mj-status-warning);\n}\n\n.vs-btn-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.vs-btn-name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n\n.vs-modified-dot {\n color: var(--mj-status-warning);\n font-weight: bold;\n font-size: 18px;\n line-height: 1;\n}\n\n.vs-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n transition: transform 0.2s ease;\n}\n\n.vs-arrow.rotated {\n transform: rotate(180deg);\n}\n\n/* ========================================\n RICH VIEW PANEL\n Styles ported directly from prototype\n ======================================== */\n\n/* Reset inherited styles inside panel */\n.vs-panel,\n.vs-panel * {\n box-sizing: border-box;\n line-height: 1.5;\n text-align: left;\n}\n\n.vs-panel {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n width: 440px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 12px;\n box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);\n z-index: 1000;\n overflow: hidden;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 13px;\n color: var(--mj-text-primary);\n}\n\n/* Panel Header */\n.vs-panel-header {\n padding: 12px 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 13px;\n}\n\n.vs-panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 999px;\n max-width: 190px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-close-btn {\n margin-left: auto;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n background: transparent;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-close-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 10px 14px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 7px 12px 7px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 7px;\n font-size: 13px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208z'/%3E%3C/svg%3E\") no-repeat 10px center;\n background-size: 13px;\n box-sizing: border-box;\n font-family: inherit;\n transition: border-color 0.15s ease;\n}\n\n.vs-search-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.vs-search-input::placeholder {\n color: var(--mj-text-muted);\n}\n\n/* Panel Body */\n.vs-panel-body {\n max-height: 380px;\n overflow-y: auto;\n padding: 6px;\n}\n\n/* View Section */\n.vs-section {\n padding: 2px 0;\n}\n\n.vs-section-header {\n padding: 8px 10px 4px;\n font-size: 10px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-section-header i {\n font-size: 10px;\n}\n\n.vs-section-count {\n margin-left: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n color: var(--mj-text-secondary);\n}\n\n/* View Card */\n.vs-card {\n padding: 9px 10px;\n border-radius: 8px;\n border: 1px solid transparent;\n cursor: pointer;\n transition: background 0.12s ease, border-color 0.12s ease;\n display: flex;\n align-items: flex-start;\n gap: 10px;\n}\n\n.vs-card:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 1px;\n}\n\n.vs-card-icon.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.vs-card-icon.shared {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted);\n}\n\n.vs-card-icon.shared.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n}\n\n.vs-card-top {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.vs-card-name-text {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card.active .vs-card-name-text {\n color: var(--mj-brand-primary);\n}\n\n/* Non-wrapping status pills \u2014 never wraps onto 2 lines */\n.vs-default-badge {\n font-size: 10px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge {\n font-size: 10px;\n font-weight: 600;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-muted);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n border-color: transparent;\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n margin-top: 5px;\n}\n\n.vs-meta-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: 10.5px;\n white-space: nowrap;\n}\n\n.vs-meta-pill i {\n font-size: 9.5px;\n color: var(--mj-brand-primary);\n}\n\n/* Right Action & Checkmark Column */\n.vs-card-right {\n display: flex;\n align-items: center;\n gap: 2px;\n flex-shrink: 0;\n align-self: center;\n}\n\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n padding: 0 6px;\n}\n\n/* View Card Actions (hover & focus-within reveal) */\n.vs-card-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 2px;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.12s ease;\n}\n\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.vs-card:hover .vs-card-check,\n.vs-card:focus-within .vs-card-check {\n display: none;\n}\n\n.vs-action-btn {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n font-size: 11px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n/* Loading */\n.vs-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 20px;\n color: var(--mj-text-muted);\n font-size: 13px;\n text-align: center;\n}\n\n/* Panel Footer */\n.vs-panel-footer {\n padding: 10px 12px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 7px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n transition: all 0.15s ease;\n font-family: inherit;\n text-align: center;\n}\n\n.vs-panel-btn:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.vs-panel-btn i {\n font-size: 11px;\n}\n\n/* ========================================\n ICON BUTTONS (outside panel)\n ======================================== */\n\n.vs-icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-secondary);\n transition: all 0.15s ease;\n}\n\n.vs-icon-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-brand-primary);\n}\n\n.vs-icon-btn i {\n font-size: 12px;\n}\n\n.vs-export-btn:hover {\n color: var(--mj-status-success);\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .vs-button {\n min-width: 100px;\n max-width: 180px;\n padding: 6px 10px;\n }\n\n .vs-panel {\n width: calc(100vw - 32px);\n max-width: 400px;\n }\n}\n"] }]
|
|
1022
|
+
args: [{ standalone: false, selector: 'mj-view-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"vs-container\">\n <!-- Backdrop for closing panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-backdrop\" (click)=\"CloseDropdown()\"></div>\n }\n\n <!-- Main View Selector Button -->\n <div class=\"vs-wrapper\">\n <button\n class=\"vs-button\"\n [class.modified]=\"ViewModified\"\n [class.open]=\"IsDropdownOpen\"\n (click)=\"ToggleDropdown()\"\n [disabled]=\"IsLoading\"\n title=\"Select a saved view\">\n <i class=\"fa-solid fa-layer-group vs-btn-icon\"></i>\n <span class=\"vs-btn-name\">{{ DisplayName }}</span>\n @if (ViewModified) {\n <span class=\"vs-modified-dot\" title=\"View has unsaved changes\">\u2022</span>\n }\n <i class=\"fa-solid fa-chevron-down vs-arrow\" [class.rotated]=\"IsDropdownOpen\"></i>\n </button>\n\n <!-- Rich View Panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-panel\">\n <!-- Panel Header -->\n <div class=\"vs-panel-header\">\n <i class=\"fa-solid fa-layer-group vs-header-icon\"></i>\n <span class=\"vs-panel-title\">Saved Views</span>\n @if (Entity) {\n <span class=\"vs-entity-badge\">{{ Entity.DisplayNameOrName }}</span>\n }\n <button class=\"vs-close-btn\" (click)=\"CloseDropdown()\" title=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n\n <!-- Search -->\n <div class=\"vs-panel-search\">\n <input\n type=\"text\"\n class=\"vs-search-input\"\n placeholder=\"Filter views by name or description...\"\n [(ngModel)]=\"SearchText\"\n (keydown.escape)=\"SearchText = ''\"\n />\n </div>\n\n <!-- Panel Body -->\n <div class=\"vs-panel-body\">\n <!-- Default Option -->\n <div class=\"vs-section\">\n <div\n class=\"vs-card\"\n [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\"\n (click)=\"SelectDefault()\">\n <div class=\"vs-card-icon\" [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\">\n <i class=\"fa-solid fa-table-cells\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">(Default)</span>\n <span class=\"vs-default-badge\">Personal Layout</span>\n </div>\n <div class=\"vs-card-desc\">All records with your personal default columns & sort order</div>\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize Personal Default Layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n </div>\n @if (!SelectedViewID && !SelectedAlternateBaseView) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n </div>\n\n <!-- My Views Section -->\n @if (FilteredMyViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-user\"></i>\n <span>My Views</span>\n <span class=\"vs-section-count\">{{ FilteredMyViews.length }}</span>\n </div>\n @for (view of FilteredMyViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon\" [class.active]=\"SelectedViewID === view.id\">\n @if (view.isDefault) {\n <i class=\"fa-solid fa-star\"></i>\n } @else {\n <i class=\"fa-solid fa-layer-group\"></i>\n }\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (view.isDefault) {\n <span class=\"vs-default-badge\">Default</span>\n }\n @if (view.isShared) {\n <span class=\"vs-shared-badge\">Shared</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewSortInfo(view) || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewSortInfo(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-arrow-down-short-wide\"></i> {{ GetViewSortInfo(view) }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- Shared Views Section -->\n @if (FilteredSharedViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n <span>Shared With Me</span>\n <span class=\"vs-section-count\">{{ FilteredSharedViews.length }}</span>\n </div>\n @for (view of FilteredSharedViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon shared\" [class.active]=\"SelectedViewID === view.id\">\n <i class=\"fa-solid fa-globe\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (!view.userCanEdit) {\n <span class=\"vs-shared-badge\">View Only</span>\n } @else {\n <span class=\"vs-shared-badge editable\">Can Edit</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n @if (view.userCanEdit) {\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n }\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate as My View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- No Views Message -->\n @if (!HasViews && !IsLoading) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-bookmark\"\n Title=\"No saved views yet\"\n Message=\"Save your current configuration as a view\" />\n }\n\n <!-- No Search Results -->\n @if (HasViews && FilteredMyViews.length === 0 && FilteredSharedViews.length === 0 && SearchText) {\n <mj-empty-state\n Size=\"compact\"\n Variant=\"no-results\"\n [Title]=\"NoViewsMatchMessage\" />\n }\n\n <!-- Loading Indicator -->\n @if (IsLoading) {\n <div class=\"vs-loading\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>Loading views...</span>\n </div>\n }\n </div>\n\n <!-- Panel Footer (MJ Convention: Primary action on LEFT, Secondary on RIGHT) -->\n <div class=\"vs-panel-footer\">\n <button\n class=\"vs-panel-btn primary\"\n (click)=\"OnCreateNewView()\"\n title=\"Create a new saved view in the View Studio\">\n <i class=\"fa-solid fa-plus\"></i>\n <span>New Saved View</span>\n </button>\n <button\n class=\"vs-panel-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize your personal default layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n <span>Default Layout</span>\n </button>\n </div>\n </div>\n }\n </div>\n\n <!-- Open in Tab Button (only visible when a view is selected) -->\n @if (SelectedViewID) {\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnOpenInTab()\"\n title=\"Open this view in a new tab\">\n <i class=\"fa-solid fa-external-link-alt\"></i>\n </button>\n }\n\n <!-- Configure View Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnConfigureView()\"\n title=\"Configure view settings (columns, filters, sorting)\">\n <i class=\"fa-solid fa-sliders-h\"></i>\n </button>\n\n <!-- Create New Record Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnCreateNewRecord()\"\n title=\"Create new record\">\n <i class=\"fa-solid fa-plus\"></i>\n </button>\n\n <!-- Export Button (suppressed when the active view type provides its own toolbar Export) -->\n @if (ShowExportButton) {\n <button\n class=\"vs-icon-btn vs-export-btn\"\n (click)=\"OnExport()\"\n title=\"Export\">\n <i class=\"fa-solid fa-file-excel\"></i>\n </button>\n }\n</div>\n", styles: ["/* ========================================\n VIEW SELECTOR - All classes prefixed vs-\n to avoid conflicts (ViewEncapsulation.None)\n ======================================== */\n\n/* Container */\n.vs-container {\n display: flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n\n/* Backdrop for closing panel */\n.vs-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n background: transparent;\n}\n\n.vs-wrapper {\n position: relative;\n}\n\n/* Main Button */\n.vs-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n transition: all 0.15s ease;\n min-width: 140px;\n max-width: 280px;\n}\n\n.vs-button:hover {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.vs-button.open {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button.modified {\n border-color: var(--mj-status-warning);\n}\n\n.vs-btn-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.vs-btn-name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n\n.vs-modified-dot {\n color: var(--mj-status-warning);\n font-weight: bold;\n font-size: 18px;\n line-height: 1;\n}\n\n.vs-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n transition: transform 0.2s ease;\n}\n\n.vs-arrow.rotated {\n transform: rotate(180deg);\n}\n\n/* ========================================\n RICH VIEW PANEL\n Styles ported directly from prototype\n ======================================== */\n\n/* Reset inherited styles inside panel */\n.vs-panel,\n.vs-panel * {\n box-sizing: border-box;\n line-height: 1.5;\n text-align: left;\n}\n\n.vs-panel {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n width: 440px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 12px;\n box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);\n z-index: 1000;\n overflow: hidden;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 13px;\n color: var(--mj-text-primary);\n}\n\n/* Panel Header */\n.vs-panel-header {\n padding: 12px 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 13px;\n}\n\n.vs-panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 999px;\n max-width: 190px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-close-btn {\n margin-left: auto;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n background: transparent;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-close-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 10px 14px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 7px 12px 7px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 7px;\n font-size: 13px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208z'/%3E%3C/svg%3E\") no-repeat 10px center;\n background-size: 13px;\n box-sizing: border-box;\n font-family: inherit;\n transition: border-color 0.15s ease;\n}\n\n.vs-search-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.vs-search-input::placeholder {\n color: var(--mj-text-muted);\n}\n\n/* Panel Body */\n.vs-panel-body {\n max-height: 380px;\n overflow-y: auto;\n padding: 6px;\n}\n\n/* View Section */\n.vs-section {\n padding: 2px 0;\n}\n\n.vs-section-header {\n padding: 8px 10px 4px;\n font-size: 10px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-section-header i {\n font-size: 10px;\n}\n\n.vs-section-count {\n margin-left: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n color: var(--mj-text-secondary);\n}\n\n/* View Card */\n.vs-card {\n padding: 9px 10px;\n border-radius: 8px;\n border: 1px solid transparent;\n cursor: pointer;\n transition: background 0.12s ease, border-color 0.12s ease;\n display: flex;\n align-items: flex-start;\n gap: 10px;\n}\n\n.vs-card:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 1px;\n}\n\n.vs-card-icon.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.vs-card-icon.shared {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted);\n}\n\n.vs-card-icon.shared.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n}\n\n.vs-card-top {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.vs-card-name-text {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card.active .vs-card-name-text {\n color: var(--mj-brand-primary);\n}\n\n/* Non-wrapping status pills \u2014 never wraps onto 2 lines */\n.vs-default-badge {\n font-size: 10px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge {\n font-size: 10px;\n font-weight: 600;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-muted);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n border-color: transparent;\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n margin-top: 5px;\n}\n\n.vs-meta-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: 10.5px;\n white-space: nowrap;\n}\n\n.vs-meta-pill i {\n font-size: 9.5px;\n color: var(--mj-brand-primary);\n}\n\n/* Right Action & Checkmark Column */\n.vs-card-right {\n display: flex;\n align-items: center;\n gap: 2px;\n flex-shrink: 0;\n align-self: center;\n}\n\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n padding: 0 6px;\n}\n\n/* View Card Actions (hover & focus-within reveal) */\n.vs-card-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 2px;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.12s ease;\n}\n\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.vs-card:hover .vs-card-check,\n.vs-card:focus-within .vs-card-check {\n display: none;\n}\n\n.vs-action-btn {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n font-size: 11px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n/* Loading */\n.vs-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 20px;\n color: var(--mj-text-muted);\n font-size: 13px;\n text-align: center;\n}\n\n/* Panel Footer */\n.vs-panel-footer {\n padding: 10px 12px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 7px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n transition: all 0.15s ease;\n font-family: inherit;\n text-align: center;\n}\n\n.vs-panel-btn:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.vs-panel-btn i {\n font-size: 11px;\n}\n\n/* ========================================\n ICON BUTTONS (outside panel)\n ======================================== */\n\n.vs-icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-secondary);\n transition: all 0.15s ease;\n}\n\n.vs-icon-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-brand-primary);\n}\n\n.vs-icon-btn i {\n font-size: 12px;\n}\n\n.vs-export-btn:hover {\n color: var(--mj-status-success);\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .vs-button {\n min-width: 100px;\n max-width: 180px;\n padding: 6px 10px;\n }\n\n .vs-panel {\n width: calc(100vw - 32px);\n max-width: 400px;\n }\n}\n"] }]
|
|
1010
1023
|
}], () => [{ type: i0.ChangeDetectorRef }], { Entity: [{
|
|
1011
1024
|
type: Input
|
|
1012
1025
|
}], SelectedViewID: [{
|
|
@@ -1015,6 +1028,8 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
1015
1028
|
type: Input
|
|
1016
1029
|
}], ViewModified: [{
|
|
1017
1030
|
type: Input
|
|
1031
|
+
}], ShowExportButton: [{
|
|
1032
|
+
type: Input
|
|
1018
1033
|
}], ViewSelected: [{
|
|
1019
1034
|
type: Output
|
|
1020
1035
|
}], AlternateBaseViewSelected: [{
|