orbiq-neural-ui-kit 1.1.22 → 1.1.24

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 { input, signal, computed, Component, output, model, effect, ViewChild, EventEmitter, Output, InjectionToken, Optional, Inject, Directive, ContentChild, HostListener, ViewChildren, ContentChildren, inject, ViewContainerRef, ElementRef, Input, forwardRef, Injectable } from '@angular/core';
2
+ import { input, signal, computed, Component, output, model, effect, ViewChild, EventEmitter, Output, InjectionToken, Optional, Inject, Directive, ContentChild, HostListener, ViewChildren, ContentChildren, inject, ViewContainerRef, ElementRef, untracked, Input, forwardRef, Injectable } from '@angular/core';
3
3
  import * as i1$2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
@@ -8024,8 +8024,10 @@ class NeuralTimePickerComponent {
8024
8024
  constructor() {
8025
8025
  effect(() => {
8026
8026
  const val = this.modelValue() || '';
8027
- this.canonicalValue.set(val);
8028
- this.displayValue.set(val);
8027
+ untracked(() => {
8028
+ this.canonicalValue.set(val);
8029
+ this.displayValue.set(val);
8030
+ });
8029
8031
  });
8030
8032
  effect(() => {
8031
8033
  if (this.isOpen()) {
@@ -11472,6 +11474,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
11472
11474
 
11473
11475
  class NeuralDrawerComponent {
11474
11476
  dialog;
11477
+ viewContainerRef;
11475
11478
  openModel = model(false, /* @ts-ignore */
11476
11479
  ...(ngDevMode ? [{ debugName: "openModel" }] : /* istanbul ignore next */ []));
11477
11480
  title = input('Información', /* @ts-ignore */
@@ -11491,16 +11494,19 @@ class NeuralDrawerComponent {
11491
11494
  isVisible = signal(false, /* @ts-ignore */
11492
11495
  ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
11493
11496
  isClosing = false;
11494
- constructor(dialog) {
11497
+ constructor(dialog, viewContainerRef) {
11495
11498
  this.dialog = dialog;
11499
+ this.viewContainerRef = viewContainerRef;
11496
11500
  effect(() => {
11497
11501
  const isOpen = this.openModel();
11498
- if (isOpen && !this.dialogRef && this.drawerTemplate) {
11499
- this.openDrawer();
11500
- }
11501
- else if (!isOpen && this.dialogRef && !this.isClosing) {
11502
- this.close();
11503
- }
11502
+ untracked(() => {
11503
+ if (isOpen && !this.dialogRef && this.drawerTemplate) {
11504
+ this.openDrawer();
11505
+ }
11506
+ else if (!isOpen && this.dialogRef && !this.isClosing) {
11507
+ this.close();
11508
+ }
11509
+ });
11504
11510
  });
11505
11511
  }
11506
11512
  openDrawer() {
@@ -11510,6 +11516,7 @@ class NeuralDrawerComponent {
11510
11516
  backdropClass: 'bg-black-overlay-200',
11511
11517
  panelClass: ['w-full', 'h-full', 'bg-transparent', 'shadow-none', 'outline-none', 'pointer-events-none'],
11512
11518
  hasBackdrop: true,
11519
+ viewContainerRef: this.viewContainerRef,
11513
11520
  });
11514
11521
  // Wait a tick so the DOM renders the translated state, then trigger transition
11515
11522
  setTimeout(() => {
@@ -11591,7 +11598,7 @@ class NeuralDrawerComponent {
11591
11598
  return `${base} ${sizing} ${borders} ${translate}`;
11592
11599
  }, /* @ts-ignore */
11593
11600
  ...(ngDevMode ? [{ debugName: "panelClasses" }] : /* istanbul ignore next */ []));
11594
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralDrawerComponent, deps: [{ token: i1$3.Dialog }], target: i0.ɵɵFactoryTarget.Component });
11601
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralDrawerComponent, deps: [{ token: i1$3.Dialog }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
11595
11602
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralDrawerComponent, isStandalone: true, selector: "neural-drawer", inputs: { openModel: { classPropertyName: "openModel", publicName: "openModel", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openModel: "openModelChange", onClose: "onClose" }, viewQueries: [{ propertyName: "drawerTemplate", first: true, predicate: ["drawerTemplate"], descendants: true }], ngImport: i0, template: `
11596
11603
  <ng-template #drawerTemplate>
11597
11604
  <div class="fixed inset-0 z-50 flex" [ngClass]="wrapperClasses()">
@@ -11668,7 +11675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
11668
11675
  </ng-template>
11669
11676
  `
11670
11677
  }]
11671
- }], ctorParameters: () => [{ type: i1$3.Dialog }], propDecorators: { openModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "openModel", required: false }] }, { type: i0.Output, args: ["openModelChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], onClose: [{
11678
+ }], ctorParameters: () => [{ type: i1$3.Dialog }, { type: i0.ViewContainerRef }], propDecorators: { openModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "openModel", required: false }] }, { type: i0.Output, args: ["openModelChange"] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], onClose: [{
11672
11679
  type: Output
11673
11680
  }], drawerTemplate: [{
11674
11681
  type: ViewChild,