@sprucelabs/heartwood-view-controllers 122.0.18 → 122.0.19

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,7 +4,6 @@ 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 navigationButton_schema_1 = __importDefault(require("./navigationButton.schema"));
8
7
  const navigationRoute_schema_1 = __importDefault(require("./navigationRoute.schema"));
9
8
  const navigationSchema = {
10
9
  id: 'navigation',
@@ -36,9 +35,9 @@ const navigationSchema = {
36
35
  },
37
36
  /** . */
38
37
  'buttons': {
39
- type: 'schema',
38
+ type: 'raw',
40
39
  isArray: true,
41
- options: { schema: navigationButton_schema_1.default, }
40
+ options: { valueType: `HeartwoodTypes.NavigationItem`, }
42
41
  },
43
42
  /** . */
44
43
  'additionalValidRoutes': {
@@ -38,13 +38,6 @@ const navigationButtonSchema = {
38
38
  type: 'schema',
39
39
  options: { schema: routerDestination_schema_1.default, }
40
40
  },
41
- /** Is spacer. This will act as a spacer and spread buttons out evenly. */
42
- 'isSpacer': {
43
- label: 'Is spacer',
44
- type: 'boolean',
45
- hint: 'This will act as a spacer and spread buttons out evenly.',
46
- options: undefined
47
- },
48
41
  /** Selected. */
49
42
  'isEnabled': {
50
43
  label: 'Selected',
@@ -3308,6 +3308,60 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3308
3308
  interface ProgressNavigatorEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ProgressNavigatorSchema> {
3309
3309
  }
3310
3310
  }
3311
+ namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3312
+ interface NavigationButtonDropdown {
3313
+ /** Position. */
3314
+ 'position'?: ("top" | "right" | "bottom" | "left") | undefined | null;
3315
+ 'items'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButton[] | undefined | null;
3316
+ 'card'?: (HeartwoodTypes.Card) | undefined | null;
3317
+ }
3318
+ interface NavigationButtonDropdownSchema extends SpruceSchema.Schema {
3319
+ id: 'navigationButtonDropdown';
3320
+ version: 'v2021_02_11';
3321
+ namespace: 'HeartwoodViewControllers';
3322
+ name: '';
3323
+ moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
3324
+ fields: {
3325
+ /** Position. */
3326
+ 'position': {
3327
+ label: 'Position';
3328
+ type: 'select';
3329
+ options: {
3330
+ choices: [{
3331
+ "label": "Top";
3332
+ "value": "top";
3333
+ }, {
3334
+ "label": "Right";
3335
+ "value": "right";
3336
+ }, {
3337
+ "label": "Bottom";
3338
+ "value": "bottom";
3339
+ }, {
3340
+ "label": "Left";
3341
+ "value": "left";
3342
+ }];
3343
+ };
3344
+ };
3345
+ /** . */
3346
+ 'items': {
3347
+ type: 'schema';
3348
+ isArray: true;
3349
+ options: {
3350
+ schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButtonSchema;
3351
+ };
3352
+ };
3353
+ /** . */
3354
+ 'card': {
3355
+ type: 'raw';
3356
+ options: {
3357
+ valueType: `HeartwoodTypes.Card`;
3358
+ };
3359
+ };
3360
+ };
3361
+ }
3362
+ interface NavigationButtonDropdownEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationButtonDropdownSchema> {
3363
+ }
3364
+ }
3311
3365
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3312
3366
  interface RouterDestination {
3313
3367
  'id': (HeartwoodTypes.SkillViewControllerId);
@@ -3363,38 +3417,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3363
3417
  interface PermissionContractReferenceEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReferenceSchema> {
3364
3418
  }
3365
3419
  }
3366
- namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3367
- interface NavigationRoute {
3368
- 'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
3369
- 'destination': SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination;
3370
- }
3371
- interface NavigationRouteSchema extends SpruceSchema.Schema {
3372
- id: 'navigationRoute';
3373
- version: 'v2021_02_11';
3374
- namespace: 'HeartwoodViewControllers';
3375
- name: '';
3376
- moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
3377
- fields: {
3378
- /** . */
3379
- 'viewPermissionContract': {
3380
- type: 'schema';
3381
- options: {
3382
- schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReferenceSchema;
3383
- };
3384
- };
3385
- /** . */
3386
- 'destination': {
3387
- type: 'schema';
3388
- isRequired: true;
3389
- options: {
3390
- schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
3391
- };
3392
- };
3393
- };
3394
- }
3395
- interface NavigationRouteEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRouteSchema> {
3396
- }
3397
- }
3398
3420
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3399
3421
  interface NavigationButton {
3400
3422
  /** Line icon. */
@@ -3403,8 +3425,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3403
3425
  'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
3404
3426
  /** Destination skill view controller. */
3405
3427
  'destination'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination | undefined | null;
3406
- /** Is spacer. This will act as a spacer and spread buttons out evenly. */
3407
- 'isSpacer'?: boolean | undefined | null;
3408
3428
  /** Selected. */
3409
3429
  'isEnabled'?: boolean | undefined | null;
3410
3430
  /** Label. */
@@ -3864,13 +3884,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3864
3884
  schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
3865
3885
  };
3866
3886
  };
3867
- /** Is spacer. This will act as a spacer and spread buttons out evenly. */
3868
- 'isSpacer': {
3869
- label: 'Is spacer';
3870
- type: 'boolean';
3871
- hint: 'This will act as a spacer and spread buttons out evenly.';
3872
- options: undefined;
3873
- };
3874
3887
  /** Selected. */
3875
3888
  'isEnabled': {
3876
3889
  label: 'Selected';
@@ -3911,69 +3924,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3911
3924
  interface NavigationButtonEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationButtonSchema> {
3912
3925
  }
3913
3926
  }
3914
- namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3915
- interface Navigation {
3916
- /** Render button labels. Should the button labels be rendered? */
3917
- 'shouldRenderButtonLabels'?: boolean | undefined | null;
3918
- /** Is visible. Should the navigation be visible? Defaults to true. */
3919
- 'isVisible'?: boolean | undefined | null;
3920
- /** Controller. */
3921
- 'controller'?: (HeartwoodTypes.ViewController<HeartwoodTypes.Navigation>) | undefined | null;
3922
- 'buttons'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationButton[] | undefined | null;
3923
- 'additionalValidRoutes'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRoute[] | undefined | null;
3924
- }
3925
- interface NavigationSchema extends SpruceSchema.Schema {
3926
- id: 'navigation';
3927
- version: 'v2021_02_11';
3928
- namespace: 'HeartwoodViewControllers';
3929
- name: 'Navigation';
3930
- importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\''];
3931
- moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
3932
- fields: {
3933
- /** Render button labels. Should the button labels be rendered? */
3934
- 'shouldRenderButtonLabels': {
3935
- label: 'Render button labels';
3936
- type: 'boolean';
3937
- hint: 'Should the button labels be rendered?';
3938
- options: undefined;
3939
- };
3940
- /** Is visible. Should the navigation be visible? Defaults to true. */
3941
- 'isVisible': {
3942
- label: 'Is visible';
3943
- type: 'boolean';
3944
- hint: 'Should the navigation be visible? Defaults to true.';
3945
- options: undefined;
3946
- };
3947
- /** Controller. */
3948
- 'controller': {
3949
- label: 'Controller';
3950
- type: 'raw';
3951
- options: {
3952
- valueType: `HeartwoodTypes.ViewController<HeartwoodTypes.Navigation>`;
3953
- };
3954
- };
3955
- /** . */
3956
- 'buttons': {
3957
- type: 'schema';
3958
- isArray: true;
3959
- options: {
3960
- schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationButtonSchema;
3961
- };
3962
- };
3963
- /** . */
3964
- 'additionalValidRoutes': {
3965
- type: 'schema';
3966
- isArray: true;
3967
- minArrayLength: 0;
3968
- options: {
3969
- schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRouteSchema;
3970
- };
3971
- };
3972
- };
3973
- }
3974
- interface NavigationEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationSchema> {
3975
- }
3976
- }
3977
3927
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
3978
3928
  interface NavigationDropdownButton {
3979
3929
  'id'?: string | undefined | null;
@@ -5003,57 +4953,98 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5003
4953
  }
5004
4954
  }
5005
4955
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
5006
- interface NavigationButtonDropdown {
5007
- /** Position. */
5008
- 'position'?: ("top" | "right" | "bottom" | "left") | undefined | null;
5009
- 'items'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButton[] | undefined | null;
5010
- 'card'?: (HeartwoodTypes.Card) | undefined | null;
4956
+ interface NavigationRoute {
4957
+ 'viewPermissionContract'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReference | undefined | null;
4958
+ 'destination': SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestination;
5011
4959
  }
5012
- interface NavigationButtonDropdownSchema extends SpruceSchema.Schema {
5013
- id: 'navigationButtonDropdown';
4960
+ interface NavigationRouteSchema extends SpruceSchema.Schema {
4961
+ id: 'navigationRoute';
5014
4962
  version: 'v2021_02_11';
5015
4963
  namespace: 'HeartwoodViewControllers';
5016
4964
  name: '';
5017
4965
  moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
5018
4966
  fields: {
5019
- /** Position. */
5020
- 'position': {
5021
- label: 'Position';
5022
- type: 'select';
4967
+ /** . */
4968
+ 'viewPermissionContract': {
4969
+ type: 'schema';
5023
4970
  options: {
5024
- choices: [{
5025
- "label": "Top";
5026
- "value": "top";
5027
- }, {
5028
- "label": "Right";
5029
- "value": "right";
5030
- }, {
5031
- "label": "Bottom";
5032
- "value": "bottom";
5033
- }, {
5034
- "label": "Left";
5035
- "value": "left";
5036
- }];
4971
+ schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.PermissionContractReferenceSchema;
5037
4972
  };
5038
4973
  };
5039
4974
  /** . */
5040
- 'items': {
4975
+ 'destination': {
5041
4976
  type: 'schema';
5042
- isArray: true;
4977
+ isRequired: true;
5043
4978
  options: {
5044
- schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationDropdownButtonSchema;
4979
+ schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.RouterDestinationSchema;
4980
+ };
4981
+ };
4982
+ };
4983
+ }
4984
+ interface NavigationRouteEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRouteSchema> {
4985
+ }
4986
+ }
4987
+ namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
4988
+ interface Navigation {
4989
+ /** Render button labels. Should the button labels be rendered? */
4990
+ 'shouldRenderButtonLabels'?: boolean | undefined | null;
4991
+ /** Is visible. Should the navigation be visible? Defaults to true. */
4992
+ 'isVisible'?: boolean | undefined | null;
4993
+ /** Controller. */
4994
+ 'controller'?: (HeartwoodTypes.ViewController<HeartwoodTypes.Navigation>) | undefined | null;
4995
+ 'buttons'?: (HeartwoodTypes.NavigationItem)[] | undefined | null;
4996
+ 'additionalValidRoutes'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRoute[] | undefined | null;
4997
+ }
4998
+ interface NavigationSchema extends SpruceSchema.Schema {
4999
+ id: 'navigation';
5000
+ version: 'v2021_02_11';
5001
+ namespace: 'HeartwoodViewControllers';
5002
+ name: 'Navigation';
5003
+ importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\''];
5004
+ moduleToImportFromWhenRemote: '@sprucelabs/heartwood-view-controllers';
5005
+ fields: {
5006
+ /** Render button labels. Should the button labels be rendered? */
5007
+ 'shouldRenderButtonLabels': {
5008
+ label: 'Render button labels';
5009
+ type: 'boolean';
5010
+ hint: 'Should the button labels be rendered?';
5011
+ options: undefined;
5012
+ };
5013
+ /** Is visible. Should the navigation be visible? Defaults to true. */
5014
+ 'isVisible': {
5015
+ label: 'Is visible';
5016
+ type: 'boolean';
5017
+ hint: 'Should the navigation be visible? Defaults to true.';
5018
+ options: undefined;
5019
+ };
5020
+ /** Controller. */
5021
+ 'controller': {
5022
+ label: 'Controller';
5023
+ type: 'raw';
5024
+ options: {
5025
+ valueType: `HeartwoodTypes.ViewController<HeartwoodTypes.Navigation>`;
5045
5026
  };
5046
5027
  };
5047
5028
  /** . */
5048
- 'card': {
5029
+ 'buttons': {
5049
5030
  type: 'raw';
5031
+ isArray: true;
5050
5032
  options: {
5051
- valueType: `HeartwoodTypes.Card`;
5033
+ valueType: `HeartwoodTypes.NavigationItem`;
5034
+ };
5035
+ };
5036
+ /** . */
5037
+ 'additionalValidRoutes': {
5038
+ type: 'schema';
5039
+ isArray: true;
5040
+ minArrayLength: 0;
5041
+ options: {
5042
+ schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationRouteSchema;
5052
5043
  };
5053
5044
  };
5054
5045
  };
5055
5046
  }
5056
- interface NavigationButtonDropdownEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationButtonDropdownSchema> {
5047
+ interface NavigationEntity extends SchemaEntity<SpruceSchemas.HeartwoodViewControllers.v2021_02_11.NavigationSchema> {
5057
5048
  }
5058
5049
  }
5059
5050
  namespace SpruceSchemas.HeartwoodViewControllers.v2021_02_11 {
@@ -1,5 +1,4 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
- import navigationButtonSchema_v2021_02_11 from './navigationButton.schema.js';
3
2
  import navigationRouteSchema_v2021_02_11 from './navigationRoute.schema.js';
4
3
  const navigationSchema = {
5
4
  id: 'navigation',
@@ -31,9 +30,9 @@ const navigationSchema = {
31
30
  },
32
31
  /** . */
33
32
  'buttons': {
34
- type: 'schema',
33
+ type: 'raw',
35
34
  isArray: true,
36
- options: { schema: navigationButtonSchema_v2021_02_11, }
35
+ options: { valueType: `HeartwoodTypes.NavigationItem`, }
37
36
  },
38
37
  /** . */
39
38
  'additionalValidRoutes': {
@@ -33,13 +33,6 @@ const navigationButtonSchema = {
33
33
  type: 'schema',
34
34
  options: { schema: routerDestinationSchema_v2021_02_11, }
35
35
  },
36
- /** Is spacer. This will act as a spacer and spread buttons out evenly. */
37
- 'isSpacer': {
38
- label: 'Is spacer',
39
- type: 'boolean',
40
- hint: 'This will act as a spacer and spread buttons out evenly.',
41
- options: undefined
42
- },
43
36
  /** Selected. */
44
37
  'isEnabled': {
45
38
  label: 'Selected',