orbiq-neural-ui-kit 1.2.68 → 1.2.69

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.
@@ -14432,8 +14432,13 @@ class NeuralSidebarItemComponent {
14432
14432
  ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
14433
14433
  suffix = input('', /* @ts-ignore */
14434
14434
  ...(ngDevMode ? [{ debugName: "suffix" }] : /* istanbul ignore next */ []));
14435
+ action = input('', /* @ts-ignore */
14436
+ ...(ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []));
14437
+ shortcut = input('', /* @ts-ignore */
14438
+ ...(ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []));
14435
14439
  children = input([], /* @ts-ignore */
14436
14440
  ...(ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []));
14441
+ itemAction = new EventEmitter();
14437
14442
  hasPrefixSlot = input(false, /* @ts-ignore */
14438
14443
  ...(ngDevMode ? [{ debugName: "hasPrefixSlot" }] : /* istanbul ignore next */ []));
14439
14444
  hasDefaultSlot = input(false, /* @ts-ignore */
@@ -14474,13 +14479,19 @@ class NeuralSidebarItemComponent {
14474
14479
  }, /* @ts-ignore */
14475
14480
  ...(ngDevMode ? [{ debugName: "resolvedActive" }] : /* istanbul ignore next */ []));
14476
14481
  handleClick(event) {
14482
+ if (this.action()) {
14483
+ event.preventDefault();
14484
+ event.stopPropagation();
14485
+ this.itemAction.emit(this.action());
14486
+ return;
14487
+ }
14477
14488
  if (this.hasChildren()) {
14478
14489
  event.preventDefault();
14479
14490
  this.isExpanded.set(!this.isExpanded());
14480
14491
  }
14481
14492
  }
14482
14493
  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: `
14494
+ 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
14495
  <div class="flex flex-col">
14485
14496
  <div
14486
14497
  data-slot="sidebar-item"
@@ -14492,7 +14503,7 @@ class NeuralSidebarItemComponent {
14492
14503
  : 'text-ink-gray-7 hover:bg-surface-gray-2'
14493
14504
  "
14494
14505
  >
14495
- @if (to() && !hasChildren()) {
14506
+ @if (to() && !hasChildren() && !action()) {
14496
14507
  <a
14497
14508
  [routerLink]="to()"
14498
14509
  routerLinkActive="active"
@@ -14525,7 +14536,10 @@ class NeuralSidebarItemComponent {
14525
14536
  [icon]="child.icon || ''"
14526
14537
  [to]="child.to"
14527
14538
  [active]="child.active"
14528
- [children]="child.children || []">
14539
+ [action]="child.action || ''"
14540
+ [shortcut]="child.shortcut || ''"
14541
+ [children]="child.children || []"
14542
+ (itemAction)="itemAction.emit($event)">
14529
14543
  </neural-sidebar-item>
14530
14544
  }
14531
14545
  </div>
@@ -14565,6 +14579,9 @@ class NeuralSidebarItemComponent {
14565
14579
  @if (!hasSuffixSlot() && suffix()) {
14566
14580
  <span class="mr-2 text-xs text-ink-gray-4">{{ suffix() }}</span>
14567
14581
  }
14582
+ @if (shortcut()) {
14583
+ <span class="ml-auto text-xs text-ink-gray-5 pr-1">{{ shortcut() }}</span>
14584
+ }
14568
14585
  @if (hasChildren()) {
14569
14586
  <span class="transition-transform duration-200" [class.rotate-90]="isExpanded()">
14570
14587
  <span class="lucide-chevron-right size-3.5 text-ink-gray-4 group-hover/sidebar-item:text-ink-gray-6"></span>
@@ -14572,7 +14589,7 @@ class NeuralSidebarItemComponent {
14572
14589
  }
14573
14590
  </div>
14574
14591
  </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"] }] });
14592
+ `, 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
14593
  }
14577
14594
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSidebarItemComponent, decorators: [{
14578
14595
  type: Component,
@@ -14592,7 +14609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14592
14609
  : 'text-ink-gray-7 hover:bg-surface-gray-2'
14593
14610
  "
14594
14611
  >
14595
- @if (to() && !hasChildren()) {
14612
+ @if (to() && !hasChildren() && !action()) {
14596
14613
  <a
14597
14614
  [routerLink]="to()"
14598
14615
  routerLinkActive="active"
@@ -14625,7 +14642,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14625
14642
  [icon]="child.icon || ''"
14626
14643
  [to]="child.to"
14627
14644
  [active]="child.active"
14628
- [children]="child.children || []">
14645
+ [action]="child.action || ''"
14646
+ [shortcut]="child.shortcut || ''"
14647
+ [children]="child.children || []"
14648
+ (itemAction)="itemAction.emit($event)">
14629
14649
  </neural-sidebar-item>
14630
14650
  }
14631
14651
  </div>
@@ -14665,6 +14685,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14665
14685
  @if (!hasSuffixSlot() && suffix()) {
14666
14686
  <span class="mr-2 text-xs text-ink-gray-4">{{ suffix() }}</span>
14667
14687
  }
14688
+ @if (shortcut()) {
14689
+ <span class="ml-auto text-xs text-ink-gray-5 pr-1">{{ shortcut() }}</span>
14690
+ }
14668
14691
  @if (hasChildren()) {
14669
14692
  <span class="transition-transform duration-200" [class.rotate-90]="isExpanded()">
14670
14693
  <span class="lucide-chevron-right size-3.5 text-ink-gray-4 group-hover/sidebar-item:text-ink-gray-6"></span>
@@ -14674,7 +14697,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14674
14697
  </ng-template>
14675
14698
  `
14676
14699
  }]
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 }] }] } });
14700
+ }], 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: [{
14701
+ type: Output
14702
+ }], 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
14703
 
14679
14704
  class NeuralSidebarHeaderComponent {
14680
14705
  title = input.required(/* @ts-ignore */