@antelopejs/interface-dms 0.5.0 → 0.5.1

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 (69) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/base/activity-feed.d.ts +43 -31
  3. package/dist/base/activity-feed.js +11 -6
  4. package/dist/base/activity-feed.js.map +1 -1
  5. package/dist/base/banner.d.ts +61 -4
  6. package/dist/base/banner.js +13 -2
  7. package/dist/base/banner.js.map +1 -1
  8. package/dist/base/block-types.d.ts +1 -0
  9. package/dist/base/block-types.js +1 -0
  10. package/dist/base/block-types.js.map +1 -1
  11. package/dist/base/chart-card.d.ts +1 -1
  12. package/dist/base/chart-schemas.d.ts +52 -52
  13. package/dist/base/chart-schemas.js +2 -6
  14. package/dist/base/chart-schemas.js.map +1 -1
  15. package/dist/base/chart.js +2 -20
  16. package/dist/base/chart.js.map +1 -1
  17. package/dist/base/code-block.d.ts +89 -0
  18. package/dist/base/code-block.js +93 -0
  19. package/dist/base/code-block.js.map +1 -0
  20. package/dist/base/display.d.ts +27 -4
  21. package/dist/base/display.js +28 -6
  22. package/dist/base/display.js.map +1 -1
  23. package/dist/base/empty-state.d.ts +35 -0
  24. package/dist/base/empty-state.js +10 -0
  25. package/dist/base/empty-state.js.map +1 -1
  26. package/dist/base/index.d.ts +1 -0
  27. package/dist/base/index.js +1 -0
  28. package/dist/base/index.js.map +1 -1
  29. package/dist/base/internal/composed-text.d.ts +8 -1
  30. package/dist/base/internal/composed-text.js +9 -1
  31. package/dist/base/internal/composed-text.js.map +1 -1
  32. package/dist/base/internal/realtime-topics.d.ts +15 -0
  33. package/dist/base/internal/realtime-topics.js +36 -0
  34. package/dist/base/internal/realtime-topics.js.map +1 -0
  35. package/dist/base/key-value-list.d.ts +23 -0
  36. package/dist/base/key-value-list.js +8 -2
  37. package/dist/base/key-value-list.js.map +1 -1
  38. package/dist/base/meter.d.ts +38 -17
  39. package/dist/base/meter.js +15 -6
  40. package/dist/base/meter.js.map +1 -1
  41. package/dist/base/nav-card-grid.d.ts +41 -31
  42. package/dist/base/nav-card-grid.js +11 -7
  43. package/dist/base/nav-card-grid.js.map +1 -1
  44. package/dist/base/stat-group.d.ts +6 -0
  45. package/dist/base/stat-group.js +3 -2
  46. package/dist/base/stat-group.js.map +1 -1
  47. package/dist/base/tab.d.ts +8 -0
  48. package/dist/base/tab.js +5 -2
  49. package/dist/base/tab.js.map +1 -1
  50. package/dist/base/table-view/column-display.d.ts +43 -3
  51. package/dist/base/table-view/column-display.js +3 -2
  52. package/dist/base/table-view/column-display.js.map +1 -1
  53. package/dist/base/table-view/factory.js +2 -0
  54. package/dist/base/table-view/factory.js.map +1 -1
  55. package/dist/base/table-view/internal/realtime.d.ts +7 -0
  56. package/dist/base/table-view/internal/realtime.js +14 -0
  57. package/dist/base/table-view/internal/realtime.js.map +1 -1
  58. package/dist/base/table-view/options.d.ts +9 -0
  59. package/dist/base/table-view/schema.d.ts +3 -0
  60. package/dist/base/table-view/schema.js +5 -0
  61. package/dist/base/table-view/schema.js.map +1 -1
  62. package/dist/base/table-view/source.d.ts +10 -2
  63. package/dist/base/table-view/source.js +9 -1
  64. package/dist/base/table-view/source.js.map +1 -1
  65. package/dist/base/top-list-card.d.ts +21 -14
  66. package/dist/base/top-list-card.js +3 -2
  67. package/dist/base/top-list-card.js.map +1 -1
  68. package/dist/base/types/action-target.d.ts +14 -0
  69. package/package.json +1 -1
@@ -147,10 +147,10 @@ export declare const ChartLineSchema: z.ZodObject<{
147
147
  color?: ChartColorValue | ChartColorValue[] | undefined;
148
148
  fetchUrl?: string | undefined;
149
149
  fetchUrlMethod?: HttpMethod | undefined;
150
- height?: string | undefined;
151
- width?: number | undefined;
152
150
  periodScope?: string | undefined;
153
151
  realtimeTopic?: string | string[] | undefined;
152
+ height?: string | undefined;
153
+ width?: number | undefined;
154
154
  rawOptions?: {
155
155
  value: string;
156
156
  key: string;
@@ -197,13 +197,13 @@ export declare const ChartLineSchema: z.ZodObject<{
197
197
  color?: ChartColorValue | ChartColorValue[] | undefined;
198
198
  fetchUrl?: string | undefined;
199
199
  fetchUrlMethod?: HttpMethod | undefined;
200
+ periodScope?: string | undefined;
201
+ realtimeTopic?: string | string[] | undefined;
200
202
  smooth?: boolean | undefined;
201
203
  height?: string | undefined;
202
204
  width?: number | undefined;
203
205
  showTooltip?: boolean | undefined;
204
206
  showLegend?: boolean | undefined;
205
- periodScope?: string | undefined;
206
- realtimeTopic?: string | string[] | undefined;
207
207
  rawOptions?: {
208
208
  value: string;
209
209
  key: string;
@@ -392,10 +392,10 @@ export declare const ChartAreaSchema: z.ZodObject<{
392
392
  color?: ChartColorValue | ChartColorValue[] | undefined;
393
393
  fetchUrl?: string | undefined;
394
394
  fetchUrlMethod?: HttpMethod | undefined;
395
- height?: string | undefined;
396
- width?: number | undefined;
397
395
  periodScope?: string | undefined;
398
396
  realtimeTopic?: string | string[] | undefined;
397
+ height?: string | undefined;
398
+ width?: number | undefined;
399
399
  rawOptions?: {
400
400
  value: string;
401
401
  key: string;
@@ -443,13 +443,13 @@ export declare const ChartAreaSchema: z.ZodObject<{
443
443
  color?: ChartColorValue | ChartColorValue[] | undefined;
444
444
  fetchUrl?: string | undefined;
445
445
  fetchUrlMethod?: HttpMethod | undefined;
446
+ periodScope?: string | undefined;
447
+ realtimeTopic?: string | string[] | undefined;
446
448
  smooth?: boolean | undefined;
447
449
  height?: string | undefined;
448
450
  width?: number | undefined;
449
451
  showTooltip?: boolean | undefined;
450
452
  showLegend?: boolean | undefined;
451
- periodScope?: string | undefined;
452
- realtimeTopic?: string | string[] | undefined;
453
453
  rawOptions?: {
454
454
  value: string;
455
455
  key: string;
@@ -638,10 +638,10 @@ export declare const ChartRangeAreaSchema: z.ZodObject<{
638
638
  color?: ChartColorValue | ChartColorValue[] | undefined;
639
639
  fetchUrl?: string | undefined;
640
640
  fetchUrlMethod?: HttpMethod | undefined;
641
- height?: string | undefined;
642
- width?: number | undefined;
643
641
  periodScope?: string | undefined;
644
642
  realtimeTopic?: string | string[] | undefined;
643
+ height?: string | undefined;
644
+ width?: number | undefined;
645
645
  rawOptions?: {
646
646
  value: string;
647
647
  key: string;
@@ -688,13 +688,13 @@ export declare const ChartRangeAreaSchema: z.ZodObject<{
688
688
  color?: ChartColorValue | ChartColorValue[] | undefined;
689
689
  fetchUrl?: string | undefined;
690
690
  fetchUrlMethod?: HttpMethod | undefined;
691
+ periodScope?: string | undefined;
692
+ realtimeTopic?: string | string[] | undefined;
691
693
  smooth?: boolean | undefined;
692
694
  height?: string | undefined;
693
695
  width?: number | undefined;
694
696
  showTooltip?: boolean | undefined;
695
697
  showLegend?: boolean | undefined;
696
- periodScope?: string | undefined;
697
- realtimeTopic?: string | string[] | undefined;
698
698
  rawOptions?: {
699
699
  value: string;
700
700
  key: string;
@@ -887,10 +887,10 @@ export declare const ChartBarSchema: z.ZodObject<{
887
887
  orientation?: AxeOrientation | undefined;
888
888
  fetchUrl?: string | undefined;
889
889
  fetchUrlMethod?: HttpMethod | undefined;
890
- height?: string | undefined;
891
- width?: number | undefined;
892
890
  periodScope?: string | undefined;
893
891
  realtimeTopic?: string | string[] | undefined;
892
+ height?: string | undefined;
893
+ width?: number | undefined;
894
894
  rawOptions?: {
895
895
  value: string;
896
896
  key: string;
@@ -939,13 +939,13 @@ export declare const ChartBarSchema: z.ZodObject<{
939
939
  orientation?: AxeOrientation | undefined;
940
940
  fetchUrl?: string | undefined;
941
941
  fetchUrlMethod?: HttpMethod | undefined;
942
+ periodScope?: string | undefined;
943
+ realtimeTopic?: string | string[] | undefined;
942
944
  smooth?: boolean | undefined;
943
945
  height?: string | undefined;
944
946
  width?: number | undefined;
945
947
  showTooltip?: boolean | undefined;
946
948
  showLegend?: boolean | undefined;
947
- periodScope?: string | undefined;
948
- realtimeTopic?: string | string[] | undefined;
949
949
  rawOptions?: {
950
950
  value: string;
951
951
  key: string;
@@ -1138,10 +1138,10 @@ export declare const ChartColumnSchema: z.ZodObject<{
1138
1138
  color?: ChartColorValue | ChartColorValue[] | undefined;
1139
1139
  fetchUrl?: string | undefined;
1140
1140
  fetchUrlMethod?: HttpMethod | undefined;
1141
- height?: string | undefined;
1142
- width?: number | undefined;
1143
1141
  periodScope?: string | undefined;
1144
1142
  realtimeTopic?: string | string[] | undefined;
1143
+ height?: string | undefined;
1144
+ width?: number | undefined;
1145
1145
  rawOptions?: {
1146
1146
  value: string;
1147
1147
  key: string;
@@ -1189,13 +1189,13 @@ export declare const ChartColumnSchema: z.ZodObject<{
1189
1189
  color?: ChartColorValue | ChartColorValue[] | undefined;
1190
1190
  fetchUrl?: string | undefined;
1191
1191
  fetchUrlMethod?: HttpMethod | undefined;
1192
+ periodScope?: string | undefined;
1193
+ realtimeTopic?: string | string[] | undefined;
1192
1194
  smooth?: boolean | undefined;
1193
1195
  height?: string | undefined;
1194
1196
  width?: number | undefined;
1195
1197
  showTooltip?: boolean | undefined;
1196
1198
  showLegend?: boolean | undefined;
1197
- periodScope?: string | undefined;
1198
- realtimeTopic?: string | string[] | undefined;
1199
1199
  rawOptions?: {
1200
1200
  value: string;
1201
1201
  key: string;
@@ -1386,10 +1386,10 @@ export declare const ChartScatterSchema: z.ZodObject<{
1386
1386
  color?: ChartColorValue | ChartColorValue[] | undefined;
1387
1387
  fetchUrl?: string | undefined;
1388
1388
  fetchUrlMethod?: HttpMethod | undefined;
1389
- height?: string | undefined;
1390
- width?: number | undefined;
1391
1389
  periodScope?: string | undefined;
1392
1390
  realtimeTopic?: string | string[] | undefined;
1391
+ height?: string | undefined;
1392
+ width?: number | undefined;
1393
1393
  rawOptions?: {
1394
1394
  value: string;
1395
1395
  key: string;
@@ -1437,13 +1437,13 @@ export declare const ChartScatterSchema: z.ZodObject<{
1437
1437
  color?: ChartColorValue | ChartColorValue[] | undefined;
1438
1438
  fetchUrl?: string | undefined;
1439
1439
  fetchUrlMethod?: HttpMethod | undefined;
1440
+ periodScope?: string | undefined;
1441
+ realtimeTopic?: string | string[] | undefined;
1440
1442
  smooth?: boolean | undefined;
1441
1443
  height?: string | undefined;
1442
1444
  width?: number | undefined;
1443
1445
  showTooltip?: boolean | undefined;
1444
1446
  showLegend?: boolean | undefined;
1445
- periodScope?: string | undefined;
1446
- realtimeTopic?: string | string[] | undefined;
1447
1447
  rawOptions?: {
1448
1448
  value: string;
1449
1449
  key: string;
@@ -1644,10 +1644,10 @@ export declare const ChartMixedSchema: z.ZodObject<{
1644
1644
  color?: ChartColorValue | ChartColorValue[] | undefined;
1645
1645
  fetchUrl?: string | undefined;
1646
1646
  fetchUrlMethod?: HttpMethod | undefined;
1647
- height?: string | undefined;
1648
- width?: number | undefined;
1649
1647
  periodScope?: string | undefined;
1650
1648
  realtimeTopic?: string | string[] | undefined;
1649
+ height?: string | undefined;
1650
+ width?: number | undefined;
1651
1651
  rawOptions?: {
1652
1652
  value: string;
1653
1653
  key: string;
@@ -1698,13 +1698,13 @@ export declare const ChartMixedSchema: z.ZodObject<{
1698
1698
  color?: ChartColorValue | ChartColorValue[] | undefined;
1699
1699
  fetchUrl?: string | undefined;
1700
1700
  fetchUrlMethod?: HttpMethod | undefined;
1701
+ periodScope?: string | undefined;
1702
+ realtimeTopic?: string | string[] | undefined;
1701
1703
  smooth?: boolean | undefined;
1702
1704
  height?: string | undefined;
1703
1705
  width?: number | undefined;
1704
1706
  showTooltip?: boolean | undefined;
1705
1707
  showLegend?: boolean | undefined;
1706
- periodScope?: string | undefined;
1707
- realtimeTopic?: string | string[] | undefined;
1708
1708
  rawOptions?: {
1709
1709
  value: string;
1710
1710
  key: string;
@@ -1896,10 +1896,10 @@ export declare const ChartRadarSchema: z.ZodObject<{
1896
1896
  color?: ChartColorValue | ChartColorValue[] | undefined;
1897
1897
  fetchUrl?: string | undefined;
1898
1898
  fetchUrlMethod?: HttpMethod | undefined;
1899
- height?: string | undefined;
1900
- width?: number | undefined;
1901
1899
  periodScope?: string | undefined;
1902
1900
  realtimeTopic?: string | string[] | undefined;
1901
+ height?: string | undefined;
1902
+ width?: number | undefined;
1903
1903
  rawOptions?: {
1904
1904
  value: string;
1905
1905
  key: string;
@@ -1946,13 +1946,13 @@ export declare const ChartRadarSchema: z.ZodObject<{
1946
1946
  color?: ChartColorValue | ChartColorValue[] | undefined;
1947
1947
  fetchUrl?: string | undefined;
1948
1948
  fetchUrlMethod?: HttpMethod | undefined;
1949
+ periodScope?: string | undefined;
1950
+ realtimeTopic?: string | string[] | undefined;
1949
1951
  smooth?: boolean | undefined;
1950
1952
  height?: string | undefined;
1951
1953
  width?: number | undefined;
1952
1954
  showTooltip?: boolean | undefined;
1953
1955
  showLegend?: boolean | undefined;
1954
- periodScope?: string | undefined;
1955
- realtimeTopic?: string | string[] | undefined;
1956
1956
  rawOptions?: {
1957
1957
  value: string;
1958
1958
  key: string;
@@ -2139,10 +2139,10 @@ export declare const ChartCandlestickSchema: z.ZodObject<{
2139
2139
  color?: ChartColorValue | ChartColorValue[] | undefined;
2140
2140
  fetchUrl?: string | undefined;
2141
2141
  fetchUrlMethod?: HttpMethod | undefined;
2142
- height?: string | undefined;
2143
- width?: number | undefined;
2144
2142
  periodScope?: string | undefined;
2145
2143
  realtimeTopic?: string | string[] | undefined;
2144
+ height?: string | undefined;
2145
+ width?: number | undefined;
2146
2146
  rawOptions?: {
2147
2147
  value: string;
2148
2148
  key: string;
@@ -2188,13 +2188,13 @@ export declare const ChartCandlestickSchema: z.ZodObject<{
2188
2188
  color?: ChartColorValue | ChartColorValue[] | undefined;
2189
2189
  fetchUrl?: string | undefined;
2190
2190
  fetchUrlMethod?: HttpMethod | undefined;
2191
+ periodScope?: string | undefined;
2192
+ realtimeTopic?: string | string[] | undefined;
2191
2193
  smooth?: boolean | undefined;
2192
2194
  height?: string | undefined;
2193
2195
  width?: number | undefined;
2194
2196
  showTooltip?: boolean | undefined;
2195
2197
  showLegend?: boolean | undefined;
2196
- periodScope?: string | undefined;
2197
- realtimeTopic?: string | string[] | undefined;
2198
2198
  rawOptions?: {
2199
2199
  value: string;
2200
2200
  key: string;
@@ -2290,10 +2290,10 @@ export declare const ChartDonutSchema: z.ZodObject<{
2290
2290
  color?: ChartColorValue | ChartColorValue[] | undefined;
2291
2291
  fetchUrl?: string | undefined;
2292
2292
  fetchUrlMethod?: HttpMethod | undefined;
2293
- height?: string | undefined;
2294
- width?: number | undefined;
2295
2293
  periodScope?: string | undefined;
2296
2294
  realtimeTopic?: string | string[] | undefined;
2295
+ height?: string | undefined;
2296
+ width?: number | undefined;
2297
2297
  rawOptions?: {
2298
2298
  value: string;
2299
2299
  key: string;
@@ -2315,12 +2315,12 @@ export declare const ChartDonutSchema: z.ZodObject<{
2315
2315
  color?: ChartColorValue | ChartColorValue[] | undefined;
2316
2316
  fetchUrl?: string | undefined;
2317
2317
  fetchUrlMethod?: HttpMethod | undefined;
2318
+ periodScope?: string | undefined;
2319
+ realtimeTopic?: string | string[] | undefined;
2318
2320
  height?: string | undefined;
2319
2321
  width?: number | undefined;
2320
2322
  showTooltip?: boolean | undefined;
2321
2323
  showLegend?: boolean | undefined;
2322
- periodScope?: string | undefined;
2323
- realtimeTopic?: string | string[] | undefined;
2324
2324
  rawOptions?: {
2325
2325
  value: string;
2326
2326
  key: string;
@@ -2388,10 +2388,10 @@ export declare const ChartPieSchema: z.ZodObject<{
2388
2388
  color?: ChartColorValue | ChartColorValue[] | undefined;
2389
2389
  fetchUrl?: string | undefined;
2390
2390
  fetchUrlMethod?: HttpMethod | undefined;
2391
- height?: string | undefined;
2392
- width?: number | undefined;
2393
2391
  periodScope?: string | undefined;
2394
2392
  realtimeTopic?: string | string[] | undefined;
2393
+ height?: string | undefined;
2394
+ width?: number | undefined;
2395
2395
  rawOptions?: {
2396
2396
  value: string;
2397
2397
  key: string;
@@ -2410,12 +2410,12 @@ export declare const ChartPieSchema: z.ZodObject<{
2410
2410
  color?: ChartColorValue | ChartColorValue[] | undefined;
2411
2411
  fetchUrl?: string | undefined;
2412
2412
  fetchUrlMethod?: HttpMethod | undefined;
2413
+ periodScope?: string | undefined;
2414
+ realtimeTopic?: string | string[] | undefined;
2413
2415
  height?: string | undefined;
2414
2416
  width?: number | undefined;
2415
2417
  showTooltip?: boolean | undefined;
2416
2418
  showLegend?: boolean | undefined;
2417
- periodScope?: string | undefined;
2418
- realtimeTopic?: string | string[] | undefined;
2419
2419
  rawOptions?: {
2420
2420
  value: string;
2421
2421
  key: string;
@@ -2482,10 +2482,10 @@ export declare const ChartRadialBarSchema: z.ZodObject<{
2482
2482
  color?: ChartColorValue | ChartColorValue[] | undefined;
2483
2483
  fetchUrl?: string | undefined;
2484
2484
  fetchUrlMethod?: HttpMethod | undefined;
2485
- height?: string | undefined;
2486
- width?: number | undefined;
2487
2485
  periodScope?: string | undefined;
2488
2486
  realtimeTopic?: string | string[] | undefined;
2487
+ height?: string | undefined;
2488
+ width?: number | undefined;
2489
2489
  rawOptions?: {
2490
2490
  value: string;
2491
2491
  key: string;
@@ -2506,12 +2506,12 @@ export declare const ChartRadialBarSchema: z.ZodObject<{
2506
2506
  color?: ChartColorValue | ChartColorValue[] | undefined;
2507
2507
  fetchUrl?: string | undefined;
2508
2508
  fetchUrlMethod?: HttpMethod | undefined;
2509
+ periodScope?: string | undefined;
2510
+ realtimeTopic?: string | string[] | undefined;
2509
2511
  height?: string | undefined;
2510
2512
  width?: number | undefined;
2511
2513
  showTooltip?: boolean | undefined;
2512
2514
  showLegend?: boolean | undefined;
2513
- periodScope?: string | undefined;
2514
- realtimeTopic?: string | string[] | undefined;
2515
2515
  rawOptions?: {
2516
2516
  value: string;
2517
2517
  key: string;
@@ -2636,10 +2636,10 @@ export declare const ChartHeatmapSchema: z.ZodObject<{
2636
2636
  color?: ChartColorValue | ChartColorValue[] | undefined;
2637
2637
  fetchUrl?: string | undefined;
2638
2638
  fetchUrlMethod?: HttpMethod | undefined;
2639
- height?: string | undefined;
2640
- width?: number | undefined;
2641
2639
  periodScope?: string | undefined;
2642
2640
  realtimeTopic?: string | string[] | undefined;
2641
+ height?: string | undefined;
2642
+ width?: number | undefined;
2643
2643
  rawOptions?: {
2644
2644
  value: string;
2645
2645
  key: string;
@@ -2672,12 +2672,12 @@ export declare const ChartHeatmapSchema: z.ZodObject<{
2672
2672
  color?: ChartColorValue | ChartColorValue[] | undefined;
2673
2673
  fetchUrl?: string | undefined;
2674
2674
  fetchUrlMethod?: HttpMethod | undefined;
2675
+ periodScope?: string | undefined;
2676
+ realtimeTopic?: string | string[] | undefined;
2675
2677
  height?: string | undefined;
2676
2678
  width?: number | undefined;
2677
2679
  showTooltip?: boolean | undefined;
2678
2680
  showLegend?: boolean | undefined;
2679
- periodScope?: string | undefined;
2680
- realtimeTopic?: string | string[] | undefined;
2681
2681
  rawOptions?: {
2682
2682
  value: string;
2683
2683
  key: string;
@@ -6,6 +6,7 @@ const block_registry_1 = require("./block-registry");
6
6
  const chart_1 = require("./chart");
7
7
  const types_1 = require("./types");
8
8
  const http_1 = require("./types/http");
9
+ const display_1 = require("./display");
9
10
  const COMPARISON_STYLES = ["dashed", "solid", "dimmed"];
10
11
  const CHART_CURVES = ["smooth", "straight", "stepline"];
11
12
  const X_AXIS_TYPES = ["category", "datetime", "numeric"];
@@ -103,12 +104,7 @@ const baseChartShape = {
103
104
  label: "Period scope",
104
105
  group: "advanced",
105
106
  }),
106
- // A topic is a name the backend publishes under, which only its code knows.
107
- realtimeTopic: (0, block_registry_1.ui)(zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(), {
108
- label: "Realtime topics",
109
- group: "data",
110
- advanced: true,
111
- }),
107
+ realtimeTopic: (0, display_1.blockRealtimeTopicOption)(),
112
108
  rawOptions: (0, block_registry_1.ui)(zod_1.z.array(keyValueSchema).optional(), {
113
109
  label: "Raw chart options",
114
110
  group: "advanced",
@@ -1 +1 @@
1
- {"version":3,"file":"chart-schemas.js","sourceRoot":"","sources":["../../src/base/chart-schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qDAA0E;AAC1E,mCAqBiB;AACjB,mCAAyC;AACzC,uCAA0C;AAE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AQ,EAAE,EAAE;QACxC,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,OAAO;QACf,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,IAAI;KACX,CAAC;IACF,WAAW,EAAE,IAAA,mBAAE,EAAC,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE;QACtC,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,QAAQ;KACjB,CAAC;CACH,CAA4D,CAAC"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChartCandlestick = exports.ChartHeatmap = exports.ChartRadialBar = exports.ChartRadar = exports.ChartMixed = exports.ChartPie = exports.ChartDonut = exports.ChartScatter = exports.ChartColumn = exports.ChartBar = exports.ChartRangeArea = exports.ChartArea = exports.ChartLine = exports.VALUE_FORMATS = exports.ChartEvents = exports.ChartType = void 0;
4
4
  const component_1 = require("../component");
5
- const realtime_1 = require("../realtime");
6
5
  const chart_type_1 = require("./chart-type");
7
6
  const chart_1 = require("./internal/chart");
7
+ const realtime_topics_1 = require("./internal/realtime-topics");
8
8
  var chart_type_2 = require("./chart-type");
9
9
  Object.defineProperty(exports, "ChartType", { enumerable: true, get: function () { return chart_type_2.ChartType; } });
10
10
  var ChartEvents;
@@ -19,23 +19,6 @@ exports.VALUE_FORMATS = [
19
19
  "percent",
20
20
  "compact",
21
21
  ];
22
- function normalizeChartTopics(topic) {
23
- if (!topic)
24
- return [];
25
- return Array.isArray(topic) ? topic : [topic];
26
- }
27
- function attachChartRealtimeHook(builder, topics) {
28
- if (topics.length === 0)
29
- return;
30
- builder.onCreated((parentPage) => {
31
- const parentInfo = parentPage.pageInfo;
32
- if (!parentInfo)
33
- return;
34
- for (const topic of topics) {
35
- (0, realtime_1.RegisterPageTopic)(parentInfo.fullId, topic);
36
- }
37
- });
38
- }
39
22
  /**
40
23
  * `options` is optional because a page is written as it is built: the editor
41
24
  * places a block before anything is configured, and writes that as the bare
@@ -52,8 +35,7 @@ function createChartBuilder(type) {
52
35
  name: merged.title || meta.name,
53
36
  icon: meta.icon,
54
37
  });
55
- attachChartRealtimeHook(builder, normalizeChartTopics(merged.realtimeTopic));
56
- return builder;
38
+ return (0, realtime_topics_1.attachRealtimeTopicsHook)(builder, merged.realtimeTopic);
57
39
  };
58
40
  }
59
41
  exports.ChartLine = createChartBuilder(chart_type_1.ChartType.LINE);
@@ -1 +1 @@
1
- {"version":3,"file":"chart.js","sourceRoot":"","sources":["../../src/base/chart.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEhD,0CAAgD;AAGhD,6CAAyC;AACzC,4CAA4E;AAE5E,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAElB,IAAiB,WAAW,CAG3B;AAHD,WAAiB,WAAW;IACb,yBAAa,GAAG,iCAAiC,CAAC;IAClD,uBAAW,GAAG,+BAA+B,CAAC;AAC7D,CAAC,EAHgB,WAAW,2BAAX,WAAW,QAG3B;AA4CD,mDAAmD;AACtC,QAAA,aAAa,GAAG;IAC3B,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;CACD,CAAC;AAqOX,SAAS,oBAAoB,CAAC,KAAoC;IAChE,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,uBAAuB,CAC9B,OAAiC,EACjC,MAAgB;IAEhB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAChC,OAAO,CAAC,SAAS,CAAC,CAAC,UAAwB,EAAE,EAAE;QAC7C,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC;QACvC,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,KAAK,MA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AAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACL,OAAO,IAAA,0CAAwB,EAC7B,OAAO,EACN,MAAyB,CAAC,aAAa,CACzC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,SAAS,GAAG,kBAAkB,CAAC,sBAAS,CAAC,IAAI,CAAC,CAAC;AAC/C,QAAA,SAAS,GAAG,kBAAkB,CAAC,sBAAS,CAAC,IAAI,CAAC,CAAC;AAC/C,QAAA,cAAc,GAAG,kBAAkB,CAAC,sBAAS,CAAC,UAAU,CAAC,CAAC;AAC1D,QAAA,QAAQ,GAAG,kBAAkB,CAAC,sBAAS,CAAC,GAAG,CAAC,CAAC;AAC7C,QAAA,WAAW,GAAG,kBAAkB,CAAC,sBAAS,CAAC,MAAM,CAAC,CAAC;AACnD,QAAA,YAAY,GAAG,kBAAkB,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC;AACrD,QAAA,UAAU,GAAG,kBAAkB,CAAC,sBAAS,CAAC,KAAK,CAAC,CAAC;AACjD,QAAA,QAAQ,GAAG,kBAAkB,CAAC,sBAAS,CAAC,GAAG,CAAC,CAAC;AAC7C,QAAA,UAAU,GAAG,kBAAkB,CAAC,sBAAS,CAAC,KAAK,CAAC,CAAC;AACjD,QAAA,UAAU,GAAG,kBAAkB,CAAC,sBAAS,CAAC,KAAK,CAAC,CAAC;AACjD,QAAA,cAAc,GAAG,kBAAkB,CAAC,sBAAS,CAAC,UAAU,CAAC,CAAC;AAC1D,QAAA,YAAY,GAAG,kBAAkB,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC;AACrD,QAAA,gBAAgB,GAAG,kBAAkB,CAAC,sBAAS,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { ComponentBuilder } from "../component";
2
+ import { z } from "zod";
3
+ import type { BaseComponentProps, EnumOption } from "./types";
4
+ import type { BlockText } from "./types/composed-text";
5
+ import type { HttpMethod } from "./types/http";
6
+ /** Languages a `CodeBlock` highlights; `text` is shown as written. */
7
+ export declare const CODE_BLOCK_LANGUAGES: readonly ["json", "javascript", "typescript", "html", "sql", "shell", "text"];
8
+ /** A language a `CodeBlock` highlights: see `CODE_BLOCK_LANGUAGES`. */
9
+ export type CodeBlockLanguage = (typeof CODE_BLOCK_LANGUAGES)[number];
10
+ /** What the `fetchUrl` of a `CodeBlock` answers. */
11
+ export interface CodeBlockResponse {
12
+ code: string;
13
+ /** Overrides the block's `language`. */
14
+ language?: CodeBlockLanguage;
15
+ }
16
+ /** The options `CodeBlock` takes. */
17
+ export interface CodeBlockProps extends BaseComponentProps {
18
+ /** The code, verbatim. */
19
+ code?: string;
20
+ /**
21
+ * Highlighting language. Defaults to `text`. The aliases `js`, `ts`,
22
+ * `bash`, `sh` and `plain` are read as their language.
23
+ */
24
+ language?: CodeBlockLanguage;
25
+ /** A button copies the code. Defaults to `true`. */
26
+ copy?: boolean;
27
+ /** Head of the block: a string (`$` for an i18n key) or a `ComposedText`. */
28
+ title?: BlockText;
29
+ /** Lines shown before the code scrolls. All of them when unset. */
30
+ maxLines?: number;
31
+ /** Wraps long lines instead of scrolling sideways. Defaults to `false`. */
32
+ wrap?: boolean;
33
+ /**
34
+ * Route answering a {@link CodeBlockResponse} (`{ code, language? }`),
35
+ * which replaces `code`: a generated snippet, a stored configuration.
36
+ * `{{params.X}}` and `{{query.X}}` name the page URL, as in
37
+ * `BlockItemsSource.fetchUrl`; it is read again when the page asks its
38
+ * blocks to refresh.
39
+ */
40
+ fetchUrl?: string;
41
+ fetchUrlMethod?: EnumOption<HttpMethod>;
42
+ }
43
+ /**
44
+ * CodeBlock — read-only code with highlighting and a copy button: a snippet
45
+ * to paste, a configuration to read, a request body.
46
+ *
47
+ * `options` is optional because a page is written as it is built: the editor
48
+ * places a block before anything is configured, and writes that as the bare
49
+ * call `CodeBlock()`.
50
+ *
51
+ * @example
52
+ * ```typescript
53
+ * CodeBlock({
54
+ * title: "Field declaration",
55
+ * language: "typescript",
56
+ * code: 'cover: MediaField({ accept: ["image/*"] })',
57
+ * })
58
+ * ```
59
+ */
60
+ export declare function CodeBlock(options?: CodeBlockProps): ComponentBuilder<CodeBlockProps>;
61
+ /** The options `CodeBlock` accepts. */
62
+ export declare const CodeBlockSchema: z.ZodObject<{
63
+ title: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
64
+ code: z.ZodOptional<z.ZodString>;
65
+ language: z.ZodDefault<z.ZodEnum<["json", "javascript", "typescript", "html", "sql", "shell", "text"]>>;
66
+ copy: z.ZodDefault<z.ZodBoolean>;
67
+ wrap: z.ZodOptional<z.ZodBoolean>;
68
+ maxLines: z.ZodOptional<z.ZodNumber>;
69
+ fetchUrl: z.ZodOptional<z.ZodString>;
70
+ fetchUrlMethod: z.ZodOptional<z.ZodNativeEnum<typeof HttpMethod>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ language: "text" | "json" | "sql" | "html" | "javascript" | "shell" | "typescript";
73
+ copy: boolean;
74
+ code?: string | undefined;
75
+ title?: BlockText | undefined;
76
+ fetchUrl?: string | undefined;
77
+ fetchUrlMethod?: HttpMethod | undefined;
78
+ maxLines?: number | undefined;
79
+ wrap?: boolean | undefined;
80
+ }, {
81
+ code?: string | undefined;
82
+ title?: BlockText | undefined;
83
+ fetchUrl?: string | undefined;
84
+ fetchUrlMethod?: HttpMethod | undefined;
85
+ language?: "text" | "json" | "sql" | "html" | "javascript" | "shell" | "typescript" | undefined;
86
+ maxLines?: number | undefined;
87
+ copy?: boolean | undefined;
88
+ wrap?: boolean | undefined;
89
+ }>;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeBlockSchema = exports.CODE_BLOCK_LANGUAGES = void 0;
4
+ exports.CodeBlock = CodeBlock;
5
+ const component_1 = require("../component");
6
+ const zod_1 = require("zod");
7
+ const block_registry_1 = require("./block-registry");
8
+ const display_1 = require("./display");
9
+ const composed_text_1 = require("./internal/composed-text");
10
+ /** Languages a `CodeBlock` highlights; `text` is shown as written. */
11
+ exports.CODE_BLOCK_LANGUAGES = [
12
+ "json",
13
+ "javascript",
14
+ "typescript",
15
+ "html",
16
+ "sql",
17
+ "shell",
18
+ "text",
19
+ ];
20
+ const CODE_BLOCK_COMPONENT_NAME = "dms-code-block";
21
+ const CODE_BLOCK_ICON = "i-ph-code";
22
+ const CODE_BLOCK_DEFAULTS = { language: "text", copy: true };
23
+ /**
24
+ * CodeBlock — read-only code with highlighting and a copy button: a snippet
25
+ * to paste, a configuration to read, a request body.
26
+ *
27
+ * `options` is optional because a page is written as it is built: the editor
28
+ * places a block before anything is configured, and writes that as the bare
29
+ * call `CodeBlock()`.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * CodeBlock({
34
+ * title: "Field declaration",
35
+ * language: "typescript",
36
+ * code: 'cover: MediaField({ accept: ["image/*"] })',
37
+ * })
38
+ * ```
39
+ */
40
+ function CodeBlock(options) {
41
+ return new component_1.ComponentBuilder(CODE_BLOCK_COMPONENT_NAME)
42
+ .options({ ...CODE_BLOCK_DEFAULTS, ...options })
43
+ .meta({
44
+ name: (typeof options?.title === "string" && options.title) || "Code",
45
+ icon: CODE_BLOCK_ICON,
46
+ });
47
+ }
48
+ /** The options `CodeBlock` accepts. */
49
+ exports.CodeBlockSchema = zod_1.z.object({
50
+ title: (0, block_registry_1.ui)((0, composed_text_1.blockTextSchema)().optional().describe("Head of the block."), {
51
+ label: "Title",
52
+ group: "content",
53
+ widget: "text",
54
+ }),
55
+ code: (0, block_registry_1.ui)(zod_1.z.string().optional().describe("The code, verbatim."), {
56
+ label: "Code",
57
+ group: "content",
58
+ widget: "textarea",
59
+ }),
60
+ language: (0, block_registry_1.ui)(zod_1.z
61
+ .enum(exports.CODE_BLOCK_LANGUAGES)
62
+ .default(CODE_BLOCK_DEFAULTS.language)
63
+ .describe("Highlighting language."), { label: "Language", group: "content", widget: "select" }),
64
+ copy: (0, block_registry_1.ui)(zod_1.z
65
+ .boolean()
66
+ .default(CODE_BLOCK_DEFAULTS.copy)
67
+ .describe("A button copies the code."), { label: "Copy button", group: "features", widget: "switch" }),
68
+ wrap: (0, block_registry_1.ui)(zod_1.z.boolean().optional().describe("Wraps long lines."), {
69
+ label: "Wrap lines",
70
+ group: "appearance",
71
+ widget: "switch",
72
+ }),
73
+ maxLines: (0, block_registry_1.ui)(zod_1.z
74
+ .number()
75
+ .int()
76
+ .min(1)
77
+ .optional()
78
+ .describe("Lines shown before the code scrolls."), { label: "Maximum lines", group: "layout", widget: "number", min: 1 }),
79
+ fetchUrl: (0, display_1.blockFetchUrlOption)("Route answering `{ code, language? }`; when set it replaces the code."),
80
+ fetchUrlMethod: (0, display_1.blockFetchUrlMethodOption)(),
81
+ });
82
+ (0, block_registry_1.RegisterBlockType)({
83
+ type: "CodeBlock",
84
+ componentName: CODE_BLOCK_COMPONENT_NAME,
85
+ schema: exports.CodeBlockSchema,
86
+ meta: {
87
+ name: "Code",
88
+ icon: CODE_BLOCK_ICON,
89
+ description: "Read-only code with highlighting and a copy button.",
90
+ group: "content",
91
+ },
92
+ });
93
+ //# sourceMappingURL=code-block.js.map