comand-component-library 3.1.43 → 3.1.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.umd.min.js +1 -1
- package/package.json +3 -2
- package/src/App.vue +6 -1
- package/src/components/CmdFormElement.vue +2 -6
- package/src/components/CmdLoginForm.vue +3 -3
- package/src/components/CmdProgressBar.vue +1 -1
- package/src/components/CmdSwitchButton.vue +5 -3
- package/src/components/CmdUploadForm.vue +722 -174
- package/src/mixins/CmdUploadForm/DefaultMessageProperties.js +49 -0
- package/src/mixins/I18n.js +56 -0
- package/src/utils/GetFileExtension.js +15 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "comand-component-library",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.44",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"serve": "vue-cli-service serve",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
],
|
18
18
|
"dependencies": {
|
19
19
|
"clickout-event": "^1.1.2",
|
20
|
-
"comand-frontend-framework": "^3.2.
|
20
|
+
"comand-frontend-framework": "^3.2.27",
|
21
21
|
"core-js": "^3.16.1",
|
22
22
|
"vue": "^3.2.1",
|
23
23
|
"vue-router": "^4.0.11",
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"@vue/cli-plugin-vuex": "^4.5.13",
|
31
31
|
"@vue/cli-service": "^4.5.13",
|
32
32
|
"@vue/compiler-sfc": "^3.1.5",
|
33
|
+
"axios": "^0.24.0",
|
33
34
|
"babel-eslint": "^10.1.0",
|
34
35
|
"eslint": "^6.7.2",
|
35
36
|
"eslint-plugin-vue": "^7.14.0",
|
package/src/App.vue
CHANGED
@@ -758,7 +758,12 @@
|
|
758
758
|
<a id="section-upload-form"></a>
|
759
759
|
<CmdWidthLimitationWrapper>
|
760
760
|
<h2 class="headline-demopage">Upload-Form</h2>
|
761
|
-
<CmdUploadForm headline="Select files to upload"
|
761
|
+
<CmdUploadForm headline="Select files to upload"
|
762
|
+
:enableDragAndDrop="true"
|
763
|
+
:allowedFileExtensions="['jpg']"
|
764
|
+
:allowMultipleFileUploads="true"
|
765
|
+
:uploadOptions="{url: 'http://localhost:8888'}"
|
766
|
+
/>
|
762
767
|
</CmdWidthLimitationWrapper>
|
763
768
|
</main>
|
764
769
|
|
@@ -28,7 +28,6 @@
|
|
28
28
|
@change="$emit('change', $event)"
|
29
29
|
:autocomplete="datalist ? 'off' : 'on'"
|
30
30
|
:list="datalist ? datalist.id : false"
|
31
|
-
:disabled="status === 'disabled'"
|
32
31
|
:value="value"
|
33
32
|
/>
|
34
33
|
</template>
|
@@ -50,7 +49,6 @@
|
|
50
49
|
:value="inputValue"
|
51
50
|
:class="[htmlClass, status, { 'replace-input-type': replaceInputType }]"
|
52
51
|
:id="id"
|
53
|
-
:disabled="status === 'disabled'"
|
54
52
|
:aria-invalid="status === 'error'"
|
55
53
|
:aria-describedby="`status-message-${id}`"
|
56
54
|
/>
|
@@ -66,7 +64,6 @@
|
|
66
64
|
<select v-if="element === 'select'"
|
67
65
|
v-bind="$attrs"
|
68
66
|
:id="id"
|
69
|
-
:disabled="status === 'disabled'"
|
70
67
|
@change="$emit('input', $event.target.value)"
|
71
68
|
>
|
72
69
|
<option v-for="(option, index) in selectOptions" :key="index" :value="option.value"
|
@@ -79,7 +76,6 @@
|
|
79
76
|
<textarea v-if="element === 'textarea'"
|
80
77
|
v-bind="$attrs"
|
81
78
|
:id="id"
|
82
|
-
:disabled="status === 'disabled'"
|
83
79
|
:value="value"
|
84
80
|
@input="onInput"
|
85
81
|
@focus="tooltip = true"
|
@@ -94,7 +90,7 @@
|
|
94
90
|
<!-- begin searchfield -->
|
95
91
|
<span v-else-if="element === 'input' && $attrs.type === 'search'" class="flex-container no-gap">
|
96
92
|
<input v-bind="$attrs" :id="id" @input="onInput" :value="value"/>
|
97
|
-
<button class="no-flex" type="button"
|
93
|
+
<button class="no-flex" type="button">
|
98
94
|
<span class="icon-search"></span>
|
99
95
|
</button>
|
100
96
|
</span>
|
@@ -102,7 +98,7 @@
|
|
102
98
|
</label>
|
103
99
|
|
104
100
|
<!-- begin button -->
|
105
|
-
<button v-else class="button" v-bind="$attrs"
|
101
|
+
<button v-else class="button" v-bind="$attrs">
|
106
102
|
<span v-if="buttonIcon.iconPosition === 'before'" :class="buttonIcon.iconClass"></span>
|
107
103
|
<span v-if="buttonIcon.iconPosition">{{ buttonText }}</span>
|
108
104
|
<template v-else>
|
@@ -142,9 +142,9 @@
|
|
142
142
|
:class="['button', { primary: buttons.sendLogin.primary }]"
|
143
143
|
>
|
144
144
|
<span
|
145
|
-
v-if="buttons.sendLogin.icon
|
146
|
-
:class="buttons.sendLogin.icon
|
147
|
-
:title="buttons.sendLogin.icon
|
145
|
+
v-if="buttons.sendLogin.icon?.iconClass"
|
146
|
+
:class="buttons.sendLogin.icon?.iconClass"
|
147
|
+
:title="buttons.sendLogin.icon?.tooltip"
|
148
148
|
></span>
|
149
149
|
<span v-if="buttons.sendLogin.text">{{ buttons.sendLogin.text }}</span>
|
150
150
|
</button>
|
@@ -4,9 +4,11 @@
|
|
4
4
|
'colored' : colored, 'on' : colored && isChecked,
|
5
5
|
'off' : colored && !isChecked, 'disabled': $attrs.disabled
|
6
6
|
}
|
7
|
-
]"
|
8
|
-
|
9
|
-
|
7
|
+
]"
|
8
|
+
:for="id"
|
9
|
+
:title="$attrs.title"
|
10
|
+
>
|
11
|
+
<input :type="type" :id="id" :name="name" :value="inputValue" :checked="isChecked" @change="onChange" v-bind="$attrs"/>
|
10
12
|
<span class="label" v-if="onLabel && offLabel && !labelText">{{ onLabel }}</span>
|
11
13
|
<span class="label" v-if="onLabel && offLabel && !labelText">{{ offLabel }}</span>
|
12
14
|
<span class="label" v-if="!onLabel && !offLabel && labelText">{{ labelText }}</span>
|