orbiq-neural-ui-kit 1.2.68 → 1.2.70

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.
@@ -13721,7 +13721,11 @@ class NeuralNotificationCenterComponent {
13721
13721
  ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
13722
13722
  onClose = new EventEmitter();
13723
13723
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralNotificationCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13724
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: NeuralNotificationCenterComponent, isStandalone: true, selector: "neural-notification-center", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClose: "onClose" }, ngImport: i0, template: `
13724
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralNotificationCenterComponent, isStandalone: true, selector: "neural-notification-center", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClose: "onClose" }, ngImport: i0, template: `
13725
+ @if (open()) {
13726
+ <div class="fixed inset-0 z-40 bg-transparent" (click)="onClose.emit()"></div>
13727
+ }
13728
+
13725
13729
  <div
13726
13730
  class="top-0 z-50 flex h-full w-[380px] flex-col bg-surface-base border-outline-gray-2 shadow-[4px_0_24px_rgba(0,0,0,0.08)] transition-transform duration-300 ease-in-out"
13727
13731
  [ngClass]="{
@@ -13760,6 +13764,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
13760
13764
  standalone: true,
13761
13765
  imports: [CommonModule],
13762
13766
  template: `
13767
+ @if (open()) {
13768
+ <div class="fixed inset-0 z-40 bg-transparent" (click)="onClose.emit()"></div>
13769
+ }
13770
+
13763
13771
  <div
13764
13772
  class="top-0 z-50 flex h-full w-[380px] flex-col bg-surface-base border-outline-gray-2 shadow-[4px_0_24px_rgba(0,0,0,0.08)] transition-transform duration-300 ease-in-out"
13765
13773
  [ngClass]="{
@@ -14432,8 +14440,13 @@ class NeuralSidebarItemComponent {
14432
14440
  ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
14433
14441
  suffix = input('', /* @ts-ignore */
14434
14442
  ...(ngDevMode ? [{ debugName: "suffix" }] : /* istanbul ignore next */ []));
14443
+ action = input('', /* @ts-ignore */
14444
+ ...(ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []));
14445
+ shortcut = input('', /* @ts-ignore */
14446
+ ...(ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []));
14435
14447
  children = input([], /* @ts-ignore */
14436
14448
  ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
14449
+ itemAction = new EventEmitter();
14437
14450
  hasPrefixSlot = input(false, /* @ts-ignore */
14438
14451
  ...(ngDevMode ? [{ debugName: "hasPrefixSlot" }] : /* istanbul ignore next */ []));
14439
14452
  hasDefaultSlot = input(false, /* @ts-ignore */
@@ -14474,13 +14487,19 @@ class NeuralSidebarItemComponent {
14474
14487
  }, /* @ts-ignore */
14475
14488
  ...(ngDevMode ? [{ debugName: "resolvedActive" }] : /* istanbul ignore next */ []));
14476
14489
  handleClick(event) {
14490
+ if (this.action()) {
14491
+ event.preventDefault();
14492
+ event.stopPropagation();
14493
+ this.itemAction.emit(this.action());
14494
+ return;
14495
+ }
14477
14496
  if (this.hasChildren()) {
14478
14497
  event.preventDefault();
14479
14498
  this.isExpanded.set(!this.isExpanded());
14480
14499
  }
14481
14500
  }
14482
14501
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSidebarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14483
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralSidebarItemComponent, isStandalone: true, selector: "neural-sidebar-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, to: { classPropertyName: "to", publicName: "to", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, children: { classPropertyName: "children", publicName: "children", isSignal: true, isRequired: false, transformFunction: null }, hasPrefixSlot: { classPropertyName: "hasPrefixSlot", publicName: "hasPrefixSlot", isSignal: true, isRequired: false, transformFunction: null }, hasDefaultSlot: { classPropertyName: "hasDefaultSlot", publicName: "hasDefaultSlot", isSignal: true, isRequired: false, transformFunction: null }, hasSuffixSlot: { classPropertyName: "hasSuffixSlot", publicName: "hasSuffixSlot", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
14502
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralSidebarItemComponent, isStandalone: true, selector: "neural-sidebar-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, to: { classPropertyName: "to", publicName: "to", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, children: { classPropertyName: "children", publicName: "children", isSignal: true, isRequired: false, transformFunction: null }, hasPrefixSlot: { classPropertyName: "hasPrefixSlot", publicName: "hasPrefixSlot", isSignal: true, isRequired: false, transformFunction: null }, hasDefaultSlot: { classPropertyName: "hasDefaultSlot", publicName: "hasDefaultSlot", isSignal: true, isRequired: false, transformFunction: null }, hasSuffixSlot: { classPropertyName: "hasSuffixSlot", publicName: "hasSuffixSlot", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemAction: "itemAction" }, ngImport: i0, template: `
14484
14503
  <div class="flex flex-col">
14485
14504
  <div
14486
14505
  data-slot="sidebar-item"
@@ -14492,7 +14511,7 @@ class NeuralSidebarItemComponent {
14492
14511
  : 'text-ink-gray-7 hover:bg-surface-gray-2'
14493
14512
  "
14494
14513
  >
14495
- @if (to() && !hasChildren()) {
14514
+ @if (to() && !hasChildren() && !action()) {
14496
14515
  <a
14497
14516
  [routerLink]="to()"
14498
14517
  routerLinkActive="active"
@@ -14525,7 +14544,10 @@ class NeuralSidebarItemComponent {
14525
14544
  [icon]="child.icon || ''"
14526
14545
  [to]="child.to"
14527
14546
  [active]="child.active"
14528
- [children]="child.children || []">
14547
+ [action]="child.action || ''"
14548
+ [shortcut]="child.shortcut || ''"
14549
+ [children]="child.children || []"
14550
+ (itemAction)="itemAction.emit($event)">
14529
14551
  </neural-sidebar-item>
14530
14552
  }
14531
14553
  </div>
@@ -14565,6 +14587,9 @@ class NeuralSidebarItemComponent {
14565
14587
  @if (!hasSuffixSlot() && suffix()) {
14566
14588
  <span class="mr-2 text-xs text-ink-gray-4">{{ suffix() }}</span>
14567
14589
  }
14590
+ @if (shortcut()) {
14591
+ <span class="ml-auto text-xs text-ink-gray-5 pr-1">{{ shortcut() }}</span>
14592
+ }
14568
14593
  @if (hasChildren()) {
14569
14594
  <span class="transition-transform duration-200" [class.rotate-90]="isExpanded()">
14570
14595
  <span class="lucide-chevron-right size-3.5 text-ink-gray-4 group-hover/sidebar-item:text-ink-gray-6"></span>
@@ -14572,7 +14597,7 @@ class NeuralSidebarItemComponent {
14572
14597
  }
14573
14598
  </div>
14574
14599
  </ng-template>
14575
- `, isInline: true, dependencies: [{ kind: "component", type: i0.forwardRef(() => NeuralSidebarItemComponent), selector: "neural-sidebar-item", inputs: ["label", "icon", "to", "active", "suffix", "children", "hasPrefixSlot", "hasDefaultSlot", "hasSuffixSlot"] }, { kind: "ngmodule", type: i0.forwardRef(() => CommonModule) }, { kind: "directive", type: i0.forwardRef(() => i1$2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLink), selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLinkActive), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
14600
+ `, isInline: true, dependencies: [{ kind: "component", type: i0.forwardRef(() => NeuralSidebarItemComponent), selector: "neural-sidebar-item", inputs: ["label", "icon", "to", "active", "suffix", "action", "shortcut", "children", "hasPrefixSlot", "hasDefaultSlot", "hasSuffixSlot"], outputs: ["itemAction"] }, { kind: "ngmodule", type: i0.forwardRef(() => CommonModule) }, { kind: "directive", type: i0.forwardRef(() => i1$2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: i0.forwardRef(() => RouterModule) }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLink), selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLinkActive), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
14576
14601
  }
14577
14602
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSidebarItemComponent, decorators: [{
14578
14603
  type: Component,
@@ -14592,7 +14617,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14592
14617
  : 'text-ink-gray-7 hover:bg-surface-gray-2'
14593
14618
  "
14594
14619
  >
14595
- @if (to() && !hasChildren()) {
14620
+ @if (to() && !hasChildren() && !action()) {
14596
14621
  <a
14597
14622
  [routerLink]="to()"
14598
14623
  routerLinkActive="active"
@@ -14625,7 +14650,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14625
14650
  [icon]="child.icon || ''"
14626
14651
  [to]="child.to"
14627
14652
  [active]="child.active"
14628
- [children]="child.children || []">
14653
+ [action]="child.action || ''"
14654
+ [shortcut]="child.shortcut || ''"
14655
+ [children]="child.children || []"
14656
+ (itemAction)="itemAction.emit($event)">
14629
14657
  </neural-sidebar-item>
14630
14658
  }
14631
14659
  </div>
@@ -14665,6 +14693,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14665
14693
  @if (!hasSuffixSlot() && suffix()) {
14666
14694
  <span class="mr-2 text-xs text-ink-gray-4">{{ suffix() }}</span>
14667
14695
  }
14696
+ @if (shortcut()) {
14697
+ <span class="ml-auto text-xs text-ink-gray-5 pr-1">{{ shortcut() }}</span>
14698
+ }
14668
14699
  @if (hasChildren()) {
14669
14700
  <span class="transition-transform duration-200" [class.rotate-90]="isExpanded()">
14670
14701
  <span class="lucide-chevron-right size-3.5 text-ink-gray-4 group-hover/sidebar-item:text-ink-gray-6"></span>
@@ -14674,7 +14705,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14674
14705
  </ng-template>
14675
14706
  `
14676
14707
  }]
14677
- }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], to: [{ type: i0.Input, args: [{ isSignal: true, alias: "to", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], children: [{ type: i0.Input, args: [{ isSignal: true, alias: "children", required: false }] }], hasPrefixSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPrefixSlot", required: false }] }], hasDefaultSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDefaultSlot", required: false }] }], hasSuffixSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasSuffixSlot", required: false }] }] } });
14708
+ }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], to: [{ type: i0.Input, args: [{ isSignal: true, alias: "to", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], shortcut: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortcut", required: false }] }], children: [{ type: i0.Input, args: [{ isSignal: true, alias: "children", required: false }] }], itemAction: [{
14709
+ type: Output
14710
+ }], hasPrefixSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPrefixSlot", required: false }] }], hasDefaultSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasDefaultSlot", required: false }] }], hasSuffixSlot: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasSuffixSlot", required: false }] }] } });
14678
14711
 
14679
14712
  class NeuralSidebarHeaderComponent {
14680
14713
  title = input.required(/* @ts-ignore */