c3-components 0.11.9 → 0.12.1
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 +242 -160
- package/fesm2022/c3-components.mjs.map +1 -1
- package/lib/c3-dropdown/components/c3-dropdown.component.d.ts +1 -1
- package/lib/c3-dropdown/directives/c3-dropdown.trigger.d.ts +1 -1
- package/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list-column-def.directive.d.ts +21 -0
- package/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list.component.d.ts +6 -1
- package/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list.component.scss +26 -45
- package/lib/c3-file-displayer/c3-file-display-list/tokens.d.ts +2 -0
- package/lib/c3-file-displayer/c3-file-displayer.module.d.ts +2 -1
- package/lib/c3-pdf-viewer/pdf-viewer-container/pdf-viewer-container.component.scss +17 -0
- package/lib/c3-pdf-viewer/pdf-viewer-content/pdf-viewer-content.component.scss +18 -0
- package/lib/c3-pdf-viewer/pdf-viewer-header/pdf-viewer-header.component.scss +6 -0
- package/package.json +7 -6
- package/public-api.d.ts +5 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class C3DropdownComponent {
|
|
4
|
-
readonly panelClass: import("@angular/core").InputSignal<string |
|
|
4
|
+
readonly panelClass: import("@angular/core").InputSignal<string | string[] | Set<string> | {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
} | undefined>;
|
|
7
7
|
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -25,7 +25,7 @@ export declare class C3DropdownTrigger implements OnDestroy {
|
|
|
25
25
|
/** Whether the dropdown is disabled. */
|
|
26
26
|
readonly dropdownDisabled: import("@angular/core").InputSignal<boolean>;
|
|
27
27
|
/** Classes to be passed to the dropdown menu. Supports the same syntax as `ngClass`. */
|
|
28
|
-
readonly dropdownClass: import("@angular/core").InputSignal<string |
|
|
28
|
+
readonly dropdownClass: import("@angular/core").InputSignal<string | string[] | Set<string> | {
|
|
29
29
|
[key: string]: any;
|
|
30
30
|
}>;
|
|
31
31
|
constructor(_element: ElementRef<HTMLElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef);
|
package/lib/c3-file-displayer/c3-file-display-list/c3-file-display-list-column-def.directive.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class C3FileDisplayListColumnDefDirective {
|
|
4
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly classList: import("@angular/core").InputSignal<string[]>;
|
|
6
|
+
private readonly _table;
|
|
7
|
+
readonly headerCellDef: import("@angular/core").Signal<C3FileDisplayListHeaderCellDefDirective | undefined>;
|
|
8
|
+
readonly cellDef: import("@angular/core").Signal<C3FileDisplayListCellDefDirective | undefined>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayListColumnDefDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3FileDisplayListColumnDefDirective, "[c3FileDisplayListColumnDef]", never, { "title": { "alias": "c3FileDisplayListColumnDef"; "required": true; "isSignal": true; }; "classList": { "alias": "classList"; "required": false; "isSignal": true; }; }, {}, ["headerCellDef", "cellDef"], never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class C3FileDisplayListHeaderCellDefDirective {
|
|
13
|
+
template: TemplateRef<any>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayListHeaderCellDefDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3FileDisplayListHeaderCellDefDirective, "[c3FileDisplayListHeaderCellDef]", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class C3FileDisplayListCellDefDirective {
|
|
18
|
+
template: TemplateRef<any>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayListCellDefDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<C3FileDisplayListCellDefDirective, "[c3FileDisplayListCellDef]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -2,6 +2,7 @@ import { C3FileViewerDialogComponent } from '../../c3-file-viewer/components/pub
|
|
|
2
2
|
import { FileMetadata } from '../../c3-file-viewer/models/file-metadata';
|
|
3
3
|
import { C3FileViewer } from '../../c3-file-viewer/models/file-viewer';
|
|
4
4
|
import { C3FileViewerConfig } from '../../c3-file-viewer/models/file-viewer-config.model';
|
|
5
|
+
import { C3FileDisplayListColumnDefDirective } from './c3-file-display-list-column-def.directive';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class C3FileDisplayListComponent {
|
|
7
8
|
readonly files: import("@angular/core").InputSignal<(FileMetadata & {
|
|
@@ -11,12 +12,16 @@ export declare class C3FileDisplayListComponent {
|
|
|
11
12
|
readonly displayFn: import("@angular/core").InputSignal<(file: FileMetadata & {
|
|
12
13
|
location: string;
|
|
13
14
|
}) => string>;
|
|
15
|
+
readonly columns: import("@angular/core").InputSignal<string[]>;
|
|
14
16
|
readonly deletable: import("@angular/core").InputSignal<boolean>;
|
|
15
17
|
readonly onDelete: import("@angular/core").OutputEmitterRef<FileMetadata>;
|
|
16
18
|
readonly dialog: import("@angular/core").Signal<C3FileViewerDialogComponent | undefined>;
|
|
19
|
+
private readonly _columnDefs;
|
|
20
|
+
private readonly _viewContainer;
|
|
17
21
|
fileViewer: C3FileViewer;
|
|
18
22
|
constructor();
|
|
19
23
|
openDialog($event: MouseEvent, index: number): void;
|
|
24
|
+
getColumnDef(columnName: string): C3FileDisplayListColumnDefDirective | undefined;
|
|
20
25
|
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"; },
|
|
26
|
+
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; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "deletable": { "alias": "deletable"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; }, ["_columnDefs"], ["*"], true, never>;
|
|
22
27
|
}
|
|
@@ -3,62 +3,43 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin: 0.5rem;
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
.file-table {
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
|
|
10
|
+
th,
|
|
11
|
+
td {
|
|
12
|
+
padding: 0.5rem;
|
|
13
|
+
text-align: left;
|
|
14
|
+
border-bottom: 1px solid var(--mat-divider-color);
|
|
15
|
+
}
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
flex-basis: 304px;
|
|
14
|
-
width: 304px;
|
|
17
|
+
th {
|
|
15
18
|
font-size: 1.5rem;
|
|
16
19
|
font-weight: bold;
|
|
17
|
-
|
|
18
|
-
&.full {
|
|
19
|
-
flex: auto;
|
|
20
|
-
}
|
|
20
|
+
background-color: var(--mat-table-header-container-background-color);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
flex-basis: 40px;
|
|
25
|
-
width: 40px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.file-display-list {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
|
|
33
|
-
> button {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
height: 3rem;
|
|
37
|
-
align-items: center;
|
|
38
|
-
border-bottom: 1px solid var(--mat-divider-color);
|
|
39
|
-
background-color: var(--mdc-protected-button-container-color);
|
|
40
|
-
text-align: start;
|
|
41
|
-
padding: 0 0.5rem;
|
|
42
|
-
|
|
23
|
+
tr {
|
|
43
24
|
&:hover {
|
|
44
25
|
background-color: var(--background-hover);
|
|
45
26
|
}
|
|
27
|
+
}
|
|
46
28
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
29
|
+
.icon {
|
|
30
|
+
width: 56px;
|
|
31
|
+
min-width: 56px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
51
34
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
35
|
+
:where(th, td):not(.full) {
|
|
36
|
+
width: 0;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
}
|
|
57
39
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
40
|
+
.actions {
|
|
41
|
+
width: 48px;
|
|
42
|
+
text-align: center;
|
|
62
43
|
}
|
|
63
44
|
}
|
|
64
45
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "./c3-file-display-grid/c3-file-display-grid.component";
|
|
|
4
4
|
import * as i3 from "./c3-file-display-list/c3-file-display-list.component";
|
|
5
5
|
import * as i4 from "./c3-file-display-card/c3-file-display-card.component";
|
|
6
6
|
import * as i5 from "./c3-file-display-icon/c3-file-display-icon.component";
|
|
7
|
+
import * as i6 from "./c3-file-display-list/c3-file-display-list-column-def.directive";
|
|
7
8
|
export declare class C3FileDisplayerModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<C3FileDisplayerModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<C3FileDisplayerModule, never, [typeof i1.CommonModule, typeof i2.C3FileDisplayGridComponent, typeof i3.C3FileDisplayListComponent, typeof i4.C3FileDisplayCardComponent, typeof i5.C3FileDisplayIconComponent], [typeof i2.C3FileDisplayGridComponent, typeof i3.C3FileDisplayListComponent, typeof i4.C3FileDisplayCardComponent, typeof i5.C3FileDisplayIconComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<C3FileDisplayerModule, never, [typeof i1.CommonModule, typeof i2.C3FileDisplayGridComponent, typeof i3.C3FileDisplayListComponent, typeof i4.C3FileDisplayCardComponent, typeof i5.C3FileDisplayIconComponent, typeof i6.C3FileDisplayListColumnDefDirective, typeof i6.C3FileDisplayListHeaderCellDefDirective, typeof i6.C3FileDisplayListCellDefDirective], [typeof i2.C3FileDisplayGridComponent, typeof i3.C3FileDisplayListComponent, typeof i4.C3FileDisplayCardComponent, typeof i5.C3FileDisplayIconComponent, typeof i6.C3FileDisplayListColumnDefDirective, typeof i6.C3FileDisplayListHeaderCellDefDirective, typeof i6.C3FileDisplayListCellDefDirective]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<C3FileDisplayerModule>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
background-color: #a0a0a0;
|
|
4
|
+
position: relative;
|
|
5
|
+
pdf-viewer-header {
|
|
6
|
+
width: 100%;
|
|
7
|
+
background-color: #f0f0f0;
|
|
8
|
+
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
9
|
+
z-index: 100;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
pdf-viewer-footer {
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use "pdfjs-dist/web/pdf_viewer.css";
|
|
2
|
+
|
|
3
|
+
pdf-viewer-content {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: block;
|
|
6
|
+
height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: 500px;
|
|
9
|
+
min-width: 500px;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
#viewerContainer {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c3-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "C3 Components Library",
|
|
5
5
|
"author": "c3ulnta0rk",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/c3ulnta0rk/c3-components",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/common": ">=
|
|
10
|
-
"@angular/core": ">=
|
|
11
|
-
"@angular/cdk": ">=
|
|
12
|
-
"@angular/material": ">=
|
|
9
|
+
"@angular/common": ">=19.1.0",
|
|
10
|
+
"@angular/core": ">=19.1.0",
|
|
11
|
+
"@angular/cdk": ">=19.1.0",
|
|
12
|
+
"@angular/material": ">=19.1.0",
|
|
13
13
|
"autoprefixer": "^10.4.16",
|
|
14
|
-
"@formkit/auto-animate": "^0.8.2"
|
|
14
|
+
"@formkit/auto-animate": "^0.8.2",
|
|
15
|
+
"pdfjs-dist": "^5.1.2"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export * from './lib/c3-file-displayer/c3-file-display-list/c3-file-display-list
|
|
|
36
36
|
export * from './lib/c3-file-displayer/c3-file-display-icon/c3-file-display-icon.component';
|
|
37
37
|
export * from './lib/c3-file-displayer/c3-file-display-grid/c3-file-display-grid.component';
|
|
38
38
|
export * from './lib/c3-file-displayer/c3-file-display-card/c3-file-display-card.component';
|
|
39
|
+
export * from './lib/c3-file-displayer/c3-file-display-list/c3-file-display-list-column-def.directive';
|
|
40
|
+
export * from './lib/c3-file-displayer/c3-file-display-list/tokens';
|
|
39
41
|
/**
|
|
40
42
|
* Safe Url
|
|
41
43
|
*/
|
|
@@ -88,3 +90,6 @@ export * from './lib/c3-prevent-event/index';
|
|
|
88
90
|
export * from './lib/c3-menu/c3-menu.module';
|
|
89
91
|
export * from './lib/c3-menu/components/c3-menu/c3-menu.component';
|
|
90
92
|
export * from './lib/c3-menu/components/c3-nav-item/c3-nav-item.component';
|
|
93
|
+
/**
|
|
94
|
+
* C3 PDF Viewer
|
|
95
|
+
*/
|