phoenix-ui-components 2.11.4 → 2.12.0
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/components/embed-menu/embed-menu.component.d.ts +1 -1
- package/dist/components/embed-menu/experiment-link/experiment-link.component.d.ts +1 -1
- package/dist/components/file-explorer/file-explorer.component.d.ts +1 -1
- package/dist/components/loader/loader.component.d.ts +1 -1
- package/dist/components/nav/nav.component.d.ts +1 -1
- package/dist/components/phoenix-menu/config/config-slider/config-slider.component.d.ts +1 -1
- package/dist/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.d.ts +1 -1
- package/dist/components/phoenix-menu/phoenix-menu.component.d.ts +1 -1
- package/dist/components/ring-loader/ring-loader.component.d.ts +1 -1
- package/dist/components/ui-menu/animate-camera/animate-camera.component.d.ts +1 -1
- package/dist/components/ui-menu/animate-event/animate-event.component.d.ts +1 -1
- package/dist/components/ui-menu/ar-toggle/ar-toggle.component.d.ts +1 -1
- package/dist/components/ui-menu/auto-rotate/auto-rotate.component.d.ts +1 -1
- package/dist/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.d.ts +1 -1
- package/dist/components/ui-menu/collections-info/collections-info.component.d.ts +1 -1
- package/dist/components/ui-menu/cycle-events/cycle-events.component.d.ts +1 -1
- package/dist/components/ui-menu/dark-theme/dark-theme.component.d.ts +1 -1
- package/dist/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.d.ts +3 -2
- package/dist/components/ui-menu/event-data-explorer/event-data-explorer.component.d.ts +1 -1
- package/dist/components/ui-menu/event-selector/event-selector.component.d.ts +1 -1
- package/dist/components/ui-menu/experiment-info/experiment-info.component.d.ts +1 -1
- package/dist/components/ui-menu/info-panel/info-panel-overlay/info-panel-overlay.component.d.ts +1 -1
- package/dist/components/ui-menu/info-panel/info-panel.component.d.ts +1 -1
- package/dist/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.d.ts +2 -1
- package/dist/components/ui-menu/io-options/io-options.component.d.ts +1 -1
- package/dist/components/ui-menu/main-view-toggle/main-view-toggle.component.d.ts +1 -1
- package/dist/components/ui-menu/menu-toggle/menu-toggle.component.d.ts +1 -1
- package/dist/components/ui-menu/object-clipping/object-clipping.component.d.ts +3 -4
- package/dist/components/ui-menu/object-selection/object-selection-overlay/object-selection-overlay.component.d.ts +1 -1
- package/dist/components/ui-menu/object-selection/object-selection.component.d.ts +1 -1
- package/dist/components/ui-menu/overlay/overlay.component.d.ts +1 -1
- package/dist/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.d.ts +1 -1
- package/dist/components/ui-menu/overlay-view/overlay-view.component.d.ts +1 -1
- package/dist/components/ui-menu/performance-toggle/performance-toggle.component.d.ts +1 -1
- package/dist/components/ui-menu/share-link/share-link-dialog/share-link-dialog.component.d.ts +1 -1
- package/dist/components/ui-menu/share-link/share-link.component.d.ts +1 -1
- package/dist/components/ui-menu/ss-mode/ss-mode.component.d.ts +1 -1
- package/dist/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.d.ts +1 -1
- package/dist/components/ui-menu/tree-menu/tree-menu.component.d.ts +1 -1
- package/dist/components/ui-menu/ui-menu-wrapper/ui-menu-wrapper.component.d.ts +1 -1
- package/dist/components/ui-menu/ui-menu.component.d.ts +1 -1
- package/dist/components/ui-menu/view-options/view-options.component.d.ts +1 -1
- package/dist/components/ui-menu/vr-toggle/vr-toggle.component.d.ts +1 -1
- package/dist/components/ui-menu/zoom-controls/zoom-controls.component.d.ts +1 -1
- package/dist/esm2020/components/embed-menu/embed-menu.component.mjs +11 -7
- package/dist/esm2020/components/embed-menu/experiment-link/experiment-link.component.mjs +11 -7
- package/dist/esm2020/components/file-explorer/file-explorer.component.mjs +59 -11
- package/dist/esm2020/components/loader/loader.component.mjs +53 -11
- package/dist/esm2020/components/nav/nav.component.mjs +11 -7
- package/dist/esm2020/components/phoenix-menu/config/config-slider/config-slider.component.mjs +42 -22
- package/dist/esm2020/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.mjs +281 -12
- package/dist/esm2020/components/phoenix-menu/phoenix-menu.component.mjs +16 -9
- package/dist/esm2020/components/phoenix-ui.module.mjs +68 -67
- package/dist/esm2020/components/ring-loader/ring-loader.component.mjs +11 -7
- package/dist/esm2020/components/ui-menu/animate-camera/animate-camera.component.mjs +34 -9
- package/dist/esm2020/components/ui-menu/animate-event/animate-event.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/ar-toggle/ar-toggle.component.mjs +41 -7
- package/dist/esm2020/components/ui-menu/auto-rotate/auto-rotate.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.mjs +188 -9
- package/dist/esm2020/components/ui-menu/collections-info/collections-info.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/cycle-events/cycle-events.component.mjs +15 -9
- package/dist/esm2020/components/ui-menu/dark-theme/dark-theme.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.mjs +83 -13
- package/dist/esm2020/components/ui-menu/event-data-explorer/event-data-explorer.component.mjs +15 -9
- package/dist/esm2020/components/ui-menu/event-selector/event-selector.component.mjs +32 -7
- package/dist/esm2020/components/ui-menu/experiment-info/experiment-info.component.mjs +81 -13
- package/dist/esm2020/components/ui-menu/info-panel/info-panel-overlay/info-panel-overlay.component.mjs +38 -9
- package/dist/esm2020/components/ui-menu/info-panel/info-panel.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.mjs +122 -10
- package/dist/esm2020/components/ui-menu/io-options/io-options.component.mjs +15 -9
- package/dist/esm2020/components/ui-menu/main-view-toggle/main-view-toggle.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/menu-toggle/menu-toggle.component.mjs +29 -15
- package/dist/esm2020/components/ui-menu/object-clipping/object-clipping.component.mjs +42 -11
- package/dist/esm2020/components/ui-menu/object-selection/object-selection-overlay/object-selection-overlay.component.mjs +40 -9
- package/dist/esm2020/components/ui-menu/object-selection/object-selection.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/overlay/overlay.component.mjs +102 -23
- package/dist/esm2020/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.mjs +38 -12
- package/dist/esm2020/components/ui-menu/overlay-view/overlay-view.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/performance-toggle/performance-toggle.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/share-link/share-link-dialog/share-link-dialog.component.mjs +94 -10
- package/dist/esm2020/components/ui-menu/share-link/share-link.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/ss-mode/ss-mode.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.mjs +69 -12
- package/dist/esm2020/components/ui-menu/tree-menu/tree-menu.component.mjs +14 -7
- package/dist/esm2020/components/ui-menu/ui-menu-wrapper/ui-menu-wrapper.component.mjs +26 -7
- package/dist/esm2020/components/ui-menu/ui-menu.component.mjs +23 -11
- package/dist/esm2020/components/ui-menu/view-options/view-options.component.mjs +54 -7
- package/dist/esm2020/components/ui-menu/vr-toggle/vr-toggle.component.mjs +13 -7
- package/dist/esm2020/components/ui-menu/zoom-controls/zoom-controls.component.mjs +19 -7
- package/dist/esm2020/services/error-message-service.mjs +9 -9
- package/dist/esm2020/services/event-display.service.mjs +9 -9
- package/dist/esm2020/services/extras/attribute.pipe.mjs +9 -9
- package/dist/esm2020/services/extras/event-data-import.mjs +2 -1
- package/dist/esm2020/services/global-error-handler.mjs +6 -6
- package/dist/fesm2015/phoenix-ui-components.mjs +2217 -336
- package/dist/fesm2015/phoenix-ui-components.mjs.map +1 -1
- package/dist/fesm2020/phoenix-ui-components.mjs +1918 -463
- package/dist/fesm2020/phoenix-ui-components.mjs.map +1 -1
- package/dist/services/extras/event-data-import.d.ts +1 -0
- package/package.json +7 -7
|
@@ -14,7 +14,7 @@ import * as i4 from '@angular/material/checkbox';
|
|
|
14
14
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
15
15
|
import * as i5 from '@rp3e11/ngx-slider';
|
|
16
16
|
import { NgxSliderModule } from '@rp3e11/ngx-slider';
|
|
17
|
-
import { EventDisplay, SceneManager, PrettySymbols, JiveXMLLoader, CMSLoader, readZipFile, VRManager, XRSessionType, ARManager, phoenixURLOptions, ActiveVariable } from 'phoenix-event-display';
|
|
17
|
+
import { EventDisplay, SceneManager, PrettySymbols, Edm4hepJsonLoader, JiveXMLLoader, CMSLoader, readZipFile, VRManager, XRSessionType, ARManager, phoenixURLOptions, ActiveVariable } from 'phoenix-event-display';
|
|
18
18
|
import * as i3$1 from '@angular/material/menu';
|
|
19
19
|
import { MatMenuModule } from '@angular/material/menu';
|
|
20
20
|
import * as i2$3 from '@angular/material/tooltip';
|
|
@@ -34,6 +34,7 @@ import QRCode from 'qrcode';
|
|
|
34
34
|
import * as i2$5 from '@angular/cdk/tree';
|
|
35
35
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
36
36
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
37
|
+
import JSZip from 'jszip';
|
|
37
38
|
import * as i5$1 from '@angular/material/tabs';
|
|
38
39
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
39
40
|
|
|
@@ -41,13 +42,26 @@ class NavComponent {
|
|
|
41
42
|
constructor() { }
|
|
42
43
|
ngOnInit() { }
|
|
43
44
|
}
|
|
44
|
-
NavComponent.ɵfac =
|
|
45
|
-
NavComponent.ɵcmp = i0.ɵɵ
|
|
46
|
-
i0.ɵɵ
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
NavComponent.ɵfac = function NavComponent_Factory(t) { return new (t || NavComponent)(); };
|
|
46
|
+
NavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavComponent, selectors: [["app-nav"]], decls: 2, vars: 0, consts: [["id", "mainLogo", "routerLink", "/", 1, "main-logo", "fixed-top", "p-2", "mx-auto", "mt-2"], ["src", "assets/images/logo-text.svg"]], template: function NavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
+
i0.ɵɵelementStart(0, "a", 0);
|
|
48
|
+
i0.ɵɵelement(1, "img", 1);
|
|
49
|
+
i0.ɵɵelementEnd();
|
|
50
|
+
} }, dependencies: [i1.RouterLink], styles: [".main-logo[_ngcontent-%COMP%]{width:140px;z-index:9999}.main-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:all .5s}.main-logo[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{filter:drop-shadow(0px 0px 10px var(--phoenix-text-color));transition:all .5s}"] });
|
|
51
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavComponent, [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{ selector: 'app-nav', template: "<a id=\"mainLogo\" class=\"main-logo fixed-top p-2 mx-auto mt-2\" routerLink=\"/\">\n <img src=\"assets/images/logo-text.svg\" />\n</a>\n", styles: [".main-logo{width:140px;z-index:9999}.main-logo img{transition:all .5s}.main-logo:hover img{filter:drop-shadow(0px 0px 10px var(--phoenix-text-color));transition:all .5s}\n"] }]
|
|
54
|
+
}], function () { return []; }, null); })();
|
|
50
55
|
|
|
56
|
+
function ConfigSliderComponent_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
58
|
+
i0.ɵɵelementStart(0, "input", 4);
|
|
59
|
+
i0.ɵɵlistener("input", function ConfigSliderComponent_input_3_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onValueChange($event.target.value)); });
|
|
60
|
+
i0.ɵɵelementEnd();
|
|
61
|
+
} if (rf & 2) {
|
|
62
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
63
|
+
i0.ɵɵproperty("value", ctx_r0.value);
|
|
64
|
+
} }
|
|
51
65
|
class ConfigSliderComponent {
|
|
52
66
|
constructor() {
|
|
53
67
|
this.value = 0;
|
|
@@ -58,30 +72,285 @@ class ConfigSliderComponent {
|
|
|
58
72
|
this.onChange = new EventEmitter();
|
|
59
73
|
}
|
|
60
74
|
onValueChange(value) {
|
|
61
|
-
|
|
62
|
-
this.onChange.emit(value);
|
|
63
|
-
}
|
|
75
|
+
value && this.onChange.emit(value);
|
|
64
76
|
}
|
|
65
77
|
}
|
|
66
|
-
ConfigSliderComponent.ɵfac =
|
|
67
|
-
ConfigSliderComponent.ɵcmp = i0.ɵɵ
|
|
68
|
-
i0.ɵɵ
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
ConfigSliderComponent.ɵfac = function ConfigSliderComponent_Factory(t) { return new (t || ConfigSliderComponent)(); };
|
|
79
|
+
ConfigSliderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfigSliderComponent, selectors: [["app-config-slider"]], inputs: { value: "value", min: "min", max: "max", step: "step", allowCustomValue: "allowCustomValue" }, outputs: { onChange: "onChange" }, decls: 4, vars: 5, consts: [[1, "d-flex", "flex-row", "align-items-center"], ["thumbLabel", "", 1, "mx-2", 3, "min", "max", "step"], ["matSliderThumb", "", 3, "value", "valueChange"], ["class", "config-slider-input", "type", "number", 3, "value", "input", 4, "ngIf"], ["type", "number", 1, "config-slider-input", 3, "value", "input"]], template: function ConfigSliderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mat-slider", 1)(2, "input", 2);
|
|
81
|
+
i0.ɵɵlistener("valueChange", function ConfigSliderComponent_Template_input_valueChange_2_listener($event) { return ctx.onValueChange($event); });
|
|
82
|
+
i0.ɵɵelementEnd()();
|
|
83
|
+
i0.ɵɵtemplate(3, ConfigSliderComponent_input_3_Template, 1, 1, "input", 3);
|
|
84
|
+
i0.ɵɵelementEnd();
|
|
85
|
+
} if (rf & 2) {
|
|
86
|
+
i0.ɵɵadvance(1);
|
|
87
|
+
i0.ɵɵproperty("min", ctx.min)("max", ctx.max)("step", ctx.step);
|
|
88
|
+
i0.ɵɵadvance(1);
|
|
89
|
+
i0.ɵɵproperty("value", ctx.value);
|
|
90
|
+
i0.ɵɵadvance(1);
|
|
91
|
+
i0.ɵɵproperty("ngIf", ctx.allowCustomValue);
|
|
92
|
+
} }, dependencies: [i2.NgIf, i2$1.MatSlider, i2$1.MatSliderThumb], styles: [".config-slider-input[_ngcontent-%COMP%]{background:transparent;color:var(--phoenix-text-color);border:none;border-bottom:1px solid var(--phoenix-text-color);width:25%;-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"] });
|
|
93
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigSliderComponent, [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{ selector: 'app-config-slider', template: "<div class=\"d-flex flex-row align-items-center\">\n <mat-slider class=\"mx-2\" [min]=\"min\" [max]=\"max\" [step]=\"step\" thumbLabel>\n <input\n matSliderThumb\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n />\n </mat-slider>\n <input\n *ngIf=\"allowCustomValue\"\n class=\"config-slider-input\"\n type=\"number\"\n [value]=\"value\"\n (input)=\"onValueChange($event.target.value)\"\n />\n</div>\n", styles: [".config-slider-input{background:transparent;color:var(--phoenix-text-color);border:none;border-bottom:1px solid var(--phoenix-text-color);width:25%;-moz-appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}\n"] }]
|
|
96
|
+
}], null, { value: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], min: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], max: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], step: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], allowCustomValue: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], onChange: [{
|
|
107
|
+
type: Output
|
|
108
|
+
}] }); })();
|
|
84
109
|
|
|
110
|
+
const _c0$9 = ["phoenixMenuItem"];
|
|
111
|
+
function PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
112
|
+
i0.ɵɵelementContainer(0);
|
|
113
|
+
} }
|
|
114
|
+
function PhoenixMenuItemComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
116
|
+
i0.ɵɵelementContainerStart(0);
|
|
117
|
+
i0.ɵɵelementStart(1, "mat-slide-toggle", 9);
|
|
118
|
+
i0.ɵɵlistener("change", function PhoenixMenuItemComponent_ng_container_3_Template_mat_slide_toggle_change_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.currentNode.toggleSelfAndDescendants($event.checked)); });
|
|
119
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 10);
|
|
120
|
+
i0.ɵɵelementEnd();
|
|
121
|
+
i0.ɵɵelementContainerEnd();
|
|
122
|
+
} if (rf & 2) {
|
|
123
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
124
|
+
const _r2 = i0.ɵɵreference(5);
|
|
125
|
+
i0.ɵɵadvance(1);
|
|
126
|
+
i0.ɵɵproperty("checked", ctx_r1.currentNode.toggleState);
|
|
127
|
+
i0.ɵɵadvance(1);
|
|
128
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
129
|
+
} }
|
|
130
|
+
function PhoenixMenuItemComponent_ng_template_4_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
131
|
+
i0.ɵɵelementStart(0, "span", 14);
|
|
132
|
+
i0.ɵɵnamespaceSVG();
|
|
133
|
+
i0.ɵɵelementStart(1, "svg");
|
|
134
|
+
i0.ɵɵelement(2, "use");
|
|
135
|
+
i0.ɵɵelementEnd()();
|
|
136
|
+
} if (rf & 2) {
|
|
137
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
138
|
+
i0.ɵɵadvance(2);
|
|
139
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r10.currentNode.icon, ".svg#", ctx_r10.currentNode.icon, "");
|
|
140
|
+
} }
|
|
141
|
+
function PhoenixMenuItemComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
143
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_ng_template_4_span_1_Template, 3, 2, "span", 12);
|
|
144
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
145
|
+
i0.ɵɵtext(3);
|
|
146
|
+
i0.ɵɵelementEnd()();
|
|
147
|
+
} if (rf & 2) {
|
|
148
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
149
|
+
i0.ɵɵadvance(1);
|
|
150
|
+
i0.ɵɵproperty("ngIf", ctx_r3.currentNode.icon);
|
|
151
|
+
i0.ɵɵadvance(1);
|
|
152
|
+
i0.ɵɵproperty("title", ctx_r3.currentNode.name);
|
|
153
|
+
i0.ɵɵadvance(1);
|
|
154
|
+
i0.ɵɵtextInterpolate(ctx_r3.currentNode.name);
|
|
155
|
+
} }
|
|
156
|
+
function PhoenixMenuItemComponent_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
157
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
158
|
+
i0.ɵɵnamespaceSVG();
|
|
159
|
+
i0.ɵɵnamespaceHTML();
|
|
160
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
161
|
+
i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r13.currentNode.configActive = false); });
|
|
162
|
+
i0.ɵɵelementEnd();
|
|
163
|
+
} }
|
|
164
|
+
const _c1$4 = function (a0) { return { "font-weight-bold w-100": a0 }; };
|
|
165
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
167
|
+
i0.ɵɵtext(1);
|
|
168
|
+
i0.ɵɵelementEnd();
|
|
169
|
+
} if (rf & 2) {
|
|
170
|
+
const config_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
171
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1$4, config_r15.type === "label"));
|
|
172
|
+
i0.ɵɵadvance(1);
|
|
173
|
+
i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
|
|
174
|
+
} }
|
|
175
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_mat_checkbox_1_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
177
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 9);
|
|
178
|
+
i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_mat_checkbox_1_Template_mat_checkbox_change_0_listener($event) { i0.ɵɵrestoreView(_r28); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event.checked); return i0.ɵɵresetView(config_r15.isChecked = $event.checked); });
|
|
179
|
+
i0.ɵɵelementEnd();
|
|
180
|
+
} if (rf & 2) {
|
|
181
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
182
|
+
i0.ɵɵproperty("checked", config_r15.isChecked);
|
|
183
|
+
} }
|
|
184
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_app_config_slider_2_Template(rf, ctx) { if (rf & 1) {
|
|
185
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
186
|
+
i0.ɵɵelementStart(0, "app-config-slider", 34);
|
|
187
|
+
i0.ɵɵlistener("onChange", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_app_config_slider_2_Template_app_config_slider_onChange_0_listener($event) { i0.ɵɵrestoreView(_r32); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event); return i0.ɵɵresetView(config_r15.value = $event); });
|
|
188
|
+
i0.ɵɵelementEnd();
|
|
189
|
+
} if (rf & 2) {
|
|
190
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
191
|
+
i0.ɵɵproperty("value", config_r15.value)("min", config_r15.min)("max", config_r15.max)("step", config_r15.step)("allowCustomValue", config_r15.allowCustomValue);
|
|
192
|
+
} }
|
|
193
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
194
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
195
|
+
i0.ɵɵelementStart(0, "button", 35);
|
|
196
|
+
i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r36); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.onClick()); });
|
|
197
|
+
i0.ɵɵtext(1);
|
|
198
|
+
i0.ɵɵelementEnd();
|
|
199
|
+
} if (rf & 2) {
|
|
200
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
201
|
+
i0.ɵɵadvance(1);
|
|
202
|
+
i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
|
|
203
|
+
} }
|
|
204
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
205
|
+
const _r40 = i0.ɵɵgetCurrentView();
|
|
206
|
+
i0.ɵɵelementStart(0, "input", 36);
|
|
207
|
+
i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_input_4_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r40); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event.target.value); return i0.ɵɵresetView(config_r15.color = $event.target.value); });
|
|
208
|
+
i0.ɵɵelementEnd();
|
|
209
|
+
} if (rf & 2) {
|
|
210
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
211
|
+
i0.ɵɵproperty("value", config_r15.color);
|
|
212
|
+
} }
|
|
213
|
+
const _c2$1 = function (a0, a1, a2) { return { floor: a0, ceil: a1, step: a2, animate: false }; };
|
|
214
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
216
|
+
i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "input", 39);
|
|
217
|
+
i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.value = $event.target.value; return i0.ɵɵresetView(config_r15.onChange(config_r15)); });
|
|
218
|
+
i0.ɵɵelementEnd();
|
|
219
|
+
i0.ɵɵelementStart(3, "input", 40);
|
|
220
|
+
i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template_input_input_3_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.highValue = $event.target.value; return i0.ɵɵresetView(config_r15.onChange(config_r15)); });
|
|
221
|
+
i0.ɵɵelementEnd()();
|
|
222
|
+
i0.ɵɵelementStart(4, "ngx-slider", 41);
|
|
223
|
+
i0.ɵɵlistener("valueChange", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template_ngx_slider_valueChange_4_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.value = $event); })("highValueChange", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template_ngx_slider_highValueChange_4_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.highValue = $event); })("userChange", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template_ngx_slider_userChange_4_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.onChange($event)); });
|
|
224
|
+
i0.ɵɵelementEnd()();
|
|
225
|
+
} if (rf & 2) {
|
|
226
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
227
|
+
i0.ɵɵadvance(2);
|
|
228
|
+
i0.ɵɵproperty("value", config_r15.value);
|
|
229
|
+
i0.ɵɵadvance(1);
|
|
230
|
+
i0.ɵɵproperty("value", config_r15.highValue);
|
|
231
|
+
i0.ɵɵadvance(1);
|
|
232
|
+
i0.ɵɵproperty("value", config_r15.value)("highValue", config_r15.highValue)("options", i0.ɵɵpureFunction3(5, _c2$1, config_r15.min, config_r15.max, config_r15.step));
|
|
233
|
+
} }
|
|
234
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
+
i0.ɵɵelementStart(0, "option", 44);
|
|
236
|
+
i0.ɵɵtext(1);
|
|
237
|
+
i0.ɵɵelementEnd();
|
|
238
|
+
} if (rf & 2) {
|
|
239
|
+
const singleOption_r55 = ctx.$implicit;
|
|
240
|
+
i0.ɵɵproperty("value", singleOption_r55);
|
|
241
|
+
i0.ɵɵadvance(1);
|
|
242
|
+
i0.ɵɵtextInterpolate1(" ", singleOption_r55, " ");
|
|
243
|
+
} }
|
|
244
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_Template(rf, ctx) { if (rf & 1) {
|
|
245
|
+
const _r58 = i0.ɵɵgetCurrentView();
|
|
246
|
+
i0.ɵɵelementStart(0, "select", 42);
|
|
247
|
+
i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r58); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.onChange($event.target.value)); });
|
|
248
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_option_1_Template, 2, 2, "option", 43);
|
|
249
|
+
i0.ɵɵelementEnd();
|
|
250
|
+
} if (rf & 2) {
|
|
251
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
252
|
+
i0.ɵɵadvance(1);
|
|
253
|
+
i0.ɵɵproperty("ngForOf", config_r15.options);
|
|
254
|
+
} }
|
|
255
|
+
const _c3$1 = function (a0) { return { "p-0": a0 }; };
|
|
256
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
257
|
+
i0.ɵɵelementStart(0, "div", 27);
|
|
258
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_mat_checkbox_1_Template, 1, 1, "mat-checkbox", 28);
|
|
259
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_app_config_slider_2_Template, 1, 5, "app-config-slider", 29);
|
|
260
|
+
i0.ɵɵtemplate(3, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_button_3_Template, 2, 1, "button", 30);
|
|
261
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_input_4_Template, 1, 1, "input", 31);
|
|
262
|
+
i0.ɵɵtemplate(5, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template, 5, 9, "div", 32);
|
|
263
|
+
i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_Template, 2, 1, "select", 33);
|
|
264
|
+
i0.ɵɵelementEnd();
|
|
265
|
+
} if (rf & 2) {
|
|
266
|
+
const config_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
267
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c3$1, config_r15.type === "button"));
|
|
268
|
+
i0.ɵɵadvance(1);
|
|
269
|
+
i0.ɵɵproperty("ngSwitchCase", "checkbox");
|
|
270
|
+
i0.ɵɵadvance(1);
|
|
271
|
+
i0.ɵɵproperty("ngSwitchCase", "slider");
|
|
272
|
+
i0.ɵɵadvance(1);
|
|
273
|
+
i0.ɵɵproperty("ngSwitchCase", "button");
|
|
274
|
+
i0.ɵɵadvance(1);
|
|
275
|
+
i0.ɵɵproperty("ngSwitchCase", "color");
|
|
276
|
+
i0.ɵɵadvance(1);
|
|
277
|
+
i0.ɵɵproperty("ngSwitchCase", "rangeSlider");
|
|
278
|
+
i0.ɵɵadvance(1);
|
|
279
|
+
i0.ɵɵproperty("ngSwitchCase", "select");
|
|
280
|
+
} }
|
|
281
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
282
|
+
i0.ɵɵelementStart(0, "label", 23);
|
|
283
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_span_1_Template, 2, 4, "span", 24);
|
|
284
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_Template, 7, 9, "div", 25);
|
|
285
|
+
i0.ɵɵelementEnd();
|
|
286
|
+
} if (rf & 2) {
|
|
287
|
+
const config_r15 = i0.ɵɵnextContext().$implicit;
|
|
288
|
+
i0.ɵɵadvance(1);
|
|
289
|
+
i0.ɵɵproperty("ngIf", config_r15.type !== "button");
|
|
290
|
+
i0.ɵɵadvance(1);
|
|
291
|
+
i0.ɵɵproperty("ngIf", config_r15.type !== "label");
|
|
292
|
+
} }
|
|
293
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
294
|
+
i0.ɵɵelementContainerStart(0, 21);
|
|
295
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_Template, 3, 2, "label", 22);
|
|
296
|
+
i0.ɵɵelementContainerEnd();
|
|
297
|
+
} if (rf & 2) {
|
|
298
|
+
const config_r15 = ctx.$implicit;
|
|
299
|
+
i0.ɵɵproperty("ngSwitch", config_r15.type);
|
|
300
|
+
i0.ɵɵadvance(1);
|
|
301
|
+
i0.ɵɵproperty("ngIf", !config_r15.hidden);
|
|
302
|
+
} }
|
|
303
|
+
const _c4$1 = function (a0) { return { "top.px": a0 }; };
|
|
304
|
+
function PhoenixMenuItemComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
306
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 15);
|
|
307
|
+
i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r63); const ctx_r62 = i0.ɵɵnextContext(); ctx_r62.calculateConfigTop(); return i0.ɵɵresetView(ctx_r62.currentNode.configActive = !ctx_r62.currentNode.configActive); });
|
|
308
|
+
i0.ɵɵnamespaceSVG();
|
|
309
|
+
i0.ɵɵelementStart(2, "svg");
|
|
310
|
+
i0.ɵɵelement(3, "use", 16);
|
|
311
|
+
i0.ɵɵelementEnd()();
|
|
312
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_div_4_Template, 1, 0, "div", 17);
|
|
313
|
+
i0.ɵɵnamespaceHTML();
|
|
314
|
+
i0.ɵɵelementStart(5, "div", 18);
|
|
315
|
+
i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_Template, 2, 2, "ng-container", 19);
|
|
316
|
+
i0.ɵɵelementEnd()();
|
|
317
|
+
} if (rf & 2) {
|
|
318
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
319
|
+
i0.ɵɵadvance(4);
|
|
320
|
+
i0.ɵɵproperty("ngIf", ctx_r4.currentNode.configActive);
|
|
321
|
+
i0.ɵɵadvance(1);
|
|
322
|
+
i0.ɵɵproperty("hidden", !ctx_r4.currentNode.configActive)("ngStyle", i0.ɵɵpureFunction1(4, _c4$1, ctx_r4.configTop));
|
|
323
|
+
i0.ɵɵadvance(1);
|
|
324
|
+
i0.ɵɵproperty("ngForOf", ctx_r4.castConfigsToAny(ctx_r4.currentNode.configs));
|
|
325
|
+
} }
|
|
326
|
+
const _c5$1 = function (a0) { return { expanded: a0 }; };
|
|
327
|
+
function PhoenixMenuItemComponent_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
328
|
+
const _r65 = i0.ɵɵgetCurrentView();
|
|
329
|
+
i0.ɵɵelementStart(0, "button", 45);
|
|
330
|
+
i0.ɵɵlistener("click", function PhoenixMenuItemComponent_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r65); const ctx_r64 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r64.currentNode.childrenActive = !ctx_r64.currentNode.childrenActive); });
|
|
331
|
+
i0.ɵɵnamespaceSVG();
|
|
332
|
+
i0.ɵɵelementStart(1, "svg");
|
|
333
|
+
i0.ɵɵelement(2, "use", 46);
|
|
334
|
+
i0.ɵɵelementEnd()();
|
|
335
|
+
} if (rf & 2) {
|
|
336
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
337
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c5$1, ctx_r5.currentNode.childrenActive));
|
|
338
|
+
} }
|
|
339
|
+
function PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template(rf, ctx) { if (rf & 1) {
|
|
340
|
+
i0.ɵɵelement(0, "app-phoenix-menu-item", 49);
|
|
341
|
+
} if (rf & 2) {
|
|
342
|
+
const childNode_r67 = ctx.$implicit;
|
|
343
|
+
i0.ɵɵproperty("currentNode", childNode_r67);
|
|
344
|
+
} }
|
|
345
|
+
function PhoenixMenuItemComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
346
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
347
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template, 1, 1, "app-phoenix-menu-item", 48);
|
|
348
|
+
i0.ɵɵelementEnd();
|
|
349
|
+
} if (rf & 2) {
|
|
350
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
351
|
+
i0.ɵɵadvance(1);
|
|
352
|
+
i0.ɵɵproperty("ngForOf", ctx_r6.currentNode.children);
|
|
353
|
+
} }
|
|
85
354
|
class PhoenixMenuItemComponent {
|
|
86
355
|
constructor(cdr) {
|
|
87
356
|
this.cdr = cdr;
|
|
@@ -98,28 +367,60 @@ class PhoenixMenuItemComponent {
|
|
|
98
367
|
return configs;
|
|
99
368
|
}
|
|
100
369
|
}
|
|
101
|
-
PhoenixMenuItemComponent.ɵfac =
|
|
102
|
-
PhoenixMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: PhoenixMenuItemComponent, selector: "app-phoenix-menu-item", inputs: { currentNode: "currentNode" }, viewQueries: [{ propertyName: "phoenixMenuItem", first: true, predicate: ["phoenixMenuItem"], descendants: true }], ngImport: i0, template: "<div class=\"phoenix-menu-item\" #phoenixMenuItem>\n <div class=\"phoenix-menu-item-left align-items-center\">\n <!-- If the item has some toggle function -->\n <ng-container *ngIf=\"currentNode.onToggle; else nodeName\">\n <mat-slide-toggle\n [checked]=\"currentNode.toggleState\"\n (change)=\"currentNode.toggleSelfAndDescendants($event.checked)\"\n >\n <ng-container *ngTemplateOutlet=\"nodeName\"></ng-container>\n </mat-slide-toggle>\n </ng-container>\n <!-- If the item has no toggle function -->\n <ng-template #nodeName>\n <span class=\"d-flex w-100 align-items-center\">\n <span *ngIf=\"currentNode.icon\" class=\"icon-wrapper item-icon\">\n <svg>\n <use\n attr.href=\"assets/icons/{{ currentNode.icon }}.svg#{{\n currentNode.icon\n }}\"\n ></use>\n </svg>\n </span>\n <span class=\"item-name\" [title]=\"currentNode.name\">{{\n currentNode.name\n }}</span>\n </span>\n </ng-template>\n </div>\n <div class=\"phoenix-menu-item-right\">\n <div *ngIf=\"currentNode.configs.length > 0\">\n <button\n class=\"icon-wrapper icon-button btn-blank item-settings\"\n (click)=\"\n calculateConfigTop();\n currentNode.configActive = !currentNode.configActive\n \"\n >\n <svg>\n <use href=\"assets/icons/gear.svg#gear\"></use>\n </svg>\n </button>\n <div\n class=\"item-config-backdrop\"\n *ngIf=\"currentNode.configActive\"\n (click)=\"currentNode.configActive = false\"\n ></div>\n <div\n class=\"item-config\"\n [hidden]=\"!currentNode.configActive\"\n [ngStyle]=\"{ 'top.px': configTop }\"\n >\n <ng-container\n *ngFor=\"let config of castConfigsToAny(currentNode.configs)\"\n [ngSwitch]=\"config.type\"\n >\n <!-- Config types -->\n <label class=\"item-config-single\" *ngIf=\"!config.hidden\">\n <span\n class=\"item-config-label\"\n *ngIf=\"config.type !== 'button'\"\n [ngClass]=\"{ 'font-weight-bold w-100': config.type === 'label' }\"\n >\n {{ config.label }}\n </span>\n <div\n class=\"item-config-data\"\n [ngClass]=\"{ 'p-0': config.type === 'button' }\"\n *ngIf=\"config.type !== 'label'\"\n >\n <mat-checkbox\n *ngSwitchCase=\"'checkbox'\"\n [checked]=\"config.isChecked\"\n (change)=\"\n config.onChange($event.checked);\n config.isChecked = $event.checked\n \"\n ></mat-checkbox>\n\n <app-config-slider\n *ngSwitchCase=\"'slider'\"\n [value]=\"config.value\"\n (onChange)=\"config.onChange($event); config.value = $event\"\n [min]=\"config.min\"\n [max]=\"config.max\"\n [step]=\"config.step\"\n [allowCustomValue]=\"config.allowCustomValue\"\n >\n </app-config-slider>\n\n <button\n *ngSwitchCase=\"'button'\"\n class=\"w-100\"\n (click)=\"config.onClick()\"\n mat-button\n mat-stroked-button\n >\n {{ config.label }}\n </button>\n\n <input\n *ngSwitchCase=\"'color'\"\n type=\"color\"\n [value]=\"config.color\"\n (input)=\"\n config.onChange($event.target.value);\n config.color = $event.target.value\n \"\n />\n\n <div *ngSwitchCase=\"'rangeSlider'\" class=\"range-slider\">\n <div class=\"range-slider-inputs d-flex justify-content-between\">\n <input\n type=\"number\"\n placeholder=\"Min\"\n class=\"form-control form-control-sm\"\n [value]=\"config.value\"\n (input)=\"\n config.value = $event.target.value;\n config.onChange(config)\n \"\n />\n <input\n type=\"number\"\n placeholder=\"Max\"\n class=\"form-control form-control-sm\"\n [value]=\"config.highValue\"\n (input)=\"\n config.highValue = $event.target.value;\n config.onChange(config)\n \"\n />\n </div>\n <ngx-slider\n [(value)]=\"config.value\"\n [(highValue)]=\"config.highValue\"\n (userChange)=\"config.onChange($event)\"\n [options]=\"{\n floor: config.min,\n ceil: config.max,\n step: config.step,\n animate: false\n }\"\n ></ngx-slider>\n </div>\n\n <select\n *ngSwitchCase=\"'select'\"\n class=\"w-100\"\n (change)=\"config.onChange($event.target.value)\"\n >\n <option\n *ngFor=\"let singleOption of config.options\"\n [value]=\"singleOption\"\n >\n {{ singleOption }}\n </option>\n </select>\n </div>\n </label>\n <!-- Config types END -->\n </ng-container>\n </div>\n </div>\n <button\n class=\"icon-wrapper icon-button btn-blank item-expand\"\n *ngIf=\"currentNode.children.length > 0\"\n (click)=\"currentNode.childrenActive = !currentNode.childrenActive\"\n [ngClass]=\"{ expanded: currentNode.childrenActive }\"\n data-testid=\"dropdown\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n</div>\n<div class=\"phoenix-menu-children\" *ngIf=\"currentNode.childrenActive\">\n <app-phoenix-menu-item\n *ngFor=\"let childNode of currentNode.children\"\n [currentNode]=\"childNode\"\n >\n </app-phoenix-menu-item>\n</div>\n", styles: [".phoenix-menu-item{width:100%;padding:.6rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color);font-size:.8rem;transition:all .5s;display:flex;justify-content:space-between;align-items:center}.phoenix-menu-item-left{display:flex;justify-content:flex-start;min-width:0;padding-right:.5rem;overflow:hidden}.phoenix-menu-item-left .item-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoenix-menu-item-left .item-icon{margin-right:.2rem}.phoenix-menu-item-right{display:flex;justify-content:flex-end}.phoenix-menu-item-right .item-expand.expanded{transform:scaleY(-1)}.phoenix-menu-item-right .item-settings{margin-right:.2rem}.phoenix-menu-item-right .item-config-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:110}.phoenix-menu-item-right .item-config{position:absolute;margin-top:-5rem;right:100%;width:14rem;padding:.5rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color-secondary);box-shadow:var(--phoenix-box-shadow);display:flex;flex-direction:column;z-index:120}.phoenix-menu-item-right .item-config>*{margin-bottom:.4rem}.phoenix-menu-item-right .item-config>*:last-child{margin-bottom:0}.phoenix-menu-item-right .item-config .item-config-single{display:flex;flex-direction:row}.phoenix-menu-item-right .item-config .item-config-single .item-config-label{width:30%}.phoenix-menu-item-right .item-config .item-config-single .item-config-data{flex-grow:1;padding-left:.5rem}.phoenix-menu-item .icon-wrapper{display:inline-block;width:1.3rem;height:1.3rem;padding:.23rem;transition:all .4s}.phoenix-menu-item .icon-wrapper.icon-button:hover{background:var(--phoenix-options-icon-bg);border-radius:40%;cursor:pointer}.phoenix-menu-item .icon-wrapper svg{width:100%;height:100%;vertical-align:top}.phoenix-menu-item .mat-slide-toggle-bar{width:30px!important}.phoenix-menu-item .mat-slide-toggle-thumb{width:15px!important;height:15px!important;position:absolute;top:2px}.phoenix-menu-item .mat-slider-horizontal{min-width:0;width:100%;height:20px}.phoenix-menu-item .mat-slider-horizontal .mat-slider-wrapper{top:10px}.phoenix-menu-item label.mat-checkbox-layout{margin:0}@media screen and (max-width: 768px){.phoenix-menu-item{font-size:.75rem;padding:.5rem}.phoenix-menu-item .icon-wrapper{width:1rem;height:1rem;padding:.15rem}}.phoenix-menu-children{margin-left:.5rem;border-left:1px solid var(--phoenix-accent)}.range-slider .range-slider-inputs{gap:20%}.range-slider .ngx-slider .ngx-slider-bar{background:var(--phoenix-text-color-secondary);height:.2rem}.range-slider .ngx-slider .ngx-slider-selection{background:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer{width:1rem;height:1rem;top:-.45rem;bottom:0;background-color:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer:after{display:none}.range-slider .ngx-slider .ngx-slider-bubble{color:var(--phoenix-text-color);font-size:.8rem}.range-slider .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:var(--phoenix-text-color-secondary)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }, { kind: "component", type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i5.SliderComponent, selector: "ngx-slider", inputs: ["value", "highValue", "options", "manualRefresh", "triggerFocus"], outputs: ["valueChange", "highValueChange", "userChangeStart", "userChange", "userChangeEnd"] }, { kind: "component", type: PhoenixMenuItemComponent, selector: "app-phoenix-menu-item", inputs: ["currentNode"] }, { kind: "component", type: ConfigSliderComponent, selector: "app-config-slider", inputs: ["value", "min", "max", "step", "allowCustomValue"], outputs: ["onChange"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
103
|
-
i0.ɵɵ
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
370
|
+
PhoenixMenuItemComponent.ɵfac = function PhoenixMenuItemComponent_Factory(t) { return new (t || PhoenixMenuItemComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
371
|
+
PhoenixMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoenixMenuItemComponent, selectors: [["app-phoenix-menu-item"]], viewQuery: function PhoenixMenuItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
372
|
+
i0.ɵɵviewQuery(_c0$9, 5);
|
|
373
|
+
} if (rf & 2) {
|
|
374
|
+
let _t;
|
|
375
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.phoenixMenuItem = _t.first);
|
|
376
|
+
} }, inputs: { currentNode: "currentNode" }, decls: 10, vars: 5, consts: [[1, "phoenix-menu-item"], ["phoenixMenuItem", ""], [1, "phoenix-menu-item-left", "align-items-center"], [4, "ngIf", "ngIfElse"], ["nodeName", ""], [1, "phoenix-menu-item-right"], [4, "ngIf"], ["class", "icon-wrapper icon-button btn-blank item-expand", "data-testid", "dropdown", 3, "ngClass", "click", 4, "ngIf"], ["class", "phoenix-menu-children", 4, "ngIf"], [3, "checked", "change"], [4, "ngTemplateOutlet"], [1, "d-flex", "w-100", "align-items-center"], ["class", "icon-wrapper item-icon", 4, "ngIf"], [1, "item-name", 3, "title"], [1, "icon-wrapper", "item-icon"], [1, "icon-wrapper", "icon-button", "btn-blank", "item-settings", 3, "click"], ["href", "assets/icons/gear.svg#gear"], ["class", "item-config-backdrop", 3, "click", 4, "ngIf"], [1, "item-config", 3, "hidden", "ngStyle"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "item-config-backdrop", 3, "click"], [3, "ngSwitch"], ["class", "item-config-single", 4, "ngIf"], [1, "item-config-single"], ["class", "item-config-label", 3, "ngClass", 4, "ngIf"], ["class", "item-config-data", 3, "ngClass", 4, "ngIf"], [1, "item-config-label", 3, "ngClass"], [1, "item-config-data", 3, "ngClass"], [3, "checked", "change", 4, "ngSwitchCase"], [3, "value", "min", "max", "step", "allowCustomValue", "onChange", 4, "ngSwitchCase"], ["class", "w-100", "mat-button", "", "mat-stroked-button", "", 3, "click", 4, "ngSwitchCase"], ["type", "color", 3, "value", "input", 4, "ngSwitchCase"], ["class", "range-slider", 4, "ngSwitchCase"], ["class", "w-100", 3, "change", 4, "ngSwitchCase"], [3, "value", "min", "max", "step", "allowCustomValue", "onChange"], ["mat-button", "", "mat-stroked-button", "", 1, "w-100", 3, "click"], ["type", "color", 3, "value", "input"], [1, "range-slider"], [1, "range-slider-inputs", "d-flex", "justify-content-between"], ["type", "number", "placeholder", "Min", 1, "form-control", "form-control-sm", 3, "value", "input"], ["type", "number", "placeholder", "Max", 1, "form-control", "form-control-sm", 3, "value", "input"], [3, "value", "highValue", "options", "valueChange", "highValueChange", "userChange"], [1, "w-100", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["data-testid", "dropdown", 1, "icon-wrapper", "icon-button", "btn-blank", "item-expand", 3, "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], [1, "phoenix-menu-children"], [3, "currentNode", 4, "ngFor", "ngForOf"], [3, "currentNode"]], template: function PhoenixMenuItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
377
|
+
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
378
|
+
i0.ɵɵtemplate(3, PhoenixMenuItemComponent_ng_container_3_Template, 3, 2, "ng-container", 3);
|
|
379
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_ng_template_4_Template, 4, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
380
|
+
i0.ɵɵelementEnd();
|
|
381
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
382
|
+
i0.ɵɵtemplate(7, PhoenixMenuItemComponent_div_7_Template, 7, 6, "div", 6);
|
|
383
|
+
i0.ɵɵtemplate(8, PhoenixMenuItemComponent_button_8_Template, 3, 3, "button", 7);
|
|
384
|
+
i0.ɵɵelementEnd()();
|
|
385
|
+
i0.ɵɵtemplate(9, PhoenixMenuItemComponent_div_9_Template, 2, 1, "div", 8);
|
|
386
|
+
} if (rf & 2) {
|
|
387
|
+
const _r2 = i0.ɵɵreference(5);
|
|
388
|
+
i0.ɵɵadvance(3);
|
|
389
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.onToggle)("ngIfElse", _r2);
|
|
390
|
+
i0.ɵɵadvance(4);
|
|
391
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.configs.length > 0);
|
|
392
|
+
i0.ɵɵadvance(1);
|
|
393
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.children.length > 0);
|
|
394
|
+
i0.ɵɵadvance(1);
|
|
395
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.childrenActive);
|
|
396
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i2.NgSwitch, i2.NgSwitchCase, i2$2.MatButton, i3.MatSlideToggle, i4.MatCheckbox, i5.SliderComponent, PhoenixMenuItemComponent, ConfigSliderComponent], styles: [".phoenix-menu-item{width:100%;padding:.6rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color);font-size:.8rem;transition:all .5s;display:flex;justify-content:space-between;align-items:center}.phoenix-menu-item-left{display:flex;justify-content:flex-start;min-width:0;padding-right:.5rem;overflow:hidden}.phoenix-menu-item-left .item-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoenix-menu-item-left .item-icon{margin-right:.2rem}.phoenix-menu-item-right{display:flex;justify-content:flex-end}.phoenix-menu-item-right .item-expand.expanded{transform:scaleY(-1)}.phoenix-menu-item-right .item-settings{margin-right:.2rem}.phoenix-menu-item-right .item-config-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:110}.phoenix-menu-item-right .item-config{position:absolute;margin-top:-5rem;right:100%;width:14rem;padding:.5rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color-secondary);box-shadow:var(--phoenix-box-shadow);display:flex;flex-direction:column;z-index:120}.phoenix-menu-item-right .item-config>*{margin-bottom:.4rem}.phoenix-menu-item-right .item-config>*:last-child{margin-bottom:0}.phoenix-menu-item-right .item-config .item-config-single{display:flex;flex-direction:row}.phoenix-menu-item-right .item-config .item-config-single .item-config-label{width:30%}.phoenix-menu-item-right .item-config .item-config-single .item-config-data{flex-grow:1;padding-left:.5rem}.phoenix-menu-item .icon-wrapper{display:inline-block;width:1.3rem;height:1.3rem;padding:.23rem;transition:all .4s}.phoenix-menu-item .icon-wrapper.icon-button:hover{background:var(--phoenix-options-icon-bg);border-radius:40%;cursor:pointer}.phoenix-menu-item .icon-wrapper svg{width:100%;height:100%;vertical-align:top}.phoenix-menu-item .mat-slide-toggle-bar{width:30px!important}.phoenix-menu-item .mat-slide-toggle-thumb{width:15px!important;height:15px!important;position:absolute;top:2px}.phoenix-menu-item .mat-slider-horizontal{min-width:0;width:100%;height:20px}.phoenix-menu-item .mat-slider-horizontal .mat-slider-wrapper{top:10px}.phoenix-menu-item label.mat-checkbox-layout{margin:0}@media screen and (max-width: 768px){.phoenix-menu-item{font-size:.75rem;padding:.5rem}.phoenix-menu-item .icon-wrapper{width:1rem;height:1rem;padding:.15rem}}.phoenix-menu-children{margin-left:.5rem;border-left:1px solid var(--phoenix-accent)}.range-slider .range-slider-inputs{gap:20%}.range-slider .ngx-slider .ngx-slider-bar{background:var(--phoenix-text-color-secondary);height:.2rem}.range-slider .ngx-slider .ngx-slider-selection{background:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer{width:1rem;height:1rem;top:-.45rem;bottom:0;background-color:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer:after{display:none}.range-slider .ngx-slider .ngx-slider-bubble{color:var(--phoenix-text-color);font-size:.8rem}.range-slider .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:var(--phoenix-text-color-secondary)}\n"], encapsulation: 2 });
|
|
397
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuItemComponent, [{
|
|
398
|
+
type: Component,
|
|
399
|
+
args: [{ selector: 'app-phoenix-menu-item', encapsulation: ViewEncapsulation.None, template: "<div class=\"phoenix-menu-item\" #phoenixMenuItem>\n <div class=\"phoenix-menu-item-left align-items-center\">\n <!-- If the item has some toggle function -->\n <ng-container *ngIf=\"currentNode.onToggle; else nodeName\">\n <mat-slide-toggle\n [checked]=\"currentNode.toggleState\"\n (change)=\"currentNode.toggleSelfAndDescendants($event.checked)\"\n >\n <ng-container *ngTemplateOutlet=\"nodeName\"></ng-container>\n </mat-slide-toggle>\n </ng-container>\n <!-- If the item has no toggle function -->\n <ng-template #nodeName>\n <span class=\"d-flex w-100 align-items-center\">\n <span *ngIf=\"currentNode.icon\" class=\"icon-wrapper item-icon\">\n <svg>\n <use\n attr.href=\"assets/icons/{{ currentNode.icon }}.svg#{{\n currentNode.icon\n }}\"\n ></use>\n </svg>\n </span>\n <span class=\"item-name\" [title]=\"currentNode.name\">{{\n currentNode.name\n }}</span>\n </span>\n </ng-template>\n </div>\n <div class=\"phoenix-menu-item-right\">\n <div *ngIf=\"currentNode.configs.length > 0\">\n <button\n class=\"icon-wrapper icon-button btn-blank item-settings\"\n (click)=\"\n calculateConfigTop();\n currentNode.configActive = !currentNode.configActive\n \"\n >\n <svg>\n <use href=\"assets/icons/gear.svg#gear\"></use>\n </svg>\n </button>\n <div\n class=\"item-config-backdrop\"\n *ngIf=\"currentNode.configActive\"\n (click)=\"currentNode.configActive = false\"\n ></div>\n <div\n class=\"item-config\"\n [hidden]=\"!currentNode.configActive\"\n [ngStyle]=\"{ 'top.px': configTop }\"\n >\n <ng-container\n *ngFor=\"let config of castConfigsToAny(currentNode.configs)\"\n [ngSwitch]=\"config.type\"\n >\n <!-- Config types -->\n <label class=\"item-config-single\" *ngIf=\"!config.hidden\">\n <span\n class=\"item-config-label\"\n *ngIf=\"config.type !== 'button'\"\n [ngClass]=\"{ 'font-weight-bold w-100': config.type === 'label' }\"\n >\n {{ config.label }}\n </span>\n <div\n class=\"item-config-data\"\n [ngClass]=\"{ 'p-0': config.type === 'button' }\"\n *ngIf=\"config.type !== 'label'\"\n >\n <mat-checkbox\n *ngSwitchCase=\"'checkbox'\"\n [checked]=\"config.isChecked\"\n (change)=\"\n config.onChange($event.checked);\n config.isChecked = $event.checked\n \"\n ></mat-checkbox>\n\n <app-config-slider\n *ngSwitchCase=\"'slider'\"\n [value]=\"config.value\"\n (onChange)=\"config.onChange($event); config.value = $event\"\n [min]=\"config.min\"\n [max]=\"config.max\"\n [step]=\"config.step\"\n [allowCustomValue]=\"config.allowCustomValue\"\n >\n </app-config-slider>\n\n <button\n *ngSwitchCase=\"'button'\"\n class=\"w-100\"\n (click)=\"config.onClick()\"\n mat-button\n mat-stroked-button\n >\n {{ config.label }}\n </button>\n\n <input\n *ngSwitchCase=\"'color'\"\n type=\"color\"\n [value]=\"config.color\"\n (input)=\"\n config.onChange($event.target.value);\n config.color = $event.target.value\n \"\n />\n\n <div *ngSwitchCase=\"'rangeSlider'\" class=\"range-slider\">\n <div class=\"range-slider-inputs d-flex justify-content-between\">\n <input\n type=\"number\"\n placeholder=\"Min\"\n class=\"form-control form-control-sm\"\n [value]=\"config.value\"\n (input)=\"\n config.value = $event.target.value;\n config.onChange(config)\n \"\n />\n <input\n type=\"number\"\n placeholder=\"Max\"\n class=\"form-control form-control-sm\"\n [value]=\"config.highValue\"\n (input)=\"\n config.highValue = $event.target.value;\n config.onChange(config)\n \"\n />\n </div>\n <ngx-slider\n [(value)]=\"config.value\"\n [(highValue)]=\"config.highValue\"\n (userChange)=\"config.onChange($event)\"\n [options]=\"{\n floor: config.min,\n ceil: config.max,\n step: config.step,\n animate: false\n }\"\n ></ngx-slider>\n </div>\n\n <select\n *ngSwitchCase=\"'select'\"\n class=\"w-100\"\n (change)=\"config.onChange($event.target.value)\"\n >\n <option\n *ngFor=\"let singleOption of config.options\"\n [value]=\"singleOption\"\n >\n {{ singleOption }}\n </option>\n </select>\n </div>\n </label>\n <!-- Config types END -->\n </ng-container>\n </div>\n </div>\n <button\n class=\"icon-wrapper icon-button btn-blank item-expand\"\n *ngIf=\"currentNode.children.length > 0\"\n (click)=\"currentNode.childrenActive = !currentNode.childrenActive\"\n [ngClass]=\"{ expanded: currentNode.childrenActive }\"\n data-testid=\"dropdown\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n</div>\n<div class=\"phoenix-menu-children\" *ngIf=\"currentNode.childrenActive\">\n <app-phoenix-menu-item\n *ngFor=\"let childNode of currentNode.children\"\n [currentNode]=\"childNode\"\n >\n </app-phoenix-menu-item>\n</div>\n", styles: [".phoenix-menu-item{width:100%;padding:.6rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color);font-size:.8rem;transition:all .5s;display:flex;justify-content:space-between;align-items:center}.phoenix-menu-item-left{display:flex;justify-content:flex-start;min-width:0;padding-right:.5rem;overflow:hidden}.phoenix-menu-item-left .item-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoenix-menu-item-left .item-icon{margin-right:.2rem}.phoenix-menu-item-right{display:flex;justify-content:flex-end}.phoenix-menu-item-right .item-expand.expanded{transform:scaleY(-1)}.phoenix-menu-item-right .item-settings{margin-right:.2rem}.phoenix-menu-item-right .item-config-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:110}.phoenix-menu-item-right .item-config{position:absolute;margin-top:-5rem;right:100%;width:14rem;padding:.5rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color-secondary);box-shadow:var(--phoenix-box-shadow);display:flex;flex-direction:column;z-index:120}.phoenix-menu-item-right .item-config>*{margin-bottom:.4rem}.phoenix-menu-item-right .item-config>*:last-child{margin-bottom:0}.phoenix-menu-item-right .item-config .item-config-single{display:flex;flex-direction:row}.phoenix-menu-item-right .item-config .item-config-single .item-config-label{width:30%}.phoenix-menu-item-right .item-config .item-config-single .item-config-data{flex-grow:1;padding-left:.5rem}.phoenix-menu-item .icon-wrapper{display:inline-block;width:1.3rem;height:1.3rem;padding:.23rem;transition:all .4s}.phoenix-menu-item .icon-wrapper.icon-button:hover{background:var(--phoenix-options-icon-bg);border-radius:40%;cursor:pointer}.phoenix-menu-item .icon-wrapper svg{width:100%;height:100%;vertical-align:top}.phoenix-menu-item .mat-slide-toggle-bar{width:30px!important}.phoenix-menu-item .mat-slide-toggle-thumb{width:15px!important;height:15px!important;position:absolute;top:2px}.phoenix-menu-item .mat-slider-horizontal{min-width:0;width:100%;height:20px}.phoenix-menu-item .mat-slider-horizontal .mat-slider-wrapper{top:10px}.phoenix-menu-item label.mat-checkbox-layout{margin:0}@media screen and (max-width: 768px){.phoenix-menu-item{font-size:.75rem;padding:.5rem}.phoenix-menu-item .icon-wrapper{width:1rem;height:1rem;padding:.15rem}}.phoenix-menu-children{margin-left:.5rem;border-left:1px solid var(--phoenix-accent)}.range-slider .range-slider-inputs{gap:20%}.range-slider .ngx-slider .ngx-slider-bar{background:var(--phoenix-text-color-secondary);height:.2rem}.range-slider .ngx-slider .ngx-slider-selection{background:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer{width:1rem;height:1rem;top:-.45rem;bottom:0;background-color:var(--phoenix-accent)}.range-slider .ngx-slider .ngx-slider-pointer:after{display:none}.range-slider .ngx-slider .ngx-slider-bubble{color:var(--phoenix-text-color);font-size:.8rem}.range-slider .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:var(--phoenix-text-color-secondary)}\n"] }]
|
|
400
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { currentNode: [{
|
|
401
|
+
type: Input
|
|
402
|
+
}], phoenixMenuItem: [{
|
|
403
|
+
type: ViewChild,
|
|
404
|
+
args: ['phoenixMenuItem']
|
|
405
|
+
}] }); })();
|
|
112
406
|
|
|
113
407
|
class PhoenixMenuComponent {
|
|
114
408
|
}
|
|
115
|
-
PhoenixMenuComponent.ɵfac =
|
|
116
|
-
PhoenixMenuComponent.ɵcmp = i0.ɵɵ
|
|
117
|
-
i0.ɵɵ
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
409
|
+
PhoenixMenuComponent.ɵfac = function PhoenixMenuComponent_Factory(t) { return new (t || PhoenixMenuComponent)(); };
|
|
410
|
+
PhoenixMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoenixMenuComponent, selectors: [["app-phoenix-menu"]], inputs: { rootNode: "rootNode" }, decls: 2, vars: 1, consts: [["id", "phoenixMenu"], [3, "currentNode"]], template: function PhoenixMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
411
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
412
|
+
i0.ɵɵelement(1, "app-phoenix-menu-item", 1);
|
|
413
|
+
i0.ɵɵelementEnd();
|
|
414
|
+
} if (rf & 2) {
|
|
415
|
+
i0.ɵɵadvance(1);
|
|
416
|
+
i0.ɵɵproperty("currentNode", ctx.rootNode);
|
|
417
|
+
} }, dependencies: [PhoenixMenuItemComponent], styles: ["[_nghost-%COMP%]{width:15rem;max-width:45%;position:absolute;top:5rem;right:1rem}#phoenixMenu[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);max-height:75vh;overflow-y:auto;box-shadow:var(--phoenix-box-shadow);z-index:100}@media screen and (max-width: 768px){#phoenixMenu[_ngcontent-%COMP%]{top:4rem}}"] });
|
|
418
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuComponent, [{
|
|
419
|
+
type: Component,
|
|
420
|
+
args: [{ selector: 'app-phoenix-menu', template: "<div id=\"phoenixMenu\">\n <app-phoenix-menu-item [currentNode]=\"rootNode\"></app-phoenix-menu-item>\n</div>\n", styles: [":host{width:15rem;max-width:45%;position:absolute;top:5rem;right:1rem}#phoenixMenu{background:var(--phoenix-background-color-secondary);max-height:75vh;overflow-y:auto;box-shadow:var(--phoenix-box-shadow);z-index:100}@media screen and (max-width: 768px){#phoenixMenu{top:4rem}}\n"] }]
|
|
421
|
+
}], null, { rootNode: [{
|
|
422
|
+
type: Input
|
|
423
|
+
}] }); })();
|
|
123
424
|
|
|
124
425
|
/**
|
|
125
426
|
* Service for all event display related functions.
|
|
@@ -132,35 +433,60 @@ class EventDisplayService extends EventDisplay {
|
|
|
132
433
|
super();
|
|
133
434
|
}
|
|
134
435
|
}
|
|
135
|
-
EventDisplayService.ɵfac =
|
|
136
|
-
EventDisplayService.ɵprov = i0.ɵɵ
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
436
|
+
EventDisplayService.ɵfac = function EventDisplayService_Factory(t) { return new (t || EventDisplayService)(); };
|
|
437
|
+
EventDisplayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventDisplayService, factory: EventDisplayService.ɵfac, providedIn: 'root' });
|
|
438
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDisplayService, [{
|
|
439
|
+
type: Injectable,
|
|
440
|
+
args: [{
|
|
441
|
+
providedIn: 'root',
|
|
442
|
+
}]
|
|
443
|
+
}], function () { return []; }, null); })();
|
|
143
444
|
|
|
445
|
+
const _c0$8 = function (a0) { return { disabled: a0 }; };
|
|
446
|
+
const _c1$3 = function (a0) { return { "active-icon": a0 }; };
|
|
144
447
|
class MenuToggleComponent {
|
|
145
448
|
constructor() {
|
|
146
449
|
this.disabled = false;
|
|
147
450
|
}
|
|
148
451
|
}
|
|
149
|
-
MenuToggleComponent.ɵfac =
|
|
150
|
-
MenuToggleComponent.ɵcmp = i0.ɵɵ
|
|
151
|
-
i0.ɵɵ
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
452
|
+
MenuToggleComponent.ɵfac = function MenuToggleComponent_Factory(t) { return new (t || MenuToggleComponent)(); };
|
|
453
|
+
MenuToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuToggleComponent, selectors: [["app-menu-toggle"]], inputs: { icon: "icon", active: "active", tooltip: "tooltip", disabled: "disabled" }, decls: 3, vars: 9, consts: [["matTooltipPosition", "above", "matTooltipTouchGestures", "off", 1, "menu-toggle", 3, "ngClass", "matTooltip"], [1, "menu-toggle-icon", 3, "ngClass"]], template: function MenuToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
454
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
455
|
+
i0.ɵɵnamespaceSVG();
|
|
456
|
+
i0.ɵɵelementStart(1, "svg", 1);
|
|
457
|
+
i0.ɵɵelement(2, "use");
|
|
458
|
+
i0.ɵɵelementEnd()();
|
|
459
|
+
} if (rf & 2) {
|
|
460
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$8, ctx.disabled))("matTooltip", ctx.tooltip);
|
|
461
|
+
i0.ɵɵadvance(1);
|
|
462
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$3, ctx.active));
|
|
463
|
+
i0.ɵɵadvance(1);
|
|
464
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx.icon, ".svg#", ctx.icon, "");
|
|
465
|
+
} }, dependencies: [i2.NgClass, i2$3.MatTooltip], styles: ["[_nghost-%COMP%]{display:flex;margin:0 .6rem}[_nghost-%COMP%] .menu-toggle[_ngcontent-%COMP%]{display:flex;background:unset;border:none;height:2.5rem;width:2.5rem;min-height:2.5rem;min-width:2.5rem;padding:.65rem;cursor:pointer;align-self:center;transition:all .4s}[_nghost-%COMP%] .menu-toggle-icon[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .menu-toggle-icon.active-icon[_ngcontent-%COMP%]{--phoenix-options-icon-path: #00bcd4}[_nghost-%COMP%] .menu-toggle[_ngcontent-%COMP%]:hover{background-color:var(--phoenix-options-icon-bg);border-radius:40%;transition:all .4s}[_nghost-%COMP%] .menu-toggle.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.4}"] });
|
|
466
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuToggleComponent, [{
|
|
467
|
+
type: Component,
|
|
468
|
+
args: [{ selector: 'app-menu-toggle', template: "<button\n class=\"menu-toggle\"\n [ngClass]=\"{ disabled: disabled }\"\n [matTooltip]=\"tooltip\"\n matTooltipPosition=\"above\"\n matTooltipTouchGestures=\"off\"\n>\n <svg class=\"menu-toggle-icon\" [ngClass]=\"{ 'active-icon': active }\">\n <use attr.href=\"assets/icons/{{ icon }}.svg#{{ icon }}\"></use>\n </svg>\n</button>\n", styles: [":host{display:flex;margin:0 .6rem}:host .menu-toggle{display:flex;background:unset;border:none;height:2.5rem;width:2.5rem;min-height:2.5rem;min-width:2.5rem;padding:.65rem;cursor:pointer;align-self:center;transition:all .4s}:host .menu-toggle-icon{width:100%;height:100%}:host .menu-toggle-icon.active-icon{--phoenix-options-icon-path: #00bcd4}:host .menu-toggle:hover{background-color:var(--phoenix-options-icon-bg);border-radius:40%;transition:all .4s}:host .menu-toggle.disabled{cursor:not-allowed;opacity:.4}\n"] }]
|
|
469
|
+
}], null, { icon: [{
|
|
470
|
+
type: Input
|
|
471
|
+
}], active: [{
|
|
472
|
+
type: Input
|
|
473
|
+
}], tooltip: [{
|
|
474
|
+
type: Input
|
|
475
|
+
}], disabled: [{
|
|
476
|
+
type: Input
|
|
477
|
+
}] }); })();
|
|
163
478
|
|
|
479
|
+
function AnimateCameraComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
480
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
481
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
482
|
+
i0.ɵɵlistener("click", function AnimateCameraComponent_button_2_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const preset_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.animatePreset(preset_r2)); });
|
|
483
|
+
i0.ɵɵtext(1);
|
|
484
|
+
i0.ɵɵelementEnd();
|
|
485
|
+
} if (rf & 2) {
|
|
486
|
+
const preset_r2 = ctx.$implicit;
|
|
487
|
+
i0.ɵɵadvance(1);
|
|
488
|
+
i0.ɵɵtextInterpolate1(" ", preset_r2, " ");
|
|
489
|
+
} }
|
|
164
490
|
const defaultAnimationPresets = {
|
|
165
491
|
'Preset 1': {
|
|
166
492
|
positions: [
|
|
@@ -220,14 +546,28 @@ class AnimateCameraComponent {
|
|
|
220
546
|
sceneManager.setGeometryOpacity(geometriesGroup, opacity);
|
|
221
547
|
}
|
|
222
548
|
}
|
|
223
|
-
AnimateCameraComponent.ɵfac =
|
|
224
|
-
AnimateCameraComponent.ɵcmp = i0.ɵɵ
|
|
225
|
-
i0.ɵɵ
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
549
|
+
AnimateCameraComponent.ɵfac = function AnimateCameraComponent_Factory(t) { return new (t || AnimateCameraComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
550
|
+
AnimateCameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AnimateCameraComponent, selectors: [["app-animate-camera"]], inputs: { animationPresets: "animationPresets" }, decls: 6, vars: 2, consts: [["animationPresets", ""], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "click"], ["tooltip", "Preset animations", "icon", "animate-camera", 3, "matMenuTriggerFor"]], template: function AnimateCameraComponent_Template(rf, ctx) { if (rf & 1) {
|
|
551
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0);
|
|
552
|
+
i0.ɵɵtemplate(2, AnimateCameraComponent_button_2_Template, 2, 1, "button", 1);
|
|
553
|
+
i0.ɵɵelementStart(3, "button", 2);
|
|
554
|
+
i0.ɵɵlistener("click", function AnimateCameraComponent_Template_button_click_3_listener() { return ctx.animateCamera(); });
|
|
555
|
+
i0.ɵɵtext(4, "Animate camera");
|
|
556
|
+
i0.ɵɵelementEnd()();
|
|
557
|
+
i0.ɵɵelement(5, "app-menu-toggle", 3);
|
|
558
|
+
} if (rf & 2) {
|
|
559
|
+
const _r0 = i0.ɵɵreference(1);
|
|
560
|
+
i0.ɵɵadvance(2);
|
|
561
|
+
i0.ɵɵproperty("ngForOf", ctx.animationPresetsKeys);
|
|
562
|
+
i0.ɵɵadvance(3);
|
|
563
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0);
|
|
564
|
+
} }, dependencies: [i2.NgForOf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
|
|
565
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateCameraComponent, [{
|
|
566
|
+
type: Component,
|
|
567
|
+
args: [{ selector: 'app-animate-camera', template: "<mat-menu #animationPresets>\n <button\n mat-menu-item\n *ngFor=\"let preset of animationPresetsKeys\"\n (click)=\"animatePreset(preset)\"\n >\n {{ preset }}\n </button>\n <button mat-menu-item (click)=\"animateCamera()\">Animate camera</button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"animationPresets\"\n tooltip=\"Preset animations\"\n icon=\"animate-camera\"\n>\n</app-menu-toggle>\n" }]
|
|
568
|
+
}], function () { return [{ type: EventDisplayService }]; }, { animationPresets: [{
|
|
569
|
+
type: Input
|
|
570
|
+
}] }); })();
|
|
231
571
|
|
|
232
572
|
class AnimateEventComponent {
|
|
233
573
|
constructor(eventDisplay) {
|
|
@@ -243,12 +583,18 @@ class AnimateEventComponent {
|
|
|
243
583
|
}
|
|
244
584
|
}
|
|
245
585
|
}
|
|
246
|
-
AnimateEventComponent.ɵfac =
|
|
247
|
-
AnimateEventComponent.ɵcmp = i0.ɵɵ
|
|
248
|
-
i0.ɵɵ
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
586
|
+
AnimateEventComponent.ɵfac = function AnimateEventComponent_Factory(t) { return new (t || AnimateEventComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
587
|
+
AnimateEventComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AnimateEventComponent, selectors: [["app-animate-event"]], decls: 1, vars: 1, consts: [["tooltip", "Animate event", "icon", "event-folder", 3, "active", "click"]], template: function AnimateEventComponent_Template(rf, ctx) { if (rf & 1) {
|
|
588
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
589
|
+
i0.ɵɵlistener("click", function AnimateEventComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAnimateEvent(); });
|
|
590
|
+
i0.ɵɵelementEnd();
|
|
591
|
+
} if (rf & 2) {
|
|
592
|
+
i0.ɵɵproperty("active", ctx.isAnimating);
|
|
593
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
594
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateEventComponent, [{
|
|
595
|
+
type: Component,
|
|
596
|
+
args: [{ selector: 'app-animate-event', template: "<app-menu-toggle\n tooltip=\"Animate event\"\n icon=\"event-folder\"\n [active]=\"isAnimating\"\n (click)=\"toggleAnimateEvent()\"\n>\n</app-menu-toggle>\n" }]
|
|
597
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
252
598
|
|
|
253
599
|
class AutoRotateComponent {
|
|
254
600
|
constructor(eventDisplay) {
|
|
@@ -260,13 +606,76 @@ class AutoRotateComponent {
|
|
|
260
606
|
this.eventDisplay.getUIManager().setAutoRotate(this.autoRotate);
|
|
261
607
|
}
|
|
262
608
|
}
|
|
263
|
-
AutoRotateComponent.ɵfac =
|
|
264
|
-
AutoRotateComponent.ɵcmp = i0.ɵɵ
|
|
265
|
-
i0.ɵɵ
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
609
|
+
AutoRotateComponent.ɵfac = function AutoRotateComponent_Factory(t) { return new (t || AutoRotateComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
610
|
+
AutoRotateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AutoRotateComponent, selectors: [["app-auto-rotate"]], decls: 1, vars: 1, consts: [["tooltip", "Auto rotate", "icon", "rotate", 3, "active", "click"]], template: function AutoRotateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
611
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
612
|
+
i0.ɵɵlistener("click", function AutoRotateComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAutoRotate(); });
|
|
613
|
+
i0.ɵɵelementEnd();
|
|
614
|
+
} if (rf & 2) {
|
|
615
|
+
i0.ɵɵproperty("active", ctx.autoRotate);
|
|
616
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
617
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoRotateComponent, [{
|
|
618
|
+
type: Component,
|
|
619
|
+
args: [{ selector: 'app-auto-rotate', template: "<app-menu-toggle\n tooltip=\"Auto rotate\"\n icon=\"rotate\"\n [active]=\"autoRotate\"\n (click)=\"toggleAutoRotate()\"\n>\n</app-menu-toggle>\n" }]
|
|
620
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
269
621
|
|
|
622
|
+
const _c0$7 = ["overlayCard"];
|
|
623
|
+
const _c1$2 = ["resizeHandleCorner"];
|
|
624
|
+
function OverlayComponent_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
625
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
626
|
+
i0.ɵɵnamespaceSVG();
|
|
627
|
+
i0.ɵɵelementStart(1, "svg");
|
|
628
|
+
i0.ɵɵelement(2, "use");
|
|
629
|
+
i0.ɵɵelementEnd()();
|
|
630
|
+
} if (rf & 2) {
|
|
631
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
632
|
+
i0.ɵɵadvance(2);
|
|
633
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r4.icon, ".svg#", ctx_r4.icon, "");
|
|
634
|
+
} }
|
|
635
|
+
const _c2 = function (a0) { return { "with-body": a0 }; };
|
|
636
|
+
const _c3 = function (a0) { return { expand: a0 }; };
|
|
637
|
+
function OverlayComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
638
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
639
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
640
|
+
i0.ɵɵtemplate(1, OverlayComponent_div_2_div_1_Template, 3, 2, "div", 6);
|
|
641
|
+
i0.ɵɵelementStart(2, "h5", 7);
|
|
642
|
+
i0.ɵɵtext(3);
|
|
643
|
+
i0.ɵɵelementEnd();
|
|
644
|
+
i0.ɵɵelementStart(4, "button", 8);
|
|
645
|
+
i0.ɵɵlistener("click", function OverlayComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.showBody = !ctx_r5.showBody); });
|
|
646
|
+
i0.ɵɵnamespaceSVG();
|
|
647
|
+
i0.ɵɵelementStart(5, "svg");
|
|
648
|
+
i0.ɵɵelement(6, "use", 9);
|
|
649
|
+
i0.ɵɵelementEnd()()();
|
|
650
|
+
} if (rf & 2) {
|
|
651
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
652
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.showBody));
|
|
653
|
+
i0.ɵɵadvance(1);
|
|
654
|
+
i0.ɵɵproperty("ngIf", ctx_r1.icon);
|
|
655
|
+
i0.ɵɵadvance(2);
|
|
656
|
+
i0.ɵɵtextInterpolate(ctx_r1.overlayTitle);
|
|
657
|
+
i0.ɵɵadvance(1);
|
|
658
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3, ctx_r1.showBody));
|
|
659
|
+
} }
|
|
660
|
+
const _c4 = function (a0) { return { "transparent-bg": a0 }; };
|
|
661
|
+
function OverlayComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
662
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
663
|
+
i0.ɵɵprojection(1);
|
|
664
|
+
i0.ɵɵelementEnd();
|
|
665
|
+
} if (rf & 2) {
|
|
666
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
667
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c4, ctx_r2.transparentBody));
|
|
668
|
+
} }
|
|
669
|
+
function OverlayComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
670
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
671
|
+
i0.ɵɵelementStart(0, "span", 12, 13);
|
|
672
|
+
i0.ɵɵlistener("cdkDragMoved", function OverlayComponent_span_4_Template_span_cdkDragMoved_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onResize()); });
|
|
673
|
+
i0.ɵɵelementEnd();
|
|
674
|
+
} if (rf & 2) {
|
|
675
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
676
|
+
i0.ɵɵproperty("hidden", !ctx_r3.showBody);
|
|
677
|
+
} }
|
|
678
|
+
const _c5 = ["*"];
|
|
270
679
|
/**
|
|
271
680
|
* Component for overlay panel.
|
|
272
681
|
*/
|
|
@@ -337,29 +746,222 @@ class OverlayComponent {
|
|
|
337
746
|
this.resizeHandleCorner.nativeElement.style.transform = `translate3d(${translateX}px, ${translateY}px, 0)`;
|
|
338
747
|
}
|
|
339
748
|
}
|
|
340
|
-
OverlayComponent.ɵfac =
|
|
341
|
-
OverlayComponent.ɵcmp = i0.ɵɵ
|
|
342
|
-
i0.ɵɵ
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
749
|
+
OverlayComponent.ɵfac = function OverlayComponent_Factory(t) { return new (t || OverlayComponent)(); };
|
|
750
|
+
OverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayComponent, selectors: [["app-overlay"]], viewQuery: function OverlayComponent_Query(rf, ctx) { if (rf & 1) {
|
|
751
|
+
i0.ɵɵviewQuery(_c0$7, 5);
|
|
752
|
+
i0.ɵɵviewQuery(_c1$2, 5);
|
|
753
|
+
} if (rf & 2) {
|
|
754
|
+
let _t;
|
|
755
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayCard = _t.first);
|
|
756
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resizeHandleCorner = _t.first);
|
|
757
|
+
} }, inputs: { overlayTitle: "overlayTitle", active: "active", icon: "icon", resizable: "resizable", transparentBody: "transparentBody" }, ngContentSelectors: _c5, decls: 5, vars: 4, consts: [["cdkDrag", "", "cdkDragBoundary", "body", 1, "overlay-card", "card", 3, "hidden"], ["overlayCard", ""], ["class", "card-header d-flex justify-content-between", "cdkDragHandle", "", 3, "ngClass", 4, "ngIf"], ["class", "overlay-card-content", 3, "ngClass", 4, "ngIf"], ["class", "resize-handle corner", "cdkDrag", "", 3, "hidden", "cdkDragMoved", 4, "ngIf"], ["cdkDragHandle", "", 1, "card-header", "d-flex", "justify-content-between", 3, "ngClass"], ["class", "align-self-center card-icon", 4, "ngIf"], [1, "align-self-center", "m-0", "px-2"], ["matTooltip", "Expand / Collapse", "matTooltipPosition", "right", 1, "align-self-center", "card-icon", "btn-blank", "expandCollapse", 3, "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], [1, "align-self-center", "card-icon"], [1, "overlay-card-content", 3, "ngClass"], ["cdkDrag", "", 1, "resize-handle", "corner", 3, "hidden", "cdkDragMoved"], ["resizeHandleCorner", ""]], template: function OverlayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
758
|
+
i0.ɵɵprojectionDef();
|
|
759
|
+
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
760
|
+
i0.ɵɵtemplate(2, OverlayComponent_div_2_Template, 7, 8, "div", 2);
|
|
761
|
+
i0.ɵɵtemplate(3, OverlayComponent_div_3_Template, 2, 3, "div", 3);
|
|
762
|
+
i0.ɵɵtemplate(4, OverlayComponent_span_4_Template, 2, 1, "span", 4);
|
|
763
|
+
i0.ɵɵelementEnd();
|
|
764
|
+
} if (rf & 2) {
|
|
765
|
+
i0.ɵɵproperty("hidden", !ctx.active);
|
|
766
|
+
i0.ɵɵadvance(2);
|
|
767
|
+
i0.ɵɵproperty("ngIf", ctx.overlayTitle);
|
|
768
|
+
i0.ɵɵadvance(1);
|
|
769
|
+
i0.ɵɵproperty("ngIf", ctx.showBody);
|
|
770
|
+
i0.ɵɵadvance(1);
|
|
771
|
+
i0.ɵɵproperty("ngIf", ctx.resizable);
|
|
772
|
+
} }, dependencies: [i2.NgClass, i2.NgIf, i2$4.CdkDrag, i2$4.CdkDragHandle, i2$3.MatTooltip], styles: [".overlay-card.card{color:var(--phoenix-text-color);background:none;max-width:100vw;font-size:12px;min-width:300px;height:100%;max-height:70vh;box-shadow:none;border:none;position:relative;z-index:200}.overlay-card.card .card-header{width:12rem;background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);padding:.4rem .8rem;border-radius:10px;border:none;cursor:move;text-align:center;transition:all .2s}.overlay-card.card .card-header.with-body{border-bottom-left-radius:0;border-bottom-right-radius:0}.overlay-card.card .card-header .card-icon{display:flex;height:.7rem;width:.7rem}.overlay-card.card .card-header h5{font-size:.9rem}.overlay-card.card .card-header .expandCollapse{cursor:pointer;transition:all .2s}.overlay-card.card .card-header .expandCollapse.expand{transform:scaleY(-1)}.overlay-card.card .card-header .expandCollapse svg{width:100%;height:100%}.overlay-card.card .overlay-card-content{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);border-radius:0 10px 10px;overflow:auto;height:100%}.overlay-card.card .overlay-card-content.transparent-bg{background:none}.overlay-card.card .list-group{color:var(--phoenix-text-color-secondary);background:var(--phoenix-background-color-secondary);max-height:40vh;overflow:auto}.overlay-card.card .list-group .list-group-item{background-color:var(--phoenix-background-color-secondary);border-color:var(--phoenix-border)}.overlay-card.card .resize-handle{width:1rem;height:1rem;cursor:nwse-resize;position:absolute}.overlay-card.card .resize-handle.corner{border-right:.2rem solid var(--phoenix-text-color);border-bottom:.2rem solid var(--phoenix-text-color)}\n"], encapsulation: 2 });
|
|
773
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayComponent, [{
|
|
774
|
+
type: Component,
|
|
775
|
+
args: [{ selector: 'app-overlay', encapsulation: ViewEncapsulation.None, template: "<div\n #overlayCard\n class=\"overlay-card card\"\n [hidden]=\"!active\"\n cdkDrag\n cdkDragBoundary=\"body\"\n>\n <div\n class=\"card-header d-flex justify-content-between\"\n [ngClass]=\"{ 'with-body': showBody }\"\n cdkDragHandle\n *ngIf=\"overlayTitle\"\n >\n <div class=\"align-self-center card-icon\" *ngIf=\"icon\">\n <svg>\n <use attr.href=\"assets/icons/{{ icon }}.svg#{{ icon }}\"></use>\n </svg>\n </div>\n <h5 class=\"align-self-center m-0 px-2\">{{ overlayTitle }}</h5>\n <button\n class=\"align-self-center card-icon btn-blank expandCollapse\"\n matTooltip=\"Expand / Collapse\"\n matTooltipPosition=\"right\"\n [ngClass]=\"{ expand: showBody }\"\n (click)=\"showBody = !showBody\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n <div\n class=\"overlay-card-content\"\n *ngIf=\"showBody\"\n [ngClass]=\"{ 'transparent-bg': transparentBody }\"\n >\n <ng-content></ng-content>\n </div>\n <!-- Making the overlay resizable -->\n <span\n #resizeHandleCorner\n class=\"resize-handle corner\"\n *ngIf=\"resizable\"\n [hidden]=\"!showBody\"\n cdkDrag\n (cdkDragMoved)=\"onResize()\"\n ></span>\n</div>\n", styles: [".overlay-card.card{color:var(--phoenix-text-color);background:none;max-width:100vw;font-size:12px;min-width:300px;height:100%;max-height:70vh;box-shadow:none;border:none;position:relative;z-index:200}.overlay-card.card .card-header{width:12rem;background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);padding:.4rem .8rem;border-radius:10px;border:none;cursor:move;text-align:center;transition:all .2s}.overlay-card.card .card-header.with-body{border-bottom-left-radius:0;border-bottom-right-radius:0}.overlay-card.card .card-header .card-icon{display:flex;height:.7rem;width:.7rem}.overlay-card.card .card-header h5{font-size:.9rem}.overlay-card.card .card-header .expandCollapse{cursor:pointer;transition:all .2s}.overlay-card.card .card-header .expandCollapse.expand{transform:scaleY(-1)}.overlay-card.card .card-header .expandCollapse svg{width:100%;height:100%}.overlay-card.card .overlay-card-content{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);border-radius:0 10px 10px;overflow:auto;height:100%}.overlay-card.card .overlay-card-content.transparent-bg{background:none}.overlay-card.card .list-group{color:var(--phoenix-text-color-secondary);background:var(--phoenix-background-color-secondary);max-height:40vh;overflow:auto}.overlay-card.card .list-group .list-group-item{background-color:var(--phoenix-background-color-secondary);border-color:var(--phoenix-border)}.overlay-card.card .resize-handle{width:1rem;height:1rem;cursor:nwse-resize;position:absolute}.overlay-card.card .resize-handle.corner{border-right:.2rem solid var(--phoenix-text-color);border-bottom:.2rem solid var(--phoenix-text-color)}\n"] }]
|
|
776
|
+
}], null, { overlayTitle: [{
|
|
777
|
+
type: Input
|
|
778
|
+
}], active: [{
|
|
779
|
+
type: Input
|
|
780
|
+
}], icon: [{
|
|
781
|
+
type: Input
|
|
782
|
+
}], resizable: [{
|
|
783
|
+
type: Input
|
|
784
|
+
}], transparentBody: [{
|
|
785
|
+
type: Input
|
|
786
|
+
}], overlayCard: [{
|
|
787
|
+
type: ViewChild,
|
|
788
|
+
args: ['overlayCard']
|
|
789
|
+
}], resizeHandleCorner: [{
|
|
790
|
+
type: ViewChild,
|
|
791
|
+
args: ['resizeHandleCorner']
|
|
792
|
+
}] }); })();
|
|
362
793
|
|
|
794
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
795
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
796
|
+
i0.ɵɵtext(1);
|
|
797
|
+
i0.ɵɵelementEnd();
|
|
798
|
+
} if (rf & 2) {
|
|
799
|
+
const collection_r6 = ctx.$implicit;
|
|
800
|
+
i0.ɵɵproperty("value", collection_r6);
|
|
801
|
+
i0.ɵɵadvance(1);
|
|
802
|
+
i0.ɵɵtextInterpolate1(" ", collection_r6, " ");
|
|
803
|
+
} }
|
|
804
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template(rf, ctx) { if (rf & 1) {
|
|
805
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
806
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 16);
|
|
807
|
+
i0.ɵɵlistener("change", function CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template_mat_checkbox_change_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r7.toggleInvisible($event.checked)); });
|
|
808
|
+
i0.ɵɵtext(1, " Hide Invisible Objects ");
|
|
809
|
+
i0.ɵɵelementEnd();
|
|
810
|
+
} }
|
|
811
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
812
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
813
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "span");
|
|
814
|
+
i0.ɵɵtext(3, "Choose a collection: ");
|
|
815
|
+
i0.ɵɵelementEnd();
|
|
816
|
+
i0.ɵɵelementStart(4, "div", 9)(5, "label", 10);
|
|
817
|
+
i0.ɵɵtext(6, "Event");
|
|
818
|
+
i0.ɵɵelementEnd();
|
|
819
|
+
i0.ɵɵelementStart(7, "select", 11);
|
|
820
|
+
i0.ɵɵlistener("change", function CollectionsInfoOverlayComponent_div_1_div_1_Template_select_change_7_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.changeCollection($event.target.value)); });
|
|
821
|
+
i0.ɵɵelementStart(8, "option", 12);
|
|
822
|
+
i0.ɵɵtext(9, "Choose Collection");
|
|
823
|
+
i0.ɵɵelementEnd();
|
|
824
|
+
i0.ɵɵtemplate(10, CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template, 2, 2, "option", 13);
|
|
825
|
+
i0.ɵɵelementEnd()();
|
|
826
|
+
i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template, 2, 0, "mat-checkbox", 14);
|
|
827
|
+
i0.ɵɵelementEnd()();
|
|
828
|
+
} if (rf & 2) {
|
|
829
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
830
|
+
i0.ɵɵadvance(10);
|
|
831
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.collections);
|
|
832
|
+
i0.ɵɵadvance(1);
|
|
833
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showingCollection);
|
|
834
|
+
} }
|
|
835
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
836
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
837
|
+
i0.ɵɵelementStart(0, "th")(1, "div", 20)(2, "div");
|
|
838
|
+
i0.ɵɵtext(3);
|
|
839
|
+
i0.ɵɵelementEnd();
|
|
840
|
+
i0.ɵɵelementStart(4, "div", 21)(5, "button", 22);
|
|
841
|
+
i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template_button_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r15); const column_r13 = restoredCtx.$implicit; const ctx_r14 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r14.sort(column_r13, "dec")); });
|
|
842
|
+
i0.ɵɵnamespaceSVG();
|
|
843
|
+
i0.ɵɵelementStart(6, "svg");
|
|
844
|
+
i0.ɵɵelement(7, "use", 23);
|
|
845
|
+
i0.ɵɵelementEnd()();
|
|
846
|
+
i0.ɵɵnamespaceHTML();
|
|
847
|
+
i0.ɵɵelementStart(8, "button", 24);
|
|
848
|
+
i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template_button_click_8_listener() { const restoredCtx = i0.ɵɵrestoreView(_r15); const column_r13 = restoredCtx.$implicit; const ctx_r16 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r16.sort(column_r13, "asc")); });
|
|
849
|
+
i0.ɵɵnamespaceSVG();
|
|
850
|
+
i0.ɵɵelementStart(9, "svg");
|
|
851
|
+
i0.ɵɵelement(10, "use", 23);
|
|
852
|
+
i0.ɵɵelementEnd()()()()();
|
|
853
|
+
} if (rf & 2) {
|
|
854
|
+
const column_r13 = ctx.$implicit;
|
|
855
|
+
const ctx_r11 = i0.ɵɵnextContext(3);
|
|
856
|
+
i0.ɵɵadvance(3);
|
|
857
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r11.getPrettySymbol(column_r13), " ");
|
|
858
|
+
} }
|
|
859
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
860
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
861
|
+
i0.ɵɵelementStart(0, "div", 33)(1, "button", 34);
|
|
862
|
+
i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r23); const object_r17 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r21.lookAtObject(object_r17.uuid)); });
|
|
863
|
+
i0.ɵɵnamespaceSVG();
|
|
864
|
+
i0.ɵɵelementStart(2, "svg");
|
|
865
|
+
i0.ɵɵelement(3, "use", 35);
|
|
866
|
+
i0.ɵɵelementEnd()();
|
|
867
|
+
i0.ɵɵnamespaceHTML();
|
|
868
|
+
i0.ɵɵelementStart(4, "button", 36);
|
|
869
|
+
i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r23); const object_r17 = i0.ɵɵnextContext().$implicit; const ctx_r24 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r24.highlightObject(object_r17.uuid)); });
|
|
870
|
+
i0.ɵɵnamespaceSVG();
|
|
871
|
+
i0.ɵɵelementStart(5, "svg");
|
|
872
|
+
i0.ɵɵelement(6, "use", 37);
|
|
873
|
+
i0.ɵɵelementEnd()()();
|
|
874
|
+
} }
|
|
875
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template(rf, ctx) { if (rf & 1) {
|
|
876
|
+
i0.ɵɵnamespaceSVG();
|
|
877
|
+
i0.ɵɵnamespaceHTML();
|
|
878
|
+
i0.ɵɵelementStart(0, "td");
|
|
879
|
+
i0.ɵɵtext(1);
|
|
880
|
+
i0.ɵɵelementEnd();
|
|
881
|
+
} if (rf & 2) {
|
|
882
|
+
const column_r26 = ctx.$implicit;
|
|
883
|
+
const object_r17 = i0.ɵɵnextContext().$implicit;
|
|
884
|
+
i0.ɵɵadvance(1);
|
|
885
|
+
i0.ɵɵtextInterpolate1(" ", object_r17[column_r26], " ");
|
|
886
|
+
} }
|
|
887
|
+
const _c0$6 = function (a0, a1, a2) { return { "active-object": a0, "is-cut": a1, "d-none": a2 }; };
|
|
888
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
889
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
890
|
+
i0.ɵɵelementStart(0, "tr", 25)(1, "td");
|
|
891
|
+
i0.ɵɵtext(2);
|
|
892
|
+
i0.ɵɵelementEnd();
|
|
893
|
+
i0.ɵɵelementStart(3, "td");
|
|
894
|
+
i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template, 7, 0, "div", 26);
|
|
895
|
+
i0.ɵɵelementEnd();
|
|
896
|
+
i0.ɵɵelementStart(5, "td")(6, "div", 27)(7, "div", 28);
|
|
897
|
+
i0.ɵɵelement(8, "input", 29);
|
|
898
|
+
i0.ɵɵelementEnd();
|
|
899
|
+
i0.ɵɵelementStart(9, "div", 30)(10, "button", 31);
|
|
900
|
+
i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template_button_click_10_listener() { const restoredCtx = i0.ɵɵrestoreView(_r29); const i_r18 = restoredCtx.index; const object_r17 = restoredCtx.$implicit; const ctx_r28 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r28.addLabel(i_r18, object_r17.uuid)); });
|
|
901
|
+
i0.ɵɵnamespaceSVG();
|
|
902
|
+
i0.ɵɵelementStart(11, "svg");
|
|
903
|
+
i0.ɵɵelement(12, "use", 32);
|
|
904
|
+
i0.ɵɵelementEnd()()()()();
|
|
905
|
+
i0.ɵɵtemplate(13, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template, 2, 1, "td", 18);
|
|
906
|
+
i0.ɵɵelementEnd();
|
|
907
|
+
} if (rf & 2) {
|
|
908
|
+
const object_r17 = ctx.$implicit;
|
|
909
|
+
const i_r18 = ctx.index;
|
|
910
|
+
const ctx_r12 = i0.ɵɵnextContext(3);
|
|
911
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c0$6, ctx_r12.activeObject && ctx_r12.activeObject.value === object_r17.uuid, object_r17.isCut, object_r17.isCut && ctx_r12.hideInvisible));
|
|
912
|
+
i0.ɵɵattribute("id", object_r17.uuid);
|
|
913
|
+
i0.ɵɵadvance(2);
|
|
914
|
+
i0.ɵɵtextInterpolate1("#", i_r18, "");
|
|
915
|
+
i0.ɵɵadvance(2);
|
|
916
|
+
i0.ɵɵproperty("ngIf", object_r17.uuid);
|
|
917
|
+
i0.ɵɵadvance(4);
|
|
918
|
+
i0.ɵɵproperty("id", "label" + i_r18);
|
|
919
|
+
i0.ɵɵadvance(5);
|
|
920
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.collectionColumns);
|
|
921
|
+
} }
|
|
922
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
923
|
+
i0.ɵɵelementStart(0, "table", 17)(1, "thead")(2, "tr")(3, "th");
|
|
924
|
+
i0.ɵɵtext(4, "No.");
|
|
925
|
+
i0.ɵɵelementEnd();
|
|
926
|
+
i0.ɵɵelementStart(5, "th");
|
|
927
|
+
i0.ɵɵtext(6, "Selection");
|
|
928
|
+
i0.ɵɵelementEnd();
|
|
929
|
+
i0.ɵɵelementStart(7, "th");
|
|
930
|
+
i0.ɵɵtext(8, "Label");
|
|
931
|
+
i0.ɵɵelementEnd();
|
|
932
|
+
i0.ɵɵtemplate(9, CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template, 11, 1, "th", 18);
|
|
933
|
+
i0.ɵɵelementEnd()();
|
|
934
|
+
i0.ɵɵelementStart(10, "tbody");
|
|
935
|
+
i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template, 14, 10, "tr", 19);
|
|
936
|
+
i0.ɵɵelementEnd()();
|
|
937
|
+
} if (rf & 2) {
|
|
938
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
939
|
+
i0.ɵɵadvance(9);
|
|
940
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.collectionColumns);
|
|
941
|
+
i0.ɵɵadvance(2);
|
|
942
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.showingCollection);
|
|
943
|
+
} }
|
|
944
|
+
function CollectionsInfoOverlayComponent_div_1_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
945
|
+
i0.ɵɵelementStart(0, "p", 38);
|
|
946
|
+
i0.ɵɵtext(1, " Load event data to be able to display information about the collections here. ");
|
|
947
|
+
i0.ɵɵelementEnd();
|
|
948
|
+
} }
|
|
949
|
+
function CollectionsInfoOverlayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
950
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
951
|
+
i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_div_1_Template, 12, 2, "div", 3);
|
|
952
|
+
i0.ɵɵelementStart(2, "div", 4);
|
|
953
|
+
i0.ɵɵtemplate(3, CollectionsInfoOverlayComponent_div_1_table_3_Template, 12, 2, "table", 5);
|
|
954
|
+
i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_p_4_Template, 2, 0, "p", 6);
|
|
955
|
+
i0.ɵɵelementEnd()();
|
|
956
|
+
} if (rf & 2) {
|
|
957
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
958
|
+
i0.ɵɵadvance(1);
|
|
959
|
+
i0.ɵɵproperty("ngIf", ctx_r0.collections != null);
|
|
960
|
+
i0.ɵɵadvance(2);
|
|
961
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showingCollection);
|
|
962
|
+
i0.ɵɵadvance(1);
|
|
963
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.collections);
|
|
964
|
+
} }
|
|
363
965
|
class CollectionsInfoOverlayComponent {
|
|
364
966
|
constructor(elementRef, eventDisplay) {
|
|
365
967
|
this.elementRef = elementRef;
|
|
@@ -424,14 +1026,22 @@ class CollectionsInfoOverlayComponent {
|
|
|
424
1026
|
.getObjectByName(SceneManager.EVENT_DATA_ID);
|
|
425
1027
|
}
|
|
426
1028
|
}
|
|
427
|
-
CollectionsInfoOverlayComponent.ɵfac =
|
|
428
|
-
CollectionsInfoOverlayComponent.ɵcmp = i0.ɵɵ
|
|
429
|
-
i0.ɵɵ
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
1029
|
+
CollectionsInfoOverlayComponent.ɵfac = function CollectionsInfoOverlayComponent_Factory(t) { return new (t || CollectionsInfoOverlayComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1030
|
+
CollectionsInfoOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CollectionsInfoOverlayComponent, selectors: [["app-collections-info-overlay"]], inputs: { showObjectsInfo: "showObjectsInfo" }, decls: 2, vars: 3, consts: [["overlayTitle", "Collections Info", "icon", "info", 3, "resizable", "active"], ["class", "collectionsInfo m-2", 4, "ngIf"], [1, "collectionsInfo", "m-2"], ["class", "collectionSelector mb-2 d-flex align-items-center", 4, "ngIf"], [1, "boxBody", "table-responsive"], ["id", "collectionTable", "class", "table table-borderless table-sm", 4, "ngIf"], ["class", "emptyBox", 4, "ngIf"], [1, "collectionSelector", "mb-2", "d-flex", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "eventSelector"], ["for", "event"], ["id", "collection", "name", "collection", 3, "change"], ["value", "", "selected", "", "disabled", "", "hidden", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "change", 4, "ngIf"], [3, "value"], [3, "change"], ["id", "collectionTable", 1, "table", "table-borderless", "table-sm"], [4, "ngFor", "ngForOf"], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "head-wrapper"], [1, "sort-options"], [1, "icon-wrapper", "icon-button", "btn-blank", "up", 3, "click"], ["href", "assets/icons/expand.svg#expand"], [1, "icon-wrapper", "icon-button", "btn-blank", 3, "click"], [3, "ngClass"], ["class", "row justify-content-center icon-wrapper", 4, "ngIf"], [1, "row", "m-0", "add-label"], [1, "col-10", "p-0"], ["type", "text", 1, "form-control", "form-control-sm", 3, "id"], [1, "col-2", "p-0", "pl-2", "text-center", "icon-wrapper"], ["matTooltip", "Add, update or remove object label", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/update.svg#update"], [1, "row", "justify-content-center", "icon-wrapper"], ["matTooltip", "Move camera to object", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/views.svg#views"], ["matTooltip", "Highlight object", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/cursor.svg#cursor"], [1, "emptyBox"]], template: function CollectionsInfoOverlayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1031
|
+
i0.ɵɵelementStart(0, "app-overlay", 0);
|
|
1032
|
+
i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_Template, 5, 3, "div", 1);
|
|
1033
|
+
i0.ɵɵelementEnd();
|
|
1034
|
+
} if (rf & 2) {
|
|
1035
|
+
i0.ɵɵproperty("resizable", true)("active", ctx.showObjectsInfo);
|
|
1036
|
+
i0.ɵɵadvance(1);
|
|
1037
|
+
i0.ɵɵproperty("ngIf", ctx.showObjectsInfo);
|
|
1038
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$3.MatTooltip, i4.MatCheckbox, OverlayComponent], styles: [".collectionsInfo[_ngcontent-%COMP%]{height:95%}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%]{height:15%;min-height:2rem}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary);margin-right:1rem}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:1rem}.boxBody[_ngcontent-%COMP%]{height:85%;overflow:scroll}.boxBody[_ngcontent-%COMP%] p.emptyBox[_ngcontent-%COMP%]{max-width:21em}.boxBody[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%]{min-width:8rem}.boxBody[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:.1rem .3rem;font-size:.75rem}#collectionTable[_ngcontent-%COMP%]{position:relative;color:var(--phoenix-text-color-secondary)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background:var(--phoenix-background-color-secondary)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%]{display:flex;flex-direction:row}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:flex;width:1rem;height:1rem;padding:.2rem}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper.up[_ngcontent-%COMP%]{transform:rotate(180deg)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%}#collectionTable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding-right:1.2rem}#collectionTable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:last-child{padding-right:0}#collectionTable[_ngcontent-%COMP%] tr.is-cut[_ngcontent-%COMP%]{opacity:.5}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%]{color:var(--phoenix-background-color);background:var(--phoenix-text-color);box-shadow:0 0 15px var(--phoenix-text-color)}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%] div.icon-wrapper[_ngcontent-%COMP%]{--phoenix-options-icon-path: var(--phoenix-background-color);--phoenix-options-icon-bg: var(--phoenix-text-color-hover)}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{--phoenix-text-color: var(--phoenix-background-color);--phoenix-background-color-tertiary: var( --phoenix-text-color-secondary );--phoenix-border: var(--phoenix-background-color)}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]{position:relative;width:1.6rem;height:1.6rem;margin-right:.4em;text-align:center;background-color:var(--phoenix-options-icon-bg);border-radius:10px;cursor:pointer}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]:last-child{margin-right:0}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]:hover{border:1px solid var(--phoenix-options-icon-path)}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;padding:.4rem;width:100%;height:100%;vertical-align:top}.eventSelector[_ngcontent-%COMP%]{display:flex}.eventSelector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:none;color:var(--phoenix-text-color-secondary)}.eventSelector[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}"] });
|
|
1039
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoOverlayComponent, [{
|
|
1040
|
+
type: Component,
|
|
1041
|
+
args: [{ selector: 'app-collections-info-overlay', template: "<!-- Show objects -->\n<app-overlay\n overlayTitle=\"Collections Info\"\n icon=\"info\"\n [resizable]=\"true\"\n [active]=\"showObjectsInfo\"\n>\n <!-- Using ngIf to remove it from DOM since this panel requires heavy computing -->\n <div *ngIf=\"showObjectsInfo\" class=\"collectionsInfo m-2\">\n <div\n class=\"collectionSelector mb-2 d-flex align-items-center\"\n *ngIf=\"collections != null\"\n >\n <div class=\"d-flex align-items-center\">\n <span>Choose a collection: </span>\n <div class=\"eventSelector\">\n <label for=\"event\">Event</label>\n <select\n id=\"collection\"\n name=\"collection\"\n (change)=\"changeCollection($event.target.value)\"\n >\n <option value=\"\" selected disabled hidden>Choose Collection</option>\n <option *ngFor=\"let collection of collections\" [value]=\"collection\">\n {{ collection }}\n </option>\n </select>\n </div>\n <mat-checkbox\n *ngIf=\"showingCollection\"\n (change)=\"toggleInvisible($event.checked)\"\n >\n Hide Invisible Objects\n </mat-checkbox>\n </div>\n </div>\n\n <div class=\"boxBody table-responsive\">\n <table\n id=\"collectionTable\"\n class=\"table table-borderless table-sm\"\n *ngIf=\"showingCollection\"\n >\n <thead>\n <tr>\n <th>No.</th>\n <th>Selection</th>\n <th>Label</th>\n <th *ngFor=\"let column of collectionColumns\">\n <div class=\"head-wrapper\">\n <div>\n {{ getPrettySymbol(column) }}\n </div>\n <div class=\"sort-options\">\n <button\n class=\"icon-wrapper icon-button btn-blank up\"\n (click)=\"sort(column, 'dec')\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n <button\n class=\"icon-wrapper icon-button btn-blank\"\n (click)=\"sort(column, 'asc')\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let object of showingCollection; index as i\"\n [attr.id]=\"object.uuid\"\n [ngClass]=\"{\n 'active-object':\n activeObject && activeObject.value === object.uuid,\n 'is-cut': object.isCut,\n 'd-none': object.isCut && hideInvisible\n }\"\n >\n <td>#{{ i }}</td>\n <td>\n <div\n *ngIf=\"object.uuid\"\n class=\"row justify-content-center icon-wrapper\"\n >\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Move camera to object\"\n (click)=\"lookAtObject(object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/views.svg#views\"></use>\n </svg>\n </button>\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Highlight object\"\n (click)=\"highlightObject(object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/cursor.svg#cursor\"></use>\n </svg>\n </button>\n </div>\n </td>\n <td>\n <div class=\"row m-0 add-label\">\n <div class=\"col-10 p-0\">\n <input\n class=\"form-control form-control-sm\"\n type=\"text\"\n [id]=\"'label' + i\"\n />\n </div>\n <div class=\"col-2 p-0 pl-2 text-center icon-wrapper\">\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Add, update or remove object label\"\n (click)=\"addLabel(i, object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/update.svg#update\"></use>\n </svg>\n </button>\n </div>\n </div>\n </td>\n <td *ngFor=\"let column of collectionColumns\">\n {{ object[column] }}\n </td>\n </tr>\n </tbody>\n </table>\n <p class=\"emptyBox\" *ngIf=\"!collections\">\n Load event data to be able to display information about the collections\n here.\n </p>\n </div>\n </div>\n</app-overlay>\n", styles: [".collectionsInfo{height:95%}.collectionsInfo .collectionSelector{height:15%;min-height:2rem}.collectionsInfo .collectionSelector span{color:var(--phoenix-text-color-secondary);margin-right:1rem}.collectionsInfo .collectionSelector mat-checkbox{margin-left:1rem}.boxBody{height:85%;overflow:scroll}.boxBody p.emptyBox{max-width:21em}.boxBody .add-label{min-width:8rem}.boxBody .add-label input{padding:.1rem .3rem;font-size:.75rem}#collectionTable{position:relative;color:var(--phoenix-text-color-secondary)}#collectionTable thead tr th{position:sticky;top:0;z-index:100;background:var(--phoenix-background-color-secondary)}#collectionTable thead tr th .head-wrapper{display:flex;align-items:center}#collectionTable thead tr th .head-wrapper .sort-options{display:flex;flex-direction:row}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper{display:flex;width:1rem;height:1rem;padding:.2rem}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper.up{transform:rotate(180deg)}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper svg{width:100%;height:100%}#collectionTable tr *{padding-right:1.2rem}#collectionTable tr *:last-child{padding-right:0}#collectionTable tr.is-cut{opacity:.5}#collectionTable tr.active-object{color:var(--phoenix-background-color);background:var(--phoenix-text-color);box-shadow:0 0 15px var(--phoenix-text-color)}#collectionTable tr.active-object div.icon-wrapper{--phoenix-options-icon-path: var(--phoenix-background-color);--phoenix-options-icon-bg: var(--phoenix-text-color-hover)}#collectionTable tr.active-object .add-label input{--phoenix-text-color: var(--phoenix-background-color);--phoenix-background-color-tertiary: var( --phoenix-text-color-secondary );--phoenix-border: var(--phoenix-background-color)}#collectionTable td .object-select{position:relative;width:1.6rem;height:1.6rem;margin-right:.4em;text-align:center;background-color:var(--phoenix-options-icon-bg);border-radius:10px;cursor:pointer}#collectionTable td .object-select:last-child{margin-right:0}#collectionTable td .object-select:hover{border:1px solid var(--phoenix-options-icon-path)}#collectionTable td .object-select svg{position:absolute;top:0;left:0;padding:.4rem;width:100%;height:100%;vertical-align:top}.eventSelector{display:flex}.eventSelector label{display:none;color:var(--phoenix-text-color-secondary)}.eventSelector select{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}\n"] }]
|
|
1042
|
+
}], function () { return [{ type: i0.ElementRef }, { type: EventDisplayService }]; }, { showObjectsInfo: [{
|
|
1043
|
+
type: Input
|
|
1044
|
+
}] }); })();
|
|
435
1045
|
|
|
436
1046
|
class CollectionsInfoComponent {
|
|
437
1047
|
constructor(overlay) {
|
|
@@ -452,12 +1062,18 @@ class CollectionsInfoComponent {
|
|
|
452
1062
|
this.overlayWindow.instance.showObjectsInfo = this.showObjectsInfo;
|
|
453
1063
|
}
|
|
454
1064
|
}
|
|
455
|
-
CollectionsInfoComponent.ɵfac =
|
|
456
|
-
CollectionsInfoComponent.ɵcmp = i0.ɵɵ
|
|
457
|
-
i0.ɵɵ
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
1065
|
+
CollectionsInfoComponent.ɵfac = function CollectionsInfoComponent_Factory(t) { return new (t || CollectionsInfoComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1066
|
+
CollectionsInfoComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CollectionsInfoComponent, selectors: [["app-collections-info"]], decls: 1, vars: 1, consts: [["tooltip", "Event data collections info", "icon", "info", 3, "active", "click"]], template: function CollectionsInfoComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1067
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1068
|
+
i0.ɵɵlistener("click", function CollectionsInfoComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1069
|
+
i0.ɵɵelementEnd();
|
|
1070
|
+
} if (rf & 2) {
|
|
1071
|
+
i0.ɵɵproperty("active", ctx.showObjectsInfo);
|
|
1072
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1073
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoComponent, [{
|
|
1074
|
+
type: Component,
|
|
1075
|
+
args: [{ selector: 'app-collections-info', template: "<app-menu-toggle\n tooltip=\"Event data collections info\"\n icon=\"info\"\n [active]=\"showObjectsInfo\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
|
|
1076
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
461
1077
|
|
|
462
1078
|
class DarkThemeComponent {
|
|
463
1079
|
constructor(eventDisplay) {
|
|
@@ -472,13 +1088,40 @@ class DarkThemeComponent {
|
|
|
472
1088
|
this.eventDisplay.getUIManager().setDarkTheme(this.darkTheme);
|
|
473
1089
|
}
|
|
474
1090
|
}
|
|
475
|
-
DarkThemeComponent.ɵfac =
|
|
476
|
-
DarkThemeComponent.ɵcmp = i0.ɵɵ
|
|
477
|
-
i0.ɵɵ
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
1091
|
+
DarkThemeComponent.ɵfac = function DarkThemeComponent_Factory(t) { return new (t || DarkThemeComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1092
|
+
DarkThemeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DarkThemeComponent, selectors: [["app-dark-theme"]], decls: 1, vars: 1, consts: [["tooltip", "Dark theme", "icon", "dark", 3, "active", "click"]], template: function DarkThemeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1093
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1094
|
+
i0.ɵɵlistener("click", function DarkThemeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.setDarkTheme(); });
|
|
1095
|
+
i0.ɵɵelementEnd();
|
|
1096
|
+
} if (rf & 2) {
|
|
1097
|
+
i0.ɵɵproperty("active", ctx.darkTheme);
|
|
1098
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1099
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DarkThemeComponent, [{
|
|
1100
|
+
type: Component,
|
|
1101
|
+
args: [{ selector: 'app-dark-theme', template: "<app-menu-toggle\n tooltip=\"Dark theme\"\n [active]=\"darkTheme\"\n icon=\"dark\"\n (click)=\"setDarkTheme()\"\n>\n</app-menu-toggle>\n" }]
|
|
1102
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
481
1103
|
|
|
1104
|
+
function EventSelectorComponent_div_0_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
1105
|
+
i0.ɵɵelementStart(0, "option", 4);
|
|
1106
|
+
i0.ɵɵtext(1);
|
|
1107
|
+
i0.ɵɵelementEnd();
|
|
1108
|
+
} if (rf & 2) {
|
|
1109
|
+
const event_r2 = ctx.$implicit;
|
|
1110
|
+
i0.ɵɵproperty("value", event_r2);
|
|
1111
|
+
i0.ɵɵadvance(1);
|
|
1112
|
+
i0.ɵɵtextInterpolate1(" ", event_r2, " ");
|
|
1113
|
+
} }
|
|
1114
|
+
function EventSelectorComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
1115
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1116
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "select", 2);
|
|
1117
|
+
i0.ɵɵlistener("change", function EventSelectorComponent_div_0_Template_select_change_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.changeEvent($event)); });
|
|
1118
|
+
i0.ɵɵtemplate(2, EventSelectorComponent_div_0_option_2_Template, 2, 2, "option", 3);
|
|
1119
|
+
i0.ɵɵelementEnd()();
|
|
1120
|
+
} if (rf & 2) {
|
|
1121
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1122
|
+
i0.ɵɵadvance(2);
|
|
1123
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.events);
|
|
1124
|
+
} }
|
|
482
1125
|
class EventSelectorComponent {
|
|
483
1126
|
constructor(eventDisplay) {
|
|
484
1127
|
this.eventDisplay = eventDisplay;
|
|
@@ -491,13 +1134,71 @@ class EventSelectorComponent {
|
|
|
491
1134
|
this.eventDisplay.loadEvent(value);
|
|
492
1135
|
}
|
|
493
1136
|
}
|
|
494
|
-
EventSelectorComponent.ɵfac =
|
|
495
|
-
EventSelectorComponent.ɵcmp = i0.ɵɵ
|
|
496
|
-
i0.ɵɵ
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
1137
|
+
EventSelectorComponent.ɵfac = function EventSelectorComponent_Factory(t) { return new (t || EventSelectorComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1138
|
+
EventSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventSelectorComponent, selectors: [["app-event-selector"]], decls: 1, vars: 1, consts: [["class", "eventSelector mx-2", "matTooltip", "Event selector", "matTooltipPosition", "above", 4, "ngIf"], ["matTooltip", "Event selector", "matTooltipPosition", "above", 1, "eventSelector", "mx-2"], ["name", "event", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function EventSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1139
|
+
i0.ɵɵtemplate(0, EventSelectorComponent_div_0_Template, 3, 1, "div", 0);
|
|
1140
|
+
} if (rf & 2) {
|
|
1141
|
+
i0.ɵɵproperty("ngIf", ctx.events != null);
|
|
1142
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i2$3.MatTooltip], styles: [".eventSelector[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}"] });
|
|
1143
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventSelectorComponent, [{
|
|
1144
|
+
type: Component,
|
|
1145
|
+
args: [{ selector: 'app-event-selector', template: "<div\n class=\"eventSelector mx-2\"\n *ngIf=\"events != null\"\n matTooltip=\"Event selector\"\n matTooltipPosition=\"above\"\n>\n <select name=\"event\" (change)=\"changeEvent($event)\">\n <option *ngFor=\"let event of events\" [value]=\"event\">\n {{ event }}\n </option>\n </select>\n</div>\n", styles: [".eventSelector select{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}\n"] }]
|
|
1146
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
500
1147
|
|
|
1148
|
+
function ExperimentInfoComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
1149
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
1150
|
+
i0.ɵɵelement(1, "img", 6);
|
|
1151
|
+
i0.ɵɵelementEnd();
|
|
1152
|
+
} if (rf & 2) {
|
|
1153
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1154
|
+
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
1155
|
+
i0.ɵɵadvance(1);
|
|
1156
|
+
i0.ɵɵproperty("src", ctx_r0.logo, i0.ɵɵsanitizeUrl);
|
|
1157
|
+
} }
|
|
1158
|
+
function ExperimentInfoComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
1159
|
+
i0.ɵɵelementStart(0, "p")(1, "b");
|
|
1160
|
+
i0.ɵɵtext(2);
|
|
1161
|
+
i0.ɵɵelementEnd()();
|
|
1162
|
+
} if (rf & 2) {
|
|
1163
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1164
|
+
i0.ɵɵadvance(2);
|
|
1165
|
+
i0.ɵɵtextInterpolate(ctx_r1.tagline);
|
|
1166
|
+
} }
|
|
1167
|
+
function ExperimentInfoComponent_p_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1168
|
+
i0.ɵɵelementContainerStart(0);
|
|
1169
|
+
i0.ɵɵelementStart(1, "b");
|
|
1170
|
+
i0.ɵɵtext(2);
|
|
1171
|
+
i0.ɵɵelementEnd();
|
|
1172
|
+
i0.ɵɵtext(3);
|
|
1173
|
+
i0.ɵɵelementContainerEnd();
|
|
1174
|
+
} if (rf & 2) {
|
|
1175
|
+
const infoField_r3 = i0.ɵɵnextContext().$implicit;
|
|
1176
|
+
i0.ɵɵadvance(2);
|
|
1177
|
+
i0.ɵɵtextInterpolate1("", infoField_r3.label, ": ");
|
|
1178
|
+
i0.ɵɵadvance(1);
|
|
1179
|
+
i0.ɵɵtextInterpolate1("", infoField_r3.value, " ");
|
|
1180
|
+
} }
|
|
1181
|
+
function ExperimentInfoComponent_p_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
1182
|
+
i0.ɵɵelementContainerStart(0);
|
|
1183
|
+
i0.ɵɵtext(1);
|
|
1184
|
+
i0.ɵɵelementContainerEnd();
|
|
1185
|
+
} if (rf & 2) {
|
|
1186
|
+
const infoField_r3 = i0.ɵɵnextContext().$implicit;
|
|
1187
|
+
i0.ɵɵadvance(1);
|
|
1188
|
+
i0.ɵɵtextInterpolate1(" ", infoField_r3, " ");
|
|
1189
|
+
} }
|
|
1190
|
+
function ExperimentInfoComponent_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
1191
|
+
i0.ɵɵelementStart(0, "p");
|
|
1192
|
+
i0.ɵɵtemplate(1, ExperimentInfoComponent_p_4_ng_container_1_Template, 4, 2, "ng-container", 3);
|
|
1193
|
+
i0.ɵɵtemplate(2, ExperimentInfoComponent_p_4_ng_container_2_Template, 2, 1, "ng-container", 3);
|
|
1194
|
+
i0.ɵɵelementEnd();
|
|
1195
|
+
} if (rf & 2) {
|
|
1196
|
+
const infoField_r3 = ctx.$implicit;
|
|
1197
|
+
i0.ɵɵadvance(1);
|
|
1198
|
+
i0.ɵɵproperty("ngIf", infoField_r3.label);
|
|
1199
|
+
i0.ɵɵadvance(1);
|
|
1200
|
+
i0.ɵɵproperty("ngIf", !infoField_r3.label);
|
|
1201
|
+
} }
|
|
501
1202
|
class ExperimentInfoComponent {
|
|
502
1203
|
constructor(eventDisplay) {
|
|
503
1204
|
this.eventDisplay = eventDisplay;
|
|
@@ -508,19 +1209,47 @@ class ExperimentInfoComponent {
|
|
|
508
1209
|
});
|
|
509
1210
|
}
|
|
510
1211
|
}
|
|
511
|
-
ExperimentInfoComponent.ɵfac =
|
|
512
|
-
ExperimentInfoComponent.ɵcmp = i0.ɵɵ
|
|
513
|
-
i0.ɵɵ
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
1212
|
+
ExperimentInfoComponent.ɵfac = function ExperimentInfoComponent_Factory(t) { return new (t || ExperimentInfoComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1213
|
+
ExperimentInfoComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExperimentInfoComponent, selectors: [["app-experiment-info"]], inputs: { url: "url", logo: "logo", tagline: "tagline" }, decls: 5, vars: 3, consts: [["id", "experimentInfo", "cdkDrag", "", "cdkDragBoundary", "body", 1, "experimentInfo"], ["class", "experimentLogoWrapper", "target", "_blank", "rel", "noopener noreferrer", 3, "href", 4, "ngIf"], [1, "textInfo"], [4, "ngIf"], [4, "ngFor", "ngForOf"], ["target", "_blank", "rel", "noopener noreferrer", 1, "experimentLogoWrapper", 3, "href"], ["alt", "", 1, "experimentLogo", 3, "src"]], template: function ExperimentInfoComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1214
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
1215
|
+
i0.ɵɵtemplate(1, ExperimentInfoComponent_a_1_Template, 2, 2, "a", 1);
|
|
1216
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
1217
|
+
i0.ɵɵtemplate(3, ExperimentInfoComponent_p_3_Template, 3, 1, "p", 3);
|
|
1218
|
+
i0.ɵɵtemplate(4, ExperimentInfoComponent_p_4_Template, 3, 2, "p", 4);
|
|
1219
|
+
i0.ɵɵelementEnd()();
|
|
1220
|
+
} if (rf & 2) {
|
|
1221
|
+
i0.ɵɵadvance(1);
|
|
1222
|
+
i0.ɵɵproperty("ngIf", ctx.url);
|
|
1223
|
+
i0.ɵɵadvance(2);
|
|
1224
|
+
i0.ɵɵproperty("ngIf", ctx.tagline);
|
|
1225
|
+
i0.ɵɵadvance(1);
|
|
1226
|
+
i0.ɵɵproperty("ngForOf", ctx.experimentInfo);
|
|
1227
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i2$4.CdkDrag], styles: [".experimentInfo[_ngcontent-%COMP%]{position:absolute;top:5rem;left:1rem;display:flex;flex-direction:row;justify-items:flex-end;justify-content:flex-end;align-items:center;align-content:center;cursor:move}.experimentLogoWrapper[_ngcontent-%COMP%]{width:6rem}.experimentLogoWrapper[_ngcontent-%COMP%] .experimentLogo[_ngcontent-%COMP%]{width:100%;height:100%}.textInfo[_ngcontent-%COMP%]{margin-left:1rem}.textInfo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary);font-size:.8rem;margin-bottom:.5rem;-webkit-user-select:none;user-select:none}@media screen and (max-width: 768px){.experimentInfo[_ngcontent-%COMP%]{top:4rem;max-width:40%}.experimentLogoWrapper[_ngcontent-%COMP%]{height:4rem}.textInfo[_ngcontent-%COMP%]{display:none}}"] });
|
|
1228
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentInfoComponent, [{
|
|
1229
|
+
type: Component,
|
|
1230
|
+
args: [{ selector: 'app-experiment-info', template: "<div id=\"experimentInfo\" class=\"experimentInfo\" cdkDrag cdkDragBoundary=\"body\">\n <a\n class=\"experimentLogoWrapper\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n *ngIf=\"url\"\n [href]=\"url\"\n >\n <img class=\"experimentLogo\" [src]=\"logo\" alt=\"\" />\n </a>\n <div class=\"textInfo\">\n <p *ngIf=\"tagline\">\n <b>{{ tagline }}</b>\n </p>\n <p *ngFor=\"let infoField of experimentInfo\">\n <ng-container *ngIf=\"infoField.label\">\n <b>{{ infoField.label }}: </b>{{ infoField.value }}\n </ng-container>\n <ng-container *ngIf=\"!infoField.label\">\n {{ infoField }}\n </ng-container>\n </p>\n </div>\n</div>\n", styles: [".experimentInfo{position:absolute;top:5rem;left:1rem;display:flex;flex-direction:row;justify-items:flex-end;justify-content:flex-end;align-items:center;align-content:center;cursor:move}.experimentLogoWrapper{width:6rem}.experimentLogoWrapper .experimentLogo{width:100%;height:100%}.textInfo{margin-left:1rem}.textInfo p{color:var(--phoenix-text-color-secondary);font-size:.8rem;margin-bottom:.5rem;-webkit-user-select:none;user-select:none}@media screen and (max-width: 768px){.experimentInfo{top:4rem;max-width:40%}.experimentLogoWrapper{height:4rem}.textInfo{display:none}}\n"] }]
|
|
1231
|
+
}], function () { return [{ type: EventDisplayService }]; }, { url: [{
|
|
1232
|
+
type: Input
|
|
1233
|
+
}], logo: [{
|
|
1234
|
+
type: Input
|
|
1235
|
+
}], tagline: [{
|
|
1236
|
+
type: Input
|
|
1237
|
+
}] }); })();
|
|
523
1238
|
|
|
1239
|
+
function InfoPanelOverlayComponent_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
1240
|
+
i0.ɵɵelementStart(0, "li", 2);
|
|
1241
|
+
i0.ɵɵtext(1, " No actions. ");
|
|
1242
|
+
i0.ɵɵelementEnd();
|
|
1243
|
+
} }
|
|
1244
|
+
function InfoPanelOverlayComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
1245
|
+
i0.ɵɵelementStart(0, "li", 2);
|
|
1246
|
+
i0.ɵɵtext(1);
|
|
1247
|
+
i0.ɵɵelementEnd();
|
|
1248
|
+
} if (rf & 2) {
|
|
1249
|
+
const action_r2 = ctx.$implicit;
|
|
1250
|
+
i0.ɵɵadvance(1);
|
|
1251
|
+
i0.ɵɵtextInterpolate1(" ", action_r2, " ");
|
|
1252
|
+
} }
|
|
524
1253
|
/**
|
|
525
1254
|
* Component for displaying information from the logger
|
|
526
1255
|
*/
|
|
@@ -543,14 +1272,29 @@ class InfoPanelOverlayComponent {
|
|
|
543
1272
|
this.actionsList = this.eventDisplay.getInfoLogger().getInfoLoggerList();
|
|
544
1273
|
}
|
|
545
1274
|
}
|
|
546
|
-
InfoPanelOverlayComponent.ɵfac =
|
|
547
|
-
InfoPanelOverlayComponent.ɵcmp = i0.ɵɵ
|
|
548
|
-
i0.ɵɵ
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
1275
|
+
InfoPanelOverlayComponent.ɵfac = function InfoPanelOverlayComponent_Factory(t) { return new (t || InfoPanelOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1276
|
+
InfoPanelOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InfoPanelOverlayComponent, selectors: [["app-info-panel-overlay"]], inputs: { showInfoPanel: "showInfoPanel" }, decls: 6, vars: 5, consts: [["overlayTitle", "Info Panel", "icon", "info-panel", 3, "resizable", "active"], [1, "list-group", "list-group-flush"], [1, "list-group-item"], ["class", "list-group-item", 4, "ngIf"], ["class", "list-group-item", 4, "ngFor", "ngForOf"]], template: function InfoPanelOverlayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1277
|
+
i0.ɵɵelementStart(0, "app-overlay", 0)(1, "ul", 1)(2, "li", 2);
|
|
1278
|
+
i0.ɵɵtext(3);
|
|
1279
|
+
i0.ɵɵelementEnd();
|
|
1280
|
+
i0.ɵɵtemplate(4, InfoPanelOverlayComponent_li_4_Template, 2, 0, "li", 3);
|
|
1281
|
+
i0.ɵɵtemplate(5, InfoPanelOverlayComponent_li_5_Template, 2, 1, "li", 4);
|
|
1282
|
+
i0.ɵɵelementEnd()();
|
|
1283
|
+
} if (rf & 2) {
|
|
1284
|
+
i0.ɵɵproperty("resizable", true)("active", ctx.showInfoPanel);
|
|
1285
|
+
i0.ɵɵadvance(3);
|
|
1286
|
+
i0.ɵɵtextInterpolate1(" Phoenix Version: ", ctx.version, " ");
|
|
1287
|
+
i0.ɵɵadvance(1);
|
|
1288
|
+
i0.ɵɵproperty("ngIf", ctx.actionsList.length === 0);
|
|
1289
|
+
i0.ɵɵadvance(1);
|
|
1290
|
+
i0.ɵɵproperty("ngForOf", ctx.actionsList);
|
|
1291
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, OverlayComponent], styles: [".list-group-item[_ngcontent-%COMP%]{font-size:.8rem;padding:.5rem 1rem}"] });
|
|
1292
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelOverlayComponent, [{
|
|
1293
|
+
type: Component,
|
|
1294
|
+
args: [{ selector: 'app-info-panel-overlay', template: "<app-overlay\n overlayTitle=\"Info Panel\"\n icon=\"info-panel\"\n [resizable]=\"true\"\n [active]=\"showInfoPanel\"\n>\n <ul class=\"list-group list-group-flush\">\n <li class=\"list-group-item\">\n <!-- Show Phoenix Current Version (ON by Default) -->\n Phoenix Version: {{ version }}\n </li>\n <li class=\"list-group-item\" *ngIf=\"actionsList.length === 0\">\n No actions.\n </li>\n <li class=\"list-group-item\" *ngFor=\"let action of actionsList\">\n {{ action }}\n </li>\n </ul>\n</app-overlay>\n", styles: [".list-group-item{font-size:.8rem;padding:.5rem 1rem}\n"] }]
|
|
1295
|
+
}], function () { return [{ type: EventDisplayService }]; }, { showInfoPanel: [{
|
|
1296
|
+
type: Input
|
|
1297
|
+
}] }); })();
|
|
554
1298
|
|
|
555
1299
|
/**
|
|
556
1300
|
* Component for toggling info panel overlay
|
|
@@ -588,16 +1332,23 @@ class InfoPanelComponent {
|
|
|
588
1332
|
this.overlayWindow.instance.showInfoPanel = this.showInfoPanel;
|
|
589
1333
|
}
|
|
590
1334
|
}
|
|
591
|
-
InfoPanelComponent.ɵfac =
|
|
592
|
-
InfoPanelComponent.ɵcmp = i0.ɵɵ
|
|
593
|
-
i0.ɵɵ
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
1335
|
+
InfoPanelComponent.ɵfac = function InfoPanelComponent_Factory(t) { return new (t || InfoPanelComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1336
|
+
InfoPanelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InfoPanelComponent, selectors: [["app-info-panel"]], decls: 1, vars: 1, consts: [["tooltip", "Info panel", "icon", "info-panel", 3, "active", "click"]], template: function InfoPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1337
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1338
|
+
i0.ɵɵlistener("click", function InfoPanelComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1339
|
+
i0.ɵɵelementEnd();
|
|
1340
|
+
} if (rf & 2) {
|
|
1341
|
+
i0.ɵɵproperty("active", ctx.showInfoPanel);
|
|
1342
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1343
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelComponent, [{
|
|
1344
|
+
type: Component,
|
|
1345
|
+
args: [{ selector: 'app-info-panel', template: "<app-menu-toggle\n tooltip=\"Info panel\"\n icon=\"info-panel\"\n [active]=\"showInfoPanel\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
|
|
1346
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
597
1347
|
|
|
598
1348
|
var EventDataFormat;
|
|
599
1349
|
(function (EventDataFormat) {
|
|
600
1350
|
EventDataFormat["JSON"] = "JSON";
|
|
1351
|
+
EventDataFormat["EDM4HEPJSON"] = "EDM4HEPJSON";
|
|
601
1352
|
EventDataFormat["JIVEXML"] = "JIVEXML";
|
|
602
1353
|
EventDataFormat["IG"] = "IG";
|
|
603
1354
|
EventDataFormat["ZIP"] = "ZIP";
|
|
@@ -611,6 +1362,37 @@ class ImportOption {
|
|
|
611
1362
|
}
|
|
612
1363
|
}
|
|
613
1364
|
|
|
1365
|
+
function IOOptionsDialogComponent_div_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
1366
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
1367
|
+
i0.ɵɵelementContainerStart(0);
|
|
1368
|
+
i0.ɵɵelementStart(1, "input", 28, 29);
|
|
1369
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_div_4_ng_container_5_Template_input_change_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r10); const eventDataImportOption_r7 = restoredCtx.$implicit; return i0.ɵɵresetView(eventDataImportOption_r7.handler($event.target.files)); });
|
|
1370
|
+
i0.ɵɵelementEnd();
|
|
1371
|
+
i0.ɵɵelementStart(3, "button", 8);
|
|
1372
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_div_4_ng_container_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const _r8 = i0.ɵɵreference(2); return i0.ɵɵresetView(_r8.click()); });
|
|
1373
|
+
i0.ɵɵelement(4, "img", 30);
|
|
1374
|
+
i0.ɵɵtext(5);
|
|
1375
|
+
i0.ɵɵelementEnd();
|
|
1376
|
+
i0.ɵɵelementContainerEnd();
|
|
1377
|
+
} if (rf & 2) {
|
|
1378
|
+
const eventDataImportOption_r7 = ctx.$implicit;
|
|
1379
|
+
i0.ɵɵadvance(1);
|
|
1380
|
+
i0.ɵɵproperty("accept", eventDataImportOption_r7.accept);
|
|
1381
|
+
i0.ɵɵadvance(4);
|
|
1382
|
+
i0.ɵɵtextInterpolate1(" Load ", eventDataImportOption_r7.fileType, " ");
|
|
1383
|
+
} }
|
|
1384
|
+
function IOOptionsDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1385
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 4)(2, "b");
|
|
1386
|
+
i0.ɵɵtext(3, "Event data");
|
|
1387
|
+
i0.ɵɵelementEnd()();
|
|
1388
|
+
i0.ɵɵelementStart(4, "div", 5);
|
|
1389
|
+
i0.ɵɵtemplate(5, IOOptionsDialogComponent_div_4_ng_container_5_Template, 6, 2, "ng-container", 27);
|
|
1390
|
+
i0.ɵɵelementEnd()();
|
|
1391
|
+
} if (rf & 2) {
|
|
1392
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1393
|
+
i0.ɵɵadvance(5);
|
|
1394
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.eventDataOptionsWithHandler);
|
|
1395
|
+
} }
|
|
614
1396
|
class IOOptionsDialogComponent {
|
|
615
1397
|
constructor(eventDisplay, dialogRef) {
|
|
616
1398
|
this.eventDisplay = eventDisplay;
|
|
@@ -618,6 +1400,7 @@ class IOOptionsDialogComponent {
|
|
|
618
1400
|
this.eventDataImportOptions = [EventDataFormat.JSON];
|
|
619
1401
|
this.supportedEventDataFormats = [
|
|
620
1402
|
new ImportOption(EventDataFormat.JSON, '.json', this.handleJSONEventDataInput.bind(this), 'application/json'),
|
|
1403
|
+
new ImportOption(EventDataFormat.EDM4HEPJSON, '.edm4hep.json', this.handleEDM4HEPJSONEventDataInput.bind(this), 'application/json'),
|
|
621
1404
|
new ImportOption(EventDataFormat.JIVEXML, '.xml', this.handleJiveXMLDataInput.bind(this), 'text/xml'),
|
|
622
1405
|
new ImportOption(EventDataFormat.ZIP, '.zip', this.handleZipEventDataInput.bind(this), '.zip'),
|
|
623
1406
|
new ImportOption(EventDataFormat.IG, '.ig', this.handleIgEventDataInput.bind(this), '.ig'),
|
|
@@ -657,6 +1440,16 @@ class IOOptionsDialogComponent {
|
|
|
657
1440
|
};
|
|
658
1441
|
this.handleFileInput(files[0], 'json', callback);
|
|
659
1442
|
}
|
|
1443
|
+
handleEDM4HEPJSONEventDataInput(files) {
|
|
1444
|
+
const callback = (content) => {
|
|
1445
|
+
const json = typeof content === 'string' ? JSON.parse(content) : content;
|
|
1446
|
+
const edm4hepJsonLoader = new Edm4hepJsonLoader();
|
|
1447
|
+
edm4hepJsonLoader.setRawEventData(json);
|
|
1448
|
+
edm4hepJsonLoader.processEventData();
|
|
1449
|
+
this.eventDisplay.parsePhoenixEvents(edm4hepJsonLoader.getEventData());
|
|
1450
|
+
};
|
|
1451
|
+
this.handleFileInput(files[0], 'json', callback);
|
|
1452
|
+
}
|
|
660
1453
|
handleJiveXMLDataInput(files) {
|
|
661
1454
|
const callback = (content) => {
|
|
662
1455
|
const jiveloader = new JiveXMLLoader();
|
|
@@ -772,14 +1565,84 @@ class IOOptionsDialogComponent {
|
|
|
772
1565
|
this.eventDisplay.exportToOBJ();
|
|
773
1566
|
}
|
|
774
1567
|
}
|
|
775
|
-
IOOptionsDialogComponent.ɵfac =
|
|
776
|
-
IOOptionsDialogComponent.ɵcmp = i0.ɵɵ
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1568
|
+
IOOptionsDialogComponent.ɵfac = function IOOptionsDialogComponent_Factory(t) { return new (t || IOOptionsDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
|
|
1569
|
+
IOOptionsDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IOOptionsDialogComponent, selectors: [["app-io-options-dialog"]], inputs: { eventDataImportOptions: "eventDataImportOptions" }, decls: 47, vars: 1, consts: [[1, "dialog"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "dialog-content"], [4, "ngIf"], [1, "text-center"], [1, "row", "centered"], ["type", "file", "tabindex", "-1", "accept", ".obj", "name", "image", 1, "file-input", 3, "change"], ["objFileInput", ""], [1, "file-input-button", 3, "click"], ["src", "assets/icons/obj.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".gltf", "name", "image", 1, "file-input", 3, "change"], ["gltfFileInput", ""], ["src", "assets/icons/gltf.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".root", 1, "file-input", 3, "change"], ["rootFileInput", ""], ["src", "assets/icons/file-import.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".json.gz", 1, "file-input", 3, "change"], ["rootJSONFileInput", ""], ["id", "exportScene", 1, "file-input-button", "load-export", 3, "click"], ["src", "assets/icons/save.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".phnx", "name", "image", 1, "file-input", 3, "change"], ["loadSceneInput", ""], ["id", "importScene", 1, "file-input-button", "load-export", 3, "click"], ["src", "assets/icons/upload.svg", "alt", ""], ["id", "exportOBJ", 1, "file-input-button", "export-button", 3, "click"], ["mat-dialog-actions", "", "align", "end"], ["mat-flat-button", "", "color", "primary", "cdkFocusInitial", "", 3, "click"], [4, "ngFor", "ngForOf"], ["type", "file", "tabindex", "-1", 1, "file-input", 3, "accept", "change"], ["eventDataFileInput", ""], ["src", "assets/icons/eventData.svg", "alt", "Event data icon"]], template: function IOOptionsDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1570
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
1571
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
|
|
1572
|
+
i0.ɵɵtext(2, "Import and export");
|
|
1573
|
+
i0.ɵɵelementEnd();
|
|
1574
|
+
i0.ɵɵelementStart(3, "div", 2);
|
|
1575
|
+
i0.ɵɵtemplate(4, IOOptionsDialogComponent_div_4_Template, 6, 1, "div", 3);
|
|
1576
|
+
i0.ɵɵelementStart(5, "p", 4)(6, "b");
|
|
1577
|
+
i0.ɵɵtext(7, "Geometries");
|
|
1578
|
+
i0.ɵɵelementEnd()();
|
|
1579
|
+
i0.ɵɵelementStart(8, "div", 5)(9, "input", 6, 7);
|
|
1580
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_9_listener($event) { return ctx.handleOBJInput($event.target.files); });
|
|
1581
|
+
i0.ɵɵelementEnd();
|
|
1582
|
+
i0.ɵɵelementStart(11, "button", 8);
|
|
1583
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r12); const _r1 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r1.click()); });
|
|
1584
|
+
i0.ɵɵelement(12, "img", 9);
|
|
1585
|
+
i0.ɵɵtext(13, " Load .obj ");
|
|
1586
|
+
i0.ɵɵelementEnd();
|
|
1587
|
+
i0.ɵɵelementStart(14, "input", 10, 11);
|
|
1588
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_14_listener($event) { return ctx.handleGLTFInput($event.target.files); });
|
|
1589
|
+
i0.ɵɵelementEnd();
|
|
1590
|
+
i0.ɵɵelementStart(16, "button", 8);
|
|
1591
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r12); const _r2 = i0.ɵɵreference(15); return i0.ɵɵresetView(_r2.click()); });
|
|
1592
|
+
i0.ɵɵelement(17, "img", 12);
|
|
1593
|
+
i0.ɵɵtext(18, " Load .gltf ");
|
|
1594
|
+
i0.ɵɵelementEnd();
|
|
1595
|
+
i0.ɵɵelementStart(19, "input", 13, 14);
|
|
1596
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_19_listener($event) { return ctx.handleROOTInput($event.target.files); });
|
|
1597
|
+
i0.ɵɵelementEnd();
|
|
1598
|
+
i0.ɵɵelementStart(21, "button", 8);
|
|
1599
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r12); const _r3 = i0.ɵɵreference(20); return i0.ɵɵresetView(_r3.click()); });
|
|
1600
|
+
i0.ɵɵelement(22, "img", 15);
|
|
1601
|
+
i0.ɵɵtext(23, " Load .root ");
|
|
1602
|
+
i0.ɵɵelementEnd();
|
|
1603
|
+
i0.ɵɵelementStart(24, "input", 16, 17);
|
|
1604
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_24_listener($event) { return ctx.handleRootJSONInput($event.target.files); });
|
|
1605
|
+
i0.ɵɵelementEnd();
|
|
1606
|
+
i0.ɵɵelementStart(26, "button", 8);
|
|
1607
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r12); const _r4 = i0.ɵɵreference(25); return i0.ɵɵresetView(_r4.click()); });
|
|
1608
|
+
i0.ɵɵelement(27, "img", 15);
|
|
1609
|
+
i0.ɵɵtext(28, " Load .json.gz ");
|
|
1610
|
+
i0.ɵɵelementEnd()();
|
|
1611
|
+
i0.ɵɵelementStart(29, "p", 4)(30, "b");
|
|
1612
|
+
i0.ɵɵtext(31, "Scene");
|
|
1613
|
+
i0.ɵɵelementEnd()();
|
|
1614
|
+
i0.ɵɵelementStart(32, "div", 5)(33, "button", 18);
|
|
1615
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_33_listener() { return ctx.saveScene(); });
|
|
1616
|
+
i0.ɵɵelement(34, "img", 19);
|
|
1617
|
+
i0.ɵɵtext(35, " Save scene ");
|
|
1618
|
+
i0.ɵɵelementEnd();
|
|
1619
|
+
i0.ɵɵelementStart(36, "input", 20, 21);
|
|
1620
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_36_listener($event) { return ctx.handlePhoenixInput($event.target.files); });
|
|
1621
|
+
i0.ɵɵelementEnd();
|
|
1622
|
+
i0.ɵɵelementStart(38, "button", 22);
|
|
1623
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_38_listener() { i0.ɵɵrestoreView(_r12); const _r5 = i0.ɵɵreference(37); return i0.ɵɵresetView(_r5.click()); });
|
|
1624
|
+
i0.ɵɵelement(39, "img", 23);
|
|
1625
|
+
i0.ɵɵtext(40, " Load scene ");
|
|
1626
|
+
i0.ɵɵelementEnd();
|
|
1627
|
+
i0.ɵɵelementStart(41, "button", 24);
|
|
1628
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_41_listener() { return ctx.exportOBJ(); });
|
|
1629
|
+
i0.ɵɵelement(42, "img", 9);
|
|
1630
|
+
i0.ɵɵtext(43, " Save OBJ ");
|
|
1631
|
+
i0.ɵɵelementEnd()()();
|
|
1632
|
+
i0.ɵɵelementStart(44, "div", 25)(45, "button", 26);
|
|
1633
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_45_listener() { return ctx.onClose(); });
|
|
1634
|
+
i0.ɵɵtext(46, " Close ");
|
|
1635
|
+
i0.ɵɵelementEnd()()();
|
|
1636
|
+
} if (rf & 2) {
|
|
1637
|
+
i0.ɵɵadvance(4);
|
|
1638
|
+
i0.ɵɵproperty("ngIf", ctx.eventDataImportOptions.length > 0);
|
|
1639
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton], styles: [".row[_ngcontent-%COMP%]{justify-content:center;margin:1rem 0}.file-input[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.file-input-button[_ngcontent-%COMP%]{font-size:1em;font-weight:700;color:#fff;background-color:#6eaece;padding:1em .5em;border:none;border-radius:10px;width:8rem;margin:0 .4rem}.file-input-button.load-export[_ngcontent-%COMP%]{padding:.8em .2em;width:7rem}.file-input-button.load-export[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:1.2em}.file-input-button.export-button[_ngcontent-%COMP%]{background-color:#cb7133}.file-input-button.export-button[_ngcontent-%COMP%]:hover{background-color:#ad5b2d}.file-input-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:2em;display:block;width:100%}.file-input-button[_ngcontent-%COMP%]:hover{background-color:#118ab2}#exportScene[_ngcontent-%COMP%]{background-color:#5bd99e}#exportScene[_ngcontent-%COMP%]:hover{background-color:#05c292}#importScene[_ngcontent-%COMP%]{background-color:#ecc25e}#importScene[_ngcontent-%COMP%]:hover{background-color:#d6b44d}"] });
|
|
1640
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IOOptionsDialogComponent, [{
|
|
1641
|
+
type: Component,
|
|
1642
|
+
args: [{ selector: 'app-io-options-dialog', template: "<div class=\"dialog\">\n <h1 mat-dialog-title>Import and export</h1>\n <div mat-dialog-content class=\"dialog-content\">\n <div *ngIf=\"eventDataImportOptions.length > 0\">\n <p class=\"text-center\"><b>Event data</b></p>\n\n <div class=\"row centered\">\n <ng-container\n *ngFor=\"let eventDataImportOption of eventDataOptionsWithHandler\"\n >\n <input\n #eventDataFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n [accept]=\"eventDataImportOption.accept\"\n (change)=\"eventDataImportOption.handler($event.target.files)\"\n />\n <button\n class=\"file-input-button\"\n (click)=\"eventDataFileInput.click()\"\n >\n <img src=\"assets/icons/eventData.svg\" alt=\"Event data icon\" />\n Load {{ eventDataImportOption.fileType }}\n </button>\n </ng-container>\n </div>\n </div>\n\n <p class=\"text-center\"><b>Geometries</b></p>\n\n <div class=\"row centered\">\n <input\n #objFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".obj\"\n name=\"image\"\n (change)=\"handleOBJInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"objFileInput.click()\">\n <img src=\"assets/icons/obj.svg\" alt=\"\" /> Load .obj\n </button>\n\n <input\n #gltfFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".gltf\"\n name=\"image\"\n (change)=\"handleGLTFInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"gltfFileInput.click()\">\n <img src=\"assets/icons/gltf.svg\" alt=\"\" /> Load .gltf\n </button>\n\n <input\n #rootFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".root\"\n (change)=\"handleROOTInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"rootFileInput.click()\">\n <img src=\"assets/icons/file-import.svg\" alt=\"\" /> Load .root\n </button>\n\n <input\n #rootJSONFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".json.gz\"\n (change)=\"handleRootJSONInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"rootJSONFileInput.click()\">\n <img src=\"assets/icons/file-import.svg\" alt=\"\" /> Load .json.gz\n </button>\n </div>\n\n <p class=\"text-center\"><b>Scene</b></p>\n\n <div class=\"row centered\">\n <button\n class=\"file-input-button load-export\"\n id=\"exportScene\"\n (click)=\"saveScene()\"\n >\n <img src=\"assets/icons/save.svg\" alt=\"\" /> Save scene\n </button>\n\n <input\n #loadSceneInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".phnx\"\n name=\"image\"\n (change)=\"handlePhoenixInput($event.target.files)\"\n />\n <button\n class=\"file-input-button load-export\"\n id=\"importScene\"\n (click)=\"loadSceneInput.click()\"\n >\n <img src=\"assets/icons/upload.svg\" alt=\"\" /> Load scene\n </button>\n\n <button\n class=\"file-input-button export-button\"\n id=\"exportOBJ\"\n (click)=\"exportOBJ()\"\n >\n <img src=\"assets/icons/obj.svg\" alt=\"\" /> Save OBJ\n </button>\n </div>\n </div>\n\n <div mat-dialog-actions align=\"end\">\n <button mat-flat-button color=\"primary\" (click)=\"onClose()\" cdkFocusInitial>\n Close\n </button>\n </div>\n</div>\n", styles: [".row{justify-content:center;margin:1rem 0}.file-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.file-input-button{font-size:1em;font-weight:700;color:#fff;background-color:#6eaece;padding:1em .5em;border:none;border-radius:10px;width:8rem;margin:0 .4rem}.file-input-button.load-export{padding:.8em .2em;width:7rem}.file-input-button.load-export img{max-height:1.2em}.file-input-button.export-button{background-color:#cb7133}.file-input-button.export-button:hover{background-color:#ad5b2d}.file-input-button img{max-height:2em;display:block;width:100%}.file-input-button:hover{background-color:#118ab2}#exportScene{background-color:#5bd99e}#exportScene:hover{background-color:#05c292}#importScene{background-color:#ecc25e}#importScene:hover{background-color:#d6b44d}\n"] }]
|
|
1643
|
+
}], function () { return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }]; }, { eventDataImportOptions: [{
|
|
1644
|
+
type: Input
|
|
1645
|
+
}] }); })();
|
|
783
1646
|
|
|
784
1647
|
class IoOptionsComponent {
|
|
785
1648
|
constructor(dialog) {
|
|
@@ -794,14 +1657,20 @@ class IoOptionsComponent {
|
|
|
794
1657
|
this.eventDataImportOptions;
|
|
795
1658
|
}
|
|
796
1659
|
}
|
|
797
|
-
IoOptionsComponent.ɵfac =
|
|
798
|
-
IoOptionsComponent.ɵcmp = i0.ɵɵ
|
|
799
|
-
i0.ɵɵ
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1660
|
+
IoOptionsComponent.ɵfac = function IoOptionsComponent_Factory(t) { return new (t || IoOptionsComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
1661
|
+
IoOptionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IoOptionsComponent, selectors: [["app-io-options"]], inputs: { eventDataImportOptions: "eventDataImportOptions" }, decls: 1, vars: 1, consts: [["tooltip", "Import and export options", "icon", "import", 3, "active", "click"]], template: function IoOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1662
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1663
|
+
i0.ɵɵlistener("click", function IoOptionsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openIODialog(); });
|
|
1664
|
+
i0.ɵɵelementEnd();
|
|
1665
|
+
} if (rf & 2) {
|
|
1666
|
+
i0.ɵɵproperty("active", false);
|
|
1667
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1668
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IoOptionsComponent, [{
|
|
1669
|
+
type: Component,
|
|
1670
|
+
args: [{ selector: 'app-io-options', template: "<app-menu-toggle\n tooltip=\"Import and export options\"\n icon=\"import\"\n [active]=\"false\"\n (click)=\"openIODialog()\"\n>\n</app-menu-toggle>\n" }]
|
|
1671
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, { eventDataImportOptions: [{
|
|
1672
|
+
type: Input
|
|
1673
|
+
}] }); })();
|
|
805
1674
|
|
|
806
1675
|
class MainViewToggleComponent {
|
|
807
1676
|
constructor(eventDisplay) {
|
|
@@ -815,12 +1684,18 @@ class MainViewToggleComponent {
|
|
|
815
1684
|
.toggleOrthographicView(this.orthographicView);
|
|
816
1685
|
}
|
|
817
1686
|
}
|
|
818
|
-
MainViewToggleComponent.ɵfac =
|
|
819
|
-
MainViewToggleComponent.ɵcmp = i0.ɵɵ
|
|
820
|
-
i0.ɵɵ
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
1687
|
+
MainViewToggleComponent.ɵfac = function MainViewToggleComponent_Factory(t) { return new (t || MainViewToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1688
|
+
MainViewToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MainViewToggleComponent, selectors: [["app-main-view-toggle"]], decls: 1, vars: 2, consts: [[3, "icon", "matTooltip", "click"]], template: function MainViewToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1689
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1690
|
+
i0.ɵɵlistener("click", function MainViewToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.switchMainView(); });
|
|
1691
|
+
i0.ɵɵelementEnd();
|
|
1692
|
+
} if (rf & 2) {
|
|
1693
|
+
i0.ɵɵproperty("icon", ctx.orthographicView ? "perspective" : "orthographic")("matTooltip", "Switch to " + (ctx.orthographicView ? "perspective" : "orthographic") + " view");
|
|
1694
|
+
} }, dependencies: [i2$3.MatTooltip, MenuToggleComponent] });
|
|
1695
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainViewToggleComponent, [{
|
|
1696
|
+
type: Component,
|
|
1697
|
+
args: [{ selector: 'app-main-view-toggle', template: "<app-menu-toggle\n [icon]=\"orthographicView ? 'perspective' : 'orthographic'\"\n [matTooltip]=\"\n 'Switch to ' + (orthographicView ? 'perspective' : 'orthographic') + ' view'\n \"\n (click)=\"switchMainView()\"\n>\n</app-menu-toggle>\n" }]
|
|
1698
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
824
1699
|
|
|
825
1700
|
class ObjectClippingComponent {
|
|
826
1701
|
constructor(eventDisplay) {
|
|
@@ -830,12 +1705,10 @@ class ObjectClippingComponent {
|
|
|
830
1705
|
stateManager.startClippingAngle.onUpdate((value) => (this.startClippingAngle = value));
|
|
831
1706
|
stateManager.openingClippingAngle.onUpdate((value) => (this.openingClippingAngle = value));
|
|
832
1707
|
}
|
|
833
|
-
changeStartClippingAngle(
|
|
834
|
-
const startingAngle = change.value;
|
|
1708
|
+
changeStartClippingAngle(startingAngle) {
|
|
835
1709
|
this.eventDisplay.getUIManager().rotateStartAngleClipping(startingAngle);
|
|
836
1710
|
}
|
|
837
|
-
changeOpeningClippingAngle(
|
|
838
|
-
const openingAngle = change.value;
|
|
1711
|
+
changeOpeningClippingAngle(openingAngle) {
|
|
839
1712
|
this.eventDisplay.getUIManager().rotateOpeningAngleClipping(openingAngle);
|
|
840
1713
|
}
|
|
841
1714
|
toggleClipping(change) {
|
|
@@ -844,12 +1717,45 @@ class ObjectClippingComponent {
|
|
|
844
1717
|
this.clippingEnabled = value;
|
|
845
1718
|
}
|
|
846
1719
|
}
|
|
847
|
-
ObjectClippingComponent.ɵfac =
|
|
848
|
-
ObjectClippingComponent.ɵcmp = i0.ɵɵ
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
1720
|
+
ObjectClippingComponent.ɵfac = function ObjectClippingComponent_Factory(t) { return new (t || ObjectClippingComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1721
|
+
ObjectClippingComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectClippingComponent, selectors: [["app-object-clipping"]], decls: 17, vars: 5, consts: [[1, "mat-menu"], ["menu", ""], ["mat-menu-item", "", 3, "click"], [3, "checked", "click", "change"], ["clippingCheckbox", ""], ["mat-menu-item", "", 1, "slider-btn", 3, "focus"], ["min", "0", "max", "360", "step", "1", "thumbLabel", ""], ["matSliderThumb", "", 3, "value", "valueChange"], ["startingAngleSlider", ""], ["openingAngleSlider", ""], ["tooltip", "Geometry clipping", "icon", "clipping", 3, "matMenuTriggerFor", "active"]], template: function ObjectClippingComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1722
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1723
|
+
i0.ɵɵelementStart(0, "mat-menu", 0, 1)(2, "button", 2);
|
|
1724
|
+
i0.ɵɵlistener("click", function ObjectClippingComponent_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r4); const _r1 = i0.ɵɵreference(4); $event.stopPropagation(); return i0.ɵɵresetView(_r1._inputElement.nativeElement.click()); });
|
|
1725
|
+
i0.ɵɵelementStart(3, "mat-checkbox", 3, 4);
|
|
1726
|
+
i0.ɵɵlistener("click", function ObjectClippingComponent_Template_mat_checkbox_click_3_listener($event) { return $event.stopPropagation(); })("change", function ObjectClippingComponent_Template_mat_checkbox_change_3_listener($event) { return ctx.toggleClipping($event); });
|
|
1727
|
+
i0.ɵɵtext(5, " Clipping ");
|
|
1728
|
+
i0.ɵɵelementEnd()();
|
|
1729
|
+
i0.ɵɵelementStart(6, "button", 5);
|
|
1730
|
+
i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_6_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(9); return i0.ɵɵresetView(_r2.focus()); });
|
|
1731
|
+
i0.ɵɵelementStart(7, "mat-slider", 6)(8, "input", 7, 8);
|
|
1732
|
+
i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_8_listener($event) { return ctx.changeStartClippingAngle($event); });
|
|
1733
|
+
i0.ɵɵelementEnd()();
|
|
1734
|
+
i0.ɵɵtext(10, " Start Angle ");
|
|
1735
|
+
i0.ɵɵelementEnd();
|
|
1736
|
+
i0.ɵɵelementStart(11, "button", 5);
|
|
1737
|
+
i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_11_listener() { i0.ɵɵrestoreView(_r4); const _r3 = i0.ɵɵreference(14); return i0.ɵɵresetView(_r3.focus()); });
|
|
1738
|
+
i0.ɵɵelementStart(12, "mat-slider", 6)(13, "input", 7, 9);
|
|
1739
|
+
i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_13_listener($event) { return ctx.changeOpeningClippingAngle($event); });
|
|
1740
|
+
i0.ɵɵelementEnd()();
|
|
1741
|
+
i0.ɵɵtext(15, " Opening Angle ");
|
|
1742
|
+
i0.ɵɵelementEnd()();
|
|
1743
|
+
i0.ɵɵelement(16, "app-menu-toggle", 10);
|
|
1744
|
+
} if (rf & 2) {
|
|
1745
|
+
const _r0 = i0.ɵɵreference(1);
|
|
1746
|
+
i0.ɵɵadvance(3);
|
|
1747
|
+
i0.ɵɵproperty("checked", ctx.clippingEnabled);
|
|
1748
|
+
i0.ɵɵadvance(5);
|
|
1749
|
+
i0.ɵɵproperty("value", ctx.startClippingAngle);
|
|
1750
|
+
i0.ɵɵadvance(5);
|
|
1751
|
+
i0.ɵɵproperty("value", ctx.openingClippingAngle);
|
|
1752
|
+
i0.ɵɵadvance(3);
|
|
1753
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", ctx.clippingEnabled);
|
|
1754
|
+
} }, dependencies: [i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i2$1.MatSlider, i2$1.MatSliderThumb, i4.MatCheckbox, MenuToggleComponent], styles: [".slider-btn[_ngcontent-%COMP%]{overflow:visible}mat-slider[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:.75rem}"] });
|
|
1755
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectClippingComponent, [{
|
|
1756
|
+
type: Component,
|
|
1757
|
+
args: [{ selector: 'app-object-clipping', template: "<mat-menu class=\"mat-menu\" #menu>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n clippingCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #clippingCheckbox\n [checked]=\"clippingEnabled\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleClipping($event)\"\n >\n Clipping\n </mat-checkbox>\n </button>\n <button\n class=\"slider-btn\"\n mat-menu-item\n (focus)=\"startingAngleSlider.focus()\"\n >\n <mat-slider min=\"0\" max=\"360\" step=\"1\" thumbLabel>\n <input\n #startingAngleSlider\n matSliderThumb\n [value]=\"startClippingAngle\"\n (valueChange)=\"changeStartClippingAngle($event)\"\n />\n </mat-slider>\n Start Angle\n </button>\n <button class=\"slider-btn\" mat-menu-item (focus)=\"openingAngleSlider.focus()\">\n <mat-slider min=\"0\" max=\"360\" step=\"1\" thumbLabel>\n <input\n #openingAngleSlider\n matSliderThumb\n [value]=\"openingClippingAngle\"\n (valueChange)=\"changeOpeningClippingAngle($event)\"\n />\n </mat-slider>\n Opening Angle\n </button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"menu\"\n tooltip=\"Geometry clipping\"\n icon=\"clipping\"\n [active]=\"clippingEnabled\"\n>\n</app-menu-toggle>\n", styles: [".slider-btn{overflow:visible}mat-slider{margin-left:.75rem;margin-right:.75rem}\n"] }]
|
|
1758
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
853
1759
|
|
|
854
1760
|
/**
|
|
855
1761
|
* Pipe for transforming selected object attributes to a better format.
|
|
@@ -873,15 +1779,38 @@ class AttributePipe {
|
|
|
873
1779
|
return transformedValue;
|
|
874
1780
|
}
|
|
875
1781
|
}
|
|
876
|
-
AttributePipe.ɵfac =
|
|
877
|
-
AttributePipe.ɵpipe = i0.ɵɵ
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1782
|
+
AttributePipe.ɵfac = function AttributePipe_Factory(t) { return new (t || AttributePipe)(); };
|
|
1783
|
+
AttributePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "attributePipe", type: AttributePipe, pure: true });
|
|
1784
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AttributePipe, [{
|
|
1785
|
+
type: Pipe,
|
|
1786
|
+
args: [{
|
|
1787
|
+
name: 'attributePipe',
|
|
1788
|
+
}]
|
|
1789
|
+
}], null, null); })();
|
|
884
1790
|
|
|
1791
|
+
function ObjectSelectionOverlayComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1792
|
+
i0.ɵɵelementStart(0, "div", 4)(1, "strong");
|
|
1793
|
+
i0.ɵɵtext(2);
|
|
1794
|
+
i0.ɵɵelementEnd();
|
|
1795
|
+
i0.ɵɵtext(3);
|
|
1796
|
+
i0.ɵɵpipe(4, "attributePipe");
|
|
1797
|
+
i0.ɵɵelementEnd();
|
|
1798
|
+
} if (rf & 2) {
|
|
1799
|
+
const attribute_r2 = ctx.$implicit;
|
|
1800
|
+
i0.ɵɵadvance(2);
|
|
1801
|
+
i0.ɵɵtextInterpolate(attribute_r2.attributeName);
|
|
1802
|
+
i0.ɵɵadvance(1);
|
|
1803
|
+
i0.ɵɵtextInterpolate1(" : ", i0.ɵɵpipeBind1(4, 2, attribute_r2.attributeValue), " ");
|
|
1804
|
+
} }
|
|
1805
|
+
function ObjectSelectionOverlayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1806
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
1807
|
+
i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_div_1_Template, 5, 4, "div", 3);
|
|
1808
|
+
i0.ɵɵelementEnd();
|
|
1809
|
+
} if (rf & 2) {
|
|
1810
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1811
|
+
i0.ɵɵadvance(1);
|
|
1812
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.selectedObject.attributes);
|
|
1813
|
+
} }
|
|
885
1814
|
class ObjectSelectionOverlayComponent {
|
|
886
1815
|
constructor(eventDisplay) {
|
|
887
1816
|
this.eventDisplay = eventDisplay;
|
|
@@ -891,14 +1820,22 @@ class ObjectSelectionOverlayComponent {
|
|
|
891
1820
|
this.eventDisplay.allowSelection(this.selectedObject);
|
|
892
1821
|
}
|
|
893
1822
|
}
|
|
894
|
-
ObjectSelectionOverlayComponent.ɵfac =
|
|
895
|
-
ObjectSelectionOverlayComponent.ɵcmp = i0.ɵɵ
|
|
896
|
-
i0.ɵɵ
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1823
|
+
ObjectSelectionOverlayComponent.ɵfac = function ObjectSelectionOverlayComponent_Factory(t) { return new (t || ObjectSelectionOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1824
|
+
ObjectSelectionOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectSelectionOverlayComponent, selectors: [["app-object-selection-overlay"]], inputs: { hiddenSelectedInfo: "hiddenSelectedInfo" }, decls: 2, vars: 3, consts: [["icon", "cursor", 3, "overlayTitle", "active"], ["id", "selectedObjectPanelBody", "class", "m-1", 4, "ngIf"], ["id", "selectedObjectPanelBody", 1, "m-1"], ["class", "attributeField", 4, "ngFor", "ngForOf"], [1, "attributeField"]], template: function ObjectSelectionOverlayComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1825
|
+
i0.ɵɵelementStart(0, "app-overlay", 0);
|
|
1826
|
+
i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_Template, 2, 1, "div", 1);
|
|
1827
|
+
i0.ɵɵelementEnd();
|
|
1828
|
+
} if (rf & 2) {
|
|
1829
|
+
i0.ɵɵproperty("overlayTitle", ctx.selectedObject.name)("active", !ctx.hiddenSelectedInfo);
|
|
1830
|
+
i0.ɵɵadvance(1);
|
|
1831
|
+
i0.ɵɵproperty("ngIf", ctx.selectedObject.attributes.length > 0);
|
|
1832
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, OverlayComponent, AttributePipe], styles: ["#selectedObjectPanelBody[_ngcontent-%COMP%]{padding:0 .8em;overflow:auto;max-width:300px;max-height:16rem;min-width:7rem}"] });
|
|
1833
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionOverlayComponent, [{
|
|
1834
|
+
type: Component,
|
|
1835
|
+
args: [{ selector: 'app-object-selection-overlay', template: "<app-overlay\n icon=\"cursor\"\n [overlayTitle]=\"selectedObject.name\"\n [active]=\"!hiddenSelectedInfo\"\n>\n <div\n id=\"selectedObjectPanelBody\"\n class=\"m-1\"\n *ngIf=\"selectedObject.attributes.length > 0\"\n >\n <div\n *ngFor=\"let attribute of selectedObject.attributes\"\n class=\"attributeField\"\n >\n <strong>{{ attribute.attributeName }}</strong>\n : {{ attribute.attributeValue | attributePipe }}\n </div>\n </div>\n</app-overlay>\n", styles: ["#selectedObjectPanelBody{padding:0 .8em;overflow:auto;max-width:300px;max-height:16rem;min-width:7rem}\n"] }]
|
|
1836
|
+
}], function () { return [{ type: EventDisplayService }]; }, { hiddenSelectedInfo: [{
|
|
1837
|
+
type: Input
|
|
1838
|
+
}] }); })();
|
|
902
1839
|
|
|
903
1840
|
class ObjectSelectionComponent {
|
|
904
1841
|
constructor(overlay, eventDisplay) {
|
|
@@ -922,13 +1859,20 @@ class ObjectSelectionComponent {
|
|
|
922
1859
|
this.eventDisplay.enableSelecting(!this.hiddenSelectedInfo);
|
|
923
1860
|
}
|
|
924
1861
|
}
|
|
925
|
-
ObjectSelectionComponent.ɵfac =
|
|
926
|
-
ObjectSelectionComponent.ɵcmp = i0.ɵɵ
|
|
927
|
-
i0.ɵɵ
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1862
|
+
ObjectSelectionComponent.ɵfac = function ObjectSelectionComponent_Factory(t) { return new (t || ObjectSelectionComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1863
|
+
ObjectSelectionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectSelectionComponent, selectors: [["app-object-selection"]], decls: 1, vars: 1, consts: [["tooltip", "Object selection", "icon", "cursor", 3, "active", "click"]], template: function ObjectSelectionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1864
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1865
|
+
i0.ɵɵlistener("click", function ObjectSelectionComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1866
|
+
i0.ɵɵelementEnd();
|
|
1867
|
+
} if (rf & 2) {
|
|
1868
|
+
i0.ɵɵproperty("active", !ctx.hiddenSelectedInfo);
|
|
1869
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1870
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionComponent, [{
|
|
1871
|
+
type: Component,
|
|
1872
|
+
args: [{ selector: 'app-object-selection', template: "<app-menu-toggle\n tooltip=\"Object selection\"\n icon=\"cursor\"\n [active]=\"!hiddenSelectedInfo\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
|
|
1873
|
+
}], function () { return [{ type: i1$1.Overlay }, { type: EventDisplayService }]; }, null); })();
|
|
931
1874
|
|
|
1875
|
+
const _c0$5 = ["overlayWindow"];
|
|
932
1876
|
class OverlayViewWindowComponent {
|
|
933
1877
|
constructor(eventDisplay) {
|
|
934
1878
|
this.eventDisplay = eventDisplay;
|
|
@@ -964,17 +1908,42 @@ class OverlayViewWindowComponent {
|
|
|
964
1908
|
this.transparentBody = !this.transparentBody;
|
|
965
1909
|
}
|
|
966
1910
|
}
|
|
967
|
-
OverlayViewWindowComponent.ɵfac =
|
|
968
|
-
OverlayViewWindowComponent.ɵcmp = i0.ɵɵ
|
|
969
|
-
i0.ɵɵ
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1911
|
+
OverlayViewWindowComponent.ɵfac = function OverlayViewWindowComponent_Factory(t) { return new (t || OverlayViewWindowComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1912
|
+
OverlayViewWindowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayViewWindowComponent, selectors: [["app-overlay-view-window"]], viewQuery: function OverlayViewWindowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1913
|
+
i0.ɵɵviewQuery(_c0$5, 5);
|
|
1914
|
+
} if (rf & 2) {
|
|
1915
|
+
let _t;
|
|
1916
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayWindow = _t.first);
|
|
1917
|
+
} }, inputs: { showOverlay: "showOverlay" }, decls: 8, vars: 8, consts: [["overlayTitle", "Overlay View", "icon", "overlay", 3, "resizable", "transparentBody", "active"], [1, "overlay-view-wrapper"], ["id", "overlay-canvas", 3, "hidden"], ["overlayWindow", ""], [1, "overlay-view-controls", "position-absolute", "d-flex", "flex-row"], ["icon", "transparent", "matTooltip", "Toggle background transparency", 1, "overlay-view-control", 3, "click"], ["icon", "move-lock", 1, "overlay-view-control", 3, "matTooltip", "active", "click"], [1, "overlay-view-control", 3, "icon", "matTooltip", "click"]], template: function OverlayViewWindowComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1918
|
+
i0.ɵɵelementStart(0, "app-overlay", 0)(1, "div", 1);
|
|
1919
|
+
i0.ɵɵelement(2, "canvas", 2, 3);
|
|
1920
|
+
i0.ɵɵelementStart(4, "div", 4)(5, "app-menu-toggle", 5);
|
|
1921
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_5_listener() { return ctx.toggleBgTransparency(); });
|
|
1922
|
+
i0.ɵɵelementEnd();
|
|
1923
|
+
i0.ɵɵelementStart(6, "app-menu-toggle", 6);
|
|
1924
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_6_listener() { return ctx.fixOverlayView(); });
|
|
1925
|
+
i0.ɵɵelementEnd();
|
|
1926
|
+
i0.ɵɵelementStart(7, "app-menu-toggle", 7);
|
|
1927
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_7_listener() { return ctx.switchOverlayView(); });
|
|
1928
|
+
i0.ɵɵelementEnd()()()();
|
|
1929
|
+
} if (rf & 2) {
|
|
1930
|
+
i0.ɵɵproperty("resizable", true)("transparentBody", ctx.transparentBody)("active", ctx.showOverlay);
|
|
1931
|
+
i0.ɵɵadvance(2);
|
|
1932
|
+
i0.ɵɵproperty("hidden", !ctx.showOverlay);
|
|
1933
|
+
i0.ɵɵadvance(4);
|
|
1934
|
+
i0.ɵɵproperty("matTooltip", (ctx.overlayViewFixed ? "Restore" : "Fix") + " overlay view")("active", ctx.overlayViewFixed);
|
|
1935
|
+
i0.ɵɵadvance(1);
|
|
1936
|
+
i0.ɵɵproperty("icon", ctx.orthographicView ? "orthographic" : "perspective")("matTooltip", "Switch to " + (ctx.orthographicView ? "orthographic" : "perspective") + " view");
|
|
1937
|
+
} }, dependencies: [i2$3.MatTooltip, MenuToggleComponent, OverlayComponent], styles: ["#overlay-canvas[_ngcontent-%COMP%]{background-color:#0000001a;width:100%}.overlay-view-controls[_ngcontent-%COMP%]{bottom:1em;right:1em;opacity:0;transition:opacity .2s}.overlay-view-controls[_ngcontent-%COMP%] .overlay-view-control[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);overflow:hidden;width:2.5rem;height:2.5rem;border-radius:50%;display:flex;justify-content:center;align-items:center}.overlay-view-wrapper[_ngcontent-%COMP%]:hover .overlay-view-controls[_ngcontent-%COMP%]{opacity:1;transition:opacity .2s}"] });
|
|
1938
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewWindowComponent, [{
|
|
1939
|
+
type: Component,
|
|
1940
|
+
args: [{ selector: 'app-overlay-view-window', template: "<app-overlay\n overlayTitle=\"Overlay View\"\n icon=\"overlay\"\n [resizable]=\"true\"\n [transparentBody]=\"transparentBody\"\n [active]=\"showOverlay\"\n>\n <div class=\"overlay-view-wrapper\">\n <canvas #overlayWindow id=\"overlay-canvas\" [hidden]=\"!showOverlay\">\n </canvas>\n <div class=\"overlay-view-controls position-absolute d-flex flex-row\">\n <app-menu-toggle\n class=\"overlay-view-control\"\n icon=\"transparent\"\n matTooltip=\"Toggle background transparency\"\n (click)=\"toggleBgTransparency()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n class=\"overlay-view-control\"\n icon=\"move-lock\"\n [matTooltip]=\"(overlayViewFixed ? 'Restore' : 'Fix') + ' overlay view'\"\n [active]=\"overlayViewFixed\"\n (click)=\"fixOverlayView()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n class=\"overlay-view-control\"\n [icon]=\"orthographicView ? 'orthographic' : 'perspective'\"\n [matTooltip]=\"\n 'Switch to ' +\n (orthographicView ? 'orthographic' : 'perspective') +\n ' view'\n \"\n (click)=\"switchOverlayView()\"\n >\n </app-menu-toggle>\n </div>\n </div>\n</app-overlay>\n", styles: ["#overlay-canvas{background-color:#0000001a;width:100%}.overlay-view-controls{bottom:1em;right:1em;opacity:0;transition:opacity .2s}.overlay-view-controls .overlay-view-control{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);overflow:hidden;width:2.5rem;height:2.5rem;border-radius:50%;display:flex;justify-content:center;align-items:center}.overlay-view-wrapper:hover .overlay-view-controls{opacity:1;transition:opacity .2s}\n"] }]
|
|
1941
|
+
}], function () { return [{ type: EventDisplayService }]; }, { showOverlay: [{
|
|
1942
|
+
type: Input
|
|
1943
|
+
}], overlayWindow: [{
|
|
1944
|
+
type: ViewChild,
|
|
1945
|
+
args: ['overlayWindow']
|
|
1946
|
+
}] }); })();
|
|
978
1947
|
|
|
979
1948
|
class OverlayViewComponent {
|
|
980
1949
|
constructor(overlay) {
|
|
@@ -995,13 +1964,67 @@ class OverlayViewComponent {
|
|
|
995
1964
|
this.overlayWindow.instance.showOverlay = this.showOverlay;
|
|
996
1965
|
}
|
|
997
1966
|
}
|
|
998
|
-
OverlayViewComponent.ɵfac =
|
|
999
|
-
OverlayViewComponent.ɵcmp = i0.ɵɵ
|
|
1000
|
-
i0.ɵɵ
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1967
|
+
OverlayViewComponent.ɵfac = function OverlayViewComponent_Factory(t) { return new (t || OverlayViewComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1968
|
+
OverlayViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayViewComponent, selectors: [["app-overlay-view"]], decls: 1, vars: 1, consts: [["tooltip", "Overlay view", "icon", "overlay", 3, "active", "click"]], template: function OverlayViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1969
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1970
|
+
i0.ɵɵlistener("click", function OverlayViewComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1971
|
+
i0.ɵɵelementEnd();
|
|
1972
|
+
} if (rf & 2) {
|
|
1973
|
+
i0.ɵɵproperty("active", ctx.showOverlay);
|
|
1974
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1975
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewComponent, [{
|
|
1976
|
+
type: Component,
|
|
1977
|
+
args: [{ selector: 'app-overlay-view', template: "<app-menu-toggle\n tooltip=\"Overlay view\"\n icon=\"overlay\"\n [active]=\"showOverlay\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
|
|
1978
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
1004
1979
|
|
|
1980
|
+
function TreeMenuItemComponent_ng_container_0_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1981
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1982
|
+
i0.ɵɵelementStart(0, "button", 7);
|
|
1983
|
+
i0.ɵɵlistener("click", function TreeMenuItemComponent_ng_container_0_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.isExpanded = !ctx_r3.isExpanded); });
|
|
1984
|
+
i0.ɵɵelementStart(1, "mat-icon", 8);
|
|
1985
|
+
i0.ɵɵtext(2);
|
|
1986
|
+
i0.ɵɵelementEnd()();
|
|
1987
|
+
} if (rf & 2) {
|
|
1988
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1989
|
+
i0.ɵɵadvance(2);
|
|
1990
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.isExpanded ? "expand_more" : "chevron_right", " ");
|
|
1991
|
+
} }
|
|
1992
|
+
function TreeMenuItemComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
|
|
1993
|
+
i0.ɵɵelementStart(0, "li");
|
|
1994
|
+
i0.ɵɵelement(1, "app-tree-menu-item", 9);
|
|
1995
|
+
i0.ɵɵelementEnd();
|
|
1996
|
+
} if (rf & 2) {
|
|
1997
|
+
const node_r5 = ctx.$implicit;
|
|
1998
|
+
i0.ɵɵadvance(1);
|
|
1999
|
+
i0.ɵɵproperty("node", node_r5);
|
|
2000
|
+
} }
|
|
2001
|
+
const _c0$4 = function (a0) { return { visible: a0 }; };
|
|
2002
|
+
function TreeMenuItemComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
2003
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
2004
|
+
i0.ɵɵelementContainerStart(0);
|
|
2005
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
2006
|
+
i0.ɵɵtemplate(2, TreeMenuItemComponent_ng_container_0_button_2_Template, 3, 1, "button", 2);
|
|
2007
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
2008
|
+
i0.ɵɵlistener("click", function TreeMenuItemComponent_ng_container_0_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.toggleVisibility(!ctx_r6.visible)); });
|
|
2009
|
+
i0.ɵɵtext(4);
|
|
2010
|
+
i0.ɵɵelementEnd()();
|
|
2011
|
+
i0.ɵɵelementStart(5, "ul", 4)(6, "div", 5);
|
|
2012
|
+
i0.ɵɵtemplate(7, TreeMenuItemComponent_ng_container_0_li_7_Template, 2, 1, "li", 6);
|
|
2013
|
+
i0.ɵɵelementEnd()();
|
|
2014
|
+
i0.ɵɵelementContainerEnd();
|
|
2015
|
+
} if (rf & 2) {
|
|
2016
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
2017
|
+
i0.ɵɵadvance(1);
|
|
2018
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$4, ctx_r0.visible));
|
|
2019
|
+
i0.ɵɵadvance(1);
|
|
2020
|
+
i0.ɵɵproperty("ngIf", ctx_r0.node.children);
|
|
2021
|
+
i0.ɵɵadvance(2);
|
|
2022
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.node.name, " ");
|
|
2023
|
+
i0.ɵɵadvance(1);
|
|
2024
|
+
i0.ɵɵproperty("hidden", !ctx_r0.isExpanded);
|
|
2025
|
+
i0.ɵɵadvance(2);
|
|
2026
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.node.children);
|
|
2027
|
+
} }
|
|
1005
2028
|
class TreeMenuItemComponent {
|
|
1006
2029
|
constructor(eventDisplay) {
|
|
1007
2030
|
this.eventDisplay = eventDisplay;
|
|
@@ -1017,17 +2040,26 @@ class TreeMenuItemComponent {
|
|
|
1017
2040
|
this.children.forEach((child) => child.toggleVisibility(visible));
|
|
1018
2041
|
}
|
|
1019
2042
|
}
|
|
1020
|
-
TreeMenuItemComponent.ɵfac =
|
|
1021
|
-
TreeMenuItemComponent.ɵcmp = i0.ɵɵ
|
|
1022
|
-
i0.ɵɵ
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
2043
|
+
TreeMenuItemComponent.ɵfac = function TreeMenuItemComponent_Factory(t) { return new (t || TreeMenuItemComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2044
|
+
TreeMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeMenuItemComponent, selectors: [["app-tree-menu-item"]], viewQuery: function TreeMenuItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2045
|
+
i0.ɵɵviewQuery(TreeMenuItemComponent, 5);
|
|
2046
|
+
} if (rf & 2) {
|
|
2047
|
+
let _t;
|
|
2048
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);
|
|
2049
|
+
} }, inputs: { node: "node" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "header", 3, "ngClass"], ["mat-icon-button", "", "matTreeNodeToggle", "", 3, "click", 4, "ngIf"], [1, "node-name", 3, "click"], ["hid", "", 3, "hidden"], [1, "children"], [4, "ngFor", "ngForOf"], ["mat-icon-button", "", "matTreeNodeToggle", "", 3, "click"], [1, "mat-icon-rtl-mirror"], [3, "node"]], template: function TreeMenuItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2050
|
+
i0.ɵɵtemplate(0, TreeMenuItemComponent_ng_container_0_Template, 8, 7, "ng-container", 0);
|
|
2051
|
+
} if (rf & 2) {
|
|
2052
|
+
i0.ɵɵproperty("ngIf", ctx.node);
|
|
2053
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$2.MatIconButton, i4$1.MatIcon, TreeMenuItemComponent], styles: [".header[_ngcontent-%COMP%]{cursor:pointer;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;display:flex;flex-direction:row;align-items:center}.header[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%], .header[_ngcontent-%COMP%] .mat-icon-rtl-mirror[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary)}.header.visible[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%], .header.visible[_ngcontent-%COMP%] .mat-icon-rtl-mirror[_ngcontent-%COMP%]{color:var(--phoenix-accent)}.children[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none}"] });
|
|
2054
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuItemComponent, [{
|
|
2055
|
+
type: Component,
|
|
2056
|
+
args: [{ selector: 'app-tree-menu-item', template: "<ng-container *ngIf=\"node\">\n <div class=\"header\" [ngClass]=\"{ visible: visible }\">\n <button\n *ngIf=\"node.children\"\n mat-icon-button\n matTreeNodeToggle\n (click)=\"isExpanded = !isExpanded\"\n >\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ isExpanded ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div (click)=\"toggleVisibility(!visible)\" class=\"node-name\">\n {{ node.name }}\n </div>\n </div>\n <ul [hidden]=\"!isExpanded\" hid>\n <div class=\"children\">\n <li *ngFor=\"let node of node.children\">\n <app-tree-menu-item [node]=\"node\"></app-tree-menu-item>\n </li>\n </div>\n </ul>\n</ng-container>\n", styles: [".header{cursor:pointer;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;display:flex;flex-direction:row;align-items:center}.header .node-name,.header .mat-icon-rtl-mirror{color:var(--phoenix-text-color-secondary)}.header.visible .node-name,.header.visible .mat-icon-rtl-mirror{color:var(--phoenix-accent)}.children li{list-style-type:none}\n"] }]
|
|
2057
|
+
}], function () { return [{ type: EventDisplayService }]; }, { children: [{
|
|
2058
|
+
type: ViewChildren,
|
|
2059
|
+
args: [TreeMenuItemComponent]
|
|
2060
|
+
}], node: [{
|
|
2061
|
+
type: Input
|
|
2062
|
+
}] }); })();
|
|
1031
2063
|
|
|
1032
2064
|
class TreeMenuComponent {
|
|
1033
2065
|
constructor() {
|
|
@@ -1090,13 +2122,44 @@ class TreeMenuComponent {
|
|
|
1090
2122
|
}
|
|
1091
2123
|
ngOnInit() { }
|
|
1092
2124
|
}
|
|
1093
|
-
TreeMenuComponent.ɵfac =
|
|
1094
|
-
TreeMenuComponent.ɵcmp = i0.ɵɵ
|
|
1095
|
-
i0.ɵɵ
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
2125
|
+
TreeMenuComponent.ɵfac = function TreeMenuComponent_Factory(t) { return new (t || TreeMenuComponent)(); };
|
|
2126
|
+
TreeMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeMenuComponent, selectors: [["app-tree-menu"]], decls: 3, vars: 1, consts: [[1, "tree-wrapper"], [1, "tree-menu"], [3, "node"]], template: function TreeMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2127
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
2128
|
+
i0.ɵɵelement(2, "app-tree-menu-item", 2);
|
|
2129
|
+
i0.ɵɵelementEnd()();
|
|
2130
|
+
} if (rf & 2) {
|
|
2131
|
+
i0.ɵɵadvance(2);
|
|
2132
|
+
i0.ɵɵproperty("node", ctx.rootNode);
|
|
2133
|
+
} }, dependencies: [TreeMenuItemComponent], styles: [".tree-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center}.tree-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center;max-height:70vh;overflow-y:scroll}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"] });
|
|
2134
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuComponent, [{
|
|
2135
|
+
type: Component,
|
|
2136
|
+
args: [{ selector: 'app-tree-menu', template: "<div class=\"tree-wrapper\">\n <div class=\"tree-menu\">\n <app-tree-menu-item [node]=\"rootNode\"></app-tree-menu-item>\n </div>\n</div>\n", styles: [".tree-wrapper{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center}.tree-menu{display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center;max-height:70vh;overflow-y:scroll}.example-tree-invisible{display:none}.example-tree ul,.example-tree li{margin-top:0;margin-bottom:0;list-style-type:none}\n"] }]
|
|
2137
|
+
}], function () { return []; }, null); })();
|
|
1099
2138
|
|
|
2139
|
+
function ViewOptionsComponent_button_10__svg_svg_1_Template(rf, ctx) { if (rf & 1) {
|
|
2140
|
+
i0.ɵɵnamespaceSVG();
|
|
2141
|
+
i0.ɵɵelementStart(0, "svg", 8);
|
|
2142
|
+
i0.ɵɵelement(1, "use");
|
|
2143
|
+
i0.ɵɵelementEnd();
|
|
2144
|
+
} if (rf & 2) {
|
|
2145
|
+
const view_r4 = i0.ɵɵnextContext().$implicit;
|
|
2146
|
+
i0.ɵɵadvance(1);
|
|
2147
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", view_r4.icon, ".svg#", view_r4.icon, "");
|
|
2148
|
+
} }
|
|
2149
|
+
function ViewOptionsComponent_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
2150
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
2151
|
+
i0.ɵɵelementStart(0, "button", 1);
|
|
2152
|
+
i0.ɵɵlistener("click", function ViewOptionsComponent_button_10_Template_button_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r8); const view_r4 = restoredCtx.$implicit; const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.displayView($event, view_r4)); });
|
|
2153
|
+
i0.ɵɵtemplate(1, ViewOptionsComponent_button_10__svg_svg_1_Template, 2, 2, "svg", 7);
|
|
2154
|
+
i0.ɵɵtext(2);
|
|
2155
|
+
i0.ɵɵelementEnd();
|
|
2156
|
+
} if (rf & 2) {
|
|
2157
|
+
const view_r4 = ctx.$implicit;
|
|
2158
|
+
i0.ɵɵadvance(1);
|
|
2159
|
+
i0.ɵɵproperty("ngIf", view_r4.icon);
|
|
2160
|
+
i0.ɵɵadvance(1);
|
|
2161
|
+
i0.ɵɵtextInterpolate1(" ", view_r4.name, " ");
|
|
2162
|
+
} }
|
|
1100
2163
|
class ViewOptionsComponent {
|
|
1101
2164
|
constructor(eventDisplay) {
|
|
1102
2165
|
this.eventDisplay = eventDisplay;
|
|
@@ -1117,12 +2180,35 @@ class ViewOptionsComponent {
|
|
|
1117
2180
|
this.eventDisplay.getUIManager().setShowGrid(value);
|
|
1118
2181
|
}
|
|
1119
2182
|
}
|
|
1120
|
-
ViewOptionsComponent.ɵfac =
|
|
1121
|
-
ViewOptionsComponent.ɵcmp = i0.ɵɵ
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
2183
|
+
ViewOptionsComponent.ɵfac = function ViewOptionsComponent_Factory(t) { return new (t || ViewOptionsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2184
|
+
ViewOptionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewOptionsComponent, selectors: [["app-view-options"]], decls: 12, vars: 3, consts: [["viewOptions", ""], ["mat-menu-item", "", 3, "click"], [3, "click", "change"], ["showGridCheckbox", ""], ["showAxisCheckbox", ""], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["tooltip", "View options", "icon", "views", 3, "matMenuTriggerFor", "active"], ["class", "view-icon", 4, "ngIf"], [1, "view-icon"]], template: function ViewOptionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2185
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
2186
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0)(2, "button", 1);
|
|
2187
|
+
i0.ɵɵlistener("click", function ViewOptionsComponent_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r9); const _r1 = i0.ɵɵreference(4); $event.stopPropagation(); return i0.ɵɵresetView(_r1._inputElement.nativeElement.click()); });
|
|
2188
|
+
i0.ɵɵelementStart(3, "mat-checkbox", 2, 3);
|
|
2189
|
+
i0.ɵɵlistener("click", function ViewOptionsComponent_Template_mat_checkbox_click_3_listener($event) { return $event.stopPropagation(); })("change", function ViewOptionsComponent_Template_mat_checkbox_change_3_listener($event) { return ctx.setGrid($event); });
|
|
2190
|
+
i0.ɵɵtext(5, "Show Grid ");
|
|
2191
|
+
i0.ɵɵelementEnd()();
|
|
2192
|
+
i0.ɵɵelementStart(6, "button", 1);
|
|
2193
|
+
i0.ɵɵlistener("click", function ViewOptionsComponent_Template_button_click_6_listener($event) { i0.ɵɵrestoreView(_r9); const _r2 = i0.ɵɵreference(8); $event.stopPropagation(); return i0.ɵɵresetView(_r2._inputElement.nativeElement.click()); });
|
|
2194
|
+
i0.ɵɵelementStart(7, "mat-checkbox", 2, 4);
|
|
2195
|
+
i0.ɵɵlistener("click", function ViewOptionsComponent_Template_mat_checkbox_click_7_listener($event) { return $event.stopPropagation(); })("change", function ViewOptionsComponent_Template_mat_checkbox_change_7_listener($event) { return ctx.setAxis($event); });
|
|
2196
|
+
i0.ɵɵtext(9, "Show Axis ");
|
|
2197
|
+
i0.ɵɵelementEnd()();
|
|
2198
|
+
i0.ɵɵtemplate(10, ViewOptionsComponent_button_10_Template, 3, 2, "button", 5);
|
|
2199
|
+
i0.ɵɵelementEnd();
|
|
2200
|
+
i0.ɵɵelement(11, "app-menu-toggle", 6);
|
|
2201
|
+
} if (rf & 2) {
|
|
2202
|
+
const _r0 = i0.ɵɵreference(1);
|
|
2203
|
+
i0.ɵɵadvance(10);
|
|
2204
|
+
i0.ɵɵproperty("ngForOf", ctx.views);
|
|
2205
|
+
i0.ɵɵadvance(1);
|
|
2206
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", false);
|
|
2207
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i4.MatCheckbox, MenuToggleComponent], styles: [".view-icon[_ngcontent-%COMP%]{width:1.2rem;height:1.2rem;margin-right:.5rem}"] });
|
|
2208
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewOptionsComponent, [{
|
|
2209
|
+
type: Component,
|
|
2210
|
+
args: [{ selector: 'app-view-options', template: "<mat-menu #viewOptions>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n showGridCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #showGridCheckbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"setGrid($event)\"\n >Show Grid\n </mat-checkbox>\n </button>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n showAxisCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #showAxisCheckbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"setAxis($event)\"\n >Show Axis\n </mat-checkbox>\n </button>\n <button\n mat-menu-item\n *ngFor=\"let view of views\"\n (click)=\"displayView($event, view)\"\n >\n <svg class=\"view-icon\" *ngIf=\"view.icon\">\n <use attr.href=\"assets/icons/{{ view.icon }}.svg#{{ view.icon }}\"></use>\n </svg>\n {{ view.name }}\n </button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"viewOptions\"\n tooltip=\"View options\"\n icon=\"views\"\n [active]=\"false\"\n>\n</app-menu-toggle>\n", styles: [".view-icon{width:1.2rem;height:1.2rem;margin-right:.5rem}\n"] }]
|
|
2211
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1126
2212
|
|
|
1127
2213
|
class VrToggleComponent {
|
|
1128
2214
|
constructor(eventDisplay) {
|
|
@@ -1156,13 +2242,37 @@ class VrToggleComponent {
|
|
|
1156
2242
|
}
|
|
1157
2243
|
}
|
|
1158
2244
|
}
|
|
1159
|
-
VrToggleComponent.ɵfac =
|
|
1160
|
-
VrToggleComponent.ɵcmp = i0.ɵɵ
|
|
1161
|
-
i0.ɵɵ
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
2245
|
+
VrToggleComponent.ɵfac = function VrToggleComponent_Factory(t) { return new (t || VrToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2246
|
+
VrToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: VrToggleComponent, selectors: [["app-vr-toggle"]], decls: 1, vars: 3, consts: [["icon", "vr", 3, "disabled", "active", "tooltip", "click"]], template: function VrToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2247
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2248
|
+
i0.ɵɵlistener("click", function VrToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.vrSupported && ctx.toggleVr(); });
|
|
2249
|
+
i0.ɵɵelementEnd();
|
|
2250
|
+
} if (rf & 2) {
|
|
2251
|
+
i0.ɵɵproperty("disabled", !ctx.vrSupported)("active", ctx.vrActive)("tooltip", ctx.vrSupported ? ctx.vrActive ? "Exit VR" : "Enter VR" : "VR not supported");
|
|
2252
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2253
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VrToggleComponent, [{
|
|
2254
|
+
type: Component,
|
|
2255
|
+
args: [{ selector: 'app-vr-toggle', template: "<app-menu-toggle\n [disabled]=\"!vrSupported\"\n [active]=\"vrActive\"\n icon=\"vr\"\n (click)=\"vrSupported && toggleVr()\"\n [tooltip]=\"\n vrSupported ? (vrActive ? 'Exit VR' : 'Enter VR') : 'VR not supported'\n \"\n>\n</app-menu-toggle>\n" }]
|
|
2256
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1165
2257
|
|
|
2258
|
+
function ArToggleComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
2259
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2260
|
+
i0.ɵɵelementContainerStart(0);
|
|
2261
|
+
i0.ɵɵelementStart(1, "button", 4);
|
|
2262
|
+
i0.ɵɵlistener("click", function ArToggleComponent_ng_container_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleAr(true)); });
|
|
2263
|
+
i0.ɵɵtext(2, "AR with overlays");
|
|
2264
|
+
i0.ɵɵelementEnd();
|
|
2265
|
+
i0.ɵɵelementStart(3, "button", 4);
|
|
2266
|
+
i0.ɵɵlistener("click", function ArToggleComponent_ng_container_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.toggleAr(false)); });
|
|
2267
|
+
i0.ɵɵtext(4, "AR without overlays");
|
|
2268
|
+
i0.ɵɵelementEnd();
|
|
2269
|
+
i0.ɵɵelementContainerEnd();
|
|
2270
|
+
} }
|
|
2271
|
+
function ArToggleComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
2272
|
+
i0.ɵɵelementStart(0, "button", 5);
|
|
2273
|
+
i0.ɵɵtext(1, "AR not supported");
|
|
2274
|
+
i0.ɵɵelementEnd();
|
|
2275
|
+
} }
|
|
1166
2276
|
class ArToggleComponent {
|
|
1167
2277
|
constructor(eventDisplay) {
|
|
1168
2278
|
this.eventDisplay = eventDisplay;
|
|
@@ -1196,12 +2306,28 @@ class ArToggleComponent {
|
|
|
1196
2306
|
}
|
|
1197
2307
|
}
|
|
1198
2308
|
}
|
|
1199
|
-
ArToggleComponent.ɵfac =
|
|
1200
|
-
ArToggleComponent.ɵcmp = i0.ɵɵ
|
|
1201
|
-
i0.ɵɵ
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
2309
|
+
ArToggleComponent.ɵfac = function ArToggleComponent_Factory(t) { return new (t || ArToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2310
|
+
ArToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArToggleComponent, selectors: [["app-ar-toggle"]], decls: 5, vars: 6, consts: [["arToggleOptions", ""], [4, "ngIf"], ["mat-menu-item", "", "disabled", "", 4, "ngIf"], ["icon", "ar", 3, "matMenuTriggerFor", "disabled", "active", "tooltip", "click"], ["mat-menu-item", "", 3, "click"], ["mat-menu-item", "", "disabled", ""]], template: function ArToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2311
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0);
|
|
2312
|
+
i0.ɵɵtemplate(2, ArToggleComponent_ng_container_2_Template, 5, 0, "ng-container", 1);
|
|
2313
|
+
i0.ɵɵtemplate(3, ArToggleComponent_button_3_Template, 2, 0, "button", 2);
|
|
2314
|
+
i0.ɵɵelementEnd();
|
|
2315
|
+
i0.ɵɵelementStart(4, "app-menu-toggle", 3);
|
|
2316
|
+
i0.ɵɵlistener("click", function ArToggleComponent_Template_app_menu_toggle_click_4_listener() { return ctx.arSupported && (ctx.arActive ? ctx.toggleAr() : null); });
|
|
2317
|
+
i0.ɵɵelementEnd();
|
|
2318
|
+
} if (rf & 2) {
|
|
2319
|
+
const _r0 = i0.ɵɵreference(1);
|
|
2320
|
+
i0.ɵɵadvance(2);
|
|
2321
|
+
i0.ɵɵproperty("ngIf", ctx.arSupported);
|
|
2322
|
+
i0.ɵɵadvance(1);
|
|
2323
|
+
i0.ɵɵproperty("ngIf", !ctx.arSupported);
|
|
2324
|
+
i0.ɵɵadvance(1);
|
|
2325
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("disabled", !ctx.arSupported)("active", ctx.arActive)("tooltip", ctx.arSupported ? ctx.arActive ? "Exit AR" : "Enter AR" : "AR not supported");
|
|
2326
|
+
} }, dependencies: [i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
|
|
2327
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArToggleComponent, [{
|
|
2328
|
+
type: Component,
|
|
2329
|
+
args: [{ selector: 'app-ar-toggle', template: "<mat-menu #arToggleOptions>\n <ng-container *ngIf=\"arSupported\">\n <button mat-menu-item (click)=\"toggleAr(true)\">AR with overlays</button>\n <button mat-menu-item (click)=\"toggleAr(false)\">AR without overlays</button>\n </ng-container>\n <button *ngIf=\"!arSupported\" mat-menu-item disabled>AR not supported</button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"arToggleOptions\"\n (click)=\"arSupported && (arActive ? toggleAr() : null)\"\n [disabled]=\"!arSupported\"\n [active]=\"arActive\"\n icon=\"ar\"\n [tooltip]=\"\n arSupported ? (arActive ? 'Exit AR' : 'Enter AR') : 'AR not supported'\n \"\n>\n</app-menu-toggle>\n" }]
|
|
2330
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1205
2331
|
|
|
1206
2332
|
/**
|
|
1207
2333
|
* Component for adding zoom controls for the main and overlay cameras.
|
|
@@ -1253,12 +2379,24 @@ class ZoomControlsComponent {
|
|
|
1253
2379
|
clearTimeout(this.zoomTimeout);
|
|
1254
2380
|
}
|
|
1255
2381
|
}
|
|
1256
|
-
ZoomControlsComponent.ɵfac =
|
|
1257
|
-
ZoomControlsComponent.ɵcmp = i0.ɵɵ
|
|
1258
|
-
i0.ɵɵ
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
2382
|
+
ZoomControlsComponent.ɵfac = function ZoomControlsComponent_Factory(t) { return new (t || ZoomControlsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2383
|
+
ZoomControlsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ZoomControlsComponent, selectors: [["app-zoom-controls"]], decls: 3, vars: 2, consts: [[1, "d-flex"], ["tooltip", "Zoom out (hold)", "icon", "zoom-out", 3, "active", "click", "touchstart", "mousedown", "mouseup", "mouseleave", "touchend", "touchcancel", "touchmove"], ["tooltip", "Zoom in (hold)", "icon", "zoom-in", 3, "active", "click", "touchstart", "mousedown", "mouseup", "mouseleave", "touchend", "touchcancel", "touchmove"]], template: function ZoomControlsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2384
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "app-menu-toggle", 1);
|
|
2385
|
+
i0.ɵɵlistener("click", function ZoomControlsComponent_Template_app_menu_toggle_click_1_listener() { ctx.zoomOut(true); return ctx.clearZoom(); })("touchstart", function ZoomControlsComponent_Template_app_menu_toggle_touchstart_1_listener() { return ctx.zoomOut(true); })("mousedown", function ZoomControlsComponent_Template_app_menu_toggle_mousedown_1_listener($event) { return ctx.zoomOut($event.button === 0); })("mouseup", function ZoomControlsComponent_Template_app_menu_toggle_mouseup_1_listener() { return ctx.clearZoom(); })("mouseleave", function ZoomControlsComponent_Template_app_menu_toggle_mouseleave_1_listener() { return ctx.clearZoom(); })("touchend", function ZoomControlsComponent_Template_app_menu_toggle_touchend_1_listener() { return ctx.clearZoom(); })("touchcancel", function ZoomControlsComponent_Template_app_menu_toggle_touchcancel_1_listener() { return ctx.clearZoom(); })("touchmove", function ZoomControlsComponent_Template_app_menu_toggle_touchmove_1_listener() { return ctx.clearZoom(); });
|
|
2386
|
+
i0.ɵɵelementEnd();
|
|
2387
|
+
i0.ɵɵelementStart(2, "app-menu-toggle", 2);
|
|
2388
|
+
i0.ɵɵlistener("click", function ZoomControlsComponent_Template_app_menu_toggle_click_2_listener() { ctx.zoomIn(true); return ctx.clearZoom(); })("touchstart", function ZoomControlsComponent_Template_app_menu_toggle_touchstart_2_listener() { return ctx.zoomIn(true); })("mousedown", function ZoomControlsComponent_Template_app_menu_toggle_mousedown_2_listener($event) { return ctx.zoomIn($event.button === 0); })("mouseup", function ZoomControlsComponent_Template_app_menu_toggle_mouseup_2_listener() { return ctx.clearZoom(); })("mouseleave", function ZoomControlsComponent_Template_app_menu_toggle_mouseleave_2_listener() { return ctx.clearZoom(); })("touchend", function ZoomControlsComponent_Template_app_menu_toggle_touchend_2_listener() { return ctx.clearZoom(); })("touchcancel", function ZoomControlsComponent_Template_app_menu_toggle_touchcancel_2_listener() { return ctx.clearZoom(); })("touchmove", function ZoomControlsComponent_Template_app_menu_toggle_touchmove_2_listener() { return ctx.clearZoom(); });
|
|
2389
|
+
i0.ɵɵelementEnd()();
|
|
2390
|
+
} if (rf & 2) {
|
|
2391
|
+
i0.ɵɵadvance(1);
|
|
2392
|
+
i0.ɵɵproperty("active", false);
|
|
2393
|
+
i0.ɵɵadvance(1);
|
|
2394
|
+
i0.ɵɵproperty("active", false);
|
|
2395
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2396
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ZoomControlsComponent, [{
|
|
2397
|
+
type: Component,
|
|
2398
|
+
args: [{ selector: 'app-zoom-controls', template: "<div class=\"d-flex\">\n <app-menu-toggle\n tooltip=\"Zoom out (hold)\"\n icon=\"zoom-out\"\n [active]=\"false\"\n (click)=\"zoomOut(true); clearZoom()\"\n (touchstart)=\"zoomOut(true)\"\n (mousedown)=\"zoomOut($event.button === 0)\"\n (mouseup)=\"clearZoom()\"\n (mouseleave)=\"clearZoom()\"\n (touchend)=\"clearZoom()\"\n (touchcancel)=\"clearZoom()\"\n (touchmove)=\"clearZoom()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n tooltip=\"Zoom in (hold)\"\n icon=\"zoom-in\"\n [active]=\"false\"\n (click)=\"zoomIn(true); clearZoom()\"\n (touchstart)=\"zoomIn(true)\"\n (mousedown)=\"zoomIn($event.button === 0)\"\n (mouseup)=\"clearZoom()\"\n (mouseleave)=\"clearZoom()\"\n (touchend)=\"clearZoom()\"\n (touchcancel)=\"clearZoom()\"\n (touchmove)=\"clearZoom()\"\n >\n </app-menu-toggle>\n</div>\n" }]
|
|
2399
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1262
2400
|
|
|
1263
2401
|
class SSModeComponent {
|
|
1264
2402
|
constructor() {
|
|
@@ -1291,12 +2429,18 @@ class SSModeComponent {
|
|
|
1291
2429
|
}
|
|
1292
2430
|
}
|
|
1293
2431
|
}
|
|
1294
|
-
SSModeComponent.ɵfac =
|
|
1295
|
-
SSModeComponent.ɵcmp = i0.ɵɵ
|
|
1296
|
-
i0.ɵɵ
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
2432
|
+
SSModeComponent.ɵfac = function SSModeComponent_Factory(t) { return new (t || SSModeComponent)(); };
|
|
2433
|
+
SSModeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SSModeComponent, selectors: [["app-ss-mode"]], decls: 1, vars: 1, consts: [["tooltip", "Screenshot mode", "icon", "ss-mode", 3, "active", "click"]], template: function SSModeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2434
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2435
|
+
i0.ɵɵlistener("click", function SSModeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleSSMode(); });
|
|
2436
|
+
i0.ɵɵelementEnd();
|
|
2437
|
+
} if (rf & 2) {
|
|
2438
|
+
i0.ɵɵproperty("active", ctx.ssMode);
|
|
2439
|
+
} }, dependencies: [MenuToggleComponent], styles: ["#uiMenu,#phoenixMenu,#mainLogo,#statsElement{transition:opacity .4s}.ss-mode #uiMenu,.ss-mode #phoenixMenu,.ss-mode #mainLogo,.ss-mode #statsElement{visibility:hidden;opacity:0}\n"], encapsulation: 2 });
|
|
2440
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SSModeComponent, [{
|
|
2441
|
+
type: Component,
|
|
2442
|
+
args: [{ selector: 'app-ss-mode', encapsulation: ViewEncapsulation.None, template: "<app-menu-toggle\n tooltip=\"Screenshot mode\"\n [active]=\"ssMode\"\n icon=\"ss-mode\"\n (click)=\"toggleSSMode()\"\n>\n</app-menu-toggle>\n", styles: ["#uiMenu,#phoenixMenu,#mainLogo,#statsElement{transition:opacity .4s}.ss-mode #uiMenu,.ss-mode #phoenixMenu,.ss-mode #mainLogo,.ss-mode #statsElement{visibility:hidden;opacity:0}\n"] }]
|
|
2443
|
+
}], null, null); })();
|
|
1300
2444
|
|
|
1301
2445
|
class PerformanceToggleComponent {
|
|
1302
2446
|
constructor(eventDisplay) {
|
|
@@ -1308,25 +2452,51 @@ class PerformanceToggleComponent {
|
|
|
1308
2452
|
this.eventDisplay.getThreeManager().setAntialiasing(!this.performanceMode);
|
|
1309
2453
|
}
|
|
1310
2454
|
}
|
|
1311
|
-
PerformanceToggleComponent.ɵfac =
|
|
1312
|
-
PerformanceToggleComponent.ɵcmp = i0.ɵɵ
|
|
1313
|
-
i0.ɵɵ
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
2455
|
+
PerformanceToggleComponent.ɵfac = function PerformanceToggleComponent_Factory(t) { return new (t || PerformanceToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2456
|
+
PerformanceToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PerformanceToggleComponent, selectors: [["app-performance-toggle"]], decls: 1, vars: 1, consts: [["tooltip", "Performance mode", "icon", "performance", 3, "active", "click"]], template: function PerformanceToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2457
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2458
|
+
i0.ɵɵlistener("click", function PerformanceToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.togglePerformance(); });
|
|
2459
|
+
i0.ɵɵelementEnd();
|
|
2460
|
+
} if (rf & 2) {
|
|
2461
|
+
i0.ɵɵproperty("active", ctx.performanceMode);
|
|
2462
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2463
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PerformanceToggleComponent, [{
|
|
2464
|
+
type: Component,
|
|
2465
|
+
args: [{ selector: 'app-performance-toggle', template: "<app-menu-toggle\n tooltip=\"Performance mode\"\n [active]=\"performanceMode\"\n icon=\"performance\"\n (click)=\"togglePerformance()\"\n>\n</app-menu-toggle>\n" }]
|
|
2466
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1317
2467
|
|
|
2468
|
+
const _c0$3 = function (a0) { return { "ui-menu-hidden": a0 }; };
|
|
2469
|
+
const _c1$1 = ["*"];
|
|
1318
2470
|
class UiMenuWrapperComponent {
|
|
1319
2471
|
constructor() {
|
|
1320
2472
|
this.hideUIMenu = false;
|
|
1321
2473
|
}
|
|
1322
2474
|
}
|
|
1323
|
-
UiMenuWrapperComponent.ɵfac =
|
|
1324
|
-
UiMenuWrapperComponent.ɵcmp = i0.ɵɵ
|
|
1325
|
-
i0.ɵɵ
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
2475
|
+
UiMenuWrapperComponent.ɵfac = function UiMenuWrapperComponent_Factory(t) { return new (t || UiMenuWrapperComponent)(); };
|
|
2476
|
+
UiMenuWrapperComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UiMenuWrapperComponent, selectors: [["app-ui-menu-wrapper"]], ngContentSelectors: _c1$1, decls: 6, vars: 5, consts: [["id", "uiMenu"], ["id", "hideUIMenu", "matTooltipPosition", "above", 3, "matTooltip", "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], ["id", "optionsPanel", 3, "hidden"]], template: function UiMenuWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2477
|
+
i0.ɵɵprojectionDef();
|
|
2478
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
2479
|
+
i0.ɵɵlistener("click", function UiMenuWrapperComponent_Template_button_click_1_listener() { return ctx.hideUIMenu = !ctx.hideUIMenu; });
|
|
2480
|
+
i0.ɵɵnamespaceSVG();
|
|
2481
|
+
i0.ɵɵelementStart(2, "svg");
|
|
2482
|
+
i0.ɵɵelement(3, "use", 2);
|
|
2483
|
+
i0.ɵɵelementEnd()();
|
|
2484
|
+
i0.ɵɵnamespaceHTML();
|
|
2485
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
2486
|
+
i0.ɵɵprojection(5);
|
|
2487
|
+
i0.ɵɵelementEnd()();
|
|
2488
|
+
} if (rf & 2) {
|
|
2489
|
+
i0.ɵɵadvance(1);
|
|
2490
|
+
i0.ɵɵproperty("matTooltip", ctx.hideUIMenu ? "Show toolbar" : "Hide toolbar")("ngClass", i0.ɵɵpureFunction1(3, _c0$3, ctx.hideUIMenu));
|
|
2491
|
+
i0.ɵɵadvance(3);
|
|
2492
|
+
i0.ɵɵproperty("hidden", ctx.hideUIMenu);
|
|
2493
|
+
} }, dependencies: [i2.NgClass, i2$3.MatTooltip], styles: ["#uiMenu[_ngcontent-%COMP%]{position:absolute;bottom:1rem;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}#optionsPanel[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;max-width:95%;padding:.3rem 1rem;overflow-x:scroll;z-index:90}#hideUIMenu[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);height:1.2rem;width:3rem;border:1px solid var(--phoenix-border);border-bottom:none;box-shadow:var(--phoenix-box-shadow);border-top-left-radius:15px;border-top-right-radius:15px;padding:3px}#hideUIMenu[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top;transition:all .3s}#hideUIMenu.ui-menu-hidden[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:scaleY(-1);transition:all .3s}"] });
|
|
2494
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuWrapperComponent, [{
|
|
2495
|
+
type: Component,
|
|
2496
|
+
args: [{ selector: 'app-ui-menu-wrapper', template: "<div id=\"uiMenu\">\n <button\n id=\"hideUIMenu\"\n [matTooltip]=\"hideUIMenu ? 'Show toolbar' : 'Hide toolbar'\"\n matTooltipPosition=\"above\"\n (click)=\"hideUIMenu = !hideUIMenu\"\n [ngClass]=\"{ 'ui-menu-hidden': hideUIMenu }\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n <div id=\"optionsPanel\" [hidden]=\"hideUIMenu\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["#uiMenu{position:absolute;bottom:1rem;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}#optionsPanel{display:flex;align-items:center;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;max-width:95%;padding:.3rem 1rem;overflow-x:scroll;z-index:90}#hideUIMenu{background:var(--phoenix-background-color-secondary);height:1.2rem;width:3rem;border:1px solid var(--phoenix-border);border-bottom:none;box-shadow:var(--phoenix-box-shadow);border-top-left-radius:15px;border-top-right-radius:15px;padding:3px}#hideUIMenu svg{height:100%;width:100%;vertical-align:top;transition:all .3s}#hideUIMenu.ui-menu-hidden svg{transform:scaleY(-1);transition:all .3s}\n"] }]
|
|
2497
|
+
}], null, null); })();
|
|
1329
2498
|
|
|
2499
|
+
const _c0$2 = ["qrcodeCanvas"];
|
|
1330
2500
|
class ShareLinkDialogComponent {
|
|
1331
2501
|
constructor(dialogRef) {
|
|
1332
2502
|
this.dialogRef = dialogRef;
|
|
@@ -1383,15 +2553,98 @@ class ShareLinkDialogComponent {
|
|
|
1383
2553
|
QRCode.toCanvas(this.qrcodeCanvas.nativeElement, link);
|
|
1384
2554
|
}
|
|
1385
2555
|
}
|
|
1386
|
-
ShareLinkDialogComponent.ɵfac =
|
|
1387
|
-
ShareLinkDialogComponent.ɵcmp = i0.ɵɵ
|
|
1388
|
-
i0.ɵɵ
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
2556
|
+
ShareLinkDialogComponent.ɵfac = function ShareLinkDialogComponent_Factory(t) { return new (t || ShareLinkDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
|
|
2557
|
+
ShareLinkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareLinkDialogComponent, selectors: [["app-share-link-dialog"]], viewQuery: function ShareLinkDialogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2558
|
+
i0.ɵɵviewQuery(_c0$2, 5);
|
|
2559
|
+
} if (rf & 2) {
|
|
2560
|
+
let _t;
|
|
2561
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.qrcodeCanvas = _t.first);
|
|
2562
|
+
} }, decls: 49, vars: 5, consts: [[1, "dialog"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "dialog-content"], [1, "form-group", "mt-2"], ["for", "eventDataFile"], ["type", "text", "id", "eventDataFile", "placeholder", "assets/files/event_data/atlaseventdump2.json", 1, "form-control", 3, "value", "input"], [1, "form-group"], ["for", "eventDataType"], ["id", "eventDataType", 1, "form-control", 3, "input"], ["selected", "", "value", ""], ["value", "jivexml"], ["value", "json"], ["for", "configuration"], ["type", "text", "id", "configuration", "placeholder", "assets/files/config/phoenix-config.json", 1, "form-control", 3, "value", "input"], [3, "checked", "change"], [1, "share-box", "my-2"], [1, "share-box-copy", 3, "click"], [1, "qrcode", "d-flex", "justify-content-center"], ["qrcodeCanvas", ""], ["mat-dialog-actions", ""], ["mat-button", "", "cdkFocusInitial", "", 3, "click"]], template: function ShareLinkDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2563
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
|
|
2564
|
+
i0.ɵɵtext(2, "Create shareable link");
|
|
2565
|
+
i0.ɵɵelementEnd();
|
|
2566
|
+
i0.ɵɵelementStart(3, "div", 2)(4, "h5");
|
|
2567
|
+
i0.ɵɵtext(5, "URL options");
|
|
2568
|
+
i0.ɵɵelementEnd();
|
|
2569
|
+
i0.ɵɵelementStart(6, "div", 3)(7, "label", 4);
|
|
2570
|
+
i0.ɵɵtext(8, "Event data file (URL or path)");
|
|
2571
|
+
i0.ɵɵelementEnd();
|
|
2572
|
+
i0.ɵɵelementStart(9, "input", 5);
|
|
2573
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_9_listener($event) { return ctx.setOptionValue("file", $event.target.value); });
|
|
2574
|
+
i0.ɵɵelementEnd()();
|
|
2575
|
+
i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
|
|
2576
|
+
i0.ɵɵtext(12, "Event data type");
|
|
2577
|
+
i0.ɵɵelementEnd();
|
|
2578
|
+
i0.ɵɵelementStart(13, "select", 8);
|
|
2579
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_select_input_13_listener($event) { return ctx.setOptionValue("type", $event.target.value); });
|
|
2580
|
+
i0.ɵɵelementStart(14, "option", 9);
|
|
2581
|
+
i0.ɵɵtext(15, "Select");
|
|
2582
|
+
i0.ɵɵelementEnd();
|
|
2583
|
+
i0.ɵɵelementStart(16, "option", 10);
|
|
2584
|
+
i0.ɵɵtext(17, "JiveXML");
|
|
2585
|
+
i0.ɵɵelementEnd();
|
|
2586
|
+
i0.ɵɵelementStart(18, "option", 11);
|
|
2587
|
+
i0.ɵɵtext(19, "JSON");
|
|
2588
|
+
i0.ɵɵelementEnd()()();
|
|
2589
|
+
i0.ɵɵelementStart(20, "div", 6)(21, "label", 12);
|
|
2590
|
+
i0.ɵɵtext(22, "Configuration (URL or path)");
|
|
2591
|
+
i0.ɵɵelementEnd();
|
|
2592
|
+
i0.ɵɵelementStart(23, "input", 13);
|
|
2593
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_23_listener($event) { return ctx.setOptionValue("config", $event.target.value); });
|
|
2594
|
+
i0.ɵɵelementEnd()();
|
|
2595
|
+
i0.ɵɵelementStart(24, "div", 6)(25, "mat-checkbox", 14);
|
|
2596
|
+
i0.ɵɵlistener("change", function ShareLinkDialogComponent_Template_mat_checkbox_change_25_listener($event) { return ctx.setOptionValue("hideWidgets", $event.checked); });
|
|
2597
|
+
i0.ɵɵtext(26, " Hide all widgets ");
|
|
2598
|
+
i0.ɵɵelementEnd()();
|
|
2599
|
+
i0.ɵɵelementStart(27, "h5");
|
|
2600
|
+
i0.ɵɵtext(28, "Share");
|
|
2601
|
+
i0.ɵɵelementEnd();
|
|
2602
|
+
i0.ɵɵelementStart(29, "div", 15)(30, "span");
|
|
2603
|
+
i0.ɵɵtext(31);
|
|
2604
|
+
i0.ɵɵelementEnd();
|
|
2605
|
+
i0.ɵɵelementStart(32, "button", 16);
|
|
2606
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_32_listener($event) { return ctx.copyText(ctx.shareLink.value, $event.target); });
|
|
2607
|
+
i0.ɵɵtext(33, " COPY ");
|
|
2608
|
+
i0.ɵɵelementEnd()();
|
|
2609
|
+
i0.ɵɵelementStart(34, "h5");
|
|
2610
|
+
i0.ɵɵtext(35, "Embed");
|
|
2611
|
+
i0.ɵɵelementEnd();
|
|
2612
|
+
i0.ɵɵelementStart(36, "div", 15)(37, "span");
|
|
2613
|
+
i0.ɵɵtext(38);
|
|
2614
|
+
i0.ɵɵelementEnd();
|
|
2615
|
+
i0.ɵɵelementStart(39, "button", 16);
|
|
2616
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_39_listener($event) { return ctx.copyText(ctx.embedLink, $event.target); });
|
|
2617
|
+
i0.ɵɵtext(40, " COPY ");
|
|
2618
|
+
i0.ɵɵelementEnd()();
|
|
2619
|
+
i0.ɵɵelementStart(41, "h5");
|
|
2620
|
+
i0.ɵɵtext(42, "QR Code");
|
|
2621
|
+
i0.ɵɵelementEnd();
|
|
2622
|
+
i0.ɵɵelementStart(43, "div", 17);
|
|
2623
|
+
i0.ɵɵelement(44, "canvas", null, 18);
|
|
2624
|
+
i0.ɵɵelementEnd()();
|
|
2625
|
+
i0.ɵɵelementStart(46, "div", 19)(47, "button", 20);
|
|
2626
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_47_listener() { return ctx.onClose(); });
|
|
2627
|
+
i0.ɵɵtext(48, "Close");
|
|
2628
|
+
i0.ɵɵelementEnd()()();
|
|
2629
|
+
} if (rf & 2) {
|
|
2630
|
+
i0.ɵɵadvance(9);
|
|
2631
|
+
i0.ɵɵproperty("value", ctx.urlOptions.file);
|
|
2632
|
+
i0.ɵɵadvance(14);
|
|
2633
|
+
i0.ɵɵproperty("value", ctx.urlOptions.config);
|
|
2634
|
+
i0.ɵɵadvance(2);
|
|
2635
|
+
i0.ɵɵproperty("checked", ctx.urlOptions.hideWidgets);
|
|
2636
|
+
i0.ɵɵadvance(6);
|
|
2637
|
+
i0.ɵɵtextInterpolate(ctx.shareLink.value);
|
|
2638
|
+
i0.ɵɵadvance(7);
|
|
2639
|
+
i0.ɵɵtextInterpolate(ctx.embedLink);
|
|
2640
|
+
} }, dependencies: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton, i4.MatCheckbox], styles: [".share-box[_ngcontent-%COMP%]{width:30rem;max-width:100%;position:relative;background:var(--phoenix-background-color-tertiary);border:1px solid var(--phoenix-border);border-radius:.5rem;padding:1.25rem;word-wrap:break-word}.share-box[_ngcontent-%COMP%] .share-box-copy[_ngcontent-%COMP%]{position:absolute;top:-1px;right:-1px;background:transparent;color:inherit;cursor:pointer;padding:.25rem .5rem;font-size:.75rem;border:1px solid var(--phoenix-border);border-radius:.5rem}.share-box[_ngcontent-%COMP%] .share-box-copy[_ngcontent-%COMP%]:hover{background:var(--phoenix-border)}"] });
|
|
2641
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkDialogComponent, [{
|
|
2642
|
+
type: Component,
|
|
2643
|
+
args: [{ selector: 'app-share-link-dialog', template: "<div class=\"dialog\">\n <h1 mat-dialog-title>Create shareable link</h1>\n <div mat-dialog-content class=\"dialog-content\">\n <h5>URL options</h5>\n <div class=\"form-group mt-2\">\n <label for=\"eventDataFile\">Event data file (URL or path)</label>\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"eventDataFile\"\n placeholder=\"assets/files/event_data/atlaseventdump2.json\"\n [value]=\"urlOptions.file\"\n (input)=\"setOptionValue('file', $event.target.value)\"\n />\n </div>\n <div class=\"form-group\">\n <label for=\"eventDataType\">Event data type</label>\n <select\n class=\"form-control\"\n id=\"eventDataType\"\n (input)=\"setOptionValue('type', $event.target.value)\"\n >\n <option selected value=\"\">Select</option>\n <option value=\"jivexml\">JiveXML</option>\n <option value=\"json\">JSON</option>\n </select>\n </div>\n <div class=\"form-group\">\n <label for=\"configuration\">Configuration (URL or path)</label>\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"configuration\"\n placeholder=\"assets/files/config/phoenix-config.json\"\n [value]=\"urlOptions.config\"\n (input)=\"setOptionValue('config', $event.target.value)\"\n />\n </div>\n <div class=\"form-group\">\n <mat-checkbox\n [checked]=\"urlOptions.hideWidgets\"\n (change)=\"setOptionValue('hideWidgets', $event.checked)\"\n >\n Hide all widgets\n </mat-checkbox>\n </div>\n\n <h5>Share</h5>\n <div class=\"share-box my-2\">\n <span>{{ shareLink.value }}</span>\n <button\n class=\"share-box-copy\"\n (click)=\"copyText(shareLink.value, $event.target)\"\n >\n COPY\n </button>\n </div>\n <h5>Embed</h5>\n <div class=\"share-box my-2\">\n <span>{{ embedLink }}</span>\n <button\n class=\"share-box-copy\"\n (click)=\"copyText(embedLink, $event.target)\"\n >\n COPY\n </button>\n </div>\n <h5>QR Code</h5>\n <div class=\"qrcode d-flex justify-content-center\">\n <canvas #qrcodeCanvas></canvas>\n </div>\n </div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"onClose()\" cdkFocusInitial>Close</button>\n </div>\n</div>\n", styles: [".share-box{width:30rem;max-width:100%;position:relative;background:var(--phoenix-background-color-tertiary);border:1px solid var(--phoenix-border);border-radius:.5rem;padding:1.25rem;word-wrap:break-word}.share-box .share-box-copy{position:absolute;top:-1px;right:-1px;background:transparent;color:inherit;cursor:pointer;padding:.25rem .5rem;font-size:.75rem;border:1px solid var(--phoenix-border);border-radius:.5rem}.share-box .share-box-copy:hover{background:var(--phoenix-border)}\n"] }]
|
|
2644
|
+
}], function () { return [{ type: i1$2.MatDialogRef }]; }, { qrcodeCanvas: [{
|
|
2645
|
+
type: ViewChild,
|
|
2646
|
+
args: ['qrcodeCanvas']
|
|
2647
|
+
}] }); })();
|
|
1395
2648
|
|
|
1396
2649
|
class ShareLinkComponent {
|
|
1397
2650
|
constructor(dialog) {
|
|
@@ -1401,30 +2654,87 @@ class ShareLinkComponent {
|
|
|
1401
2654
|
this.dialog.open(ShareLinkDialogComponent);
|
|
1402
2655
|
}
|
|
1403
2656
|
}
|
|
1404
|
-
ShareLinkComponent.ɵfac =
|
|
1405
|
-
ShareLinkComponent.ɵcmp = i0.ɵɵ
|
|
1406
|
-
i0.ɵɵ
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
2657
|
+
ShareLinkComponent.ɵfac = function ShareLinkComponent_Factory(t) { return new (t || ShareLinkComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
2658
|
+
ShareLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareLinkComponent, selectors: [["app-share-link"]], decls: 1, vars: 1, consts: [["tooltip", "Create shareable link", "icon", "share", 3, "active", "click"]], template: function ShareLinkComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2659
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2660
|
+
i0.ɵɵlistener("click", function ShareLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openShareLinkDialog(); });
|
|
2661
|
+
i0.ɵɵelementEnd();
|
|
2662
|
+
} if (rf & 2) {
|
|
2663
|
+
i0.ɵɵproperty("active", false);
|
|
2664
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2665
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkComponent, [{
|
|
2666
|
+
type: Component,
|
|
2667
|
+
args: [{ selector: 'app-share-link', template: "<app-menu-toggle\n tooltip=\"Create shareable link\"\n icon=\"share\"\n [active]=\"false\"\n (click)=\"openShareLinkDialog()\"\n>\n</app-menu-toggle>\n" }]
|
|
2668
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, null); })();
|
|
1410
2669
|
|
|
2670
|
+
const _c0$1 = ["*"];
|
|
1411
2671
|
class UiMenuComponent {
|
|
1412
2672
|
constructor() {
|
|
1413
2673
|
this.eventDataImportOptions = Object.values(EventDataFormat);
|
|
1414
2674
|
this.animationPresets = defaultAnimationPresets;
|
|
1415
2675
|
}
|
|
1416
2676
|
}
|
|
1417
|
-
UiMenuComponent.ɵfac =
|
|
1418
|
-
UiMenuComponent.ɵcmp = i0.ɵɵ
|
|
1419
|
-
i0.ɵɵ
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
2677
|
+
UiMenuComponent.ɵfac = function UiMenuComponent_Factory(t) { return new (t || UiMenuComponent)(); };
|
|
2678
|
+
UiMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UiMenuComponent, selectors: [["app-ui-menu"]], inputs: { eventDataImportOptions: "eventDataImportOptions", animationPresets: "animationPresets" }, ngContentSelectors: _c0$1, decls: 21, vars: 2, consts: [[3, "animationPresets"], [3, "eventDataImportOptions"]], template: function UiMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2679
|
+
i0.ɵɵprojectionDef();
|
|
2680
|
+
i0.ɵɵelementStart(0, "app-ui-menu-wrapper");
|
|
2681
|
+
i0.ɵɵelement(1, "app-event-selector")(2, "app-zoom-controls")(3, "app-view-options")(4, "app-auto-rotate")(5, "app-dark-theme")(6, "app-object-clipping")(7, "app-main-view-toggle")(8, "app-overlay-view")(9, "app-object-selection")(10, "app-info-panel")(11, "app-animate-event")(12, "app-animate-camera", 0)(13, "app-collections-info")(14, "app-performance-toggle")(15, "app-vr-toggle")(16, "app-ar-toggle")(17, "app-ss-mode")(18, "app-io-options", 1)(19, "app-share-link");
|
|
2682
|
+
i0.ɵɵprojection(20);
|
|
2683
|
+
i0.ɵɵelementEnd();
|
|
2684
|
+
} if (rf & 2) {
|
|
2685
|
+
i0.ɵɵadvance(12);
|
|
2686
|
+
i0.ɵɵproperty("animationPresets", ctx.animationPresets);
|
|
2687
|
+
i0.ɵɵadvance(6);
|
|
2688
|
+
i0.ɵɵproperty("eventDataImportOptions", ctx.eventDataImportOptions);
|
|
2689
|
+
} }, dependencies: [UiMenuWrapperComponent, CollectionsInfoComponent, IoOptionsComponent, OverlayViewComponent, ObjectSelectionComponent, EventSelectorComponent, ObjectClippingComponent, DarkThemeComponent, AutoRotateComponent, ViewOptionsComponent, InfoPanelComponent, MainViewToggleComponent, ZoomControlsComponent, AnimateCameraComponent, AnimateEventComponent, VrToggleComponent, ArToggleComponent, SSModeComponent, PerformanceToggleComponent, ShareLinkComponent] });
|
|
2690
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuComponent, [{
|
|
2691
|
+
type: Component,
|
|
2692
|
+
args: [{ selector: 'app-ui-menu', template: "<app-ui-menu-wrapper>\n <!-- Event selector -->\n <app-event-selector></app-event-selector>\n\n <!-- Zoom in and zoom out controls -->\n <app-zoom-controls></app-zoom-controls>\n\n <app-view-options></app-view-options>\n\n <app-auto-rotate></app-auto-rotate>\n\n <!-- Dark theme toggle -->\n <app-dark-theme></app-dark-theme>\n\n <!-- Toggle for clipping geometries -->\n <app-object-clipping></app-object-clipping>\n\n <!-- Main view toggle -->\n <app-main-view-toggle></app-main-view-toggle>\n\n <!-- Toggle for overlay panel -->\n <app-overlay-view></app-overlay-view>\n\n <!-- Toggle for selected object panel -->\n <app-object-selection></app-object-selection>\n\n <!-- Info panel -->\n <app-info-panel></app-info-panel>\n\n <!-- Toggle for animating the event data -->\n <app-animate-event></app-animate-event>\n\n <!-- Toggle for animating camera through event -->\n <app-animate-camera\n [animationPresets]=\"animationPresets\"\n ></app-animate-camera>\n\n <!-- Toggle for collections info -->\n <app-collections-info></app-collections-info>\n\n <!-- Toggle for performance -->\n <app-performance-toggle></app-performance-toggle>\n\n <!-- Toggle for VR -->\n <app-vr-toggle></app-vr-toggle>\n\n <!-- Toggle for AR -->\n <app-ar-toggle></app-ar-toggle>\n\n <!-- Toggle for screenshot mode -->\n <app-ss-mode></app-ss-mode>\n\n <!-- Toggle for loading geometries modal-->\n <app-io-options\n [eventDataImportOptions]=\"eventDataImportOptions\"\n ></app-io-options>\n\n <!-- Toggle for shareable link constructor modal-->\n <app-share-link></app-share-link>\n\n <!-- Extra options -->\n <ng-content></ng-content>\n</app-ui-menu-wrapper>\n" }]
|
|
2693
|
+
}], null, { eventDataImportOptions: [{
|
|
2694
|
+
type: Input
|
|
2695
|
+
}], animationPresets: [{
|
|
2696
|
+
type: Input
|
|
2697
|
+
}] }); })();
|
|
1427
2698
|
|
|
2699
|
+
function FileExplorerComponent_cdk_tree_node_1_Template(rf, ctx) { if (rf & 1) {
|
|
2700
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2701
|
+
i0.ɵɵelementStart(0, "cdk-tree-node", 3)(1, "button", 4);
|
|
2702
|
+
i0.ɵɵlistener("click", function FileExplorerComponent_cdk_tree_node_1_Template_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const node_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onSelect(node_r2.url)); });
|
|
2703
|
+
i0.ɵɵnamespaceSVG();
|
|
2704
|
+
i0.ɵɵelementStart(2, "svg", 5);
|
|
2705
|
+
i0.ɵɵelement(3, "use", 6);
|
|
2706
|
+
i0.ɵɵelementEnd();
|
|
2707
|
+
i0.ɵɵtext(4);
|
|
2708
|
+
i0.ɵɵelementEnd()();
|
|
2709
|
+
} if (rf & 2) {
|
|
2710
|
+
const node_r2 = ctx.$implicit;
|
|
2711
|
+
i0.ɵɵadvance(4);
|
|
2712
|
+
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
2713
|
+
} }
|
|
2714
|
+
function FileExplorerComponent_cdk_nested_tree_node_2_Template(rf, ctx) { if (rf & 1) {
|
|
2715
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 3)(1, "button", 7);
|
|
2716
|
+
i0.ɵɵnamespaceSVG();
|
|
2717
|
+
i0.ɵɵelementStart(2, "svg", 5);
|
|
2718
|
+
i0.ɵɵelement(3, "use", 8);
|
|
2719
|
+
i0.ɵɵelementEnd();
|
|
2720
|
+
i0.ɵɵtext(4);
|
|
2721
|
+
i0.ɵɵelementEnd();
|
|
2722
|
+
i0.ɵɵnamespaceHTML();
|
|
2723
|
+
i0.ɵɵelementStart(5, "div");
|
|
2724
|
+
i0.ɵɵelementContainer(6, 9);
|
|
2725
|
+
i0.ɵɵelementEnd()();
|
|
2726
|
+
} if (rf & 2) {
|
|
2727
|
+
const node_r5 = ctx.$implicit;
|
|
2728
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
2729
|
+
i0.ɵɵadvance(1);
|
|
2730
|
+
i0.ɵɵattribute("aria-label", "Toggle " + node_r5.name);
|
|
2731
|
+
i0.ɵɵadvance(1);
|
|
2732
|
+
i0.ɵɵclassProp("node-icon-filled", !ctx_r1.treeControl.isExpanded(node_r5));
|
|
2733
|
+
i0.ɵɵadvance(2);
|
|
2734
|
+
i0.ɵɵtextInterpolate1(" ", node_r5.name, " ");
|
|
2735
|
+
i0.ɵɵadvance(1);
|
|
2736
|
+
i0.ɵɵclassProp("file-tree-invisible", !ctx_r1.treeControl.isExpanded(node_r5));
|
|
2737
|
+
} }
|
|
1428
2738
|
class FileNode {
|
|
1429
2739
|
constructor(name) {
|
|
1430
2740
|
this.name = name;
|
|
@@ -1457,26 +2767,62 @@ class FileExplorerComponent {
|
|
|
1457
2767
|
return Object.values(node.children).sort((a, b) => !a.url && b.url ? -1 : 1);
|
|
1458
2768
|
}
|
|
1459
2769
|
}
|
|
1460
|
-
FileExplorerComponent.ɵfac =
|
|
1461
|
-
FileExplorerComponent.ɵcmp = i0.ɵɵ
|
|
1462
|
-
i0.ɵɵ
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
2770
|
+
FileExplorerComponent.ɵfac = function FileExplorerComponent_Factory(t) { return new (t || FileExplorerComponent)(); };
|
|
2771
|
+
FileExplorerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileExplorerComponent, selectors: [["app-file-explorer"]], inputs: { rootFileNode: "rootFileNode" }, outputs: { onFileSelect: "onFileSelect" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[3, "dataSource", "treeControl"], ["class", "tree-node", 4, "cdkTreeNodeDef"], ["class", "tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "tree-node"], ["mat-button", "", "mat-stroked-button", "", 1, "tree-node-button", 3, "click"], [1, "node-icon"], ["href", "assets/icons/file.svg#file"], ["mat-button", "", "cdkTreeNodeToggle", "", 1, "tree-node-button"], ["href", "assets/icons/folder.svg#folder"], ["cdkTreeNodeOutlet", ""]], template: function FileExplorerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2772
|
+
i0.ɵɵelementStart(0, "cdk-tree", 0);
|
|
2773
|
+
i0.ɵɵtemplate(1, FileExplorerComponent_cdk_tree_node_1_Template, 5, 1, "cdk-tree-node", 1);
|
|
2774
|
+
i0.ɵɵtemplate(2, FileExplorerComponent_cdk_nested_tree_node_2_Template, 7, 6, "cdk-nested-tree-node", 2);
|
|
2775
|
+
i0.ɵɵelementEnd();
|
|
2776
|
+
} if (rf & 2) {
|
|
2777
|
+
i0.ɵɵproperty("dataSource", ctx.dataSource)("treeControl", ctx.treeControl);
|
|
2778
|
+
i0.ɵɵadvance(2);
|
|
2779
|
+
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.hasChildren);
|
|
2780
|
+
} }, dependencies: [i2$2.MatButton, i2$5.CdkNestedTreeNode, i2$5.CdkTreeNodeDef, i2$5.CdkTreeNodeToggle, i2$5.CdkTree, i2$5.CdkTreeNode, i2$5.CdkTreeNodeOutlet], styles: [".file-tree-invisible[_ngcontent-%COMP%]{display:none}.tree-node[_ngcontent-%COMP%]{display:block;margin:.25rem 0}.tree-node[_ngcontent-%COMP%] .tree-node[_ngcontent-%COMP%]{padding-left:1rem}.tree-node-button[_ngcontent-%COMP%]{outline:none;padding:0 .75rem}.node-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;margin-right:.25rem;margin-top:-2px}.node-icon.node-icon-filled[_ngcontent-%COMP%]{--icon-fill: var(--phoenix-options-icon-path, #fff)}"] });
|
|
2781
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileExplorerComponent, [{
|
|
2782
|
+
type: Component,
|
|
2783
|
+
args: [{ selector: 'app-file-explorer', template: "<cdk-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n <!-- This is the tree node template for leaf nodes -->\n <cdk-tree-node *cdkTreeNodeDef=\"let node\" class=\"tree-node\">\n <button\n mat-button\n mat-stroked-button\n class=\"tree-node-button\"\n (click)=\"onSelect(node.url)\"\n >\n <svg class=\"node-icon\">\n <use href=\"assets/icons/file.svg#file\"></use>\n </svg>\n {{ node.name }}\n </button>\n </cdk-tree-node>\n <!-- This is the tree node template for expandable nodes -->\n <cdk-nested-tree-node\n *cdkTreeNodeDef=\"let node; when: hasChildren\"\n class=\"tree-node\"\n >\n <button\n mat-button\n cdkTreeNodeToggle\n class=\"tree-node-button\"\n [attr.aria-label]=\"'Toggle ' + node.name\"\n >\n <svg\n class=\"node-icon\"\n [class.node-icon-filled]=\"!treeControl.isExpanded(node)\"\n >\n <use href=\"assets/icons/folder.svg#folder\"></use>\n </svg>\n {{ node.name }}\n </button>\n <div [class.file-tree-invisible]=\"!treeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n</cdk-tree>\n", styles: [".file-tree-invisible{display:none}.tree-node{display:block;margin:.25rem 0}.tree-node .tree-node{padding-left:1rem}.tree-node-button{outline:none;padding:0 .75rem}.node-icon{width:1rem;height:1rem;margin-right:.25rem;margin-top:-2px}.node-icon.node-icon-filled{--icon-fill: var(--phoenix-options-icon-path, #fff)}\n"] }]
|
|
2784
|
+
}], null, { rootFileNode: [{
|
|
2785
|
+
type: Input
|
|
2786
|
+
}], onFileSelect: [{
|
|
2787
|
+
type: Output
|
|
2788
|
+
}] }); })();
|
|
1470
2789
|
|
|
1471
2790
|
class RingLoaderComponent {
|
|
1472
2791
|
}
|
|
1473
|
-
RingLoaderComponent.ɵfac =
|
|
1474
|
-
RingLoaderComponent.ɵcmp = i0.ɵɵ
|
|
1475
|
-
i0.ɵɵ
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
2792
|
+
RingLoaderComponent.ɵfac = function RingLoaderComponent_Factory(t) { return new (t || RingLoaderComponent)(); };
|
|
2793
|
+
RingLoaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RingLoaderComponent, selectors: [["app-ring-loader"]], decls: 5, vars: 0, consts: [[1, "ring"]], template: function RingLoaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2794
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
2795
|
+
i0.ɵɵelement(1, "div")(2, "div")(3, "div")(4, "div");
|
|
2796
|
+
i0.ɵɵelementEnd();
|
|
2797
|
+
} }, styles: [".ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:1.5rem;height:1.5rem}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:1.5rem;height:1.5rem;margin:.25rem .5rem;border:.25rem solid var(--phoenix-text-color);border-radius:50%;animation:animate-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--phoenix-text-color) transparent transparent transparent}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_app-ring-loader_animate-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
|
|
2798
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RingLoaderComponent, [{
|
|
2799
|
+
type: Component,
|
|
2800
|
+
args: [{ selector: 'app-ring-loader', template: "<div class=\"ring\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n</div>\n", styles: [".ring{display:inline-block;position:relative;width:1.5rem;height:1.5rem}.ring div{box-sizing:border-box;display:block;position:absolute;width:1.5rem;height:1.5rem;margin:.25rem .5rem;border:.25rem solid var(--phoenix-text-color);border-radius:50%;animation:animate-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--phoenix-text-color) transparent transparent transparent}.ring div:nth-child(1){animation-delay:-.45s}.ring div:nth-child(2){animation-delay:-.3s}.ring div:nth-child(3){animation-delay:-.15s}@keyframes app-ring-loader_animate-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
2801
|
+
}], null, null); })();
|
|
1479
2802
|
|
|
2803
|
+
function EventDataExplorerDialogComponent_app_ring_loader_4_Template(rf, ctx) { if (rf & 1) {
|
|
2804
|
+
i0.ɵɵelement(0, "app-ring-loader");
|
|
2805
|
+
} }
|
|
2806
|
+
function EventDataExplorerDialogComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
2807
|
+
i0.ɵɵelementStart(0, "div");
|
|
2808
|
+
i0.ɵɵtext(1, "Error processing request.");
|
|
2809
|
+
i0.ɵɵelementEnd();
|
|
2810
|
+
} }
|
|
2811
|
+
function EventDataExplorerDialogComponent_mat_tab_group_7_Template(rf, ctx) { if (rf & 1) {
|
|
2812
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2813
|
+
i0.ɵɵelementStart(0, "mat-tab-group", 8)(1, "mat-tab", 9)(2, "div", 10)(3, "app-file-explorer", 11);
|
|
2814
|
+
i0.ɵɵlistener("onFileSelect", function EventDataExplorerDialogComponent_mat_tab_group_7_Template_app_file_explorer_onFileSelect_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.loadEvent($event)); });
|
|
2815
|
+
i0.ɵɵelementEnd()()();
|
|
2816
|
+
i0.ɵɵelementStart(4, "mat-tab", 12)(5, "div", 10)(6, "app-file-explorer", 11);
|
|
2817
|
+
i0.ɵɵlistener("onFileSelect", function EventDataExplorerDialogComponent_mat_tab_group_7_Template_app_file_explorer_onFileSelect_6_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.loadConfig($event)); });
|
|
2818
|
+
i0.ɵɵelementEnd()()()();
|
|
2819
|
+
} if (rf & 2) {
|
|
2820
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
2821
|
+
i0.ɵɵadvance(3);
|
|
2822
|
+
i0.ɵɵproperty("rootFileNode", ctx_r2.eventDataFileNode);
|
|
2823
|
+
i0.ɵɵadvance(3);
|
|
2824
|
+
i0.ɵɵproperty("rootFileNode", ctx_r2.configFileNode);
|
|
2825
|
+
} }
|
|
1480
2826
|
const supportFileTypes = ['json', 'xml'];
|
|
1481
2827
|
class EventDataExplorerDialogComponent {
|
|
1482
2828
|
constructor(eventDisplay, dialogRef, dialogData) {
|
|
@@ -1497,8 +2843,10 @@ class EventDataExplorerDialogComponent {
|
|
|
1497
2843
|
});
|
|
1498
2844
|
}
|
|
1499
2845
|
loadEvent(file) {
|
|
1500
|
-
|
|
1501
|
-
|
|
2846
|
+
const isZip = file.split('.').pop() === 'zip';
|
|
2847
|
+
const rawfile = isZip ? file.substring(0, file.length - 4) : file;
|
|
2848
|
+
this.makeRequest(file, isZip ? 'blob' : 'text', (eventData) => {
|
|
2849
|
+
switch (rawfile.split('.').pop()) {
|
|
1502
2850
|
case 'xml':
|
|
1503
2851
|
this.loadJiveXMLEvent(eventData);
|
|
1504
2852
|
break;
|
|
@@ -1530,12 +2878,35 @@ class EventDataExplorerDialogComponent {
|
|
|
1530
2878
|
onClose() {
|
|
1531
2879
|
this.dialogRef.close();
|
|
1532
2880
|
}
|
|
2881
|
+
async unzip(data) {
|
|
2882
|
+
const archive = new JSZip();
|
|
2883
|
+
await archive.loadAsync(data);
|
|
2884
|
+
let fileData = '';
|
|
2885
|
+
let multiFile = false;
|
|
2886
|
+
for (const filePath in archive.files) {
|
|
2887
|
+
if (multiFile) {
|
|
2888
|
+
console.error('Zip archive contains more than one file. Ignoring all but first');
|
|
2889
|
+
break;
|
|
2890
|
+
}
|
|
2891
|
+
fileData = await archive.file(filePath).async('string');
|
|
2892
|
+
multiFile = true;
|
|
2893
|
+
}
|
|
2894
|
+
return fileData;
|
|
2895
|
+
}
|
|
1533
2896
|
makeRequest(urlPath, responseType, onData) {
|
|
1534
2897
|
this.loading = true;
|
|
1535
2898
|
fetch(urlPath)
|
|
1536
2899
|
.then((res) => res[responseType]())
|
|
1537
2900
|
.then((data) => {
|
|
1538
|
-
|
|
2901
|
+
if (responseType === 'blob') {
|
|
2902
|
+
data
|
|
2903
|
+
.arrayBuffer()
|
|
2904
|
+
.then((buf) => this.unzip(buf))
|
|
2905
|
+
.then((d) => onData(d));
|
|
2906
|
+
}
|
|
2907
|
+
else {
|
|
2908
|
+
onData(data);
|
|
2909
|
+
}
|
|
1539
2910
|
this.error = false;
|
|
1540
2911
|
})
|
|
1541
2912
|
.catch((error) => {
|
|
@@ -1561,15 +2932,36 @@ class EventDataExplorerDialogComponent {
|
|
|
1561
2932
|
return rootNode;
|
|
1562
2933
|
}
|
|
1563
2934
|
}
|
|
1564
|
-
EventDataExplorerDialogComponent.ɵfac =
|
|
1565
|
-
EventDataExplorerDialogComponent.ɵcmp = i0.ɵɵ
|
|
1566
|
-
i0.ɵɵ
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
2935
|
+
EventDataExplorerDialogComponent.ɵfac = function EventDataExplorerDialogComponent_Factory(t) { return new (t || EventDataExplorerDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
2936
|
+
EventDataExplorerDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventDataExplorerDialogComponent, selectors: [["app-event-data-explorer-dialog"]], decls: 11, vars: 3, consts: [[1, "dialog"], [1, "d-flex"], ["mat-dialog-title", ""], [4, "ngIf"], ["mat-dialog-content", "", 1, "dialog-content"], ["mat-align-tabs", "start", "animationDuration", "0ms", "disableRipple", "", "color", "transparent", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-button", "", "cdkFocusInitial", "", 3, "click"], ["mat-align-tabs", "start", "animationDuration", "0ms", "disableRipple", "", "color", "transparent"], ["label", "Event data"], [1, "py-3"], [3, "rootFileNode", "onFileSelect"], ["label", "Config"]], template: function EventDataExplorerDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2937
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
2938
|
+
i0.ɵɵtext(3, "Event data from directory");
|
|
2939
|
+
i0.ɵɵelementEnd();
|
|
2940
|
+
i0.ɵɵtemplate(4, EventDataExplorerDialogComponent_app_ring_loader_4_Template, 1, 0, "app-ring-loader", 3);
|
|
2941
|
+
i0.ɵɵelementEnd();
|
|
2942
|
+
i0.ɵɵelementStart(5, "div", 4);
|
|
2943
|
+
i0.ɵɵtemplate(6, EventDataExplorerDialogComponent_div_6_Template, 2, 0, "div", 3);
|
|
2944
|
+
i0.ɵɵtemplate(7, EventDataExplorerDialogComponent_mat_tab_group_7_Template, 7, 2, "mat-tab-group", 5);
|
|
2945
|
+
i0.ɵɵelementEnd();
|
|
2946
|
+
i0.ɵɵelementStart(8, "div", 6)(9, "button", 7);
|
|
2947
|
+
i0.ɵɵlistener("click", function EventDataExplorerDialogComponent_Template_button_click_9_listener() { return ctx.onClose(); });
|
|
2948
|
+
i0.ɵɵtext(10, "Close");
|
|
2949
|
+
i0.ɵɵelementEnd()()();
|
|
2950
|
+
} if (rf & 2) {
|
|
2951
|
+
i0.ɵɵadvance(4);
|
|
2952
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
2953
|
+
i0.ɵɵadvance(2);
|
|
2954
|
+
i0.ɵɵproperty("ngIf", ctx.error);
|
|
2955
|
+
i0.ɵɵadvance(1);
|
|
2956
|
+
i0.ɵɵproperty("ngIf", !ctx.error);
|
|
2957
|
+
} }, dependencies: [i2.NgIf, i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton, i5$1.MatTab, i5$1.MatTabGroup, FileExplorerComponent, RingLoaderComponent], styles: [".dialog[_ngcontent-%COMP%]{width:30rem;max-width:95%}.file-path-button[_ngcontent-%COMP%]{width:100%;color:var(--phoenix-text-color);background:var(--phoenix-background-color-tertiary);text-align:left;border-radius:1rem;margin-bottom:.5rem;padding:.5rem 1rem}.file-path-button[_ngcontent-%COMP%]:last-child{margin-bottom:0}.file-path-button[_ngcontent-%COMP%]:hover{background:var(--phoenix-background-color-secondary)}.file-path-button[_ngcontent-%COMP%]:focus{border:1px solid var(--phoenix-text-color-secondary);box-shadow:none}"] });
|
|
2958
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerDialogComponent, [{
|
|
2959
|
+
type: Component,
|
|
2960
|
+
args: [{ selector: 'app-event-data-explorer-dialog', template: "<div class=\"dialog\">\n <div class=\"d-flex\">\n <h1 mat-dialog-title>Event data from directory</h1>\n <app-ring-loader *ngIf=\"loading\"></app-ring-loader>\n </div>\n <div mat-dialog-content class=\"dialog-content\">\n <div *ngIf=\"error\">Error processing request.</div>\n <mat-tab-group\n *ngIf=\"!error\"\n mat-align-tabs=\"start\"\n animationDuration=\"0ms\"\n disableRipple\n color=\"transparent\"\n >\n <mat-tab label=\"Event data\">\n <div class=\"py-3\">\n <app-file-explorer\n [rootFileNode]=\"eventDataFileNode\"\n (onFileSelect)=\"loadEvent($event)\"\n ></app-file-explorer>\n </div>\n </mat-tab>\n <mat-tab label=\"Config\">\n <div class=\"py-3\">\n <app-file-explorer\n [rootFileNode]=\"configFileNode\"\n (onFileSelect)=\"loadConfig($event)\"\n ></app-file-explorer>\n </div>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"onClose()\" cdkFocusInitial>Close</button>\n </div>\n</div>\n", styles: [".dialog{width:30rem;max-width:95%}.file-path-button{width:100%;color:var(--phoenix-text-color);background:var(--phoenix-background-color-tertiary);text-align:left;border-radius:1rem;margin-bottom:.5rem;padding:.5rem 1rem}.file-path-button:last-child{margin-bottom:0}.file-path-button:hover{background:var(--phoenix-background-color-secondary)}.file-path-button:focus{border:1px solid var(--phoenix-text-color-secondary);box-shadow:none}\n"] }]
|
|
2961
|
+
}], function () { return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
2962
|
+
type: Inject,
|
|
2963
|
+
args: [MAT_DIALOG_DATA]
|
|
2964
|
+
}] }]; }, null); })();
|
|
1573
2965
|
|
|
1574
2966
|
class EventDataExplorerComponent {
|
|
1575
2967
|
constructor(dialog) {
|
|
@@ -1583,14 +2975,20 @@ class EventDataExplorerComponent {
|
|
|
1583
2975
|
});
|
|
1584
2976
|
}
|
|
1585
2977
|
}
|
|
1586
|
-
EventDataExplorerComponent.ɵfac =
|
|
1587
|
-
EventDataExplorerComponent.ɵcmp = i0.ɵɵ
|
|
1588
|
-
i0.ɵɵ
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
2978
|
+
EventDataExplorerComponent.ɵfac = function EventDataExplorerComponent_Factory(t) { return new (t || EventDataExplorerComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
2979
|
+
EventDataExplorerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventDataExplorerComponent, selectors: [["app-event-data-explorer"]], inputs: { apiURL: "apiURL" }, decls: 1, vars: 1, consts: [["tooltip", "Browse events in data directory", "icon", "server", 3, "active", "click"]], template: function EventDataExplorerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2980
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2981
|
+
i0.ɵɵlistener("click", function EventDataExplorerComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openEventDataExplorerDialog(); });
|
|
2982
|
+
i0.ɵɵelementEnd();
|
|
2983
|
+
} if (rf & 2) {
|
|
2984
|
+
i0.ɵɵproperty("active", false);
|
|
2985
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2986
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerComponent, [{
|
|
2987
|
+
type: Component,
|
|
2988
|
+
args: [{ selector: 'app-event-data-explorer', template: "<app-menu-toggle\n tooltip=\"Browse events in data directory\"\n icon=\"server\"\n [active]=\"false\"\n (click)=\"openEventDataExplorerDialog()\"\n>\n</app-menu-toggle>\n" }]
|
|
2989
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, { apiURL: [{
|
|
2990
|
+
type: Input
|
|
2991
|
+
}] }); })();
|
|
1594
2992
|
|
|
1595
2993
|
class CycleEventsComponent {
|
|
1596
2994
|
constructor(eventDisplay) {
|
|
@@ -1615,14 +3013,20 @@ class CycleEventsComponent {
|
|
|
1615
3013
|
}, this.interval);
|
|
1616
3014
|
}
|
|
1617
3015
|
}
|
|
1618
|
-
CycleEventsComponent.ɵfac =
|
|
1619
|
-
CycleEventsComponent.ɵcmp = i0.ɵɵ
|
|
1620
|
-
i0.ɵɵ
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
3016
|
+
CycleEventsComponent.ɵfac = function CycleEventsComponent_Factory(t) { return new (t || CycleEventsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
3017
|
+
CycleEventsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CycleEventsComponent, selectors: [["app-cycle-events"]], inputs: { interval: "interval" }, decls: 1, vars: 1, consts: [["tooltip", "Cycle through events", "icon", "cycle-events", 3, "active", "click"]], template: function CycleEventsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3018
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
3019
|
+
i0.ɵɵlistener("click", function CycleEventsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleCycle(); });
|
|
3020
|
+
i0.ɵɵelementEnd();
|
|
3021
|
+
} if (rf & 2) {
|
|
3022
|
+
i0.ɵɵproperty("active", ctx.active);
|
|
3023
|
+
} }, dependencies: [MenuToggleComponent], encapsulation: 2 });
|
|
3024
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CycleEventsComponent, [{
|
|
3025
|
+
type: Component,
|
|
3026
|
+
args: [{ selector: 'app-cycle-events', template: "<app-menu-toggle\n tooltip=\"Cycle through events\"\n [active]=\"active\"\n icon=\"cycle-events\"\n (click)=\"toggleCycle()\"\n>\n</app-menu-toggle>\n" }]
|
|
3027
|
+
}], function () { return [{ type: EventDisplayService }]; }, { interval: [{
|
|
3028
|
+
type: Input
|
|
3029
|
+
}] }); })();
|
|
1626
3030
|
|
|
1627
3031
|
class ErrorMessageService {
|
|
1628
3032
|
constructor() {
|
|
@@ -1644,15 +3048,47 @@ class ErrorMessageService {
|
|
|
1644
3048
|
this.error.update(error);
|
|
1645
3049
|
}
|
|
1646
3050
|
}
|
|
1647
|
-
ErrorMessageService.ɵfac =
|
|
1648
|
-
ErrorMessageService.ɵprov = i0.ɵɵ
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
3051
|
+
ErrorMessageService.ɵfac = function ErrorMessageService_Factory(t) { return new (t || ErrorMessageService)(); };
|
|
3052
|
+
ErrorMessageService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ErrorMessageService, factory: ErrorMessageService.ɵfac, providedIn: 'root' });
|
|
3053
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageService, [{
|
|
3054
|
+
type: Injectable,
|
|
3055
|
+
args: [{
|
|
3056
|
+
providedIn: 'root',
|
|
3057
|
+
}]
|
|
3058
|
+
}], null, null); })();
|
|
1655
3059
|
|
|
3060
|
+
const _c0 = function (a0) { return { width: a0 }; };
|
|
3061
|
+
function LoaderComponent_ng_container_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
3062
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
3063
|
+
i0.ɵɵelement(1, "span");
|
|
3064
|
+
i0.ɵɵelementEnd();
|
|
3065
|
+
} if (rf & 2) {
|
|
3066
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
3067
|
+
i0.ɵɵadvance(1);
|
|
3068
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(2, _c0, ctx_r3.progress + "%"));
|
|
3069
|
+
} }
|
|
3070
|
+
function LoaderComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3071
|
+
i0.ɵɵelementContainerStart(0);
|
|
3072
|
+
i0.ɵɵelement(1, "img", 3);
|
|
3073
|
+
i0.ɵɵelementStart(2, "p", 4);
|
|
3074
|
+
i0.ɵɵtext(3, " Loading...");
|
|
3075
|
+
i0.ɵɵelement(4, "br");
|
|
3076
|
+
i0.ɵɵelementStart(5, "small", 5);
|
|
3077
|
+
i0.ɵɵtext(6, "(This may take a while)");
|
|
3078
|
+
i0.ɵɵelementEnd()();
|
|
3079
|
+
i0.ɵɵtemplate(7, LoaderComponent_ng_container_1_div_7_Template, 2, 4, "div", 6);
|
|
3080
|
+
i0.ɵɵelementContainerEnd();
|
|
3081
|
+
} if (rf & 2) {
|
|
3082
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3083
|
+
i0.ɵɵadvance(7);
|
|
3084
|
+
i0.ɵɵproperty("ngIf", ctx_r0.progress !== undefined);
|
|
3085
|
+
} }
|
|
3086
|
+
function LoaderComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
3087
|
+
i0.ɵɵelementStart(0, "p");
|
|
3088
|
+
i0.ɵɵtext(1, " An error occurred while loading the application. Please try refreshing the page. ");
|
|
3089
|
+
i0.ɵɵelementEnd();
|
|
3090
|
+
} }
|
|
3091
|
+
const _c1 = function (a0) { return { "load-complete": a0 }; };
|
|
1656
3092
|
class LoaderComponent {
|
|
1657
3093
|
constructor(errorMessageService) {
|
|
1658
3094
|
this.errorMessageService = errorMessageService;
|
|
@@ -1664,16 +3100,26 @@ class LoaderComponent {
|
|
|
1664
3100
|
});
|
|
1665
3101
|
}
|
|
1666
3102
|
}
|
|
1667
|
-
LoaderComponent.ɵfac =
|
|
1668
|
-
LoaderComponent.ɵcmp = i0.ɵɵ
|
|
1669
|
-
i0.ɵɵ
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
3103
|
+
LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(i0.ɵɵdirectiveInject(ErrorMessageService)); };
|
|
3104
|
+
LoaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["app-loader"]], inputs: { loaded: "loaded", progress: "progress" }, decls: 4, vars: 5, consts: [[1, "loader-wrapper", "d-flex", "position-absolute", "flex-column", "justify-content-center", "align-items-center", "w-100", "h-100", "p-5", "text-center", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["errorContainer", ""], ["src", "assets/images/logo-small.svg", "alt", "Loader"], [1, "mt-5"], [1, "text-muted"], ["class", "loading-bar", 4, "ngIf"], [1, "loading-bar"]], template: function LoaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3105
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
3106
|
+
i0.ɵɵtemplate(1, LoaderComponent_ng_container_1_Template, 8, 1, "ng-container", 1);
|
|
3107
|
+
i0.ɵɵtemplate(2, LoaderComponent_ng_template_2_Template, 2, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
3108
|
+
i0.ɵɵelementEnd();
|
|
3109
|
+
} if (rf & 2) {
|
|
3110
|
+
const _r1 = i0.ɵɵreference(3);
|
|
3111
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, ctx.loaded));
|
|
3112
|
+
i0.ɵɵadvance(1);
|
|
3113
|
+
i0.ɵɵproperty("ngIf", ctx.error === undefined)("ngIfElse", _r1);
|
|
3114
|
+
} }, dependencies: [i2.NgClass, i2.NgIf], styles: [".loader-wrapper[_ngcontent-%COMP%]{background:var(--phoenix-background-color);z-index:9998}.loader-wrapper.load-complete[_ngcontent-%COMP%]{display:none!important}.loader-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:5rem;height:5rem;animation:loader 2s infinite}.loader-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--phoenix-text-color)}.loader-wrapper[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%]{width:15rem;max-width:90%;height:.5rem;background:var(--phoenix-background-color-tertiary);border-radius:2.5rem;overflow:hidden}.loader-wrapper[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;height:100%;border-radius:2.5rem;background:linear-gradient(to right,var(--phoenix-primary),var(--phoenix-secondary));transition:all .5s}@keyframes _ngcontent-%COMP%_app-loader_loader{0%,to{transform:scale(.1) rotate(0)}95%{transform:scale(1) rotate(15deg)}}"] });
|
|
3115
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoaderComponent, [{
|
|
3116
|
+
type: Component,
|
|
3117
|
+
args: [{ selector: 'app-loader', template: "<div\n class=\"loader-wrapper d-flex position-absolute flex-column justify-content-center align-items-center w-100 h-100 p-5 text-center\"\n [ngClass]=\"{ 'load-complete': loaded }\"\n>\n <ng-container *ngIf=\"error === undefined; else errorContainer\">\n <img src=\"assets/images/logo-small.svg\" alt=\"Loader\" />\n <p class=\"mt-5\">\n Loading...<br />\n <small class=\"text-muted\">(This may take a while)</small>\n </p>\n <div class=\"loading-bar\" *ngIf=\"progress !== undefined\">\n <span [style]=\"{ width: progress + '%' }\"></span>\n </div>\n </ng-container>\n <ng-template #errorContainer>\n <p>\n An error occurred while loading the application. Please try refreshing the\n page.\n </p>\n </ng-template>\n</div>\n", styles: [".loader-wrapper{background:var(--phoenix-background-color);z-index:9998}.loader-wrapper.load-complete{display:none!important}.loader-wrapper img{width:5rem;height:5rem;animation:loader 2s infinite}.loader-wrapper p{color:var(--phoenix-text-color)}.loader-wrapper .loading-bar{width:15rem;max-width:90%;height:.5rem;background:var(--phoenix-background-color-tertiary);border-radius:2.5rem;overflow:hidden}.loader-wrapper .loading-bar span{display:block;height:100%;border-radius:2.5rem;background:linear-gradient(to right,var(--phoenix-primary),var(--phoenix-secondary));transition:all .5s}@keyframes app-loader_loader{0%,to{transform:scale(.1) rotate(0)}95%{transform:scale(1) rotate(15deg)}}\n"] }]
|
|
3118
|
+
}], function () { return [{ type: ErrorMessageService }]; }, { loaded: [{
|
|
3119
|
+
type: Input
|
|
3120
|
+
}], progress: [{
|
|
3121
|
+
type: Input
|
|
3122
|
+
}] }); })();
|
|
1677
3123
|
|
|
1678
3124
|
/**
|
|
1679
3125
|
* Global handler for handling app/module wide errors.
|
|
@@ -1695,11 +3141,11 @@ class GlobalErrorHandler {
|
|
|
1695
3141
|
this.injector.get(ErrorMessageService).setError(error);
|
|
1696
3142
|
}
|
|
1697
3143
|
}
|
|
1698
|
-
GlobalErrorHandler.ɵfac =
|
|
1699
|
-
GlobalErrorHandler.ɵprov = i0.ɵɵ
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
3144
|
+
GlobalErrorHandler.ɵfac = function GlobalErrorHandler_Factory(t) { return new (t || GlobalErrorHandler)(i0.ɵɵinject(i0.Injector)); };
|
|
3145
|
+
GlobalErrorHandler.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: GlobalErrorHandler, factory: GlobalErrorHandler.ɵfac });
|
|
3146
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GlobalErrorHandler, [{
|
|
3147
|
+
type: Injectable
|
|
3148
|
+
}], function () { return [{ type: i0.Injector }]; }, null); })();
|
|
1703
3149
|
|
|
1704
3150
|
class ExperimentLinkComponent {
|
|
1705
3151
|
ngOnInit() {
|
|
@@ -1709,21 +3155,29 @@ class ExperimentLinkComponent {
|
|
|
1709
3155
|
window.open(this.experimentLink, '_blank');
|
|
1710
3156
|
}
|
|
1711
3157
|
}
|
|
1712
|
-
ExperimentLinkComponent.ɵfac =
|
|
1713
|
-
ExperimentLinkComponent.ɵcmp = i0.ɵɵ
|
|
1714
|
-
i0.ɵɵ
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
3158
|
+
ExperimentLinkComponent.ɵfac = function ExperimentLinkComponent_Factory(t) { return new (t || ExperimentLinkComponent)(); };
|
|
3159
|
+
ExperimentLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExperimentLinkComponent, selectors: [["app-experiment-link"]], decls: 1, vars: 0, consts: [["tooltip", "See full event display", "icon", "link", 3, "click"]], template: function ExperimentLinkComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3160
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
3161
|
+
i0.ɵɵlistener("click", function ExperimentLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.goToExperiment(); });
|
|
3162
|
+
i0.ɵɵelementEnd();
|
|
3163
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
3164
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentLinkComponent, [{
|
|
3165
|
+
type: Component,
|
|
3166
|
+
args: [{ selector: 'app-experiment-link', template: "<app-menu-toggle\n tooltip=\"See full event display\"\n icon=\"link\"\n (click)=\"goToExperiment()\"\n></app-menu-toggle>\n" }]
|
|
3167
|
+
}], null, null); })();
|
|
1718
3168
|
|
|
1719
3169
|
class EmbedMenuComponent {
|
|
1720
3170
|
}
|
|
1721
|
-
EmbedMenuComponent.ɵfac =
|
|
1722
|
-
EmbedMenuComponent.ɵcmp = i0.ɵɵ
|
|
1723
|
-
i0.ɵɵ
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
3171
|
+
EmbedMenuComponent.ɵfac = function EmbedMenuComponent_Factory(t) { return new (t || EmbedMenuComponent)(); };
|
|
3172
|
+
EmbedMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EmbedMenuComponent, selectors: [["app-embed-menu"]], decls: 8, vars: 0, consts: [["id", "embedMenu"], ["id", "embedMenuInner"]], template: function EmbedMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3173
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
3174
|
+
i0.ɵɵelement(2, "app-dark-theme")(3, "app-auto-rotate")(4, "app-main-view-toggle")(5, "app-animate-event")(6, "app-animate-camera")(7, "app-experiment-link");
|
|
3175
|
+
i0.ɵɵelementEnd()();
|
|
3176
|
+
} }, dependencies: [DarkThemeComponent, AutoRotateComponent, MainViewToggleComponent, AnimateCameraComponent, AnimateEventComponent, ExperimentLinkComponent], styles: ["#embedMenu[_ngcontent-%COMP%]{display:none}#embedMenu[_ngcontent-%COMP%] #embedMenuInner[_ngcontent-%COMP%]{display:flex;position:absolute;left:1rem;bottom:1rem;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;padding:.25rem 0}"] });
|
|
3177
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmbedMenuComponent, [{
|
|
3178
|
+
type: Component,
|
|
3179
|
+
args: [{ selector: 'app-embed-menu', template: "<div id=\"embedMenu\">\n <div id=\"embedMenuInner\">\n <app-dark-theme></app-dark-theme>\n <app-auto-rotate></app-auto-rotate>\n <app-main-view-toggle></app-main-view-toggle>\n <app-animate-event></app-animate-event>\n <app-animate-camera></app-animate-camera>\n <app-experiment-link></app-experiment-link>\n </div>\n</div>\n", styles: ["#embedMenu{display:none}#embedMenu #embedMenuInner{display:flex;position:absolute;left:1rem;bottom:1rem;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;padding:.25rem 0}\n"] }]
|
|
3180
|
+
}], null, null); })();
|
|
1727
3181
|
|
|
1728
3182
|
const PHOENIX_COMPONENTS = [
|
|
1729
3183
|
NavComponent,
|
|
@@ -1774,8 +3228,72 @@ const PHOENIX_COMPONENTS = [
|
|
|
1774
3228
|
];
|
|
1775
3229
|
class PhoenixUIModule {
|
|
1776
3230
|
}
|
|
1777
|
-
PhoenixUIModule.ɵfac =
|
|
1778
|
-
PhoenixUIModule.ɵmod = i0.ɵɵ
|
|
3231
|
+
PhoenixUIModule.ɵfac = function PhoenixUIModule_Factory(t) { return new (t || PhoenixUIModule)(); };
|
|
3232
|
+
PhoenixUIModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PhoenixUIModule });
|
|
3233
|
+
PhoenixUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
3234
|
+
EventDisplayService,
|
|
3235
|
+
ErrorMessageService,
|
|
3236
|
+
{
|
|
3237
|
+
provide: ErrorHandler,
|
|
3238
|
+
useClass: GlobalErrorHandler,
|
|
3239
|
+
},
|
|
3240
|
+
], imports: [CommonModule,
|
|
3241
|
+
RouterModule,
|
|
3242
|
+
DragDropModule,
|
|
3243
|
+
MatDialogModule,
|
|
3244
|
+
MatButtonModule,
|
|
3245
|
+
MatTooltipModule,
|
|
3246
|
+
OverlayModule,
|
|
3247
|
+
MatMenuModule,
|
|
3248
|
+
MatSliderModule,
|
|
3249
|
+
MatSlideToggleModule,
|
|
3250
|
+
MatCheckboxModule,
|
|
3251
|
+
MatIconModule,
|
|
3252
|
+
NgxSliderModule,
|
|
3253
|
+
CdkTreeModule,
|
|
3254
|
+
MatTabsModule] });
|
|
3255
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixUIModule, [{
|
|
3256
|
+
type: NgModule,
|
|
3257
|
+
args: [{
|
|
3258
|
+
declarations: PHOENIX_COMPONENTS,
|
|
3259
|
+
imports: [
|
|
3260
|
+
CommonModule,
|
|
3261
|
+
RouterModule,
|
|
3262
|
+
DragDropModule,
|
|
3263
|
+
MatDialogModule,
|
|
3264
|
+
MatButtonModule,
|
|
3265
|
+
MatTooltipModule,
|
|
3266
|
+
OverlayModule,
|
|
3267
|
+
MatMenuModule,
|
|
3268
|
+
MatSliderModule,
|
|
3269
|
+
MatSlideToggleModule,
|
|
3270
|
+
MatCheckboxModule,
|
|
3271
|
+
MatIconModule,
|
|
3272
|
+
NgxSliderModule,
|
|
3273
|
+
CdkTreeModule,
|
|
3274
|
+
MatTabsModule,
|
|
3275
|
+
],
|
|
3276
|
+
entryComponents: [
|
|
3277
|
+
OverlayComponent,
|
|
3278
|
+
OverlayViewWindowComponent,
|
|
3279
|
+
IOOptionsDialogComponent,
|
|
3280
|
+
CollectionsInfoOverlayComponent,
|
|
3281
|
+
ObjectSelectionOverlayComponent,
|
|
3282
|
+
InfoPanelOverlayComponent,
|
|
3283
|
+
EventDataExplorerDialogComponent,
|
|
3284
|
+
],
|
|
3285
|
+
exports: PHOENIX_COMPONENTS,
|
|
3286
|
+
providers: [
|
|
3287
|
+
EventDisplayService,
|
|
3288
|
+
ErrorMessageService,
|
|
3289
|
+
{
|
|
3290
|
+
provide: ErrorHandler,
|
|
3291
|
+
useClass: GlobalErrorHandler,
|
|
3292
|
+
},
|
|
3293
|
+
],
|
|
3294
|
+
}]
|
|
3295
|
+
}], null, null); })();
|
|
3296
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PhoenixUIModule, { declarations: [NavComponent,
|
|
1779
3297
|
UiMenuWrapperComponent,
|
|
1780
3298
|
UiMenuComponent,
|
|
1781
3299
|
CollectionsInfoComponent,
|
|
@@ -1877,70 +3395,7 @@ PhoenixUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1877
3395
|
EventDataExplorerDialogComponent,
|
|
1878
3396
|
FileExplorerComponent,
|
|
1879
3397
|
RingLoaderComponent,
|
|
1880
|
-
CycleEventsComponent] });
|
|
1881
|
-
PhoenixUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: PhoenixUIModule, providers: [
|
|
1882
|
-
EventDisplayService,
|
|
1883
|
-
ErrorMessageService,
|
|
1884
|
-
{
|
|
1885
|
-
provide: ErrorHandler,
|
|
1886
|
-
useClass: GlobalErrorHandler,
|
|
1887
|
-
},
|
|
1888
|
-
], imports: [CommonModule,
|
|
1889
|
-
RouterModule,
|
|
1890
|
-
DragDropModule,
|
|
1891
|
-
MatDialogModule,
|
|
1892
|
-
MatButtonModule,
|
|
1893
|
-
MatTooltipModule,
|
|
1894
|
-
OverlayModule,
|
|
1895
|
-
MatMenuModule,
|
|
1896
|
-
MatSliderModule,
|
|
1897
|
-
MatSlideToggleModule,
|
|
1898
|
-
MatCheckboxModule,
|
|
1899
|
-
MatIconModule,
|
|
1900
|
-
NgxSliderModule,
|
|
1901
|
-
CdkTreeModule,
|
|
1902
|
-
MatTabsModule] });
|
|
1903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: PhoenixUIModule, decorators: [{
|
|
1904
|
-
type: NgModule,
|
|
1905
|
-
args: [{
|
|
1906
|
-
declarations: PHOENIX_COMPONENTS,
|
|
1907
|
-
imports: [
|
|
1908
|
-
CommonModule,
|
|
1909
|
-
RouterModule,
|
|
1910
|
-
DragDropModule,
|
|
1911
|
-
MatDialogModule,
|
|
1912
|
-
MatButtonModule,
|
|
1913
|
-
MatTooltipModule,
|
|
1914
|
-
OverlayModule,
|
|
1915
|
-
MatMenuModule,
|
|
1916
|
-
MatSliderModule,
|
|
1917
|
-
MatSlideToggleModule,
|
|
1918
|
-
MatCheckboxModule,
|
|
1919
|
-
MatIconModule,
|
|
1920
|
-
NgxSliderModule,
|
|
1921
|
-
CdkTreeModule,
|
|
1922
|
-
MatTabsModule,
|
|
1923
|
-
],
|
|
1924
|
-
entryComponents: [
|
|
1925
|
-
OverlayComponent,
|
|
1926
|
-
OverlayViewWindowComponent,
|
|
1927
|
-
IOOptionsDialogComponent,
|
|
1928
|
-
CollectionsInfoOverlayComponent,
|
|
1929
|
-
ObjectSelectionOverlayComponent,
|
|
1930
|
-
InfoPanelOverlayComponent,
|
|
1931
|
-
EventDataExplorerDialogComponent,
|
|
1932
|
-
],
|
|
1933
|
-
exports: PHOENIX_COMPONENTS,
|
|
1934
|
-
providers: [
|
|
1935
|
-
EventDisplayService,
|
|
1936
|
-
ErrorMessageService,
|
|
1937
|
-
{
|
|
1938
|
-
provide: ErrorHandler,
|
|
1939
|
-
useClass: GlobalErrorHandler,
|
|
1940
|
-
},
|
|
1941
|
-
],
|
|
1942
|
-
}]
|
|
1943
|
-
}] });
|
|
3398
|
+
CycleEventsComponent] }); })();
|
|
1944
3399
|
|
|
1945
3400
|
/**
|
|
1946
3401
|
* Generated bundle index. Do not edit.
|