@thoughtspot/visual-embed-sdk 1.32.0-alpha.1 → 1.33.0-alpha.1
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/README.md +21 -1
- package/cjs/package.json +6 -4
- package/cjs/src/embed/app.d.ts +7 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +24 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +30 -0
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +31 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +14 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +13 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +7 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +12 -3
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +16 -3
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +18 -8
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +4 -7
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/global-styles.d.ts +2 -0
- package/cjs/src/utils/global-styles.d.ts.map +1 -0
- package/cjs/src/utils/global-styles.js +44 -0
- package/cjs/src/utils/global-styles.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +9 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/preview-service.d.ts +3 -0
- package/cjs/src/utils/graphql/preview-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/preview-service.js +30 -0
- package/cjs/src/utils/graphql/preview-service.js.map +1 -0
- package/dist/src/embed/app.d.ts +7 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +24 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +14 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +7 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +18 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/global-styles.d.ts +2 -0
- package/dist/src/utils/global-styles.d.ts.map +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/preview-service.d.ts +3 -0
- package/dist/src/utils/graphql/preview-service.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +123 -12
- package/dist/tsembed-react.js +123 -12
- package/dist/tsembed.es.js +123 -12
- package/dist/tsembed.js +123 -12
- package/dist/visual-embed-sdk-react-full.d.ts +69 -10
- package/dist/visual-embed-sdk-react.d.ts +69 -10
- package/dist/visual-embed-sdk.d.ts +69 -10
- package/lib/package.json +6 -4
- package/lib/src/embed/app.d.ts +7 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +24 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +30 -0
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +31 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +14 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +13 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +7 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +12 -3
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +16 -3
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +18 -8
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +4 -7
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/global-styles.d.ts +2 -0
- package/lib/src/utils/global-styles.d.ts.map +1 -0
- package/lib/src/utils/global-styles.js +40 -0
- package/lib/src/utils/global-styles.js.map +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +9 -0
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/preview-service.d.ts +3 -0
- package/lib/src/utils/graphql/preview-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/preview-service.js +26 -0
- package/lib/src/utils/graphql/preview-service.js.map +1 -0
- package/lib/src/visual-embed-sdk.d.ts +69 -10
- package/package.json +6 -4
- package/src/embed/app.ts +13 -4
- package/src/embed/liveboard.spec.ts +34 -0
- package/src/embed/liveboard.ts +61 -1
- package/src/embed/search.spec.ts +17 -0
- package/src/embed/search.ts +19 -0
- package/src/embed/ts-embed.spec.ts +18 -3
- package/src/embed/ts-embed.ts +14 -4
- package/src/types.ts +31 -20
- package/src/utils/global-styles.ts +40 -0
- package/src/utils/graphql/answerService/answer-queries.ts +9 -0
- package/src/utils/graphql/preview-service.ts +31 -0
package/dist/tsembed.es.js
CHANGED
|
@@ -687,11 +687,6 @@ var EmbedEvent;
|
|
|
687
687
|
* @important
|
|
688
688
|
*/
|
|
689
689
|
EmbedEvent["Data"] = "data";
|
|
690
|
-
/**
|
|
691
|
-
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
692
|
-
* @hidden
|
|
693
|
-
*/
|
|
694
|
-
EmbedEvent["FiltersChanged"] = "filtersChanged";
|
|
695
690
|
/**
|
|
696
691
|
* Search query has been updated by the user.
|
|
697
692
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
@@ -2495,6 +2490,7 @@ var Param;
|
|
|
2495
2490
|
Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
|
|
2496
2491
|
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2497
2492
|
Param["IsOnBeforeGetVizDataInterceptEnabled"] = "isOnBeforeGetVizDataInterceptEnabled";
|
|
2493
|
+
Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
|
|
2498
2494
|
})(Param || (Param = {}));
|
|
2499
2495
|
/**
|
|
2500
2496
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3318,7 +3314,7 @@ var Action;
|
|
|
3318
3314
|
* disabledActions: [Action.ManageMonitor]
|
|
3319
3315
|
* ```
|
|
3320
3316
|
*/
|
|
3321
|
-
Action["ManageMonitor"] = "
|
|
3317
|
+
Action["ManageMonitor"] = "manageMonitor";
|
|
3322
3318
|
/**
|
|
3323
3319
|
* Action ID for Liveboard Personalised Views dropdown
|
|
3324
3320
|
* @example
|
|
@@ -3361,8 +3357,9 @@ var Action;
|
|
|
3361
3357
|
* ```js
|
|
3362
3358
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3363
3359
|
* disabledActions: [Action.CreateLiveboard]
|
|
3360
|
+
* ```
|
|
3364
3361
|
*
|
|
3365
|
-
* @version SDK: 1.
|
|
3362
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3366
3363
|
*/
|
|
3367
3364
|
Action["CreateLiveboard"] = "CreateLiveboard";
|
|
3368
3365
|
/**
|
|
@@ -6216,6 +6213,15 @@ const getAnswer = `
|
|
|
6216
6213
|
}
|
|
6217
6214
|
}
|
|
6218
6215
|
}
|
|
6216
|
+
metadata {
|
|
6217
|
+
author
|
|
6218
|
+
authorId
|
|
6219
|
+
createdAt
|
|
6220
|
+
isDiscoverable
|
|
6221
|
+
isHidden
|
|
6222
|
+
modifiedAt
|
|
6223
|
+
tags
|
|
6224
|
+
}
|
|
6219
6225
|
visualizations {
|
|
6220
6226
|
... on TableViz {
|
|
6221
6227
|
columns {
|
|
@@ -13997,7 +14003,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
13997
14003
|
});
|
|
13998
14004
|
}
|
|
13999
14005
|
|
|
14000
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
14006
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-alpha.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14001
14007
|
|
|
14002
14008
|
/**
|
|
14003
14009
|
* Copyright (c) 2022
|
|
@@ -14254,7 +14260,7 @@ class TsEmbed {
|
|
|
14254
14260
|
* @param query
|
|
14255
14261
|
*/
|
|
14256
14262
|
getEmbedBasePath(query) {
|
|
14257
|
-
let queryString = query
|
|
14263
|
+
let queryString = (query.startsWith('?')) ? query : `?${query}`;
|
|
14258
14264
|
if (this.shouldEncodeUrlQueryParams) {
|
|
14259
14265
|
queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
|
|
14260
14266
|
}
|
|
@@ -14701,7 +14707,7 @@ class TsEmbed {
|
|
|
14701
14707
|
isRegisteredBySDK,
|
|
14702
14708
|
});
|
|
14703
14709
|
if (this.isRendered) {
|
|
14704
|
-
|
|
14710
|
+
logger.warn('Please register event handlers before calling render');
|
|
14705
14711
|
}
|
|
14706
14712
|
const callbacks = this.eventHandlerMap.get(messageType) || [];
|
|
14707
14713
|
callbacks.push({ options, callback });
|
|
@@ -14972,6 +14978,13 @@ class TsEmbed {
|
|
|
14972
14978
|
class V1Embed extends TsEmbed {
|
|
14973
14979
|
constructor(domSelector, viewConfig) {
|
|
14974
14980
|
super(domSelector, viewConfig);
|
|
14981
|
+
/**
|
|
14982
|
+
* Only for testing purposes.
|
|
14983
|
+
*
|
|
14984
|
+
* @hidden
|
|
14985
|
+
*/
|
|
14986
|
+
// eslint-disable-next-line camelcase
|
|
14987
|
+
this.test__executeCallbacks = this.executeCallbacks;
|
|
14975
14988
|
this.viewConfig = { excludeRuntimeFiltersfromURL: false, ...viewConfig };
|
|
14976
14989
|
}
|
|
14977
14990
|
/**
|
|
@@ -14994,7 +15007,9 @@ class V1Embed extends TsEmbed {
|
|
|
14994
15007
|
const filterQuery = getFilterQuery(runtimeFilters || []);
|
|
14995
15008
|
queryString = [filterQuery, queryString].filter(Boolean).join('&');
|
|
14996
15009
|
}
|
|
14997
|
-
return this.
|
|
15010
|
+
return (this.viewConfig.enableV2Shell_experimental)
|
|
15011
|
+
? this.getEmbedBasePath(queryString)
|
|
15012
|
+
: this.getV1EmbedBasePath(queryString);
|
|
14998
15013
|
}
|
|
14999
15014
|
/**
|
|
15000
15015
|
* @inheritdoc
|
|
@@ -15275,6 +15290,71 @@ class AppEmbed extends V1Embed {
|
|
|
15275
15290
|
}
|
|
15276
15291
|
}
|
|
15277
15292
|
|
|
15293
|
+
/* eslint-disable quotes */
|
|
15294
|
+
const getPreviewQuery = `
|
|
15295
|
+
query GetEurekaVizSnapshots(
|
|
15296
|
+
$vizId: String!, $liveboardId: String!) {
|
|
15297
|
+
getEurekaVizSnapshot(
|
|
15298
|
+
id: $vizId
|
|
15299
|
+
reportBookId: $liveboardId
|
|
15300
|
+
reportBookType: "PINBOARD_ANSWER_BOOK"
|
|
15301
|
+
version: 9999999
|
|
15302
|
+
) {
|
|
15303
|
+
id
|
|
15304
|
+
vizContent
|
|
15305
|
+
snapshotType
|
|
15306
|
+
createdMs
|
|
15307
|
+
}
|
|
15308
|
+
}
|
|
15309
|
+
`;
|
|
15310
|
+
async function getPreview(thoughtSpotHost, vizId, liveboardId) {
|
|
15311
|
+
return graphqlQuery({
|
|
15312
|
+
query: getPreviewQuery,
|
|
15313
|
+
variables: { vizId, liveboardId },
|
|
15314
|
+
thoughtSpotHost,
|
|
15315
|
+
});
|
|
15316
|
+
}
|
|
15317
|
+
|
|
15318
|
+
const addPreviewStylesIfNotPresent = () => {
|
|
15319
|
+
const styleEl = document.getElementById('ts-preview-style');
|
|
15320
|
+
if (styleEl) {
|
|
15321
|
+
return;
|
|
15322
|
+
}
|
|
15323
|
+
const previewStyles = `
|
|
15324
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css">
|
|
15325
|
+
<style id="ts-preview-style">
|
|
15326
|
+
.ts-viz-preview-loader {
|
|
15327
|
+
position: absolute;
|
|
15328
|
+
top: 0;
|
|
15329
|
+
left: 0;
|
|
15330
|
+
right: 0;
|
|
15331
|
+
bottom: 0;
|
|
15332
|
+
display: flex;
|
|
15333
|
+
justify-content: center;
|
|
15334
|
+
align-items: center;
|
|
15335
|
+
background: linear-gradient(-45deg, #eee 40%, #fafafa 50%, #eee 60%);
|
|
15336
|
+
background-size: 300%;
|
|
15337
|
+
background-position-x: 100%;
|
|
15338
|
+
animation: shimmer 1s infinite linear;
|
|
15339
|
+
z-index: 999;
|
|
15340
|
+
filter: grayscale(0.2);
|
|
15341
|
+
}
|
|
15342
|
+
|
|
15343
|
+
@keyframes shimmer {
|
|
15344
|
+
to {
|
|
15345
|
+
background-position-x: 0%
|
|
15346
|
+
}
|
|
15347
|
+
}
|
|
15348
|
+
|
|
15349
|
+
.ts-viz-preview-loader .table-module__fullContainer {
|
|
15350
|
+
width: 100%;
|
|
15351
|
+
height: 100%;
|
|
15352
|
+
}
|
|
15353
|
+
</style>
|
|
15354
|
+
`;
|
|
15355
|
+
document.head.insertAdjacentHTML('beforeend', previewStyles);
|
|
15356
|
+
};
|
|
15357
|
+
|
|
15278
15358
|
/**
|
|
15279
15359
|
* Copyright (c) 2022
|
|
15280
15360
|
*
|
|
@@ -15417,6 +15497,33 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15417
15497
|
super.trigger(HostEvent.Navigate, path);
|
|
15418
15498
|
}
|
|
15419
15499
|
}
|
|
15500
|
+
async showPreviewLoader() {
|
|
15501
|
+
if (!this.viewConfig.showPreviewLoader || !this.viewConfig.vizId) {
|
|
15502
|
+
return;
|
|
15503
|
+
}
|
|
15504
|
+
try {
|
|
15505
|
+
const preview = await getPreview(this.thoughtSpotHost, this.viewConfig.vizId, this.viewConfig.liveboardId);
|
|
15506
|
+
if (!preview.vizContent) {
|
|
15507
|
+
return;
|
|
15508
|
+
}
|
|
15509
|
+
addPreviewStylesIfNotPresent();
|
|
15510
|
+
const div = document.createElement('div');
|
|
15511
|
+
div.innerHTML = `
|
|
15512
|
+
<div class=ts-viz-preview-loader>
|
|
15513
|
+
${preview.vizContent}
|
|
15514
|
+
</div>
|
|
15515
|
+
`;
|
|
15516
|
+
const previewDiv = div.firstElementChild;
|
|
15517
|
+
this.el.appendChild(previewDiv);
|
|
15518
|
+
this.el.style.position = 'relative';
|
|
15519
|
+
this.on(EmbedEvent.Data, () => {
|
|
15520
|
+
previewDiv.remove();
|
|
15521
|
+
});
|
|
15522
|
+
}
|
|
15523
|
+
catch (error) {
|
|
15524
|
+
console.error('Error fetching preview', error);
|
|
15525
|
+
}
|
|
15526
|
+
}
|
|
15420
15527
|
beforePrerenderVisible() {
|
|
15421
15528
|
var _a;
|
|
15422
15529
|
const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
|
|
@@ -15461,6 +15568,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
15461
15568
|
super.render();
|
|
15462
15569
|
const src = this.getIFrameSrc();
|
|
15463
15570
|
await this.renderV1Embed(src);
|
|
15571
|
+
this.showPreviewLoader();
|
|
15464
15572
|
return this;
|
|
15465
15573
|
}
|
|
15466
15574
|
navigateToLiveboard(liveboardId, vizId, activeTabId) {
|
|
@@ -15545,7 +15653,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
15545
15653
|
var _a;
|
|
15546
15654
|
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15547
15655
|
/* eslint-disable-next-line max-len */
|
|
15548
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15656
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15549
15657
|
const queryParams = this.getBaseQueryParams();
|
|
15550
15658
|
queryParams[Param.HideActions] = [
|
|
15551
15659
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -15579,6 +15687,9 @@ class SearchEmbed extends TsEmbed {
|
|
|
15579
15687
|
/* eslint-disable-next-line max-len */
|
|
15580
15688
|
queryParams[Param.IsOnBeforeGetVizDataInterceptEnabled] = isOnBeforeGetVizDataInterceptEnabled;
|
|
15581
15689
|
}
|
|
15690
|
+
if (!focusSearchBarOnRender) {
|
|
15691
|
+
queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
|
|
15692
|
+
}
|
|
15582
15693
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15583
15694
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
15584
15695
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
package/dist/tsembed.js
CHANGED
|
@@ -642,11 +642,6 @@
|
|
|
642
642
|
* @important
|
|
643
643
|
*/
|
|
644
644
|
EmbedEvent["Data"] = "data";
|
|
645
|
-
/**
|
|
646
|
-
* Search/Answer/Liveboard filters have been applied/updated by the user.
|
|
647
|
-
* @hidden
|
|
648
|
-
*/
|
|
649
|
-
EmbedEvent["FiltersChanged"] = "filtersChanged";
|
|
650
645
|
/**
|
|
651
646
|
* Search query has been updated by the user.
|
|
652
647
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
@@ -2421,6 +2416,7 @@
|
|
|
2421
2416
|
Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
|
|
2422
2417
|
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2423
2418
|
Param["IsOnBeforeGetVizDataInterceptEnabled"] = "isOnBeforeGetVizDataInterceptEnabled";
|
|
2419
|
+
Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
|
|
2424
2420
|
})(Param || (Param = {}));
|
|
2425
2421
|
(function (Action) {
|
|
2426
2422
|
/**
|
|
@@ -3216,7 +3212,7 @@
|
|
|
3216
3212
|
* disabledActions: [Action.ManageMonitor]
|
|
3217
3213
|
* ```
|
|
3218
3214
|
*/
|
|
3219
|
-
Action["ManageMonitor"] = "
|
|
3215
|
+
Action["ManageMonitor"] = "manageMonitor";
|
|
3220
3216
|
/**
|
|
3221
3217
|
* Action ID for Liveboard Personalised Views dropdown
|
|
3222
3218
|
* @example
|
|
@@ -3259,8 +3255,9 @@
|
|
|
3259
3255
|
* ```js
|
|
3260
3256
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3261
3257
|
* disabledActions: [Action.CreateLiveboard]
|
|
3258
|
+
* ```
|
|
3262
3259
|
*
|
|
3263
|
-
* @version SDK: 1.
|
|
3260
|
+
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3264
3261
|
*/
|
|
3265
3262
|
Action["CreateLiveboard"] = "CreateLiveboard";
|
|
3266
3263
|
/**
|
|
@@ -6108,6 +6105,15 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6108
6105
|
}
|
|
6109
6106
|
}
|
|
6110
6107
|
}
|
|
6108
|
+
metadata {
|
|
6109
|
+
author
|
|
6110
|
+
authorId
|
|
6111
|
+
createdAt
|
|
6112
|
+
isDiscoverable
|
|
6113
|
+
isHidden
|
|
6114
|
+
modifiedAt
|
|
6115
|
+
tags
|
|
6116
|
+
}
|
|
6111
6117
|
visualizations {
|
|
6112
6118
|
... on TableViz {
|
|
6113
6119
|
columns {
|
|
@@ -13873,7 +13879,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13873
13879
|
});
|
|
13874
13880
|
}
|
|
13875
13881
|
|
|
13876
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
13882
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-alpha.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
13877
13883
|
|
|
13878
13884
|
/**
|
|
13879
13885
|
* Copyright (c) 2022
|
|
@@ -14130,7 +14136,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14130
14136
|
* @param query
|
|
14131
14137
|
*/
|
|
14132
14138
|
getEmbedBasePath(query) {
|
|
14133
|
-
let queryString = query
|
|
14139
|
+
let queryString = (query.startsWith('?')) ? query : `?${query}`;
|
|
14134
14140
|
if (this.shouldEncodeUrlQueryParams) {
|
|
14135
14141
|
queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
|
|
14136
14142
|
}
|
|
@@ -14577,7 +14583,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14577
14583
|
isRegisteredBySDK,
|
|
14578
14584
|
});
|
|
14579
14585
|
if (this.isRendered) {
|
|
14580
|
-
|
|
14586
|
+
logger.warn('Please register event handlers before calling render');
|
|
14581
14587
|
}
|
|
14582
14588
|
const callbacks = this.eventHandlerMap.get(messageType) || [];
|
|
14583
14589
|
callbacks.push({ options, callback });
|
|
@@ -14848,6 +14854,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14848
14854
|
class V1Embed extends TsEmbed {
|
|
14849
14855
|
constructor(domSelector, viewConfig) {
|
|
14850
14856
|
super(domSelector, viewConfig);
|
|
14857
|
+
/**
|
|
14858
|
+
* Only for testing purposes.
|
|
14859
|
+
*
|
|
14860
|
+
* @hidden
|
|
14861
|
+
*/
|
|
14862
|
+
// eslint-disable-next-line camelcase
|
|
14863
|
+
this.test__executeCallbacks = this.executeCallbacks;
|
|
14851
14864
|
this.viewConfig = { excludeRuntimeFiltersfromURL: false, ...viewConfig };
|
|
14852
14865
|
}
|
|
14853
14866
|
/**
|
|
@@ -14870,7 +14883,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14870
14883
|
const filterQuery = getFilterQuery(runtimeFilters || []);
|
|
14871
14884
|
queryString = [filterQuery, queryString].filter(Boolean).join('&');
|
|
14872
14885
|
}
|
|
14873
|
-
return this.
|
|
14886
|
+
return (this.viewConfig.enableV2Shell_experimental)
|
|
14887
|
+
? this.getEmbedBasePath(queryString)
|
|
14888
|
+
: this.getV1EmbedBasePath(queryString);
|
|
14874
14889
|
}
|
|
14875
14890
|
/**
|
|
14876
14891
|
* @inheritdoc
|
|
@@ -15146,6 +15161,71 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15146
15161
|
}
|
|
15147
15162
|
}
|
|
15148
15163
|
|
|
15164
|
+
/* eslint-disable quotes */
|
|
15165
|
+
const getPreviewQuery = `
|
|
15166
|
+
query GetEurekaVizSnapshots(
|
|
15167
|
+
$vizId: String!, $liveboardId: String!) {
|
|
15168
|
+
getEurekaVizSnapshot(
|
|
15169
|
+
id: $vizId
|
|
15170
|
+
reportBookId: $liveboardId
|
|
15171
|
+
reportBookType: "PINBOARD_ANSWER_BOOK"
|
|
15172
|
+
version: 9999999
|
|
15173
|
+
) {
|
|
15174
|
+
id
|
|
15175
|
+
vizContent
|
|
15176
|
+
snapshotType
|
|
15177
|
+
createdMs
|
|
15178
|
+
}
|
|
15179
|
+
}
|
|
15180
|
+
`;
|
|
15181
|
+
async function getPreview(thoughtSpotHost, vizId, liveboardId) {
|
|
15182
|
+
return graphqlQuery({
|
|
15183
|
+
query: getPreviewQuery,
|
|
15184
|
+
variables: { vizId, liveboardId },
|
|
15185
|
+
thoughtSpotHost,
|
|
15186
|
+
});
|
|
15187
|
+
}
|
|
15188
|
+
|
|
15189
|
+
const addPreviewStylesIfNotPresent = () => {
|
|
15190
|
+
const styleEl = document.getElementById('ts-preview-style');
|
|
15191
|
+
if (styleEl) {
|
|
15192
|
+
return;
|
|
15193
|
+
}
|
|
15194
|
+
const previewStyles = `
|
|
15195
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css">
|
|
15196
|
+
<style id="ts-preview-style">
|
|
15197
|
+
.ts-viz-preview-loader {
|
|
15198
|
+
position: absolute;
|
|
15199
|
+
top: 0;
|
|
15200
|
+
left: 0;
|
|
15201
|
+
right: 0;
|
|
15202
|
+
bottom: 0;
|
|
15203
|
+
display: flex;
|
|
15204
|
+
justify-content: center;
|
|
15205
|
+
align-items: center;
|
|
15206
|
+
background: linear-gradient(-45deg, #eee 40%, #fafafa 50%, #eee 60%);
|
|
15207
|
+
background-size: 300%;
|
|
15208
|
+
background-position-x: 100%;
|
|
15209
|
+
animation: shimmer 1s infinite linear;
|
|
15210
|
+
z-index: 999;
|
|
15211
|
+
filter: grayscale(0.2);
|
|
15212
|
+
}
|
|
15213
|
+
|
|
15214
|
+
@keyframes shimmer {
|
|
15215
|
+
to {
|
|
15216
|
+
background-position-x: 0%
|
|
15217
|
+
}
|
|
15218
|
+
}
|
|
15219
|
+
|
|
15220
|
+
.ts-viz-preview-loader .table-module__fullContainer {
|
|
15221
|
+
width: 100%;
|
|
15222
|
+
height: 100%;
|
|
15223
|
+
}
|
|
15224
|
+
</style>
|
|
15225
|
+
`;
|
|
15226
|
+
document.head.insertAdjacentHTML('beforeend', previewStyles);
|
|
15227
|
+
};
|
|
15228
|
+
|
|
15149
15229
|
/**
|
|
15150
15230
|
* Copyright (c) 2022
|
|
15151
15231
|
*
|
|
@@ -15288,6 +15368,33 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15288
15368
|
super.trigger(exports.HostEvent.Navigate, path);
|
|
15289
15369
|
}
|
|
15290
15370
|
}
|
|
15371
|
+
async showPreviewLoader() {
|
|
15372
|
+
if (!this.viewConfig.showPreviewLoader || !this.viewConfig.vizId) {
|
|
15373
|
+
return;
|
|
15374
|
+
}
|
|
15375
|
+
try {
|
|
15376
|
+
const preview = await getPreview(this.thoughtSpotHost, this.viewConfig.vizId, this.viewConfig.liveboardId);
|
|
15377
|
+
if (!preview.vizContent) {
|
|
15378
|
+
return;
|
|
15379
|
+
}
|
|
15380
|
+
addPreviewStylesIfNotPresent();
|
|
15381
|
+
const div = document.createElement('div');
|
|
15382
|
+
div.innerHTML = `
|
|
15383
|
+
<div class=ts-viz-preview-loader>
|
|
15384
|
+
${preview.vizContent}
|
|
15385
|
+
</div>
|
|
15386
|
+
`;
|
|
15387
|
+
const previewDiv = div.firstElementChild;
|
|
15388
|
+
this.el.appendChild(previewDiv);
|
|
15389
|
+
this.el.style.position = 'relative';
|
|
15390
|
+
this.on(exports.EmbedEvent.Data, () => {
|
|
15391
|
+
previewDiv.remove();
|
|
15392
|
+
});
|
|
15393
|
+
}
|
|
15394
|
+
catch (error) {
|
|
15395
|
+
console.error('Error fetching preview', error);
|
|
15396
|
+
}
|
|
15397
|
+
}
|
|
15291
15398
|
beforePrerenderVisible() {
|
|
15292
15399
|
var _a;
|
|
15293
15400
|
const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
|
|
@@ -15332,6 +15439,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15332
15439
|
super.render();
|
|
15333
15440
|
const src = this.getIFrameSrc();
|
|
15334
15441
|
await this.renderV1Embed(src);
|
|
15442
|
+
this.showPreviewLoader();
|
|
15335
15443
|
return this;
|
|
15336
15444
|
}
|
|
15337
15445
|
navigateToLiveboard(liveboardId, vizId, activeTabId) {
|
|
@@ -15416,7 +15524,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15416
15524
|
var _a;
|
|
15417
15525
|
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15418
15526
|
/* eslint-disable-next-line max-len */
|
|
15419
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15527
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15420
15528
|
const queryParams = this.getBaseQueryParams();
|
|
15421
15529
|
queryParams[Param.HideActions] = [
|
|
15422
15530
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -15450,6 +15558,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15450
15558
|
/* eslint-disable-next-line max-len */
|
|
15451
15559
|
queryParams[Param.IsOnBeforeGetVizDataInterceptEnabled] = isOnBeforeGetVizDataInterceptEnabled;
|
|
15452
15560
|
}
|
|
15561
|
+
if (!focusSearchBarOnRender) {
|
|
15562
|
+
queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
|
|
15563
|
+
}
|
|
15453
15564
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15454
15565
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
15455
15566
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|