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.
- package/dist/chunks/{braces-DWldEFn5.js → braces-BT-cB4J_.js} +1 -1
- package/dist/chunks/{braces-BdoTYzuj.js → braces-CSunPeAg.js} +1 -1
- package/dist/chunks/dashboard-controls-C6254Ugx.js +2219 -0
- package/dist/chunks/dashboard-controls-Za3WPtTh.js +47 -0
- package/dist/chunks/{dashboard-filter-controls-button-XwenlcXw.js → dashboard-filter-controls-button-DZnR5IgP.js} +487 -513
- package/dist/chunks/dashboard-filter-controls-button-dYWccDmw.js +11 -0
- package/dist/chunks/{dashboard-json-CU55qPXj.js → dashboard-json-CuI5gkwY.js} +1 -1
- package/dist/chunks/{dashboard-json-V6m6lJ_c.js → dashboard-json-DjpkfbSZ.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DRLPzp1P.js → dashboard-summary-settings-dialog-C6FUhXQy.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-0CIiWsKc.js → dashboard-summary-settings-dialog-vC2shhM-.js} +1 -1
- package/dist/chunks/edit-dashboard-visual-CoG-tE_T.js +188 -0
- package/dist/chunks/{edit-dashboard-visual-8ha6EM_g.js → edit-dashboard-visual-TBI9_Pyh.js} +6351 -6452
- package/dist/chunks/index--CoasbAE.js +1523 -0
- package/dist/chunks/{index-14M0TnH6.js → index-D0iNspb-.js} +102960 -87712
- package/dist/chunks/{resource-management-panel-CcDAn86l.js → resource-management-panel-Cf4FTR33.js} +2 -2
- package/dist/chunks/{resource-management-panel-BL5-5ouC.js → resource-management-panel-HOWOJUap.js} +31 -30
- package/dist/chunks/{use-create-flow-overlay-state-D3PxfjYv.js → use-create-flow-overlay-state-B7bE6z5B.js} +572 -568
- package/dist/chunks/use-create-flow-overlay-state-BqiJrgeK.js +21 -0
- package/dist/chunks/use-visual-utils-DP6ty2_T.js +1 -0
- package/dist/chunks/{use-visual-utils-CdIOq4nt.js → use-visual-utils-DyvrB6Zh.js} +70 -68
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +113 -112
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/dashboard.d.ts +245 -1
- package/dist/types/main.d.ts +317 -12
- package/dist/types/shared.d.ts +214 -1
- package/dist/types/surfboard.d.ts +245 -1
- package/dist/types/types.d.ts +245 -1
- package/package.json +7 -1
- package/dist/chunks/dashboard-controls-B3lrnI_r.js +0 -47
- package/dist/chunks/dashboard-controls-D7U6E1sB.js +0 -2014
- package/dist/chunks/dashboard-filter-controls-button-D0AsV28-.js +0 -11
- package/dist/chunks/edit-dashboard-visual-sSLAkmgf.js +0 -183
- package/dist/chunks/index-Ze8VskG1.js +0 -1435
- package/dist/chunks/use-create-flow-overlay-state-BbQVNDCj.js +0 -21
- package/dist/chunks/use-visual-utils-kh8p2QFm.js +0 -1
|
@@ -470,6 +470,18 @@ export declare type DashboardProps = {
|
|
|
470
470
|
cardControlDefinitions?: ControlDefinition[];
|
|
471
471
|
controlBindings?: ControlBinding[];
|
|
472
472
|
};
|
|
473
|
+
/**
|
|
474
|
+
* Document-local runtime values for print/render entry points. Values are
|
|
475
|
+
* keyed by document input id and are intentionally separate from dashboard
|
|
476
|
+
* filters/controls.
|
|
477
|
+
*/
|
|
478
|
+
documentInputValues?: DocumentInputRuntimeValues;
|
|
479
|
+
/**
|
|
480
|
+
* Render target for print entry points. Generic dashboard PDF exports also
|
|
481
|
+
* use cardDisplay.mode="print"; document-specific print handling must only
|
|
482
|
+
* run when this is explicitly "document".
|
|
483
|
+
*/
|
|
484
|
+
renderMode?: 'dashboard' | 'document';
|
|
473
485
|
customStyle?: TStyle;
|
|
474
486
|
currentTheme?: Theme;
|
|
475
487
|
version?: string;
|
|
@@ -608,6 +620,225 @@ declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowfla
|
|
|
608
620
|
|
|
609
621
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
610
622
|
|
|
623
|
+
export declare type DocumentChartSection = {
|
|
624
|
+
id: string;
|
|
625
|
+
type: 'chart';
|
|
626
|
+
title?: string;
|
|
627
|
+
card: TCard;
|
|
628
|
+
heightPx: number;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
export declare type DocumentControlInputDefinition = DocumentInputBase & {
|
|
632
|
+
kind: 'control';
|
|
633
|
+
control: ControlDefinition;
|
|
634
|
+
exports?: DocumentInputExportKey[];
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export declare type DocumentDefinition = {
|
|
638
|
+
version: 1;
|
|
639
|
+
page: DocumentPageSetup;
|
|
640
|
+
runtime?: DocumentRuntimeSettings;
|
|
641
|
+
inputs?: DocumentInputDefinition[];
|
|
642
|
+
defaultInputValues?: Record<string, unknown>;
|
|
643
|
+
header?: DocumentHeaderRegion;
|
|
644
|
+
footer?: DocumentFooterRegion;
|
|
645
|
+
sections: DocumentSection[];
|
|
646
|
+
theme?: DocumentTheme;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
export declare type DocumentFilterInputDefinition = DocumentInputBase & {
|
|
650
|
+
kind: 'filter';
|
|
651
|
+
filter: TFilter;
|
|
652
|
+
exports?: DocumentInputExportKey[];
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
export declare type DocumentFooterRegion = DocumentRegionBase & {
|
|
656
|
+
region: 'footer';
|
|
657
|
+
layout: {
|
|
658
|
+
type: 'preset';
|
|
659
|
+
preset: 'mvp_footer';
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
export declare type DocumentHeaderRegion = DocumentRegionBase & {
|
|
664
|
+
region: 'header';
|
|
665
|
+
layout: {
|
|
666
|
+
type: 'preset';
|
|
667
|
+
preset: 'mvp_header';
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
export declare type DocumentImageRegionBlock = DocumentRegionBlockBase & {
|
|
672
|
+
type: 'image';
|
|
673
|
+
role?: 'logo';
|
|
674
|
+
src: string;
|
|
675
|
+
alt?: string;
|
|
676
|
+
widthPx?: number;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
export declare type DocumentInputBase = {
|
|
680
|
+
id: string;
|
|
681
|
+
label: string;
|
|
682
|
+
variableName: string;
|
|
683
|
+
requiredAtExecution: boolean;
|
|
684
|
+
documentPlacement?: 'input_bar';
|
|
685
|
+
description?: string;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
export declare type DocumentInputDefinition = DocumentFilterInputDefinition | DocumentControlInputDefinition;
|
|
689
|
+
|
|
690
|
+
export declare type DocumentInputExportKey = 'label' | 'value' | 'start' | 'end' | 'range';
|
|
691
|
+
|
|
692
|
+
export declare type DocumentInputRuntimeValues = {
|
|
693
|
+
sheetId?: string;
|
|
694
|
+
filterValuesByInputId?: Record<string, TFilterValue | undefined>;
|
|
695
|
+
controlValuesByInputId?: Record<string, unknown>;
|
|
696
|
+
generatedAt?: string;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
export declare type DocumentPageBreakSection = {
|
|
700
|
+
id: string;
|
|
701
|
+
type: 'page_break';
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
export declare type DocumentPageSetup = {
|
|
705
|
+
size: 'letter' | 'a4';
|
|
706
|
+
orientation: 'portrait' | 'landscape';
|
|
707
|
+
margins: {
|
|
708
|
+
top: number;
|
|
709
|
+
right: number;
|
|
710
|
+
bottom: number;
|
|
711
|
+
left: number;
|
|
712
|
+
unit: 'in' | 'mm';
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
export declare type DocumentRegion = DocumentHeaderRegion | DocumentFooterRegion;
|
|
717
|
+
|
|
718
|
+
export declare type DocumentRegionBase = {
|
|
719
|
+
enabled: boolean;
|
|
720
|
+
heightPx?: number;
|
|
721
|
+
layout: DocumentRegionLayout;
|
|
722
|
+
blocks: DocumentRegionBlock[];
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
export declare type DocumentRegionBlock = DocumentTextRegionBlock | DocumentImageRegionBlock;
|
|
726
|
+
|
|
727
|
+
export declare type DocumentRegionBlockBase = {
|
|
728
|
+
id: string;
|
|
729
|
+
area?: 'left' | 'center' | 'right' | 'title' | 'metadata' | 'note' | 'pageInfo';
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
export declare type DocumentRegionLayout = {
|
|
733
|
+
type: 'preset';
|
|
734
|
+
preset: 'mvp_header' | 'mvp_footer';
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
export declare type DocumentRuntimeSettings = {
|
|
738
|
+
generatedAtFormat?: string;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export declare type DocumentSection = DocumentTextSection | DocumentTableSection | DocumentChartSection | DocumentSpacerSection | DocumentPageBreakSection;
|
|
742
|
+
|
|
743
|
+
export declare type DocumentSpacerSection = {
|
|
744
|
+
id: string;
|
|
745
|
+
type: 'spacer';
|
|
746
|
+
heightPx: number;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export declare type DocumentTableDensity = 'comfortable' | 'standard' | 'compact' | 'dense';
|
|
750
|
+
|
|
751
|
+
export declare type DocumentTableGridLines = 'none' | 'outer' | 'inner' | 'horizontal' | 'vertical' | 'top' | 'right' | 'bottom' | 'left' | 'full';
|
|
752
|
+
|
|
753
|
+
export declare type DocumentTableHeaderStyle = 'plain' | 'filled' | 'accent';
|
|
754
|
+
|
|
755
|
+
export declare type DocumentTableSection = {
|
|
756
|
+
id: string;
|
|
757
|
+
type: 'table';
|
|
758
|
+
title?: string;
|
|
759
|
+
card: TCard;
|
|
760
|
+
table: {
|
|
761
|
+
totalsRow?: boolean;
|
|
762
|
+
columnFormatting?: Record<string, unknown>;
|
|
763
|
+
repeatHeaderOnPageBreak?: boolean;
|
|
764
|
+
rowHeightPx?: number;
|
|
765
|
+
style?: DocumentTableStyle;
|
|
766
|
+
totalsStyle?: DocumentTableTotalsStyle;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export declare type DocumentTableStyle = {
|
|
771
|
+
density?: DocumentTableDensity;
|
|
772
|
+
headerStyle?: DocumentTableHeaderStyle;
|
|
773
|
+
headerBackgroundColor?: string;
|
|
774
|
+
headerTextColor?: string;
|
|
775
|
+
stripedRows?: boolean;
|
|
776
|
+
gridLines?: DocumentTableGridLines;
|
|
777
|
+
wrapText?: boolean;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export declare type DocumentTableTotalsFontWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
781
|
+
|
|
782
|
+
export declare type DocumentTableTotalsStyle = {
|
|
783
|
+
backgroundColor?: string;
|
|
784
|
+
textColor?: string;
|
|
785
|
+
fontWeight?: DocumentTableTotalsFontWeight;
|
|
786
|
+
borderTop?: boolean;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
export declare type DocumentTextContent = DocumentTextNode[];
|
|
790
|
+
|
|
791
|
+
export declare type DocumentTextInlineFormat = {
|
|
792
|
+
bold?: boolean;
|
|
793
|
+
italic?: boolean;
|
|
794
|
+
underline?: boolean;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
export declare type DocumentTextNode = {
|
|
798
|
+
type: 'text';
|
|
799
|
+
value: string;
|
|
800
|
+
format?: DocumentTextInlineFormat;
|
|
801
|
+
} | {
|
|
802
|
+
type: 'variable';
|
|
803
|
+
ref: DocumentVariableRef;
|
|
804
|
+
format?: DocumentTextInlineFormat;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
export declare type DocumentTextRegionBlock = DocumentRegionBlockBase & {
|
|
808
|
+
type: 'text';
|
|
809
|
+
role?: 'title' | 'metadata' | 'note' | 'pageInfo';
|
|
810
|
+
content: DocumentTextContent;
|
|
811
|
+
style?: DocumentTextStyle;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
export declare type DocumentTextSection = {
|
|
815
|
+
id: string;
|
|
816
|
+
type: 'text';
|
|
817
|
+
content: DocumentTextContent;
|
|
818
|
+
style?: DocumentTextStyle;
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
export declare type DocumentTextStyle = {
|
|
822
|
+
fontSize?: number;
|
|
823
|
+
fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
824
|
+
color?: string;
|
|
825
|
+
align?: 'left' | 'center' | 'right';
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
export declare type DocumentTheme = {
|
|
829
|
+
fontFamily?: string;
|
|
830
|
+
primaryColor?: string;
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
export declare type DocumentVariableRef = {
|
|
834
|
+
source: 'input';
|
|
835
|
+
inputId: string;
|
|
836
|
+
export: DocumentInputExportKey;
|
|
837
|
+
} | {
|
|
838
|
+
source: 'documentMeta';
|
|
839
|
+
key: 'generatedAt' | 'pageNumber' | 'pageCount';
|
|
840
|
+
};
|
|
841
|
+
|
|
611
842
|
declare interface DrillDownInteraction {
|
|
612
843
|
mode: 'drillDown';
|
|
613
844
|
/**
|
|
@@ -1323,6 +1554,16 @@ declare type RelativeDateFilter = {
|
|
|
1323
1554
|
to: number;
|
|
1324
1555
|
};
|
|
1325
1556
|
|
|
1557
|
+
export declare type ResolvedDocumentInput = {
|
|
1558
|
+
inputId: string;
|
|
1559
|
+
variableName: string;
|
|
1560
|
+
rawValue: unknown;
|
|
1561
|
+
displayValue: string;
|
|
1562
|
+
filterValues?: TFilterValue[];
|
|
1563
|
+
controlValue?: unknown;
|
|
1564
|
+
exports: Record<string, string | number | boolean | null>;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1326
1567
|
declare type ResolvedPrimaryDateField = {
|
|
1327
1568
|
sourceDataset: string;
|
|
1328
1569
|
sourceField: string;
|
|
@@ -1429,7 +1670,7 @@ export declare function Surfboard({ showControls, showFooter, ...rest }: Dashboa
|
|
|
1429
1670
|
* the Linear-style spec). Drives row padding, cell font size, and header
|
|
1430
1671
|
* font size via a shared density spec in DataTable.
|
|
1431
1672
|
*/
|
|
1432
|
-
declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
|
|
1673
|
+
declare type TableDensity = 'dense' | 'compact' | 'standard' | 'comfortable' | 'spacious';
|
|
1433
1674
|
|
|
1434
1675
|
declare type TablePreferences = {
|
|
1435
1676
|
columnSettingsMap?: ColumnSettingsMap;
|
|
@@ -1440,6 +1681,7 @@ declare type TablePreferences = {
|
|
|
1440
1681
|
enableDevModePagination?: boolean;
|
|
1441
1682
|
forceClientPagination?: boolean;
|
|
1442
1683
|
density?: TableDensity;
|
|
1684
|
+
documentWrapText?: boolean;
|
|
1443
1685
|
};
|
|
1444
1686
|
|
|
1445
1687
|
/**
|
|
@@ -2183,6 +2425,7 @@ export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'li
|
|
|
2183
2425
|
|
|
2184
2426
|
export declare type TSheet = {
|
|
2185
2427
|
id: string;
|
|
2428
|
+
kind?: 'dashboard' | 'document';
|
|
2186
2429
|
title?: string;
|
|
2187
2430
|
description?: string;
|
|
2188
2431
|
layout?: ReactGridLayout.Layout[];
|
|
@@ -2190,6 +2433,7 @@ export declare type TSheet = {
|
|
|
2190
2433
|
cards?: TCard[];
|
|
2191
2434
|
frames?: TFrame[];
|
|
2192
2435
|
calculatedFields?: Field[];
|
|
2436
|
+
document?: DocumentDefinition;
|
|
2193
2437
|
};
|
|
2194
2438
|
|
|
2195
2439
|
/**
|
package/dist/types/types.d.ts
CHANGED
|
@@ -722,6 +722,18 @@ export declare type DashboardProps = {
|
|
|
722
722
|
cardControlDefinitions?: ControlDefinition[];
|
|
723
723
|
controlBindings?: ControlBinding[];
|
|
724
724
|
};
|
|
725
|
+
/**
|
|
726
|
+
* Document-local runtime values for print/render entry points. Values are
|
|
727
|
+
* keyed by document input id and are intentionally separate from dashboard
|
|
728
|
+
* filters/controls.
|
|
729
|
+
*/
|
|
730
|
+
documentInputValues?: DocumentInputRuntimeValues;
|
|
731
|
+
/**
|
|
732
|
+
* Render target for print entry points. Generic dashboard PDF exports also
|
|
733
|
+
* use cardDisplay.mode="print"; document-specific print handling must only
|
|
734
|
+
* run when this is explicitly "document".
|
|
735
|
+
*/
|
|
736
|
+
renderMode?: 'dashboard' | 'document';
|
|
725
737
|
customStyle?: TStyle;
|
|
726
738
|
currentTheme?: Theme;
|
|
727
739
|
version?: string;
|
|
@@ -877,6 +889,225 @@ declare type Dialect = 'mysql' | 'postgres' | 'bigquery' | 'redshift' | 'snowfla
|
|
|
877
889
|
|
|
878
890
|
export declare type DisplayDataType = 'string' | 'date' | 'number' | 'html' | 'none';
|
|
879
891
|
|
|
892
|
+
export declare type DocumentChartSection = {
|
|
893
|
+
id: string;
|
|
894
|
+
type: 'chart';
|
|
895
|
+
title?: string;
|
|
896
|
+
card: TCard;
|
|
897
|
+
heightPx: number;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
export declare type DocumentControlInputDefinition = DocumentInputBase & {
|
|
901
|
+
kind: 'control';
|
|
902
|
+
control: ControlDefinition;
|
|
903
|
+
exports?: DocumentInputExportKey[];
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
export declare type DocumentDefinition = {
|
|
907
|
+
version: 1;
|
|
908
|
+
page: DocumentPageSetup;
|
|
909
|
+
runtime?: DocumentRuntimeSettings;
|
|
910
|
+
inputs?: DocumentInputDefinition[];
|
|
911
|
+
defaultInputValues?: Record<string, unknown>;
|
|
912
|
+
header?: DocumentHeaderRegion;
|
|
913
|
+
footer?: DocumentFooterRegion;
|
|
914
|
+
sections: DocumentSection[];
|
|
915
|
+
theme?: DocumentTheme;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
export declare type DocumentFilterInputDefinition = DocumentInputBase & {
|
|
919
|
+
kind: 'filter';
|
|
920
|
+
filter: TFilter;
|
|
921
|
+
exports?: DocumentInputExportKey[];
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
export declare type DocumentFooterRegion = DocumentRegionBase & {
|
|
925
|
+
region: 'footer';
|
|
926
|
+
layout: {
|
|
927
|
+
type: 'preset';
|
|
928
|
+
preset: 'mvp_footer';
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
export declare type DocumentHeaderRegion = DocumentRegionBase & {
|
|
933
|
+
region: 'header';
|
|
934
|
+
layout: {
|
|
935
|
+
type: 'preset';
|
|
936
|
+
preset: 'mvp_header';
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export declare type DocumentImageRegionBlock = DocumentRegionBlockBase & {
|
|
941
|
+
type: 'image';
|
|
942
|
+
role?: 'logo';
|
|
943
|
+
src: string;
|
|
944
|
+
alt?: string;
|
|
945
|
+
widthPx?: number;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
export declare type DocumentInputBase = {
|
|
949
|
+
id: string;
|
|
950
|
+
label: string;
|
|
951
|
+
variableName: string;
|
|
952
|
+
requiredAtExecution: boolean;
|
|
953
|
+
documentPlacement?: 'input_bar';
|
|
954
|
+
description?: string;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
export declare type DocumentInputDefinition = DocumentFilterInputDefinition | DocumentControlInputDefinition;
|
|
958
|
+
|
|
959
|
+
export declare type DocumentInputExportKey = 'label' | 'value' | 'start' | 'end' | 'range';
|
|
960
|
+
|
|
961
|
+
export declare type DocumentInputRuntimeValues = {
|
|
962
|
+
sheetId?: string;
|
|
963
|
+
filterValuesByInputId?: Record<string, TFilterValue | undefined>;
|
|
964
|
+
controlValuesByInputId?: Record<string, unknown>;
|
|
965
|
+
generatedAt?: string;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
export declare type DocumentPageBreakSection = {
|
|
969
|
+
id: string;
|
|
970
|
+
type: 'page_break';
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export declare type DocumentPageSetup = {
|
|
974
|
+
size: 'letter' | 'a4';
|
|
975
|
+
orientation: 'portrait' | 'landscape';
|
|
976
|
+
margins: {
|
|
977
|
+
top: number;
|
|
978
|
+
right: number;
|
|
979
|
+
bottom: number;
|
|
980
|
+
left: number;
|
|
981
|
+
unit: 'in' | 'mm';
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
export declare type DocumentRegion = DocumentHeaderRegion | DocumentFooterRegion;
|
|
986
|
+
|
|
987
|
+
export declare type DocumentRegionBase = {
|
|
988
|
+
enabled: boolean;
|
|
989
|
+
heightPx?: number;
|
|
990
|
+
layout: DocumentRegionLayout;
|
|
991
|
+
blocks: DocumentRegionBlock[];
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
export declare type DocumentRegionBlock = DocumentTextRegionBlock | DocumentImageRegionBlock;
|
|
995
|
+
|
|
996
|
+
export declare type DocumentRegionBlockBase = {
|
|
997
|
+
id: string;
|
|
998
|
+
area?: 'left' | 'center' | 'right' | 'title' | 'metadata' | 'note' | 'pageInfo';
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export declare type DocumentRegionLayout = {
|
|
1002
|
+
type: 'preset';
|
|
1003
|
+
preset: 'mvp_header' | 'mvp_footer';
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
export declare type DocumentRuntimeSettings = {
|
|
1007
|
+
generatedAtFormat?: string;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
export declare type DocumentSection = DocumentTextSection | DocumentTableSection | DocumentChartSection | DocumentSpacerSection | DocumentPageBreakSection;
|
|
1011
|
+
|
|
1012
|
+
export declare type DocumentSpacerSection = {
|
|
1013
|
+
id: string;
|
|
1014
|
+
type: 'spacer';
|
|
1015
|
+
heightPx: number;
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
export declare type DocumentTableDensity = 'comfortable' | 'standard' | 'compact' | 'dense';
|
|
1019
|
+
|
|
1020
|
+
export declare type DocumentTableGridLines = 'none' | 'outer' | 'inner' | 'horizontal' | 'vertical' | 'top' | 'right' | 'bottom' | 'left' | 'full';
|
|
1021
|
+
|
|
1022
|
+
export declare type DocumentTableHeaderStyle = 'plain' | 'filled' | 'accent';
|
|
1023
|
+
|
|
1024
|
+
export declare type DocumentTableSection = {
|
|
1025
|
+
id: string;
|
|
1026
|
+
type: 'table';
|
|
1027
|
+
title?: string;
|
|
1028
|
+
card: TCard;
|
|
1029
|
+
table: {
|
|
1030
|
+
totalsRow?: boolean;
|
|
1031
|
+
columnFormatting?: Record<string, unknown>;
|
|
1032
|
+
repeatHeaderOnPageBreak?: boolean;
|
|
1033
|
+
rowHeightPx?: number;
|
|
1034
|
+
style?: DocumentTableStyle;
|
|
1035
|
+
totalsStyle?: DocumentTableTotalsStyle;
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
export declare type DocumentTableStyle = {
|
|
1040
|
+
density?: DocumentTableDensity;
|
|
1041
|
+
headerStyle?: DocumentTableHeaderStyle;
|
|
1042
|
+
headerBackgroundColor?: string;
|
|
1043
|
+
headerTextColor?: string;
|
|
1044
|
+
stripedRows?: boolean;
|
|
1045
|
+
gridLines?: DocumentTableGridLines;
|
|
1046
|
+
wrapText?: boolean;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
export declare type DocumentTableTotalsFontWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
1050
|
+
|
|
1051
|
+
export declare type DocumentTableTotalsStyle = {
|
|
1052
|
+
backgroundColor?: string;
|
|
1053
|
+
textColor?: string;
|
|
1054
|
+
fontWeight?: DocumentTableTotalsFontWeight;
|
|
1055
|
+
borderTop?: boolean;
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
export declare type DocumentTextContent = DocumentTextNode[];
|
|
1059
|
+
|
|
1060
|
+
export declare type DocumentTextInlineFormat = {
|
|
1061
|
+
bold?: boolean;
|
|
1062
|
+
italic?: boolean;
|
|
1063
|
+
underline?: boolean;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
export declare type DocumentTextNode = {
|
|
1067
|
+
type: 'text';
|
|
1068
|
+
value: string;
|
|
1069
|
+
format?: DocumentTextInlineFormat;
|
|
1070
|
+
} | {
|
|
1071
|
+
type: 'variable';
|
|
1072
|
+
ref: DocumentVariableRef;
|
|
1073
|
+
format?: DocumentTextInlineFormat;
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
export declare type DocumentTextRegionBlock = DocumentRegionBlockBase & {
|
|
1077
|
+
type: 'text';
|
|
1078
|
+
role?: 'title' | 'metadata' | 'note' | 'pageInfo';
|
|
1079
|
+
content: DocumentTextContent;
|
|
1080
|
+
style?: DocumentTextStyle;
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
export declare type DocumentTextSection = {
|
|
1084
|
+
id: string;
|
|
1085
|
+
type: 'text';
|
|
1086
|
+
content: DocumentTextContent;
|
|
1087
|
+
style?: DocumentTextStyle;
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
export declare type DocumentTextStyle = {
|
|
1091
|
+
fontSize?: number;
|
|
1092
|
+
fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
1093
|
+
color?: string;
|
|
1094
|
+
align?: 'left' | 'center' | 'right';
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
export declare type DocumentTheme = {
|
|
1098
|
+
fontFamily?: string;
|
|
1099
|
+
primaryColor?: string;
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
export declare type DocumentVariableRef = {
|
|
1103
|
+
source: 'input';
|
|
1104
|
+
inputId: string;
|
|
1105
|
+
export: DocumentInputExportKey;
|
|
1106
|
+
} | {
|
|
1107
|
+
source: 'documentMeta';
|
|
1108
|
+
key: 'generatedAt' | 'pageNumber' | 'pageCount';
|
|
1109
|
+
};
|
|
1110
|
+
|
|
880
1111
|
declare interface DrillDownInteraction {
|
|
881
1112
|
mode: 'drillDown';
|
|
882
1113
|
/**
|
|
@@ -1609,6 +1840,16 @@ declare type RelativeDateFilter = {
|
|
|
1609
1840
|
to: number;
|
|
1610
1841
|
};
|
|
1611
1842
|
|
|
1843
|
+
export declare type ResolvedDocumentInput = {
|
|
1844
|
+
inputId: string;
|
|
1845
|
+
variableName: string;
|
|
1846
|
+
rawValue: unknown;
|
|
1847
|
+
displayValue: string;
|
|
1848
|
+
filterValues?: TFilterValue[];
|
|
1849
|
+
controlValue?: unknown;
|
|
1850
|
+
exports: Record<string, string | number | boolean | null>;
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1612
1853
|
declare type ResolvedPrimaryDateField = {
|
|
1613
1854
|
sourceDataset: string;
|
|
1614
1855
|
sourceField: string;
|
|
@@ -1757,7 +1998,7 @@ export declare type StyleProps = {
|
|
|
1757
1998
|
* the Linear-style spec). Drives row padding, cell font size, and header
|
|
1758
1999
|
* font size via a shared density spec in DataTable.
|
|
1759
2000
|
*/
|
|
1760
|
-
declare type TableDensity = 'compact' | 'comfortable' | 'spacious';
|
|
2001
|
+
declare type TableDensity = 'dense' | 'compact' | 'standard' | 'comfortable' | 'spacious';
|
|
1761
2002
|
|
|
1762
2003
|
declare type TablePreferences = {
|
|
1763
2004
|
columnSettingsMap?: ColumnSettingsMap;
|
|
@@ -1768,6 +2009,7 @@ declare type TablePreferences = {
|
|
|
1768
2009
|
enableDevModePagination?: boolean;
|
|
1769
2010
|
forceClientPagination?: boolean;
|
|
1770
2011
|
density?: TableDensity;
|
|
2012
|
+
documentWrapText?: boolean;
|
|
1771
2013
|
};
|
|
1772
2014
|
|
|
1773
2015
|
/**
|
|
@@ -2740,6 +2982,7 @@ export declare type TPointStyle = 'circle' | 'cross' | 'crossRot' | 'dash' | 'li
|
|
|
2740
2982
|
|
|
2741
2983
|
export declare type TSheet = {
|
|
2742
2984
|
id: string;
|
|
2985
|
+
kind?: 'dashboard' | 'document';
|
|
2743
2986
|
title?: string;
|
|
2744
2987
|
description?: string;
|
|
2745
2988
|
layout?: ReactGridLayout.Layout[];
|
|
@@ -2747,6 +2990,7 @@ export declare type TSheet = {
|
|
|
2747
2990
|
cards?: TCard[];
|
|
2748
2991
|
frames?: TFrame[];
|
|
2749
2992
|
calculatedFields?: Field[];
|
|
2993
|
+
document?: DocumentDefinition;
|
|
2750
2994
|
};
|
|
2751
2995
|
|
|
2752
2996
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"email": "support@semaphor.cloud"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.297",
|
|
9
9
|
"description": "Fully interactive and customizable dashboards for your apps.",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"react",
|
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
"@dnd-kit/sortable": "^10.0.0",
|
|
85
85
|
"@dnd-kit/utilities": "^3.2.2",
|
|
86
86
|
"@headlessui/react": "^2.2.0",
|
|
87
|
+
"@lexical/history": "^0.43.0",
|
|
88
|
+
"@lexical/react": "^0.43.0",
|
|
89
|
+
"@lexical/rich-text": "^0.43.0",
|
|
90
|
+
"@lexical/selection": "^0.43.0",
|
|
91
|
+
"@lexical/utils": "^0.43.0",
|
|
87
92
|
"@r2wc/react-to-web-component": "^2.0.4",
|
|
88
93
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
89
94
|
"@radix-ui/react-alert-dialog": "^1.1.4",
|
|
@@ -128,6 +133,7 @@
|
|
|
128
133
|
"fast-deep-equal": "^3.1.3",
|
|
129
134
|
"immer": "^10.0.3",
|
|
130
135
|
"jwt-decode": "^4.0.0",
|
|
136
|
+
"lexical": "^0.43.0",
|
|
131
137
|
"lodash.merge": "^4.6.2",
|
|
132
138
|
"lucide-react": "^0.453.0",
|
|
133
139
|
"ms": "^2.1.3",
|