cloud-ide-element 1.0.4 → 1.0.6

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.
Files changed (54) hide show
  1. package/README.md +63 -271
  2. package/fesm2022/cloud-ide-element.mjs +614 -618
  3. package/fesm2022/cloud-ide-element.mjs.map +1 -1
  4. package/index.d.ts +1362 -3
  5. package/package.json +4 -31
  6. package/esm2022/cloud-ide-element.mjs +0 -5
  7. package/esm2022/lib/components/confirmation-modal/confirmation-modal.component.mjs +0 -182
  8. package/esm2022/lib/components/data-grid/data-grid.component.mjs +0 -1363
  9. package/esm2022/lib/components/data-grid/data-grid.types.mjs +0 -37
  10. package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -396
  11. package/esm2022/lib/components/global-notifications/global-notifications.component.mjs +0 -30
  12. package/esm2022/lib/components/json-editor/json-editor.component.mjs +0 -521
  13. package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +0 -33
  14. package/esm2022/lib/components/toast-notification/toast-notification.component.mjs +0 -152
  15. package/esm2022/lib/elements/button/cide-ele-button.component.mjs +0 -249
  16. package/esm2022/lib/elements/file-input/file-input.component.mjs +0 -83
  17. package/esm2022/lib/elements/icon/icon.component.mjs +0 -26
  18. package/esm2022/lib/elements/input/input.component.mjs +0 -467
  19. package/esm2022/lib/elements/select/select.component.mjs +0 -471
  20. package/esm2022/lib/elements/spinner/spinner.component.mjs +0 -32
  21. package/esm2022/lib/elements/tab/cide-ele-tab.component.mjs +0 -74
  22. package/esm2022/lib/elements/textarea/textarea.component.mjs +0 -157
  23. package/esm2022/lib/services/confirmation.service.mjs +0 -151
  24. package/esm2022/lib/services/dropdown-manager.service.mjs +0 -93
  25. package/esm2022/lib/services/notification.service.mjs +0 -196
  26. package/esm2022/lib/utils/directives/resizer/resizer.directive.mjs +0 -231
  27. package/esm2022/lib/utils/directives/tooltip/tooltip.directive.mjs +0 -294
  28. package/esm2022/lib/utils/pipes/capitalize/capitalize.pipe.mjs +0 -38
  29. package/esm2022/lib/utils/services/elements/elements.service.mjs +0 -39
  30. package/esm2022/public-api.mjs +0 -31
  31. package/lib/components/confirmation-modal/confirmation-modal.component.d.ts +0 -16
  32. package/lib/components/data-grid/data-grid.component.d.ts +0 -244
  33. package/lib/components/data-grid/data-grid.types.d.ts +0 -146
  34. package/lib/components/dropdown/dropdown.component.d.ts +0 -75
  35. package/lib/components/global-notifications/global-notifications.component.d.ts +0 -5
  36. package/lib/components/json-editor/json-editor.component.d.ts +0 -116
  37. package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +0 -11
  38. package/lib/components/toast-notification/toast-notification.component.d.ts +0 -13
  39. package/lib/elements/button/cide-ele-button.component.d.ts +0 -85
  40. package/lib/elements/file-input/file-input.component.d.ts +0 -25
  41. package/lib/elements/icon/icon.component.d.ts +0 -9
  42. package/lib/elements/input/input.component.d.ts +0 -182
  43. package/lib/elements/select/select.component.d.ts +0 -91
  44. package/lib/elements/spinner/spinner.component.d.ts +0 -19
  45. package/lib/elements/tab/cide-ele-tab.component.d.ts +0 -26
  46. package/lib/elements/textarea/textarea.component.d.ts +0 -47
  47. package/lib/services/confirmation.service.d.ts +0 -65
  48. package/lib/services/dropdown-manager.service.d.ts +0 -22
  49. package/lib/services/notification.service.d.ts +0 -81
  50. package/lib/utils/directives/resizer/resizer.directive.d.ts +0 -44
  51. package/lib/utils/directives/tooltip/tooltip.directive.d.ts +0 -43
  52. package/lib/utils/pipes/capitalize/capitalize.pipe.d.ts +0 -7
  53. package/lib/utils/services/elements/elements.service.d.ts +0 -12
  54. package/public-api.d.ts +0 -22
@@ -1,81 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface NotificationOptions {
3
- message: string;
4
- type?: 'success' | 'error' | 'warning' | 'info';
5
- duration?: number;
6
- showUndo?: boolean;
7
- undoAction?: () => void;
8
- undoText?: string;
9
- icon?: string;
10
- title?: string;
11
- }
12
- export interface NotificationItem {
13
- id: string;
14
- message: string;
15
- type: 'success' | 'error' | 'warning' | 'info';
16
- duration: number;
17
- showUndo: boolean;
18
- undoAction?: () => void;
19
- undoText: string;
20
- icon: string;
21
- title?: string;
22
- timestamp: number;
23
- isVisible: boolean;
24
- }
25
- export declare class NotificationService {
26
- private notifications;
27
- private maxNotifications;
28
- activeNotifications: import("@angular/core").Signal<NotificationItem[]>;
29
- constructor();
30
- /**
31
- * Show a success notification
32
- */
33
- success(message: string, options?: Partial<NotificationOptions>): string;
34
- /**
35
- * Show an error notification
36
- */
37
- error(message: string, options?: Partial<NotificationOptions>): string;
38
- /**
39
- * Show a warning notification
40
- */
41
- warning(message: string, options?: Partial<NotificationOptions>): string;
42
- /**
43
- * Show an info notification
44
- */
45
- info(message: string, options?: Partial<NotificationOptions>): string;
46
- /**
47
- * Show a notification with undo functionality
48
- */
49
- showWithUndo(message: string, undoAction: () => void, options?: Partial<NotificationOptions>): string;
50
- /**
51
- * Show a notification for reversible destructive actions
52
- */
53
- showReversibleAction(action: string, itemName: string, undoAction: () => void, options?: Partial<NotificationOptions>): string;
54
- /**
55
- * Show a notification for background tasks
56
- */
57
- showBackgroundTask(taskName: string, isComplete?: boolean, options?: Partial<NotificationOptions>): string;
58
- /**
59
- * Core show method
60
- */
61
- private show;
62
- /**
63
- * Remove a specific notification
64
- */
65
- remove(id: string): void;
66
- /**
67
- * Remove all notifications
68
- */
69
- clearAll(): void;
70
- /**
71
- * Execute undo action for a notification
72
- */
73
- executeUndo(id: string): void;
74
- private addNotification;
75
- private generateId;
76
- private getDefaultIcon;
77
- getNotifications(): import("@angular/core").WritableSignal<NotificationItem[]>;
78
- getActiveNotifications(): import("@angular/core").Signal<NotificationItem[]>;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
80
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
81
- }
@@ -1,44 +0,0 @@
1
- import { ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type CideEleResizerDirection = 'horizontal' | 'vertical';
4
- export type CideEleResizerDirectionTo = "right-to-left" | "left-to-right" | "";
5
- export declare class CideEleResizerDirective implements OnInit {
6
- private el;
7
- private renderer;
8
- direction: CideEleResizerDirection;
9
- to: CideEleResizerDirectionTo;
10
- prevElementSelector: string;
11
- nextElementSelector: string;
12
- parentElementSelector: string;
13
- minPrevSize: number;
14
- minNextSize: number;
15
- usePercentage: boolean;
16
- resizeStart: EventEmitter<void>;
17
- resizing: EventEmitter<{
18
- prevSize: number;
19
- nextSize: number;
20
- }>;
21
- resizeEnd: EventEmitter<{
22
- prevSize: number;
23
- nextSize: number;
24
- }>;
25
- private isResizing;
26
- private startPosition;
27
- private prevElement;
28
- private nextElement;
29
- private prevSize;
30
- private nextSize;
31
- private containerSize;
32
- private startPrevSize;
33
- private startNextSize;
34
- constructor(el: ElementRef, renderer: Renderer2);
35
- ngOnInit(): void;
36
- onMouseDown(event: MouseEvent): void;
37
- private onMouseMove;
38
- private onMouseUp;
39
- private getPrevElement;
40
- private getNextElement;
41
- private getSizeProperty;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<CideEleResizerDirective, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<CideEleResizerDirective, "[cideEleResizer]", never, { "direction": { "alias": "direction"; "required": false; }; "to": { "alias": "to"; "required": false; }; "prevElementSelector": { "alias": "prevElementSelector"; "required": false; }; "nextElementSelector": { "alias": "nextElementSelector"; "required": false; }; "parentElementSelector": { "alias": "parentElementSelector"; "required": false; }; "minPrevSize": { "alias": "minPrevSize"; "required": false; }; "minNextSize": { "alias": "minNextSize"; "required": false; }; "usePercentage": { "alias": "usePercentage"; "required": false; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, never, true, never>;
44
- }
@@ -1,43 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
4
- export type TooltipType = 'default' | 'success' | 'warning' | 'error' | 'info' | 'light' | 'dark';
5
- export declare class TooltipDirective implements OnInit, OnDestroy {
6
- private el;
7
- private renderer;
8
- cideEleTooltip: string;
9
- tooltipColor: string;
10
- tooltipBg: string;
11
- tooltipPlacement: TooltipPlacement;
12
- tooltipType: TooltipType;
13
- tooltipDelay: number;
14
- tooltipDir: TooltipPlacement;
15
- tooltipShowArrow: boolean;
16
- tooltipMultiline: boolean;
17
- tooltipMaxWidth: string;
18
- tooltipInteractive: boolean;
19
- tooltipClass: string;
20
- private tooltipElement;
21
- private visible;
22
- private showTimeout;
23
- private hideTimeout;
24
- private hideDelay;
25
- private interactiveMouseLeaveHandler;
26
- constructor(el: ElementRef, renderer: Renderer2);
27
- ngOnInit(): void;
28
- onMouseEnter(): void;
29
- onFocus(): void;
30
- onMouseLeave(): void;
31
- onBlur(): void;
32
- onClick(): void;
33
- ngOnDestroy(): void;
34
- private clearTimeouts;
35
- private show;
36
- private hide;
37
- private createTooltip;
38
- private styleTooltip;
39
- private positionTooltip;
40
- private destroyTooltip;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[cideEleTooltip]", never, { "cideEleTooltip": { "alias": "cideEleTooltip"; "required": false; }; "tooltipColor": { "alias": "tooltipColor"; "required": false; }; "tooltipBg": { "alias": "tooltipBg"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; }; "tooltipDir": { "alias": "tooltipDir"; "required": false; }; "tooltipShowArrow": { "alias": "tooltipShowArrow"; "required": false; }; "tooltipMultiline": { "alias": "tooltipMultiline"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "tooltipInteractive": { "alias": "tooltipInteractive"; "required": false; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; }; }, {}, never, never, true, never>;
43
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CapitalizePipe implements PipeTransform {
4
- transform(value: string, capitalizationMethod: 'allUpperCase' | 'titleCase' | 'sentenceCase'): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CapitalizePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", true>;
7
- }
@@ -1,12 +0,0 @@
1
- import { GetElementDataRequest, ICoreSype } from 'cloud-ide-lms-model';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class CideElementsService {
5
- cide_element_data: {
6
- [key: string]: ICoreSype;
7
- };
8
- is_cide_element_data_updated: BehaviorSubject<boolean>;
9
- getElementData(body: GetElementDataRequest): Promise<ICoreSype>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CideElementsService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<CideElementsService>;
12
- }
package/public-api.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export * from './lib/elements/input/input.component';
2
- export * from './lib/elements/button/cide-ele-button.component';
3
- export * from './lib/elements/spinner/spinner.component';
4
- export * from './lib/elements/icon/icon.component';
5
- export * from './lib/elements/select/select.component';
6
- export * from './lib/elements/tab/cide-ele-tab.component';
7
- export * from './lib/elements/file-input/file-input.component';
8
- export * from './lib/elements/textarea/textarea.component';
9
- export * from './lib/utils/services/elements/elements.service';
10
- export * from './lib/utils/directives/resizer/resizer.directive';
11
- export * from './lib/utils/directives/tooltip/tooltip.directive';
12
- export * from './lib/components/skeleton-loader/skeleton-loader.component';
13
- export * from './lib/components/data-grid/data-grid.component';
14
- export * from './lib/components/data-grid/data-grid.types';
15
- export * from './lib/components/dropdown/dropdown.component';
16
- export * from './lib/services/dropdown-manager.service';
17
- export * from './lib/services/confirmation.service';
18
- export * from './lib/services/notification.service';
19
- export * from './lib/components/confirmation-modal/confirmation-modal.component';
20
- export * from './lib/components/toast-notification/toast-notification.component';
21
- export * from './lib/components/global-notifications/global-notifications.component';
22
- export * from './lib/components/json-editor/json-editor.component';