c3-components 0.8.5 → 0.8.7
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/esm2022/lib/c3-dialog/c3-dialog.module.mjs +5 -2
- package/esm2022/lib/c3-dialog/components/c3-dialog-alert.component.mjs +45 -0
- package/esm2022/lib/c3-dialog/services/c3-dialog.service.mjs +11 -1
- package/esm2022/lib/c3-file-displayer/c3-file-display-card/c3-file-display-card.component.mjs +26 -26
- package/esm2022/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list.component.mjs +5 -3
- package/esm2022/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.mjs +5 -3
- package/esm2022/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component.mjs +1 -1
- package/esm2022/lib/c3-file-viewer/models/file-viewer.mjs +6 -3
- package/esm2022/lib/c3-prevent-event/c3-prevent-click-event.directive.mjs +28 -0
- package/esm2022/lib/c3-prevent-event/c3-prevent-keyboard-event.directive.mjs +41 -0
- package/esm2022/lib/c3-prevent-event/c3-stop-click-propagation.directive.mjs +20 -0
- package/esm2022/lib/c3-prevent-event/index.mjs +4 -0
- package/esm2022/lib/c3-trace-card/components/c3-trace-card/c3-trace-card.component.mjs +2 -2
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/c3-components.mjs +175 -35
- package/fesm2022/c3-components.mjs.map +1 -1
- package/lib/c3-dialog/c3-dialog.module.d.ts +13 -12
- package/lib/c3-dialog/components/c3-dialog-alert.component.d.ts +15 -0
- package/lib/c3-dialog/services/c3-dialog.service.d.ts +2 -0
- package/lib/c3-file-displayer/c3-file-display-card/c3-file-display-card.component.d.ts +4 -4
- package/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list.component.d.ts +1 -1
- package/lib/c3-file-viewer/models/file-viewer.d.ts +1 -0
- package/lib/c3-prevent-event/c3-prevent-click-event.directive.d.ts +13 -0
- package/lib/c3-prevent-event/c3-prevent-keyboard-event.directive.d.ts +17 -0
- package/lib/c3-prevent-event/c3-stop-click-propagation.directive.d.ts +6 -0
- package/lib/c3-prevent-event/index.d.ts +3 -0
- package/lib/c3-trace-card/components/c3-trace-card/c3-trace-card.component.scss +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/c3-dialog-
|
|
3
|
-
import * as i2 from "./components/c3-dialog-
|
|
4
|
-
import * as i3 from "./components/c3-dialog-
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "@angular/
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@angular/material/
|
|
2
|
+
import * as i1 from "./components/c3-dialog-alert.component";
|
|
3
|
+
import * as i2 from "./components/c3-dialog-confirm.component";
|
|
4
|
+
import * as i3 from "./components/c3-dialog-prompt.component";
|
|
5
|
+
import * as i4 from "./components/c3-dialog-embed-child.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/material/button";
|
|
9
|
+
import * as i8 from "@angular/material/dialog";
|
|
10
|
+
import * as i9 from "@angular/material/form-field";
|
|
11
|
+
import * as i10 from "@angular/material/icon";
|
|
12
|
+
import * as i11 from "@angular/material/input";
|
|
13
|
+
import * as i12 from "@angular/material/toolbar";
|
|
13
14
|
export declare class C3DialogModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<C3DialogModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<C3DialogModule, [typeof i1.C3AlertDialogComponent, typeof i2.ConfirmDialogComponent, typeof i3.C3PromptDialogComponent, typeof i4.C3DialogEmbedChildComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.MatButtonModule, typeof i8.MatDialogModule, typeof i9.MatFormFieldModule, typeof i10.MatIconModule, typeof i11.MatInputModule, typeof i12.MatToolbarModule, typeof i6.ReactiveFormsModule], never>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<C3DialogModule>;
|
|
17
18
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface AlertConfig {
|
|
4
|
+
text: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
acceptText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class C3AlertDialogComponent {
|
|
9
|
+
dialogRef: MatDialogRef<C3AlertDialogComponent>;
|
|
10
|
+
data: AlertConfig;
|
|
11
|
+
constructor(dialogRef: MatDialogRef<C3AlertDialogComponent>, data: AlertConfig);
|
|
12
|
+
onNoClick(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3AlertDialogComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C3AlertDialogComponent, "AlertDialogComponent", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -6,6 +6,7 @@ import { ComponentType } from '@angular/cdk/portal';
|
|
|
6
6
|
import 'reflect-metadata';
|
|
7
7
|
import { C3DialogEmbedChildComponent } from '../components/c3-dialog-embed-child.component';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
|
+
import { AlertConfig } from '../components/c3-dialog-alert.component';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export type C3CreateDialogFromComponentConfig<C> = MatDialogConfig<Partial<Record<keyof C, unknown>>> & {
|
|
11
12
|
component: ComponentType<C>;
|
|
@@ -60,6 +61,7 @@ export declare class C3DialogService {
|
|
|
60
61
|
* @returns {MatDialogRef<C> & {component: ComponentRef<C> | undefined}} The dialog reference.
|
|
61
62
|
*/
|
|
62
63
|
createDialogFromComponent<C>({ component, toolbar, data, ...config }: C3CreateDialogFromComponentConfig<C>): C3CreateDialogFromComponentResult<C>;
|
|
64
|
+
alert(text: string, data?: AlertConfig): Observable<any>;
|
|
63
65
|
private createC3DialogResult;
|
|
64
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3DialogService, never>;
|
|
65
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<C3DialogService>;
|
|
@@ -10,10 +10,10 @@ export declare class C3FileDisplayCardComponent {
|
|
|
10
10
|
readonly deletable: import("@angular/core").InputSignal<boolean>;
|
|
11
11
|
readonly size: import("@angular/core").InputSignal<C3FileCardSize>;
|
|
12
12
|
readonly onDelete: import("@angular/core").OutputEmitterRef<void>;
|
|
13
|
-
getFileType()
|
|
14
|
-
getFileObjectUrl()
|
|
15
|
-
getFileName()
|
|
16
|
-
getDisplayName()
|
|
13
|
+
readonly getFileType: import("@angular/core").Signal<"image" | "application" | "video" | "unknown">;
|
|
14
|
+
readonly getFileObjectUrl: import("@angular/core").Signal<Observable<string> | null>;
|
|
15
|
+
readonly getFileName: import("@angular/core").Signal<string>;
|
|
16
|
+
readonly getDisplayName: import("@angular/core").Signal<string>;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayCardComponent, never>;
|
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<C3FileDisplayCardComponent, "c3-file-display-card", never, { "fileObjectUrl": { "alias": "fileObjectUrl"; "required": true; "isSignal": true; }; "displayFn": { "alias": "displayFn"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; }, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -18,5 +18,5 @@ export declare class C3FileDisplayListComponent {
|
|
|
18
18
|
constructor();
|
|
19
19
|
openDialog($event: MouseEvent, index: number): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayListComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C3FileDisplayListComponent, "c3-file-display-list", never, { "files": { "alias": "files"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "displayFn": { "alias": "displayFn"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; }, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C3FileDisplayListComponent, "c3-file-display-list", never, { "files": { "alias": "files"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "displayFn": { "alias": "displayFn"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; }, never, ["*"], true, never>;
|
|
22
22
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A directive that prevents the default action and stops event propagation on click events.
|
|
4
|
+
*/
|
|
5
|
+
export declare class C3PreventClickDirective {
|
|
6
|
+
/**
|
|
7
|
+
* HostListener for the 'click' event.
|
|
8
|
+
* @param {MouseEvent} event - The MouseEvent object representing the click event.
|
|
9
|
+
*/
|
|
10
|
+
onClick(event: MouseEvent): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3PreventClickDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3PreventClickDirective, "[c3-prevent-click]", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A directive that prevents the default action and stops event propagation on specified keyboard events.
|
|
4
|
+
*/
|
|
5
|
+
export declare class C3PreventKeyboardEventDirective {
|
|
6
|
+
/**
|
|
7
|
+
* The keyboard key to prevent the default action and stop event propagation for. Defaults to 'enter'.
|
|
8
|
+
*/
|
|
9
|
+
key: string;
|
|
10
|
+
/**
|
|
11
|
+
* HostListener for the 'keydown' event.
|
|
12
|
+
* @param {KeyboardEvent} event - The KeyboardEvent object representing the keydown event.
|
|
13
|
+
*/
|
|
14
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3PreventKeyboardEventDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3PreventKeyboardEventDirective, "[c3-prevent-keyboard-event]", never, { "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class C3StopPropagationDirective {
|
|
3
|
+
onClick(event: MouseEvent): void;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3StopPropagationDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3StopPropagationDirective, "[c3-stop-click-propagation]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "@angular/material" as mat;
|
|
2
2
|
|
|
3
3
|
.c3-trace-card {
|
|
4
|
+
--c3-trace-card-border-color: rgba(0, 0, 0, 0.12);
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: row;
|
|
6
7
|
justify-content: space-between;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
padding: 0.5rem 1rem;
|
|
16
17
|
font-size: 1.5rem;
|
|
17
18
|
line-height: 2rem;
|
|
18
|
-
border:
|
|
19
|
+
border: var(--c3-trace-card-border-color) solid 1px;
|
|
19
20
|
border-radius: 1rem;
|
|
20
21
|
@include mat.elevation(1);
|
|
21
22
|
}
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
.horizontal-line {
|
|
29
30
|
margin-top: 25px;
|
|
30
31
|
height: 1px;
|
|
31
|
-
background-color:
|
|
32
|
+
background-color: var(--c3-trace-card-border-color);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -75,3 +75,7 @@ export * from './lib/c3-trace-card/components/c3-trace-card-content/c3-trace-car
|
|
|
75
75
|
export * from './lib/c3-trace-card/components/c3-trace-card-title/c3-trace-card-title.component';
|
|
76
76
|
export * from './lib/c3-trace-card/directives/align-left.directive';
|
|
77
77
|
export * from './lib/c3-trace-card/directives/align-right.directive';
|
|
78
|
+
/**
|
|
79
|
+
* C3 Prevent Event
|
|
80
|
+
*/
|
|
81
|
+
export * from './lib/c3-prevent-event/index';
|