@dashspec/renderer 0.1.17 → 0.1.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.
- package/CHANGELOG.md +23 -1
- package/dist/{chunk-GIG2M37B.js → chunk-NBE6ESGQ.js} +9 -2
- package/dist/chunk-NBE6ESGQ.js.map +1 -0
- package/dist/{core-DeB4JJh7.d.ts → core-NP-sUss7.d.ts} +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +37 -7
- package/dist/index.js.map +1 -1
- package/dist/schema.json +21 -0
- package/docs/data.md +1 -0
- package/docs/widgets.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-GIG2M37B.js.map +0 -1
package/dist/schema.json
CHANGED
|
@@ -959,6 +959,9 @@
|
|
|
959
959
|
"manual"
|
|
960
960
|
]
|
|
961
961
|
},
|
|
962
|
+
"enabled": {
|
|
963
|
+
"$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
|
|
964
|
+
},
|
|
962
965
|
"refresh": {
|
|
963
966
|
"type": "object",
|
|
964
967
|
"properties": {
|
|
@@ -1309,6 +1312,9 @@
|
|
|
1309
1312
|
"load": {
|
|
1310
1313
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1311
1314
|
},
|
|
1315
|
+
"enabled": {
|
|
1316
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1317
|
+
},
|
|
1312
1318
|
"refresh": {
|
|
1313
1319
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1314
1320
|
},
|
|
@@ -1378,6 +1384,9 @@
|
|
|
1378
1384
|
"load": {
|
|
1379
1385
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1380
1386
|
},
|
|
1387
|
+
"enabled": {
|
|
1388
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1389
|
+
},
|
|
1381
1390
|
"refresh": {
|
|
1382
1391
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1383
1392
|
},
|
|
@@ -1467,6 +1476,9 @@
|
|
|
1467
1476
|
"load": {
|
|
1468
1477
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1469
1478
|
},
|
|
1479
|
+
"enabled": {
|
|
1480
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1481
|
+
},
|
|
1470
1482
|
"refresh": {
|
|
1471
1483
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1472
1484
|
},
|
|
@@ -1556,6 +1568,9 @@
|
|
|
1556
1568
|
"load": {
|
|
1557
1569
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1558
1570
|
},
|
|
1571
|
+
"enabled": {
|
|
1572
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1573
|
+
},
|
|
1559
1574
|
"refresh": {
|
|
1560
1575
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1561
1576
|
},
|
|
@@ -1603,6 +1618,9 @@
|
|
|
1603
1618
|
"load": {
|
|
1604
1619
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1605
1620
|
},
|
|
1621
|
+
"enabled": {
|
|
1622
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1623
|
+
},
|
|
1606
1624
|
"refresh": {
|
|
1607
1625
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1608
1626
|
},
|
|
@@ -1647,6 +1665,9 @@
|
|
|
1647
1665
|
"load": {
|
|
1648
1666
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
|
|
1649
1667
|
},
|
|
1668
|
+
"enabled": {
|
|
1669
|
+
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/enabled"
|
|
1670
|
+
},
|
|
1650
1671
|
"refresh": {
|
|
1651
1672
|
"$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
|
|
1652
1673
|
},
|
package/docs/data.md
CHANGED
|
@@ -185,6 +185,7 @@ Fields every datasource accepts:
|
|
|
185
185
|
| Field | What it does |
|
|
186
186
|
|---|---|
|
|
187
187
|
| `load` | `"onLoad"` (fetch at start), `"lazy"` (fetch when a panel showing it is on screen), `"manual"` (only via the `fetch` action). Without `load` it behaves like `"lazy"` |
|
|
188
|
+
| `enabled` | Expression: load only while it is true, e.g. `"panels.orders.ui.expanded != null"` for a detail that needs a picked row. While false nothing is requested and an earlier result is kept |
|
|
188
189
|
| `refresh` | `{ every, whenVisible, when, onFocus }` ([below](#loading-refresh-and-cache)) |
|
|
189
190
|
| `cache` | `{ staleTime }`: reuse a response for the same request for this long |
|
|
190
191
|
| `transform` | [Transform steps](#transforms) applied to the response |
|
package/docs/widgets.md
CHANGED
|
@@ -67,7 +67,7 @@ Field props such as `x`, `label` or `value` name a field of each data row; dot p
|
|
|
67
67
|
| Kind | What it shows | Main props | Events |
|
|
68
68
|
|---|---|---|---|
|
|
69
69
|
| `Kpi` | A metric card: label, big value, target and an "On track / Action needed" chip | `unit`, `unitStyle` (`small` / `value`), `format`, `decimals`, `target`, `targetLabel`, `goodWhen` (`up` / `down` / `none`), `badge`, `statusLabels`, `compare`, `band`, `progress`, `note`, `emptyText`, `empty` (show `emptyText` even with a value), `sublabel`, `size` (`normal` / `hero`), `tone` | `click`, `hover` (part `value`) |
|
|
70
|
-
| `Tiles` | One tile per row: label, big number, caption | `label`, `value` (required), `caption`, `status`, `statusMap`, `valueTone`, `count`, `format`, `unit`, `columns`, `minTileWidth`, `wrap`, `captionInline` (caption right after the number), `stretch` (`false`: few tiles keep their column width), `chips`, `mutedWhen`, `highlightWhen`, `highlightTone`, `selectable`, `selected`; `value` may be a template over `row` (`"${row.value ?? row.passed}"`) | `click`, `hover`, `select` (part `tile`) |
|
|
70
|
+
| `Tiles` | One tile per row: label, big number, caption | `items` (fixed tiles instead of data rows; values can be templates), `label`, `value` (required), `caption`, `status`, `statusMap`, `valueTone`, `count`, `format`, `unit`, `columns`, `minTileWidth`, `wrap`, `captionInline` (caption right after the number), `stretch` (`false`: few tiles keep their column width), `chips`, `mutedWhen`, `highlightWhen`, `highlightTone`, `selectable`, `selected`; `value` may be a template over `row` (`"${row.value ?? row.passed}"`) | `click`, `hover`, `select` (part `tile`) |
|
|
71
71
|
| `Gauge` | A value on an arc or circle with coloured bands | `min` (0), `max` (100), `bands: [{ to, tone }]`, `shape` (`arc` / `circle`), `unit`, `format`, `decimals` | `click` |
|
|
72
72
|
| `Status` | A status badge from a state field, or fixed text | `state` (field, default `"state"`), `stateMap`, `labels`, `label`, `text`, `tone` | `click` |
|
|
73
73
|
|