@energycap/components 0.39.30-ECAP-26487-data-rollup-icon-garnish.20241016-1132 → 0.39.31
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/esm2020/lib/core/validation-message.service.mjs +2 -1
- package/esm2020/lib/display/confirm/confirm.component.mjs +37 -4
- package/esm2020/lib/display/hierarchy/hierarchy-base.mjs +1 -1
- package/esm2020/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +3 -3
- package/fesm2015/energycap-components.mjs +37 -4
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +35 -4
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/display/confirm/confirm.component.d.ts +20 -2
- package/lib/display/hierarchy/hierarchy-base.d.ts +0 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import { UntypedFormGroup, ValidatorFn } from '@angular/forms';
|
3
3
|
import { ButtonType } from '../../controls/button/button.component';
|
4
4
|
import { TextboxType } from '../../controls/textbox/textbox.component';
|
@@ -17,6 +17,17 @@ export declare class ConfirmDialogContext {
|
|
17
17
|
title?: string;
|
18
18
|
/** Optional message */
|
19
19
|
message?: string;
|
20
|
+
/** Optional checkConfirm
|
21
|
+
* this will determine if ec-checkbox is available or no
|
22
|
+
* in order to delete or move to no parent the entity
|
23
|
+
*/
|
24
|
+
checkConfirm?: boolean;
|
25
|
+
/**
|
26
|
+
* checkboxContent
|
27
|
+
* Determine the label next to the checkbox
|
28
|
+
* if checkConfirm is true otherwise is not visible
|
29
|
+
*/
|
30
|
+
checkboxText?: string;
|
20
31
|
/**
|
21
32
|
* Optional textbox type, this will determine whether
|
22
33
|
* an input is visible or not
|
@@ -45,6 +56,8 @@ export declare class ConfirmDialogContext {
|
|
45
56
|
validationErrorMessage?: string;
|
46
57
|
/** Value returned from the input if enabled */
|
47
58
|
textboxValue?: string;
|
59
|
+
checkboxValue?: boolean;
|
60
|
+
confirmLabel?: string;
|
48
61
|
/** Optional save button label */
|
49
62
|
saveLabel?: string;
|
50
63
|
/** Optional save button type */
|
@@ -74,11 +87,13 @@ export declare class ConfirmDialogContext {
|
|
74
87
|
/** The message to be displayed while inlineConfirmAction is pending. */
|
75
88
|
inlineConfirmPendingMessage?: string;
|
76
89
|
}
|
77
|
-
export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDialogContext
|
90
|
+
export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDialogContext>, OnDestroy {
|
78
91
|
dialogId: string;
|
79
92
|
/** Form Group to hold any form controls needed */
|
80
93
|
formGroup: UntypedFormGroup;
|
81
94
|
status: Overlay;
|
95
|
+
showTextBox: boolean;
|
96
|
+
private destroyed;
|
82
97
|
/**
|
83
98
|
* Provided by the calling component to tell the confirm what to show
|
84
99
|
* and is used on save to send back any entered values from the user
|
@@ -93,6 +108,9 @@ export declare class ConfirmComponent implements OnInit, DialogContent<ConfirmDi
|
|
93
108
|
ngOnInit(): void;
|
94
109
|
onSave(source: SaveSource): void;
|
95
110
|
onCancel(): void;
|
111
|
+
ngOnDestroy(): void;
|
112
|
+
listenCheckBox(): void;
|
113
|
+
private setValidations;
|
96
114
|
/**
|
97
115
|
* Adds the textbox form control to our form group if its configured to be visible
|
98
116
|
* Will also add the required validator if requested
|
@@ -11,8 +11,6 @@ export declare class HierarchyItem implements LinkItem {
|
|
11
11
|
label: string;
|
12
12
|
/** Text to be displayed in the item's tooltip. When not provided, the label will be displayed. */
|
13
13
|
tooltip?: string;
|
14
|
-
/** Text to be displayed in the item's icon tooltip. */
|
15
|
-
iconTooltip?: string;
|
16
14
|
/** Indicates how many levels deep the item is in the parent structure */
|
17
15
|
level: number;
|
18
16
|
url?: string;
|