cloud-ide-element 1.1.246 → 1.1.248

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,7 +1,7 @@
1
1
  import * as i1 from '@angular/common';
2
2
  import { CommonModule, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Pipe, Injectable, inject, ChangeDetectorRef, EventEmitter, ViewContainerRef, forwardRef, ViewChild, Output, Input, Component, input, effect, ContentChildren, signal, DestroyRef, computed, HostListener, ChangeDetectionStrategy, Directive, PLATFORM_ID, ElementRef, viewChild } from '@angular/core';
4
+ import { Pipe, Injectable, inject, ChangeDetectorRef, EventEmitter, ViewContainerRef, forwardRef, ViewChild, Output, Input, Component, input, effect, ContentChildren, signal, DestroyRef, computed, HostListener, ChangeDetectionStrategy, Directive, PLATFORM_ID, InjectionToken, ElementRef, viewChild } from '@angular/core';
5
5
  import * as i2 from '@angular/forms';
6
6
  import { FormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
7
7
  import { BehaviorSubject, Subject, debounceTime, distinctUntilChanged, takeUntil, Observable, retry, catchError, finalize, throwError, map, of } from 'rxjs';
@@ -9690,6 +9690,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
9690
9690
  }]
9691
9691
  }], ctorParameters: () => [] });
9692
9692
 
9693
+ /**
9694
+ * Injection token for the "open AI assistant" action.
9695
+ * Provide this in the app (e.g. navigate to AI chat or toggle AI drawer) so that
9696
+ * the shortcut system and header can trigger it without importing the AI package.
9697
+ */
9698
+ const OPEN_AI_ASSISTANT_ACTION = new InjectionToken('OPEN_AI_ASSISTANT_ACTION');
9699
+ /**
9700
+ * Injection token for the AI drawer/launcher component.
9701
+ * Provide the component Type (e.g. AiDrawerComponent) in the app so that layout
9702
+ * can render it without importing the AI package (avoids circular dependencies).
9703
+ */
9704
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9705
+ const CIDE_AI_DRAWER_COMPONENT = new InjectionToken('CIDE_AI_DRAWER_COMPONENT');
9706
+
9693
9707
  /**
9694
9708
  * Directive to display images from file manager by ID
9695
9709
  * Usage: <img cideEleFileImage [fileId]="yourFileId" [altText]="'Image'" class="your-css-classes" />
@@ -14608,6 +14622,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "20.3.15", n
14608
14622
  class FloatingContainerShortcutsService {
14609
14623
  keyboardShortcutService = inject(KeyboardShortcutService);
14610
14624
  containerService = inject(CideEleFloatingContainerService);
14625
+ openAiAction = inject(OPEN_AI_ASSISTANT_ACTION, { optional: true });
14611
14626
  // Z-index layers for different container states
14612
14627
  Z_INDEX_LAYERS = {
14613
14628
  HIDDEN: 100, // Hidden containers (behind everything)
@@ -14737,6 +14752,19 @@ class FloatingContainerShortcutsService {
14737
14752
  action: () => this.openEntityRightsSharing(),
14738
14753
  preventDefault: true
14739
14754
  });
14755
+ // Alt + A - Open AI Assistant (when OPEN_AI_ASSISTANT_ACTION is provided)
14756
+ if (this.openAiAction) {
14757
+ this.keyboardShortcutService.register({
14758
+ id: 'cide-open-ai-assistant',
14759
+ key: 'a',
14760
+ altKey: true,
14761
+ description: 'Open AI Assistant',
14762
+ title: 'Open AI Assistant',
14763
+ category: 'AI',
14764
+ action: () => this.openAiAction(),
14765
+ preventDefault: true
14766
+ });
14767
+ }
14740
14768
  console.log('✅ [FloatingContainerShortcuts] Default shortcuts registered');
14741
14769
  }
14742
14770
  /**
@@ -15710,5 +15738,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
15710
15738
  * Generated bundle index. Do not edit.
15711
15739
  */
15712
15740
 
15713
- export { CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleCardComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleThemeToggleComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, CideThemeService, ConfirmationService, CoreFileManagerInsertUpdatePayload, CurrencyPipe, CurrencyService, DEFAULT_CURRENCY_CONFIG, DEFAULT_GRID_CONFIG, DropdownManagerService, ExportService, FloatingContainerShortcutsService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationApiService, NotificationService, PortalService, TooltipDirective, WebSocketNotificationService, cidePath, hostManagerRoutesUrl, notificationRoutesUrl };
15741
+ export { CIDE_AI_DRAWER_COMPONENT, CapitalizePipe, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleCardComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleThemeToggleComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, CideThemeService, ConfirmationService, CoreFileManagerInsertUpdatePayload, CurrencyPipe, CurrencyService, DEFAULT_CURRENCY_CONFIG, DEFAULT_GRID_CONFIG, DropdownManagerService, ExportService, FloatingContainerShortcutsService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationApiService, NotificationService, OPEN_AI_ASSISTANT_ACTION, PortalService, TooltipDirective, WebSocketNotificationService, cidePath, hostManagerRoutesUrl, notificationRoutesUrl };
15714
15742
  //# sourceMappingURL=cloud-ide-element.mjs.map