@sarasanalytics-com/design-system 0.0.190 → 0.0.192
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/lib/dialog/dialog.component.mjs +2 -2
- package/esm2022/lib/dropdown/ng-select/ng-select.component.mjs +76 -13
- package/esm2022/lib/message-banner-v2/message-banner-v2.component.mjs +20 -3
- package/fesm2022/sarasanalytics-com-design-system.mjs +95 -16
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -1
- package/lib/dropdown/ng-select/ng-select.component.d.ts +27 -2
- package/lib/message-banner-v2/message-banner-v2.component.d.ts +9 -1
- package/package.json +1 -1
- package/styles/styles.css +1 -0
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
import { DoCheck } from '@angular/core';
|
|
1
|
+
import { DoCheck, OnInit } from '@angular/core';
|
|
2
2
|
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgSelectComponent extends FieldType<FieldTypeConfig<any>> implements DoCheck {
|
|
4
|
+
export declare class NgSelectComponent extends FieldType<FieldTypeConfig<any>> implements DoCheck, OnInit {
|
|
5
5
|
filteredOptions: any[];
|
|
6
6
|
searchValue: string;
|
|
7
7
|
private _options;
|
|
8
|
+
/**
|
|
9
|
+
* Tracks whether the dropdown panel is currently open.
|
|
10
|
+
* Used to disable tooltips on selected values when the panel is open to prevent UI overlap.
|
|
11
|
+
*/
|
|
8
12
|
isDropdownOpen: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Character threshold for showing tooltips on dropdown options.
|
|
15
|
+
* Tooltips appear when option label length exceeds this value.
|
|
16
|
+
* Configurable via props.optionLabelSize (default: 30)
|
|
17
|
+
*/
|
|
18
|
+
optionLabelSize: number;
|
|
19
|
+
/**
|
|
20
|
+
* Character threshold for showing tooltips on selected values and chips.
|
|
21
|
+
* Tooltips appear when selected label length exceeds this value.
|
|
22
|
+
* Configurable via props.selectedLabelSize (default: 30)
|
|
23
|
+
*/
|
|
24
|
+
selectedLabelSize: number;
|
|
25
|
+
/** Tooltip position for selected values and chips (default: 'above') */
|
|
26
|
+
selectedTooltipPosition: 'above' | 'below' | 'left' | 'right';
|
|
27
|
+
/** Tooltip position for dropdown options (default: 'right') */
|
|
28
|
+
optionTooltipPosition: 'above' | 'below' | 'left' | 'right';
|
|
9
29
|
onSearch(event: Event): void;
|
|
10
30
|
ngOnInit(): void;
|
|
11
31
|
ngDoCheck(): void;
|
|
@@ -16,6 +36,11 @@ export declare class NgSelectComponent extends FieldType<FieldTypeConfig<any>> i
|
|
|
16
36
|
toggleSummary(): void;
|
|
17
37
|
stopBackspacePropagation(event: KeyboardEvent): void;
|
|
18
38
|
clearSearch(event: Event): void;
|
|
39
|
+
/**
|
|
40
|
+
* Helper method to safely convert a value to string for tooltip length checks.
|
|
41
|
+
* Handles null, undefined, and primitive values gracefully.
|
|
42
|
+
*/
|
|
43
|
+
toSafeString(value: any): string;
|
|
19
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectComponent, never>;
|
|
20
45
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgSelectComponent, "sa-ng-select", never, {}, {}, never, never, true, never>;
|
|
21
46
|
}
|
|
@@ -31,6 +31,7 @@ export declare class MessageBannerV2Component implements OnChanges {
|
|
|
31
31
|
banner: any;
|
|
32
32
|
formConfig: UnifiedFormConfig | null;
|
|
33
33
|
prebuiltFormFields: TemplateRef<any>;
|
|
34
|
+
onContactUsClick: EventEmitter<void>;
|
|
34
35
|
form: FormGroup<{}>;
|
|
35
36
|
model: any;
|
|
36
37
|
fields: FormlyFieldConfig[];
|
|
@@ -77,8 +78,15 @@ export declare class MessageBannerV2Component implements OnChanges {
|
|
|
77
78
|
private updateAdditionalFields;
|
|
78
79
|
private evaluateShowWhen;
|
|
79
80
|
onFormModelChange(model: any): void;
|
|
81
|
+
/**
|
|
82
|
+
* Handles click events on the description area, specifically for custom contact links.
|
|
83
|
+
* If a custom contact link is clicked and there's an observer for onContactUsClick,
|
|
84
|
+
* it prevents the default navigation and emits the custom event instead.
|
|
85
|
+
* @param event - The mouse click event from the description area
|
|
86
|
+
*/
|
|
87
|
+
handleDescriptionClick(event: MouseEvent): void;
|
|
80
88
|
getInitialFields(): FormFieldConfig[];
|
|
81
89
|
areAllVisibleFieldsFilled(): boolean;
|
|
82
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageBannerV2Component, never>;
|
|
83
|
-
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; }; "prebuiltFormFields": { "alias": "prebuiltFormFields"; "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>;
|
|
91
|
+
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; }; "prebuiltFormFields": { "alias": "prebuiltFormFields"; "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; }; }, { "onContactUsClick": "onContactUsClick"; "onFormEvent": "onFormEvent"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
84
92
|
}
|
package/package.json
CHANGED