@workday/canvas-kit-react 11.0.0-alpha.612-next.0 → 11.0.0-alpha.616-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collection/lib/useOverflowListModel.tsx +17 -7
- package/dist/commonjs/button/lib/BaseButton.d.ts +2 -5
- package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/BaseButton.js +17 -17
- package/dist/commonjs/button/lib/DeleteButton.js +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.d.ts +2 -4
- package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/PrimaryButton.js +2 -2
- package/dist/commonjs/button/lib/SecondaryButton.d.ts +2 -4
- package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/SecondaryButton.js +2 -2
- package/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -6
- package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/commonjs/button/lib/TertiaryButton.js +15 -15
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +51 -50
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.js +12 -6
- package/dist/commonjs/select/lib/Select.js +1 -1
- package/dist/commonjs/tabs/lib/Tabs.d.ts +0 -9
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.d.ts +2 -5
- package/dist/es6/button/lib/BaseButton.d.ts.map +1 -1
- package/dist/es6/button/lib/BaseButton.js +17 -17
- package/dist/es6/button/lib/DeleteButton.js +1 -1
- package/dist/es6/button/lib/PrimaryButton.d.ts +2 -4
- package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/PrimaryButton.js +2 -2
- package/dist/es6/button/lib/SecondaryButton.d.ts +2 -4
- package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/SecondaryButton.js +2 -2
- package/dist/es6/button/lib/TertiaryButton.d.ts +2 -6
- package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
- package/dist/es6/button/lib/TertiaryButton.js +15 -15
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +51 -50
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.js +12 -6
- package/dist/es6/select/lib/Select.js +1 -1
- package/dist/es6/tabs/lib/Tabs.d.ts +0 -9
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Item } from './useBaseListModel';
|
|
3
|
+
export declare function getHiddenIds(containerWidth: number, overflowTargetWidth: number, itemWidthCache: Record<string, number>, selectedIds: string[] | 'all', items?: Item<any>[]): string[];
|
|
3
4
|
export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
4
5
|
initialHiddenIds: string[];
|
|
5
6
|
containerWidth: number;
|
|
@@ -53,7 +54,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
53
54
|
indexRef: React.MutableRefObject<number>;
|
|
54
55
|
nonInteractiveIds: string[];
|
|
55
56
|
isVirtualized: boolean;
|
|
56
|
-
items:
|
|
57
|
+
items: Item<any>[];
|
|
57
58
|
}) => void) | undefined;
|
|
58
59
|
onSetContainerWidth?: ((data: {
|
|
59
60
|
width?: number | undefined;
|
|
@@ -84,7 +85,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
84
85
|
indexRef: React.MutableRefObject<number>;
|
|
85
86
|
nonInteractiveIds: string[];
|
|
86
87
|
isVirtualized: boolean;
|
|
87
|
-
items:
|
|
88
|
+
items: Item<any>[];
|
|
88
89
|
}) => void) | undefined;
|
|
89
90
|
onSetOverflowTargetWidth?: ((data: {
|
|
90
91
|
width: number;
|
|
@@ -115,7 +116,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
115
116
|
indexRef: React.MutableRefObject<number>;
|
|
116
117
|
nonInteractiveIds: string[];
|
|
117
118
|
isVirtualized: boolean;
|
|
118
|
-
items:
|
|
119
|
+
items: Item<any>[];
|
|
119
120
|
}) => void) | undefined;
|
|
120
121
|
onAddItemWidth?: ((data: {
|
|
121
122
|
id: string;
|
|
@@ -147,7 +148,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
147
148
|
indexRef: React.MutableRefObject<number>;
|
|
148
149
|
nonInteractiveIds: string[];
|
|
149
150
|
isVirtualized: boolean;
|
|
150
|
-
items:
|
|
151
|
+
items: Item<any>[];
|
|
151
152
|
}) => void) | undefined;
|
|
152
153
|
onRemoveItemWidth?: ((data: {
|
|
153
154
|
id: string;
|
|
@@ -178,7 +179,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
178
179
|
indexRef: React.MutableRefObject<number>;
|
|
179
180
|
nonInteractiveIds: string[];
|
|
180
181
|
isVirtualized: boolean;
|
|
181
|
-
items:
|
|
182
|
+
items: Item<any>[];
|
|
182
183
|
}) => void) | undefined;
|
|
183
184
|
onAddHiddenKey?: ((data: {
|
|
184
185
|
id: string;
|
|
@@ -209,7 +210,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
209
210
|
indexRef: React.MutableRefObject<number>;
|
|
210
211
|
nonInteractiveIds: string[];
|
|
211
212
|
isVirtualized: boolean;
|
|
212
|
-
items:
|
|
213
|
+
items: Item<any>[];
|
|
213
214
|
}) => void) | undefined;
|
|
214
215
|
onRemoveHiddenKey?: ((data: {
|
|
215
216
|
id: string;
|
|
@@ -240,7 +241,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
240
241
|
indexRef: React.MutableRefObject<number>;
|
|
241
242
|
nonInteractiveIds: string[];
|
|
242
243
|
isVirtualized: boolean;
|
|
243
|
-
items:
|
|
244
|
+
items: Item<any>[];
|
|
244
245
|
}) => void) | undefined;
|
|
245
246
|
onSelectAll?: ((data: undefined, prevState: {
|
|
246
247
|
hiddenIds: string[];
|
|
@@ -269,7 +270,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
269
270
|
indexRef: React.MutableRefObject<number>;
|
|
270
271
|
nonInteractiveIds: string[];
|
|
271
272
|
isVirtualized: boolean;
|
|
272
|
-
items:
|
|
273
|
+
items: Item<any>[];
|
|
273
274
|
}) => void) | undefined;
|
|
274
275
|
onUnselectAll?: ((data: undefined, prevState: {
|
|
275
276
|
hiddenIds: string[];
|
|
@@ -298,7 +299,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
298
299
|
indexRef: React.MutableRefObject<number>;
|
|
299
300
|
nonInteractiveIds: string[];
|
|
300
301
|
isVirtualized: boolean;
|
|
301
|
-
items:
|
|
302
|
+
items: Item<any>[];
|
|
302
303
|
}) => void) | undefined;
|
|
303
304
|
onGoTo?: ((data: {
|
|
304
305
|
id: string;
|
|
@@ -329,7 +330,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
329
330
|
indexRef: React.MutableRefObject<number>;
|
|
330
331
|
nonInteractiveIds: string[];
|
|
331
332
|
isVirtualized: boolean;
|
|
332
|
-
items:
|
|
333
|
+
items: Item<any>[];
|
|
333
334
|
}) => void) | undefined;
|
|
334
335
|
onGoToNext?: ((data: undefined, prevState: {
|
|
335
336
|
hiddenIds: string[];
|
|
@@ -358,7 +359,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
358
359
|
indexRef: React.MutableRefObject<number>;
|
|
359
360
|
nonInteractiveIds: string[];
|
|
360
361
|
isVirtualized: boolean;
|
|
361
|
-
items:
|
|
362
|
+
items: Item<any>[];
|
|
362
363
|
}) => void) | undefined;
|
|
363
364
|
onGoToPrevious?: ((data: undefined, prevState: {
|
|
364
365
|
hiddenIds: string[];
|
|
@@ -387,7 +388,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
387
388
|
indexRef: React.MutableRefObject<number>;
|
|
388
389
|
nonInteractiveIds: string[];
|
|
389
390
|
isVirtualized: boolean;
|
|
390
|
-
items:
|
|
391
|
+
items: Item<any>[];
|
|
391
392
|
}) => void) | undefined;
|
|
392
393
|
onGoToPreviousRow?: ((data: undefined, prevState: {
|
|
393
394
|
hiddenIds: string[];
|
|
@@ -416,7 +417,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
416
417
|
indexRef: React.MutableRefObject<number>;
|
|
417
418
|
nonInteractiveIds: string[];
|
|
418
419
|
isVirtualized: boolean;
|
|
419
|
-
items:
|
|
420
|
+
items: Item<any>[];
|
|
420
421
|
}) => void) | undefined;
|
|
421
422
|
onGoToNextRow?: ((data: undefined, prevState: {
|
|
422
423
|
hiddenIds: string[];
|
|
@@ -445,7 +446,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
445
446
|
indexRef: React.MutableRefObject<number>;
|
|
446
447
|
nonInteractiveIds: string[];
|
|
447
448
|
isVirtualized: boolean;
|
|
448
|
-
items:
|
|
449
|
+
items: Item<any>[];
|
|
449
450
|
}) => void) | undefined;
|
|
450
451
|
onGoToFirst?: ((data: undefined, prevState: {
|
|
451
452
|
hiddenIds: string[];
|
|
@@ -474,7 +475,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
474
475
|
indexRef: React.MutableRefObject<number>;
|
|
475
476
|
nonInteractiveIds: string[];
|
|
476
477
|
isVirtualized: boolean;
|
|
477
|
-
items:
|
|
478
|
+
items: Item<any>[];
|
|
478
479
|
}) => void) | undefined;
|
|
479
480
|
onGoToLast?: ((data: undefined, prevState: {
|
|
480
481
|
hiddenIds: string[];
|
|
@@ -503,7 +504,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
503
504
|
indexRef: React.MutableRefObject<number>;
|
|
504
505
|
nonInteractiveIds: string[];
|
|
505
506
|
isVirtualized: boolean;
|
|
506
|
-
items:
|
|
507
|
+
items: Item<any>[];
|
|
507
508
|
}) => void) | undefined;
|
|
508
509
|
onGoToFirstOfRow?: ((data: undefined, prevState: {
|
|
509
510
|
hiddenIds: string[];
|
|
@@ -532,7 +533,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
532
533
|
indexRef: React.MutableRefObject<number>;
|
|
533
534
|
nonInteractiveIds: string[];
|
|
534
535
|
isVirtualized: boolean;
|
|
535
|
-
items:
|
|
536
|
+
items: Item<any>[];
|
|
536
537
|
}) => void) | undefined;
|
|
537
538
|
onGoToLastOfRow?: ((data: undefined, prevState: {
|
|
538
539
|
hiddenIds: string[];
|
|
@@ -561,7 +562,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
561
562
|
indexRef: React.MutableRefObject<number>;
|
|
562
563
|
nonInteractiveIds: string[];
|
|
563
564
|
isVirtualized: boolean;
|
|
564
|
-
items:
|
|
565
|
+
items: Item<any>[];
|
|
565
566
|
}) => void) | undefined;
|
|
566
567
|
onGoToNextPage?: ((data: undefined, prevState: {
|
|
567
568
|
hiddenIds: string[];
|
|
@@ -590,7 +591,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
590
591
|
indexRef: React.MutableRefObject<number>;
|
|
591
592
|
nonInteractiveIds: string[];
|
|
592
593
|
isVirtualized: boolean;
|
|
593
|
-
items:
|
|
594
|
+
items: Item<any>[];
|
|
594
595
|
}) => void) | undefined;
|
|
595
596
|
onGoToPreviousPage?: ((data: undefined, prevState: {
|
|
596
597
|
hiddenIds: string[];
|
|
@@ -619,7 +620,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
619
620
|
indexRef: React.MutableRefObject<number>;
|
|
620
621
|
nonInteractiveIds: string[];
|
|
621
622
|
isVirtualized: boolean;
|
|
622
|
-
items:
|
|
623
|
+
items: Item<any>[];
|
|
623
624
|
}) => void) | undefined;
|
|
624
625
|
onRegisterItem?: ((data: {
|
|
625
626
|
item: any;
|
|
@@ -651,7 +652,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
651
652
|
indexRef: React.MutableRefObject<number>;
|
|
652
653
|
nonInteractiveIds: string[];
|
|
653
654
|
isVirtualized: boolean;
|
|
654
|
-
items:
|
|
655
|
+
items: Item<any>[];
|
|
655
656
|
}) => void) | undefined;
|
|
656
657
|
onUnregisterItem?: ((data: {
|
|
657
658
|
id: string;
|
|
@@ -682,7 +683,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
682
683
|
indexRef: React.MutableRefObject<number>;
|
|
683
684
|
nonInteractiveIds: string[];
|
|
684
685
|
isVirtualized: boolean;
|
|
685
|
-
items:
|
|
686
|
+
items: Item<any>[];
|
|
686
687
|
}) => void) | undefined;
|
|
687
688
|
onUpdateItemHeight?: ((data: {
|
|
688
689
|
value: number;
|
|
@@ -713,7 +714,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
713
714
|
indexRef: React.MutableRefObject<number>;
|
|
714
715
|
nonInteractiveIds: string[];
|
|
715
716
|
isVirtualized: boolean;
|
|
716
|
-
items:
|
|
717
|
+
items: Item<any>[];
|
|
717
718
|
}) => void) | undefined;
|
|
718
719
|
} & {
|
|
719
720
|
shouldSelect?: ((data: {
|
|
@@ -745,7 +746,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
745
746
|
indexRef: React.MutableRefObject<number>;
|
|
746
747
|
nonInteractiveIds: string[];
|
|
747
748
|
isVirtualized: boolean;
|
|
748
|
-
items:
|
|
749
|
+
items: Item<any>[];
|
|
749
750
|
}) => boolean) | undefined;
|
|
750
751
|
shouldSetContainerWidth?: ((data: {
|
|
751
752
|
width?: number | undefined;
|
|
@@ -776,7 +777,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
776
777
|
indexRef: React.MutableRefObject<number>;
|
|
777
778
|
nonInteractiveIds: string[];
|
|
778
779
|
isVirtualized: boolean;
|
|
779
|
-
items:
|
|
780
|
+
items: Item<any>[];
|
|
780
781
|
}) => boolean) | undefined;
|
|
781
782
|
shouldSetOverflowTargetWidth?: ((data: {
|
|
782
783
|
width: number;
|
|
@@ -807,7 +808,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
807
808
|
indexRef: React.MutableRefObject<number>;
|
|
808
809
|
nonInteractiveIds: string[];
|
|
809
810
|
isVirtualized: boolean;
|
|
810
|
-
items:
|
|
811
|
+
items: Item<any>[];
|
|
811
812
|
}) => boolean) | undefined;
|
|
812
813
|
shouldAddItemWidth?: ((data: {
|
|
813
814
|
id: string;
|
|
@@ -839,7 +840,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
839
840
|
indexRef: React.MutableRefObject<number>;
|
|
840
841
|
nonInteractiveIds: string[];
|
|
841
842
|
isVirtualized: boolean;
|
|
842
|
-
items:
|
|
843
|
+
items: Item<any>[];
|
|
843
844
|
}) => boolean) | undefined;
|
|
844
845
|
shouldRemoveItemWidth?: ((data: {
|
|
845
846
|
id: string;
|
|
@@ -870,7 +871,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
870
871
|
indexRef: React.MutableRefObject<number>;
|
|
871
872
|
nonInteractiveIds: string[];
|
|
872
873
|
isVirtualized: boolean;
|
|
873
|
-
items:
|
|
874
|
+
items: Item<any>[];
|
|
874
875
|
}) => boolean) | undefined;
|
|
875
876
|
shouldAddHiddenKey?: ((data: {
|
|
876
877
|
id: string;
|
|
@@ -901,7 +902,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
901
902
|
indexRef: React.MutableRefObject<number>;
|
|
902
903
|
nonInteractiveIds: string[];
|
|
903
904
|
isVirtualized: boolean;
|
|
904
|
-
items:
|
|
905
|
+
items: Item<any>[];
|
|
905
906
|
}) => boolean) | undefined;
|
|
906
907
|
shouldRemoveHiddenKey?: ((data: {
|
|
907
908
|
id: string;
|
|
@@ -932,7 +933,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
932
933
|
indexRef: React.MutableRefObject<number>;
|
|
933
934
|
nonInteractiveIds: string[];
|
|
934
935
|
isVirtualized: boolean;
|
|
935
|
-
items:
|
|
936
|
+
items: Item<any>[];
|
|
936
937
|
}) => boolean) | undefined;
|
|
937
938
|
shouldSelectAll?: ((data: undefined, state: {
|
|
938
939
|
hiddenIds: string[];
|
|
@@ -961,7 +962,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
961
962
|
indexRef: React.MutableRefObject<number>;
|
|
962
963
|
nonInteractiveIds: string[];
|
|
963
964
|
isVirtualized: boolean;
|
|
964
|
-
items:
|
|
965
|
+
items: Item<any>[];
|
|
965
966
|
}) => boolean) | undefined;
|
|
966
967
|
shouldUnselectAll?: ((data: undefined, state: {
|
|
967
968
|
hiddenIds: string[];
|
|
@@ -990,7 +991,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
990
991
|
indexRef: React.MutableRefObject<number>;
|
|
991
992
|
nonInteractiveIds: string[];
|
|
992
993
|
isVirtualized: boolean;
|
|
993
|
-
items:
|
|
994
|
+
items: Item<any>[];
|
|
994
995
|
}) => boolean) | undefined;
|
|
995
996
|
shouldGoTo?: ((data: {
|
|
996
997
|
id: string;
|
|
@@ -1021,7 +1022,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1021
1022
|
indexRef: React.MutableRefObject<number>;
|
|
1022
1023
|
nonInteractiveIds: string[];
|
|
1023
1024
|
isVirtualized: boolean;
|
|
1024
|
-
items:
|
|
1025
|
+
items: Item<any>[];
|
|
1025
1026
|
}) => boolean) | undefined;
|
|
1026
1027
|
shouldGoToNext?: ((data: undefined, state: {
|
|
1027
1028
|
hiddenIds: string[];
|
|
@@ -1050,7 +1051,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1050
1051
|
indexRef: React.MutableRefObject<number>;
|
|
1051
1052
|
nonInteractiveIds: string[];
|
|
1052
1053
|
isVirtualized: boolean;
|
|
1053
|
-
items:
|
|
1054
|
+
items: Item<any>[];
|
|
1054
1055
|
}) => boolean) | undefined;
|
|
1055
1056
|
shouldGoToPrevious?: ((data: undefined, state: {
|
|
1056
1057
|
hiddenIds: string[];
|
|
@@ -1079,7 +1080,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1079
1080
|
indexRef: React.MutableRefObject<number>;
|
|
1080
1081
|
nonInteractiveIds: string[];
|
|
1081
1082
|
isVirtualized: boolean;
|
|
1082
|
-
items:
|
|
1083
|
+
items: Item<any>[];
|
|
1083
1084
|
}) => boolean) | undefined;
|
|
1084
1085
|
shouldGoToPreviousRow?: ((data: undefined, state: {
|
|
1085
1086
|
hiddenIds: string[];
|
|
@@ -1108,7 +1109,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1108
1109
|
indexRef: React.MutableRefObject<number>;
|
|
1109
1110
|
nonInteractiveIds: string[];
|
|
1110
1111
|
isVirtualized: boolean;
|
|
1111
|
-
items:
|
|
1112
|
+
items: Item<any>[];
|
|
1112
1113
|
}) => boolean) | undefined;
|
|
1113
1114
|
shouldGoToNextRow?: ((data: undefined, state: {
|
|
1114
1115
|
hiddenIds: string[];
|
|
@@ -1137,7 +1138,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1137
1138
|
indexRef: React.MutableRefObject<number>;
|
|
1138
1139
|
nonInteractiveIds: string[];
|
|
1139
1140
|
isVirtualized: boolean;
|
|
1140
|
-
items:
|
|
1141
|
+
items: Item<any>[];
|
|
1141
1142
|
}) => boolean) | undefined;
|
|
1142
1143
|
shouldGoToFirst?: ((data: undefined, state: {
|
|
1143
1144
|
hiddenIds: string[];
|
|
@@ -1166,7 +1167,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1166
1167
|
indexRef: React.MutableRefObject<number>;
|
|
1167
1168
|
nonInteractiveIds: string[];
|
|
1168
1169
|
isVirtualized: boolean;
|
|
1169
|
-
items:
|
|
1170
|
+
items: Item<any>[];
|
|
1170
1171
|
}) => boolean) | undefined;
|
|
1171
1172
|
shouldGoToLast?: ((data: undefined, state: {
|
|
1172
1173
|
hiddenIds: string[];
|
|
@@ -1195,7 +1196,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1195
1196
|
indexRef: React.MutableRefObject<number>;
|
|
1196
1197
|
nonInteractiveIds: string[];
|
|
1197
1198
|
isVirtualized: boolean;
|
|
1198
|
-
items:
|
|
1199
|
+
items: Item<any>[];
|
|
1199
1200
|
}) => boolean) | undefined;
|
|
1200
1201
|
shouldGoToFirstOfRow?: ((data: undefined, state: {
|
|
1201
1202
|
hiddenIds: string[];
|
|
@@ -1224,7 +1225,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1224
1225
|
indexRef: React.MutableRefObject<number>;
|
|
1225
1226
|
nonInteractiveIds: string[];
|
|
1226
1227
|
isVirtualized: boolean;
|
|
1227
|
-
items:
|
|
1228
|
+
items: Item<any>[];
|
|
1228
1229
|
}) => boolean) | undefined;
|
|
1229
1230
|
shouldGoToLastOfRow?: ((data: undefined, state: {
|
|
1230
1231
|
hiddenIds: string[];
|
|
@@ -1253,7 +1254,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1253
1254
|
indexRef: React.MutableRefObject<number>;
|
|
1254
1255
|
nonInteractiveIds: string[];
|
|
1255
1256
|
isVirtualized: boolean;
|
|
1256
|
-
items:
|
|
1257
|
+
items: Item<any>[];
|
|
1257
1258
|
}) => boolean) | undefined;
|
|
1258
1259
|
shouldGoToNextPage?: ((data: undefined, state: {
|
|
1259
1260
|
hiddenIds: string[];
|
|
@@ -1282,7 +1283,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1282
1283
|
indexRef: React.MutableRefObject<number>;
|
|
1283
1284
|
nonInteractiveIds: string[];
|
|
1284
1285
|
isVirtualized: boolean;
|
|
1285
|
-
items:
|
|
1286
|
+
items: Item<any>[];
|
|
1286
1287
|
}) => boolean) | undefined;
|
|
1287
1288
|
shouldGoToPreviousPage?: ((data: undefined, state: {
|
|
1288
1289
|
hiddenIds: string[];
|
|
@@ -1311,7 +1312,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1311
1312
|
indexRef: React.MutableRefObject<number>;
|
|
1312
1313
|
nonInteractiveIds: string[];
|
|
1313
1314
|
isVirtualized: boolean;
|
|
1314
|
-
items:
|
|
1315
|
+
items: Item<any>[];
|
|
1315
1316
|
}) => boolean) | undefined;
|
|
1316
1317
|
shouldRegisterItem?: ((data: {
|
|
1317
1318
|
item: any;
|
|
@@ -1343,7 +1344,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1343
1344
|
indexRef: React.MutableRefObject<number>;
|
|
1344
1345
|
nonInteractiveIds: string[];
|
|
1345
1346
|
isVirtualized: boolean;
|
|
1346
|
-
items:
|
|
1347
|
+
items: Item<any>[];
|
|
1347
1348
|
}) => boolean) | undefined;
|
|
1348
1349
|
shouldUnregisterItem?: ((data: {
|
|
1349
1350
|
id: string;
|
|
@@ -1374,7 +1375,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1374
1375
|
indexRef: React.MutableRefObject<number>;
|
|
1375
1376
|
nonInteractiveIds: string[];
|
|
1376
1377
|
isVirtualized: boolean;
|
|
1377
|
-
items:
|
|
1378
|
+
items: Item<any>[];
|
|
1378
1379
|
}) => boolean) | undefined;
|
|
1379
1380
|
shouldUpdateItemHeight?: ((data: {
|
|
1380
1381
|
value: number;
|
|
@@ -1405,7 +1406,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1405
1406
|
indexRef: React.MutableRefObject<number>;
|
|
1406
1407
|
nonInteractiveIds: string[];
|
|
1407
1408
|
isVirtualized: boolean;
|
|
1408
|
-
items:
|
|
1409
|
+
items: Item<any>[];
|
|
1409
1410
|
}) => boolean) | undefined;
|
|
1410
1411
|
}) | undefined) => {
|
|
1411
1412
|
state: {
|
|
@@ -1435,7 +1436,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1435
1436
|
indexRef: React.MutableRefObject<number>;
|
|
1436
1437
|
nonInteractiveIds: string[];
|
|
1437
1438
|
isVirtualized: boolean;
|
|
1438
|
-
items:
|
|
1439
|
+
items: Item<any>[];
|
|
1439
1440
|
};
|
|
1440
1441
|
events: {
|
|
1441
1442
|
select(data: {
|
|
@@ -1539,7 +1540,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1539
1540
|
indexRef: React.MutableRefObject<number>;
|
|
1540
1541
|
nonInteractiveIds: string[];
|
|
1541
1542
|
isVirtualized: boolean;
|
|
1542
|
-
items:
|
|
1543
|
+
items: Item<any>[];
|
|
1543
1544
|
}, {
|
|
1544
1545
|
select(data: {
|
|
1545
1546
|
id: string;
|
|
@@ -1616,7 +1617,7 @@ export declare const useOverflowListModel: (<TT_Special_Generic>(config?: (Parti
|
|
|
1616
1617
|
indexRef: React.MutableRefObject<number>;
|
|
1617
1618
|
nonInteractiveIds: string[];
|
|
1618
1619
|
isVirtualized: boolean;
|
|
1619
|
-
items:
|
|
1620
|
+
items: Item<any>[];
|
|
1620
1621
|
};
|
|
1621
1622
|
events: {
|
|
1622
1623
|
select(data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverflowListModel.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useOverflowListModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useOverflowListModel.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useOverflowListModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAC;AAExC,wBAAgB,YAAY,CAC1B,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,MAAM,EAC3B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,EAC7B,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,GAClB,MAAM,EAAE,CA4CV;AAED,eAAO,MAAM,oBAAoB;;;IAK7B;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+DkC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAInB,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkBlB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkBT,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@@ exports.useOverflowListModel = exports.getHiddenIds = void 0;
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const common_1 = require("@workday/canvas-kit-react/common");
|
|
9
9
|
const useSelectionListModel_1 = require("./useSelectionListModel");
|
|
10
|
-
function getHiddenIds(containerWidth, overflowTargetWidth, itemWidthCache, selectedIds) {
|
|
10
|
+
function getHiddenIds(containerWidth, overflowTargetWidth, itemWidthCache, selectedIds, items) {
|
|
11
11
|
/** Allows us to prioritize showing the selected item */
|
|
12
12
|
let selectedKey;
|
|
13
13
|
/** Tally of combined item widths. We'll add items that fit until the container is full */
|
|
@@ -16,7 +16,13 @@ function getHiddenIds(containerWidth, overflowTargetWidth, itemWidthCache, selec
|
|
|
16
16
|
* elements that won't fit in the container */
|
|
17
17
|
const hiddenIds = [];
|
|
18
18
|
if (selectedIds !== 'all' && selectedIds.length) {
|
|
19
|
-
|
|
19
|
+
if (items === null || items === void 0 ? void 0 : items.length) {
|
|
20
|
+
// If selectedIds[0] is not in items, use the first id from items
|
|
21
|
+
selectedKey = items.find(item => item.id === selectedIds[0]) ? selectedIds[0] : items[0].id;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
selectedKey = selectedIds[0];
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
if (Object.keys(itemWidthCache).reduce((sum, key) => sum + itemWidthCache[key], 0) <= containerWidth) {
|
|
22
28
|
// All items fit, return empty array
|
|
@@ -87,14 +93,14 @@ exports.useOverflowListModel = common_1.createModelHook({
|
|
|
87
93
|
...model.events,
|
|
88
94
|
select(data) {
|
|
89
95
|
const { selectedIds } = model.selection.select(data.id, state);
|
|
90
|
-
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, selectedIds);
|
|
96
|
+
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, selectedIds, config.items);
|
|
91
97
|
model.events.select(data);
|
|
92
98
|
setHiddenIds(ids);
|
|
93
99
|
},
|
|
94
100
|
setContainerWidth(data) {
|
|
95
101
|
containerWidthRef.current = data.width || 0;
|
|
96
102
|
setContainerWidth(data.width || 0);
|
|
97
|
-
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, state.selectedIds);
|
|
103
|
+
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, state.selectedIds, config.items);
|
|
98
104
|
setHiddenIds(ids);
|
|
99
105
|
},
|
|
100
106
|
setOverflowTargetWidth(data) {
|
|
@@ -107,7 +113,7 @@ exports.useOverflowListModel = common_1.createModelHook({
|
|
|
107
113
|
[data.id]: data.width,
|
|
108
114
|
};
|
|
109
115
|
setItemWidthCache(itemWidthCacheRef.current);
|
|
110
|
-
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, state.selectedIds);
|
|
116
|
+
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, state.selectedIds, config.items);
|
|
111
117
|
setHiddenIds(ids);
|
|
112
118
|
},
|
|
113
119
|
removeItemWidth(data) {
|
|
@@ -117,7 +123,7 @@ exports.useOverflowListModel = common_1.createModelHook({
|
|
|
117
123
|
setItemWidthCache(itemWidthCacheRef.current);
|
|
118
124
|
const ids = getHiddenIds(containerWidthRef.current, overflowTargetWidthRef.current, itemWidthCacheRef.current, state.selectedIds !== 'all'
|
|
119
125
|
? state.selectedIds.filter(sId => data.id !== sId)
|
|
120
|
-
: state.selectedIds);
|
|
126
|
+
: state.selectedIds, config.items);
|
|
121
127
|
setHiddenIds(ids);
|
|
122
128
|
},
|
|
123
129
|
addHiddenKey(data) {
|
|
@@ -15,7 +15,7 @@ const useSelectModel_1 = require("./hooks/useSelectModel");
|
|
|
15
15
|
const useSelectCard_1 = require("./hooks/useSelectCard");
|
|
16
16
|
const useSelectInput_1 = require("./hooks/useSelectInput");
|
|
17
17
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
18
|
-
const selectInputStyles = canvas_kit_styling_1.createStyles({ name: "
|
|
18
|
+
const selectInputStyles = canvas_kit_styling_1.createStyles({ name: "qb8l11", styles: "caret-color:transparent;cursor:default;&::selection{background-color:transparent;}" });
|
|
19
19
|
exports.SelectInput = common_1.createSubcomponent(text_input_1.TextInput)({
|
|
20
20
|
modelHook: useSelectModel_1.useSelectModel,
|
|
21
21
|
elemPropsHook: useSelectInput_1.useSelectInput,
|
|
@@ -1364,15 +1364,6 @@ export declare const Tabs: import("@workday/canvas-kit-react/common").ComponentM
|
|
|
1364
1364
|
mode: "multiple" | "single";
|
|
1365
1365
|
}) => boolean) | undefined;
|
|
1366
1366
|
};
|
|
1367
|
-
/**
|
|
1368
|
-
* `Tabs.Item` is a `<button role="tab">` element. Each `Tabs.Item` is associated with a
|
|
1369
|
-
* `Tabs.Panel` either by a `data-id` attribute or by the position in the list. If a `data-id`
|
|
1370
|
-
* is provided, it must match the `data-id` passed to the corresponding `Tabs.Panel` component.
|
|
1371
|
-
*
|
|
1372
|
-
* ```tsx
|
|
1373
|
-
* <Tabs.Item data-id="first">First Tab</Tabs.Item>
|
|
1374
|
-
* ```
|
|
1375
|
-
*/
|
|
1376
1367
|
initialHiddenIds: string[];
|
|
1377
1368
|
containerWidth: number;
|
|
1378
1369
|
shouldCalculateOverflow: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../tabs/lib/Tabs.tsx"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOL,CAAC"}
|
|
@@ -62,7 +62,7 @@ export declare const buttonVars: {
|
|
|
62
62
|
* - `iconPosition`: These modifiers will override the existing `Size` styles. These are specific to icon locations
|
|
63
63
|
* within a button or if there is only an icon and no text.
|
|
64
64
|
*/
|
|
65
|
-
export declare const buttonModifiers: {
|
|
65
|
+
export declare const buttonModifiers: import("@workday/canvas-kit-styling").ModifierReturn<{
|
|
66
66
|
size: {
|
|
67
67
|
large: string;
|
|
68
68
|
medium: string;
|
|
@@ -83,10 +83,7 @@ export declare const buttonModifiers: {
|
|
|
83
83
|
extraSmallStart: string;
|
|
84
84
|
extraSmallEnd: string;
|
|
85
85
|
};
|
|
86
|
-
}
|
|
87
|
-
size: "small" | "medium" | "large" | "extraSmall";
|
|
88
|
-
iconPosition: "largeOnly" | "largeStart" | "largeEnd" | "mediumOnly" | "mediumStart" | "mediumEnd" | "smallOnly" | "smallStart" | "smallEnd" | "extraSmallOnly" | "extraSmallStart" | "extraSmallEnd";
|
|
89
|
-
}>) => string);
|
|
86
|
+
}>;
|
|
90
87
|
export declare function capitalize(string?: string): string;
|
|
91
88
|
export declare function getIconPosition(size?: keyof typeof buttonModifiers.size, iconPosition?: IconPositions, children?: React.ReactNode): keyof typeof buttonModifiers.iconPosition;
|
|
92
89
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAkB,cAAc,EAAY,MAAM,kCAAkC,CAAC;AAG5F,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AACjE,OAAO,EAAC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