@demos-europe/demosplan-ui 0.13.0 → 0.14.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.
Binary file
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
4
4
 
5
5
  ## UNRELEASED
6
6
 
7
+ ## v0.14.0 - 2026-3-16
8
+
9
+ ### Fixed
10
+ - ([#1454](https://github.com/demos-europe/demosplan-ui/pull/1454)) DpUpload: Send credentials with TUS upload requests to fix Firefox 401 errors ([@mussbach](https://github.com/mussbach))
11
+
7
12
  ## v0.13.0 - 2026-3-6
8
13
 
9
14
  ### Added
@@ -34604,7 +34604,8 @@ const QW = /* @__PURE__ */ oe(JW, [["render", XW]]), yg = () => ({
34604
34604
  this.currentFileHash = i.getHeader("X-Demosplan-File-Hash"), this.currentFileId = i.getHeader("X-Demosplan-File-Id");
34605
34605
  },
34606
34606
  removeFingerprintOnSuccess: !0,
34607
- headers: e
34607
+ headers: e,
34608
+ withCredentials: !0
34608
34609
  });
34609
34610
  const n = document.querySelectorAll(".uppy-DragDrop-input");
34610
34611
  n && n.forEach((r, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demos-europe/demosplan-ui",
3
- "version": "0.13.0",
3
+ "version": "0.14.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",
@@ -235,6 +235,7 @@ export default {
235
235
  },
236
236
  removeFingerprintOnSuccess: true,
237
237
  headers,
238
+ withCredentials: true,
238
239
  })
239
240
 
240
241
  // Access the hidden input element, that accepted files array.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ * Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
  */
5
5
 
6
6
  export default {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-box-shadow-xl: 0 0 16px rgb(0 0 0 / 20%), 0 0 3px rgb(0 0 0 / 50%) !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-breakpoints-xl: 1400px;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-color-highlight-contrast: $dp-color-white !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-color-11-11: #313695;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-color-magenta-dark-2: #650324 !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-color-background-medium: $dp-color-neutral-light-3 !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-font-size-7: 50px !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-rounded-full: 9999px;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-space-1_5: 9px;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 06 Mar 2026 10:53:53 GMT
3
+ // Generated on Mon, 16 Mar 2026 15:08:08 GMT
4
4
 
5
5
 
6
6
  $dp-z-ultimate: 10000;
@@ -1,8 +0,0 @@
1
- {
2
- "enableAllProjectMcpServers": false,
3
- "permissions": {
4
- "allow": [
5
- "Bash(yarn list:*)"
6
- ]
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/demosplan-ui.iml" filepath="$PROJECT_DIR$/.idea/demosplan-ui.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/php.xml DELETED
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MessDetectorOptionsConfiguration">
4
- <option name="transferred" value="true" />
5
- </component>
6
- <component name="PHPCSFixerOptionsConfiguration">
7
- <option name="transferred" value="true" />
8
- </component>
9
- <component name="PHPCodeSnifferOptionsConfiguration">
10
- <option name="highlightLevel" value="WARNING" />
11
- <option name="transferred" value="true" />
12
- </component>
13
- <component name="PhpStanOptionsConfiguration">
14
- <option name="transferred" value="true" />
15
- </component>
16
- <component name="PsalmOptionsConfiguration">
17
- <option name="transferred" value="true" />
18
- </component>
19
- </project>
package/.idea/vcs.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
6
- </component>
7
- </project>
@@ -1,25 +0,0 @@
1
- [12:00:30.298] [INFO] storybook v10.2.13
2
- [12:00:30.888] [WARN] As of Storybook 10.0, PnP is deprecated.
3
- If you are using PnP, you can continue to use Storybook 10.0, but we recommend migrating to a different package manager or linker-mode.
4
-
5
- In future versions, PnP compatibility will be removed.
6
- [12:00:31.170] [DEBUG] Getting package.json info for /home/natalija/Development/demosplan-ui/package.json...
7
- [12:00:31.458] [INFO] Storybook collects completely anonymous usage telemetry. We use it to shape Storybook's roadmap and prioritize features. You can learn more, including how to opt out, at https://storybook.js.org/telemetry
8
- [12:00:31.671] [INFO] Starting...
9
- [12:00:31.682] [WARN] unable to find package.json for @vueuse/components
10
- [12:00:31.683] [WARN] unable to find package.json for @vueuse/integrations
11
- [12:00:32.120] [ERROR] Error: Build failed with 2 errors:
12
- node_modules/storybook/dist/core-server/presets/common-manager.js:64:34: ERROR: Could not resolve "@storybook/global"
13
- node_modules/storybook/dist/core-server/presets/common-manager.js:92:38: ERROR: Could not resolve "storybook/internal/csf"
14
- at failureErrorWithLog (./node_modules/esbuild/lib/main.js:1467:15)
15
- at ./node_modules/esbuild/lib/main.js:926:25
16
- at runOnEndCallbacks (./node_modules/esbuild/lib/main.js:1307:45)
17
- at buildResponseToResult (./node_modules/esbuild/lib/main.js:924:7)
18
- at ./node_modules/esbuild/lib/main.js:951:16
19
- at responseCallbacks.<computed> (./node_modules/esbuild/lib/main.js:603:9)
20
- at handleIncomingPacket (./node_modules/esbuild/lib/main.js:658:12)
21
- at Socket.readFromStdout (./node_modules/esbuild/lib/main.js:581:7)
22
- at Socket.emit (node:events:519:28)
23
- at addChunk (node:internal/streams/readable:561:12)
24
- [12:00:32.123] [WARN] Broken build, fix the error above.
25
- You may need to refresh the browser.
File without changes
@@ -1,102 +0,0 @@
1
- import { computed, isRef } from 'vue'
2
- import { prefixClass } from '../../utils'
3
-
4
- /**
5
- * Composable to extract and centralize DpLabel logic for reusability across components and projects.
6
- *
7
- * This composable handles:
8
- * - Class building based on bold/hide options
9
- * - Hint normalization (string or array to array)
10
- * - Label association logic
11
- *
12
- * @param {{hide: ComputedRef<boolean>; hint: ComputedRef<string | (string[] & {}) | string[]>; for: ComputedRef<String>; bold: ComputedRef<boolean>}} options - Configuration options
13
- * @param {Boolean|Ref<Boolean>} [options.bold=true] - Whether the label should be bold
14
- * @param {Boolean|Ref<Boolean>} [options.hide=false] - Whether to hide the label visually (keeps it accessible for screen readers)
15
- * @param {String|String[]|Ref<String|String[]>} [options.hint=[]] - Hint text(s) to display below the label
16
- * @param {String|Ref<String>} options.for - The id of the input element this label is for
17
- *
18
- * @returns {Object} Object containing computed refs
19
- * @returns {ComputedRef<String[]>} classes - CSS classes for the label element
20
- * @returns {ComputedRef<String[]>} hints - Normalized array of hint texts
21
- * @returns {ComputedRef<String>} labelFor - The id for the label's 'for' attribute
22
- *
23
- * @example
24
- * // Basic usage with static values
25
- * const { classes, hints, labelFor } = labelProps({
26
- * bold: true,
27
- * hide: false,
28
- * hint: 'This is a hint',
29
- * for: 'my-input-id'
30
- * })
31
- *
32
- * @example
33
- * // Usage with reactive values (refs)
34
- * import { ref } from 'vue'
35
- *
36
- * const bold = ref(true)
37
- * const hide = ref(false)
38
- * const hint = ref(['First hint', 'Second hint'])
39
- *
40
- * const { classes, hints, labelFor } = labelProps({
41
- * bold,
42
- * hide,
43
- * hint,
44
- * for: 'my-input-id'
45
- * })
46
- *
47
- * @example
48
- * // Usage in a component with props
49
- * import { computed } from 'vue'
50
- *
51
- * const { classes, hints, labelFor } = labelProps({
52
- * bold: computed(() => props.bold),
53
- * hide: computed(() => props.hide),
54
- * hint: computed(() => props.hint),
55
- * for: computed(() => props.for)
56
- * })
57
- */
58
- export function labelProps(options = {}) {
59
- const {
60
- bold = true,
61
- hide = false,
62
- hint = [],
63
- for: forAttr
64
- } = options
65
-
66
- const classes = computed(() => {
67
- let cssClasses = ['flex flex-col']
68
-
69
- const hideValue = isRef(hide) ? hide.value : hide
70
- const boldValue = isRef(bold) ? bold.value : bold
71
-
72
- if (hideValue) {
73
- cssClasses.push('sr-only')
74
- }
75
-
76
- if (boldValue) {
77
- cssClasses.push('font-semibold')
78
- }
79
-
80
- return cssClasses.map((selector) => prefixClass(selector))
81
- })
82
-
83
- const hints = computed(() => {
84
- const hintValue = isRef(hint) ? hint.value : hint
85
-
86
- if (hintValue) {
87
- return Array.isArray(hintValue) ? hintValue : [hintValue]
88
- }
89
-
90
- return []
91
- })
92
-
93
- const labelFor = computed(() => {
94
- return isRef(forAttr) ? forAttr.value : forAttr
95
- })
96
-
97
- return {
98
- labelFor,
99
- hints,
100
- classes,
101
- }
102
- }