@gooddata/sdk-model 11.57.0-alpha.4 → 11.57.0-alpha.6
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/esm/conditionalFormatting/index.d.ts +4 -4
- package/esm/conditionalFormatting/index.d.ts.map +1 -1
- package/esm/index.d.ts +2 -3
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/ldm/metadata/attribute/index.d.ts +7 -0
- package/esm/ldm/metadata/attribute/index.d.ts.map +1 -1
- package/esm/ldm/metadata/attributeDisplayForm/index.d.ts +8 -0
- package/esm/ldm/metadata/attributeDisplayForm/index.d.ts.map +1 -1
- package/esm/reports/builtinPageLayouts.d.ts.map +1 -1
- package/esm/reports/builtinPageLayouts.js +17 -21
- package/esm/reports/slot.d.ts +35 -4
- package/esm/reports/slot.d.ts.map +1 -1
- package/esm/reports/slot.js +23 -8
- package/esm/reports/variables.d.ts +1 -1
- package/esm/reports/variables.d.ts.map +1 -1
- package/esm/reports/variables.js +0 -1
- package/esm/sdk-model.d.ts +304 -199
- package/esm/settings/settings.d.ts +12 -6
- package/esm/settings/settings.d.ts.map +1 -1
- package/esm/theme/index.d.ts +230 -0
- package/esm/theme/index.d.ts.map +1 -1
- package/esm/theme/index.js +12 -1
- package/package.json +6 -6
- package/esm/reports/brandKit.d.ts +0 -187
- package/esm/reports/brandKit.d.ts.map +0 -1
- package/esm/reports/brandKit.js +0 -208
package/esm/sdk-model.d.ts
CHANGED
|
@@ -1026,7 +1026,7 @@ export declare const BuiltInReportPageLayoutViz6TextLeft: IReportPageLayout;
|
|
|
1026
1026
|
export declare const BuiltInReportSlotTypes: string[];
|
|
1027
1027
|
|
|
1028
1028
|
/**
|
|
1029
|
-
* All
|
|
1029
|
+
* All levels a text slot can carry.
|
|
1030
1030
|
*
|
|
1031
1031
|
* @alpha
|
|
1032
1032
|
*/
|
|
@@ -3729,6 +3729,13 @@ export declare interface IAttributeDisplayFormMetadataObject extends IMetadataOb
|
|
|
3729
3729
|
* @alpha
|
|
3730
3730
|
*/
|
|
3731
3731
|
geoAreaConfig?: IAttributeDisplayFormGeoAreaConfig;
|
|
3732
|
+
/**
|
|
3733
|
+
* Semantic-layer conditional formatting authored on this label; takes precedence over the owning
|
|
3734
|
+
* attribute's (backend-defined).
|
|
3735
|
+
*
|
|
3736
|
+
* @alpha
|
|
3737
|
+
*/
|
|
3738
|
+
conditionalFormatting?: ISemanticConditionalFormatting;
|
|
3732
3739
|
}
|
|
3733
3740
|
|
|
3734
3741
|
/**
|
|
@@ -3949,6 +3956,12 @@ export declare interface IAttributeMetadataObject extends IMetadataObject {
|
|
|
3949
3956
|
* Source column name in the underlying data source table.
|
|
3950
3957
|
*/
|
|
3951
3958
|
sourceColumn?: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* Semantic-layer conditional formatting authored on this attribute.
|
|
3961
|
+
*
|
|
3962
|
+
* @alpha
|
|
3963
|
+
*/
|
|
3964
|
+
conditionalFormatting?: ISemanticConditionalFormatting;
|
|
3952
3965
|
}
|
|
3953
3966
|
|
|
3954
3967
|
/**
|
|
@@ -5026,7 +5039,7 @@ export declare interface IConditionalFormatting {
|
|
|
5026
5039
|
*/
|
|
5027
5040
|
version?: string;
|
|
5028
5041
|
enabled: boolean;
|
|
5029
|
-
rules:
|
|
5042
|
+
rules: IConditionalFormattingRule[];
|
|
5030
5043
|
/**
|
|
5031
5044
|
* Targets whose formatting is explicitly suppressed — turned off rather than inherited from any
|
|
5032
5045
|
* semantic-layer conditional formatting carried on the execution result (see
|
|
@@ -5034,7 +5047,7 @@ export declare interface IConditionalFormatting {
|
|
|
5034
5047
|
* semantic layer has rules for it. A target not listed here (or when this is absent) is
|
|
5035
5048
|
* Inherited: semantic rules apply as-is.
|
|
5036
5049
|
*/
|
|
5037
|
-
suppressedTargets?:
|
|
5050
|
+
suppressedTargets?: ConditionalFormattingTarget[];
|
|
5038
5051
|
}
|
|
5039
5052
|
|
|
5040
5053
|
/**
|
|
@@ -5078,7 +5091,7 @@ export declare interface IConditionalFormattingFormat {
|
|
|
5078
5091
|
export declare interface IConditionalFormattingRule {
|
|
5079
5092
|
id: string;
|
|
5080
5093
|
target: ConditionalFormattingTarget;
|
|
5081
|
-
conditions:
|
|
5094
|
+
conditions: IConditionalFormattingCondition[];
|
|
5082
5095
|
}
|
|
5083
5096
|
|
|
5084
5097
|
/**
|
|
@@ -8225,6 +8238,18 @@ export declare interface IFeatureFlags {
|
|
|
8225
8238
|
* Enable the Business Briefing reports application.
|
|
8226
8239
|
*/
|
|
8227
8240
|
enableBusinessBriefingReportsApp?: boolean;
|
|
8241
|
+
/**
|
|
8242
|
+
* Enable the write and export postMessage commands for embedded dashboards and Analytical Designer.
|
|
8243
|
+
*
|
|
8244
|
+
* @remarks
|
|
8245
|
+
* Covers saveDashboard, saveAsDashboard, exportToPdf and openDeleteDashboardDialog in embedded
|
|
8246
|
+
* dashboards, and saveInsight, saveAsInsight and exportInsight in embedded Analytical Designer.
|
|
8247
|
+
* These commands are accepted from any parent origin, so the embedding organization must restrict
|
|
8248
|
+
* who may frame the application through the CSP frame-ancestors directive before this is enabled.
|
|
8249
|
+
*
|
|
8250
|
+
* Disabled by default.
|
|
8251
|
+
*/
|
|
8252
|
+
enableEmbeddingWriteCommands?: boolean;
|
|
8228
8253
|
}
|
|
8229
8254
|
|
|
8230
8255
|
/**
|
|
@@ -11658,11 +11683,6 @@ export declare interface IPermanentSettings {
|
|
|
11658
11683
|
* @beta
|
|
11659
11684
|
*/
|
|
11660
11685
|
defaultExportTemplate?: IDefaultExportTemplate;
|
|
11661
|
-
/**
|
|
11662
|
-
* Brand kit offered to report authors: brand colors, typography and shared assets.
|
|
11663
|
-
* @alpha
|
|
11664
|
-
*/
|
|
11665
|
-
reportsBrandKit?: IReportsBrandKit;
|
|
11666
11686
|
/**
|
|
11667
11687
|
* Indicates current platform edition.
|
|
11668
11688
|
*/
|
|
@@ -12681,158 +12701,6 @@ export declare interface IReportPageLayoutDefinition {
|
|
|
12681
12701
|
content: IReportPageLayoutContent;
|
|
12682
12702
|
}
|
|
12683
12703
|
|
|
12684
|
-
/**
|
|
12685
|
-
* Workspace brand kit: the customer's colors, assets, and typography reports are branded with.
|
|
12686
|
-
*
|
|
12687
|
-
* @remarks
|
|
12688
|
-
* Stored as the free-form content of the `reportsBrandKit` workspace setting. Everything is
|
|
12689
|
-
* optional; each part degrades independently to the product defaults. Assets resolve report
|
|
12690
|
-
* variables, chart colors derive the visualization palette, typography applies to rendered
|
|
12691
|
-
* reports.
|
|
12692
|
-
*
|
|
12693
|
-
* @alpha
|
|
12694
|
-
*/
|
|
12695
|
-
export declare interface IReportsBrandKit {
|
|
12696
|
-
/**
|
|
12697
|
-
* Content model version, for stored-content evolution.
|
|
12698
|
-
*/
|
|
12699
|
-
version: "1";
|
|
12700
|
-
colors?: IReportsBrandKitColors;
|
|
12701
|
-
typography?: IReportsBrandKitTypography;
|
|
12702
|
-
assets?: IReportsBrandKitAssets;
|
|
12703
|
-
}
|
|
12704
|
-
|
|
12705
|
-
/**
|
|
12706
|
-
* Brand assets, all hosted outside the platform.
|
|
12707
|
-
*
|
|
12708
|
-
* @alpha
|
|
12709
|
-
*/
|
|
12710
|
-
export declare interface IReportsBrandKitAssets {
|
|
12711
|
-
/**
|
|
12712
|
-
* Primary logo URL; resolves the `{logo}` report variable, taking precedence over
|
|
12713
|
-
* the workspace white-labeling logo.
|
|
12714
|
-
*/
|
|
12715
|
-
logo?: string;
|
|
12716
|
-
/**
|
|
12717
|
-
* Logo variant for dark backgrounds; resolves the `{logoInverse}` report variable.
|
|
12718
|
-
*/
|
|
12719
|
-
logoInverse?: string;
|
|
12720
|
-
/**
|
|
12721
|
-
* Additional brand images, each resolving its `{image_<id>}` report variable.
|
|
12722
|
-
*/
|
|
12723
|
-
images?: IReportsBrandKitImage[];
|
|
12724
|
-
}
|
|
12725
|
-
|
|
12726
|
-
/**
|
|
12727
|
-
* Brand colors.
|
|
12728
|
-
*
|
|
12729
|
-
* @remarks
|
|
12730
|
-
* Every color but {@link IReportsBrandKitColors.chart} is written into CSS, so it may be stated in
|
|
12731
|
-
* any notation CSS reads. Chart colors become palette entries instead of declarations, so they are
|
|
12732
|
-
* held to {@link parseReportsBrandChartColor} and a value it cannot read is dropped.
|
|
12733
|
-
*
|
|
12734
|
-
* @alpha
|
|
12735
|
-
*/
|
|
12736
|
-
export declare interface IReportsBrandKitColors {
|
|
12737
|
-
/**
|
|
12738
|
-
* Primary brand color, offered to authors as a swatch.
|
|
12739
|
-
*
|
|
12740
|
-
* @remarks
|
|
12741
|
-
* Also seeds the derived chart palette when {@link IReportsBrandKitColors.chart} is not
|
|
12742
|
-
* provided — but only when stated in a notation {@link parseReportsBrandChartColor} reads,
|
|
12743
|
-
* since seeding means computing tints of it rather than declaring it. Stated in any other
|
|
12744
|
-
* notation it remains a swatch, and charts keep the workspace palette.
|
|
12745
|
-
*/
|
|
12746
|
-
brand?: string;
|
|
12747
|
-
/**
|
|
12748
|
-
* Ordered chart series colors the visualization palette is derived from. Each must be a color
|
|
12749
|
-
* {@link parseReportsBrandChartColor} reads; the sanitizer drops the rest.
|
|
12750
|
-
*/
|
|
12751
|
-
chart?: string[];
|
|
12752
|
-
/**
|
|
12753
|
-
* Ink of headings and titles.
|
|
12754
|
-
*/
|
|
12755
|
-
ink?: string;
|
|
12756
|
-
/**
|
|
12757
|
-
* Ink of body and secondary text.
|
|
12758
|
-
*/
|
|
12759
|
-
inkMuted?: string;
|
|
12760
|
-
/**
|
|
12761
|
-
* Default page background.
|
|
12762
|
-
*/
|
|
12763
|
-
paper?: string;
|
|
12764
|
-
/**
|
|
12765
|
-
* Alternate background for covers and highlighted sections.
|
|
12766
|
-
*/
|
|
12767
|
-
paperAlt?: string;
|
|
12768
|
-
}
|
|
12769
|
-
|
|
12770
|
-
/**
|
|
12771
|
-
* One hosted font file, loaded as a font face for rendered reports.
|
|
12772
|
-
*
|
|
12773
|
-
* @alpha
|
|
12774
|
-
*/
|
|
12775
|
-
export declare interface IReportsBrandKitFontFace {
|
|
12776
|
-
/**
|
|
12777
|
-
* Font family name the face registers; reference it from
|
|
12778
|
-
* {@link IReportsBrandKitTypography.fontFamily}.
|
|
12779
|
-
*/
|
|
12780
|
-
family: string;
|
|
12781
|
-
/**
|
|
12782
|
-
* Absolute URL of the externally hosted font file (TTF/OTF/WOFF/WOFF2). The organization
|
|
12783
|
-
* CSP must allow the host as a font source, and for exports the host must also serve
|
|
12784
|
-
* CORS headers.
|
|
12785
|
-
*/
|
|
12786
|
-
url: string;
|
|
12787
|
-
/**
|
|
12788
|
-
* CSS font-weight the face carries (1-1000). Defaults to 400.
|
|
12789
|
-
*/
|
|
12790
|
-
weight?: number;
|
|
12791
|
-
/**
|
|
12792
|
-
* Defaults to "normal".
|
|
12793
|
-
*/
|
|
12794
|
-
style?: "normal" | "italic";
|
|
12795
|
-
}
|
|
12796
|
-
|
|
12797
|
-
/**
|
|
12798
|
-
* Named brand image offered to report authors.
|
|
12799
|
-
*
|
|
12800
|
-
* @alpha
|
|
12801
|
-
*/
|
|
12802
|
-
export declare interface IReportsBrandKitImage {
|
|
12803
|
-
/**
|
|
12804
|
-
* Identifier the image is referenced by from report content, as the
|
|
12805
|
-
* `{image_<id>}` variable. Must match /^[a-zA-Z0-9_]+$/.
|
|
12806
|
-
*/
|
|
12807
|
-
id: string;
|
|
12808
|
-
/**
|
|
12809
|
-
* Absolute URL of the externally hosted image. The organization CSP must allow the
|
|
12810
|
-
* host, and for exports the host must also serve CORS headers.
|
|
12811
|
-
*/
|
|
12812
|
-
url: string;
|
|
12813
|
-
/**
|
|
12814
|
-
* Human readable description shown when the image is offered in the editor.
|
|
12815
|
-
*/
|
|
12816
|
-
description?: string;
|
|
12817
|
-
}
|
|
12818
|
-
|
|
12819
|
-
/**
|
|
12820
|
-
* Brand typography.
|
|
12821
|
-
*
|
|
12822
|
-
* @alpha
|
|
12823
|
-
*/
|
|
12824
|
-
export declare interface IReportsBrandKitTypography {
|
|
12825
|
-
/**
|
|
12826
|
-
* CSS font-family stack applied to rendered reports.
|
|
12827
|
-
*/
|
|
12828
|
-
fontFamily?: string;
|
|
12829
|
-
/**
|
|
12830
|
-
* Hosted font files backing the families named in
|
|
12831
|
-
* {@link IReportsBrandKitTypography.fontFamily}.
|
|
12832
|
-
*/
|
|
12833
|
-
fonts?: IReportsBrandKitFontFace[];
|
|
12834
|
-
}
|
|
12835
|
-
|
|
12836
12704
|
/**
|
|
12837
12705
|
* Structural base of every report slot.
|
|
12838
12706
|
*
|
|
@@ -14076,7 +13944,7 @@ export declare interface ISemanticConditionalFormatting {
|
|
|
14076
13944
|
* Model version of the persisted shape. Absent is treated as `"1"`.
|
|
14077
13945
|
*/
|
|
14078
13946
|
version?: string;
|
|
14079
|
-
conditions:
|
|
13947
|
+
conditions: IConditionalFormattingCondition[];
|
|
14080
13948
|
/**
|
|
14081
13949
|
* Whether the rules are applied when rendering. Absent is treated as `true` — this lets the
|
|
14082
13950
|
* object be turned off without deleting the authored conditions, distinct from having no rules
|
|
@@ -15122,6 +14990,13 @@ export declare function isReportContentV1(obj: unknown): obj is IReportContent;
|
|
|
15122
14990
|
*/
|
|
15123
14991
|
export declare function isReportDefinition(obj: unknown): obj is IReportDefinition;
|
|
15124
14992
|
|
|
14993
|
+
/**
|
|
14994
|
+
* Whether the level is a heading.
|
|
14995
|
+
*
|
|
14996
|
+
* @alpha
|
|
14997
|
+
*/
|
|
14998
|
+
export declare function isReportHeadingKind(kind: ReportTextSlotKind): kind is ReportHeadingKind;
|
|
14999
|
+
|
|
15125
15000
|
/**
|
|
15126
15001
|
* Type-guard testing whether the provided object is an instance of {@link IReportImageBackground}.
|
|
15127
15002
|
*
|
|
@@ -15341,6 +15216,13 @@ export declare function isTestNotification(notification: unknown): notification
|
|
|
15341
15216
|
*/
|
|
15342
15217
|
export declare function isTextAttributeFilter(obj: unknown): obj is TextAttributeFilter;
|
|
15343
15218
|
|
|
15219
|
+
/**
|
|
15220
|
+
* Type-guard testing whether the value is a {@link IThemeColorPaletteRef}.
|
|
15221
|
+
*
|
|
15222
|
+
* @alpha
|
|
15223
|
+
*/
|
|
15224
|
+
export declare function isThemeColorPaletteRef(value: unknown): value is IThemeColorPaletteRef;
|
|
15225
|
+
|
|
15344
15226
|
/** @alpha */
|
|
15345
15227
|
export declare const isTimeGranularity: (g: string | undefined) => boolean;
|
|
15346
15228
|
|
|
@@ -15675,6 +15557,13 @@ export declare interface ITestNotificationDetails {
|
|
|
15675
15557
|
* @beta
|
|
15676
15558
|
*/
|
|
15677
15559
|
export declare interface ITheme {
|
|
15560
|
+
/**
|
|
15561
|
+
* Shape version of the theme content. Absent means version 1: a theme created before the
|
|
15562
|
+
* `reports` and `assets` sections existed.
|
|
15563
|
+
*
|
|
15564
|
+
* @beta
|
|
15565
|
+
*/
|
|
15566
|
+
version?: "2";
|
|
15678
15567
|
/**
|
|
15679
15568
|
* Images
|
|
15680
15569
|
*
|
|
@@ -15739,6 +15628,18 @@ export declare interface ITheme {
|
|
|
15739
15628
|
* @alpha
|
|
15740
15629
|
*/
|
|
15741
15630
|
header?: IThemeHeader;
|
|
15631
|
+
/**
|
|
15632
|
+
* Report specific properties
|
|
15633
|
+
*
|
|
15634
|
+
* @alpha
|
|
15635
|
+
*/
|
|
15636
|
+
reports?: IThemeReports;
|
|
15637
|
+
/**
|
|
15638
|
+
* Image assets offered to reports
|
|
15639
|
+
*
|
|
15640
|
+
* @alpha
|
|
15641
|
+
*/
|
|
15642
|
+
assets?: IThemeAssets;
|
|
15742
15643
|
}
|
|
15743
15644
|
|
|
15744
15645
|
/**
|
|
@@ -15765,6 +15666,51 @@ export declare interface IThemeAnalyticalDesignerTitle {
|
|
|
15765
15666
|
color?: ThemeColor;
|
|
15766
15667
|
}
|
|
15767
15668
|
|
|
15669
|
+
/**
|
|
15670
|
+
* Externally hosted image the theme offers to reports.
|
|
15671
|
+
*
|
|
15672
|
+
* @remarks
|
|
15673
|
+
* The `id` is also the report variable the asset resolves: report content references it as `{id}`.
|
|
15674
|
+
* It must match `^[a-zA-Z][a-zA-Z0-9_]*$`.
|
|
15675
|
+
*
|
|
15676
|
+
* @alpha
|
|
15677
|
+
*/
|
|
15678
|
+
export declare interface IThemeAsset {
|
|
15679
|
+
id: string;
|
|
15680
|
+
/**
|
|
15681
|
+
* Absolute http(s) URL. The organization CSP must allow the host; for exports the host must
|
|
15682
|
+
* also serve CORS headers.
|
|
15683
|
+
*/
|
|
15684
|
+
url: string;
|
|
15685
|
+
/**
|
|
15686
|
+
* Label the asset is offered under in the editor.
|
|
15687
|
+
*/
|
|
15688
|
+
title?: string;
|
|
15689
|
+
/**
|
|
15690
|
+
* Accessible name of the image; also shown when the image cannot be loaded.
|
|
15691
|
+
*/
|
|
15692
|
+
altText?: string;
|
|
15693
|
+
}
|
|
15694
|
+
|
|
15695
|
+
/**
|
|
15696
|
+
* Image assets linked by URL, grouped by what they are used for.
|
|
15697
|
+
*
|
|
15698
|
+
* @alpha
|
|
15699
|
+
*/
|
|
15700
|
+
export declare interface IThemeAssets {
|
|
15701
|
+
logos?: IThemeAsset[];
|
|
15702
|
+
/**
|
|
15703
|
+
* Images offered for image slots, and as element backgrounds.
|
|
15704
|
+
*/
|
|
15705
|
+
images?: IThemeAsset[];
|
|
15706
|
+
/**
|
|
15707
|
+
* Images meant to be painted behind an element. They are offered first where a background is
|
|
15708
|
+
* chosen; {@link IThemeAssets.images} are offered there too, so an image used both ways is
|
|
15709
|
+
* stated once.
|
|
15710
|
+
*/
|
|
15711
|
+
backgrounds?: IThemeAsset[];
|
|
15712
|
+
}
|
|
15713
|
+
|
|
15768
15714
|
/**
|
|
15769
15715
|
* Axis customization
|
|
15770
15716
|
*
|
|
@@ -15917,6 +15863,22 @@ export declare interface IThemeColorFamily {
|
|
|
15917
15863
|
contrast?: ThemeColor;
|
|
15918
15864
|
}
|
|
15919
15865
|
|
|
15866
|
+
/**
|
|
15867
|
+
* Reference to an existing color palette object, in the same shape the active color palette
|
|
15868
|
+
* setting uses.
|
|
15869
|
+
*
|
|
15870
|
+
* @remarks
|
|
15871
|
+
* A `workspaceColorPalette` is read from the workspace showing the report, which sees its own
|
|
15872
|
+
* palettes and not a parent's. A palette shared across a workspace hierarchy belongs at the
|
|
15873
|
+
* organization level.
|
|
15874
|
+
*
|
|
15875
|
+
* @alpha
|
|
15876
|
+
*/
|
|
15877
|
+
export declare interface IThemeColorPaletteRef {
|
|
15878
|
+
id: string;
|
|
15879
|
+
type: "colorPalette" | "workspaceColorPalette";
|
|
15880
|
+
}
|
|
15881
|
+
|
|
15920
15882
|
/**
|
|
15921
15883
|
* Used to color various elements across many components by replacing
|
|
15922
15884
|
* the default complementary palette of gray color shades
|
|
@@ -16541,6 +16503,146 @@ export declare interface IThemePalette {
|
|
|
16541
16503
|
complementary?: IThemeComplementaryPalette;
|
|
16542
16504
|
}
|
|
16543
16505
|
|
|
16506
|
+
/**
|
|
16507
|
+
* Report specific theme properties.
|
|
16508
|
+
*
|
|
16509
|
+
* @remarks
|
|
16510
|
+
* Consumed by the reports application only; the properties are not part of the shared theming
|
|
16511
|
+
* CSS variable specification.
|
|
16512
|
+
*
|
|
16513
|
+
* @alpha
|
|
16514
|
+
*/
|
|
16515
|
+
export declare interface IThemeReports {
|
|
16516
|
+
/**
|
|
16517
|
+
* Colors of visualizations in reports: stated inline, or a reference to a color palette
|
|
16518
|
+
* object. When absent, reports use the workspace's active color palette.
|
|
16519
|
+
*/
|
|
16520
|
+
visualizationPalette?: ThemeColor[] | IThemeColorPaletteRef;
|
|
16521
|
+
page?: IThemeReportsPage;
|
|
16522
|
+
colors?: IThemeReportsColors;
|
|
16523
|
+
textStyle?: IThemeReportsTextStyle;
|
|
16524
|
+
}
|
|
16525
|
+
|
|
16526
|
+
/**
|
|
16527
|
+
* Colors offered to report authors as swatches. Each list is exposed as indexed CSS variables.
|
|
16528
|
+
*
|
|
16529
|
+
* @alpha
|
|
16530
|
+
*/
|
|
16531
|
+
export declare interface IThemeReportsColors {
|
|
16532
|
+
/**
|
|
16533
|
+
* Offered for element backgrounds.
|
|
16534
|
+
*/
|
|
16535
|
+
backgrounds?: ThemeColor[];
|
|
16536
|
+
/**
|
|
16537
|
+
* Offered for text.
|
|
16538
|
+
*/
|
|
16539
|
+
text?: ThemeColor[];
|
|
16540
|
+
}
|
|
16541
|
+
|
|
16542
|
+
/**
|
|
16543
|
+
* One hosted font file registered as a font face for rendered reports.
|
|
16544
|
+
*
|
|
16545
|
+
* @alpha
|
|
16546
|
+
*/
|
|
16547
|
+
export declare interface IThemeReportsFontFace {
|
|
16548
|
+
/**
|
|
16549
|
+
* Font family name the face registers; referenced from {@link IThemeReportsTypography.fontFamily}.
|
|
16550
|
+
*/
|
|
16551
|
+
family: string;
|
|
16552
|
+
/**
|
|
16553
|
+
* Absolute http(s) URL of a TTF/OTF/WOFF/WOFF2 file.
|
|
16554
|
+
*/
|
|
16555
|
+
url: string;
|
|
16556
|
+
/**
|
|
16557
|
+
* CSS font-weight (1-1000). Defaults to 400.
|
|
16558
|
+
*/
|
|
16559
|
+
weight?: number;
|
|
16560
|
+
/**
|
|
16561
|
+
* Defaults to "normal".
|
|
16562
|
+
*/
|
|
16563
|
+
style?: "normal" | "italic";
|
|
16564
|
+
}
|
|
16565
|
+
|
|
16566
|
+
/**
|
|
16567
|
+
* Heading levels. Each level takes what it does not state from here, then from
|
|
16568
|
+
* {@link IThemeReportsTextStyle}.
|
|
16569
|
+
*
|
|
16570
|
+
* @alpha
|
|
16571
|
+
*/
|
|
16572
|
+
export declare interface IThemeReportsHeading {
|
|
16573
|
+
color?: ThemeColor;
|
|
16574
|
+
lineHeight?: ThemeReportsLength;
|
|
16575
|
+
h1?: IThemeReportsTextLevel;
|
|
16576
|
+
h2?: IThemeReportsTextLevel;
|
|
16577
|
+
h3?: IThemeReportsTextLevel;
|
|
16578
|
+
h4?: IThemeReportsTextLevel;
|
|
16579
|
+
h5?: IThemeReportsTextLevel;
|
|
16580
|
+
h6?: IThemeReportsTextLevel;
|
|
16581
|
+
}
|
|
16582
|
+
|
|
16583
|
+
/**
|
|
16584
|
+
* Report page properties.
|
|
16585
|
+
*
|
|
16586
|
+
* @alpha
|
|
16587
|
+
*/
|
|
16588
|
+
export declare interface IThemeReportsPage {
|
|
16589
|
+
backgroundColor?: ThemeColor;
|
|
16590
|
+
}
|
|
16591
|
+
|
|
16592
|
+
/**
|
|
16593
|
+
* Paragraph levels. Each level takes what it does not state from here, then from
|
|
16594
|
+
* {@link IThemeReportsTextStyle}.
|
|
16595
|
+
*
|
|
16596
|
+
* @alpha
|
|
16597
|
+
*/
|
|
16598
|
+
export declare interface IThemeReportsParagraph {
|
|
16599
|
+
color?: ThemeColor;
|
|
16600
|
+
lineHeight?: ThemeReportsLength;
|
|
16601
|
+
p1?: IThemeReportsTextLevel;
|
|
16602
|
+
p2?: IThemeReportsTextLevel;
|
|
16603
|
+
p3?: IThemeReportsTextLevel;
|
|
16604
|
+
}
|
|
16605
|
+
|
|
16606
|
+
/**
|
|
16607
|
+
* Typography of one text level (h1-h6, p1-p3).
|
|
16608
|
+
*
|
|
16609
|
+
* @alpha
|
|
16610
|
+
*/
|
|
16611
|
+
export declare interface IThemeReportsTextLevel {
|
|
16612
|
+
fontSize?: ThemeReportsLength;
|
|
16613
|
+
lineHeight?: ThemeReportsLength;
|
|
16614
|
+
/**
|
|
16615
|
+
* Overrides the color of the level's group.
|
|
16616
|
+
*/
|
|
16617
|
+
color?: ThemeColor;
|
|
16618
|
+
}
|
|
16619
|
+
|
|
16620
|
+
/**
|
|
16621
|
+
* Text of rendered reports.
|
|
16622
|
+
*
|
|
16623
|
+
* @alpha
|
|
16624
|
+
*/
|
|
16625
|
+
export declare interface IThemeReportsTextStyle {
|
|
16626
|
+
color?: ThemeColor;
|
|
16627
|
+
lineHeight?: ThemeReportsLength;
|
|
16628
|
+
typography?: IThemeReportsTypography;
|
|
16629
|
+
heading?: IThemeReportsHeading;
|
|
16630
|
+
paragraph?: IThemeReportsParagraph;
|
|
16631
|
+
}
|
|
16632
|
+
|
|
16633
|
+
/**
|
|
16634
|
+
* Typography of rendered reports.
|
|
16635
|
+
*
|
|
16636
|
+
* @alpha
|
|
16637
|
+
*/
|
|
16638
|
+
export declare interface IThemeReportsTypography {
|
|
16639
|
+
/**
|
|
16640
|
+
* CSS font-family stack applied to rendered reports.
|
|
16641
|
+
*/
|
|
16642
|
+
fontFamily?: string;
|
|
16643
|
+
fonts?: IThemeReportsFontFace[];
|
|
16644
|
+
}
|
|
16645
|
+
|
|
16544
16646
|
/**
|
|
16545
16647
|
* Table customization
|
|
16546
16648
|
*
|
|
@@ -19088,20 +19190,6 @@ export declare type ParameterValue = IParameterDefinition["defaultValue"];
|
|
|
19088
19190
|
*/
|
|
19089
19191
|
export declare function parameterValueMatchesType(definition: IParameterDefinition, value: ParameterValue): boolean;
|
|
19090
19192
|
|
|
19091
|
-
/**
|
|
19092
|
-
* Reads one of {@link IReportsBrandKitColors.chart} as rgb channels, or undefined where the value is
|
|
19093
|
-
* not one of the notations those colors are stated in.
|
|
19094
|
-
*
|
|
19095
|
-
* @remarks
|
|
19096
|
-
* Chart colors become palette entries rather than CSS declarations, so unlike the rest of the kit
|
|
19097
|
-
* they are held to what this reads: hex (3, 4, 6 or 8 digits) and `rgb()`/`rgba()`. The sanitizer
|
|
19098
|
-
* drops what this cannot read, so a stored kit never carries a chart color the palette would
|
|
19099
|
-
* silently ignore.
|
|
19100
|
-
*
|
|
19101
|
-
* @alpha
|
|
19102
|
-
*/
|
|
19103
|
-
export declare function parseReportsBrandChartColor(color: string): IRgbColorValue | undefined;
|
|
19104
|
-
|
|
19105
19193
|
/**
|
|
19106
19194
|
* Provenance of a granted permission — granted directly to the grantee,
|
|
19107
19195
|
* or inherited from a group or rule.
|
|
@@ -19347,7 +19435,7 @@ export declare type ReportBackground = IReportColorBackground | IReportImageBack
|
|
|
19347
19435
|
*
|
|
19348
19436
|
* @alpha
|
|
19349
19437
|
*/
|
|
19350
|
-
export declare type ReportBuiltInVariable = "reportName" | "reportDescription" | "periodStart" | "periodEnd" | "reportDateRange" | "reportAttributeFilters" | "exportedAt" | "exportedBy" | "lastModifiedAt" | "lastModifiedBy" | "workspaceName" | "workspaceId" | "totalPages" | "currentPageNumber" | "logo"
|
|
19438
|
+
export declare type ReportBuiltInVariable = "reportName" | "reportDescription" | "periodStart" | "periodEnd" | "reportDateRange" | "reportAttributeFilters" | "exportedAt" | "exportedBy" | "lastModifiedAt" | "lastModifiedBy" | "workspaceName" | "workspaceId" | "totalPages" | "currentPageNumber" | "logo";
|
|
19351
19439
|
|
|
19352
19440
|
/**
|
|
19353
19441
|
* All built-in report variable names.
|
|
@@ -19377,6 +19465,20 @@ export declare function reportContentPage(reportOrTemplate: IReport | IReportDef
|
|
|
19377
19465
|
*/
|
|
19378
19466
|
export declare type ReportDateString = string;
|
|
19379
19467
|
|
|
19468
|
+
/**
|
|
19469
|
+
* Heading levels a text slot can carry.
|
|
19470
|
+
*
|
|
19471
|
+
* @alpha
|
|
19472
|
+
*/
|
|
19473
|
+
export declare type ReportHeadingKind = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
19474
|
+
|
|
19475
|
+
/**
|
|
19476
|
+
* All heading levels, highest first.
|
|
19477
|
+
*
|
|
19478
|
+
* @alpha
|
|
19479
|
+
*/
|
|
19480
|
+
export declare const ReportHeadingKinds: ReportHeadingKind[];
|
|
19481
|
+
|
|
19380
19482
|
/**
|
|
19381
19483
|
* How an image is fitted to the area it is drawn in: kept whole inside it, filling it and cropped to
|
|
19382
19484
|
* do so, or stretched to its shape.
|
|
@@ -19441,19 +19543,18 @@ export declare const ReportPageFormats: ReportPageFormat[];
|
|
|
19441
19543
|
export declare type ReportPageLayoutNode = IReportLayoutSection | IReportLayoutSlotRef;
|
|
19442
19544
|
|
|
19443
19545
|
/**
|
|
19444
|
-
*
|
|
19546
|
+
* Paragraph levels a text slot can carry.
|
|
19445
19547
|
*
|
|
19446
19548
|
* @alpha
|
|
19447
19549
|
*/
|
|
19448
|
-
export declare
|
|
19550
|
+
export declare type ReportParagraphKind = "p1" | "p2" | "p3";
|
|
19449
19551
|
|
|
19450
19552
|
/**
|
|
19451
|
-
*
|
|
19452
|
-
* use it.
|
|
19553
|
+
* All paragraph levels, largest first.
|
|
19453
19554
|
*
|
|
19454
19555
|
* @alpha
|
|
19455
19556
|
*/
|
|
19456
|
-
export declare const
|
|
19557
|
+
export declare const ReportParagraphKinds: ReportParagraphKind[];
|
|
19457
19558
|
|
|
19458
19559
|
/**
|
|
19459
19560
|
* All slot types of report content version 1.
|
|
@@ -19470,12 +19571,13 @@ export declare type ReportSlot = IReportVisualizationSlot | IReportTextSlot | IR
|
|
|
19470
19571
|
export declare function reportTextPlaceholder(name: string): string;
|
|
19471
19572
|
|
|
19472
19573
|
/**
|
|
19473
|
-
*
|
|
19474
|
-
* never geometry (geometry always comes from the layout tree).
|
|
19574
|
+
* Text level of a text slot. Drives default typography/styling and AI context only —
|
|
19575
|
+
* never geometry (geometry always comes from the layout tree). Each level is styled by the matching
|
|
19576
|
+
* theme text level (`reports.textStyle.heading.h1` ...).
|
|
19475
19577
|
*
|
|
19476
19578
|
* @alpha
|
|
19477
19579
|
*/
|
|
19478
|
-
export declare type ReportTextSlotKind =
|
|
19580
|
+
export declare type ReportTextSlotKind = ReportHeadingKind | ReportParagraphKind;
|
|
19479
19581
|
|
|
19480
19582
|
/**
|
|
19481
19583
|
* Where the text of a text slot comes from.
|
|
@@ -19590,20 +19692,6 @@ export declare function sanitizeBucketTotals(bucket: IBucket, sortItems: ISortIt
|
|
|
19590
19692
|
*/
|
|
19591
19693
|
export declare function sanitizeParameterValue(definition: IParameterDefinition, value: ParameterValue): ParameterValue;
|
|
19592
19694
|
|
|
19593
|
-
/**
|
|
19594
|
-
* Reads a stored brand kit from free-form JSON, keeping the parts that are valid and dropping
|
|
19595
|
-
* everything else.
|
|
19596
|
-
*
|
|
19597
|
-
* @remarks
|
|
19598
|
-
* The setting content is not schema-validated by the backend, so every consumer must go
|
|
19599
|
-
* through this. Returns undefined only when the value is not a version "1" brand kit at all;
|
|
19600
|
-
* a kit whose sections are absent or entirely invalid comes back empty, which the type permits
|
|
19601
|
-
* and a workspace that has not filled its kit in yet carries.
|
|
19602
|
-
*
|
|
19603
|
-
* @alpha
|
|
19604
|
-
*/
|
|
19605
|
-
export declare function sanitizeReportsBrandKit(value: unknown): IReportsBrandKit | undefined;
|
|
19606
|
-
|
|
19607
19695
|
/**
|
|
19608
19696
|
* Supported email attachments
|
|
19609
19697
|
* @alpha
|
|
@@ -19797,6 +19885,23 @@ export declare type ThemeDashboardDensity = "comfortable" | "compact";
|
|
|
19797
19885
|
*/
|
|
19798
19886
|
export declare type ThemeFontUri = string;
|
|
19799
19887
|
|
|
19888
|
+
/**
|
|
19889
|
+
* Length used in rendered reports.
|
|
19890
|
+
*
|
|
19891
|
+
* @remarks
|
|
19892
|
+
* A report page scales with its width, so lengths are stated in `cqw` (1cqw = 1% of the page
|
|
19893
|
+
* width). A bare number means cqw: `3.5` and `"3.5cqw"` are the same length. `cqi`, `em` and `%`
|
|
19894
|
+
* are accepted as well. Anything that does not follow the page width is ignored: `px` and `rem`
|
|
19895
|
+
* hold their size, and `cqh` and `cqb` resolve against the viewport, because a page contains its
|
|
19896
|
+
* inline axis only.
|
|
19897
|
+
*
|
|
19898
|
+
* A line height is the exception to the bare number: `1.5` is the CSS ratio it looks like, a
|
|
19899
|
+
* multiple of the font size, not a share of the page width.
|
|
19900
|
+
*
|
|
19901
|
+
* @alpha
|
|
19902
|
+
*/
|
|
19903
|
+
export declare type ThemeReportsLength = string | number;
|
|
19904
|
+
|
|
19800
19905
|
/**
|
|
19801
19906
|
* Throwing exhaustiveness check for discriminated unions: the `never` parameter fails the build on an
|
|
19802
19907
|
* unhandled case, and the throw guards runtime values the compiler cannot see. Counterpart: {@link assertNever}.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IDateFilterConfig } from "../dateFilterConfig/index.js";
|
|
2
|
-
import type { IReportsBrandKit } from "../reports/brandKit.js";
|
|
3
2
|
/**
|
|
4
3
|
* Describes metric format override configuration.
|
|
5
4
|
*
|
|
@@ -313,11 +312,6 @@ export interface IPermanentSettings {
|
|
|
313
312
|
* @beta
|
|
314
313
|
*/
|
|
315
314
|
defaultExportTemplate?: IDefaultExportTemplate;
|
|
316
|
-
/**
|
|
317
|
-
* Brand kit offered to report authors: brand colors, typography and shared assets.
|
|
318
|
-
* @alpha
|
|
319
|
-
*/
|
|
320
|
-
reportsBrandKit?: IReportsBrandKit;
|
|
321
315
|
/**
|
|
322
316
|
* Indicates current platform edition.
|
|
323
317
|
*/
|
|
@@ -1009,5 +1003,17 @@ export interface IFeatureFlags {
|
|
|
1009
1003
|
* Enable the Business Briefing reports application.
|
|
1010
1004
|
*/
|
|
1011
1005
|
enableBusinessBriefingReportsApp?: boolean;
|
|
1006
|
+
/**
|
|
1007
|
+
* Enable the write and export postMessage commands for embedded dashboards and Analytical Designer.
|
|
1008
|
+
*
|
|
1009
|
+
* @remarks
|
|
1010
|
+
* Covers saveDashboard, saveAsDashboard, exportToPdf and openDeleteDashboardDialog in embedded
|
|
1011
|
+
* dashboards, and saveInsight, saveAsInsight and exportInsight in embedded Analytical Designer.
|
|
1012
|
+
* These commands are accepted from any parent origin, so the embedding organization must restrict
|
|
1013
|
+
* who may frame the application through the CSP frame-ancestors directive before this is enabled.
|
|
1014
|
+
*
|
|
1015
|
+
* Disabled by default.
|
|
1016
|
+
*/
|
|
1017
|
+
enableEmbeddingWriteCommands?: boolean;
|
|
1012
1018
|
}
|
|
1013
1019
|
//# sourceMappingURL=settings.d.ts.map
|