@sarasanalytics-com/design-system 0.0.138 → 0.0.140
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/form-layout.interface.mjs +1 -1
- package/esm2022/interfaces/icon-interface.mjs +1 -1
- package/esm2022/lib/accordion/accordion.component.mjs +2 -2
- package/esm2022/lib/button/button.component.mjs +1 -1
- package/esm2022/lib/card/card.component.mjs +2 -2
- package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +2 -2
- package/esm2022/lib/card/guide-card/guide-card.component.mjs +1 -1
- package/esm2022/lib/card/menu-card/menu-card.component.mjs +2 -2
- package/esm2022/lib/card-carousel/card-carousel.component.mjs +2 -2
- package/esm2022/lib/categories-nav/categories-nav.component.mjs +22 -5
- package/esm2022/lib/data-grid/data-grid.component.mjs +24 -3
- package/esm2022/lib/dialog/dialog.component.mjs +3 -3
- package/esm2022/lib/filter/filter.component.mjs +2 -2
- package/esm2022/lib/form-input/form-input.component.mjs +13 -3
- package/esm2022/lib/form-select/form-select.component.mjs +3 -3
- package/esm2022/lib/grid-cell/grid-cell.component.mjs +8 -3
- package/esm2022/lib/header/header.component.mjs +3 -3
- package/esm2022/lib/icon/icon.component.mjs +4 -2
- package/esm2022/lib/layout-section/layout-section.component.mjs +2 -2
- package/esm2022/lib/left-nav/left-nav.component.mjs +2 -2
- package/esm2022/lib/list/list.component.mjs +2 -2
- package/esm2022/lib/menu/menu-list/menu-item.component.mjs +2 -2
- package/esm2022/lib/menu/menu.component.mjs +2 -2
- package/esm2022/lib/message-banner/message-banner.component.mjs +2 -2
- package/esm2022/lib/message-banner-v2/message-banner-v2.component.mjs +46 -29
- package/esm2022/lib/mini-card/mini-card.component.mjs +2 -2
- package/esm2022/lib/query-builder/query-builder.component.mjs +6 -5
- package/esm2022/lib/toast/toast.component.mjs +1 -1
- package/esm2022/lib/tool-tip/tool-tip.component.mjs +3 -3
- package/fesm2022/sarasanalytics-com-design-system.mjs +138 -67
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -1
- package/interfaces/form-layout.interface.d.ts +2 -7
- package/interfaces/icon-interface.d.ts +1 -0
- package/lib/categories-nav/categories-nav.component.d.ts +36 -3
- package/lib/data-grid/data-grid.component.d.ts +6 -1
- package/lib/form-input/form-input.component.d.ts +3 -0
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/message-banner-v2/message-banner-v2.component.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ButtonInterface } from "./button-interface";
|
|
1
2
|
export interface FormLayoutConfig {
|
|
2
3
|
fieldsPerRow?: number;
|
|
3
4
|
initialVisibleFields?: number;
|
|
@@ -49,11 +50,5 @@ export interface UnifiedFormConfig {
|
|
|
49
50
|
showSubtitleWhenEmpty?: boolean;
|
|
50
51
|
};
|
|
51
52
|
chips?: any[];
|
|
52
|
-
customButton?:
|
|
53
|
-
id: string;
|
|
54
|
-
text: string;
|
|
55
|
-
type: 'primary' | 'secondary';
|
|
56
|
-
size: 'small' | 'medium' | 'large';
|
|
57
|
-
state: 'default' | 'loading' | 'disabled';
|
|
58
|
-
};
|
|
53
|
+
customButton?: ButtonInterface[];
|
|
59
54
|
}
|
|
@@ -1,15 +1,48 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { IconName } from '../../interfaces/icon-interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface CategoryItem {
|
|
4
5
|
id: string;
|
|
5
6
|
label: string;
|
|
6
|
-
icon?: string;
|
|
7
|
+
icon?: IconName | string;
|
|
7
8
|
}
|
|
8
|
-
export
|
|
9
|
+
export interface HelpButtonConfig {
|
|
10
|
+
id?: string | number;
|
|
11
|
+
type?: string;
|
|
12
|
+
state?: string;
|
|
13
|
+
size?: string;
|
|
14
|
+
text?: string | number;
|
|
15
|
+
ImagePath?: string;
|
|
16
|
+
icon?: IconName | string;
|
|
17
|
+
iconPosition?: string;
|
|
18
|
+
href?: string;
|
|
19
|
+
hrefTarget?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
isSubmit?: boolean;
|
|
22
|
+
buttonIconSize?: string;
|
|
23
|
+
showSpinner?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface HelpSectionConfig {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
icon?: IconName | string;
|
|
28
|
+
title?: string;
|
|
29
|
+
button?: HelpButtonConfig;
|
|
30
|
+
}
|
|
31
|
+
export interface CategoriesNavConfig {
|
|
32
|
+
title?: string;
|
|
9
33
|
categories: CategoryItem[];
|
|
34
|
+
helpSection?: HelpSectionConfig;
|
|
35
|
+
}
|
|
36
|
+
export declare class CategoriesNavComponent {
|
|
37
|
+
config: CategoriesNavConfig;
|
|
10
38
|
selectedCategoryId: string;
|
|
11
39
|
categorySelected: EventEmitter<CategoryItem>;
|
|
40
|
+
helpButtonClicked: EventEmitter<void>;
|
|
41
|
+
get categories(): CategoryItem[];
|
|
42
|
+
get title(): string;
|
|
43
|
+
get helpSection(): HelpSectionConfig | undefined;
|
|
12
44
|
onCategoryClick(category: CategoryItem): void;
|
|
45
|
+
onHelpButtonClick(): void;
|
|
13
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<CategoriesNavComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CategoriesNavComponent, "sa-categories-nav", never, { "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CategoriesNavComponent, "sa-categories-nav", never, { "config": { "alias": "config"; "required": false; }; "selectedCategoryId": { "alias": "selectedCategoryId"; "required": false; }; }, { "categorySelected": "categorySelected"; "helpButtonClicked": "helpButtonClicked"; }, never, never, true, never>;
|
|
15
48
|
}
|
|
@@ -6,6 +6,11 @@ export declare class DataGridComponent {
|
|
|
6
6
|
columnDefs: ColDef[];
|
|
7
7
|
rowData: any[];
|
|
8
8
|
defaultColDef: ColDef;
|
|
9
|
+
pagination: boolean;
|
|
10
|
+
paginationPageSize: number;
|
|
11
|
+
paginationPageSizeSelector: number[];
|
|
12
|
+
gridHeight: number;
|
|
13
|
+
localeText: any;
|
|
9
14
|
private gridApi;
|
|
10
15
|
onGridReady(params: GridReadyEvent): void;
|
|
11
16
|
static updateCellContent(gridApi: GridApi, rowIndex: number, field: string, newParams: Partial<GridInterface>): void;
|
|
@@ -29,5 +34,5 @@ export declare class DataGridComponent {
|
|
|
29
34
|
}>;
|
|
30
35
|
}): GridInterface;
|
|
31
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "sa-data-grid", never, { "columnDefs": { "alias": "columnDefs"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; }; }, {}, never, never, true, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "sa-data-grid", never, { "columnDefs": { "alias": "columnDefs"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; }; "paginationPageSizeSelector": { "alias": "paginationPageSizeSelector"; "required": false; }; "gridHeight": { "alias": "gridHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
38
|
}
|
|
@@ -20,6 +20,8 @@ export declare class FormInputComponent extends FieldType<FieldTypeConfig> {
|
|
|
20
20
|
chipValues: any[];
|
|
21
21
|
isMultiValue: boolean;
|
|
22
22
|
currentInputValue: string;
|
|
23
|
+
startInd: number;
|
|
24
|
+
labelLimit: number;
|
|
23
25
|
private suppressOnBlur;
|
|
24
26
|
constructor();
|
|
25
27
|
ngOnInit(): void;
|
|
@@ -41,6 +43,7 @@ export declare class FormInputComponent extends FieldType<FieldTypeConfig> {
|
|
|
41
43
|
getFormSupportText(): string;
|
|
42
44
|
predefinedValidators: any;
|
|
43
45
|
getLabelFieldGap(): string;
|
|
46
|
+
shiftLabel(action: 'clicked' | 'cleared'): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, never>;
|
|
45
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "sa-input", never, { "icon": { "alias": "icon"; "required": false; }; "params": { "alias": "params"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
49
|
}
|
|
@@ -16,6 +16,7 @@ export declare class IconComponent {
|
|
|
16
16
|
customClass: string;
|
|
17
17
|
href: string;
|
|
18
18
|
hrefTarget: string;
|
|
19
|
+
iconPosition: string;
|
|
19
20
|
onClickEvent: EventEmitter<any>;
|
|
20
21
|
svgIcon: any;
|
|
21
22
|
eventEmitObject: {};
|
|
@@ -25,5 +26,5 @@ export declare class IconComponent {
|
|
|
25
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
27
|
iconClicked(evt: Event): void;
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
28
|
-
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; }; "href": { "alias": "href"; "required": false; }; "hrefTarget": { "alias": "hrefTarget"; "required": false; }; }, { "onClickEvent": "onClickEvent"; }, never, never, true, never>;
|
|
29
|
+
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; }; "href": { "alias": "href"; "required": false; }; "hrefTarget": { "alias": "hrefTarget"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; }, { "onClickEvent": "onClickEvent"; }, never, never, true, never>;
|
|
29
30
|
}
|
|
@@ -32,6 +32,8 @@ export declare class MessageBannerV2Component implements OnChanges {
|
|
|
32
32
|
form: FormGroup<{}>;
|
|
33
33
|
model: any;
|
|
34
34
|
fields: FormlyFieldConfig[];
|
|
35
|
+
allFieldsFilled: import("@angular/core").WritableSignal<boolean>;
|
|
36
|
+
additionalFieldRows: FormFieldConfig[][];
|
|
35
37
|
get activeFormInputs(): any[];
|
|
36
38
|
get activeChips(): any[];
|
|
37
39
|
get activeCustomFormButton(): any;
|
|
@@ -62,13 +64,14 @@ export declare class MessageBannerV2Component implements OnChanges {
|
|
|
62
64
|
isEmptyObject(obj: any): boolean;
|
|
63
65
|
private updateFormlyFields;
|
|
64
66
|
onFormModelChange(model: any): void;
|
|
65
|
-
shouldShowAdditionalFields(): boolean;
|
|
66
67
|
getInitialFields(): FormFieldConfig[];
|
|
67
68
|
getAdditionalFields(): FormFieldConfig[];
|
|
68
|
-
getInitialFieldIndex(localIndex: number): number;
|
|
69
|
-
getAdditionalFieldIndex(localIndex: number): number;
|
|
70
69
|
getAdditionalFieldClass(localIndex: number): string;
|
|
71
70
|
areAllVisibleFieldsFilled(): boolean;
|
|
71
|
+
getAdditionalFieldRows(): FormFieldConfig[][];
|
|
72
|
+
protected initialFieldRows: import("@angular/core").Signal<FormFieldConfig[][]>;
|
|
73
|
+
getInitialFieldRowIndex(rowIndex: number, fieldIndex: number): number;
|
|
74
|
+
getAdditionalFieldRowIndex(rowIndex: number, fieldIndex: number): number;
|
|
72
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageBannerV2Component, never>;
|
|
73
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<MessageBannerV2Component, "sa-message-banner-v2", never, { "messageType": { "alias": "messageType"; "required": false; }; "contactUrl": { "alias": "contactUrl"; "required": false; }; "spacingBetweenImageAndDescription": { "alias": "spacingBetweenImageAndDescription"; "required": false; }; "contentGap": { "alias": "contentGap"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; "descriptionClass": { "alias": "descriptionClass"; "required": false; }; "banner": { "alias": "banner"; "required": false; }; "formConfig": { "alias": "formConfig"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageIconSize": { "alias": "messageIconSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "onFormEvent": "onFormEvent"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
74
77
|
}
|