@memberjunction/ng-explorer-core 0.9.220 → 0.9.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/app-view/application-view.component.d.ts +2 -2
- package/dist/lib/app-view/application-view.component.d.ts.map +1 -1
- package/dist/lib/app-view/application-view.component.js +9 -9
- package/dist/lib/generic/resource-container-component.d.ts +1 -1
- package/dist/lib/generic/resource-container-component.js +10 -6
- package/dist/lib/generic-browse-list/generic-browse-list.component.js +3 -3
- package/dist/lib/generic-browser-list/generic-browser-list.component.js +3 -3
- package/dist/lib/navigation/navigation.component.d.ts +11 -4
- package/dist/lib/navigation/navigation.component.d.ts.map +1 -1
- package/dist/lib/navigation/navigation.component.js +203 -162
- package/dist/lib/query-browser-component/query-browser.component.d.ts +1 -1
- package/dist/lib/query-browser-component/query-browser.component.js +2 -2
- package/dist/lib/report-browser-component/report-browser.component.d.ts +1 -1
- package/dist/lib/report-browser-component/report-browser.component.js +2 -2
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +5 -5
- package/dist/lib/resource-wrappers/query-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/query-resource.component.js +5 -5
- package/dist/lib/resource-wrappers/record-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/record-resource.component.js +5 -5
- package/dist/lib/resource-wrappers/report-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/report-resource.component.js +5 -5
- package/dist/lib/resource-wrappers/search-results-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/search-results-resource.component.js +5 -5
- package/dist/lib/resource-wrappers/view-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/view-resource.component.js +6 -6
- package/dist/lib/single-application/single-application.component.d.ts +1 -1
- package/dist/lib/single-application/single-application.component.js +2 -2
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +3 -3
- package/dist/lib/single-dashboard/single-dashboard.component.d.ts +1 -1
- package/dist/lib/single-dashboard/single-dashboard.component.js +5 -5
- package/dist/lib/single-entity/single-entity.component.d.ts +3 -3
- package/dist/lib/single-entity/single-entity.component.d.ts.map +1 -1
- package/dist/lib/single-entity/single-entity.component.js +11 -11
- package/dist/lib/single-query/single-query.component.d.ts +1 -1
- package/dist/lib/single-query/single-query.component.js +2 -2
- package/dist/lib/single-record/single-record.component.d.ts +1 -1
- package/dist/lib/single-record/single-record.component.d.ts.map +1 -1
- package/dist/lib/single-record/single-record.component.js +2 -3
- package/dist/lib/single-report/single-report.component.d.ts +1 -1
- package/dist/lib/single-report/single-report.component.js +2 -2
- package/dist/lib/single-search-result/single-search-result.component.d.ts +1 -1
- package/dist/lib/single-search-result/single-search-result.component.js +2 -2
- package/dist/lib/single-view/single-view.component.d.ts +1 -1
- package/dist/lib/single-view/single-view.component.d.ts.map +1 -1
- package/dist/lib/single-view/single-view.component.js +9 -10
- package/dist/module.d.ts +39 -39
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +6 -10
- package/dist/public-api.d.ts +0 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +0 -1
- package/package.json +16 -14
|
@@ -21,108 +21,121 @@ import * as i2 from "@memberjunction/ng-shared";
|
|
|
21
21
|
import * as i3 from "@angular/common";
|
|
22
22
|
import * as i4 from "@angular/platform-browser";
|
|
23
23
|
import * as i5 from "@progress/kendo-angular-indicators";
|
|
24
|
-
import * as i6 from "@progress/kendo-angular-
|
|
24
|
+
import * as i6 from "@progress/kendo-angular-buttons";
|
|
25
25
|
import * as i7 from "@progress/kendo-angular-icons";
|
|
26
26
|
import * as i8 from "@memberjunction/ng-container-directives";
|
|
27
|
-
import * as i9 from "@
|
|
28
|
-
import * as i10 from "
|
|
29
|
-
import * as i11 from "../
|
|
27
|
+
import * as i9 from "@progress/kendo-angular-layout";
|
|
28
|
+
import * as i10 from "@memberjunction/ng-ask-skip";
|
|
29
|
+
import * as i11 from "../generic/resource-container-component";
|
|
30
|
+
import * as i12 from "../expansion-panel-component/expansion-panel-component";
|
|
30
31
|
const _c0 = ["drawerWrapper"];
|
|
31
|
-
const _c1 = ["
|
|
32
|
-
const _c2 = ["
|
|
32
|
+
const _c1 = ["container"];
|
|
33
|
+
const _c2 = ["tabInnerContainer"];
|
|
33
34
|
function NavigationComponent_kendo_loader_2_Template(rf, ctx) { if (rf & 1) {
|
|
34
35
|
i0.ɵɵelement(0, "kendo-loader", 6);
|
|
35
36
|
} }
|
|
36
37
|
function NavigationComponent_kendo_drawer_container_3_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
37
38
|
i0.ɵɵelementStart(0, "div");
|
|
38
|
-
i0.ɵɵelement(1, "expansion-panel-component",
|
|
39
|
+
i0.ɵɵelement(1, "expansion-panel-component", 21);
|
|
39
40
|
i0.ɵɵelementEnd();
|
|
40
41
|
} if (rf & 2) {
|
|
41
42
|
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
42
43
|
i0.ɵɵadvance();
|
|
43
44
|
i0.ɵɵproperty("items", ctx_r5.panelItems);
|
|
44
45
|
} }
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
i0.ɵɵelementStart(0, "
|
|
48
|
-
i0.ɵɵlistener("
|
|
46
|
+
function NavigationComponent_kendo_drawer_container_3_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
48
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
49
|
+
i0.ɵɵlistener("click", function NavigationComponent_kendo_drawer_container_3_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r11.scrollLeft()); });
|
|
50
|
+
i0.ɵɵtext(1, "\u21E6");
|
|
49
51
|
i0.ɵɵelementEnd();
|
|
50
|
-
i0.ɵɵelementStart(1, "span", 18);
|
|
51
|
-
i0.ɵɵlistener("contextmenu", function NavigationComponent_kendo_drawer_container_3_ng_template_8_Template_span_contextmenu_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.onTabContextMenu($event, 0)); });
|
|
52
|
-
i0.ɵɵtext(2, "Home");
|
|
53
|
-
i0.ɵɵelementEnd();
|
|
54
|
-
} if (rf & 2) {
|
|
55
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
56
|
-
i0.ɵɵproperty("icon", ctx_r7.sharedService.kendoSVGIcon("home"));
|
|
57
|
-
} }
|
|
58
|
-
function NavigationComponent_kendo_drawer_container_3_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
-
i0.ɵɵelement(0, "router-outlet");
|
|
60
52
|
} }
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
i0.ɵɵelementStart(0, "kendo-svgicon",
|
|
64
|
-
i0.ɵɵlistener("contextmenu", function
|
|
53
|
+
function NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_1_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
55
|
+
i0.ɵɵelementStart(0, "kendo-svgicon", 25);
|
|
56
|
+
i0.ɵɵlistener("contextmenu", function NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_1_Template_kendo_svgicon_contextmenu_0_listener($event) { i0.ɵɵrestoreView(_r19); const i_r14 = i0.ɵɵnextContext().index; const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.onTabContextMenu($event, i_r14)); });
|
|
65
57
|
i0.ɵɵelementEnd();
|
|
66
58
|
} if (rf & 2) {
|
|
67
|
-
const
|
|
68
|
-
i0.ɵɵproperty("icon",
|
|
59
|
+
const ctx_r15 = i0.ɵɵnextContext(3);
|
|
60
|
+
i0.ɵɵproperty("icon", ctx_r15.sharedService.kendoSVGIcon("clock"));
|
|
69
61
|
} }
|
|
70
|
-
function
|
|
71
|
-
const
|
|
72
|
-
i0.ɵɵelementStart(0, "kendo-svgicon",
|
|
73
|
-
i0.ɵɵlistener("contextmenu", function
|
|
62
|
+
function NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_2_Template(rf, ctx) { if (rf & 1) {
|
|
63
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
64
|
+
i0.ɵɵelementStart(0, "kendo-svgicon", 25);
|
|
65
|
+
i0.ɵɵlistener("contextmenu", function NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_2_Template_kendo_svgicon_contextmenu_0_listener($event) { i0.ɵɵrestoreView(_r22); const i_r14 = i0.ɵɵnextContext().index; const ctx_r20 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r20.onTabContextMenu($event, i_r14)); });
|
|
74
66
|
i0.ɵɵelementEnd();
|
|
75
67
|
} if (rf & 2) {
|
|
76
|
-
const tab_r13 = i0.ɵɵnextContext(
|
|
77
|
-
const
|
|
78
|
-
i0.ɵɵproperty("icon",
|
|
68
|
+
const tab_r13 = i0.ɵɵnextContext().$implicit;
|
|
69
|
+
const ctx_r16 = i0.ɵɵnextContext(2);
|
|
70
|
+
i0.ɵɵproperty("icon", ctx_r16.sharedService.kendoSVGIcon(tab_r13.icon));
|
|
79
71
|
} }
|
|
80
|
-
function
|
|
81
|
-
const
|
|
82
|
-
i0.ɵɵ
|
|
83
|
-
i0.ɵɵ
|
|
84
|
-
i0.ɵɵ
|
|
85
|
-
i0.ɵɵ
|
|
72
|
+
function NavigationComponent_kendo_drawer_container_3_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
74
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
75
|
+
i0.ɵɵlistener("click", function NavigationComponent_kendo_drawer_container_3_div_12_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r25); const tab_r13 = restoredCtx.$implicit; const ctx_r24 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r24.selectTab(tab_r13)); });
|
|
76
|
+
i0.ɵɵtemplate(1, NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_1_Template, 1, 1, "kendo-svgicon", 23)(2, NavigationComponent_kendo_drawer_container_3_div_12_kendo_svgicon_2_Template, 1, 1, "kendo-svgicon", 23);
|
|
77
|
+
i0.ɵɵelementStart(3, "span", 15);
|
|
78
|
+
i0.ɵɵlistener("contextmenu", function NavigationComponent_kendo_drawer_container_3_div_12_Template_span_contextmenu_3_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r25); const i_r14 = restoredCtx.index; const ctx_r26 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r26.onTabContextMenu($event, i_r14)); });
|
|
79
|
+
i0.ɵɵtext(4);
|
|
86
80
|
i0.ɵɵelementEnd();
|
|
81
|
+
i0.ɵɵelementStart(5, "span", 24);
|
|
82
|
+
i0.ɵɵlistener("click", function NavigationComponent_kendo_drawer_container_3_div_12_Template_span_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r25); const tab_r13 = restoredCtx.$implicit; const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.closeTab(tab_r13)); });
|
|
83
|
+
i0.ɵɵtext(6, "\u2716");
|
|
84
|
+
i0.ɵɵelementEnd()();
|
|
87
85
|
} if (rf & 2) {
|
|
88
|
-
const tab_r13 =
|
|
86
|
+
const tab_r13 = ctx.$implicit;
|
|
87
|
+
const i_r14 = ctx.index;
|
|
88
|
+
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
89
|
+
i0.ɵɵproperty("ngClass", ctx_r8.activeTabIndex - 1 === i_r14 ? "single-tab-selected" : "");
|
|
90
|
+
i0.ɵɵadvance();
|
|
89
91
|
i0.ɵɵproperty("ngIf", tab_r13 == null ? null : tab_r13.contentLoading);
|
|
90
92
|
i0.ɵɵadvance();
|
|
91
93
|
i0.ɵɵproperty("ngIf", !(tab_r13 == null ? null : tab_r13.contentLoading) && (tab_r13 == null ? null : tab_r13.icon));
|
|
92
94
|
i0.ɵɵadvance(2);
|
|
93
95
|
i0.ɵɵtextInterpolate(tab_r13.labelLoading ? "Loading..." : tab_r13.label);
|
|
94
96
|
} }
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
i0.ɵɵelementStart(0, "
|
|
98
|
-
i0.ɵɵlistener("
|
|
97
|
+
function NavigationComponent_kendo_drawer_container_3_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
98
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
99
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
100
|
+
i0.ɵɵlistener("click", function NavigationComponent_kendo_drawer_container_3_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r28.scrollRight()); });
|
|
101
|
+
i0.ɵɵtext(1, "\u21E8");
|
|
99
102
|
i0.ɵɵelementEnd();
|
|
100
|
-
} if (rf & 2) {
|
|
101
|
-
const tab_r13 = i0.ɵɵnextContext().$implicit;
|
|
102
|
-
const ctx_r16 = i0.ɵɵnextContext(2);
|
|
103
|
-
i0.ɵɵproperty("Data", tab_r13.data)("isVisible", (tab_r13 == null ? null : tab_r13.id) === ctx_r16.getActiveTabId());
|
|
104
103
|
} }
|
|
105
|
-
function
|
|
106
|
-
i0.ɵɵ
|
|
107
|
-
i0.ɵɵ
|
|
108
|
-
i0.ɵɵ
|
|
104
|
+
function NavigationComponent_kendo_drawer_container_3_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
105
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
106
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "mj-resource", 27);
|
|
107
|
+
i0.ɵɵlistener("ResourceRecordSaved", function NavigationComponent_kendo_drawer_container_3_div_17_Template_mj_resource_ResourceRecordSaved_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r33); const tab_r30 = restoredCtx.$implicit; const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.SaveSingleWorkspaceItem(tab_r30)); })("ContentLoadingStarted", function NavigationComponent_kendo_drawer_container_3_div_17_Template_mj_resource_ContentLoadingStarted_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r33); const tab_r30 = restoredCtx.$implicit; const ctx_r34 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r34.setTabContentLoadingStatus(tab_r30, true)); })("ContentLoadingComplete", function NavigationComponent_kendo_drawer_container_3_div_17_Template_mj_resource_ContentLoadingComplete_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r33); const tab_r30 = restoredCtx.$implicit; const ctx_r35 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r35.setTabContentLoadingStatus(tab_r30, false)); });
|
|
108
|
+
i0.ɵɵelementEnd()();
|
|
109
109
|
} if (rf & 2) {
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
i0.ɵɵ
|
|
110
|
+
const tab_r30 = ctx.$implicit;
|
|
111
|
+
const i_r31 = ctx.index;
|
|
112
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
113
|
+
i0.ɵɵproperty("hidden", ctx_r10.activeTabIndex - 1 !== i_r31);
|
|
114
|
+
i0.ɵɵadvance();
|
|
115
|
+
i0.ɵɵproperty("Data", tab_r30.data)("isVisible", ctx_r10.activeTabIndex - 1 === i_r31);
|
|
113
116
|
} }
|
|
114
117
|
function NavigationComponent_kendo_drawer_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
-
const
|
|
118
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
116
119
|
i0.ɵɵelementStart(0, "kendo-drawer-container")(1, "kendo-drawer", 7, 8);
|
|
117
|
-
i0.ɵɵlistener("select", function NavigationComponent_kendo_drawer_container_3_Template_kendo_drawer_select_1_listener($event) { i0.ɵɵrestoreView(
|
|
120
|
+
i0.ɵɵlistener("select", function NavigationComponent_kendo_drawer_container_3_Template_kendo_drawer_select_1_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r36.onDrawerSelect($event)); });
|
|
118
121
|
i0.ɵɵelementEnd();
|
|
119
122
|
i0.ɵɵtemplate(3, NavigationComponent_kendo_drawer_container_3_div_3_Template, 2, 1, "div", 3);
|
|
120
|
-
i0.ɵɵelementStart(4, "kendo-drawer-content", 9)(5, "
|
|
121
|
-
i0.ɵɵ
|
|
122
|
-
i0.ɵɵelementStart(7, "
|
|
123
|
-
i0.ɵɵ
|
|
123
|
+
i0.ɵɵelementStart(4, "kendo-drawer-content", 9)(5, "div", 10);
|
|
124
|
+
i0.ɵɵtemplate(6, NavigationComponent_kendo_drawer_container_3_button_6_Template, 2, 0, "button", 11);
|
|
125
|
+
i0.ɵɵelementStart(7, "div", 12, 13)(9, "div", 14);
|
|
126
|
+
i0.ɵɵlistener("click", function NavigationComponent_kendo_drawer_container_3_Template_div_click_9_listener() { i0.ɵɵrestoreView(_r37); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.setActiveTabToHome()); });
|
|
127
|
+
i0.ɵɵelementStart(10, "span", 15);
|
|
128
|
+
i0.ɵɵlistener("contextmenu", function NavigationComponent_kendo_drawer_container_3_Template_span_contextmenu_10_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r39 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r39.onTabContextMenu($event, 0)); });
|
|
129
|
+
i0.ɵɵtext(11, "Home");
|
|
130
|
+
i0.ɵɵelementEnd()();
|
|
131
|
+
i0.ɵɵtemplate(12, NavigationComponent_kendo_drawer_container_3_div_12_Template, 7, 4, "div", 16);
|
|
132
|
+
i0.ɵɵelementEnd();
|
|
133
|
+
i0.ɵɵtemplate(13, NavigationComponent_kendo_drawer_container_3_button_13_Template, 2, 0, "button", 17);
|
|
124
134
|
i0.ɵɵelementEnd();
|
|
125
|
-
i0.ɵɵ
|
|
135
|
+
i0.ɵɵelementStart(14, "div", 18)(15, "div", 19);
|
|
136
|
+
i0.ɵɵelement(16, "router-outlet");
|
|
137
|
+
i0.ɵɵelementEnd();
|
|
138
|
+
i0.ɵɵtemplate(17, NavigationComponent_kendo_drawer_container_3_div_17_Template, 2, 3, "div", 20);
|
|
126
139
|
i0.ɵɵelementEnd()()();
|
|
127
140
|
} if (rf & 2) {
|
|
128
141
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -130,25 +143,31 @@ function NavigationComponent_kendo_drawer_container_3_Template(rf, ctx) { if (rf
|
|
|
130
143
|
i0.ɵɵproperty("items", ctx_r2.drawerItems)("mode", ctx_r2.mode)("mini", ctx_r2.mini)("animation", false)("autoCollapse", false);
|
|
131
144
|
i0.ɵɵadvance(2);
|
|
132
145
|
i0.ɵɵproperty("ngIf", ctx_r2.showExpansionPanel);
|
|
146
|
+
i0.ɵɵadvance(3);
|
|
147
|
+
i0.ɵɵproperty("ngIf", ctx_r2.showLeftButton);
|
|
148
|
+
i0.ɵɵadvance(3);
|
|
149
|
+
i0.ɵɵproperty("ngClass", ctx_r2.activeTabIndex === 0 ? "single-tab-selected" : "");
|
|
150
|
+
i0.ɵɵadvance(3);
|
|
151
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.tabs);
|
|
152
|
+
i0.ɵɵadvance();
|
|
153
|
+
i0.ɵɵproperty("ngIf", ctx_r2.showRightButton);
|
|
133
154
|
i0.ɵɵadvance(2);
|
|
134
|
-
i0.ɵɵproperty("
|
|
155
|
+
i0.ɵɵproperty("hidden", ctx_r2.activeTabIndex !== 0);
|
|
135
156
|
i0.ɵɵadvance(2);
|
|
136
|
-
i0.ɵɵproperty("selected", ctx_r2.activeTabIndex === 0)("closable", false);
|
|
137
|
-
i0.ɵɵadvance(3);
|
|
138
157
|
i0.ɵɵproperty("ngForOf", ctx_r2.tabs);
|
|
139
158
|
} }
|
|
140
159
|
function NavigationComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
141
|
-
const
|
|
142
|
-
i0.ɵɵelementStart(0, "div",
|
|
143
|
-
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
160
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
161
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "div", 29);
|
|
162
|
+
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r41); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.handleContextMenuOption(1)); });
|
|
144
163
|
i0.ɵɵtext(2, "Close All");
|
|
145
164
|
i0.ɵɵelementEnd();
|
|
146
|
-
i0.ɵɵelementStart(3, "div",
|
|
147
|
-
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_3_listener() { i0.ɵɵrestoreView(
|
|
165
|
+
i0.ɵɵelementStart(3, "div", 29);
|
|
166
|
+
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r41); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.handleContextMenuOption(2)); });
|
|
148
167
|
i0.ɵɵtext(4, "Close Others");
|
|
149
168
|
i0.ɵɵelementEnd();
|
|
150
|
-
i0.ɵɵelementStart(5, "div",
|
|
151
|
-
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_5_listener() { i0.ɵɵrestoreView(
|
|
169
|
+
i0.ɵɵelementStart(5, "div", 29);
|
|
170
|
+
i0.ɵɵlistener("click", function NavigationComponent_div_5_Template_div_click_5_listener() { i0.ɵɵrestoreView(_r41); const ctx_r43 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r43.handleContextMenuOption(3)); });
|
|
152
171
|
i0.ɵɵtext(6, "Close Tabs to the Right");
|
|
153
172
|
i0.ɵɵelementEnd()();
|
|
154
173
|
} if (rf & 2) {
|
|
@@ -201,12 +220,43 @@ export class NavigationComponent {
|
|
|
201
220
|
this.isMobileScreen = false;
|
|
202
221
|
this.contextMenuStyle = {};
|
|
203
222
|
this.contextMenuVisible = false;
|
|
223
|
+
this.showLeftButton = false;
|
|
224
|
+
this.showRightButton = false;
|
|
204
225
|
this._loggedIn = false;
|
|
205
226
|
this._earlyEvents = [];
|
|
206
227
|
this.gotFirstNav = false;
|
|
207
228
|
this._mostRecentURL = '';
|
|
208
229
|
this.tabs = [];
|
|
209
230
|
}
|
|
231
|
+
onResize(event) {
|
|
232
|
+
this.checkTabScrollButtons();
|
|
233
|
+
}
|
|
234
|
+
checkTabScrollButtons() {
|
|
235
|
+
if (this.tabInnerContainer && this.tabInnerContainer.nativeElement && this.tabInnerContainer.nativeElement.parentElement) {
|
|
236
|
+
const container = this.tabInnerContainer.nativeElement;
|
|
237
|
+
const parent = container.parentElement;
|
|
238
|
+
const currentLeft = container.style.left ? parseInt(container.style.left) : 0;
|
|
239
|
+
// show the right button if the container is wider than the parent AND the left position(which is zero or negative) + the container width is greater than the parent width
|
|
240
|
+
this.showRightButton = container.clientWidth > parent.clientWidth &&
|
|
241
|
+
currentLeft + container.clientWidth > parent.clientWidth;
|
|
242
|
+
// Show left button if left position is less than 0, meaning some of the left side of the container is off screen
|
|
243
|
+
this.showLeftButton = currentLeft < 0;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
scrollTabHeader(scrollAmount) {
|
|
247
|
+
const style = this.tabInnerContainer.nativeElement.style;
|
|
248
|
+
if (style) {
|
|
249
|
+
const curLeft = style.left ? parseInt(style.left) : 0;
|
|
250
|
+
style.left = (curLeft + scrollAmount) + 'px';
|
|
251
|
+
this.checkTabScrollButtons(); // can do immediately because the above is direct DOM manipulation so the effect is immediate
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
scrollLeft() {
|
|
255
|
+
this.scrollTabHeader(150);
|
|
256
|
+
}
|
|
257
|
+
scrollRight() {
|
|
258
|
+
this.scrollTabHeader(-150);
|
|
259
|
+
}
|
|
210
260
|
onTabContextMenu(event, tab) {
|
|
211
261
|
event.preventDefault();
|
|
212
262
|
this.selectedTabIndex = tab;
|
|
@@ -255,7 +305,7 @@ export class NavigationComponent {
|
|
|
255
305
|
yield transGroup.Submit();
|
|
256
306
|
if (this.activeTabIndex > this.tabs.length)
|
|
257
307
|
this.activeTabIndex = this.tabs.length - 1;
|
|
258
|
-
this.tabstrip.selectTab(this.activeTabIndex);
|
|
308
|
+
//this.tabstrip.selectTab(this.activeTabIndex);
|
|
259
309
|
if (this.activeTabIndex === 0) {
|
|
260
310
|
// in this situation we have the home tab showing, so we need to update the URL path based on what's selected in the drawer
|
|
261
311
|
let url = this.selectedDrawerItem ? this.selectedDrawerItem.path : '/home';
|
|
@@ -269,6 +319,9 @@ export class NavigationComponent {
|
|
|
269
319
|
this.isMobileScreen = window.innerWidth <= 840;
|
|
270
320
|
}
|
|
271
321
|
ngAfterViewInit() {
|
|
322
|
+
// check tab scroll buttons and bind to resize
|
|
323
|
+
this.checkTabScrollButtons();
|
|
324
|
+
window.addEventListener('resize', this.checkTabScrollButtons.bind(this));
|
|
272
325
|
MJGlobal.Instance.GetEventListener(true) // true gets us replay of past events so we can "catch up" as needed
|
|
273
326
|
.subscribe(event => {
|
|
274
327
|
this.handleEvent(event, event.args);
|
|
@@ -376,7 +429,7 @@ export class NavigationComponent {
|
|
|
376
429
|
// see if this matches a drawer item or not
|
|
377
430
|
const di = this.drawerItems;
|
|
378
431
|
//const item = di.find(i => (<any>i).path.toLowerCase().trim() === url.toLowerCase().trim());
|
|
379
|
-
const item = di.find(i => url.toLowerCase().trim().startsWith(i.path.toLowerCase().trim()));
|
|
432
|
+
const item = di.find(i => { var _a; return url.toLowerCase().trim().startsWith((_a = i.path) === null || _a === void 0 ? void 0 : _a.toLowerCase().trim()); });
|
|
380
433
|
if (item) {
|
|
381
434
|
this.selectDrawerItem(this.drawerItems.indexOf(item));
|
|
382
435
|
this.gotFirstNav = true;
|
|
@@ -422,10 +475,30 @@ export class NavigationComponent {
|
|
|
422
475
|
this.setActiveTabToHome();
|
|
423
476
|
}
|
|
424
477
|
setActiveTabToHome() {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
478
|
+
this.selectTab(null);
|
|
479
|
+
}
|
|
480
|
+
selectTab(tab) {
|
|
481
|
+
// get index from the tabs array
|
|
482
|
+
const index = tab ? this.tabs.indexOf(tab) + 1 : 0; // add one because the HOME tab is not in the array so we have to offset by 1 here for our data structure
|
|
483
|
+
if (this.activeTabIndex !== index) {
|
|
484
|
+
this.activeTabIndex = index;
|
|
485
|
+
this.sharedService.InvokeManualResize();
|
|
486
|
+
if (index === 0) {
|
|
487
|
+
let url = this.selectedDrawerItem ? this.selectedDrawerItem.path : '/home';
|
|
488
|
+
if (this.selectedDrawerItem !== null && this.selectedDrawerItem !== undefined)
|
|
489
|
+
url = this.selectedDrawerItem.path;
|
|
490
|
+
this.router.navigate([url]);
|
|
491
|
+
this.setAppTitle();
|
|
492
|
+
this._mostRecentURL = url;
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
const tab = this.tabs[index - 1];
|
|
496
|
+
if (tab) {
|
|
497
|
+
this.setAppTitle(tab.label);
|
|
498
|
+
const data = tab.data;
|
|
499
|
+
this.updateBrowserURL(tab, data);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
429
502
|
}
|
|
430
503
|
}
|
|
431
504
|
checkForBaseURL() {
|
|
@@ -500,6 +573,7 @@ export class NavigationComponent {
|
|
|
500
573
|
newTab.labelLoading = false;
|
|
501
574
|
if (newTab === this.tabs[this.activeTabIndex - 1]) // subtract one since the activeTabIndex is relative to the full set of tabs and the this.tabs array doesn't include the HOME tab
|
|
502
575
|
this.setAppTitle(newTab.label);
|
|
576
|
+
this.checkTabScrollButtons();
|
|
503
577
|
}), 10);
|
|
504
578
|
}));
|
|
505
579
|
});
|
|
@@ -551,7 +625,7 @@ export class NavigationComponent {
|
|
|
551
625
|
if (existingTab) {
|
|
552
626
|
const index = this.tabs.indexOf(existingTab);
|
|
553
627
|
this.activeTabIndex = index + 1; // add one because the HOME tab is not in the tabs array but it IS part of our tab structure
|
|
554
|
-
this.tabstrip.selectTab(this.activeTabIndex);
|
|
628
|
+
//this.tabstrip.selectTab(this.activeTabIndex);
|
|
555
629
|
this.scrollIntoView();
|
|
556
630
|
if (existingTab.label)
|
|
557
631
|
this.setAppTitle(existingTab.label);
|
|
@@ -574,7 +648,7 @@ export class NavigationComponent {
|
|
|
574
648
|
this.tabs.push(newTab);
|
|
575
649
|
// select the new tab
|
|
576
650
|
this.activeTabIndex = this.tabs.length; // this is intentionally past array boundary because ActiveTabIndex includes the Home tab that is not part of the tabs array
|
|
577
|
-
this.tabstrip.selectTab(this.activeTabIndex);
|
|
651
|
+
//this.tabstrip.selectTab(this.activeTabIndex);
|
|
578
652
|
//this.renderer.selectRootElement(this.tabstrip.wrapper.nativeElement).focus()
|
|
579
653
|
this.sharedService.InvokeManualResize();
|
|
580
654
|
this.scrollIntoView();
|
|
@@ -663,11 +737,11 @@ export class NavigationComponent {
|
|
|
663
737
|
this.setAppTitle(tab.label);
|
|
664
738
|
}
|
|
665
739
|
scrollIntoView() {
|
|
666
|
-
const containerElement = this.tabstrip.wrapper.nativeElement;
|
|
667
|
-
setTimeout(() => {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}, 200);
|
|
740
|
+
// const containerElement = this.tabstrip.wrapper.nativeElement;
|
|
741
|
+
// setTimeout(() => {
|
|
742
|
+
// const newTabElement = containerElement.querySelector(`li:nth-child(${this.activeTabIndex + 1})`);
|
|
743
|
+
// newTabElement.scrollIntoView({ inline: 'nearest' });
|
|
744
|
+
// }, 200);
|
|
671
745
|
}
|
|
672
746
|
GetWorkspaceItemDisplayName(data) {
|
|
673
747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -731,50 +805,38 @@ export class NavigationComponent {
|
|
|
731
805
|
tab.contentLoading = bLoading;
|
|
732
806
|
this.cdr.detectChanges(); // Manually trigger change detection
|
|
733
807
|
}
|
|
734
|
-
|
|
808
|
+
closeTab(tab) {
|
|
735
809
|
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
//
|
|
743
|
-
|
|
744
|
-
const tabs = this.tabs;
|
|
745
|
-
const tab = tabs[i];
|
|
746
|
-
if (tab) {
|
|
747
|
-
const data = tab.data;
|
|
748
|
-
this.updateBrowserURL(tab, data);
|
|
749
|
-
}
|
|
810
|
+
const tabIndex = this.tabs.indexOf(tab);
|
|
811
|
+
if (tabIndex >= 0) {
|
|
812
|
+
yield this.removeWorkspaceItem(this.tabs[tabIndex], null /*no transaction group*/);
|
|
813
|
+
// now, check to see how many tabs we have left and if we have none, then we need to select the HOME tab
|
|
814
|
+
if (this.tabs.length > 0) {
|
|
815
|
+
if (tabIndex > this.tabs.length) {
|
|
816
|
+
// we're closing the last tab, so select the tab to the left of it
|
|
817
|
+
this.activeTabIndex = 1 + (tabIndex - 1); // always add 1 to reflect the HOME tab that is not in the tabs array but it IS part of our tab structure
|
|
750
818
|
}
|
|
751
819
|
else {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
const data = tab.data;
|
|
762
|
-
this.updateBrowserURL(tab, data);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
else {
|
|
766
|
-
// the tab that will be selected is the HOME tab o we need to update
|
|
767
|
-
this.activeTabIndex = 0;
|
|
768
|
-
this.tabstrip.selectTab(0);
|
|
769
|
-
//this.renderer.selectRootElement(this.tabstrip.wrapper.nativeElement).focus()
|
|
770
|
-
// in this situation we have the home tab showing, so we need to update the URL path based on what's selected in the drawer
|
|
771
|
-
let url = this.selectedDrawerItem ? this.selectedDrawerItem.path : '/home';
|
|
772
|
-
this.router.navigate([url]);
|
|
773
|
-
//this.location.go(url); // update the browser URL if needed
|
|
774
|
-
this._mostRecentURL = url;
|
|
775
|
-
}
|
|
820
|
+
// we're closing a tab that is not the last tab, so we need to select the tab to the right of it
|
|
821
|
+
this.activeTabIndex = 1 + (tabIndex + 1); // always add 1 to reflect the HOME tab that is not in the tabs array but it IS part of our tab structure
|
|
822
|
+
}
|
|
823
|
+
const i = this.activeTabIndex > 0 ? this.activeTabIndex - 1 : 0;
|
|
824
|
+
const tabs = this.tabs;
|
|
825
|
+
const tab = tabs[i];
|
|
826
|
+
if (tab) {
|
|
827
|
+
const data = tab.data;
|
|
828
|
+
this.updateBrowserURL(tab, data);
|
|
776
829
|
}
|
|
777
|
-
}
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
// the tab that will be selected is the HOME tab o we need to update
|
|
833
|
+
this.activeTabIndex = 0;
|
|
834
|
+
// in this situation we have the home tab showing, so we need to update the URL path based on what's selected in the drawer
|
|
835
|
+
let url = this.selectedDrawerItem ? this.selectedDrawerItem.path : '/home';
|
|
836
|
+
this.router.navigate([url]);
|
|
837
|
+
//this.location.go(url); // update the browser URL if needed
|
|
838
|
+
this._mostRecentURL = url;
|
|
839
|
+
}
|
|
778
840
|
}
|
|
779
841
|
});
|
|
780
842
|
}
|
|
@@ -805,30 +867,6 @@ export class NavigationComponent {
|
|
|
805
867
|
}
|
|
806
868
|
});
|
|
807
869
|
}
|
|
808
|
-
onTabSelect(e) {
|
|
809
|
-
e.preventDefault();
|
|
810
|
-
if (this.activeTabIndex !== e.index) {
|
|
811
|
-
this.activeTabIndex = e.index;
|
|
812
|
-
this.sharedService.InvokeManualResize();
|
|
813
|
-
if (e.index === 0) {
|
|
814
|
-
let url = this.selectedDrawerItem ? this.selectedDrawerItem.path : '/home';
|
|
815
|
-
if (this.selectedDrawerItem !== null && this.selectedDrawerItem !== undefined)
|
|
816
|
-
url = this.selectedDrawerItem.path;
|
|
817
|
-
this.router.navigate([url]);
|
|
818
|
-
//this.location.go(url); // update the browser URL if needed
|
|
819
|
-
this.setAppTitle();
|
|
820
|
-
this._mostRecentURL = url;
|
|
821
|
-
}
|
|
822
|
-
else {
|
|
823
|
-
const tab = this.tabs[e.index - 1];
|
|
824
|
-
if (tab) {
|
|
825
|
-
this.setAppTitle(tab.label);
|
|
826
|
-
const data = tab.data;
|
|
827
|
-
this.updateBrowserURL(tab, data);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
870
|
getActiveTabId() {
|
|
833
871
|
var _a;
|
|
834
872
|
if (this.activeTabIndex === 0) {
|
|
@@ -854,7 +892,7 @@ export class NavigationComponent {
|
|
|
854
892
|
// make sure that the first tab is selected since this is showing stuff in the Home/Nav tab
|
|
855
893
|
if (this.activeTabIndex !== 0) {
|
|
856
894
|
this.activeTabIndex = 0;
|
|
857
|
-
this.tabstrip.selectTab(0);
|
|
895
|
+
//this.tabstrip.selectTab(0);
|
|
858
896
|
//this.renderer.selectRootElement(this.tabstrip.wrapper.nativeElement).focus()
|
|
859
897
|
}
|
|
860
898
|
this.setAppTitle(ev.item.text);
|
|
@@ -1041,21 +1079,21 @@ NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new
|
|
|
1041
1079
|
NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["app-navigation"]], viewQuery: function NavigationComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1042
1080
|
i0.ɵɵviewQuery(DrawerComponent, 5);
|
|
1043
1081
|
i0.ɵɵviewQuery(_c0, 5);
|
|
1044
|
-
i0.ɵɵviewQuery(_c1,
|
|
1045
|
-
i0.ɵɵviewQuery(_c2,
|
|
1082
|
+
i0.ɵɵviewQuery(_c1, 7, ElementRef);
|
|
1083
|
+
i0.ɵɵviewQuery(_c2, 5);
|
|
1046
1084
|
} if (rf & 2) {
|
|
1047
1085
|
let _t;
|
|
1048
1086
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drawer = _t.first);
|
|
1049
1087
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drawerWrapper = _t.first);
|
|
1050
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabstrip = _t.first);
|
|
1051
1088
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
1089
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabInnerContainer = _t.first);
|
|
1052
1090
|
} }, hostVars: 2, hostBindings: function NavigationComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1053
|
-
i0.ɵɵlistener("resize", function NavigationComponent_resize_HostBindingHandler() { return ctx.
|
|
1091
|
+
i0.ɵɵlistener("resize", function NavigationComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow)("click", function NavigationComponent_click_HostBindingHandler() { return ctx.onClick(); }, false, i0.ɵɵresolveDocument);
|
|
1054
1092
|
} if (rf & 2) {
|
|
1055
1093
|
i0.ɵɵclassProp("mobile-screen", ctx.isMobileScreen);
|
|
1056
|
-
} }, inputs: { applicationName: "applicationName" }, decls: 6, vars: 6, consts: [[1, "navigation-wrap", 3, "ngClass"], ["drawerWrapper", ""], ["type", "converging-spinner", 4, "ngIf"], [4, "ngIf"], ["action", "route"], ["class", "context-menu", 3, "ngStyle", 4, "ngIf"], ["type", "converging-spinner"], [3, "items", "mode", "mini", "animation", "autoCollapse", "select"], ["drawer", ""], ["mjFillContainer", ""], ["
|
|
1094
|
+
} }, inputs: { applicationName: "applicationName" }, decls: 6, vars: 6, consts: [[1, "navigation-wrap", 3, "ngClass"], ["drawerWrapper", ""], ["type", "converging-spinner", 4, "ngIf"], [4, "ngIf"], ["action", "route"], ["class", "context-menu", 3, "ngStyle", 4, "ngIf"], ["type", "converging-spinner"], [3, "items", "mode", "mini", "animation", "autoCollapse", "select"], ["drawer", ""], ["mjFillContainer", ""], [1, "tab-header-outer"], ["kendoButton", "", "class", "tab-scroll-button-left", 3, "click", 4, "ngIf"], [1, "tab-header-inner"], ["tabInnerContainer", ""], [1, "single-tab", 3, "ngClass", "click"], [1, "nav-tab-title", 3, "contextmenu"], ["class", "single-tab", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["kendoButton", "", "class", "tab-scroll-button-right", 3, "click", 4, "ngIf"], ["mjFillContainer", "", 1, "tab-body"], ["mjFillContainer", "", 1, "single-tab-body", 3, "hidden"], ["class", "single-tab-body", "mjFillContainer", "", 3, "hidden", 4, "ngFor", "ngForOf"], [3, "items"], ["kendoButton", "", 1, "tab-scroll-button-left", 3, "click"], [3, "icon", "contextmenu", 4, "ngIf"], [1, "tab-close-button", 3, "click"], [3, "icon", "contextmenu"], ["kendoButton", "", 1, "tab-scroll-button-right", 3, "click"], [3, "Data", "isVisible", "ResourceRecordSaved", "ContentLoadingStarted", "ContentLoadingComplete"], [1, "context-menu", 3, "ngStyle"], [1, "context-menu-item", 3, "click"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1057
1095
|
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
1058
|
-
i0.ɵɵtemplate(2, NavigationComponent_kendo_loader_2_Template, 1, 0, "kendo-loader", 2)(3, NavigationComponent_kendo_drawer_container_3_Template,
|
|
1096
|
+
i0.ɵɵtemplate(2, NavigationComponent_kendo_loader_2_Template, 1, 0, "kendo-loader", 2)(3, NavigationComponent_kendo_drawer_container_3_Template, 18, 12, "kendo-drawer-container", 3);
|
|
1059
1097
|
i0.ɵɵelement(4, "mj-skip-button", 4);
|
|
1060
1098
|
i0.ɵɵelementEnd();
|
|
1061
1099
|
i0.ɵɵtemplate(5, NavigationComponent_div_5_Template, 7, 1, "div", 5);
|
|
@@ -1067,10 +1105,10 @@ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Navigat
|
|
|
1067
1105
|
i0.ɵɵproperty("ngIf", !ctx.loading);
|
|
1068
1106
|
i0.ɵɵadvance(2);
|
|
1069
1107
|
i0.ɵɵproperty("ngIf", ctx.contextMenuVisible);
|
|
1070
|
-
} }, dependencies: [i3.NgClass, i3.NgForOf, i3.NgIf, i3.NgStyle, i1.RouterOutlet, i5.LoaderComponent, i6.
|
|
1108
|
+
} }, dependencies: [i3.NgClass, i3.NgForOf, i3.NgIf, i3.NgStyle, i1.RouterOutlet, i5.LoaderComponent, i6.ButtonComponent, i7.SVGIconComponent, i8.FillContainer, i9.DrawerComponent, i9.DrawerContainerComponent, i9.DrawerContentComponent, i10.SkipButtonComponent, i11.ResourceContainerComponent, i12.ExpansionPanelComponent], styles: [".navigation-wrap[_ngcontent-%COMP%] {\r\n height: calc(100vh - 80px);\r\n width: 100%;\r\n overflow:hidden\r\n}\r\n\r\n.nav-tab-title[_ngcontent-%COMP%] {\r\n margin-left: 10px;\r\n}\r\n\r\n.context-menu[_ngcontent-%COMP%] {\r\n position: fixed;\r\n z-index: 9999;\r\n background-color: #ffffff;\r\n border: 1px solid #ccc;\r\n padding: 3px 3px;\r\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);\r\n}\r\n\r\n.context-menu-item[_ngcontent-%COMP%] {\r\n padding: 8px 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.context-menu-item[_ngcontent-%COMP%]:hover {\r\n background-color: #f1f1f1;\r\n}\r\n .navigation-wrap .drawer-container {\r\n background: var(--gray-color);\r\n}\r\n .navigation-wrap .drawer-container .k-content {\r\n padding: 25px;\r\n}\r\n .navigation-wrap .drawer-container .k-tabstrip-items-wrapper {\r\n background: var(--med-gray);\r\n padding-left: 20px;\r\n}\r\n .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item.k-active{\r\n border: 1px solid var(--light-gray);\r\n background: var(--light-gray);\r\n border-radius: 8px 8px 0 0;\r\n color: var(--blue-text);\r\n\r\n}\r\n .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item:hover {\r\n color: var(--blue-text);\r\n}\r\n\r\n .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item {\r\n\r\n background: var(--med-gray);\r\n border-radius: 0;\r\n border-right: 1px solid #909090;\r\n}\r\n\r\n\r\n\r\n\r\n\n\r\n.tab-header-outer[_ngcontent-%COMP%] {\r\n position: relative;\r\n display: flex;\r\n align-items: center;\r\n overflow: hidden; \n\r\n background-color: #D5D8E5;\r\n}\r\n\r\n.tab-header-inner[_ngcontent-%COMP%] {\r\n display: flex;\r\n flex-direction: row;\r\n white-space: nowrap; \n\r\n position: relative; \n\r\n z-index: 1; \n\r\n\r\n padding-left: 5px;\r\n padding-top: 5px;\r\n background-color: #D5D8E5;\r\n border-bottom: #F5F6FA;\r\n}\r\n\r\n.tab-scroll-button-left[_ngcontent-%COMP%], .tab-scroll-button-right[_ngcontent-%COMP%] {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n z-index: 2; \n\r\n}\r\n\r\n.tab-scroll-button-left[_ngcontent-%COMP%] {\r\n left: 0;\r\n}\r\n\r\n.tab-scroll-button-right[_ngcontent-%COMP%] {\r\n right: 0;\r\n}\r\n\r\n\r\n.single-tab[_ngcontent-%COMP%] {\r\n flex: 0 0 auto; \n\r\n \n\r\n}\r\n\r\n\r\n.tab-body[_ngcontent-%COMP%] {\r\n border-top: 0;\r\n background-color: #F5F6FA; \r\n display: flex;\r\n width: 100%;\r\n height: 200px;\r\n}\r\n.single-tab[_ngcontent-%COMP%] {\r\n cursor: pointer;\r\n height: 26px;\r\n margin-right: 1px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 5px;\r\n border-radius: 8px 8px 0 0;\r\n border-top: solid 1px #D5D8E5;;\r\n border-left: solid 1px #D5D8E5;;\r\n border-right: solid 1px #D5D8E5;;\r\n border-bottom: 0;\r\n background-color: #D5D8E5;\r\n font-size: 14px;\r\n}\r\n.single-tab[_ngcontent-%COMP%]:hover {\r\n color: blue;\r\n}\r\n.single-tab-selected[_ngcontent-%COMP%] {\r\n background-color: #F5F6FA;\r\n font-weight: bold;\r\n}\r\n\r\n.tab-close-button[_ngcontent-%COMP%] {\r\n cursor: pointer;\r\n margin-left: 10px;\r\n padding: 2px;\r\n}\r\n.tab-close-button[_ngcontent-%COMP%]:hover {\r\n background-color: #526ff3;\r\n color: black;\r\n}"] });
|
|
1071
1109
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationComponent, [{
|
|
1072
1110
|
type: Component,
|
|
1073
|
-
args: [{ selector: 'app-navigation', template: "<div class=\"navigation-wrap\" [ngClass]=\"{'waiting': loader}\" #drawerWrapper>\r\n <kendo-loader *ngIf=\"loading\" type=\"converging-spinner\" ></kendo-loader>\r\n <kendo-drawer-container *ngIf=\"!loading\" >\r\n <kendo-drawer\r\n #drawer\r\n [items]=\"drawerItems\"\r\n [mode]=\"mode\"\r\n [mini]=\"mini\"\r\n [animation]=\"false\"\r\n (select)=\"onDrawerSelect($event)\"\r\n [autoCollapse]=\"false\"\r\n />\r\n <div *ngIf=\"showExpansionPanel\">\r\n <expansion-panel-component [items]=\"panelItems\" />\r\n </div>\r\n <kendo-drawer-content mjFillContainer>\r\n <kendo-tabstrip mjFillContainer class=\"drawer-container\" [scrollable]=\"true\" [keepTabContent]=\"true\" (tabClose)=\"onClose($event)\" (tabSelect)=\"onTabSelect($event)\" [animate]=\"false\" #tabstrip>\r\n <kendo-tabstrip-tab [selected]=\"activeTabIndex === 0\" [closable]=\"false\">\r\n <ng-template kendoTabTitle>\r\n <kendo-svgicon name=\"home\" [icon]=\"sharedService.kendoSVGIcon('home')\" (contextmenu)=\"onTabContextMenu($event, 0)\"></kendo-svgicon>\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, 0)\">Home</span>\r\n </ng-template>\r\n <ng-template kendoTabContent class=\"navigation-tab-contents\">\r\n <router-outlet></router-outlet>\r\n </ng-template>\r\n </kendo-tabstrip-tab>\r\n <kendo-tabstrip-tab *ngFor=\"let tab of tabs;let i = index\" [selected]=\"isTabActive(tab.id)\" [closable]=\"true\">\r\n <ng-template kendoTabTitle>\r\n <kendo-svgicon *ngIf=\"tab?.contentLoading\" [icon]=\"sharedService.kendoSVGIcon('clock')\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <kendo-svgicon *ngIf=\"!tab?.contentLoading && tab?.icon\" [icon]=\"sharedService.kendoSVGIcon(tab.icon)\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, i)\">{{ tab.labelLoading ? 'Loading...' : tab.label }}</span>\r\n </ng-template>\r\n <ng-template kendoTabContent class=\"navigation-tab-contents\">\r\n <app-resource [Data]=\"tab.data\" [isVisible]=\"tab?.id === getActiveTabId()\"\r\n (ResourceRecordSaved)=\"SaveSingleWorkspaceItem(tab)\"\r\n (ContentLoadingStarted)=\"setTabContentLoadingStatus(tab, true)\"\r\n (ContentLoadingComplete)=\"setTabContentLoadingStatus(tab, false)\"\r\n ></app-resource>\r\n </ng-template>\r\n </kendo-tabstrip-tab>\r\n </kendo-tabstrip
|
|
1111
|
+
args: [{ selector: 'app-navigation', template: "<div class=\"navigation-wrap\" [ngClass]=\"{'waiting': loader}\" #drawerWrapper>\r\n <kendo-loader *ngIf=\"loading\" type=\"converging-spinner\" ></kendo-loader>\r\n <kendo-drawer-container *ngIf=\"!loading\" >\r\n <kendo-drawer\r\n #drawer\r\n [items]=\"drawerItems\"\r\n [mode]=\"mode\"\r\n [mini]=\"mini\"\r\n [animation]=\"false\"\r\n (select)=\"onDrawerSelect($event)\"\r\n [autoCollapse]=\"false\"\r\n />\r\n <div *ngIf=\"showExpansionPanel\">\r\n <expansion-panel-component [items]=\"panelItems\" />\r\n </div>\r\n <kendo-drawer-content mjFillContainer>\r\n <!--\r\n TEST TAB SECTION\r\n -->\r\n\r\n <!--TAB HEADER-->\r\n <div class=\"tab-header-outer\">\r\n <button kendoButton *ngIf=\"showLeftButton\" class=\"tab-scroll-button-left\" (click)=\"scrollLeft()\">\u21E6</button>\r\n <div class=\"tab-header-inner\" #tabInnerContainer>\r\n <div class=\"single-tab\"\r\n [ngClass]=\"activeTabIndex === 0 ? 'single-tab-selected' : ''\"\r\n (click)=\"setActiveTabToHome()\">\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, 0)\">Home</span>\r\n </div>\r\n <div *ngFor=\"let tab of tabs; let i = index\" class=\"single-tab\"\r\n [ngClass]=\"activeTabIndex - 1 === i ? 'single-tab-selected' : ''\"\r\n (click)=\"selectTab(tab)\">\r\n <kendo-svgicon *ngIf=\"tab?.contentLoading\" [icon]=\"sharedService.kendoSVGIcon('clock')\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <kendo-svgicon *ngIf=\"!tab?.contentLoading && tab?.icon\" [icon]=\"sharedService.kendoSVGIcon(tab.icon)\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, i)\">{{ tab.labelLoading ? 'Loading...' : tab.label }}</span>\r\n <span class=\"tab-close-button\" (click)=\"closeTab(tab)\" >\u2716</span>\r\n </div>\r\n </div> \r\n <button kendoButton *ngIf=\"showRightButton\" class=\"tab-scroll-button-right\" (click)=\"scrollRight()\">\u21E8</button>\r\n </div>\r\n <!--TAB BODY-->\r\n <div class=\"tab-body\" mjFillContainer>\r\n <div class=\"single-tab-body\" \r\n [hidden]=\"activeTabIndex !== 0\" \r\n mjFillContainer >\r\n <router-outlet></router-outlet>\r\n </div>\r\n <div *ngFor=\"let tab of tabs; let i = index\" class=\"single-tab-body\" \r\n [hidden]=\"activeTabIndex -1 !== i\"\r\n mjFillContainer >\r\n <mj-resource [Data]=\"tab.data\"\r\n [isVisible]=\"activeTabIndex -1 === i\" \r\n (ResourceRecordSaved)=\"SaveSingleWorkspaceItem(tab)\"\r\n (ContentLoadingStarted)=\"setTabContentLoadingStatus(tab, true)\"\r\n (ContentLoadingComplete)=\"setTabContentLoadingStatus(tab, false)\"\r\n >\r\n </mj-resource>\r\n </div>\r\n </div>\r\n\r\n <!--\r\n END OF TEST TAB SECTION\r\n -->\r\n<!-- \r\n <kendo-tabstrip mjFillContainer class=\"drawer-container\" [scrollable]=\"true\" [keepTabContent]=\"true\" (tabClose)=\"onClose($event)\" (tabSelect)=\"onTabSelect($event)\" [animate]=\"false\" #tabstrip>\r\n <kendo-tabstrip-tab [selected]=\"activeTabIndex === 0\" [closable]=\"false\">\r\n <ng-template kendoTabTitle>\r\n <kendo-svgicon name=\"home\" [icon]=\"sharedService.kendoSVGIcon('home')\" (contextmenu)=\"onTabContextMenu($event, 0)\"></kendo-svgicon>\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, 0)\">Home</span>\r\n </ng-template>\r\n <ng-template kendoTabContent class=\"navigation-tab-contents\">\r\n <router-outlet></router-outlet>\r\n </ng-template>\r\n </kendo-tabstrip-tab>\r\n <kendo-tabstrip-tab *ngFor=\"let tab of tabs;let i = index\" [selected]=\"isTabActive(tab.id)\" [closable]=\"true\">\r\n <ng-template kendoTabTitle>\r\n <kendo-svgicon *ngIf=\"tab?.contentLoading\" [icon]=\"sharedService.kendoSVGIcon('clock')\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <kendo-svgicon *ngIf=\"!tab?.contentLoading && tab?.icon\" [icon]=\"sharedService.kendoSVGIcon(tab.icon)\" (contextmenu)=\"onTabContextMenu($event, i)\"></kendo-svgicon>\r\n <span class=\"nav-tab-title\" (contextmenu)=\"onTabContextMenu($event, i)\">{{ tab.labelLoading ? 'Loading...' : tab.label }}</span>\r\n </ng-template>\r\n <ng-template kendoTabContent class=\"navigation-tab-contents\">\r\n <app-resource [Data]=\"tab.data\" [isVisible]=\"tab?.id === getActiveTabId()\"\r\n (ResourceRecordSaved)=\"SaveSingleWorkspaceItem(tab)\"\r\n (ContentLoadingStarted)=\"setTabContentLoadingStatus(tab, true)\"\r\n (ContentLoadingComplete)=\"setTabContentLoadingStatus(tab, false)\"\r\n ></app-resource>\r\n </ng-template>\r\n </kendo-tabstrip-tab>\r\n </kendo-tabstrip> -->\r\n </kendo-drawer-content>\r\n </kendo-drawer-container>\r\n\r\n \r\n <mj-skip-button\r\n action=\"route\"\r\n ></mj-skip-button>\r\n <!-- Skip Button shows up through the above line of code -->\r\n</div>\r\n\r\n<div class=\"context-menu\" [ngStyle]=\"contextMenuStyle\" *ngIf=\"contextMenuVisible\">\r\n <div class=\"context-menu-item\" (click)=\"handleContextMenuOption(1)\">Close All</div>\r\n <div class=\"context-menu-item\" (click)=\"handleContextMenuOption(2)\">Close Others</div>\r\n <div class=\"context-menu-item\" (click)=\"handleContextMenuOption(3)\">Close Tabs to the Right</div>\r\n </div>\r\n", styles: [".navigation-wrap {\r\n height: calc(100vh - 80px);\r\n width: 100%;\r\n overflow:hidden\r\n}\r\n\r\n.nav-tab-title {\r\n margin-left: 10px;\r\n}\r\n\r\n.context-menu {\r\n position: fixed;\r\n z-index: 9999;\r\n background-color: #ffffff;\r\n border: 1px solid #ccc;\r\n padding: 3px 3px;\r\n box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);\r\n}\r\n\r\n.context-menu-item {\r\n padding: 8px 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.context-menu-item:hover {\r\n background-color: #f1f1f1;\r\n}\r\n::ng-deep .navigation-wrap .drawer-container {\r\n background: var(--gray-color);\r\n}\r\n::ng-deep .navigation-wrap .drawer-container .k-content {\r\n padding: 25px;\r\n}\r\n::ng-deep .navigation-wrap .drawer-container .k-tabstrip-items-wrapper {\r\n background: var(--med-gray);\r\n padding-left: 20px;\r\n}\r\n::ng-deep .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item.k-active{\r\n border: 1px solid var(--light-gray);\r\n background: var(--light-gray);\r\n border-radius: 8px 8px 0 0;\r\n color: var(--blue-text);\r\n\r\n}\r\n::ng-deep .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item:hover {\r\n color: var(--blue-text);\r\n}\r\n\r\n::ng-deep .navigation-wrap .drawer-container .k-tabstrip-items-wrapper .k-item {\r\n\r\n background: var(--med-gray);\r\n border-radius: 0;\r\n border-right: 1px solid #909090;\r\n}\r\n\r\n\r\n/***\r\n* TEST TAB AREA *\r\n***/\r\n.tab-header-outer {\r\n position: relative;\r\n display: flex;\r\n align-items: center;\r\n overflow: hidden; /* Hide the overflow */\r\n background-color: #D5D8E5;\r\n}\r\n\r\n.tab-header-inner {\r\n display: flex;\r\n flex-direction: row;\r\n white-space: nowrap; /* Prevent wrapping of tabs */\r\n position: relative; /* Needed for z-index to work */\r\n z-index: 1; /* Place tabs above the content */\r\n\r\n padding-left: 5px;\r\n padding-top: 5px;\r\n background-color: #D5D8E5;\r\n border-bottom: #F5F6FA;\r\n}\r\n\r\n.tab-scroll-button-left, .tab-scroll-button-right {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n z-index: 2; /* Ensure buttons are above the content */\r\n}\r\n\r\n.tab-scroll-button-left {\r\n left: 0;\r\n}\r\n\r\n.tab-scroll-button-right {\r\n right: 0;\r\n}\r\n\r\n\r\n.single-tab {\r\n flex: 0 0 auto; /* Prevent tabs from shrinking */\r\n /* Style your tabs as needed */\r\n}\r\n\r\n\r\n.tab-body {\r\n border-top: 0;\r\n background-color: #F5F6FA; \r\n display: flex;\r\n width: 100%;\r\n height: 200px;\r\n}\r\n.single-tab {\r\n cursor: pointer;\r\n height: 26px;\r\n margin-right: 1px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 5px;\r\n border-radius: 8px 8px 0 0;\r\n border-top: solid 1px #D5D8E5;;\r\n border-left: solid 1px #D5D8E5;;\r\n border-right: solid 1px #D5D8E5;;\r\n border-bottom: 0;\r\n background-color: #D5D8E5;\r\n font-size: 14px;\r\n}\r\n.single-tab:hover {\r\n color: blue;\r\n}\r\n.single-tab-selected {\r\n background-color: #F5F6FA;\r\n font-weight: bold;\r\n}\r\n\r\n.tab-close-button {\r\n cursor: pointer;\r\n margin-left: 10px;\r\n padding: 2px;\r\n}\r\n.tab-close-button:hover {\r\n background-color: #526ff3;\r\n color: black;\r\n}"] }]
|
|
1074
1112
|
}], () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.SharedService }, { type: i3.Location }, { type: i0.Renderer2 }, { type: i4.Title }, { type: i0.ChangeDetectorRef }], { applicationName: [{
|
|
1075
1113
|
type: Input
|
|
1076
1114
|
}], isMobileScreen: [{
|
|
@@ -1082,9 +1120,6 @@ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Navigat
|
|
|
1082
1120
|
}], drawerWrapper: [{
|
|
1083
1121
|
type: ViewChild,
|
|
1084
1122
|
args: ['drawerWrapper', { static: false }]
|
|
1085
|
-
}], tabstrip: [{
|
|
1086
|
-
type: ViewChild,
|
|
1087
|
-
args: ["tabstrip", { static: false }]
|
|
1088
1123
|
}], container: [{
|
|
1089
1124
|
type: ViewChild,
|
|
1090
1125
|
args: ['container', { static: true, read: ElementRef }]
|
|
@@ -1094,5 +1129,11 @@ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Navigat
|
|
|
1094
1129
|
}], onClick: [{
|
|
1095
1130
|
type: HostListener,
|
|
1096
1131
|
args: ['document:click']
|
|
1132
|
+
}], tabInnerContainer: [{
|
|
1133
|
+
type: ViewChild,
|
|
1134
|
+
args: ['tabInnerContainer']
|
|
1135
|
+
}], onResize: [{
|
|
1136
|
+
type: HostListener,
|
|
1137
|
+
args: ['window:resize', ['$event']]
|
|
1097
1138
|
}] }); })();
|
|
1098
1139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NavigationComponent, { className: "NavigationComponent", filePath: "src\\lib\\navigation\\navigation.component.ts", lineNumber: 30 }); })();
|