@demos-europe/demosplan-ui 0.1.5 → 0.1.7

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 (72) hide show
  1. package/CHANGELOG.md +42 -2
  2. package/dist/demosplan-ui.umd.js +1 -1
  3. package/jest/setup.js +18 -0
  4. package/jest/shallowMountWithGlobalMocks.js +41 -0
  5. package/jest.config.js +47 -17
  6. package/package.json +4 -2
  7. package/src/components/DpAutocomplete/DpAutocomplete.stories.mdx +34 -0
  8. package/src/components/DpButtonRow/DpButtonRow.vue +4 -3
  9. package/src/components/DpCheckboxGroup/DpCheckboxGroup.vue +2 -2
  10. package/src/components/DpDataTable/DpDataTable.vue +1 -1
  11. package/src/components/DpDataTable/DpDataTableExtended.vue +3 -3
  12. package/src/components/DpDataTable/DpSelectPageItemCount.vue +1 -1
  13. package/src/components/DpDataTable/DpTableRow.vue +3 -3
  14. package/src/components/DpDetails/DpDetails.vue +1 -1
  15. package/src/components/DpFlyout/DpFlyout.vue +1 -1
  16. package/src/components/DpInlineNotification/DpInlineNotification.vue +2 -2
  17. package/src/components/DpLabel/DpLabel.vue +2 -2
  18. package/src/components/DpMultiselect/DpMultiselect.vue +1 -1
  19. package/src/components/DpPager/DpPager.vue +4 -4
  20. package/src/components/DpSearchField/DpSearchField.vue +3 -3
  21. package/src/components/DpTimePicker/DpTimePicker.vue +1 -1
  22. package/src/components/DpTreeList/DpTreeListNode.vue +1 -1
  23. package/src/components/core/DpAnonymizeText.vue +1 -1
  24. package/src/components/core/DpBulkEditHeader.vue +1 -1
  25. package/src/components/core/DpEditor/DpEditor.vue +6 -6
  26. package/src/components/core/DpSwitcher.vue +2 -2
  27. package/src/components/core/DpTableCardList/DpTableCardListHeader.vue +1 -1
  28. package/src/components/core/DpUpload/DpUploadedFile.vue +1 -1
  29. package/src/components/core/index.js +0 -4
  30. package/src/components/core/notify/DpNotifyMessage.vue +2 -2
  31. package/src/components/index.js +0 -4
  32. package/src/index.js +2 -4
  33. package/src/lib/DpApi.js +16 -1
  34. package/src/lib/index.js +2 -1
  35. package/tests/DataTableSearch.spec.js +33 -0
  36. package/tests/DpContextualHelp.spec.js +23 -0
  37. package/tests/DpLabel.spec.js +28 -0
  38. package/tests/DpNotifyMessage.spec.js +131 -0
  39. package/tests/DpTreeListCheckbox.spec.js +73 -0
  40. package/tests/DpUpload/DpUploadFiles.spec.js +76 -0
  41. package/tests/Modal.spec.js +31 -0
  42. package/tests/Obscure.spec.js +38 -0
  43. package/tests/Tiptap/__snapshots__/handleWordPaste.spec.js.snap +7 -0
  44. package/tests/Tiptap/handleWordPaste.spec.js +8 -0
  45. package/tests/__mocks__/wordContentSnippets.mock.js +5 -0
  46. package/tests/__snapshots__/DpContextualHelp.spec.js.snap +3 -0
  47. package/tests/__snapshots__/DpNotifyMessage.spec.js.snap +23 -0
  48. package/tests/form/DpCheckbox.spec.js +46 -0
  49. package/tests/form/DpInput.spec.js +46 -0
  50. package/tests/form/DpSelect.spec.js +67 -0
  51. package/tests/form/shared/Attributes.js +56 -0
  52. package/tests/form/shared/Label.js +20 -0
  53. package/tests/prefixClass.spec.js +22 -0
  54. package/{src/tests → tests}/utils/date.test.js +2 -2
  55. package/{src/tests → tests}/utils/debounce.test.js +2 -2
  56. package/{src/tests → tests}/utils/deepMerge.test.js +1 -1
  57. package/{src/tests → tests}/utils/formatBytes.test.js +2 -2
  58. package/{src/tests → tests}/utils/hasOwnProp.test.js +1 -1
  59. package/{src/tests → tests}/utils/hasPermission.test.js +1 -1
  60. package/{src/tests → tests}/utils/sortAlphabetically.test.js +5 -5
  61. package/{src/tests → tests}/utils/uniqueArrayByObjectKey.test.js +2 -2
  62. package/tokens/scss/_boxShadow.scss +1 -1
  63. package/tokens/scss/_color.brand.scss +1 -1
  64. package/tokens/scss/_color.data.scss +1 -1
  65. package/tokens/scss/_color.palette.scss +1 -1
  66. package/tokens/scss/_color.ui.scss +1 -1
  67. package/tokens/scss/_fontSize.scss +1 -1
  68. package/tokens/scss/_rounded.scss +1 -1
  69. package/tokens/scss/_space.scss +1 -1
  70. package/src/components/core/DpChangeStateAtDate.stories.mdx +0 -18
  71. package/src/components/core/DpChangeStateAtDate.vue +0 -195
  72. package/src/components/core/DpCopyPasteButton.vue +0 -29
package/CHANGELOG.md CHANGED
@@ -1,19 +1,48 @@
1
1
  # Changelog
2
2
 
3
+ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][common-changelog] recommendations.
4
+
3
5
  ## UNRELEASED
4
6
 
5
- ## v0.1.5
7
+ ## v0.1.7 - 2023-06-27
8
+
9
+ ### Changed
10
+ - ([#325](https://github.com/demos-europe/demosplan-ui/pull/325)) **Breaking:** Remove spacing classes from DpAnonymizeText ([@ahmad-demos](https://github.com/ahmad-demos))
11
+
12
+ ### Added
13
+ - ([#318](https://github.com/demos-europe/demosplan-ui/pull/318)) Add a method called externalApi to make external API calls without including default headers ([@sakutademos](https://github.com/sakutademos))
14
+
15
+ ## v0.1.6 - 2023-06-22
16
+
17
+ ### Changed
18
+
19
+ - ([#306](https://github.com/demos-europe/demosplan-ui/pull/306)) Adapt some utility classes to use tailwind ([@spiess-demos](https://github.com/spiess-demos))
20
+
21
+ ### Removed
22
+
23
+ - ([#303](https://github.com/demos-europe/demosplan-ui/pull/303)) **Breaking**: Remove DpChangeStateAtDate ([@hwiem](https://github.com/hwiem))
24
+ - ([#256](https://github.com/demos-europe/demosplan-ui/pull/256)) **Breaking**: Remove DpCopyPasteButton ([@hwiem](https://github.com/hwiem))
25
+
26
+ ### Fixed
27
+
28
+ - ([#304](https://github.com/demos-europe/demosplan-ui/pull/304)) Fix invalid empty string for DpButtonRow ([@spiess-demos](https://github.com/spiess-demos))
29
+ - ([#319](https://github.com/demos-europe/demosplan-ui/pull/319)) Fix data-cy prop on multiselect ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
30
+
31
+ ## v0.1.5 - 2023-06-16
6
32
 
7
33
  _Historic note: v0.1.4 was a bugfix release that contained picked changes from v0.1.5 at a state
8
34
  where this release was not fully ready yet and has therefore not been merged back to main. It can
9
35
  still be accessed via its release tag._
10
36
 
11
37
  ### Added
38
+
39
+ - ([#268](https://github.com/demos-europe/demosplan-ui/pull/268)) Tests: Add Test setup for Vue Files and some Tests ([@salis-demos](https://github.com/salis-demos))
12
40
  - ([#294](https://github.com/demos-europe/demosplan-ui/pull/294)) Css: A Tailwind Css file is included in the module to be used by projects ([@spiess-demos](https://github.com/spiess-demos))
13
41
  - ([#269](https://github.com/demos-europe/demosplan-ui/pull/269)) DpIcon: new selector `landscape`, `portrait`, or `square`, based on icon proportions ([@spiess-demos](https://github.com/spiess-demos))
14
42
  - ([#270](https://github.com/demos-europe/demosplan-ui/pull/270)) DpIcon: new icons (ai, copy) ([@spiess-demos](https://github.com/spiess-demos))
15
43
 
16
44
  ### Changed
45
+
17
46
  - ([#294](https://github.com/demos-europe/demosplan-ui/pull/294)) **Breaking**: All script names use the colon instead of the dash as separator (eg. "build:tokens") ([@spiess-demos](https://github.com/spiess-demos))
18
47
  - ([#292](https://github.com/demos-europe/demosplan-ui/pull/292)) DpDataTable: Clean V-if/v-for in Preparation for Vue3 ([@salis-demos](https://github.com/salis-demos))
19
48
  - ([#230](https://github.com/demos-europe/demosplan-ui/pull/230)) Move from Functional Component to Template in DpDataTable ([@sakutademos](https://github.com/sakutademos))
@@ -21,15 +50,19 @@ still be accessed via its release tag._
21
50
  - ([#280](https://github.com/demos-europe/demosplan-ui/pull/280)) Adjust DpTableHeader to work with DpDataTable template-based component ([@sakutademos](https://github.com/sakutademos))
22
51
 
23
52
  ### Fixed
53
+
24
54
  - ([#290](https://github.com/demos-europe/demosplan-ui/pull/290)) Add missing props to DpMultiselect ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
25
55
 
26
- ## v0.1.3 - 2032-05-31
56
+ ## v0.1.3 - 2023-05-31
57
+
27
58
  ### Removed
59
+
28
60
  - ([#255](https://github.com/demos-europe/demosplan-ui/pull/255)) **Breaking**: Remove DpRegisterFlyout ([@hwiem](https://github.com/hwiem))
29
61
  - ([#259](https://github.com/demos-europe/demosplan-ui/pull/259)) **Breaking**: DpButton does not support slots anymore. Use the `icon` prop instead. ([@spiess-demos](https://github.com/spiess-demos))
30
62
 
31
63
 
32
64
  ### Added
65
+
33
66
  - ([#259](https://github.com/demos-europe/demosplan-ui/pull/259)) DpButton: New button variant "subtle" 👻, new props "icon", "iconAfter", "hideText" ([@spiess-demos](https://github.com/spiess-demos))
34
67
  - ([#259](https://github.com/demos-europe/demosplan-ui/pull/259)) DpIcon: New icons (chevron-left, chevron-right, edit) ([@spiess-demos](https://github.com/spiess-demos))
35
68
 
@@ -49,11 +82,13 @@ still be accessed via its release tag._
49
82
  Unfortunately, we had a minor log-entry merge mishap and that wasn't noticed until after the release.
50
83
 
51
84
  ### Fixed
85
+
52
86
  - Remove duplicated prefix from space tokens ([@spiess-demos](https://github.com/spiess-demos))
53
87
 
54
88
  ## v0.1 - 2023-05-16
55
89
 
56
90
  ### Changed
91
+
57
92
  - ([#108](https://github.com/demos-europe/demosplan-ui/pull/108)) **Breaking**: Add design tokens, split generated Scss into multiple files ([@ahmad-demos](https://github.com/ahmad-demos), [@spiess-demos](https://github.com/spiess-demos))
58
93
  - ([#211](https://github.com/demos-europe/demosplan-ui/pull/211)) **Breaking**: Replace Font Awesome with Phosphor Icons ([@spiess-demos](https://github.com/spiess-demos))
59
94
  - ([#205](https://github.com/demos-europe/demosplan-ui/pull/205)) Move from Functional Component to Template in DpTableHeader ([@elmasdemos](https://github.com/elmasdemos))
@@ -79,6 +114,7 @@ Unfortunately, we had a minor log-entry merge mishap and that wasn't noticed unt
79
114
  ## v0.0.19 - 2023-04-06
80
115
 
81
116
  ### Changed
117
+
82
118
  - ([#146](https://github.com/demos-europe/demosplan-ui/pull/146)) Expose DpNotifyMessage and deprecate DpNotifyContainer
83
119
 
84
120
  ### Fixed
@@ -196,3 +232,7 @@ Same as v0.0.13, but with up-to-date build dependencies this time around.
196
232
  ## v0.0.1 - 2022-11-15
197
233
 
198
234
  - This is unfinished and broken. We just need a starting point
235
+
236
+ ---
237
+
238
+ [common-changelog]: https://common-changelog.org