@sprucelabs/heartwood-view-controllers 119.9.0 → 119.9.2

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.
Files changed (45) hide show
  1. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/statusIndicator.schema.js +2 -1
  2. package/build/.spruce/schemas/schemas.types.d.ts +7 -6
  3. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/statusIndicator.schema.js +2 -1
  4. package/build/esm/.spruce/schemas/schemas.types.d.ts +7 -6
  5. package/build/esm/schemas/v2021_02_11/cards/card.builder.d.ts +4 -0
  6. package/build/esm/schemas/v2021_02_11/cards/cardBody.builder.d.ts +3 -0
  7. package/build/esm/schemas/v2021_02_11/cards/cardHeader.builder.d.ts +1 -0
  8. package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.d.ts +3 -0
  9. package/build/esm/schemas/v2021_02_11/dialog.builder.d.ts +4 -0
  10. package/build/esm/schemas/v2021_02_11/formSection.builder.d.ts +1 -0
  11. package/build/esm/schemas/v2021_02_11/forms/bigForm.builder.d.ts +1 -0
  12. package/build/esm/schemas/v2021_02_11/forms/form.builder.d.ts +1 -0
  13. package/build/esm/schemas/v2021_02_11/layout.builder.d.ts +4 -0
  14. package/build/esm/schemas/v2021_02_11/list.builder.d.ts +1 -0
  15. package/build/esm/schemas/v2021_02_11/listCell.builder.d.ts +1 -0
  16. package/build/esm/schemas/v2021_02_11/lockScreen.builder.d.ts +4 -0
  17. package/build/esm/schemas/v2021_02_11/skillView.builder.d.ts +4 -0
  18. package/build/esm/schemas/v2021_02_11/statusIndicator.builder.d.ts +1 -0
  19. package/build/esm/schemas/v2021_02_11/statusIndicator.builder.js +2 -1
  20. package/build/esm/schemas/v2021_02_11/toolBelt.builder.d.ts +4 -0
  21. package/build/esm/tests/utilities/listAssert.d.ts +2 -1
  22. package/build/esm/tests/utilities/listAssert.js +11 -0
  23. package/build/esm/types/heartwood.types.d.ts +2 -0
  24. package/build/esm/viewControllers/Login.vc.js +1 -0
  25. package/build/schemas/v2021_02_11/cards/card.builder.d.ts +4 -0
  26. package/build/schemas/v2021_02_11/cards/cardBody.builder.d.ts +3 -0
  27. package/build/schemas/v2021_02_11/cards/cardHeader.builder.d.ts +1 -0
  28. package/build/schemas/v2021_02_11/cards/cardSection.builder.d.ts +3 -0
  29. package/build/schemas/v2021_02_11/dialog.builder.d.ts +4 -0
  30. package/build/schemas/v2021_02_11/formSection.builder.d.ts +1 -0
  31. package/build/schemas/v2021_02_11/forms/bigForm.builder.d.ts +1 -0
  32. package/build/schemas/v2021_02_11/forms/form.builder.d.ts +1 -0
  33. package/build/schemas/v2021_02_11/layout.builder.d.ts +4 -0
  34. package/build/schemas/v2021_02_11/list.builder.d.ts +1 -0
  35. package/build/schemas/v2021_02_11/listCell.builder.d.ts +1 -0
  36. package/build/schemas/v2021_02_11/lockScreen.builder.d.ts +4 -0
  37. package/build/schemas/v2021_02_11/skillView.builder.d.ts +4 -0
  38. package/build/schemas/v2021_02_11/statusIndicator.builder.d.ts +1 -0
  39. package/build/schemas/v2021_02_11/statusIndicator.builder.js +2 -1
  40. package/build/schemas/v2021_02_11/toolBelt.builder.d.ts +4 -0
  41. package/build/tests/utilities/listAssert.d.ts +2 -1
  42. package/build/tests/utilities/listAssert.js +10 -0
  43. package/build/types/heartwood.types.d.ts +2 -0
  44. package/build/viewControllers/Login.vc.js +1 -0
  45. package/package.json +2 -2
@@ -12,7 +12,8 @@ const statusIndicatorSchema = {
12
12
  'status': {
13
13
  label: 'Status',
14
14
  type: 'select',
15
- options: { choices: [{ "value": "status1", "label": "Status 1" }, { "value": "status2", "label": "Status 2" }, { "value": "status3", "label": "Status 3" }, { "value": "status4", "label": "Status 4" }, { "value": "status5", "label": "Status 5" }], }
15
+ isRequired: true,
16
+ options: { choices: [{ "value": 1, "label": "Status 1" }, { "value": 2, "label": "Status 2" }, { "value": 3, "label": "Status 3" }, { "value": 4, "label": "Status 4" }, { "value": 5, "label": "Status 5" }], }
16
17
  },
17
18
  /** Hint. */
18
19
  'hint': {
@@ -11840,7 +11840,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11840
11840
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
11841
11841
  interface StatusIndicator {
11842
11842
  /** Status. */
11843
- 'status'?: ("status1" | "status2" | "status3" | "status4" | "status5") | undefined | null;
11843
+ 'status': (1 | 2 | 3 | 4 | 5);
11844
11844
  /** Hint. */
11845
11845
  'hint'?: string | undefined | null;
11846
11846
  }
@@ -11855,21 +11855,22 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11855
11855
  'status': {
11856
11856
  label: 'Status';
11857
11857
  type: 'select';
11858
+ isRequired: true;
11858
11859
  options: {
11859
11860
  choices: [{
11860
- "value": "status1";
11861
+ "value": 1;
11861
11862
  "label": "Status 1";
11862
11863
  }, {
11863
- "value": "status2";
11864
+ "value": 2;
11864
11865
  "label": "Status 2";
11865
11866
  }, {
11866
- "value": "status3";
11867
+ "value": 3;
11867
11868
  "label": "Status 3";
11868
11869
  }, {
11869
- "value": "status4";
11870
+ "value": 4;
11870
11871
  "label": "Status 4";
11871
11872
  }, {
11872
- "value": "status5";
11873
+ "value": 5;
11873
11874
  "label": "Status 5";
11874
11875
  }];
11875
11876
  };
@@ -10,7 +10,8 @@ const statusIndicatorSchema = {
10
10
  'status': {
11
11
  label: 'Status',
12
12
  type: 'select',
13
- options: { choices: [{ "value": "status1", "label": "Status 1" }, { "value": "status2", "label": "Status 2" }, { "value": "status3", "label": "Status 3" }, { "value": "status4", "label": "Status 4" }, { "value": "status5", "label": "Status 5" }], }
13
+ isRequired: true,
14
+ options: { choices: [{ "value": 1, "label": "Status 1" }, { "value": 2, "label": "Status 2" }, { "value": 3, "label": "Status 3" }, { "value": 4, "label": "Status 4" }, { "value": 5, "label": "Status 5" }], }
14
15
  },
15
16
  /** Hint. */
16
17
  'hint': {
@@ -11840,7 +11840,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11840
11840
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
11841
11841
  interface StatusIndicator {
11842
11842
  /** Status. */
11843
- 'status'?: ("status1" | "status2" | "status3" | "status4" | "status5") | undefined | null;
11843
+ 'status': (1 | 2 | 3 | 4 | 5);
11844
11844
  /** Hint. */
11845
11845
  'hint'?: string | undefined | null;
11846
11846
  }
@@ -11855,21 +11855,22 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
11855
11855
  'status': {
11856
11856
  label: 'Status';
11857
11857
  type: 'select';
11858
+ isRequired: true;
11858
11859
  options: {
11859
11860
  choices: [{
11860
- "value": "status1";
11861
+ "value": 1;
11861
11862
  "label": "Status 1";
11862
11863
  }, {
11863
- "value": "status2";
11864
+ "value": 2;
11864
11865
  "label": "Status 2";
11865
11866
  }, {
11866
- "value": "status3";
11867
+ "value": 3;
11867
11868
  "label": "Status 3";
11868
11869
  }, {
11869
- "value": "status4";
11870
+ "value": 4;
11870
11871
  "label": "Status 4";
11871
11872
  }, {
11872
- "value": "status5";
11873
+ "value": 5;
11873
11874
  "label": "Status 5";
11874
11875
  }];
11875
11876
  };
@@ -6798,6 +6798,7 @@ declare const _default: {
6798
6798
  status: {
6799
6799
  type: "select";
6800
6800
  label: string;
6801
+ isRequired: true;
6801
6802
  options: {
6802
6803
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6803
6804
  };
@@ -13915,6 +13916,7 @@ declare const _default: {
13915
13916
  status: {
13916
13917
  type: "select";
13917
13918
  label: string;
13919
+ isRequired: true;
13918
13920
  options: {
13919
13921
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13920
13922
  };
@@ -21030,6 +21032,7 @@ declare const _default: {
21030
21032
  status: {
21031
21033
  type: "select";
21032
21034
  label: string;
21035
+ isRequired: true;
21033
21036
  options: {
21034
21037
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21035
21038
  };
@@ -28100,6 +28103,7 @@ declare const _default: {
28100
28103
  status: {
28101
28104
  type: "select";
28102
28105
  label: string;
28106
+ isRequired: true;
28103
28107
  options: {
28104
28108
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28105
28109
  };
@@ -6853,6 +6853,7 @@ declare const _default: {
6853
6853
  status: {
6854
6854
  type: "select";
6855
6855
  label: string;
6856
+ isRequired: true;
6856
6857
  options: {
6857
6858
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6858
6859
  };
@@ -13968,6 +13969,7 @@ declare const _default: {
13968
13969
  status: {
13969
13970
  type: "select";
13970
13971
  label: string;
13972
+ isRequired: true;
13971
13973
  options: {
13972
13974
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13973
13975
  };
@@ -21038,6 +21040,7 @@ declare const _default: {
21038
21040
  status: {
21039
21041
  type: "select";
21040
21042
  label: string;
21043
+ isRequired: true;
21041
21044
  options: {
21042
21045
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21043
21046
  };
@@ -6775,6 +6775,7 @@ declare const _default: {
6775
6775
  status: {
6776
6776
  type: "select";
6777
6777
  label: string;
6778
+ isRequired: true;
6778
6779
  options: {
6779
6780
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6780
6781
  };
@@ -6803,6 +6803,7 @@ declare const _default: {
6803
6803
  status: {
6804
6804
  type: "select";
6805
6805
  label: string;
6806
+ isRequired: true;
6806
6807
  options: {
6807
6808
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6808
6809
  };
@@ -13918,6 +13919,7 @@ declare const _default: {
13918
13919
  status: {
13919
13920
  type: "select";
13920
13921
  label: string;
13922
+ isRequired: true;
13921
13923
  options: {
13922
13924
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13923
13925
  };
@@ -20988,6 +20990,7 @@ declare const _default: {
20988
20990
  status: {
20989
20991
  type: "select";
20990
20992
  label: string;
20993
+ isRequired: true;
20991
20994
  options: {
20992
20995
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
20993
20996
  };
@@ -6829,6 +6829,7 @@ declare const _default: {
6829
6829
  status: {
6830
6830
  type: "select";
6831
6831
  label: string;
6832
+ isRequired: true;
6832
6833
  options: {
6833
6834
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6834
6835
  };
@@ -13946,6 +13947,7 @@ declare const _default: {
13946
13947
  status: {
13947
13948
  type: "select";
13948
13949
  label: string;
13950
+ isRequired: true;
13949
13951
  options: {
13950
13952
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13951
13953
  };
@@ -21061,6 +21063,7 @@ declare const _default: {
21061
21063
  status: {
21062
21064
  type: "select";
21063
21065
  label: string;
21066
+ isRequired: true;
21064
21067
  options: {
21065
21068
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21066
21069
  };
@@ -28131,6 +28134,7 @@ declare const _default: {
28131
28134
  status: {
28132
28135
  type: "select";
28133
28136
  label: string;
28137
+ isRequired: true;
28134
28138
  options: {
28135
28139
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28136
28140
  };
@@ -6609,6 +6609,7 @@ declare const _default: {
6609
6609
  status: {
6610
6610
  type: "select";
6611
6611
  label: string;
6612
+ isRequired: true;
6612
6613
  options: {
6613
6614
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6614
6615
  };
@@ -6800,6 +6800,7 @@ declare const _default: {
6800
6800
  status: {
6801
6801
  type: "select";
6802
6802
  label: string;
6803
+ isRequired: true;
6803
6804
  options: {
6804
6805
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6805
6806
  };
@@ -6725,6 +6725,7 @@ declare const _default: {
6725
6725
  status: {
6726
6726
  type: "select";
6727
6727
  label: string;
6728
+ isRequired: true;
6728
6729
  options: {
6729
6730
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6730
6731
  };
@@ -6809,6 +6809,7 @@ declare const _default: {
6809
6809
  status: {
6810
6810
  type: "select";
6811
6811
  label: string;
6812
+ isRequired: true;
6812
6813
  options: {
6813
6814
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6814
6815
  };
@@ -13926,6 +13927,7 @@ declare const _default: {
13926
13927
  status: {
13927
13928
  type: "select";
13928
13929
  label: string;
13930
+ isRequired: true;
13929
13931
  options: {
13930
13932
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13931
13933
  };
@@ -21041,6 +21043,7 @@ declare const _default: {
21041
21043
  status: {
21042
21044
  type: "select";
21043
21045
  label: string;
21046
+ isRequired: true;
21044
21047
  options: {
21045
21048
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21046
21049
  };
@@ -28111,6 +28114,7 @@ declare const _default: {
28111
28114
  status: {
28112
28115
  type: "select";
28113
28116
  label: string;
28117
+ isRequired: true;
28114
28118
  options: {
28115
28119
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28116
28120
  };
@@ -6552,6 +6552,7 @@ declare const _default: {
6552
6552
  status: {
6553
6553
  type: "select";
6554
6554
  label: string;
6555
+ isRequired: true;
6555
6556
  options: {
6556
6557
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6557
6558
  };
@@ -6474,6 +6474,7 @@ declare const _default: {
6474
6474
  status: {
6475
6475
  type: "select";
6476
6476
  label: string;
6477
+ isRequired: true;
6477
6478
  options: {
6478
6479
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6479
6480
  };
@@ -6854,6 +6854,7 @@ declare const _default: {
6854
6854
  status: {
6855
6855
  type: "select";
6856
6856
  label: string;
6857
+ isRequired: true;
6857
6858
  options: {
6858
6859
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6859
6860
  };
@@ -13971,6 +13972,7 @@ declare const _default: {
13971
13972
  status: {
13972
13973
  type: "select";
13973
13974
  label: string;
13975
+ isRequired: true;
13974
13976
  options: {
13975
13977
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13976
13978
  };
@@ -21086,6 +21088,7 @@ declare const _default: {
21086
21088
  status: {
21087
21089
  type: "select";
21088
21090
  label: string;
21091
+ isRequired: true;
21089
21092
  options: {
21090
21093
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21091
21094
  };
@@ -28156,6 +28159,7 @@ declare const _default: {
28156
28159
  status: {
28157
28160
  type: "select";
28158
28161
  label: string;
28162
+ isRequired: true;
28159
28163
  options: {
28160
28164
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28161
28165
  };
@@ -6848,6 +6848,7 @@ declare const _default: {
6848
6848
  status: {
6849
6849
  type: "select";
6850
6850
  label: string;
6851
+ isRequired: true;
6851
6852
  options: {
6852
6853
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6853
6854
  };
@@ -13965,6 +13966,7 @@ declare const _default: {
13965
13966
  status: {
13966
13967
  type: "select";
13967
13968
  label: string;
13969
+ isRequired: true;
13968
13970
  options: {
13969
13971
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13970
13972
  };
@@ -21080,6 +21082,7 @@ declare const _default: {
21080
21082
  status: {
21081
21083
  type: "select";
21082
21084
  label: string;
21085
+ isRequired: true;
21083
21086
  options: {
21084
21087
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21085
21088
  };
@@ -28150,6 +28153,7 @@ declare const _default: {
28150
28153
  status: {
28151
28154
  type: "select";
28152
28155
  label: string;
28156
+ isRequired: true;
28153
28157
  options: {
28154
28158
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28155
28159
  };
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  status: {
6
6
  type: "select";
7
7
  label: string;
8
+ isRequired: true;
8
9
  options: {
9
10
  choices: import("@sprucelabs/spruce-core-schemas").SpruceSchemas.Spruce.v2020_07_22.Choice[];
10
11
  };
@@ -1,6 +1,6 @@
1
1
  import { buildSchema } from '@sprucelabs/schema';
2
2
  const choices = Array.from({ length: 5 }).map((_, index) => ({
3
- value: `status${index + 1}`,
3
+ value: index + 1,
4
4
  label: `Status ${index + 1}`,
5
5
  }));
6
6
  export default buildSchema({
@@ -10,6 +10,7 @@ export default buildSchema({
10
10
  status: {
11
11
  type: 'select',
12
12
  label: 'Status',
13
+ isRequired: true,
13
14
  options: {
14
15
  choices,
15
16
  },
@@ -6870,6 +6870,7 @@ declare const _default: {
6870
6870
  status: {
6871
6871
  type: "select";
6872
6872
  label: string;
6873
+ isRequired: true;
6873
6874
  options: {
6874
6875
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6875
6876
  };
@@ -13987,6 +13988,7 @@ declare const _default: {
13987
13988
  status: {
13988
13989
  type: "select";
13989
13990
  label: string;
13991
+ isRequired: true;
13990
13992
  options: {
13991
13993
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13992
13994
  };
@@ -21102,6 +21104,7 @@ declare const _default: {
21102
21104
  status: {
21103
21105
  type: "select";
21104
21106
  label: string;
21107
+ isRequired: true;
21105
21108
  options: {
21106
21109
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21107
21110
  };
@@ -28172,6 +28175,7 @@ declare const _default: {
28172
28175
  status: {
28173
28176
  type: "select";
28174
28177
  label: string;
28178
+ isRequired: true;
28175
28179
  options: {
28176
28180
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28177
28181
  };
@@ -1,4 +1,4 @@
1
- import { Card, FormViewController, LineIcon, List, RowStyle, SkillViewController, SwipeCardViewController, ViewController } from '../../types/heartwood.types';
1
+ import { Card, FormViewController, LineIcon, List, RowStyle, SkillViewController, StatusIndicatorStatus, SwipeCardViewController, ViewController } from '../../types/heartwood.types';
2
2
  import ButtonBarViewController from '../../viewControllers/ButtonBar.vc';
3
3
  import ListViewController from '../../viewControllers/list/List.vc';
4
4
  import ListRowViewController from '../../viewControllers/list/ListRow.vc';
@@ -11,6 +11,7 @@ declare const listAssert: {
11
11
  listRendersRow(listVc: ViewController<List>, row: string | number): ListRowViewController;
12
12
  rowDoesNotRenderCheckbox(listVc: ViewController<List>, row: string | number, name?: string): void;
13
13
  rowRendersCheckBox(listVc: ViewController<List>, row: string | number, name?: string): void;
14
+ rowRendersStatusIndicator(listVc: ViewController<List>, row: string | number, expectedStatus?: StatusIndicatorStatus): void;
14
15
  cardRendersList(vc: ViewController<Card> | FormViewController<any>, id?: string): ListViewController;
15
16
  cardDoesNotRenderList(vc: ViewController<Card> | FormViewController<any>, id?: string): void;
16
17
  rowRendersCalendar(listVc: ListViewController, row: string | number): void;
@@ -57,6 +57,17 @@ const listAssert = {
57
57
  assert.isTruthy(checkbox, `I could not find a checkbox in row '${row}'!`);
58
58
  }
59
59
  },
60
+ rowRendersStatusIndicator(listVc, row, expectedStatus) {
61
+ var _a;
62
+ assertOptions({ listVc, row }, ['listVc', 'row']);
63
+ const rowVc = getListVc(listVc).getRowVc(row);
64
+ const model = renderUtil.render(rowVc);
65
+ const match = model.cells.find((c) => c.statusIndicator);
66
+ assert.isTruthy(match, `I could not find a status indicator in row '${row}'!`);
67
+ if (expectedStatus) {
68
+ assert.isEqual((_a = match.statusIndicator) === null || _a === void 0 ? void 0 : _a.status, expectedStatus, 'The status indicator is does not right!');
69
+ }
70
+ },
60
71
  cardRendersList(vc, id) {
61
72
  let { match, foundById } = findList(vc, id);
62
73
  if (!match) {
@@ -251,6 +251,8 @@ export type ChartDataSet = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Ch
251
251
  export type ChartDataPoint = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ChartDataPoint;
252
252
  export type Form<S extends Schema = any> = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Form<S>;
253
253
  export type WebRtcPlayer = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.WebRtcPlayer;
254
+ export type StatusIndicator = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.StatusIndicator;
255
+ export type StatusIndicatorStatus = NonNullable<StatusIndicator['status']>;
254
256
  export type NavigationRoute = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRoute;
255
257
  export type LayoutStyle = NonNullable<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.SkillView['layout']>;
256
258
  export type ListColumnWidth = NonNullable<List['columnWidths']>[number];
@@ -41,6 +41,7 @@ class LoginViewController extends AbstractViewController {
41
41
  this.loginHandler = options.onLogin;
42
42
  this.loginFailedHandler = options.onLoginFailed;
43
43
  this.loginForm = this.BigForm();
44
+ this.device.sendCommand('attemptingLogin');
44
45
  }
45
46
  BigForm() {
46
47
  return this.Controller('bigForm', buildBigForm({
@@ -6798,6 +6798,7 @@ declare const _default: {
6798
6798
  status: {
6799
6799
  type: "select";
6800
6800
  label: string;
6801
+ isRequired: true;
6801
6802
  options: {
6802
6803
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6803
6804
  };
@@ -13915,6 +13916,7 @@ declare const _default: {
13915
13916
  status: {
13916
13917
  type: "select";
13917
13918
  label: string;
13919
+ isRequired: true;
13918
13920
  options: {
13919
13921
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13920
13922
  };
@@ -21030,6 +21032,7 @@ declare const _default: {
21030
21032
  status: {
21031
21033
  type: "select";
21032
21034
  label: string;
21035
+ isRequired: true;
21033
21036
  options: {
21034
21037
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21035
21038
  };
@@ -28100,6 +28103,7 @@ declare const _default: {
28100
28103
  status: {
28101
28104
  type: "select";
28102
28105
  label: string;
28106
+ isRequired: true;
28103
28107
  options: {
28104
28108
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28105
28109
  };
@@ -6853,6 +6853,7 @@ declare const _default: {
6853
6853
  status: {
6854
6854
  type: "select";
6855
6855
  label: string;
6856
+ isRequired: true;
6856
6857
  options: {
6857
6858
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6858
6859
  };
@@ -13968,6 +13969,7 @@ declare const _default: {
13968
13969
  status: {
13969
13970
  type: "select";
13970
13971
  label: string;
13972
+ isRequired: true;
13971
13973
  options: {
13972
13974
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13973
13975
  };
@@ -21038,6 +21040,7 @@ declare const _default: {
21038
21040
  status: {
21039
21041
  type: "select";
21040
21042
  label: string;
21043
+ isRequired: true;
21041
21044
  options: {
21042
21045
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21043
21046
  };
@@ -6775,6 +6775,7 @@ declare const _default: {
6775
6775
  status: {
6776
6776
  type: "select";
6777
6777
  label: string;
6778
+ isRequired: true;
6778
6779
  options: {
6779
6780
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6780
6781
  };
@@ -6803,6 +6803,7 @@ declare const _default: {
6803
6803
  status: {
6804
6804
  type: "select";
6805
6805
  label: string;
6806
+ isRequired: true;
6806
6807
  options: {
6807
6808
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6808
6809
  };
@@ -13918,6 +13919,7 @@ declare const _default: {
13918
13919
  status: {
13919
13920
  type: "select";
13920
13921
  label: string;
13922
+ isRequired: true;
13921
13923
  options: {
13922
13924
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13923
13925
  };
@@ -20988,6 +20990,7 @@ declare const _default: {
20988
20990
  status: {
20989
20991
  type: "select";
20990
20992
  label: string;
20993
+ isRequired: true;
20991
20994
  options: {
20992
20995
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
20993
20996
  };
@@ -6829,6 +6829,7 @@ declare const _default: {
6829
6829
  status: {
6830
6830
  type: "select";
6831
6831
  label: string;
6832
+ isRequired: true;
6832
6833
  options: {
6833
6834
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6834
6835
  };
@@ -13946,6 +13947,7 @@ declare const _default: {
13946
13947
  status: {
13947
13948
  type: "select";
13948
13949
  label: string;
13950
+ isRequired: true;
13949
13951
  options: {
13950
13952
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13951
13953
  };
@@ -21061,6 +21063,7 @@ declare const _default: {
21061
21063
  status: {
21062
21064
  type: "select";
21063
21065
  label: string;
21066
+ isRequired: true;
21064
21067
  options: {
21065
21068
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21066
21069
  };
@@ -28131,6 +28134,7 @@ declare const _default: {
28131
28134
  status: {
28132
28135
  type: "select";
28133
28136
  label: string;
28137
+ isRequired: true;
28134
28138
  options: {
28135
28139
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28136
28140
  };
@@ -6609,6 +6609,7 @@ declare const _default: {
6609
6609
  status: {
6610
6610
  type: "select";
6611
6611
  label: string;
6612
+ isRequired: true;
6612
6613
  options: {
6613
6614
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6614
6615
  };
@@ -6800,6 +6800,7 @@ declare const _default: {
6800
6800
  status: {
6801
6801
  type: "select";
6802
6802
  label: string;
6803
+ isRequired: true;
6803
6804
  options: {
6804
6805
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6805
6806
  };
@@ -6725,6 +6725,7 @@ declare const _default: {
6725
6725
  status: {
6726
6726
  type: "select";
6727
6727
  label: string;
6728
+ isRequired: true;
6728
6729
  options: {
6729
6730
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6730
6731
  };
@@ -6809,6 +6809,7 @@ declare const _default: {
6809
6809
  status: {
6810
6810
  type: "select";
6811
6811
  label: string;
6812
+ isRequired: true;
6812
6813
  options: {
6813
6814
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6814
6815
  };
@@ -13926,6 +13927,7 @@ declare const _default: {
13926
13927
  status: {
13927
13928
  type: "select";
13928
13929
  label: string;
13930
+ isRequired: true;
13929
13931
  options: {
13930
13932
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13931
13933
  };
@@ -21041,6 +21043,7 @@ declare const _default: {
21041
21043
  status: {
21042
21044
  type: "select";
21043
21045
  label: string;
21046
+ isRequired: true;
21044
21047
  options: {
21045
21048
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21046
21049
  };
@@ -28111,6 +28114,7 @@ declare const _default: {
28111
28114
  status: {
28112
28115
  type: "select";
28113
28116
  label: string;
28117
+ isRequired: true;
28114
28118
  options: {
28115
28119
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28116
28120
  };
@@ -6552,6 +6552,7 @@ declare const _default: {
6552
6552
  status: {
6553
6553
  type: "select";
6554
6554
  label: string;
6555
+ isRequired: true;
6555
6556
  options: {
6556
6557
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6557
6558
  };
@@ -6474,6 +6474,7 @@ declare const _default: {
6474
6474
  status: {
6475
6475
  type: "select";
6476
6476
  label: string;
6477
+ isRequired: true;
6477
6478
  options: {
6478
6479
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6479
6480
  };
@@ -6854,6 +6854,7 @@ declare const _default: {
6854
6854
  status: {
6855
6855
  type: "select";
6856
6856
  label: string;
6857
+ isRequired: true;
6857
6858
  options: {
6858
6859
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6859
6860
  };
@@ -13971,6 +13972,7 @@ declare const _default: {
13971
13972
  status: {
13972
13973
  type: "select";
13973
13974
  label: string;
13975
+ isRequired: true;
13974
13976
  options: {
13975
13977
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13976
13978
  };
@@ -21086,6 +21088,7 @@ declare const _default: {
21086
21088
  status: {
21087
21089
  type: "select";
21088
21090
  label: string;
21091
+ isRequired: true;
21089
21092
  options: {
21090
21093
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21091
21094
  };
@@ -28156,6 +28159,7 @@ declare const _default: {
28156
28159
  status: {
28157
28160
  type: "select";
28158
28161
  label: string;
28162
+ isRequired: true;
28159
28163
  options: {
28160
28164
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28161
28165
  };
@@ -6848,6 +6848,7 @@ declare const _default: {
6848
6848
  status: {
6849
6849
  type: "select";
6850
6850
  label: string;
6851
+ isRequired: true;
6851
6852
  options: {
6852
6853
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6853
6854
  };
@@ -13965,6 +13966,7 @@ declare const _default: {
13965
13966
  status: {
13966
13967
  type: "select";
13967
13968
  label: string;
13969
+ isRequired: true;
13968
13970
  options: {
13969
13971
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13970
13972
  };
@@ -21080,6 +21082,7 @@ declare const _default: {
21080
21082
  status: {
21081
21083
  type: "select";
21082
21084
  label: string;
21085
+ isRequired: true;
21083
21086
  options: {
21084
21087
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21085
21088
  };
@@ -28150,6 +28153,7 @@ declare const _default: {
28150
28153
  status: {
28151
28154
  type: "select";
28152
28155
  label: string;
28156
+ isRequired: true;
28153
28157
  options: {
28154
28158
  choices: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28155
28159
  };
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  status: {
6
6
  type: "select";
7
7
  label: string;
8
+ isRequired: true;
8
9
  options: {
9
10
  choices: import("@sprucelabs/spruce-core-schemas").SpruceSchemas.Spruce.v2020_07_22.Choice[];
10
11
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schema_1 = require("@sprucelabs/schema");
4
4
  const choices = Array.from({ length: 5 }).map((_, index) => ({
5
- value: `status${index + 1}`,
5
+ value: index + 1,
6
6
  label: `Status ${index + 1}`,
7
7
  }));
8
8
  exports.default = (0, schema_1.buildSchema)({
@@ -12,6 +12,7 @@ exports.default = (0, schema_1.buildSchema)({
12
12
  status: {
13
13
  type: 'select',
14
14
  label: 'Status',
15
+ isRequired: true,
15
16
  options: {
16
17
  choices,
17
18
  },
@@ -6870,6 +6870,7 @@ declare const _default: {
6870
6870
  status: {
6871
6871
  type: "select";
6872
6872
  label: string;
6873
+ isRequired: true;
6873
6874
  options: {
6874
6875
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
6875
6876
  };
@@ -13987,6 +13988,7 @@ declare const _default: {
13987
13988
  status: {
13988
13989
  type: "select";
13989
13990
  label: string;
13991
+ isRequired: true;
13990
13992
  options: {
13991
13993
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
13992
13994
  };
@@ -21102,6 +21104,7 @@ declare const _default: {
21102
21104
  status: {
21103
21105
  type: "select";
21104
21106
  label: string;
21107
+ isRequired: true;
21105
21108
  options: {
21106
21109
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
21107
21110
  };
@@ -28172,6 +28175,7 @@ declare const _default: {
28172
28175
  status: {
28173
28176
  type: "select";
28174
28177
  label: string;
28178
+ isRequired: true;
28175
28179
  options: {
28176
28180
  choices: import("@sprucelabs/calendar-utils").SpruceSchemas.Spruce.v2020_07_22.Choice[];
28177
28181
  };
@@ -1,4 +1,4 @@
1
- import { Card, FormViewController, LineIcon, List, RowStyle, SkillViewController, SwipeCardViewController, ViewController } from '../../types/heartwood.types';
1
+ import { Card, FormViewController, LineIcon, List, RowStyle, SkillViewController, StatusIndicatorStatus, SwipeCardViewController, ViewController } from '../../types/heartwood.types';
2
2
  import ButtonBarViewController from '../../viewControllers/ButtonBar.vc';
3
3
  import ListViewController from '../../viewControllers/list/List.vc';
4
4
  import ListRowViewController from '../../viewControllers/list/ListRow.vc';
@@ -11,6 +11,7 @@ declare const listAssert: {
11
11
  listRendersRow(listVc: ViewController<List>, row: string | number): ListRowViewController;
12
12
  rowDoesNotRenderCheckbox(listVc: ViewController<List>, row: string | number, name?: string): void;
13
13
  rowRendersCheckBox(listVc: ViewController<List>, row: string | number, name?: string): void;
14
+ rowRendersStatusIndicator(listVc: ViewController<List>, row: string | number, expectedStatus?: StatusIndicatorStatus): void;
14
15
  cardRendersList(vc: ViewController<Card> | FormViewController<any>, id?: string): ListViewController;
15
16
  cardDoesNotRenderList(vc: ViewController<Card> | FormViewController<any>, id?: string): void;
16
17
  rowRendersCalendar(listVc: ListViewController, row: string | number): void;
@@ -53,6 +53,16 @@ const listAssert = {
53
53
  test_utils_1.assert.isTruthy(checkbox, `I could not find a checkbox in row '${row}'!`);
54
54
  }
55
55
  },
56
+ rowRendersStatusIndicator(listVc, row, expectedStatus) {
57
+ (0, schema_1.assertOptions)({ listVc, row }, ['listVc', 'row']);
58
+ const rowVc = getListVc(listVc).getRowVc(row);
59
+ const model = render_utility_1.default.render(rowVc);
60
+ const match = model.cells.find((c) => c.statusIndicator);
61
+ test_utils_1.assert.isTruthy(match, `I could not find a status indicator in row '${row}'!`);
62
+ if (expectedStatus) {
63
+ test_utils_1.assert.isEqual(match.statusIndicator?.status, expectedStatus, 'The status indicator is does not right!');
64
+ }
65
+ },
56
66
  cardRendersList(vc, id) {
57
67
  let { match, foundById } = findList(vc, id);
58
68
  if (!match) {
@@ -251,6 +251,8 @@ export type ChartDataSet = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Ch
251
251
  export type ChartDataPoint = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ChartDataPoint;
252
252
  export type Form<S extends Schema = any> = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Form<S>;
253
253
  export type WebRtcPlayer = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.WebRtcPlayer;
254
+ export type StatusIndicator = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.StatusIndicator;
255
+ export type StatusIndicatorStatus = NonNullable<StatusIndicator['status']>;
254
256
  export type NavigationRoute = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRoute;
255
257
  export type LayoutStyle = NonNullable<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.SkillView['layout']>;
256
258
  export type ListColumnWidth = NonNullable<List['columnWidths']>[number];
@@ -36,6 +36,7 @@ class LoginViewController extends Abstract_vc_1.default {
36
36
  this.loginHandler = options.onLogin;
37
37
  this.loginFailedHandler = options.onLoginFailed;
38
38
  this.loginForm = this.BigForm();
39
+ this.device.sendCommand('attemptingLogin');
39
40
  }
40
41
  BigForm() {
41
42
  return this.Controller('bigForm', (0, buildBigForm_1.default)({
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "license": "MIT",
15
15
  "description": "All the power of Heartwood in one, convenient package.",
16
- "version": "119.9.0",
16
+ "version": "119.9.2",
17
17
  "skill": {
18
18
  "namespace": "HeartwoodViewControllers",
19
19
  "commandOverrides": {
@@ -83,7 +83,7 @@
83
83
  "@sprucelabs/globby": "^2.0.502",
84
84
  "@sprucelabs/mercury-core-events": "^26.0.82",
85
85
  "@sprucelabs/mercury-types": "^47.2.89",
86
- "@sprucelabs/schema": "^31.1.6",
86
+ "@sprucelabs/schema": "^31.1.7",
87
87
  "@sprucelabs/spruce-core-schemas": "^40.1.694",
88
88
  "@sprucelabs/spruce-event-utils": "^40.2.99",
89
89
  "@sprucelabs/spruce-skill-utils": "^31.2.107",