c3-components 0.9.3 → 0.10.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 +308 -191
- package/fesm2022/c3-components.mjs.map +1 -1
- package/lib/c3-dialog/c3-dialog.module.d.ts +11 -9
- package/lib/c3-dialog/components/c3-dialog-embed-child.component.d.ts +10 -3
- package/lib/c3-dialog/components/c3-dialog-template/c3-dialog-template.component.d.ts +9 -0
- package/lib/c3-dialog/components/c3-dialog-template/c3-dialog-template.component.scss +3 -0
- package/lib/c3-dialog/directives/c3-open-dialog.directive.d.ts +9 -0
- package/lib/c3-dialog/services/c3-dialog.service.d.ts +7 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -3,16 +3,18 @@ import * as i1 from "./components/c3-dialog-alert.component";
|
|
|
3
3
|
import * as i2 from "./components/c3-dialog-confirm.component";
|
|
4
4
|
import * as i3 from "./components/c3-dialog-prompt.component";
|
|
5
5
|
import * as i4 from "./components/c3-dialog-embed-child.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@angular/material/
|
|
13
|
-
import * as i12 from "@angular/material/
|
|
6
|
+
import * as i5 from "./components/c3-dialog-template/c3-dialog-template.component";
|
|
7
|
+
import * as i6 from "./directives/c3-open-dialog.directive";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@angular/material/button";
|
|
11
|
+
import * as i10 from "@angular/material/dialog";
|
|
12
|
+
import * as i11 from "@angular/material/form-field";
|
|
13
|
+
import * as i12 from "@angular/material/icon";
|
|
14
|
+
import * as i13 from "@angular/material/input";
|
|
15
|
+
import * as i14 from "@angular/material/toolbar";
|
|
14
16
|
export declare class C3DialogModule {
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<C3DialogModule, [typeof i1.C3AlertDialogComponent, typeof i2.ConfirmDialogComponent, typeof i3.C3PromptDialogComponent, typeof i4.C3DialogEmbedChildComponent], [typeof
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<C3DialogModule, [typeof i1.C3AlertDialogComponent, typeof i2.ConfirmDialogComponent, typeof i3.C3PromptDialogComponent, typeof i4.C3DialogEmbedChildComponent, typeof i5.C3DialogTemplateComponent, typeof i6.C3OpenDialogDirective], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.MatButtonModule, typeof i10.MatDialogModule, typeof i11.MatFormFieldModule, typeof i12.MatIconModule, typeof i13.MatInputModule, typeof i14.MatToolbarModule, typeof i8.ReactiveFormsModule], [typeof i5.C3DialogTemplateComponent, typeof i6.C3OpenDialogDirective]>;
|
|
17
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<C3DialogModule>;
|
|
18
20
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ComponentRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class C3DialogEmbedChildComponent<C> implements AfterViewInit {
|
|
6
6
|
dialogRef: MatDialogRef<C3DialogEmbedChildComponent<C>>;
|
|
7
7
|
data: {
|
|
8
|
-
component
|
|
8
|
+
component?: ComponentType<C>;
|
|
9
|
+
templateRef?: TemplateRef<any>;
|
|
9
10
|
inputs?: Partial<Record<keyof C, unknown>>;
|
|
10
11
|
classActions?: string;
|
|
11
12
|
classContainer?: string;
|
|
@@ -27,7 +28,8 @@ export declare class C3DialogEmbedChildComponent<C> implements AfterViewInit {
|
|
|
27
28
|
target: ViewContainerRef;
|
|
28
29
|
createdComponent: import("@angular/core").WritableSignal<ComponentRef<C> | null>;
|
|
29
30
|
constructor(dialogRef: MatDialogRef<C3DialogEmbedChildComponent<C>>, data: {
|
|
30
|
-
component
|
|
31
|
+
component?: ComponentType<C>;
|
|
32
|
+
templateRef?: TemplateRef<any>;
|
|
31
33
|
inputs?: Partial<Record<keyof C, unknown>>;
|
|
32
34
|
classActions?: string;
|
|
33
35
|
classContainer?: string;
|
|
@@ -46,6 +48,11 @@ export declare class C3DialogEmbedChildComponent<C> implements AfterViewInit {
|
|
|
46
48
|
}[];
|
|
47
49
|
}, _cdr: ChangeDetectorRef);
|
|
48
50
|
ngAfterViewInit(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Retourne la référence du composant créé (s’il y en a un),
|
|
53
|
+
* utile pour le service ou l’appelant.
|
|
54
|
+
*/
|
|
55
|
+
createdComponentInstance(): ComponentRef<C> | null;
|
|
49
56
|
private _getInputProperties;
|
|
50
57
|
private _setInputs;
|
|
51
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogEmbedChildComponent<any>, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { C3CreateDialogFromComponentResult } from '../../services/c3-dialog.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class C3DialogTemplateComponent {
|
|
5
|
+
readonly templateRef: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
6
|
+
readonly dialogRef: import("@angular/core").WritableSignal<C3CreateDialogFromComponentResult<unknown> | null>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogTemplateComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C3DialogTemplateComponent, "c3-dialog-template", never, {}, {}, never, ["*"], false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C3DialogTemplateComponent } from '../components/c3-dialog-template/c3-dialog-template.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class C3OpenDialogDirective {
|
|
4
|
+
readonly template: import("@angular/core").InputSignal<C3DialogTemplateComponent | undefined>;
|
|
5
|
+
private readonly _dialog;
|
|
6
|
+
private openDialog;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3OpenDialogDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3OpenDialogDirective, "[c3-dialog]", never, { "template": { "alias": "c3-dialog"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentRef } from '@angular/core';
|
|
1
|
+
import { ComponentRef, TemplateRef } from '@angular/core';
|
|
2
2
|
import { MatDialogConfig, MatDialogContainer, MatDialogState } from '@angular/material/dialog';
|
|
3
3
|
import { ConfirmConfig } from '../components/c3-dialog-confirm.component';
|
|
4
4
|
import { PromptConfig } from '../components/c3-dialog-prompt.component';
|
|
@@ -70,6 +70,12 @@ export declare class C3DialogService {
|
|
|
70
70
|
* @returns {MatDialogRef<C> & {component: ComponentRef<C> | undefined}} The dialog reference.
|
|
71
71
|
*/
|
|
72
72
|
createDialogFromComponent<C>({ component, toolbar, data, classContainer, classContent, classActions, actions, ...config }: C3CreateDialogFromComponentConfig<C>): C3CreateDialogFromComponentResult<C>;
|
|
73
|
+
/**
|
|
74
|
+
* Ouvre un dialog à partir d'un TemplateRef.
|
|
75
|
+
* @param templateRef Le TemplateRef à afficher dans la boîte de dialogue.
|
|
76
|
+
* @param config (optionnel) Configuration pour le MatDialog (dimensions, position, etc.).
|
|
77
|
+
*/
|
|
78
|
+
createDialogFromTemplate(templateRef: TemplateRef<any>, config?: MatDialogConfig): C3CreateDialogFromComponentResult<unknown>;
|
|
73
79
|
alert(text: string, data?: AlertConfig): Observable<any>;
|
|
74
80
|
private createC3DialogResult;
|
|
75
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogService, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,10 +8,13 @@ export * from './lib/c3-dropdown/c3-dropdown.module';
|
|
|
8
8
|
/**
|
|
9
9
|
* Dialog
|
|
10
10
|
*/
|
|
11
|
+
export * from './lib/c3-dialog/components/c3-dialog-alert.component';
|
|
11
12
|
export * from './lib/c3-dialog/components/c3-dialog-confirm.component';
|
|
12
13
|
export * from './lib/c3-dialog/components/c3-dialog-prompt.component';
|
|
13
14
|
export * from './lib/c3-dialog/components/c3-dialog-embed-child.component';
|
|
15
|
+
export * from './lib/c3-dialog/components/c3-dialog-template/c3-dialog-template.component';
|
|
14
16
|
export * from './lib/c3-dialog/services/c3-dialog.service';
|
|
17
|
+
export * from './lib/c3-dialog/directives/c3-open-dialog.directive';
|
|
15
18
|
export * from './lib/c3-dialog/c3-dialog.module';
|
|
16
19
|
/**
|
|
17
20
|
* File Viewer
|