avo 2.13.3.pre.4 → 2.13.4.pre.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.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/javascript/js/controllers/fields/date_field_controller.js +5 -1
- data/lib/avo/svg_finder.rb +14 -10
- data/lib/avo/version.rb +1 -1
- data/public/avo-assets/avo.js +50 -50
- data/public/avo-assets/avo.js.map +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfce3adc5884d591b4c562245c6111e3844f3b71ba028015b9fb02f2890b77b
|
4
|
+
data.tar.gz: 02e2bb8248bf0232c68a596388d4f8be956be9b97c5c114cab27c6f9c5b85d56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d073957e4ffe0426fbc7583b0a19f1ac2c140ee20c4a2bc418e50a51c6e677a3550d6b4011e4d502f3be564bc4b5f41d742077e145c4ce8bc2700291b402be3b
|
7
|
+
data.tar.gz: 2041ac955eecbe269a27fd3edd515e09d45d21351d59697d30629d24eebdc18fac02467d5b91dcf2157994e46dd0a4e561cba4191696e0ca0c6950ac6d6733fe
|
data/Gemfile.lock
CHANGED
@@ -117,7 +117,11 @@ export default class extends Controller {
|
|
117
117
|
|
118
118
|
flatpickr(this.fakeInputTarget, options)
|
119
119
|
|
120
|
-
|
120
|
+
if (this.enableTimeValue) {
|
121
|
+
this.updateRealInput(this.parsedValue.setZone(this.displayTimezone).toISO())
|
122
|
+
} else {
|
123
|
+
this.updateRealInput(universalTimestamp(this.initialValue))
|
124
|
+
}
|
121
125
|
}
|
122
126
|
|
123
127
|
onChange(selectedDates) {
|
data/lib/avo/svg_finder.rb
CHANGED
@@ -9,16 +9,7 @@ class Avo::SvgFinder
|
|
9
9
|
|
10
10
|
# Use the default static finder logic. If that doesn't find anything, search according to our pattern:
|
11
11
|
def pathname
|
12
|
-
found_asset =
|
13
|
-
asset = ::Rails.application.assets[@filename]
|
14
|
-
Pathname.new(asset.filename) if asset.present?
|
15
|
-
else
|
16
|
-
manifest = ::Rails.application.assets_manifest
|
17
|
-
asset_path = manifest.assets[@filename]
|
18
|
-
unless asset_path.nil?
|
19
|
-
::Rails.root.join(manifest.directory, asset_path)
|
20
|
-
end
|
21
|
-
end
|
12
|
+
found_asset = default_strategy
|
22
13
|
|
23
14
|
# Use the found asset
|
24
15
|
return found_asset if found_asset.present?
|
@@ -37,5 +28,18 @@ class Avo::SvgFinder
|
|
37
28
|
|
38
29
|
path
|
39
30
|
end
|
31
|
+
|
32
|
+
def default_strategy
|
33
|
+
if ::Rails.application.config.assets.compile
|
34
|
+
asset = ::Rails.application.assets[@filename]
|
35
|
+
Pathname.new(asset.filename) if asset.present?
|
36
|
+
else
|
37
|
+
manifest = ::Rails.application.assets_manifest
|
38
|
+
asset_path = manifest.assets[@filename]
|
39
|
+
unless asset_path.nil?
|
40
|
+
::Rails.root.join(manifest.directory, asset_path)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
40
44
|
end
|
41
45
|
|
data/lib/avo/version.rb
CHANGED