@sarasanalytics-com/design-system 0.0.19 → 0.0.21
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/interfaces/card-carousel-interface.mjs +2 -0
- package/esm2022/interfaces/guide-card-interface.mjs +2 -0
- package/esm2022/interfaces/option-interface.mjs +2 -0
- package/esm2022/interfaces/toast-interface.mjs +2 -0
- package/esm2022/lib/avatar/avatar.component.mjs +2 -2
- package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
- package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
- package/esm2022/lib/card/card.component.mjs +27 -3
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
- package/esm2022/lib/form-input/form-input.component.mjs +9 -6
- package/esm2022/lib/icon/icon.component.mjs +7 -3
- package/esm2022/lib/left-nav/left-nav.component.mjs +5 -5
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
- package/esm2022/lib/radio-button/radio-button.component.mjs +37 -0
- package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
- package/esm2022/lib/toast/toast.component.mjs +9 -9
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +3 -3
- package/esm2022/public-api.mjs +34 -16
- package/esm2022/utils/validators.mjs +19 -3
- package/fesm2022/sarasanalytics-com-design-system.mjs +1122 -845
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -1
- package/interfaces/card-carousel-interface.d.ts +8 -0
- package/interfaces/guide-card-interface.d.ts +4 -0
- package/interfaces/option-interface.d.ts +4 -0
- package/interfaces/toast-interface.d.ts +12 -0
- package/lib/card/card-body/card-body.component.d.ts +5 -0
- package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
- package/lib/card/card.component.d.ts +7 -1
- package/lib/card/guide-card/guide-card.component.d.ts +8 -0
- package/lib/card-carousel/card-carousel.component.d.ts +27 -0
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/progress-bar/progress-bar.component.d.ts +13 -0
- package/lib/radio-button/radio-button.component.d.ts +14 -0
- package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
- package/package.json +2 -2
- package/public-api.d.ts +29 -15
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IToast {
|
|
2
|
+
finishPercentage?: number;
|
|
3
|
+
heading?: string;
|
|
4
|
+
subHeading?: string;
|
|
5
|
+
statusIcon?: string;
|
|
6
|
+
status?: 'success' | 'failure' | 'caution' | 'positive' | 'negative' | 'tentative';
|
|
7
|
+
firstButtonName?: string;
|
|
8
|
+
secondButtonName?: string;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
filled?: boolean;
|
|
11
|
+
width?: number | string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardCustomHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardCustomHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardCustomHeaderComponent, "sa-card-title-header", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -3,15 +3,21 @@ import { ChipInterface } from '../../interfaces/chip-interface';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CardComponent {
|
|
5
5
|
title: string;
|
|
6
|
+
showCardHeader: boolean;
|
|
7
|
+
showCardBody: boolean;
|
|
8
|
+
customWrapperClass: string;
|
|
6
9
|
chip: ChipInterface | null;
|
|
7
10
|
body: string;
|
|
8
11
|
avatar: string;
|
|
12
|
+
avatarSize: string;
|
|
9
13
|
icon: string;
|
|
10
14
|
iconSize: string;
|
|
15
|
+
subtitle: string;
|
|
16
|
+
logoIcon: string;
|
|
11
17
|
width: string | number;
|
|
12
18
|
column: boolean;
|
|
13
19
|
cardStyles: any;
|
|
14
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "sa-card", never, { "title": { "alias": "title"; "required": false; }; "chip": { "alias": "chip"; "required": false; }; "body": { "alias": "body"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "width": { "alias": "width"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, ["sa-card-icon", "sa-card-title-actions", "sa-card-title-actions", "sa-card-footer-actions"], true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "sa-card", never, { "title": { "alias": "title"; "required": false; }; "showCardHeader": { "alias": "showCardHeader"; "required": false; }; "showCardBody": { "alias": "showCardBody"; "required": false; }; "customWrapperClass": { "alias": "customWrapperClass"; "required": false; }; "chip": { "alias": "chip"; "required": false; }; "body": { "alias": "body"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "avatarSize": { "alias": "avatarSize"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "logoIcon": { "alias": "logoIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, ["sa-card-icon", "sa-card-title-actions", "sa-card-title-header", "sa-card-title-actions", "sa-card-footer-actions"], true, never>;
|
|
17
23
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GuideStep } from '../../../interfaces/guide-card-interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GuideCardComponent {
|
|
4
|
+
title: string;
|
|
5
|
+
steps: GuideStep[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuideCardComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuideCardComponent, "sa-guide-card", never, { "title": { "alias": "title"; "required": false; }; "steps": { "alias": "steps"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CardCarousel } from '../../interfaces/card-carousel-interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CardCarouselComponent implements OnInit, OnDestroy {
|
|
5
|
+
cards: CardCarousel[];
|
|
6
|
+
interval: number;
|
|
7
|
+
autoPlay: boolean;
|
|
8
|
+
showNavigationArrows: boolean;
|
|
9
|
+
showIndicators: boolean;
|
|
10
|
+
showBrandFooter: boolean;
|
|
11
|
+
visibleLogos: (CardCarousel & {
|
|
12
|
+
index: number;
|
|
13
|
+
})[];
|
|
14
|
+
currentIndex: number;
|
|
15
|
+
private timer;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
startTimer(): void;
|
|
19
|
+
stopTimer(): void;
|
|
20
|
+
resetTimer(): void;
|
|
21
|
+
selectCard(index: number): void;
|
|
22
|
+
next(): void;
|
|
23
|
+
prev(): void;
|
|
24
|
+
updateVisibleLogos(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardCarouselComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardCarouselComponent, "sa-card-carousel", never, { "cards": { "alias": "cards"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "autoPlay": { "alias": "autoPlay"; "required": false; }; "showNavigationArrows": { "alias": "showNavigationArrows"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "showBrandFooter": { "alias": "showBrandFooter"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -11,11 +11,12 @@ export declare class IconComponent {
|
|
|
11
11
|
color: string;
|
|
12
12
|
iconPath: string;
|
|
13
13
|
iconUrl: string;
|
|
14
|
+
customClass: string;
|
|
14
15
|
svgIcon: any;
|
|
15
16
|
iconStyles: any;
|
|
16
17
|
constructor();
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sa-icon", never, { "img": { "alias": "img"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "iconPath": { "alias": "iconPath"; "required": false; }; "iconUrl": { "alias": "iconUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sa-icon", never, { "img": { "alias": "img"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; "iconPath": { "alias": "iconPath"; "required": false; }; "iconUrl": { "alias": "iconUrl"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
22
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProgressBarComponent implements OnInit {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
progressValue: number;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
height: string;
|
|
9
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "lib-progress-bar", never, { "progressValue": { "alias": "progressValue"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatRadioButton } from '@angular/material/radio';
|
|
3
|
+
import { OptionInterface } from '../../interfaces/option-interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RadioButtonComponent {
|
|
6
|
+
options: OptionInterface[];
|
|
7
|
+
selectedValue: OptionInterface | null;
|
|
8
|
+
column: boolean;
|
|
9
|
+
selectedValueChange: EventEmitter<any>;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
selectOption(radioButton: MatRadioButton, value: OptionInterface): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "sa-radio-button", never, { "options": { "alias": "options"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit, AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
interface CardData {
|
|
4
|
+
title: string;
|
|
5
|
+
body: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
iconSize?: string;
|
|
8
|
+
customWrapperClass?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
column?: string;
|
|
11
|
+
showCardBody?: boolean;
|
|
12
|
+
showCardHeader?: boolean;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
logoIcon?: string;
|
|
15
|
+
avatar?: string;
|
|
16
|
+
avatarIcon?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class ScrollingCardsComponent implements OnInit, AfterViewInit {
|
|
19
|
+
private cdr;
|
|
20
|
+
cards: CardData[];
|
|
21
|
+
duration: number;
|
|
22
|
+
direction: 'up' | 'down' | 'left' | 'right';
|
|
23
|
+
cardContainer: ElementRef;
|
|
24
|
+
displayCards: CardData[];
|
|
25
|
+
animationPaused: boolean;
|
|
26
|
+
isVertical: boolean;
|
|
27
|
+
constructor(cdr: ChangeDetectorRef);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
30
|
+
setAnimationProperties(): void;
|
|
31
|
+
pauseScroll(): void;
|
|
32
|
+
resumeScroll(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingCardsComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollingCardsComponent, "sa-scrolling-cards", never, { "cards": { "alias": "cards"; "required": true; }; "duration": { "alias": "duration"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarasanalytics-com/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.2.0",
|
|
6
6
|
"@angular/core": "^17.2.0"
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"default": "./fesm2022/sarasanalytics-com-design-system.mjs"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -1,26 +1,40 @@
|
|
|
1
|
-
export * from './lib/component
|
|
2
|
-
export * from './lib/component-library.component';
|
|
1
|
+
export * from './lib/avatar/avatar.component';
|
|
3
2
|
export * from './lib/button/button.component';
|
|
3
|
+
export * from './lib/calendar-header/calendar-header.component';
|
|
4
|
+
export * from './lib/card/card-body/card-body.component';
|
|
5
|
+
export * from './lib/card/card-custom-header/card-custom-header.component';
|
|
6
|
+
export * from './lib/card/card-footer-actions/card-footer-actions.component';
|
|
7
|
+
export * from './lib/card/card-icon/card-icon.component';
|
|
8
|
+
export * from './lib/card/card-title-actions/card-title-actions.component';
|
|
9
|
+
export * from './lib/card/card.component';
|
|
10
|
+
export * from './lib/card/guide-card/guide-card.component';
|
|
11
|
+
export * from './lib/card-carousel/card-carousel.component';
|
|
4
12
|
export * from './lib/chips/chips.component';
|
|
5
|
-
export * from './lib/
|
|
13
|
+
export * from './lib/component-library.component';
|
|
14
|
+
export * from './lib/datepicker/datepicker.component';
|
|
15
|
+
export * from './lib/form-input/form-input.component';
|
|
16
|
+
export * from './lib/form-select/form-select.component';
|
|
6
17
|
export * from './lib/grid-cell/grid-cell.component';
|
|
7
18
|
export * from './lib/header/header.component';
|
|
8
|
-
export * from './lib/
|
|
9
|
-
export * from './lib/
|
|
19
|
+
export * from './lib/icon/icon.component';
|
|
20
|
+
export * from './lib/left-nav/left-nav.component';
|
|
21
|
+
export * from './lib/progress-bar/progress-bar.component';
|
|
22
|
+
export * from './lib/radio-button/radio-button.component';
|
|
23
|
+
export * from './lib/scrolling-cards/scrolling-cards.component';
|
|
24
|
+
export * from './lib/spinner/spinner.component';
|
|
10
25
|
export * from './lib/stepper/stepper.component';
|
|
11
|
-
export * from './lib/tool-tip/tool-tip.component';
|
|
12
|
-
export * from './lib/datepicker/datepicker.component';
|
|
13
26
|
export * from './lib/tabs/tabs.component';
|
|
14
|
-
export * from './
|
|
27
|
+
export * from './lib/toast/toast.component';
|
|
28
|
+
export * from './lib/tool-tip/tool-tip.component';
|
|
29
|
+
export * from './lib/component-library.service';
|
|
30
|
+
export * from './lib/icon/icon.service';
|
|
15
31
|
export * from './interfaces/avatar-interface';
|
|
16
32
|
export * from './interfaces/button-interface';
|
|
33
|
+
export * from './interfaces/card-carousel-interface';
|
|
17
34
|
export * from './interfaces/chip-interface';
|
|
35
|
+
export * from './interfaces/grid-interface';
|
|
36
|
+
export * from './interfaces/guide-card-interface';
|
|
37
|
+
export * from './interfaces/option-interface';
|
|
18
38
|
export * from './interfaces/select-interface';
|
|
19
39
|
export * from './interfaces/tab-interface';
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './lib/left-nav/left-nav.component';
|
|
22
|
-
export * from './lib/form-input/form-input.component';
|
|
23
|
-
export * from './lib/card/card.component';
|
|
24
|
-
export * from './lib/card/card-icon/card-icon.component';
|
|
25
|
-
export * from './lib/card/card-footer-actions/card-footer-actions.component';
|
|
26
|
-
export * from './lib/card/card-title-actions/card-title-actions.component';
|
|
40
|
+
export * from './interfaces/toast-interface';
|