cax-design-system 2.6.0 → 2.7.0
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/README.md +1 -1
- package/commentbox/commentbox.d.ts +111 -0
- package/commentbox/commentbox.module.d.ts +17 -0
- package/commentbox/index.d.ts +5 -0
- package/commentbox/public_api.d.ts +2 -0
- package/esm2022/card/card.mjs +2 -2
- package/esm2022/commentbox/cax-design-system-commentbox.mjs +5 -0
- package/esm2022/commentbox/commentbox.mjs +541 -0
- package/esm2022/commentbox/commentbox.module.mjs +27 -0
- package/esm2022/commentbox/public_api.mjs +3 -0
- package/esm2022/inputtext/inputtext.component.mjs +13 -4
- package/esm2022/inputtextarea/inputtextarea.component.mjs +8 -4
- package/esm2022/navigation/navigation.mjs +18 -5
- package/esm2022/table/components/column-filter/column-filter.mjs +52 -11
- package/esm2022/table/components/sort-icon/sort-icon.mjs +10 -7
- package/esm2022/table/table.mjs +123 -98
- package/esm2022/upload/cax-design-system-upload.mjs +5 -0
- package/esm2022/upload/public_api.mjs +3 -0
- package/esm2022/upload/upload.component.mjs +355 -0
- package/esm2022/upload/upload.component.module.mjs +21 -0
- package/fesm2022/cax-design-system-card.mjs +2 -2
- package/fesm2022/cax-design-system-card.mjs.map +1 -1
- package/fesm2022/cax-design-system-commentbox.mjs +572 -0
- package/fesm2022/cax-design-system-commentbox.mjs.map +1 -0
- package/fesm2022/cax-design-system-inputtext.mjs +12 -3
- package/fesm2022/cax-design-system-inputtext.mjs.map +1 -1
- package/fesm2022/cax-design-system-inputtextarea.mjs +7 -3
- package/fesm2022/cax-design-system-inputtextarea.mjs.map +1 -1
- package/fesm2022/cax-design-system-navigation.mjs +17 -4
- package/fesm2022/cax-design-system-navigation.mjs.map +1 -1
- package/fesm2022/cax-design-system-table.mjs +181 -113
- package/fesm2022/cax-design-system-table.mjs.map +1 -1
- package/fesm2022/cax-design-system-upload.mjs +380 -0
- package/fesm2022/cax-design-system-upload.mjs.map +1 -0
- package/inputtext/inputtext.component.d.ts +4 -1
- package/inputtextarea/inputtextarea.component.d.ts +2 -2
- package/navigation/navigation.d.ts +3 -1
- package/package.json +174 -162
- package/resources/cax.min.scss +1 -1
- package/resources/cax.scss +305 -254
- package/resources/components/card/card.scss +1 -1
- package/resources/components/commentbox/commentbox.scss +604 -0
- package/resources/components/table/table.scss +12 -4
- package/resources/components/upload/upload.component.scss +147 -0
- package/table/components/column-filter/column-filter.d.ts +6 -1
- package/table/components/sort-icon/sort-icon.d.ts +2 -1
- package/table/table.d.ts +6 -4
- package/upload/index.d.ts +5 -0
- package/upload/public_api.d.ts +2 -0
- package/upload/upload.component.d.ts +61 -0
- package/upload/upload.component.module.d.ts +11 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cax Design System
|
|
2
2
|
|
|
3
|
-
You can access all the modules available in cax design system in the [storybook](https://673d43a5032fb6c56edd4107-
|
|
3
|
+
You can access all the modules available in cax design system in the [storybook](https://673d43a5032fb6c56edd4107-zecehfbvzz.chromatic.com/)
|
|
4
4
|
|
|
5
5
|
### Installation
|
|
6
6
|
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface Comment {
|
|
5
|
+
text: string;
|
|
6
|
+
date: Date;
|
|
7
|
+
files?: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
size: string;
|
|
10
|
+
}>;
|
|
11
|
+
isAdmin?: boolean;
|
|
12
|
+
sender?: string;
|
|
13
|
+
}
|
|
14
|
+
interface GroupedComments {
|
|
15
|
+
date: Date;
|
|
16
|
+
items: Comment[];
|
|
17
|
+
}
|
|
18
|
+
export declare class CommentboxComponent {
|
|
19
|
+
private sanitizer;
|
|
20
|
+
comments: Comment[];
|
|
21
|
+
mentionSuggestions: any[];
|
|
22
|
+
hashtagSuggestions: any[];
|
|
23
|
+
sidebarHeader: string;
|
|
24
|
+
isAdmin: boolean;
|
|
25
|
+
commentAdded: EventEmitter<any>;
|
|
26
|
+
fileSelected: EventEmitter<File>;
|
|
27
|
+
fileDownload: EventEmitter<{
|
|
28
|
+
name: string;
|
|
29
|
+
size: string;
|
|
30
|
+
}>;
|
|
31
|
+
visibleChange: EventEmitter<boolean>;
|
|
32
|
+
newComment: string;
|
|
33
|
+
isMentioning: boolean;
|
|
34
|
+
isHashtagging: boolean;
|
|
35
|
+
suggestions: any[];
|
|
36
|
+
selectedSuggestion: any;
|
|
37
|
+
selectedSuggestionIndex: number;
|
|
38
|
+
filteredSuggestions: any[];
|
|
39
|
+
currentTokenType: 'mention' | 'hashtag' | null;
|
|
40
|
+
cursorPosition: number;
|
|
41
|
+
fileInput: ElementRef<HTMLInputElement>;
|
|
42
|
+
suggestionPanel: ElementRef;
|
|
43
|
+
inputText: ElementRef;
|
|
44
|
+
private commentsList;
|
|
45
|
+
countChip: ElementRef;
|
|
46
|
+
selectedFiles: Array<{
|
|
47
|
+
name: string;
|
|
48
|
+
size: string;
|
|
49
|
+
}>;
|
|
50
|
+
selectedFilesMap: Map<number, {
|
|
51
|
+
name: string;
|
|
52
|
+
size: string;
|
|
53
|
+
}>;
|
|
54
|
+
today: Date;
|
|
55
|
+
overlayVisible: boolean;
|
|
56
|
+
filesOverlayVisible: boolean;
|
|
57
|
+
overlayPosition: {
|
|
58
|
+
top: number;
|
|
59
|
+
left: number;
|
|
60
|
+
};
|
|
61
|
+
private dateUpdateInterval;
|
|
62
|
+
private shouldAutoScroll;
|
|
63
|
+
private isUserScrolling;
|
|
64
|
+
private observer;
|
|
65
|
+
constructor(sanitizer: DomSanitizer);
|
|
66
|
+
ngAfterViewInit(): void;
|
|
67
|
+
ngOnDestroy(): void;
|
|
68
|
+
private updateCurrentDate;
|
|
69
|
+
formatDate(date: Date): string;
|
|
70
|
+
formatMessageWithTags(text: string): SafeHtml;
|
|
71
|
+
addComment(): void;
|
|
72
|
+
private forceScrollToBottom;
|
|
73
|
+
private scrollToBottom;
|
|
74
|
+
set visible(value: boolean);
|
|
75
|
+
get visible(): boolean;
|
|
76
|
+
private _visible;
|
|
77
|
+
toggleComments(): void;
|
|
78
|
+
onSidebarHide(): void;
|
|
79
|
+
onDocumentClick(event: MouseEvent): void;
|
|
80
|
+
handleKeyUp(event: any): void;
|
|
81
|
+
getTokenAtCursor(text: string, cursorPos: number): string | null;
|
|
82
|
+
getWordAtPosition(text: string, position: number): string;
|
|
83
|
+
selectSuggestion(suggestion: any): void;
|
|
84
|
+
onSuggestionSelect(item: any): void;
|
|
85
|
+
onSuggestionPanelHide(): void;
|
|
86
|
+
getCursorPosition(input: HTMLInputElement): {
|
|
87
|
+
left: number;
|
|
88
|
+
top: number;
|
|
89
|
+
};
|
|
90
|
+
onFileIconClick(event: Event): void;
|
|
91
|
+
onFileSelect(event: Event): void;
|
|
92
|
+
private updateFileState;
|
|
93
|
+
removeFile(index: number, fromChip?: boolean): void;
|
|
94
|
+
getOverflowCount(): number;
|
|
95
|
+
showFilesOverlay(event: MouseEvent): void;
|
|
96
|
+
hideFilesOverlay(): void;
|
|
97
|
+
private handleClickOutside;
|
|
98
|
+
formatFileSize(bytes: number): string;
|
|
99
|
+
showSuggestions(_event: any, type: 'mention' | 'hashtag'): void;
|
|
100
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
101
|
+
private scrollSuggestionIntoView;
|
|
102
|
+
onFileDownload(file: {
|
|
103
|
+
name: string;
|
|
104
|
+
size: string;
|
|
105
|
+
}): void;
|
|
106
|
+
get groupedComments(): GroupedComments[];
|
|
107
|
+
getShortFileName(filename: string): string;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentboxComponent, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentboxComponent, "cax-comments", never, { "comments": { "alias": "comments"; "required": false; }; "mentionSuggestions": { "alias": "mentionSuggestions"; "required": false; }; "hashtagSuggestions": { "alias": "hashtagSuggestions"; "required": false; }; "sidebarHeader": { "alias": "sidebarHeader"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, { "commentAdded": "commentAdded"; "fileSelected": "fileSelected"; "fileDownload": "fileDownload"; "visibleChange": "visibleChange"; }, never, never, false, never>;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./commentbox";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "cax-design-system/sidebar";
|
|
6
|
+
import * as i5 from "cax-design-system/inputtext";
|
|
7
|
+
import * as i6 from "cax-design-system/button";
|
|
8
|
+
import * as i7 from "cax-design-system/chip";
|
|
9
|
+
import * as i8 from "cax-design-system/overlay";
|
|
10
|
+
import * as i9 from "cax-design-system/avatar";
|
|
11
|
+
import * as i10 from "cax-design-system/ripple";
|
|
12
|
+
import * as i11 from "cax-design-system/api";
|
|
13
|
+
export declare class CommentboxModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentboxModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CommentboxModule, [typeof i1.CommentboxComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.Sidebar, typeof i5.InputTextModule, typeof i6.ButtonModule, typeof i7.ChipModule, typeof i8.OverlayModule, typeof i9.AvatarModule, typeof i10.RippleModule, typeof i11.SharedModule], [typeof i1.CommentboxComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CommentboxModule>;
|
|
17
|
+
}
|
package/esm2022/card/card.mjs
CHANGED
|
@@ -79,13 +79,13 @@ export class Card {
|
|
|
79
79
|
return this.el.nativeElement.children[0];
|
|
80
80
|
}
|
|
81
81
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Card, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: Card, selector: "cax-card", inputs: { header: "header", activeCard: "activeCard", imageUrl: "imageUrl", badgeSeverity: "badgeSeverity", badgeValue: "badgeValue", iconClass: "iconClass", subheader: "subheader", style: "style", styleClass: "styleClass" }, host: { classAttribute: "cax-element" }, queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: CaxTemplate }], ngImport: i0, template: "<div [ngClass]=\"'cax-card cax-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\r\n <div [ngClass]=\"{\r\n 'cax-card-header': true,\r\n 'cax-card-header-no-padding': !header && !headerTemplate && !imageUrl && !iconClass && activeCard,\r\n 'cax-card-header-default-padding': (header || headerTemplate || imageUrl || iconClass) && !(!iconClass && !imageUrl),\r\n 'cax-card-header-with-image': imageUrl && !iconClass,\r\n 'cax-card-header-with-icon': iconClass && !imageUrl\r\n\r\n }\" *ngIf=\"header || headerTemplate || iconClass || imageUrl || activeCard\">\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <i [class]=\"iconClass\" *ngIf=\"!imageUrl\"></i>\r\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"Card\" />\r\n <div *ngIf=\"activeCard\">\r\n <cax-badge\r\n [value]=\"badgeValue\"\r\n [severity]=\"badgeSeverity\">\r\n </cax-badge>\r\n </div>\r\n </div>\r\n <div class=\"cax-card-body\">\r\n <div class=\"cax-card-title\" *ngIf=\"header || titleTemplate\">\r\n {{ header }}\r\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\r\n {{ subheader }}\r\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-content\">\r\n <ng-content></ng-content>\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@layer cax{.cax-card-header{display:flex;align-items:center;position:relative;justify-content:space-between;padding:24px 24px 0}.cax-card-header-default-padding{padding:24px 24px 16px}.cax-card-no-header{padding:10px}.cax-card-header img{width:100%;height:180px;border-radius:12px;border:1px solid
|
|
82
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: Card, selector: "cax-card", inputs: { header: "header", activeCard: "activeCard", imageUrl: "imageUrl", badgeSeverity: "badgeSeverity", badgeValue: "badgeValue", iconClass: "iconClass", subheader: "subheader", style: "style", styleClass: "styleClass" }, host: { classAttribute: "cax-element" }, queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: CaxTemplate }], ngImport: i0, template: "<div [ngClass]=\"'cax-card cax-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\r\n <div [ngClass]=\"{\r\n 'cax-card-header': true,\r\n 'cax-card-header-no-padding': !header && !headerTemplate && !imageUrl && !iconClass && activeCard,\r\n 'cax-card-header-default-padding': (header || headerTemplate || imageUrl || iconClass) && !(!iconClass && !imageUrl),\r\n 'cax-card-header-with-image': imageUrl && !iconClass,\r\n 'cax-card-header-with-icon': iconClass && !imageUrl\r\n\r\n }\" *ngIf=\"header || headerTemplate || iconClass || imageUrl || activeCard\">\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <i [class]=\"iconClass\" *ngIf=\"!imageUrl\"></i>\r\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"Card\" />\r\n <div *ngIf=\"activeCard\">\r\n <cax-badge\r\n [value]=\"badgeValue\"\r\n [severity]=\"badgeSeverity\">\r\n </cax-badge>\r\n </div>\r\n </div>\r\n <div class=\"cax-card-body\">\r\n <div class=\"cax-card-title\" *ngIf=\"header || titleTemplate\">\r\n {{ header }}\r\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\r\n {{ subheader }}\r\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-content\">\r\n <ng-content></ng-content>\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@layer cax{.cax-card-header{display:flex;align-items:center;position:relative;justify-content:space-between;padding:24px 24px 0}.cax-card-header-default-padding{padding:24px 24px 16px}.cax-card-no-header{padding:10px}.cax-card-header img{width:100%;height:180px;border-radius:12px;border:1px solid var(--neutral-100)}.cax-card-header i{width:100%;font-size:48px;line-height:48px}.cax-card-header cax-badge{position:absolute;top:24px;right:36px;z-index:10}.cax-card-header cax-badge .cax-card-header-default-padding{padding:24px 24px 0}.cax-card-header-with-image cax-badge{right:36px;top:36px}.cax-card-header-with-icon cax-badge{right:26px;top:36px}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.Badge, selector: "cax-badge", inputs: ["styleClass", "style", "badgeSize", "severity", "value", "badgeDisabled", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
83
83
|
}
|
|
84
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: Card, decorators: [{
|
|
85
85
|
type: Component,
|
|
86
86
|
args: [{ selector: 'cax-card', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
87
87
|
class: 'cax-element'
|
|
88
|
-
}, template: "<div [ngClass]=\"'cax-card cax-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\r\n <div [ngClass]=\"{\r\n 'cax-card-header': true,\r\n 'cax-card-header-no-padding': !header && !headerTemplate && !imageUrl && !iconClass && activeCard,\r\n 'cax-card-header-default-padding': (header || headerTemplate || imageUrl || iconClass) && !(!iconClass && !imageUrl),\r\n 'cax-card-header-with-image': imageUrl && !iconClass,\r\n 'cax-card-header-with-icon': iconClass && !imageUrl\r\n\r\n }\" *ngIf=\"header || headerTemplate || iconClass || imageUrl || activeCard\">\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <i [class]=\"iconClass\" *ngIf=\"!imageUrl\"></i>\r\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"Card\" />\r\n <div *ngIf=\"activeCard\">\r\n <cax-badge\r\n [value]=\"badgeValue\"\r\n [severity]=\"badgeSeverity\">\r\n </cax-badge>\r\n </div>\r\n </div>\r\n <div class=\"cax-card-body\">\r\n <div class=\"cax-card-title\" *ngIf=\"header || titleTemplate\">\r\n {{ header }}\r\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\r\n {{ subheader }}\r\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-content\">\r\n <ng-content></ng-content>\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@layer cax{.cax-card-header{display:flex;align-items:center;position:relative;justify-content:space-between;padding:24px 24px 0}.cax-card-header-default-padding{padding:24px 24px 16px}.cax-card-no-header{padding:10px}.cax-card-header img{width:100%;height:180px;border-radius:12px;border:1px solid
|
|
88
|
+
}, template: "<div [ngClass]=\"'cax-card cax-component'\" [ngStyle]=\"_style()\" [class]=\"styleClass\" [attr.data-pc-name]=\"'card'\">\r\n <div [ngClass]=\"{\r\n 'cax-card-header': true,\r\n 'cax-card-header-no-padding': !header && !headerTemplate && !imageUrl && !iconClass && activeCard,\r\n 'cax-card-header-default-padding': (header || headerTemplate || imageUrl || iconClass) && !(!iconClass && !imageUrl),\r\n 'cax-card-header-with-image': imageUrl && !iconClass,\r\n 'cax-card-header-with-icon': iconClass && !imageUrl\r\n\r\n }\" *ngIf=\"header || headerTemplate || iconClass || imageUrl || activeCard\">\r\n <ng-content select=\"cax-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n <i [class]=\"iconClass\" *ngIf=\"!imageUrl\"></i>\r\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"Card\" />\r\n <div *ngIf=\"activeCard\">\r\n <cax-badge\r\n [value]=\"badgeValue\"\r\n [severity]=\"badgeSeverity\">\r\n </cax-badge>\r\n </div>\r\n </div>\r\n <div class=\"cax-card-body\">\r\n <div class=\"cax-card-title\" *ngIf=\"header || titleTemplate\">\r\n {{ header }}\r\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-subtitle\" *ngIf=\"subheader || subtitleTemplate\">\r\n {{ subheader }}\r\n <ng-container *ngTemplateOutlet=\"subtitleTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-content\">\r\n <ng-content></ng-content>\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </div>\r\n <div class=\"cax-card-footer\" *ngIf=\"footerFacet || footerTemplate\">\r\n <ng-content select=\"cax-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["@layer cax{.cax-card-header{display:flex;align-items:center;position:relative;justify-content:space-between;padding:24px 24px 0}.cax-card-header-default-padding{padding:24px 24px 16px}.cax-card-no-header{padding:10px}.cax-card-header img{width:100%;height:180px;border-radius:12px;border:1px solid var(--neutral-100)}.cax-card-header i{width:100%;font-size:48px;line-height:48px}.cax-card-header cax-badge{position:absolute;top:24px;right:36px;z-index:10}.cax-card-header cax-badge .cax-card-header-default-padding{padding:24px 24px 0}.cax-card-header-with-image cax-badge{right:36px;top:36px}.cax-card-header-with-icon cax-badge{right:26px;top:36px}}\n"] }]
|
|
89
89
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { header: [{
|
|
90
90
|
type: Input
|
|
91
91
|
}], activeCard: [{
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F4LWRlc2lnbi1zeXN0ZW0tY29tbWVudGJveC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9jb21tZW50Ym94L2NheC1kZXNpZ24tc3lzdGVtLWNvbW1lbnRib3gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|