cloud-ide-element 1.1.246 → 1.1.249
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,39 @@ 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
|
+
|
|
9707
|
+
/**
|
|
9708
|
+
* Service to open the AI assistant drawer from header/shortcut without navigating.
|
|
9709
|
+
* The drawer component subscribes to open$ and opens when requested.
|
|
9710
|
+
*/
|
|
9711
|
+
class AiAssistantTriggerService {
|
|
9712
|
+
openSubject = new Subject();
|
|
9713
|
+
/** Emit to request opening the AI drawer (no navigation). */
|
|
9714
|
+
open$ = this.openSubject.asObservable();
|
|
9715
|
+
open() {
|
|
9716
|
+
this.openSubject.next();
|
|
9717
|
+
}
|
|
9718
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AiAssistantTriggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9719
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AiAssistantTriggerService, providedIn: 'root' });
|
|
9720
|
+
}
|
|
9721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AiAssistantTriggerService, decorators: [{
|
|
9722
|
+
type: Injectable,
|
|
9723
|
+
args: [{ providedIn: 'root' }]
|
|
9724
|
+
}] });
|
|
9725
|
+
|
|
9693
9726
|
/**
|
|
9694
9727
|
* Directive to display images from file manager by ID
|
|
9695
9728
|
* Usage: <img cideEleFileImage [fileId]="yourFileId" [altText]="'Image'" class="your-css-classes" />
|
|
@@ -14608,6 +14641,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "20.3.15", n
|
|
|
14608
14641
|
class FloatingContainerShortcutsService {
|
|
14609
14642
|
keyboardShortcutService = inject(KeyboardShortcutService);
|
|
14610
14643
|
containerService = inject(CideEleFloatingContainerService);
|
|
14644
|
+
openAiAction = inject(OPEN_AI_ASSISTANT_ACTION, { optional: true });
|
|
14611
14645
|
// Z-index layers for different container states
|
|
14612
14646
|
Z_INDEX_LAYERS = {
|
|
14613
14647
|
HIDDEN: 100, // Hidden containers (behind everything)
|
|
@@ -14737,6 +14771,19 @@ class FloatingContainerShortcutsService {
|
|
|
14737
14771
|
action: () => this.openEntityRightsSharing(),
|
|
14738
14772
|
preventDefault: true
|
|
14739
14773
|
});
|
|
14774
|
+
// Alt + A - Open AI Assistant (when OPEN_AI_ASSISTANT_ACTION is provided)
|
|
14775
|
+
if (this.openAiAction) {
|
|
14776
|
+
this.keyboardShortcutService.register({
|
|
14777
|
+
id: 'cide-open-ai-assistant',
|
|
14778
|
+
key: 'a',
|
|
14779
|
+
altKey: true,
|
|
14780
|
+
description: 'Open AI Assistant',
|
|
14781
|
+
title: 'Open AI Assistant',
|
|
14782
|
+
category: 'AI',
|
|
14783
|
+
action: () => this.openAiAction(),
|
|
14784
|
+
preventDefault: true
|
|
14785
|
+
});
|
|
14786
|
+
}
|
|
14740
14787
|
console.log('✅ [FloatingContainerShortcuts] Default shortcuts registered');
|
|
14741
14788
|
}
|
|
14742
14789
|
/**
|
|
@@ -15710,5 +15757,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
15710
15757
|
* Generated bundle index. Do not edit.
|
|
15711
15758
|
*/
|
|
15712
15759
|
|
|
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 };
|
|
15760
|
+
export { AiAssistantTriggerService, 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
15761
|
//# sourceMappingURL=cloud-ide-element.mjs.map
|