@sprucelabs/heartwood-view-controllers 117.2.28 → 118.0.0

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 (81) hide show
  1. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChart.schema.js +3 -3
  2. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/cardSection.schema.js +7 -0
  3. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/chartDataPoint.schema.d.ts +3 -0
  4. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{barChartDataPoint.schema.js → chartDataPoint.schema.js} +4 -4
  5. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/chartDataSet.schema.d.ts +3 -0
  6. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{barChartDataSet.schema.js → chartDataSet.schema.js} +7 -7
  7. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lineGraph.schema.d.ts +3 -0
  8. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lineGraph.schema.js +36 -0
  9. package/build/.spruce/schemas/schemas.types.d.ts +231 -181
  10. package/build/controllerMap.d.ts +3 -2
  11. package/build/controllerMap.js +2 -1
  12. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChart.schema.js +3 -3
  13. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/cardSection.schema.js +7 -0
  14. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/chartDataPoint.schema.d.ts +3 -0
  15. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{barChartDataPoint.schema.js → chartDataPoint.schema.js} +4 -4
  16. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/chartDataSet.schema.d.ts +3 -0
  17. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/{barChartDataSet.schema.js → chartDataSet.schema.js} +7 -7
  18. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lineGraph.schema.d.ts +3 -0
  19. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/lineGraph.schema.js +31 -0
  20. package/build/esm/.spruce/schemas/schemas.types.d.ts +231 -181
  21. package/build/esm/controllerMap.d.ts +3 -2
  22. package/build/esm/controllerMap.js +3 -2
  23. package/build/esm/index.d.ts +6 -4
  24. package/build/esm/index.js +6 -4
  25. package/build/esm/schemas/v2021_02_11/barChart.builder.d.ts +1 -0
  26. package/build/esm/schemas/v2021_02_11/barChart.builder.js +3 -29
  27. package/build/esm/schemas/v2021_02_11/cards/card.builder.d.ts +59 -0
  28. package/build/esm/schemas/v2021_02_11/cards/cardBody.builder.d.ts +59 -0
  29. package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.d.ts +59 -0
  30. package/build/esm/schemas/v2021_02_11/cards/cardSection.builder.js +8 -0
  31. package/build/esm/schemas/v2021_02_11/chartDataSet.builder.d.ts +30 -0
  32. package/build/esm/schemas/v2021_02_11/chartDataSet.builder.js +30 -0
  33. package/build/esm/schemas/v2021_02_11/dialog.builder.d.ts +59 -0
  34. package/build/esm/schemas/v2021_02_11/layout.builder.d.ts +59 -0
  35. package/build/esm/schemas/v2021_02_11/lineGraph.builder.d.ts +53 -0
  36. package/build/esm/schemas/v2021_02_11/lineGraph.builder.js +26 -0
  37. package/build/esm/schemas/v2021_02_11/lockScreen.builder.d.ts +59 -0
  38. package/build/esm/schemas/v2021_02_11/skillView.builder.d.ts +59 -0
  39. package/build/esm/schemas/v2021_02_11/toolBelt.builder.d.ts +59 -0
  40. package/build/esm/tests/utilities/chartAssert.d.ts +7 -0
  41. package/build/esm/tests/utilities/chartAssert.js +33 -0
  42. package/build/esm/types/heartwood.types.d.ts +10 -3
  43. package/build/esm/viewControllers/charts/BarChart.vc.d.ts +9 -0
  44. package/build/esm/viewControllers/{BarChart.vc.js → charts/BarChart.vc.js} +2 -2
  45. package/build/esm/viewControllers/charts/LineGraph.vc.d.ts +9 -0
  46. package/build/esm/viewControllers/charts/LineGraph.vc.js +19 -0
  47. package/build/index.d.ts +6 -4
  48. package/build/index.js +15 -11
  49. package/build/schemas/v2021_02_11/barChart.builder.d.ts +1 -0
  50. package/build/schemas/v2021_02_11/barChart.builder.js +6 -29
  51. package/build/schemas/v2021_02_11/cards/card.builder.d.ts +59 -0
  52. package/build/schemas/v2021_02_11/cards/cardBody.builder.d.ts +59 -0
  53. package/build/schemas/v2021_02_11/cards/cardSection.builder.d.ts +59 -0
  54. package/build/schemas/v2021_02_11/cards/cardSection.builder.js +8 -0
  55. package/build/schemas/v2021_02_11/chartDataSet.builder.d.ts +30 -0
  56. package/build/schemas/v2021_02_11/chartDataSet.builder.js +32 -0
  57. package/build/schemas/v2021_02_11/dialog.builder.d.ts +59 -0
  58. package/build/schemas/v2021_02_11/layout.builder.d.ts +59 -0
  59. package/build/schemas/v2021_02_11/lineGraph.builder.d.ts +53 -0
  60. package/build/schemas/v2021_02_11/lineGraph.builder.js +31 -0
  61. package/build/schemas/v2021_02_11/lockScreen.builder.d.ts +59 -0
  62. package/build/schemas/v2021_02_11/skillView.builder.d.ts +59 -0
  63. package/build/schemas/v2021_02_11/toolBelt.builder.d.ts +59 -0
  64. package/build/tests/utilities/chartAssert.d.ts +7 -0
  65. package/build/tests/utilities/chartAssert.js +38 -0
  66. package/build/types/heartwood.types.d.ts +10 -3
  67. package/build/viewControllers/charts/BarChart.vc.d.ts +9 -0
  68. package/build/viewControllers/{BarChart.vc.js → charts/BarChart.vc.js} +2 -2
  69. package/build/viewControllers/charts/LineGraph.vc.d.ts +9 -0
  70. package/build/viewControllers/charts/LineGraph.vc.js +27 -0
  71. package/package.json +5 -5
  72. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataPoint.schema.d.ts +0 -3
  73. package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema.d.ts +0 -3
  74. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataPoint.schema.d.ts +0 -3
  75. package/build/esm/.spruce/schemas/heartwoodViewControllers/v2021_02_11/barChartDataSet.schema.d.ts +0 -3
  76. package/build/esm/tests/utilities/barChartAssert.d.ts +0 -7
  77. package/build/esm/tests/utilities/barChartAssert.js +0 -24
  78. package/build/esm/viewControllers/BarChart.vc.d.ts +0 -9
  79. package/build/tests/utilities/barChartAssert.d.ts +0 -7
  80. package/build/tests/utilities/barChartAssert.js +0 -29
  81. package/build/viewControllers/BarChart.vc.d.ts +0 -9
@@ -1,4 +1,5 @@
1
1
  import { buildSchema } from '@sprucelabs/schema';
2
+ import chartDataSetBuilder from './chartDataSet.builder.js';
2
3
  export default buildSchema({
3
4
  id: 'barChart',
4
5
  name: 'Bar chart',
@@ -9,7 +10,7 @@ export default buildSchema({
9
10
  controller: {
10
11
  type: 'raw',
11
12
  options: {
12
- valueType: 'HeartwoodTypes.BarChartViewController',
13
+ valueType: 'HeartwoodTypes.ChartViewController<HeartwoodTypes.BarChart>',
13
14
  },
14
15
  },
15
16
  dataSets: {
@@ -18,34 +19,7 @@ export default buildSchema({
18
19
  isArray: true,
19
20
  minArrayLength: 0,
20
21
  options: {
21
- schema: buildSchema({
22
- id: 'barChartDataSet',
23
- fields: {
24
- label: {
25
- type: 'text',
26
- },
27
- dataPoints: {
28
- type: 'schema',
29
- isRequired: true,
30
- isArray: true,
31
- minArrayLength: 0,
32
- options: {
33
- schema: buildSchema({
34
- id: 'barChartDataPoint',
35
- fields: {
36
- label: {
37
- type: 'text',
38
- },
39
- value: {
40
- type: 'number',
41
- isRequired: true,
42
- },
43
- },
44
- }),
45
- },
46
- },
47
- },
48
- }),
22
+ schema: chartDataSetBuilder,
49
23
  },
50
24
  },
51
25
  },
@@ -29406,6 +29406,65 @@ declare const _default: {
29406
29406
  options: {
29407
29407
  schema: {
29408
29408
  id: string;
29409
+ name: string;
29410
+ fields: {
29411
+ label: {
29412
+ type: "text";
29413
+ };
29414
+ dataPoints: {
29415
+ type: "schema";
29416
+ isRequired: true;
29417
+ isArray: true;
29418
+ minArrayLength: number;
29419
+ options: {
29420
+ schema: {
29421
+ id: string;
29422
+ fields: {
29423
+ label: {
29424
+ type: "text";
29425
+ };
29426
+ value: {
29427
+ type: "number";
29428
+ isRequired: true;
29429
+ };
29430
+ };
29431
+ };
29432
+ };
29433
+ };
29434
+ };
29435
+ };
29436
+ };
29437
+ };
29438
+ };
29439
+ };
29440
+ };
29441
+ };
29442
+ lineGraph: {
29443
+ type: "schema";
29444
+ label: string;
29445
+ options: {
29446
+ schema: {
29447
+ id: string;
29448
+ name: string;
29449
+ fields: {
29450
+ id: {
29451
+ type: "id";
29452
+ };
29453
+ controller: {
29454
+ type: "raw";
29455
+ options: {
29456
+ valueType: string;
29457
+ };
29458
+ };
29459
+ dataSets: {
29460
+ type: "schema";
29461
+ isRequired: true;
29462
+ isArray: true;
29463
+ minArrayLength: number;
29464
+ options: {
29465
+ schema: {
29466
+ id: string;
29467
+ name: string;
29409
29468
  fields: {
29410
29469
  label: {
29411
29470
  type: "text";
@@ -22370,6 +22370,65 @@ declare const _default: {
22370
22370
  options: {
22371
22371
  schema: {
22372
22372
  id: string;
22373
+ name: string;
22374
+ fields: {
22375
+ label: {
22376
+ type: "text";
22377
+ };
22378
+ dataPoints: {
22379
+ type: "schema";
22380
+ isRequired: true;
22381
+ isArray: true;
22382
+ minArrayLength: number;
22383
+ options: {
22384
+ schema: {
22385
+ id: string;
22386
+ fields: {
22387
+ label: {
22388
+ type: "text";
22389
+ };
22390
+ value: {
22391
+ type: "number";
22392
+ isRequired: true;
22393
+ };
22394
+ };
22395
+ };
22396
+ };
22397
+ };
22398
+ };
22399
+ };
22400
+ };
22401
+ };
22402
+ };
22403
+ };
22404
+ };
22405
+ };
22406
+ lineGraph: {
22407
+ type: "schema";
22408
+ label: string;
22409
+ options: {
22410
+ schema: {
22411
+ id: string;
22412
+ name: string;
22413
+ fields: {
22414
+ id: {
22415
+ type: "id";
22416
+ };
22417
+ controller: {
22418
+ type: "raw";
22419
+ options: {
22420
+ valueType: string;
22421
+ };
22422
+ };
22423
+ dataSets: {
22424
+ type: "schema";
22425
+ isRequired: true;
22426
+ isArray: true;
22427
+ minArrayLength: number;
22428
+ options: {
22429
+ schema: {
22430
+ id: string;
22431
+ name: string;
22373
22432
  fields: {
22374
22433
  label: {
22375
22434
  type: "text";
@@ -22320,6 +22320,65 @@ declare const _default: {
22320
22320
  options: {
22321
22321
  schema: {
22322
22322
  id: string;
22323
+ name: string;
22324
+ fields: {
22325
+ label: {
22326
+ type: "text";
22327
+ };
22328
+ dataPoints: {
22329
+ type: "schema";
22330
+ isRequired: true;
22331
+ isArray: true;
22332
+ minArrayLength: number;
22333
+ options: {
22334
+ schema: {
22335
+ id: string;
22336
+ fields: {
22337
+ label: {
22338
+ type: "text";
22339
+ };
22340
+ value: {
22341
+ type: "number";
22342
+ isRequired: true;
22343
+ };
22344
+ };
22345
+ };
22346
+ };
22347
+ };
22348
+ };
22349
+ };
22350
+ };
22351
+ };
22352
+ };
22353
+ };
22354
+ };
22355
+ };
22356
+ lineGraph: {
22357
+ type: "schema";
22358
+ label: string;
22359
+ options: {
22360
+ schema: {
22361
+ id: string;
22362
+ name: string;
22363
+ fields: {
22364
+ id: {
22365
+ type: "id";
22366
+ };
22367
+ controller: {
22368
+ type: "raw";
22369
+ options: {
22370
+ valueType: string;
22371
+ };
22372
+ };
22373
+ dataSets: {
22374
+ type: "schema";
22375
+ isRequired: true;
22376
+ isArray: true;
22377
+ minArrayLength: number;
22378
+ options: {
22379
+ schema: {
22380
+ id: string;
22381
+ name: string;
22323
22382
  fields: {
22324
22383
  label: {
22325
22384
  type: "text";
@@ -7,6 +7,7 @@ import countdownTimerBuilder from '../countdownTimer.builder.js';
7
7
  import feedBuilder from '../feed.builder.js';
8
8
  import bigFormBuilder from '../forms/bigForm.builder.js';
9
9
  import formBuilder from '../forms/form.builder.js';
10
+ import lineGraphBuilder from '../lineGraph.builder.js';
10
11
  import listBuilder from '../list.builder.js';
11
12
  import mapBuilder from '../map.builder.js';
12
13
  import pagerBuilder from '../pager.builder.js';
@@ -187,6 +188,13 @@ export default buildSchema({
187
188
  schema: barChartBuilder,
188
189
  },
189
190
  },
191
+ lineGraph: {
192
+ type: 'schema',
193
+ label: 'Line graph',
194
+ options: {
195
+ schema: lineGraphBuilder,
196
+ },
197
+ },
190
198
  shouldRenderContentsAsGrid: {
191
199
  type: 'boolean',
192
200
  label: 'Grid',
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ fields: {
5
+ label: {
6
+ type: "text";
7
+ };
8
+ dataPoints: {
9
+ type: "schema";
10
+ isRequired: true;
11
+ isArray: true;
12
+ minArrayLength: number;
13
+ options: {
14
+ schema: {
15
+ id: string;
16
+ fields: {
17
+ label: {
18
+ type: "text";
19
+ };
20
+ value: {
21
+ type: "number";
22
+ isRequired: true;
23
+ };
24
+ };
25
+ };
26
+ };
27
+ };
28
+ };
29
+ };
30
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { buildSchema } from '@sprucelabs/schema';
2
+ export default buildSchema({
3
+ id: 'chartDataSet',
4
+ name: 'Chart data set',
5
+ fields: {
6
+ label: {
7
+ type: 'text',
8
+ },
9
+ dataPoints: {
10
+ type: 'schema',
11
+ isRequired: true,
12
+ isArray: true,
13
+ minArrayLength: 0,
14
+ options: {
15
+ schema: buildSchema({
16
+ id: 'chartDataPoint',
17
+ fields: {
18
+ label: {
19
+ type: 'text',
20
+ },
21
+ value: {
22
+ type: 'number',
23
+ isRequired: true,
24
+ },
25
+ },
26
+ }),
27
+ },
28
+ },
29
+ },
30
+ });
@@ -29437,6 +29437,65 @@ declare const _default: {
29437
29437
  options: {
29438
29438
  schema: {
29439
29439
  id: string;
29440
+ name: string;
29441
+ fields: {
29442
+ label: {
29443
+ type: "text";
29444
+ };
29445
+ dataPoints: {
29446
+ type: "schema";
29447
+ isRequired: true;
29448
+ isArray: true;
29449
+ minArrayLength: number;
29450
+ options: {
29451
+ schema: {
29452
+ id: string;
29453
+ fields: {
29454
+ label: {
29455
+ type: "text";
29456
+ };
29457
+ value: {
29458
+ type: "number";
29459
+ isRequired: true;
29460
+ };
29461
+ };
29462
+ };
29463
+ };
29464
+ };
29465
+ };
29466
+ };
29467
+ };
29468
+ };
29469
+ };
29470
+ };
29471
+ };
29472
+ };
29473
+ lineGraph: {
29474
+ type: "schema";
29475
+ label: string;
29476
+ options: {
29477
+ schema: {
29478
+ id: string;
29479
+ name: string;
29480
+ fields: {
29481
+ id: {
29482
+ type: "id";
29483
+ };
29484
+ controller: {
29485
+ type: "raw";
29486
+ options: {
29487
+ valueType: string;
29488
+ };
29489
+ };
29490
+ dataSets: {
29491
+ type: "schema";
29492
+ isRequired: true;
29493
+ isArray: true;
29494
+ minArrayLength: number;
29495
+ options: {
29496
+ schema: {
29497
+ id: string;
29498
+ name: string;
29440
29499
  fields: {
29441
29500
  label: {
29442
29501
  type: "text";
@@ -29417,6 +29417,65 @@ declare const _default: {
29417
29417
  options: {
29418
29418
  schema: {
29419
29419
  id: string;
29420
+ name: string;
29421
+ fields: {
29422
+ label: {
29423
+ type: "text";
29424
+ };
29425
+ dataPoints: {
29426
+ type: "schema";
29427
+ isRequired: true;
29428
+ isArray: true;
29429
+ minArrayLength: number;
29430
+ options: {
29431
+ schema: {
29432
+ id: string;
29433
+ fields: {
29434
+ label: {
29435
+ type: "text";
29436
+ };
29437
+ value: {
29438
+ type: "number";
29439
+ isRequired: true;
29440
+ };
29441
+ };
29442
+ };
29443
+ };
29444
+ };
29445
+ };
29446
+ };
29447
+ };
29448
+ };
29449
+ };
29450
+ };
29451
+ };
29452
+ };
29453
+ lineGraph: {
29454
+ type: "schema";
29455
+ label: string;
29456
+ options: {
29457
+ schema: {
29458
+ id: string;
29459
+ name: string;
29460
+ fields: {
29461
+ id: {
29462
+ type: "id";
29463
+ };
29464
+ controller: {
29465
+ type: "raw";
29466
+ options: {
29467
+ valueType: string;
29468
+ };
29469
+ };
29470
+ dataSets: {
29471
+ type: "schema";
29472
+ isRequired: true;
29473
+ isArray: true;
29474
+ minArrayLength: number;
29475
+ options: {
29476
+ schema: {
29477
+ id: string;
29478
+ name: string;
29420
29479
  fields: {
29421
29480
  label: {
29422
29481
  type: "text";
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ id: string;
3
+ name: string;
4
+ fields: {
5
+ id: {
6
+ type: "id";
7
+ };
8
+ controller: {
9
+ type: "raw";
10
+ options: {
11
+ valueType: string;
12
+ };
13
+ };
14
+ dataSets: {
15
+ type: "schema";
16
+ isRequired: true;
17
+ isArray: true;
18
+ minArrayLength: number;
19
+ options: {
20
+ schema: {
21
+ id: string;
22
+ name: string;
23
+ fields: {
24
+ label: {
25
+ type: "text";
26
+ };
27
+ dataPoints: {
28
+ type: "schema";
29
+ isRequired: true;
30
+ isArray: true;
31
+ minArrayLength: number;
32
+ options: {
33
+ schema: {
34
+ id: string;
35
+ fields: {
36
+ label: {
37
+ type: "text";
38
+ };
39
+ value: {
40
+ type: "number";
41
+ isRequired: true;
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { buildSchema } from '@sprucelabs/schema';
2
+ import chartDataSetBuilder from './chartDataSet.builder.js';
3
+ export default buildSchema({
4
+ id: 'lineGraph',
5
+ name: 'Line graph',
6
+ fields: {
7
+ id: {
8
+ type: 'id',
9
+ },
10
+ controller: {
11
+ type: 'raw',
12
+ options: {
13
+ valueType: 'HeartwoodTypes.ChartViewController<HeartwoodTypes.LineGraph>',
14
+ },
15
+ },
16
+ dataSets: {
17
+ type: 'schema',
18
+ isRequired: true,
19
+ isArray: true,
20
+ minArrayLength: 0,
21
+ options: {
22
+ schema: chartDataSetBuilder,
23
+ },
24
+ },
25
+ },
26
+ });
@@ -29462,6 +29462,65 @@ declare const _default: {
29462
29462
  options: {
29463
29463
  schema: {
29464
29464
  id: string;
29465
+ name: string;
29466
+ fields: {
29467
+ label: {
29468
+ type: "text";
29469
+ };
29470
+ dataPoints: {
29471
+ type: "schema";
29472
+ isRequired: true;
29473
+ isArray: true;
29474
+ minArrayLength: number;
29475
+ options: {
29476
+ schema: {
29477
+ id: string;
29478
+ fields: {
29479
+ label: {
29480
+ type: "text";
29481
+ };
29482
+ value: {
29483
+ type: "number";
29484
+ isRequired: true;
29485
+ };
29486
+ };
29487
+ };
29488
+ };
29489
+ };
29490
+ };
29491
+ };
29492
+ };
29493
+ };
29494
+ };
29495
+ };
29496
+ };
29497
+ };
29498
+ lineGraph: {
29499
+ type: "schema";
29500
+ label: string;
29501
+ options: {
29502
+ schema: {
29503
+ id: string;
29504
+ name: string;
29505
+ fields: {
29506
+ id: {
29507
+ type: "id";
29508
+ };
29509
+ controller: {
29510
+ type: "raw";
29511
+ options: {
29512
+ valueType: string;
29513
+ };
29514
+ };
29515
+ dataSets: {
29516
+ type: "schema";
29517
+ isRequired: true;
29518
+ isArray: true;
29519
+ minArrayLength: number;
29520
+ options: {
29521
+ schema: {
29522
+ id: string;
29523
+ name: string;
29465
29524
  fields: {
29466
29525
  label: {
29467
29526
  type: "text";