react-semaphor 0.1.294 → 0.1.295

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 (33) hide show
  1. package/dist/chunks/{braces-DfDQiR3J.js → braces-BdoTYzuj.js} +1 -1
  2. package/dist/chunks/{braces-DR-GdaLC.js → braces-DWldEFn5.js} +1 -1
  3. package/dist/chunks/{dashboard-controls-DGEVXgP5.js → dashboard-controls-B3lrnI_r.js} +1 -1
  4. package/dist/chunks/{dashboard-controls-C3Z9bpYE.js → dashboard-controls-D7U6E1sB.js} +5 -5
  5. package/dist/chunks/{dashboard-filter-controls-button-BIYT1ucX.js → dashboard-filter-controls-button-D0AsV28-.js} +1 -1
  6. package/dist/chunks/{dashboard-filter-controls-button-DxgGUl00.js → dashboard-filter-controls-button-XwenlcXw.js} +3 -3
  7. package/dist/chunks/{dashboard-json-BvTeHePu.js → dashboard-json-CU55qPXj.js} +1 -1
  8. package/dist/chunks/{dashboard-json-DQW8TN0I.js → dashboard-json-V6m6lJ_c.js} +1 -1
  9. package/dist/chunks/{dashboard-summary-settings-dialog-q7fx3YAK.js → dashboard-summary-settings-dialog-0CIiWsKc.js} +1 -1
  10. package/dist/chunks/{dashboard-summary-settings-dialog-BsmKiGud.js → dashboard-summary-settings-dialog-DRLPzp1P.js} +1 -1
  11. package/dist/chunks/{edit-dashboard-visual-RVl9nbDZ.js → edit-dashboard-visual-8ha6EM_g.js} +407 -364
  12. package/dist/chunks/{edit-dashboard-visual-ChKj-Lzr.js → edit-dashboard-visual-sSLAkmgf.js} +3 -3
  13. package/dist/chunks/{index-DerPpfv0.js → index-14M0TnH6.js} +29597 -28801
  14. package/dist/chunks/{index-BlspGR07.js → index-Ze8VskG1.js} +252 -252
  15. package/dist/chunks/{resource-management-panel-DnZ1rw1A.js → resource-management-panel-BL5-5ouC.js} +2 -2
  16. package/dist/chunks/{resource-management-panel-epydPwyM.js → resource-management-panel-CcDAn86l.js} +1 -1
  17. package/dist/chunks/{use-create-flow-overlay-state-Bcg4EgoD.js → use-create-flow-overlay-state-BbQVNDCj.js} +1 -1
  18. package/dist/chunks/{use-create-flow-overlay-state-C5vdfXhM.js → use-create-flow-overlay-state-D3PxfjYv.js} +2 -2
  19. package/dist/chunks/{use-visual-utils-D9Kknvjl.js → use-visual-utils-CdIOq4nt.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-Dw_yw9zU.js → use-visual-utils-kh8p2QFm.js} +1 -1
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/dist/types/dashboard.d.ts +37 -0
  29. package/dist/types/main.d.ts +37 -0
  30. package/dist/types/shared.d.ts +37 -0
  31. package/dist/types/surfboard.d.ts +37 -0
  32. package/dist/types/types.d.ts +37 -0
  33. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/index-BlspGR07.js"),e=require("../types/index.cjs"),r=require("../chunks/dashboard-summary-settings-dialog-BsmKiGud.js");exports.Surfboard=a.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=r.CalendarPreferencesDialog;exports.DashboardSummarySettingsDialog=r.DashboardSummarySettingsDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/index-Ze8VskG1.js"),e=require("../types/index.cjs"),r=require("../chunks/dashboard-summary-settings-dialog-DRLPzp1P.js");exports.Surfboard=a.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=r.CalendarPreferencesDialog;exports.DashboardSummarySettingsDialog=r.DashboardSummarySettingsDialog;
@@ -1,6 +1,6 @@
1
- import { a as o } from "../chunks/index-DerPpfv0.js";
1
+ import { a as o } from "../chunks/index-14M0TnH6.js";
2
2
  import { CONTROL_CARD_DEFAULT_VALUE as s, EMPTY_SELECTION as D } from "../types/index.js";
3
- import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-q7fx3YAK.js";
3
+ import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-0CIiWsKc.js";
4
4
  export {
5
5
  s as CONTROL_CARD_DEFAULT_VALUE,
6
6
  m as CalendarPreferencesDialog,
@@ -272,6 +272,12 @@ declare interface ColumnSettings {
272
272
  maxWidth?: number;
273
273
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
274
274
  textWrap: 'wrap' | 'nowrap';
275
+ /**
276
+ * Totals-row behavior for this column. Undefined = 'none'. The footer
277
+ * renders only when at least one visible column has a non-'none' behavior.
278
+ */
279
+ totalsBehavior?: TotalsBehavior;
280
+ totalsLabel?: string;
275
281
  numberFormat: {
276
282
  style: 'decimal' | 'currency' | 'percent' | 'scientific';
277
283
  currency: string;
@@ -284,6 +290,14 @@ declare interface ColumnSettings {
284
290
  dataBarColor: string;
285
291
  dataBarMinValue?: number;
286
292
  dataBarMaxValue?: number;
293
+ /**
294
+ * When true, render the cell bg with a heatmap intensity tint scaled
295
+ * across the column's value range. Composes with the existing text
296
+ * color/color-range logic (tint is bg only). `showDataBar` takes
297
+ * precedence when both are set — per the canonical design, a cell is
298
+ * either a data-bar or a heatmap, never both.
299
+ */
300
+ showHeatmap?: boolean;
287
301
  };
288
302
  dateFormat: {
289
303
  format: string;
@@ -1387,6 +1401,14 @@ export declare type StyleProps = {
1387
1401
  };
1388
1402
  };
1389
1403
 
1404
+ /**
1405
+ * Row rhythm for the whole table. Authors pick one per card; undefined
1406
+ * falls back to 'compact' (the canonical default — dense scanning, matches
1407
+ * the Linear-style spec). Drives row padding, cell font size, and header
1408
+ * font size via a shared density spec in DataTable.
1409
+ */
1410
+ declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
1411
+
1390
1412
  declare type TablePreferences = {
1391
1413
  columnSettingsMap?: ColumnSettingsMap;
1392
1414
  selectColumnVisible?: boolean;
@@ -1395,6 +1417,7 @@ declare type TablePreferences = {
1395
1417
  pageSize?: number;
1396
1418
  enableDevModePagination?: boolean;
1397
1419
  forceClientPagination?: boolean;
1420
+ density?: TableDensity;
1398
1421
  };
1399
1422
 
1400
1423
  /**
@@ -2119,6 +2142,20 @@ export declare type TLens = {
2119
2142
  /** Line dash style options */
2120
2143
  export declare type TLineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot';
2121
2144
 
2145
+ /**
2146
+ * Per-column contribution to the table-level totals row (`<tfoot>`).
2147
+ * Additive and optional — omitting it keeps the cell empty in the footer,
2148
+ * matching existing behavior when a totals row is not needed.
2149
+ *
2150
+ * - 'sum' → aggregate the column across the full dataset
2151
+ * - 'avg' → arithmetic mean across the full dataset
2152
+ * - 'count' → non-null count across the full dataset
2153
+ * - 'label' → render `totalsLabel` (or 'Total') as static text — typically
2154
+ * on the first column so the footer reads as a labeled row
2155
+ * - 'none' → blank cell in the footer
2156
+ */
2157
+ declare type TotalsBehavior = 'sum' | 'avg' | 'count' | 'label' | 'none';
2158
+
2122
2159
  /** Point style options supported by Chart.js */
2123
2160
  export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
2124
2161
 
@@ -1073,6 +1073,12 @@ declare interface ColumnSettings {
1073
1073
  maxWidth?: number;
1074
1074
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
1075
1075
  textWrap: 'wrap' | 'nowrap';
1076
+ /**
1077
+ * Totals-row behavior for this column. Undefined = 'none'. The footer
1078
+ * renders only when at least one visible column has a non-'none' behavior.
1079
+ */
1080
+ totalsBehavior?: TotalsBehavior;
1081
+ totalsLabel?: string;
1076
1082
  numberFormat: {
1077
1083
  style: 'decimal' | 'currency' | 'percent' | 'scientific';
1078
1084
  currency: string;
@@ -1085,6 +1091,14 @@ declare interface ColumnSettings {
1085
1091
  dataBarColor: string;
1086
1092
  dataBarMinValue?: number;
1087
1093
  dataBarMaxValue?: number;
1094
+ /**
1095
+ * When true, render the cell bg with a heatmap intensity tint scaled
1096
+ * across the column's value range. Composes with the existing text
1097
+ * color/color-range logic (tint is bg only). `showDataBar` takes
1098
+ * precedence when both are set — per the canonical design, a cell is
1099
+ * either a data-bar or a heatmap, never both.
1100
+ */
1101
+ showHeatmap?: boolean;
1088
1102
  };
1089
1103
  dateFormat: {
1090
1104
  format: string;
@@ -3545,6 +3559,14 @@ export declare type TableConfig = {
3545
3559
  datamodelId: string;
3546
3560
  };
3547
3561
 
3562
+ /**
3563
+ * Row rhythm for the whole table. Authors pick one per card; undefined
3564
+ * falls back to 'compact' (the canonical default — dense scanning, matches
3565
+ * the Linear-style spec). Drives row padding, cell font size, and header
3566
+ * font size via a shared density spec in DataTable.
3567
+ */
3568
+ declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
3569
+
3548
3570
  export declare type TableItem = DropdownItem;
3549
3571
 
3550
3572
  declare type TablePreferences = {
@@ -3555,6 +3577,7 @@ declare type TablePreferences = {
3555
3577
  pageSize?: number;
3556
3578
  enableDevModePagination?: boolean;
3557
3579
  forceClientPagination?: boolean;
3580
+ density?: TableDensity;
3558
3581
  };
3559
3582
 
3560
3583
  /**
@@ -4518,6 +4541,20 @@ export declare type TokenSecurityPolicy = {
4518
4541
  };
4519
4542
  };
4520
4543
 
4544
+ /**
4545
+ * Per-column contribution to the table-level totals row (`<tfoot>`).
4546
+ * Additive and optional — omitting it keeps the cell empty in the footer,
4547
+ * matching existing behavior when a totals row is not needed.
4548
+ *
4549
+ * - 'sum' → aggregate the column across the full dataset
4550
+ * - 'avg' → arithmetic mean across the full dataset
4551
+ * - 'count' → non-null count across the full dataset
4552
+ * - 'label' → render `totalsLabel` (or 'Total') as static text — typically
4553
+ * on the first column so the footer reads as a labeled row
4554
+ * - 'none' → blank cell in the footer
4555
+ */
4556
+ declare type TotalsBehavior = 'sum' | 'avg' | 'count' | 'label' | 'none';
4557
+
4521
4558
  /** Point style options supported by Chart.js */
4522
4559
  export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
4523
4560
 
@@ -259,6 +259,12 @@ declare interface ColumnSettings {
259
259
  maxWidth?: number;
260
260
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
261
261
  textWrap: 'wrap' | 'nowrap';
262
+ /**
263
+ * Totals-row behavior for this column. Undefined = 'none'. The footer
264
+ * renders only when at least one visible column has a non-'none' behavior.
265
+ */
266
+ totalsBehavior?: TotalsBehavior;
267
+ totalsLabel?: string;
262
268
  numberFormat: {
263
269
  style: 'decimal' | 'currency' | 'percent' | 'scientific';
264
270
  currency: string;
@@ -271,6 +277,14 @@ declare interface ColumnSettings {
271
277
  dataBarColor: string;
272
278
  dataBarMinValue?: number;
273
279
  dataBarMaxValue?: number;
280
+ /**
281
+ * When true, render the cell bg with a heatmap intensity tint scaled
282
+ * across the column's value range. Composes with the existing text
283
+ * color/color-range logic (tint is bg only). `showDataBar` takes
284
+ * precedence when both are set — per the canonical design, a cell is
285
+ * either a data-bar or a heatmap, never both.
286
+ */
287
+ showHeatmap?: boolean;
274
288
  };
275
289
  dateFormat: {
276
290
  format: string;
@@ -1204,6 +1218,14 @@ declare type StyleProps = {
1204
1218
  };
1205
1219
  };
1206
1220
 
1221
+ /**
1222
+ * Row rhythm for the whole table. Authors pick one per card; undefined
1223
+ * falls back to 'compact' (the canonical default — dense scanning, matches
1224
+ * the Linear-style spec). Drives row padding, cell font size, and header
1225
+ * font size via a shared density spec in DataTable.
1226
+ */
1227
+ declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
1228
+
1207
1229
  declare type TablePreferences = {
1208
1230
  columnSettingsMap?: ColumnSettingsMap;
1209
1231
  selectColumnVisible?: boolean;
@@ -1212,6 +1234,7 @@ declare type TablePreferences = {
1212
1234
  pageSize?: number;
1213
1235
  enableDevModePagination?: boolean;
1214
1236
  forceClientPagination?: boolean;
1237
+ density?: TableDensity;
1215
1238
  };
1216
1239
 
1217
1240
  /**
@@ -1891,6 +1914,20 @@ declare type TLegendOptions = {
1891
1914
  /** Line dash style options */
1892
1915
  declare type TLineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot';
1893
1916
 
1917
+ /**
1918
+ * Per-column contribution to the table-level totals row (`<tfoot>`).
1919
+ * Additive and optional — omitting it keeps the cell empty in the footer,
1920
+ * matching existing behavior when a totals row is not needed.
1921
+ *
1922
+ * - 'sum' → aggregate the column across the full dataset
1923
+ * - 'avg' → arithmetic mean across the full dataset
1924
+ * - 'count' → non-null count across the full dataset
1925
+ * - 'label' → render `totalsLabel` (or 'Total') as static text — typically
1926
+ * on the first column so the footer reads as a labeled row
1927
+ * - 'none' → blank cell in the footer
1928
+ */
1929
+ declare type TotalsBehavior = 'sum' | 'avg' | 'count' | 'label' | 'none';
1930
+
1894
1931
  /** Point style options supported by Chart.js */
1895
1932
  declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
1896
1933
 
@@ -279,6 +279,12 @@ declare interface ColumnSettings {
279
279
  maxWidth?: number;
280
280
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
281
281
  textWrap: 'wrap' | 'nowrap';
282
+ /**
283
+ * Totals-row behavior for this column. Undefined = 'none'. The footer
284
+ * renders only when at least one visible column has a non-'none' behavior.
285
+ */
286
+ totalsBehavior?: TotalsBehavior;
287
+ totalsLabel?: string;
282
288
  numberFormat: {
283
289
  style: 'decimal' | 'currency' | 'percent' | 'scientific';
284
290
  currency: string;
@@ -291,6 +297,14 @@ declare interface ColumnSettings {
291
297
  dataBarColor: string;
292
298
  dataBarMinValue?: number;
293
299
  dataBarMaxValue?: number;
300
+ /**
301
+ * When true, render the cell bg with a heatmap intensity tint scaled
302
+ * across the column's value range. Composes with the existing text
303
+ * color/color-range logic (tint is bg only). `showDataBar` takes
304
+ * precedence when both are set — per the canonical design, a cell is
305
+ * either a data-bar or a heatmap, never both.
306
+ */
307
+ showHeatmap?: boolean;
294
308
  };
295
309
  dateFormat: {
296
310
  format: string;
@@ -1409,6 +1423,14 @@ export declare type StyleProps = {
1409
1423
 
1410
1424
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX.Element;
1411
1425
 
1426
+ /**
1427
+ * Row rhythm for the whole table. Authors pick one per card; undefined
1428
+ * falls back to 'compact' (the canonical default — dense scanning, matches
1429
+ * the Linear-style spec). Drives row padding, cell font size, and header
1430
+ * font size via a shared density spec in DataTable.
1431
+ */
1432
+ declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
1433
+
1412
1434
  declare type TablePreferences = {
1413
1435
  columnSettingsMap?: ColumnSettingsMap;
1414
1436
  selectColumnVisible?: boolean;
@@ -1417,6 +1439,7 @@ declare type TablePreferences = {
1417
1439
  pageSize?: number;
1418
1440
  enableDevModePagination?: boolean;
1419
1441
  forceClientPagination?: boolean;
1442
+ density?: TableDensity;
1420
1443
  };
1421
1444
 
1422
1445
  /**
@@ -2141,6 +2164,20 @@ export declare type TLens = {
2141
2164
  /** Line dash style options */
2142
2165
  export declare type TLineStyle = 'solid' | 'dashed' | 'dotted' | 'dash-dot';
2143
2166
 
2167
+ /**
2168
+ * Per-column contribution to the table-level totals row (`<tfoot>`).
2169
+ * Additive and optional — omitting it keeps the cell empty in the footer,
2170
+ * matching existing behavior when a totals row is not needed.
2171
+ *
2172
+ * - 'sum' → aggregate the column across the full dataset
2173
+ * - 'avg' → arithmetic mean across the full dataset
2174
+ * - 'count' → non-null count across the full dataset
2175
+ * - 'label' → render `totalsLabel` (or 'Total') as static text — typically
2176
+ * on the first column so the footer reads as a labeled row
2177
+ * - 'none' → blank cell in the footer
2178
+ */
2179
+ declare type TotalsBehavior = 'sum' | 'avg' | 'count' | 'label' | 'none';
2180
+
2144
2181
  /** Point style options supported by Chart.js */
2145
2182
  export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
2146
2183
 
@@ -510,6 +510,12 @@ declare interface ColumnSettings {
510
510
  maxWidth?: number;
511
511
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
512
512
  textWrap: 'wrap' | 'nowrap';
513
+ /**
514
+ * Totals-row behavior for this column. Undefined = 'none'. The footer
515
+ * renders only when at least one visible column has a non-'none' behavior.
516
+ */
517
+ totalsBehavior?: TotalsBehavior;
518
+ totalsLabel?: string;
513
519
  numberFormat: {
514
520
  style: 'decimal' | 'currency' | 'percent' | 'scientific';
515
521
  currency: string;
@@ -522,6 +528,14 @@ declare interface ColumnSettings {
522
528
  dataBarColor: string;
523
529
  dataBarMinValue?: number;
524
530
  dataBarMaxValue?: number;
531
+ /**
532
+ * When true, render the cell bg with a heatmap intensity tint scaled
533
+ * across the column's value range. Composes with the existing text
534
+ * color/color-range logic (tint is bg only). `showDataBar` takes
535
+ * precedence when both are set — per the canonical design, a cell is
536
+ * either a data-bar or a heatmap, never both.
537
+ */
538
+ showHeatmap?: boolean;
525
539
  };
526
540
  dateFormat: {
527
541
  format: string;
@@ -1737,6 +1751,14 @@ export declare type StyleProps = {
1737
1751
  };
1738
1752
  };
1739
1753
 
1754
+ /**
1755
+ * Row rhythm for the whole table. Authors pick one per card; undefined
1756
+ * falls back to 'compact' (the canonical default — dense scanning, matches
1757
+ * the Linear-style spec). Drives row padding, cell font size, and header
1758
+ * font size via a shared density spec in DataTable.
1759
+ */
1760
+ declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
1761
+
1740
1762
  declare type TablePreferences = {
1741
1763
  columnSettingsMap?: ColumnSettingsMap;
1742
1764
  selectColumnVisible?: boolean;
@@ -1745,6 +1767,7 @@ declare type TablePreferences = {
1745
1767
  pageSize?: number;
1746
1768
  enableDevModePagination?: boolean;
1747
1769
  forceClientPagination?: boolean;
1770
+ density?: TableDensity;
1748
1771
  };
1749
1772
 
1750
1773
  /**
@@ -2698,6 +2721,20 @@ export declare type TokenSecurityPolicy = {
2698
2721
  };
2699
2722
  };
2700
2723
 
2724
+ /**
2725
+ * Per-column contribution to the table-level totals row (`<tfoot>`).
2726
+ * Additive and optional — omitting it keeps the cell empty in the footer,
2727
+ * matching existing behavior when a totals row is not needed.
2728
+ *
2729
+ * - 'sum' → aggregate the column across the full dataset
2730
+ * - 'avg' → arithmetic mean across the full dataset
2731
+ * - 'count' → non-null count across the full dataset
2732
+ * - 'label' → render `totalsLabel` (or 'Total') as static text — typically
2733
+ * on the first column so the footer reads as a labeled row
2734
+ * - 'none' → blank cell in the footer
2735
+ */
2736
+ declare type TotalsBehavior = 'sum' | 'avg' | 'count' | 'label' | 'none';
2737
+
2701
2738
  /** Point style options supported by Chart.js */
2702
2739
  export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'line' | 'rect' | 'rectRounded' | 'rectRot' | 'star' | 'triangle';
2703
2740
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.294",
8
+ "version": "0.1.295",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",