@financial-times/o-autocomplete 1.6.0 → 1.6.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/demos/src/dynamic/dynamic.js +2 -1
- package/demos/src/dynamic-complex/dynamic-complex.js +2 -1
- package/demos/src/dynamic-delayed/dynamic-delayed.js +4 -2
- package/demos/src/shared.scss +4 -0
- package/demos/src/static/static.js +2 -1
- package/origami.json +1 -6
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### [1.6.1](https://www.github.com/Financial-Times/origami/compare/o-autocomplete-v1.6.0...o-autocomplete-v1.6.1) (2022-01-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* expand all uses of docs to documentation ([26f8d9d](https://www.github.com/Financial-Times/origami/commit/26f8d9d8cbbe3e78902d8c3951b37e08150a77bd))
|
|
9
|
+
|
|
3
10
|
## [1.6.0](https://www.github.com/Financial-Times/origami/compare/o-autocomplete-v1.5.0...o-autocomplete-v1.6.0) (2021-12-09)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ An Origami component for autocomplete inputs. This is built on top of the excell
|
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
|
-
Check out [how to include Origami components in your project](https://origami.ft.com/
|
|
25
|
+
Check out [how to include Origami components in your project](https://origami.ft.com/documentation/components/#including-origami-components-in-your-project) to get started with `o-autocomplete`.
|
|
26
26
|
|
|
27
27
|
## Markup
|
|
28
28
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import '../../../main.js';
|
|
2
|
-
|
|
2
|
+
import {debounce} from '@financial-times/o-utils';
|
|
3
|
+
import oForms from '@financial-times/o-forms';
|
|
4
|
+
oForms.init();
|
|
3
5
|
/**
|
|
4
6
|
* @typedef {Function} PopulateOptions
|
|
5
7
|
* @property {Array<string>} options - The options which match the rext which was typed into the autocomplete by the user
|
|
@@ -292,7 +294,7 @@ function customSuggestions(query, populateOptions) {
|
|
|
292
294
|
}, 1000);
|
|
293
295
|
}
|
|
294
296
|
|
|
295
|
-
window.customSuggestions =
|
|
297
|
+
window.customSuggestions = debounce(customSuggestions, 100);
|
|
296
298
|
|
|
297
299
|
document.addEventListener('DOMContentLoaded', function() {
|
|
298
300
|
document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'));
|
package/demos/src/shared.scss
CHANGED
package/origami.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/o-autocomplete",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "An origami component for autocomplete inputs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"autocomplete",
|
|
@@ -34,11 +34,16 @@
|
|
|
34
34
|
"@financial-times/o-grid": "^6.0.0",
|
|
35
35
|
"@financial-times/o-icons": "^7.0.1",
|
|
36
36
|
"@financial-times/o-loading": "^5.0.0",
|
|
37
|
-
"@financial-times/o-normalise": "^3.
|
|
37
|
+
"@financial-times/o-normalise": "^3.2.0",
|
|
38
38
|
"@financial-times/o-spacing": "^3.0.0",
|
|
39
39
|
"@financial-times/o-typography": "^7.0.1",
|
|
40
40
|
"@financial-times/o-visual-effects": "^4.0.1"
|
|
41
41
|
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@financial-times/o-forms": "^9.2.0",
|
|
44
|
+
"@financial-times/o-normalise": "^3.2.0",
|
|
45
|
+
"@financial-times/o-utils": "^2.1.0"
|
|
46
|
+
},
|
|
42
47
|
"dependencies": {
|
|
43
48
|
"@financial-times/accessible-autocomplete": "^2.1.2"
|
|
44
49
|
},
|