workarea-google_address_autocomplete 4.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.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.eslintignore +2 -0
- data/.eslintrc +24 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/.scss-lint.yml +188 -0
- data/CHANGELOG.md +119 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +9 -0
- data/LICENSE +52 -0
- data/README.md +88 -0
- data/Rakefile +64 -0
- data/app/assets/javascripts/workarea/storefront/google_address_autocomplete/config.js.erb +38 -0
- data/app/assets/javascripts/workarea/storefront/google_address_autocomplete/modules/google_address_autocomplete.js.erb +175 -0
- data/app/assets/javascripts/workarea/storefront/google_address_autocomplete/templates/autocomplete_text_box.jst.ejs +1 -0
- data/bin/rails +18 -0
- data/config/initializers/append_points.rb +19 -0
- data/config/initializers/workarea.rb +2 -0
- data/config/locales/en.yml +6 -0
- data/example.png +0 -0
- data/lib/workarea/google_address_autocomplete.rb +12 -0
- data/lib/workarea/google_address_autocomplete/engine.rb +8 -0
- data/lib/workarea/google_address_autocomplete/version.rb +5 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/javascripts/fixtures/address_fields.html.haml +59 -0
- data/test/javascripts/google_address_autocomplete_spec.js +92 -0
- data/test/javascripts/spec_helper.js +4 -0
- data/test/teaspoon_env.rb +10 -0
- data/test/test_helper.rb +10 -0
- data/workarea-google_address_autocomplete.gemspec +24 -0
- metadata +151 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 154dfce92d3a4fcb4351795706dd198b248e088de83e38054ae7f8f5a1c31af3
|
4
|
+
data.tar.gz: 63d97be650500831e7436dd8f6a4a1b4ea5f62d8db59134232f26646bdd2f2db
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2f6c598c3f972f9d286ce950263f167f6ecb926a05934d10a60f5a01f70cca9a261fdbfd9b431c5314afee3922064d5d769dc152321f3926f7b5bebb26478685
|
7
|
+
data.tar.gz: fceee5e017e684d57501dc255fd7356a1b55554b6b47acee62e9af2b8f0d4a3052bb6b8395f9f95f5707c076b90f43c24e32a60dc8b4fe82aed5a75e0d5be05a
|
data/.editorconfig
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# editorconfig.org
|
2
|
+
root = true
|
3
|
+
|
4
|
+
[*]
|
5
|
+
charset = utf-8
|
6
|
+
indent_style = space
|
7
|
+
end_of_line = lf
|
8
|
+
trim_trailing_whitespace = true
|
9
|
+
insert_final_newline = true
|
10
|
+
|
11
|
+
[{*.rb,*.haml,*.decorator,*.yml,*.yaml,*.jbuilder}]
|
12
|
+
indent_size = 2
|
13
|
+
indent_style = space
|
14
|
+
|
15
|
+
[{*.js,*.jst,*.ejs,*.scss}]
|
16
|
+
indent_size = 4
|
17
|
+
|
18
|
+
[*.md]
|
19
|
+
indent_size = 4
|
20
|
+
trim_trailing_whitespace = false
|
data/.eslintignore
ADDED
data/.eslintrc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"extends": "eslint:recommended",
|
3
|
+
"rules": {
|
4
|
+
"semi": [1, "always"]
|
5
|
+
},
|
6
|
+
"globals": {
|
7
|
+
"window": true,
|
8
|
+
"document": true,
|
9
|
+
"WORKAREA": true,
|
10
|
+
"$": true,
|
11
|
+
"jQuery": true,
|
12
|
+
"_": true,
|
13
|
+
"feature": true,
|
14
|
+
"JST": true,
|
15
|
+
"Turbolinks": true,
|
16
|
+
"I18n": true,
|
17
|
+
"Chart": true,
|
18
|
+
"Dropzone": true,
|
19
|
+
"strftime": true,
|
20
|
+
"Waypoint": true,
|
21
|
+
"wysihtml": true,
|
22
|
+
"LocalTime": true,
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve Workarea
|
4
|
+
title: ''
|
5
|
+
labels: bug
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
⚠️**Before you create**⚠️
|
11
|
+
Please verify the issue you're experiencing is not part of your Workarea project customizations. The best way to do this is with a [vanilla Workarea installation](https://developer.workarea.com/articles/create-a-new-host-application.html). This will help us spend time on fixes/improvements for the whole community. Thank you!
|
12
|
+
|
13
|
+
**Describe the bug**
|
14
|
+
A clear and concise description of what the bug is.
|
15
|
+
|
16
|
+
**To Reproduce**
|
17
|
+
Steps to reproduce the behavior:
|
18
|
+
1. Go to '...'
|
19
|
+
2. Click on '....'
|
20
|
+
3. Scroll down to '....'
|
21
|
+
4. See error
|
22
|
+
|
23
|
+
**Expected behavior**
|
24
|
+
A clear and concise description of what you expected to happen.
|
25
|
+
|
26
|
+
**Workarea Setup (please complete the following information):**
|
27
|
+
- Workarea Version: [e.g. v3.4.6]
|
28
|
+
- Plugins [e.g. workarea-blog, workarea-sitemaps]
|
29
|
+
|
30
|
+
**Attachments**
|
31
|
+
If applicable, add any attachments to help explain your problem, things like:
|
32
|
+
- screenshots
|
33
|
+
- Gemfile.lock
|
34
|
+
- test cases
|
35
|
+
|
36
|
+
**Additional context**
|
37
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: Documentation request
|
3
|
+
about: Suggest documentation
|
4
|
+
title: ''
|
5
|
+
labels: documentation
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your documentation related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm confused by [...]
|
12
|
+
|
13
|
+
**Describe the article you'd like**
|
14
|
+
A clear and concise description of what would be in the documentation article.
|
15
|
+
|
16
|
+
**Additional context**
|
17
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for Workarea
|
4
|
+
title: ''
|
5
|
+
labels: enhancement
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
data/.gitignore
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
.bundle/
|
2
|
+
log/*.log
|
3
|
+
pkg/
|
4
|
+
test/dummy/db/*.sqlite3
|
5
|
+
test/dummy/db/*.sqlite3-journal
|
6
|
+
test/dummy/log/*.log
|
7
|
+
test/dummy/tmp/
|
8
|
+
test/dummy/public/
|
9
|
+
test/dummy/.sass-cache
|
10
|
+
Gemfile.lock
|
11
|
+
test/dummy/public/system/dragonfly
|
12
|
+
.DS_STORE
|
13
|
+
node_modules
|
14
|
+
test/reports
|
15
|
+
package.json
|
16
|
+
yarn.lock
|
data/.rspec
ADDED
data/.scss-lint.yml
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
# Extension of the default configuration:
|
2
|
+
# https://github.com/causes/scss-lint/blob/master/config/default.yml
|
3
|
+
|
4
|
+
linters:
|
5
|
+
Comment:
|
6
|
+
enabled: false
|
7
|
+
|
8
|
+
DeclarationOrder:
|
9
|
+
enabled: true
|
10
|
+
|
11
|
+
ElsePlacement:
|
12
|
+
enabled: true
|
13
|
+
style: new_line
|
14
|
+
|
15
|
+
EmptyRule:
|
16
|
+
enabled: false
|
17
|
+
|
18
|
+
HexLength:
|
19
|
+
enabled: true
|
20
|
+
style: long
|
21
|
+
|
22
|
+
Indentation:
|
23
|
+
enabled: true
|
24
|
+
allow_non_nested_indentation: true
|
25
|
+
character: space
|
26
|
+
width: 4
|
27
|
+
|
28
|
+
LeadingZero:
|
29
|
+
enabled: true
|
30
|
+
style: include_zero
|
31
|
+
|
32
|
+
MergeableSelector:
|
33
|
+
enabled: true
|
34
|
+
force_nesting: false
|
35
|
+
|
36
|
+
PropertySortOrder:
|
37
|
+
enabled: true
|
38
|
+
ignore_unspecified: false
|
39
|
+
separate_groups: false
|
40
|
+
order:
|
41
|
+
- display
|
42
|
+
-
|
43
|
+
- position
|
44
|
+
- top
|
45
|
+
- right
|
46
|
+
- bottom
|
47
|
+
- left
|
48
|
+
- z-index
|
49
|
+
-
|
50
|
+
- margin
|
51
|
+
- margin-top
|
52
|
+
- margin-right
|
53
|
+
- margin-bottom
|
54
|
+
- margin-left
|
55
|
+
-
|
56
|
+
- margin-collapse
|
57
|
+
- margin-top-collapse
|
58
|
+
- margin-right-collapse
|
59
|
+
- margin-bottom-collapse
|
60
|
+
- margin-left-collapse
|
61
|
+
-
|
62
|
+
- padding
|
63
|
+
- padding-top
|
64
|
+
- padding-right
|
65
|
+
- padding-bottom
|
66
|
+
- padding-left
|
67
|
+
-
|
68
|
+
- width
|
69
|
+
- height
|
70
|
+
- max-width
|
71
|
+
- max-height
|
72
|
+
- min-width
|
73
|
+
- min-height
|
74
|
+
-
|
75
|
+
- float
|
76
|
+
- clear
|
77
|
+
-
|
78
|
+
- color
|
79
|
+
-
|
80
|
+
- font
|
81
|
+
- font-size
|
82
|
+
- font-style
|
83
|
+
- font-family
|
84
|
+
- font-weight
|
85
|
+
- font-variant
|
86
|
+
- font-smoothing
|
87
|
+
-
|
88
|
+
- line-height
|
89
|
+
- letter-spacing
|
90
|
+
- word-spacing
|
91
|
+
-
|
92
|
+
- text-align
|
93
|
+
- text-indent
|
94
|
+
- text-shadow
|
95
|
+
- text-overflow
|
96
|
+
- text-rendering
|
97
|
+
- text-transform
|
98
|
+
- text-decoration
|
99
|
+
- text-size-adjust
|
100
|
+
-
|
101
|
+
- word-break
|
102
|
+
- word-wrap
|
103
|
+
-
|
104
|
+
- white-space
|
105
|
+
-
|
106
|
+
- background
|
107
|
+
- background-size
|
108
|
+
- background-color
|
109
|
+
- background-image
|
110
|
+
- background-repeat
|
111
|
+
- background-position
|
112
|
+
- background-attachment
|
113
|
+
-
|
114
|
+
- border
|
115
|
+
- border-top
|
116
|
+
- border-right
|
117
|
+
- border-bottom
|
118
|
+
- border-left
|
119
|
+
-
|
120
|
+
- border-image
|
121
|
+
- border-spacing
|
122
|
+
- border-collapse
|
123
|
+
-
|
124
|
+
- border-color
|
125
|
+
- border-top-color
|
126
|
+
- border-right-color
|
127
|
+
- border-bottom-color
|
128
|
+
- border-left-color
|
129
|
+
-
|
130
|
+
- border-style
|
131
|
+
- border-top-style
|
132
|
+
- border-right-style
|
133
|
+
- border-bottom-style
|
134
|
+
- border-left-style
|
135
|
+
-
|
136
|
+
- border-width
|
137
|
+
- border-top-width
|
138
|
+
- border-right-width
|
139
|
+
- border-bottom-width
|
140
|
+
- border-left-width
|
141
|
+
-
|
142
|
+
- border-radius
|
143
|
+
- border-top-right-radius
|
144
|
+
- border-bottom-right-radius
|
145
|
+
- border-bottom-left-radius
|
146
|
+
- border-top-left-radius
|
147
|
+
- border-radius-topright
|
148
|
+
- border-radius-bottomright
|
149
|
+
- border-radius-bottomleft
|
150
|
+
- border-radius-topleft
|
151
|
+
-
|
152
|
+
- box-shadow
|
153
|
+
|
154
|
+
SelectorFormat:
|
155
|
+
enabled: true
|
156
|
+
convention: hyphenated_BEM
|
157
|
+
|
158
|
+
SingleLinePerSelector:
|
159
|
+
enabled: false
|
160
|
+
|
161
|
+
SpaceAfterPropertyColon:
|
162
|
+
enabled: true
|
163
|
+
style: at_least_one_space
|
164
|
+
|
165
|
+
SpaceBeforeBrace:
|
166
|
+
enabled: true
|
167
|
+
style: space
|
168
|
+
allow_single_line_padding: true
|
169
|
+
|
170
|
+
VariableForProperty:
|
171
|
+
enabled: true
|
172
|
+
properties:
|
173
|
+
- color
|
174
|
+
- font-family
|
175
|
+
- background-color
|
176
|
+
|
177
|
+
# These default settings may be problematic to implementors. They are not
|
178
|
+
# ommitted so that they may be adjusted as needed during an implementation.
|
179
|
+
#
|
180
|
+
# For documentation:
|
181
|
+
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
|
182
|
+
|
183
|
+
DuplicateProperty:
|
184
|
+
enabled: true
|
185
|
+
|
186
|
+
PropertySpelling:
|
187
|
+
enabled: true
|
188
|
+
extra_properties: [] # Add experimental CSS to this array, if needed
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
Workarea Google Address Autocomplete 4.1.1 (2019-08-21)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Open Source!
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Workarea Google Address Autocomplete 4.1.0 (2019-03-13)
|
9
|
+
--------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
* Fix Missing Street Address Number
|
12
|
+
|
13
|
+
Append the existing input of a field with the new value from the
|
14
|
+
autocomplete.
|
15
|
+
|
16
|
+
GOOGADDRES-21
|
17
|
+
Tom Scott
|
18
|
+
|
19
|
+
* Fix race condition against the Release Select feature in base
|
20
|
+
|
21
|
+
This work also better accounts for multiple selectors being mapped to
|
22
|
+
the same field type.
|
23
|
+
|
24
|
+
GOOGADDRES-21
|
25
|
+
Curt Howard
|
26
|
+
|
27
|
+
* Fix incorrect selector in mappings
|
28
|
+
|
29
|
+
Curt Howard
|
30
|
+
|
31
|
+
* Remove Extra Change Event Trigger
|
32
|
+
|
33
|
+
Triggering a change event for the input in
|
34
|
+
the `WORKAREA.googleAddressAutocomplete.updateInput()` function causes
|
35
|
+
the region to not get auto-populated when an address is autocompleted
|
36
|
+
using the Google Places API. Remove this extra call to trigger the
|
37
|
+
change event at the end of the function.
|
38
|
+
|
39
|
+
GOOGADDRES-21
|
40
|
+
Tom Scott
|
41
|
+
|
42
|
+
* Update for workarea v3.4 compatibility
|
43
|
+
|
44
|
+
GOOGADDRES-22
|
45
|
+
Matt Duffy
|
46
|
+
|
47
|
+
* Leverage Workarea Changelog task
|
48
|
+
|
49
|
+
ECOMMERCE-5355
|
50
|
+
Curt Howard
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
Workarea Google Address Autocomplete 4.0.1 (2018-02-06)
|
55
|
+
--------------------------------------------------------------------------------
|
56
|
+
|
57
|
+
* Prevent Google Maps API from loading twice on a single page
|
58
|
+
|
59
|
+
Though our module guards against loading the same external script twice,
|
60
|
+
what actually happens when the request is processed is Google injects
|
61
|
+
yet another script, one that we can't assume the URL for, into the page.
|
62
|
+
|
63
|
+
This second script contains our desired functionality and thus will
|
64
|
+
throw an error about being loaded multiple times on the same page.
|
65
|
+
|
66
|
+
GOOGADDRES-20
|
67
|
+
Curt Howard
|
68
|
+
|
69
|
+
|
70
|
+
Workarea Google Address Autocomplete 4.0.0 (2017-10-17)
|
71
|
+
--------------------------------------------------------------------------------
|
72
|
+
|
73
|
+
* Fix build
|
74
|
+
|
75
|
+
GOOGADDRES-18
|
76
|
+
Curt Howard
|
77
|
+
|
78
|
+
* Moves Sensitive Information to secrets.yml
|
79
|
+
|
80
|
+
GOOGADDRES-16
|
81
|
+
Lucas Boyd
|
82
|
+
|
83
|
+
* Unique IDs for cloned address fields
|
84
|
+
|
85
|
+
GOOGADDRES-10
|
86
|
+
Steve Perks
|
87
|
+
|
88
|
+
* Merge branch 'master' into bugfix/GOOGADDRES-10-conflicting-id-for-attributes
|
89
|
+
Steve Perks
|
90
|
+
|
91
|
+
* Remove jshint and replace with eslint
|
92
|
+
|
93
|
+
GOOGADDRES-14
|
94
|
+
Dave Barnow
|
95
|
+
|
96
|
+
* Add and index to the input / label to ensure that id/for attributes are unique
|
97
|
+
initModules on appended property component
|
98
|
+
Add ‘selector’ key value to configs
|
99
|
+
Change placeholder to locale
|
100
|
+
|
101
|
+
GOOGADDRES-10
|
102
|
+
Steve Perks
|
103
|
+
|
104
|
+
|
105
|
+
Workarea Google Address Autocomplete 3.0.0 (2017-05-11)
|
106
|
+
--------------------------------------------------------------------------------
|
107
|
+
|
108
|
+
* Upgrade for v3 compatibility
|
109
|
+
|
110
|
+
GOOGADDRES-9
|
111
|
+
Beresford, Jake
|
112
|
+
|
113
|
+
|
114
|
+
WebLinc Google Address Autocomplete 2.0.0 (2016-12-16)
|
115
|
+
--------------------------------------------------------------------------------
|
116
|
+
|
117
|
+
|
118
|
+
WebLinc Google Address Autocomplete 1.0.1 (2016-04-04)
|
119
|
+
--------------------------------------------------------------------------------
|