@thoughtspot/visual-embed-sdk 1.50.0 → 1.50.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/cjs/package.json +1 -1
- package/cjs/src/css-variables.d.ts +59 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +31 -2
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +13 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +101 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +26 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +12 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +23 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/events.spec.js +593 -0
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/host-events.spec.js +106 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +10 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +8 -0
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +209 -0
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.d.ts +2 -0
- package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.js +32 -2
- package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.spec.js +178 -0
- package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +6 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.d.ts +34 -0
- package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.spec.js +17 -0
- package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -7
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +146 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +1 -0
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +3 -2
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/util.spec.js +251 -0
- package/cjs/src/react/util.spec.js.map +1 -1
- package/cjs/src/types.d.ts +119 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +97 -0
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +93 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +61 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/dist/{index-B5xoN6Cp.js → index-fCne7kmU.js} +1 -1
- package/dist/src/css-variables.d.ts +59 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +31 -2
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +26 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/utils.d.ts +2 -0
- package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +6 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/spotter-viz-utils.d.ts +34 -0
- package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +119 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +389 -84
- package/dist/tsembed-react.js +388 -83
- package/dist/tsembed.es.js +390 -85
- package/dist/tsembed.js +388 -83
- package/dist/visual-embed-sdk-react-full.d.ts +302 -17
- package/dist/visual-embed-sdk-react.d.ts +302 -17
- package/dist/visual-embed-sdk.d.ts +306 -17
- package/lib/package.json +1 -1
- package/lib/src/css-variables.d.ts +59 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +31 -2
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +13 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +101 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +26 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +11 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +24 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +593 -0
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/host-events.spec.js +107 -1
- package/lib/src/embed/host-events.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +9 -0
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +9 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +209 -0
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.d.ts +2 -0
- package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/utils.js +28 -1
- package/lib/src/embed/hostEventClient/utils.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.spec.js +179 -1
- package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +6 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.d.ts +34 -0
- package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-viz-utils.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.spec.js +17 -0
- package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -7
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +146 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +1 -0
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/util.spec.js +251 -0
- package/lib/src/react/util.spec.js.map +1 -1
- package/lib/src/types.d.ts +119 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +97 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.spec.js +93 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +61 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +306 -17
- package/package.json +1 -1
- package/src/css-variables.ts +73 -0
- package/src/embed/app.spec.ts +140 -0
- package/src/embed/app.ts +38 -2
- package/src/embed/conversation.spec.ts +32 -1
- package/src/embed/conversation.ts +29 -0
- package/src/embed/events.spec.ts +705 -1
- package/src/embed/host-events.spec.ts +124 -0
- package/src/embed/hostEventClient/contracts.ts +41 -14
- package/src/embed/hostEventClient/host-event-client.spec.ts +326 -0
- package/src/embed/hostEventClient/host-event-client.ts +15 -0
- package/src/embed/hostEventClient/utils.spec.ts +204 -0
- package/src/embed/hostEventClient/utils.ts +37 -10
- package/src/embed/liveboard.ts +6 -0
- package/src/embed/spotter-viz-utils.spec.ts +17 -0
- package/src/embed/spotter-viz-utils.ts +34 -0
- package/src/embed/ts-embed.spec.ts +186 -0
- package/src/embed/ts-embed.ts +12 -4
- package/src/errors.ts +1 -0
- package/src/index.ts +2 -1
- package/src/react/util.spec.tsx +255 -0
- package/src/types.ts +119 -0
- package/src/utils/processData.spec.ts +97 -0
- package/src/utils/processTrigger.spec.ts +91 -0
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.50.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.50.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -257,6 +257,13 @@ var HomeLeftNavItem;
|
|
|
257
257
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
258
258
|
*/
|
|
259
259
|
HomeLeftNavItem["Favorites"] = "favorites";
|
|
260
|
+
/**
|
|
261
|
+
* The *Collections* menu option in
|
|
262
|
+
* the *Insights* left navigation panel.
|
|
263
|
+
* Shown when collections are enabled on the cluster.
|
|
264
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
265
|
+
*/
|
|
266
|
+
HomeLeftNavItem["Collections"] = "collections";
|
|
260
267
|
})(HomeLeftNavItem || (HomeLeftNavItem = {}));
|
|
261
268
|
/**
|
|
262
269
|
* A map of the supported runtime filter operations
|
|
@@ -1799,6 +1806,30 @@ var EmbedEvent;
|
|
|
1799
1806
|
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
1800
1807
|
*/
|
|
1801
1808
|
EmbedEvent["SpotterConversationSelected"] = "spotterConversationSelected";
|
|
1809
|
+
/**
|
|
1810
|
+
* Emitted when the Spotter agent finishes streaming/rendering a response.
|
|
1811
|
+
* Includes the conversation and message identifiers so the host app can
|
|
1812
|
+
* fetch the full conversation history via the REST API if needed.
|
|
1813
|
+
*
|
|
1814
|
+
* The payload data has the shape `{ convId: string, messageId: string }`.
|
|
1815
|
+
*
|
|
1816
|
+
* Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
|
|
1817
|
+
* inside the full application).
|
|
1818
|
+
* @example
|
|
1819
|
+
* ```js
|
|
1820
|
+
* spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
1821
|
+
* console.log('Spotter response complete', payload);
|
|
1822
|
+
* })
|
|
1823
|
+
* ```
|
|
1824
|
+
* @example
|
|
1825
|
+
* ```js
|
|
1826
|
+
* appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
1827
|
+
* console.log('Spotter response complete', payload);
|
|
1828
|
+
* })
|
|
1829
|
+
* ```
|
|
1830
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
1831
|
+
*/
|
|
1832
|
+
EmbedEvent["SpotterResponseComplete"] = "spotterResponseComplete";
|
|
1802
1833
|
/**
|
|
1803
1834
|
* @hidden
|
|
1804
1835
|
* Emitted when the auth token is about to get expired and needs to be refreshed.
|
|
@@ -3364,6 +3395,14 @@ var HostEvent;
|
|
|
3364
3395
|
/**
|
|
3365
3396
|
* Get details of filters applied on the Liveboard.
|
|
3366
3397
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
3398
|
+
* Each Liveboard filter may include an `applicability` attribute
|
|
3399
|
+
* indicating the scope of the filter. It contains a `level`
|
|
3400
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3401
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3402
|
+
* level there is no `targetId`, since the filter applies to the
|
|
3403
|
+
* whole Liveboard.
|
|
3404
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3405
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3367
3406
|
* @example
|
|
3368
3407
|
* ```js
|
|
3369
3408
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -3403,6 +3442,16 @@ var HostEvent;
|
|
|
3403
3442
|
*
|
|
3404
3443
|
* `type` - To update filters for date time, specify the date format type.
|
|
3405
3444
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
3445
|
+
*
|
|
3446
|
+
* `applicability` - Optional. Scopes the filter to a specific target,
|
|
3447
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3448
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3449
|
+
*
|
|
3450
|
+
* - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3451
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3452
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3453
|
+
* `level` is `LIVEBOARD`, since the filter applies to the whole
|
|
3454
|
+
* Liveboard.
|
|
3406
3455
|
* @example
|
|
3407
3456
|
* ```js
|
|
3408
3457
|
*
|
|
@@ -3479,6 +3528,21 @@ var HostEvent;
|
|
|
3479
3528
|
* }
|
|
3480
3529
|
* }, ContextType.Liveboard);
|
|
3481
3530
|
* ```
|
|
3531
|
+
* @example
|
|
3532
|
+
* ```js
|
|
3533
|
+
* // Scope the filter to a specific Liveboard tab
|
|
3534
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3535
|
+
* filter: {
|
|
3536
|
+
* column: "item type",
|
|
3537
|
+
* oper: "IN",
|
|
3538
|
+
* values: ["bags", "shirts"],
|
|
3539
|
+
* applicability: {
|
|
3540
|
+
* level: "TAB",
|
|
3541
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3542
|
+
* }
|
|
3543
|
+
* }
|
|
3544
|
+
* });
|
|
3545
|
+
* ```
|
|
3482
3546
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
3483
3547
|
*/
|
|
3484
3548
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
@@ -3630,6 +3694,15 @@ var HostEvent;
|
|
|
3630
3694
|
* - `name`: Name of the parameter.
|
|
3631
3695
|
* - `value`: The value to set for the parameter.
|
|
3632
3696
|
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
3697
|
+
* - `applicability`: Optional. Scopes the parameter to a specific target,
|
|
3698
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3699
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3700
|
+
*
|
|
3701
|
+
* - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3702
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3703
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3704
|
+
* `level` is `LIVEBOARD`, since the parameter applies to the whole
|
|
3705
|
+
* Liveboard.
|
|
3633
3706
|
*
|
|
3634
3707
|
* @example
|
|
3635
3708
|
* ```js
|
|
@@ -3641,6 +3714,18 @@ var HostEvent;
|
|
|
3641
3714
|
* ```
|
|
3642
3715
|
* @example
|
|
3643
3716
|
* ```js
|
|
3717
|
+
* // Scope the parameter to a specific Liveboard tab
|
|
3718
|
+
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
3719
|
+
* name: "Integer Range Param",
|
|
3720
|
+
* value: 10,
|
|
3721
|
+
* applicability: {
|
|
3722
|
+
* level: "TAB",
|
|
3723
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3724
|
+
* }
|
|
3725
|
+
* }])
|
|
3726
|
+
* ```
|
|
3727
|
+
* @example
|
|
3728
|
+
* ```js
|
|
3644
3729
|
* // Update parameters from liveboard context
|
|
3645
3730
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
3646
3731
|
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
@@ -3654,6 +3739,14 @@ var HostEvent;
|
|
|
3654
3739
|
HostEvent["UpdateParameters"] = "UpdateParameters";
|
|
3655
3740
|
/**
|
|
3656
3741
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
3742
|
+
* Each parameter may include an `applicability` attribute
|
|
3743
|
+
* indicating the scope of the parameter. It contains a `level`
|
|
3744
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3745
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3746
|
+
* level there is no `targetId`, since the parameter applies to the
|
|
3747
|
+
* whole Liveboard.
|
|
3748
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3749
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3657
3750
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
3658
3751
|
* ```js
|
|
3659
3752
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -4236,6 +4329,7 @@ var Param;
|
|
|
4236
4329
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
4237
4330
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
4238
4331
|
Param["OverrideOrgId"] = "orgId";
|
|
4332
|
+
Param["OverrideHistoryState"] = "overrideHistoryState";
|
|
4239
4333
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
4240
4334
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
4241
4335
|
Param["DataSourceId"] = "dataSourceId";
|
|
@@ -4256,6 +4350,7 @@ var Param;
|
|
|
4256
4350
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
4257
4351
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
4258
4352
|
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
4353
|
+
Param["DefaultQueryMode"] = "defaultQueryMode";
|
|
4259
4354
|
Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
|
|
4260
4355
|
Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
|
|
4261
4356
|
Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
|
|
@@ -6362,6 +6457,8 @@ var EmbedErrorCodes;
|
|
|
6362
6457
|
EmbedErrorCodes["UPDATEFILTERS_INVALID_PAYLOAD"] = "UPDATEFILTERS_INVALID_PAYLOAD";
|
|
6363
6458
|
/** DrillDown payload is invalid - missing or malformed points */
|
|
6364
6459
|
EmbedErrorCodes["DRILLDOWN_INVALID_PAYLOAD"] = "DRILLDOWN_INVALID_PAYLOAD";
|
|
6460
|
+
/** UpdateParameters payload is invalid - malformed applicability */
|
|
6461
|
+
EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
|
|
6365
6462
|
})(EmbedErrorCodes || (EmbedErrorCodes = {}));
|
|
6366
6463
|
/**
|
|
6367
6464
|
* Context types for specifying the page context when triggering host events.
|
|
@@ -6540,7 +6637,7 @@ var TableContentDensity;
|
|
|
6540
6637
|
TableContentDensity["Compact"] = "COMPACT";
|
|
6541
6638
|
})(TableContentDensity || (TableContentDensity = {}));
|
|
6542
6639
|
|
|
6543
|
-
var version$1="1.50.
|
|
6640
|
+
var version$1="1.50.1";var pkg = {version:version$1};
|
|
6544
6641
|
|
|
6545
6642
|
const { version } = pkg;
|
|
6546
6643
|
|
|
@@ -6716,6 +6813,7 @@ const ERROR_MESSAGE = {
|
|
|
6716
6813
|
INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
|
|
6717
6814
|
UPDATEFILTERS_INVALID_PAYLOAD: 'UpdateFilters requires a valid filter or filters array. Expected: { filter: { column, oper, values } } or { filters: [{ column, oper, values }, ...] }',
|
|
6718
6815
|
DRILLDOWN_INVALID_PAYLOAD: 'DrillDown requires a valid points object. Expected: { points: { clickedPoint?, selectedPoints? }, autoDrillDown?, vizId? }',
|
|
6816
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD: 'UpdateParameters received an invalid applicability. Expected: { level: LIVEBOARD | TAB | GROUP, targetId } where targetId is required for TAB and GROUP levels',
|
|
6719
6817
|
};
|
|
6720
6818
|
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
6721
6819
|
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
@@ -6834,7 +6932,7 @@ const getCssDimension = (value) => {
|
|
|
6834
6932
|
* @returns true if the value is a valid CSS margin value, false otherwise
|
|
6835
6933
|
*/
|
|
6836
6934
|
const isValidCssMargin = (value) => {
|
|
6837
|
-
if (isUndefined(value)) {
|
|
6935
|
+
if (isUndefined$1(value)) {
|
|
6838
6936
|
return false;
|
|
6839
6937
|
}
|
|
6840
6938
|
if (typeof value !== 'string') {
|
|
@@ -7043,7 +7141,7 @@ const removeStyleProperties = (element, styleProperties) => {
|
|
|
7043
7141
|
element.style.removeProperty(styleProperty);
|
|
7044
7142
|
});
|
|
7045
7143
|
};
|
|
7046
|
-
const isUndefined = (value) => value === undefined;
|
|
7144
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
7047
7145
|
// Return if the value is a string, double or boolean.
|
|
7048
7146
|
const getTypeFromValue = (value) => {
|
|
7049
7147
|
if (typeof value === 'string') {
|
|
@@ -7348,7 +7446,7 @@ const setParamIfDefined = (queryParams, param, value, asBoolean = false) => {
|
|
|
7348
7446
|
};
|
|
7349
7447
|
|
|
7350
7448
|
/** Used for built-in method references. */
|
|
7351
|
-
var objectProto$
|
|
7449
|
+
var objectProto$d = Object.prototype;
|
|
7352
7450
|
|
|
7353
7451
|
/**
|
|
7354
7452
|
* Checks if `value` is likely a prototype object.
|
|
@@ -7359,7 +7457,7 @@ var objectProto$c = Object.prototype;
|
|
|
7359
7457
|
*/
|
|
7360
7458
|
function isPrototype(value) {
|
|
7361
7459
|
var Ctor = value && value.constructor,
|
|
7362
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
7460
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$d;
|
|
7363
7461
|
|
|
7364
7462
|
return value === proto;
|
|
7365
7463
|
}
|
|
@@ -7388,10 +7486,10 @@ var nativeKeys = _overArg(Object.keys, Object);
|
|
|
7388
7486
|
var _nativeKeys = nativeKeys;
|
|
7389
7487
|
|
|
7390
7488
|
/** Used for built-in method references. */
|
|
7391
|
-
var objectProto$
|
|
7489
|
+
var objectProto$c = Object.prototype;
|
|
7392
7490
|
|
|
7393
7491
|
/** Used to check objects for own properties. */
|
|
7394
|
-
var hasOwnProperty$
|
|
7492
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
7395
7493
|
|
|
7396
7494
|
/**
|
|
7397
7495
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -7406,7 +7504,7 @@ function baseKeys(object) {
|
|
|
7406
7504
|
}
|
|
7407
7505
|
var result = [];
|
|
7408
7506
|
for (var key in Object(object)) {
|
|
7409
|
-
if (hasOwnProperty$
|
|
7507
|
+
if (hasOwnProperty$b.call(object, key) && key != 'constructor') {
|
|
7410
7508
|
result.push(key);
|
|
7411
7509
|
}
|
|
7412
7510
|
}
|
|
@@ -7442,17 +7540,17 @@ var Symbol$1 = _root.Symbol;
|
|
|
7442
7540
|
var _Symbol = Symbol$1;
|
|
7443
7541
|
|
|
7444
7542
|
/** Used for built-in method references. */
|
|
7445
|
-
var objectProto$
|
|
7543
|
+
var objectProto$b = Object.prototype;
|
|
7446
7544
|
|
|
7447
7545
|
/** Used to check objects for own properties. */
|
|
7448
|
-
var hasOwnProperty$
|
|
7546
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
7449
7547
|
|
|
7450
7548
|
/**
|
|
7451
7549
|
* Used to resolve the
|
|
7452
7550
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7453
7551
|
* of values.
|
|
7454
7552
|
*/
|
|
7455
|
-
var nativeObjectToString$1 = objectProto$
|
|
7553
|
+
var nativeObjectToString$1 = objectProto$b.toString;
|
|
7456
7554
|
|
|
7457
7555
|
/** Built-in value references. */
|
|
7458
7556
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -7465,7 +7563,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
7465
7563
|
* @returns {string} Returns the raw `toStringTag`.
|
|
7466
7564
|
*/
|
|
7467
7565
|
function getRawTag(value) {
|
|
7468
|
-
var isOwn = hasOwnProperty$
|
|
7566
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
7469
7567
|
tag = value[symToStringTag$1];
|
|
7470
7568
|
|
|
7471
7569
|
try {
|
|
@@ -7487,14 +7585,14 @@ function getRawTag(value) {
|
|
|
7487
7585
|
var _getRawTag = getRawTag;
|
|
7488
7586
|
|
|
7489
7587
|
/** Used for built-in method references. */
|
|
7490
|
-
var objectProto$
|
|
7588
|
+
var objectProto$a = Object.prototype;
|
|
7491
7589
|
|
|
7492
7590
|
/**
|
|
7493
7591
|
* Used to resolve the
|
|
7494
7592
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7495
7593
|
* of values.
|
|
7496
7594
|
*/
|
|
7497
|
-
var nativeObjectToString = objectProto$
|
|
7595
|
+
var nativeObjectToString = objectProto$a.toString;
|
|
7498
7596
|
|
|
7499
7597
|
/**
|
|
7500
7598
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -7626,10 +7724,10 @@ function isMasked(func) {
|
|
|
7626
7724
|
var _isMasked = isMasked;
|
|
7627
7725
|
|
|
7628
7726
|
/** Used for built-in method references. */
|
|
7629
|
-
var funcProto$
|
|
7727
|
+
var funcProto$2 = Function.prototype;
|
|
7630
7728
|
|
|
7631
7729
|
/** Used to resolve the decompiled source of functions. */
|
|
7632
|
-
var funcToString$
|
|
7730
|
+
var funcToString$2 = funcProto$2.toString;
|
|
7633
7731
|
|
|
7634
7732
|
/**
|
|
7635
7733
|
* Converts `func` to its source code.
|
|
@@ -7641,7 +7739,7 @@ var funcToString$1 = funcProto$1.toString;
|
|
|
7641
7739
|
function toSource(func) {
|
|
7642
7740
|
if (func != null) {
|
|
7643
7741
|
try {
|
|
7644
|
-
return funcToString$
|
|
7742
|
+
return funcToString$2.call(func);
|
|
7645
7743
|
} catch (e) {}
|
|
7646
7744
|
try {
|
|
7647
7745
|
return (func + '');
|
|
@@ -7662,18 +7760,18 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
7662
7760
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
7663
7761
|
|
|
7664
7762
|
/** Used for built-in method references. */
|
|
7665
|
-
var funcProto = Function.prototype,
|
|
7666
|
-
objectProto$
|
|
7763
|
+
var funcProto$1 = Function.prototype,
|
|
7764
|
+
objectProto$9 = Object.prototype;
|
|
7667
7765
|
|
|
7668
7766
|
/** Used to resolve the decompiled source of functions. */
|
|
7669
|
-
var funcToString = funcProto.toString;
|
|
7767
|
+
var funcToString$1 = funcProto$1.toString;
|
|
7670
7768
|
|
|
7671
7769
|
/** Used to check objects for own properties. */
|
|
7672
|
-
var hasOwnProperty$
|
|
7770
|
+
var hasOwnProperty$9 = objectProto$9.hasOwnProperty;
|
|
7673
7771
|
|
|
7674
7772
|
/** Used to detect if a method is native. */
|
|
7675
7773
|
var reIsNative = RegExp('^' +
|
|
7676
|
-
funcToString.call(hasOwnProperty$
|
|
7774
|
+
funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
7677
7775
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
7678
7776
|
);
|
|
7679
7777
|
|
|
@@ -7751,7 +7849,7 @@ var _WeakMap = WeakMap;
|
|
|
7751
7849
|
|
|
7752
7850
|
/** `Object#toString` result references. */
|
|
7753
7851
|
var mapTag$3 = '[object Map]',
|
|
7754
|
-
objectTag$
|
|
7852
|
+
objectTag$3 = '[object Object]',
|
|
7755
7853
|
promiseTag = '[object Promise]',
|
|
7756
7854
|
setTag$3 = '[object Set]',
|
|
7757
7855
|
weakMapTag$1 = '[object WeakMap]';
|
|
@@ -7782,7 +7880,7 @@ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
|
|
|
7782
7880
|
(_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
|
|
7783
7881
|
getTag = function(value) {
|
|
7784
7882
|
var result = _baseGetTag(value),
|
|
7785
|
-
Ctor = result == objectTag$
|
|
7883
|
+
Ctor = result == objectTag$3 ? value.constructor : undefined,
|
|
7786
7884
|
ctorString = Ctor ? _toSource(Ctor) : '';
|
|
7787
7885
|
|
|
7788
7886
|
if (ctorString) {
|
|
@@ -7847,13 +7945,13 @@ function baseIsArguments(value) {
|
|
|
7847
7945
|
var _baseIsArguments = baseIsArguments;
|
|
7848
7946
|
|
|
7849
7947
|
/** Used for built-in method references. */
|
|
7850
|
-
var objectProto$
|
|
7948
|
+
var objectProto$8 = Object.prototype;
|
|
7851
7949
|
|
|
7852
7950
|
/** Used to check objects for own properties. */
|
|
7853
|
-
var hasOwnProperty$
|
|
7951
|
+
var hasOwnProperty$8 = objectProto$8.hasOwnProperty;
|
|
7854
7952
|
|
|
7855
7953
|
/** Built-in value references. */
|
|
7856
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
7954
|
+
var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
|
|
7857
7955
|
|
|
7858
7956
|
/**
|
|
7859
7957
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -7874,7 +7972,7 @@ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
|
|
|
7874
7972
|
* // => false
|
|
7875
7973
|
*/
|
|
7876
7974
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
7877
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
7975
|
+
return isObjectLike_1(value) && hasOwnProperty$8.call(value, 'callee') &&
|
|
7878
7976
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
7879
7977
|
};
|
|
7880
7978
|
|
|
@@ -8040,10 +8138,10 @@ var argsTag$1 = '[object Arguments]',
|
|
|
8040
8138
|
funcTag = '[object Function]',
|
|
8041
8139
|
mapTag$2 = '[object Map]',
|
|
8042
8140
|
numberTag$1 = '[object Number]',
|
|
8043
|
-
objectTag$
|
|
8141
|
+
objectTag$2 = '[object Object]',
|
|
8044
8142
|
regexpTag$1 = '[object RegExp]',
|
|
8045
8143
|
setTag$2 = '[object Set]',
|
|
8046
|
-
stringTag$
|
|
8144
|
+
stringTag$2 = '[object String]',
|
|
8047
8145
|
weakMapTag = '[object WeakMap]';
|
|
8048
8146
|
|
|
8049
8147
|
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
@@ -8070,8 +8168,8 @@ typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$2] =
|
|
|
8070
8168
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
|
|
8071
8169
|
typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
|
|
8072
8170
|
typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
|
|
8073
|
-
typedArrayTags[objectTag$
|
|
8074
|
-
typedArrayTags[setTag$2] = typedArrayTags[stringTag$
|
|
8171
|
+
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
|
|
8172
|
+
typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] =
|
|
8075
8173
|
typedArrayTags[weakMapTag] = false;
|
|
8076
8174
|
|
|
8077
8175
|
/**
|
|
@@ -8163,10 +8261,10 @@ var mapTag$1 = '[object Map]',
|
|
|
8163
8261
|
setTag$1 = '[object Set]';
|
|
8164
8262
|
|
|
8165
8263
|
/** Used for built-in method references. */
|
|
8166
|
-
var objectProto$
|
|
8264
|
+
var objectProto$7 = Object.prototype;
|
|
8167
8265
|
|
|
8168
8266
|
/** Used to check objects for own properties. */
|
|
8169
|
-
var hasOwnProperty$
|
|
8267
|
+
var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
|
|
8170
8268
|
|
|
8171
8269
|
/**
|
|
8172
8270
|
* Checks if `value` is an empty object, collection, map, or set.
|
|
@@ -8218,7 +8316,7 @@ function isEmpty$1(value) {
|
|
|
8218
8316
|
return !_baseKeys(value).length;
|
|
8219
8317
|
}
|
|
8220
8318
|
for (var key in value) {
|
|
8221
|
-
if (hasOwnProperty$
|
|
8319
|
+
if (hasOwnProperty$7.call(value, key)) {
|
|
8222
8320
|
return false;
|
|
8223
8321
|
}
|
|
8224
8322
|
}
|
|
@@ -8227,6 +8325,15 @@ function isEmpty$1(value) {
|
|
|
8227
8325
|
|
|
8228
8326
|
var isEmpty_1 = isEmpty$1;
|
|
8229
8327
|
|
|
8328
|
+
/**
|
|
8329
|
+
* Levels at which a filter or parameter can be applied.
|
|
8330
|
+
*/
|
|
8331
|
+
var ApplicabilityLevel;
|
|
8332
|
+
(function (ApplicabilityLevel) {
|
|
8333
|
+
ApplicabilityLevel["Liveboard"] = "LIVEBOARD";
|
|
8334
|
+
ApplicabilityLevel["Tab"] = "TAB";
|
|
8335
|
+
ApplicabilityLevel["Group"] = "GROUP";
|
|
8336
|
+
})(ApplicabilityLevel || (ApplicabilityLevel = {}));
|
|
8230
8337
|
var UIPassthroughEvent;
|
|
8231
8338
|
(function (UIPassthroughEvent) {
|
|
8232
8339
|
UIPassthroughEvent["PinAnswerToLiveboard"] = "addVizToPinboard";
|
|
@@ -9179,7 +9286,7 @@ class AnswerService {
|
|
|
9179
9286
|
async getTML() {
|
|
9180
9287
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9181
9288
|
const edoc = object[0].edoc;
|
|
9182
|
-
const YAML = await import('./index-
|
|
9289
|
+
const YAML = await import('./index-fCne7kmU.js');
|
|
9183
9290
|
const parsedDoc = YAML.parse(edoc);
|
|
9184
9291
|
return {
|
|
9185
9292
|
answer: {
|
|
@@ -9464,10 +9571,10 @@ var _hashDelete = hashDelete;
|
|
|
9464
9571
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
9465
9572
|
|
|
9466
9573
|
/** Used for built-in method references. */
|
|
9467
|
-
var objectProto$
|
|
9574
|
+
var objectProto$6 = Object.prototype;
|
|
9468
9575
|
|
|
9469
9576
|
/** Used to check objects for own properties. */
|
|
9470
|
-
var hasOwnProperty$
|
|
9577
|
+
var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
9471
9578
|
|
|
9472
9579
|
/**
|
|
9473
9580
|
* Gets the hash value for `key`.
|
|
@@ -9484,16 +9591,16 @@ function hashGet(key) {
|
|
|
9484
9591
|
var result = data[key];
|
|
9485
9592
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
9486
9593
|
}
|
|
9487
|
-
return hasOwnProperty$
|
|
9594
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
9488
9595
|
}
|
|
9489
9596
|
|
|
9490
9597
|
var _hashGet = hashGet;
|
|
9491
9598
|
|
|
9492
9599
|
/** Used for built-in method references. */
|
|
9493
|
-
var objectProto$
|
|
9600
|
+
var objectProto$5 = Object.prototype;
|
|
9494
9601
|
|
|
9495
9602
|
/** Used to check objects for own properties. */
|
|
9496
|
-
var hasOwnProperty$
|
|
9603
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
9497
9604
|
|
|
9498
9605
|
/**
|
|
9499
9606
|
* Checks if a hash value for `key` exists.
|
|
@@ -9506,7 +9613,7 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
|
9506
9613
|
*/
|
|
9507
9614
|
function hashHas(key) {
|
|
9508
9615
|
var data = this.__data__;
|
|
9509
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
9616
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
9510
9617
|
}
|
|
9511
9618
|
|
|
9512
9619
|
var _hashHas = hashHas;
|
|
@@ -10481,7 +10588,7 @@ var boolTag$1 = '[object Boolean]',
|
|
|
10481
10588
|
numberTag = '[object Number]',
|
|
10482
10589
|
regexpTag = '[object RegExp]',
|
|
10483
10590
|
setTag = '[object Set]',
|
|
10484
|
-
stringTag = '[object String]',
|
|
10591
|
+
stringTag$1 = '[object String]',
|
|
10485
10592
|
symbolTag = '[object Symbol]';
|
|
10486
10593
|
|
|
10487
10594
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
@@ -10536,7 +10643,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
10536
10643
|
return object.name == other.name && object.message == other.message;
|
|
10537
10644
|
|
|
10538
10645
|
case regexpTag:
|
|
10539
|
-
case stringTag:
|
|
10646
|
+
case stringTag$1:
|
|
10540
10647
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
10541
10648
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
10542
10649
|
// for more details.
|
|
@@ -10644,10 +10751,10 @@ function stubArray() {
|
|
|
10644
10751
|
var stubArray_1 = stubArray;
|
|
10645
10752
|
|
|
10646
10753
|
/** Used for built-in method references. */
|
|
10647
|
-
var objectProto$
|
|
10754
|
+
var objectProto$4 = Object.prototype;
|
|
10648
10755
|
|
|
10649
10756
|
/** Built-in value references. */
|
|
10650
|
-
var propertyIsEnumerable = objectProto$
|
|
10757
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
10651
10758
|
|
|
10652
10759
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
10653
10760
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -10719,10 +10826,10 @@ function isIndex(value, length) {
|
|
|
10719
10826
|
var _isIndex = isIndex;
|
|
10720
10827
|
|
|
10721
10828
|
/** Used for built-in method references. */
|
|
10722
|
-
var objectProto$
|
|
10829
|
+
var objectProto$3 = Object.prototype;
|
|
10723
10830
|
|
|
10724
10831
|
/** Used to check objects for own properties. */
|
|
10725
|
-
var hasOwnProperty$
|
|
10832
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
10726
10833
|
|
|
10727
10834
|
/**
|
|
10728
10835
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -10742,7 +10849,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
10742
10849
|
length = result.length;
|
|
10743
10850
|
|
|
10744
10851
|
for (var key in value) {
|
|
10745
|
-
if ((inherited || hasOwnProperty$
|
|
10852
|
+
if ((inherited || hasOwnProperty$4.call(value, key)) &&
|
|
10746
10853
|
!(skipIndexes && (
|
|
10747
10854
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
10748
10855
|
key == 'length' ||
|
|
@@ -10812,10 +10919,10 @@ var _getAllKeys = getAllKeys;
|
|
|
10812
10919
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
10813
10920
|
|
|
10814
10921
|
/** Used for built-in method references. */
|
|
10815
|
-
var objectProto$
|
|
10922
|
+
var objectProto$2 = Object.prototype;
|
|
10816
10923
|
|
|
10817
10924
|
/** Used to check objects for own properties. */
|
|
10818
|
-
var hasOwnProperty$
|
|
10925
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
10819
10926
|
|
|
10820
10927
|
/**
|
|
10821
10928
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -10843,7 +10950,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
10843
10950
|
var index = objLength;
|
|
10844
10951
|
while (index--) {
|
|
10845
10952
|
var key = objProps[index];
|
|
10846
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
10953
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
10847
10954
|
return false;
|
|
10848
10955
|
}
|
|
10849
10956
|
}
|
|
@@ -10903,13 +11010,13 @@ var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
|
10903
11010
|
/** `Object#toString` result references. */
|
|
10904
11011
|
var argsTag = '[object Arguments]',
|
|
10905
11012
|
arrayTag = '[object Array]',
|
|
10906
|
-
objectTag = '[object Object]';
|
|
11013
|
+
objectTag$1 = '[object Object]';
|
|
10907
11014
|
|
|
10908
11015
|
/** Used for built-in method references. */
|
|
10909
|
-
var objectProto = Object.prototype;
|
|
11016
|
+
var objectProto$1 = Object.prototype;
|
|
10910
11017
|
|
|
10911
11018
|
/** Used to check objects for own properties. */
|
|
10912
|
-
var hasOwnProperty$
|
|
11019
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
10913
11020
|
|
|
10914
11021
|
/**
|
|
10915
11022
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -10931,11 +11038,11 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
10931
11038
|
objTag = objIsArr ? arrayTag : _getTag(object),
|
|
10932
11039
|
othTag = othIsArr ? arrayTag : _getTag(other);
|
|
10933
11040
|
|
|
10934
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
10935
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
11041
|
+
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
11042
|
+
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
10936
11043
|
|
|
10937
|
-
var objIsObj = objTag == objectTag,
|
|
10938
|
-
othIsObj = othTag == objectTag,
|
|
11044
|
+
var objIsObj = objTag == objectTag$1,
|
|
11045
|
+
othIsObj = othTag == objectTag$1,
|
|
10939
11046
|
isSameTag = objTag == othTag;
|
|
10940
11047
|
|
|
10941
11048
|
if (isSameTag && isBuffer_1(object)) {
|
|
@@ -10952,8 +11059,8 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
10952
11059
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
10953
11060
|
}
|
|
10954
11061
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
10955
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
10956
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
11062
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
|
|
11063
|
+
othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
|
|
10957
11064
|
|
|
10958
11065
|
if (objIsWrapped || othIsWrapped) {
|
|
10959
11066
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -12164,7 +12271,7 @@ var FuncProto = Function.prototype;
|
|
|
12164
12271
|
var ObjProto = Object.prototype;
|
|
12165
12272
|
var slice = ArrayProto.slice;
|
|
12166
12273
|
var toString = ObjProto.toString;
|
|
12167
|
-
var hasOwnProperty = ObjProto.hasOwnProperty;
|
|
12274
|
+
var hasOwnProperty$1 = ObjProto.hasOwnProperty;
|
|
12168
12275
|
var windowConsole = window$1.console;
|
|
12169
12276
|
var navigator = window$1.navigator;
|
|
12170
12277
|
var document$1 = window$1.document;
|
|
@@ -12301,7 +12408,7 @@ _.each = function(obj, iterator, context) {
|
|
|
12301
12408
|
}
|
|
12302
12409
|
} else {
|
|
12303
12410
|
for (var key in obj) {
|
|
12304
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12411
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12305
12412
|
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
12306
12413
|
return;
|
|
12307
12414
|
}
|
|
@@ -12337,7 +12444,7 @@ _.isFunction = function(f) {
|
|
|
12337
12444
|
};
|
|
12338
12445
|
|
|
12339
12446
|
_.isArguments = function(obj) {
|
|
12340
|
-
return !!(obj && hasOwnProperty.call(obj, 'callee'));
|
|
12447
|
+
return !!(obj && hasOwnProperty$1.call(obj, 'callee'));
|
|
12341
12448
|
};
|
|
12342
12449
|
|
|
12343
12450
|
_.toArray = function(iterable) {
|
|
@@ -12425,7 +12532,7 @@ _.isObject = function(obj) {
|
|
|
12425
12532
|
_.isEmptyObject = function(obj) {
|
|
12426
12533
|
if (_.isObject(obj)) {
|
|
12427
12534
|
for (var key in obj) {
|
|
12428
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12535
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12429
12536
|
return false;
|
|
12430
12537
|
}
|
|
12431
12538
|
}
|
|
@@ -12617,7 +12724,7 @@ _.JSONEncode = (function() {
|
|
|
12617
12724
|
|
|
12618
12725
|
// Iterate through all of the keys in the object.
|
|
12619
12726
|
for (k in value) {
|
|
12620
|
-
if (hasOwnProperty.call(value, k)) {
|
|
12727
|
+
if (hasOwnProperty$1.call(value, k)) {
|
|
12621
12728
|
v = str(k, value);
|
|
12622
12729
|
if (v) {
|
|
12623
12730
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
@@ -20038,6 +20145,154 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
20038
20145
|
return eventData;
|
|
20039
20146
|
}
|
|
20040
20147
|
|
|
20148
|
+
/**
|
|
20149
|
+
* Checks if `value` is `null` or `undefined`.
|
|
20150
|
+
*
|
|
20151
|
+
* @static
|
|
20152
|
+
* @memberOf _
|
|
20153
|
+
* @since 4.0.0
|
|
20154
|
+
* @category Lang
|
|
20155
|
+
* @param {*} value The value to check.
|
|
20156
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
20157
|
+
* @example
|
|
20158
|
+
*
|
|
20159
|
+
* _.isNil(null);
|
|
20160
|
+
* // => true
|
|
20161
|
+
*
|
|
20162
|
+
* _.isNil(void 0);
|
|
20163
|
+
* // => true
|
|
20164
|
+
*
|
|
20165
|
+
* _.isNil(NaN);
|
|
20166
|
+
* // => false
|
|
20167
|
+
*/
|
|
20168
|
+
function isNil(value) {
|
|
20169
|
+
return value == null;
|
|
20170
|
+
}
|
|
20171
|
+
|
|
20172
|
+
var isNil_1 = isNil;
|
|
20173
|
+
|
|
20174
|
+
/** Built-in value references. */
|
|
20175
|
+
var getPrototype = _overArg(Object.getPrototypeOf, Object);
|
|
20176
|
+
|
|
20177
|
+
var _getPrototype = getPrototype;
|
|
20178
|
+
|
|
20179
|
+
/** `Object#toString` result references. */
|
|
20180
|
+
var objectTag = '[object Object]';
|
|
20181
|
+
|
|
20182
|
+
/** Used for built-in method references. */
|
|
20183
|
+
var funcProto = Function.prototype,
|
|
20184
|
+
objectProto = Object.prototype;
|
|
20185
|
+
|
|
20186
|
+
/** Used to resolve the decompiled source of functions. */
|
|
20187
|
+
var funcToString = funcProto.toString;
|
|
20188
|
+
|
|
20189
|
+
/** Used to check objects for own properties. */
|
|
20190
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
20191
|
+
|
|
20192
|
+
/** Used to infer the `Object` constructor. */
|
|
20193
|
+
var objectCtorString = funcToString.call(Object);
|
|
20194
|
+
|
|
20195
|
+
/**
|
|
20196
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
20197
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
20198
|
+
*
|
|
20199
|
+
* @static
|
|
20200
|
+
* @memberOf _
|
|
20201
|
+
* @since 0.8.0
|
|
20202
|
+
* @category Lang
|
|
20203
|
+
* @param {*} value The value to check.
|
|
20204
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
20205
|
+
* @example
|
|
20206
|
+
*
|
|
20207
|
+
* function Foo() {
|
|
20208
|
+
* this.a = 1;
|
|
20209
|
+
* }
|
|
20210
|
+
*
|
|
20211
|
+
* _.isPlainObject(new Foo);
|
|
20212
|
+
* // => false
|
|
20213
|
+
*
|
|
20214
|
+
* _.isPlainObject([1, 2, 3]);
|
|
20215
|
+
* // => false
|
|
20216
|
+
*
|
|
20217
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
20218
|
+
* // => true
|
|
20219
|
+
*
|
|
20220
|
+
* _.isPlainObject(Object.create(null));
|
|
20221
|
+
* // => true
|
|
20222
|
+
*/
|
|
20223
|
+
function isPlainObject(value) {
|
|
20224
|
+
if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag) {
|
|
20225
|
+
return false;
|
|
20226
|
+
}
|
|
20227
|
+
var proto = _getPrototype(value);
|
|
20228
|
+
if (proto === null) {
|
|
20229
|
+
return true;
|
|
20230
|
+
}
|
|
20231
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
20232
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
20233
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
20234
|
+
}
|
|
20235
|
+
|
|
20236
|
+
var isPlainObject_1 = isPlainObject;
|
|
20237
|
+
|
|
20238
|
+
/** `Object#toString` result references. */
|
|
20239
|
+
var stringTag = '[object String]';
|
|
20240
|
+
|
|
20241
|
+
/**
|
|
20242
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
20243
|
+
*
|
|
20244
|
+
* @static
|
|
20245
|
+
* @since 0.1.0
|
|
20246
|
+
* @memberOf _
|
|
20247
|
+
* @category Lang
|
|
20248
|
+
* @param {*} value The value to check.
|
|
20249
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
20250
|
+
* @example
|
|
20251
|
+
*
|
|
20252
|
+
* _.isString('abc');
|
|
20253
|
+
* // => true
|
|
20254
|
+
*
|
|
20255
|
+
* _.isString(1);
|
|
20256
|
+
* // => false
|
|
20257
|
+
*/
|
|
20258
|
+
function isString(value) {
|
|
20259
|
+
return typeof value == 'string' ||
|
|
20260
|
+
(!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
|
|
20261
|
+
}
|
|
20262
|
+
|
|
20263
|
+
var isString_1 = isString;
|
|
20264
|
+
|
|
20265
|
+
/**
|
|
20266
|
+
* Checks if `value` is `undefined`.
|
|
20267
|
+
*
|
|
20268
|
+
* @static
|
|
20269
|
+
* @since 0.1.0
|
|
20270
|
+
* @memberOf _
|
|
20271
|
+
* @category Lang
|
|
20272
|
+
* @param {*} value The value to check.
|
|
20273
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
20274
|
+
* @example
|
|
20275
|
+
*
|
|
20276
|
+
* _.isUndefined(void 0);
|
|
20277
|
+
* // => true
|
|
20278
|
+
*
|
|
20279
|
+
* _.isUndefined(null);
|
|
20280
|
+
* // => false
|
|
20281
|
+
*/
|
|
20282
|
+
function isUndefined(value) {
|
|
20283
|
+
return value === undefined;
|
|
20284
|
+
}
|
|
20285
|
+
|
|
20286
|
+
var isUndefined_1 = isUndefined;
|
|
20287
|
+
|
|
20288
|
+
const isValidApplicability = (a) => {
|
|
20289
|
+
if (isUndefined_1(a))
|
|
20290
|
+
return true;
|
|
20291
|
+
// targetId is not required at LIVEBOARD level, since the filter applies to the whole Liveboard
|
|
20292
|
+
return isPlainObject_1(a)
|
|
20293
|
+
&& Object.values(ApplicabilityLevel).includes(a.level)
|
|
20294
|
+
&& (a.level === ApplicabilityLevel.Liveboard || (isString_1(a.targetId) && a.targetId.trim().length > 0));
|
|
20295
|
+
};
|
|
20041
20296
|
function isValidUpdateFiltersPayload(payload) {
|
|
20042
20297
|
if (!payload)
|
|
20043
20298
|
return false;
|
|
@@ -20046,12 +20301,23 @@ function isValidUpdateFiltersPayload(payload) {
|
|
|
20046
20301
|
const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
|
|
20047
20302
|
const hasValues = Array.isArray(f.values);
|
|
20048
20303
|
const validType = !f.type || typeof f.type === 'string';
|
|
20049
|
-
return hasColumn && hasOperator && hasValues && validType;
|
|
20304
|
+
return hasColumn && hasOperator && hasValues && validType && isValidApplicability(f.applicability);
|
|
20050
20305
|
};
|
|
20051
20306
|
const hasValidFilter = payload.filter && isValidFilter(payload.filter);
|
|
20052
20307
|
const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
|
|
20053
20308
|
return !!(hasValidFilter || hasValidFilters);
|
|
20054
20309
|
}
|
|
20310
|
+
function isValidUpdateParametersPayload(payload) {
|
|
20311
|
+
// Only validates the applicability of each parameter (null treated as absent); the rest is forwarded as-is for backward compatibility.
|
|
20312
|
+
if (!Array.isArray(payload))
|
|
20313
|
+
return true;
|
|
20314
|
+
return payload.every((p) => {
|
|
20315
|
+
if (!isPlainObject_1(p))
|
|
20316
|
+
return true;
|
|
20317
|
+
const { applicability } = p;
|
|
20318
|
+
return isNil_1(applicability) || isValidApplicability(applicability);
|
|
20319
|
+
});
|
|
20320
|
+
}
|
|
20055
20321
|
function isValidDrillDownPayload(payload) {
|
|
20056
20322
|
if (!payload)
|
|
20057
20323
|
return false;
|
|
@@ -20082,6 +20348,9 @@ function throwUpdateFiltersValidationError() {
|
|
|
20082
20348
|
}
|
|
20083
20349
|
function throwDrillDownValidationError() {
|
|
20084
20350
|
createValidationError(ERROR_MESSAGE.DRILLDOWN_INVALID_PAYLOAD);
|
|
20351
|
+
}
|
|
20352
|
+
function throwUpdateParametersValidationError() {
|
|
20353
|
+
createValidationError(ERROR_MESSAGE.UPDATEPARAMETERS_INVALID_PAYLOAD);
|
|
20085
20354
|
}
|
|
20086
20355
|
|
|
20087
20356
|
/**
|
|
@@ -20113,6 +20382,7 @@ class HostEventClient {
|
|
|
20113
20382
|
[HostEvent.Pin]: (p, c) => this.handlePinEvent(p, c),
|
|
20114
20383
|
[HostEvent.SaveAnswer]: (p, c) => this.handleSaveAnswerEvent(p, c),
|
|
20115
20384
|
[HostEvent.UpdateFilters]: (p, c) => this.handleUpdateFiltersEvent(p, c),
|
|
20385
|
+
[HostEvent.UpdateParameters]: (p, c) => this.handleUpdateParametersEvent(p, c),
|
|
20116
20386
|
[HostEvent.DrillDown]: (p, c) => this.handleDrillDownEvent(p, c),
|
|
20117
20387
|
};
|
|
20118
20388
|
}
|
|
@@ -20237,6 +20507,13 @@ class HostEventClient {
|
|
|
20237
20507
|
}
|
|
20238
20508
|
return this.handleHostEventWithParam(UIPassthroughEvent.UpdateFilters, payload, context);
|
|
20239
20509
|
}
|
|
20510
|
+
handleUpdateParametersEvent(payload, context) {
|
|
20511
|
+
if (!isValidUpdateParametersPayload(payload)) {
|
|
20512
|
+
throwUpdateParametersValidationError();
|
|
20513
|
+
}
|
|
20514
|
+
// UpdateParameters has no UI passthrough contract; dispatch over the legacy channel
|
|
20515
|
+
return this.hostEventFallback(HostEvent.UpdateParameters, payload, context);
|
|
20516
|
+
}
|
|
20240
20517
|
handleDrillDownEvent(payload, context) {
|
|
20241
20518
|
if (!isValidDrillDownPayload(payload)) {
|
|
20242
20519
|
throwDrillDownValidationError();
|
|
@@ -21022,7 +21299,7 @@ class TsEmbed {
|
|
|
21022
21299
|
if (this.embedConfig.currencyFormat) {
|
|
21023
21300
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
21024
21301
|
}
|
|
21025
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
21302
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, overrideHistoryState, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
21026
21303
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
21027
21304
|
const additionalFlags = {
|
|
21028
21305
|
...additionalFlagsFromInit,
|
|
@@ -21110,6 +21387,9 @@ class TsEmbed {
|
|
|
21110
21387
|
if (overrideOrgId !== undefined) {
|
|
21111
21388
|
queryParams[Param.OverrideOrgId] = overrideOrgId;
|
|
21112
21389
|
}
|
|
21390
|
+
if (overrideHistoryState !== undefined) {
|
|
21391
|
+
queryParams[Param.OverrideHistoryState] = overrideHistoryState;
|
|
21392
|
+
}
|
|
21113
21393
|
if (this.isPreAuthCacheEnabled()) {
|
|
21114
21394
|
queryParams[Param.preAuthCache] = true;
|
|
21115
21395
|
}
|
|
@@ -22042,7 +22322,7 @@ class TsEmbed {
|
|
|
22042
22322
|
* wrapper to overlay it.
|
|
22043
22323
|
*/
|
|
22044
22324
|
async showPreRender() {
|
|
22045
|
-
var _a;
|
|
22325
|
+
var _a, _b;
|
|
22046
22326
|
if (this.shouldWaitForRenderPromise)
|
|
22047
22327
|
await this.isReadyForRenderPromise;
|
|
22048
22328
|
if (!this.viewConfig.preRenderId) {
|
|
@@ -22066,10 +22346,14 @@ class TsEmbed {
|
|
|
22066
22346
|
}
|
|
22067
22347
|
}
|
|
22068
22348
|
const placeHolderId = this.getPreRenderIds().placeHolder;
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22349
|
+
// Remove any stale placeholder from a previous cycle. It is located
|
|
22350
|
+
// via a subtree-wide querySelector, so it may be nested deeper than a
|
|
22351
|
+
// direct child (E.g.: with fullHeight the host app can wrap it). Use
|
|
22352
|
+
// Element.remove() — which detaches from whatever the real parent is —
|
|
22353
|
+
// rather than hostElement.removeChild(), which throws NotFoundError
|
|
22354
|
+
// when the match is not a direct child. Mirrors the wrapper/child
|
|
22355
|
+
// cleanup in createPreRenderWrapper()/createPreRenderChild().
|
|
22356
|
+
(_a = this.hostElement.querySelector(`#${placeHolderId}`)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
22073
22357
|
this.hostElement.appendChild(this.insertedDomEl);
|
|
22074
22358
|
this.syncPreRenderStyle();
|
|
22075
22359
|
const customContainer = this.preRenderContainerEl && this.preRenderContainerEl !== document.body
|
|
@@ -22080,7 +22364,7 @@ class TsEmbed {
|
|
|
22080
22364
|
customContainer.addEventListener('scroll', this.containerScrollListener);
|
|
22081
22365
|
}
|
|
22082
22366
|
if (!this.viewConfig.doNotTrackPreRenderSize) {
|
|
22083
|
-
const observeTarget = (
|
|
22367
|
+
const observeTarget = (_b = this.insertedDomEl) !== null && _b !== void 0 ? _b : this.hostElement;
|
|
22084
22368
|
this.resizeObserver = new ResizeObserver((entries) => {
|
|
22085
22369
|
entries.forEach((entry) => {
|
|
22086
22370
|
if (entry.target === observeTarget) {
|
|
@@ -22412,6 +22696,10 @@ var Page;
|
|
|
22412
22696
|
* Monitor Alerts Page
|
|
22413
22697
|
*/
|
|
22414
22698
|
Page["Monitor"] = "monitor";
|
|
22699
|
+
/**
|
|
22700
|
+
* Collections listing page
|
|
22701
|
+
*/
|
|
22702
|
+
Page["Collections"] = "collections";
|
|
22415
22703
|
})(Page || (Page = {}));
|
|
22416
22704
|
/**
|
|
22417
22705
|
* Define the initial state of column custom group accordions
|
|
@@ -22582,7 +22870,7 @@ class AppEmbed extends V1Embed {
|
|
|
22582
22870
|
* embedded Liveboard or visualization.
|
|
22583
22871
|
*/
|
|
22584
22872
|
getEmbedParams() {
|
|
22585
|
-
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
|
|
22873
|
+
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
|
|
22586
22874
|
let params = {};
|
|
22587
22875
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
22588
22876
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -22608,10 +22896,13 @@ class AppEmbed extends V1Embed {
|
|
|
22608
22896
|
}
|
|
22609
22897
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
22610
22898
|
params = this.getBaseQueryParams(params);
|
|
22611
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
22899
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
22612
22900
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
22613
22901
|
}
|
|
22614
|
-
if (!isUndefined(
|
|
22902
|
+
if (!isUndefined$1(defaultQueryMode)) {
|
|
22903
|
+
params[Param.DefaultQueryMode] = defaultQueryMode;
|
|
22904
|
+
}
|
|
22905
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
22615
22906
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
22616
22907
|
}
|
|
22617
22908
|
// Handle spotterChatConfig params
|
|
@@ -22761,7 +23052,7 @@ class AppEmbed extends V1Embed {
|
|
|
22761
23052
|
// The Focused (V4) homepage experience requires the updated
|
|
22762
23053
|
// Spotter chat prompt. Enable it automatically unless the
|
|
22763
23054
|
// developer has explicitly set updatedSpotterChatPrompt.
|
|
22764
|
-
if (isUndefined(updatedSpotterChatPrompt)) {
|
|
23055
|
+
if (isUndefined$1(updatedSpotterChatPrompt)) {
|
|
22765
23056
|
params[Param.UpdatedSpotterChatPrompt] = true;
|
|
22766
23057
|
}
|
|
22767
23058
|
}
|
|
@@ -22802,6 +23093,8 @@ class AppEmbed extends V1Embed {
|
|
|
22802
23093
|
return modularHomeExperience ? 'home/spotiq-analysis' : 'insights/results';
|
|
22803
23094
|
case Page.Monitor:
|
|
22804
23095
|
return modularHomeExperience ? 'home/monitor-alerts' : 'insights/monitor-alerts';
|
|
23096
|
+
case Page.Collections:
|
|
23097
|
+
return 'collections';
|
|
22805
23098
|
case Page.Home:
|
|
22806
23099
|
default:
|
|
22807
23100
|
return 'home';
|
|
@@ -22834,11 +23127,13 @@ class AppEmbed extends V1Embed {
|
|
|
22834
23127
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
22835
23128
|
*/
|
|
22836
23129
|
navigateToPage(path, noReload = false) {
|
|
23130
|
+
var _a;
|
|
22837
23131
|
if (!this.iFrame) {
|
|
22838
23132
|
logger$3.log('Please call render before invoking this method');
|
|
22839
23133
|
return;
|
|
22840
23134
|
}
|
|
22841
|
-
|
|
23135
|
+
const overrideHistoryState = (_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.overrideHistoryState;
|
|
23136
|
+
if (noReload || overrideHistoryState) {
|
|
22842
23137
|
this.trigger(HostEvent.Navigate, path);
|
|
22843
23138
|
}
|
|
22844
23139
|
else {
|
|
@@ -23126,10 +23421,10 @@ class LiveboardEmbed extends V1Embed {
|
|
|
23126
23421
|
if (preventLiveboardFilterRemoval) {
|
|
23127
23422
|
params[Param.preventLiveboardFilterRemoval] = true;
|
|
23128
23423
|
}
|
|
23129
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
23424
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
23130
23425
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
23131
23426
|
}
|
|
23132
|
-
if (!isUndefined(enableStopAnswerGenerationEmbed)) {
|
|
23427
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
23133
23428
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
23134
23429
|
}
|
|
23135
23430
|
if (visibleVizs) {
|
|
@@ -23330,7 +23625,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
23330
23625
|
});
|
|
23331
23626
|
}
|
|
23332
23627
|
async handleRenderForPrerender() {
|
|
23333
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
23628
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
23334
23629
|
return this.prerenderGeneric();
|
|
23335
23630
|
}
|
|
23336
23631
|
return super.handleRenderForPrerender();
|
|
@@ -24249,6 +24544,15 @@ class BodylessConversation extends SpotterAgentEmbed {
|
|
|
24249
24544
|
}
|
|
24250
24545
|
}
|
|
24251
24546
|
|
|
24547
|
+
/**
|
|
24548
|
+
* The query mode Spotter uses when answering a question.
|
|
24549
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
24550
|
+
*/
|
|
24551
|
+
var SpotterQueryMode;
|
|
24552
|
+
(function (SpotterQueryMode) {
|
|
24553
|
+
SpotterQueryMode["FAST_SEARCH"] = "fastSearch";
|
|
24554
|
+
SpotterQueryMode["RESEARCH"] = "research";
|
|
24555
|
+
})(SpotterQueryMode || (SpotterQueryMode = {}));
|
|
24252
24556
|
/**
|
|
24253
24557
|
* Embed ThoughtSpot AI Conversation.
|
|
24254
24558
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
@@ -24292,7 +24596,7 @@ class SpotterEmbed extends TsEmbed {
|
|
|
24292
24596
|
return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
|
|
24293
24597
|
}
|
|
24294
24598
|
getEmbedParamsObject() {
|
|
24295
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24599
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24296
24600
|
if (!worksheetId) {
|
|
24297
24601
|
this.handleError({
|
|
24298
24602
|
errorType: ErrorDetailsTypes.VALIDATION_ERROR,
|
|
@@ -24310,6 +24614,7 @@ class SpotterEmbed extends TsEmbed {
|
|
|
24310
24614
|
setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
|
|
24311
24615
|
setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
|
|
24312
24616
|
setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
|
|
24617
|
+
setParamIfDefined(queryParams, Param.DefaultQueryMode, defaultQueryMode);
|
|
24313
24618
|
setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
|
|
24314
24619
|
// Handle spotterChatConfig params
|
|
24315
24620
|
if (spotterChatConfig) {
|
|
@@ -25049,4 +25354,4 @@ class AutoFrameRenderer extends TsEmbed {
|
|
|
25049
25354
|
}
|
|
25050
25355
|
}
|
|
25051
25356
|
|
|
25052
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BackgroundFormatType, BodylessConversation, ConditionalFormattingComparisonType, ConditionalFormattingOperator, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataLabelFilterOperator, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, LegendPosition, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, TableContentDensity, TableTheme, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };
|
|
25357
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BackgroundFormatType, BodylessConversation, ConditionalFormattingComparisonType, ConditionalFormattingOperator, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataLabelFilterOperator, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, LegendPosition, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, SpotterQueryMode, TableContentDensity, TableTheme, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, startAutoMCPFrameRenderer, tokenizedFetch, uploadMixpanelEvent };
|