@sprucelabs/heartwood-view-controllers 111.1.38 → 111.1.40

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 (67) hide show
  1. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/dropdownButton.schema.js +1 -1
  2. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +3 -3
  3. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema.d.ts +3 -0
  4. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema.js +35 -0
  5. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.d.ts +3 -0
  6. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.js +121 -0
  7. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema.js +1 -1
  8. package/build/.spruce/schemas/schemas.types.d.ts +1546 -490
  9. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/dropdownButton.schema.js +1 -1
  10. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButton.schema.js +3 -3
  11. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema.d.ts +3 -0
  12. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema.js +30 -0
  13. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.d.ts +3 -0
  14. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema.js +116 -0
  15. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/permissionContractReference.schema.js +1 -1
  16. package/build/esm/.spruce/schemas/schemas.types.d.ts +1546 -490
  17. package/build/esm/index.d.ts +2 -0
  18. package/build/esm/index.js +2 -0
  19. package/build/esm/schemas/v2021_02_11/button.builder.d.ts +1 -0
  20. package/build/esm/schemas/v2021_02_11/cards/card.builder.d.ts +3 -0
  21. package/build/esm/schemas/v2021_02_11/cards/cardBody.builder.d.ts +2 -0
  22. package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.d.ts +2 -0
  23. package/build/esm/schemas/v2021_02_11/dialog.builder.d.ts +3 -0
  24. package/build/esm/schemas/v2021_02_11/dropdown.builder.d.ts +1 -0
  25. package/build/esm/schemas/v2021_02_11/dropdown.builder.js +2 -11
  26. package/build/esm/schemas/v2021_02_11/dropdownButton.builder.d.ts +14 -0
  27. package/build/esm/schemas/v2021_02_11/dropdownButton.builder.js +13 -0
  28. package/build/esm/schemas/v2021_02_11/layout.builder.d.ts +3 -0
  29. package/build/esm/schemas/v2021_02_11/map.builder.d.ts +1 -0
  30. package/build/esm/schemas/v2021_02_11/navigation.builder.d.ts +30 -12
  31. package/build/esm/schemas/v2021_02_11/navigation.builder.js +3 -58
  32. package/build/esm/schemas/v2021_02_11/navigationButton.builder.d.ts +511 -0
  33. package/build/esm/schemas/v2021_02_11/navigationButton.builder.js +56 -0
  34. package/build/esm/schemas/v2021_02_11/navigationDropdownButton.builder.d.ts +31 -0
  35. package/build/esm/schemas/v2021_02_11/navigationDropdownButton.builder.js +13 -0
  36. package/build/esm/schemas/v2021_02_11/permissionContractReference.builder.d.ts +13 -0
  37. package/build/esm/schemas/v2021_02_11/permissionContractReference.builder.js +13 -0
  38. package/build/esm/schemas/v2021_02_11/skillView.builder.d.ts +3 -0
  39. package/build/esm/schemas/v2021_02_11/toolBelt.builder.d.ts +3 -0
  40. package/build/esm/viewControllers/SwipeCard.vc.d.ts +1 -1
  41. package/build/esm/viewControllers/SwipeCard.vc.js +2 -0
  42. package/build/index.d.ts +2 -0
  43. package/build/index.js +5 -1
  44. package/build/schemas/v2021_02_11/button.builder.d.ts +1 -0
  45. package/build/schemas/v2021_02_11/cards/card.builder.d.ts +3 -0
  46. package/build/schemas/v2021_02_11/cards/cardBody.builder.d.ts +2 -0
  47. package/build/schemas/v2021_02_11/cards/cardSection.builder.d.ts +2 -0
  48. package/build/schemas/v2021_02_11/dialog.builder.d.ts +3 -0
  49. package/build/schemas/v2021_02_11/dropdown.builder.d.ts +1 -0
  50. package/build/schemas/v2021_02_11/dropdown.builder.js +5 -14
  51. package/build/schemas/v2021_02_11/dropdownButton.builder.d.ts +14 -0
  52. package/build/schemas/v2021_02_11/dropdownButton.builder.js +18 -0
  53. package/build/schemas/v2021_02_11/layout.builder.d.ts +3 -0
  54. package/build/schemas/v2021_02_11/map.builder.d.ts +1 -0
  55. package/build/schemas/v2021_02_11/navigation.builder.d.ts +30 -12
  56. package/build/schemas/v2021_02_11/navigation.builder.js +2 -67
  57. package/build/schemas/v2021_02_11/navigationButton.builder.d.ts +511 -0
  58. package/build/schemas/v2021_02_11/navigationButton.builder.js +74 -0
  59. package/build/schemas/v2021_02_11/navigationDropdownButton.builder.d.ts +31 -0
  60. package/build/schemas/v2021_02_11/navigationDropdownButton.builder.js +21 -0
  61. package/build/schemas/v2021_02_11/permissionContractReference.builder.d.ts +13 -0
  62. package/build/schemas/v2021_02_11/permissionContractReference.builder.js +15 -0
  63. package/build/schemas/v2021_02_11/skillView.builder.d.ts +3 -0
  64. package/build/schemas/v2021_02_11/toolBelt.builder.d.ts +3 -0
  65. package/build/viewControllers/SwipeCard.vc.d.ts +1 -1
  66. package/build/viewControllers/SwipeCard.vc.js +2 -0
  67. package/package.json +1 -1
@@ -7065,6 +7065,7 @@ declare const _default: {
7065
7065
  options: {
7066
7066
  schema: {
7067
7067
  id: string;
7068
+ name: string;
7068
7069
  fields: {
7069
7070
  onClick: {
7070
7071
  type: "raw";
@@ -21395,6 +21396,7 @@ declare const _default: {
21395
21396
  options: {
21396
21397
  schema: {
21397
21398
  id: string;
21399
+ name: string;
21398
21400
  fields: {
21399
21401
  onClick: {
21400
21402
  type: "raw";
@@ -21471,6 +21473,7 @@ declare const _default: {
21471
21473
  options: {
21472
21474
  schema: {
21473
21475
  id: string;
21476
+ name: string;
21474
21477
  fields: {
21475
21478
  onClick: {
21476
21479
  type: "raw";
@@ -41,7 +41,7 @@ export type SwipeViewControllerOptions = {
41
41
  onSlideChange?: (slide: number) => void;
42
42
  isBusy?: boolean;
43
43
  } & Omit<Card, 'body'>;
44
- declare const PASSTHROUGH_METHODS: readonly ["setHeaderTitle", "setHeaderSubtitle", "enableFooter", "disableFooter", "getIsFooterEnabled", "setHeader"];
44
+ declare const PASSTHROUGH_METHODS: readonly ["setHeaderTitle", "setHeaderSubtitle", "enableFooter", "disableFooter", "getIsFooterEnabled", "setHeader", "setFooterIsBusy", "getIsFooterBusy"];
45
45
  export type SwipeCardPassthroughMethods = {
46
46
  [K in (typeof PASSTHROUGH_METHODS)[number]]: CardViewController[K];
47
47
  };
@@ -165,4 +165,6 @@ const PASSTHROUGH_METHODS = [
165
165
  'disableFooter',
166
166
  'getIsFooterEnabled',
167
167
  'setHeader',
168
+ 'setFooterIsBusy',
169
+ 'getIsFooterBusy',
168
170
  ];
package/build/index.d.ts CHANGED
@@ -193,4 +193,6 @@ export { default as progressDetailsSchema } from './.spruce/schemas/heartwoodVie
193
193
  export { default as barChartSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChart.schema';
194
194
  export { default as barChartDataPointSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataPoint.schema';
195
195
  export { default as barChartDataSetSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema';
196
+ export { default as navigationButtonDropdownSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema';
197
+ export { default as navigationDropdownButtonSchema } from './.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema';
196
198
  export * from './toolBelts/ToolBeltStateMachine';
package/build/index.js CHANGED
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.dialogSchema = exports.buttonSchema = exports.lineIconSchema = exports.fancyIconSchema = exports.selectInputSchema = exports.skillViewSchema = exports.bigFormSchema = exports.calendarEventColorsSchema = exports.buildSkillView = exports.buildForm = exports.buildBigForm = exports.AuthenticatorImpl = exports.PolarAreaViewController = exports.MockActiveRecordCard = exports.activeRecordCardAssert = exports.buildActiveRecordList = exports.buildActiveRecordCard = exports.AbstractInputViewController = exports.AutocompleteInputViewController = exports.AbstractCalendarEventViewController = exports.RatingsViewController = exports.ProgressViewController = exports.StatsViewController = exports.FeedViewController = exports.ActiveRecordListViewController = exports.ActiveRecordCardViewController = exports.TalkingSprucebotViewController = exports.ButtonBarViewController = exports.CalendarViewController = exports.SwipeCardViewControllerImpl = exports.SwipeViewControllerImpl = exports.PagerViewController = exports.ProgressNavigatorViewController = exports.CountdownTimerViewController = exports.FormBuilderCardViewControllerImpl = exports.LoginViewController = exports.BarChartViewController = exports.ToolBeltViewController = exports.FormViewControllerImpl = exports.ListCellViewController = exports.ListRowViewController = exports.ListViewController = exports.NavigationViewController = exports.DialogViewController = exports.ConfirmViewController = exports.CardViewControllerImpl = exports.ButtonGroupViewController = exports.AbstractAppController = exports.AbstractViewController = exports.AbstractSkillViewController = void 0;
21
21
  exports.ratingsInputSchema = exports.listRatingsInputSchema = exports.ratingsSchema = exports.progressSchema = exports.statsStatSchema = exports.statsSchema = exports.toggleInputSchema = exports.listToggleInputSchema = exports.addressInputSchema = exports.buttonBarButtonSchema = exports.buttonBarSchema = exports.toolBeltToolSchema = exports.toolBeltSchema = exports.calendarTimeSchema = exports.calendarPersonSchema = exports.calendarSchema = exports.themePropsSchema = exports.themeSchema = exports.cardFooterButtonSchema = exports.criticalErrorSchema = exports.sprucebotTypedMessageSentenceSchema = exports.sprucebotTypedMessageAvatarSchema = exports.selectInputChoiceSchema = exports.calendarEventColorOverrideSchema = exports.portalSchema = exports.listTextInputSchema = exports.listSelectInputSchema = exports.listCellButtonSchema = exports.dropdownButtonSchema = exports.bigFormSectionSchema = exports.textInputSchema = exports.phoneInputSchema = exports.inputSchema = exports.dropdownSchema = exports.sprucebotTypedMessageSchema = exports.talkingSprucebotSchema = exports.sprucebotAvatarSchema = exports.formBuilderImportExportObjectSchema = exports.listCellSchema = exports.listRowSchema = exports.listSchema = exports.layoutSchema = exports.cardSectionSchema = exports.cardHeaderSchema = exports.cardFooterSchema = exports.cardBodySchema = exports.cardSchema = exports.formSectionSchema = exports.formSchema = exports.textSchema = void 0;
22
22
  exports.barChartAssert = exports.progressNavigatorAssert = exports.countdownTimerInteractor = exports.countdownTimerAssert = exports.calendarInteractor = exports.interactor = exports.normalizeScopeFromVc = exports.autocompleteInteractor = exports.formAssert = exports.autocompleteAssert = exports.listAssert = exports.buttonAssert = exports.deviceAssert = exports.navigationAssert = exports.toolBeltAssert = exports.toastAssert = exports.vcPluginAssert = exports.vcDurationAssert = exports.pagerAssert = exports.vcAssert = exports.vcAssertUtil = exports.feedAssert = exports.feedInteractor = exports.normalizeFormSectionFieldNamesUtil = exports.ViewControllerError = exports.SpyDevice = exports.StubStorage = exports.ViewControllerFactory = exports.ViewControllerImporter = exports.ViewControllerExporter = exports.pagerSchema = exports.polarAreaDataItemSchema = exports.polarAreaSchema = exports.inputButtonSchema = exports.mapPinSchema = exports.mapSchema = exports.latLngSchema = exports.formBuilderImportExportPageSchema = exports.autocompleteSuggestionSchema = exports.autocompleteInputSchema = exports.feedSchema = exports.calendarShiftSchema = exports.receiptTotalSchema = exports.receiptSectionSchema = exports.receiptLineItemSchema = exports.receiptHeaderSchema = exports.receiptSchema = exports.listDateInputSchema = exports.calendarSelectedDateSchema = exports.calendarEventSchema = void 0;
23
- exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.destinationSkillViewControllerSchema = exports.permissionContractReferenceSchema = exports.navigationButtonSchema = exports.navigationSchema = exports.ToolBeltStateMachine = exports.removeUniversalViewOptions = exports.buildSkillViewLayout = exports.splitCardsIntoLayouts = exports.listUtil = exports.mapInteractor = exports.mapAssert = exports.renderUtil = exports.routerTestPatcher = exports.dialogTestPatcher = exports.confirmTestPatcher = exports.calendarSeeder = exports.interactionUtil = void 0;
23
+ exports.navigationDropdownButtonSchema = exports.navigationButtonDropdownSchema = exports.barChartDataSetSchema = exports.barChartDataPointSchema = exports.barChartSchema = exports.progressDetailsSchema = exports.progressNavigatorStepSchema = exports.progressNavigatorSchema = exports.countdownTimerSchema = exports.destinationSkillViewControllerSchema = exports.permissionContractReferenceSchema = exports.navigationButtonSchema = exports.navigationSchema = exports.ToolBeltStateMachine = exports.removeUniversalViewOptions = exports.buildSkillViewLayout = exports.splitCardsIntoLayouts = exports.listUtil = exports.mapInteractor = exports.mapAssert = exports.renderUtil = exports.routerTestPatcher = exports.dialogTestPatcher = exports.confirmTestPatcher = exports.calendarSeeder = exports.interactionUtil = void 0;
24
24
  __exportStar(require("./constants"), exports);
25
25
  __exportStar(require("./types/heartwood.types"), exports);
26
26
  __exportStar(require("./utilities/removeUniversalViewOptions"), exports);
@@ -389,4 +389,8 @@ var barChartDataPoint_schema_1 = require("./.spruce/schemas/heartwoodViewControl
389
389
  Object.defineProperty(exports, "barChartDataPointSchema", { enumerable: true, get: function () { return __importDefault(barChartDataPoint_schema_1).default; } });
390
390
  var barChartDataSet_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema");
391
391
  Object.defineProperty(exports, "barChartDataSetSchema", { enumerable: true, get: function () { return __importDefault(barChartDataSet_schema_1).default; } });
392
+ var navigationButtonDropdown_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationButtonDropdown.schema");
393
+ Object.defineProperty(exports, "navigationButtonDropdownSchema", { enumerable: true, get: function () { return __importDefault(navigationButtonDropdown_schema_1).default; } });
394
+ var navigationDropdownButton_schema_1 = require("./.spruce/schemas/heartwoodViewControllers/v2021_02_11/navigationDropdownButton.schema");
395
+ Object.defineProperty(exports, "navigationDropdownButtonSchema", { enumerable: true, get: function () { return __importDefault(navigationDropdownButton_schema_1).default; } });
392
396
  __exportStar(require("./toolBelts/ToolBeltStateMachine"), exports);
@@ -28,6 +28,7 @@ declare const _default: {
28
28
  options: {
29
29
  schema: {
30
30
  id: string;
31
+ name: string;
31
32
  fields: {
32
33
  onClick: {
33
34
  type: "raw";
@@ -6993,6 +6993,7 @@ declare const _default: {
6993
6993
  options: {
6994
6994
  schema: {
6995
6995
  id: string;
6996
+ name: string;
6996
6997
  fields: {
6997
6998
  onClick: {
6998
6999
  type: "raw";
@@ -21323,6 +21324,7 @@ declare const _default: {
21323
21324
  options: {
21324
21325
  schema: {
21325
21326
  id: string;
21327
+ name: string;
21326
21328
  fields: {
21327
21329
  onClick: {
21328
21330
  type: "raw";
@@ -21399,6 +21401,7 @@ declare const _default: {
21399
21401
  options: {
21400
21402
  schema: {
21401
21403
  id: string;
21404
+ name: string;
21402
21405
  fields: {
21403
21406
  onClick: {
21404
21407
  type: "raw";
@@ -14288,6 +14288,7 @@ declare const _default: {
14288
14288
  options: {
14289
14289
  schema: {
14290
14290
  id: string;
14291
+ name: string;
14291
14292
  fields: {
14292
14293
  onClick: {
14293
14294
  type: "raw";
@@ -14364,6 +14365,7 @@ declare const _default: {
14364
14365
  options: {
14365
14366
  schema: {
14366
14367
  id: string;
14368
+ name: string;
14367
14369
  fields: {
14368
14370
  onClick: {
14369
14371
  type: "raw";
@@ -14238,6 +14238,7 @@ declare const _default: {
14238
14238
  options: {
14239
14239
  schema: {
14240
14240
  id: string;
14241
+ name: string;
14241
14242
  fields: {
14242
14243
  onClick: {
14243
14244
  type: "raw";
@@ -14314,6 +14315,7 @@ declare const _default: {
14314
14315
  options: {
14315
14316
  schema: {
14316
14317
  id: string;
14318
+ name: string;
14317
14319
  fields: {
14318
14320
  onClick: {
14319
14321
  type: "raw";
@@ -7015,6 +7015,7 @@ declare const _default: {
7015
7015
  options: {
7016
7016
  schema: {
7017
7017
  id: string;
7018
+ name: string;
7018
7019
  fields: {
7019
7020
  onClick: {
7020
7021
  type: "raw";
@@ -21345,6 +21346,7 @@ declare const _default: {
21345
21346
  options: {
21346
21347
  schema: {
21347
21348
  id: string;
21349
+ name: string;
21348
21350
  fields: {
21349
21351
  onClick: {
21350
21352
  type: "raw";
@@ -21421,6 +21423,7 @@ declare const _default: {
21421
21423
  options: {
21422
21424
  schema: {
21423
21425
  id: string;
21426
+ name: string;
21424
21427
  fields: {
21425
21428
  onClick: {
21426
21429
  type: "raw";
@@ -19,6 +19,7 @@ declare const _default: {
19
19
  options: {
20
20
  schema: {
21
21
  id: string;
22
+ name: string;
22
23
  fields: {
23
24
  onClick: {
24
25
  type: "raw";
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const schema_1 = require("@sprucelabs/schema");
4
- const constants_1 = require("../../constants");
7
+ const dropdownButton_builder_1 = __importDefault(require("./dropdownButton.builder"));
5
8
  exports.default = (0, schema_1.buildSchema)({
6
9
  id: 'dropdown',
7
10
  name: 'Dropdown',
@@ -35,19 +38,7 @@ exports.default = (0, schema_1.buildSchema)({
35
38
  type: 'schema',
36
39
  isArray: true,
37
40
  options: {
38
- schema: {
39
- id: 'dropdownButton',
40
- fields: {
41
- ...constants_1.buttonFields,
42
- onClick: {
43
- type: 'raw',
44
- label: 'Click handler',
45
- options: {
46
- valueType: '(dropdown: HeartwoodTypes.DropdownController ) => Promise<void> | void',
47
- },
48
- },
49
- },
50
- },
41
+ schema: dropdownButton_builder_1.default,
51
42
  },
52
43
  },
53
44
  card: {
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ fields: {
5
+ onClick: {
6
+ type: "raw";
7
+ label: string;
8
+ options: {
9
+ valueType: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const constants_1 = require("../../constants");
5
+ exports.default = (0, schema_1.buildSchema)({
6
+ id: 'dropdownButton',
7
+ name: 'Dropdown button',
8
+ fields: {
9
+ ...constants_1.buttonFields,
10
+ onClick: {
11
+ type: 'raw',
12
+ label: 'Click handler',
13
+ options: {
14
+ valueType: '(dropdown: HeartwoodTypes.DropdownController ) => Promise<void> | void',
15
+ },
16
+ },
17
+ },
18
+ });
@@ -7004,6 +7004,7 @@ declare const _default: {
7004
7004
  options: {
7005
7005
  schema: {
7006
7006
  id: string;
7007
+ name: string;
7007
7008
  fields: {
7008
7009
  onClick: {
7009
7010
  type: "raw";
@@ -21334,6 +21335,7 @@ declare const _default: {
21334
21335
  options: {
21335
21336
  schema: {
21336
21337
  id: string;
21338
+ name: string;
21337
21339
  fields: {
21338
21340
  onClick: {
21339
21341
  type: "raw";
@@ -21410,6 +21412,7 @@ declare const _default: {
21410
21412
  options: {
21411
21413
  schema: {
21412
21414
  id: string;
21415
+ name: string;
21413
21416
  fields: {
21414
21417
  onClick: {
21415
21418
  type: "raw";
@@ -82,6 +82,7 @@ declare const _default: {
82
82
  options: {
83
83
  schema: {
84
84
  id: string;
85
+ name: string;
85
86
  fields: {
86
87
  onClick: {
87
88
  type: "raw";
@@ -27,6 +27,7 @@ declare const _default: {
27
27
  options: {
28
28
  schema: {
29
29
  id: string;
30
+ name: string;
30
31
  fields: {
31
32
  dropdown: {
32
33
  type: "schema";
@@ -34,26 +35,32 @@ declare const _default: {
34
35
  options: {
35
36
  schema: {
36
37
  id: string;
37
- name: string;
38
- description: string;
39
38
  fields: {
40
- position: {
41
- type: "select";
42
- label: string;
43
- options: {
44
- choices: {
45
- label: string;
46
- value: string;
47
- }[];
48
- };
49
- };
50
39
  items: {
51
40
  type: "schema";
52
41
  isArray: true;
53
42
  options: {
54
43
  schema: {
55
44
  id: string;
45
+ name: string;
56
46
  fields: {
47
+ viewPermissionContract: {
48
+ type: "schema";
49
+ options: {
50
+ schema: {
51
+ id: string;
52
+ name: string;
53
+ fields: {
54
+ id: {
55
+ type: "raw";
56
+ options: {
57
+ valueType: string;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ };
57
64
  onClick: {
58
65
  type: "raw";
59
66
  label: string;
@@ -65,6 +72,16 @@ declare const _default: {
65
72
  };
66
73
  };
67
74
  };
75
+ position: {
76
+ type: "select";
77
+ label: string;
78
+ options: {
79
+ choices: {
80
+ label: string;
81
+ value: string;
82
+ }[];
83
+ };
84
+ };
68
85
  card: {
69
86
  type: "raw";
70
87
  options: {
@@ -480,6 +497,7 @@ declare const _default: {
480
497
  options: {
481
498
  schema: {
482
499
  id: string;
500
+ name: string;
483
501
  fields: {
484
502
  id: {
485
503
  type: "raw";
@@ -4,8 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
- const constants_1 = require("../../constants");
8
- const dropdown_builder_1 = __importDefault(require("./dropdown.builder"));
7
+ const navigationButton_builder_1 = __importDefault(require("./navigationButton.builder"));
9
8
  exports.default = (0, schema_1.buildSchema)({
10
9
  id: 'navigation',
11
10
  name: 'Navigation',
@@ -37,71 +36,7 @@ exports.default = (0, schema_1.buildSchema)({
37
36
  type: 'schema',
38
37
  isArray: true,
39
38
  options: {
40
- schema: (0, schema_1.buildSchema)({
41
- id: 'navigationButton',
42
- fields: {
43
- lineIcon: {
44
- ...constants_1.buttonFields.lineIcon,
45
- isRequired: true,
46
- },
47
- id: {
48
- type: 'id',
49
- isRequired: true,
50
- },
51
- viewPermissionContract: {
52
- type: 'schema',
53
- options: {
54
- schema: (0, schema_1.buildSchema)({
55
- id: 'permissionContractReference',
56
- fields: {
57
- id: {
58
- type: 'raw',
59
- options: {
60
- valueType: 'MercuryTypes.PermissionContractId',
61
- },
62
- },
63
- },
64
- }),
65
- },
66
- },
67
- destination: {
68
- type: 'schema',
69
- label: 'Destination skill view controller',
70
- options: {
71
- schema: (0, schema_1.buildSchema)({
72
- id: 'destinationSkillViewController',
73
- fields: {
74
- id: {
75
- type: 'raw',
76
- isRequired: true,
77
- options: {
78
- valueType: 'HeartwoodTypes.SkillViewControllerId',
79
- },
80
- },
81
- args: {
82
- type: 'raw',
83
- options: {
84
- valueType: 'Record<string, any>',
85
- },
86
- },
87
- },
88
- }),
89
- },
90
- },
91
- ...(0, schema_1.pickFields)(constants_1.buttonFields, [
92
- 'isEnabled',
93
- 'label',
94
- 'onClick',
95
- ]),
96
- dropdown: {
97
- type: 'schema',
98
- label: 'Dropdown',
99
- options: {
100
- schema: dropdown_builder_1.default,
101
- },
102
- },
103
- },
104
- }),
39
+ schema: navigationButton_builder_1.default,
105
40
  },
106
41
  },
107
42
  },