@rocketshow/designer 1.65.0 → 1.67.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/index.d.ts CHANGED
@@ -1,29 +1,27 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgZone, OnDestroy, AfterViewInit, OnInit, ElementRef, ChangeDetectorRef, PipeTransform, EventEmitter } from '@angular/core';
3
- import * as i46 from '@ngx-translate/core';
2
+ import { NgZone, OnDestroy, AfterViewInit, OnInit, ElementRef, ChangeDetectorRef, OnChanges, EventEmitter, TemplateRef, SimpleChanges, PipeTransform } from '@angular/core';
3
+ import * as i47 from '@ngx-translate/core';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
6
6
  import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
7
7
  import { HttpClient, HttpHeaders } from '@angular/common/http';
8
- import * as i51 from 'ngx-toastr';
8
+ import * as i52 from 'ngx-toastr';
9
9
  import { ToastrService } from 'ngx-toastr';
10
10
  import { Observable, Subject } from 'rxjs';
11
- import * as i41 from '@angular/router';
11
+ import * as i42 from '@angular/router';
12
12
  import { Router, ActivatedRoute } from '@angular/router';
13
13
  import * as THREE from 'three';
14
14
  import WaveSurfer from 'wavesurfer.js';
15
15
  import { Options } from 'sortablejs';
16
- import * as i52 from '@ali-hm/angular-tree-component';
17
- import { ITreeOptions } from '@ali-hm/angular-tree-component';
18
- import * as i50 from 'ngx-dropzone-wrapper';
16
+ import * as i51 from 'ngx-dropzone-wrapper';
19
17
  import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';
20
- import * as i42 from '@angular/platform-browser';
21
- import * as i43 from '@angular/platform-browser/animations';
22
- import * as i44 from '@angular/forms';
23
- import * as i45 from 'ngx-bootstrap-slider';
24
- import * as i47 from 'ngx-bootstrap/accordion';
25
- import * as i48 from 'ngx-bootstrap/popover';
26
- import * as i49 from 'ngx-bootstrap/typeahead';
18
+ import * as i43 from '@angular/platform-browser';
19
+ import * as i44 from '@angular/platform-browser/animations';
20
+ import * as i45 from '@angular/forms';
21
+ import * as i46 from 'ngx-bootstrap-slider';
22
+ import * as i48 from 'ngx-bootstrap/accordion';
23
+ import * as i49 from 'ngx-bootstrap/popover';
24
+ import * as i50 from 'ngx-bootstrap/typeahead';
27
25
 
28
26
  declare class DesignerService {
29
27
  constructor();
@@ -1322,18 +1320,91 @@ declare class FixturePoolComponent implements OnInit {
1322
1320
  static ɵcmp: i0.ɵɵComponentDeclaration<FixturePoolComponent, "lib-app-fixture-pool", never, {}, {}, never, never, false, never>;
1323
1321
  }
1324
1322
 
1323
+ interface TreeNode {
1324
+ id?: string | number;
1325
+ name?: string;
1326
+ isFolder?: boolean;
1327
+ expanded?: boolean;
1328
+ children?: TreeNode[];
1329
+ [key: string]: any;
1330
+ }
1331
+ type TreeDropZone = 'before' | 'after' | 'inside';
1332
+ interface FlatNode {
1333
+ node: TreeNode;
1334
+ level: number;
1335
+ parent: TreeNode | null;
1336
+ }
1337
+ interface DropTarget {
1338
+ row: TreeNode;
1339
+ zone: TreeDropZone;
1340
+ indent: number;
1341
+ ref: TreeNode;
1342
+ }
1343
+ /**
1344
+ * A lightweight, dependency-free tree:
1345
+ * - collapsible folders (closed/open folder icon)
1346
+ * - multi selection (ctrl/cmd to toggle, shift to select a range)
1347
+ * - native HTML5 drag & drop, dropping before/after a node or into a folder,
1348
+ * moving the whole current selection at once
1349
+ */
1350
+ declare class TreeComponent implements OnChanges {
1351
+ nodes: TreeNode[];
1352
+ selectedNodes: TreeNode[];
1353
+ allowDrag: (node: TreeNode) => boolean;
1354
+ allowDrop: (dragged: TreeNode[], target: TreeNode, zone: TreeDropZone) => boolean;
1355
+ selectedNodesChange: EventEmitter<TreeNode[]>;
1356
+ activate: EventEmitter<TreeNode>;
1357
+ nodesChange: EventEmitter<TreeNode[]>;
1358
+ nodeTemplate?: TemplateRef<any>;
1359
+ flatNodes: FlatNode[];
1360
+ draggingNodes: TreeNode[];
1361
+ drop: DropTarget | null;
1362
+ dropTail: boolean;
1363
+ private static readonly INDENT_STEP;
1364
+ private static readonly INDENT_BASE;
1365
+ private selection;
1366
+ private lastClickedIndex;
1367
+ private flatByNode;
1368
+ indentPx(level: number): string;
1369
+ private indent;
1370
+ ngOnChanges(changes: SimpleChanges): void;
1371
+ isSelected(node: TreeNode): boolean;
1372
+ isDragging(node: TreeNode): boolean;
1373
+ toggleExpand(node: TreeNode): void;
1374
+ onRowClick(flat: FlatNode, event: MouseEvent): void;
1375
+ private selectRange;
1376
+ onDragStart(flat: FlatNode, event: DragEvent): void;
1377
+ onDragOver(flat: FlatNode, event: DragEvent): void;
1378
+ onDrop(flat: FlatNode, event: DragEvent): void;
1379
+ onTailDragOver(event: DragEvent): void;
1380
+ onTailDrop(event: DragEvent): void;
1381
+ onDragEnd(): void;
1382
+ private endDrag;
1383
+ private clearIndicator;
1384
+ private resolveDrop;
1385
+ private afterRow;
1386
+ private canDrop;
1387
+ private moveNodes;
1388
+ private detachAll;
1389
+ private rebuild;
1390
+ private flatten;
1391
+ private removeNested;
1392
+ private contains;
1393
+ private locate;
1394
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeComponent, never>;
1395
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeComponent, "lib-tree", never, { "nodes": { "alias": "nodes"; "required": false; }; "selectedNodes": { "alias": "selectedNodes"; "required": false; }; "allowDrag": { "alias": "allowDrag"; "required": false; }; "allowDrop": { "alias": "allowDrop"; "required": false; }; }, { "selectedNodesChange": "selectedNodesChange"; "activate": "activate"; "nodesChange": "nodesChange"; }, ["nodeTemplate"], never, false, never>;
1396
+ }
1397
+
1325
1398
  declare class PresetComponent implements OnInit {
1326
1399
  presetService: PresetService;
1327
1400
  sceneService: SceneService;
1328
1401
  projectService: ProjectService;
1329
1402
  introService: IntroService;
1330
1403
  private modalService;
1331
- treeOptions: ITreeOptions;
1332
- treeNodes: any;
1333
- tree: ElementRef;
1404
+ treeNodes: TreeNode[];
1334
1405
  constructor(presetService: PresetService, sceneService: SceneService, projectService: ProjectService, introService: IntroService, modalService: BsModalService);
1335
1406
  ngOnInit(): void;
1336
- onActivate(event: any): void;
1407
+ onActivate(node: TreeNode): void;
1337
1408
  selectPreset(index: number): void;
1338
1409
  enableCheckbox(): boolean;
1339
1410
  activatePreset(active: boolean, index: number): void;
@@ -1796,7 +1867,7 @@ declare class SortablejsDirective implements AfterViewInit, OnDestroy {
1796
1867
 
1797
1868
  declare class DesignerModule {
1798
1869
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerModule, never>;
1799
- static ɵmod: i0.ɵɵNgModuleDeclaration<DesignerModule, [typeof DesignerComponent, typeof WarningDialogComponent, typeof PreviewComponent, typeof EffectCurveComponent, typeof EffectPanTiltComponent, typeof SceneComponent, typeof TimelineComponent, typeof FixtureCapabilityColorComponent, typeof FixtureComponent, typeof FixtureSettingsPositionComponent, typeof FixtureCapabilityComponent, typeof FixtureSettingsComponent, typeof EffectComponent, typeof FixturePoolComponent, typeof PresetComponent, typeof MasterDimmerComponent, typeof FixtureCapabilityDimmerComponent, typeof TimelineGridComponent, typeof CompositionSettingsComponent, typeof ArraySortPipe, typeof FixtureCapabilityPanTiltComponent, typeof FixtureCapabilityChannelComponent, typeof FixtureChannelComponent, typeof FixtureCapabilityColorWheelComponent, typeof UserLoginComponent, typeof UserRegisterComponent, typeof ProjectBrowserComponent, typeof WaitDialogComponent, typeof ProjectImportComponent, typeof ProjectShareComponent, typeof ErrorDialogComponent, typeof FixtureSettingsStageComponent, typeof IntroComponent, typeof PresetSettingsComponent, typeof SceneSettingsComponent, typeof ProjectSaveComponent, typeof FixturePoolCreateFromFileComponent, typeof FixturePoolEditUniversesComponent, typeof DropzoneComponent, typeof SortablejsDirective], [typeof i41.RouterModule, typeof i42.BrowserModule, typeof i43.BrowserAnimationsModule, typeof i44.FormsModule, typeof i45.NgxBootstrapSliderModule, typeof i46.TranslateModule, typeof i47.AccordionModule, typeof i48.PopoverModule, typeof i49.TypeaheadModule, typeof i50.DropzoneModule, typeof i51.ToastrModule, typeof i52.TreeModule], [typeof DesignerComponent]>;
1870
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DesignerModule, [typeof DesignerComponent, typeof WarningDialogComponent, typeof PreviewComponent, typeof EffectCurveComponent, typeof EffectPanTiltComponent, typeof SceneComponent, typeof TimelineComponent, typeof FixtureCapabilityColorComponent, typeof FixtureComponent, typeof FixtureSettingsPositionComponent, typeof FixtureCapabilityComponent, typeof FixtureSettingsComponent, typeof EffectComponent, typeof FixturePoolComponent, typeof PresetComponent, typeof MasterDimmerComponent, typeof FixtureCapabilityDimmerComponent, typeof TimelineGridComponent, typeof CompositionSettingsComponent, typeof ArraySortPipe, typeof FixtureCapabilityPanTiltComponent, typeof FixtureCapabilityChannelComponent, typeof FixtureChannelComponent, typeof FixtureCapabilityColorWheelComponent, typeof UserLoginComponent, typeof UserRegisterComponent, typeof ProjectBrowserComponent, typeof WaitDialogComponent, typeof ProjectImportComponent, typeof ProjectShareComponent, typeof ErrorDialogComponent, typeof FixtureSettingsStageComponent, typeof IntroComponent, typeof PresetSettingsComponent, typeof SceneSettingsComponent, typeof ProjectSaveComponent, typeof FixturePoolCreateFromFileComponent, typeof FixturePoolEditUniversesComponent, typeof DropzoneComponent, typeof SortablejsDirective, typeof TreeComponent], [typeof i42.RouterModule, typeof i43.BrowserModule, typeof i44.BrowserAnimationsModule, typeof i45.FormsModule, typeof i46.NgxBootstrapSliderModule, typeof i47.TranslateModule, typeof i48.AccordionModule, typeof i49.PopoverModule, typeof i50.TypeaheadModule, typeof i51.DropzoneModule, typeof i52.ToastrModule], [typeof DesignerComponent]>;
1800
1871
  static ɵinj: i0.ɵɵInjectorDeclaration<DesignerModule>;
1801
1872
  }
1802
1873
 
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@rocketshow/designer",
3
- "version": "1.65.0",
3
+ "version": "1.67.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@ali-hm/angular-tree-component": "^20.3.4",
9
8
  "@angular/animations": ">=20.0.0 <21.0.0",
10
9
  "@angular/common": ">=20.0.0 <21.0.0",
11
10
  "@angular/core": ">=20.0.0 <21.0.0",
Binary file
Binary file