@sarasanalytics-com/design-system 0.0.9 → 0.0.10
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/avatar-interface.mjs +2 -0
- package/esm2022/interfaces/button-interface.mjs +2 -0
- package/esm2022/interfaces/chip-interface.mjs +2 -0
- package/esm2022/interfaces/grid-interface.mjs +2 -0
- package/esm2022/interfaces/select-interface.mjs +2 -0
- package/esm2022/interfaces/tab-interface.mjs +2 -0
- package/esm2022/lib/avatar/avatar.component.mjs +56 -0
- package/esm2022/lib/button/button.component.mjs +84 -0
- package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
- package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
- package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
- package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
- package/esm2022/lib/card/card.component.mjs +53 -0
- package/esm2022/lib/chips/chips.component.mjs +62 -0
- package/esm2022/lib/component-library.component.mjs +19 -0
- package/esm2022/lib/component-library.service.mjs +14 -0
- package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
- package/esm2022/lib/form-input/form-input.component.mjs +152 -0
- package/esm2022/lib/form-select/form-select.component.mjs +59 -0
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
- package/esm2022/lib/header/header.component.mjs +37 -0
- package/esm2022/lib/icon/icon.component.mjs +50 -0
- package/esm2022/lib/icon/icon.service.mjs +29 -0
- package/esm2022/lib/left-nav/left-nav.component.mjs +117 -0
- package/esm2022/lib/stepper/stepper.component.mjs +64 -0
- package/esm2022/lib/tabs/tabs.component.mjs +38 -0
- package/esm2022/lib/toast/toast.component.mjs +100 -0
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
- package/esm2022/public-api.mjs +30 -0
- package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
- package/esm2022/utils/validators.mjs +70 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs +1274 -0
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/interfaces/avatar-interface.d.ts +6 -0
- package/interfaces/button-interface.d.ts +12 -0
- package/interfaces/chip-interface.d.ts +11 -0
- package/interfaces/grid-interface.d.ts +24 -0
- package/interfaces/select-interface.d.ts +20 -0
- package/interfaces/tab-interface.d.ts +6 -0
- package/lib/avatar/avatar.component.d.ts +18 -0
- package/lib/button/button.component.d.ts +26 -0
- package/lib/calendar-header/calendar-header.component.d.ts +31 -0
- package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
- package/lib/card/card-icon/card-icon.component.d.ts +5 -0
- package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
- package/lib/card/card.component.d.ts +17 -0
- package/lib/chips/chips.component.d.ts +22 -0
- package/lib/component-library.component.d.ts +5 -0
- package/lib/component-library.service.d.ts +6 -0
- package/lib/datepicker/datepicker.component.d.ts +9 -0
- package/lib/form-input/form-input.component.d.ts +62 -0
- package/lib/form-select/form-select.component.d.ts +17 -0
- package/lib/grid-cell/grid-cell.component.d.ts +20 -0
- package/lib/header/header.component.d.ts +14 -0
- package/lib/icon/icon.component.d.ts +16 -0
- package/lib/icon/icon.service.d.ts +11 -0
- package/lib/left-nav/left-nav.component.d.ts +38 -0
- package/lib/stepper/stepper.component.d.ts +17 -0
- package/lib/tabs/tabs.component.d.ts +15 -0
- package/lib/toast/toast.component.d.ts +33 -0
- package/lib/tool-tip/tool-tip.component.d.ts +15 -0
- package/package.json +15 -2
- package/{src/public-api.ts → public-api.d.ts} +1 -8
- package/utils/validators.d.ts +3 -0
- package/ng-package.json +0 -8
- package/src/interfaces/avatar-interface.ts +0 -6
- package/src/interfaces/button-interface.ts +0 -12
- package/src/interfaces/chip-interface.ts +0 -11
- package/src/interfaces/grid-interface.ts +0 -24
- package/src/interfaces/select-interface.ts +0 -20
- package/src/interfaces/tab-interface.ts +0 -6
- package/src/lib/avatar/avatar.component.css +0 -48
- package/src/lib/avatar/avatar.component.html +0 -5
- package/src/lib/avatar/avatar.component.spec.ts +0 -23
- package/src/lib/avatar/avatar.component.ts +0 -50
- package/src/lib/button/button.component.css +0 -145
- package/src/lib/button/button.component.html +0 -11
- package/src/lib/button/button.component.spec.ts +0 -23
- package/src/lib/button/button.component.ts +0 -68
- package/src/lib/calendar-header/calendar-header.component.css +0 -67
- package/src/lib/calendar-header/calendar-header.component.html +0 -20
- package/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
- package/src/lib/calendar-header/calendar-header.component.ts +0 -191
- package/src/lib/card/card-body/card-body.component.css +0 -0
- package/src/lib/card/card-body/card-body.component.html +0 -1
- package/src/lib/card/card-body/card-body.component.spec.ts +0 -23
- package/src/lib/card/card-body/card-body.component.ts +0 -12
- package/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
- package/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
- package/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
- package/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
- package/src/lib/card/card-icon/card-icon.component.css +0 -0
- package/src/lib/card/card-icon/card-icon.component.html +0 -1
- package/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
- package/src/lib/card/card-icon/card-icon.component.ts +0 -12
- package/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
- package/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
- package/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
- package/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
- package/src/lib/card/card.component.css +0 -84
- package/src/lib/card/card.component.html +0 -34
- package/src/lib/card/card.component.spec.ts +0 -23
- package/src/lib/card/card.component.ts +0 -33
- package/src/lib/chips/chips.component.css +0 -129
- package/src/lib/chips/chips.component.html +0 -17
- package/src/lib/chips/chips.component.spec.ts +0 -23
- package/src/lib/chips/chips.component.ts +0 -54
- package/src/lib/component-library.component.spec.ts +0 -23
- package/src/lib/component-library.component.ts +0 -16
- package/src/lib/component-library.service.spec.ts +0 -16
- package/src/lib/component-library.service.ts +0 -9
- package/src/lib/datepicker/datepicker.component.css +0 -33
- package/src/lib/datepicker/datepicker.component.html +0 -11
- package/src/lib/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/datepicker/datepicker.component.ts +0 -36
- package/src/lib/form-input/form-input.component.css +0 -109
- package/src/lib/form-input/form-input.component.html +0 -27
- package/src/lib/form-input/form-input.component.spec.ts +0 -23
- package/src/lib/form-input/form-input.component.ts +0 -196
- package/src/lib/form-select/form-select.component.css +0 -157
- package/src/lib/form-select/form-select.component.html +0 -38
- package/src/lib/form-select/form-select.component.spec.ts +0 -23
- package/src/lib/form-select/form-select.component.ts +0 -54
- package/src/lib/grid-cell/grid-cell.component.css +0 -78
- package/src/lib/grid-cell/grid-cell.component.html +0 -31
- package/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
- package/src/lib/grid-cell/grid-cell.component.ts +0 -89
- package/src/lib/header/header.component.css +0 -62
- package/src/lib/header/header.component.html +0 -23
- package/src/lib/header/header.component.spec.ts +0 -23
- package/src/lib/header/header.component.ts +0 -28
- package/src/lib/icon/icon.component.css +0 -21
- package/src/lib/icon/icon.component.html +0 -5
- package/src/lib/icon/icon.component.ts +0 -49
- package/src/lib/icon/icon.service.ts +0 -27
- package/src/lib/left-nav/left-nav.component.css +0 -106
- package/src/lib/left-nav/left-nav.component.html +0 -48
- package/src/lib/left-nav/left-nav.component.spec.ts +0 -23
- package/src/lib/left-nav/left-nav.component.ts +0 -146
- package/src/lib/stepper/stepper.component.css +0 -96
- package/src/lib/stepper/stepper.component.html +0 -14
- package/src/lib/stepper/stepper.component.spec.ts +0 -23
- package/src/lib/stepper/stepper.component.ts +0 -61
- package/src/lib/tabs/tabs.component.css +0 -100
- package/src/lib/tabs/tabs.component.html +0 -16
- package/src/lib/tabs/tabs.component.spec.ts +0 -23
- package/src/lib/tabs/tabs.component.ts +0 -37
- package/src/lib/toast/toast.component.css +0 -107
- package/src/lib/toast/toast.component.html +0 -29
- package/src/lib/toast/toast.component.spec.ts +0 -23
- package/src/lib/toast/toast.component.ts +0 -87
- package/src/lib/tool-tip/tool-tip.component.css +0 -139
- package/src/lib/tool-tip/tool-tip.component.html +0 -31
- package/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
- package/src/lib/tool-tip/tool-tip.component.ts +0 -37
- package/src/utils/validators.ts +0 -68
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormControl } from '@angular/forms';
|
|
3
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormInputComponent extends FieldType<FieldTypeConfig> {
|
|
6
|
+
formInput: ElementRef;
|
|
7
|
+
icon: IInputIcon;
|
|
8
|
+
inputState: string;
|
|
9
|
+
inputVal: string;
|
|
10
|
+
params: IInputParam | null;
|
|
11
|
+
dependent: AbstractControl<any, any> | null;
|
|
12
|
+
dependentVal: any;
|
|
13
|
+
type: string;
|
|
14
|
+
validators: any[];
|
|
15
|
+
asyncValidators: any[];
|
|
16
|
+
inputErrorText: string;
|
|
17
|
+
private suppressOnBlur;
|
|
18
|
+
constructor();
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
setValidators(): void;
|
|
21
|
+
setDependents(): void;
|
|
22
|
+
checkValidity(defaultInputState?: string): void;
|
|
23
|
+
onFocus(): void;
|
|
24
|
+
onBlur(): void;
|
|
25
|
+
onInput(event: any): void;
|
|
26
|
+
onInputFieldClick(event?: any): void;
|
|
27
|
+
inputIconClick(): void;
|
|
28
|
+
onFieldCallback(param: IInputParam): void;
|
|
29
|
+
predefinedValidators: any;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "sa-input", never, { "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
export interface IInputIcon {
|
|
34
|
+
name: string;
|
|
35
|
+
show?: boolean;
|
|
36
|
+
color?: string;
|
|
37
|
+
size?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IInputParam {
|
|
40
|
+
validators?: any[];
|
|
41
|
+
asyncValidators?: any[];
|
|
42
|
+
supportText?: string;
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
type?: string;
|
|
45
|
+
dependent?: string;
|
|
46
|
+
eventListener?: Function;
|
|
47
|
+
icon?: IInputIcon;
|
|
48
|
+
errors?: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface IInputEvent {
|
|
53
|
+
type: IInputEventType;
|
|
54
|
+
value: string;
|
|
55
|
+
callBack: any;
|
|
56
|
+
formControl: FormControl;
|
|
57
|
+
}
|
|
58
|
+
export declare enum IInputEventType {
|
|
59
|
+
INPUT_CHANGE = "INPUT_CHANGE",
|
|
60
|
+
STATE_CHANGE = "STATE_CHANGE",
|
|
61
|
+
ICON_CLICK = "ICON_CLICK"
|
|
62
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormSelectComponent extends FieldType<FieldTypeConfig> {
|
|
4
|
+
selectables: any;
|
|
5
|
+
params: any;
|
|
6
|
+
svgStyle: {};
|
|
7
|
+
openState: boolean;
|
|
8
|
+
topLabel: boolean;
|
|
9
|
+
startInd: number;
|
|
10
|
+
labelLimit: number;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
openClose(state: boolean): void;
|
|
13
|
+
shiftLabel(action: string): void;
|
|
14
|
+
checkForZero(selected: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "lib-form-select", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ICellRendererAngularComp, IHeaderAngularComp } from 'ag-grid-angular';
|
|
3
|
+
import { GridInterface } from '../../interfaces/grid-interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GridCellComponent implements ICellRendererAngularComp, IHeaderAngularComp {
|
|
6
|
+
params: GridInterface;
|
|
7
|
+
rowNum: number;
|
|
8
|
+
onClickButtonEvent: EventEmitter<any>;
|
|
9
|
+
onClickChipEvent: EventEmitter<any>;
|
|
10
|
+
onClickLinkEvent: EventEmitter<any>;
|
|
11
|
+
onClickAvatarEvent: EventEmitter<any>;
|
|
12
|
+
buttonClicked(evt: Event): void;
|
|
13
|
+
chipClicked(evt: Event): void;
|
|
14
|
+
linkClicked(): void;
|
|
15
|
+
avatarClicked(evt: Event): void;
|
|
16
|
+
agInit(inParams: any): void;
|
|
17
|
+
refresh(params: any): boolean;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridCellComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridCellComponent, "lib-grid-cell", never, {}, { "onClickButtonEvent": "onClickButtonEvent"; "onClickChipEvent": "onClickChipEvent"; "onClickLinkEvent": "onClickLinkEvent"; "onClickAvatarEvent": "onClickAvatarEvent"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HeaderComponent {
|
|
4
|
+
info: string[][];
|
|
5
|
+
headerName: string;
|
|
6
|
+
chipConfig: string[][];
|
|
7
|
+
buttonHelper: string;
|
|
8
|
+
buttonMain: string;
|
|
9
|
+
mainButtonClicked: EventEmitter<any>;
|
|
10
|
+
helperButtonClicked: EventEmitter<any>;
|
|
11
|
+
clicked(num: number): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "sa-header", never, { "info": { "alias": "info"; "required": false; }; "headerName": { "alias": "headerName"; "required": false; }; "chipConfig": { "alias": "chipConfig"; "required": false; }; "buttonHelper": { "alias": "buttonHelper"; "required": false; }; "buttonMain": { "alias": "buttonMain"; "required": false; }; }, { "mainButtonClicked": "mainButtonClicked"; "helperButtonClicked": "helperButtonClicked"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IconService } from './icon.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IconComponent {
|
|
5
|
+
iconService: IconService;
|
|
6
|
+
icon: string;
|
|
7
|
+
size: string;
|
|
8
|
+
color: string;
|
|
9
|
+
svgIcon: any;
|
|
10
|
+
iconStyles: any;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sa-icon", never, { "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconService {
|
|
4
|
+
private sanitizer;
|
|
5
|
+
private path;
|
|
6
|
+
constructor(sanitizer: DomSanitizer);
|
|
7
|
+
getSvg(iconName: string): SafeHtml;
|
|
8
|
+
setIconPath(path: string): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LeftNavComponent {
|
|
5
|
+
private route;
|
|
6
|
+
private router;
|
|
7
|
+
data: ILeftNav;
|
|
8
|
+
clickEvent: EventEmitter<ILeftNavClickEvent>;
|
|
9
|
+
private activeItem;
|
|
10
|
+
constructor(route: ActivatedRoute, router: Router);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
setItemActive(index: number): void;
|
|
13
|
+
onNavItemClick(item: ILeftNavItem, index: number, event?: any): void;
|
|
14
|
+
onFooterItemClick(item: ILeftNavItem, index: number, event?: any): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "sa-left-nav", never, { "data": { "alias": "data"; "required": false; }; }, { "clickEvent": "click"; }, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
18
|
+
export interface ILeftNav {
|
|
19
|
+
items?: ILeftNavItem[];
|
|
20
|
+
footerItems?: ILeftNavItem[];
|
|
21
|
+
}
|
|
22
|
+
export interface ILeftNavItem {
|
|
23
|
+
title: string;
|
|
24
|
+
icon?: string;
|
|
25
|
+
disable?: boolean;
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
relativePath?: boolean;
|
|
28
|
+
path?: string;
|
|
29
|
+
active?: boolean;
|
|
30
|
+
type?: 'ICON' | 'AVATAR';
|
|
31
|
+
}
|
|
32
|
+
export interface ILeftNavClickEvent {
|
|
33
|
+
type: 'NAV_ITEM_CLICK' | 'FOOTER_ITEM_CLICK' | 'LOGO_CLICK';
|
|
34
|
+
event: any;
|
|
35
|
+
item: ILeftNavItem;
|
|
36
|
+
}
|
|
37
|
+
export declare enum ILeftNavTypes {
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StepperComponent extends FieldType<FieldTypeConfig> {
|
|
5
|
+
latestStep: number;
|
|
6
|
+
editable: boolean;
|
|
7
|
+
stepLabels: any;
|
|
8
|
+
doneIcon: string;
|
|
9
|
+
stepped: EventEmitter<any>;
|
|
10
|
+
uuid: number;
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
tickIcon: {};
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
update(chosen: number): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "sa-stepper", never, { "latestStep": { "alias": "latestStep"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "stepLabels": { "alias": "stepLabels"; "required": false; }; "doneIcon": { "alias": "doneIcon"; "required": false; }; }, { "stepped": "stepped"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { TabInterface } from '../../interfaces/tab-interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabsComponent {
|
|
5
|
+
tabs: TabInterface[];
|
|
6
|
+
type: string;
|
|
7
|
+
defaultTab: number;
|
|
8
|
+
tabChanged: EventEmitter<any>;
|
|
9
|
+
uuid: number;
|
|
10
|
+
svgStyle: any;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
tabChange(evt: any): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "sa-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "type": { "alias": "type"; "required": false; }; "defaultTab": { "alias": "defaultTab"; "required": false; }; }, { "tabChanged": "tabChanged"; }, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToastComponent implements OnChanges {
|
|
4
|
+
finishPercentage: number;
|
|
5
|
+
heading: string;
|
|
6
|
+
subHeading: string;
|
|
7
|
+
statusIcon: string;
|
|
8
|
+
status: 'success' | 'failure' | 'caution' | 'positive' | 'negative' | 'tentative';
|
|
9
|
+
firstButtonName: string;
|
|
10
|
+
secondButtonName: string;
|
|
11
|
+
closable: boolean;
|
|
12
|
+
filled: boolean;
|
|
13
|
+
width: number | string;
|
|
14
|
+
toastEvent: EventEmitter<IToastEvent>;
|
|
15
|
+
firstButton: EventEmitter<any>;
|
|
16
|
+
secondButton: EventEmitter<any>;
|
|
17
|
+
closed: EventEmitter<any>;
|
|
18
|
+
toastStyles: {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
width: string;
|
|
22
|
+
};
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
clicked(num: number): void;
|
|
25
|
+
closeToast(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "sa-toast", never, { "finishPercentage": { "alias": "finishPercentage"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "subHeading": { "alias": "subHeading"; "required": false; }; "statusIcon": { "alias": "statusIcon"; "required": false; }; "status": { "alias": "status"; "required": false; }; "firstButtonName": { "alias": "firstButtonName"; "required": false; }; "secondButtonName": { "alias": "secondButtonName"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "filled": { "alias": "filled"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "toastEvent": "toastEvent"; "firstButton": "firstButton"; "secondButton": "secondButton"; "closed": "closed"; }, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
export interface IToastEvent {
|
|
30
|
+
type: 'TOAST_CLOSED' | 'ACTION_CLICKED';
|
|
31
|
+
event?: any;
|
|
32
|
+
params?: any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToolTipComponent {
|
|
4
|
+
messages: string[];
|
|
5
|
+
pointerPosition: string;
|
|
6
|
+
toolTipSkipped: EventEmitter<any>;
|
|
7
|
+
toolTipSeen: EventEmitter<any>;
|
|
8
|
+
arrowIcon: string;
|
|
9
|
+
pointer: string;
|
|
10
|
+
msgInd: number;
|
|
11
|
+
updateMsgInd(k: number): void;
|
|
12
|
+
skipToolTip(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolTipComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolTipComponent, "sa-tool-tip", never, { "messages": { "alias": "messages"; "required": false; }; "pointerPosition": { "alias": "pointerPosition"; "required": false; }; }, { "toolTipSkipped": "toolTipSkipped"; "toolTipSeen": "toolTipSeen"; }, never, never, true, never>;
|
|
15
|
+
}
|
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.10",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.2.0",
|
|
6
6
|
"@angular/core": "^17.2.0"
|
|
@@ -8,5 +8,18 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
|
-
"sideEffects": false
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/sarasanalytics-com-design-system.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/sarasanalytics-com-design-system.mjs",
|
|
21
|
+
"esm": "./esm2022/sarasanalytics-com-design-system.mjs",
|
|
22
|
+
"default": "./fesm2022/sarasanalytics-com-design-system.mjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
12
25
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of component-library
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
1
|
export * from './lib/component-library.service';
|
|
7
2
|
export * from './lib/component-library.component';
|
|
8
3
|
export * from './lib/button/button.component';
|
|
@@ -16,18 +11,16 @@ export * from './lib/stepper/stepper.component';
|
|
|
16
11
|
export * from './lib/tool-tip/tool-tip.component';
|
|
17
12
|
export * from './lib/datepicker/datepicker.component';
|
|
18
13
|
export * from './lib/tabs/tabs.component';
|
|
19
|
-
|
|
20
14
|
export * from './interfaces/grid-interface';
|
|
21
15
|
export * from './interfaces/avatar-interface';
|
|
22
16
|
export * from './interfaces/button-interface';
|
|
23
17
|
export * from './interfaces/chip-interface';
|
|
24
18
|
export * from './interfaces/select-interface';
|
|
25
19
|
export * from './interfaces/tab-interface';
|
|
26
|
-
|
|
27
20
|
export * from './lib/icon/icon.component';
|
|
28
21
|
export * from './lib/left-nav/left-nav.component';
|
|
29
22
|
export * from './lib/form-input/form-input.component';
|
|
30
23
|
export * from './lib/card/card.component';
|
|
31
24
|
export * from './lib/card/card-icon/card-icon.component';
|
|
32
25
|
export * from './lib/card/card-footer-actions/card-footer-actions.component';
|
|
33
|
-
export * from './lib/card/card-title-actions/card-title-actions.component';
|
|
26
|
+
export * from './lib/card/card-title-actions/card-title-actions.component';
|
package/ng-package.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ButtonInterface } from "./button-interface";
|
|
2
|
-
import { ChipInterface } from "./chip-interface";
|
|
3
|
-
import { AvatarInterface } from "./avatar-interface";
|
|
4
|
-
export interface GridInterface {
|
|
5
|
-
cellType: string,
|
|
6
|
-
viewText: boolean,
|
|
7
|
-
viewLeadingIcon: boolean,
|
|
8
|
-
viewTrailingIcon: boolean,
|
|
9
|
-
viewButton: boolean,
|
|
10
|
-
viewChip: boolean,
|
|
11
|
-
viewAvatar: boolean,
|
|
12
|
-
iconPath?: string,
|
|
13
|
-
chipConfig?: ChipInterface[],
|
|
14
|
-
buttonConfig?: ButtonInterface,
|
|
15
|
-
avatarConfig?: AvatarInterface,
|
|
16
|
-
text?: string | number,
|
|
17
|
-
subText?: string | number,
|
|
18
|
-
interactiveLink?: string,
|
|
19
|
-
interactiveLinkTarget?: string,
|
|
20
|
-
chipClicked?(evt: any): any,
|
|
21
|
-
linkClicked?(evt: any): any,
|
|
22
|
-
buttonClicked?(evt: any): any,
|
|
23
|
-
avatarClicked?(evt: any): any
|
|
24
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FormlyFieldProps } from "@ngx-formly/core"
|
|
2
|
-
interface SelectSubInterface {
|
|
3
|
-
label: string,
|
|
4
|
-
supportText: string,
|
|
5
|
-
dropIcon: string,
|
|
6
|
-
dropIconPosition: string,
|
|
7
|
-
multiple: boolean,
|
|
8
|
-
iconPath: string,
|
|
9
|
-
type: string,
|
|
10
|
-
text?: string,
|
|
11
|
-
state: string,
|
|
12
|
-
filling: string,
|
|
13
|
-
iconPosition: string,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface SelectInterface extends FormlyFieldProps {
|
|
17
|
-
options: any,
|
|
18
|
-
disabled: boolean,
|
|
19
|
-
params: SelectSubInterface
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.extra-small {
|
|
2
|
-
--width: var(--medium-24px);
|
|
3
|
-
--height: var(--medium-24px);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.small {
|
|
7
|
-
--width: 28px;
|
|
8
|
-
--height: 28px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.medium {
|
|
12
|
-
--width: 32px;
|
|
13
|
-
--height: 32px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.large {
|
|
17
|
-
--width: 36px;
|
|
18
|
-
--height: 36px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.extra-large {
|
|
22
|
-
--width: 40px;
|
|
23
|
-
--height: 40px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.avatar {
|
|
27
|
-
display: flex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.avatar-img {
|
|
31
|
-
background-color: var(--primary-50);
|
|
32
|
-
height: var(--height);
|
|
33
|
-
width: var(--width);
|
|
34
|
-
border-radius: var(--height);
|
|
35
|
-
object-fit: cover;
|
|
36
|
-
|
|
37
|
-
font-family: var(--font);
|
|
38
|
-
font-size: 11px;
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
line-height: var(--height);
|
|
41
|
-
letter-spacing: 0.5px;
|
|
42
|
-
text-align: center;
|
|
43
|
-
overflow: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.avatar:hover {
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<div class="avatar {{size}}" (click)="avatarClicked($event)" (mouseenter)="mouseEnter($event)"
|
|
2
|
-
(mouseleave)="mouseLeave($event)">
|
|
3
|
-
<img *ngIf="imagePath" class="avatar-img" alt="{{altText}}" src="{{imagePath}}">
|
|
4
|
-
<p *ngIf="!imagePath" class="avatar-img">{{altText}}</p>
|
|
5
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AvatarComponent } from './avatar.component';
|
|
4
|
-
|
|
5
|
-
describe('AvatarComponent', () => {
|
|
6
|
-
let component: AvatarComponent;
|
|
7
|
-
let fixture: ComponentFixture<AvatarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [AvatarComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(AvatarComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Input, Output } from '@angular/core';
|
|
3
|
-
import { NgIf } from '@angular/common';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'sa-avatar',
|
|
7
|
-
standalone: true,
|
|
8
|
-
imports: [NgIf],
|
|
9
|
-
templateUrl: './avatar.component.html',
|
|
10
|
-
styleUrl: './avatar.component.css'
|
|
11
|
-
})
|
|
12
|
-
export class AvatarComponent {
|
|
13
|
-
@Input() id: string | number;
|
|
14
|
-
@Input() imagePath: string;
|
|
15
|
-
@Input() altText: string;
|
|
16
|
-
@Input() size: string;
|
|
17
|
-
|
|
18
|
-
@Output() onClickEvent = new EventEmitter
|
|
19
|
-
@Output() onMouseInEvent = new EventEmitter
|
|
20
|
-
@Output() onMouseOutEvent = new EventEmitter
|
|
21
|
-
|
|
22
|
-
eventEmitObject = {}
|
|
23
|
-
|
|
24
|
-
ngOnChanges(): void {
|
|
25
|
-
this.eventEmitObject = {
|
|
26
|
-
id: this.id
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
avatarClicked(evt: Event) {
|
|
31
|
-
this.onClickEvent.emit({
|
|
32
|
-
...this.eventEmitObject,
|
|
33
|
-
evt
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
mouseEnter(evt: Event) {
|
|
38
|
-
this.onMouseInEvent.emit({
|
|
39
|
-
...this.eventEmitObject,
|
|
40
|
-
evt
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
mouseLeave(evt: Event) {
|
|
45
|
-
this.onMouseOutEvent.emit({
|
|
46
|
-
...this.eventEmitObject,
|
|
47
|
-
evt
|
|
48
|
-
})
|
|
49
|
-
}
|
|
50
|
-
}
|