i-tech-shared-components 1.4.101 → 1.4.102
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.
|
@@ -15,6 +15,8 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* With `blockInvalidCommit`, an invalid control keeps the editor open and flips the editor
|
|
16
16
|
* context's `showErrors` so the projected input displays its validation message.
|
|
17
17
|
*
|
|
18
|
+
* `changed` highlights the field (background only, no diff) to show it holds an unsaved / draft change.
|
|
19
|
+
*
|
|
18
20
|
* Works for both page-level save (read the form later) and per-field save
|
|
19
21
|
* (handle `editEnd`, save when `changed`, toggle `loading`, revert to `previousValue` on error).
|
|
20
22
|
*
|
|
@@ -37,6 +39,8 @@ export declare class InlineEditComponent<T = unknown> implements OnChanges, OnDe
|
|
|
37
39
|
disabled: boolean;
|
|
38
40
|
/** Shows a spinner and blocks editing, e.g. while a per-field save is in flight. */
|
|
39
41
|
loading: boolean;
|
|
42
|
+
/** Highlights the field with a background to mark that its value differs (e.g. a draft change). */
|
|
43
|
+
changed: boolean;
|
|
40
44
|
/**
|
|
41
45
|
* Control behind the editor. Enables Escape-revert, `closeOnChange`, `blockInvalidCommit`,
|
|
42
46
|
* the `editEnd` values, invalid styling in read mode and disabled sync.
|
|
@@ -89,5 +93,5 @@ export declare class InlineEditComponent<T = unknown> implements OnChanges, OnDe
|
|
|
89
93
|
private updateControlState;
|
|
90
94
|
private isSameValue;
|
|
91
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<InlineEditComponent<any>, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InlineEditComponent<any>, "i-tech-inline-edit", never, { "displayValue": { "alias": "displayValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "control": { "alias": "control"; "required": false; }; "closeOnChange": { "alias": "closeOnChange"; "required": false; }; "blockInvalidCommit": { "alias": "blockInvalidCommit"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "editStart": "editStart"; "editEnd": "editEnd"; }, ["editor", "display"], never, true, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineEditComponent<any>, "i-tech-inline-edit", never, { "displayValue": { "alias": "displayValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "changed": { "alias": "changed"; "required": false; }; "control": { "alias": "control"; "required": false; }; "closeOnChange": { "alias": "closeOnChange"; "required": false; }; "blockInvalidCommit": { "alias": "blockInvalidCommit"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "editStart": "editStart"; "editEnd": "editEnd"; }, ["editor", "display"], never, true, never>;
|
|
93
97
|
}
|