@singularsystems/neo-core 0.10.60 → 0.10.61

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.
@@ -4,6 +4,8 @@ import { ITooltipOptions } from "./TooltipOptions";
4
4
  export interface IButtonOptions {
5
5
  /** True if the click event of this button must be invoked when the parent form of this button is submitted. */
6
6
  isSubmit?: boolean;
7
+ /** The id of the form this button should attached to. Use this if the button is not a descendent of the form. */
8
+ form?: string;
7
9
  /** Bootstrap variant */
8
10
  variant?: variant;
9
11
  /** Bootstrap size */
@@ -74,4 +74,6 @@ export default class List<T> extends Array<T> {
74
74
  get isValid(): boolean;
75
75
  /** True if any item in the list is dirty, or the list contains any deleted items. */
76
76
  get isDirty(): boolean;
77
+ /** Indicates that the model is dirty and valid and can be saved. */
78
+ get readyToSave(): boolean;
77
79
  }
@@ -211,6 +211,14 @@ var List = /** @class */ (function (_super) {
211
211
  enumerable: true,
212
212
  configurable: true
213
213
  });
214
+ Object.defineProperty(List.prototype, "readyToSave", {
215
+ /** Indicates that the model is dirty and valid and can be saved. */
216
+ get: function () {
217
+ return this.isDirty && this.isValid;
218
+ },
219
+ enumerable: true,
220
+ configurable: true
221
+ });
214
222
  return List;
215
223
  }(Array));
216
224
  export default List;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-core",
3
- "version": "0.10.60",
3
+ "version": "0.10.61",
4
4
  "description": "Core functionality for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",