@coolon/angular-ui-powerups 12.4.0-alpha.29 → 12.4.0-alpha.30
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/bundles/coolon-angular-ui-powerups.umd.js +9 -4
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js +6 -0
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.js.map +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-editor-model.metadata.json +1 -1
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js +2 -4
- package/esm2015/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.js.map +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js +1 -1
- package/esm2015/lib/interaction/components/input-activities/input-activity.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +9 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +2 -0
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ export declare class InlineEditorModel<T> {
|
|
|
9
9
|
get validators(): ListModel<Validator<T>>;
|
|
10
10
|
validateUsing(validator: Validator<T>): this;
|
|
11
11
|
isEditing(): boolean;
|
|
12
|
+
cancelEdit(): void;
|
|
13
|
+
startEditing(): void;
|
|
12
14
|
}
|
|
13
15
|
export declare namespace InlineEditorModel {
|
|
14
16
|
type SaveCallback<T> = (value: T, context: EditContext<T>) => void | Promise<void>;
|
package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { InlineEditorModel } from './inline-editor-model';
|
|
|
9
9
|
* @example
|
|
10
10
|
* const source: ValueModel<string> = ...;
|
|
11
11
|
* const model = InlineEditorModel.create(source, {
|
|
12
|
-
* save(updated:string, context:
|
|
12
|
+
* save(updated:string, context: EditContext) => {
|
|
13
13
|
* try {
|
|
14
14
|
* try and save the thing...
|
|
15
15
|
* } catch(error) {
|