@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.
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +5 -0
- package/dist/demosplan-ui.mjs +2 -1
- package/package.json +1 -1
- package/src/components/DpUploadFiles/DpUpload.vue +1 -0
- package/tokens/dist/css/theme.css +1 -1
- package/tokens/dist/js/boxShadow.js +1 -1
- package/tokens/dist/js/breakpoints.js +1 -1
- package/tokens/dist/js/color.brand.js +1 -1
- package/tokens/dist/js/color.data.js +1 -1
- package/tokens/dist/js/color.palette.js +1 -1
- package/tokens/dist/js/color.ui.js +1 -1
- package/tokens/dist/js/fontSize.js +1 -1
- package/tokens/dist/js/rounded.js +1 -1
- package/tokens/dist/js/space.js +1 -1
- package/tokens/dist/js/zIndex.js +1 -1
- package/tokens/dist/scss/_boxShadow.scss +1 -1
- package/tokens/dist/scss/_breakpoints.scss +1 -1
- package/tokens/dist/scss/_color.brand.scss +1 -1
- package/tokens/dist/scss/_color.data.scss +1 -1
- package/tokens/dist/scss/_color.palette.scss +1 -1
- package/tokens/dist/scss/_color.ui.scss +1 -1
- package/tokens/dist/scss/_fontSize.scss +1 -1
- package/tokens/dist/scss/_rounded.scss +1 -1
- package/tokens/dist/scss/_space.scss +1 -1
- package/tokens/dist/scss/_zIndex.scss +1 -1
- package/.claude/settings.local.json +0 -8
- package/.idea/demosplan-ui.iml +0 -8
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -19
- package/.idea/vcs.xml +0 -7
- package/debug-storybook.log +0 -25
- package/src/components/DpButtonRow/.editorconfig +0 -0
- package/src/composables/LabelProps/LabelProps.js +0 -102
package/.yarn/install-state.gz
CHANGED
|
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
|
package/dist/demosplan-ui.mjs
CHANGED
|
@@ -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
package/tokens/dist/js/space.js
CHANGED
package/tokens/dist/js/zIndex.js
CHANGED
package/.idea/demosplan-ui.iml
DELETED
|
@@ -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
package/debug-storybook.log
DELETED
|
@@ -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] [38;2;241;97;97mError: 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"[39m
|
|
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
|
-
}
|