@sarasanalytics-com/design-system 0.0.143 → 0.0.144

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.
@@ -32,6 +32,7 @@ export declare class DialogComponent {
32
32
  }): void;
33
33
  onFormInputChange(event: any): void;
34
34
  onRemoveUser(chip: any): void;
35
+ resetForm(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, [{ optional: true; }, { optional: true; }]>;
36
37
  static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "sa-dialog", never, { "dialogData": { "alias": "dialogData"; "required": false; }; }, { "dialogButtonClick": "dialogButtonClick"; }, never, never, true, never>;
37
38
  }
@@ -1,11 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, ElementRef } from '@angular/core';
2
2
  import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import { NgSelectComponent } from '@ng-select/ng-select';
3
4
  import { MatTooltip } from '@angular/material/tooltip';
4
5
  import { SelectSubInterface } from '../../public-api';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FormSelectComponent extends FieldType<FieldTypeConfig> {
8
+ private elementRef;
7
9
  selectables: any;
8
10
  params: any;
11
+ getFullObjectFromValue(value: any): any;
9
12
  svgStyle: {};
10
13
  openState: boolean;
11
14
  topLabel: boolean;
@@ -13,7 +16,10 @@ export declare class FormSelectComponent extends FieldType<FieldTypeConfig> {
13
16
  labelLimit: number;
14
17
  placeholderLabel: string;
15
18
  hoverEvent: EventEmitter<selectHoverEvent>;
19
+ ngSelect: NgSelectComponent;
20
+ constructor(elementRef: ElementRef);
16
21
  ngOnInit(): void;
22
+ private setChipBackgroundColor;
17
23
  openClose(state: boolean): void;
18
24
  shiftLabel(action: string): void;
19
25
  toggleOption(item: any, event: Event): void;
@@ -3,6 +3,7 @@ import { ButtonInterface, ButtonClickEvent } from '../../interfaces/button-inter
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { FormlyFieldConfig } from '@ngx-formly/core';
5
5
  import { FormLayoutConfig, FormFieldConfig, UnifiedFormConfig } from '../../interfaces/form-layout.interface';
6
+ import { TemplateRef } from '@angular/core';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class MessageBannerV2Component implements OnChanges {
8
9
  private state;
@@ -29,11 +30,14 @@ export declare class MessageBannerV2Component implements OnChanges {
29
30
  descriptionClass?: string;
30
31
  banner: any;
31
32
  formConfig: UnifiedFormConfig | null;
33
+ prebuiltFormFields: TemplateRef<any>;
32
34
  form: FormGroup<{}>;
33
35
  model: any;
34
36
  fields: FormlyFieldConfig[];
37
+ formlyFields: FormlyFieldConfig[];
35
38
  allFieldsFilled: import("@angular/core").WritableSignal<boolean>;
36
- additionalFieldRows: FormFieldConfig[][];
39
+ additionalFormlyFields: FormlyFieldConfig[];
40
+ usePrebuiltFields: import("@angular/core").WritableSignal<boolean>;
37
41
  get activeFormInputs(): any[];
38
42
  get activeChips(): any[];
39
43
  get activeCustomFormButton(): any;
@@ -46,6 +50,7 @@ export declare class MessageBannerV2Component implements OnChanges {
46
50
  }>;
47
51
  onChipRemove(chip: any): void;
48
52
  onAddUser(): void;
53
+ resetForm(): void;
49
54
  areAllFieldsFilled(): boolean;
50
55
  set messageIcon(value: string);
51
56
  set messageIconSize(value: {
@@ -63,15 +68,14 @@ export declare class MessageBannerV2Component implements OnChanges {
63
68
  isButtonArray(): boolean;
64
69
  isEmptyObject(obj: any): boolean;
65
70
  private updateFormlyFields;
71
+ private getFieldClassName;
72
+ private updateGridColumns;
73
+ shouldShowAdditionalFields(): boolean;
74
+ private updateAdditionalFields;
75
+ private evaluateShowWhen;
66
76
  onFormModelChange(model: any): void;
67
77
  getInitialFields(): FormFieldConfig[];
68
- getAdditionalFields(): FormFieldConfig[];
69
- getAdditionalFieldClass(localIndex: number): string;
70
78
  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;
75
79
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageBannerV2Component, never>;
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>;
80
+ 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>;
77
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarasanalytics-com/design-system",
3
- "version": "0.0.143",
3
+ "version": "0.0.144",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0"
@@ -1,6 +1,7 @@
1
1
  import { AbstractControl, ValidatorFn } from '@angular/forms';
2
2
  import { FormlyFieldConfig } from '@ngx-formly/core';
3
3
  export declare function phoneNumberValidator(dependent?: string): ValidatorFn;
4
+ export declare function customNameValidator(fieldName?: string): ValidatorFn;
4
5
  export declare const customEmailValidator: (control: AbstractControl) => {
5
6
  [key: string]: string;
6
7
  };