c3-components 0.15.1 → 0.15.2
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.
- package/fesm2022/c3-components.mjs +51 -9
- package/fesm2022/c3-components.mjs.map +1 -1
- package/index.d.ts +42 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ declare class C3DropdownModule {
|
|
|
98
98
|
interface AlertConfig {
|
|
99
99
|
text: string;
|
|
100
100
|
width?: string;
|
|
101
|
+
maxWidth?: string;
|
|
101
102
|
acceptText?: string;
|
|
102
103
|
}
|
|
103
104
|
declare class C3AlertDialogComponent {
|
|
@@ -121,6 +122,7 @@ interface ConfirmConfig {
|
|
|
121
122
|
text: string;
|
|
122
123
|
};
|
|
123
124
|
width?: string;
|
|
125
|
+
maxWidth?: string;
|
|
124
126
|
}
|
|
125
127
|
declare class ConfirmDialogComponent {
|
|
126
128
|
dialogRef: MatDialogRef<ConfirmDialogComponent>;
|
|
@@ -134,17 +136,19 @@ declare class ConfirmDialogComponent {
|
|
|
134
136
|
interface PromptConfig {
|
|
135
137
|
text: string;
|
|
136
138
|
defaultValue?: string;
|
|
139
|
+
value?: string;
|
|
137
140
|
placeholder?: string;
|
|
138
141
|
multiline?: boolean;
|
|
142
|
+
rows?: number;
|
|
139
143
|
validators?: ValidatorFn | ValidatorFn[];
|
|
140
144
|
required?: boolean;
|
|
141
145
|
reject?: {
|
|
142
|
-
color
|
|
143
|
-
text
|
|
146
|
+
color?: string;
|
|
147
|
+
text?: string;
|
|
144
148
|
};
|
|
145
149
|
accept?: {
|
|
146
|
-
color
|
|
147
|
-
text
|
|
150
|
+
color?: string;
|
|
151
|
+
text?: string;
|
|
148
152
|
};
|
|
149
153
|
width?: string;
|
|
150
154
|
maxWidth?: string;
|
|
@@ -466,18 +470,23 @@ declare class C3FileViewer {
|
|
|
466
470
|
declare class C3FileViewerComponent implements OnInit {
|
|
467
471
|
moduleConfig: C3FileViewerConfig;
|
|
468
472
|
_http: HttpClient;
|
|
473
|
+
/** Height in pixels occupied by other elements (e.g. header), used to calculate viewer height. Defaults to 0. */
|
|
469
474
|
readonly screenHeightOccupied: i0.InputSignal<number | undefined>;
|
|
475
|
+
/** The C3FileViewer instance to control the viewer. */
|
|
470
476
|
readonly fileViewer: i0.InputSignal<C3FileViewer>;
|
|
477
|
+
/** Emits when the current file index changes. */
|
|
471
478
|
readonly indexChange: i0.OutputEmitterRef<number>;
|
|
479
|
+
/** Emits configuration changes. */
|
|
472
480
|
readonly configChange: i0.OutputEmitterRef<C3FileViewerConfig>;
|
|
481
|
+
/** Emits custom events from the file viewer. */
|
|
473
482
|
readonly customFileEvent: i0.OutputEmitterRef<CustomFileEvent>;
|
|
474
483
|
constructor(moduleConfig: C3FileViewerConfig, _http: HttpClient);
|
|
475
484
|
ngOnInit(): void;
|
|
476
485
|
onMouseOver(): void;
|
|
477
486
|
onMouseLeave(): void;
|
|
478
487
|
ngOnChanges(changes: SimpleChanges): void;
|
|
479
|
-
next(event:
|
|
480
|
-
previous(event:
|
|
488
|
+
next(event: Event): void;
|
|
489
|
+
previous(event: Event): void;
|
|
481
490
|
defineStyleHeight(): void;
|
|
482
491
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileViewerComponent, [{ optional: true; }, null]>;
|
|
483
492
|
static ɵcmp: i0.ɵɵComponentDeclaration<C3FileViewerComponent, "c3-file-viewer", never, { "screenHeightOccupied": { "alias": "screenHeightOccupied"; "required": false; "isSignal": true; }; "fileViewer": { "alias": "fileViewer"; "required": true; "isSignal": true; }; }, { "indexChange": "indexChange"; "configChange": "configChange"; "customFileEvent": "customFileEvent"; }, never, never, false, never>;
|
|
@@ -560,13 +569,24 @@ declare class C3FileViewerModule {
|
|
|
560
569
|
|
|
561
570
|
type C3FileCardSize = '16' | '32' | '64' | '128' | '256';
|
|
562
571
|
declare class C3FileDisplayCardComponent {
|
|
572
|
+
/**
|
|
573
|
+
* The file object/metadata to display. Can include an observable for the object URL.
|
|
574
|
+
*/
|
|
563
575
|
readonly fileObjectUrl: i0.InputSignal<(FileMetadata & {
|
|
564
576
|
objectUrl?: Observable<string>;
|
|
565
577
|
}) | null>;
|
|
578
|
+
/**
|
|
579
|
+
* Function to extract the display name from the file metadata.
|
|
580
|
+
* Defaults to returning `file.name`.
|
|
581
|
+
*/
|
|
566
582
|
readonly displayFn: i0.InputSignal<(file: FileMetadata) => string>;
|
|
583
|
+
/** Whether the file can be deleted. Defaults to false. */
|
|
567
584
|
readonly deletable: i0.InputSignal<boolean>;
|
|
585
|
+
/** Size of the card. Options: '16', '32', '64', '128', '256'. Defaults to '32'. */
|
|
568
586
|
readonly size: i0.InputSignal<C3FileCardSize>;
|
|
587
|
+
/** Emits when the delete button is clicked. */
|
|
569
588
|
readonly onDelete: i0.OutputEmitterRef<void>;
|
|
589
|
+
/** Emits when the download button/action is triggered. */
|
|
570
590
|
readonly onDownload: i0.OutputEmitterRef<void>;
|
|
571
591
|
readonly getFileType: i0.Signal<"image" | "application" | "video" | "unknown">;
|
|
572
592
|
readonly getFileObjectUrl: i0.Signal<Observable<string> | null>;
|
|
@@ -671,8 +691,15 @@ declare class C3AutoAnimateDirective implements AfterViewInit {
|
|
|
671
691
|
static ɵdir: i0.ɵɵDirectiveDeclaration<C3AutoAnimateDirective, "[c3AutoAnimate]", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
672
692
|
}
|
|
673
693
|
|
|
694
|
+
/**
|
|
695
|
+
* C3ExpansionComponent
|
|
696
|
+
* A style-agnostic expansion panel. Provides the expansion logic and animation
|
|
697
|
+
* (via c3-auto-animate) but leaves styling to the consumer.
|
|
698
|
+
*/
|
|
674
699
|
declare class C3ExpansionComponent implements OnDestroy {
|
|
700
|
+
/** Class to apply to the header element. Defaults to 'c3-expansion-header'. */
|
|
675
701
|
headerClass: i0.InputSignal<string>;
|
|
702
|
+
/** Whether the panel is expanded. Two-way binding supported. */
|
|
676
703
|
isExpanded: i0.ModelSignal<boolean>;
|
|
677
704
|
get hostClass(): string;
|
|
678
705
|
readonly _elementRef: ElementRef<any>;
|
|
@@ -840,6 +867,11 @@ declare class C3MenuService {
|
|
|
840
867
|
static ɵprov: i0.ɵɵInjectableDeclaration<C3MenuService>;
|
|
841
868
|
}
|
|
842
869
|
|
|
870
|
+
/**
|
|
871
|
+
* C3MenuComponent
|
|
872
|
+
* Wrapper for the side menu. It projects `c3-nav-item` components.
|
|
873
|
+
* Automatically handles `headless` mode via query params (managed by C3MenuService).
|
|
874
|
+
*/
|
|
843
875
|
declare class C3MenuComponent {
|
|
844
876
|
readonly _c3Menu: C3MenuService;
|
|
845
877
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3MenuComponent, never>;
|
|
@@ -847,9 +879,13 @@ declare class C3MenuComponent {
|
|
|
847
879
|
}
|
|
848
880
|
|
|
849
881
|
declare class C3NavItemComponent {
|
|
882
|
+
/** The router link path for this navigation item. */
|
|
850
883
|
readonly route: i0.InputSignal<string>;
|
|
884
|
+
/** The title/label of the navigation item. */
|
|
851
885
|
readonly itemTitle: i0.InputSignal<string>;
|
|
886
|
+
/** Optional regex string to check if the item is active based on URL. If null, defaults to `route`. */
|
|
852
887
|
readonly check: i0.InputSignal<string | null>;
|
|
888
|
+
/** Whether the link is external (opens in new tab/window). Defaults to false. */
|
|
853
889
|
readonly isExternal: i0.InputSignal<boolean>;
|
|
854
890
|
private readonly element;
|
|
855
891
|
private readonly _menu;
|