dropzone_input 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a282646878001432fa9f7ea3f9ef9845b681e47d4f365bdf5f7dea4ce6d2775
4
- data.tar.gz: b8ccddf7ef9ca778d1f3e8f85977fa4d4b1ce20571b51f850cd056b0b05ca00c
3
+ metadata.gz: 1b6978df16683e71da246485abbe9c61910077247541602e200a05ad0efdd905
4
+ data.tar.gz: fe74ecd3c03b1ae6e7aac747ea4544e9c6dc8ab528ae6c816b19d26e79a555b2
5
5
  SHA512:
6
- metadata.gz: 236de3ec694675c8bb83b8c6f634cb41fb0427522a244dc0f65049e43f4545668bf36159c2be1fb57661815f892738c540996216eeb3bb2198d9a111d4e49ca1
7
- data.tar.gz: f9546fbb10ae5eaec063d6818551ddd6e8c91f139f13ad3e208cff1e27ef71fe4d0712f8e345e2b2e38dfd80f9b0d231a7e6108cf00fae8518091da0182fdacd
6
+ metadata.gz: d3fbc2dfe54ad8085941b3f942323f52ae3216835601ec0e0c491b1427f98c1ee2503e08d6e18dbee692938473f809ad370f2c7e7d59571d462c945b1443a2b7
7
+ data.tar.gz: 52576d435d1818871a8498890cfba6540220e14e3947a8ce750a26a658dfa0efeac57ab81ad59ec9576c47e9a433800a1782df04658e41ccea5904cf3911c3af
data/README.md CHANGED
@@ -15,6 +15,24 @@ A Rails helper and Stimulus Controller that makes adding dropzone to a Rails for
15
15
  specific styles, etc) will be non-configurable at the moment. We will work to generalize this over
16
16
  time and *pull requests are welcome* and will be reviewed quickly.
17
17
 
18
+ ## Options & Events
19
+
20
+ | Option Name | Description |
21
+ | -- | -- |
22
+ | `max_files` | default: `null` |
23
+ | `max_file_size` | default: `null` |
24
+ | `parallel_uploads` | default: `2` |
25
+
26
+ Events below receive `file` as first parameter.
27
+
28
+ | Event Name | Description |
29
+ | -- | -- |
30
+ | `file_added_event` | File added to queue |
31
+ | `file_progress_event` | Periodically called while file is being uploaded. `progress` in the second parameter, or through the `upload` property: `file.upload.progress`, `file.upload.bytesSent` |
32
+ | `file_removed_event` | File removed from queue |
33
+ | `file_start_event` | File will start uploading |
34
+ | `file_success_event` | File successfully uploaded |
35
+
18
36
  ## Installation
19
37
 
20
38
  Add to your Gemfile.
@@ -16,13 +16,15 @@ module DropzoneInput
16
16
  max_files
17
17
  max_file_size
18
18
  file_added_event
19
- file_removed_event
20
19
  file_drop_event
20
+ file_drop_id
21
+ file_drop_over_id
21
22
  file_progress_event
23
+ file_removed_event
24
+ file_start_event
22
25
  file_success_event
26
+ parallel_uploads
23
27
  queue_complete_event
24
- file_drop_id
25
- file_drop_over_id
26
28
  ).each do |key|
27
29
  data["dropzone_#{key}".to_sym] = options.delete(key) if options.key?(key)
28
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DropzoneInput
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzone_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails