bard-file_field 0.1.3 → 0.1.5

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: d1564d656a245d40ed35cf08cb1a79d0520431b90ffe94d8161593b96b5c3c3c
4
- data.tar.gz: c0052773f75fde272a80e409bbbd64834b555049da9c47fa772e142c8ef470ac
3
+ metadata.gz: 21a07daaa98d68d77291864ff9fd6d4d84c015839969e080a07bbc14c1090e16
4
+ data.tar.gz: 65464101a67f2e72a5a5e52c2d88f81890d5114ec46fc79afde1b0ae9b3797a3
5
5
  SHA512:
6
- metadata.gz: e0c02b29dcc6a052457dd27b877b5ac4c1be45912fc3ecd3f61245fdc32179a9999c572776d410e0aa804c0f46e766a7ef66c15769a0d4e1081b6d4cb6aede51
7
- data.tar.gz: d17972f0b7fce63bb8650d46d3bbd872f5692e956da9299ee0327784043d8a6a2c6f14016e489a38aa6a9fd206b6acd5b8cd40c6dac4c5a490c27de9be96de09
6
+ metadata.gz: 70538874bffa086fa2a73835e262117de7a7bffcc73b0d17bede1744078d071320cf14630413f7acc0c4ea36a229812a9386739c7ffb6f8aec8670277760a2a4
7
+ data.tar.gz: 19078bfe61accc9cec5fea853a2bf8909846c9daa8688f740042d40bd6398b4078b66f7b236165b4394259b9016e4063116d15f78b2a13da79d29497ff2117fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bard-file_field (0.1.3)
4
+ bard-file_field (0.1.5)
5
5
  activestorage (>= 7.1.0)
6
6
 
7
7
  GEM
@@ -4790,7 +4790,9 @@ const BardFile$1 = /*@__PURE__*/ proxyCustomElement(class BardFile extends H {
4790
4790
  componentWillLoad() {
4791
4791
  this.el.removeAttribute("id");
4792
4792
  FormController.instance(this.el.closest("form"));
4793
- this.files = Array.from(this.el.children).filter(e => e.tagName == "UPLOADED-FILE");
4793
+ const existingFiles = Array.from(this.el.children).filter(e => e.tagName == "UPLOADED-FILE");
4794
+ if (existingFiles.length > 0)
4795
+ this.files = existingFiles;
4794
4796
  }
4795
4797
  // Methods
4796
4798
  get files() {
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module FileField
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -0,0 +1 @@
1
+ require "bard/file_field"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-file_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-17 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage
@@ -166,6 +166,7 @@ files:
166
166
  - dummy/tmp/.keep
167
167
  - dummy/tmp/pids/.keep
168
168
  - dummy/tmp/storage/.keep
169
+ - lib/bard-file_field.rb
169
170
  - lib/bard/file_field.rb
170
171
  - lib/bard/file_field/field.rb
171
172
  - lib/bard/file_field/form_builder.rb