phoenix-ui-components 2.11.4 → 2.13.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/phoenix-ui.module.d.ts +30 -27
- 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 +4 -3
- package/dist/components/ui-menu/event-data-explorer/event-data-explorer.component.d.ts +2 -2
- 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/index.d.ts +1 -0
- 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/make-picture/make-picture.component.d.ts +17 -0
- 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 +2 -2
- 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 +286 -16
- package/dist/esm2020/components/phoenix-menu/phoenix-menu.component.mjs +16 -9
- package/dist/esm2020/components/phoenix-ui.module.mjs +80 -68
- 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 +191 -11
- 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 +33 -7
- package/dist/esm2020/components/ui-menu/experiment-info/experiment-info.component.mjs +81 -13
- package/dist/esm2020/components/ui-menu/index.mjs +2 -1
- 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/make-picture/make-picture.component.mjs +88 -0
- 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 +96 -11
- 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 +26 -13
- 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 +2325 -343
- package/dist/fesm2015/phoenix-ui-components.mjs.map +1 -1
- package/dist/fesm2020/phoenix-ui-components.mjs +2016 -468
- package/dist/fesm2020/phoenix-ui-components.mjs.map +1 -1
- package/dist/services/extras/event-data-import.d.ts +2 -1
- package/package.json +11 -7
|
@@ -8,13 +8,15 @@ import * as i2$1 from '@angular/material/slider';
|
|
|
8
8
|
import { MatSliderModule } from '@angular/material/slider';
|
|
9
9
|
import * as i2$2 from '@angular/material/button';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import * as i3 from '@angular/
|
|
11
|
+
import * as i3 from '@angular/forms';
|
|
12
|
+
import { FormsModule } from '@angular/forms';
|
|
13
|
+
import * as i4 from '@angular/material/slide-toggle';
|
|
12
14
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
13
|
-
import * as i4 from '@angular/material/checkbox';
|
|
15
|
+
import * as i4$1 from '@angular/material/checkbox';
|
|
14
16
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
15
|
-
import * as
|
|
17
|
+
import * as i6 from '@rp3e11/ngx-slider';
|
|
16
18
|
import { NgxSliderModule } from '@rp3e11/ngx-slider';
|
|
17
|
-
import { EventDisplay, SceneManager, PrettySymbols, JiveXMLLoader, CMSLoader, readZipFile, VRManager, XRSessionType, ARManager, phoenixURLOptions, ActiveVariable } from 'phoenix-event-display';
|
|
19
|
+
import { EventDisplay, SceneManager, PrettySymbols, Edm4hepJsonLoader, JiveXMLLoader, CMSLoader, readZipFile, VRManager, XRSessionType, ARManager, phoenixURLOptions, ActiveVariable } from 'phoenix-event-display';
|
|
18
20
|
import * as i3$1 from '@angular/material/menu';
|
|
19
21
|
import { MatMenuModule } from '@angular/material/menu';
|
|
20
22
|
import * as i2$3 from '@angular/material/tooltip';
|
|
@@ -28,12 +30,15 @@ import { OverlayModule } from '@angular/cdk/overlay';
|
|
|
28
30
|
import packageJson from 'phoenix-event-display/package.json';
|
|
29
31
|
import * as i1$2 from '@angular/material/dialog';
|
|
30
32
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
31
|
-
import * as i4$
|
|
33
|
+
import * as i4$2 from '@angular/material/icon';
|
|
32
34
|
import { MatIconModule } from '@angular/material/icon';
|
|
35
|
+
import * as i5 from '@angular/material/radio';
|
|
36
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
33
37
|
import QRCode from 'qrcode';
|
|
34
38
|
import * as i2$5 from '@angular/cdk/tree';
|
|
35
39
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
36
40
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
41
|
+
import JSZip from 'jszip';
|
|
37
42
|
import * as i5$1 from '@angular/material/tabs';
|
|
38
43
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
39
44
|
|
|
@@ -41,13 +46,26 @@ class NavComponent {
|
|
|
41
46
|
constructor() { }
|
|
42
47
|
ngOnInit() { }
|
|
43
48
|
}
|
|
44
|
-
NavComponent.ɵfac =
|
|
45
|
-
NavComponent.ɵcmp = i0.ɵɵ
|
|
46
|
-
i0.ɵɵ
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
NavComponent.ɵfac = function NavComponent_Factory(t) { return new (t || NavComponent)(); };
|
|
50
|
+
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) {
|
|
51
|
+
i0.ɵɵelementStart(0, "a", 0);
|
|
52
|
+
i0.ɵɵelement(1, "img", 1);
|
|
53
|
+
i0.ɵɵelementEnd();
|
|
54
|
+
} }, 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}"] });
|
|
55
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavComponent, [{
|
|
56
|
+
type: Component,
|
|
57
|
+
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"] }]
|
|
58
|
+
}], function () { return []; }, null); })();
|
|
50
59
|
|
|
60
|
+
function ConfigSliderComponent_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
62
|
+
i0.ɵɵelementStart(0, "input", 4);
|
|
63
|
+
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)); });
|
|
64
|
+
i0.ɵɵelementEnd();
|
|
65
|
+
} if (rf & 2) {
|
|
66
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
67
|
+
i0.ɵɵproperty("value", ctx_r0.value);
|
|
68
|
+
} }
|
|
51
69
|
class ConfigSliderComponent {
|
|
52
70
|
constructor() {
|
|
53
71
|
this.value = 0;
|
|
@@ -58,30 +76,285 @@ class ConfigSliderComponent {
|
|
|
58
76
|
this.onChange = new EventEmitter();
|
|
59
77
|
}
|
|
60
78
|
onValueChange(value) {
|
|
61
|
-
|
|
62
|
-
this.onChange.emit(value);
|
|
63
|
-
}
|
|
79
|
+
value && this.onChange.emit(value);
|
|
64
80
|
}
|
|
65
81
|
}
|
|
66
|
-
ConfigSliderComponent.ɵfac =
|
|
67
|
-
ConfigSliderComponent.ɵcmp = i0.ɵɵ
|
|
68
|
-
i0.ɵɵ
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
ConfigSliderComponent.ɵfac = function ConfigSliderComponent_Factory(t) { return new (t || ConfigSliderComponent)(); };
|
|
83
|
+
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) {
|
|
84
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mat-slider", 1)(2, "input", 2);
|
|
85
|
+
i0.ɵɵlistener("valueChange", function ConfigSliderComponent_Template_input_valueChange_2_listener($event) { return ctx.onValueChange($event); });
|
|
86
|
+
i0.ɵɵelementEnd()();
|
|
87
|
+
i0.ɵɵtemplate(3, ConfigSliderComponent_input_3_Template, 1, 1, "input", 3);
|
|
88
|
+
i0.ɵɵelementEnd();
|
|
89
|
+
} if (rf & 2) {
|
|
90
|
+
i0.ɵɵadvance(1);
|
|
91
|
+
i0.ɵɵproperty("min", ctx.min)("max", ctx.max)("step", ctx.step);
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵproperty("value", ctx.value);
|
|
94
|
+
i0.ɵɵadvance(1);
|
|
95
|
+
i0.ɵɵproperty("ngIf", ctx.allowCustomValue);
|
|
96
|
+
} }, 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}"] });
|
|
97
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigSliderComponent, [{
|
|
98
|
+
type: Component,
|
|
99
|
+
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"] }]
|
|
100
|
+
}], null, { value: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], min: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], max: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], step: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], allowCustomValue: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], onChange: [{
|
|
111
|
+
type: Output
|
|
112
|
+
}] }); })();
|
|
84
113
|
|
|
114
|
+
const _c0$9 = ["phoenixMenuItem"];
|
|
115
|
+
function PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵelementContainer(0);
|
|
117
|
+
} }
|
|
118
|
+
function PhoenixMenuItemComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
119
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
120
|
+
i0.ɵɵelementContainerStart(0);
|
|
121
|
+
i0.ɵɵelementStart(1, "mat-slide-toggle", 9);
|
|
122
|
+
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)); });
|
|
123
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 10);
|
|
124
|
+
i0.ɵɵelementEnd();
|
|
125
|
+
i0.ɵɵelementContainerEnd();
|
|
126
|
+
} if (rf & 2) {
|
|
127
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
128
|
+
const _r2 = i0.ɵɵreference(5);
|
|
129
|
+
i0.ɵɵadvance(1);
|
|
130
|
+
i0.ɵɵproperty("checked", ctx_r1.currentNode.toggleState);
|
|
131
|
+
i0.ɵɵadvance(1);
|
|
132
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
133
|
+
} }
|
|
134
|
+
function PhoenixMenuItemComponent_ng_template_4_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
135
|
+
i0.ɵɵelementStart(0, "span", 14);
|
|
136
|
+
i0.ɵɵnamespaceSVG();
|
|
137
|
+
i0.ɵɵelementStart(1, "svg");
|
|
138
|
+
i0.ɵɵelement(2, "use");
|
|
139
|
+
i0.ɵɵelementEnd()();
|
|
140
|
+
} if (rf & 2) {
|
|
141
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
142
|
+
i0.ɵɵadvance(2);
|
|
143
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r10.currentNode.icon, ".svg#", ctx_r10.currentNode.icon, "");
|
|
144
|
+
} }
|
|
145
|
+
function PhoenixMenuItemComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
146
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
147
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_ng_template_4_span_1_Template, 3, 2, "span", 12);
|
|
148
|
+
i0.ɵɵelementStart(2, "span", 13);
|
|
149
|
+
i0.ɵɵtext(3);
|
|
150
|
+
i0.ɵɵelementEnd()();
|
|
151
|
+
} if (rf & 2) {
|
|
152
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
153
|
+
i0.ɵɵadvance(1);
|
|
154
|
+
i0.ɵɵproperty("ngIf", ctx_r3.currentNode.icon);
|
|
155
|
+
i0.ɵɵadvance(1);
|
|
156
|
+
i0.ɵɵproperty("title", ctx_r3.currentNode.name);
|
|
157
|
+
i0.ɵɵadvance(1);
|
|
158
|
+
i0.ɵɵtextInterpolate(ctx_r3.currentNode.name);
|
|
159
|
+
} }
|
|
160
|
+
function PhoenixMenuItemComponent_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
161
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
162
|
+
i0.ɵɵnamespaceSVG();
|
|
163
|
+
i0.ɵɵnamespaceHTML();
|
|
164
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
165
|
+
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); });
|
|
166
|
+
i0.ɵɵelementEnd();
|
|
167
|
+
} }
|
|
168
|
+
const _c1$4 = function (a0) { return { "font-weight-bold w-100": a0 }; };
|
|
169
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
170
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
171
|
+
i0.ɵɵtext(1);
|
|
172
|
+
i0.ɵɵelementEnd();
|
|
173
|
+
} if (rf & 2) {
|
|
174
|
+
const config_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
175
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1$4, config_r15.type === "label"));
|
|
176
|
+
i0.ɵɵadvance(1);
|
|
177
|
+
i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
|
|
178
|
+
} }
|
|
179
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_mat_checkbox_1_Template(rf, ctx) { if (rf & 1) {
|
|
180
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
181
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 9);
|
|
182
|
+
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); });
|
|
183
|
+
i0.ɵɵelementEnd();
|
|
184
|
+
} if (rf & 2) {
|
|
185
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
186
|
+
i0.ɵɵproperty("checked", config_r15.isChecked);
|
|
187
|
+
} }
|
|
188
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_app_config_slider_2_Template(rf, ctx) { if (rf & 1) {
|
|
189
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
190
|
+
i0.ɵɵelementStart(0, "app-config-slider", 34);
|
|
191
|
+
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); });
|
|
192
|
+
i0.ɵɵelementEnd();
|
|
193
|
+
} if (rf & 2) {
|
|
194
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
195
|
+
i0.ɵɵproperty("value", config_r15.value)("min", config_r15.min)("max", config_r15.max)("step", config_r15.step)("allowCustomValue", config_r15.allowCustomValue);
|
|
196
|
+
} }
|
|
197
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
198
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
199
|
+
i0.ɵɵelementStart(0, "button", 35);
|
|
200
|
+
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()); });
|
|
201
|
+
i0.ɵɵtext(1);
|
|
202
|
+
i0.ɵɵelementEnd();
|
|
203
|
+
} if (rf & 2) {
|
|
204
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
205
|
+
i0.ɵɵadvance(1);
|
|
206
|
+
i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
|
|
207
|
+
} }
|
|
208
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
209
|
+
const _r40 = i0.ɵɵgetCurrentView();
|
|
210
|
+
i0.ɵɵelementStart(0, "input", 36);
|
|
211
|
+
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); });
|
|
212
|
+
i0.ɵɵelementEnd();
|
|
213
|
+
} if (rf & 2) {
|
|
214
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
215
|
+
i0.ɵɵproperty("value", config_r15.color);
|
|
216
|
+
} }
|
|
217
|
+
const _c2$1 = function (a0, a1, a2) { return { floor: a0, ceil: a1, step: a2, animate: false }; };
|
|
218
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
219
|
+
const _r44 = i0.ɵɵgetCurrentView();
|
|
220
|
+
i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "input", 39);
|
|
221
|
+
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)); });
|
|
222
|
+
i0.ɵɵelementEnd();
|
|
223
|
+
i0.ɵɵelementStart(3, "input", 40);
|
|
224
|
+
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)); });
|
|
225
|
+
i0.ɵɵelementEnd()();
|
|
226
|
+
i0.ɵɵelementStart(4, "ngx-slider", 41);
|
|
227
|
+
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)); });
|
|
228
|
+
i0.ɵɵelementEnd()();
|
|
229
|
+
} if (rf & 2) {
|
|
230
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
231
|
+
i0.ɵɵadvance(2);
|
|
232
|
+
i0.ɵɵproperty("value", config_r15.value);
|
|
233
|
+
i0.ɵɵadvance(1);
|
|
234
|
+
i0.ɵɵproperty("value", config_r15.highValue);
|
|
235
|
+
i0.ɵɵadvance(1);
|
|
236
|
+
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));
|
|
237
|
+
} }
|
|
238
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
239
|
+
i0.ɵɵelementStart(0, "option", 44);
|
|
240
|
+
i0.ɵɵtext(1);
|
|
241
|
+
i0.ɵɵelementEnd();
|
|
242
|
+
} if (rf & 2) {
|
|
243
|
+
const singleOption_r55 = ctx.$implicit;
|
|
244
|
+
i0.ɵɵproperty("value", singleOption_r55);
|
|
245
|
+
i0.ɵɵadvance(1);
|
|
246
|
+
i0.ɵɵtextInterpolate1(" ", singleOption_r55, " ");
|
|
247
|
+
} }
|
|
248
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_Template(rf, ctx) { if (rf & 1) {
|
|
249
|
+
const _r58 = i0.ɵɵgetCurrentView();
|
|
250
|
+
i0.ɵɵelementStart(0, "select", 42);
|
|
251
|
+
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)); });
|
|
252
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_option_1_Template, 2, 2, "option", 43);
|
|
253
|
+
i0.ɵɵelementEnd();
|
|
254
|
+
} if (rf & 2) {
|
|
255
|
+
const config_r15 = i0.ɵɵnextContext(3).$implicit;
|
|
256
|
+
i0.ɵɵadvance(1);
|
|
257
|
+
i0.ɵɵproperty("ngForOf", config_r15.options);
|
|
258
|
+
} }
|
|
259
|
+
const _c3$1 = function (a0) { return { "p-0": a0 }; };
|
|
260
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
261
|
+
i0.ɵɵelementStart(0, "div", 27);
|
|
262
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_mat_checkbox_1_Template, 1, 1, "mat-checkbox", 28);
|
|
263
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_app_config_slider_2_Template, 1, 5, "app-config-slider", 29);
|
|
264
|
+
i0.ɵɵtemplate(3, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_button_3_Template, 2, 1, "button", 30);
|
|
265
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_input_4_Template, 1, 1, "input", 31);
|
|
266
|
+
i0.ɵɵtemplate(5, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_div_5_Template, 5, 9, "div", 32);
|
|
267
|
+
i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_select_6_Template, 2, 1, "select", 33);
|
|
268
|
+
i0.ɵɵelementEnd();
|
|
269
|
+
} if (rf & 2) {
|
|
270
|
+
const config_r15 = i0.ɵɵnextContext(2).$implicit;
|
|
271
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c3$1, config_r15.type === "button"));
|
|
272
|
+
i0.ɵɵadvance(1);
|
|
273
|
+
i0.ɵɵproperty("ngSwitchCase", "checkbox");
|
|
274
|
+
i0.ɵɵadvance(1);
|
|
275
|
+
i0.ɵɵproperty("ngSwitchCase", "slider");
|
|
276
|
+
i0.ɵɵadvance(1);
|
|
277
|
+
i0.ɵɵproperty("ngSwitchCase", "button");
|
|
278
|
+
i0.ɵɵadvance(1);
|
|
279
|
+
i0.ɵɵproperty("ngSwitchCase", "color");
|
|
280
|
+
i0.ɵɵadvance(1);
|
|
281
|
+
i0.ɵɵproperty("ngSwitchCase", "rangeSlider");
|
|
282
|
+
i0.ɵɵadvance(1);
|
|
283
|
+
i0.ɵɵproperty("ngSwitchCase", "select");
|
|
284
|
+
} }
|
|
285
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
286
|
+
i0.ɵɵelementStart(0, "label", 23);
|
|
287
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_span_1_Template, 2, 4, "span", 24);
|
|
288
|
+
i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_div_2_Template, 7, 9, "div", 25);
|
|
289
|
+
i0.ɵɵelementEnd();
|
|
290
|
+
} if (rf & 2) {
|
|
291
|
+
const config_r15 = i0.ɵɵnextContext().$implicit;
|
|
292
|
+
i0.ɵɵadvance(1);
|
|
293
|
+
i0.ɵɵproperty("ngIf", config_r15.type !== "button");
|
|
294
|
+
i0.ɵɵadvance(1);
|
|
295
|
+
i0.ɵɵproperty("ngIf", config_r15.type !== "label");
|
|
296
|
+
} }
|
|
297
|
+
function PhoenixMenuItemComponent_div_7_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
298
|
+
i0.ɵɵelementContainerStart(0, 21);
|
|
299
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_label_1_Template, 3, 2, "label", 22);
|
|
300
|
+
i0.ɵɵelementContainerEnd();
|
|
301
|
+
} if (rf & 2) {
|
|
302
|
+
const config_r15 = ctx.$implicit;
|
|
303
|
+
i0.ɵɵproperty("ngSwitch", config_r15.type);
|
|
304
|
+
i0.ɵɵadvance(1);
|
|
305
|
+
i0.ɵɵproperty("ngIf", !config_r15.hidden);
|
|
306
|
+
} }
|
|
307
|
+
const _c4$1 = function (a0) { return { "top.px": a0 }; };
|
|
308
|
+
function PhoenixMenuItemComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
309
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
310
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 15);
|
|
311
|
+
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); });
|
|
312
|
+
i0.ɵɵnamespaceSVG();
|
|
313
|
+
i0.ɵɵelementStart(2, "svg");
|
|
314
|
+
i0.ɵɵelement(3, "use", 16);
|
|
315
|
+
i0.ɵɵelementEnd()();
|
|
316
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_div_4_Template, 1, 0, "div", 17);
|
|
317
|
+
i0.ɵɵnamespaceHTML();
|
|
318
|
+
i0.ɵɵelementStart(5, "div", 18);
|
|
319
|
+
i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_Template, 2, 2, "ng-container", 19);
|
|
320
|
+
i0.ɵɵelementEnd()();
|
|
321
|
+
} if (rf & 2) {
|
|
322
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
323
|
+
i0.ɵɵadvance(4);
|
|
324
|
+
i0.ɵɵproperty("ngIf", ctx_r4.currentNode.configActive);
|
|
325
|
+
i0.ɵɵadvance(1);
|
|
326
|
+
i0.ɵɵproperty("hidden", !ctx_r4.currentNode.configActive)("ngStyle", i0.ɵɵpureFunction1(4, _c4$1, ctx_r4.configTop));
|
|
327
|
+
i0.ɵɵadvance(1);
|
|
328
|
+
i0.ɵɵproperty("ngForOf", ctx_r4.castConfigsToAny(ctx_r4.currentNode.configs));
|
|
329
|
+
} }
|
|
330
|
+
const _c5$1 = function (a0) { return { expanded: a0 }; };
|
|
331
|
+
function PhoenixMenuItemComponent_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
332
|
+
const _r65 = i0.ɵɵgetCurrentView();
|
|
333
|
+
i0.ɵɵelementStart(0, "button", 45);
|
|
334
|
+
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); });
|
|
335
|
+
i0.ɵɵnamespaceSVG();
|
|
336
|
+
i0.ɵɵelementStart(1, "svg");
|
|
337
|
+
i0.ɵɵelement(2, "use", 46);
|
|
338
|
+
i0.ɵɵelementEnd()();
|
|
339
|
+
} if (rf & 2) {
|
|
340
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
341
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c5$1, ctx_r5.currentNode.childrenActive));
|
|
342
|
+
} }
|
|
343
|
+
function PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template(rf, ctx) { if (rf & 1) {
|
|
344
|
+
i0.ɵɵelement(0, "app-phoenix-menu-item", 49);
|
|
345
|
+
} if (rf & 2) {
|
|
346
|
+
const childNode_r67 = ctx.$implicit;
|
|
347
|
+
i0.ɵɵproperty("currentNode", childNode_r67);
|
|
348
|
+
} }
|
|
349
|
+
function PhoenixMenuItemComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
350
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
351
|
+
i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template, 1, 1, "app-phoenix-menu-item", 48);
|
|
352
|
+
i0.ɵɵelementEnd();
|
|
353
|
+
} if (rf & 2) {
|
|
354
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
355
|
+
i0.ɵɵadvance(1);
|
|
356
|
+
i0.ɵɵproperty("ngForOf", ctx_r6.currentNode.children);
|
|
357
|
+
} }
|
|
85
358
|
class PhoenixMenuItemComponent {
|
|
86
359
|
constructor(cdr) {
|
|
87
360
|
this.cdr = cdr;
|
|
@@ -98,28 +371,60 @@ class PhoenixMenuItemComponent {
|
|
|
98
371
|
return configs;
|
|
99
372
|
}
|
|
100
373
|
}
|
|
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
|
-
|
|
374
|
+
PhoenixMenuItemComponent.ɵfac = function PhoenixMenuItemComponent_Factory(t) { return new (t || PhoenixMenuItemComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
375
|
+
PhoenixMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoenixMenuItemComponent, selectors: [["app-phoenix-menu-item"]], viewQuery: function PhoenixMenuItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
376
|
+
i0.ɵɵviewQuery(_c0$9, 5);
|
|
377
|
+
} if (rf & 2) {
|
|
378
|
+
let _t;
|
|
379
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.phoenixMenuItem = _t.first);
|
|
380
|
+
} }, 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) {
|
|
381
|
+
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
382
|
+
i0.ɵɵtemplate(3, PhoenixMenuItemComponent_ng_container_3_Template, 3, 2, "ng-container", 3);
|
|
383
|
+
i0.ɵɵtemplate(4, PhoenixMenuItemComponent_ng_template_4_Template, 4, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
384
|
+
i0.ɵɵelementEnd();
|
|
385
|
+
i0.ɵɵelementStart(6, "div", 5);
|
|
386
|
+
i0.ɵɵtemplate(7, PhoenixMenuItemComponent_div_7_Template, 7, 6, "div", 6);
|
|
387
|
+
i0.ɵɵtemplate(8, PhoenixMenuItemComponent_button_8_Template, 3, 3, "button", 7);
|
|
388
|
+
i0.ɵɵelementEnd()();
|
|
389
|
+
i0.ɵɵtemplate(9, PhoenixMenuItemComponent_div_9_Template, 2, 1, "div", 8);
|
|
390
|
+
} if (rf & 2) {
|
|
391
|
+
const _r2 = i0.ɵɵreference(5);
|
|
392
|
+
i0.ɵɵadvance(3);
|
|
393
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.onToggle)("ngIfElse", _r2);
|
|
394
|
+
i0.ɵɵadvance(4);
|
|
395
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.configs.length > 0);
|
|
396
|
+
i0.ɵɵadvance(1);
|
|
397
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.children.length > 0);
|
|
398
|
+
i0.ɵɵadvance(1);
|
|
399
|
+
i0.ɵɵproperty("ngIf", ctx.currentNode.childrenActive);
|
|
400
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i2.NgSwitch, i2.NgSwitchCase, i2$2.MatButton, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4.MatSlideToggle, i4$1.MatCheckbox, i6.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 });
|
|
401
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuItemComponent, [{
|
|
402
|
+
type: Component,
|
|
403
|
+
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"] }]
|
|
404
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { currentNode: [{
|
|
405
|
+
type: Input
|
|
406
|
+
}], phoenixMenuItem: [{
|
|
407
|
+
type: ViewChild,
|
|
408
|
+
args: ['phoenixMenuItem']
|
|
409
|
+
}] }); })();
|
|
112
410
|
|
|
113
411
|
class PhoenixMenuComponent {
|
|
114
412
|
}
|
|
115
|
-
PhoenixMenuComponent.ɵfac =
|
|
116
|
-
PhoenixMenuComponent.ɵcmp = i0.ɵɵ
|
|
117
|
-
i0.ɵɵ
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
413
|
+
PhoenixMenuComponent.ɵfac = function PhoenixMenuComponent_Factory(t) { return new (t || PhoenixMenuComponent)(); };
|
|
414
|
+
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) {
|
|
415
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
416
|
+
i0.ɵɵelement(1, "app-phoenix-menu-item", 1);
|
|
417
|
+
i0.ɵɵelementEnd();
|
|
418
|
+
} if (rf & 2) {
|
|
419
|
+
i0.ɵɵadvance(1);
|
|
420
|
+
i0.ɵɵproperty("currentNode", ctx.rootNode);
|
|
421
|
+
} }, 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}}"] });
|
|
422
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuComponent, [{
|
|
423
|
+
type: Component,
|
|
424
|
+
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"] }]
|
|
425
|
+
}], null, { rootNode: [{
|
|
426
|
+
type: Input
|
|
427
|
+
}] }); })();
|
|
123
428
|
|
|
124
429
|
/**
|
|
125
430
|
* Service for all event display related functions.
|
|
@@ -132,35 +437,60 @@ class EventDisplayService extends EventDisplay {
|
|
|
132
437
|
super();
|
|
133
438
|
}
|
|
134
439
|
}
|
|
135
|
-
EventDisplayService.ɵfac =
|
|
136
|
-
EventDisplayService.ɵprov = i0.ɵɵ
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
440
|
+
EventDisplayService.ɵfac = function EventDisplayService_Factory(t) { return new (t || EventDisplayService)(); };
|
|
441
|
+
EventDisplayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventDisplayService, factory: EventDisplayService.ɵfac, providedIn: 'root' });
|
|
442
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDisplayService, [{
|
|
443
|
+
type: Injectable,
|
|
444
|
+
args: [{
|
|
445
|
+
providedIn: 'root',
|
|
446
|
+
}]
|
|
447
|
+
}], function () { return []; }, null); })();
|
|
143
448
|
|
|
449
|
+
const _c0$8 = function (a0) { return { disabled: a0 }; };
|
|
450
|
+
const _c1$3 = function (a0) { return { "active-icon": a0 }; };
|
|
144
451
|
class MenuToggleComponent {
|
|
145
452
|
constructor() {
|
|
146
453
|
this.disabled = false;
|
|
147
454
|
}
|
|
148
455
|
}
|
|
149
|
-
MenuToggleComponent.ɵfac =
|
|
150
|
-
MenuToggleComponent.ɵcmp = i0.ɵɵ
|
|
151
|
-
i0.ɵɵ
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
456
|
+
MenuToggleComponent.ɵfac = function MenuToggleComponent_Factory(t) { return new (t || MenuToggleComponent)(); };
|
|
457
|
+
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) {
|
|
458
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
459
|
+
i0.ɵɵnamespaceSVG();
|
|
460
|
+
i0.ɵɵelementStart(1, "svg", 1);
|
|
461
|
+
i0.ɵɵelement(2, "use");
|
|
462
|
+
i0.ɵɵelementEnd()();
|
|
463
|
+
} if (rf & 2) {
|
|
464
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$8, ctx.disabled))("matTooltip", ctx.tooltip);
|
|
465
|
+
i0.ɵɵadvance(1);
|
|
466
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$3, ctx.active));
|
|
467
|
+
i0.ɵɵadvance(1);
|
|
468
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx.icon, ".svg#", ctx.icon, "");
|
|
469
|
+
} }, 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}"] });
|
|
470
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuToggleComponent, [{
|
|
471
|
+
type: Component,
|
|
472
|
+
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"] }]
|
|
473
|
+
}], null, { icon: [{
|
|
474
|
+
type: Input
|
|
475
|
+
}], active: [{
|
|
476
|
+
type: Input
|
|
477
|
+
}], tooltip: [{
|
|
478
|
+
type: Input
|
|
479
|
+
}], disabled: [{
|
|
480
|
+
type: Input
|
|
481
|
+
}] }); })();
|
|
163
482
|
|
|
483
|
+
function AnimateCameraComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
484
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
485
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
486
|
+
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)); });
|
|
487
|
+
i0.ɵɵtext(1);
|
|
488
|
+
i0.ɵɵelementEnd();
|
|
489
|
+
} if (rf & 2) {
|
|
490
|
+
const preset_r2 = ctx.$implicit;
|
|
491
|
+
i0.ɵɵadvance(1);
|
|
492
|
+
i0.ɵɵtextInterpolate1(" ", preset_r2, " ");
|
|
493
|
+
} }
|
|
164
494
|
const defaultAnimationPresets = {
|
|
165
495
|
'Preset 1': {
|
|
166
496
|
positions: [
|
|
@@ -220,14 +550,28 @@ class AnimateCameraComponent {
|
|
|
220
550
|
sceneManager.setGeometryOpacity(geometriesGroup, opacity);
|
|
221
551
|
}
|
|
222
552
|
}
|
|
223
|
-
AnimateCameraComponent.ɵfac =
|
|
224
|
-
AnimateCameraComponent.ɵcmp = i0.ɵɵ
|
|
225
|
-
i0.ɵɵ
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
553
|
+
AnimateCameraComponent.ɵfac = function AnimateCameraComponent_Factory(t) { return new (t || AnimateCameraComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
554
|
+
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) {
|
|
555
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0);
|
|
556
|
+
i0.ɵɵtemplate(2, AnimateCameraComponent_button_2_Template, 2, 1, "button", 1);
|
|
557
|
+
i0.ɵɵelementStart(3, "button", 2);
|
|
558
|
+
i0.ɵɵlistener("click", function AnimateCameraComponent_Template_button_click_3_listener() { return ctx.animateCamera(); });
|
|
559
|
+
i0.ɵɵtext(4, "Animate camera");
|
|
560
|
+
i0.ɵɵelementEnd()();
|
|
561
|
+
i0.ɵɵelement(5, "app-menu-toggle", 3);
|
|
562
|
+
} if (rf & 2) {
|
|
563
|
+
const _r0 = i0.ɵɵreference(1);
|
|
564
|
+
i0.ɵɵadvance(2);
|
|
565
|
+
i0.ɵɵproperty("ngForOf", ctx.animationPresetsKeys);
|
|
566
|
+
i0.ɵɵadvance(3);
|
|
567
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0);
|
|
568
|
+
} }, dependencies: [i2.NgForOf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
|
|
569
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateCameraComponent, [{
|
|
570
|
+
type: Component,
|
|
571
|
+
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" }]
|
|
572
|
+
}], function () { return [{ type: EventDisplayService }]; }, { animationPresets: [{
|
|
573
|
+
type: Input
|
|
574
|
+
}] }); })();
|
|
231
575
|
|
|
232
576
|
class AnimateEventComponent {
|
|
233
577
|
constructor(eventDisplay) {
|
|
@@ -243,12 +587,18 @@ class AnimateEventComponent {
|
|
|
243
587
|
}
|
|
244
588
|
}
|
|
245
589
|
}
|
|
246
|
-
AnimateEventComponent.ɵfac =
|
|
247
|
-
AnimateEventComponent.ɵcmp = i0.ɵɵ
|
|
248
|
-
i0.ɵɵ
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
590
|
+
AnimateEventComponent.ɵfac = function AnimateEventComponent_Factory(t) { return new (t || AnimateEventComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
591
|
+
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) {
|
|
592
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
593
|
+
i0.ɵɵlistener("click", function AnimateEventComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAnimateEvent(); });
|
|
594
|
+
i0.ɵɵelementEnd();
|
|
595
|
+
} if (rf & 2) {
|
|
596
|
+
i0.ɵɵproperty("active", ctx.isAnimating);
|
|
597
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
598
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateEventComponent, [{
|
|
599
|
+
type: Component,
|
|
600
|
+
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" }]
|
|
601
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
252
602
|
|
|
253
603
|
class AutoRotateComponent {
|
|
254
604
|
constructor(eventDisplay) {
|
|
@@ -260,13 +610,76 @@ class AutoRotateComponent {
|
|
|
260
610
|
this.eventDisplay.getUIManager().setAutoRotate(this.autoRotate);
|
|
261
611
|
}
|
|
262
612
|
}
|
|
263
|
-
AutoRotateComponent.ɵfac =
|
|
264
|
-
AutoRotateComponent.ɵcmp = i0.ɵɵ
|
|
265
|
-
i0.ɵɵ
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
613
|
+
AutoRotateComponent.ɵfac = function AutoRotateComponent_Factory(t) { return new (t || AutoRotateComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
614
|
+
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) {
|
|
615
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
616
|
+
i0.ɵɵlistener("click", function AutoRotateComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAutoRotate(); });
|
|
617
|
+
i0.ɵɵelementEnd();
|
|
618
|
+
} if (rf & 2) {
|
|
619
|
+
i0.ɵɵproperty("active", ctx.autoRotate);
|
|
620
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
621
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoRotateComponent, [{
|
|
622
|
+
type: Component,
|
|
623
|
+
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" }]
|
|
624
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
269
625
|
|
|
626
|
+
const _c0$7 = ["overlayCard"];
|
|
627
|
+
const _c1$2 = ["resizeHandleCorner"];
|
|
628
|
+
function OverlayComponent_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
629
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
630
|
+
i0.ɵɵnamespaceSVG();
|
|
631
|
+
i0.ɵɵelementStart(1, "svg");
|
|
632
|
+
i0.ɵɵelement(2, "use");
|
|
633
|
+
i0.ɵɵelementEnd()();
|
|
634
|
+
} if (rf & 2) {
|
|
635
|
+
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
636
|
+
i0.ɵɵadvance(2);
|
|
637
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r4.icon, ".svg#", ctx_r4.icon, "");
|
|
638
|
+
} }
|
|
639
|
+
const _c2 = function (a0) { return { "with-body": a0 }; };
|
|
640
|
+
const _c3 = function (a0) { return { expand: a0 }; };
|
|
641
|
+
function OverlayComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
642
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
643
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
644
|
+
i0.ɵɵtemplate(1, OverlayComponent_div_2_div_1_Template, 3, 2, "div", 6);
|
|
645
|
+
i0.ɵɵelementStart(2, "h5", 7);
|
|
646
|
+
i0.ɵɵtext(3);
|
|
647
|
+
i0.ɵɵelementEnd();
|
|
648
|
+
i0.ɵɵelementStart(4, "button", 8);
|
|
649
|
+
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); });
|
|
650
|
+
i0.ɵɵnamespaceSVG();
|
|
651
|
+
i0.ɵɵelementStart(5, "svg");
|
|
652
|
+
i0.ɵɵelement(6, "use", 9);
|
|
653
|
+
i0.ɵɵelementEnd()()();
|
|
654
|
+
} if (rf & 2) {
|
|
655
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
656
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.showBody));
|
|
657
|
+
i0.ɵɵadvance(1);
|
|
658
|
+
i0.ɵɵproperty("ngIf", ctx_r1.icon);
|
|
659
|
+
i0.ɵɵadvance(2);
|
|
660
|
+
i0.ɵɵtextInterpolate(ctx_r1.overlayTitle);
|
|
661
|
+
i0.ɵɵadvance(1);
|
|
662
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3, ctx_r1.showBody));
|
|
663
|
+
} }
|
|
664
|
+
const _c4 = function (a0) { return { "transparent-bg": a0 }; };
|
|
665
|
+
function OverlayComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
666
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
667
|
+
i0.ɵɵprojection(1);
|
|
668
|
+
i0.ɵɵelementEnd();
|
|
669
|
+
} if (rf & 2) {
|
|
670
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
671
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c4, ctx_r2.transparentBody));
|
|
672
|
+
} }
|
|
673
|
+
function OverlayComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
674
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
675
|
+
i0.ɵɵelementStart(0, "span", 12, 13);
|
|
676
|
+
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()); });
|
|
677
|
+
i0.ɵɵelementEnd();
|
|
678
|
+
} if (rf & 2) {
|
|
679
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
680
|
+
i0.ɵɵproperty("hidden", !ctx_r3.showBody);
|
|
681
|
+
} }
|
|
682
|
+
const _c5 = ["*"];
|
|
270
683
|
/**
|
|
271
684
|
* Component for overlay panel.
|
|
272
685
|
*/
|
|
@@ -337,29 +750,222 @@ class OverlayComponent {
|
|
|
337
750
|
this.resizeHandleCorner.nativeElement.style.transform = `translate3d(${translateX}px, ${translateY}px, 0)`;
|
|
338
751
|
}
|
|
339
752
|
}
|
|
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
|
-
|
|
753
|
+
OverlayComponent.ɵfac = function OverlayComponent_Factory(t) { return new (t || OverlayComponent)(); };
|
|
754
|
+
OverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayComponent, selectors: [["app-overlay"]], viewQuery: function OverlayComponent_Query(rf, ctx) { if (rf & 1) {
|
|
755
|
+
i0.ɵɵviewQuery(_c0$7, 5);
|
|
756
|
+
i0.ɵɵviewQuery(_c1$2, 5);
|
|
757
|
+
} if (rf & 2) {
|
|
758
|
+
let _t;
|
|
759
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayCard = _t.first);
|
|
760
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resizeHandleCorner = _t.first);
|
|
761
|
+
} }, 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) {
|
|
762
|
+
i0.ɵɵprojectionDef();
|
|
763
|
+
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
764
|
+
i0.ɵɵtemplate(2, OverlayComponent_div_2_Template, 7, 8, "div", 2);
|
|
765
|
+
i0.ɵɵtemplate(3, OverlayComponent_div_3_Template, 2, 3, "div", 3);
|
|
766
|
+
i0.ɵɵtemplate(4, OverlayComponent_span_4_Template, 2, 1, "span", 4);
|
|
767
|
+
i0.ɵɵelementEnd();
|
|
768
|
+
} if (rf & 2) {
|
|
769
|
+
i0.ɵɵproperty("hidden", !ctx.active);
|
|
770
|
+
i0.ɵɵadvance(2);
|
|
771
|
+
i0.ɵɵproperty("ngIf", ctx.overlayTitle);
|
|
772
|
+
i0.ɵɵadvance(1);
|
|
773
|
+
i0.ɵɵproperty("ngIf", ctx.showBody);
|
|
774
|
+
i0.ɵɵadvance(1);
|
|
775
|
+
i0.ɵɵproperty("ngIf", ctx.resizable);
|
|
776
|
+
} }, 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 });
|
|
777
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayComponent, [{
|
|
778
|
+
type: Component,
|
|
779
|
+
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"] }]
|
|
780
|
+
}], null, { overlayTitle: [{
|
|
781
|
+
type: Input
|
|
782
|
+
}], active: [{
|
|
783
|
+
type: Input
|
|
784
|
+
}], icon: [{
|
|
785
|
+
type: Input
|
|
786
|
+
}], resizable: [{
|
|
787
|
+
type: Input
|
|
788
|
+
}], transparentBody: [{
|
|
789
|
+
type: Input
|
|
790
|
+
}], overlayCard: [{
|
|
791
|
+
type: ViewChild,
|
|
792
|
+
args: ['overlayCard']
|
|
793
|
+
}], resizeHandleCorner: [{
|
|
794
|
+
type: ViewChild,
|
|
795
|
+
args: ['resizeHandleCorner']
|
|
796
|
+
}] }); })();
|
|
362
797
|
|
|
798
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
799
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
800
|
+
i0.ɵɵtext(1);
|
|
801
|
+
i0.ɵɵelementEnd();
|
|
802
|
+
} if (rf & 2) {
|
|
803
|
+
const collection_r6 = ctx.$implicit;
|
|
804
|
+
i0.ɵɵproperty("value", collection_r6);
|
|
805
|
+
i0.ɵɵadvance(1);
|
|
806
|
+
i0.ɵɵtextInterpolate1(" ", collection_r6, " ");
|
|
807
|
+
} }
|
|
808
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template(rf, ctx) { if (rf & 1) {
|
|
809
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
810
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 16);
|
|
811
|
+
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)); });
|
|
812
|
+
i0.ɵɵtext(1, " Hide Invisible Objects ");
|
|
813
|
+
i0.ɵɵelementEnd();
|
|
814
|
+
} }
|
|
815
|
+
function CollectionsInfoOverlayComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
816
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
817
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "span");
|
|
818
|
+
i0.ɵɵtext(3, "Choose a collection: ");
|
|
819
|
+
i0.ɵɵelementEnd();
|
|
820
|
+
i0.ɵɵelementStart(4, "div", 9)(5, "label", 10);
|
|
821
|
+
i0.ɵɵtext(6, "Event");
|
|
822
|
+
i0.ɵɵelementEnd();
|
|
823
|
+
i0.ɵɵelementStart(7, "select", 11);
|
|
824
|
+
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)); });
|
|
825
|
+
i0.ɵɵelementStart(8, "option", 12);
|
|
826
|
+
i0.ɵɵtext(9, "Choose Collection");
|
|
827
|
+
i0.ɵɵelementEnd();
|
|
828
|
+
i0.ɵɵtemplate(10, CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template, 2, 2, "option", 13);
|
|
829
|
+
i0.ɵɵelementEnd()();
|
|
830
|
+
i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template, 2, 0, "mat-checkbox", 14);
|
|
831
|
+
i0.ɵɵelementEnd()();
|
|
832
|
+
} if (rf & 2) {
|
|
833
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
834
|
+
i0.ɵɵadvance(10);
|
|
835
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.collections);
|
|
836
|
+
i0.ɵɵadvance(1);
|
|
837
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showingCollection);
|
|
838
|
+
} }
|
|
839
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
840
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
841
|
+
i0.ɵɵelementStart(0, "th")(1, "div", 20)(2, "div");
|
|
842
|
+
i0.ɵɵtext(3);
|
|
843
|
+
i0.ɵɵelementEnd();
|
|
844
|
+
i0.ɵɵelementStart(4, "div", 21)(5, "button", 22);
|
|
845
|
+
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")); });
|
|
846
|
+
i0.ɵɵnamespaceSVG();
|
|
847
|
+
i0.ɵɵelementStart(6, "svg");
|
|
848
|
+
i0.ɵɵelement(7, "use", 23);
|
|
849
|
+
i0.ɵɵelementEnd()();
|
|
850
|
+
i0.ɵɵnamespaceHTML();
|
|
851
|
+
i0.ɵɵelementStart(8, "button", 24);
|
|
852
|
+
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")); });
|
|
853
|
+
i0.ɵɵnamespaceSVG();
|
|
854
|
+
i0.ɵɵelementStart(9, "svg");
|
|
855
|
+
i0.ɵɵelement(10, "use", 23);
|
|
856
|
+
i0.ɵɵelementEnd()()()()();
|
|
857
|
+
} if (rf & 2) {
|
|
858
|
+
const column_r13 = ctx.$implicit;
|
|
859
|
+
const ctx_r11 = i0.ɵɵnextContext(3);
|
|
860
|
+
i0.ɵɵadvance(3);
|
|
861
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r11.getPrettySymbol(column_r13), " ");
|
|
862
|
+
} }
|
|
863
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
864
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
865
|
+
i0.ɵɵelementStart(0, "div", 33)(1, "button", 34);
|
|
866
|
+
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)); });
|
|
867
|
+
i0.ɵɵnamespaceSVG();
|
|
868
|
+
i0.ɵɵelementStart(2, "svg");
|
|
869
|
+
i0.ɵɵelement(3, "use", 35);
|
|
870
|
+
i0.ɵɵelementEnd()();
|
|
871
|
+
i0.ɵɵnamespaceHTML();
|
|
872
|
+
i0.ɵɵelementStart(4, "button", 36);
|
|
873
|
+
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)); });
|
|
874
|
+
i0.ɵɵnamespaceSVG();
|
|
875
|
+
i0.ɵɵelementStart(5, "svg");
|
|
876
|
+
i0.ɵɵelement(6, "use", 37);
|
|
877
|
+
i0.ɵɵelementEnd()()();
|
|
878
|
+
} }
|
|
879
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template(rf, ctx) { if (rf & 1) {
|
|
880
|
+
i0.ɵɵnamespaceSVG();
|
|
881
|
+
i0.ɵɵnamespaceHTML();
|
|
882
|
+
i0.ɵɵelementStart(0, "td");
|
|
883
|
+
i0.ɵɵtext(1);
|
|
884
|
+
i0.ɵɵelementEnd();
|
|
885
|
+
} if (rf & 2) {
|
|
886
|
+
const column_r26 = ctx.$implicit;
|
|
887
|
+
const object_r17 = i0.ɵɵnextContext().$implicit;
|
|
888
|
+
i0.ɵɵadvance(1);
|
|
889
|
+
i0.ɵɵtextInterpolate1(" ", object_r17[column_r26], " ");
|
|
890
|
+
} }
|
|
891
|
+
const _c0$6 = function (a0, a1, a2) { return { "active-object": a0, "is-cut": a1, "d-none": a2 }; };
|
|
892
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
893
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
894
|
+
i0.ɵɵelementStart(0, "tr", 25)(1, "td");
|
|
895
|
+
i0.ɵɵtext(2);
|
|
896
|
+
i0.ɵɵelementEnd();
|
|
897
|
+
i0.ɵɵelementStart(3, "td");
|
|
898
|
+
i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template, 7, 0, "div", 26);
|
|
899
|
+
i0.ɵɵelementEnd();
|
|
900
|
+
i0.ɵɵelementStart(5, "td")(6, "div", 27)(7, "div", 28);
|
|
901
|
+
i0.ɵɵelement(8, "input", 29);
|
|
902
|
+
i0.ɵɵelementEnd();
|
|
903
|
+
i0.ɵɵelementStart(9, "div", 30)(10, "button", 31);
|
|
904
|
+
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)); });
|
|
905
|
+
i0.ɵɵnamespaceSVG();
|
|
906
|
+
i0.ɵɵelementStart(11, "svg");
|
|
907
|
+
i0.ɵɵelement(12, "use", 32);
|
|
908
|
+
i0.ɵɵelementEnd()()()()();
|
|
909
|
+
i0.ɵɵtemplate(13, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template, 2, 1, "td", 18);
|
|
910
|
+
i0.ɵɵelementEnd();
|
|
911
|
+
} if (rf & 2) {
|
|
912
|
+
const object_r17 = ctx.$implicit;
|
|
913
|
+
const i_r18 = ctx.index;
|
|
914
|
+
const ctx_r12 = i0.ɵɵnextContext(3);
|
|
915
|
+
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));
|
|
916
|
+
i0.ɵɵattribute("id", object_r17.uuid);
|
|
917
|
+
i0.ɵɵadvance(2);
|
|
918
|
+
i0.ɵɵtextInterpolate1("#", i_r18, "");
|
|
919
|
+
i0.ɵɵadvance(2);
|
|
920
|
+
i0.ɵɵproperty("ngIf", object_r17.uuid);
|
|
921
|
+
i0.ɵɵadvance(4);
|
|
922
|
+
i0.ɵɵproperty("id", "label" + i_r18);
|
|
923
|
+
i0.ɵɵadvance(5);
|
|
924
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.collectionColumns);
|
|
925
|
+
} }
|
|
926
|
+
function CollectionsInfoOverlayComponent_div_1_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
927
|
+
i0.ɵɵelementStart(0, "table", 17)(1, "thead")(2, "tr")(3, "th");
|
|
928
|
+
i0.ɵɵtext(4, "No.");
|
|
929
|
+
i0.ɵɵelementEnd();
|
|
930
|
+
i0.ɵɵelementStart(5, "th");
|
|
931
|
+
i0.ɵɵtext(6, "Selection");
|
|
932
|
+
i0.ɵɵelementEnd();
|
|
933
|
+
i0.ɵɵelementStart(7, "th");
|
|
934
|
+
i0.ɵɵtext(8, "Label");
|
|
935
|
+
i0.ɵɵelementEnd();
|
|
936
|
+
i0.ɵɵtemplate(9, CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template, 11, 1, "th", 18);
|
|
937
|
+
i0.ɵɵelementEnd()();
|
|
938
|
+
i0.ɵɵelementStart(10, "tbody");
|
|
939
|
+
i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template, 14, 10, "tr", 19);
|
|
940
|
+
i0.ɵɵelementEnd()();
|
|
941
|
+
} if (rf & 2) {
|
|
942
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
943
|
+
i0.ɵɵadvance(9);
|
|
944
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.collectionColumns);
|
|
945
|
+
i0.ɵɵadvance(2);
|
|
946
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.showingCollection);
|
|
947
|
+
} }
|
|
948
|
+
function CollectionsInfoOverlayComponent_div_1_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
949
|
+
i0.ɵɵelementStart(0, "p", 38);
|
|
950
|
+
i0.ɵɵtext(1, " Load event data to be able to display information about the collections here. ");
|
|
951
|
+
i0.ɵɵelementEnd();
|
|
952
|
+
} }
|
|
953
|
+
function CollectionsInfoOverlayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
954
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
955
|
+
i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_div_1_Template, 12, 2, "div", 3);
|
|
956
|
+
i0.ɵɵelementStart(2, "div", 4);
|
|
957
|
+
i0.ɵɵtemplate(3, CollectionsInfoOverlayComponent_div_1_table_3_Template, 12, 2, "table", 5);
|
|
958
|
+
i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_p_4_Template, 2, 0, "p", 6);
|
|
959
|
+
i0.ɵɵelementEnd()();
|
|
960
|
+
} if (rf & 2) {
|
|
961
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
962
|
+
i0.ɵɵadvance(1);
|
|
963
|
+
i0.ɵɵproperty("ngIf", ctx_r0.collections != null);
|
|
964
|
+
i0.ɵɵadvance(2);
|
|
965
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showingCollection);
|
|
966
|
+
i0.ɵɵadvance(1);
|
|
967
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.collections);
|
|
968
|
+
} }
|
|
363
969
|
class CollectionsInfoOverlayComponent {
|
|
364
970
|
constructor(elementRef, eventDisplay) {
|
|
365
971
|
this.elementRef = elementRef;
|
|
@@ -424,14 +1030,22 @@ class CollectionsInfoOverlayComponent {
|
|
|
424
1030
|
.getObjectByName(SceneManager.EVENT_DATA_ID);
|
|
425
1031
|
}
|
|
426
1032
|
}
|
|
427
|
-
CollectionsInfoOverlayComponent.ɵfac =
|
|
428
|
-
CollectionsInfoOverlayComponent.ɵcmp = i0.ɵɵ
|
|
429
|
-
i0.ɵɵ
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
1033
|
+
CollectionsInfoOverlayComponent.ɵfac = function CollectionsInfoOverlayComponent_Factory(t) { return new (t || CollectionsInfoOverlayComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1034
|
+
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) {
|
|
1035
|
+
i0.ɵɵelementStart(0, "app-overlay", 0);
|
|
1036
|
+
i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_Template, 5, 3, "div", 1);
|
|
1037
|
+
i0.ɵɵelementEnd();
|
|
1038
|
+
} if (rf & 2) {
|
|
1039
|
+
i0.ɵɵproperty("resizable", true)("active", ctx.showObjectsInfo);
|
|
1040
|
+
i0.ɵɵadvance(1);
|
|
1041
|
+
i0.ɵɵproperty("ngIf", ctx.showObjectsInfo);
|
|
1042
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$3.MatTooltip, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4$1.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)}"] });
|
|
1043
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoOverlayComponent, [{
|
|
1044
|
+
type: Component,
|
|
1045
|
+
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"] }]
|
|
1046
|
+
}], function () { return [{ type: i0.ElementRef }, { type: EventDisplayService }]; }, { showObjectsInfo: [{
|
|
1047
|
+
type: Input
|
|
1048
|
+
}] }); })();
|
|
435
1049
|
|
|
436
1050
|
class CollectionsInfoComponent {
|
|
437
1051
|
constructor(overlay) {
|
|
@@ -452,12 +1066,18 @@ class CollectionsInfoComponent {
|
|
|
452
1066
|
this.overlayWindow.instance.showObjectsInfo = this.showObjectsInfo;
|
|
453
1067
|
}
|
|
454
1068
|
}
|
|
455
|
-
CollectionsInfoComponent.ɵfac =
|
|
456
|
-
CollectionsInfoComponent.ɵcmp = i0.ɵɵ
|
|
457
|
-
i0.ɵɵ
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
1069
|
+
CollectionsInfoComponent.ɵfac = function CollectionsInfoComponent_Factory(t) { return new (t || CollectionsInfoComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1070
|
+
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) {
|
|
1071
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1072
|
+
i0.ɵɵlistener("click", function CollectionsInfoComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1073
|
+
i0.ɵɵelementEnd();
|
|
1074
|
+
} if (rf & 2) {
|
|
1075
|
+
i0.ɵɵproperty("active", ctx.showObjectsInfo);
|
|
1076
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1077
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoComponent, [{
|
|
1078
|
+
type: Component,
|
|
1079
|
+
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" }]
|
|
1080
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
461
1081
|
|
|
462
1082
|
class DarkThemeComponent {
|
|
463
1083
|
constructor(eventDisplay) {
|
|
@@ -472,13 +1092,40 @@ class DarkThemeComponent {
|
|
|
472
1092
|
this.eventDisplay.getUIManager().setDarkTheme(this.darkTheme);
|
|
473
1093
|
}
|
|
474
1094
|
}
|
|
475
|
-
DarkThemeComponent.ɵfac =
|
|
476
|
-
DarkThemeComponent.ɵcmp = i0.ɵɵ
|
|
477
|
-
i0.ɵɵ
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
1095
|
+
DarkThemeComponent.ɵfac = function DarkThemeComponent_Factory(t) { return new (t || DarkThemeComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1096
|
+
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) {
|
|
1097
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1098
|
+
i0.ɵɵlistener("click", function DarkThemeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.setDarkTheme(); });
|
|
1099
|
+
i0.ɵɵelementEnd();
|
|
1100
|
+
} if (rf & 2) {
|
|
1101
|
+
i0.ɵɵproperty("active", ctx.darkTheme);
|
|
1102
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1103
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DarkThemeComponent, [{
|
|
1104
|
+
type: Component,
|
|
1105
|
+
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" }]
|
|
1106
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
481
1107
|
|
|
1108
|
+
function EventSelectorComponent_div_0_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
1109
|
+
i0.ɵɵelementStart(0, "option", 4);
|
|
1110
|
+
i0.ɵɵtext(1);
|
|
1111
|
+
i0.ɵɵelementEnd();
|
|
1112
|
+
} if (rf & 2) {
|
|
1113
|
+
const event_r2 = ctx.$implicit;
|
|
1114
|
+
i0.ɵɵproperty("value", event_r2);
|
|
1115
|
+
i0.ɵɵadvance(1);
|
|
1116
|
+
i0.ɵɵtextInterpolate1(" ", event_r2, " ");
|
|
1117
|
+
} }
|
|
1118
|
+
function EventSelectorComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
1119
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1120
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "select", 2);
|
|
1121
|
+
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)); });
|
|
1122
|
+
i0.ɵɵtemplate(2, EventSelectorComponent_div_0_option_2_Template, 2, 2, "option", 3);
|
|
1123
|
+
i0.ɵɵelementEnd()();
|
|
1124
|
+
} if (rf & 2) {
|
|
1125
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1126
|
+
i0.ɵɵadvance(2);
|
|
1127
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.events);
|
|
1128
|
+
} }
|
|
482
1129
|
class EventSelectorComponent {
|
|
483
1130
|
constructor(eventDisplay) {
|
|
484
1131
|
this.eventDisplay = eventDisplay;
|
|
@@ -491,13 +1138,71 @@ class EventSelectorComponent {
|
|
|
491
1138
|
this.eventDisplay.loadEvent(value);
|
|
492
1139
|
}
|
|
493
1140
|
}
|
|
494
|
-
EventSelectorComponent.ɵfac =
|
|
495
|
-
EventSelectorComponent.ɵcmp = i0.ɵɵ
|
|
496
|
-
i0.ɵɵ
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
1141
|
+
EventSelectorComponent.ɵfac = function EventSelectorComponent_Factory(t) { return new (t || EventSelectorComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1142
|
+
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) {
|
|
1143
|
+
i0.ɵɵtemplate(0, EventSelectorComponent_div_0_Template, 3, 1, "div", 0);
|
|
1144
|
+
} if (rf & 2) {
|
|
1145
|
+
i0.ɵɵproperty("ngIf", ctx.events != null);
|
|
1146
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i2$3.MatTooltip, i3.NgSelectOption, i3.ɵNgSelectMultipleOption], 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)}"] });
|
|
1147
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventSelectorComponent, [{
|
|
1148
|
+
type: Component,
|
|
1149
|
+
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"] }]
|
|
1150
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
500
1151
|
|
|
1152
|
+
function ExperimentInfoComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
1153
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
1154
|
+
i0.ɵɵelement(1, "img", 6);
|
|
1155
|
+
i0.ɵɵelementEnd();
|
|
1156
|
+
} if (rf & 2) {
|
|
1157
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1158
|
+
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
1159
|
+
i0.ɵɵadvance(1);
|
|
1160
|
+
i0.ɵɵproperty("src", ctx_r0.logo, i0.ɵɵsanitizeUrl);
|
|
1161
|
+
} }
|
|
1162
|
+
function ExperimentInfoComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
1163
|
+
i0.ɵɵelementStart(0, "p")(1, "b");
|
|
1164
|
+
i0.ɵɵtext(2);
|
|
1165
|
+
i0.ɵɵelementEnd()();
|
|
1166
|
+
} if (rf & 2) {
|
|
1167
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1168
|
+
i0.ɵɵadvance(2);
|
|
1169
|
+
i0.ɵɵtextInterpolate(ctx_r1.tagline);
|
|
1170
|
+
} }
|
|
1171
|
+
function ExperimentInfoComponent_p_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1172
|
+
i0.ɵɵelementContainerStart(0);
|
|
1173
|
+
i0.ɵɵelementStart(1, "b");
|
|
1174
|
+
i0.ɵɵtext(2);
|
|
1175
|
+
i0.ɵɵelementEnd();
|
|
1176
|
+
i0.ɵɵtext(3);
|
|
1177
|
+
i0.ɵɵelementContainerEnd();
|
|
1178
|
+
} if (rf & 2) {
|
|
1179
|
+
const infoField_r3 = i0.ɵɵnextContext().$implicit;
|
|
1180
|
+
i0.ɵɵadvance(2);
|
|
1181
|
+
i0.ɵɵtextInterpolate1("", infoField_r3.label, ": ");
|
|
1182
|
+
i0.ɵɵadvance(1);
|
|
1183
|
+
i0.ɵɵtextInterpolate1("", infoField_r3.value, " ");
|
|
1184
|
+
} }
|
|
1185
|
+
function ExperimentInfoComponent_p_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
1186
|
+
i0.ɵɵelementContainerStart(0);
|
|
1187
|
+
i0.ɵɵtext(1);
|
|
1188
|
+
i0.ɵɵelementContainerEnd();
|
|
1189
|
+
} if (rf & 2) {
|
|
1190
|
+
const infoField_r3 = i0.ɵɵnextContext().$implicit;
|
|
1191
|
+
i0.ɵɵadvance(1);
|
|
1192
|
+
i0.ɵɵtextInterpolate1(" ", infoField_r3, " ");
|
|
1193
|
+
} }
|
|
1194
|
+
function ExperimentInfoComponent_p_4_Template(rf, ctx) { if (rf & 1) {
|
|
1195
|
+
i0.ɵɵelementStart(0, "p");
|
|
1196
|
+
i0.ɵɵtemplate(1, ExperimentInfoComponent_p_4_ng_container_1_Template, 4, 2, "ng-container", 3);
|
|
1197
|
+
i0.ɵɵtemplate(2, ExperimentInfoComponent_p_4_ng_container_2_Template, 2, 1, "ng-container", 3);
|
|
1198
|
+
i0.ɵɵelementEnd();
|
|
1199
|
+
} if (rf & 2) {
|
|
1200
|
+
const infoField_r3 = ctx.$implicit;
|
|
1201
|
+
i0.ɵɵadvance(1);
|
|
1202
|
+
i0.ɵɵproperty("ngIf", infoField_r3.label);
|
|
1203
|
+
i0.ɵɵadvance(1);
|
|
1204
|
+
i0.ɵɵproperty("ngIf", !infoField_r3.label);
|
|
1205
|
+
} }
|
|
501
1206
|
class ExperimentInfoComponent {
|
|
502
1207
|
constructor(eventDisplay) {
|
|
503
1208
|
this.eventDisplay = eventDisplay;
|
|
@@ -508,19 +1213,47 @@ class ExperimentInfoComponent {
|
|
|
508
1213
|
});
|
|
509
1214
|
}
|
|
510
1215
|
}
|
|
511
|
-
ExperimentInfoComponent.ɵfac =
|
|
512
|
-
ExperimentInfoComponent.ɵcmp = i0.ɵɵ
|
|
513
|
-
i0.ɵɵ
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
1216
|
+
ExperimentInfoComponent.ɵfac = function ExperimentInfoComponent_Factory(t) { return new (t || ExperimentInfoComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1217
|
+
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) {
|
|
1218
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
1219
|
+
i0.ɵɵtemplate(1, ExperimentInfoComponent_a_1_Template, 2, 2, "a", 1);
|
|
1220
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
1221
|
+
i0.ɵɵtemplate(3, ExperimentInfoComponent_p_3_Template, 3, 1, "p", 3);
|
|
1222
|
+
i0.ɵɵtemplate(4, ExperimentInfoComponent_p_4_Template, 3, 2, "p", 4);
|
|
1223
|
+
i0.ɵɵelementEnd()();
|
|
1224
|
+
} if (rf & 2) {
|
|
1225
|
+
i0.ɵɵadvance(1);
|
|
1226
|
+
i0.ɵɵproperty("ngIf", ctx.url);
|
|
1227
|
+
i0.ɵɵadvance(2);
|
|
1228
|
+
i0.ɵɵproperty("ngIf", ctx.tagline);
|
|
1229
|
+
i0.ɵɵadvance(1);
|
|
1230
|
+
i0.ɵɵproperty("ngForOf", ctx.experimentInfo);
|
|
1231
|
+
} }, 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}}"] });
|
|
1232
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentInfoComponent, [{
|
|
1233
|
+
type: Component,
|
|
1234
|
+
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"] }]
|
|
1235
|
+
}], function () { return [{ type: EventDisplayService }]; }, { url: [{
|
|
1236
|
+
type: Input
|
|
1237
|
+
}], logo: [{
|
|
1238
|
+
type: Input
|
|
1239
|
+
}], tagline: [{
|
|
1240
|
+
type: Input
|
|
1241
|
+
}] }); })();
|
|
523
1242
|
|
|
1243
|
+
function InfoPanelOverlayComponent_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
1244
|
+
i0.ɵɵelementStart(0, "li", 2);
|
|
1245
|
+
i0.ɵɵtext(1, " No actions. ");
|
|
1246
|
+
i0.ɵɵelementEnd();
|
|
1247
|
+
} }
|
|
1248
|
+
function InfoPanelOverlayComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
1249
|
+
i0.ɵɵelementStart(0, "li", 2);
|
|
1250
|
+
i0.ɵɵtext(1);
|
|
1251
|
+
i0.ɵɵelementEnd();
|
|
1252
|
+
} if (rf & 2) {
|
|
1253
|
+
const action_r2 = ctx.$implicit;
|
|
1254
|
+
i0.ɵɵadvance(1);
|
|
1255
|
+
i0.ɵɵtextInterpolate1(" ", action_r2, " ");
|
|
1256
|
+
} }
|
|
524
1257
|
/**
|
|
525
1258
|
* Component for displaying information from the logger
|
|
526
1259
|
*/
|
|
@@ -543,14 +1276,29 @@ class InfoPanelOverlayComponent {
|
|
|
543
1276
|
this.actionsList = this.eventDisplay.getInfoLogger().getInfoLoggerList();
|
|
544
1277
|
}
|
|
545
1278
|
}
|
|
546
|
-
InfoPanelOverlayComponent.ɵfac =
|
|
547
|
-
InfoPanelOverlayComponent.ɵcmp = i0.ɵɵ
|
|
548
|
-
i0.ɵɵ
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
1279
|
+
InfoPanelOverlayComponent.ɵfac = function InfoPanelOverlayComponent_Factory(t) { return new (t || InfoPanelOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1280
|
+
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) {
|
|
1281
|
+
i0.ɵɵelementStart(0, "app-overlay", 0)(1, "ul", 1)(2, "li", 2);
|
|
1282
|
+
i0.ɵɵtext(3);
|
|
1283
|
+
i0.ɵɵelementEnd();
|
|
1284
|
+
i0.ɵɵtemplate(4, InfoPanelOverlayComponent_li_4_Template, 2, 0, "li", 3);
|
|
1285
|
+
i0.ɵɵtemplate(5, InfoPanelOverlayComponent_li_5_Template, 2, 1, "li", 4);
|
|
1286
|
+
i0.ɵɵelementEnd()();
|
|
1287
|
+
} if (rf & 2) {
|
|
1288
|
+
i0.ɵɵproperty("resizable", true)("active", ctx.showInfoPanel);
|
|
1289
|
+
i0.ɵɵadvance(3);
|
|
1290
|
+
i0.ɵɵtextInterpolate1(" Phoenix Version: ", ctx.version, " ");
|
|
1291
|
+
i0.ɵɵadvance(1);
|
|
1292
|
+
i0.ɵɵproperty("ngIf", ctx.actionsList.length === 0);
|
|
1293
|
+
i0.ɵɵadvance(1);
|
|
1294
|
+
i0.ɵɵproperty("ngForOf", ctx.actionsList);
|
|
1295
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, OverlayComponent], styles: [".list-group-item[_ngcontent-%COMP%]{font-size:.8rem;padding:.5rem 1rem}"] });
|
|
1296
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelOverlayComponent, [{
|
|
1297
|
+
type: Component,
|
|
1298
|
+
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"] }]
|
|
1299
|
+
}], function () { return [{ type: EventDisplayService }]; }, { showInfoPanel: [{
|
|
1300
|
+
type: Input
|
|
1301
|
+
}] }); })();
|
|
554
1302
|
|
|
555
1303
|
/**
|
|
556
1304
|
* Component for toggling info panel overlay
|
|
@@ -588,16 +1336,23 @@ class InfoPanelComponent {
|
|
|
588
1336
|
this.overlayWindow.instance.showInfoPanel = this.showInfoPanel;
|
|
589
1337
|
}
|
|
590
1338
|
}
|
|
591
|
-
InfoPanelComponent.ɵfac =
|
|
592
|
-
InfoPanelComponent.ɵcmp = i0.ɵɵ
|
|
593
|
-
i0.ɵɵ
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
1339
|
+
InfoPanelComponent.ɵfac = function InfoPanelComponent_Factory(t) { return new (t || InfoPanelComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1340
|
+
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) {
|
|
1341
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1342
|
+
i0.ɵɵlistener("click", function InfoPanelComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1343
|
+
i0.ɵɵelementEnd();
|
|
1344
|
+
} if (rf & 2) {
|
|
1345
|
+
i0.ɵɵproperty("active", ctx.showInfoPanel);
|
|
1346
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1347
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelComponent, [{
|
|
1348
|
+
type: Component,
|
|
1349
|
+
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" }]
|
|
1350
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
597
1351
|
|
|
598
1352
|
var EventDataFormat;
|
|
599
1353
|
(function (EventDataFormat) {
|
|
600
1354
|
EventDataFormat["JSON"] = "JSON";
|
|
1355
|
+
EventDataFormat["EDM4HEPJSON"] = "EDM4HEPJSON";
|
|
601
1356
|
EventDataFormat["JIVEXML"] = "JIVEXML";
|
|
602
1357
|
EventDataFormat["IG"] = "IG";
|
|
603
1358
|
EventDataFormat["ZIP"] = "ZIP";
|
|
@@ -611,6 +1366,37 @@ class ImportOption {
|
|
|
611
1366
|
}
|
|
612
1367
|
}
|
|
613
1368
|
|
|
1369
|
+
function IOOptionsDialogComponent_div_4_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
1370
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
1371
|
+
i0.ɵɵelementContainerStart(0);
|
|
1372
|
+
i0.ɵɵelementStart(1, "input", 28, 29);
|
|
1373
|
+
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)); });
|
|
1374
|
+
i0.ɵɵelementEnd();
|
|
1375
|
+
i0.ɵɵelementStart(3, "button", 8);
|
|
1376
|
+
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()); });
|
|
1377
|
+
i0.ɵɵelement(4, "img", 30);
|
|
1378
|
+
i0.ɵɵtext(5);
|
|
1379
|
+
i0.ɵɵelementEnd();
|
|
1380
|
+
i0.ɵɵelementContainerEnd();
|
|
1381
|
+
} if (rf & 2) {
|
|
1382
|
+
const eventDataImportOption_r7 = ctx.$implicit;
|
|
1383
|
+
i0.ɵɵadvance(1);
|
|
1384
|
+
i0.ɵɵproperty("accept", eventDataImportOption_r7.accept);
|
|
1385
|
+
i0.ɵɵadvance(4);
|
|
1386
|
+
i0.ɵɵtextInterpolate1(" Load ", eventDataImportOption_r7.fileType, " ");
|
|
1387
|
+
} }
|
|
1388
|
+
function IOOptionsDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1389
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 4)(2, "b");
|
|
1390
|
+
i0.ɵɵtext(3, "Event data");
|
|
1391
|
+
i0.ɵɵelementEnd()();
|
|
1392
|
+
i0.ɵɵelementStart(4, "div", 5);
|
|
1393
|
+
i0.ɵɵtemplate(5, IOOptionsDialogComponent_div_4_ng_container_5_Template, 6, 2, "ng-container", 27);
|
|
1394
|
+
i0.ɵɵelementEnd()();
|
|
1395
|
+
} if (rf & 2) {
|
|
1396
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1397
|
+
i0.ɵɵadvance(5);
|
|
1398
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.eventDataOptionsWithHandler);
|
|
1399
|
+
} }
|
|
614
1400
|
class IOOptionsDialogComponent {
|
|
615
1401
|
constructor(eventDisplay, dialogRef) {
|
|
616
1402
|
this.eventDisplay = eventDisplay;
|
|
@@ -618,6 +1404,7 @@ class IOOptionsDialogComponent {
|
|
|
618
1404
|
this.eventDataImportOptions = [EventDataFormat.JSON];
|
|
619
1405
|
this.supportedEventDataFormats = [
|
|
620
1406
|
new ImportOption(EventDataFormat.JSON, '.json', this.handleJSONEventDataInput.bind(this), 'application/json'),
|
|
1407
|
+
new ImportOption(EventDataFormat.EDM4HEPJSON, '.edm4hep.json', this.handleEDM4HEPJSONEventDataInput.bind(this), 'application/json'),
|
|
621
1408
|
new ImportOption(EventDataFormat.JIVEXML, '.xml', this.handleJiveXMLDataInput.bind(this), 'text/xml'),
|
|
622
1409
|
new ImportOption(EventDataFormat.ZIP, '.zip', this.handleZipEventDataInput.bind(this), '.zip'),
|
|
623
1410
|
new ImportOption(EventDataFormat.IG, '.ig', this.handleIgEventDataInput.bind(this), '.ig'),
|
|
@@ -657,6 +1444,16 @@ class IOOptionsDialogComponent {
|
|
|
657
1444
|
};
|
|
658
1445
|
this.handleFileInput(files[0], 'json', callback);
|
|
659
1446
|
}
|
|
1447
|
+
handleEDM4HEPJSONEventDataInput(files) {
|
|
1448
|
+
const callback = (content) => {
|
|
1449
|
+
const json = typeof content === 'string' ? JSON.parse(content) : content;
|
|
1450
|
+
const edm4hepJsonLoader = new Edm4hepJsonLoader();
|
|
1451
|
+
edm4hepJsonLoader.setRawEventData(json);
|
|
1452
|
+
edm4hepJsonLoader.processEventData();
|
|
1453
|
+
this.eventDisplay.parsePhoenixEvents(edm4hepJsonLoader.getEventData());
|
|
1454
|
+
};
|
|
1455
|
+
this.handleFileInput(files[0], 'json', callback);
|
|
1456
|
+
}
|
|
660
1457
|
handleJiveXMLDataInput(files) {
|
|
661
1458
|
const callback = (content) => {
|
|
662
1459
|
const jiveloader = new JiveXMLLoader();
|
|
@@ -772,14 +1569,84 @@ class IOOptionsDialogComponent {
|
|
|
772
1569
|
this.eventDisplay.exportToOBJ();
|
|
773
1570
|
}
|
|
774
1571
|
}
|
|
775
|
-
IOOptionsDialogComponent.ɵfac =
|
|
776
|
-
IOOptionsDialogComponent.ɵcmp = i0.ɵɵ
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1572
|
+
IOOptionsDialogComponent.ɵfac = function IOOptionsDialogComponent_Factory(t) { return new (t || IOOptionsDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
|
|
1573
|
+
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) {
|
|
1574
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
1575
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
|
|
1576
|
+
i0.ɵɵtext(2, "Import and export");
|
|
1577
|
+
i0.ɵɵelementEnd();
|
|
1578
|
+
i0.ɵɵelementStart(3, "div", 2);
|
|
1579
|
+
i0.ɵɵtemplate(4, IOOptionsDialogComponent_div_4_Template, 6, 1, "div", 3);
|
|
1580
|
+
i0.ɵɵelementStart(5, "p", 4)(6, "b");
|
|
1581
|
+
i0.ɵɵtext(7, "Geometries");
|
|
1582
|
+
i0.ɵɵelementEnd()();
|
|
1583
|
+
i0.ɵɵelementStart(8, "div", 5)(9, "input", 6, 7);
|
|
1584
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_9_listener($event) { return ctx.handleOBJInput($event.target.files); });
|
|
1585
|
+
i0.ɵɵelementEnd();
|
|
1586
|
+
i0.ɵɵelementStart(11, "button", 8);
|
|
1587
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r12); const _r1 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r1.click()); });
|
|
1588
|
+
i0.ɵɵelement(12, "img", 9);
|
|
1589
|
+
i0.ɵɵtext(13, " Load .obj ");
|
|
1590
|
+
i0.ɵɵelementEnd();
|
|
1591
|
+
i0.ɵɵelementStart(14, "input", 10, 11);
|
|
1592
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_14_listener($event) { return ctx.handleGLTFInput($event.target.files); });
|
|
1593
|
+
i0.ɵɵelementEnd();
|
|
1594
|
+
i0.ɵɵelementStart(16, "button", 8);
|
|
1595
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r12); const _r2 = i0.ɵɵreference(15); return i0.ɵɵresetView(_r2.click()); });
|
|
1596
|
+
i0.ɵɵelement(17, "img", 12);
|
|
1597
|
+
i0.ɵɵtext(18, " Load .gltf ");
|
|
1598
|
+
i0.ɵɵelementEnd();
|
|
1599
|
+
i0.ɵɵelementStart(19, "input", 13, 14);
|
|
1600
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_19_listener($event) { return ctx.handleROOTInput($event.target.files); });
|
|
1601
|
+
i0.ɵɵelementEnd();
|
|
1602
|
+
i0.ɵɵelementStart(21, "button", 8);
|
|
1603
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r12); const _r3 = i0.ɵɵreference(20); return i0.ɵɵresetView(_r3.click()); });
|
|
1604
|
+
i0.ɵɵelement(22, "img", 15);
|
|
1605
|
+
i0.ɵɵtext(23, " Load .root ");
|
|
1606
|
+
i0.ɵɵelementEnd();
|
|
1607
|
+
i0.ɵɵelementStart(24, "input", 16, 17);
|
|
1608
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_24_listener($event) { return ctx.handleRootJSONInput($event.target.files); });
|
|
1609
|
+
i0.ɵɵelementEnd();
|
|
1610
|
+
i0.ɵɵelementStart(26, "button", 8);
|
|
1611
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r12); const _r4 = i0.ɵɵreference(25); return i0.ɵɵresetView(_r4.click()); });
|
|
1612
|
+
i0.ɵɵelement(27, "img", 15);
|
|
1613
|
+
i0.ɵɵtext(28, " Load .json.gz ");
|
|
1614
|
+
i0.ɵɵelementEnd()();
|
|
1615
|
+
i0.ɵɵelementStart(29, "p", 4)(30, "b");
|
|
1616
|
+
i0.ɵɵtext(31, "Scene");
|
|
1617
|
+
i0.ɵɵelementEnd()();
|
|
1618
|
+
i0.ɵɵelementStart(32, "div", 5)(33, "button", 18);
|
|
1619
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_33_listener() { return ctx.saveScene(); });
|
|
1620
|
+
i0.ɵɵelement(34, "img", 19);
|
|
1621
|
+
i0.ɵɵtext(35, " Save scene ");
|
|
1622
|
+
i0.ɵɵelementEnd();
|
|
1623
|
+
i0.ɵɵelementStart(36, "input", 20, 21);
|
|
1624
|
+
i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_36_listener($event) { return ctx.handlePhoenixInput($event.target.files); });
|
|
1625
|
+
i0.ɵɵelementEnd();
|
|
1626
|
+
i0.ɵɵelementStart(38, "button", 22);
|
|
1627
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_38_listener() { i0.ɵɵrestoreView(_r12); const _r5 = i0.ɵɵreference(37); return i0.ɵɵresetView(_r5.click()); });
|
|
1628
|
+
i0.ɵɵelement(39, "img", 23);
|
|
1629
|
+
i0.ɵɵtext(40, " Load scene ");
|
|
1630
|
+
i0.ɵɵelementEnd();
|
|
1631
|
+
i0.ɵɵelementStart(41, "button", 24);
|
|
1632
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_41_listener() { return ctx.exportOBJ(); });
|
|
1633
|
+
i0.ɵɵelement(42, "img", 9);
|
|
1634
|
+
i0.ɵɵtext(43, " Save OBJ ");
|
|
1635
|
+
i0.ɵɵelementEnd()()();
|
|
1636
|
+
i0.ɵɵelementStart(44, "div", 25)(45, "button", 26);
|
|
1637
|
+
i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_45_listener() { return ctx.onClose(); });
|
|
1638
|
+
i0.ɵɵtext(46, " Close ");
|
|
1639
|
+
i0.ɵɵelementEnd()()();
|
|
1640
|
+
} if (rf & 2) {
|
|
1641
|
+
i0.ɵɵadvance(4);
|
|
1642
|
+
i0.ɵɵproperty("ngIf", ctx.eventDataImportOptions.length > 0);
|
|
1643
|
+
} }, 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}"] });
|
|
1644
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IOOptionsDialogComponent, [{
|
|
1645
|
+
type: Component,
|
|
1646
|
+
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"] }]
|
|
1647
|
+
}], function () { return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }]; }, { eventDataImportOptions: [{
|
|
1648
|
+
type: Input
|
|
1649
|
+
}] }); })();
|
|
783
1650
|
|
|
784
1651
|
class IoOptionsComponent {
|
|
785
1652
|
constructor(dialog) {
|
|
@@ -794,14 +1661,20 @@ class IoOptionsComponent {
|
|
|
794
1661
|
this.eventDataImportOptions;
|
|
795
1662
|
}
|
|
796
1663
|
}
|
|
797
|
-
IoOptionsComponent.ɵfac =
|
|
798
|
-
IoOptionsComponent.ɵcmp = i0.ɵɵ
|
|
799
|
-
i0.ɵɵ
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1664
|
+
IoOptionsComponent.ɵfac = function IoOptionsComponent_Factory(t) { return new (t || IoOptionsComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
1665
|
+
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) {
|
|
1666
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1667
|
+
i0.ɵɵlistener("click", function IoOptionsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openIODialog(); });
|
|
1668
|
+
i0.ɵɵelementEnd();
|
|
1669
|
+
} if (rf & 2) {
|
|
1670
|
+
i0.ɵɵproperty("active", false);
|
|
1671
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1672
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IoOptionsComponent, [{
|
|
1673
|
+
type: Component,
|
|
1674
|
+
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" }]
|
|
1675
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, { eventDataImportOptions: [{
|
|
1676
|
+
type: Input
|
|
1677
|
+
}] }); })();
|
|
805
1678
|
|
|
806
1679
|
class MainViewToggleComponent {
|
|
807
1680
|
constructor(eventDisplay) {
|
|
@@ -815,12 +1688,18 @@ class MainViewToggleComponent {
|
|
|
815
1688
|
.toggleOrthographicView(this.orthographicView);
|
|
816
1689
|
}
|
|
817
1690
|
}
|
|
818
|
-
MainViewToggleComponent.ɵfac =
|
|
819
|
-
MainViewToggleComponent.ɵcmp = i0.ɵɵ
|
|
820
|
-
i0.ɵɵ
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
1691
|
+
MainViewToggleComponent.ɵfac = function MainViewToggleComponent_Factory(t) { return new (t || MainViewToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1692
|
+
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) {
|
|
1693
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1694
|
+
i0.ɵɵlistener("click", function MainViewToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.switchMainView(); });
|
|
1695
|
+
i0.ɵɵelementEnd();
|
|
1696
|
+
} if (rf & 2) {
|
|
1697
|
+
i0.ɵɵproperty("icon", ctx.orthographicView ? "perspective" : "orthographic")("matTooltip", "Switch to " + (ctx.orthographicView ? "perspective" : "orthographic") + " view");
|
|
1698
|
+
} }, dependencies: [i2$3.MatTooltip, MenuToggleComponent] });
|
|
1699
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainViewToggleComponent, [{
|
|
1700
|
+
type: Component,
|
|
1701
|
+
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" }]
|
|
1702
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
824
1703
|
|
|
825
1704
|
class ObjectClippingComponent {
|
|
826
1705
|
constructor(eventDisplay) {
|
|
@@ -830,12 +1709,10 @@ class ObjectClippingComponent {
|
|
|
830
1709
|
stateManager.startClippingAngle.onUpdate((value) => (this.startClippingAngle = value));
|
|
831
1710
|
stateManager.openingClippingAngle.onUpdate((value) => (this.openingClippingAngle = value));
|
|
832
1711
|
}
|
|
833
|
-
changeStartClippingAngle(
|
|
834
|
-
const startingAngle = change.value;
|
|
1712
|
+
changeStartClippingAngle(startingAngle) {
|
|
835
1713
|
this.eventDisplay.getUIManager().rotateStartAngleClipping(startingAngle);
|
|
836
1714
|
}
|
|
837
|
-
changeOpeningClippingAngle(
|
|
838
|
-
const openingAngle = change.value;
|
|
1715
|
+
changeOpeningClippingAngle(openingAngle) {
|
|
839
1716
|
this.eventDisplay.getUIManager().rotateOpeningAngleClipping(openingAngle);
|
|
840
1717
|
}
|
|
841
1718
|
toggleClipping(change) {
|
|
@@ -844,12 +1721,45 @@ class ObjectClippingComponent {
|
|
|
844
1721
|
this.clippingEnabled = value;
|
|
845
1722
|
}
|
|
846
1723
|
}
|
|
847
|
-
ObjectClippingComponent.ɵfac =
|
|
848
|
-
ObjectClippingComponent.ɵcmp = i0.ɵɵ
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
1724
|
+
ObjectClippingComponent.ɵfac = function ObjectClippingComponent_Factory(t) { return new (t || ObjectClippingComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1725
|
+
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) {
|
|
1726
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1727
|
+
i0.ɵɵelementStart(0, "mat-menu", 0, 1)(2, "button", 2);
|
|
1728
|
+
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()); });
|
|
1729
|
+
i0.ɵɵelementStart(3, "mat-checkbox", 3, 4);
|
|
1730
|
+
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); });
|
|
1731
|
+
i0.ɵɵtext(5, " Clipping ");
|
|
1732
|
+
i0.ɵɵelementEnd()();
|
|
1733
|
+
i0.ɵɵelementStart(6, "button", 5);
|
|
1734
|
+
i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_6_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(9); return i0.ɵɵresetView(_r2.focus()); });
|
|
1735
|
+
i0.ɵɵelementStart(7, "mat-slider", 6)(8, "input", 7, 8);
|
|
1736
|
+
i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_8_listener($event) { return ctx.changeStartClippingAngle($event); });
|
|
1737
|
+
i0.ɵɵelementEnd()();
|
|
1738
|
+
i0.ɵɵtext(10, " Start Angle ");
|
|
1739
|
+
i0.ɵɵelementEnd();
|
|
1740
|
+
i0.ɵɵelementStart(11, "button", 5);
|
|
1741
|
+
i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_11_listener() { i0.ɵɵrestoreView(_r4); const _r3 = i0.ɵɵreference(14); return i0.ɵɵresetView(_r3.focus()); });
|
|
1742
|
+
i0.ɵɵelementStart(12, "mat-slider", 6)(13, "input", 7, 9);
|
|
1743
|
+
i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_13_listener($event) { return ctx.changeOpeningClippingAngle($event); });
|
|
1744
|
+
i0.ɵɵelementEnd()();
|
|
1745
|
+
i0.ɵɵtext(15, " Opening Angle ");
|
|
1746
|
+
i0.ɵɵelementEnd()();
|
|
1747
|
+
i0.ɵɵelement(16, "app-menu-toggle", 10);
|
|
1748
|
+
} if (rf & 2) {
|
|
1749
|
+
const _r0 = i0.ɵɵreference(1);
|
|
1750
|
+
i0.ɵɵadvance(3);
|
|
1751
|
+
i0.ɵɵproperty("checked", ctx.clippingEnabled);
|
|
1752
|
+
i0.ɵɵadvance(5);
|
|
1753
|
+
i0.ɵɵproperty("value", ctx.startClippingAngle);
|
|
1754
|
+
i0.ɵɵadvance(5);
|
|
1755
|
+
i0.ɵɵproperty("value", ctx.openingClippingAngle);
|
|
1756
|
+
i0.ɵɵadvance(3);
|
|
1757
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", ctx.clippingEnabled);
|
|
1758
|
+
} }, dependencies: [i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i2$1.MatSlider, i2$1.MatSliderThumb, i4$1.MatCheckbox, MenuToggleComponent], styles: [".slider-btn[_ngcontent-%COMP%]{overflow:visible}mat-slider[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:.75rem}"] });
|
|
1759
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectClippingComponent, [{
|
|
1760
|
+
type: Component,
|
|
1761
|
+
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"] }]
|
|
1762
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
853
1763
|
|
|
854
1764
|
/**
|
|
855
1765
|
* Pipe for transforming selected object attributes to a better format.
|
|
@@ -873,15 +1783,38 @@ class AttributePipe {
|
|
|
873
1783
|
return transformedValue;
|
|
874
1784
|
}
|
|
875
1785
|
}
|
|
876
|
-
AttributePipe.ɵfac =
|
|
877
|
-
AttributePipe.ɵpipe = i0.ɵɵ
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1786
|
+
AttributePipe.ɵfac = function AttributePipe_Factory(t) { return new (t || AttributePipe)(); };
|
|
1787
|
+
AttributePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "attributePipe", type: AttributePipe, pure: true });
|
|
1788
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AttributePipe, [{
|
|
1789
|
+
type: Pipe,
|
|
1790
|
+
args: [{
|
|
1791
|
+
name: 'attributePipe',
|
|
1792
|
+
}]
|
|
1793
|
+
}], null, null); })();
|
|
884
1794
|
|
|
1795
|
+
function ObjectSelectionOverlayComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1796
|
+
i0.ɵɵelementStart(0, "div", 4)(1, "strong");
|
|
1797
|
+
i0.ɵɵtext(2);
|
|
1798
|
+
i0.ɵɵelementEnd();
|
|
1799
|
+
i0.ɵɵtext(3);
|
|
1800
|
+
i0.ɵɵpipe(4, "attributePipe");
|
|
1801
|
+
i0.ɵɵelementEnd();
|
|
1802
|
+
} if (rf & 2) {
|
|
1803
|
+
const attribute_r2 = ctx.$implicit;
|
|
1804
|
+
i0.ɵɵadvance(2);
|
|
1805
|
+
i0.ɵɵtextInterpolate(attribute_r2.attributeName);
|
|
1806
|
+
i0.ɵɵadvance(1);
|
|
1807
|
+
i0.ɵɵtextInterpolate1(" : ", i0.ɵɵpipeBind1(4, 2, attribute_r2.attributeValue), " ");
|
|
1808
|
+
} }
|
|
1809
|
+
function ObjectSelectionOverlayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
1810
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
1811
|
+
i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_div_1_Template, 5, 4, "div", 3);
|
|
1812
|
+
i0.ɵɵelementEnd();
|
|
1813
|
+
} if (rf & 2) {
|
|
1814
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1815
|
+
i0.ɵɵadvance(1);
|
|
1816
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.selectedObject.attributes);
|
|
1817
|
+
} }
|
|
885
1818
|
class ObjectSelectionOverlayComponent {
|
|
886
1819
|
constructor(eventDisplay) {
|
|
887
1820
|
this.eventDisplay = eventDisplay;
|
|
@@ -891,14 +1824,22 @@ class ObjectSelectionOverlayComponent {
|
|
|
891
1824
|
this.eventDisplay.allowSelection(this.selectedObject);
|
|
892
1825
|
}
|
|
893
1826
|
}
|
|
894
|
-
ObjectSelectionOverlayComponent.ɵfac =
|
|
895
|
-
ObjectSelectionOverlayComponent.ɵcmp = i0.ɵɵ
|
|
896
|
-
i0.ɵɵ
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1827
|
+
ObjectSelectionOverlayComponent.ɵfac = function ObjectSelectionOverlayComponent_Factory(t) { return new (t || ObjectSelectionOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1828
|
+
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) {
|
|
1829
|
+
i0.ɵɵelementStart(0, "app-overlay", 0);
|
|
1830
|
+
i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_Template, 2, 1, "div", 1);
|
|
1831
|
+
i0.ɵɵelementEnd();
|
|
1832
|
+
} if (rf & 2) {
|
|
1833
|
+
i0.ɵɵproperty("overlayTitle", ctx.selectedObject.name)("active", !ctx.hiddenSelectedInfo);
|
|
1834
|
+
i0.ɵɵadvance(1);
|
|
1835
|
+
i0.ɵɵproperty("ngIf", ctx.selectedObject.attributes.length > 0);
|
|
1836
|
+
} }, 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}"] });
|
|
1837
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionOverlayComponent, [{
|
|
1838
|
+
type: Component,
|
|
1839
|
+
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"] }]
|
|
1840
|
+
}], function () { return [{ type: EventDisplayService }]; }, { hiddenSelectedInfo: [{
|
|
1841
|
+
type: Input
|
|
1842
|
+
}] }); })();
|
|
902
1843
|
|
|
903
1844
|
class ObjectSelectionComponent {
|
|
904
1845
|
constructor(overlay, eventDisplay) {
|
|
@@ -922,13 +1863,20 @@ class ObjectSelectionComponent {
|
|
|
922
1863
|
this.eventDisplay.enableSelecting(!this.hiddenSelectedInfo);
|
|
923
1864
|
}
|
|
924
1865
|
}
|
|
925
|
-
ObjectSelectionComponent.ɵfac =
|
|
926
|
-
ObjectSelectionComponent.ɵcmp = i0.ɵɵ
|
|
927
|
-
i0.ɵɵ
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1866
|
+
ObjectSelectionComponent.ɵfac = function ObjectSelectionComponent_Factory(t) { return new (t || ObjectSelectionComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1867
|
+
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) {
|
|
1868
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1869
|
+
i0.ɵɵlistener("click", function ObjectSelectionComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1870
|
+
i0.ɵɵelementEnd();
|
|
1871
|
+
} if (rf & 2) {
|
|
1872
|
+
i0.ɵɵproperty("active", !ctx.hiddenSelectedInfo);
|
|
1873
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1874
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionComponent, [{
|
|
1875
|
+
type: Component,
|
|
1876
|
+
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" }]
|
|
1877
|
+
}], function () { return [{ type: i1$1.Overlay }, { type: EventDisplayService }]; }, null); })();
|
|
931
1878
|
|
|
1879
|
+
const _c0$5 = ["overlayWindow"];
|
|
932
1880
|
class OverlayViewWindowComponent {
|
|
933
1881
|
constructor(eventDisplay) {
|
|
934
1882
|
this.eventDisplay = eventDisplay;
|
|
@@ -964,17 +1912,42 @@ class OverlayViewWindowComponent {
|
|
|
964
1912
|
this.transparentBody = !this.transparentBody;
|
|
965
1913
|
}
|
|
966
1914
|
}
|
|
967
|
-
OverlayViewWindowComponent.ɵfac =
|
|
968
|
-
OverlayViewWindowComponent.ɵcmp = i0.ɵɵ
|
|
969
|
-
i0.ɵɵ
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1915
|
+
OverlayViewWindowComponent.ɵfac = function OverlayViewWindowComponent_Factory(t) { return new (t || OverlayViewWindowComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
1916
|
+
OverlayViewWindowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayViewWindowComponent, selectors: [["app-overlay-view-window"]], viewQuery: function OverlayViewWindowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1917
|
+
i0.ɵɵviewQuery(_c0$5, 5);
|
|
1918
|
+
} if (rf & 2) {
|
|
1919
|
+
let _t;
|
|
1920
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayWindow = _t.first);
|
|
1921
|
+
} }, 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) {
|
|
1922
|
+
i0.ɵɵelementStart(0, "app-overlay", 0)(1, "div", 1);
|
|
1923
|
+
i0.ɵɵelement(2, "canvas", 2, 3);
|
|
1924
|
+
i0.ɵɵelementStart(4, "div", 4)(5, "app-menu-toggle", 5);
|
|
1925
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_5_listener() { return ctx.toggleBgTransparency(); });
|
|
1926
|
+
i0.ɵɵelementEnd();
|
|
1927
|
+
i0.ɵɵelementStart(6, "app-menu-toggle", 6);
|
|
1928
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_6_listener() { return ctx.fixOverlayView(); });
|
|
1929
|
+
i0.ɵɵelementEnd();
|
|
1930
|
+
i0.ɵɵelementStart(7, "app-menu-toggle", 7);
|
|
1931
|
+
i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_7_listener() { return ctx.switchOverlayView(); });
|
|
1932
|
+
i0.ɵɵelementEnd()()()();
|
|
1933
|
+
} if (rf & 2) {
|
|
1934
|
+
i0.ɵɵproperty("resizable", true)("transparentBody", ctx.transparentBody)("active", ctx.showOverlay);
|
|
1935
|
+
i0.ɵɵadvance(2);
|
|
1936
|
+
i0.ɵɵproperty("hidden", !ctx.showOverlay);
|
|
1937
|
+
i0.ɵɵadvance(4);
|
|
1938
|
+
i0.ɵɵproperty("matTooltip", (ctx.overlayViewFixed ? "Restore" : "Fix") + " overlay view")("active", ctx.overlayViewFixed);
|
|
1939
|
+
i0.ɵɵadvance(1);
|
|
1940
|
+
i0.ɵɵproperty("icon", ctx.orthographicView ? "orthographic" : "perspective")("matTooltip", "Switch to " + (ctx.orthographicView ? "orthographic" : "perspective") + " view");
|
|
1941
|
+
} }, 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}"] });
|
|
1942
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewWindowComponent, [{
|
|
1943
|
+
type: Component,
|
|
1944
|
+
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"] }]
|
|
1945
|
+
}], function () { return [{ type: EventDisplayService }]; }, { showOverlay: [{
|
|
1946
|
+
type: Input
|
|
1947
|
+
}], overlayWindow: [{
|
|
1948
|
+
type: ViewChild,
|
|
1949
|
+
args: ['overlayWindow']
|
|
1950
|
+
}] }); })();
|
|
978
1951
|
|
|
979
1952
|
class OverlayViewComponent {
|
|
980
1953
|
constructor(overlay) {
|
|
@@ -995,13 +1968,67 @@ class OverlayViewComponent {
|
|
|
995
1968
|
this.overlayWindow.instance.showOverlay = this.showOverlay;
|
|
996
1969
|
}
|
|
997
1970
|
}
|
|
998
|
-
OverlayViewComponent.ɵfac =
|
|
999
|
-
OverlayViewComponent.ɵcmp = i0.ɵɵ
|
|
1000
|
-
i0.ɵɵ
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1971
|
+
OverlayViewComponent.ɵfac = function OverlayViewComponent_Factory(t) { return new (t || OverlayViewComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
|
|
1972
|
+
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) {
|
|
1973
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
1974
|
+
i0.ɵɵlistener("click", function OverlayViewComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
|
|
1975
|
+
i0.ɵɵelementEnd();
|
|
1976
|
+
} if (rf & 2) {
|
|
1977
|
+
i0.ɵɵproperty("active", ctx.showOverlay);
|
|
1978
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
1979
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewComponent, [{
|
|
1980
|
+
type: Component,
|
|
1981
|
+
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" }]
|
|
1982
|
+
}], function () { return [{ type: i1$1.Overlay }]; }, null); })();
|
|
1004
1983
|
|
|
1984
|
+
function TreeMenuItemComponent_ng_container_0_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1985
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1986
|
+
i0.ɵɵelementStart(0, "button", 7);
|
|
1987
|
+
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); });
|
|
1988
|
+
i0.ɵɵelementStart(1, "mat-icon", 8);
|
|
1989
|
+
i0.ɵɵtext(2);
|
|
1990
|
+
i0.ɵɵelementEnd()();
|
|
1991
|
+
} if (rf & 2) {
|
|
1992
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1993
|
+
i0.ɵɵadvance(2);
|
|
1994
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.isExpanded ? "expand_more" : "chevron_right", " ");
|
|
1995
|
+
} }
|
|
1996
|
+
function TreeMenuItemComponent_ng_container_0_li_7_Template(rf, ctx) { if (rf & 1) {
|
|
1997
|
+
i0.ɵɵelementStart(0, "li");
|
|
1998
|
+
i0.ɵɵelement(1, "app-tree-menu-item", 9);
|
|
1999
|
+
i0.ɵɵelementEnd();
|
|
2000
|
+
} if (rf & 2) {
|
|
2001
|
+
const node_r5 = ctx.$implicit;
|
|
2002
|
+
i0.ɵɵadvance(1);
|
|
2003
|
+
i0.ɵɵproperty("node", node_r5);
|
|
2004
|
+
} }
|
|
2005
|
+
const _c0$4 = function (a0) { return { visible: a0 }; };
|
|
2006
|
+
function TreeMenuItemComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
2007
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
2008
|
+
i0.ɵɵelementContainerStart(0);
|
|
2009
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
2010
|
+
i0.ɵɵtemplate(2, TreeMenuItemComponent_ng_container_0_button_2_Template, 3, 1, "button", 2);
|
|
2011
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
2012
|
+
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)); });
|
|
2013
|
+
i0.ɵɵtext(4);
|
|
2014
|
+
i0.ɵɵelementEnd()();
|
|
2015
|
+
i0.ɵɵelementStart(5, "ul", 4)(6, "div", 5);
|
|
2016
|
+
i0.ɵɵtemplate(7, TreeMenuItemComponent_ng_container_0_li_7_Template, 2, 1, "li", 6);
|
|
2017
|
+
i0.ɵɵelementEnd()();
|
|
2018
|
+
i0.ɵɵelementContainerEnd();
|
|
2019
|
+
} if (rf & 2) {
|
|
2020
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
2021
|
+
i0.ɵɵadvance(1);
|
|
2022
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$4, ctx_r0.visible));
|
|
2023
|
+
i0.ɵɵadvance(1);
|
|
2024
|
+
i0.ɵɵproperty("ngIf", ctx_r0.node.children);
|
|
2025
|
+
i0.ɵɵadvance(2);
|
|
2026
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.node.name, " ");
|
|
2027
|
+
i0.ɵɵadvance(1);
|
|
2028
|
+
i0.ɵɵproperty("hidden", !ctx_r0.isExpanded);
|
|
2029
|
+
i0.ɵɵadvance(2);
|
|
2030
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.node.children);
|
|
2031
|
+
} }
|
|
1005
2032
|
class TreeMenuItemComponent {
|
|
1006
2033
|
constructor(eventDisplay) {
|
|
1007
2034
|
this.eventDisplay = eventDisplay;
|
|
@@ -1017,17 +2044,26 @@ class TreeMenuItemComponent {
|
|
|
1017
2044
|
this.children.forEach((child) => child.toggleVisibility(visible));
|
|
1018
2045
|
}
|
|
1019
2046
|
}
|
|
1020
|
-
TreeMenuItemComponent.ɵfac =
|
|
1021
|
-
TreeMenuItemComponent.ɵcmp = i0.ɵɵ
|
|
1022
|
-
i0.ɵɵ
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
2047
|
+
TreeMenuItemComponent.ɵfac = function TreeMenuItemComponent_Factory(t) { return new (t || TreeMenuItemComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2048
|
+
TreeMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeMenuItemComponent, selectors: [["app-tree-menu-item"]], viewQuery: function TreeMenuItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2049
|
+
i0.ɵɵviewQuery(TreeMenuItemComponent, 5);
|
|
2050
|
+
} if (rf & 2) {
|
|
2051
|
+
let _t;
|
|
2052
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);
|
|
2053
|
+
} }, 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) {
|
|
2054
|
+
i0.ɵɵtemplate(0, TreeMenuItemComponent_ng_container_0_Template, 8, 7, "ng-container", 0);
|
|
2055
|
+
} if (rf & 2) {
|
|
2056
|
+
i0.ɵɵproperty("ngIf", ctx.node);
|
|
2057
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$2.MatIconButton, i4$2.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}"] });
|
|
2058
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuItemComponent, [{
|
|
2059
|
+
type: Component,
|
|
2060
|
+
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"] }]
|
|
2061
|
+
}], function () { return [{ type: EventDisplayService }]; }, { children: [{
|
|
2062
|
+
type: ViewChildren,
|
|
2063
|
+
args: [TreeMenuItemComponent]
|
|
2064
|
+
}], node: [{
|
|
2065
|
+
type: Input
|
|
2066
|
+
}] }); })();
|
|
1031
2067
|
|
|
1032
2068
|
class TreeMenuComponent {
|
|
1033
2069
|
constructor() {
|
|
@@ -1090,13 +2126,44 @@ class TreeMenuComponent {
|
|
|
1090
2126
|
}
|
|
1091
2127
|
ngOnInit() { }
|
|
1092
2128
|
}
|
|
1093
|
-
TreeMenuComponent.ɵfac =
|
|
1094
|
-
TreeMenuComponent.ɵcmp = i0.ɵɵ
|
|
1095
|
-
i0.ɵɵ
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
2129
|
+
TreeMenuComponent.ɵfac = function TreeMenuComponent_Factory(t) { return new (t || TreeMenuComponent)(); };
|
|
2130
|
+
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) {
|
|
2131
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
2132
|
+
i0.ɵɵelement(2, "app-tree-menu-item", 2);
|
|
2133
|
+
i0.ɵɵelementEnd()();
|
|
2134
|
+
} if (rf & 2) {
|
|
2135
|
+
i0.ɵɵadvance(2);
|
|
2136
|
+
i0.ɵɵproperty("node", ctx.rootNode);
|
|
2137
|
+
} }, 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}"] });
|
|
2138
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuComponent, [{
|
|
2139
|
+
type: Component,
|
|
2140
|
+
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"] }]
|
|
2141
|
+
}], function () { return []; }, null); })();
|
|
1099
2142
|
|
|
2143
|
+
function ViewOptionsComponent_button_10__svg_svg_1_Template(rf, ctx) { if (rf & 1) {
|
|
2144
|
+
i0.ɵɵnamespaceSVG();
|
|
2145
|
+
i0.ɵɵelementStart(0, "svg", 8);
|
|
2146
|
+
i0.ɵɵelement(1, "use");
|
|
2147
|
+
i0.ɵɵelementEnd();
|
|
2148
|
+
} if (rf & 2) {
|
|
2149
|
+
const view_r4 = i0.ɵɵnextContext().$implicit;
|
|
2150
|
+
i0.ɵɵadvance(1);
|
|
2151
|
+
i0.ɵɵattributeInterpolate2("href", "assets/icons/", view_r4.icon, ".svg#", view_r4.icon, "");
|
|
2152
|
+
} }
|
|
2153
|
+
function ViewOptionsComponent_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
2154
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
2155
|
+
i0.ɵɵelementStart(0, "button", 1);
|
|
2156
|
+
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)); });
|
|
2157
|
+
i0.ɵɵtemplate(1, ViewOptionsComponent_button_10__svg_svg_1_Template, 2, 2, "svg", 7);
|
|
2158
|
+
i0.ɵɵtext(2);
|
|
2159
|
+
i0.ɵɵelementEnd();
|
|
2160
|
+
} if (rf & 2) {
|
|
2161
|
+
const view_r4 = ctx.$implicit;
|
|
2162
|
+
i0.ɵɵadvance(1);
|
|
2163
|
+
i0.ɵɵproperty("ngIf", view_r4.icon);
|
|
2164
|
+
i0.ɵɵadvance(1);
|
|
2165
|
+
i0.ɵɵtextInterpolate1(" ", view_r4.name, " ");
|
|
2166
|
+
} }
|
|
1100
2167
|
class ViewOptionsComponent {
|
|
1101
2168
|
constructor(eventDisplay) {
|
|
1102
2169
|
this.eventDisplay = eventDisplay;
|
|
@@ -1117,12 +2184,35 @@ class ViewOptionsComponent {
|
|
|
1117
2184
|
this.eventDisplay.getUIManager().setShowGrid(value);
|
|
1118
2185
|
}
|
|
1119
2186
|
}
|
|
1120
|
-
ViewOptionsComponent.ɵfac =
|
|
1121
|
-
ViewOptionsComponent.ɵcmp = i0.ɵɵ
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
2187
|
+
ViewOptionsComponent.ɵfac = function ViewOptionsComponent_Factory(t) { return new (t || ViewOptionsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2188
|
+
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) {
|
|
2189
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
2190
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0)(2, "button", 1);
|
|
2191
|
+
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()); });
|
|
2192
|
+
i0.ɵɵelementStart(3, "mat-checkbox", 2, 3);
|
|
2193
|
+
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); });
|
|
2194
|
+
i0.ɵɵtext(5, "Show Grid ");
|
|
2195
|
+
i0.ɵɵelementEnd()();
|
|
2196
|
+
i0.ɵɵelementStart(6, "button", 1);
|
|
2197
|
+
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()); });
|
|
2198
|
+
i0.ɵɵelementStart(7, "mat-checkbox", 2, 4);
|
|
2199
|
+
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); });
|
|
2200
|
+
i0.ɵɵtext(9, "Show Axis ");
|
|
2201
|
+
i0.ɵɵelementEnd()();
|
|
2202
|
+
i0.ɵɵtemplate(10, ViewOptionsComponent_button_10_Template, 3, 2, "button", 5);
|
|
2203
|
+
i0.ɵɵelementEnd();
|
|
2204
|
+
i0.ɵɵelement(11, "app-menu-toggle", 6);
|
|
2205
|
+
} if (rf & 2) {
|
|
2206
|
+
const _r0 = i0.ɵɵreference(1);
|
|
2207
|
+
i0.ɵɵadvance(10);
|
|
2208
|
+
i0.ɵɵproperty("ngForOf", ctx.views);
|
|
2209
|
+
i0.ɵɵadvance(1);
|
|
2210
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", false);
|
|
2211
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i4$1.MatCheckbox, MenuToggleComponent], styles: [".view-icon[_ngcontent-%COMP%]{width:1.2rem;height:1.2rem;margin-right:.5rem}"] });
|
|
2212
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewOptionsComponent, [{
|
|
2213
|
+
type: Component,
|
|
2214
|
+
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"] }]
|
|
2215
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1126
2216
|
|
|
1127
2217
|
class VrToggleComponent {
|
|
1128
2218
|
constructor(eventDisplay) {
|
|
@@ -1156,13 +2246,37 @@ class VrToggleComponent {
|
|
|
1156
2246
|
}
|
|
1157
2247
|
}
|
|
1158
2248
|
}
|
|
1159
|
-
VrToggleComponent.ɵfac =
|
|
1160
|
-
VrToggleComponent.ɵcmp = i0.ɵɵ
|
|
1161
|
-
i0.ɵɵ
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
2249
|
+
VrToggleComponent.ɵfac = function VrToggleComponent_Factory(t) { return new (t || VrToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2250
|
+
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) {
|
|
2251
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2252
|
+
i0.ɵɵlistener("click", function VrToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.vrSupported && ctx.toggleVr(); });
|
|
2253
|
+
i0.ɵɵelementEnd();
|
|
2254
|
+
} if (rf & 2) {
|
|
2255
|
+
i0.ɵɵproperty("disabled", !ctx.vrSupported)("active", ctx.vrActive)("tooltip", ctx.vrSupported ? ctx.vrActive ? "Exit VR" : "Enter VR" : "VR not supported");
|
|
2256
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2257
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VrToggleComponent, [{
|
|
2258
|
+
type: Component,
|
|
2259
|
+
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" }]
|
|
2260
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1165
2261
|
|
|
2262
|
+
function ArToggleComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
2263
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2264
|
+
i0.ɵɵelementContainerStart(0);
|
|
2265
|
+
i0.ɵɵelementStart(1, "button", 4);
|
|
2266
|
+
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)); });
|
|
2267
|
+
i0.ɵɵtext(2, "AR with overlays");
|
|
2268
|
+
i0.ɵɵelementEnd();
|
|
2269
|
+
i0.ɵɵelementStart(3, "button", 4);
|
|
2270
|
+
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)); });
|
|
2271
|
+
i0.ɵɵtext(4, "AR without overlays");
|
|
2272
|
+
i0.ɵɵelementEnd();
|
|
2273
|
+
i0.ɵɵelementContainerEnd();
|
|
2274
|
+
} }
|
|
2275
|
+
function ArToggleComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
2276
|
+
i0.ɵɵelementStart(0, "button", 5);
|
|
2277
|
+
i0.ɵɵtext(1, "AR not supported");
|
|
2278
|
+
i0.ɵɵelementEnd();
|
|
2279
|
+
} }
|
|
1166
2280
|
class ArToggleComponent {
|
|
1167
2281
|
constructor(eventDisplay) {
|
|
1168
2282
|
this.eventDisplay = eventDisplay;
|
|
@@ -1196,12 +2310,28 @@ class ArToggleComponent {
|
|
|
1196
2310
|
}
|
|
1197
2311
|
}
|
|
1198
2312
|
}
|
|
1199
|
-
ArToggleComponent.ɵfac =
|
|
1200
|
-
ArToggleComponent.ɵcmp = i0.ɵɵ
|
|
1201
|
-
i0.ɵɵ
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
2313
|
+
ArToggleComponent.ɵfac = function ArToggleComponent_Factory(t) { return new (t || ArToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2314
|
+
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) {
|
|
2315
|
+
i0.ɵɵelementStart(0, "mat-menu", null, 0);
|
|
2316
|
+
i0.ɵɵtemplate(2, ArToggleComponent_ng_container_2_Template, 5, 0, "ng-container", 1);
|
|
2317
|
+
i0.ɵɵtemplate(3, ArToggleComponent_button_3_Template, 2, 0, "button", 2);
|
|
2318
|
+
i0.ɵɵelementEnd();
|
|
2319
|
+
i0.ɵɵelementStart(4, "app-menu-toggle", 3);
|
|
2320
|
+
i0.ɵɵlistener("click", function ArToggleComponent_Template_app_menu_toggle_click_4_listener() { return ctx.arSupported && (ctx.arActive ? ctx.toggleAr() : null); });
|
|
2321
|
+
i0.ɵɵelementEnd();
|
|
2322
|
+
} if (rf & 2) {
|
|
2323
|
+
const _r0 = i0.ɵɵreference(1);
|
|
2324
|
+
i0.ɵɵadvance(2);
|
|
2325
|
+
i0.ɵɵproperty("ngIf", ctx.arSupported);
|
|
2326
|
+
i0.ɵɵadvance(1);
|
|
2327
|
+
i0.ɵɵproperty("ngIf", !ctx.arSupported);
|
|
2328
|
+
i0.ɵɵadvance(1);
|
|
2329
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0)("disabled", !ctx.arSupported)("active", ctx.arActive)("tooltip", ctx.arSupported ? ctx.arActive ? "Exit AR" : "Enter AR" : "AR not supported");
|
|
2330
|
+
} }, dependencies: [i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
|
|
2331
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArToggleComponent, [{
|
|
2332
|
+
type: Component,
|
|
2333
|
+
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" }]
|
|
2334
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1205
2335
|
|
|
1206
2336
|
/**
|
|
1207
2337
|
* Component for adding zoom controls for the main and overlay cameras.
|
|
@@ -1253,12 +2383,24 @@ class ZoomControlsComponent {
|
|
|
1253
2383
|
clearTimeout(this.zoomTimeout);
|
|
1254
2384
|
}
|
|
1255
2385
|
}
|
|
1256
|
-
ZoomControlsComponent.ɵfac =
|
|
1257
|
-
ZoomControlsComponent.ɵcmp = i0.ɵɵ
|
|
1258
|
-
i0.ɵɵ
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
2386
|
+
ZoomControlsComponent.ɵfac = function ZoomControlsComponent_Factory(t) { return new (t || ZoomControlsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2387
|
+
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) {
|
|
2388
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "app-menu-toggle", 1);
|
|
2389
|
+
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(); });
|
|
2390
|
+
i0.ɵɵelementEnd();
|
|
2391
|
+
i0.ɵɵelementStart(2, "app-menu-toggle", 2);
|
|
2392
|
+
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(); });
|
|
2393
|
+
i0.ɵɵelementEnd()();
|
|
2394
|
+
} if (rf & 2) {
|
|
2395
|
+
i0.ɵɵadvance(1);
|
|
2396
|
+
i0.ɵɵproperty("active", false);
|
|
2397
|
+
i0.ɵɵadvance(1);
|
|
2398
|
+
i0.ɵɵproperty("active", false);
|
|
2399
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2400
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ZoomControlsComponent, [{
|
|
2401
|
+
type: Component,
|
|
2402
|
+
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" }]
|
|
2403
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1262
2404
|
|
|
1263
2405
|
class SSModeComponent {
|
|
1264
2406
|
constructor() {
|
|
@@ -1291,12 +2433,98 @@ class SSModeComponent {
|
|
|
1291
2433
|
}
|
|
1292
2434
|
}
|
|
1293
2435
|
}
|
|
1294
|
-
SSModeComponent.ɵfac =
|
|
1295
|
-
SSModeComponent.ɵcmp = i0.ɵɵ
|
|
1296
|
-
i0.ɵɵ
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
2436
|
+
SSModeComponent.ɵfac = function SSModeComponent_Factory(t) { return new (t || SSModeComponent)(); };
|
|
2437
|
+
SSModeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SSModeComponent, selectors: [["app-ss-mode"]], decls: 1, vars: 1, consts: [["tooltip", "Screenshot mode: phoenix will become fullscreen and the menu is suppressed", "icon", "ss-mode", 3, "active", "click"]], template: function SSModeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2438
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2439
|
+
i0.ɵɵlistener("click", function SSModeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleSSMode(); });
|
|
2440
|
+
i0.ɵɵelementEnd();
|
|
2441
|
+
} if (rf & 2) {
|
|
2442
|
+
i0.ɵɵproperty("active", ctx.ssMode);
|
|
2443
|
+
} }, 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 });
|
|
2444
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SSModeComponent, [{
|
|
2445
|
+
type: Component,
|
|
2446
|
+
args: [{ selector: 'app-ss-mode', encapsulation: ViewEncapsulation.None, template: "<app-menu-toggle\n tooltip=\"Screenshot mode: phoenix will become fullscreen and the menu is suppressed\"\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"] }]
|
|
2447
|
+
}], null, null); })();
|
|
2448
|
+
|
|
2449
|
+
function MakePictureComponent_mat_radio_button_14_Template(rf, ctx) { if (rf & 1) {
|
|
2450
|
+
i0.ɵɵelementStart(0, "mat-radio-button", 12);
|
|
2451
|
+
i0.ɵɵtext(1);
|
|
2452
|
+
i0.ɵɵelementEnd();
|
|
2453
|
+
} if (rf & 2) {
|
|
2454
|
+
const fitting_r4 = ctx.$implicit;
|
|
2455
|
+
i0.ɵɵproperty("value", fitting_r4);
|
|
2456
|
+
i0.ɵɵadvance(1);
|
|
2457
|
+
i0.ɵɵtextInterpolate1("", fitting_r4, " ");
|
|
2458
|
+
} }
|
|
2459
|
+
class MakePictureComponent {
|
|
2460
|
+
constructor(eventDisplay) {
|
|
2461
|
+
this.eventDisplay = eventDisplay;
|
|
2462
|
+
this.fittings = ['Crop', 'Stretch'];
|
|
2463
|
+
this.fitting = 'Crop';
|
|
2464
|
+
this.width = 3840;
|
|
2465
|
+
this.height = 2160;
|
|
2466
|
+
}
|
|
2467
|
+
ngOnInit() { }
|
|
2468
|
+
setWidth(value) {
|
|
2469
|
+
this.width = value;
|
|
2470
|
+
}
|
|
2471
|
+
setHeight(value) {
|
|
2472
|
+
this.height = value;
|
|
2473
|
+
}
|
|
2474
|
+
makePicture() {
|
|
2475
|
+
this.eventDisplay.makeScreenShot(this.width, this.height, this.fitting);
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
MakePictureComponent.ɵfac = function MakePictureComponent_Factory(t) { return new (t || MakePictureComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2479
|
+
MakePictureComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MakePictureComponent, selectors: [["app-make-picture"]], decls: 20, vars: 5, consts: [[1, "mat-menu"], ["menu", ""], ["mat-menu-item", "", 1, "size-input", 3, "click"], ["mapInput", "", "type", "number", 3, "value", "change", "click"], ["width", ""], ["height", ""], ["mat-menu-item", "", 3, "click"], [1, "fitting-radios", 3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 1, "make-picture", 3, "click"], ["tooltip", "Creates a picture from the current view: directly saves a png of arbitrary size from the current view", "icon", "png", 3, "matMenuTriggerFor"], ["hidden", "", "id", "screenshotCanvas"], [3, "value"]], template: function MakePictureComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2480
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
2481
|
+
i0.ɵɵelementStart(0, "mat-menu", 0, 1)(2, "button", 2);
|
|
2482
|
+
i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_2_listener($event) { return $event.stopPropagation(); });
|
|
2483
|
+
i0.ɵɵelementStart(3, "label");
|
|
2484
|
+
i0.ɵɵtext(4, "width");
|
|
2485
|
+
i0.ɵɵelementEnd();
|
|
2486
|
+
i0.ɵɵelementStart(5, "input", 3, 4);
|
|
2487
|
+
i0.ɵɵlistener("change", function MakePictureComponent_Template_input_change_5_listener() { i0.ɵɵrestoreView(_r5); const _r1 = i0.ɵɵreference(6); return i0.ɵɵresetView(ctx.setWidth(_r1.value)); })("click", function MakePictureComponent_Template_input_click_5_listener($event) { return $event.stopPropagation(); });
|
|
2488
|
+
i0.ɵɵelementEnd()();
|
|
2489
|
+
i0.ɵɵelementStart(7, "button", 2);
|
|
2490
|
+
i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_7_listener($event) { return $event.stopPropagation(); });
|
|
2491
|
+
i0.ɵɵelementStart(8, "label");
|
|
2492
|
+
i0.ɵɵtext(9, "height");
|
|
2493
|
+
i0.ɵɵelementEnd();
|
|
2494
|
+
i0.ɵɵelementStart(10, "input", 3, 5);
|
|
2495
|
+
i0.ɵɵlistener("change", function MakePictureComponent_Template_input_change_10_listener() { i0.ɵɵrestoreView(_r5); const _r2 = i0.ɵɵreference(11); return i0.ɵɵresetView(ctx.setHeight(_r2.value)); })("click", function MakePictureComponent_Template_input_click_10_listener($event) { return $event.stopPropagation(); });
|
|
2496
|
+
i0.ɵɵelementEnd()();
|
|
2497
|
+
i0.ɵɵelementStart(12, "button", 6);
|
|
2498
|
+
i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_12_listener($event) { return $event.stopPropagation(); });
|
|
2499
|
+
i0.ɵɵelementStart(13, "mat-radio-group", 7);
|
|
2500
|
+
i0.ɵɵlistener("ngModelChange", function MakePictureComponent_Template_mat_radio_group_ngModelChange_13_listener($event) { return ctx.fitting = $event; });
|
|
2501
|
+
i0.ɵɵtemplate(14, MakePictureComponent_mat_radio_button_14_Template, 2, 2, "mat-radio-button", 8);
|
|
2502
|
+
i0.ɵɵelementEnd()();
|
|
2503
|
+
i0.ɵɵelementStart(15, "button", 9);
|
|
2504
|
+
i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_15_listener() { return ctx.makePicture(); });
|
|
2505
|
+
i0.ɵɵtext(16, " Create picture ");
|
|
2506
|
+
i0.ɵɵelementEnd()();
|
|
2507
|
+
i0.ɵɵelement(17, "app-menu-toggle", 10);
|
|
2508
|
+
i0.ɵɵelementStart(18, "div");
|
|
2509
|
+
i0.ɵɵelement(19, "canvas", 11);
|
|
2510
|
+
i0.ɵɵelementEnd();
|
|
2511
|
+
} if (rf & 2) {
|
|
2512
|
+
const _r0 = i0.ɵɵreference(1);
|
|
2513
|
+
i0.ɵɵadvance(5);
|
|
2514
|
+
i0.ɵɵproperty("value", 3840);
|
|
2515
|
+
i0.ɵɵadvance(5);
|
|
2516
|
+
i0.ɵɵproperty("value", 2610);
|
|
2517
|
+
i0.ɵɵadvance(3);
|
|
2518
|
+
i0.ɵɵproperty("ngModel", ctx.fitting);
|
|
2519
|
+
i0.ɵɵadvance(1);
|
|
2520
|
+
i0.ɵɵproperty("ngForOf", ctx.fittings);
|
|
2521
|
+
i0.ɵɵadvance(3);
|
|
2522
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r0);
|
|
2523
|
+
} }, dependencies: [i2.NgForOf, i3.NgControlStatus, i3.NgModel, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i5.MatRadioGroup, i5.MatRadioButton, MenuToggleComponent], styles: [".size-input{background:transparent;color:var(--phoenix-text-color);text-align:center}.size-input label{width:60px}.size-input input{background:transparent;color:var(--phoenix-text-color);width:80px}.make-picture{text-align:center;display:block}.make-picture span{padding:5px 25px;border:2px solid var(--phoenix-text-color);border-radius:8px}\n"], encapsulation: 2 });
|
|
2524
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MakePictureComponent, [{
|
|
2525
|
+
type: Component,
|
|
2526
|
+
args: [{ selector: 'app-make-picture', encapsulation: ViewEncapsulation.None, template: "<mat-menu class=\"mat-menu\" #menu>\n <button mat-menu-item (click)=\"$event.stopPropagation()\" class=\"size-input\">\n <label>width</label>\n <input\n #width\n mapInput\n type=\"number\"\n [value]=\"3840\"\n (change)=\"setWidth(width.value)\"\n (click)=\"$event.stopPropagation()\"\n />\n </button>\n <button mat-menu-item (click)=\"$event.stopPropagation()\" class=\"size-input\">\n <label>height</label>\n <input\n #height\n mapInput\n type=\"number\"\n [value]=\"2610\"\n (change)=\"setHeight(height.value)\"\n (click)=\"$event.stopPropagation()\"\n />\n </button>\n <button mat-menu-item (click)=\"$event.stopPropagation()\">\n <mat-radio-group [(ngModel)]=\"fitting\" class=\"fitting-radios\">\n <mat-radio-button *ngFor=\"let fitting of fittings\" [value]=\"fitting\"\n >{{ fitting }}\n </mat-radio-button>\n </mat-radio-group>\n </button>\n <button mat-menu-item class=\"make-picture\" (click)=\"makePicture()\">\n Create picture\n </button>\n</mat-menu>\n<app-menu-toggle\n [matMenuTriggerFor]=\"menu\"\n tooltip=\"Creates a picture from the current view: directly saves a png of arbitrary size from the current view\"\n icon=\"png\"\n>\n</app-menu-toggle>\n<div>\n <canvas hidden id=\"screenshotCanvas\"></canvas>\n</div>\n", styles: [".size-input{background:transparent;color:var(--phoenix-text-color);text-align:center}.size-input label{width:60px}.size-input input{background:transparent;color:var(--phoenix-text-color);width:80px}.make-picture{text-align:center;display:block}.make-picture span{padding:5px 25px;border:2px solid var(--phoenix-text-color);border-radius:8px}\n"] }]
|
|
2527
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1300
2528
|
|
|
1301
2529
|
class PerformanceToggleComponent {
|
|
1302
2530
|
constructor(eventDisplay) {
|
|
@@ -1308,25 +2536,51 @@ class PerformanceToggleComponent {
|
|
|
1308
2536
|
this.eventDisplay.getThreeManager().setAntialiasing(!this.performanceMode);
|
|
1309
2537
|
}
|
|
1310
2538
|
}
|
|
1311
|
-
PerformanceToggleComponent.ɵfac =
|
|
1312
|
-
PerformanceToggleComponent.ɵcmp = i0.ɵɵ
|
|
1313
|
-
i0.ɵɵ
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
2539
|
+
PerformanceToggleComponent.ɵfac = function PerformanceToggleComponent_Factory(t) { return new (t || PerformanceToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
2540
|
+
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) {
|
|
2541
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2542
|
+
i0.ɵɵlistener("click", function PerformanceToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.togglePerformance(); });
|
|
2543
|
+
i0.ɵɵelementEnd();
|
|
2544
|
+
} if (rf & 2) {
|
|
2545
|
+
i0.ɵɵproperty("active", ctx.performanceMode);
|
|
2546
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2547
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PerformanceToggleComponent, [{
|
|
2548
|
+
type: Component,
|
|
2549
|
+
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" }]
|
|
2550
|
+
}], function () { return [{ type: EventDisplayService }]; }, null); })();
|
|
1317
2551
|
|
|
2552
|
+
const _c0$3 = function (a0) { return { "ui-menu-hidden": a0 }; };
|
|
2553
|
+
const _c1$1 = ["*"];
|
|
1318
2554
|
class UiMenuWrapperComponent {
|
|
1319
2555
|
constructor() {
|
|
1320
2556
|
this.hideUIMenu = false;
|
|
1321
2557
|
}
|
|
1322
2558
|
}
|
|
1323
|
-
UiMenuWrapperComponent.ɵfac =
|
|
1324
|
-
UiMenuWrapperComponent.ɵcmp = i0.ɵɵ
|
|
1325
|
-
i0.ɵɵ
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
2559
|
+
UiMenuWrapperComponent.ɵfac = function UiMenuWrapperComponent_Factory(t) { return new (t || UiMenuWrapperComponent)(); };
|
|
2560
|
+
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) {
|
|
2561
|
+
i0.ɵɵprojectionDef();
|
|
2562
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
2563
|
+
i0.ɵɵlistener("click", function UiMenuWrapperComponent_Template_button_click_1_listener() { return ctx.hideUIMenu = !ctx.hideUIMenu; });
|
|
2564
|
+
i0.ɵɵnamespaceSVG();
|
|
2565
|
+
i0.ɵɵelementStart(2, "svg");
|
|
2566
|
+
i0.ɵɵelement(3, "use", 2);
|
|
2567
|
+
i0.ɵɵelementEnd()();
|
|
2568
|
+
i0.ɵɵnamespaceHTML();
|
|
2569
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
2570
|
+
i0.ɵɵprojection(5);
|
|
2571
|
+
i0.ɵɵelementEnd()();
|
|
2572
|
+
} if (rf & 2) {
|
|
2573
|
+
i0.ɵɵadvance(1);
|
|
2574
|
+
i0.ɵɵproperty("matTooltip", ctx.hideUIMenu ? "Show toolbar" : "Hide toolbar")("ngClass", i0.ɵɵpureFunction1(3, _c0$3, ctx.hideUIMenu));
|
|
2575
|
+
i0.ɵɵadvance(3);
|
|
2576
|
+
i0.ɵɵproperty("hidden", ctx.hideUIMenu);
|
|
2577
|
+
} }, 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}"] });
|
|
2578
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuWrapperComponent, [{
|
|
2579
|
+
type: Component,
|
|
2580
|
+
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"] }]
|
|
2581
|
+
}], null, null); })();
|
|
1329
2582
|
|
|
2583
|
+
const _c0$2 = ["qrcodeCanvas"];
|
|
1330
2584
|
class ShareLinkDialogComponent {
|
|
1331
2585
|
constructor(dialogRef) {
|
|
1332
2586
|
this.dialogRef = dialogRef;
|
|
@@ -1383,15 +2637,98 @@ class ShareLinkDialogComponent {
|
|
|
1383
2637
|
QRCode.toCanvas(this.qrcodeCanvas.nativeElement, link);
|
|
1384
2638
|
}
|
|
1385
2639
|
}
|
|
1386
|
-
ShareLinkDialogComponent.ɵfac =
|
|
1387
|
-
ShareLinkDialogComponent.ɵcmp = i0.ɵɵ
|
|
1388
|
-
i0.ɵɵ
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
2640
|
+
ShareLinkDialogComponent.ɵfac = function ShareLinkDialogComponent_Factory(t) { return new (t || ShareLinkDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
|
|
2641
|
+
ShareLinkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareLinkDialogComponent, selectors: [["app-share-link-dialog"]], viewQuery: function ShareLinkDialogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2642
|
+
i0.ɵɵviewQuery(_c0$2, 5);
|
|
2643
|
+
} if (rf & 2) {
|
|
2644
|
+
let _t;
|
|
2645
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.qrcodeCanvas = _t.first);
|
|
2646
|
+
} }, 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) {
|
|
2647
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
|
|
2648
|
+
i0.ɵɵtext(2, "Create shareable link");
|
|
2649
|
+
i0.ɵɵelementEnd();
|
|
2650
|
+
i0.ɵɵelementStart(3, "div", 2)(4, "h5");
|
|
2651
|
+
i0.ɵɵtext(5, "URL options");
|
|
2652
|
+
i0.ɵɵelementEnd();
|
|
2653
|
+
i0.ɵɵelementStart(6, "div", 3)(7, "label", 4);
|
|
2654
|
+
i0.ɵɵtext(8, "Event data file (URL or path)");
|
|
2655
|
+
i0.ɵɵelementEnd();
|
|
2656
|
+
i0.ɵɵelementStart(9, "input", 5);
|
|
2657
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_9_listener($event) { return ctx.setOptionValue("file", $event.target.value); });
|
|
2658
|
+
i0.ɵɵelementEnd()();
|
|
2659
|
+
i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
|
|
2660
|
+
i0.ɵɵtext(12, "Event data type");
|
|
2661
|
+
i0.ɵɵelementEnd();
|
|
2662
|
+
i0.ɵɵelementStart(13, "select", 8);
|
|
2663
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_select_input_13_listener($event) { return ctx.setOptionValue("type", $event.target.value); });
|
|
2664
|
+
i0.ɵɵelementStart(14, "option", 9);
|
|
2665
|
+
i0.ɵɵtext(15, "Select");
|
|
2666
|
+
i0.ɵɵelementEnd();
|
|
2667
|
+
i0.ɵɵelementStart(16, "option", 10);
|
|
2668
|
+
i0.ɵɵtext(17, "JiveXML");
|
|
2669
|
+
i0.ɵɵelementEnd();
|
|
2670
|
+
i0.ɵɵelementStart(18, "option", 11);
|
|
2671
|
+
i0.ɵɵtext(19, "JSON");
|
|
2672
|
+
i0.ɵɵelementEnd()()();
|
|
2673
|
+
i0.ɵɵelementStart(20, "div", 6)(21, "label", 12);
|
|
2674
|
+
i0.ɵɵtext(22, "Configuration (URL or path)");
|
|
2675
|
+
i0.ɵɵelementEnd();
|
|
2676
|
+
i0.ɵɵelementStart(23, "input", 13);
|
|
2677
|
+
i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_23_listener($event) { return ctx.setOptionValue("config", $event.target.value); });
|
|
2678
|
+
i0.ɵɵelementEnd()();
|
|
2679
|
+
i0.ɵɵelementStart(24, "div", 6)(25, "mat-checkbox", 14);
|
|
2680
|
+
i0.ɵɵlistener("change", function ShareLinkDialogComponent_Template_mat_checkbox_change_25_listener($event) { return ctx.setOptionValue("hideWidgets", $event.checked); });
|
|
2681
|
+
i0.ɵɵtext(26, " Hide all widgets ");
|
|
2682
|
+
i0.ɵɵelementEnd()();
|
|
2683
|
+
i0.ɵɵelementStart(27, "h5");
|
|
2684
|
+
i0.ɵɵtext(28, "Share");
|
|
2685
|
+
i0.ɵɵelementEnd();
|
|
2686
|
+
i0.ɵɵelementStart(29, "div", 15)(30, "span");
|
|
2687
|
+
i0.ɵɵtext(31);
|
|
2688
|
+
i0.ɵɵelementEnd();
|
|
2689
|
+
i0.ɵɵelementStart(32, "button", 16);
|
|
2690
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_32_listener($event) { return ctx.copyText(ctx.shareLink.value, $event.target); });
|
|
2691
|
+
i0.ɵɵtext(33, " COPY ");
|
|
2692
|
+
i0.ɵɵelementEnd()();
|
|
2693
|
+
i0.ɵɵelementStart(34, "h5");
|
|
2694
|
+
i0.ɵɵtext(35, "Embed");
|
|
2695
|
+
i0.ɵɵelementEnd();
|
|
2696
|
+
i0.ɵɵelementStart(36, "div", 15)(37, "span");
|
|
2697
|
+
i0.ɵɵtext(38);
|
|
2698
|
+
i0.ɵɵelementEnd();
|
|
2699
|
+
i0.ɵɵelementStart(39, "button", 16);
|
|
2700
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_39_listener($event) { return ctx.copyText(ctx.embedLink, $event.target); });
|
|
2701
|
+
i0.ɵɵtext(40, " COPY ");
|
|
2702
|
+
i0.ɵɵelementEnd()();
|
|
2703
|
+
i0.ɵɵelementStart(41, "h5");
|
|
2704
|
+
i0.ɵɵtext(42, "QR Code");
|
|
2705
|
+
i0.ɵɵelementEnd();
|
|
2706
|
+
i0.ɵɵelementStart(43, "div", 17);
|
|
2707
|
+
i0.ɵɵelement(44, "canvas", null, 18);
|
|
2708
|
+
i0.ɵɵelementEnd()();
|
|
2709
|
+
i0.ɵɵelementStart(46, "div", 19)(47, "button", 20);
|
|
2710
|
+
i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_47_listener() { return ctx.onClose(); });
|
|
2711
|
+
i0.ɵɵtext(48, "Close");
|
|
2712
|
+
i0.ɵɵelementEnd()()();
|
|
2713
|
+
} if (rf & 2) {
|
|
2714
|
+
i0.ɵɵadvance(9);
|
|
2715
|
+
i0.ɵɵproperty("value", ctx.urlOptions.file);
|
|
2716
|
+
i0.ɵɵadvance(14);
|
|
2717
|
+
i0.ɵɵproperty("value", ctx.urlOptions.config);
|
|
2718
|
+
i0.ɵɵadvance(2);
|
|
2719
|
+
i0.ɵɵproperty("checked", ctx.urlOptions.hideWidgets);
|
|
2720
|
+
i0.ɵɵadvance(6);
|
|
2721
|
+
i0.ɵɵtextInterpolate(ctx.shareLink.value);
|
|
2722
|
+
i0.ɵɵadvance(7);
|
|
2723
|
+
i0.ɵɵtextInterpolate(ctx.embedLink);
|
|
2724
|
+
} }, dependencies: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4$1.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)}"] });
|
|
2725
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkDialogComponent, [{
|
|
2726
|
+
type: Component,
|
|
2727
|
+
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"] }]
|
|
2728
|
+
}], function () { return [{ type: i1$2.MatDialogRef }]; }, { qrcodeCanvas: [{
|
|
2729
|
+
type: ViewChild,
|
|
2730
|
+
args: ['qrcodeCanvas']
|
|
2731
|
+
}] }); })();
|
|
1395
2732
|
|
|
1396
2733
|
class ShareLinkComponent {
|
|
1397
2734
|
constructor(dialog) {
|
|
@@ -1401,30 +2738,87 @@ class ShareLinkComponent {
|
|
|
1401
2738
|
this.dialog.open(ShareLinkDialogComponent);
|
|
1402
2739
|
}
|
|
1403
2740
|
}
|
|
1404
|
-
ShareLinkComponent.ɵfac =
|
|
1405
|
-
ShareLinkComponent.ɵcmp = i0.ɵɵ
|
|
1406
|
-
i0.ɵɵ
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
2741
|
+
ShareLinkComponent.ɵfac = function ShareLinkComponent_Factory(t) { return new (t || ShareLinkComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
2742
|
+
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) {
|
|
2743
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
2744
|
+
i0.ɵɵlistener("click", function ShareLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openShareLinkDialog(); });
|
|
2745
|
+
i0.ɵɵelementEnd();
|
|
2746
|
+
} if (rf & 2) {
|
|
2747
|
+
i0.ɵɵproperty("active", false);
|
|
2748
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
2749
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkComponent, [{
|
|
2750
|
+
type: Component,
|
|
2751
|
+
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" }]
|
|
2752
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, null); })();
|
|
1410
2753
|
|
|
2754
|
+
const _c0$1 = ["*"];
|
|
1411
2755
|
class UiMenuComponent {
|
|
1412
2756
|
constructor() {
|
|
1413
2757
|
this.eventDataImportOptions = Object.values(EventDataFormat);
|
|
1414
2758
|
this.animationPresets = defaultAnimationPresets;
|
|
1415
2759
|
}
|
|
1416
2760
|
}
|
|
1417
|
-
UiMenuComponent.ɵfac =
|
|
1418
|
-
UiMenuComponent.ɵcmp = i0.ɵɵ
|
|
1419
|
-
i0.ɵɵ
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
2761
|
+
UiMenuComponent.ɵfac = function UiMenuComponent_Factory(t) { return new (t || UiMenuComponent)(); };
|
|
2762
|
+
UiMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UiMenuComponent, selectors: [["app-ui-menu"]], inputs: { eventDataImportOptions: "eventDataImportOptions", animationPresets: "animationPresets" }, ngContentSelectors: _c0$1, decls: 22, vars: 2, consts: [[3, "animationPresets"], [3, "eventDataImportOptions"]], template: function UiMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2763
|
+
i0.ɵɵprojectionDef();
|
|
2764
|
+
i0.ɵɵelementStart(0, "app-ui-menu-wrapper");
|
|
2765
|
+
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-make-picture")(19, "app-io-options", 1)(20, "app-share-link");
|
|
2766
|
+
i0.ɵɵprojection(21);
|
|
2767
|
+
i0.ɵɵelementEnd();
|
|
2768
|
+
} if (rf & 2) {
|
|
2769
|
+
i0.ɵɵadvance(12);
|
|
2770
|
+
i0.ɵɵproperty("animationPresets", ctx.animationPresets);
|
|
2771
|
+
i0.ɵɵadvance(7);
|
|
2772
|
+
i0.ɵɵproperty("eventDataImportOptions", ctx.eventDataImportOptions);
|
|
2773
|
+
} }, dependencies: [UiMenuWrapperComponent, CollectionsInfoComponent, IoOptionsComponent, OverlayViewComponent, ObjectSelectionComponent, EventSelectorComponent, ObjectClippingComponent, DarkThemeComponent, AutoRotateComponent, ViewOptionsComponent, InfoPanelComponent, MainViewToggleComponent, ZoomControlsComponent, AnimateCameraComponent, AnimateEventComponent, VrToggleComponent, ArToggleComponent, SSModeComponent, MakePictureComponent, PerformanceToggleComponent, ShareLinkComponent] });
|
|
2774
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuComponent, [{
|
|
2775
|
+
type: Component,
|
|
2776
|
+
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 <!-- Make pictures from scene -->\n <app-make-picture></app-make-picture>\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" }]
|
|
2777
|
+
}], null, { eventDataImportOptions: [{
|
|
2778
|
+
type: Input
|
|
2779
|
+
}], animationPresets: [{
|
|
2780
|
+
type: Input
|
|
2781
|
+
}] }); })();
|
|
1427
2782
|
|
|
2783
|
+
function FileExplorerComponent_cdk_tree_node_1_Template(rf, ctx) { if (rf & 1) {
|
|
2784
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2785
|
+
i0.ɵɵelementStart(0, "cdk-tree-node", 3)(1, "button", 4);
|
|
2786
|
+
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)); });
|
|
2787
|
+
i0.ɵɵnamespaceSVG();
|
|
2788
|
+
i0.ɵɵelementStart(2, "svg", 5);
|
|
2789
|
+
i0.ɵɵelement(3, "use", 6);
|
|
2790
|
+
i0.ɵɵelementEnd();
|
|
2791
|
+
i0.ɵɵtext(4);
|
|
2792
|
+
i0.ɵɵelementEnd()();
|
|
2793
|
+
} if (rf & 2) {
|
|
2794
|
+
const node_r2 = ctx.$implicit;
|
|
2795
|
+
i0.ɵɵadvance(4);
|
|
2796
|
+
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
2797
|
+
} }
|
|
2798
|
+
function FileExplorerComponent_cdk_nested_tree_node_2_Template(rf, ctx) { if (rf & 1) {
|
|
2799
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 3)(1, "button", 7);
|
|
2800
|
+
i0.ɵɵnamespaceSVG();
|
|
2801
|
+
i0.ɵɵelementStart(2, "svg", 5);
|
|
2802
|
+
i0.ɵɵelement(3, "use", 8);
|
|
2803
|
+
i0.ɵɵelementEnd();
|
|
2804
|
+
i0.ɵɵtext(4);
|
|
2805
|
+
i0.ɵɵelementEnd();
|
|
2806
|
+
i0.ɵɵnamespaceHTML();
|
|
2807
|
+
i0.ɵɵelementStart(5, "div");
|
|
2808
|
+
i0.ɵɵelementContainer(6, 9);
|
|
2809
|
+
i0.ɵɵelementEnd()();
|
|
2810
|
+
} if (rf & 2) {
|
|
2811
|
+
const node_r5 = ctx.$implicit;
|
|
2812
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
2813
|
+
i0.ɵɵadvance(1);
|
|
2814
|
+
i0.ɵɵattribute("aria-label", "Toggle " + node_r5.name);
|
|
2815
|
+
i0.ɵɵadvance(1);
|
|
2816
|
+
i0.ɵɵclassProp("node-icon-filled", !ctx_r1.treeControl.isExpanded(node_r5));
|
|
2817
|
+
i0.ɵɵadvance(2);
|
|
2818
|
+
i0.ɵɵtextInterpolate1(" ", node_r5.name, " ");
|
|
2819
|
+
i0.ɵɵadvance(1);
|
|
2820
|
+
i0.ɵɵclassProp("file-tree-invisible", !ctx_r1.treeControl.isExpanded(node_r5));
|
|
2821
|
+
} }
|
|
1428
2822
|
class FileNode {
|
|
1429
2823
|
constructor(name) {
|
|
1430
2824
|
this.name = name;
|
|
@@ -1457,26 +2851,62 @@ class FileExplorerComponent {
|
|
|
1457
2851
|
return Object.values(node.children).sort((a, b) => !a.url && b.url ? -1 : 1);
|
|
1458
2852
|
}
|
|
1459
2853
|
}
|
|
1460
|
-
FileExplorerComponent.ɵfac =
|
|
1461
|
-
FileExplorerComponent.ɵcmp = i0.ɵɵ
|
|
1462
|
-
i0.ɵɵ
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
2854
|
+
FileExplorerComponent.ɵfac = function FileExplorerComponent_Factory(t) { return new (t || FileExplorerComponent)(); };
|
|
2855
|
+
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) {
|
|
2856
|
+
i0.ɵɵelementStart(0, "cdk-tree", 0);
|
|
2857
|
+
i0.ɵɵtemplate(1, FileExplorerComponent_cdk_tree_node_1_Template, 5, 1, "cdk-tree-node", 1);
|
|
2858
|
+
i0.ɵɵtemplate(2, FileExplorerComponent_cdk_nested_tree_node_2_Template, 7, 6, "cdk-nested-tree-node", 2);
|
|
2859
|
+
i0.ɵɵelementEnd();
|
|
2860
|
+
} if (rf & 2) {
|
|
2861
|
+
i0.ɵɵproperty("dataSource", ctx.dataSource)("treeControl", ctx.treeControl);
|
|
2862
|
+
i0.ɵɵadvance(2);
|
|
2863
|
+
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.hasChildren);
|
|
2864
|
+
} }, 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)}"] });
|
|
2865
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileExplorerComponent, [{
|
|
2866
|
+
type: Component,
|
|
2867
|
+
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"] }]
|
|
2868
|
+
}], null, { rootFileNode: [{
|
|
2869
|
+
type: Input
|
|
2870
|
+
}], onFileSelect: [{
|
|
2871
|
+
type: Output
|
|
2872
|
+
}] }); })();
|
|
1470
2873
|
|
|
1471
2874
|
class RingLoaderComponent {
|
|
1472
2875
|
}
|
|
1473
|
-
RingLoaderComponent.ɵfac =
|
|
1474
|
-
RingLoaderComponent.ɵcmp = i0.ɵɵ
|
|
1475
|
-
i0.ɵɵ
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
2876
|
+
RingLoaderComponent.ɵfac = function RingLoaderComponent_Factory(t) { return new (t || RingLoaderComponent)(); };
|
|
2877
|
+
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) {
|
|
2878
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
2879
|
+
i0.ɵɵelement(1, "div")(2, "div")(3, "div")(4, "div");
|
|
2880
|
+
i0.ɵɵelementEnd();
|
|
2881
|
+
} }, 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)}}"] });
|
|
2882
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RingLoaderComponent, [{
|
|
2883
|
+
type: Component,
|
|
2884
|
+
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"] }]
|
|
2885
|
+
}], null, null); })();
|
|
1479
2886
|
|
|
2887
|
+
function EventDataExplorerDialogComponent_app_ring_loader_4_Template(rf, ctx) { if (rf & 1) {
|
|
2888
|
+
i0.ɵɵelement(0, "app-ring-loader");
|
|
2889
|
+
} }
|
|
2890
|
+
function EventDataExplorerDialogComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
2891
|
+
i0.ɵɵelementStart(0, "div");
|
|
2892
|
+
i0.ɵɵtext(1, "Error processing request.");
|
|
2893
|
+
i0.ɵɵelementEnd();
|
|
2894
|
+
} }
|
|
2895
|
+
function EventDataExplorerDialogComponent_mat_tab_group_7_Template(rf, ctx) { if (rf & 1) {
|
|
2896
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
2897
|
+
i0.ɵɵelementStart(0, "mat-tab-group", 8)(1, "mat-tab", 9)(2, "div", 10)(3, "app-file-explorer", 11);
|
|
2898
|
+
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)); });
|
|
2899
|
+
i0.ɵɵelementEnd()()();
|
|
2900
|
+
i0.ɵɵelementStart(4, "mat-tab", 12)(5, "div", 10)(6, "app-file-explorer", 11);
|
|
2901
|
+
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)); });
|
|
2902
|
+
i0.ɵɵelementEnd()()()();
|
|
2903
|
+
} if (rf & 2) {
|
|
2904
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
2905
|
+
i0.ɵɵadvance(3);
|
|
2906
|
+
i0.ɵɵproperty("rootFileNode", ctx_r2.eventDataFileNode);
|
|
2907
|
+
i0.ɵɵadvance(3);
|
|
2908
|
+
i0.ɵɵproperty("rootFileNode", ctx_r2.configFileNode);
|
|
2909
|
+
} }
|
|
1480
2910
|
const supportFileTypes = ['json', 'xml'];
|
|
1481
2911
|
class EventDataExplorerDialogComponent {
|
|
1482
2912
|
constructor(eventDisplay, dialogRef, dialogData) {
|
|
@@ -1497,8 +2927,10 @@ class EventDataExplorerDialogComponent {
|
|
|
1497
2927
|
});
|
|
1498
2928
|
}
|
|
1499
2929
|
loadEvent(file) {
|
|
1500
|
-
|
|
1501
|
-
|
|
2930
|
+
const isZip = file.split('.').pop() === 'zip';
|
|
2931
|
+
const rawfile = isZip ? file.substring(0, file.length - 4) : file;
|
|
2932
|
+
this.makeRequest(file, isZip ? 'blob' : 'text', (eventData) => {
|
|
2933
|
+
switch (rawfile.split('.').pop()) {
|
|
1502
2934
|
case 'xml':
|
|
1503
2935
|
this.loadJiveXMLEvent(eventData);
|
|
1504
2936
|
break;
|
|
@@ -1530,12 +2962,35 @@ class EventDataExplorerDialogComponent {
|
|
|
1530
2962
|
onClose() {
|
|
1531
2963
|
this.dialogRef.close();
|
|
1532
2964
|
}
|
|
2965
|
+
async unzip(data) {
|
|
2966
|
+
const archive = new JSZip();
|
|
2967
|
+
await archive.loadAsync(data);
|
|
2968
|
+
let fileData = '';
|
|
2969
|
+
let multiFile = false;
|
|
2970
|
+
for (const filePath in archive.files) {
|
|
2971
|
+
if (multiFile) {
|
|
2972
|
+
console.error('Zip archive contains more than one file. Ignoring all but first');
|
|
2973
|
+
break;
|
|
2974
|
+
}
|
|
2975
|
+
fileData = await archive.file(filePath).async('string');
|
|
2976
|
+
multiFile = true;
|
|
2977
|
+
}
|
|
2978
|
+
return fileData;
|
|
2979
|
+
}
|
|
1533
2980
|
makeRequest(urlPath, responseType, onData) {
|
|
1534
2981
|
this.loading = true;
|
|
1535
2982
|
fetch(urlPath)
|
|
1536
2983
|
.then((res) => res[responseType]())
|
|
1537
2984
|
.then((data) => {
|
|
1538
|
-
|
|
2985
|
+
if (responseType === 'blob') {
|
|
2986
|
+
data
|
|
2987
|
+
.arrayBuffer()
|
|
2988
|
+
.then((buf) => this.unzip(buf))
|
|
2989
|
+
.then((d) => onData(d));
|
|
2990
|
+
}
|
|
2991
|
+
else {
|
|
2992
|
+
onData(data);
|
|
2993
|
+
}
|
|
1539
2994
|
this.error = false;
|
|
1540
2995
|
})
|
|
1541
2996
|
.catch((error) => {
|
|
@@ -1561,15 +3016,36 @@ class EventDataExplorerDialogComponent {
|
|
|
1561
3016
|
return rootNode;
|
|
1562
3017
|
}
|
|
1563
3018
|
}
|
|
1564
|
-
EventDataExplorerDialogComponent.ɵfac =
|
|
1565
|
-
EventDataExplorerDialogComponent.ɵcmp = i0.ɵɵ
|
|
1566
|
-
i0.ɵɵ
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
3019
|
+
EventDataExplorerDialogComponent.ɵfac = function EventDataExplorerDialogComponent_Factory(t) { return new (t || EventDataExplorerDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
3020
|
+
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) {
|
|
3021
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
3022
|
+
i0.ɵɵtext(3, "Event data from directory");
|
|
3023
|
+
i0.ɵɵelementEnd();
|
|
3024
|
+
i0.ɵɵtemplate(4, EventDataExplorerDialogComponent_app_ring_loader_4_Template, 1, 0, "app-ring-loader", 3);
|
|
3025
|
+
i0.ɵɵelementEnd();
|
|
3026
|
+
i0.ɵɵelementStart(5, "div", 4);
|
|
3027
|
+
i0.ɵɵtemplate(6, EventDataExplorerDialogComponent_div_6_Template, 2, 0, "div", 3);
|
|
3028
|
+
i0.ɵɵtemplate(7, EventDataExplorerDialogComponent_mat_tab_group_7_Template, 7, 2, "mat-tab-group", 5);
|
|
3029
|
+
i0.ɵɵelementEnd();
|
|
3030
|
+
i0.ɵɵelementStart(8, "div", 6)(9, "button", 7);
|
|
3031
|
+
i0.ɵɵlistener("click", function EventDataExplorerDialogComponent_Template_button_click_9_listener() { return ctx.onClose(); });
|
|
3032
|
+
i0.ɵɵtext(10, "Close");
|
|
3033
|
+
i0.ɵɵelementEnd()()();
|
|
3034
|
+
} if (rf & 2) {
|
|
3035
|
+
i0.ɵɵadvance(4);
|
|
3036
|
+
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
3037
|
+
i0.ɵɵadvance(2);
|
|
3038
|
+
i0.ɵɵproperty("ngIf", ctx.error);
|
|
3039
|
+
i0.ɵɵadvance(1);
|
|
3040
|
+
i0.ɵɵproperty("ngIf", !ctx.error);
|
|
3041
|
+
} }, 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}"] });
|
|
3042
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerDialogComponent, [{
|
|
3043
|
+
type: Component,
|
|
3044
|
+
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"] }]
|
|
3045
|
+
}], function () { return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
3046
|
+
type: Inject,
|
|
3047
|
+
args: [MAT_DIALOG_DATA]
|
|
3048
|
+
}] }]; }, null); })();
|
|
1573
3049
|
|
|
1574
3050
|
class EventDataExplorerComponent {
|
|
1575
3051
|
constructor(dialog) {
|
|
@@ -1583,14 +3059,20 @@ class EventDataExplorerComponent {
|
|
|
1583
3059
|
});
|
|
1584
3060
|
}
|
|
1585
3061
|
}
|
|
1586
|
-
EventDataExplorerComponent.ɵfac =
|
|
1587
|
-
EventDataExplorerComponent.ɵcmp = i0.ɵɵ
|
|
1588
|
-
i0.ɵɵ
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
3062
|
+
EventDataExplorerComponent.ɵfac = function EventDataExplorerComponent_Factory(t) { return new (t || EventDataExplorerComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
|
|
3063
|
+
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) {
|
|
3064
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
3065
|
+
i0.ɵɵlistener("click", function EventDataExplorerComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openEventDataExplorerDialog(); });
|
|
3066
|
+
i0.ɵɵelementEnd();
|
|
3067
|
+
} if (rf & 2) {
|
|
3068
|
+
i0.ɵɵproperty("active", false);
|
|
3069
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
3070
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerComponent, [{
|
|
3071
|
+
type: Component,
|
|
3072
|
+
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" }]
|
|
3073
|
+
}], function () { return [{ type: i1$2.MatDialog }]; }, { apiURL: [{
|
|
3074
|
+
type: Input
|
|
3075
|
+
}] }); })();
|
|
1594
3076
|
|
|
1595
3077
|
class CycleEventsComponent {
|
|
1596
3078
|
constructor(eventDisplay) {
|
|
@@ -1615,14 +3097,20 @@ class CycleEventsComponent {
|
|
|
1615
3097
|
}, this.interval);
|
|
1616
3098
|
}
|
|
1617
3099
|
}
|
|
1618
|
-
CycleEventsComponent.ɵfac =
|
|
1619
|
-
CycleEventsComponent.ɵcmp = i0.ɵɵ
|
|
1620
|
-
i0.ɵɵ
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
3100
|
+
CycleEventsComponent.ɵfac = function CycleEventsComponent_Factory(t) { return new (t || CycleEventsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
|
|
3101
|
+
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) {
|
|
3102
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
3103
|
+
i0.ɵɵlistener("click", function CycleEventsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleCycle(); });
|
|
3104
|
+
i0.ɵɵelementEnd();
|
|
3105
|
+
} if (rf & 2) {
|
|
3106
|
+
i0.ɵɵproperty("active", ctx.active);
|
|
3107
|
+
} }, dependencies: [MenuToggleComponent], encapsulation: 2 });
|
|
3108
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CycleEventsComponent, [{
|
|
3109
|
+
type: Component,
|
|
3110
|
+
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" }]
|
|
3111
|
+
}], function () { return [{ type: EventDisplayService }]; }, { interval: [{
|
|
3112
|
+
type: Input
|
|
3113
|
+
}] }); })();
|
|
1626
3114
|
|
|
1627
3115
|
class ErrorMessageService {
|
|
1628
3116
|
constructor() {
|
|
@@ -1644,15 +3132,47 @@ class ErrorMessageService {
|
|
|
1644
3132
|
this.error.update(error);
|
|
1645
3133
|
}
|
|
1646
3134
|
}
|
|
1647
|
-
ErrorMessageService.ɵfac =
|
|
1648
|
-
ErrorMessageService.ɵprov = i0.ɵɵ
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
3135
|
+
ErrorMessageService.ɵfac = function ErrorMessageService_Factory(t) { return new (t || ErrorMessageService)(); };
|
|
3136
|
+
ErrorMessageService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ErrorMessageService, factory: ErrorMessageService.ɵfac, providedIn: 'root' });
|
|
3137
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageService, [{
|
|
3138
|
+
type: Injectable,
|
|
3139
|
+
args: [{
|
|
3140
|
+
providedIn: 'root',
|
|
3141
|
+
}]
|
|
3142
|
+
}], null, null); })();
|
|
1655
3143
|
|
|
3144
|
+
const _c0 = function (a0) { return { width: a0 }; };
|
|
3145
|
+
function LoaderComponent_ng_container_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
3146
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
3147
|
+
i0.ɵɵelement(1, "span");
|
|
3148
|
+
i0.ɵɵelementEnd();
|
|
3149
|
+
} if (rf & 2) {
|
|
3150
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
3151
|
+
i0.ɵɵadvance(1);
|
|
3152
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(2, _c0, ctx_r3.progress + "%"));
|
|
3153
|
+
} }
|
|
3154
|
+
function LoaderComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3155
|
+
i0.ɵɵelementContainerStart(0);
|
|
3156
|
+
i0.ɵɵelement(1, "img", 3);
|
|
3157
|
+
i0.ɵɵelementStart(2, "p", 4);
|
|
3158
|
+
i0.ɵɵtext(3, " Loading...");
|
|
3159
|
+
i0.ɵɵelement(4, "br");
|
|
3160
|
+
i0.ɵɵelementStart(5, "small", 5);
|
|
3161
|
+
i0.ɵɵtext(6, "(This may take a while)");
|
|
3162
|
+
i0.ɵɵelementEnd()();
|
|
3163
|
+
i0.ɵɵtemplate(7, LoaderComponent_ng_container_1_div_7_Template, 2, 4, "div", 6);
|
|
3164
|
+
i0.ɵɵelementContainerEnd();
|
|
3165
|
+
} if (rf & 2) {
|
|
3166
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3167
|
+
i0.ɵɵadvance(7);
|
|
3168
|
+
i0.ɵɵproperty("ngIf", ctx_r0.progress !== undefined);
|
|
3169
|
+
} }
|
|
3170
|
+
function LoaderComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
3171
|
+
i0.ɵɵelementStart(0, "p");
|
|
3172
|
+
i0.ɵɵtext(1, " An error occurred while loading the application. Please try refreshing the page. ");
|
|
3173
|
+
i0.ɵɵelementEnd();
|
|
3174
|
+
} }
|
|
3175
|
+
const _c1 = function (a0) { return { "load-complete": a0 }; };
|
|
1656
3176
|
class LoaderComponent {
|
|
1657
3177
|
constructor(errorMessageService) {
|
|
1658
3178
|
this.errorMessageService = errorMessageService;
|
|
@@ -1664,16 +3184,26 @@ class LoaderComponent {
|
|
|
1664
3184
|
});
|
|
1665
3185
|
}
|
|
1666
3186
|
}
|
|
1667
|
-
LoaderComponent.ɵfac =
|
|
1668
|
-
LoaderComponent.ɵcmp = i0.ɵɵ
|
|
1669
|
-
i0.ɵɵ
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
3187
|
+
LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(i0.ɵɵdirectiveInject(ErrorMessageService)); };
|
|
3188
|
+
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) {
|
|
3189
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
3190
|
+
i0.ɵɵtemplate(1, LoaderComponent_ng_container_1_Template, 8, 1, "ng-container", 1);
|
|
3191
|
+
i0.ɵɵtemplate(2, LoaderComponent_ng_template_2_Template, 2, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
3192
|
+
i0.ɵɵelementEnd();
|
|
3193
|
+
} if (rf & 2) {
|
|
3194
|
+
const _r1 = i0.ɵɵreference(3);
|
|
3195
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, ctx.loaded));
|
|
3196
|
+
i0.ɵɵadvance(1);
|
|
3197
|
+
i0.ɵɵproperty("ngIf", ctx.error === undefined)("ngIfElse", _r1);
|
|
3198
|
+
} }, 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)}}"] });
|
|
3199
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoaderComponent, [{
|
|
3200
|
+
type: Component,
|
|
3201
|
+
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"] }]
|
|
3202
|
+
}], function () { return [{ type: ErrorMessageService }]; }, { loaded: [{
|
|
3203
|
+
type: Input
|
|
3204
|
+
}], progress: [{
|
|
3205
|
+
type: Input
|
|
3206
|
+
}] }); })();
|
|
1677
3207
|
|
|
1678
3208
|
/**
|
|
1679
3209
|
* Global handler for handling app/module wide errors.
|
|
@@ -1695,11 +3225,11 @@ class GlobalErrorHandler {
|
|
|
1695
3225
|
this.injector.get(ErrorMessageService).setError(error);
|
|
1696
3226
|
}
|
|
1697
3227
|
}
|
|
1698
|
-
GlobalErrorHandler.ɵfac =
|
|
1699
|
-
GlobalErrorHandler.ɵprov = i0.ɵɵ
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
3228
|
+
GlobalErrorHandler.ɵfac = function GlobalErrorHandler_Factory(t) { return new (t || GlobalErrorHandler)(i0.ɵɵinject(i0.Injector)); };
|
|
3229
|
+
GlobalErrorHandler.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: GlobalErrorHandler, factory: GlobalErrorHandler.ɵfac });
|
|
3230
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GlobalErrorHandler, [{
|
|
3231
|
+
type: Injectable
|
|
3232
|
+
}], function () { return [{ type: i0.Injector }]; }, null); })();
|
|
1703
3233
|
|
|
1704
3234
|
class ExperimentLinkComponent {
|
|
1705
3235
|
ngOnInit() {
|
|
@@ -1709,21 +3239,29 @@ class ExperimentLinkComponent {
|
|
|
1709
3239
|
window.open(this.experimentLink, '_blank');
|
|
1710
3240
|
}
|
|
1711
3241
|
}
|
|
1712
|
-
ExperimentLinkComponent.ɵfac =
|
|
1713
|
-
ExperimentLinkComponent.ɵcmp = i0.ɵɵ
|
|
1714
|
-
i0.ɵɵ
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
3242
|
+
ExperimentLinkComponent.ɵfac = function ExperimentLinkComponent_Factory(t) { return new (t || ExperimentLinkComponent)(); };
|
|
3243
|
+
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) {
|
|
3244
|
+
i0.ɵɵelementStart(0, "app-menu-toggle", 0);
|
|
3245
|
+
i0.ɵɵlistener("click", function ExperimentLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.goToExperiment(); });
|
|
3246
|
+
i0.ɵɵelementEnd();
|
|
3247
|
+
} }, dependencies: [MenuToggleComponent] });
|
|
3248
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentLinkComponent, [{
|
|
3249
|
+
type: Component,
|
|
3250
|
+
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" }]
|
|
3251
|
+
}], null, null); })();
|
|
1718
3252
|
|
|
1719
3253
|
class EmbedMenuComponent {
|
|
1720
3254
|
}
|
|
1721
|
-
EmbedMenuComponent.ɵfac =
|
|
1722
|
-
EmbedMenuComponent.ɵcmp = i0.ɵɵ
|
|
1723
|
-
i0.ɵɵ
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
3255
|
+
EmbedMenuComponent.ɵfac = function EmbedMenuComponent_Factory(t) { return new (t || EmbedMenuComponent)(); };
|
|
3256
|
+
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) {
|
|
3257
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
3258
|
+
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");
|
|
3259
|
+
i0.ɵɵelementEnd()();
|
|
3260
|
+
} }, 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}"] });
|
|
3261
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmbedMenuComponent, [{
|
|
3262
|
+
type: Component,
|
|
3263
|
+
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"] }]
|
|
3264
|
+
}], null, null); })();
|
|
1727
3265
|
|
|
1728
3266
|
const PHOENIX_COMPONENTS = [
|
|
1729
3267
|
NavComponent,
|
|
@@ -1760,6 +3298,7 @@ const PHOENIX_COMPONENTS = [
|
|
|
1760
3298
|
VrToggleComponent,
|
|
1761
3299
|
ArToggleComponent,
|
|
1762
3300
|
SSModeComponent,
|
|
3301
|
+
MakePictureComponent,
|
|
1763
3302
|
PerformanceToggleComponent,
|
|
1764
3303
|
LoaderComponent,
|
|
1765
3304
|
ShareLinkComponent,
|
|
@@ -1774,8 +3313,76 @@ const PHOENIX_COMPONENTS = [
|
|
|
1774
3313
|
];
|
|
1775
3314
|
class PhoenixUIModule {
|
|
1776
3315
|
}
|
|
1777
|
-
PhoenixUIModule.ɵfac =
|
|
1778
|
-
PhoenixUIModule.ɵmod = i0.ɵɵ
|
|
3316
|
+
PhoenixUIModule.ɵfac = function PhoenixUIModule_Factory(t) { return new (t || PhoenixUIModule)(); };
|
|
3317
|
+
PhoenixUIModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PhoenixUIModule });
|
|
3318
|
+
PhoenixUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
3319
|
+
EventDisplayService,
|
|
3320
|
+
ErrorMessageService,
|
|
3321
|
+
{
|
|
3322
|
+
provide: ErrorHandler,
|
|
3323
|
+
useClass: GlobalErrorHandler,
|
|
3324
|
+
},
|
|
3325
|
+
], imports: [CommonModule,
|
|
3326
|
+
RouterModule,
|
|
3327
|
+
DragDropModule,
|
|
3328
|
+
MatDialogModule,
|
|
3329
|
+
MatButtonModule,
|
|
3330
|
+
MatTooltipModule,
|
|
3331
|
+
OverlayModule,
|
|
3332
|
+
FormsModule,
|
|
3333
|
+
MatMenuModule,
|
|
3334
|
+
MatRadioModule,
|
|
3335
|
+
MatSliderModule,
|
|
3336
|
+
MatSlideToggleModule,
|
|
3337
|
+
MatCheckboxModule,
|
|
3338
|
+
MatIconModule,
|
|
3339
|
+
NgxSliderModule,
|
|
3340
|
+
CdkTreeModule,
|
|
3341
|
+
MatTabsModule] });
|
|
3342
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixUIModule, [{
|
|
3343
|
+
type: NgModule,
|
|
3344
|
+
args: [{
|
|
3345
|
+
declarations: PHOENIX_COMPONENTS,
|
|
3346
|
+
imports: [
|
|
3347
|
+
CommonModule,
|
|
3348
|
+
RouterModule,
|
|
3349
|
+
DragDropModule,
|
|
3350
|
+
MatDialogModule,
|
|
3351
|
+
MatButtonModule,
|
|
3352
|
+
MatTooltipModule,
|
|
3353
|
+
OverlayModule,
|
|
3354
|
+
FormsModule,
|
|
3355
|
+
MatMenuModule,
|
|
3356
|
+
MatRadioModule,
|
|
3357
|
+
MatSliderModule,
|
|
3358
|
+
MatSlideToggleModule,
|
|
3359
|
+
MatCheckboxModule,
|
|
3360
|
+
MatIconModule,
|
|
3361
|
+
NgxSliderModule,
|
|
3362
|
+
CdkTreeModule,
|
|
3363
|
+
MatTabsModule,
|
|
3364
|
+
],
|
|
3365
|
+
entryComponents: [
|
|
3366
|
+
OverlayComponent,
|
|
3367
|
+
OverlayViewWindowComponent,
|
|
3368
|
+
IOOptionsDialogComponent,
|
|
3369
|
+
CollectionsInfoOverlayComponent,
|
|
3370
|
+
ObjectSelectionOverlayComponent,
|
|
3371
|
+
InfoPanelOverlayComponent,
|
|
3372
|
+
EventDataExplorerDialogComponent,
|
|
3373
|
+
],
|
|
3374
|
+
exports: PHOENIX_COMPONENTS,
|
|
3375
|
+
providers: [
|
|
3376
|
+
EventDisplayService,
|
|
3377
|
+
ErrorMessageService,
|
|
3378
|
+
{
|
|
3379
|
+
provide: ErrorHandler,
|
|
3380
|
+
useClass: GlobalErrorHandler,
|
|
3381
|
+
},
|
|
3382
|
+
],
|
|
3383
|
+
}]
|
|
3384
|
+
}], null, null); })();
|
|
3385
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PhoenixUIModule, { declarations: [NavComponent,
|
|
1779
3386
|
UiMenuWrapperComponent,
|
|
1780
3387
|
UiMenuComponent,
|
|
1781
3388
|
CollectionsInfoComponent,
|
|
@@ -1809,6 +3416,7 @@ PhoenixUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1809
3416
|
VrToggleComponent,
|
|
1810
3417
|
ArToggleComponent,
|
|
1811
3418
|
SSModeComponent,
|
|
3419
|
+
MakePictureComponent,
|
|
1812
3420
|
PerformanceToggleComponent,
|
|
1813
3421
|
LoaderComponent,
|
|
1814
3422
|
ShareLinkComponent,
|
|
@@ -1826,7 +3434,9 @@ PhoenixUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1826
3434
|
MatButtonModule,
|
|
1827
3435
|
MatTooltipModule,
|
|
1828
3436
|
OverlayModule,
|
|
3437
|
+
FormsModule,
|
|
1829
3438
|
MatMenuModule,
|
|
3439
|
+
MatRadioModule,
|
|
1830
3440
|
MatSliderModule,
|
|
1831
3441
|
MatSlideToggleModule,
|
|
1832
3442
|
MatCheckboxModule,
|
|
@@ -1867,6 +3477,7 @@ PhoenixUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1867
3477
|
VrToggleComponent,
|
|
1868
3478
|
ArToggleComponent,
|
|
1869
3479
|
SSModeComponent,
|
|
3480
|
+
MakePictureComponent,
|
|
1870
3481
|
PerformanceToggleComponent,
|
|
1871
3482
|
LoaderComponent,
|
|
1872
3483
|
ShareLinkComponent,
|
|
@@ -1877,74 +3488,11 @@ PhoenixUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
1877
3488
|
EventDataExplorerDialogComponent,
|
|
1878
3489
|
FileExplorerComponent,
|
|
1879
3490
|
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
|
-
}] });
|
|
3491
|
+
CycleEventsComponent] }); })();
|
|
1944
3492
|
|
|
1945
3493
|
/**
|
|
1946
3494
|
* Generated bundle index. Do not edit.
|
|
1947
3495
|
*/
|
|
1948
3496
|
|
|
1949
|
-
export { AnimateCameraComponent, AnimateEventComponent, ArToggleComponent, AttributePipe, AutoRotateComponent, CollectionsInfoComponent, CollectionsInfoOverlayComponent, ConfigSliderComponent, CycleEventsComponent, DarkThemeComponent, EmbedMenuComponent, EventDataExplorerComponent, EventDataExplorerDialogComponent, EventDataFormat, EventDisplayService, EventSelectorComponent, ExperimentInfoComponent, ExperimentLinkComponent, FileExplorerComponent, FileNode, IOOptionsDialogComponent, ImportOption, InfoPanelComponent, InfoPanelOverlayComponent, IoOptionsComponent, LoaderComponent, MainViewToggleComponent, MenuToggleComponent, NavComponent, ObjectClippingComponent, ObjectSelectionComponent, ObjectSelectionOverlayComponent, OverlayComponent, OverlayViewComponent, OverlayViewWindowComponent, PerformanceToggleComponent, PhoenixMenuComponent, PhoenixMenuItemComponent, PhoenixUIModule, RingLoaderComponent, SSModeComponent, ShareLinkComponent, ShareLinkDialogComponent, TreeMenuComponent, TreeMenuItemComponent, UiMenuComponent, UiMenuWrapperComponent, ViewOptionsComponent, VrToggleComponent, ZoomControlsComponent, defaultAnimationPresets };
|
|
3497
|
+
export { AnimateCameraComponent, AnimateEventComponent, ArToggleComponent, AttributePipe, AutoRotateComponent, CollectionsInfoComponent, CollectionsInfoOverlayComponent, ConfigSliderComponent, CycleEventsComponent, DarkThemeComponent, EmbedMenuComponent, EventDataExplorerComponent, EventDataExplorerDialogComponent, EventDataFormat, EventDisplayService, EventSelectorComponent, ExperimentInfoComponent, ExperimentLinkComponent, FileExplorerComponent, FileNode, IOOptionsDialogComponent, ImportOption, InfoPanelComponent, InfoPanelOverlayComponent, IoOptionsComponent, LoaderComponent, MainViewToggleComponent, MakePictureComponent, MenuToggleComponent, NavComponent, ObjectClippingComponent, ObjectSelectionComponent, ObjectSelectionOverlayComponent, OverlayComponent, OverlayViewComponent, OverlayViewWindowComponent, PerformanceToggleComponent, PhoenixMenuComponent, PhoenixMenuItemComponent, PhoenixUIModule, RingLoaderComponent, SSModeComponent, ShareLinkComponent, ShareLinkDialogComponent, TreeMenuComponent, TreeMenuItemComponent, UiMenuComponent, UiMenuWrapperComponent, ViewOptionsComponent, VrToggleComponent, ZoomControlsComponent, defaultAnimationPresets };
|
|
1950
3498
|
//# sourceMappingURL=phoenix-ui-components.mjs.map
|