@demos-europe/demosplan-ui 0.19.0 → 0.21.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 (66) hide show
  1. package/.idea/copilot.data.migration.agent.xml +6 -0
  2. package/.idea/copilot.data.migration.ask.xml +6 -0
  3. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  4. package/.idea/copilot.data.migration.edit.xml +6 -0
  5. package/.idea/encodings.xml +6 -0
  6. package/.idea/git_toolbox_blame.xml +6 -0
  7. package/.idea/git_toolbox_prj.xml +15 -0
  8. package/.idea/sonarlint/issuestore/5/3/53585a096fe3a3b96321113856ae62602995a33b +0 -0
  9. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  10. package/.idea/sonarlint/issuestore/7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e +11 -0
  11. package/.idea/sonarlint/issuestore/8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014 +2 -0
  12. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  13. package/.idea/sonarlint/issuestore/9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48 +0 -0
  14. package/.idea/sonarlint/issuestore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +0 -0
  15. package/.idea/sonarlint/issuestore/a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7 +0 -0
  16. package/.idea/sonarlint/issuestore/b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7 +3 -0
  17. package/.idea/sonarlint/issuestore/index.pb +20 -0
  18. package/.idea/sonarlint/securityhotspotstore/5/3/53585a096fe3a3b96321113856ae62602995a33b +0 -0
  19. package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  20. package/.idea/sonarlint/securityhotspotstore/7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e +0 -0
  21. package/.idea/sonarlint/securityhotspotstore/8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014 +0 -0
  22. package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  23. package/.idea/sonarlint/securityhotspotstore/9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48 +0 -0
  24. package/.idea/sonarlint/securityhotspotstore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +0 -0
  25. package/.idea/sonarlint/securityhotspotstore/a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7 +0 -0
  26. package/.idea/sonarlint/securityhotspotstore/b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7 +0 -0
  27. package/.idea/sonarlint/securityhotspotstore/index.pb +20 -0
  28. package/.idea/sonarlint-state.xml +6 -0
  29. package/.idea/sonarlint.xml +8 -0
  30. package/.idea/vcs.xml +1 -1
  31. package/.yarn/install-state.gz +0 -0
  32. package/CHANGELOG.md +11 -0
  33. package/dist/demosplan-ui.mjs +21 -23
  34. package/docker-compose.dev.yml +7 -0
  35. package/package.json +1 -1
  36. package/src/components/DpButtonRow/DpButtonRow.vue +10 -17
  37. package/src/components/DpDraggable/DpDraggable.vue +1 -1
  38. package/src/components/DpTreeList/DpTreeList.vue +3 -1
  39. package/src/components/DpTreeList/DpTreeListNode.vue +3 -1
  40. package/style/style.css +1002 -0
  41. package/tokens/dist/css/theme.css +1 -1
  42. package/tokens/dist/js/boxShadow.js +1 -1
  43. package/tokens/dist/js/breakpoints.js +1 -1
  44. package/tokens/dist/js/color.brand.js +1 -1
  45. package/tokens/dist/js/color.data.js +1 -1
  46. package/tokens/dist/js/color.palette.js +1 -1
  47. package/tokens/dist/js/color.ui.js +1 -1
  48. package/tokens/dist/js/fontSize.js +1 -1
  49. package/tokens/dist/js/rounded.js +1 -1
  50. package/tokens/dist/js/space.js +1 -1
  51. package/tokens/dist/js/zIndex.js +1 -1
  52. package/tokens/dist/scss/_boxShadow.scss +1 -1
  53. package/tokens/dist/scss/_breakpoints.scss +1 -1
  54. package/tokens/dist/scss/_color.brand.scss +1 -1
  55. package/tokens/dist/scss/_color.data.scss +1 -1
  56. package/tokens/dist/scss/_color.palette.scss +1 -1
  57. package/tokens/dist/scss/_color.ui.scss +1 -1
  58. package/tokens/dist/scss/_fontSize.scss +1 -1
  59. package/tokens/dist/scss/_rounded.scss +1 -1
  60. package/tokens/dist/scss/_space.scss +1 -1
  61. package/tokens/dist/scss/_zIndex.scss +1 -1
  62. package/tokens/scss/_color.scss +89 -0
  63. package/tokens/scss/_fontSize.scss +26 -0
  64. package/tokens/scss/_space.scss +13 -0
  65. package/yarn-error.log +15486 -0
  66. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AskMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Ask2AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EditMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxBlameSettings">
4
+ <option name="version" value="2" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxProjectSettings">
4
+ <option name="commitMessageIssueKeyValidationOverride">
5
+ <BoolValueOverride>
6
+ <option name="enabled" value="true" />
7
+ </BoolValueOverride>
8
+ </option>
9
+ <option name="commitMessageValidationEnabledOverride">
10
+ <BoolValueOverride>
11
+ <option name="enabled" value="true" />
12
+ </BoolValueOverride>
13
+ </option>
14
+ </component>
15
+ </project>
@@ -0,0 +1,11 @@
1
+
2
+ Hjavascript:S1128�"$Remove this unused import of 'Link'.(�֘�8����1
3
+ _javascript:S1125�"6Refactor the code to avoid using this boolean literal.(釶������8����1
4
+ sjavascript:S6638�"JUnexpected constant truthiness on the left-hand side of a `||` expression.(釶������8����1
5
+ Zjavascript:S1125�"6Refactor the code to avoid using this boolean literal.(ގ��8����1
6
+ njavascript:S6638�"JUnexpected constant truthiness on the left-hand side of a `||` expression.(ގ��8����1
7
+ jjavascript:S6661�"AUse an object spread instead of `Object.assign` eg: `{ ...foo }`.(���������8����1
8
+ Sjavascript:S5869�"*Remove duplicates in this character class.(�Ӹ������8����1
9
+ Sjavascript:S5869�"*Remove duplicates in this character class.(������8����1
10
+ Njavascript:S5869�"*Remove duplicates in this character class.(����8����1
11
+ }javascript:S3776�"TRefactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.(���������8����1
@@ -0,0 +1,2 @@
1
+
2
+ ujavascript:S4138�"LExpected a `for-of` loop instead of a `for` loop with this simple iteration.(���������8����1
@@ -0,0 +1,3 @@
1
+
2
+ �
3
+ AY1fKAj5FmUUBg2IRWL- Web:S5256"%Add "<th>" headers to this "<table>".(���������8�����1J$8252767a-cec9-4b7c-b1e4-7569dd1f6731
@@ -0,0 +1,20 @@
1
+
2
+ 9
3
+ README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d
4
+ :
5
+
6
+ .gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
7
+ <
8
+ package.json,7/0/7030d0b2f71b999ff89a343de08c414af32fc93a
9
+ T
10
+ $src/components/DpEditor/DpEditor.vue,7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e
11
+ \
12
+ ,src/components/DpDataTable/DpTableHeader.vue,9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48
13
+ Z
14
+ *src/components/DpDataTable/DpDataTable.vue,b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7
15
+ <
16
+ CHANGELOG.md,a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7
17
+ 9
18
+ yarn.lock,5/3/53585a096fe3a3b96321113856ae62602995a33b
19
+ Y
20
+ )src/components/DpUploadFiles/DpUpload.vue,8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014
@@ -0,0 +1,20 @@
1
+
2
+ 9
3
+ README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d
4
+ :
5
+
6
+ .gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
7
+ <
8
+ package.json,7/0/7030d0b2f71b999ff89a343de08c414af32fc93a
9
+ T
10
+ $src/components/DpEditor/DpEditor.vue,7/9/793162cb1b4e542cbf5f8db45406f4e91f736c0e
11
+ \
12
+ ,src/components/DpDataTable/DpTableHeader.vue,9/c/9cc6b3192a90fe4d986d791c393ab1ac7101ac48
13
+ Z
14
+ *src/components/DpDataTable/DpDataTable.vue,b/7/b7d694611d1aa415d97c7872253457c54d8f1ed7
15
+ <
16
+ CHANGELOG.md,a/b/ab09011fa121d0a2bb9fa4ca76094f2482b902b7
17
+ 9
18
+ yarn.lock,5/3/53585a096fe3a3b96321113856ae62602995a33b
19
+ Y
20
+ )src/components/DpUploadFiles/DpUpload.vue,8/c/8c5bbc0d4ce626bd35d05b960ef906abfd312014
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SonarLintProjectState">
4
+ <lastEventPolling>1668790757487</lastEventPolling>
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SonarLintProjectSettings">
4
+ <option name="bindingEnabled" value="true" />
5
+ <option name="projectKey" value="demos-europe_demosplan-ui" />
6
+ <option name="serverId" value="dplan" />
7
+ </component>
8
+ </project>
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$USER_HOME$/Development/dplan/demosplan-ui" vcs="Git" />
5
5
  </component>
6
6
  </project>
Binary file
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
4
4
 
5
5
  ## UNRELEASED
6
6
 
7
+ ## v0.21.0 - 2026-05-15
8
+
9
+ ## Fixed
10
+ - ([#1488](https://github.com/demos-europe/demosplan-ui/pull/1488)) DpDraggable: Use `e.item` in `onEnd` so the dragged
11
+ element is correct on cross-list tag drops & DpTreeList: Add `end` and `start` to the `emits` array to silence Vue warnings([@riechedemos](https://github.com/riechedemos))
12
+
13
+ ## v0.20.0 - 2026-5-5
14
+
15
+ ### Changed
16
+ - ([#1484](https://github.com/demos-europe/demosplan-ui/pull/1484)) DpButtonRow: new button order; set the secondary button to the outline variant ([@sakutademos](https://github.com/sakutademos))
17
+
7
18
  ## v0.19.0 - 2026-4-30
8
19
 
9
20
  ### Added
@@ -28263,12 +28263,6 @@ const cte = /* @__PURE__ */ ae(aU, [["render", cU]]), dU = {
28263
28263
  required: !1,
28264
28264
  default: !1
28265
28265
  },
28266
- secondaryBtnVariant: {
28267
- required: !1,
28268
- type: String,
28269
- default: "solid",
28270
- validator: (t) => ["solid", "outline", "subtle"].includes(t)
28271
- },
28272
28266
  /**
28273
28267
  * Custom text for the secondary button.
28274
28268
  */
@@ -28299,25 +28293,25 @@ function uU(t, e, n, r, i, s) {
28299
28293
  return g(), b("div", {
28300
28294
  class: H([[s.align, t.$attrs.class], "space-x-2"])
28301
28295
  }, [
28302
- n.primary ? (g(), ue(o, {
28296
+ n.secondary ? (g(), ue(o, {
28303
28297
  key: 0,
28298
+ color: "secondary",
28299
+ "data-cy": `${n.dataCy}:abortButton`,
28300
+ disabled: s.isDisabledSecondary,
28301
+ href: n.href,
28302
+ text: n.secondaryText,
28303
+ variant: "outline",
28304
+ onClick: e[0] || (e[0] = De((a) => t.$emit("secondary-action"), ["prevent"]))
28305
+ }, null, 8, ["data-cy", "disabled", "href", "text"])) : L("", !0),
28306
+ n.primary ? (g(), ue(o, {
28307
+ key: 1,
28304
28308
  busy: n.busy ? !0 : null,
28305
28309
  "data-cy": `${n.dataCy}:saveButton`,
28306
28310
  disabled: s.isDisabledPrimary,
28307
28311
  text: n.primaryText,
28308
28312
  variant: n.primaryBtnVariant,
28309
- onClick: e[0] || (e[0] = De((a) => t.$emit("primary-action"), ["prevent"]))
28313
+ onClick: e[1] || (e[1] = De((a) => t.$emit("primary-action"), ["prevent"]))
28310
28314
  }, null, 8, ["busy", "data-cy", "disabled", "text", "variant"])) : L("", !0),
28311
- n.secondary ? (g(), ue(o, {
28312
- key: 1,
28313
- color: "secondary",
28314
- "data-cy": `${n.dataCy}:abortButton`,
28315
- disabled: s.isDisabledSecondary,
28316
- href: n.href,
28317
- text: n.secondaryText,
28318
- variant: n.secondaryBtnVariant,
28319
- onClick: e[1] || (e[1] = De((a) => t.$emit("secondary-action"), ["prevent"]))
28320
- }, null, 8, ["data-cy", "disabled", "href", "text", "variant"])) : L("", !0),
28321
28315
  z(t.$slots, "default")
28322
28316
  ], 2);
28323
28317
  }
@@ -31000,7 +30994,7 @@ const fp = /* @__PURE__ */ se({
31000
30994
  onChange: (a) => n.handleChange(a, n.nodeId, i),
31001
30995
  onAdd: () => r("add"),
31002
30996
  onEnd: (a) => {
31003
- const l = s.value[a.oldIndex];
30997
+ const l = a.item;
31004
30998
  n.handleDrag("end", a, l, n.nodeId), r("end", a, l, n.nodeId);
31005
30999
  },
31006
31000
  onMove: (a) => {
@@ -38987,8 +38981,10 @@ const C6 = /* @__PURE__ */ ae(YX, [["render", QX]]), eQ = {
38987
38981
  },
38988
38982
  emits: [
38989
38983
  "draggable:change",
38990
- "tree:change",
38991
- "node-selected"
38984
+ "end",
38985
+ "node-selected",
38986
+ "start",
38987
+ "tree:change"
38992
38988
  ],
38993
38989
  data() {
38994
38990
  return {
@@ -39413,9 +39409,11 @@ const lQ = {
39413
39409
  }
39414
39410
  },
39415
39411
  emits: [
39416
- "tree:change",
39417
39412
  "draggable:change",
39418
- "node-selection-change"
39413
+ "end",
39414
+ "node-selection-change",
39415
+ "start",
39416
+ "tree:change"
39419
39417
  ],
39420
39418
  data() {
39421
39419
  return {
@@ -0,0 +1,7 @@
1
+ services:
2
+ demosplan_ui_builder:
3
+ image: node:18-alpine
4
+ working_dir: /app
5
+ volumes:
6
+ - .:/app
7
+ command: sh -c "yarn install && yarn build:prod && tail -f /dev/null"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demos-europe/demosplan-ui",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "license": "MIT",
5
5
  "description": "Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.",
6
6
  "main": "./dist/demosplan-ui.mjs",
@@ -3,15 +3,6 @@
3
3
  :class="[align, $attrs.class]"
4
4
  class="space-x-2"
5
5
  >
6
- <dp-button
7
- v-if="primary"
8
- :busy="busy ? true : null"
9
- :data-cy="`${dataCy}:saveButton`"
10
- :disabled="isDisabledPrimary"
11
- :text="primaryText"
12
- :variant="primaryBtnVariant"
13
- @click.prevent="$emit('primary-action')"
14
- />
15
6
  <dp-button
16
7
  v-if="secondary"
17
8
  color="secondary"
@@ -19,9 +10,18 @@
19
10
  :disabled="isDisabledSecondary"
20
11
  :href="href"
21
12
  :text="secondaryText"
22
- :variant="secondaryBtnVariant"
13
+ variant="outline"
23
14
  @click.prevent="$emit('secondary-action')"
24
15
  />
16
+ <dp-button
17
+ v-if="primary"
18
+ :busy="busy ? true : null"
19
+ :data-cy="`${dataCy}:saveButton`"
20
+ :disabled="isDisabledPrimary"
21
+ :text="primaryText"
22
+ :variant="primaryBtnVariant"
23
+ @click.prevent="$emit('primary-action')"
24
+ />
25
25
  <slot />
26
26
  </div>
27
27
  </template>
@@ -128,13 +128,6 @@ export default {
128
128
  default: false,
129
129
  },
130
130
 
131
- secondaryBtnVariant: {
132
- required: false,
133
- type: String as PropType<ButtonVariant>,
134
- default: 'solid',
135
- validator: (prop: ButtonVariant) => ['solid', 'outline', 'subtle'].includes(prop),
136
- },
137
-
138
131
  /**
139
132
  * Custom text for the secondary button.
140
133
  */
@@ -123,7 +123,7 @@ const { option: changeSortableOption } = useSortable(
123
123
  onChange: (e: Event) => props.handleChange(e, props.nodeId, wrapper),
124
124
  onAdd: () => emit('add'),
125
125
  onEnd: (e) => {
126
- const currentElement = list.value[e.oldIndex]
126
+ const currentElement = e.item
127
127
 
128
128
  props.handleDrag('end', e, currentElement, props.nodeId)
129
129
  emit('end', e, currentElement, props.nodeId)
@@ -169,9 +169,11 @@ export default {
169
169
  },
170
170
 
171
171
  emits: [
172
- 'tree:change',
173
172
  'draggable:change',
173
+ 'end',
174
174
  'node-selection-change',
175
+ 'start',
176
+ 'tree:change',
175
177
  ],
176
178
 
177
179
  data () {
@@ -215,8 +215,10 @@ export default {
215
215
 
216
216
  emits: [
217
217
  'draggable:change',
218
- 'tree:change',
218
+ 'end',
219
219
  'node-selected',
220
+ 'start',
221
+ 'tree:change',
220
222
  ],
221
223
 
222
224
  data () {