@knime/kds-components 0.28.10 → 0.29.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/index.css +419 -201
  3. package/dist/index.js +10053 -2150
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/containers/FileExplorer/FileExplorerItem.vue.d.ts +1023 -0
  6. package/dist/src/containers/FileExplorer/FileExplorerItem.vue.d.ts.map +1 -0
  7. package/dist/src/containers/FileExplorer/FileExplorerItemBack.vue.d.ts +6 -0
  8. package/dist/src/containers/FileExplorer/FileExplorerItemBack.vue.d.ts.map +1 -0
  9. package/dist/src/containers/FileExplorer/FileExplorerItemBase.vue.d.ts +31 -0
  10. package/dist/src/containers/FileExplorer/FileExplorerItemBase.vue.d.ts.map +1 -0
  11. package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts +1670 -0
  12. package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -0
  13. package/dist/src/containers/FileExplorer/enums.d.ts +12 -0
  14. package/dist/src/containers/FileExplorer/enums.d.ts.map +1 -0
  15. package/dist/src/containers/FileExplorer/index.d.ts +4 -0
  16. package/dist/src/containers/FileExplorer/index.d.ts.map +1 -0
  17. package/dist/src/containers/FileExplorer/multiSelection/index.d.ts +3 -0
  18. package/dist/src/containers/FileExplorer/multiSelection/index.d.ts.map +1 -0
  19. package/dist/src/containers/FileExplorer/multiSelection/multiSelectionStateService.d.ts +67 -0
  20. package/dist/src/containers/FileExplorer/multiSelection/multiSelectionStateService.d.ts.map +1 -0
  21. package/dist/src/containers/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts +19 -0
  22. package/dist/src/containers/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts.map +1 -0
  23. package/dist/src/containers/FileExplorer/multiSelection/useMultiSelection.d.ts +16 -0
  24. package/dist/src/containers/FileExplorer/multiSelection/useMultiSelection.d.ts.map +1 -0
  25. package/dist/src/containers/FileExplorer/types.d.ts +86 -0
  26. package/dist/src/containers/FileExplorer/types.d.ts.map +1 -0
  27. package/dist/src/containers/FileExplorer/useItemDragging/index.d.ts +37 -0
  28. package/dist/src/containers/FileExplorer/useItemDragging/index.d.ts.map +1 -0
  29. package/dist/src/containers/FileExplorer/useKeyPressedUntilMouseClick/index.d.ts +2 -0
  30. package/dist/src/containers/FileExplorer/useKeyPressedUntilMouseClick/index.d.ts.map +1 -0
  31. package/dist/src/containers/FileExplorer/useNameValidator/index.d.ts +2 -0
  32. package/dist/src/containers/FileExplorer/useNameValidator/index.d.ts.map +1 -0
  33. package/dist/src/containers/FileExplorer/useNameValidator/useNameValidator.d.ts +13 -0
  34. package/dist/src/containers/FileExplorer/useNameValidator/useNameValidator.d.ts.map +1 -0
  35. package/dist/src/containers/FileExplorer/utils/dragGhostHelpers.d.ts +51 -0
  36. package/dist/src/containers/FileExplorer/utils/dragGhostHelpers.d.ts.map +1 -0
  37. package/dist/src/containers/FileExplorer/utils/filterSlotsForDynamicColumns.d.ts +3 -0
  38. package/dist/src/containers/FileExplorer/utils/filterSlotsForDynamicColumns.d.ts.map +1 -0
  39. package/dist/src/containers/FileExplorer/utils/popoverAnchorElement.d.ts +5 -0
  40. package/dist/src/containers/FileExplorer/utils/popoverAnchorElement.d.ts.map +1 -0
  41. package/dist/src/containers/index.d.ts +2 -0
  42. package/dist/src/containers/index.d.ts.map +1 -1
  43. package/dist/src/forms/inputs/DateInput/enums.d.ts +1 -1
  44. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 0.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6d7510a: Add KdsFileExplorer component
8
+
9
+ Migration guide:
10
+ - Most props are still named the same way
11
+ - Drag behavior remains the same, as well as emitted drag events
12
+ - The `mode` prop doesn't exist anymore. Instead a new `size` prop was introduced, but unlike the `mode` prop, the `size` controls the sizes of the items as opposed to the whole FileExplorer
13
+ - The `virtual` prop was removed. Virtualization is the default behavior now and it's always used.
14
+ - Keep in mind that if the component's wrapper height is not restricted, the virtualization won't have effect as the component will just grow the document's overflow
15
+ - Slots removed:
16
+ - `itemContent` -> This used to control the item's `name` rendering. Now the name is always rendered and cannot be customized. If you need extra columns you can still use the dynamic content column slot
17
+ - `itemIcon` -> The icon is specified now as part of each item in the `items` prop
18
+ - `contextMenu` -> See next section
19
+ - ContextMenu changes:
20
+ - No longer controlled by a slot
21
+ - A new `contextMenuBuilder` prop is introduced. This takes a function that produces the items that should be rendered on the menu. The function receives as parameters: the `anchor` (item the menu was opened on) as a well as a list of the items that are selected when the context menu is opened (`selectedItems`)
22
+ - Default rename behavior was removed
23
+ - This used to be tightly coupled to the context menu slot. Now the rename behavior is completely controlled by the component consumer. You can use the v-model `activeRenameItemId` to fully control the rename item.
24
+ - The rename event is still present
25
+ - The property `canBeRenamed` present on each FileExplorerItem's data model was removed
26
+ - Default delete behavior was removed
27
+ - This used to be tightly coupled to the context menu slot. Now the delete behavior is completely controlled by the component consumer.
28
+ - When items are deleted, the `items` prop will naturally update on the consumer's context, leading to an update in the FileExplorer's state/UI
29
+ - The `delete-items` event was removed.
30
+ - The property `canBeDeleted` present on each FileExplorerItem's data model was removed
31
+ - The `openFile` event was changed.
32
+ - Now, all non-directory items emit this event. It's up to the consumer to determine what to do
33
+ - The `isOpenableFile` present on each FileExplorerItem's data model was removed
34
+
35
+ ### Patch Changes
36
+
37
+ - 8ce48b8: Fix `KdsAccordion` items spacing.
38
+ - @knime/kds-styles@0.29.0
39
+
3
40
  ## 0.28.10
4
41
 
5
42
  ### Patch Changes