@energycap/components 0.29.0 → 0.29.1

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.
@@ -16,20 +16,30 @@ export declare class ConfirmDialogContext {
16
16
  title?: string;
17
17
  /** Optional message */
18
18
  message?: string;
19
- /** Optional textbox type, this will determine whether
20
- * an input is visible or not
19
+ /**
20
+ * Optional textbox type, this will determine whether
21
+ * an input is visible or not
21
22
  */
22
23
  textboxType?: TextboxType;
23
24
  /** Optional textbox label */
24
25
  textboxLabel?: string;
25
- /** Optional required flag for the textbox, will set
26
- * a validator on the input if true
26
+ /**
27
+ * Optional required flag for the textbox, will set
28
+ * a validator on the input if true
27
29
  */
28
30
  textboxRequired?: boolean;
29
31
  /** Optional array of validators to add to the textbox form control. */
30
32
  textboxValidators?: ValidatorFn[];
31
33
  /** Sets the textbox's uppercase parameter */
32
34
  textboxUppercase?: boolean;
35
+ /**
36
+ * Optional textbox height (in rows).
37
+ * Only applies to multi-line type.
38
+ * Default 3.
39
+ */
40
+ textareaRows?: number;
41
+ /** Optional textbox placeholder text */
42
+ textboxPlaceholder?: string;
33
43
  /** Optional error message to display when textbox */
34
44
  validationErrorMessage?: string;
35
45
  /** Value returned from the input if enabled */
@@ -46,9 +56,10 @@ export declare class ConfirmDialogContext {
46
56
  alternateSaveLabel?: string;
47
57
  /** Optional alternate save button type */
48
58
  alternateSaveButtonType?: ButtonType;
49
- /** Used to know which save button was selected in case the calling component
50
- * is utilizing the alternate save button
51
- */
59
+ /**
60
+ * Used to know which save button was selected in case the calling component
61
+ * is utilizing the alternate save button
62
+ */
52
63
  saveSource?: SaveSource;
53
64
  /**
54
65
  * When provided, the confirm will show a pending state and call this, then upon
@@ -65,8 +76,9 @@ export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDi
65
76
  /** Form Group to hold any form controls needed */
66
77
  formGroup: FormGroup;
67
78
  status: Overlay;
68
- /** Provided by the calling component to tell the confirm what to show
69
- * and is used on save to send back any entered values from the user
79
+ /**
80
+ * Provided by the calling component to tell the confirm what to show
81
+ * and is used on save to send back any entered values from the user
70
82
  */
71
83
  context: ConfirmDialogContext;
72
84
  onDialogSave: EventEmitter<ConfirmDialogContext>;
@@ -78,8 +90,9 @@ export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDi
78
90
  ngOnInit(): void;
79
91
  onSave(source: SaveSource): void;
80
92
  onCancel(): void;
81
- /** Adds the textbox form control to our form group if its configured to be visible
82
- * Will also add the required validator if requested
93
+ /**
94
+ * Adds the textbox form control to our form group if its configured to be visible
95
+ * Will also add the required validator if requested
83
96
  */
84
97
  private addFormControls;
85
98
  private doInlineConfirmAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },