@farm-investimentos/front-mfe-components 14.1.0 → 14.1.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": "@farm-investimentos/front-mfe-components",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -156,10 +156,6 @@ section {
156
156
  color: #fff !important;
157
157
  }
158
158
 
159
- .hidden-input {
160
- display: none;
161
- }
162
-
163
159
  .upload-icon {
164
160
  cursor: pointer;
165
161
  }
@@ -24,8 +24,13 @@ export const MaxFileSize = () => ({
24
24
  });
25
25
 
26
26
  export const MaxFilesNumber = () => ({
27
+ methods: {
28
+ onMaxFilesNumberWarning() {
29
+ alert('Max files count reached');
30
+ },
31
+ },
27
32
  template: `<div>
28
- <farm-multiple-filepicker :maxFileSize="5" :maxFilesNumber="2" />
33
+ <farm-multiple-filepicker :maxFileSize="5" :maxFilesNumber="2" @onMaxFilesNumberWarning="onMaxFilesNumberWarning" />
29
34
  max files allowed: 2
30
35
  </div>`,
31
36
  });
@@ -5,9 +5,6 @@
5
5
  name="file"
6
6
  multiple
7
7
  ref="upload"
8
- :class="{
9
- 'hidden-input': hasFiles,
10
- }"
11
8
  :accept="acceptedFileTypes"
12
9
  @change="fileChange($event.target.files)"
13
10
  />