orbiq-neural-ui-kit 1.1.23 → 1.1.25

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,9 +8024,11 @@ class NeuralTimePickerComponent {
8024
8024
  constructor() {
8025
8025
  effect(() => {
8026
8026
  const val = this.modelValue() || '';
8027
- this.canonicalValue.set(val);
8028
- this.displayValue.set(val);
8029
- }, { allowSignalWrites: true });
8027
+ untracked(() => {
8028
+ this.canonicalValue.set(val);
8029
+ this.displayValue.set(val);
8030
+ });
8031
+ });
8030
8032
  effect(() => {
8031
8033
  if (this.isOpen()) {
8032
8034
  this.openPopover();
@@ -10548,6 +10550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
10548
10550
 
10549
10551
  class NeuralDialogComponent {
10550
10552
  dialog;
10553
+ viewContainerRef;
10551
10554
  openModel = model(false, /* @ts-ignore */
10552
10555
  ...(ngDevMode ? [{ debugName: "openModel" }] : /* istanbul ignore next */ []));
10553
10556
  title = input(/* @ts-ignore */
@@ -10579,8 +10582,9 @@ class NeuralDialogComponent {
10579
10582
  dialogTemplate;
10580
10583
  dialogRef = null;
10581
10584
  internalActionsState = {}; // track loading states
10582
- constructor(dialog) {
10585
+ constructor(dialog, viewContainerRef) {
10583
10586
  this.dialog = dialog;
10587
+ this.viewContainerRef = viewContainerRef;
10584
10588
  effect(() => {
10585
10589
  const isOpen = this.openModel();
10586
10590
  if (isOpen && !this.dialogRef && this.dialogTemplate) {
@@ -10598,6 +10602,7 @@ class NeuralDialogComponent {
10598
10602
  backdropClass: 'bg-black-overlay-200', // To match Frappe UI
10599
10603
  panelClass: ['w-full', 'h-full', 'bg-transparent', 'shadow-none'],
10600
10604
  hasBackdrop: true,
10605
+ viewContainerRef: this.viewContainerRef,
10601
10606
  });
10602
10607
  this.dialogRef.closed.subscribe(() => {
10603
10608
  this.dialogRef = null;
@@ -10727,7 +10732,7 @@ class NeuralDialogComponent {
10727
10732
  this.internalActionsState[action.label] = false;
10728
10733
  }
10729
10734
  }
10730
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralDialogComponent, deps: [{ token: i1$3.Dialog }], target: i0.ɵɵFactoryTarget.Component });
10735
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralDialogComponent, deps: [{ token: i1$3.Dialog }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
10731
10736
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralDialogComponent, isStandalone: true, selector: "neural-dialog", inputs: { openModel: { classPropertyName: "openModel", publicName: "openModel", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, paddingTop: { classPropertyName: "paddingTop", publicName: "paddingTop", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, showCloseButton: { classPropertyName: "showCloseButton", publicName: "showCloseButton", isSignal: true, isRequired: false, transformFunction: null }, bare: { classPropertyName: "bare", publicName: "bare", isSignal: true, isRequired: false, transformFunction: null }, hasTitleSlot: { classPropertyName: "hasTitleSlot", publicName: "hasTitleSlot", isSignal: true, isRequired: false, transformFunction: null }, hasActionsSlot: { classPropertyName: "hasActionsSlot", publicName: "hasActionsSlot", isSignal: true, isRequired: false, transformFunction: null }, hasDefaultSlot: { classPropertyName: "hasDefaultSlot", publicName: "hasDefaultSlot", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openModel: "openModelChange" }, viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true }], ngImport: i0, template: `
10732
10737
  <ng-template #dialogTemplate>
10733
10738
  <div
@@ -10940,7 +10945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
10940
10945
  </ng-template>
10941
10946
  `
10942
10947
  }]
10943
- }], 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 }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], paddingTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "paddingTop", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], bare: [{ type: i0.Input, args: [{ isSignal: true, alias: "bare", required: false }] }], hasTitleSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasTitleSlot", required: false }] }], hasActionsSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasActionsSlot", required: false }] }], hasDefaultSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDefaultSlot", required: false }] }], dialogTemplate: [{
10948
+ }], 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 }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], paddingTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "paddingTop", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], showCloseButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCloseButton", required: false }] }], bare: [{ type: i0.Input, args: [{ isSignal: true, alias: "bare", required: false }] }], hasTitleSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasTitleSlot", required: false }] }], hasActionsSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasActionsSlot", required: false }] }], hasDefaultSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDefaultSlot", required: false }] }], dialogTemplate: [{
10944
10949
  type: ViewChild,
10945
10950
  args: ['dialogTemplate']
10946
10951
  }] } });
@@ -11472,6 +11477,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
11472
11477
 
11473
11478
  class NeuralDrawerComponent {
11474
11479
  dialog;
11480
+ viewContainerRef;
11475
11481
  openModel = model(false, /* @ts-ignore */
11476
11482
  ...(ngDevMode ? [{ debugName: "openModel" }] : /* istanbul ignore next */ []));
11477
11483
  title = input('Información', /* @ts-ignore */
@@ -11491,17 +11497,20 @@ class NeuralDrawerComponent {
11491
11497
  isVisible = signal(false, /* @ts-ignore */
11492
11498
  ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
11493
11499
  isClosing = false;
11494
- constructor(dialog) {
11500
+ constructor(dialog, viewContainerRef) {
11495
11501
  this.dialog = dialog;
11502
+ this.viewContainerRef = viewContainerRef;
11496
11503
  effect(() => {
11497
11504
  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
- }
11504
- }, { allowSignalWrites: true });
11505
+ untracked(() => {
11506
+ if (isOpen && !this.dialogRef && this.drawerTemplate) {
11507
+ this.openDrawer();
11508
+ }
11509
+ else if (!isOpen && this.dialogRef && !this.isClosing) {
11510
+ this.close();
11511
+ }
11512
+ });
11513
+ });
11505
11514
  }
11506
11515
  openDrawer() {
11507
11516
  this.isClosing = false;
@@ -11510,6 +11519,7 @@ class NeuralDrawerComponent {
11510
11519
  backdropClass: 'bg-black-overlay-200',
11511
11520
  panelClass: ['w-full', 'h-full', 'bg-transparent', 'shadow-none', 'outline-none', 'pointer-events-none'],
11512
11521
  hasBackdrop: true,
11522
+ viewContainerRef: this.viewContainerRef,
11513
11523
  });
11514
11524
  // Wait a tick so the DOM renders the translated state, then trigger transition
11515
11525
  setTimeout(() => {
@@ -11591,7 +11601,7 @@ class NeuralDrawerComponent {
11591
11601
  return `${base} ${sizing} ${borders} ${translate}`;
11592
11602
  }, /* @ts-ignore */
11593
11603
  ...(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 });
11604
+ 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
11605
  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
11606
  <ng-template #drawerTemplate>
11597
11607
  <div class="fixed inset-0 z-50 flex" [ngClass]="wrapperClasses()">
@@ -11668,7 +11678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
11668
11678
  </ng-template>
11669
11679
  `
11670
11680
  }]
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: [{
11681
+ }], 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
11682
  type: Output
11673
11683
  }], drawerTemplate: [{
11674
11684
  type: ViewChild,