orbiq-neural-ui-kit 1.2.37 → 1.2.38

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.
@@ -4627,6 +4627,9 @@ class NeuralDropdownComponent {
4627
4627
  <i [class]="option.icon" class="size-4 text-ink-gray-5"></i>
4628
4628
  }
4629
4629
  {{ option.label }}
4630
+ @if (option.shortcut) {
4631
+ <span class="ml-auto text-xs text-ink-gray-5 font-mono tracking-wider">{{ option.shortcut }}</span>
4632
+ }
4630
4633
  </a>
4631
4634
  } @else {
4632
4635
  <button
@@ -4640,6 +4643,9 @@ class NeuralDropdownComponent {
4640
4643
  <i [class]="option.icon" class="size-4 text-ink-gray-5"></i>
4641
4644
  }
4642
4645
  {{ option.label }}
4646
+ @if (option.shortcut) {
4647
+ <span class="ml-auto text-xs text-ink-gray-5 font-mono tracking-wider">{{ option.shortcut }}</span>
4648
+ }
4643
4649
  </button>
4644
4650
  }
4645
4651
  }
@@ -4717,6 +4723,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
4717
4723
  <i [class]="option.icon" class="size-4 text-ink-gray-5"></i>
4718
4724
  }
4719
4725
  {{ option.label }}
4726
+ @if (option.shortcut) {
4727
+ <span class="ml-auto text-xs text-ink-gray-5 font-mono tracking-wider">{{ option.shortcut }}</span>
4728
+ }
4720
4729
  </a>
4721
4730
  } @else {
4722
4731
  <button
@@ -4730,6 +4739,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
4730
4739
  <i [class]="option.icon" class="size-4 text-ink-gray-5"></i>
4731
4740
  }
4732
4741
  {{ option.label }}
4742
+ @if (option.shortcut) {
4743
+ <span class="ml-auto text-xs text-ink-gray-5 font-mono tracking-wider">{{ option.shortcut }}</span>
4744
+ }
4733
4745
  </button>
4734
4746
  }
4735
4747
  }
@@ -14642,6 +14654,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
14642
14654
  }]
14643
14655
  }], 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 }] }] } });
14644
14656
 
14657
+ class NeuralSidebarHeaderComponent {
14658
+ title = input.required(/* @ts-ignore */
14659
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
14660
+ subtitle = input('', /* @ts-ignore */
14661
+ ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
14662
+ appIcon = input.required(/* @ts-ignore */
14663
+ ...(ngDevMode ? [{ debugName: "appIcon" }] : /* istanbul ignore next */ []));
14664
+ iconClass = input('bg-blue-500 text-white', /* @ts-ignore */
14665
+ ...(ngDevMode ? [{ debugName: "iconClass" }] : /* istanbul ignore next */ []));
14666
+ menuOptions = input([], /* @ts-ignore */
14667
+ ...(ngDevMode ? [{ debugName: "menuOptions" }] : /* istanbul ignore next */ []));
14668
+ sidebar = inject(NeuralSidebarComponent, { optional: true });
14669
+ isCollapsed = computed(() => {
14670
+ return this.sidebar ? this.sidebar.shouldCollapse() : false;
14671
+ }, /* @ts-ignore */
14672
+ ...(ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []));
14673
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSidebarHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14674
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: NeuralSidebarHeaderComponent, isStandalone: true, selector: "neural-sidebar-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, appIcon: { classPropertyName: "appIcon", publicName: "appIcon", isSignal: true, isRequired: true, transformFunction: null }, iconClass: { classPropertyName: "iconClass", publicName: "iconClass", isSignal: true, isRequired: false, transformFunction: null }, menuOptions: { classPropertyName: "menuOptions", publicName: "menuOptions", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
14675
+ <neural-dropdown [options]="menuOptions()" [hasTriggerSlot]="true" align="start" [offset]="8">
14676
+ <div trigger
14677
+ class="flex items-center gap-2 p-2 rounded-md transition-colors cursor-pointer"
14678
+ [class]="isCollapsed() ? 'justify-center mx-auto w-10 h-10 hover:bg-surface-gray-2' : 'hover:bg-surface-gray-2 w-full mx-2'"
14679
+ [attr.aria-label]="title()"
14680
+ [title]="isCollapsed() ? title() : null"
14681
+ >
14682
+ <!-- App Icon -->
14683
+ <div class="flex items-center justify-center shrink-0 size-8 rounded-md" [ngClass]="iconClass()">
14684
+ <i [class]="appIcon()" class="size-4.5"></i>
14685
+ </div>
14686
+
14687
+ <!-- Texts (Hidden when collapsed) -->
14688
+ <div class="flex flex-col flex-1 min-w-0 transition-all duration-200"
14689
+ [class]="isCollapsed() ? 'w-0 opacity-0 hidden' : 'opacity-100'"
14690
+ >
14691
+ <span class="text-[14px] font-medium text-ink-gray-9 truncate leading-tight">{{ title() }}</span>
14692
+ @if (subtitle()) {
14693
+ <span class="text-xs text-ink-gray-5 truncate leading-tight">{{ subtitle() }}</span>
14694
+ }
14695
+ </div>
14696
+
14697
+ <!-- Chevron (Hidden when collapsed) -->
14698
+ <div class="shrink-0 transition-all duration-200"
14699
+ [class]="isCollapsed() ? 'w-0 opacity-0 hidden' : 'opacity-100'"
14700
+ >
14701
+ <i class="lucide-chevron-down size-4 text-ink-gray-5"></i>
14702
+ </div>
14703
+ </div>
14704
+ </neural-dropdown>
14705
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: NeuralDropdownComponent, selector: "neural-dropdown", inputs: ["options", "side", "align", "offset", "buttonLabel", "hasTriggerSlot"] }] });
14706
+ }
14707
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: NeuralSidebarHeaderComponent, decorators: [{
14708
+ type: Component,
14709
+ args: [{
14710
+ selector: 'neural-sidebar-header',
14711
+ standalone: true,
14712
+ imports: [CommonModule, NeuralDropdownComponent],
14713
+ template: `
14714
+ <neural-dropdown [options]="menuOptions()" [hasTriggerSlot]="true" align="start" [offset]="8">
14715
+ <div trigger
14716
+ class="flex items-center gap-2 p-2 rounded-md transition-colors cursor-pointer"
14717
+ [class]="isCollapsed() ? 'justify-center mx-auto w-10 h-10 hover:bg-surface-gray-2' : 'hover:bg-surface-gray-2 w-full mx-2'"
14718
+ [attr.aria-label]="title()"
14719
+ [title]="isCollapsed() ? title() : null"
14720
+ >
14721
+ <!-- App Icon -->
14722
+ <div class="flex items-center justify-center shrink-0 size-8 rounded-md" [ngClass]="iconClass()">
14723
+ <i [class]="appIcon()" class="size-4.5"></i>
14724
+ </div>
14725
+
14726
+ <!-- Texts (Hidden when collapsed) -->
14727
+ <div class="flex flex-col flex-1 min-w-0 transition-all duration-200"
14728
+ [class]="isCollapsed() ? 'w-0 opacity-0 hidden' : 'opacity-100'"
14729
+ >
14730
+ <span class="text-[14px] font-medium text-ink-gray-9 truncate leading-tight">{{ title() }}</span>
14731
+ @if (subtitle()) {
14732
+ <span class="text-xs text-ink-gray-5 truncate leading-tight">{{ subtitle() }}</span>
14733
+ }
14734
+ </div>
14735
+
14736
+ <!-- Chevron (Hidden when collapsed) -->
14737
+ <div class="shrink-0 transition-all duration-200"
14738
+ [class]="isCollapsed() ? 'w-0 opacity-0 hidden' : 'opacity-100'"
14739
+ >
14740
+ <i class="lucide-chevron-down size-4 text-ink-gray-5"></i>
14741
+ </div>
14742
+ </div>
14743
+ </neural-dropdown>
14744
+ `
14745
+ }]
14746
+ }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], appIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "appIcon", required: true }] }], iconClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconClass", required: false }] }], menuOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuOptions", required: false }] }] } });
14747
+
14645
14748
  // Note: TextEditor is deprecated in Frappe UI, but migrated for faithful parity.
14646
14749
  // For new projects, consider using the /editor module with RichTextKit.
14647
14750
  class NeuralTextEditorComponent {
@@ -15763,5 +15866,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImpor
15763
15866
  * Generated bundle index. Do not edit.
15764
15867
  */
15765
15868
 
15766
- export { NeuralAccordionComponent, NeuralAlertComponent, NeuralAvatarComponent, NeuralAwesomeBarComponent, NeuralAxisChartComponent, NeuralBadgeComponent, NeuralBottomSheetComponent, NeuralBreadcrumbsComponent, NeuralButtonComponent, NeuralCalendarComponent, NeuralCheckboxComponent, NeuralCodeEditorComponent, NeuralCodePreviewComponent, NeuralComboboxComponent, NeuralCommandPaletteComponent, NeuralContextMenuComponent, NeuralDataTableComponent, NeuralDatePickerComponent, NeuralDesktopShellComponent, NeuralDialogComponent, NeuralDividerComponent, NeuralDonutChartComponent, NeuralDrawerComponent, NeuralDropdownComponent, NeuralDurationComponent, NeuralEChartsComponent, NeuralEntityFormComponent, NeuralErrorMessageComponent, NeuralFileUploaderComponent, NeuralFilterBuilderComponent, NeuralFloatingWindowComponent, NeuralFooterComponent, NeuralFormControlComponent, NeuralFormLabelComponent, NeuralFunnelChartComponent, NeuralHoverCardComponent, NeuralIconComponent, NeuralInputDescriptionComponent, NeuralInputErrorComponent, NeuralInputLabelComponent, NeuralItemListRowComponent, NeuralKeyboardShortcutComponent, NeuralKeyboardShortcutsDialogComponent, NeuralLabelingWrapperComponent, NeuralListViewComponent, NeuralLoadingIndicatorComponent, NeuralLoadingTextComponent, NeuralMenuComponent, NeuralMobileNavComponent, NeuralMobileNavItemComponent, NeuralMobileShellComponent, NeuralMultiEmailInputComponent, NeuralMultiSelectComponent, NeuralNotificationCenterComponent, NeuralNumberChartComponent, NeuralPageHeaderComponent, NeuralPasswordComponent, NeuralPopoverComponent, NeuralPopoverContentDirective, NeuralPopoverPanelComponent, NeuralPopoverTriggerDirective, NeuralProgressComponent, NeuralRadioComponent, NeuralRadioGroupComponent, NeuralRailComponent, NeuralRailItemComponent, NeuralRatingComponent, NeuralRequiredIndicatorComponent, NeuralScrollAreaComponent, NeuralSearchTriggerComponent, NeuralSelectComponent, NeuralSettingsContentComponent, NeuralSettingsDialogComponent, NeuralSettingsNavItemComponent, NeuralSettingsPanelComponent, NeuralSettingsSidebarComponent, NeuralSidebarComponent, NeuralSidebarItemComponent, NeuralSkeletonComponent, NeuralSliderComponent, NeuralSpinnerComponent, NeuralSubGridComponent, NeuralSwitchComponent, NeuralTabComponent, NeuralTabPanelComponent, NeuralTabsComponent, NeuralTextEditorComponent, NeuralTextInputComponent, NeuralTextareaComponent, NeuralThemeSwitcherComponent, NeuralTimePickerComponent, NeuralToastComponent, NeuralTooltipComponent, NeuralTreeComponent, NeuralTreeItemComponent, RADIO_GROUP, TABS_ROOT, ToastService, formatDuration, parseDuration };
15869
+ export { NeuralAccordionComponent, NeuralAlertComponent, NeuralAvatarComponent, NeuralAwesomeBarComponent, NeuralAxisChartComponent, NeuralBadgeComponent, NeuralBottomSheetComponent, NeuralBreadcrumbsComponent, NeuralButtonComponent, NeuralCalendarComponent, NeuralCheckboxComponent, NeuralCodeEditorComponent, NeuralCodePreviewComponent, NeuralComboboxComponent, NeuralCommandPaletteComponent, NeuralContextMenuComponent, NeuralDataTableComponent, NeuralDatePickerComponent, NeuralDesktopShellComponent, NeuralDialogComponent, NeuralDividerComponent, NeuralDonutChartComponent, NeuralDrawerComponent, NeuralDropdownComponent, NeuralDurationComponent, NeuralEChartsComponent, NeuralEntityFormComponent, NeuralErrorMessageComponent, NeuralFileUploaderComponent, NeuralFilterBuilderComponent, NeuralFloatingWindowComponent, NeuralFooterComponent, NeuralFormControlComponent, NeuralFormLabelComponent, NeuralFunnelChartComponent, NeuralHoverCardComponent, NeuralIconComponent, NeuralInputDescriptionComponent, NeuralInputErrorComponent, NeuralInputLabelComponent, NeuralItemListRowComponent, NeuralKeyboardShortcutComponent, NeuralKeyboardShortcutsDialogComponent, NeuralLabelingWrapperComponent, NeuralListViewComponent, NeuralLoadingIndicatorComponent, NeuralLoadingTextComponent, NeuralMenuComponent, NeuralMobileNavComponent, NeuralMobileNavItemComponent, NeuralMobileShellComponent, NeuralMultiEmailInputComponent, NeuralMultiSelectComponent, NeuralNotificationCenterComponent, NeuralNumberChartComponent, NeuralPageHeaderComponent, NeuralPasswordComponent, NeuralPopoverComponent, NeuralPopoverContentDirective, NeuralPopoverPanelComponent, NeuralPopoverTriggerDirective, NeuralProgressComponent, NeuralRadioComponent, NeuralRadioGroupComponent, NeuralRailComponent, NeuralRailItemComponent, NeuralRatingComponent, NeuralRequiredIndicatorComponent, NeuralScrollAreaComponent, NeuralSearchTriggerComponent, NeuralSelectComponent, NeuralSettingsContentComponent, NeuralSettingsDialogComponent, NeuralSettingsNavItemComponent, NeuralSettingsPanelComponent, NeuralSettingsSidebarComponent, NeuralSidebarComponent, NeuralSidebarHeaderComponent, NeuralSidebarItemComponent, NeuralSkeletonComponent, NeuralSliderComponent, NeuralSpinnerComponent, NeuralSubGridComponent, NeuralSwitchComponent, NeuralTabComponent, NeuralTabPanelComponent, NeuralTabsComponent, NeuralTextEditorComponent, NeuralTextInputComponent, NeuralTextareaComponent, NeuralThemeSwitcherComponent, NeuralTimePickerComponent, NeuralToastComponent, NeuralTooltipComponent, NeuralTreeComponent, NeuralTreeItemComponent, RADIO_GROUP, TABS_ROOT, ToastService, formatDuration, parseDuration };
15767
15870
  //# sourceMappingURL=orbiq-neural-ui-kit.mjs.map