@memberjunction/ng-entity-viewer 6.2.0-edge.4 → 6.2.0-edge.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts +48 -1
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts.map +1 -1
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js +631 -279
- package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.d.ts +2 -0
- package/dist/lib/entity-cards/entity-cards.component.d.ts.map +1 -1
- package/dist/lib/entity-cards/entity-cards.component.js +30 -2
- package/dist/lib/entity-cards/entity-cards.component.js.map +1 -1
- package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts +64 -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 +516 -187
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +2 -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 +38 -4
- 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 +39 -3
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +189 -50
- package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
- package/dist/lib/entity-viewer/view-property-chips.d.ts +17 -0
- package/dist/lib/entity-viewer/view-property-chips.d.ts.map +1 -0
- package/dist/lib/entity-viewer/view-property-chips.js +42 -0
- package/dist/lib/entity-viewer/view-property-chips.js.map +1 -0
- package/dist/lib/recycle-bin/recycle-bin-chip.component.d.ts +10 -2
- package/dist/lib/recycle-bin/recycle-bin-chip.component.d.ts.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin-chip.component.js +37 -5
- package/dist/lib/recycle-bin/recycle-bin-chip.component.js.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin.component.js +3 -3
- package/dist/lib/recycle-bin/recycle-bin.component.js.map +1 -1
- package/dist/lib/utils/record.util.d.ts +21 -1
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +108 -0
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +378 -54
- 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 +3837 -1010
- package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
- package/dist/lib/view-properties-editor/view-properties-editor.component.d.ts +52 -0
- package/dist/lib/view-properties-editor/view-properties-editor.component.d.ts.map +1 -0
- package/dist/lib/view-properties-editor/view-properties-editor.component.js +445 -0
- package/dist/lib/view-properties-editor/view-properties-editor.component.js.map +1 -0
- package/dist/lib/view-selector/view-selector.component.d.ts +22 -1
- package/dist/lib/view-selector/view-selector.component.d.ts.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +288 -149
- package/dist/lib/view-selector/view-selector.component.js.map +1 -1
- package/dist/lib/view-types/descriptors/calendar-view-type.d.ts +22 -0
- package/dist/lib/view-types/descriptors/calendar-view-type.d.ts.map +1 -0
- package/dist/lib/view-types/descriptors/calendar-view-type.js +38 -0
- package/dist/lib/view-types/descriptors/calendar-view-type.js.map +1 -0
- package/dist/lib/view-types/index.d.ts +3 -2
- package/dist/lib/view-types/index.d.ts.map +1 -1
- package/dist/lib/view-types/index.js +5 -2
- package/dist/lib/view-types/index.js.map +1 -1
- package/dist/lib/view-types/renderers/calendar-placement.d.ts +97 -0
- package/dist/lib/view-types/renderers/calendar-placement.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/calendar-placement.js +145 -0
- package/dist/lib/view-types/renderers/calendar-placement.js.map +1 -0
- package/dist/lib/view-types/renderers/calendar-view-prop-sheet.component.d.ts +36 -0
- package/dist/lib/view-types/renderers/calendar-view-prop-sheet.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/calendar-view-prop-sheet.component.js +167 -0
- package/dist/lib/view-types/renderers/calendar-view-prop-sheet.component.js.map +1 -0
- package/dist/lib/view-types/renderers/calendar-view-renderer.component.d.ts +107 -0
- package/dist/lib/view-types/renderers/calendar-view-renderer.component.d.ts.map +1 -0
- package/dist/lib/view-types/renderers/calendar-view-renderer.component.js +501 -0
- package/dist/lib/view-types/renderers/calendar-view-renderer.component.js.map +1 -0
- package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +3 -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 +12 -3
- package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts.map +1 -1
- package/dist/lib/view-types/renderers/map-view-renderer.component.js +3 -3
- package/dist/lib/view-types/renderers/map-view-renderer.component.js.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts +40 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +185 -15
- package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
- package/dist/module.d.ts +35 -31
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +21 -3
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +5 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +5 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +22 -21
|
@@ -28,16 +28,27 @@ function ViewSelectorComponent_Conditional_9_Conditional_5_Template(rf, ctx) { i
|
|
|
28
28
|
i0.ɵɵadvance();
|
|
29
29
|
i0.ɵɵtextInterpolate(ctx_r1.Entity.DisplayNameOrName);
|
|
30
30
|
} }
|
|
31
|
-
function
|
|
32
|
-
i0.ɵɵelement(0, "i",
|
|
31
|
+
function ViewSelectorComponent_Conditional_9_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelement(0, "i", 39);
|
|
33
33
|
} }
|
|
34
|
-
function
|
|
35
|
-
i0.ɵɵ
|
|
34
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
i0.ɵɵelement(0, "i", 50);
|
|
36
|
+
} }
|
|
37
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵelement(0, "i", 51);
|
|
39
|
+
} }
|
|
40
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
+
i0.ɵɵelementStart(0, "span", 33);
|
|
36
42
|
i0.ɵɵtext(1, "Default");
|
|
37
43
|
i0.ɵɵelementEnd();
|
|
38
44
|
} }
|
|
39
|
-
function
|
|
40
|
-
i0.ɵɵelementStart(0, "
|
|
45
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
i0.ɵɵelementStart(0, "span", 52);
|
|
47
|
+
i0.ɵɵtext(1, "Shared");
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
} }
|
|
50
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
41
52
|
i0.ɵɵtext(1);
|
|
42
53
|
i0.ɵɵelementEnd();
|
|
43
54
|
} if (rf & 2) {
|
|
@@ -45,9 +56,32 @@ function ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_7_
|
|
|
45
56
|
i0.ɵɵadvance();
|
|
46
57
|
i0.ɵɵtextInterpolate(view_r5.entity.Description);
|
|
47
58
|
} }
|
|
48
|
-
function
|
|
49
|
-
i0.ɵɵelementStart(0, "span");
|
|
50
|
-
i0.ɵɵelement(1, "i",
|
|
59
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
61
|
+
i0.ɵɵelement(1, "i", 60);
|
|
62
|
+
i0.ɵɵtext(2);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const view_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
66
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
67
|
+
i0.ɵɵadvance(2);
|
|
68
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewAlternateBaseViewLabel(view_r5));
|
|
69
|
+
} }
|
|
70
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
72
|
+
i0.ɵɵelement(1, "i", 61);
|
|
73
|
+
i0.ɵɵtext(2, " Smart Filter");
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
} }
|
|
76
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
78
|
+
i0.ɵɵelement(1, "i", 62);
|
|
79
|
+
i0.ɵɵtext(2, " Custom SQL");
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
} }
|
|
82
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
84
|
+
i0.ɵɵelement(1, "i", 63);
|
|
51
85
|
i0.ɵɵtext(2);
|
|
52
86
|
i0.ɵɵelementEnd();
|
|
53
87
|
} if (rf & 2) {
|
|
@@ -56,9 +90,9 @@ function ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_8_
|
|
|
56
90
|
i0.ɵɵadvance(2);
|
|
57
91
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewFilterCount(view_r5), " filter", ctx_r1.GetViewFilterCount(view_r5) !== 1 ? "s" : "");
|
|
58
92
|
} }
|
|
59
|
-
function
|
|
60
|
-
i0.ɵɵelementStart(0, "span");
|
|
61
|
-
i0.ɵɵelement(1, "i",
|
|
93
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
95
|
+
i0.ɵɵelement(1, "i", 64);
|
|
62
96
|
i0.ɵɵtext(2);
|
|
63
97
|
i0.ɵɵelementEnd();
|
|
64
98
|
} if (rf & 2) {
|
|
@@ -67,9 +101,9 @@ function ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_8_
|
|
|
67
101
|
i0.ɵɵadvance(2);
|
|
68
102
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewColumnCount(view_r5), " col", ctx_r1.GetViewColumnCount(view_r5) !== 1 ? "s" : "");
|
|
69
103
|
} }
|
|
70
|
-
function
|
|
71
|
-
i0.ɵɵelementStart(0, "span");
|
|
72
|
-
i0.ɵɵelement(1, "i",
|
|
104
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
105
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
106
|
+
i0.ɵɵelement(1, "i", 65);
|
|
73
107
|
i0.ɵɵtext(2);
|
|
74
108
|
i0.ɵɵelementEnd();
|
|
75
109
|
} if (rf & 2) {
|
|
@@ -78,80 +112,89 @@ function ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_8_
|
|
|
78
112
|
i0.ɵɵadvance(2);
|
|
79
113
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewSortInfo(view_r5));
|
|
80
114
|
} }
|
|
81
|
-
function
|
|
82
|
-
i0.ɵɵelementStart(0, "div",
|
|
83
|
-
i0.ɵɵconditionalCreate(1,
|
|
84
|
-
i0.ɵɵconditionalCreate(2,
|
|
85
|
-
i0.ɵɵconditionalCreate(
|
|
115
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
117
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template, 3, 1, "span", 59);
|
|
118
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template, 3, 0, "span", 59)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_3_Template, 3, 0, "span", 59)(4, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_4_Template, 3, 2, "span", 59);
|
|
119
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template, 3, 2, "span", 59);
|
|
120
|
+
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template, 3, 1, "span", 59);
|
|
86
121
|
i0.ɵɵelementEnd();
|
|
87
122
|
} if (rf & 2) {
|
|
88
123
|
const view_r5 = i0.ɵɵnextContext().$implicit;
|
|
89
124
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
90
125
|
i0.ɵɵadvance();
|
|
91
|
-
i0.ɵɵconditional(ctx_r1.
|
|
126
|
+
i0.ɵɵconditional(ctx_r1.GetViewAlternateBaseViewLabel(view_r5) ? 1 : -1);
|
|
92
127
|
i0.ɵɵadvance();
|
|
93
|
-
i0.ɵɵconditional(ctx_r1.
|
|
128
|
+
i0.ɵɵconditional(view_r5.entity.SmartFilterEnabled ? 2 : view_r5.entity.CustomWhereClause ? 3 : ctx_r1.GetViewFilterCount(view_r5) > 0 ? 4 : -1);
|
|
129
|
+
i0.ɵɵadvance(3);
|
|
130
|
+
i0.ɵɵconditional(ctx_r1.GetViewColumnCount(view_r5) > 0 ? 5 : -1);
|
|
94
131
|
i0.ɵɵadvance();
|
|
95
|
-
i0.ɵɵconditional(ctx_r1.GetViewSortInfo(view_r5) ?
|
|
132
|
+
i0.ɵɵconditional(ctx_r1.GetViewSortInfo(view_r5) ? 6 : -1);
|
|
96
133
|
} }
|
|
97
|
-
function
|
|
98
|
-
i0.ɵɵelement(0, "i",
|
|
134
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
i0.ɵɵelement(0, "i", 39);
|
|
99
136
|
} }
|
|
100
|
-
function
|
|
137
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
101
138
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
102
139
|
i0.ɵɵelementStart(0, "div", 27);
|
|
103
|
-
i0.ɵɵlistener("click", function
|
|
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)); });
|
|
104
141
|
i0.ɵɵelementStart(1, "div", 28);
|
|
105
|
-
i0.ɵɵ
|
|
142
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template, 1, 0, "i", 50)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template, 1, 0, "i", 51);
|
|
106
143
|
i0.ɵɵelementEnd();
|
|
107
|
-
i0.ɵɵelementStart(
|
|
108
|
-
i0.ɵɵtext(
|
|
109
|
-
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_6_Template, 2, 0, "span", 45);
|
|
144
|
+
i0.ɵɵelementStart(4, "div", 30)(5, "div", 31)(6, "span", 32);
|
|
145
|
+
i0.ɵɵtext(7);
|
|
110
146
|
i0.ɵɵelementEnd();
|
|
111
|
-
i0.ɵɵconditionalCreate(
|
|
112
|
-
i0.ɵɵconditionalCreate(
|
|
147
|
+
i0.ɵɵconditionalCreate(8, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template, 2, 0, "span", 33);
|
|
148
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template, 2, 0, "span", 52);
|
|
113
149
|
i0.ɵɵelementEnd();
|
|
114
|
-
i0.ɵɵ
|
|
115
|
-
i0.ɵɵ
|
|
116
|
-
i0.ɵɵelement(11, "i", 50);
|
|
150
|
+
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_10_Template, 2, 1, "div", 34);
|
|
151
|
+
i0.ɵɵconditionalCreate(11, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template, 7, 4, "div", 53);
|
|
117
152
|
i0.ɵɵelementEnd();
|
|
118
|
-
i0.ɵɵelementStart(12, "button",
|
|
119
|
-
i0.ɵɵlistener("click", function
|
|
120
|
-
i0.ɵɵelement(
|
|
153
|
+
i0.ɵɵelementStart(12, "div", 35)(13, "div", 36)(14, "button", 54);
|
|
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", 38);
|
|
121
156
|
i0.ɵɵelementEnd();
|
|
122
|
-
i0.ɵɵelementStart(
|
|
123
|
-
i0.ɵɵlistener("click", function
|
|
124
|
-
i0.ɵɵelement(
|
|
125
|
-
i0.ɵɵelementEnd()();
|
|
126
|
-
i0.ɵɵconditionalCreate(16, ViewSelectorComponent_Conditional_9_Conditional_19_For_8_Conditional_16_Template, 1, 0, "i", 32);
|
|
157
|
+
i0.ɵɵelementStart(16, "button", 55);
|
|
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", 56);
|
|
127
160
|
i0.ɵɵelementEnd();
|
|
161
|
+
i0.ɵɵelementStart(18, "button", 57);
|
|
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", 58);
|
|
164
|
+
i0.ɵɵelementEnd()();
|
|
165
|
+
i0.ɵɵconditionalCreate(20, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template, 1, 0, "i", 39);
|
|
166
|
+
i0.ɵɵelementEnd()();
|
|
128
167
|
} if (rf & 2) {
|
|
129
168
|
const view_r5 = ctx.$implicit;
|
|
130
169
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
131
170
|
i0.ɵɵclassProp("active", ctx_r1.SelectedViewID === view_r5.id);
|
|
132
171
|
i0.ɵɵadvance();
|
|
133
172
|
i0.ɵɵclassProp("active", ctx_r1.SelectedViewID === view_r5.id);
|
|
134
|
-
i0.ɵɵadvance(4);
|
|
135
|
-
i0.ɵɵtextInterpolate1(" ", view_r5.name, " ");
|
|
136
173
|
i0.ɵɵadvance();
|
|
137
|
-
i0.ɵɵconditional(view_r5.isDefault ?
|
|
174
|
+
i0.ɵɵconditional(view_r5.isDefault ? 2 : 3);
|
|
175
|
+
i0.ɵɵadvance(5);
|
|
176
|
+
i0.ɵɵtextInterpolate(view_r5.name);
|
|
177
|
+
i0.ɵɵadvance();
|
|
178
|
+
i0.ɵɵconditional(view_r5.isDefault ? 8 : -1);
|
|
179
|
+
i0.ɵɵadvance();
|
|
180
|
+
i0.ɵɵconditional(view_r5.isShared ? 9 : -1);
|
|
138
181
|
i0.ɵɵadvance();
|
|
139
|
-
i0.ɵɵconditional(view_r5.entity.Description ?
|
|
182
|
+
i0.ɵɵconditional(view_r5.entity.Description ? 10 : -1);
|
|
140
183
|
i0.ɵɵadvance();
|
|
141
|
-
i0.ɵɵconditional(ctx_r1.GetViewFilterCount(view_r5) > 0 || ctx_r1.GetViewColumnCount(view_r5) > 0 || ctx_r1.GetViewSortInfo(view_r5) ?
|
|
142
|
-
i0.ɵɵadvance(
|
|
143
|
-
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r5.id ?
|
|
184
|
+
i0.ɵɵconditional(ctx_r1.GetViewFilterCount(view_r5) > 0 || ctx_r1.GetViewColumnCount(view_r5) > 0 || ctx_r1.GetViewSortInfo(view_r5) || ctx_r1.GetViewAlternateBaseViewLabel(view_r5) || view_r5.entity.SmartFilterEnabled || view_r5.entity.CustomWhereClause ? 11 : -1);
|
|
185
|
+
i0.ɵɵadvance(9);
|
|
186
|
+
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r5.id ? 20 : -1);
|
|
144
187
|
} }
|
|
145
|
-
function
|
|
146
|
-
i0.ɵɵelementStart(0, "div", 26)(1, "div",
|
|
147
|
-
i0.ɵɵelement(2, "i",
|
|
188
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "div", 46);
|
|
190
|
+
i0.ɵɵelement(2, "i", 47);
|
|
148
191
|
i0.ɵɵelementStart(3, "span");
|
|
149
192
|
i0.ɵɵtext(4, "My Views");
|
|
150
193
|
i0.ɵɵelementEnd();
|
|
151
|
-
i0.ɵɵelementStart(5, "span",
|
|
194
|
+
i0.ɵɵelementStart(5, "span", 48);
|
|
152
195
|
i0.ɵɵtext(6);
|
|
153
196
|
i0.ɵɵelementEnd()();
|
|
154
|
-
i0.ɵɵrepeaterCreate(7,
|
|
197
|
+
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template, 21, 11, "div", 49, _forTrack0);
|
|
155
198
|
i0.ɵɵelementEnd();
|
|
156
199
|
} if (rf & 2) {
|
|
157
200
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -160,18 +203,18 @@ function ViewSelectorComponent_Conditional_9_Conditional_19_Template(rf, ctx) {
|
|
|
160
203
|
i0.ɵɵadvance();
|
|
161
204
|
i0.ɵɵrepeater(ctx_r1.FilteredMyViews);
|
|
162
205
|
} }
|
|
163
|
-
function
|
|
164
|
-
i0.ɵɵelementStart(0, "span",
|
|
206
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
207
|
+
i0.ɵɵelementStart(0, "span", 52);
|
|
165
208
|
i0.ɵɵtext(1, "View Only");
|
|
166
209
|
i0.ɵɵelementEnd();
|
|
167
210
|
} }
|
|
168
|
-
function
|
|
169
|
-
i0.ɵɵelementStart(0, "span",
|
|
211
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
212
|
+
i0.ɵɵelementStart(0, "span", 69);
|
|
170
213
|
i0.ɵɵtext(1, "Can Edit");
|
|
171
214
|
i0.ɵɵelementEnd();
|
|
172
215
|
} }
|
|
173
|
-
function
|
|
174
|
-
i0.ɵɵelementStart(0, "div",
|
|
216
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
217
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
175
218
|
i0.ɵɵtext(1);
|
|
176
219
|
i0.ɵɵelementEnd();
|
|
177
220
|
} if (rf & 2) {
|
|
@@ -179,9 +222,32 @@ function ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_8_
|
|
|
179
222
|
i0.ɵɵadvance();
|
|
180
223
|
i0.ɵɵtextInterpolate(view_r7.entity.Description);
|
|
181
224
|
} }
|
|
182
|
-
function
|
|
183
|
-
i0.ɵɵelementStart(0, "span");
|
|
184
|
-
i0.ɵɵelement(1, "i",
|
|
225
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
226
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
227
|
+
i0.ɵɵelement(1, "i", 60);
|
|
228
|
+
i0.ɵɵtext(2);
|
|
229
|
+
i0.ɵɵelementEnd();
|
|
230
|
+
} if (rf & 2) {
|
|
231
|
+
const view_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
232
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
233
|
+
i0.ɵɵadvance(2);
|
|
234
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.GetViewAlternateBaseViewLabel(view_r7));
|
|
235
|
+
} }
|
|
236
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
237
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
238
|
+
i0.ɵɵelement(1, "i", 61);
|
|
239
|
+
i0.ɵɵtext(2, " Smart Filter");
|
|
240
|
+
i0.ɵɵelementEnd();
|
|
241
|
+
} }
|
|
242
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
243
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
244
|
+
i0.ɵɵelement(1, "i", 62);
|
|
245
|
+
i0.ɵɵtext(2, " Custom SQL");
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
} }
|
|
248
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
249
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
250
|
+
i0.ɵɵelement(1, "i", 63);
|
|
185
251
|
i0.ɵɵtext(2);
|
|
186
252
|
i0.ɵɵelementEnd();
|
|
187
253
|
} if (rf & 2) {
|
|
@@ -190,9 +256,9 @@ function ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_9_
|
|
|
190
256
|
i0.ɵɵadvance(2);
|
|
191
257
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewFilterCount(view_r7), " filter", ctx_r1.GetViewFilterCount(view_r7) !== 1 ? "s" : "");
|
|
192
258
|
} }
|
|
193
|
-
function
|
|
194
|
-
i0.ɵɵelementStart(0, "span");
|
|
195
|
-
i0.ɵɵelement(1, "i",
|
|
259
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
260
|
+
i0.ɵɵelementStart(0, "span", 59);
|
|
261
|
+
i0.ɵɵelement(1, "i", 64);
|
|
196
262
|
i0.ɵɵtext(2);
|
|
197
263
|
i0.ɵɵelementEnd();
|
|
198
264
|
} if (rf & 2) {
|
|
@@ -201,78 +267,88 @@ function ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_9_
|
|
|
201
267
|
i0.ɵɵadvance(2);
|
|
202
268
|
i0.ɵɵtextInterpolate2(" ", ctx_r1.GetViewColumnCount(view_r7), " col", ctx_r1.GetViewColumnCount(view_r7) !== 1 ? "s" : "");
|
|
203
269
|
} }
|
|
204
|
-
function
|
|
205
|
-
i0.ɵɵelementStart(0, "div",
|
|
206
|
-
i0.ɵɵconditionalCreate(1,
|
|
207
|
-
i0.ɵɵconditionalCreate(2,
|
|
270
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
271
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
272
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template, 3, 1, "span", 59);
|
|
273
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template, 3, 0, "span", 59)(3, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_3_Template, 3, 0, "span", 59)(4, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_4_Template, 3, 2, "span", 59);
|
|
274
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template, 3, 2, "span", 59);
|
|
208
275
|
i0.ɵɵelementEnd();
|
|
209
276
|
} if (rf & 2) {
|
|
210
277
|
const view_r7 = i0.ɵɵnextContext().$implicit;
|
|
211
278
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
212
279
|
i0.ɵɵadvance();
|
|
213
|
-
i0.ɵɵconditional(ctx_r1.
|
|
280
|
+
i0.ɵɵconditional(ctx_r1.GetViewAlternateBaseViewLabel(view_r7) ? 1 : -1);
|
|
214
281
|
i0.ɵɵadvance();
|
|
215
|
-
i0.ɵɵconditional(ctx_r1.
|
|
282
|
+
i0.ɵɵconditional(view_r7.entity.SmartFilterEnabled ? 2 : view_r7.entity.CustomWhereClause ? 3 : ctx_r1.GetViewFilterCount(view_r7) > 0 ? 4 : -1);
|
|
283
|
+
i0.ɵɵadvance(3);
|
|
284
|
+
i0.ɵɵconditional(ctx_r1.GetViewColumnCount(view_r7) > 0 ? 5 : -1);
|
|
216
285
|
} }
|
|
217
|
-
function
|
|
286
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
218
287
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
219
|
-
i0.ɵɵelementStart(0, "button",
|
|
220
|
-
i0.ɵɵlistener("click", function
|
|
221
|
-
i0.ɵɵelement(1, "i",
|
|
288
|
+
i0.ɵɵelementStart(0, "button", 54);
|
|
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", 38);
|
|
222
291
|
i0.ɵɵelementEnd();
|
|
223
292
|
} }
|
|
224
|
-
function
|
|
225
|
-
i0.ɵɵelement(0, "i",
|
|
293
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
294
|
+
i0.ɵɵelement(0, "i", 39);
|
|
226
295
|
} }
|
|
227
|
-
function
|
|
296
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
228
297
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
229
298
|
i0.ɵɵelementStart(0, "div", 27);
|
|
230
|
-
i0.ɵɵlistener("click", function
|
|
231
|
-
i0.ɵɵelementStart(1, "div",
|
|
232
|
-
i0.ɵɵelement(2, "i",
|
|
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", 67);
|
|
301
|
+
i0.ɵɵelement(2, "i", 68);
|
|
233
302
|
i0.ɵɵelementEnd();
|
|
234
|
-
i0.ɵɵelementStart(3, "div", 30)(4, "div", 31);
|
|
235
|
-
i0.ɵɵtext(
|
|
236
|
-
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_6_Template, 2, 0, "span", 61)(7, ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_7_Template, 2, 0, "span", 62);
|
|
237
|
-
i0.ɵɵelementEnd();
|
|
238
|
-
i0.ɵɵconditionalCreate(8, ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_8_Template, 2, 1, "div", 46);
|
|
239
|
-
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Conditional_9_Template, 3, 2, "div", 47);
|
|
303
|
+
i0.ɵɵelementStart(3, "div", 30)(4, "div", 31)(5, "span", 32);
|
|
304
|
+
i0.ɵɵtext(6);
|
|
240
305
|
i0.ɵɵelementEnd();
|
|
241
|
-
i0.ɵɵ
|
|
242
|
-
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_20_For_8_Template_button_click_11_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)); });
|
|
243
|
-
i0.ɵɵelement(12, "i", 50);
|
|
306
|
+
i0.ɵɵconditionalCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_7_Template, 2, 0, "span", 52)(8, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_8_Template, 2, 0, "span", 69);
|
|
244
307
|
i0.ɵɵelementEnd();
|
|
245
|
-
i0.ɵɵconditionalCreate(
|
|
308
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template, 2, 1, "div", 34);
|
|
309
|
+
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template, 6, 3, "div", 53);
|
|
246
310
|
i0.ɵɵelementEnd();
|
|
247
|
-
i0.ɵɵ
|
|
311
|
+
i0.ɵɵelementStart(11, "div", 35)(12, "div", 36);
|
|
312
|
+
i0.ɵɵconditionalCreate(13, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template, 2, 0, "button", 70);
|
|
313
|
+
i0.ɵɵelementStart(14, "button", 71);
|
|
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", 56);
|
|
248
316
|
i0.ɵɵelementEnd();
|
|
317
|
+
i0.ɵɵelementStart(16, "button", 57);
|
|
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", 58);
|
|
320
|
+
i0.ɵɵelementEnd()();
|
|
321
|
+
i0.ɵɵconditionalCreate(18, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template, 1, 0, "i", 39);
|
|
322
|
+
i0.ɵɵelementEnd()();
|
|
249
323
|
} if (rf & 2) {
|
|
250
324
|
const view_r7 = ctx.$implicit;
|
|
251
325
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
252
326
|
i0.ɵɵclassProp("active", ctx_r1.SelectedViewID === view_r7.id);
|
|
327
|
+
i0.ɵɵadvance();
|
|
328
|
+
i0.ɵɵclassProp("active", ctx_r1.SelectedViewID === view_r7.id);
|
|
253
329
|
i0.ɵɵadvance(5);
|
|
254
|
-
i0.ɵɵ
|
|
330
|
+
i0.ɵɵtextInterpolate(view_r7.name);
|
|
255
331
|
i0.ɵɵadvance();
|
|
256
|
-
i0.ɵɵconditional(!view_r7.userCanEdit ?
|
|
332
|
+
i0.ɵɵconditional(!view_r7.userCanEdit ? 7 : 8);
|
|
257
333
|
i0.ɵɵadvance(2);
|
|
258
|
-
i0.ɵɵconditional(view_r7.entity.Description ?
|
|
334
|
+
i0.ɵɵconditional(view_r7.entity.Description ? 9 : -1);
|
|
259
335
|
i0.ɵɵadvance();
|
|
260
|
-
i0.ɵɵconditional(ctx_r1.GetViewFilterCount(view_r7) > 0 || ctx_r1.GetViewColumnCount(view_r7) > 0 ?
|
|
261
|
-
i0.ɵɵadvance(
|
|
336
|
+
i0.ɵɵconditional(ctx_r1.GetViewFilterCount(view_r7) > 0 || ctx_r1.GetViewColumnCount(view_r7) > 0 || ctx_r1.GetViewAlternateBaseViewLabel(view_r7) || view_r7.entity.SmartFilterEnabled || view_r7.entity.CustomWhereClause ? 10 : -1);
|
|
337
|
+
i0.ɵɵadvance(3);
|
|
262
338
|
i0.ɵɵconditional(view_r7.userCanEdit ? 13 : -1);
|
|
263
|
-
i0.ɵɵadvance();
|
|
264
|
-
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r7.id ?
|
|
339
|
+
i0.ɵɵadvance(5);
|
|
340
|
+
i0.ɵɵconditional(ctx_r1.SelectedViewID === view_r7.id ? 18 : -1);
|
|
265
341
|
} }
|
|
266
|
-
function
|
|
267
|
-
i0.ɵɵelementStart(0, "div", 26)(1, "div",
|
|
268
|
-
i0.ɵɵelement(2, "i",
|
|
342
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
343
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "div", 46);
|
|
344
|
+
i0.ɵɵelement(2, "i", 66);
|
|
269
345
|
i0.ɵɵelementStart(3, "span");
|
|
270
346
|
i0.ɵɵtext(4, "Shared With Me");
|
|
271
347
|
i0.ɵɵelementEnd();
|
|
272
|
-
i0.ɵɵelementStart(5, "span",
|
|
348
|
+
i0.ɵɵelementStart(5, "span", 48);
|
|
273
349
|
i0.ɵɵtext(6);
|
|
274
350
|
i0.ɵɵelementEnd()();
|
|
275
|
-
i0.ɵɵrepeaterCreate(7,
|
|
351
|
+
i0.ɵɵrepeaterCreate(7, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Template, 19, 10, "div", 49, _forTrack0);
|
|
276
352
|
i0.ɵɵelementEnd();
|
|
277
353
|
} if (rf & 2) {
|
|
278
354
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -281,18 +357,18 @@ function ViewSelectorComponent_Conditional_9_Conditional_20_Template(rf, ctx) {
|
|
|
281
357
|
i0.ɵɵadvance();
|
|
282
358
|
i0.ɵɵrepeater(ctx_r1.FilteredSharedViews);
|
|
283
359
|
} }
|
|
284
|
-
function
|
|
285
|
-
i0.ɵɵelement(0, "mj-empty-state",
|
|
360
|
+
function ViewSelectorComponent_Conditional_9_Conditional_30_Template(rf, ctx) { if (rf & 1) {
|
|
361
|
+
i0.ɵɵelement(0, "mj-empty-state", 40);
|
|
286
362
|
} }
|
|
287
|
-
function
|
|
288
|
-
i0.ɵɵelement(0, "mj-empty-state",
|
|
363
|
+
function ViewSelectorComponent_Conditional_9_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
364
|
+
i0.ɵɵelement(0, "mj-empty-state", 41);
|
|
289
365
|
} if (rf & 2) {
|
|
290
366
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
291
367
|
i0.ɵɵproperty("Title", ctx_r1.NoViewsMatchMessage);
|
|
292
368
|
} }
|
|
293
|
-
function
|
|
294
|
-
i0.ɵɵelementStart(0, "div",
|
|
295
|
-
i0.ɵɵelement(1, "i",
|
|
369
|
+
function ViewSelectorComponent_Conditional_9_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
370
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
371
|
+
i0.ɵɵelement(1, "i", 72);
|
|
296
372
|
i0.ɵɵelementStart(2, "span");
|
|
297
373
|
i0.ɵɵtext(3, "Loading views...");
|
|
298
374
|
i0.ɵɵelementEnd()();
|
|
@@ -302,7 +378,7 @@ function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
302
378
|
i0.ɵɵelementStart(0, "div", 8)(1, "div", 17);
|
|
303
379
|
i0.ɵɵelement(2, "i", 18);
|
|
304
380
|
i0.ɵɵelementStart(3, "span", 19);
|
|
305
|
-
i0.ɵɵtext(4, "Views");
|
|
381
|
+
i0.ɵɵtext(4, "Saved Views");
|
|
306
382
|
i0.ɵɵelementEnd();
|
|
307
383
|
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_5_Template, 2, 1, "span", 20);
|
|
308
384
|
i0.ɵɵelementStart(6, "button", 21);
|
|
@@ -318,28 +394,38 @@ function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
318
394
|
i0.ɵɵelementStart(13, "div", 28);
|
|
319
395
|
i0.ɵɵelement(14, "i", 29);
|
|
320
396
|
i0.ɵɵelementEnd();
|
|
321
|
-
i0.ɵɵelementStart(15, "div", 30)(16, "div", 31);
|
|
322
|
-
i0.ɵɵtext(
|
|
397
|
+
i0.ɵɵelementStart(15, "div", 30)(16, "div", 31)(17, "span", 32);
|
|
398
|
+
i0.ɵɵtext(18, "(Default)");
|
|
399
|
+
i0.ɵɵelementEnd();
|
|
400
|
+
i0.ɵɵelementStart(19, "span", 33);
|
|
401
|
+
i0.ɵɵtext(20, "Personal Layout");
|
|
323
402
|
i0.ɵɵelementEnd()();
|
|
324
|
-
i0.ɵɵ
|
|
403
|
+
i0.ɵɵelementStart(21, "div", 34);
|
|
404
|
+
i0.ɵɵtext(22, "All records with your personal default columns & sort order");
|
|
325
405
|
i0.ɵɵelementEnd()();
|
|
326
|
-
i0.ɵɵ
|
|
327
|
-
i0.ɵɵ
|
|
328
|
-
i0.ɵɵ
|
|
329
|
-
i0.ɵɵconditionalCreate(22, ViewSelectorComponent_Conditional_9_Conditional_22_Template, 1, 1, "mj-empty-state", 34);
|
|
330
|
-
i0.ɵɵconditionalCreate(23, ViewSelectorComponent_Conditional_9_Conditional_23_Template, 4, 0, "div", 35);
|
|
331
|
-
i0.ɵɵelementEnd();
|
|
332
|
-
i0.ɵɵelementStart(24, "div", 36)(25, "button", 37);
|
|
333
|
-
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_25_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnQuickSave()); });
|
|
334
|
-
i0.ɵɵelement(26, "i", 13);
|
|
335
|
-
i0.ɵɵelementStart(27, "span");
|
|
336
|
-
i0.ɵɵtext(28, "New View");
|
|
406
|
+
i0.ɵɵelementStart(23, "div", 35)(24, "div", 36)(25, "button", 37);
|
|
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", 38);
|
|
337
409
|
i0.ɵɵelementEnd()();
|
|
338
|
-
i0.ɵɵ
|
|
339
|
-
i0.ɵɵ
|
|
340
|
-
i0.ɵɵ
|
|
341
|
-
i0.ɵɵ
|
|
342
|
-
i0.ɵɵ
|
|
410
|
+
i0.ɵɵconditionalCreate(27, ViewSelectorComponent_Conditional_9_Conditional_27_Template, 1, 0, "i", 39);
|
|
411
|
+
i0.ɵɵelementEnd()()();
|
|
412
|
+
i0.ɵɵconditionalCreate(28, ViewSelectorComponent_Conditional_9_Conditional_28_Template, 9, 1, "div", 26);
|
|
413
|
+
i0.ɵɵconditionalCreate(29, ViewSelectorComponent_Conditional_9_Conditional_29_Template, 9, 1, "div", 26);
|
|
414
|
+
i0.ɵɵconditionalCreate(30, ViewSelectorComponent_Conditional_9_Conditional_30_Template, 1, 0, "mj-empty-state", 40);
|
|
415
|
+
i0.ɵɵconditionalCreate(31, ViewSelectorComponent_Conditional_9_Conditional_31_Template, 1, 1, "mj-empty-state", 41);
|
|
416
|
+
i0.ɵɵconditionalCreate(32, ViewSelectorComponent_Conditional_9_Conditional_32_Template, 4, 0, "div", 42);
|
|
417
|
+
i0.ɵɵelementEnd();
|
|
418
|
+
i0.ɵɵelementStart(33, "div", 43)(34, "button", 44);
|
|
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
|
+
i0.ɵɵelement(35, "i", 13);
|
|
421
|
+
i0.ɵɵelementStart(36, "span");
|
|
422
|
+
i0.ɵɵtext(37, "New Saved View");
|
|
423
|
+
i0.ɵɵelementEnd()();
|
|
424
|
+
i0.ɵɵelementStart(38, "button", 45);
|
|
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", 38);
|
|
427
|
+
i0.ɵɵelementStart(40, "span");
|
|
428
|
+
i0.ɵɵtext(41, "Default Layout");
|
|
343
429
|
i0.ɵɵelementEnd()()()();
|
|
344
430
|
} if (rf & 2) {
|
|
345
431
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -348,27 +434,27 @@ function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
348
434
|
i0.ɵɵadvance(4);
|
|
349
435
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SearchText);
|
|
350
436
|
i0.ɵɵadvance(3);
|
|
351
|
-
i0.ɵɵclassProp("active", !ctx_r1.SelectedViewID);
|
|
437
|
+
i0.ɵɵclassProp("active", !ctx_r1.SelectedViewID && !ctx_r1.SelectedAlternateBaseView);
|
|
352
438
|
i0.ɵɵadvance();
|
|
353
|
-
i0.ɵɵclassProp("active", !ctx_r1.SelectedViewID);
|
|
354
|
-
i0.ɵɵadvance(
|
|
355
|
-
i0.ɵɵconditional(!ctx_r1.SelectedViewID ?
|
|
439
|
+
i0.ɵɵclassProp("active", !ctx_r1.SelectedViewID && !ctx_r1.SelectedAlternateBaseView);
|
|
440
|
+
i0.ɵɵadvance(14);
|
|
441
|
+
i0.ɵɵconditional(!ctx_r1.SelectedViewID && !ctx_r1.SelectedAlternateBaseView ? 27 : -1);
|
|
356
442
|
i0.ɵɵadvance();
|
|
357
|
-
i0.ɵɵconditional(ctx_r1.FilteredMyViews.length > 0 ?
|
|
443
|
+
i0.ɵɵconditional(ctx_r1.FilteredMyViews.length > 0 ? 28 : -1);
|
|
358
444
|
i0.ɵɵadvance();
|
|
359
|
-
i0.ɵɵconditional(ctx_r1.FilteredSharedViews.length > 0 ?
|
|
445
|
+
i0.ɵɵconditional(ctx_r1.FilteredSharedViews.length > 0 ? 29 : -1);
|
|
360
446
|
i0.ɵɵadvance();
|
|
361
|
-
i0.ɵɵconditional(!ctx_r1.HasViews && !ctx_r1.IsLoading ?
|
|
447
|
+
i0.ɵɵconditional(!ctx_r1.HasViews && !ctx_r1.IsLoading ? 30 : -1);
|
|
362
448
|
i0.ɵɵadvance();
|
|
363
|
-
i0.ɵɵconditional(ctx_r1.HasViews && ctx_r1.FilteredMyViews.length === 0 && ctx_r1.FilteredSharedViews.length === 0 && ctx_r1.SearchText ?
|
|
449
|
+
i0.ɵɵconditional(ctx_r1.HasViews && ctx_r1.FilteredMyViews.length === 0 && ctx_r1.FilteredSharedViews.length === 0 && ctx_r1.SearchText ? 31 : -1);
|
|
364
450
|
i0.ɵɵadvance();
|
|
365
|
-
i0.ɵɵconditional(ctx_r1.IsLoading ?
|
|
451
|
+
i0.ɵɵconditional(ctx_r1.IsLoading ? 32 : -1);
|
|
366
452
|
} }
|
|
367
453
|
function ViewSelectorComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
368
454
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
369
|
-
i0.ɵɵelementStart(0, "button",
|
|
455
|
+
i0.ɵɵelementStart(0, "button", 73);
|
|
370
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()); });
|
|
371
|
-
i0.ɵɵelement(1, "i",
|
|
457
|
+
i0.ɵɵelement(1, "i", 74);
|
|
372
458
|
i0.ɵɵelementEnd();
|
|
373
459
|
} }
|
|
374
460
|
/**
|
|
@@ -390,6 +476,10 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
390
476
|
* Currently selected view ID (null = default view)
|
|
391
477
|
*/
|
|
392
478
|
SelectedViewID = null;
|
|
479
|
+
/**
|
|
480
|
+
* Currently active Alternate Base View name when on the default view (null = standard BaseView)
|
|
481
|
+
*/
|
|
482
|
+
SelectedAlternateBaseView = null;
|
|
393
483
|
/**
|
|
394
484
|
* Whether the current view has unsaved modifications
|
|
395
485
|
*/
|
|
@@ -398,6 +488,10 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
398
488
|
* Emitted when a view is selected
|
|
399
489
|
*/
|
|
400
490
|
ViewSelected = new EventEmitter();
|
|
491
|
+
/**
|
|
492
|
+
* Emitted when an Alternate Base View is selected from the dropdown (or cleared back to Default)
|
|
493
|
+
*/
|
|
494
|
+
AlternateBaseViewSelected = new EventEmitter();
|
|
401
495
|
/**
|
|
402
496
|
* Emitted when user requests to save the current view
|
|
403
497
|
*/
|
|
@@ -591,6 +685,10 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
591
685
|
if (this.SelectedView) {
|
|
592
686
|
return this.SelectedView.Name;
|
|
593
687
|
}
|
|
688
|
+
if (this.SelectedAlternateBaseView && this.Entity) {
|
|
689
|
+
const abv = this.Entity.GetAlternateBaseView(this.SelectedAlternateBaseView);
|
|
690
|
+
return abv?.EffectiveDisplayName ?? this.SelectedAlternateBaseView;
|
|
691
|
+
}
|
|
594
692
|
return '(Default)';
|
|
595
693
|
}
|
|
596
694
|
/**
|
|
@@ -613,6 +711,9 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
613
711
|
*/
|
|
614
712
|
SelectDefault() {
|
|
615
713
|
this.SelectedView = null;
|
|
714
|
+
if (this.SelectedAlternateBaseView) {
|
|
715
|
+
this.AlternateBaseViewSelected.emit(null);
|
|
716
|
+
}
|
|
616
717
|
this.ViewSelected.emit({ ViewID: null, View: null });
|
|
617
718
|
this.CloseDropdown();
|
|
618
719
|
}
|
|
@@ -638,6 +739,14 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
638
739
|
this.QuickSaveRequested.emit(true);
|
|
639
740
|
this.CloseDropdown();
|
|
640
741
|
}
|
|
742
|
+
/**
|
|
743
|
+
* Create a brand-new view directly in the Unified View Studio slide-over panel
|
|
744
|
+
* without an intermediate modal dialog.
|
|
745
|
+
*/
|
|
746
|
+
OnCreateNewView() {
|
|
747
|
+
this.SaveViewRequested.emit({ SaveAsNew: true });
|
|
748
|
+
this.CloseDropdown();
|
|
749
|
+
}
|
|
641
750
|
/**
|
|
642
751
|
* Request to manage views
|
|
643
752
|
*/
|
|
@@ -795,6 +904,17 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
795
904
|
return '';
|
|
796
905
|
}
|
|
797
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* Get display label for the alternate base view configured on a view, if any.
|
|
909
|
+
*/
|
|
910
|
+
GetViewAlternateBaseViewLabel(view) {
|
|
911
|
+
const abvName = view.entity.AlternateBaseView;
|
|
912
|
+
if (!abvName) {
|
|
913
|
+
return '';
|
|
914
|
+
}
|
|
915
|
+
const abvInfo = this.Entity?.GetAlternateBaseView(abvName);
|
|
916
|
+
return abvInfo?.EffectiveDisplayName ?? abvName;
|
|
917
|
+
}
|
|
798
918
|
/**
|
|
799
919
|
* Select a specific view and open the config panel for it
|
|
800
920
|
*/
|
|
@@ -823,8 +943,23 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
823
943
|
OnResetToDefault() {
|
|
824
944
|
this.SelectDefault();
|
|
825
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* Switch to the (Default) view if needed and open the View Studio in Personal Default Layout mode.
|
|
948
|
+
*/
|
|
949
|
+
OnConfigureDefaultLayout(event) {
|
|
950
|
+
event?.stopPropagation();
|
|
951
|
+
if (this.SelectedViewID || this.SelectedAlternateBaseView) {
|
|
952
|
+
this.SelectedView = null;
|
|
953
|
+
if (this.SelectedAlternateBaseView) {
|
|
954
|
+
this.AlternateBaseViewSelected.emit(null);
|
|
955
|
+
}
|
|
956
|
+
this.ViewSelected.emit({ ViewID: null, View: null });
|
|
957
|
+
}
|
|
958
|
+
this.ConfigureViewRequested.emit();
|
|
959
|
+
this.CloseDropdown();
|
|
960
|
+
}
|
|
826
961
|
static ɵfac = function ViewSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ViewSelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
827
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewSelectorComponent, selectors: [["mj-view-selector"]], inputs: { Entity: "Entity", SelectedViewID: "SelectedViewID", ViewModified: "ViewModified" }, outputs: { ViewSelected: "ViewSelected", 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: 17, vars: 12, 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", 3, "click"], [1, "fa-solid", "fa-file-excel"], [1, "vs-backdrop", 3, "click"], [1, "vs-panel-header"], [1, "fa-solid", "fa-
|
|
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: 17, vars: 12, 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", 3, "click"], [1, "fa-solid", "fa-file-excel"], [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"]], template: function ViewSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
828
963
|
i0.ɵɵelementStart(0, "div", 0);
|
|
829
964
|
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_1_Template, 1, 0, "div", 1);
|
|
830
965
|
i0.ɵɵelementStart(2, "div", 2)(3, "button", 3);
|
|
@@ -836,7 +971,7 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
836
971
|
i0.ɵɵconditionalCreate(7, ViewSelectorComponent_Conditional_7_Template, 2, 0, "span", 6);
|
|
837
972
|
i0.ɵɵelement(8, "i", 7);
|
|
838
973
|
i0.ɵɵelementEnd();
|
|
839
|
-
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Template,
|
|
974
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Template, 42, 12, "div", 8);
|
|
840
975
|
i0.ɵɵelementEnd();
|
|
841
976
|
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_10_Template, 2, 0, "button", 9);
|
|
842
977
|
i0.ɵɵelementStart(11, "button", 10);
|
|
@@ -867,19 +1002,23 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
867
1002
|
i0.ɵɵconditional(ctx.IsDropdownOpen ? 9 : -1);
|
|
868
1003
|
i0.ɵɵadvance();
|
|
869
1004
|
i0.ɵɵconditional(ctx.SelectedViewID ? 10 : -1);
|
|
870
|
-
} }, 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% + 4px);\n left: 0;\n width: 400px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);\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: 16px 20px;\n display: flex;\n align-items: center;\n gap: 12px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.vs-panel-title {\n font-size: 15px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 500;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 10px;\n}\n\n.vs-close-btn {\n margin-left: auto;\n background: none;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 16px;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.vs-close-btn:hover {\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 12px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 6px 12px 6px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n font-size: 13px;\n background: var(--mj-bg-surface-card) 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: 14px;\n box-sizing: border-box;\n font-family: inherit;\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: 400px;\n overflow-y: auto;\n}\n\n/* View Section */\n.vs-section {\n padding: 8px 0;\n}\n\n.vs-section-header {\n padding: 6px 20px;\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\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 background: var(--mj-border-default);\n padding: 0 6px;\n border-radius: 8px;\n font-size: 10px;\n}\n\n/* View Card */\n.vs-card {\n padding: 10px 20px;\n cursor: pointer;\n transition: background 0.1s;\n display: flex;\n align-items: flex-start;\n gap: 12px;\n}\n\n.vs-card:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n border-left: 3px solid var(--mj-brand-primary);\n padding-left: 17px;\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 32px;\n height: 32px;\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: 14px;\n flex-shrink: 0;\n margin-top: 2px;\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/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n padding-top: 4px;\n}\n\n.vs-card-name {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-card.active .vs-card-name {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n.vs-default-badge {\n font-size: 9px;\n font-weight: 600;\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n padding: 1px 5px;\n border-radius: 6px;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n}\n\n.vs-shared-badge {\n font-size: 9px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 5px;\n border-radius: 6px;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 12px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.vs-card-meta {\n display: flex;\n gap: 10px;\n margin-top: 4px;\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.vs-card-meta span {\n display: flex;\n align-items: center;\n gap: 3px;\n}\n\n.vs-card-meta i {\n font-size: 10px;\n}\n\n/* View Card Check */\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 2px;\n}\n\n/* View Card Actions (hover reveal) */\n.vs-card-actions {\n display: flex;\n gap: 2px;\n opacity: 0;\n transition: opacity 0.15s;\n flex-shrink: 0;\n margin-top: 2px;\n}\n\n/* :focus-within matters as much as :hover \u2014 these buttons (Duplicate, Configure,\n Open in Tab) were reachable ONLY by pointer. A keyboard user could tab into them\n and see nothing at opacity 0, and anything driving the page without a hover\n (assistive tech, automation) could not reach them at all. */\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n}\n\n.vs-action-btn {\n width: 26px;\n height: 26px;\n border-radius: 4px;\n border: none;\n background: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-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: 12px 20px;\n border-top: 1px solid var(--mj-border-default);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\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;\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 });
|
|
1005
|
+
} }, 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 });
|
|
871
1006
|
}
|
|
872
1007
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewSelectorComponent, [{
|
|
873
1008
|
type: Component,
|
|
874
|
-
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-table-list vs-header-icon\"></i>\n <span class=\"vs-panel-title\">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-times\"></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=\"Search views...\"\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\"\n (click)=\"SelectDefault()\">\n <div class=\"vs-card-icon\" [class.active]=\"!SelectedViewID\">\n <i class=\"fa-solid fa-table\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-name\">(Default)</div>\n </div>\n @if (!SelectedViewID) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\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 <i class=\"fa-solid fa-table-list\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-name\">\n {{ view.name }}\n @if (view.isDefault) {\n <span class=\"vs-default-badge\">Default</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)) {\n <div class=\"vs-card-meta\">\n @if (GetViewFilterCount(view) > 0) {\n <span><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewSortInfo(view)) {\n <span><i class=\"fa-solid fa-arrow-down-short-wide\"></i> {{ GetViewSortInfo(view) }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Configure\">\n <i class=\"fa-solid fa-sliders\"></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 }\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\">\n <i class=\"fa-solid fa-users\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-name\">\n {{ view.name }}\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) {\n <div class=\"vs-card-meta\">\n @if (GetViewFilterCount(view) > 0) {\n <span><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span><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-actions\">\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 @if (view.userCanEdit) {\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Configure\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n }\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\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 -->\n <div class=\"vs-panel-footer\">\n <button\n class=\"vs-panel-btn primary\"\n (click)=\"OnQuickSave()\"\n title=\"Save current view configuration\">\n <i class=\"fa-solid fa-plus\"></i>\n <span>New View</span>\n </button>\n <button\n class=\"vs-panel-btn\"\n (click)=\"OnResetToDefault()\"\n title=\"Reset to default view\">\n <i class=\"fa-solid fa-arrow-rotate-left\"></i>\n <span>Reset to Default</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% + 4px);\n left: 0;\n width: 400px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);\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: 16px 20px;\n display: flex;\n align-items: center;\n gap: 12px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 14px;\n}\n\n.vs-panel-title {\n font-size: 15px;\n font-weight: 600;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 500;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 10px;\n}\n\n.vs-close-btn {\n margin-left: auto;\n background: none;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 16px;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.vs-close-btn:hover {\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 12px 20px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 6px 12px 6px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n font-size: 13px;\n background: var(--mj-bg-surface-card) 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: 14px;\n box-sizing: border-box;\n font-family: inherit;\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: 400px;\n overflow-y: auto;\n}\n\n/* View Section */\n.vs-section {\n padding: 8px 0;\n}\n\n.vs-section-header {\n padding: 6px 20px;\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.5px;\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 background: var(--mj-border-default);\n padding: 0 6px;\n border-radius: 8px;\n font-size: 10px;\n}\n\n/* View Card */\n.vs-card {\n padding: 10px 20px;\n cursor: pointer;\n transition: background 0.1s;\n display: flex;\n align-items: flex-start;\n gap: 12px;\n}\n\n.vs-card:hover {\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n border-left: 3px solid var(--mj-brand-primary);\n padding-left: 17px;\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 32px;\n height: 32px;\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: 14px;\n flex-shrink: 0;\n margin-top: 2px;\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/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n padding-top: 4px;\n}\n\n.vs-card-name {\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-card.active .vs-card-name {\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n.vs-default-badge {\n font-size: 9px;\n font-weight: 600;\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n padding: 1px 5px;\n border-radius: 6px;\n text-transform: uppercase;\n letter-spacing: 0.3px;\n}\n\n.vs-shared-badge {\n font-size: 9px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 12%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 5px;\n border-radius: 6px;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 12px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.vs-card-meta {\n display: flex;\n gap: 10px;\n margin-top: 4px;\n font-size: 11px;\n color: var(--mj-text-muted);\n}\n\n.vs-card-meta span {\n display: flex;\n align-items: center;\n gap: 3px;\n}\n\n.vs-card-meta i {\n font-size: 10px;\n}\n\n/* View Card Check */\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 2px;\n}\n\n/* View Card Actions (hover reveal) */\n.vs-card-actions {\n display: flex;\n gap: 2px;\n opacity: 0;\n transition: opacity 0.15s;\n flex-shrink: 0;\n margin-top: 2px;\n}\n\n/* :focus-within matters as much as :hover \u2014 these buttons (Duplicate, Configure,\n Open in Tab) were reachable ONLY by pointer. A keyboard user could tab into them\n and see nothing at opacity 0, and anything driving the page without a hover\n (assistive tech, automation) could not reach them at all. */\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n}\n\n.vs-action-btn {\n width: 26px;\n height: 26px;\n border-radius: 4px;\n border: none;\n background: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-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: 12px 20px;\n border-top: 1px solid var(--mj-border-default);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 4px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\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;\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"] }]
|
|
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"] }]
|
|
875
1010
|
}], () => [{ type: i0.ChangeDetectorRef }], { Entity: [{
|
|
876
1011
|
type: Input
|
|
877
1012
|
}], SelectedViewID: [{
|
|
878
1013
|
type: Input
|
|
1014
|
+
}], SelectedAlternateBaseView: [{
|
|
1015
|
+
type: Input
|
|
879
1016
|
}], ViewModified: [{
|
|
880
1017
|
type: Input
|
|
881
1018
|
}], ViewSelected: [{
|
|
882
1019
|
type: Output
|
|
1020
|
+
}], AlternateBaseViewSelected: [{
|
|
1021
|
+
type: Output
|
|
883
1022
|
}], SaveViewRequested: [{
|
|
884
1023
|
type: Output
|
|
885
1024
|
}], ManageViewsRequested: [{
|