@redseed/redseed-ui-vue3 2.25.0 → 2.25.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,23 +42,23 @@ function setState(state) {
42
42
  })
43
43
  }
44
44
 
45
- function setStateDefault() {
45
+ function setDefault() {
46
46
  setState('default')
47
47
  }
48
48
 
49
- function setStateUploading() {
49
+ function setUploading() {
50
50
  setState('uploading')
51
51
  }
52
52
 
53
- function setStateProcessing() {
53
+ function setProcessing() {
54
54
  setState('processing')
55
55
  }
56
56
 
57
- function setStateError() {
57
+ function setError() {
58
58
  setState('error')
59
59
  }
60
60
 
61
- function setStateSuccess() {
61
+ function setSuccess() {
62
62
  setState('success')
63
63
  }
64
64
 
@@ -84,7 +84,7 @@ const uploaderStateIconClass = computed(() => [
84
84
  ])
85
85
 
86
86
  function removeAction() {
87
- setStateDefault()
87
+ setDefault()
88
88
  emit('remove')
89
89
  }
90
90
  </script>
@@ -140,7 +140,9 @@ function removeAction() {
140
140
  <slot name="state-text-error" v-if="stateError">
141
141
  Something went wrong
142
142
  </slot>
143
- <slot name="state-text-success" v-if="stateSuccess"></slot>
143
+ <slot name="state-text-success" v-if="stateSuccess">
144
+ Successfully uploaded
145
+ </slot>
144
146
  </div>
145
147
 
146
148
  <div v-if="stateSuccess && $slots['state-file-size']"
@@ -153,11 +155,11 @@ function removeAction() {
153
155
  class="rsui-form-field-uploader__uploader"
154
156
  >
155
157
  <slot name="uploader"
156
- :setStateDefault="setStateDefault"
157
- :setStateUploading="setStateUploading"
158
- :setStateProcessing="setStateProcessing"
159
- :setStateError="setStateError"
160
- :setStateSuccess="setStateSuccess"
158
+ :setDefault="setDefault"
159
+ :setUploading="setUploading"
160
+ :setProcessing="setProcessing"
161
+ :setError="setError"
162
+ :setSuccess="setSuccess"
161
163
  ></slot>
162
164
  </div>
163
165