@demos-europe/demosplan-ui 0.0.5 → 0.0.6
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/components/core/form/DpRadio.vue +13 -16
- package/webpack.config.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## UNRELEASED
|
|
4
4
|
|
|
5
|
+
## v0.0.6 - 2023-01-06
|
|
6
|
+
|
|
7
|
+
- **Breaking:** Refactor DpRadio props: bundle label related props in a single object
|
|
8
|
+
- Fix DpEditor "TypeError: Class constructor cannot be invoked without 'new'"
|
|
9
|
+
|
|
5
10
|
## v0.0.5 - 2023-01-05
|
|
6
11
|
|
|
7
12
|
- Move modules that are also present within demosplan to externals to reduce compiled filesize
|
package/package.json
CHANGED
|
@@ -14,8 +14,15 @@
|
|
|
14
14
|
:data-cy="dataCy !== '' ? dataCy : false"
|
|
15
15
|
@change="$emit('change', $event.target.checked)"><!--
|
|
16
16
|
--><dp-label
|
|
17
|
+
v-if="label.text"
|
|
17
18
|
:class="prefixClass('o-form__label')"
|
|
18
|
-
v-bind="
|
|
19
|
+
v-bind="{
|
|
20
|
+
bold: false,
|
|
21
|
+
text: '',
|
|
22
|
+
for: id,
|
|
23
|
+
required: required,
|
|
24
|
+
...label,
|
|
25
|
+
}" />
|
|
19
26
|
</div>
|
|
20
27
|
</template>
|
|
21
28
|
|
|
@@ -74,9 +81,11 @@ export default {
|
|
|
74
81
|
},
|
|
75
82
|
|
|
76
83
|
label: {
|
|
77
|
-
type:
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
type: Object,
|
|
85
|
+
default: () => ({}),
|
|
86
|
+
validator: (prop) => {
|
|
87
|
+
return Object.keys(prop).every(key => ['bold', 'hint', 'text'].includes(key))
|
|
88
|
+
}
|
|
80
89
|
},
|
|
81
90
|
|
|
82
91
|
name: {
|
|
@@ -102,18 +111,6 @@ export default {
|
|
|
102
111
|
required: false,
|
|
103
112
|
default: '1'
|
|
104
113
|
}
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
computed: {
|
|
108
|
-
labelProps () {
|
|
109
|
-
return {
|
|
110
|
-
for: this.id,
|
|
111
|
-
hint: this.hint,
|
|
112
|
-
text: this.label,
|
|
113
|
-
required: this.required,
|
|
114
|
-
bold: this.bold
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
</script>
|
package/webpack.config.js
CHANGED
|
@@ -16,6 +16,12 @@ function resolve (dir) {
|
|
|
16
16
|
return path.join(__dirname, dir)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
const transpileNodeModules = [
|
|
20
|
+
'tiptap',
|
|
21
|
+
'tiptap-commands',
|
|
22
|
+
'tiptap-extensions',
|
|
23
|
+
].map(module => resolve('node_modules/' + module))
|
|
24
|
+
|
|
19
25
|
const config = {
|
|
20
26
|
entry: resolve('./src/index.js'),
|
|
21
27
|
output: {
|
|
@@ -59,6 +65,7 @@ const config = {
|
|
|
59
65
|
{
|
|
60
66
|
test: /\.(js|jsx)$/i,
|
|
61
67
|
exclude: /node_modules/,
|
|
68
|
+
include: transpileNodeModules,
|
|
62
69
|
loader: 'babel-loader'
|
|
63
70
|
},
|
|
64
71
|
{
|