phoenix-ui-components 2.12.0 → 2.14.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/phoenix-menu/config/config-slider/config-slider.component.d.ts +5 -0
- package/dist/components/phoenix-ui.module.d.ts +30 -27
- package/dist/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.d.ts +1 -1
- package/dist/components/ui-menu/event-data-explorer/event-data-explorer.component.d.ts +1 -1
- package/dist/components/ui-menu/index.d.ts +1 -0
- package/dist/components/ui-menu/make-picture/make-picture.component.d.ts +17 -0
- package/dist/components/ui-menu/overlay/overlay.component.d.ts +5 -1
- package/dist/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.d.ts +1 -1
- package/dist/esm2020/components/embed-menu/experiment-link/experiment-link.component.mjs +5 -2
- package/dist/esm2020/components/phoenix-menu/config/config-slider/config-slider.component.mjs +25 -1
- package/dist/esm2020/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.mjs +63 -52
- package/dist/esm2020/components/phoenix-ui.module.mjs +13 -2
- package/dist/esm2020/components/ui-menu/animate-camera/animate-camera.component.mjs +25 -8
- package/dist/esm2020/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.mjs +5 -4
- package/dist/esm2020/components/ui-menu/event-selector/event-selector.component.mjs +3 -2
- package/dist/esm2020/components/ui-menu/experiment-info/experiment-info.component.mjs +2 -2
- package/dist/esm2020/components/ui-menu/index.mjs +2 -1
- package/dist/esm2020/components/ui-menu/make-picture/make-picture.component.mjs +88 -0
- package/dist/esm2020/components/ui-menu/overlay/overlay.component.mjs +14 -3
- package/dist/esm2020/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.mjs +4 -4
- package/dist/esm2020/components/ui-menu/share-link/share-link-dialog/share-link-dialog.component.mjs +4 -3
- package/dist/esm2020/components/ui-menu/ss-mode/ss-mode.component.mjs +3 -3
- package/dist/esm2020/components/ui-menu/ui-menu.component.mjs +10 -9
- package/dist/fesm2015/phoenix-ui-components.mjs +247 -81
- package/dist/fesm2015/phoenix-ui-components.mjs.map +1 -1
- package/dist/fesm2020/phoenix-ui-components.mjs +239 -81
- package/dist/fesm2020/phoenix-ui-components.mjs.map +1 -1
- package/dist/services/extras/event-data-import.d.ts +1 -1
- package/package.json +10 -6
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ConfigSliderComponent {
|
|
4
5
|
value: number;
|
|
5
6
|
min: number;
|
|
7
|
+
oldMin: number;
|
|
6
8
|
max: number;
|
|
9
|
+
oldMax: number;
|
|
7
10
|
step: number;
|
|
8
11
|
allowCustomValue: boolean;
|
|
9
12
|
onChange: EventEmitter<number>;
|
|
10
13
|
onValueChange(value: number): void;
|
|
14
|
+
toggleMinCut(change: MatCheckboxChange): void;
|
|
15
|
+
toggleMaxCut(change: MatCheckboxChange): void;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSliderComponent, never>;
|
|
12
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSliderComponent, "app-config-slider", never, { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "allowCustomValue": "allowCustomValue"; }, { "onChange": "onChange"; }, never, never, false, never>;
|
|
13
18
|
}
|
|
@@ -33,34 +33,37 @@ import * as i31 from "./ui-menu/animate-event/animate-event.component";
|
|
|
33
33
|
import * as i32 from "./ui-menu/vr-toggle/vr-toggle.component";
|
|
34
34
|
import * as i33 from "./ui-menu/ar-toggle/ar-toggle.component";
|
|
35
35
|
import * as i34 from "./ui-menu/ss-mode/ss-mode.component";
|
|
36
|
-
import * as i35 from "./ui-menu/
|
|
37
|
-
import * as i36 from "./
|
|
38
|
-
import * as i37 from "./
|
|
39
|
-
import * as i38 from "./ui-menu/share-link/share-link
|
|
40
|
-
import * as i39 from "./
|
|
41
|
-
import * as i40 from "./embed-menu/
|
|
42
|
-
import * as i41 from "./
|
|
43
|
-
import * as i42 from "./ui-menu/event-data-explorer/event-data-explorer
|
|
44
|
-
import * as i43 from "./
|
|
45
|
-
import * as i44 from "./
|
|
46
|
-
import * as i45 from "./
|
|
47
|
-
import * as i46 from "
|
|
48
|
-
import * as i47 from "@angular/
|
|
49
|
-
import * as i48 from "@angular/
|
|
50
|
-
import * as i49 from "@angular/
|
|
51
|
-
import * as i50 from "@angular/material/
|
|
52
|
-
import * as i51 from "@angular/material/
|
|
53
|
-
import * as i52 from "@angular/
|
|
54
|
-
import * as i53 from "@angular/
|
|
55
|
-
import * as i54 from "@angular/
|
|
56
|
-
import * as i55 from "@angular/material/
|
|
57
|
-
import * as i56 from "@angular/material/
|
|
58
|
-
import * as i57 from "@angular/material/
|
|
59
|
-
import * as i58 from "@
|
|
60
|
-
import * as i59 from "@angular/
|
|
61
|
-
import * as i60 from "@angular/material/
|
|
36
|
+
import * as i35 from "./ui-menu/make-picture/make-picture.component";
|
|
37
|
+
import * as i36 from "./ui-menu/performance-toggle/performance-toggle.component";
|
|
38
|
+
import * as i37 from "./loader/loader.component";
|
|
39
|
+
import * as i38 from "./ui-menu/share-link/share-link.component";
|
|
40
|
+
import * as i39 from "./ui-menu/share-link/share-link-dialog/share-link-dialog.component";
|
|
41
|
+
import * as i40 from "./embed-menu/embed-menu.component";
|
|
42
|
+
import * as i41 from "./embed-menu/experiment-link/experiment-link.component";
|
|
43
|
+
import * as i42 from "./ui-menu/event-data-explorer/event-data-explorer.component";
|
|
44
|
+
import * as i43 from "./ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component";
|
|
45
|
+
import * as i44 from "./file-explorer/file-explorer.component";
|
|
46
|
+
import * as i45 from "./ring-loader/ring-loader.component";
|
|
47
|
+
import * as i46 from "./ui-menu/cycle-events/cycle-events.component";
|
|
48
|
+
import * as i47 from "@angular/common";
|
|
49
|
+
import * as i48 from "@angular/router";
|
|
50
|
+
import * as i49 from "@angular/cdk/drag-drop";
|
|
51
|
+
import * as i50 from "@angular/material/dialog";
|
|
52
|
+
import * as i51 from "@angular/material/button";
|
|
53
|
+
import * as i52 from "@angular/material/tooltip";
|
|
54
|
+
import * as i53 from "@angular/cdk/overlay";
|
|
55
|
+
import * as i54 from "@angular/forms";
|
|
56
|
+
import * as i55 from "@angular/material/menu";
|
|
57
|
+
import * as i56 from "@angular/material/radio";
|
|
58
|
+
import * as i57 from "@angular/material/slider";
|
|
59
|
+
import * as i58 from "@angular/material/slide-toggle";
|
|
60
|
+
import * as i59 from "@angular/material/checkbox";
|
|
61
|
+
import * as i60 from "@angular/material/icon";
|
|
62
|
+
import * as i61 from "@rp3e11/ngx-slider";
|
|
63
|
+
import * as i62 from "@angular/cdk/tree";
|
|
64
|
+
import * as i63 from "@angular/material/tabs";
|
|
62
65
|
export declare class PhoenixUIModule {
|
|
63
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoenixUIModule, never>;
|
|
64
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PhoenixUIModule, [typeof i1.NavComponent, typeof i2.UiMenuWrapperComponent, typeof i3.UiMenuComponent, typeof i4.CollectionsInfoComponent, typeof i5.MenuToggleComponent, typeof i6.CollectionsInfoOverlayComponent, typeof i7.IoOptionsComponent, typeof i8.IOOptionsDialogComponent, typeof i9.OverlayViewComponent, typeof i10.AttributePipe, typeof i11.ObjectSelectionComponent, typeof i12.ObjectSelectionOverlayComponent, typeof i13.EventSelectorComponent, typeof i14.ObjectClippingComponent, typeof i15.DarkThemeComponent, typeof i16.AutoRotateComponent, typeof i17.ViewOptionsComponent, typeof i18.OverlayViewWindowComponent, typeof i19.OverlayComponent, typeof i20.ExperimentInfoComponent, typeof i21.InfoPanelComponent, typeof i22.InfoPanelOverlayComponent, typeof i23.MainViewToggleComponent, typeof i24.ZoomControlsComponent, typeof i25.TreeMenuComponent, typeof i26.TreeMenuItemComponent, typeof i27.PhoenixMenuComponent, typeof i28.PhoenixMenuItemComponent, typeof i29.ConfigSliderComponent, typeof i30.AnimateCameraComponent, typeof i31.AnimateEventComponent, typeof i32.VrToggleComponent, typeof i33.ArToggleComponent, typeof i34.SSModeComponent, typeof i35.
|
|
67
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PhoenixUIModule, [typeof i1.NavComponent, typeof i2.UiMenuWrapperComponent, typeof i3.UiMenuComponent, typeof i4.CollectionsInfoComponent, typeof i5.MenuToggleComponent, typeof i6.CollectionsInfoOverlayComponent, typeof i7.IoOptionsComponent, typeof i8.IOOptionsDialogComponent, typeof i9.OverlayViewComponent, typeof i10.AttributePipe, typeof i11.ObjectSelectionComponent, typeof i12.ObjectSelectionOverlayComponent, typeof i13.EventSelectorComponent, typeof i14.ObjectClippingComponent, typeof i15.DarkThemeComponent, typeof i16.AutoRotateComponent, typeof i17.ViewOptionsComponent, typeof i18.OverlayViewWindowComponent, typeof i19.OverlayComponent, typeof i20.ExperimentInfoComponent, typeof i21.InfoPanelComponent, typeof i22.InfoPanelOverlayComponent, typeof i23.MainViewToggleComponent, typeof i24.ZoomControlsComponent, typeof i25.TreeMenuComponent, typeof i26.TreeMenuItemComponent, typeof i27.PhoenixMenuComponent, typeof i28.PhoenixMenuItemComponent, typeof i29.ConfigSliderComponent, typeof i30.AnimateCameraComponent, typeof i31.AnimateEventComponent, typeof i32.VrToggleComponent, typeof i33.ArToggleComponent, typeof i34.SSModeComponent, typeof i35.MakePictureComponent, typeof i36.PerformanceToggleComponent, typeof i37.LoaderComponent, typeof i38.ShareLinkComponent, typeof i39.ShareLinkDialogComponent, typeof i40.EmbedMenuComponent, typeof i41.ExperimentLinkComponent, typeof i42.EventDataExplorerComponent, typeof i43.EventDataExplorerDialogComponent, typeof i44.FileExplorerComponent, typeof i45.RingLoaderComponent, typeof i46.CycleEventsComponent], [typeof i47.CommonModule, typeof i48.RouterModule, typeof i49.DragDropModule, typeof i50.MatDialogModule, typeof i51.MatButtonModule, typeof i52.MatTooltipModule, typeof i53.OverlayModule, typeof i54.FormsModule, typeof i55.MatMenuModule, typeof i56.MatRadioModule, typeof i57.MatSliderModule, typeof i58.MatSlideToggleModule, typeof i59.MatCheckboxModule, typeof i60.MatIconModule, typeof i61.NgxSliderModule, typeof i62.CdkTreeModule, typeof i63.MatTabsModule], [typeof i1.NavComponent, typeof i2.UiMenuWrapperComponent, typeof i3.UiMenuComponent, typeof i4.CollectionsInfoComponent, typeof i5.MenuToggleComponent, typeof i6.CollectionsInfoOverlayComponent, typeof i7.IoOptionsComponent, typeof i8.IOOptionsDialogComponent, typeof i9.OverlayViewComponent, typeof i10.AttributePipe, typeof i11.ObjectSelectionComponent, typeof i12.ObjectSelectionOverlayComponent, typeof i13.EventSelectorComponent, typeof i14.ObjectClippingComponent, typeof i15.DarkThemeComponent, typeof i16.AutoRotateComponent, typeof i17.ViewOptionsComponent, typeof i18.OverlayViewWindowComponent, typeof i19.OverlayComponent, typeof i20.ExperimentInfoComponent, typeof i21.InfoPanelComponent, typeof i22.InfoPanelOverlayComponent, typeof i23.MainViewToggleComponent, typeof i24.ZoomControlsComponent, typeof i25.TreeMenuComponent, typeof i26.TreeMenuItemComponent, typeof i27.PhoenixMenuComponent, typeof i28.PhoenixMenuItemComponent, typeof i29.ConfigSliderComponent, typeof i30.AnimateCameraComponent, typeof i31.AnimateEventComponent, typeof i32.VrToggleComponent, typeof i33.ArToggleComponent, typeof i34.SSModeComponent, typeof i35.MakePictureComponent, typeof i36.PerformanceToggleComponent, typeof i37.LoaderComponent, typeof i38.ShareLinkComponent, typeof i39.ShareLinkDialogComponent, typeof i40.EmbedMenuComponent, typeof i41.ExperimentLinkComponent, typeof i42.EventDataExplorerComponent, typeof i43.EventDataExplorerDialogComponent, typeof i44.FileExplorerComponent, typeof i45.RingLoaderComponent, typeof i46.CycleEventsComponent]>;
|
|
65
68
|
static ɵinj: i0.ɵɵInjectorDeclaration<PhoenixUIModule>;
|
|
66
69
|
}
|
|
@@ -3,7 +3,7 @@ import { EventDisplayService } from '../../../../services/event-display.service'
|
|
|
3
3
|
import { FileNode } from '../../../file-explorer/file-explorer.component';
|
|
4
4
|
import { EventDataExplorerDialogData } from '../event-data-explorer.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export
|
|
6
|
+
export type FileResponse = {
|
|
7
7
|
name: string;
|
|
8
8
|
url: string;
|
|
9
9
|
};
|
|
@@ -25,6 +25,7 @@ export * from './vr-toggle/vr-toggle.component';
|
|
|
25
25
|
export * from './ar-toggle/ar-toggle.component';
|
|
26
26
|
export * from './zoom-controls/zoom-controls.component';
|
|
27
27
|
export * from './ss-mode/ss-mode.component';
|
|
28
|
+
export * from './make-picture/make-picture.component';
|
|
28
29
|
export * from './performance-toggle/performance-toggle.component';
|
|
29
30
|
export * from './ui-menu.component';
|
|
30
31
|
export * from './share-link/share-link.component';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { EventDisplayService } from '../../../services/event-display.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MakePictureComponent implements OnInit {
|
|
5
|
+
private eventDisplay;
|
|
6
|
+
fittings: string[];
|
|
7
|
+
fitting: string;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
constructor(eventDisplay: EventDisplayService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
setWidth(value: any): void;
|
|
13
|
+
setHeight(value: any): void;
|
|
14
|
+
makePicture(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MakePictureComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MakePictureComponent, "app-make-picture", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -15,8 +15,12 @@ export declare class OverlayComponent implements AfterViewInit {
|
|
|
15
15
|
resizable: boolean;
|
|
16
16
|
/** If the overlay body is transparent or not. */
|
|
17
17
|
transparentBody: boolean;
|
|
18
|
+
/** If the aspect ratio is kept fixed or not. */
|
|
19
|
+
keepAspectRatioFixed: boolean;
|
|
18
20
|
/** If the overlay body is visible or not. */
|
|
19
21
|
showBody: boolean;
|
|
22
|
+
/** Aspect ratio of the overlay view. */
|
|
23
|
+
aspectRatio: number;
|
|
20
24
|
/** Complete overlay card containing both header and body. */
|
|
21
25
|
overlayCard: ElementRef;
|
|
22
26
|
/** Handle for resizing the overlay. */
|
|
@@ -44,5 +48,5 @@ export declare class OverlayComponent implements AfterViewInit {
|
|
|
44
48
|
*/
|
|
45
49
|
private setHandleTransform;
|
|
46
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<OverlayComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OverlayComponent, "app-overlay", never, { "overlayTitle": "overlayTitle"; "active": "active"; "icon": "icon"; "resizable": "resizable"; "transparentBody": "transparentBody"; }, {}, never, ["*"], false, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OverlayComponent, "app-overlay", never, { "overlayTitle": "overlayTitle"; "active": "active"; "icon": "icon"; "resizable": "resizable"; "transparentBody": "transparentBody"; "keepAspectRatioFixed": "keepAspectRatioFixed"; }, {}, never, ["*"], false, never>;
|
|
48
52
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { QueryList } from '@angular/core';
|
|
2
2
|
import { EventDisplayService } from '../../../../services/event-display.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
4
|
+
export type TreeMenuNode = {
|
|
5
5
|
name: string;
|
|
6
6
|
geometryId: string;
|
|
7
7
|
children?: TreeMenuNode[];
|
|
@@ -3,7 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "../../ui-menu/menu-toggle/menu-toggle.component";
|
|
4
4
|
export class ExperimentLinkComponent {
|
|
5
5
|
ngOnInit() {
|
|
6
|
-
|
|
6
|
+
// we just want to remove the "&embed=true" instruction here.
|
|
7
|
+
const url = new URL(window.location.href);
|
|
8
|
+
url.searchParams.delete('embed');
|
|
9
|
+
this.experimentLink = url.toString();
|
|
7
10
|
}
|
|
8
11
|
goToExperiment() {
|
|
9
12
|
window.open(this.experimentLink, '_blank');
|
|
@@ -19,4 +22,4 @@ ExperimentLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Exp
|
|
|
19
22
|
type: Component,
|
|
20
23
|
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" }]
|
|
21
24
|
}], null, null); })();
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwZXJpbWVudC1saW5rLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYi9jb21wb25lbnRzL2VtYmVkLW1lbnUvZXhwZXJpbWVudC1saW5rL2V4cGVyaW1lbnQtbGluay5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9saWIvY29tcG9uZW50cy9lbWJlZC1tZW51L2V4cGVyaW1lbnQtbGluay9leHBlcmltZW50LWxpbmsuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7O0FBT2xELE1BQU0sT0FBTyx1QkFBdUI7SUFHbEMsUUFBUTtRQUNOLDZEQUE2RDtRQUM3RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQzFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyx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aW5nKCk7XG4gIH1cblxuICBnb1RvRXhwZXJpbWVudCgpIHtcbiAgICB3aW5kb3cub3Blbih0aGlzLmV4cGVyaW1lbnRMaW5rLCAnX2JsYW5rJyk7XG4gIH1cbn1cbiIsIjxhcHAtbWVudS10b2dnbGVcbiAgdG9vbHRpcD1cIlNlZSBmdWxsIGV2ZW50IGRpc3BsYXlcIlxuICBpY29uPVwibGlua1wiXG4gIChjbGljayk9XCJnb1RvRXhwZXJpbWVudCgpXCJcbj48L2FwcC1tZW51LXRvZ2dsZT5cbiJdfQ==
|
package/dist/esm2020/components/phoenix-menu/config/config-slider/config-slider.component.mjs
CHANGED
|
@@ -15,7 +15,9 @@ export class ConfigSliderComponent {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
this.value = 0;
|
|
17
17
|
this.min = 0;
|
|
18
|
+
this.oldMin = 0;
|
|
18
19
|
this.max = 100;
|
|
20
|
+
this.oldMax = 0;
|
|
19
21
|
this.step = 1;
|
|
20
22
|
this.allowCustomValue = false;
|
|
21
23
|
this.onChange = new EventEmitter();
|
|
@@ -23,6 +25,28 @@ export class ConfigSliderComponent {
|
|
|
23
25
|
onValueChange(value) {
|
|
24
26
|
value && this.onChange.emit(value);
|
|
25
27
|
}
|
|
28
|
+
toggleMinCut(change) {
|
|
29
|
+
const value = change.checked;
|
|
30
|
+
if (value) {
|
|
31
|
+
this.min = this.oldMin;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.oldMin = this.min;
|
|
35
|
+
this.min = Number.MIN_SAFE_INTEGER;
|
|
36
|
+
}
|
|
37
|
+
// We should probably disable the min input too, and change text to be infinity symbol or something?
|
|
38
|
+
}
|
|
39
|
+
toggleMaxCut(change) {
|
|
40
|
+
const value = change.checked;
|
|
41
|
+
if (value) {
|
|
42
|
+
this.max = this.oldMax;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.oldMax = this.max;
|
|
46
|
+
this.max = Number.MAX_SAFE_INTEGER;
|
|
47
|
+
}
|
|
48
|
+
// We should probably disable the min input too, and change text to be infinity symbol or something?
|
|
49
|
+
}
|
|
26
50
|
}
|
|
27
51
|
ConfigSliderComponent.ɵfac = function ConfigSliderComponent_Factory(t) { return new (t || ConfigSliderComponent)(); };
|
|
28
52
|
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) {
|
|
@@ -55,4 +79,4 @@ ConfigSliderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Confi
|
|
|
55
79
|
}], onChange: [{
|
|
56
80
|
type: Output
|
|
57
81
|
}] }); })();
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLXNsaWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWIvY29tcG9uZW50cy9waG9lbml4LW1lbnUvY29uZmlnL2NvbmZpZy1zbGlkZXIvY29uZmlnLXNsaWRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWIvY29tcG9uZW50cy9waG9lbml4LW1lbnUvY29uZmlnL2NvbmZpZy1zbGlkZXIvY29uZmlnLXNsaWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFB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