@workday/canvas-kit-react 11.1.18 → 11.1.20
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/collection/lib/useOverflowListModel.tsx +34 -6
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +126 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +8 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +122 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +499 -51
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +4 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +8 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +122 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +123 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.js +20 -11
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +4 -0
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/commonjs/select/lib/hooks/useSelectInput.d.ts +3 -3
- package/dist/commonjs/select/lib/hooks/useSelectInput.d.ts.map +1 -1
- package/dist/commonjs/select/lib/hooks/useSelectInput.js +2 -2
- package/dist/commonjs/tabs/lib/Tabs.d.ts +144 -0
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +8 -0
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts +4 -0
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +148 -0
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts +126 -0
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +8 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +122 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +499 -51
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +4 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +8 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +122 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +123 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.js +20 -11
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts +4 -0
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/es6/select/lib/hooks/useSelectInput.d.ts +3 -3
- package/dist/es6/select/lib/hooks/useSelectInput.d.ts.map +1 -1
- package/dist/es6/select/lib/hooks/useSelectInput.js +2 -2
- package/dist/es6/tabs/lib/Tabs.d.ts +144 -0
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanel.d.ts +8 -0
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanels.d.ts +4 -0
- package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +148 -0
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/package.json +4 -4
- package/select/lib/hooks/useSelectInput.ts +2 -2
|
@@ -6,10 +6,11 @@ import {Item} from './useBaseListModel';
|
|
|
6
6
|
|
|
7
7
|
export function getHiddenIds(
|
|
8
8
|
containerWidth: number,
|
|
9
|
+
containerGap: number,
|
|
9
10
|
overflowTargetWidth: number,
|
|
10
11
|
itemWidthCache: Record<string, number>,
|
|
11
12
|
selectedIds: string[] | 'all',
|
|
12
|
-
items
|
|
13
|
+
items: Item<any>[]
|
|
13
14
|
): string[] {
|
|
14
15
|
/** Allows us to prioritize showing the selected item */
|
|
15
16
|
let selectedKey: undefined | string;
|
|
@@ -18,17 +19,22 @@ export function getHiddenIds(
|
|
|
18
19
|
/** Tally ids that won't fit inside the container. These will be used by components to hide
|
|
19
20
|
* elements that won't fit in the container */
|
|
20
21
|
const hiddenIds: string[] = [];
|
|
22
|
+
/** Track if gap should be calculated since gap doesn't apply to the width of the first item, only
|
|
23
|
+
* consecutive items */
|
|
24
|
+
let shouldAddGap = false;
|
|
25
|
+
|
|
21
26
|
if (selectedIds !== 'all' && selectedIds.length) {
|
|
22
|
-
if (items
|
|
27
|
+
if (items.length) {
|
|
23
28
|
// If selectedIds[0] is not in items, use the first id from items
|
|
24
29
|
selectedKey = items.find(item => item.id === selectedIds[0]) ? selectedIds[0] : items[0].id;
|
|
25
|
-
} else {
|
|
26
|
-
selectedKey = selectedIds[0];
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
if (
|
|
31
|
-
Object.keys(itemWidthCache).reduce(
|
|
34
|
+
Object.keys(itemWidthCache).reduce(
|
|
35
|
+
(sum, key, index) => sum + itemWidthCache[key] + (index > 0 ? containerGap : 0),
|
|
36
|
+
0
|
|
37
|
+
) <= containerWidth
|
|
32
38
|
) {
|
|
33
39
|
// All items fit, return empty array
|
|
34
40
|
return [];
|
|
@@ -39,6 +45,7 @@ export function getHiddenIds(
|
|
|
39
45
|
} else {
|
|
40
46
|
// at least the selected item and overflow target fit. Update our itemWidth with the sum
|
|
41
47
|
itemWidth += itemWidthCache[selectedKey] + overflowTargetWidth;
|
|
48
|
+
shouldAddGap = true;
|
|
42
49
|
}
|
|
43
50
|
} else {
|
|
44
51
|
itemWidth += overflowTargetWidth;
|
|
@@ -46,7 +53,8 @@ export function getHiddenIds(
|
|
|
46
53
|
|
|
47
54
|
for (const key in itemWidthCache) {
|
|
48
55
|
if (key !== selectedKey) {
|
|
49
|
-
itemWidth += itemWidthCache[key];
|
|
56
|
+
itemWidth += itemWidthCache[key] + (shouldAddGap ? containerGap : 0);
|
|
57
|
+
shouldAddGap = true;
|
|
50
58
|
if (itemWidth > containerWidth) {
|
|
51
59
|
hiddenIds.push(key);
|
|
52
60
|
}
|
|
@@ -75,6 +83,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
75
83
|
const [hiddenIds, setHiddenIds] = React.useState(config.initialHiddenIds);
|
|
76
84
|
const [itemWidthCache, setItemWidthCache] = React.useState<Record<string, number>>({});
|
|
77
85
|
const [containerWidth, setContainerWidth] = React.useState(0);
|
|
86
|
+
const [containerGap, setContainerGap] = React.useState(0);
|
|
78
87
|
const containerWidthRef = React.useRef(0);
|
|
79
88
|
const itemWidthCacheRef = React.useRef(itemWidthCache);
|
|
80
89
|
const [overflowTargetWidth, setOverflowTargetWidth] = React.useState(0);
|
|
@@ -96,6 +105,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
96
105
|
hiddenIds: internalHiddenIds,
|
|
97
106
|
itemWidthCache,
|
|
98
107
|
containerWidth,
|
|
108
|
+
containerGap,
|
|
99
109
|
overflowTargetWidth,
|
|
100
110
|
};
|
|
101
111
|
|
|
@@ -105,6 +115,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
105
115
|
const {selectedIds} = model.selection.select(data.id, state);
|
|
106
116
|
const ids = getHiddenIds(
|
|
107
117
|
containerWidthRef.current,
|
|
118
|
+
containerGap,
|
|
108
119
|
overflowTargetWidthRef.current,
|
|
109
120
|
itemWidthCacheRef.current,
|
|
110
121
|
selectedIds,
|
|
@@ -120,6 +131,21 @@ export const useOverflowListModel = createModelHook({
|
|
|
120
131
|
|
|
121
132
|
const ids = getHiddenIds(
|
|
122
133
|
containerWidthRef.current,
|
|
134
|
+
containerGap,
|
|
135
|
+
overflowTargetWidthRef.current,
|
|
136
|
+
itemWidthCacheRef.current,
|
|
137
|
+
state.selectedIds,
|
|
138
|
+
config.items
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
setHiddenIds(ids);
|
|
142
|
+
},
|
|
143
|
+
setContainerGap(data: {size: number}) {
|
|
144
|
+
setContainerGap(data.size);
|
|
145
|
+
|
|
146
|
+
const ids = getHiddenIds(
|
|
147
|
+
containerWidthRef.current,
|
|
148
|
+
data.size,
|
|
123
149
|
overflowTargetWidthRef.current,
|
|
124
150
|
itemWidthCacheRef.current,
|
|
125
151
|
state.selectedIds,
|
|
@@ -142,6 +168,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
142
168
|
|
|
143
169
|
const ids = getHiddenIds(
|
|
144
170
|
containerWidthRef.current,
|
|
171
|
+
containerGap,
|
|
145
172
|
overflowTargetWidthRef.current,
|
|
146
173
|
itemWidthCacheRef.current,
|
|
147
174
|
state.selectedIds,
|
|
@@ -158,6 +185,7 @@ export const useOverflowListModel = createModelHook({
|
|
|
158
185
|
|
|
159
186
|
const ids = getHiddenIds(
|
|
160
187
|
containerWidthRef.current,
|
|
188
|
+
containerGap,
|
|
161
189
|
overflowTargetWidthRef.current,
|
|
162
190
|
itemWidthCacheRef.current,
|
|
163
191
|
state.selectedIds !== 'all'
|
|
@@ -73,6 +73,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
73
73
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
74
74
|
itemWidthCache: Record<string, number>;
|
|
75
75
|
containerWidth: number;
|
|
76
|
+
containerGap: number;
|
|
76
77
|
overflowTargetWidth: number;
|
|
77
78
|
selectedIds: string[] | "all";
|
|
78
79
|
unselectedIds: string[];
|
|
@@ -104,6 +105,39 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
104
105
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
105
106
|
itemWidthCache: Record<string, number>;
|
|
106
107
|
containerWidth: number;
|
|
108
|
+
containerGap: number;
|
|
109
|
+
overflowTargetWidth: number;
|
|
110
|
+
selectedIds: string[] | "all";
|
|
111
|
+
unselectedIds: string[];
|
|
112
|
+
cursorId: string;
|
|
113
|
+
columnCount: number;
|
|
114
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
115
|
+
cursorIndexRef: {
|
|
116
|
+
readonly current: number;
|
|
117
|
+
};
|
|
118
|
+
UNSTABLE_virtual: {
|
|
119
|
+
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
120
|
+
totalSize: number;
|
|
121
|
+
scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
|
|
122
|
+
scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
123
|
+
measure: () => void;
|
|
124
|
+
};
|
|
125
|
+
UNSTABLE_defaultItemHeight: number;
|
|
126
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
127
|
+
id: string;
|
|
128
|
+
indexRef: React.MutableRefObject<number>;
|
|
129
|
+
isVirtualized: boolean;
|
|
130
|
+
items: import("../..").Item<any>[];
|
|
131
|
+
}) => void) | undefined;
|
|
132
|
+
onSetContainerGap?: ((data: {
|
|
133
|
+
size: number;
|
|
134
|
+
}, prevState: {
|
|
135
|
+
hiddenIds: string[];
|
|
136
|
+
nonInteractiveIds: string[];
|
|
137
|
+
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
138
|
+
itemWidthCache: Record<string, number>;
|
|
139
|
+
containerWidth: number;
|
|
140
|
+
containerGap: number;
|
|
107
141
|
overflowTargetWidth: number;
|
|
108
142
|
selectedIds: string[] | "all";
|
|
109
143
|
unselectedIds: string[];
|
|
@@ -135,6 +169,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
135
169
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
136
170
|
itemWidthCache: Record<string, number>;
|
|
137
171
|
containerWidth: number;
|
|
172
|
+
containerGap: number;
|
|
138
173
|
overflowTargetWidth: number;
|
|
139
174
|
selectedIds: string[] | "all";
|
|
140
175
|
unselectedIds: string[];
|
|
@@ -167,6 +202,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
167
202
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
168
203
|
itemWidthCache: Record<string, number>;
|
|
169
204
|
containerWidth: number;
|
|
205
|
+
containerGap: number;
|
|
170
206
|
overflowTargetWidth: number;
|
|
171
207
|
selectedIds: string[] | "all";
|
|
172
208
|
unselectedIds: string[];
|
|
@@ -198,6 +234,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
198
234
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
199
235
|
itemWidthCache: Record<string, number>;
|
|
200
236
|
containerWidth: number;
|
|
237
|
+
containerGap: number;
|
|
201
238
|
overflowTargetWidth: number;
|
|
202
239
|
selectedIds: string[] | "all";
|
|
203
240
|
unselectedIds: string[];
|
|
@@ -229,6 +266,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
229
266
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
230
267
|
itemWidthCache: Record<string, number>;
|
|
231
268
|
containerWidth: number;
|
|
269
|
+
containerGap: number;
|
|
232
270
|
overflowTargetWidth: number;
|
|
233
271
|
selectedIds: string[] | "all";
|
|
234
272
|
unselectedIds: string[];
|
|
@@ -260,6 +298,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
260
298
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
261
299
|
itemWidthCache: Record<string, number>;
|
|
262
300
|
containerWidth: number;
|
|
301
|
+
containerGap: number;
|
|
263
302
|
overflowTargetWidth: number;
|
|
264
303
|
selectedIds: string[] | "all";
|
|
265
304
|
unselectedIds: string[];
|
|
@@ -289,6 +328,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
289
328
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
290
329
|
itemWidthCache: Record<string, number>;
|
|
291
330
|
containerWidth: number;
|
|
331
|
+
containerGap: number;
|
|
292
332
|
overflowTargetWidth: number;
|
|
293
333
|
selectedIds: string[] | "all";
|
|
294
334
|
unselectedIds: string[];
|
|
@@ -318,6 +358,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
318
358
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
319
359
|
itemWidthCache: Record<string, number>;
|
|
320
360
|
containerWidth: number;
|
|
361
|
+
containerGap: number;
|
|
321
362
|
overflowTargetWidth: number;
|
|
322
363
|
selectedIds: string[] | "all";
|
|
323
364
|
unselectedIds: string[];
|
|
@@ -349,6 +390,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
349
390
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
350
391
|
itemWidthCache: Record<string, number>;
|
|
351
392
|
containerWidth: number;
|
|
393
|
+
containerGap: number;
|
|
352
394
|
overflowTargetWidth: number;
|
|
353
395
|
selectedIds: string[] | "all";
|
|
354
396
|
unselectedIds: string[];
|
|
@@ -378,6 +420,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
378
420
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
379
421
|
itemWidthCache: Record<string, number>;
|
|
380
422
|
containerWidth: number;
|
|
423
|
+
containerGap: number;
|
|
381
424
|
overflowTargetWidth: number;
|
|
382
425
|
selectedIds: string[] | "all";
|
|
383
426
|
unselectedIds: string[];
|
|
@@ -407,6 +450,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
407
450
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
408
451
|
itemWidthCache: Record<string, number>;
|
|
409
452
|
containerWidth: number;
|
|
453
|
+
containerGap: number;
|
|
410
454
|
overflowTargetWidth: number;
|
|
411
455
|
selectedIds: string[] | "all";
|
|
412
456
|
unselectedIds: string[];
|
|
@@ -436,6 +480,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
436
480
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
437
481
|
itemWidthCache: Record<string, number>;
|
|
438
482
|
containerWidth: number;
|
|
483
|
+
containerGap: number;
|
|
439
484
|
overflowTargetWidth: number;
|
|
440
485
|
selectedIds: string[] | "all";
|
|
441
486
|
unselectedIds: string[];
|
|
@@ -465,6 +510,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
465
510
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
466
511
|
itemWidthCache: Record<string, number>;
|
|
467
512
|
containerWidth: number;
|
|
513
|
+
containerGap: number;
|
|
468
514
|
overflowTargetWidth: number;
|
|
469
515
|
selectedIds: string[] | "all";
|
|
470
516
|
unselectedIds: string[];
|
|
@@ -494,6 +540,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
494
540
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
495
541
|
itemWidthCache: Record<string, number>;
|
|
496
542
|
containerWidth: number;
|
|
543
|
+
containerGap: number;
|
|
497
544
|
overflowTargetWidth: number;
|
|
498
545
|
selectedIds: string[] | "all";
|
|
499
546
|
unselectedIds: string[];
|
|
@@ -523,6 +570,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
523
570
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
524
571
|
itemWidthCache: Record<string, number>;
|
|
525
572
|
containerWidth: number;
|
|
573
|
+
containerGap: number;
|
|
526
574
|
overflowTargetWidth: number;
|
|
527
575
|
selectedIds: string[] | "all";
|
|
528
576
|
unselectedIds: string[];
|
|
@@ -552,6 +600,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
552
600
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
553
601
|
itemWidthCache: Record<string, number>;
|
|
554
602
|
containerWidth: number;
|
|
603
|
+
containerGap: number;
|
|
555
604
|
overflowTargetWidth: number;
|
|
556
605
|
selectedIds: string[] | "all";
|
|
557
606
|
unselectedIds: string[];
|
|
@@ -581,6 +630,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
581
630
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
582
631
|
itemWidthCache: Record<string, number>;
|
|
583
632
|
containerWidth: number;
|
|
633
|
+
containerGap: number;
|
|
584
634
|
overflowTargetWidth: number;
|
|
585
635
|
selectedIds: string[] | "all";
|
|
586
636
|
unselectedIds: string[];
|
|
@@ -610,6 +660,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
610
660
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
611
661
|
itemWidthCache: Record<string, number>;
|
|
612
662
|
containerWidth: number;
|
|
663
|
+
containerGap: number;
|
|
613
664
|
overflowTargetWidth: number;
|
|
614
665
|
selectedIds: string[] | "all";
|
|
615
666
|
unselectedIds: string[];
|
|
@@ -639,6 +690,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
639
690
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
640
691
|
itemWidthCache: Record<string, number>;
|
|
641
692
|
containerWidth: number;
|
|
693
|
+
containerGap: number;
|
|
642
694
|
overflowTargetWidth: number;
|
|
643
695
|
selectedIds: string[] | "all";
|
|
644
696
|
unselectedIds: string[];
|
|
@@ -671,6 +723,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
671
723
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
672
724
|
itemWidthCache: Record<string, number>;
|
|
673
725
|
containerWidth: number;
|
|
726
|
+
containerGap: number;
|
|
674
727
|
overflowTargetWidth: number;
|
|
675
728
|
selectedIds: string[] | "all";
|
|
676
729
|
unselectedIds: string[];
|
|
@@ -702,6 +755,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
702
755
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
703
756
|
itemWidthCache: Record<string, number>;
|
|
704
757
|
containerWidth: number;
|
|
758
|
+
containerGap: number;
|
|
705
759
|
overflowTargetWidth: number;
|
|
706
760
|
selectedIds: string[] | "all";
|
|
707
761
|
unselectedIds: string[];
|
|
@@ -733,6 +787,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
733
787
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
734
788
|
itemWidthCache: Record<string, number>;
|
|
735
789
|
containerWidth: number;
|
|
790
|
+
containerGap: number;
|
|
736
791
|
overflowTargetWidth: number;
|
|
737
792
|
selectedIds: string[] | "all";
|
|
738
793
|
unselectedIds: string[];
|
|
@@ -765,6 +820,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
765
820
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
766
821
|
itemWidthCache: Record<string, number>;
|
|
767
822
|
containerWidth: number;
|
|
823
|
+
containerGap: number;
|
|
768
824
|
overflowTargetWidth: number;
|
|
769
825
|
selectedIds: string[] | "all";
|
|
770
826
|
unselectedIds: string[];
|
|
@@ -796,6 +852,39 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
796
852
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
797
853
|
itemWidthCache: Record<string, number>;
|
|
798
854
|
containerWidth: number;
|
|
855
|
+
containerGap: number;
|
|
856
|
+
overflowTargetWidth: number;
|
|
857
|
+
selectedIds: string[] | "all";
|
|
858
|
+
unselectedIds: string[];
|
|
859
|
+
cursorId: string;
|
|
860
|
+
columnCount: number;
|
|
861
|
+
pageSizeRef: React.MutableRefObject<number>;
|
|
862
|
+
cursorIndexRef: {
|
|
863
|
+
readonly current: number;
|
|
864
|
+
};
|
|
865
|
+
UNSTABLE_virtual: {
|
|
866
|
+
virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
|
|
867
|
+
totalSize: number;
|
|
868
|
+
scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
|
|
869
|
+
scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
|
|
870
|
+
measure: () => void;
|
|
871
|
+
};
|
|
872
|
+
UNSTABLE_defaultItemHeight: number;
|
|
873
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
874
|
+
id: string;
|
|
875
|
+
indexRef: React.MutableRefObject<number>;
|
|
876
|
+
isVirtualized: boolean;
|
|
877
|
+
items: import("../..").Item<any>[];
|
|
878
|
+
}) => boolean) | undefined;
|
|
879
|
+
shouldSetContainerGap?: ((data: {
|
|
880
|
+
size: number;
|
|
881
|
+
}, state: {
|
|
882
|
+
hiddenIds: string[];
|
|
883
|
+
nonInteractiveIds: string[];
|
|
884
|
+
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
885
|
+
itemWidthCache: Record<string, number>;
|
|
886
|
+
containerWidth: number;
|
|
887
|
+
containerGap: number;
|
|
799
888
|
overflowTargetWidth: number;
|
|
800
889
|
selectedIds: string[] | "all";
|
|
801
890
|
unselectedIds: string[];
|
|
@@ -827,6 +916,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
827
916
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
828
917
|
itemWidthCache: Record<string, number>;
|
|
829
918
|
containerWidth: number;
|
|
919
|
+
containerGap: number;
|
|
830
920
|
overflowTargetWidth: number;
|
|
831
921
|
selectedIds: string[] | "all";
|
|
832
922
|
unselectedIds: string[];
|
|
@@ -859,6 +949,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
859
949
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
860
950
|
itemWidthCache: Record<string, number>;
|
|
861
951
|
containerWidth: number;
|
|
952
|
+
containerGap: number;
|
|
862
953
|
overflowTargetWidth: number;
|
|
863
954
|
selectedIds: string[] | "all";
|
|
864
955
|
unselectedIds: string[];
|
|
@@ -890,6 +981,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
890
981
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
891
982
|
itemWidthCache: Record<string, number>;
|
|
892
983
|
containerWidth: number;
|
|
984
|
+
containerGap: number;
|
|
893
985
|
overflowTargetWidth: number;
|
|
894
986
|
selectedIds: string[] | "all";
|
|
895
987
|
unselectedIds: string[];
|
|
@@ -921,6 +1013,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
921
1013
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
922
1014
|
itemWidthCache: Record<string, number>;
|
|
923
1015
|
containerWidth: number;
|
|
1016
|
+
containerGap: number;
|
|
924
1017
|
overflowTargetWidth: number;
|
|
925
1018
|
selectedIds: string[] | "all";
|
|
926
1019
|
unselectedIds: string[];
|
|
@@ -952,6 +1045,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
952
1045
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
953
1046
|
itemWidthCache: Record<string, number>;
|
|
954
1047
|
containerWidth: number;
|
|
1048
|
+
containerGap: number;
|
|
955
1049
|
overflowTargetWidth: number;
|
|
956
1050
|
selectedIds: string[] | "all";
|
|
957
1051
|
unselectedIds: string[];
|
|
@@ -981,6 +1075,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
981
1075
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
982
1076
|
itemWidthCache: Record<string, number>;
|
|
983
1077
|
containerWidth: number;
|
|
1078
|
+
containerGap: number;
|
|
984
1079
|
overflowTargetWidth: number;
|
|
985
1080
|
selectedIds: string[] | "all";
|
|
986
1081
|
unselectedIds: string[];
|
|
@@ -1010,6 +1105,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1010
1105
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1011
1106
|
itemWidthCache: Record<string, number>;
|
|
1012
1107
|
containerWidth: number;
|
|
1108
|
+
containerGap: number;
|
|
1013
1109
|
overflowTargetWidth: number;
|
|
1014
1110
|
selectedIds: string[] | "all";
|
|
1015
1111
|
unselectedIds: string[];
|
|
@@ -1041,6 +1137,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1041
1137
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1042
1138
|
itemWidthCache: Record<string, number>;
|
|
1043
1139
|
containerWidth: number;
|
|
1140
|
+
containerGap: number;
|
|
1044
1141
|
overflowTargetWidth: number;
|
|
1045
1142
|
selectedIds: string[] | "all";
|
|
1046
1143
|
unselectedIds: string[];
|
|
@@ -1070,6 +1167,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1070
1167
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1071
1168
|
itemWidthCache: Record<string, number>;
|
|
1072
1169
|
containerWidth: number;
|
|
1170
|
+
containerGap: number;
|
|
1073
1171
|
overflowTargetWidth: number;
|
|
1074
1172
|
selectedIds: string[] | "all";
|
|
1075
1173
|
unselectedIds: string[];
|
|
@@ -1099,6 +1197,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1099
1197
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1100
1198
|
itemWidthCache: Record<string, number>;
|
|
1101
1199
|
containerWidth: number;
|
|
1200
|
+
containerGap: number;
|
|
1102
1201
|
overflowTargetWidth: number;
|
|
1103
1202
|
selectedIds: string[] | "all";
|
|
1104
1203
|
unselectedIds: string[];
|
|
@@ -1128,6 +1227,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1128
1227
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1129
1228
|
itemWidthCache: Record<string, number>;
|
|
1130
1229
|
containerWidth: number;
|
|
1230
|
+
containerGap: number;
|
|
1131
1231
|
overflowTargetWidth: number;
|
|
1132
1232
|
selectedIds: string[] | "all";
|
|
1133
1233
|
unselectedIds: string[];
|
|
@@ -1157,6 +1257,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1157
1257
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1158
1258
|
itemWidthCache: Record<string, number>;
|
|
1159
1259
|
containerWidth: number;
|
|
1260
|
+
containerGap: number;
|
|
1160
1261
|
overflowTargetWidth: number;
|
|
1161
1262
|
selectedIds: string[] | "all";
|
|
1162
1263
|
unselectedIds: string[];
|
|
@@ -1186,6 +1287,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1186
1287
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1187
1288
|
itemWidthCache: Record<string, number>;
|
|
1188
1289
|
containerWidth: number;
|
|
1290
|
+
containerGap: number;
|
|
1189
1291
|
overflowTargetWidth: number;
|
|
1190
1292
|
selectedIds: string[] | "all";
|
|
1191
1293
|
unselectedIds: string[];
|
|
@@ -1215,6 +1317,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1215
1317
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1216
1318
|
itemWidthCache: Record<string, number>;
|
|
1217
1319
|
containerWidth: number;
|
|
1320
|
+
containerGap: number;
|
|
1218
1321
|
overflowTargetWidth: number;
|
|
1219
1322
|
selectedIds: string[] | "all";
|
|
1220
1323
|
unselectedIds: string[];
|
|
@@ -1244,6 +1347,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1244
1347
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1245
1348
|
itemWidthCache: Record<string, number>;
|
|
1246
1349
|
containerWidth: number;
|
|
1350
|
+
containerGap: number;
|
|
1247
1351
|
overflowTargetWidth: number;
|
|
1248
1352
|
selectedIds: string[] | "all";
|
|
1249
1353
|
unselectedIds: string[];
|
|
@@ -1273,6 +1377,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1273
1377
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1274
1378
|
itemWidthCache: Record<string, number>;
|
|
1275
1379
|
containerWidth: number;
|
|
1380
|
+
containerGap: number;
|
|
1276
1381
|
overflowTargetWidth: number;
|
|
1277
1382
|
selectedIds: string[] | "all";
|
|
1278
1383
|
unselectedIds: string[];
|
|
@@ -1302,6 +1407,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1302
1407
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1303
1408
|
itemWidthCache: Record<string, number>;
|
|
1304
1409
|
containerWidth: number;
|
|
1410
|
+
containerGap: number;
|
|
1305
1411
|
overflowTargetWidth: number;
|
|
1306
1412
|
selectedIds: string[] | "all";
|
|
1307
1413
|
unselectedIds: string[];
|
|
@@ -1331,6 +1437,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1331
1437
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1332
1438
|
itemWidthCache: Record<string, number>;
|
|
1333
1439
|
containerWidth: number;
|
|
1440
|
+
containerGap: number;
|
|
1334
1441
|
overflowTargetWidth: number;
|
|
1335
1442
|
selectedIds: string[] | "all";
|
|
1336
1443
|
unselectedIds: string[];
|
|
@@ -1363,6 +1470,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1363
1470
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1364
1471
|
itemWidthCache: Record<string, number>;
|
|
1365
1472
|
containerWidth: number;
|
|
1473
|
+
containerGap: number;
|
|
1366
1474
|
overflowTargetWidth: number;
|
|
1367
1475
|
selectedIds: string[] | "all";
|
|
1368
1476
|
unselectedIds: string[];
|
|
@@ -1394,6 +1502,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1394
1502
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1395
1503
|
itemWidthCache: Record<string, number>;
|
|
1396
1504
|
containerWidth: number;
|
|
1505
|
+
containerGap: number;
|
|
1397
1506
|
overflowTargetWidth: number;
|
|
1398
1507
|
selectedIds: string[] | "all";
|
|
1399
1508
|
unselectedIds: string[];
|
|
@@ -1425,6 +1534,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1425
1534
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1426
1535
|
itemWidthCache: Record<string, number>;
|
|
1427
1536
|
containerWidth: number;
|
|
1537
|
+
containerGap: number;
|
|
1428
1538
|
overflowTargetWidth: number;
|
|
1429
1539
|
selectedIds: string[] | "all";
|
|
1430
1540
|
unselectedIds: string[];
|
|
@@ -1455,6 +1565,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1455
1565
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1456
1566
|
itemWidthCache: Record<string, number>;
|
|
1457
1567
|
containerWidth: number;
|
|
1568
|
+
containerGap: number;
|
|
1458
1569
|
overflowTargetWidth: number;
|
|
1459
1570
|
selectedIds: string[] | "all";
|
|
1460
1571
|
unselectedIds: string[];
|
|
@@ -1485,6 +1596,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1485
1596
|
setContainerWidth(data: {
|
|
1486
1597
|
width?: number | undefined;
|
|
1487
1598
|
}): void;
|
|
1599
|
+
setContainerGap(data: {
|
|
1600
|
+
size: number;
|
|
1601
|
+
}): void;
|
|
1488
1602
|
setOverflowTargetWidth(data: {
|
|
1489
1603
|
width: number;
|
|
1490
1604
|
}): void;
|
|
@@ -1626,6 +1740,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1626
1740
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1627
1741
|
itemWidthCache: Record<string, number>;
|
|
1628
1742
|
containerWidth: number;
|
|
1743
|
+
containerGap: number;
|
|
1629
1744
|
overflowTargetWidth: number;
|
|
1630
1745
|
selectedIds: string[] | "all";
|
|
1631
1746
|
unselectedIds: string[];
|
|
@@ -1656,6 +1771,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1656
1771
|
setContainerWidth(data: {
|
|
1657
1772
|
width?: number | undefined;
|
|
1658
1773
|
}): void;
|
|
1774
|
+
setContainerGap(data: {
|
|
1775
|
+
size: number;
|
|
1776
|
+
}): void;
|
|
1659
1777
|
setOverflowTargetWidth(data: {
|
|
1660
1778
|
width: number;
|
|
1661
1779
|
}): void;
|
|
@@ -1791,6 +1909,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1791
1909
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1792
1910
|
itemWidthCache: Record<string, number>;
|
|
1793
1911
|
containerWidth: number;
|
|
1912
|
+
containerGap: number;
|
|
1794
1913
|
overflowTargetWidth: number;
|
|
1795
1914
|
selectedIds: string[] | "all";
|
|
1796
1915
|
unselectedIds: string[];
|
|
@@ -1821,6 +1940,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1821
1940
|
setContainerWidth(data: {
|
|
1822
1941
|
width?: number | undefined;
|
|
1823
1942
|
}): void;
|
|
1943
|
+
setContainerGap(data: {
|
|
1944
|
+
size: number;
|
|
1945
|
+
}): void;
|
|
1824
1946
|
setOverflowTargetWidth(data: {
|
|
1825
1947
|
width: number;
|
|
1826
1948
|
}): void;
|
|
@@ -1946,6 +2068,7 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1946
2068
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
1947
2069
|
itemWidthCache: Record<string, number>;
|
|
1948
2070
|
containerWidth: number;
|
|
2071
|
+
containerGap: number;
|
|
1949
2072
|
overflowTargetWidth: number;
|
|
1950
2073
|
selectedIds: string[] | "all";
|
|
1951
2074
|
unselectedIds: string[];
|
|
@@ -1976,6 +2099,9 @@ export declare const ActionBar: import("@workday/canvas-kit-react/common").Compo
|
|
|
1976
2099
|
setContainerWidth(data: {
|
|
1977
2100
|
width?: number | undefined;
|
|
1978
2101
|
}): void;
|
|
2102
|
+
setContainerGap(data: {
|
|
2103
|
+
size: number;
|
|
2104
|
+
}): void;
|
|
1979
2105
|
setOverflowTargetWidth(data: {
|
|
1980
2106
|
width: number;
|
|
1981
2107
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKL,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const useActionBarItem: import("@workday/canvas-kit-react/common"
|
|
|
20
20
|
hiddenIds: string[];
|
|
21
21
|
itemWidthCache: Record<string, number>;
|
|
22
22
|
containerWidth: number;
|
|
23
|
+
containerGap: number;
|
|
23
24
|
overflowTargetWidth: number;
|
|
24
25
|
selectedIds: string[] | "all";
|
|
25
26
|
unselectedIds: string[];
|
|
@@ -52,6 +53,9 @@ export declare const useActionBarItem: import("@workday/canvas-kit-react/common"
|
|
|
52
53
|
setContainerWidth(data: {
|
|
53
54
|
width?: number | undefined;
|
|
54
55
|
}): void;
|
|
56
|
+
setContainerGap(data: {
|
|
57
|
+
size: number;
|
|
58
|
+
}): void;
|
|
55
59
|
setOverflowTargetWidth(data: {
|
|
56
60
|
width: number;
|
|
57
61
|
}): void;
|
|
@@ -120,6 +124,7 @@ export declare const ActionBarItem: import("@workday/canvas-kit-react/common").E
|
|
|
120
124
|
orientation: import("../../collection/lib/useBaseListModel").Orientation;
|
|
121
125
|
itemWidthCache: Record<string, number>;
|
|
122
126
|
containerWidth: number;
|
|
127
|
+
containerGap: number;
|
|
123
128
|
overflowTargetWidth: number;
|
|
124
129
|
selectedIds: string[] | "all";
|
|
125
130
|
unselectedIds: string[];
|
|
@@ -150,6 +155,9 @@ export declare const ActionBarItem: import("@workday/canvas-kit-react/common").E
|
|
|
150
155
|
setContainerWidth(data: {
|
|
151
156
|
width?: number | undefined;
|
|
152
157
|
}): void;
|
|
158
|
+
setContainerGap(data: {
|
|
159
|
+
size: number;
|
|
160
|
+
}): void;
|
|
153
161
|
setOverflowTargetWidth(data: {
|
|
154
162
|
width: number;
|
|
155
163
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarItem.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"ActionBarItem.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgE,CAAC;AAE9F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAC"}
|