@sprucelabs/spruce-form-utils 18.2.61 → 18.3.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.
@@ -5,6 +5,7 @@ export default class FormCardViewController<S extends Schema = any> extends Abst
5
5
  protected formVc: FormViewController<S>;
6
6
  protected cardVc: HeartwoodCardViewController;
7
7
  constructor(options: ViewControllerOptions & FormCardViewControllerOptions<S>);
8
+ setIsBusy(isBusy: boolean): void;
8
9
  private CardVc;
9
10
  getIsValid(): boolean;
10
11
  validate(): Partial<Record<Extract<keyof S["fields"], string>, import("@sprucelabs/heartwood-view-controllers").TypedFieldError<S, Extract<keyof S["fields"], string>>[]>>;
@@ -35,6 +35,9 @@ class FormCardViewController extends AbstractViewController {
35
35
  this.formVc = this.Controller('form', form);
36
36
  this.cardVc = this.CardVc({ id, header });
37
37
  }
38
+ setIsBusy(isBusy) {
39
+ this.cardVc.setIsBusy(isBusy);
40
+ }
38
41
  CardVc(options) {
39
42
  return this.Controller('card', Object.assign(Object.assign({}, options), { body: {
40
43
  sections: [
@@ -5,6 +5,7 @@ export default class FormCardViewController<S extends Schema = any> extends Abst
5
5
  protected formVc: FormViewController<S>;
6
6
  protected cardVc: HeartwoodCardViewController;
7
7
  constructor(options: ViewControllerOptions & FormCardViewControllerOptions<S>);
8
+ setIsBusy(isBusy: boolean): void;
8
9
  private CardVc;
9
10
  getIsValid(): boolean;
10
11
  validate(): Partial<Record<Extract<keyof S["fields"], string>, import("@sprucelabs/heartwood-view-controllers").TypedFieldError<S, Extract<keyof S["fields"], string>>[]>>;
@@ -18,6 +18,9 @@ class FormCardViewController extends heartwood_view_controllers_1.AbstractViewCo
18
18
  this.formVc = this.Controller('form', form);
19
19
  this.cardVc = this.CardVc({ id, header });
20
20
  }
21
+ setIsBusy(isBusy) {
22
+ this.cardVc.setIsBusy(isBusy);
23
+ }
21
24
  CardVc(options) {
22
25
  return this.Controller('card', {
23
26
  ...options,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-form-utils",
3
3
  "description": "Support for working with forms and Sprucebot. 📄",
4
- "version": "18.2.61",
4
+ "version": "18.3.1",
5
5
  "skill": {
6
6
  "namespace": "forms"
7
7
  },