@creative-web-solution/front-library 6.2.12 → 6.2.13

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 6.2.13
4
+
5
+ * Autocomplete: Add method ajax call option
3
6
 
4
7
  ## 6.2.12
5
8
 
@@ -20,6 +20,7 @@ import { position } from '@creative-web-solution/front-library/DOM/position';
20
20
  * @param {Number} [userOptions.minchar=3]
21
21
  * @param {} [userOptions.source]
22
22
  * @param {String} userOptions.url
23
+ * @param {String} [userOptions.method=GET]
23
24
  * @param {String} [userOptions.cssPositionning=false] - Use CSS or Javascript for the position of the layer
24
25
  * @param {boolean} [userOptions.updateOnSelect=true] - Update or not the text field with the selected value
25
26
  * @param {Callback} [userOptions.onSelect] - ({ item, query, resultsList }) => {}
@@ -57,6 +58,7 @@ export function Autocomplete(userOptions = {}) {
57
58
  "minchar": 3,
58
59
  "source": null,
59
60
  "url": "",
61
+ "method": "GET",
60
62
  "updateOnSelect": true,
61
63
  "onSelect": null,
62
64
  "cssPositionning": false,
@@ -496,6 +498,7 @@ export function Autocomplete(userOptions = {}) {
496
498
  myHeaders.append( 'X-Requested-With', 'XMLHttpRequest' );
497
499
 
498
500
  fetch( newUrl, {
501
+ "method": options.method,
499
502
  "signal": requestAbortController.signal,
500
503
  "headers": myHeaders
501
504
  } )
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 6.2.12
3
+ @version: 6.2.13
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "6.2.12",
5
+ "version": "6.2.13",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],