@energycap/components 0.39.16-ECAP-23123-Help-Popover-On-Controls.20240513-1146 → 0.39.16-ECAP-23123-Help-Popover-On-Controls.20240513-1515

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.
@@ -3,6 +3,7 @@ import { AbstractControl } from "@angular/forms";
3
3
  import { Subject } from "rxjs";
4
4
  import { ValidationMessageService } from "../core/validation-message.service";
5
5
  import { FormGroupHelper } from '../shared/form-group.helper';
6
+ import { PopoverContentPosition } from './popover/popover.component';
6
7
  import * as i0 from "@angular/core";
7
8
  export type ControlLabelPosition = "top" | "bottom" | "left";
8
9
  /**
@@ -58,6 +59,10 @@ export declare abstract class FormControlBase implements OnInit, OnDestroy, OnCh
58
59
  * Conditionally show a help popover next to the controls label.
59
60
  */
60
61
  helpPopover?: string;
62
+ /**
63
+ * When a help popover is present, allows the popover to be positioned in different locations.
64
+ */
65
+ helpPopoverPosition?: PopoverContentPosition;
61
66
  /**
62
67
  * All current validation errors
63
68
  */
@@ -101,5 +106,5 @@ export declare abstract class FormControlBase implements OnInit, OnDestroy, OnCh
101
106
  */
102
107
  protected translateValidationMessages(data?: any): Promise<void>;
103
108
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlBase, never>;
104
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlBase, never, never, { "autofocus": "autofocus"; "formModel": "formModel"; "label": "label"; "labelPosition": "labelPosition"; "id": "id"; "pending": "pending"; "required": "required"; "tabindex": "tabindex"; "readonly": "readonly"; "tooltip": "tooltip"; "helpPopover": "helpPopover"; }, {}, never, never, false, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlBase, never, never, { "autofocus": "autofocus"; "formModel": "formModel"; "label": "label"; "labelPosition": "labelPosition"; "id": "id"; "pending": "pending"; "required": "required"; "tabindex": "tabindex"; "readonly": "readonly"; "tooltip": "tooltip"; "helpPopover": "helpPopover"; "helpPopoverPosition": "helpPopoverPosition"; }, {}, never, never, false, never>;
105
110
  }
@@ -61,6 +61,10 @@ export declare class FormGroupComponent implements OnInit {
61
61
  /**An optional flag to hide the validation messages.
62
62
  */
63
63
  hideValidationMessage?: boolean;
64
+ /**
65
+ * Conditionally show a help popover next to the controls label.
66
+ */
67
+ helpPopover?: string;
64
68
  /**
65
69
  * All current validation errors
66
70
  *
@@ -92,5 +96,5 @@ export declare class FormGroupComponent implements OnInit {
92
96
  */
93
97
  private translateValidationMessages;
94
98
  static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupComponent, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "ec-form-group", never, { "id": "id"; "label": "label"; "formGroup": "formGroup"; "labelPosition": "labelPosition"; "overrideValidationError": "overrideValidationError"; "hideValidationMessage": "hideValidationMessage"; }, {}, never, ["*"], false, never>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupComponent, "ec-form-group", never, { "id": "id"; "label": "label"; "formGroup": "formGroup"; "labelPosition": "labelPosition"; "overrideValidationError": "overrideValidationError"; "hideValidationMessage": "hideValidationMessage"; "helpPopover": "helpPopover"; }, {}, never, ["*"], false, never>;
96
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.39.16-ECAP-23123-Help-Popover-On-Controls.20240513-1146",
3
+ "version": "0.39.16-ECAP-23123-Help-Popover-On-Controls.20240513-1515",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },