@memberjunction/ng-entity-viewer 6.2.0-edge.5 → 6.2.0-edge.7
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 +162 -3
- 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 +976 -300
- package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
- package/dist/lib/entity-data-grid/open-in-excel.d.ts +40 -0
- package/dist/lib/entity-data-grid/open-in-excel.d.ts.map +1 -0
- package/dist/lib/entity-data-grid/open-in-excel.js +60 -0
- package/dist/lib/entity-data-grid/open-in-excel.js.map +1 -0
- package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +42 -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 +109 -11
- 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 +51 -3
- package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
- package/dist/lib/entity-viewer/entity-viewer.component.js +222 -53
- 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.map +1 -1
- package/dist/lib/recycle-bin/recycle-bin-chip.component.js +5 -4
- 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 +44 -1
- package/dist/lib/utils/record.util.d.ts.map +1 -1
- package/dist/lib/utils/record.util.js +142 -0
- package/dist/lib/utils/record.util.js.map +1 -1
- package/dist/lib/view-config-panel/view-config-panel.component.d.ts +408 -55
- 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 +3922 -993
- 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 +28 -1
- package/dist/lib/view-selector/view-selector.component.d.ts.map +1 -1
- package/dist/lib/view-selector/view-selector.component.js +322 -168
- 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 +9 -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 +24 -5
- 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-types/view-type.contracts.d.ts +6 -0
- package/dist/lib/view-types/view-type.contracts.d.ts.map +1 -1
- package/dist/lib/view-types/view-type.contracts.js.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts +54 -1
- package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
- package/dist/lib/view-workspace/view-workspace.component.js +274 -27
- 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 +23 -21
|
@@ -10,7 +10,7 @@ import * as i2 from "@memberjunction/ng-ui-components";
|
|
|
10
10
|
const _forTrack0 = ($index, $item) => $item.id;
|
|
11
11
|
function ViewSelectorComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
12
12
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
13
|
-
i0.ɵɵelementStart(0, "div",
|
|
13
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
14
14
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseDropdown()); });
|
|
15
15
|
i0.ɵɵelementEnd();
|
|
16
16
|
} }
|
|
@@ -20,7 +20,7 @@ function ViewSelectorComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20
20
|
i0.ɵɵelementEnd();
|
|
21
21
|
} }
|
|
22
22
|
function ViewSelectorComponent_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelementStart(0, "span",
|
|
23
|
+
i0.ɵɵelementStart(0, "span", 19);
|
|
24
24
|
i0.ɵɵtext(1);
|
|
25
25
|
i0.ɵɵelementEnd();
|
|
26
26
|
} if (rf & 2) {
|
|
@@ -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", 38);
|
|
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", 49);
|
|
36
|
+
} }
|
|
37
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵelement(0, "i", 50);
|
|
39
|
+
} }
|
|
40
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
41
|
+
i0.ɵɵelementStart(0, "span", 32);
|
|
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", 51);
|
|
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", 33);
|
|
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", 58);
|
|
61
|
+
i0.ɵɵelement(1, "i", 59);
|
|
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", 58);
|
|
72
|
+
i0.ɵɵelement(1, "i", 60);
|
|
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", 58);
|
|
78
|
+
i0.ɵɵelement(1, "i", 61);
|
|
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", 58);
|
|
84
|
+
i0.ɵɵelement(1, "i", 62);
|
|
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", 58);
|
|
95
|
+
i0.ɵɵelement(1, "i", 63);
|
|
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", 58);
|
|
106
|
+
i0.ɵɵelement(1, "i", 64);
|
|
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", 52);
|
|
117
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_1_Template, 3, 1, "span", 58);
|
|
118
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_2_Template, 3, 0, "span", 58)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_3_Template, 3, 0, "span", 58)(4, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_4_Template, 3, 2, "span", 58);
|
|
119
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_5_Template, 3, 2, "span", 58);
|
|
120
|
+
i0.ɵɵconditionalCreate(6, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Conditional_6_Template, 3, 1, "span", 58);
|
|
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", 38);
|
|
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
|
-
i0.ɵɵelementStart(0, "div",
|
|
103
|
-
i0.ɵɵlistener("click", function
|
|
104
|
-
i0.ɵɵelementStart(1, "div",
|
|
105
|
-
i0.ɵɵ
|
|
139
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
140
|
+
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Template_div_click_0_listener() { const view_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SelectView(view_r5)); });
|
|
141
|
+
i0.ɵɵelementStart(1, "div", 27);
|
|
142
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_2_Template, 1, 0, "i", 49)(3, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_3_Template, 1, 0, "i", 50);
|
|
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", 29)(5, "div", 30)(6, "span", 31);
|
|
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", 32);
|
|
148
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_9_Template, 2, 0, "span", 51);
|
|
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", 33);
|
|
151
|
+
i0.ɵɵconditionalCreate(11, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_11_Template, 7, 4, "div", 52);
|
|
117
152
|
i0.ɵɵelementEnd();
|
|
118
|
-
i0.ɵɵelementStart(12, "button",
|
|
119
|
-
i0.ɵɵlistener("click", function
|
|
120
|
-
i0.ɵɵelement(
|
|
153
|
+
i0.ɵɵelementStart(12, "div", 34)(13, "div", 35)(14, "button", 53);
|
|
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", 37);
|
|
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", 54);
|
|
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", 55);
|
|
127
160
|
i0.ɵɵelementEnd();
|
|
161
|
+
i0.ɵɵelementStart(18, "button", 56);
|
|
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", 57);
|
|
164
|
+
i0.ɵɵelementEnd()();
|
|
165
|
+
i0.ɵɵconditionalCreate(20, ViewSelectorComponent_Conditional_9_Conditional_28_For_8_Conditional_20_Template, 1, 0, "i", 38);
|
|
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",
|
|
147
|
-
i0.ɵɵelement(2, "i",
|
|
188
|
+
function ViewSelectorComponent_Conditional_9_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 45);
|
|
190
|
+
i0.ɵɵelement(2, "i", 46);
|
|
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", 47);
|
|
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", 48, _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", 51);
|
|
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", 68);
|
|
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", 33);
|
|
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", 58);
|
|
227
|
+
i0.ɵɵelement(1, "i", 59);
|
|
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", 58);
|
|
238
|
+
i0.ɵɵelement(1, "i", 60);
|
|
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", 58);
|
|
244
|
+
i0.ɵɵelement(1, "i", 61);
|
|
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", 58);
|
|
250
|
+
i0.ɵɵelement(1, "i", 62);
|
|
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", 58);
|
|
261
|
+
i0.ɵɵelement(1, "i", 63);
|
|
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", 52);
|
|
272
|
+
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_1_Template, 3, 1, "span", 58);
|
|
273
|
+
i0.ɵɵconditionalCreate(2, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_2_Template, 3, 0, "span", 58)(3, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_3_Template, 3, 0, "span", 58)(4, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_4_Template, 3, 2, "span", 58);
|
|
274
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Conditional_5_Template, 3, 2, "span", 58);
|
|
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", 53);
|
|
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", 37);
|
|
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", 38);
|
|
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
|
-
i0.ɵɵelementStart(0, "div",
|
|
230
|
-
i0.ɵɵlistener("click", function
|
|
231
|
-
i0.ɵɵelementStart(1, "div",
|
|
232
|
-
i0.ɵɵelement(2, "i",
|
|
298
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
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", 66);
|
|
301
|
+
i0.ɵɵelement(2, "i", 67);
|
|
233
302
|
i0.ɵɵelementEnd();
|
|
234
|
-
i0.ɵɵelementStart(3, "div",
|
|
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", 29)(4, "div", 30)(5, "span", 31);
|
|
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", 51)(8, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_8_Template, 2, 0, "span", 68);
|
|
244
307
|
i0.ɵɵelementEnd();
|
|
245
|
-
i0.ɵɵconditionalCreate(
|
|
308
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_9_Template, 2, 1, "div", 33);
|
|
309
|
+
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_10_Template, 6, 3, "div", 52);
|
|
246
310
|
i0.ɵɵelementEnd();
|
|
247
|
-
i0.ɵɵ
|
|
311
|
+
i0.ɵɵelementStart(11, "div", 34)(12, "div", 35);
|
|
312
|
+
i0.ɵɵconditionalCreate(13, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_13_Template, 2, 0, "button", 69);
|
|
313
|
+
i0.ɵɵelementStart(14, "button", 70);
|
|
314
|
+
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", 55);
|
|
248
316
|
i0.ɵɵelementEnd();
|
|
317
|
+
i0.ɵɵelementStart(16, "button", 56);
|
|
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", 57);
|
|
320
|
+
i0.ɵɵelementEnd()();
|
|
321
|
+
i0.ɵɵconditionalCreate(18, ViewSelectorComponent_Conditional_9_Conditional_29_For_8_Conditional_18_Template, 1, 0, "i", 38);
|
|
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",
|
|
268
|
-
i0.ɵɵelement(2, "i",
|
|
342
|
+
function ViewSelectorComponent_Conditional_9_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
343
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 45);
|
|
344
|
+
i0.ɵɵelement(2, "i", 65);
|
|
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", 47);
|
|
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", 48, _forTrack0);
|
|
276
352
|
i0.ɵɵelementEnd();
|
|
277
353
|
} if (rf & 2) {
|
|
278
354
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -281,65 +357,75 @@ 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", 39);
|
|
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", 40);
|
|
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", 41);
|
|
371
|
+
i0.ɵɵelement(1, "i", 71);
|
|
296
372
|
i0.ɵɵelementStart(2, "span");
|
|
297
373
|
i0.ɵɵtext(3, "Loading views...");
|
|
298
374
|
i0.ɵɵelementEnd()();
|
|
299
375
|
} }
|
|
300
376
|
function ViewSelectorComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
301
377
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
302
|
-
i0.ɵɵelementStart(0, "div", 8)(1, "div",
|
|
303
|
-
i0.ɵɵelement(2, "i",
|
|
304
|
-
i0.ɵɵelementStart(3, "span",
|
|
305
|
-
i0.ɵɵtext(4, "Views");
|
|
378
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 16);
|
|
379
|
+
i0.ɵɵelement(2, "i", 17);
|
|
380
|
+
i0.ɵɵelementStart(3, "span", 18);
|
|
381
|
+
i0.ɵɵtext(4, "Saved Views");
|
|
306
382
|
i0.ɵɵelementEnd();
|
|
307
|
-
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_5_Template, 2, 1, "span",
|
|
308
|
-
i0.ɵɵelementStart(6, "button",
|
|
383
|
+
i0.ɵɵconditionalCreate(5, ViewSelectorComponent_Conditional_9_Conditional_5_Template, 2, 1, "span", 19);
|
|
384
|
+
i0.ɵɵelementStart(6, "button", 20);
|
|
309
385
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.CloseDropdown()); });
|
|
310
|
-
i0.ɵɵelement(7, "i",
|
|
386
|
+
i0.ɵɵelement(7, "i", 21);
|
|
311
387
|
i0.ɵɵelementEnd()();
|
|
312
|
-
i0.ɵɵelementStart(8, "div",
|
|
388
|
+
i0.ɵɵelementStart(8, "div", 22)(9, "input", 23);
|
|
313
389
|
i0.ɵɵtwoWayListener("ngModelChange", function ViewSelectorComponent_Conditional_9_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.SearchText, $event) || (ctx_r1.SearchText = $event); return i0.ɵɵresetView($event); });
|
|
314
390
|
i0.ɵɵlistener("keydown.escape", function ViewSelectorComponent_Conditional_9_Template_input_keydown_escape_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SearchText = ""); });
|
|
315
391
|
i0.ɵɵelementEnd()();
|
|
316
|
-
i0.ɵɵelementStart(10, "div",
|
|
392
|
+
i0.ɵɵelementStart(10, "div", 24)(11, "div", 25)(12, "div", 26);
|
|
317
393
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_9_Template_div_click_12_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SelectDefault()); });
|
|
318
|
-
i0.ɵɵelementStart(13, "div",
|
|
319
|
-
i0.ɵɵelement(14, "i",
|
|
394
|
+
i0.ɵɵelementStart(13, "div", 27);
|
|
395
|
+
i0.ɵɵelement(14, "i", 28);
|
|
320
396
|
i0.ɵɵelementEnd();
|
|
321
|
-
i0.ɵɵelementStart(15, "div",
|
|
322
|
-
i0.ɵɵtext(
|
|
397
|
+
i0.ɵɵelementStart(15, "div", 29)(16, "div", 30)(17, "span", 31);
|
|
398
|
+
i0.ɵɵtext(18, "(Default)");
|
|
399
|
+
i0.ɵɵelementEnd();
|
|
400
|
+
i0.ɵɵelementStart(19, "span", 32);
|
|
401
|
+
i0.ɵɵtext(20, "Personal Layout");
|
|
402
|
+
i0.ɵɵelementEnd()();
|
|
403
|
+
i0.ɵɵelementStart(21, "div", 33);
|
|
404
|
+
i0.ɵɵtext(22, "All records with your personal default columns & sort order");
|
|
323
405
|
i0.ɵɵelementEnd()();
|
|
324
|
-
i0.ɵɵ
|
|
406
|
+
i0.ɵɵelementStart(23, "div", 34)(24, "div", 35)(25, "button", 36);
|
|
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", 37);
|
|
325
409
|
i0.ɵɵelementEnd()();
|
|
326
|
-
i0.ɵɵconditionalCreate(
|
|
327
|
-
i0.ɵɵ
|
|
328
|
-
i0.ɵɵconditionalCreate(
|
|
329
|
-
i0.ɵɵconditionalCreate(
|
|
330
|
-
i0.ɵɵconditionalCreate(
|
|
331
|
-
i0.ɵɵ
|
|
332
|
-
i0.ɵɵ
|
|
333
|
-
i0.ɵɵ
|
|
334
|
-
i0.ɵɵ
|
|
335
|
-
i0.ɵɵ
|
|
336
|
-
i0.ɵɵ
|
|
410
|
+
i0.ɵɵconditionalCreate(27, ViewSelectorComponent_Conditional_9_Conditional_27_Template, 1, 0, "i", 38);
|
|
411
|
+
i0.ɵɵelementEnd()()();
|
|
412
|
+
i0.ɵɵconditionalCreate(28, ViewSelectorComponent_Conditional_9_Conditional_28_Template, 9, 1, "div", 25);
|
|
413
|
+
i0.ɵɵconditionalCreate(29, ViewSelectorComponent_Conditional_9_Conditional_29_Template, 9, 1, "div", 25);
|
|
414
|
+
i0.ɵɵconditionalCreate(30, ViewSelectorComponent_Conditional_9_Conditional_30_Template, 1, 0, "mj-empty-state", 39);
|
|
415
|
+
i0.ɵɵconditionalCreate(31, ViewSelectorComponent_Conditional_9_Conditional_31_Template, 1, 1, "mj-empty-state", 40);
|
|
416
|
+
i0.ɵɵconditionalCreate(32, ViewSelectorComponent_Conditional_9_Conditional_32_Template, 4, 0, "div", 41);
|
|
417
|
+
i0.ɵɵelementEnd();
|
|
418
|
+
i0.ɵɵelementStart(33, "div", 42)(34, "button", 43);
|
|
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");
|
|
337
423
|
i0.ɵɵelementEnd()();
|
|
338
|
-
i0.ɵɵelementStart(
|
|
339
|
-
i0.ɵɵlistener("click", function
|
|
340
|
-
i0.ɵɵelement(
|
|
341
|
-
i0.ɵɵelementStart(
|
|
342
|
-
i0.ɵɵtext(
|
|
424
|
+
i0.ɵɵelementStart(38, "button", 44);
|
|
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", 37);
|
|
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,34 @@ 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", 72);
|
|
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", 73);
|
|
458
|
+
i0.ɵɵelementEnd();
|
|
459
|
+
} }
|
|
460
|
+
function ViewSelectorComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
461
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
462
|
+
i0.ɵɵelementStart(0, "button", 74);
|
|
463
|
+
i0.ɵɵlistener("click", function ViewSelectorComponent_Conditional_15_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnExport()); });
|
|
464
|
+
i0.ɵɵelement(1, "i", 75);
|
|
372
465
|
i0.ɵɵelementEnd();
|
|
373
466
|
} }
|
|
374
467
|
/**
|
|
@@ -390,14 +483,28 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
390
483
|
* Currently selected view ID (null = default view)
|
|
391
484
|
*/
|
|
392
485
|
SelectedViewID = null;
|
|
486
|
+
/**
|
|
487
|
+
* Currently active Alternate Base View name when on the default view (null = standard BaseView)
|
|
488
|
+
*/
|
|
489
|
+
SelectedAlternateBaseView = null;
|
|
393
490
|
/**
|
|
394
491
|
* Whether the current view has unsaved modifications
|
|
395
492
|
*/
|
|
396
493
|
ViewModified = false;
|
|
494
|
+
/**
|
|
495
|
+
* Whether to render the Export icon button in the selector bar. Defaults to `true` for standalone
|
|
496
|
+
* usage; `mj-view-workspace` sets this to `false` when the active view type (such as Grid) already
|
|
497
|
+
* provides an Export button in its own toolbar.
|
|
498
|
+
*/
|
|
499
|
+
ShowExportButton = true;
|
|
397
500
|
/**
|
|
398
501
|
* Emitted when a view is selected
|
|
399
502
|
*/
|
|
400
503
|
ViewSelected = new EventEmitter();
|
|
504
|
+
/**
|
|
505
|
+
* Emitted when an Alternate Base View is selected from the dropdown (or cleared back to Default)
|
|
506
|
+
*/
|
|
507
|
+
AlternateBaseViewSelected = new EventEmitter();
|
|
401
508
|
/**
|
|
402
509
|
* Emitted when user requests to save the current view
|
|
403
510
|
*/
|
|
@@ -591,6 +698,10 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
591
698
|
if (this.SelectedView) {
|
|
592
699
|
return this.SelectedView.Name;
|
|
593
700
|
}
|
|
701
|
+
if (this.SelectedAlternateBaseView && this.Entity) {
|
|
702
|
+
const abv = this.Entity.GetAlternateBaseView(this.SelectedAlternateBaseView);
|
|
703
|
+
return abv?.EffectiveDisplayName ?? this.SelectedAlternateBaseView;
|
|
704
|
+
}
|
|
594
705
|
return '(Default)';
|
|
595
706
|
}
|
|
596
707
|
/**
|
|
@@ -613,6 +724,9 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
613
724
|
*/
|
|
614
725
|
SelectDefault() {
|
|
615
726
|
this.SelectedView = null;
|
|
727
|
+
if (this.SelectedAlternateBaseView) {
|
|
728
|
+
this.AlternateBaseViewSelected.emit(null);
|
|
729
|
+
}
|
|
616
730
|
this.ViewSelected.emit({ ViewID: null, View: null });
|
|
617
731
|
this.CloseDropdown();
|
|
618
732
|
}
|
|
@@ -638,6 +752,14 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
638
752
|
this.QuickSaveRequested.emit(true);
|
|
639
753
|
this.CloseDropdown();
|
|
640
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* Create a brand-new view directly in the Unified View Studio slide-over panel
|
|
757
|
+
* without an intermediate modal dialog.
|
|
758
|
+
*/
|
|
759
|
+
OnCreateNewView() {
|
|
760
|
+
this.SaveViewRequested.emit({ SaveAsNew: true });
|
|
761
|
+
this.CloseDropdown();
|
|
762
|
+
}
|
|
641
763
|
/**
|
|
642
764
|
* Request to manage views
|
|
643
765
|
*/
|
|
@@ -795,6 +917,17 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
795
917
|
return '';
|
|
796
918
|
}
|
|
797
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* Get display label for the alternate base view configured on a view, if any.
|
|
922
|
+
*/
|
|
923
|
+
GetViewAlternateBaseViewLabel(view) {
|
|
924
|
+
const abvName = view.entity.AlternateBaseView;
|
|
925
|
+
if (!abvName) {
|
|
926
|
+
return '';
|
|
927
|
+
}
|
|
928
|
+
const abvInfo = this.Entity?.GetAlternateBaseView(abvName);
|
|
929
|
+
return abvInfo?.EffectiveDisplayName ?? abvName;
|
|
930
|
+
}
|
|
798
931
|
/**
|
|
799
932
|
* Select a specific view and open the config panel for it
|
|
800
933
|
*/
|
|
@@ -823,8 +956,23 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
823
956
|
OnResetToDefault() {
|
|
824
957
|
this.SelectDefault();
|
|
825
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
* Switch to the (Default) view if needed and open the View Studio in Personal Default Layout mode.
|
|
961
|
+
*/
|
|
962
|
+
OnConfigureDefaultLayout(event) {
|
|
963
|
+
event?.stopPropagation();
|
|
964
|
+
if (this.SelectedViewID || this.SelectedAlternateBaseView) {
|
|
965
|
+
this.SelectedView = null;
|
|
966
|
+
if (this.SelectedAlternateBaseView) {
|
|
967
|
+
this.AlternateBaseViewSelected.emit(null);
|
|
968
|
+
}
|
|
969
|
+
this.ViewSelected.emit({ ViewID: null, View: null });
|
|
970
|
+
}
|
|
971
|
+
this.ConfigureViewRequested.emit();
|
|
972
|
+
this.CloseDropdown();
|
|
973
|
+
}
|
|
826
974
|
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:
|
|
975
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewSelectorComponent, selectors: [["mj-view-selector"]], inputs: { Entity: "Entity", SelectedViewID: "SelectedViewID", SelectedAlternateBaseView: "SelectedAlternateBaseView", ViewModified: "ViewModified", ShowExportButton: "ShowExportButton" }, outputs: { ViewSelected: "ViewSelected", AlternateBaseViewSelected: "AlternateBaseViewSelected", SaveViewRequested: "SaveViewRequested", ManageViewsRequested: "ManageViewsRequested", OpenInTabRequested: "OpenInTabRequested", ConfigureViewRequested: "ConfigureViewRequested", CreateNewRecordRequested: "CreateNewRecordRequested", ExportRequested: "ExportRequested", DuplicateViewRequested: "DuplicateViewRequested", QuickSaveRequested: "QuickSaveRequested", RevertRequested: "RevertRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 16, vars: 13, consts: [[1, "vs-container"], [1, "vs-backdrop"], [1, "vs-wrapper"], ["title", "Select a saved view", 1, "vs-button", 3, "click", "disabled"], [1, "fa-solid", "fa-layer-group", "vs-btn-icon"], [1, "vs-btn-name"], ["title", "View has unsaved changes", 1, "vs-modified-dot"], [1, "fa-solid", "fa-chevron-down", "vs-arrow"], [1, "vs-panel"], ["title", "Open this view in a new tab", 1, "vs-icon-btn"], ["title", "Configure view settings (columns, filters, sorting)", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-sliders-h"], ["title", "Create new record", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-plus"], ["title", "Export", 1, "vs-icon-btn", "vs-export-btn"], [1, "vs-backdrop", 3, "click"], [1, "vs-panel-header"], [1, "fa-solid", "fa-layer-group", "vs-header-icon"], [1, "vs-panel-title"], [1, "vs-entity-badge"], ["title", "Close", 1, "vs-close-btn", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "vs-panel-search"], ["type", "text", "placeholder", "Filter views by name or description...", 1, "vs-search-input", 3, "ngModelChange", "keydown.escape", "ngModel"], [1, "vs-panel-body"], [1, "vs-section"], [1, "vs-card", 3, "click"], [1, "vs-card-icon"], [1, "fa-solid", "fa-table-cells"], [1, "vs-card-content"], [1, "vs-card-top"], [1, "vs-card-name-text"], [1, "vs-default-badge"], [1, "vs-card-desc"], [1, "vs-card-right"], [1, "vs-card-actions"], ["title", "Customize Personal Default Layout", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-sliders"], [1, "fa-solid", "fa-check", "vs-card-check"], ["Size", "compact", "Icon", "fa-solid fa-bookmark", "Title", "No saved views yet", "Message", "Save your current configuration as a view"], ["Size", "compact", "Variant", "no-results", 3, "Title"], [1, "vs-loading"], [1, "vs-panel-footer"], ["title", "Create a new saved view in the View Studio", 1, "vs-panel-btn", "primary", 3, "click"], ["title", "Customize your personal default layout", 1, "vs-panel-btn", 3, "click"], [1, "vs-section-header"], [1, "fa-solid", "fa-user"], [1, "vs-section-count"], [1, "vs-card", 3, "active"], [1, "fa-solid", "fa-star"], [1, "fa-solid", "fa-layer-group"], [1, "vs-shared-badge"], [1, "vs-card-meta"], ["title", "Edit View in Studio", 1, "vs-action-btn", 3, "click"], ["title", "Duplicate View", 1, "vs-action-btn", 3, "click"], [1, "fa-regular", "fa-copy"], ["title", "Open in Tab", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-up-right-from-square"], [1, "vs-meta-pill"], [1, "fa-solid", "fa-database"], [1, "fa-solid", "fa-wand-magic-sparkles"], [1, "fa-solid", "fa-code"], [1, "fa-solid", "fa-filter"], [1, "fa-solid", "fa-table-columns"], [1, "fa-solid", "fa-arrow-down-short-wide"], [1, "fa-solid", "fa-share-nodes"], [1, "vs-card-icon", "shared"], [1, "fa-solid", "fa-globe"], [1, "vs-shared-badge", "editable"], ["title", "Edit View in Studio", 1, "vs-action-btn"], ["title", "Duplicate as My View", 1, "vs-action-btn", 3, "click"], [1, "fa-solid", "fa-spinner", "fa-spin"], ["title", "Open this view in a new tab", 1, "vs-icon-btn", 3, "click"], [1, "fa-solid", "fa-external-link-alt"], ["title", "Export", 1, "vs-icon-btn", "vs-export-btn", 3, "click"], [1, "fa-solid", "fa-file-excel"]], template: function ViewSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
828
976
|
i0.ɵɵelementStart(0, "div", 0);
|
|
829
977
|
i0.ɵɵconditionalCreate(1, ViewSelectorComponent_Conditional_1_Template, 1, 0, "div", 1);
|
|
830
978
|
i0.ɵɵelementStart(2, "div", 2)(3, "button", 3);
|
|
@@ -836,7 +984,7 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
836
984
|
i0.ɵɵconditionalCreate(7, ViewSelectorComponent_Conditional_7_Template, 2, 0, "span", 6);
|
|
837
985
|
i0.ɵɵelement(8, "i", 7);
|
|
838
986
|
i0.ɵɵelementEnd();
|
|
839
|
-
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Template,
|
|
987
|
+
i0.ɵɵconditionalCreate(9, ViewSelectorComponent_Conditional_9_Template, 42, 12, "div", 8);
|
|
840
988
|
i0.ɵɵelementEnd();
|
|
841
989
|
i0.ɵɵconditionalCreate(10, ViewSelectorComponent_Conditional_10_Template, 2, 0, "button", 9);
|
|
842
990
|
i0.ɵɵelementStart(11, "button", 10);
|
|
@@ -847,10 +995,8 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
847
995
|
i0.ɵɵlistener("click", function ViewSelectorComponent_Template_button_click_13_listener() { return ctx.OnCreateNewRecord(); });
|
|
848
996
|
i0.ɵɵelement(14, "i", 13);
|
|
849
997
|
i0.ɵɵelementEnd();
|
|
850
|
-
i0.ɵɵ
|
|
851
|
-
i0.ɵɵ
|
|
852
|
-
i0.ɵɵelement(16, "i", 15);
|
|
853
|
-
i0.ɵɵelementEnd()();
|
|
998
|
+
i0.ɵɵconditionalCreate(15, ViewSelectorComponent_Conditional_15_Template, 2, 0, "button", 14);
|
|
999
|
+
i0.ɵɵelementEnd();
|
|
854
1000
|
} if (rf & 2) {
|
|
855
1001
|
i0.ɵɵadvance();
|
|
856
1002
|
i0.ɵɵconditional(ctx.IsDropdownOpen ? 1 : -1);
|
|
@@ -867,19 +1013,27 @@ export class ViewSelectorComponent extends BaseAngularComponent {
|
|
|
867
1013
|
i0.ɵɵconditional(ctx.IsDropdownOpen ? 9 : -1);
|
|
868
1014
|
i0.ɵɵadvance();
|
|
869
1015
|
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 });
|
|
1016
|
+
i0.ɵɵadvance(5);
|
|
1017
|
+
i0.ɵɵconditional(ctx.ShowExportButton ? 15 : -1);
|
|
1018
|
+
} }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MJEmptyStateComponent], styles: ["/* ========================================\n VIEW SELECTOR - All classes prefixed vs-\n to avoid conflicts (ViewEncapsulation.None)\n ======================================== */\n\n/* Container */\n.vs-container {\n display: flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n\n/* Backdrop for closing panel */\n.vs-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n background: transparent;\n}\n\n.vs-wrapper {\n position: relative;\n}\n\n/* Main Button */\n.vs-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n transition: all 0.15s ease;\n min-width: 140px;\n max-width: 280px;\n}\n\n.vs-button:hover {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.vs-button.open {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button.modified {\n border-color: var(--mj-status-warning);\n}\n\n.vs-btn-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.vs-btn-name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n\n.vs-modified-dot {\n color: var(--mj-status-warning);\n font-weight: bold;\n font-size: 18px;\n line-height: 1;\n}\n\n.vs-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n transition: transform 0.2s ease;\n}\n\n.vs-arrow.rotated {\n transform: rotate(180deg);\n}\n\n/* ========================================\n RICH VIEW PANEL\n Styles ported directly from prototype\n ======================================== */\n\n/* Reset inherited styles inside panel */\n.vs-panel,\n.vs-panel * {\n box-sizing: border-box;\n line-height: 1.5;\n text-align: left;\n}\n\n.vs-panel {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n width: 440px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 12px;\n box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);\n z-index: 1000;\n overflow: hidden;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 13px;\n color: var(--mj-text-primary);\n}\n\n/* Panel Header */\n.vs-panel-header {\n padding: 12px 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 13px;\n}\n\n.vs-panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 999px;\n max-width: 190px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-close-btn {\n margin-left: auto;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n background: transparent;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-close-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 10px 14px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 7px 12px 7px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 7px;\n font-size: 13px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208z'/%3E%3C/svg%3E\") no-repeat 10px center;\n background-size: 13px;\n box-sizing: border-box;\n font-family: inherit;\n transition: border-color 0.15s ease;\n}\n\n.vs-search-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.vs-search-input::placeholder {\n color: var(--mj-text-muted);\n}\n\n/* Panel Body */\n.vs-panel-body {\n max-height: 380px;\n overflow-y: auto;\n padding: 6px;\n}\n\n/* View Section */\n.vs-section {\n padding: 2px 0;\n}\n\n.vs-section-header {\n padding: 8px 10px 4px;\n font-size: 10px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-section-header i {\n font-size: 10px;\n}\n\n.vs-section-count {\n margin-left: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n color: var(--mj-text-secondary);\n}\n\n/* View Card */\n.vs-card {\n padding: 9px 10px;\n border-radius: 8px;\n border: 1px solid transparent;\n cursor: pointer;\n transition: background 0.12s ease, border-color 0.12s ease;\n display: flex;\n align-items: flex-start;\n gap: 10px;\n}\n\n.vs-card:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 1px;\n}\n\n.vs-card-icon.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.vs-card-icon.shared {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted);\n}\n\n.vs-card-icon.shared.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n}\n\n.vs-card-top {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.vs-card-name-text {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card.active .vs-card-name-text {\n color: var(--mj-brand-primary);\n}\n\n/* Non-wrapping status pills \u2014 never wraps onto 2 lines */\n.vs-default-badge {\n font-size: 10px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge {\n font-size: 10px;\n font-weight: 600;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-muted);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n border-color: transparent;\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n margin-top: 5px;\n}\n\n.vs-meta-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: 10.5px;\n white-space: nowrap;\n}\n\n.vs-meta-pill i {\n font-size: 9.5px;\n color: var(--mj-brand-primary);\n}\n\n/* Right Action & Checkmark Column */\n.vs-card-right {\n display: flex;\n align-items: center;\n gap: 2px;\n flex-shrink: 0;\n align-self: center;\n}\n\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n padding: 0 6px;\n}\n\n/* View Card Actions (hover & focus-within reveal) */\n.vs-card-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 2px;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.12s ease;\n}\n\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.vs-card:hover .vs-card-check,\n.vs-card:focus-within .vs-card-check {\n display: none;\n}\n\n.vs-action-btn {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n font-size: 11px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n/* Loading */\n.vs-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 20px;\n color: var(--mj-text-muted);\n font-size: 13px;\n text-align: center;\n}\n\n/* Panel Footer */\n.vs-panel-footer {\n padding: 10px 12px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 7px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n transition: all 0.15s ease;\n font-family: inherit;\n text-align: center;\n}\n\n.vs-panel-btn:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.vs-panel-btn i {\n font-size: 11px;\n}\n\n/* ========================================\n ICON BUTTONS (outside panel)\n ======================================== */\n\n.vs-icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-secondary);\n transition: all 0.15s ease;\n}\n\n.vs-icon-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-brand-primary);\n}\n\n.vs-icon-btn i {\n font-size: 12px;\n}\n\n.vs-export-btn:hover {\n color: var(--mj-status-success);\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .vs-button {\n min-width: 100px;\n max-width: 180px;\n padding: 6px 10px;\n }\n\n .vs-panel {\n width: calc(100vw - 32px);\n max-width: 400px;\n }\n}\n"], encapsulation: 2 });
|
|
871
1019
|
}
|
|
872
1020
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewSelectorComponent, [{
|
|
873
1021
|
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"] }]
|
|
1022
|
+
args: [{ standalone: false, selector: 'mj-view-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"vs-container\">\n <!-- Backdrop for closing panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-backdrop\" (click)=\"CloseDropdown()\"></div>\n }\n\n <!-- Main View Selector Button -->\n <div class=\"vs-wrapper\">\n <button\n class=\"vs-button\"\n [class.modified]=\"ViewModified\"\n [class.open]=\"IsDropdownOpen\"\n (click)=\"ToggleDropdown()\"\n [disabled]=\"IsLoading\"\n title=\"Select a saved view\">\n <i class=\"fa-solid fa-layer-group vs-btn-icon\"></i>\n <span class=\"vs-btn-name\">{{ DisplayName }}</span>\n @if (ViewModified) {\n <span class=\"vs-modified-dot\" title=\"View has unsaved changes\">\u2022</span>\n }\n <i class=\"fa-solid fa-chevron-down vs-arrow\" [class.rotated]=\"IsDropdownOpen\"></i>\n </button>\n\n <!-- Rich View Panel -->\n @if (IsDropdownOpen) {\n <div class=\"vs-panel\">\n <!-- Panel Header -->\n <div class=\"vs-panel-header\">\n <i class=\"fa-solid fa-layer-group vs-header-icon\"></i>\n <span class=\"vs-panel-title\">Saved Views</span>\n @if (Entity) {\n <span class=\"vs-entity-badge\">{{ Entity.DisplayNameOrName }}</span>\n }\n <button class=\"vs-close-btn\" (click)=\"CloseDropdown()\" title=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n\n <!-- Search -->\n <div class=\"vs-panel-search\">\n <input\n type=\"text\"\n class=\"vs-search-input\"\n placeholder=\"Filter views by name or description...\"\n [(ngModel)]=\"SearchText\"\n (keydown.escape)=\"SearchText = ''\"\n />\n </div>\n\n <!-- Panel Body -->\n <div class=\"vs-panel-body\">\n <!-- Default Option -->\n <div class=\"vs-section\">\n <div\n class=\"vs-card\"\n [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\"\n (click)=\"SelectDefault()\">\n <div class=\"vs-card-icon\" [class.active]=\"!SelectedViewID && !SelectedAlternateBaseView\">\n <i class=\"fa-solid fa-table-cells\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">(Default)</span>\n <span class=\"vs-default-badge\">Personal Layout</span>\n </div>\n <div class=\"vs-card-desc\">All records with your personal default columns & sort order</div>\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize Personal Default Layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n </div>\n @if (!SelectedViewID && !SelectedAlternateBaseView) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n </div>\n\n <!-- My Views Section -->\n @if (FilteredMyViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-user\"></i>\n <span>My Views</span>\n <span class=\"vs-section-count\">{{ FilteredMyViews.length }}</span>\n </div>\n @for (view of FilteredMyViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon\" [class.active]=\"SelectedViewID === view.id\">\n @if (view.isDefault) {\n <i class=\"fa-solid fa-star\"></i>\n } @else {\n <i class=\"fa-solid fa-layer-group\"></i>\n }\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (view.isDefault) {\n <span class=\"vs-default-badge\">Default</span>\n }\n @if (view.isShared) {\n <span class=\"vs-shared-badge\">Shared</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewSortInfo(view) || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewSortInfo(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-arrow-down-short-wide\"></i> {{ GetViewSortInfo(view) }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- Shared Views Section -->\n @if (FilteredSharedViews.length > 0) {\n <div class=\"vs-section\">\n <div class=\"vs-section-header\">\n <i class=\"fa-solid fa-share-nodes\"></i>\n <span>Shared With Me</span>\n <span class=\"vs-section-count\">{{ FilteredSharedViews.length }}</span>\n </div>\n @for (view of FilteredSharedViews; track view.id) {\n <div\n class=\"vs-card\"\n [class.active]=\"SelectedViewID === view.id\"\n (click)=\"SelectView(view)\">\n <div class=\"vs-card-icon shared\" [class.active]=\"SelectedViewID === view.id\">\n <i class=\"fa-solid fa-globe\"></i>\n </div>\n <div class=\"vs-card-content\">\n <div class=\"vs-card-top\">\n <span class=\"vs-card-name-text\">{{ view.name }}</span>\n @if (!view.userCanEdit) {\n <span class=\"vs-shared-badge\">View Only</span>\n } @else {\n <span class=\"vs-shared-badge editable\">Can Edit</span>\n }\n </div>\n @if (view.entity.Description) {\n <div class=\"vs-card-desc\">{{ view.entity.Description }}</div>\n }\n @if (GetViewFilterCount(view) > 0 || GetViewColumnCount(view) > 0 || GetViewAlternateBaseViewLabel(view) || view.entity.SmartFilterEnabled || view.entity.CustomWhereClause) {\n <div class=\"vs-card-meta\">\n @if (GetViewAlternateBaseViewLabel(view)) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-database\"></i> {{ GetViewAlternateBaseViewLabel(view) }}</span>\n }\n @if (view.entity.SmartFilterEnabled) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-wand-magic-sparkles\"></i> Smart Filter</span>\n } @else if (view.entity.CustomWhereClause) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-code\"></i> Custom SQL</span>\n } @else if (GetViewFilterCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-filter\"></i> {{ GetViewFilterCount(view) }} filter{{ GetViewFilterCount(view) !== 1 ? 's' : '' }}</span>\n }\n @if (GetViewColumnCount(view) > 0) {\n <span class=\"vs-meta-pill\"><i class=\"fa-solid fa-table-columns\"></i> {{ GetViewColumnCount(view) }} col{{ GetViewColumnCount(view) !== 1 ? 's' : '' }}</span>\n }\n </div>\n }\n </div>\n <div class=\"vs-card-right\">\n <div class=\"vs-card-actions\">\n @if (view.userCanEdit) {\n <button\n class=\"vs-action-btn\"\n (click)=\"OnConfigureViewById(view.id, $event)\"\n title=\"Edit View in Studio\">\n <i class=\"fa-solid fa-sliders\"></i>\n </button>\n }\n <button\n class=\"vs-action-btn\"\n (click)=\"OnDuplicateView(view.id, $event)\"\n title=\"Duplicate as My View\">\n <i class=\"fa-regular fa-copy\"></i>\n </button>\n <button\n class=\"vs-action-btn\"\n (click)=\"OnOpenViewInTab(view.id, $event)\"\n title=\"Open in Tab\">\n <i class=\"fa-solid fa-up-right-from-square\"></i>\n </button>\n </div>\n @if (SelectedViewID === view.id) {\n <i class=\"fa-solid fa-check vs-card-check\"></i>\n }\n </div>\n </div>\n }\n </div>\n }\n\n <!-- No Views Message -->\n @if (!HasViews && !IsLoading) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-bookmark\"\n Title=\"No saved views yet\"\n Message=\"Save your current configuration as a view\" />\n }\n\n <!-- No Search Results -->\n @if (HasViews && FilteredMyViews.length === 0 && FilteredSharedViews.length === 0 && SearchText) {\n <mj-empty-state\n Size=\"compact\"\n Variant=\"no-results\"\n [Title]=\"NoViewsMatchMessage\" />\n }\n\n <!-- Loading Indicator -->\n @if (IsLoading) {\n <div class=\"vs-loading\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>Loading views...</span>\n </div>\n }\n </div>\n\n <!-- Panel Footer (MJ Convention: Primary action on LEFT, Secondary on RIGHT) -->\n <div class=\"vs-panel-footer\">\n <button\n class=\"vs-panel-btn primary\"\n (click)=\"OnCreateNewView()\"\n title=\"Create a new saved view in the View Studio\">\n <i class=\"fa-solid fa-plus\"></i>\n <span>New Saved View</span>\n </button>\n <button\n class=\"vs-panel-btn\"\n (click)=\"OnConfigureDefaultLayout($event)\"\n title=\"Customize your personal default layout\">\n <i class=\"fa-solid fa-sliders\"></i>\n <span>Default Layout</span>\n </button>\n </div>\n </div>\n }\n </div>\n\n <!-- Open in Tab Button (only visible when a view is selected) -->\n @if (SelectedViewID) {\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnOpenInTab()\"\n title=\"Open this view in a new tab\">\n <i class=\"fa-solid fa-external-link-alt\"></i>\n </button>\n }\n\n <!-- Configure View Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnConfigureView()\"\n title=\"Configure view settings (columns, filters, sorting)\">\n <i class=\"fa-solid fa-sliders-h\"></i>\n </button>\n\n <!-- Create New Record Button -->\n <button\n class=\"vs-icon-btn\"\n (click)=\"OnCreateNewRecord()\"\n title=\"Create new record\">\n <i class=\"fa-solid fa-plus\"></i>\n </button>\n\n <!-- Export Button (suppressed when the active view type provides its own toolbar Export) -->\n @if (ShowExportButton) {\n <button\n class=\"vs-icon-btn vs-export-btn\"\n (click)=\"OnExport()\"\n title=\"Export\">\n <i class=\"fa-solid fa-file-excel\"></i>\n </button>\n }\n</div>\n", styles: ["/* ========================================\n VIEW SELECTOR - All classes prefixed vs-\n to avoid conflicts (ViewEncapsulation.None)\n ======================================== */\n\n/* Container */\n.vs-container {\n display: flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n\n/* Backdrop for closing panel */\n.vs-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n background: transparent;\n}\n\n.vs-wrapper {\n position: relative;\n}\n\n/* Main Button */\n.vs-button {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-primary);\n transition: all 0.15s ease;\n min-width: 140px;\n max-width: 280px;\n}\n\n.vs-button:hover {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.vs-button.open {\n border-color: var(--mj-brand-primary);\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, var(--mj-bg-surface));\n}\n\n.vs-button.modified {\n border-color: var(--mj-status-warning);\n}\n\n.vs-btn-icon {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.vs-btn-name {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n\n.vs-modified-dot {\n color: var(--mj-status-warning);\n font-weight: bold;\n font-size: 18px;\n line-height: 1;\n}\n\n.vs-arrow {\n color: var(--mj-text-muted);\n font-size: 10px;\n transition: transform 0.2s ease;\n}\n\n.vs-arrow.rotated {\n transform: rotate(180deg);\n}\n\n/* ========================================\n RICH VIEW PANEL\n Styles ported directly from prototype\n ======================================== */\n\n/* Reset inherited styles inside panel */\n.vs-panel,\n.vs-panel * {\n box-sizing: border-box;\n line-height: 1.5;\n text-align: left;\n}\n\n.vs-panel {\n position: absolute;\n top: calc(100% + 6px);\n left: 0;\n width: 440px;\n max-width: calc(100vw - 40px);\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-strong);\n border-radius: 12px;\n box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);\n z-index: 1000;\n overflow: hidden;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n font-size: 13px;\n color: var(--mj-text-primary);\n}\n\n/* Panel Header */\n.vs-panel-header {\n padding: 12px 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n}\n\n.vs-header-icon {\n color: var(--mj-brand-primary);\n font-size: 13px;\n}\n\n.vs-panel-title {\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary);\n}\n\n.vs-entity-badge {\n font-size: 11px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n border: 1px solid color-mix(in srgb, var(--mj-brand-primary) 35%, var(--mj-border-default));\n color: var(--mj-brand-primary);\n padding: 2px 8px;\n border-radius: 999px;\n max-width: 190px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-close-btn {\n margin-left: auto;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n background: transparent;\n border: none;\n cursor: pointer;\n color: var(--mj-text-muted);\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-close-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n/* Panel Search */\n.vs-panel-search {\n padding: 10px 14px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.vs-search-input {\n width: 100%;\n padding: 7px 12px 7px 32px;\n border: 1px solid var(--mj-border-default);\n border-radius: 7px;\n font-size: 13px;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-sunken) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208z'/%3E%3C/svg%3E\") no-repeat 10px center;\n background-size: 13px;\n box-sizing: border-box;\n font-family: inherit;\n transition: border-color 0.15s ease;\n}\n\n.vs-search-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary);\n}\n\n.vs-search-input::placeholder {\n color: var(--mj-text-muted);\n}\n\n/* Panel Body */\n.vs-panel-body {\n max-height: 380px;\n overflow-y: auto;\n padding: 6px;\n}\n\n/* View Section */\n.vs-section {\n padding: 2px 0;\n}\n\n.vs-section-header {\n padding: 8px 10px 4px;\n font-size: 10px;\n font-weight: 700;\n color: var(--mj-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.06em;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.vs-section-header i {\n font-size: 10px;\n}\n\n.vs-section-count {\n margin-left: auto;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n padding: 0 6px;\n border-radius: 999px;\n font-size: 10px;\n color: var(--mj-text-secondary);\n}\n\n/* View Card */\n.vs-card {\n padding: 9px 10px;\n border-radius: 8px;\n border: 1px solid transparent;\n cursor: pointer;\n transition: background 0.12s ease, border-color 0.12s ease;\n display: flex;\n align-items: flex-start;\n gap: 10px;\n}\n\n.vs-card:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.vs-card.active {\n background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n border-color: color-mix(in srgb, var(--mj-brand-primary) 30%, var(--mj-border-default));\n}\n\n/* View Card Icon */\n.vs-card-icon {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: var(--mj-bg-surface-card);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--mj-text-muted);\n font-size: 12px;\n flex-shrink: 0;\n margin-top: 1px;\n}\n\n.vs-card-icon.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n.vs-card-icon.shared {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted);\n}\n\n.vs-card-icon.shared.active {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n}\n\n/* View Card Content */\n.vs-card-content {\n flex: 1;\n min-width: 0;\n}\n\n.vs-card-top {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n}\n\n.vs-card-name-text {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card.active .vs-card-name-text {\n color: var(--mj-brand-primary);\n}\n\n/* Non-wrapping status pills \u2014 never wraps onto 2 lines */\n.vs-default-badge {\n font-size: 10px;\n font-weight: 600;\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge {\n font-size: 10px;\n font-weight: 600;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n color: var(--mj-text-muted);\n padding: 1px 6px;\n border-radius: 999px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n\n.vs-shared-badge.editable {\n background: var(--mj-status-success-bg);\n border-color: transparent;\n color: var(--mj-status-success-text);\n}\n\n.vs-card-desc {\n font-size: 11.5px;\n color: var(--mj-text-muted);\n margin-top: 2px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.vs-card-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n margin-top: 5px;\n}\n\n.vs-meta-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 1px 6px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n font-size: 10.5px;\n white-space: nowrap;\n}\n\n.vs-meta-pill i {\n font-size: 9.5px;\n color: var(--mj-brand-primary);\n}\n\n/* Right Action & Checkmark Column */\n.vs-card-right {\n display: flex;\n align-items: center;\n gap: 2px;\n flex-shrink: 0;\n align-self: center;\n}\n\n.vs-card-check {\n color: var(--mj-brand-primary);\n font-size: 12px;\n padding: 0 6px;\n}\n\n/* View Card Actions (hover & focus-within reveal) */\n.vs-card-actions {\n display: flex;\n align-items: center;\n gap: 2px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n padding: 2px;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.12s ease;\n}\n\n.vs-card:hover .vs-card-actions,\n.vs-card:focus-within .vs-card-actions {\n opacity: 1;\n pointer-events: auto;\n}\n\n.vs-card:hover .vs-card-check,\n.vs-card:focus-within .vs-card-check {\n display: none;\n}\n\n.vs-action-btn {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: none;\n background: transparent;\n cursor: pointer;\n color: var(--mj-text-secondary);\n font-size: 11px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.12s ease, color 0.12s ease;\n}\n\n.vs-action-btn:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-brand-primary);\n}\n\n/* Loading */\n.vs-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 20px;\n color: var(--mj-text-muted);\n font-size: 13px;\n text-align: center;\n}\n\n/* Panel Footer */\n.vs-panel-footer {\n padding: 10px 12px;\n border-top: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n display: flex;\n gap: 8px;\n}\n\n.vs-panel-btn {\n flex: 1;\n padding: 8px 12px;\n border-radius: 7px;\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--mj-text-secondary);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n transition: all 0.15s ease;\n font-family: inherit;\n text-align: center;\n}\n\n.vs-panel-btn:hover {\n border-color: var(--mj-brand-primary);\n color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border-color: var(--mj-brand-primary);\n}\n\n.vs-panel-btn.primary:hover {\n background: var(--mj-brand-primary-hover);\n}\n\n.vs-panel-btn i {\n font-size: 11px;\n}\n\n/* ========================================\n ICON BUTTONS (outside panel)\n ======================================== */\n\n.vs-icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-secondary);\n transition: all 0.15s ease;\n}\n\n.vs-icon-btn:hover {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-brand-primary);\n}\n\n.vs-icon-btn i {\n font-size: 12px;\n}\n\n.vs-export-btn:hover {\n color: var(--mj-status-success);\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .vs-button {\n min-width: 100px;\n max-width: 180px;\n padding: 6px 10px;\n }\n\n .vs-panel {\n width: calc(100vw - 32px);\n max-width: 400px;\n }\n}\n"] }]
|
|
875
1023
|
}], () => [{ type: i0.ChangeDetectorRef }], { Entity: [{
|
|
876
1024
|
type: Input
|
|
877
1025
|
}], SelectedViewID: [{
|
|
878
1026
|
type: Input
|
|
1027
|
+
}], SelectedAlternateBaseView: [{
|
|
1028
|
+
type: Input
|
|
879
1029
|
}], ViewModified: [{
|
|
880
1030
|
type: Input
|
|
1031
|
+
}], ShowExportButton: [{
|
|
1032
|
+
type: Input
|
|
881
1033
|
}], ViewSelected: [{
|
|
882
1034
|
type: Output
|
|
1035
|
+
}], AlternateBaseViewSelected: [{
|
|
1036
|
+
type: Output
|
|
883
1037
|
}], SaveViewRequested: [{
|
|
884
1038
|
type: Output
|
|
885
1039
|
}], ManageViewsRequested: [{
|