@arkitektio/bsx 7.0.1 → 7.1.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.
@@ -6489,6 +6489,175 @@
6489
6489
  }
6490
6490
  ],
6491
6491
  "service": "mikro"
6492
+ },
6493
+ {
6494
+ "name": "TableStat",
6495
+ "description": "Reads one statistic of a column of a TableDataset and draws it as a tile: the number large, the column's label and unit under it. Several in a row, or in a foreach over a list of {column, stat}, are the stat cards of a table.",
6496
+ "context": "PANEL",
6497
+ "children_context": null,
6498
+ "inherits_context": false,
6499
+ "accepts_children": false,
6500
+ "downstream_of": [],
6501
+ "not_downstream_of": [],
6502
+ "text_prop": null,
6503
+ "props": [
6504
+ {
6505
+ "key": "bind",
6506
+ "port": {
6507
+ "kind": "BINDING",
6508
+ "children": [
6509
+ {
6510
+ "key": "...",
6511
+ "kind": "MODEL",
6512
+ "children": [
6513
+ {
6514
+ "key": "status",
6515
+ "kind": "STRING"
6516
+ },
6517
+ {
6518
+ "key": "loading",
6519
+ "kind": "BOOL"
6520
+ },
6521
+ {
6522
+ "key": "ready",
6523
+ "kind": "BOOL"
6524
+ },
6525
+ {
6526
+ "key": "failed",
6527
+ "kind": "BOOL"
6528
+ },
6529
+ {
6530
+ "key": "empty",
6531
+ "kind": "BOOL"
6532
+ },
6533
+ {
6534
+ "key": "stale",
6535
+ "kind": "BOOL"
6536
+ },
6537
+ {
6538
+ "key": "error",
6539
+ "kind": "STRING",
6540
+ "nullable": true
6541
+ },
6542
+ {
6543
+ "key": "data",
6544
+ "kind": "MODEL",
6545
+ "nullable": true,
6546
+ "children": [
6547
+ {
6548
+ "key": "value",
6549
+ "kind": "FLOAT",
6550
+ "nullable": true
6551
+ },
6552
+ {
6553
+ "key": "label",
6554
+ "kind": "STRING"
6555
+ },
6556
+ {
6557
+ "key": "unit",
6558
+ "kind": "STRING",
6559
+ "nullable": true
6560
+ }
6561
+ ]
6562
+ }
6563
+ ]
6564
+ }
6565
+ ]
6566
+ },
6567
+ "required": false,
6568
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"value\", \"label\", \"unit\"}: the number shown (null for a column with no numbers), the label and the unit. Seed it in demo_state for the preview, which reads nothing."
6569
+ },
6570
+ {
6571
+ "key": "className",
6572
+ "port": {
6573
+ "kind": "STRING"
6574
+ },
6575
+ "required": false,
6576
+ "description": "Extra Tailwind classes appended to the element."
6577
+ },
6578
+ {
6579
+ "key": "clearOnUnmount",
6580
+ "port": {
6581
+ "kind": "BOOL"
6582
+ },
6583
+ "required": false,
6584
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
6585
+ },
6586
+ {
6587
+ "key": "column",
6588
+ "port": {
6589
+ "kind": "STRING",
6590
+ "nullable": true
6591
+ },
6592
+ "required": false,
6593
+ "description": "The column, by its name. Nothing is read while it is unset."
6594
+ },
6595
+ {
6596
+ "key": "digits",
6597
+ "port": {
6598
+ "kind": "FLOAT"
6599
+ },
6600
+ "required": false,
6601
+ "description": "Decimals shown. Defaults to 2; counts and rows show none."
6602
+ },
6603
+ {
6604
+ "key": "label",
6605
+ "port": {
6606
+ "kind": "STRING",
6607
+ "nullable": true
6608
+ },
6609
+ "required": false,
6610
+ "description": "What the tile says under the number. Defaults to the column's long name, else its name; for rows, \"rows\"."
6611
+ },
6612
+ {
6613
+ "key": "stat",
6614
+ "port": {
6615
+ "kind": "STRING",
6616
+ "choices": [
6617
+ {
6618
+ "value": "mean"
6619
+ },
6620
+ {
6621
+ "value": "min"
6622
+ },
6623
+ {
6624
+ "value": "max"
6625
+ },
6626
+ {
6627
+ "value": "sum"
6628
+ },
6629
+ {
6630
+ "value": "count"
6631
+ },
6632
+ {
6633
+ "value": "rows"
6634
+ }
6635
+ ]
6636
+ },
6637
+ "required": false,
6638
+ "description": "What to show of the column: \"mean\" (the default), \"min\", \"max\", \"sum\", \"count\" (its values that are not null), or \"rows\" (the table's rows: needs no column)."
6639
+ },
6640
+ {
6641
+ "key": "unit",
6642
+ "port": {
6643
+ "kind": "STRING",
6644
+ "nullable": true
6645
+ },
6646
+ "required": false,
6647
+ "description": "The unit after the label. Defaults to the column's own; \"\" shows none."
6648
+ },
6649
+ {
6650
+ "key": "value",
6651
+ "port": {
6652
+ "kind": "STRUCTURE",
6653
+ "identifier": "*",
6654
+ "nullable": true
6655
+ },
6656
+ "required": false,
6657
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
6658
+ }
6659
+ ],
6660
+ "service": "mikro"
6492
6661
  }
6493
6662
  ]
6494
6663
  }
@@ -6489,6 +6489,175 @@ export default {
6489
6489
  }
6490
6490
  ],
6491
6491
  "service": "mikro"
6492
+ },
6493
+ {
6494
+ "name": "TableStat",
6495
+ "description": "Reads one statistic of a column of a TableDataset and draws it as a tile: the number large, the column's label and unit under it. Several in a row, or in a foreach over a list of {column, stat}, are the stat cards of a table.",
6496
+ "context": "PANEL",
6497
+ "children_context": null,
6498
+ "inherits_context": false,
6499
+ "accepts_children": false,
6500
+ "downstream_of": [],
6501
+ "not_downstream_of": [],
6502
+ "text_prop": null,
6503
+ "props": [
6504
+ {
6505
+ "key": "bind",
6506
+ "port": {
6507
+ "kind": "BINDING",
6508
+ "children": [
6509
+ {
6510
+ "key": "...",
6511
+ "kind": "MODEL",
6512
+ "children": [
6513
+ {
6514
+ "key": "status",
6515
+ "kind": "STRING"
6516
+ },
6517
+ {
6518
+ "key": "loading",
6519
+ "kind": "BOOL"
6520
+ },
6521
+ {
6522
+ "key": "ready",
6523
+ "kind": "BOOL"
6524
+ },
6525
+ {
6526
+ "key": "failed",
6527
+ "kind": "BOOL"
6528
+ },
6529
+ {
6530
+ "key": "empty",
6531
+ "kind": "BOOL"
6532
+ },
6533
+ {
6534
+ "key": "stale",
6535
+ "kind": "BOOL"
6536
+ },
6537
+ {
6538
+ "key": "error",
6539
+ "kind": "STRING",
6540
+ "nullable": true
6541
+ },
6542
+ {
6543
+ "key": "data",
6544
+ "kind": "MODEL",
6545
+ "nullable": true,
6546
+ "children": [
6547
+ {
6548
+ "key": "value",
6549
+ "kind": "FLOAT",
6550
+ "nullable": true
6551
+ },
6552
+ {
6553
+ "key": "label",
6554
+ "kind": "STRING"
6555
+ },
6556
+ {
6557
+ "key": "unit",
6558
+ "kind": "STRING",
6559
+ "nullable": true
6560
+ }
6561
+ ]
6562
+ }
6563
+ ]
6564
+ }
6565
+ ]
6566
+ },
6567
+ "required": false,
6568
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"value\", \"label\", \"unit\"}: the number shown (null for a column with no numbers), the label and the unit. Seed it in demo_state for the preview, which reads nothing."
6569
+ },
6570
+ {
6571
+ "key": "className",
6572
+ "port": {
6573
+ "kind": "STRING"
6574
+ },
6575
+ "required": false,
6576
+ "description": "Extra Tailwind classes appended to the element."
6577
+ },
6578
+ {
6579
+ "key": "clearOnUnmount",
6580
+ "port": {
6581
+ "kind": "BOOL"
6582
+ },
6583
+ "required": false,
6584
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
6585
+ },
6586
+ {
6587
+ "key": "column",
6588
+ "port": {
6589
+ "kind": "STRING",
6590
+ "nullable": true
6591
+ },
6592
+ "required": false,
6593
+ "description": "The column, by its name. Nothing is read while it is unset."
6594
+ },
6595
+ {
6596
+ "key": "digits",
6597
+ "port": {
6598
+ "kind": "FLOAT"
6599
+ },
6600
+ "required": false,
6601
+ "description": "Decimals shown. Defaults to 2; counts and rows show none."
6602
+ },
6603
+ {
6604
+ "key": "label",
6605
+ "port": {
6606
+ "kind": "STRING",
6607
+ "nullable": true
6608
+ },
6609
+ "required": false,
6610
+ "description": "What the tile says under the number. Defaults to the column's long name, else its name; for rows, \"rows\"."
6611
+ },
6612
+ {
6613
+ "key": "stat",
6614
+ "port": {
6615
+ "kind": "STRING",
6616
+ "choices": [
6617
+ {
6618
+ "value": "mean"
6619
+ },
6620
+ {
6621
+ "value": "min"
6622
+ },
6623
+ {
6624
+ "value": "max"
6625
+ },
6626
+ {
6627
+ "value": "sum"
6628
+ },
6629
+ {
6630
+ "value": "count"
6631
+ },
6632
+ {
6633
+ "value": "rows"
6634
+ }
6635
+ ]
6636
+ },
6637
+ "required": false,
6638
+ "description": "What to show of the column: \"mean\" (the default), \"min\", \"max\", \"sum\", \"count\" (its values that are not null), or \"rows\" (the table's rows: needs no column)."
6639
+ },
6640
+ {
6641
+ "key": "unit",
6642
+ "port": {
6643
+ "kind": "STRING",
6644
+ "nullable": true
6645
+ },
6646
+ "required": false,
6647
+ "description": "The unit after the label. Defaults to the column's own; \"\" shows none."
6648
+ },
6649
+ {
6650
+ "key": "value",
6651
+ "port": {
6652
+ "kind": "STRUCTURE",
6653
+ "identifier": "*",
6654
+ "nullable": true
6655
+ },
6656
+ "required": false,
6657
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
6658
+ }
6659
+ ],
6660
+ "service": "mikro"
6492
6661
  }
6493
6662
  ]
6494
6663
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektio/bsx",
3
- "version": "7.0.1",
3
+ "version": "7.1.0",
4
4
  "description": "The BSX language, the blok spec, runtime and React renderer: one copy for every Arkitekt frontend.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -6489,6 +6489,175 @@
6489
6489
  }
6490
6490
  ],
6491
6491
  "service": "mikro"
6492
+ },
6493
+ {
6494
+ "name": "TableStat",
6495
+ "description": "Reads one statistic of a column of a TableDataset and draws it as a tile: the number large, the column's label and unit under it. Several in a row, or in a foreach over a list of {column, stat}, are the stat cards of a table.",
6496
+ "context": "PANEL",
6497
+ "children_context": null,
6498
+ "inherits_context": false,
6499
+ "accepts_children": false,
6500
+ "downstream_of": [],
6501
+ "not_downstream_of": [],
6502
+ "text_prop": null,
6503
+ "props": [
6504
+ {
6505
+ "key": "bind",
6506
+ "port": {
6507
+ "kind": "BINDING",
6508
+ "children": [
6509
+ {
6510
+ "key": "...",
6511
+ "kind": "MODEL",
6512
+ "children": [
6513
+ {
6514
+ "key": "status",
6515
+ "kind": "STRING"
6516
+ },
6517
+ {
6518
+ "key": "loading",
6519
+ "kind": "BOOL"
6520
+ },
6521
+ {
6522
+ "key": "ready",
6523
+ "kind": "BOOL"
6524
+ },
6525
+ {
6526
+ "key": "failed",
6527
+ "kind": "BOOL"
6528
+ },
6529
+ {
6530
+ "key": "empty",
6531
+ "kind": "BOOL"
6532
+ },
6533
+ {
6534
+ "key": "stale",
6535
+ "kind": "BOOL"
6536
+ },
6537
+ {
6538
+ "key": "error",
6539
+ "kind": "STRING",
6540
+ "nullable": true
6541
+ },
6542
+ {
6543
+ "key": "data",
6544
+ "kind": "MODEL",
6545
+ "nullable": true,
6546
+ "children": [
6547
+ {
6548
+ "key": "value",
6549
+ "kind": "FLOAT",
6550
+ "nullable": true
6551
+ },
6552
+ {
6553
+ "key": "label",
6554
+ "kind": "STRING"
6555
+ },
6556
+ {
6557
+ "key": "unit",
6558
+ "kind": "STRING",
6559
+ "nullable": true
6560
+ }
6561
+ ]
6562
+ }
6563
+ ]
6564
+ }
6565
+ ]
6566
+ },
6567
+ "required": false,
6568
+ "description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"value\", \"label\", \"unit\"}: the number shown (null for a column with no numbers), the label and the unit. Seed it in demo_state for the preview, which reads nothing."
6569
+ },
6570
+ {
6571
+ "key": "className",
6572
+ "port": {
6573
+ "kind": "STRING"
6574
+ },
6575
+ "required": false,
6576
+ "description": "Extra Tailwind classes appended to the element."
6577
+ },
6578
+ {
6579
+ "key": "clearOnUnmount",
6580
+ "port": {
6581
+ "kind": "BOOL"
6582
+ },
6583
+ "required": false,
6584
+ "description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
6585
+ },
6586
+ {
6587
+ "key": "column",
6588
+ "port": {
6589
+ "kind": "STRING",
6590
+ "nullable": true
6591
+ },
6592
+ "required": false,
6593
+ "description": "The column, by its name. Nothing is read while it is unset."
6594
+ },
6595
+ {
6596
+ "key": "digits",
6597
+ "port": {
6598
+ "kind": "FLOAT"
6599
+ },
6600
+ "required": false,
6601
+ "description": "Decimals shown. Defaults to 2; counts and rows show none."
6602
+ },
6603
+ {
6604
+ "key": "label",
6605
+ "port": {
6606
+ "kind": "STRING",
6607
+ "nullable": true
6608
+ },
6609
+ "required": false,
6610
+ "description": "What the tile says under the number. Defaults to the column's long name, else its name; for rows, \"rows\"."
6611
+ },
6612
+ {
6613
+ "key": "stat",
6614
+ "port": {
6615
+ "kind": "STRING",
6616
+ "choices": [
6617
+ {
6618
+ "value": "mean"
6619
+ },
6620
+ {
6621
+ "value": "min"
6622
+ },
6623
+ {
6624
+ "value": "max"
6625
+ },
6626
+ {
6627
+ "value": "sum"
6628
+ },
6629
+ {
6630
+ "value": "count"
6631
+ },
6632
+ {
6633
+ "value": "rows"
6634
+ }
6635
+ ]
6636
+ },
6637
+ "required": false,
6638
+ "description": "What to show of the column: \"mean\" (the default), \"min\", \"max\", \"sum\", \"count\" (its values that are not null), or \"rows\" (the table's rows: needs no column)."
6639
+ },
6640
+ {
6641
+ "key": "unit",
6642
+ "port": {
6643
+ "kind": "STRING",
6644
+ "nullable": true
6645
+ },
6646
+ "required": false,
6647
+ "description": "The unit after the label. Defaults to the column's own; \"\" shows none."
6648
+ },
6649
+ {
6650
+ "key": "value",
6651
+ "port": {
6652
+ "kind": "STRUCTURE",
6653
+ "identifier": "*",
6654
+ "nullable": true
6655
+ },
6656
+ "required": false,
6657
+ "description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
6658
+ }
6659
+ ],
6660
+ "service": "mikro"
6492
6661
  }
6493
6662
  ]
6494
6663
  }