@sisense/sdk-ui 2.23.0 → 2.25.0
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/ai.cjs +59 -59
- package/dist/ai.js +919 -980
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1232 -1220
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{execute-query-CHYTupEo.js → apply-styled-options-to-query-BsBTwL6W.js} +1522 -1447
- package/dist/apply-styled-options-to-query-mFJvsssw.cjs +1 -0
- package/dist/{index-Dx6wvLd3.cjs → index-BX9p-XrU.cjs} +1 -1
- package/dist/{index-DCAC0mJe.js → index-D7mHzfx0.js} +30 -1
- package/dist/index.cjs +731 -712
- package/dist/index.js +26018 -33110
- package/dist/index.umd.js +985 -958
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +17 -5
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +4 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-csv-download.d.ts +24 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/persistence-manager.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +52 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +25 -28
- package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +4 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +40 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +36 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +62 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +39 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/use-translated-data-options.d.ts +12 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +87 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill-bubble-tooltip.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/types.d.ts +51 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-csv-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-csv-download.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-csv-download.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/tabber-buttons-widget/types.d.ts +8 -8
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +21 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +59 -2
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-csv-query-file-loader.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-with-csv-download-menu-item.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-menu-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/utils.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +5 -2
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-api-types.d.ts +32 -0
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-constants.d.ts +6 -0
- package/dist/packages/sdk-ui/src/{modules/ai/api/narration-endpoints.d.ts → infra/api/narrative/narrative-endpoints.d.ts} +8 -7
- package/dist/packages/sdk-ui/src/infra/api/narrative/send-ai-feedback.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +11 -4
- package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/emotion-cache-provider.d.ts +31 -3
- package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/stylis-plugins/css-selector-prefix-plugin.d.ts +18 -0
- package/dist/packages/sdk-ui/src/infra/plugins/custom-plugin-context-provider.d.ts +18 -0
- package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/plugin-provider.d.ts +4 -2
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/types.d.ts +12 -4
- package/dist/packages/sdk-ui/src/infra/plugins/use-widget-plugin-registry.d.ts +7 -0
- package/dist/packages/sdk-ui/src/infra/{contexts/plugin-provider → plugins}/validate-plugins.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +302 -0
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +33 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +29 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +58 -0
- package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +5 -18
- package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +3 -0
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +5 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/ai/use-get-nlg-insights.d.ts +4 -26
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/validate-custom-formula.d.ts +15 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +22 -6
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +5 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +3 -7
- package/dist/packages/sdk-ui/src/props.d.ts +20 -2
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +2 -0
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +9 -1
- package/dist/packages/sdk-ui/src/shared/const.d.ts +5 -0
- package/dist/packages/sdk-ui/src/shared/types/menu-item.d.ts +5 -1
- package/dist/packages/sdk-ui/src/shared/utils/menu-item-converters.d.ts +12 -0
- package/dist/packages/sdk-ui/src/types.d.ts +1 -1
- package/dist/parse-compose-code-DfZskSng.js +352 -0
- package/dist/parse-compose-code-v4J9BrUg.cjs +1 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +31 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +31 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +31 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +31 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +31 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +31 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +31 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +31 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +31 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +31 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +31 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +31 -2
- package/dist/{types-B96nVbgX.js → types-BBp2sp_s.js} +1 -1
- package/dist/types-GFLaiax5.cjs +1 -0
- package/dist/use-hover-DsnmY-p_.cjs +721 -0
- package/dist/{quota-notification-CVl0isIV.js → use-hover-mptQLQ4S.js} +27865 -19277
- package/dist/{utils-CgV-jWWQ.cjs → utils-BlNqPAG8.cjs} +45 -45
- package/dist/{utils-ChqSLRbz.js → utils-DTUC-wtI.js} +7729 -7513
- package/dist/{widget-composer-Blul90Zb.cjs → widget-composer-CDb2iOoS.cjs} +1 -1
- package/dist/{widget-composer-Cf_CN3Ux.js → widget-composer-D0BZrLna.js} +3 -3
- package/package.json +11 -10
- package/dist/dimensions-2t18RSZC.cjs +0 -1
- package/dist/dimensions-C0BmtTH2.js +0 -204
- package/dist/execute-query-DmAyVFF5.cjs +0 -1
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/index.d.ts +0 -5
- package/dist/packages/sdk-ui/src/infra/contexts/plugin-provider/plugin-context.d.ts +0 -15
- package/dist/packages/sdk-ui/src/infra/styled/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/infra/styled/with-css-selector-prefix.d.ts +0 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +0 -8
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/parse-compose-code.d.ts +0 -15
- package/dist/quota-notification-RAaHp-eO.cjs +0 -713
- package/dist/types-DZ4vWh8j.cjs +0 -1
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetNlgInsightsRequest } from '
|
|
3
|
-
import { GetNlgInsightsProps } from './get-nlg-insights.js';
|
|
4
|
-
|
|
5
|
-
* Parameters for {@link useGetNlgInsights} hook.
|
|
6
|
-
*/
|
|
7
|
-
export interface UseGetNlgInsightsParams {
|
|
8
|
-
/** The data source that the query targets - e.g. `Sample ECommerce` */
|
|
9
|
-
dataSource: DataSource;
|
|
10
|
-
/** Dimensions of the query */
|
|
11
|
-
dimensions?: Attribute[];
|
|
12
|
-
/** Measures of the query */
|
|
13
|
-
measures?: Measure[];
|
|
14
|
-
/** Filters of the query */
|
|
15
|
-
filters?: Filter[] | FilterRelations;
|
|
16
|
-
/**
|
|
17
|
-
* Boolean flag to enable/disable API call by default
|
|
18
|
-
*
|
|
19
|
-
* If not specified, the default value is `true`
|
|
20
|
-
*/
|
|
21
|
-
enabled?: boolean;
|
|
22
|
-
/** The verbosity of the NLG summarization */
|
|
23
|
-
verbosity?: 'Low' | 'High';
|
|
24
|
-
}
|
|
1
|
+
import { prepareGetNlgInsightsPayload, type UseGetNlgInsightsParams } from '../../domains/narrative/core/build-narrative-request.js';
|
|
2
|
+
import type { GetNlgInsightsRequest } from '../../infra/api/narrative/narrative-api-types.js';
|
|
3
|
+
import type { GetNlgInsightsProps } from './get-nlg-insights.js';
|
|
4
|
+
export { prepareGetNlgInsightsPayload, type UseGetNlgInsightsParams };
|
|
25
5
|
/**
|
|
26
6
|
* State for {@link useGetNlgInsights} hook.
|
|
27
7
|
*/
|
|
@@ -39,8 +19,6 @@ export interface UseGetNlgInsightsState {
|
|
|
39
19
|
/** Callback to trigger a refetch of the data */
|
|
40
20
|
refetch: () => void;
|
|
41
21
|
}
|
|
42
|
-
/** @internal */
|
|
43
|
-
export declare function prepareGetNlgInsightsPayload(params: UseGetNlgInsightsParams | GetNlgInsightsRequest): GetNlgInsightsRequest;
|
|
44
22
|
/**
|
|
45
23
|
*
|
|
46
24
|
* @param params - {@link UseGetNlgInsightsParams}
|
|
@@ -15,7 +15,7 @@ export interface FormulaValidationOptions {
|
|
|
15
15
|
allowEmptyFormula?: boolean;
|
|
16
16
|
/** Custom error message prefix for better context */
|
|
17
17
|
errorPrefix?: string;
|
|
18
|
-
/** When provided,
|
|
18
|
+
/** When provided, xdiff args are validated as datetime dimensions and level-matched */
|
|
19
19
|
schemaIndex?: SchemaIndex;
|
|
20
20
|
}
|
|
21
21
|
export interface TimeDiffCall {
|
|
@@ -24,10 +24,22 @@ export interface TimeDiffCall {
|
|
|
24
24
|
ref2: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Extracts
|
|
27
|
+
* Extracts xdiff (or other two-arg bracket) calls from a formula string.
|
|
28
28
|
* Matches FUNC([ref1], [ref2]) for each function name in the set (case-insensitive).
|
|
29
29
|
*/
|
|
30
|
-
export declare function
|
|
30
|
+
export declare function parseXDiffCalls(formula: string, functionNames: readonly string[]): TimeDiffCall[];
|
|
31
|
+
export interface FormulaParenCall {
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly argCount: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Finds all `IDENT(` calls in a formula, outside quoted strings, with comma-separated arg counts
|
|
37
|
+
* (nesting-aware, same rules as {@link splitAtDepthZero}). Recurses into argument lists so nested
|
|
38
|
+
* calls (e.g. `SUM(MAX([a]))`) are included.
|
|
39
|
+
*
|
|
40
|
+
* @internal Exported for unit tests
|
|
41
|
+
*/
|
|
42
|
+
export declare function extractParenFunctionCalls(formula: string): FormulaParenCall[];
|
|
31
43
|
/**
|
|
32
44
|
* Validates that all bracket references in a custom formula exist in the provided context
|
|
33
45
|
* and provides helpful error messages for debugging.
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
/** Category of formula function for validation and translation. */
|
|
2
|
-
export type FormulaFunctionCategory = '
|
|
2
|
+
export type FormulaFunctionCategory = 'xdiff' | 'aggregative' | 'math' | 'growth' | 'date' | 'window' | 'string' | 'scalar';
|
|
3
3
|
/** Metadata for a formula function (e.g. DDIFF, SUM). */
|
|
4
4
|
export interface FormulaFunctionMeta {
|
|
5
5
|
category: FormulaFunctionCategory;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/** Inclusive minimum number of parenthesized arguments. */
|
|
7
|
+
minArgs: number;
|
|
8
|
+
/** Inclusive maximum number of parenthesized arguments; use Infinity for unbounded (e.g. concat). */
|
|
9
|
+
maxArgs: number;
|
|
10
|
+
/** Required date level for xdiff functions (e.g. DateLevels.Days for DDIFF). */
|
|
8
11
|
requiredDateLevel?: string;
|
|
9
12
|
/** Argument type constraint; 'datetime' means args must be datetime dimensions. */
|
|
10
13
|
argType?: 'datetime';
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Formula functions explicitly not supported in custom formulas (engine may expose them elsewhere).
|
|
17
|
+
* Keys are uppercase for lookup.
|
|
18
|
+
*/
|
|
19
|
+
export declare const UNSUPPORTED_FORMULA_FUNCTIONS: ReadonlySet<string>;
|
|
12
20
|
/** Registry keyed by formula function name (uppercase). */
|
|
13
21
|
export declare const FORMULA_FUNCTION_SCHEMAS: Record<string, FormulaFunctionMeta>;
|
|
14
22
|
/**
|
|
15
|
-
* Returns
|
|
23
|
+
* Returns inclusive arg bounds for a known formula function, or undefined if not in the registry.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getFormulaFunctionArgBounds(formulaFunctionName: string): Pick<FormulaFunctionMeta, 'minArgs' | 'maxArgs'> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Returns formula function names that are xdiff (SDIFF, MNDIFF, HDIFF, DDIFF, MDIFF, QDIFF, YDIFF).
|
|
16
28
|
*/
|
|
17
|
-
export declare function
|
|
29
|
+
export declare function getXDiffFormulaFunctions(): readonly string[];
|
|
18
30
|
/**
|
|
19
|
-
* Returns the required date level for
|
|
31
|
+
* Returns the required date level for an xdiff function, or undefined if not an xdiff function.
|
|
20
32
|
*/
|
|
21
33
|
export declare function getRequiredDateLevel(formulaFunctionName: string): string | undefined;
|
|
22
34
|
/**
|
|
23
35
|
* Returns formula function names for a given category.
|
|
24
36
|
*/
|
|
25
37
|
export declare function getFormulaFunctionsByCategory(category: FormulaFunctionCategory): readonly string[];
|
|
38
|
+
/**
|
|
39
|
+
* Human-readable arity text for validation errors (e.g. "1 or 2 parameters", "at least 2 parameters").
|
|
40
|
+
*/
|
|
41
|
+
export declare function formatFormulaFunctionArityMessage(minArgs: number, maxArgs: number): string;
|
|
@@ -28,7 +28,10 @@ export interface SchemaIndex {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function createSchemaIndex(tables: NormalizedTable[]): SchemaIndex;
|
|
30
30
|
/**
|
|
31
|
-
* Parses a dimensional name using schema-aware greedy matching to handle dots in table/column names
|
|
31
|
+
* Parses a dimensional name using schema-aware greedy matching to handle dots in table/column names.
|
|
32
|
+
* Table and column segments are matched case-insensitively against the schema; returned table/column
|
|
33
|
+
* objects keep canonical names and expressions. Date level suffixes are case-sensitive.
|
|
34
|
+
* If two tables share the same name ignoring case, the first match in {@link SchemaIndex.sortedTables} wins.
|
|
32
35
|
*
|
|
33
36
|
* @param dimensionalName - The dimensional name (e.g., "DM.Brand.io.Brand" or "DM.Commerce.Date.Years")
|
|
34
37
|
* @param schemaIndex - The schema index for efficient matching
|
|
@@ -42,7 +45,7 @@ export declare function parseDimensionalName(dimensionalName: string, schemaInde
|
|
|
42
45
|
};
|
|
43
46
|
/** Options for {@link createAttributeFromName} when translating custom formula context. */
|
|
44
47
|
export interface CreateAttributeFromNameOptions {
|
|
45
|
-
/** When the dimensional name has no date level, use this level for datetime columns (e.g. from
|
|
48
|
+
/** When the dimensional name has no date level, use this level for datetime columns (e.g. from xdiff function). */
|
|
46
49
|
inferredDateLevel?: string;
|
|
47
50
|
}
|
|
48
51
|
export declare function createAttributeFromName(attributeName: string, dataSource: JaqlDataSourceForDto, schemaIndex: SchemaIndex, options?: CreateAttributeFromNameOptions): import("@sisense/sdk-data").Attribute | import("@sisense/sdk-data").LevelAttribute;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attribute, Filter, FilterRelations, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
|
|
1
|
+
import { type Arg, type ArgValue, Attribute, Filter, FilterRelations, type FunctionCall, JaqlDataSourceForDto, JSONArray, Measure, PivotGrandTotals } from '@sisense/sdk-data';
|
|
2
2
|
import { CategoryStyle, SeriesStyle, ValueStyle } from '../../../public-api/index.js';
|
|
3
3
|
import type { PivotTableStyleOptions } from '../../../types.js';
|
|
4
4
|
import { DataSchemaContext, NlqTranslationInput } from '../types.js';
|
|
@@ -16,20 +16,16 @@ export interface InternalDataSchemaContext {
|
|
|
16
16
|
chartType?: string;
|
|
17
17
|
}
|
|
18
18
|
export declare const DIMENSIONAL_NAME_PREFIX = "DM.";
|
|
19
|
+
/** Re-exported from `@sisense/sdk-data` (compose-code parse tree). */
|
|
20
|
+
export type { Arg, ArgValue, FunctionCall };
|
|
19
21
|
export type ArgType = 'string' | 'string[]' | 'number' | 'number[]' | 'boolean' | 'Attribute' | 'Attribute[]' | 'Measure' | 'BaseMeasure' | 'Measure[]' | 'Filter' | 'Filter[]' | 'FilterRelationsNode' | 'DateDimension' | 'LevelAttribute' | 'Measure | number' | 'Date | string' | 'string | number' | 'BaseFilterConfig' | 'MembersFilterConfig' | 'CustomFormulaContext' | 'any';
|
|
20
22
|
export interface ArgSchema {
|
|
21
23
|
type: ArgType;
|
|
22
24
|
required: boolean;
|
|
23
25
|
}
|
|
24
|
-
export type ArgValue = string | number | boolean | FunctionCall | string[];
|
|
25
|
-
export type Arg = ArgValue | Record<string, ArgValue>;
|
|
26
26
|
export type ProcessedArg = unknown;
|
|
27
27
|
export type QueryElement = Filter | FilterRelations | Measure;
|
|
28
28
|
export type FactoryFunction = (...args: unknown[]) => QueryElement;
|
|
29
|
-
export type FunctionCall = {
|
|
30
|
-
function: string;
|
|
31
|
-
args: Arg[];
|
|
32
|
-
};
|
|
33
29
|
/**
|
|
34
30
|
* Context object passed to all custom processors containing runtime information
|
|
35
31
|
* needed for processing.
|
|
@@ -9,7 +9,7 @@ import { HighchartsOptions } from './domains/visualizations/core/chart-options-p
|
|
|
9
9
|
import type { ChartWidgetProps } from './domains/widgets/components/chart-widget/types';
|
|
10
10
|
import { FiltersMergeStrategy } from './domains/widgets/components/widget-by-id/types';
|
|
11
11
|
import { type AppConfig } from './infra/app/types';
|
|
12
|
-
import type { Plugin } from './infra/
|
|
12
|
+
import type { Plugin } from './infra/plugins/types';
|
|
13
13
|
import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, CustomDrilldownResult, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableDrilldownOptions, PivotTableStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
|
|
14
14
|
export type { TabberButtonsWidgetProps } from './domains/widgets/components/tabber-buttons-widget/types';
|
|
15
15
|
export type { WidgetProps, WidgetType, WithCommonWidgetProps, } from './domains/widgets/components/widget/types';
|
|
@@ -126,6 +126,24 @@ export interface SisenseContextProviderProps {
|
|
|
126
126
|
* @internal
|
|
127
127
|
*/
|
|
128
128
|
alternativeSsoHost?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Maximum number of SSO redirect attempts before stopping.
|
|
131
|
+
* Prevents infinite refresh loops when auth cookies fail to land (e.g. third-party
|
|
132
|
+
* cookie restrictions, SSO configuration issues, browser privacy settings).
|
|
133
|
+
* Redirect attempts are tracked in localStorage per Sisense URL and reset on successful auth.
|
|
134
|
+
* If not specified, the default value is `3`.
|
|
135
|
+
*
|
|
136
|
+
* @category Sisense Authentication
|
|
137
|
+
* @alpha
|
|
138
|
+
*/
|
|
139
|
+
ssoMaxAuthRedirectAttempts?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Milliseconds after the latest redirect timestamp before the counter resets. Use `0` to disable expiry (counter only resets on successful auth). Default is `5000` (5 seconds).
|
|
142
|
+
*
|
|
143
|
+
* @category Sisense Authentication
|
|
144
|
+
* @alpha
|
|
145
|
+
*/
|
|
146
|
+
ssoRedirectAttemptsTtlMs?: number;
|
|
129
147
|
/**
|
|
130
148
|
* Boolean flag to use the default palette from Compose SDK.
|
|
131
149
|
* Set to true in case of WAT authentication causing errors for the `/api/palettes` endpoint on older versions of Fusion (pre 2024.3)
|
|
@@ -207,7 +225,7 @@ export type ThemeProviderProps = PropsWithChildren<{
|
|
|
207
225
|
* @internal
|
|
208
226
|
*/
|
|
209
227
|
skipTracking?: boolean;
|
|
210
|
-
/** @
|
|
228
|
+
/** @alpha */
|
|
211
229
|
config?: ThemeConfig;
|
|
212
230
|
}>;
|
|
213
231
|
/**
|
|
@@ -20,6 +20,8 @@ export { processDrilldownSelections } from '../domains/drilldown/hooks/use-drill
|
|
|
20
20
|
export { CommonWidget, type CommonWidgetProps } from '../domains/widgets/components/common-widget';
|
|
21
21
|
export { TableWidget, type TableWidgetProps } from '../domains/widgets/components/table-widget';
|
|
22
22
|
export { CustomWidgetsProviderAdapter, type CustomWidgetsContextAdapter, type CustomWidgetsProviderAdapterProps, } from '../infra/contexts/custom-widgets-provider/custom-widgets-provider-adapter';
|
|
23
|
+
export { CustomPluginContextProvider } from '../infra/plugins/custom-plugin-context-provider.js';
|
|
24
|
+
export type { CustomPluginContextProviderProps, CustomPluginContextProviderContext, } from '../infra/plugins/custom-plugin-context-provider.js';
|
|
23
25
|
export { useGetSharedFormulaInternal } from '../domains/formulas/use-get-shared-formula';
|
|
24
26
|
export { translateColumnToAttribute } from '../domains/visualizations/core/chart-data-options/utils';
|
|
25
27
|
export { isSameAttribute } from '../shared/utils/filters';
|
|
@@ -49,7 +49,7 @@ export { type CustomWidgetProps } from '../domains/widgets/components/custom-wid
|
|
|
49
49
|
export { TabberButtonsWidget } from '../domains/widgets/components/tabber-buttons-widget';
|
|
50
50
|
export { DrilldownBreadcrumbs } from '../domains/drilldown/components/drilldown-breadcrumbs';
|
|
51
51
|
export * from '../infra/contexts/custom-widgets-provider/types';
|
|
52
|
-
export { useCustomWidgets } from '../infra/contexts/custom-widgets-provider';
|
|
52
|
+
export { useCustomWidgets, type UseCustomWidgetsResult, } from '../infra/contexts/custom-widgets-provider';
|
|
53
53
|
export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type DashboardId, type WidgetsOptions, type SpecificWidgetOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, } from '../domains/dashboarding/dashboard-model';
|
|
54
54
|
export { useGetWidgetModel, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, } from '../domains/widgets/widget-model';
|
|
55
55
|
export { useGetHierarchyModels, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from '../domains/drilldown/hierarchy-model';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Such APIs are for in-company usage only.
|
|
5
5
|
* These APIs may change for in-company needs and are not part of the public contract.
|
|
6
6
|
*/
|
|
7
|
-
export { useDashboardPersistence } from '../domains/dashboarding/dashboard-model';
|
|
8
7
|
export { translateFiltersAndRelationsToDto } from '../domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.js';
|
|
9
8
|
export { UseDashboardModelActionType } from '../domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.js';
|
|
10
9
|
export { type DashboardDto } from '../infra/api/types/dashboard-dto';
|
|
@@ -20,9 +19,18 @@ export { QuotaNotification } from '../shared/components/quota-notification/quota
|
|
|
20
19
|
export type { QuotaNotificationProps } from '../shared/components/quota-notification/quota-notification.js';
|
|
21
20
|
export { useQuotaNotification } from '../shared/hooks/use-quota-notification.js';
|
|
22
21
|
export type { QuotaNotificationOptions, QuotaApiResponse, QuotaState, } from '../shared/hooks/use-quota-notification.js';
|
|
22
|
+
export type { Plugin } from '../infra/plugins/types.js';
|
|
23
|
+
export type { WidgetPlugin, CustomVisualization, CustomVisualizationProps, CustomVisualizationStyleOptions, CustomVisualizationEventProps, CustomVisualizationDataPoint, CustomVisualizationDataPointEventHandler, CustomVisualizationDataPointContextMenuHandler, CustomVisualizationDataPointsEventHandler, DesignPanelProps, DesignPanel, } from '../infra/plugins/widget-plugins/types.js';
|
|
23
24
|
export { LoadingIndicator } from '../shared/components/loading-indicator.js';
|
|
24
25
|
export { DataSchemaBrowser } from '../domains/data-browser/data-schema-browser/data-schema-browser.js';
|
|
26
|
+
export { type NarrativeQueryParams } from '../domains/narrative/core/build-narrative-request.js';
|
|
27
|
+
export { useGetWidgetNarrative, type UseGetWidgetNarrativeOptions, type UseGetWidgetNarrativeParams, type UseGetWidgetNarrativeResult, } from '../domains/narrative/hooks/use-get-widget-narrative.js';
|
|
28
|
+
export { WidgetNarrative, type WidgetNarrativeProps, } from '../domains/narrative/components/widget-narrative.js';
|
|
25
29
|
export type { NlqChartWidgetStyleOptions } from '../types';
|
|
26
30
|
export type { RenderTitleHandler } from '../types';
|
|
27
31
|
export { isChartWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
|
|
28
32
|
export { isPivotTableWidgetProps } from '../domains/widgets/components/widget-by-id/utils.js';
|
|
33
|
+
export { useDashboardPersistence } from '../domains/dashboarding/dashboard-model';
|
|
34
|
+
export { createDashboardPersistenceManager } from '../domains/dashboarding/persistence/persistence-manager.js';
|
|
35
|
+
export type { DashboardPersistenceManager } from '../domains/dashboarding/persistence/types.js';
|
|
36
|
+
export { QueryDefinition, type QueryDefinitionProps, type QueryPillCategory, type QueryPillItem, type QueryDefinitionViewModel, } from '../domains/visualizations/core/query-definition';
|
|
@@ -5,3 +5,8 @@ export declare const DEFAULT_BACKGROUND_COLOR = "#F4F4F8";
|
|
|
5
5
|
export declare const ERROR_COLOR = "#FA5656";
|
|
6
6
|
export declare const NOT_AVAILABLE_DATA_VALUE = "N\\A";
|
|
7
7
|
export declare const NOT_AVAILABLE_TEXT = "N/A";
|
|
8
|
+
/** WCAG 2.5.8 Target Size (Minimum) — minimum 24×24 CSS pixels for interactive controls. */
|
|
9
|
+
export declare const MIN_TOUCH_TARGET_SIZE: {
|
|
10
|
+
readonly minWidth: "24px";
|
|
11
|
+
readonly minHeight: "24px";
|
|
12
|
+
};
|
|
@@ -10,8 +10,12 @@ export type MenuItem = {
|
|
|
10
10
|
* Caption of the menu item
|
|
11
11
|
*/
|
|
12
12
|
caption: string;
|
|
13
|
+
/**
|
|
14
|
+
* Sub items of the menu item
|
|
15
|
+
*/
|
|
16
|
+
items?: MenuItem[];
|
|
13
17
|
/**
|
|
14
18
|
* Handler function to be called when the menu item is clicked
|
|
15
19
|
*/
|
|
16
|
-
onClick
|
|
20
|
+
onClick?: () => void;
|
|
17
21
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MenuItemSection } from '../../types';
|
|
2
|
+
import type { MenuItem } from '../types/menu-item.js';
|
|
3
|
+
type SectionItem = NonNullable<MenuItemSection['items']>[number];
|
|
4
|
+
/**
|
|
5
|
+
* Recursively converts a {@link MenuItem} into
|
|
6
|
+
* the item within the `MenuItemSection` expected by the context-menu infrastructure.
|
|
7
|
+
*
|
|
8
|
+
* @param menuItem - The menu item to convert.
|
|
9
|
+
* @returns The equivalent context-menu section item.
|
|
10
|
+
*/
|
|
11
|
+
export declare function convertMenuItemToLegacySectionItem(menuItem: MenuItem): SectionItem;
|
|
12
|
+
export {};
|
|
@@ -1964,7 +1964,7 @@ export type CompleteThemeSettings = DeepRequired<Omit<ThemeSettings, 'typography
|
|
|
1964
1964
|
fontsLoader?: FontsLoaderSettings;
|
|
1965
1965
|
};
|
|
1966
1966
|
};
|
|
1967
|
-
/** @
|
|
1967
|
+
/** @alpha */
|
|
1968
1968
|
export type ThemeConfig = {
|
|
1969
1969
|
cssSelectorPrefix?: {
|
|
1970
1970
|
enabled?: boolean;
|