@gooddata/sdk-ui-ext 11.68.0-alpha.0 → 11.68.0-alpha.2
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/NOTICE +49 -13
- package/esm/insightPicker/InsightPickerCore.d.ts +1 -1
- package/esm/insightPicker/InsightPickerCore.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerCore.js +8 -6
- package/esm/insightPicker/InsightPickerMenu.d.ts +1 -1
- package/esm/insightPicker/InsightPickerMenu.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerMenu.js +5 -1
- package/esm/insightPicker/types.d.ts +5 -1
- package/esm/insightPicker/types.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.js +2 -0
- package/esm/internal/translations/fr-CA.localization-bundle.js +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +2 -2
- package/esm/internal/translations/ru-RU.localization-bundle.js +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +4 -4
- package/esm/sdk-ui-ext.d.ts +5 -1
- package/package.json +21 -21
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-5
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: e28fc9ee41056ec62021c4000c54031a2d45d175
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -267,7 +267,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
267
267
|
- @swc/helpers (0.5.23) [Apache-2.0]
|
|
268
268
|
- @tanstack/react-virtual (3.14.13) [MIT]
|
|
269
269
|
- @tanstack/virtual-core (3.17.11) [MIT]
|
|
270
|
-
- @ts-morph/common (0.
|
|
270
|
+
- @ts-morph/common (0.29.0) [Apache-2.0, MIT]
|
|
271
271
|
- @types/chai (5.2.3) [MIT]
|
|
272
272
|
- @types/debug (4.1.13) [MIT]
|
|
273
273
|
- @types/deep-eql (4.0.2) [MIT]
|
|
@@ -663,7 +663,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
663
663
|
- minipass (7.1.3) [ISC]
|
|
664
664
|
- minizlib (3.1.0) [MIT]
|
|
665
665
|
- moment (2.31.0) [MIT]
|
|
666
|
-
- moment-timezone (0.5.35) [
|
|
666
|
+
- moment-timezone (0.5.35) [BSD-3-Clause, MIT, public-domain]
|
|
667
667
|
- moo (0.5.3) [BSD-3-Clause]
|
|
668
668
|
- ms (2.1.3) [MIT]
|
|
669
669
|
- murmurhash-js (1.0.0) [MIT]
|
|
@@ -848,7 +848,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
848
848
|
- try (1.0.3) [MIT]
|
|
849
849
|
- ts-invariant (0.10.3) [MIT]
|
|
850
850
|
- ts-invariant (0.7.5) [MIT]
|
|
851
|
-
- ts-morph (
|
|
851
|
+
- ts-morph (28.0.0) [MIT, 0BSD]
|
|
852
852
|
- tslib (2.8.1) [ISC]
|
|
853
853
|
- tss-react (4.9.19) [MIT]
|
|
854
854
|
- type-fest (0.21.3) [Multi-license: CC0-1.0 OR MIT]
|
|
@@ -12266,9 +12266,9 @@ MIT
|
|
|
12266
12266
|
- Copyright (c) 2021 present Tanner Linsley
|
|
12267
12267
|
|
|
12268
12268
|
--------------------------------------------------------------------------------
|
|
12269
|
-
Package Title: @ts-morph/common (0.
|
|
12269
|
+
Package Title: @ts-morph/common (0.29.0)
|
|
12270
12270
|
|
|
12271
|
-
Package Locator: npm+@ts-morph/common$0.
|
|
12271
|
+
Package Locator: npm+@ts-morph/common$0.29.0
|
|
12272
12272
|
|
|
12273
12273
|
Package Depth: Transitive
|
|
12274
12274
|
--------------------------------------------------------------------------------
|
|
@@ -46360,7 +46360,37 @@ Package Depth: Direct
|
|
|
46360
46360
|
--------------------------------------------------------------------------------
|
|
46361
46361
|
|
|
46362
46362
|
* Declared Licenses *
|
|
46363
|
-
|
|
46363
|
+
BSD-3-Clause, MIT
|
|
46364
|
+
|
|
46365
|
+
* BSD-3-Clause *
|
|
46366
|
+
|
|
46367
|
+
* License Header *
|
|
46368
|
+
Copyright (c) <year> <owner> . All rights reserved.
|
|
46369
|
+
|
|
46370
|
+
Redistribution and use in source and binary forms, with or without
|
|
46371
|
+
modification, are permitted provided that the following conditions are met:
|
|
46372
|
+
|
|
46373
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
46374
|
+
this list of conditions and the following disclaimer.
|
|
46375
|
+
|
|
46376
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
46377
|
+
this list of conditions and the following disclaimer in the documentation
|
|
46378
|
+
and/or other materials provided with the distribution.
|
|
46379
|
+
|
|
46380
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
46381
|
+
contributors may be used to endorse or promote products derived from
|
|
46382
|
+
this software without specific prior written permission.
|
|
46383
|
+
|
|
46384
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
46385
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
46386
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
46387
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
46388
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
46389
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
46390
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
46391
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
46392
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
46393
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
46364
46394
|
|
|
46365
46395
|
* MIT *
|
|
46366
46396
|
|
|
@@ -46384,11 +46414,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
46384
46414
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46385
46415
|
SOFTWARE.
|
|
46386
46416
|
|
|
46387
|
-
* unknown *
|
|
46388
|
-
|
|
46389
46417
|
* Other Licenses *
|
|
46390
46418
|
public-domain
|
|
46391
46419
|
|
|
46420
|
+
* License Header *
|
|
46421
|
+
Unless specified below, all files in the tz code and data (including
|
|
46422
|
+
this LICENSE file) are in the public domain.
|
|
46423
|
+
|
|
46424
|
+
If the files date.c, newstrftime.3, and strftime.c are present, they
|
|
46425
|
+
contain material derived from BSD and use the BSD 3-clause license.
|
|
46426
|
+
|
|
46427
|
+
|
|
46392
46428
|
--------------------------------------------------------------------------------
|
|
46393
46429
|
Package Title: moo (0.5.3)
|
|
46394
46430
|
|
|
@@ -56372,9 +56408,9 @@ MIT
|
|
|
56372
56408
|
- Copyright (c) 2019 Apollo GraphQL
|
|
56373
56409
|
|
|
56374
56410
|
--------------------------------------------------------------------------------
|
|
56375
|
-
Package Title: ts-morph (
|
|
56411
|
+
Package Title: ts-morph (28.0.0)
|
|
56376
56412
|
|
|
56377
|
-
Package Locator: npm+ts-morph$
|
|
56413
|
+
Package Locator: npm+ts-morph$28.0.0
|
|
56378
56414
|
|
|
56379
56415
|
Package Depth: Direct
|
|
56380
56416
|
--------------------------------------------------------------------------------
|
|
@@ -69347,4 +69383,4 @@ MIT
|
|
|
69347
69383
|
--------------------------------------------------------------------------------
|
|
69348
69384
|
--------------------------------------------------------------------------------
|
|
69349
69385
|
|
|
69350
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-5
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type IInsightPickerProps } from "./types.js";
|
|
2
|
-
export declare function InsightPickerCore({ backend: backendProp, workspace: workspaceProp, includeTags, excludeTags, author, enabledVisualizationClassesUrls, selectedInsightId, metadataTimeZone, searchQuery, onSearchChange, sortBy, sortDirection, onSortChange, authorFilter, onAuthorFilterChange, isAuthorFilterModified, tagFilter, onTagFilterChange, enableSemanticSearch, maxHeight, width, onSelect, onDescriptionPanelOpen, onItemActivate, menuActions, renderMenu, renderItem: renderItemProp, }: IInsightPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function InsightPickerCore({ backend: backendProp, workspace: workspaceProp, includeTags, excludeTags, author, enabledVisualizationClassesUrls, selectedInsightId, metadataTimeZone, searchQuery, onSearchChange, sortBy, sortDirection, onSortChange, authorFilter, onAuthorFilterChange, isAuthorFilterModified, tagFilter, onTagFilterChange, enableSemanticSearch, includePermissions, maxHeight, width, onSelect, onDescriptionPanelOpen, onItemActivate, menuActions, renderMenu, renderItem: renderItemProp, }: IInsightPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=InsightPickerCore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightPickerCore.d.ts","sourceRoot":"","sources":["../../src/insightPicker/InsightPickerCore.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA+B/E,wBAAgB,iBAAiB,CAAC,EAC9B,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,aAAa,EACxB,WAAW,EACX,WAAW,EACX,MAAM,EACN,+BAAoC,EACpC,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,MAAM,EACN,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,oBAA4B,EAC5B,SAAe,EACf,KAAW,EACX,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EAAE,cAAc,GAC7B,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"InsightPickerCore.d.ts","sourceRoot":"","sources":["../../src/insightPicker/InsightPickerCore.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA+B/E,wBAAgB,iBAAiB,CAAC,EAC9B,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,aAAa,EACxB,WAAW,EACX,WAAW,EACX,MAAM,EACN,+BAAoC,EACpC,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,MAAM,EACN,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,oBAA4B,EAC5B,kBAA0B,EAC1B,SAAe,EACf,KAAW,EACX,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,UAAU,EACV,UAAU,EAAE,cAAc,GAC7B,EAAE,mBAAmB,2CA4SrB"}
|
|
@@ -32,7 +32,7 @@ function useDebouncedSearchQuery(searchQuery, delayMs) {
|
|
|
32
32
|
}
|
|
33
33
|
const ITEM_HEIGHT = 50;
|
|
34
34
|
const SUGGESTIONS_HEADER_HEIGHT = 30;
|
|
35
|
-
export function InsightPickerCore({ backend: backendProp, workspace: workspaceProp, includeTags, excludeTags, author, enabledVisualizationClassesUrls = [], selectedInsightId, metadataTimeZone, searchQuery, onSearchChange, sortBy, sortDirection, onSortChange, authorFilter, onAuthorFilterChange, isAuthorFilterModified, tagFilter, onTagFilterChange, enableSemanticSearch = false, maxHeight = 350, width = 700, onSelect, onDescriptionPanelOpen, onItemActivate, menuActions, renderMenu, renderItem: renderItemProp, }) {
|
|
35
|
+
export function InsightPickerCore({ backend: backendProp, workspace: workspaceProp, includeTags, excludeTags, author, enabledVisualizationClassesUrls = [], selectedInsightId, metadataTimeZone, searchQuery, onSearchChange, sortBy, sortDirection, onSortChange, authorFilter, onAuthorFilterChange, isAuthorFilterModified, tagFilter, onTagFilterChange, enableSemanticSearch = false, includePermissions = false, maxHeight = 350, width = 700, onSelect, onDescriptionPanelOpen, onItemActivate, menuActions, renderMenu, renderItem: renderItemProp, }) {
|
|
36
36
|
const intl = useIntl();
|
|
37
37
|
const backend = useBackendStrict(backendProp);
|
|
38
38
|
const workspace = useWorkspaceStrict(workspaceProp);
|
|
@@ -61,6 +61,7 @@ export function InsightPickerCore({ backend: backendProp, workspace: workspacePr
|
|
|
61
61
|
sortDirection,
|
|
62
62
|
createdByFilter: authorFilter.length > 0 ? authorFilter : undefined,
|
|
63
63
|
includeAuthorInfo: true,
|
|
64
|
+
includePermissions,
|
|
64
65
|
searchTerm: debouncedSearchQuery,
|
|
65
66
|
});
|
|
66
67
|
// Fetch on mount
|
|
@@ -73,7 +74,7 @@ export function InsightPickerCore({ backend: backendProp, workspace: workspacePr
|
|
|
73
74
|
const tagFilterKey = tagFilter.join(",");
|
|
74
75
|
const searchKey = debouncedSearchQuery;
|
|
75
76
|
// Holds the filters the loaded items belong to. The reload effect below advances it.
|
|
76
|
-
const prevKeys = useRef({ sortingKey, authorFilterKey, tagFilterKey, searchKey });
|
|
77
|
+
const prevKeys = useRef({ sortingKey, authorFilterKey, tagFilterKey, searchKey, includePermissions });
|
|
77
78
|
// The picker opens filtered to the current user. A user who authored nothing would face an
|
|
78
79
|
// empty picker, so drop that default and let the reload below fetch every author. The filter
|
|
79
80
|
// state must change, not just one query: every page is fetched from this state.
|
|
@@ -108,17 +109,18 @@ export function InsightPickerCore({ backend: backendProp, workspace: workspacePr
|
|
|
108
109
|
tagFilterKey,
|
|
109
110
|
searchKey,
|
|
110
111
|
]);
|
|
111
|
-
// Reload when sorting, filters
|
|
112
|
+
// Reload when sorting, filters, the search term or the permissions request change (after initial load)
|
|
112
113
|
useEffect(() => {
|
|
113
114
|
const prev = prevKeys.current;
|
|
114
115
|
if (sortingKey !== prev.sortingKey ||
|
|
115
116
|
authorFilterKey !== prev.authorFilterKey ||
|
|
116
117
|
tagFilterKey !== prev.tagFilterKey ||
|
|
117
|
-
searchKey !== prev.searchKey
|
|
118
|
-
|
|
118
|
+
searchKey !== prev.searchKey ||
|
|
119
|
+
includePermissions !== prev.includePermissions) {
|
|
120
|
+
prevKeys.current = { sortingKey, authorFilterKey, tagFilterKey, searchKey, includePermissions };
|
|
119
121
|
resetItems();
|
|
120
122
|
}
|
|
121
|
-
}, [sortingKey, authorFilterKey, tagFilterKey, searchKey, resetItems]);
|
|
123
|
+
}, [sortingKey, authorFilterKey, tagFilterKey, searchKey, includePermissions, resetItems]);
|
|
122
124
|
// --- Insight lookup ---
|
|
123
125
|
const insightsByIdentifier = useMemo(() => new Map(insights.map((insight) => [insightId(insight), insight])), [insights]);
|
|
124
126
|
// --- Hybrid search ---
|
|
@@ -5,6 +5,6 @@ interface IInsightPickerMenuComponentProps {
|
|
|
5
5
|
menuActions?: IInsightPickerMenuAction[];
|
|
6
6
|
renderMenu?: (props: IInsightPickerMenuProps) => ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function InsightPickerMenu({ item, menuActions, renderMenu }: IInsightPickerMenuComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function InsightPickerMenu({ item, menuActions, renderMenu }: IInsightPickerMenuComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=InsightPickerMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightPickerMenu.d.ts","sourceRoot":"","sources":["../../src/insightPicker/InsightPickerMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOjD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC/B,MAAM,YAAY,CAAC;AAEpB,UAAU,gCAAgC;IACtC,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,SAAS,CAAC;CAC9D;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,gCAAgC,
|
|
1
|
+
{"version":3,"file":"InsightPickerMenu.d.ts","sourceRoot":"","sources":["../../src/insightPicker/InsightPickerMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOjD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC/B,MAAM,YAAY,CAAC;AAEpB,UAAU,gCAAgC;IACtC,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,SAAS,CAAC;CAC9D;AAED,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,gCAAgC,kDA0DpG"}
|
|
@@ -6,11 +6,15 @@ import { Dropdown, ItemsWrapper, SingleSelectListItem, UiIconButton } from "@goo
|
|
|
6
6
|
import { messages } from "./messages.js";
|
|
7
7
|
export function InsightPickerMenu({ item, menuActions, renderMenu }) {
|
|
8
8
|
const intl = useIntl();
|
|
9
|
+
const actions = menuActions?.filter((action) => action.isAvailable?.(item) ?? true) ?? [];
|
|
10
|
+
if (!renderMenu && actions.length === 0) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
9
13
|
return (_jsx(Dropdown, { alignPoints: [{ align: "br tr" }, { align: "tr br" }], renderButton: ({ toggleDropdown, isOpen }) => (_jsx(UiIconButton, { icon: "ellipsis", label: intl.formatMessage(messages.menuActions), size: "xlarge", variant: "table", isActive: isOpen, dataId: "menu-button", onClick: toggleDropdown })), renderBody: ({ closeDropdown }) => {
|
|
10
14
|
if (renderMenu) {
|
|
11
15
|
return renderMenu({ item, closeMenu: closeDropdown });
|
|
12
16
|
}
|
|
13
|
-
return (_jsx(ItemsWrapper, { smallItemsSpacing: true, children:
|
|
17
|
+
return (_jsx(ItemsWrapper, { smallItemsSpacing: true, children: actions.map((action, index) => (_jsxs(Fragment, { children: [action.hasSeparator && index > 0 ? (_jsx(SingleSelectListItem, { type: "separator", accessibilityConfig: { role: "separator" } })) : null, _jsx(SingleSelectListItem, { className: action.isDestructive
|
|
14
18
|
? "gd-ui-ext-insight-picker-menu-destructive"
|
|
15
19
|
: undefined, title: action.title, onClick: () => {
|
|
16
20
|
closeDropdown();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { type IInsight, type ObjRef } from "@gooddata/sdk-model";
|
|
3
|
+
import { type AccessGranularPermission, type IInsight, type ObjRef } from "@gooddata/sdk-model";
|
|
4
4
|
import { type ILocale } from "@gooddata/sdk-ui";
|
|
5
5
|
/**
|
|
6
6
|
* Sort field for the insight picker.
|
|
@@ -26,6 +26,8 @@ export interface IInsightPickerItem {
|
|
|
26
26
|
created?: string;
|
|
27
27
|
updated?: string;
|
|
28
28
|
visualizationUrl: string;
|
|
29
|
+
permissions?: AccessGranularPermission[];
|
|
30
|
+
isRelated?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* Menu action for the insight picker's three-dots menu.
|
|
@@ -35,6 +37,7 @@ export interface IInsightPickerMenuAction {
|
|
|
35
37
|
id: string;
|
|
36
38
|
title: string;
|
|
37
39
|
onClick: (item: IInsightPickerItem) => void;
|
|
40
|
+
isAvailable?: (item: IInsightPickerItem) => boolean;
|
|
38
41
|
isDestructive?: boolean;
|
|
39
42
|
hasSeparator?: boolean;
|
|
40
43
|
}
|
|
@@ -87,6 +90,7 @@ export interface IInsightPickerProps {
|
|
|
87
90
|
* `enableCatalogSmartSearchResults` flag this is gated on, so it defaults to off.
|
|
88
91
|
*/
|
|
89
92
|
enableSemanticSearch?: boolean;
|
|
93
|
+
includePermissions?: boolean;
|
|
90
94
|
maxHeight?: number;
|
|
91
95
|
width?: number;
|
|
92
96
|
searchQuery: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/insightPicker/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/insightPicker/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;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MAAM,KAAK,IAAI,CAAC;IACvD,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,aAAa,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IAG9E,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,SAAS,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,YAAY,CAAC;CACvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightPickerHybridSearch.d.ts","sourceRoot":"","sources":["../../src/insightPicker/useInsightPickerHybridSearch.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,QAAQ,EAWhB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"useInsightPickerHybridSearch.d.ts","sourceRoot":"","sources":["../../src/insightPicker/useInsightPickerHybridSearch.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,QAAQ,EAWhB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAuBrD,UAAU,oCAAoC;IAC1C,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EACzC,QAAQ,EACR,WAAW,EACX,cAAc,EACd,oBAA4B,EAC5B,WAAW,EACX,WAAW,GACd,EAAE,oCAAoC;;;;;;gCA+CvB,MAAM;EAoCrB"}
|
|
@@ -9,6 +9,7 @@ const insightItemBuilder = (item, { ref }) => ({
|
|
|
9
9
|
description: item.description,
|
|
10
10
|
identifier: item.id,
|
|
11
11
|
isLocked: false,
|
|
12
|
+
isRelated: true,
|
|
12
13
|
created: item.createdAt,
|
|
13
14
|
updated: item.modifiedAt ?? item.createdAt,
|
|
14
15
|
visualizationUrl: item.visualizationUrl ?? "",
|
|
@@ -29,6 +30,7 @@ export function useInsightPickerHybridSearch({ insights, searchQuery, onSearchCh
|
|
|
29
30
|
created: insightCreated(insight),
|
|
30
31
|
updated: insightUpdated(insight),
|
|
31
32
|
visualizationUrl: insightVisualizationUrl(insight),
|
|
33
|
+
permissions: insight.insight.permissions,
|
|
32
34
|
})), [insights]);
|
|
33
35
|
const matcher = useMemo(() => customMatcher(["title", "description", "identifier"]), []);
|
|
34
36
|
const { searchState, semanticSearchState, search: hybridSearch, onSearchQueryChange: setHybridSearchQuery, } = useHybridSearch({
|
|
@@ -529,7 +529,7 @@ export const fr_CA = {
|
|
|
529
529
|
"automations.message.schedule.bulk.delete.error": "Erreur ! La suppression des courriels programmés a échoué.",
|
|
530
530
|
"automations.message.schedule.bulk.unsubscribe.success": "Succès ! Vous vous êtes désabonné des courriels programmés.",
|
|
531
531
|
"automations.message.schedule.bulk.unsubscribe.error": "Erreur ! Échec de la désinscription des courriels programmés.",
|
|
532
|
-
"automations.message.schedule.pause.success": "Succès : votre courriel programmé a été mis en pause.
|
|
532
|
+
"automations.message.schedule.pause.success": "Succès : votre courriel programmé a été mis en pause.",
|
|
533
533
|
"automations.message.schedule.pause.error": "Erreur ! Échec de la mise en pause de l'e-mail programmé.",
|
|
534
534
|
"automations.message.schedule.bulk.pause.success": "Succès ! Vos courriels programmés ont été mis en pause.",
|
|
535
535
|
"automations.message.schedule.bulk.pause.error": "Erreur ! La mise en pause des e-mails programmés a échoué.",
|
|
@@ -272,7 +272,7 @@ export const it_IT = {
|
|
|
272
272
|
"properties.viewport.area.title": "Riquadro di visualizzazione predefinito",
|
|
273
273
|
"properties.viewport.area.auto_default": "Includi tutti i dati",
|
|
274
274
|
"properties.viewport.area.auto_default.info": "Adatta la mappa per mostrare tutti i dati.",
|
|
275
|
-
"properties.viewport.area.custom": "
|
|
275
|
+
"properties.viewport.area.custom": "Personalizzato",
|
|
276
276
|
"properties.viewport.area.custom.info": "Salva lo zoom e la posizione correnti come viewport predefinita.",
|
|
277
277
|
"properties.viewport.area.continents": "continenti",
|
|
278
278
|
"properties.viewport.area.continent_af": "Africa",
|
|
@@ -455,7 +455,7 @@ export const it_IT = {
|
|
|
455
455
|
"notifications.panel.triggers.title": "per {triggeredCount}/{totalCount} articoli",
|
|
456
456
|
"notifications.panel.triggers.dialog.newValue": "Nuovo valore",
|
|
457
457
|
"notifications.panel.triggers.dialog.truncatedValues": "…e altri {count}",
|
|
458
|
-
"close": "
|
|
458
|
+
"close": "Chiudi",
|
|
459
459
|
"notifications.panel.triggers.dialog.title": "Attivato per",
|
|
460
460
|
"notifications.panel.error.learnMore": "Maggiori informazioni",
|
|
461
461
|
"notifications.panel.error.traceId": "Trace ID",
|
|
@@ -272,7 +272,7 @@ export const ru_RU = {
|
|
|
272
272
|
"properties.viewport.area.title": "Окно просмотра по умолчанию",
|
|
273
273
|
"properties.viewport.area.auto_default": "Включить все данные",
|
|
274
274
|
"properties.viewport.area.auto_default.info": "Подгоняет карту, чтобы показать все данные.",
|
|
275
|
-
"properties.viewport.area.custom": "
|
|
275
|
+
"properties.viewport.area.custom": "Пользовательское",
|
|
276
276
|
"properties.viewport.area.custom.info": "Сохраняет текущий масштаб и положение как область просмотра по умолчанию.",
|
|
277
277
|
"properties.viewport.area.continents": "континенты",
|
|
278
278
|
"properties.viewport.area.continent_af": "Африка",
|
|
@@ -450,7 +450,7 @@ export const tr_TR = {
|
|
|
450
450
|
"notifications.panel.dashboardLinkHint": "Bu dışa aktarma için kullanılan Gösterge tablosunu aç",
|
|
451
451
|
"notifications.panel.dashboardLink": "{dashboardTitle} kaynağı",
|
|
452
452
|
"notifications.panel.downloadFilesHint": "Dışa aktarılmış dosyaları indir",
|
|
453
|
-
"notifications.filters.buttonLabel": "{count, plural, one {# filtre} other {#
|
|
453
|
+
"notifications.filters.buttonLabel": "{count, plural, one {# filtre} other {# filtre}}",
|
|
454
454
|
"notifications.filters.dialog.title": "Filtreler",
|
|
455
455
|
"notifications.panel.triggers.title": "{triggeredCount}/{totalCount} öğeler için",
|
|
456
456
|
"notifications.panel.triggers.dialog.newValue": "Yeni değer",
|
|
@@ -286,7 +286,7 @@ export const zh_Hant = {
|
|
|
286
286
|
"properties.viewport.navigation.tooltip": "這些設定僅在儀表板上或在內嵌內容中檢視視覺化時適用。",
|
|
287
287
|
"properties.viewport.navigation.pan": "平移",
|
|
288
288
|
"properties.viewport.navigation.zoom": "縮放",
|
|
289
|
-
"gs.color-dropdown.custom-color": "
|
|
289
|
+
"gs.color-dropdown.custom-color": "自訂顏色",
|
|
290
290
|
"properties.colors.reset-colors": "重置顏色",
|
|
291
291
|
"properties.colors.reset-color": "重置",
|
|
292
292
|
"properties.colors.reset-colors-and-styles": "重設顏色和樣式",
|
|
@@ -450,8 +450,8 @@ export const zh_Hant = {
|
|
|
450
450
|
"notifications.panel.dashboardLinkHint": "開啟用於此匯出的儀表板",
|
|
451
451
|
"notifications.panel.dashboardLink": "從{dashboardTitle}",
|
|
452
452
|
"notifications.panel.downloadFilesHint": "下載匯出的文件",
|
|
453
|
-
"notifications.filters.buttonLabel": "{count, plural, one {
|
|
454
|
-
"notifications.filters.dialog.title": "
|
|
453
|
+
"notifications.filters.buttonLabel": "{count, plural, one {# 個篩選器} other {# 個篩選器}}",
|
|
454
|
+
"notifications.filters.dialog.title": "篩選器",
|
|
455
455
|
"notifications.panel.triggers.title": "適用於 {triggeredCount}/{totalCount} 個項目",
|
|
456
456
|
"notifications.panel.triggers.dialog.newValue": "新值",
|
|
457
457
|
"notifications.panel.triggers.dialog.truncatedValues": "…和{count} 更多的",
|
|
@@ -614,7 +614,7 @@ export const zh_Hant = {
|
|
|
614
614
|
"insightPicker.sortBy.header": "排序依據",
|
|
615
615
|
"insightPicker.sortBy.lastModified": "上次修改",
|
|
616
616
|
"insightPicker.sortBy.name": "姓名",
|
|
617
|
-
"insightPicker.filters": "
|
|
617
|
+
"insightPicker.filters": "篩選器",
|
|
618
618
|
"insightPicker.filter.createdBy": "由...製作",
|
|
619
619
|
"insightPicker.filter.createdByMe": "我",
|
|
620
620
|
"insightPicker.filter.all": "全部",
|
package/esm/sdk-ui-ext.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import { AccessGranularPermission } from '@gooddata/sdk-model';
|
|
14
14
|
import { AutomationType } from '@gooddata/sdk-backend-spi';
|
|
15
15
|
import { ChartInlineVisualizationType } from '@gooddata/sdk-ui-charts';
|
|
16
16
|
import { ComponentType } from 'react';
|
|
@@ -927,6 +927,8 @@ export declare interface IInsightPickerItem {
|
|
|
927
927
|
created?: string;
|
|
928
928
|
updated?: string;
|
|
929
929
|
visualizationUrl: string;
|
|
930
|
+
permissions?: AccessGranularPermission[];
|
|
931
|
+
isRelated?: boolean;
|
|
930
932
|
}
|
|
931
933
|
|
|
932
934
|
/**
|
|
@@ -937,6 +939,7 @@ export declare interface IInsightPickerMenuAction {
|
|
|
937
939
|
id: string;
|
|
938
940
|
title: string;
|
|
939
941
|
onClick: (item: IInsightPickerItem) => void;
|
|
942
|
+
isAvailable?: (item: IInsightPickerItem) => boolean;
|
|
940
943
|
isDestructive?: boolean;
|
|
941
944
|
hasSeparator?: boolean;
|
|
942
945
|
}
|
|
@@ -980,6 +983,7 @@ export declare interface IInsightPickerProps {
|
|
|
980
983
|
* `enableCatalogSmartSearchResults` flag this is gated on, so it defaults to off.
|
|
981
984
|
*/
|
|
982
985
|
enableSemanticSearch?: boolean;
|
|
986
|
+
includePermissions?: boolean;
|
|
983
987
|
maxHeight?: number;
|
|
984
988
|
width?: number;
|
|
985
989
|
searchQuery: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-ext",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Extensions",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"ts-invariant": "0.10.3",
|
|
64
64
|
"tslib": "2.8.1",
|
|
65
65
|
"uuid": "11.1.1",
|
|
66
|
-
"@gooddata/sdk-backend-
|
|
67
|
-
"@gooddata/sdk-
|
|
68
|
-
"@gooddata/sdk-
|
|
69
|
-
"@gooddata/sdk-model": "11.68.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui
|
|
71
|
-
"@gooddata/sdk-ui": "11.68.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-filters": "11.68.0-alpha.
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-ui-
|
|
75
|
-
"@gooddata/sdk-ui-pivot": "11.68.0-alpha.
|
|
76
|
-
"@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.
|
|
77
|
-
"@gooddata/sdk-ui-
|
|
78
|
-
"@gooddata/
|
|
79
|
-
"@gooddata/
|
|
66
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.2",
|
|
67
|
+
"@gooddata/sdk-backend-base": "11.68.0-alpha.2",
|
|
68
|
+
"@gooddata/sdk-embedding": "11.68.0-alpha.2",
|
|
69
|
+
"@gooddata/sdk-model": "11.68.0-alpha.2",
|
|
70
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.2",
|
|
71
|
+
"@gooddata/sdk-ui-charts": "11.68.0-alpha.2",
|
|
72
|
+
"@gooddata/sdk-ui-filters": "11.68.0-alpha.2",
|
|
73
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.2",
|
|
74
|
+
"@gooddata/sdk-ui-geo": "11.68.0-alpha.2",
|
|
75
|
+
"@gooddata/sdk-ui-pivot": "11.68.0-alpha.2",
|
|
76
|
+
"@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.2",
|
|
77
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.2",
|
|
78
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.2",
|
|
79
|
+
"@gooddata/util": "11.68.0-alpha.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
"svgo": "2.8.4",
|
|
121
121
|
"typescript": "7.0.2",
|
|
122
122
|
"vitest": "5.0.4",
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/
|
|
126
|
-
"@gooddata/
|
|
127
|
-
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.
|
|
128
|
-
"@gooddata/stylelint-config": "11.68.0-alpha.
|
|
123
|
+
"@gooddata/i18n-toolkit": "11.68.0-alpha.2",
|
|
124
|
+
"@gooddata/eslint-config": "11.68.0-alpha.2",
|
|
125
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.2",
|
|
126
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.2",
|
|
127
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.2",
|
|
128
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.2"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"react": "^18.0.0 || ^19.0.0",
|