angular-three 2.0.0-beta.310 → 2.0.0-beta.312

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { untracked, computed, signal, ElementRef, input, inject, ViewContainerRef, NgZone, TemplateRef, afterNextRender, DestroyRef, Directive, effect, InjectionToken, getDebugNode, RendererFactory2, Injectable, makeEnvironmentProviders, Component, EnvironmentInjector, Injector, booleanAttribute, output, viewChild, createEnvironmentInjector, ChangeDetectionStrategy, Pipe, CUSTOM_ELEMENTS_SCHEMA, contentChild, model, Renderer2 } from '@angular/core';
2
+ import { untracked, computed, signal, ElementRef, input, inject, ViewContainerRef, NgZone, TemplateRef, afterNextRender, DestroyRef, Directive, effect, InjectionToken, DebugNode, RendererFactory2, Injectable, makeEnvironmentProviders, Component, EnvironmentInjector, Injector, booleanAttribute, output, viewChild, createEnvironmentInjector, ChangeDetectionStrategy, Pipe, CUSTOM_ELEMENTS_SCHEMA, contentChild, model, Renderer2 } from '@angular/core';
3
3
  import { takeUntilDestroyed, outputFromObservable, toObservable } from '@angular/core/rxjs-interop';
4
4
  import { injectAutoEffect } from 'ngxtension/auto-effect';
5
5
  import { provideResizeOptions, NgxResize } from 'ngxtension/resize';
@@ -282,7 +282,7 @@ function makeRendererInstance(glOptions, canvas) {
282
282
  return customRenderer;
283
283
  return new WebGLRenderer({
284
284
  powerPreference: 'high-performance',
285
- canvas: canvas,
285
+ canvas,
286
286
  antialias: true,
287
287
  alpha: true,
288
288
  ...glOptions,
@@ -806,10 +806,10 @@ class NgtArgs {
806
806
  this.view.detectChanges();
807
807
  });
808
808
  }
809
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtArgs, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
810
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.3", type: NgtArgs, isStandalone: true, selector: "ng-template[args]", inputs: { args: { classPropertyName: "args", publicName: "args", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
809
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtArgs, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
810
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.0", type: NgtArgs, isStandalone: true, selector: "ng-template[args]", inputs: { args: { classPropertyName: "args", publicName: "args", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
811
811
  }
812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtArgs, decorators: [{
812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtArgs, decorators: [{
813
813
  type: Directive,
814
814
  args: [{ selector: 'ng-template[args]', standalone: true }]
815
815
  }], ctorParameters: () => [] });
@@ -955,12 +955,6 @@ function createLoop(roots) {
955
955
  const [injectLoop] = createInjectionToken(() => createLoop(roots));
956
956
 
957
957
  function storeFactory(previousStore) {
958
- const document = inject(DOCUMENT);
959
- const window = document.defaultView;
960
- if (!window) {
961
- // TODO: revisit this when we need to support multiple platforms
962
- throw new Error(`[NGT] Window is not available.`);
963
- }
964
958
  const loop = injectLoop();
965
959
  // NOTE: using Subject because we do not care about late-subscribers
966
960
  const pointerMissed$ = new Subject();
@@ -1254,7 +1248,7 @@ function extend(objects) {
1254
1248
  const [injectCatalogue] = createInjectionToken(() => catalogue);
1255
1249
 
1256
1250
  function createNode(type, node, document) {
1257
- const state = [type, null, [], false, undefined, undefined, undefined];
1251
+ const state = [type, null, [], false, undefined, undefined, undefined, undefined];
1258
1252
  const rendererNode = Object.assign(node, { __ngt_renderer__: state });
1259
1253
  // NOTE: assign ownerDocument to node so we can use HostListener in Component
1260
1254
  if (!rendererNode['ownerDocument'])
@@ -1262,7 +1256,12 @@ function createNode(type, node, document) {
1262
1256
  // NOTE: assign injectorFactory on non-three type since
1263
1257
  // rendererNode is an instance of DOM Node
1264
1258
  if (state[0 /* NgtRendererClassId.type */] !== 'three') {
1265
- state[6 /* NgtRendererClassId.injectorFactory */] = () => getDebugNode(rendererNode)?.injector;
1259
+ state[7 /* NgtRendererClassId.debugNodeFactory */] = () => {
1260
+ if (!state[6 /* NgtRendererClassId.debugNode */]) {
1261
+ state[6 /* NgtRendererClassId.debugNode */] = new DebugNode(rendererNode);
1262
+ }
1263
+ return state[6 /* NgtRendererClassId.debugNode */];
1264
+ };
1266
1265
  }
1267
1266
  return rendererNode;
1268
1267
  }
@@ -1567,10 +1566,10 @@ class NgtRendererFactory {
1567
1566
  }
1568
1567
  return renderer;
1569
1568
  }
1570
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtRendererFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1571
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtRendererFactory }); }
1569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtRendererFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1570
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtRendererFactory }); }
1572
1571
  }
1573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtRendererFactory, decorators: [{
1572
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtRendererFactory, decorators: [{
1574
1573
  type: Injectable
1575
1574
  }] });
1576
1575
  class NgtRenderer {
@@ -1603,7 +1602,12 @@ class NgtRenderer {
1603
1602
  if (this.isRoot) {
1604
1603
  this.isRoot = false;
1605
1604
  const node = createNode('three', this.rootStore.snapshot.scene, this.document);
1606
- node.__ngt_renderer__[6 /* NgtRendererClassId.injectorFactory */] = () => getDebugNode(element)?.injector;
1605
+ node.__ngt_renderer__[7 /* NgtRendererClassId.debugNodeFactory */] = () => {
1606
+ if (!node.__ngt_renderer__[6 /* NgtRendererClassId.debugNode */]) {
1607
+ node.__ngt_renderer__[6 /* NgtRendererClassId.debugNode */] = new DebugNode(element);
1608
+ }
1609
+ return node.__ngt_renderer__[6 /* NgtRendererClassId.debugNode */];
1610
+ };
1607
1611
  return node;
1608
1612
  }
1609
1613
  if (name === SPECIAL_DOM_TAG.NGT_PORTAL) {
@@ -1752,7 +1756,7 @@ class NgtRenderer {
1752
1756
  }
1753
1757
  removeChild(parent, oldChild, isHostElement) {
1754
1758
  if (parent == null) {
1755
- parent = (untracked(() => getLocalState(oldChild)?.parent()) ||
1759
+ parent = (untracked(() => getLocalState(oldChild)?.parent?.()) ||
1756
1760
  oldChild.__ngt_renderer__[1 /* NgtRendererClassId.parent */]);
1757
1761
  }
1758
1762
  const cRS = oldChild.__ngt_renderer__;
@@ -1959,12 +1963,14 @@ class NgtRenderer {
1959
1963
  }
1960
1964
  }
1961
1965
  if (rS[0 /* NgtRendererClassId.type */] === 'comment') {
1962
- rS[6 /* NgtRendererClassId.injectorFactory */] = null;
1966
+ rS[6 /* NgtRendererClassId.debugNode */] = null;
1967
+ rS[7 /* NgtRendererClassId.debugNodeFactory */] = null;
1963
1968
  delete node[SPECIAL_INTERNAL_ADD_COMMENT];
1964
1969
  this.removeCommentNode(node, this.argsCommentNodes);
1965
1970
  }
1966
1971
  if (rS[0 /* NgtRendererClassId.type */] === 'portal') {
1967
- rS[6 /* NgtRendererClassId.injectorFactory */] = null;
1972
+ rS[6 /* NgtRendererClassId.debugNode */] = null;
1973
+ rS[7 /* NgtRendererClassId.debugNodeFactory */] = null;
1968
1974
  this.removeCommentNode(node, this.portalCommentsNodes);
1969
1975
  }
1970
1976
  // nullify parent
@@ -1995,7 +2001,7 @@ class NgtRenderer {
1995
2001
  }
1996
2002
  }
1997
2003
  processPortalContainer(portal) {
1998
- const injector = portal.__ngt_renderer__[6 /* NgtRendererClassId.injectorFactory */]?.();
2004
+ const injector = portal.__ngt_renderer__[7 /* NgtRendererClassId.debugNodeFactory */]?.()?.injector;
1999
2005
  if (!injector)
2000
2006
  return;
2001
2007
  const portalStore = injector.get(NGT_STORE, null);
@@ -2033,7 +2039,7 @@ class NgtRenderer {
2033
2039
  i--;
2034
2040
  continue;
2035
2041
  }
2036
- const injector = comment.__ngt_renderer__[6 /* NgtRendererClassId.injectorFactory */]();
2042
+ const injector = comment.__ngt_renderer__[7 /* NgtRendererClassId.debugNodeFactory */]?.()?.injector;
2037
2043
  if (!injector) {
2038
2044
  i--;
2039
2045
  continue;
@@ -2050,37 +2056,6 @@ class NgtRenderer {
2050
2056
  });
2051
2057
  return directive;
2052
2058
  }
2053
- tryGetPortalStore() {
2054
- let store;
2055
- const destroyed = [];
2056
- // we only care about the portal states because NgtStore only differs per Portal
2057
- let i = this.portalCommentsNodes.length - 1;
2058
- while (i >= 0) {
2059
- // loop through the portal state backwards to find the closest NgtStore
2060
- const portal = this.portalCommentsNodes[i];
2061
- if (portal.__ngt_renderer__[3 /* NgtRendererClassId.destroyed */]) {
2062
- destroyed.push(i);
2063
- i--;
2064
- continue;
2065
- }
2066
- const injector = portal.__ngt_renderer__[6 /* NgtRendererClassId.injectorFactory */]();
2067
- if (!injector) {
2068
- i--;
2069
- continue;
2070
- }
2071
- const instance = injector.get(NGT_STORE, null);
2072
- // only the instance with previousRoot should pass
2073
- if (instance && instance.get('previousRoot')) {
2074
- store = instance;
2075
- break;
2076
- }
2077
- i--;
2078
- }
2079
- destroyed.forEach((index) => {
2080
- this.portalCommentsNodes.splice(index, 1);
2081
- });
2082
- return store || this.rootStore;
2083
- }
2084
2059
  get data() {
2085
2060
  return this.delegate.data;
2086
2061
  }
@@ -2367,12 +2342,12 @@ class NgtRoutedScene {
2367
2342
  .pipe(filter((event) => event instanceof ActivationEnd), takeUntilDestroyed())
2368
2343
  .subscribe(cdr.detectChanges.bind(cdr));
2369
2344
  }
2370
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
2371
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.3", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `
2345
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
2346
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `
2372
2347
  <router-outlet />
2373
2348
  `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
2374
2349
  }
2375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtRoutedScene, decorators: [{
2350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtRoutedScene, decorators: [{
2376
2351
  type: Component,
2377
2352
  args: [{
2378
2353
  standalone: true,
@@ -2508,17 +2483,15 @@ class NgtCanvas {
2508
2483
  if (!this.store.get('events', 'connected')) {
2509
2484
  this.store.get('events').connect?.(untracked(this.glCanvas).nativeElement);
2510
2485
  }
2511
- untracked(() => {
2512
- this.glEnvironmentInjector = createEnvironmentInjector([provideNgtRenderer(this.store)], this.environmentInjector);
2513
- this.glRef = untracked(this.glCanvasViewContainerRef).createComponent(untracked(this.sceneGraph), {
2514
- environmentInjector: this.glEnvironmentInjector,
2515
- injector: this.injector,
2516
- });
2517
- this.glRef.changeDetectorRef.detectChanges();
2486
+ this.glEnvironmentInjector = createEnvironmentInjector([provideNgtRenderer(this.store)], this.environmentInjector);
2487
+ this.glRef = untracked(this.glCanvasViewContainerRef).createComponent(untracked(this.sceneGraph), {
2488
+ environmentInjector: this.glEnvironmentInjector,
2489
+ injector: this.injector,
2518
2490
  });
2491
+ this.glRef.changeDetectorRef.detectChanges();
2519
2492
  }
2520
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtCanvas, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2521
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.1.3", type: NgtCanvas, isStandalone: true, selector: "ngt-canvas", inputs: { sceneGraph: { classPropertyName: "sceneGraph", publicName: "sceneGraph", isSignal: true, isRequired: true, transformFunction: null }, gl: { classPropertyName: "gl", publicName: "gl", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadows: { classPropertyName: "shadows", publicName: "shadows", isSignal: true, isRequired: false, transformFunction: null }, legacy: { classPropertyName: "legacy", publicName: "legacy", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, flat: { classPropertyName: "flat", publicName: "flat", isSignal: true, isRequired: false, transformFunction: null }, orthographic: { classPropertyName: "orthographic", publicName: "orthographic", isSignal: true, isRequired: false, transformFunction: null }, frameloop: { classPropertyName: "frameloop", publicName: "frameloop", isSignal: true, isRequired: false, transformFunction: null }, performance: { classPropertyName: "performance", publicName: "performance", isSignal: true, isRequired: false, transformFunction: null }, dpr: { classPropertyName: "dpr", publicName: "dpr", isSignal: true, isRequired: false, transformFunction: null }, raycaster: { classPropertyName: "raycaster", publicName: "raycaster", isSignal: true, isRequired: false, transformFunction: null }, scene: { classPropertyName: "scene", publicName: "scene", isSignal: true, isRequired: false, transformFunction: null }, camera: { classPropertyName: "camera", publicName: "camera", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, eventSource: { classPropertyName: "eventSource", publicName: "eventSource", isSignal: true, isRequired: false, transformFunction: null }, eventPrefix: { classPropertyName: "eventPrefix", publicName: "eventPrefix", isSignal: true, isRequired: false, transformFunction: null }, lookAt: { classPropertyName: "lookAt", publicName: "lookAt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { created: "created", pointerMissed: "pointerMissed" }, host: { properties: { "style.pointerEvents": "hbPointerEvents()" }, styleAttribute: "display: block;position: relative;width: 100%;height: 100%;overflow: hidden;" }, providers: [
2493
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtCanvas, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2494
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.0", type: NgtCanvas, isStandalone: true, selector: "ngt-canvas", inputs: { sceneGraph: { classPropertyName: "sceneGraph", publicName: "sceneGraph", isSignal: true, isRequired: true, transformFunction: null }, gl: { classPropertyName: "gl", publicName: "gl", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadows: { classPropertyName: "shadows", publicName: "shadows", isSignal: true, isRequired: false, transformFunction: null }, legacy: { classPropertyName: "legacy", publicName: "legacy", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, flat: { classPropertyName: "flat", publicName: "flat", isSignal: true, isRequired: false, transformFunction: null }, orthographic: { classPropertyName: "orthographic", publicName: "orthographic", isSignal: true, isRequired: false, transformFunction: null }, frameloop: { classPropertyName: "frameloop", publicName: "frameloop", isSignal: true, isRequired: false, transformFunction: null }, performance: { classPropertyName: "performance", publicName: "performance", isSignal: true, isRequired: false, transformFunction: null }, dpr: { classPropertyName: "dpr", publicName: "dpr", isSignal: true, isRequired: false, transformFunction: null }, raycaster: { classPropertyName: "raycaster", publicName: "raycaster", isSignal: true, isRequired: false, transformFunction: null }, scene: { classPropertyName: "scene", publicName: "scene", isSignal: true, isRequired: false, transformFunction: null }, camera: { classPropertyName: "camera", publicName: "camera", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, eventSource: { classPropertyName: "eventSource", publicName: "eventSource", isSignal: true, isRequired: false, transformFunction: null }, eventPrefix: { classPropertyName: "eventPrefix", publicName: "eventPrefix", isSignal: true, isRequired: false, transformFunction: null }, lookAt: { classPropertyName: "lookAt", publicName: "lookAt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { created: "created", pointerMissed: "pointerMissed" }, host: { properties: { "style.pointerEvents": "hbPointerEvents()" }, styleAttribute: "display: block;position: relative;width: 100%;height: 100%;overflow: hidden;" }, providers: [
2522
2495
  provideResizeOptions({
2523
2496
  emitInZone: false,
2524
2497
  emitInitialResult: true,
@@ -2531,7 +2504,7 @@ class NgtCanvas {
2531
2504
  </div>
2532
2505
  `, isInline: true, dependencies: [{ kind: "directive", type: NgxResize, selector: "[ngxResize]", inputs: ["ngxResizeOptions"], outputs: ["ngxResize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2533
2506
  }
2534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtCanvas, decorators: [{
2507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtCanvas, decorators: [{
2535
2508
  type: Component,
2536
2509
  args: [{
2537
2510
  selector: 'ngt-canvas',
@@ -2565,10 +2538,10 @@ class NgtSelection {
2565
2538
  this.selected = this.source.asReadonly();
2566
2539
  this.update = this.source.update.bind(this.source);
2567
2540
  }
2568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2569
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.3", type: NgtSelection, isStandalone: true, selector: "[ngtSelection]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelection", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
2541
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2542
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.0", type: NgtSelection, isStandalone: true, selector: "[ngtSelection]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelection", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
2570
2543
  }
2571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtSelection, decorators: [{
2544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtSelection, decorators: [{
2572
2545
  type: Directive,
2573
2546
  args: [{ standalone: true, selector: '[ngtSelection]' }]
2574
2547
  }] });
@@ -2611,10 +2584,10 @@ class NgtSelect {
2611
2584
  }, { allowSignalWrites: true });
2612
2585
  });
2613
2586
  }
2614
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2615
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.3", type: NgtSelect, isStandalone: true, selector: "ngt-group[ngtSelect], ngt-mesh[ngtSelect]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelect", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
2587
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2588
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.0", type: NgtSelect, isStandalone: true, selector: "ngt-group[ngtSelect], ngt-mesh[ngtSelect]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelect", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
2616
2589
  }
2617
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtSelect, decorators: [{
2590
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtSelect, decorators: [{
2618
2591
  type: Directive,
2619
2592
  args: [{ standalone: true, selector: 'ngt-group[ngtSelect], ngt-mesh[ngtSelect]' }]
2620
2593
  }], ctorParameters: () => [] });
@@ -2648,10 +2621,10 @@ class NgtHTML {
2648
2621
  delete this.host.nativeElement['__ngt_dom_parent__'];
2649
2622
  });
2650
2623
  }
2651
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtHTML, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2652
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.3", type: NgtHTML, ngImport: i0 }); }
2624
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtHTML, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2625
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: NgtHTML, ngImport: i0 }); }
2653
2626
  }
2654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtHTML, decorators: [{
2627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtHTML, decorators: [{
2655
2628
  type: Directive
2656
2629
  }], ctorParameters: () => [] });
2657
2630
 
@@ -2804,10 +2777,10 @@ class NgtHexify {
2804
2777
  const hex = component.toString(16);
2805
2778
  return hex.length === 1 ? '0' + hex : hex;
2806
2779
  }
2807
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtHexify, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2808
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.3", ngImport: i0, type: NgtHexify, isStandalone: true, name: "hexify" }); }
2780
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtHexify, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2781
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: NgtHexify, isStandalone: true, name: "hexify" }); }
2809
2782
  }
2810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtHexify, decorators: [{
2783
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtHexify, decorators: [{
2811
2784
  type: Pipe,
2812
2785
  args: [{ name: 'hexify', pure: true, standalone: true }]
2813
2786
  }] });
@@ -2852,13 +2825,13 @@ class NgtPortalBeforeRender {
2852
2825
  onPointerOver() {
2853
2826
  /* noop */
2854
2827
  }
2855
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortalBeforeRender, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2856
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.1.3", type: NgtPortalBeforeRender, isStandalone: true, selector: "ngt-portal-before-render", inputs: { renderPriority: { classPropertyName: "renderPriority", publicName: "renderPriority", isSignal: true, isRequired: false, transformFunction: null }, parentScene: { classPropertyName: "parentScene", publicName: "parentScene", isSignal: true, isRequired: true, transformFunction: null }, parentCamera: { classPropertyName: "parentCamera", publicName: "parentCamera", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
2828
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortalBeforeRender, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2829
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NgtPortalBeforeRender, isStandalone: true, selector: "ngt-portal-before-render", inputs: { renderPriority: { classPropertyName: "renderPriority", publicName: "renderPriority", isSignal: true, isRequired: false, transformFunction: null }, parentScene: { classPropertyName: "parentScene", publicName: "parentScene", isSignal: true, isRequired: true, transformFunction: null }, parentCamera: { classPropertyName: "parentCamera", publicName: "parentCamera", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
2857
2830
  <!-- Without an element that receives pointer events state.pointer will always be 0/0 -->
2858
2831
  <ngt-group (pointerover)="onPointerOver()" attach="none" />
2859
2832
  `, isInline: true }); }
2860
2833
  }
2861
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortalBeforeRender, decorators: [{
2834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortalBeforeRender, decorators: [{
2862
2835
  type: Component,
2863
2836
  args: [{
2864
2837
  selector: 'ngt-portal-before-render',
@@ -2883,10 +2856,10 @@ class NgtPortalContent {
2883
2856
  static ngTemplateContextGuard(_, ctx) {
2884
2857
  return true;
2885
2858
  }
2886
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortalContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2887
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.3", type: NgtPortalContent, isStandalone: true, selector: "ng-template[portalContent]", ngImport: i0 }); }
2859
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortalContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2860
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: NgtPortalContent, isStandalone: true, selector: "ng-template[portalContent]", ngImport: i0 }); }
2888
2861
  }
2889
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortalContent, decorators: [{
2862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortalContent, decorators: [{
2890
2863
  type: Directive,
2891
2864
  args: [{ selector: 'ng-template[portalContent]', standalone: true }]
2892
2865
  }], ctorParameters: () => [] });
@@ -2996,8 +2969,8 @@ class NgtPortal {
2996
2969
  ...rest,
2997
2970
  };
2998
2971
  }
2999
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3000
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.3", type: NgtPortal, isStandalone: true, selector: "ngt-portal", inputs: { container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, autoRender: { classPropertyName: "autoRender", publicName: "autoRender", isSignal: true, isRequired: false, transformFunction: null }, autoRenderPriority: { classPropertyName: "autoRenderPriority", publicName: "autoRenderPriority", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideStore(() => signalStore({}))], queries: [{ propertyName: "portalContent", first: true, predicate: NgtPortalContent, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "portalAnchor", first: true, predicate: ["anchor"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
2972
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2973
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: NgtPortal, isStandalone: true, selector: "ngt-portal", inputs: { container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, autoRender: { classPropertyName: "autoRender", publicName: "autoRender", isSignal: true, isRequired: false, transformFunction: null }, autoRenderPriority: { classPropertyName: "autoRenderPriority", publicName: "autoRenderPriority", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideStore(() => signalStore({}))], queries: [{ propertyName: "portalContent", first: true, predicate: NgtPortalContent, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "portalAnchor", first: true, predicate: ["anchor"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
3001
2974
  <ng-container #anchor />
3002
2975
 
3003
2976
  @if (renderAutoBeforeRender()) {
@@ -3009,7 +2982,7 @@ class NgtPortal {
3009
2982
  }
3010
2983
  `, isInline: true, dependencies: [{ kind: "component", type: NgtPortalBeforeRender, selector: "ngt-portal-before-render", inputs: ["renderPriority", "parentScene", "parentCamera"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3011
2984
  }
3012
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtPortal, decorators: [{
2985
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtPortal, decorators: [{
3013
2986
  type: Component,
3014
2987
  args: [{
3015
2988
  selector: 'ngt-portal',
@@ -3079,10 +3052,10 @@ class NgtObjectEvents {
3079
3052
  }, { injector });
3080
3053
  });
3081
3054
  }
3082
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtObjectEvents, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
3083
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.1.3", type: NgtObjectEvents, isStandalone: true, selector: "[ngtObjectEvents]", inputs: { ngtObjectEvents: { classPropertyName: "ngtObjectEvents", publicName: "ngtObjectEvents", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click", dblclick: "dblclick", contextmenu: "contextmenu", pointerup: "pointerup", pointerdown: "pointerdown", pointerover: "pointerover", pointerout: "pointerout", pointerenter: "pointerenter", pointerleave: "pointerleave", pointermove: "pointermove", pointermissed: "pointermissed", pointercancel: "pointercancel", wheel: "wheel", ngtObjectEvents: "ngtObjectEventsChange" }, ngImport: i0 }); }
3055
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtObjectEvents, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
3056
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.0", type: NgtObjectEvents, isStandalone: true, selector: "[ngtObjectEvents]", inputs: { ngtObjectEvents: { classPropertyName: "ngtObjectEvents", publicName: "ngtObjectEvents", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click", dblclick: "dblclick", contextmenu: "contextmenu", pointerup: "pointerup", pointerdown: "pointerdown", pointerover: "pointerover", pointerout: "pointerout", pointerenter: "pointerenter", pointerleave: "pointerleave", pointermove: "pointermove", pointermissed: "pointermissed", pointercancel: "pointercancel", wheel: "wheel", ngtObjectEvents: "ngtObjectEventsChange" }, ngImport: i0 }); }
3084
3057
  }
3085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.3", ngImport: i0, type: NgtObjectEvents, decorators: [{
3058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NgtObjectEvents, decorators: [{
3086
3059
  type: Directive,
3087
3060
  args: [{ standalone: true, selector: '[ngtObjectEvents]' }]
3088
3061
  }], ctorParameters: () => [] });