react-semaphor 0.1.295 → 0.1.297

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 (40) hide show
  1. package/dist/chunks/{braces-DWldEFn5.js → braces-BT-cB4J_.js} +1 -1
  2. package/dist/chunks/{braces-BdoTYzuj.js → braces-CSunPeAg.js} +1 -1
  3. package/dist/chunks/dashboard-controls-C6254Ugx.js +2219 -0
  4. package/dist/chunks/dashboard-controls-Za3WPtTh.js +47 -0
  5. package/dist/chunks/{dashboard-filter-controls-button-XwenlcXw.js → dashboard-filter-controls-button-DZnR5IgP.js} +487 -513
  6. package/dist/chunks/dashboard-filter-controls-button-dYWccDmw.js +11 -0
  7. package/dist/chunks/{dashboard-json-CU55qPXj.js → dashboard-json-CuI5gkwY.js} +1 -1
  8. package/dist/chunks/{dashboard-json-V6m6lJ_c.js → dashboard-json-DjpkfbSZ.js} +1 -1
  9. package/dist/chunks/{dashboard-summary-settings-dialog-DRLPzp1P.js → dashboard-summary-settings-dialog-C6FUhXQy.js} +1 -1
  10. package/dist/chunks/{dashboard-summary-settings-dialog-0CIiWsKc.js → dashboard-summary-settings-dialog-vC2shhM-.js} +1 -1
  11. package/dist/chunks/edit-dashboard-visual-CoG-tE_T.js +188 -0
  12. package/dist/chunks/{edit-dashboard-visual-8ha6EM_g.js → edit-dashboard-visual-TBI9_Pyh.js} +6351 -6452
  13. package/dist/chunks/index--CoasbAE.js +1523 -0
  14. package/dist/chunks/{index-14M0TnH6.js → index-D0iNspb-.js} +102960 -87712
  15. package/dist/chunks/{resource-management-panel-CcDAn86l.js → resource-management-panel-Cf4FTR33.js} +2 -2
  16. package/dist/chunks/{resource-management-panel-BL5-5ouC.js → resource-management-panel-HOWOJUap.js} +31 -30
  17. package/dist/chunks/{use-create-flow-overlay-state-D3PxfjYv.js → use-create-flow-overlay-state-B7bE6z5B.js} +572 -568
  18. package/dist/chunks/use-create-flow-overlay-state-BqiJrgeK.js +21 -0
  19. package/dist/chunks/use-visual-utils-DP6ty2_T.js +1 -0
  20. package/dist/chunks/{use-visual-utils-CdIOq4nt.js → use-visual-utils-DyvrB6Zh.js} +70 -68
  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 +113 -112
  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 +245 -1
  29. package/dist/types/main.d.ts +317 -12
  30. package/dist/types/shared.d.ts +214 -1
  31. package/dist/types/surfboard.d.ts +245 -1
  32. package/dist/types/types.d.ts +245 -1
  33. package/package.json +7 -1
  34. package/dist/chunks/dashboard-controls-B3lrnI_r.js +0 -47
  35. package/dist/chunks/dashboard-controls-D7U6E1sB.js +0 -2014
  36. package/dist/chunks/dashboard-filter-controls-button-D0AsV28-.js +0 -11
  37. package/dist/chunks/edit-dashboard-visual-sSLAkmgf.js +0 -183
  38. package/dist/chunks/index-Ze8VskG1.js +0 -1435
  39. package/dist/chunks/use-create-flow-overlay-state-BbQVNDCj.js +0 -21
  40. package/dist/chunks/use-visual-utils-kh8p2QFm.js +0 -1
@@ -1 +1 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/index--CoasbAE.js"),e=require("../types/index.cjs"),r=require("../chunks/dashboard-summary-settings-dialog-C6FUhXQy.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-14M0TnH6.js";
1
+ import { a as o } from "../chunks/index-D0iNspb-.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-0CIiWsKc.js";
3
+ import { C as m, D as t } from "../chunks/dashboard-summary-settings-dialog-vC2shhM-.js";
4
4
  export {
5
5
  s as CONTROL_CARD_DEFAULT_VALUE,
6
6
  m as CalendarPreferencesDialog,
@@ -460,6 +460,18 @@ export declare type DashboardProps = {
460
460
  cardControlDefinitions?: ControlDefinition[];
461
461
  controlBindings?: ControlBinding[];
462
462
  };
463
+ /**
464
+ * Document-local runtime values for print/render entry points. Values are
465
+ * keyed by document input id and are intentionally separate from dashboard
466
+ * filters/controls.
467
+ */
468
+ documentInputValues?: DocumentInputRuntimeValues;
469
+ /**
470
+ * Render target for print entry points. Generic dashboard PDF exports also
471
+ * use cardDisplay.mode="print"; document-specific print handling must only
472
+ * run when this is explicitly "document".
473
+ */
474
+ renderMode?: 'dashboard' | 'document';
463
475
  customStyle?: TStyle;
464
476
  currentTheme?: Theme;
465
477
  version?: string;
@@ -588,6 +600,225 @@ declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowfla
588
600
 
589
601
  export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
590
602
 
603
+ export declare type DocumentChartSection = {
604
+ id: string;
605
+ type: 'chart';
606
+ title?: string;
607
+ card: TCard;
608
+ heightPx: number;
609
+ };
610
+
611
+ export declare type DocumentControlInputDefinition = DocumentInputBase & {
612
+ kind: 'control';
613
+ control: ControlDefinition;
614
+ exports?: DocumentInputExportKey[];
615
+ };
616
+
617
+ export declare type DocumentDefinition = {
618
+ version: 1;
619
+ page: DocumentPageSetup;
620
+ runtime?: DocumentRuntimeSettings;
621
+ inputs?: DocumentInputDefinition[];
622
+ defaultInputValues?: Record<string, unknown>;
623
+ header?: DocumentHeaderRegion;
624
+ footer?: DocumentFooterRegion;
625
+ sections: DocumentSection[];
626
+ theme?: DocumentTheme;
627
+ };
628
+
629
+ export declare type DocumentFilterInputDefinition = DocumentInputBase & {
630
+ kind: 'filter';
631
+ filter: TFilter;
632
+ exports?: DocumentInputExportKey[];
633
+ };
634
+
635
+ export declare type DocumentFooterRegion = DocumentRegionBase & {
636
+ region: 'footer';
637
+ layout: {
638
+ type: 'preset';
639
+ preset: 'mvp_footer';
640
+ };
641
+ };
642
+
643
+ export declare type DocumentHeaderRegion = DocumentRegionBase & {
644
+ region: 'header';
645
+ layout: {
646
+ type: 'preset';
647
+ preset: 'mvp_header';
648
+ };
649
+ };
650
+
651
+ export declare type DocumentImageRegionBlock = DocumentRegionBlockBase & {
652
+ type: 'image';
653
+ role?: 'logo';
654
+ src: string;
655
+ alt?: string;
656
+ widthPx?: number;
657
+ };
658
+
659
+ export declare type DocumentInputBase = {
660
+ id: string;
661
+ label: string;
662
+ variableName: string;
663
+ requiredAtExecution: boolean;
664
+ documentPlacement?: 'input_bar';
665
+ description?: string;
666
+ };
667
+
668
+ export declare type DocumentInputDefinition = DocumentFilterInputDefinition | DocumentControlInputDefinition;
669
+
670
+ export declare type DocumentInputExportKey = 'label' | 'value' | 'start' | 'end' | 'range';
671
+
672
+ export declare type DocumentInputRuntimeValues = {
673
+ sheetId?: string;
674
+ filterValuesByInputId?: Record<string, TFilterValue | undefined>;
675
+ controlValuesByInputId?: Record<string, unknown>;
676
+ generatedAt?: string;
677
+ };
678
+
679
+ export declare type DocumentPageBreakSection = {
680
+ id: string;
681
+ type: 'page_break';
682
+ };
683
+
684
+ export declare type DocumentPageSetup = {
685
+ size: 'letter' | 'a4';
686
+ orientation: 'portrait' | 'landscape';
687
+ margins: {
688
+ top: number;
689
+ right: number;
690
+ bottom: number;
691
+ left: number;
692
+ unit: 'in' | 'mm';
693
+ };
694
+ };
695
+
696
+ export declare type DocumentRegion = DocumentHeaderRegion | DocumentFooterRegion;
697
+
698
+ export declare type DocumentRegionBase = {
699
+ enabled: boolean;
700
+ heightPx?: number;
701
+ layout: DocumentRegionLayout;
702
+ blocks: DocumentRegionBlock[];
703
+ };
704
+
705
+ export declare type DocumentRegionBlock = DocumentTextRegionBlock | DocumentImageRegionBlock;
706
+
707
+ export declare type DocumentRegionBlockBase = {
708
+ id: string;
709
+ area?: 'left' | 'center' | 'right' | 'title' | 'metadata' | 'note' | 'pageInfo';
710
+ };
711
+
712
+ export declare type DocumentRegionLayout = {
713
+ type: 'preset';
714
+ preset: 'mvp_header' | 'mvp_footer';
715
+ };
716
+
717
+ export declare type DocumentRuntimeSettings = {
718
+ generatedAtFormat?: string;
719
+ };
720
+
721
+ export declare type DocumentSection = DocumentTextSection | DocumentTableSection | DocumentChartSection | DocumentSpacerSection | DocumentPageBreakSection;
722
+
723
+ export declare type DocumentSpacerSection = {
724
+ id: string;
725
+ type: 'spacer';
726
+ heightPx: number;
727
+ };
728
+
729
+ export declare type DocumentTableDensity = 'comfortable' | 'standard' | 'compact' | 'dense';
730
+
731
+ export declare type DocumentTableGridLines = 'none' | 'outer' | 'inner' | 'horizontal' | 'vertical' | 'top' | 'right' | 'bottom' | 'left' | 'full';
732
+
733
+ export declare type DocumentTableHeaderStyle = 'plain' | 'filled' | 'accent';
734
+
735
+ export declare type DocumentTableSection = {
736
+ id: string;
737
+ type: 'table';
738
+ title?: string;
739
+ card: TCard;
740
+ table: {
741
+ totalsRow?: boolean;
742
+ columnFormatting?: Record<string, unknown>;
743
+ repeatHeaderOnPageBreak?: boolean;
744
+ rowHeightPx?: number;
745
+ style?: DocumentTableStyle;
746
+ totalsStyle?: DocumentTableTotalsStyle;
747
+ };
748
+ };
749
+
750
+ export declare type DocumentTableStyle = {
751
+ density?: DocumentTableDensity;
752
+ headerStyle?: DocumentTableHeaderStyle;
753
+ headerBackgroundColor?: string;
754
+ headerTextColor?: string;
755
+ stripedRows?: boolean;
756
+ gridLines?: DocumentTableGridLines;
757
+ wrapText?: boolean;
758
+ };
759
+
760
+ export declare type DocumentTableTotalsFontWeight = 'normal' | 'medium' | 'semibold' | 'bold';
761
+
762
+ export declare type DocumentTableTotalsStyle = {
763
+ backgroundColor?: string;
764
+ textColor?: string;
765
+ fontWeight?: DocumentTableTotalsFontWeight;
766
+ borderTop?: boolean;
767
+ };
768
+
769
+ export declare type DocumentTextContent = DocumentTextNode[];
770
+
771
+ export declare type DocumentTextInlineFormat = {
772
+ bold?: boolean;
773
+ italic?: boolean;
774
+ underline?: boolean;
775
+ };
776
+
777
+ export declare type DocumentTextNode = {
778
+ type: 'text';
779
+ value: string;
780
+ format?: DocumentTextInlineFormat;
781
+ } | {
782
+ type: 'variable';
783
+ ref: DocumentVariableRef;
784
+ format?: DocumentTextInlineFormat;
785
+ };
786
+
787
+ export declare type DocumentTextRegionBlock = DocumentRegionBlockBase & {
788
+ type: 'text';
789
+ role?: 'title' | 'metadata' | 'note' | 'pageInfo';
790
+ content: DocumentTextContent;
791
+ style?: DocumentTextStyle;
792
+ };
793
+
794
+ export declare type DocumentTextSection = {
795
+ id: string;
796
+ type: 'text';
797
+ content: DocumentTextContent;
798
+ style?: DocumentTextStyle;
799
+ };
800
+
801
+ export declare type DocumentTextStyle = {
802
+ fontSize?: number;
803
+ fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold';
804
+ color?: string;
805
+ align?: 'left' | 'center' | 'right';
806
+ };
807
+
808
+ export declare type DocumentTheme = {
809
+ fontFamily?: string;
810
+ primaryColor?: string;
811
+ };
812
+
813
+ export declare type DocumentVariableRef = {
814
+ source: 'input';
815
+ inputId: string;
816
+ export: DocumentInputExportKey;
817
+ } | {
818
+ source: 'documentMeta';
819
+ key: 'generatedAt' | 'pageNumber' | 'pageCount';
820
+ };
821
+
591
822
  declare interface DrillDownInteraction {
592
823
  mode: 'drillDown';
593
824
  /**
@@ -1303,6 +1534,16 @@ declare type RelativeDateFilter = {
1303
1534
  to: number;
1304
1535
  };
1305
1536
 
1537
+ export declare type ResolvedDocumentInput = {
1538
+ inputId: string;
1539
+ variableName: string;
1540
+ rawValue: unknown;
1541
+ displayValue: string;
1542
+ filterValues?: TFilterValue[];
1543
+ controlValue?: unknown;
1544
+ exports: Record<string, string | number | boolean | null>;
1545
+ };
1546
+
1306
1547
  declare type ResolvedPrimaryDateField = {
1307
1548
  sourceDataset: string;
1308
1549
  sourceField: string;
@@ -1407,7 +1648,7 @@ export declare type StyleProps = {
1407
1648
  * the Linear-style spec). Drives row padding, cell font size, and header
1408
1649
  * font size via a shared density spec in DataTable.
1409
1650
  */
1410
- declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
1651
+ declare type TableDensity = 'dense' | 'compact' | 'standard' | 'comfortable' | 'spacious';
1411
1652
 
1412
1653
  declare type TablePreferences = {
1413
1654
  columnSettingsMap?: ColumnSettingsMap;
@@ -1418,6 +1659,7 @@ declare type TablePreferences = {
1418
1659
  enableDevModePagination?: boolean;
1419
1660
  forceClientPagination?: boolean;
1420
1661
  density?: TableDensity;
1662
+ documentWrapText?: boolean;
1421
1663
  };
1422
1664
 
1423
1665
  /**
@@ -2161,6 +2403,7 @@ export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'li
2161
2403
 
2162
2404
  export declare type TSheet = {
2163
2405
  id: string;
2406
+ kind?: 'dashboard' | 'document';
2164
2407
  title?: string;
2165
2408
  description?: string;
2166
2409
  layout?: ReactGridLayout.Layout[];
@@ -2168,6 +2411,7 @@ export declare type TSheet = {
2168
2411
  cards?: TCard[];
2169
2412
  frames?: TFrame[];
2170
2413
  calculatedFields?: Field[];
2414
+ document?: DocumentDefinition;
2171
2415
  };
2172
2416
 
2173
2417
  /**