ngx-blocks-studio 0.1.0 → 0.1.1

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.
@@ -720,14 +720,17 @@ class RouteLoader {
720
720
  http = inject(HttpClient);
721
721
  componentRegistry = ComponentRegistry.getInstance();
722
722
  guardRegistry = GuardRegistry.getInstance();
723
- _routeConfigFile = signal(null, ...(ngDevMode ? [{ debugName: "_routeConfigFile" }] : []));
724
- _configPath = signal('', ...(ngDevMode ? [{ debugName: "_configPath" }] : []));
723
+ _routeConfigFile = signal(null, /* @ts-ignore */
724
+ ...(ngDevMode ? [{ debugName: "_routeConfigFile" }] : /* istanbul ignore next */ []));
725
+ _configPath = signal('', /* @ts-ignore */
726
+ ...(ngDevMode ? [{ debugName: "_configPath" }] : /* istanbul ignore next */ []));
725
727
  /** Currently loaded route config file, or null if not yet loaded. */
726
728
  routeConfigFile = this._routeConfigFile.asReadonly();
727
729
  /** Path from which the config was loaded. */
728
730
  configPath = this._configPath.asReadonly();
729
731
  /** Route config array from the loaded file. */
730
- routeConfig = computed(() => this._routeConfigFile()?.routes ?? [], ...(ngDevMode ? [{ debugName: "routeConfig" }] : []));
732
+ routeConfig = computed(() => this._routeConfigFile()?.routes ?? [], /* @ts-ignore */
733
+ ...(ngDevMode ? [{ debugName: "routeConfig" }] : /* istanbul ignore next */ []));
731
734
  /**
732
735
  * Load routes from a config object. Updates signals and resets the router.
733
736
  */
@@ -848,10 +851,10 @@ class RouteLoader {
848
851
  }
849
852
  return guard;
850
853
  }
851
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RouteLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
852
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RouteLoader, providedIn: 'root' });
854
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RouteLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
855
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RouteLoader, providedIn: 'root' });
853
856
  }
854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: RouteLoader, decorators: [{
857
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RouteLoader, decorators: [{
855
858
  type: Injectable,
856
859
  args: [{
857
860
  providedIn: 'root',
@@ -935,10 +938,10 @@ class BlockRegistryService {
935
938
  getParentScopeKey(scopeKey) {
936
939
  return this.registry.get(scopeKey)?.parentScopeKey ?? null;
937
940
  }
938
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
939
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockRegistryService, providedIn: 'root' });
941
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
942
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockRegistryService, providedIn: 'root' });
940
943
  }
941
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockRegistryService, decorators: [{
944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockRegistryService, decorators: [{
942
945
  type: Injectable,
943
946
  args: [{ providedIn: 'root' }]
944
947
  }] });
@@ -2837,10 +2840,10 @@ class BlockLoaderService {
2837
2840
  },
2838
2841
  };
2839
2842
  }
2840
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2841
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockLoaderService, providedIn: 'root' });
2843
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2844
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockLoaderService, providedIn: 'root' });
2842
2845
  }
2843
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockLoaderService, decorators: [{
2846
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockLoaderService, decorators: [{
2844
2847
  type: Injectable,
2845
2848
  args: [{ providedIn: 'root' }]
2846
2849
  }] });
@@ -2869,18 +2872,23 @@ class BlockDirective {
2869
2872
  loader = inject(BlockLoaderService);
2870
2873
  destroyRef = inject(DestroyRef);
2871
2874
  /** Full description, or { id } / { blockId, blockDefinition? } to reuse/override from blockDefinitions. */
2872
- description = input(null, ...(ngDevMode ? [{ debugName: "description" }] : []));
2875
+ description = input(null, /* @ts-ignore */
2876
+ ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
2873
2877
  /** Registry for block instances by id; pass from root so nested blocks share it. */
2874
- blockRegistry = input(null, ...(ngDevMode ? [{ debugName: "blockRegistry" }] : []));
2878
+ blockRegistry = input(null, /* @ts-ignore */
2879
+ ...(ngDevMode ? [{ debugName: "blockRegistry" }] : /* istanbul ignore next */ []));
2875
2880
  /** Map id → full description or loader; used when description is a block reference (id/blockId). */
2876
- blockDefinitions = input(null, ...(ngDevMode ? [{ debugName: "blockDefinitions" }] : []));
2881
+ blockDefinitions = input(null, /* @ts-ignore */
2882
+ ...(ngDevMode ? [{ debugName: "blockDefinitions" }] : /* istanbul ignore next */ []));
2877
2883
  /** Model for the block. */
2878
- model = input(undefined, ...(ngDevMode ? [{ debugName: "model" }] : []));
2884
+ model = input(undefined, /* @ts-ignore */
2885
+ ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
2879
2886
  /**
2880
2887
  * Forces a reload when this value changes, even if component/services are the same.
2881
2888
  * Useful for "same component, different inputs" scenarios like tabs/switch blocks.
2882
2889
  */
2883
- reloadKey = input(null, ...(ngDevMode ? [{ debugName: "reloadKey" }] : []));
2890
+ reloadKey = input(null, /* @ts-ignore */
2891
+ ...(ngDevMode ? [{ debugName: "reloadKey" }] : /* istanbul ignore next */ []));
2884
2892
  loadResult = null;
2885
2893
  lastRegistry = null;
2886
2894
  lastId = null;
@@ -2995,10 +3003,10 @@ class BlockDirective {
2995
3003
  this.loadedDescKey = null;
2996
3004
  }
2997
3005
  }
2998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2999
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: BlockDirective, isStandalone: true, selector: "[block]", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, blockRegistry: { classPropertyName: "blockRegistry", publicName: "blockRegistry", isSignal: true, isRequired: false, transformFunction: null }, blockDefinitions: { classPropertyName: "blockDefinitions", publicName: "blockDefinitions", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, reloadKey: { classPropertyName: "reloadKey", publicName: "reloadKey", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
3006
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3007
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.7", type: BlockDirective, isStandalone: true, selector: "[block]", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, blockRegistry: { classPropertyName: "blockRegistry", publicName: "blockRegistry", isSignal: true, isRequired: false, transformFunction: null }, blockDefinitions: { classPropertyName: "blockDefinitions", publicName: "blockDefinitions", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, reloadKey: { classPropertyName: "reloadKey", publicName: "reloadKey", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
3000
3008
  }
3001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BlockDirective, decorators: [{
3009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockDirective, decorators: [{
3002
3010
  type: Directive,
3003
3011
  args: [{
3004
3012
  selector: '[block]',