c3-components 0.8.4 → 0.8.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.
@@ -1,17 +1,18 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./components/c3-dialog-confirm.component";
3
- import * as i2 from "./components/c3-dialog-prompt.component";
4
- import * as i3 from "./components/c3-dialog-embed-child.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "@angular/material/button";
8
- import * as i7 from "@angular/material/dialog";
9
- import * as i8 from "@angular/material/form-field";
10
- import * as i9 from "@angular/material/icon";
11
- import * as i10 from "@angular/material/input";
12
- import * as i11 from "@angular/material/toolbar";
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.ConfirmDialogComponent, typeof i2.C3PromptDialogComponent, typeof i3.C3DialogEmbedChildComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatButtonModule, typeof i7.MatDialogModule, typeof i8.MatFormFieldModule, typeof i9.MatIconModule, typeof i10.MatInputModule, typeof i11.MatToolbarModule, typeof i5.ReactiveFormsModule], never>;
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>;
@@ -1,5 +1,6 @@
1
1
  :host {
2
2
  display: block;
3
+ width: fit-content;
3
4
  .file-card {
4
5
  position: relative;
5
6
  border-radius: 4px;
@@ -2,8 +2,8 @@
2
2
  display: block;
3
3
 
4
4
  .c3-file-display-grid {
5
- display: grid;
6
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
7
- grid-gap: 10px;
5
+ display: flex;
6
+ flex-flow: wrap;
7
+ gap: 1rem;
8
8
  }
9
9
  }
@@ -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: #e0e0e0 solid 1px;
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: #e0e0e0;
32
+ background-color: var(--c3-trace-card-border-color);
32
33
  }
33
34
  }
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c3-components",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "C3 Components Library",
5
5
  "author": "c3ulnta0rk",
6
6
  "license": "MIT",