react-semaphor 0.1.310 → 0.1.311

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 (46) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +4 -4
  3. package/dist/chunks/{braces-BataYVhi.js → braces-CSECDaJQ.js} +1 -1
  4. package/dist/chunks/{braces-B_1DhXjs.js → braces-DwaAt32i.js} +1 -1
  5. package/dist/chunks/{chevrons-up-down-2PuJgXa0.js → chevrons-up-down-3vBEM7eI.js} +1 -1
  6. package/dist/chunks/{chevrons-up-down-CfMX77Ug.js → chevrons-up-down-DJhB8JNW.js} +1 -1
  7. package/dist/chunks/{dashboard-controls-DKNSTyu3.js → dashboard-controls-CeKjYa7s.js} +8 -8
  8. package/dist/chunks/{dashboard-controls-CZH2CHE6.js → dashboard-controls-Ds8Hmo3Q.js} +1 -1
  9. package/dist/chunks/{dashboard-filter-controls-button-CRYFNfgr.js → dashboard-filter-controls-button-CWL2jJcu.js} +1 -1
  10. package/dist/chunks/{dashboard-filter-controls-button-C5FGXiyJ.js → dashboard-filter-controls-button-Tk5lhwVV.js} +4 -4
  11. package/dist/chunks/{dashboard-json-CUYxXIbj.js → dashboard-json-B_rQbUUz.js} +1 -1
  12. package/dist/chunks/{dashboard-json-A9m16zgO.js → dashboard-json-GL_IXTCk.js} +2 -2
  13. package/dist/chunks/{dashboard-summary-settings-dialog-BFldiulJ.js → dashboard-summary-settings-dialog-CcszMc1A.js} +3 -3
  14. package/dist/chunks/{dashboard-summary-settings-dialog-Dl80Vf3Y.js → dashboard-summary-settings-dialog-DgqFlYl9.js} +1 -1
  15. package/dist/chunks/edit-dashboard-visual-Bu2rxJjm.js +183 -0
  16. package/dist/chunks/{edit-dashboard-visual-C013lDvS.js → edit-dashboard-visual-nGSsSTYx.js} +6760 -6657
  17. package/dist/chunks/{index-scc12bkM.js → index-9v7DehZd.js} +33034 -32819
  18. package/dist/chunks/index-CGCrm-dj.js +1330 -0
  19. package/dist/chunks/{palette-CuxyTPBF.js → palette-C5o9bLo6.js} +1 -1
  20. package/dist/chunks/{palette-DIqG9FgB.js → palette-CI2J34i6.js} +1 -1
  21. package/dist/chunks/{resource-management-panel-CkS-1IEw.js → resource-management-panel-CNmVHnCz.js} +1 -1
  22. package/dist/chunks/{resource-management-panel-xJtqTzS8.js → resource-management-panel-DTg9_DI9.js} +3 -3
  23. package/dist/chunks/{save-CPHrveZg.js → save-CMv91_Hz.js} +1 -1
  24. package/dist/chunks/{save-CP9_rxYk.js → save-Cpz6BWx9.js} +1 -1
  25. package/dist/chunks/{switch-DXHYEa_J.js → switch-Dhoqe3OE.js} +3336 -3245
  26. package/dist/chunks/switch-otrSiyjH.js +168 -0
  27. package/dist/chunks/{use-create-flow-overlay-state-C77yBFiq.js → use-create-flow-overlay-state-C8WGfC8T.js} +4 -4
  28. package/dist/chunks/{use-create-flow-overlay-state-nhcTzyJQ.js → use-create-flow-overlay-state-DiH6M1Cd.js} +1 -1
  29. package/dist/chunks/{use-visual-utils-Cm2IkP1c.js → use-visual-utils-BeJ73yvV.js} +1 -1
  30. package/dist/chunks/{use-visual-utils-BqljNzWn.js → use-visual-utils-RkPa2gqQ.js} +2 -2
  31. package/dist/dashboard/index.cjs +1 -1
  32. package/dist/dashboard/index.js +1 -1
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.js +7 -7
  35. package/dist/style.css +1 -1
  36. package/dist/surfboard/index.cjs +1 -1
  37. package/dist/surfboard/index.js +2 -2
  38. package/dist/types/dashboard.d.ts +5 -2
  39. package/dist/types/main.d.ts +12 -2
  40. package/dist/types/shared.d.ts +5 -2
  41. package/dist/types/surfboard.d.ts +5 -2
  42. package/dist/types/types.d.ts +5 -2
  43. package/package.json +1 -1
  44. package/dist/chunks/edit-dashboard-visual-Bt6wP1pc.js +0 -183
  45. package/dist/chunks/index-C_mYCH5V.js +0 -1330
  46. package/dist/chunks/switch-BFPV36rd.js +0 -168
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/index-C_mYCH5V.js"),e=require("../chunks/common-types-C73-Ud1-.js"),r=require("../chunks/dashboard-summary-settings-dialog-Dl80Vf3Y.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-CGCrm-dj.js"),e=require("../chunks/common-types-C73-Ud1-.js"),r=require("../chunks/dashboard-summary-settings-dialog-DgqFlYl9.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-scc12bkM.js";
1
+ import { a as o } from "../chunks/index-9v7DehZd.js";
2
2
  import { C as s, E as C } from "../chunks/common-types-4bjoIgvm.js";
3
- import { C as E, D as f } from "../chunks/dashboard-summary-settings-dialog-BFldiulJ.js";
3
+ import { C as E, D as f } from "../chunks/dashboard-summary-settings-dialog-CcszMc1A.js";
4
4
  export {
5
5
  s as CONTROL_CARD_DEFAULT_VALUE,
6
6
  E as CalendarPreferencesDialog,
@@ -351,7 +351,7 @@ declare interface ColumnSettings {
351
351
  minWidth?: number;
352
352
  maxWidth?: number;
353
353
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
354
- textWrap: 'wrap' | 'nowrap';
354
+ textWrap: ColumnTextWrap;
355
355
  /** Deprecated/inert. Totals are controlled by tablePrefs.tableStyle.totals. */
356
356
  totalsBehavior?: TotalsBehavior;
357
357
  totalsLabel?: string;
@@ -390,6 +390,8 @@ declare interface ColumnSettings {
390
390
 
391
391
  declare type ColumnSettingsMap = Record<string, ColumnSettings>;
392
392
 
393
+ declare type ColumnTextWrap = 'default' | 'truncate' | 'wrap' | 'nowrap' | 'preserve';
394
+
393
395
  declare type ColumnType = 'string' | 'number' | 'date';
394
396
 
395
397
  declare type ComparisonOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
@@ -1282,7 +1284,7 @@ declare interface Field {
1282
1284
  fieldScope?: FieldScope;
1283
1285
  }
1284
1286
 
1285
- declare type FieldScope = 'card' | 'dashboard' | 'domain';
1287
+ declare type FieldScope = 'card' | 'sheet' | 'dashboard' | 'domain';
1286
1288
 
1287
1289
  declare type FileAttachment = {
1288
1290
  id: string;
@@ -2473,6 +2475,7 @@ export declare type TDashboard = {
2473
2475
  };
2474
2476
  description?: string;
2475
2477
  sheets?: TSheet[];
2478
+ calculatedFields?: Field[];
2476
2479
  style?: TStyle;
2477
2480
  filters?: TFilter[];
2478
2481
  customCards?: CustomCard[];
@@ -139,6 +139,7 @@ declare type Actions_2 = {
139
139
  semanticExecutionPayload?: SemanticExecutionPayload;
140
140
  }) => void;
141
141
  updateSheetCalculatedFields: (sheetId: string, calculatedFields: Field[]) => void;
142
+ updateDashboardCalculatedFields: (calculatedFields: Field[]) => void;
142
143
  setVisualEditPendingFrameRewrites: (sheetId: string, frames: TFrame[]) => void;
143
144
  setVisualEditPendingFilterRewrites: (sheetId: string, filters: TFilter[]) => void;
144
145
  clearVisualEditPendingFrameRewrites: (sheetId?: string) => void;
@@ -1176,7 +1177,7 @@ declare interface ColumnSettings {
1176
1177
  minWidth?: number;
1177
1178
  maxWidth?: number;
1178
1179
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
1179
- textWrap: 'wrap' | 'nowrap';
1180
+ textWrap: ColumnTextWrap;
1180
1181
  /** Deprecated/inert. Totals are controlled by tablePrefs.tableStyle.totals. */
1181
1182
  totalsBehavior?: TotalsBehavior;
1182
1183
  totalsLabel?: string;
@@ -1215,6 +1216,8 @@ declare interface ColumnSettings {
1215
1216
 
1216
1217
  declare type ColumnSettingsMap = Record<string, ColumnSettings>;
1217
1218
 
1219
+ declare type ColumnTextWrap = 'default' | 'truncate' | 'wrap' | 'nowrap' | 'preserve';
1220
+
1218
1221
  export declare type ColumnType = 'string' | 'number' | 'date';
1219
1222
 
1220
1223
  export declare function Combobox({ name, items, value, onChange, isLoading, isError, refetch, className, icon, showNone, }: {
@@ -1836,6 +1839,12 @@ export declare type DashboardStore = {
1836
1839
  * These stay draft-only until the editor Save path applies the current frame.
1837
1840
  */
1838
1841
  visualEditPendingFilterRewrites: Record<string, TFilter[]>;
1842
+ /**
1843
+ * Pending dashboard-scoped calculated-field rewrites produced while visual
1844
+ * editing. These stay draft-only until the editor Save path applies the
1845
+ * current frame.
1846
+ */
1847
+ visualEditPendingDashboardCalculatedFields?: Field[];
1839
1848
  isDashboardEditing: boolean;
1840
1849
  isVisualEditing: boolean;
1841
1850
  showContext: boolean;
@@ -2885,7 +2894,7 @@ export declare interface Field {
2885
2894
  fieldScope?: FieldScope;
2886
2895
  }
2887
2896
 
2888
- export declare type FieldScope = 'card' | 'dashboard' | 'domain';
2897
+ export declare type FieldScope = 'card' | 'sheet' | 'dashboard' | 'domain';
2889
2898
 
2890
2899
  declare type FileAttachment = {
2891
2900
  id: string;
@@ -4752,6 +4761,7 @@ export declare type TDashboard = {
4752
4761
  };
4753
4762
  description?: string;
4754
4763
  sheets?: TSheet[];
4764
+ calculatedFields?: Field[];
4755
4765
  style?: TStyle;
4756
4766
  filters?: TFilter[];
4757
4767
  customCards?: CustomCard[];
@@ -258,7 +258,7 @@ declare interface ColumnSettings {
258
258
  minWidth?: number;
259
259
  maxWidth?: number;
260
260
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
261
- textWrap: 'wrap' | 'nowrap';
261
+ textWrap: ColumnTextWrap;
262
262
  /** Deprecated/inert. Totals are controlled by tablePrefs.tableStyle.totals. */
263
263
  totalsBehavior?: TotalsBehavior;
264
264
  totalsLabel?: string;
@@ -297,6 +297,8 @@ declare interface ColumnSettings {
297
297
 
298
298
  declare type ColumnSettingsMap = Record<string, ColumnSettings>;
299
299
 
300
+ declare type ColumnTextWrap = 'default' | 'truncate' | 'wrap' | 'nowrap' | 'preserve';
301
+
300
302
  declare type ColumnType = 'string' | 'number' | 'date';
301
303
 
302
304
  declare type ComparisonOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
@@ -1042,7 +1044,7 @@ declare interface Field {
1042
1044
  fieldScope?: FieldScope;
1043
1045
  }
1044
1046
 
1045
- declare type FieldScope = 'card' | 'dashboard' | 'domain';
1047
+ declare type FieldScope = 'card' | 'sheet' | 'dashboard' | 'domain';
1046
1048
 
1047
1049
  declare type FileAttachment = {
1048
1050
  id: string;
@@ -2070,6 +2072,7 @@ declare type TDashboard = {
2070
2072
  };
2071
2073
  description?: string;
2072
2074
  sheets?: TSheet[];
2075
+ calculatedFields?: Field[];
2073
2076
  style?: TStyle;
2074
2077
  filters?: TFilter[];
2075
2078
  customCards?: CustomCard[];
@@ -358,7 +358,7 @@ declare interface ColumnSettings {
358
358
  minWidth?: number;
359
359
  maxWidth?: number;
360
360
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
361
- textWrap: 'wrap' | 'nowrap';
361
+ textWrap: ColumnTextWrap;
362
362
  /** Deprecated/inert. Totals are controlled by tablePrefs.tableStyle.totals. */
363
363
  totalsBehavior?: TotalsBehavior;
364
364
  totalsLabel?: string;
@@ -397,6 +397,8 @@ declare interface ColumnSettings {
397
397
 
398
398
  declare type ColumnSettingsMap = Record<string, ColumnSettings>;
399
399
 
400
+ declare type ColumnTextWrap = 'default' | 'truncate' | 'wrap' | 'nowrap' | 'preserve';
401
+
400
402
  declare type ColumnType = 'string' | 'number' | 'date';
401
403
 
402
404
  declare type ComparisonOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
@@ -1302,7 +1304,7 @@ declare interface Field {
1302
1304
  fieldScope?: FieldScope;
1303
1305
  }
1304
1306
 
1305
- declare type FieldScope = 'card' | 'dashboard' | 'domain';
1307
+ declare type FieldScope = 'card' | 'sheet' | 'dashboard' | 'domain';
1306
1308
 
1307
1309
  declare type FileAttachment = {
1308
1310
  id: string;
@@ -2495,6 +2497,7 @@ export declare type TDashboard = {
2495
2497
  };
2496
2498
  description?: string;
2497
2499
  sheets?: TSheet[];
2500
+ calculatedFields?: Field[];
2498
2501
  style?: TStyle;
2499
2502
  filters?: TFilter[];
2500
2503
  customCards?: CustomCard[];
@@ -623,7 +623,7 @@ declare interface ColumnSettings {
623
623
  minWidth?: number;
624
624
  maxWidth?: number;
625
625
  textOverflow?: 'ellipsis' | 'wrap' | 'clip';
626
- textWrap: 'wrap' | 'nowrap';
626
+ textWrap: ColumnTextWrap;
627
627
  /** Deprecated/inert. Totals are controlled by tablePrefs.tableStyle.totals. */
628
628
  totalsBehavior?: TotalsBehavior;
629
629
  totalsLabel?: string;
@@ -662,6 +662,8 @@ declare interface ColumnSettings {
662
662
 
663
663
  declare type ColumnSettingsMap = Record<string, ColumnSettings>;
664
664
 
665
+ declare type ColumnTextWrap = 'default' | 'truncate' | 'wrap' | 'nowrap' | 'preserve';
666
+
665
667
  declare type ColumnType = 'string' | 'number' | 'date';
666
668
 
667
669
  declare type ComparisonOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
@@ -1658,7 +1660,7 @@ export declare interface Field {
1658
1660
  fieldScope?: FieldScope;
1659
1661
  }
1660
1662
 
1661
- export declare type FieldScope = 'card' | 'dashboard' | 'domain';
1663
+ export declare type FieldScope = 'card' | 'sheet' | 'dashboard' | 'domain';
1662
1664
 
1663
1665
  declare type FileAttachment = {
1664
1666
  id: string;
@@ -3064,6 +3066,7 @@ export declare type TDashboard = {
3064
3066
  };
3065
3067
  description?: string;
3066
3068
  sheets?: TSheet[];
3069
+ calculatedFields?: Field[];
3067
3070
  style?: TStyle;
3068
3071
  filters?: TFilter[];
3069
3072
  customCards?: CustomCard[];
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.310",
8
+ "version": "0.1.311",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",