@knime/kds-components 7.1.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{KdsIcon-B-82z79O.js → KdsIcon-QaWf9KlK.js} +6 -6
  3. package/dist/KdsIcon-QaWf9KlK.js.map +1 -0
  4. package/dist/index.css +53 -53
  5. package/dist/index.js +349 -303
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/components/lists/ListContainer/ListItem/ListItem/KdsListItem.vue.d.ts.map +1 -1
  8. package/dist/src/components/lists/ListContainer/ListItem/ListItem/types.d.ts +2 -1
  9. package/dist/src/components/lists/ListContainer/ListItem/ListItem/types.d.ts.map +1 -1
  10. package/dist/src/layouts/explorer/FileExplorer/useItemDragging/index.d.ts +2 -2
  11. package/dist/src/layouts/explorer/FileExplorer/useItemDragging/index.d.ts.map +1 -1
  12. package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
  13. package/dist/src/util/index.d.ts +3 -0
  14. package/dist/src/util/index.d.ts.map +1 -1
  15. package/dist/src/util/multiSelection/index.d.ts +3 -0
  16. package/dist/src/util/multiSelection/index.d.ts.map +1 -0
  17. package/dist/src/{layouts/explorer/FileExplorer → util}/multiSelection/multiSelectionStateService.d.ts +10 -10
  18. package/dist/src/util/multiSelection/multiSelectionStateService.d.ts.map +1 -0
  19. package/dist/src/{layouts/explorer/FileExplorer → util}/multiSelection/useFocusableMultiSelection.d.ts +3 -3
  20. package/dist/src/util/multiSelection/useFocusableMultiSelection.d.ts.map +1 -0
  21. package/dist/src/{layouts/explorer/FileExplorer/multiSelection/useMultiSelection.d.ts → util/multiSelection/useKdsMultiSelection.d.ts} +5 -5
  22. package/dist/src/util/multiSelection/useKdsMultiSelection.d.ts.map +1 -0
  23. package/package.json +4 -4
  24. package/dist/KdsIcon-B-82z79O.js.map +0 -1
  25. package/dist/src/layouts/explorer/FileExplorer/multiSelection/index.d.ts +0 -3
  26. package/dist/src/layouts/explorer/FileExplorer/multiSelection/index.d.ts.map +0 -1
  27. package/dist/src/layouts/explorer/FileExplorer/multiSelection/multiSelectionStateService.d.ts.map +0 -1
  28. package/dist/src/layouts/explorer/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts.map +0 -1
  29. package/dist/src/layouts/explorer/FileExplorer/multiSelection/useMultiSelection.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"KdsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/lists/ListContainer/ListItem/ListItem/KdsListItem.vue"],"names":[],"mappings":"AAqVA,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAoQlE,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/lists/ListContainer/ListItem/ListItem/KdsListItem.vue"],"names":[],"mappings":"AAwVA,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAwQlE,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -38,7 +38,8 @@ export type KdsListItemProps = {
38
38
  shortcut?: Hotkey[];
39
39
  /**
40
40
  * Optional trailing icon displayed at the end of the row (e.g. "checkmark" for selected, "trash" for missing).
41
- * Can stand alone or be combined with either `shortcut` or `badge`.
41
+ * Can stand alone or be combined with either `shortcut` or `badge` — except for the "checkmark" icon,
42
+ * which hides badges and shortcuts.
42
43
  */
43
44
  trailingIcon?: KdsIconName;
44
45
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/lists/ListContainer/ListItem/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAA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,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/lists/ListContainer/ListItem/ListItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6CAA6C;IAC7C,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC3B;;;OAGG;IACH,qBAAqB,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;CAC9C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oGAAoG;IACpG,EAAE,EAAE,MAAM,CAAC;IAEX,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IAEb,0FAA0F;IAC1F,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mGAAmG;IACnG,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,eAAe,CAAC;KAC3B,CAAC;IAEF,+HAA+H;IAC/H,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { UseMultiSelectionReturn } from '../multiSelection/useMultiSelection';
2
+ import { KdsMultiSelectionReturn } from '../../../../util/multiSelection/useKdsMultiSelection';
3
3
  import { KdsFileExplorerItem } from '../types';
4
4
  type DragPayload = {
5
5
  event: DragEvent;
@@ -19,7 +19,7 @@ type UseItemDraggingOptions = {
19
19
  items: Ref<Array<KdsFileExplorerItem>>;
20
20
  getItemElement: (index: number) => HTMLElement | null;
21
21
  itemBack: Ref<HTMLElement | null>;
22
- multiSelection: UseMultiSelectionReturn;
22
+ multiSelection: KdsMultiSelectionReturn;
23
23
  shouldUseCustomDragPreview: Ref<boolean>;
24
24
  draggingAnimationMode: Ref<"auto" | "manual" | "disabled">;
25
25
  getCustomPreviewEl: () => HTMLElement;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/useItemDragging/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAoC,MAAM,KAAK,CAAC;AAEjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGpD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEnE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,GAAG,IAAI,CAAC;AAET,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACvC,UAAU,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,GAAG,IAAI,CAAC;IACtD,QAAQ,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAClC,cAAc,EAAE,uBAAuB,CAAC;IACxC,0BAA0B,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzC,qBAAqB,EAAE,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IAC3D,kBAAkB,EAAE,MAAM,WAAW,CAAC;IACtC,WAAW,EAAE,CAAC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AAmB,CAAC;AAqB3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AAuQD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CA2B9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
1
+ {"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,KAAK,CAAC;AAOzE,OAAO,mBAAmB,CAAC;AAqB3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AAwQD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CA2B9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
@@ -1,5 +1,8 @@
1
1
  export { useKdsDarkMode } from './useKdsDarkMode';
2
2
  export { useKdsIsTruncated } from './useKdsIsTruncated';
3
+ export { useKdsMultiSelection } from './multiSelection/useKdsMultiSelection';
3
4
  export { kdsDarkModeType, kdsDarkModeTypes } from './enums';
4
5
  export type * from './useKdsDarkMode';
6
+ export type { KdsMultiSelectionOptions, KdsMultiSelectionReturn, } from './multiSelection/useKdsMultiSelection';
7
+ export type { KdsMultiSelectionState } from './multiSelection/multiSelectionStateService';
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG5D,mBAAmB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG5D,mBAAmB,kBAAkB,CAAC;AACtC,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './useKdsMultiSelection';
2
+ export * from './useFocusableMultiSelection';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/multiSelection/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
@@ -2,7 +2,7 @@ export type SelectionRange = {
2
2
  from: number;
3
3
  to: number;
4
4
  };
5
- export type MultiSelectionState = {
5
+ export type KdsMultiSelectionState = {
6
6
  anchorHistory: Array<number>;
7
7
  anchorExceptions: Array<number>;
8
8
  selectionRanges: Array<SelectionRange>;
@@ -10,32 +10,32 @@ export type MultiSelectionState = {
10
10
  /**
11
11
  * Initialize the state of the multi selection service
12
12
  */
13
- export declare const getInitialState: () => MultiSelectionState;
13
+ export declare const getInitialState: () => KdsMultiSelectionState;
14
14
  /**
15
15
  * Determines whether there is any active selection in the provided state
16
16
  */
17
- export declare const isMultipleSelectionActive: (state: MultiSelectionState, initialElement: number) => boolean;
17
+ export declare const isMultipleSelectionActive: (state: KdsMultiSelectionState, initialElement: number) => boolean;
18
18
  /**
19
19
  * Determines whether the provided item is selected considering the given selection state
20
20
  * by trying to find it inside the selection ranges, bounded by the from and to properties
21
21
  */
22
- export declare const isItemSelected: (state: MultiSelectionState, item: number) => boolean;
22
+ export declare const isItemSelected: (state: KdsMultiSelectionState, item: number) => boolean;
23
23
  /**
24
24
  * Executes the Ctrl+Click logic. Will set (or unset) the clicked item into the selection state
25
25
  * updating it accordingly.
26
26
  *
27
27
  * e.g: New items will be added, existing items will be removed
28
28
  */
29
- export declare const ctrlClick: (state: MultiSelectionState, clickedItem: number) => MultiSelectionState;
29
+ export declare const ctrlClick: (state: KdsMultiSelectionState, clickedItem: number) => KdsMultiSelectionState;
30
30
  /**
31
31
  * Executes the Shift+Click logic. Will set (or unset) the clicked item into the selection state
32
32
  * updating it accordingly and also updating any possible selection ranges.
33
33
  */
34
- export declare const shiftClick: (state: MultiSelectionState, clickedItem: number) => MultiSelectionState;
34
+ export declare const shiftClick: (state: KdsMultiSelectionState, clickedItem: number) => KdsMultiSelectionState;
35
35
  /**
36
36
  * Executes the "Click" logic. Will reset any selection state, since click alone would unselect
37
37
  */
38
- export declare const click: (clickedItem: number) => MultiSelectionState;
38
+ export declare const click: (clickedItem: number) => KdsMultiSelectionState;
39
39
  /**
40
40
  * Normalizes a multiselection state into an array of selection ranges that:
41
41
  * - **Excludes anchor exceptions**.
@@ -54,14 +54,14 @@ export declare const click: (clickedItem: number) => MultiSelectionState;
54
54
  * Given two ranges: (1-6) and (2-4), the latter would be "included" in the first one.
55
55
  * The correct output range for this example should be just the range (1-6)
56
56
  */
57
- export declare const normalizeRanges: (state: MultiSelectionState) => Array<SelectionRange>;
57
+ export declare const normalizeRanges: (state: KdsMultiSelectionState) => Array<SelectionRange>;
58
58
  /**
59
59
  * Returns the selection size for the given state
60
60
  */
61
- export declare const selectionSize: (state: MultiSelectionState) => number;
61
+ export declare const selectionSize: (state: KdsMultiSelectionState) => number;
62
62
  /**
63
63
  * Returns an array of all the indexes that are selected in the given state
64
64
  * @returns selected indexes
65
65
  */
66
- export declare const getSelectedIndexes: (state: MultiSelectionState) => Array<number>;
66
+ export declare const getSelectedIndexes: (state: KdsMultiSelectionState) => Array<number>;
67
67
  //# sourceMappingURL=multiSelectionStateService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiSelectionStateService.d.ts","sourceRoot":"","sources":["../../../../src/util/multiSelection/multiSelectionStateService.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,sBAIjC,CAAC;AAUH;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO,sBAAsB,EAC7B,gBAAgB,MAAM,YAgBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,sBAAsB,EAAE,MAAM,MAAM,YAOzE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,sBAAsB,EAC7B,aAAa,MAAM,KAClB,sBAqDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GACrB,OAAO,sBAAsB,EAC7B,aAAa,MAAM,KAClB,sBA6EF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,aAAa,MAAM,KAAG,sBAU3C,CAAC;AA0EF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,sBAAsB,KAC5B,KAAK,CAAC,cAAc,CAmCtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,sBAAsB,KAAG,MAU7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,sBAAsB,KAC5B,KAAK,CAAC,MAAM,CAmBd,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { UseMultiSelectionOptions, UseMultiSelectionReturn } from './useMultiSelection';
3
- type UseFocusableMultiSelectionOptions = UseMultiSelectionOptions & {
2
+ import { KdsMultiSelectionOptions, KdsMultiSelectionReturn } from './useKdsMultiSelection';
3
+ type UseFocusableMultiSelectionOptions = KdsMultiSelectionOptions & {
4
4
  numberOfItems: Ref<number>;
5
5
  startIndex: Ref<number>;
6
6
  disabled?: boolean;
@@ -10,7 +10,7 @@ export type UseFocusableMultiSelectionReturn = {
10
10
  resetSelection: (focusIndex?: number) => void;
11
11
  handleKeyboardNavigation: (event: KeyboardEvent | null) => void;
12
12
  focusedIndex: Ref<number>;
13
- } & Omit<UseMultiSelectionReturn, "resetSelection">;
13
+ } & Omit<KdsMultiSelectionReturn, "resetSelection">;
14
14
  /**
15
15
  * Thin wrapper around multi selection service with added keyboard navigation and focus (index based) support.
16
16
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusableMultiSelection.d.ts","sourceRoot":"","sources":["../../../../src/util/multiSelection/useFocusableMultiSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAK9C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAC;AAKhC,KAAK,iCAAiC,GAAG,wBAAwB,GAAG;IAClE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wBAAwB,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC3B,GAAG,IAAI,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,iCAAiC,KACzC,gCAiPF,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import * as multiSelectionService from "./multiSelectionStateService";
3
- export type UseMultiSelectionOptions = {
3
+ export type KdsMultiSelectionOptions = {
4
4
  singleSelectionOnly: Ref<boolean>;
5
5
  };
6
- export type UseMultiSelectionReturn = {
7
- multiSelectionState: Ref<multiSelectionService.MultiSelectionState>;
6
+ export type KdsMultiSelectionReturn = {
7
+ multiSelectionState: Ref<multiSelectionService.KdsMultiSelectionState>;
8
8
  isSelected: (index: number) => boolean;
9
9
  selectedIndexes: ComputedRef<Array<number>>;
10
10
  isMultipleSelectionActive: (index: number) => boolean;
@@ -12,5 +12,5 @@ export type UseMultiSelectionReturn = {
12
12
  handleSelectionClick: (index: number, event?: MouseEvent | null) => void;
13
13
  ctrlClickItem: (index: number) => void;
14
14
  };
15
- export declare const useMultiSelection: (options: UseMultiSelectionOptions) => UseMultiSelectionReturn;
16
- //# sourceMappingURL=useMultiSelection.d.ts.map
15
+ export declare const useKdsMultiSelection: (options: KdsMultiSelectionOptions) => KdsMultiSelectionReturn;
16
+ //# sourceMappingURL=useKdsMultiSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKdsMultiSelection.d.ts","sourceRoot":"","sources":["../../../../src/util/multiSelection/useKdsMultiSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAIhE,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,EAAE,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IACvE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,eAAe,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,yBAAyB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACtD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,SAAS,wBAAwB,KAChC,uBAyEF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "7.1.0",
3
+ "version": "7.2.1",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "consola": "^3.4.2",
39
39
  "motion": "^12.42.2",
40
40
  "temporal-polyfill": "^1.0.1",
41
- "@knime/kds-styles": "^7.1.0",
41
+ "@knime/kds-styles": "^7.2.1",
42
42
  "@knime/utils": "^2.0.2"
43
43
  },
44
44
  "devDependencies": {
@@ -57,8 +57,8 @@
57
57
  "vite-svg-loader": "^5.1.1",
58
58
  "vue": "3.5.40",
59
59
  "vue-tsc": "^3.3.8",
60
- "@knime/kds-code-editor": "^7.1.0",
61
- "@knime/kds-table": "^7.1.0"
60
+ "@knime/kds-table": "^7.2.1",
61
+ "@knime/kds-code-editor": "^7.2.1"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=24"
@@ -1 +0,0 @@
1
- {"version":3,"file":"KdsIcon-B-82z79O.js","names":[],"sources":["../src/util/useKdsIsTruncated.ts","../src/layouts/overlays/Tooltip/vKdsTooltip.ts","../src/components/accessories/Icon/useIcon.ts","../src/components/accessories/Icon/KdsIcon.vue","../src/components/accessories/Icon/KdsIcon.vue"],"sourcesContent":["import { type Ref, ref } from \"vue\";\nimport { useMutationObserver, useResizeObserver } from \"@vueuse/core\";\n\nexport function elementOverflowsHorizontally(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollWidth > element.clientWidth;\n}\n\nexport function elementOverflowsVertically(\n element: HTMLElement | null,\n): boolean {\n if (!element) {\n return false;\n }\n return element.scrollHeight > element.clientHeight;\n}\n\n/**\n * Tracks whether the content of an element is visually truncated.\n *\n * Detects both horizontal truncation (e.g. `text-overflow: ellipsis`)\n * and vertical truncation (e.g. `-webkit-line-clamp`).\n *\n * This can be used to set tooltips or other UI affordances when text is cut off.\n * Changing the size of the provided element based on this composable may result in an infinite loop!\n *\n * @param elementRef - A ref pointing to the element that might be truncated.\n * @returns An object containing a reactive `isTruncated` ref.\n */\nexport function useKdsIsTruncated(elementRef: Ref<HTMLElement | null>) {\n const isTruncated = ref(false);\n\n const checkTruncation = () => {\n isTruncated.value =\n elementOverflowsHorizontally(elementRef.value) ||\n elementOverflowsVertically(elementRef.value);\n };\n\n useResizeObserver(elementRef, checkTruncation);\n\n // Observe changes to the element's subtree, including text-node updates,\n // so content changes without size changes still re-check truncation.\n useMutationObserver(elementRef, checkTruncation, {\n childList: true,\n characterData: true,\n subtree: true,\n // Also observe attribute changes (especially class/style) that can affect\n // truncation without necessarily triggering a resize event.\n attributes: true,\n attributeFilter: [\"class\", \"style\"],\n });\n\n return { isTruncated };\n}\n","import { type Directive, type DirectiveBinding, effectScope } from \"vue\";\nimport { useEventListener } from \"@vueuse/core\";\n\nimport {\n elementOverflowsHorizontally,\n elementOverflowsVertically,\n} from \"../../../util/useKdsIsTruncated\";\nimport \"./vKdsTooltip.css\";\n\ntype TooltipState = {\n popoverEl: HTMLDivElement;\n anchorName: string;\n showTimer: ReturnType<typeof setTimeout> | null;\n hideTimer: ReturnType<typeof setTimeout> | null;\n dismissed: boolean;\n visible: boolean;\n attached: boolean;\n scope: ReturnType<typeof effectScope>;\n};\n\nconst SHOW_DELAY = 450;\nconst HIDE_DELAY = 150;\n\nconst stateMap = new WeakMap<HTMLElement, TooltipState>();\n\nlet visibleCount = 0;\nlet currentVisible: TooltipState | null = null;\n\nexport function generateTooltipDiv(text: string): HTMLDivElement {\n const div = document.createElement(\"div\");\n div.classList.add(\"kds-tooltip\");\n div.textContent = text;\n return div;\n}\n\nfunction getText(binding: DirectiveBinding): string | null {\n const value = binding.value;\n if (value === null || value === undefined || value === \"\") {\n return null;\n }\n return String(value);\n}\n\nfunction isTruncatedMod(binding: DirectiveBinding): boolean {\n return binding.arg === \"truncated\";\n}\n\nfunction elementIsTruncated(el: HTMLElement | null): boolean {\n return elementOverflowsHorizontally(el) || elementOverflowsVertically(el);\n}\n\nfunction appendAnchorName(el: HTMLElement, anchorName: string) {\n const existing = el.style.getPropertyValue(\"anchor-name\");\n const names = existing\n ? existing\n .split(\",\")\n .map((n) => n.trim())\n .filter(Boolean)\n : [];\n if (!names.includes(anchorName)) {\n names.push(anchorName);\n }\n el.style.setProperty(\"anchor-name\", names.join(\", \"));\n}\n\nfunction removeAnchorName(el: HTMLElement, anchorName: string) {\n const existing = el.style.getPropertyValue(\"anchor-name\");\n const names = existing\n ? existing\n .split(\",\")\n .map((n) => n.trim())\n .filter((n) => n !== anchorName)\n : [];\n if (names.length > 0) {\n el.style.setProperty(\"anchor-name\", names.join(\", \"));\n } else {\n el.style.removeProperty(\"anchor-name\");\n }\n}\n\nfunction createPopover(\n triggerEl: HTMLElement,\n binding: DirectiveBinding,\n): { popover: HTMLDivElement; anchorName: string } {\n const popover = generateTooltipDiv(getText(binding) ?? \"\");\n popover.setAttribute(\"popover\", \"manual\");\n popover.setAttribute(\"role\", \"tooltip\");\n popover.setAttribute(\"aria-hidden\", \"true\");\n\n const id = `kds-tooltip-${crypto.randomUUID()}`;\n popover.id = id;\n\n if (!isTruncatedMod(binding)) {\n triggerEl.setAttribute(\"aria-describedby\", id);\n }\n\n const anchorName = `--kds-tooltip-anchor-${id}`;\n appendAnchorName(triggerEl, anchorName);\n\n popover.style.setProperty(\"position-anchor\", anchorName);\n\n return { popover, anchorName };\n}\n\nfunction attachPopover(triggerEl: Element, state: TooltipState) {\n if (state.attached) {\n return;\n }\n\n state.attached = true;\n // Appended to `document.body` (or shadow dom root node) to ensure element is decoupled from the Vue render\n // tree for the component using this directive. Otherwise, if inserted inside the render tree this can cause errors during\n // VDOM mutations (e.g v-if) because this element would have been inserted outside of Vue's internal updates\n const root = triggerEl.getRootNode();\n const appendBase = root === document ? document.body : root;\n appendBase.appendChild(state.popoverEl);\n}\n\nfunction detachPopover(state: TooltipState) {\n if (!state.attached) {\n return;\n }\n state.attached = false;\n state.popoverEl.remove();\n}\n\nfunction cancelTimers(state: TooltipState) {\n if (state.showTimer !== null) {\n clearTimeout(state.showTimer);\n state.showTimer = null;\n }\n if (state.hideTimer !== null) {\n clearTimeout(state.hideTimer);\n state.hideTimer = null;\n }\n}\n\nfunction hidePopover(state: TooltipState) {\n if (!state.visible) {\n return;\n }\n state.visible = false;\n visibleCount--;\n if (currentVisible === state) {\n currentVisible = null;\n }\n try {\n state.popoverEl.hidePopover();\n } catch {\n // ignore if already hidden or not connected\n }\n detachPopover(state);\n}\n\nfunction showPopover(triggerEl: HTMLElement, state: TooltipState) {\n if (state.visible) {\n return;\n }\n if (currentVisible && currentVisible !== state) {\n cancelTimers(currentVisible);\n hidePopover(currentVisible);\n }\n appendAnchorName(triggerEl, state.anchorName);\n attachPopover(triggerEl, state);\n try {\n state.popoverEl.showPopover();\n } catch {\n // ignore if already showing or not connected\n }\n state.visible = true;\n visibleCount++;\n currentVisible = state;\n}\n\nfunction scheduleShow(\n triggerEl: HTMLElement,\n state: TooltipState,\n delay: number,\n) {\n cancelTimers(state);\n if (state.dismissed) {\n return;\n }\n state.showTimer = setTimeout(() => {\n state.showTimer = null;\n showPopover(triggerEl, state);\n }, delay);\n}\n\nfunction scheduleHide(state: TooltipState) {\n cancelTimers(state);\n state.hideTimer = setTimeout(() => {\n state.hideTimer = null;\n hidePopover(state);\n }, HIDE_DELAY);\n}\n\nfunction mount(triggerEl: HTMLElement, binding: DirectiveBinding) {\n if (getText(binding) === null) {\n return;\n }\n\n const { popover: popoverEl, anchorName } = createPopover(triggerEl, binding);\n\n const state: TooltipState = {\n popoverEl,\n anchorName,\n showTimer: null,\n hideTimer: null,\n dismissed: false,\n visible: false,\n attached: false,\n scope: effectScope(),\n };\n\n stateMap.set(triggerEl, state);\n\n const onMouseEnter = () => {\n state.dismissed = false;\n if (isTruncatedMod(binding) && !elementIsTruncated(triggerEl)) {\n return;\n }\n const delay = visibleCount > 0 ? 0 : SHOW_DELAY;\n scheduleShow(triggerEl, state, delay);\n };\n\n const onMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onFocusIn = () => {\n state.dismissed = false;\n if (isTruncatedMod(binding) && !elementIsTruncated(triggerEl)) {\n return;\n }\n if (triggerEl.matches(\":focus-visible\")) {\n scheduleShow(triggerEl, state, 0);\n }\n };\n\n const onFocusOut = () => {\n cancelTimers(state);\n hidePopover(state);\n };\n\n const onDocumentKeyDown = (e: KeyboardEvent) => {\n if (e.key === \"Escape\" && state.visible) {\n cancelTimers(state);\n hidePopover(state);\n state.dismissed = true;\n }\n };\n\n const onPopoverMouseEnter = () => {\n cancelTimers(state);\n };\n\n const onPopoverMouseLeave = () => {\n scheduleHide(state);\n };\n\n const onScroll = () => {\n cancelTimers(state);\n if (state.visible) {\n hidePopover(state);\n }\n };\n\n state.scope.run(() => {\n useEventListener(triggerEl, \"mouseenter\", onMouseEnter);\n useEventListener(triggerEl, \"mouseleave\", onMouseLeave);\n useEventListener(triggerEl, \"focusin\", onFocusIn);\n useEventListener(triggerEl, \"focusout\", onFocusOut);\n useEventListener(document, \"keydown\", onDocumentKeyDown, true);\n useEventListener(document, \"scroll\", onScroll, true);\n\n useEventListener(popoverEl, \"mouseenter\", onPopoverMouseEnter);\n useEventListener(popoverEl, \"mouseleave\", onPopoverMouseLeave);\n });\n}\n\nfunction unmount(triggerEl: HTMLElement, binding?: DirectiveBinding) {\n const state = stateMap.get(triggerEl);\n if (state) {\n state.scope.stop();\n cancelTimers(state);\n hidePopover(state);\n removeAnchorName(triggerEl, state.anchorName);\n stateMap.delete(triggerEl);\n }\n\n if (!binding || !isTruncatedMod(binding)) {\n triggerEl.removeAttribute(\"aria-describedby\");\n }\n}\n\nexport const vKdsTooltip: Directive<HTMLElement> = {\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n mount(el, binding);\n },\n\n updated(el: HTMLElement, binding: DirectiveBinding) {\n const state = stateMap.get(el);\n const newText = getText(binding);\n\n if (newText === null) {\n if (state) {\n unmount(el, binding);\n }\n return;\n }\n\n if (!state) {\n mount(el, binding);\n return;\n }\n\n state.popoverEl.textContent = newText;\n },\n\n unmounted(el: HTMLElement, binding: DirectiveBinding) {\n unmount(el, binding);\n },\n};\n\n/** @internal Reset module-level state for tests */\nexport function _resetVisibleCount() {\n visibleCount = 0;\n currentVisible = null;\n}\n","import {\n type DefineComponent,\n type Ref,\n type ShallowRef,\n markRaw,\n readonly,\n shallowRef,\n watch,\n} from \"vue\";\n\nimport type { KdsIconStatus } from \"./types\";\n\n// Module-scoped caches shared across all `KdsIcon` instances.\nconst iconCache = new Map<string, DefineComponent>();\nconst iconLoadPromises = new Map<string, Promise<DefineComponent>>();\n\n/**\n * Test-only helper to reset the module-scoped icon caches between tests.\n * Not part of the public API.\n */\nexport function __resetIconCacheForTesting() {\n iconCache.clear();\n iconLoadPromises.clear();\n}\n\nfunction useIcon({\n name,\n folder,\n}: {\n name: Ref<string>;\n folder: \"icons\" | \"type-icons\";\n}): {\n iconComponent: Readonly<ShallowRef<DefineComponent | null>>;\n status: Readonly<ShallowRef<KdsIconStatus>>;\n} {\n const iconComponent = shallowRef<DefineComponent | null>(null);\n const status = shallowRef<KdsIconStatus>(\"loading\");\n\n watch(\n () => name.value,\n (newName) => {\n const cacheKey = `${folder}/${newName}`;\n\n if (iconCache.has(cacheKey)) {\n iconComponent.value = iconCache.get(cacheKey)!;\n status.value = \"loaded\";\n return;\n }\n\n status.value = \"loading\";\n\n // Deduplicate concurrent imports for the same icon so that rendering\n // many instances of the same icon at once only triggers a single\n // network request.\n let loadPromise = iconLoadPromises.get(cacheKey);\n if (!loadPromise) {\n // Do *not* change this code to use try/catch blocks:\n // try/catch relies on the async frame being intact when the rejection resumes.\n // Which might be gone due to vue teardown.\n // `.catch()` registers a reaction on the Promise's internal [[PromiseRejectReactions]]\n // slot directly, so it doesn't depend on a live call frame.\n loadPromise = import(\n `../../../../node_modules/@knime/kds-styles/dist/img/${folder}/${newName}.svg`\n )\n .then((module) => {\n const component = markRaw(module.default);\n iconCache.set(cacheKey, component);\n iconLoadPromises.delete(cacheKey);\n return component;\n })\n .catch((error) => {\n iconLoadPromises.delete(cacheKey);\n throw error;\n });\n iconLoadPromises.set(cacheKey, loadPromise);\n }\n\n loadPromise\n .then((component) => {\n // ignore stale resolutions if the name has changed in the meantime\n if (name.value !== newName) {\n return;\n }\n iconComponent.value = component;\n status.value = \"loaded\";\n })\n .catch((error) => {\n // do not log an abort, might happen due to teardown\n if (error.name === \"AbortError\") {\n return;\n }\n\n // ignore stale rejections if the name has changed in the meantime,\n // so we don't spam the console with errors for icons that are no\n // longer requested\n if (name.value !== newName) {\n return;\n }\n\n // eslint-disable-next-line no-console\n console.error(\n `Failed to load icon \"${newName}\" from folder \"${folder}\":`,\n error,\n );\n\n iconComponent.value = null;\n status.value = \"error\";\n });\n },\n { immediate: true },\n );\n\n return {\n iconComponent: readonly(iconComponent) as Readonly<\n ShallowRef<DefineComponent | null>\n >,\n status: readonly(status) as Readonly<ShallowRef<KdsIconStatus>>,\n };\n}\n\nexport default useIcon;\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n","<script setup lang=\"ts\">\nimport { toRef } from \"vue\";\n\nimport type { KdsIconProps } from \"./types\";\nimport useIcon from \"./useIcon\";\n\n/**\n * Displays an icon from the KDS icon catalog. The icon color inherits the text\n * color of the parent element by default. When the `disabled` prop is set,\n * the color is overridden with the `kds.color.text-and-icon.disabled` token.\n */\nconst {\n size = \"medium\",\n disabled = false,\n ...props\n} = defineProps<KdsIconProps>();\n\nconst { iconComponent, status } = useIcon({\n name: toRef(() => props.name),\n folder: \"icons\",\n});\n\n/**\n * Reactive loading status of the icon module. Whenever `name` changes,\n * `status` becomes `\"loading\"` until it resolves to `\"loaded\"` or `\"error\"`\n * — so it can cycle through these states multiple times over the component's\n * lifetime (cached icons resolve synchronously to `\"loaded\"`). Useful for\n * consumers that need to coordinate rendering timing (e.g. wait for the icon\n * before measuring layout).\n */\ndefineExpose({ status });\n</script>\n\n<template>\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n <span\n v-else\n :class=\"['kds-icon', size, { disabled }]\"\n :data-kds-icon-name=\"props.name\"\n aria-hidden=\"true\"\n focusable=\"false\"\n />\n</template>\n\n<style scoped>\n@import url(\"./styles.css\");\n\n.kds-icon.disabled {\n color: var(--kds-color-text-and-icon-disabled);\n}\n</style>\n"],"mappings":";;;;AAGA,SAAgB,6BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,cAAc,QAAQ;AACvC;AAEA,SAAgB,2BACd,SACS;CACT,IAAI,CAAC,SACH,OAAO;CAET,OAAO,QAAQ,eAAe,QAAQ;AACxC;;;;;;;;;;;;;AAcA,SAAgB,kBAAkB,YAAqC;CACrE,MAAM,cAAc,IAAI,KAAK;CAE7B,MAAM,wBAAwB;EAC5B,YAAY,QACV,6BAA6B,WAAW,KAAK,KAC7C,2BAA2B,WAAW,KAAK;CAC/C;CAEA,kBAAkB,YAAY,eAAe;CAI7C,oBAAoB,YAAY,iBAAiB;EAC/C,WAAW;EACX,eAAe;EACf,SAAS;EAGT,YAAY;EACZ,iBAAiB,CAAC,SAAS,OAAO;CACpC,CAAC;CAED,OAAO,EAAE,YAAY;AACvB;;;ACrCA,IAAM,aAAa;AACnB,IAAM,aAAa;AAEnB,IAAM,2BAAW,IAAI,QAAmC;AAExD,IAAI,eAAe;AACnB,IAAI,iBAAsC;AAE1C,SAAgB,mBAAmB,MAA8B;CAC/D,MAAM,M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AoB,MAAM;IAC3B,eAAY;IACZ,WAAU"}
@@ -1,3 +0,0 @@
1
- export * from './useMultiSelection';
2
- export * from './useFocusableMultiSelection';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/multiSelection/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiSelectionStateService.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/multiSelection/multiSelectionStateService.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,mBAIjC,CAAC;AAUH;;GAEG;AACH,eAAO,MAAM,yBAAyB,GACpC,OAAO,mBAAmB,EAC1B,gBAAgB,MAAM,YAgBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,EAAE,MAAM,MAAM,YAOtE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,mBAAmB,EAC1B,aAAa,MAAM,KAClB,mBAqDF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GACrB,OAAO,mBAAmB,EAC1B,aAAa,MAAM,KAClB,mBA6EF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,aAAa,MAAM,KAAG,mBAU3C,CAAC;AA0EF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,mBAAmB,KACzB,KAAK,CAAC,cAAc,CAmCtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,mBAAmB,KAAG,MAU1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,mBAAmB,KACzB,KAAK,CAAC,MAAM,CAmBd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusableMultiSelection.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/multiSelection/useFocusableMultiSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAK9C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAK7B,KAAK,iCAAiC,GAAG,wBAAwB,GAAG;IAClE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,cAAc,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wBAAwB,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC3B,GAAG,IAAI,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,iCAAiC,KACzC,gCAiPF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMultiSelection.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/multiSelection/useMultiSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAiB,MAAM,KAAK,CAAC;AAIhE,OAAO,KAAK,qBAAqB,MAAM,8BAA8B,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,EAAE,GAAG,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;IACpE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,eAAe,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,yBAAyB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACtD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,SAAS,wBAAwB,KAChC,uBAyEF,CAAC"}