@creative-web-solution/front-library 6.1.3 → 6.2.9
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 +52 -1
- package/DOM/Class.js +1 -1
- package/DOM/OuterSize.js +1 -1
- package/DOM/matrix.js +1 -1
- package/DOM/size.js +1 -1
- package/DOM/wrap.js +2 -2
- package/Events/EventsManager.js +39 -81
- package/Events/HistoryController.js +3 -3
- package/Events/ImageLoad.js +1 -1
- package/Events/IntersectObserver.js +3 -2
- package/Events/KeyboardHandler.js +2 -2
- package/Events/MediaQueriesEvents.js +2 -2
- package/Events/TouchHover.js +3 -3
- package/Events/WindowEvents.js +3 -3
- package/Events/gesture.js +2 -2
- package/Events/onAnimationEnd.js +37 -33
- package/Events/onTransitionEnd.js +38 -29
- package/Events/pubSub.js +2 -2
- package/Helpers/Cookie.js +1 -1
- package/Helpers/TransitionHelpers.js +95 -0
- package/Helpers/extend.js +1 -1
- package/Helpers/getValue.js +1 -1
- package/Helpers/sequential.js +1 -1
- package/Helpers/wait.js +1 -1
- package/ModernizrAddons/css-var-support.js +3 -0
- package/ModernizrAddons/touchdevice.js +1 -1
- package/Modules/Accordion.js +12 -6
- package/Modules/Autocomplete.js +7 -7
- package/Modules/DragSlider.js +583 -0
- package/Modules/Notifications.js +8 -8
- package/Modules/Popin.js +8 -8
- package/Modules/ScrollSnap.js +8 -8
- package/Modules/SkinCheckbox.js +2 -2
- package/Modules/SkinFile.js +4 -4
- package/Modules/SkinRadio.js +3 -3
- package/Modules/SkinSelect.js +12 -12
- package/Modules/Slider.js +100 -32
- package/Modules/Tabs.js +5 -5
- package/Modules/Validator/Tools/RadioButton.js +1 -1
- package/Modules/Validator/Tools/ValidationState.js +1 -1
- package/Modules/Validator/Tools/getQueryFromForm.js +1 -1
- package/Modules/Validator/date.js +3 -3
- package/Modules/Validator/email.js +3 -3
- package/Modules/Validator/equals.js +3 -3
- package/Modules/Validator/index.js +6 -6
- package/Modules/Validator/max.js +2 -2
- package/Modules/Validator/maxlength.js +2 -2
- package/Modules/Validator/min.js +2 -2
- package/Modules/Validator/minlength.js +2 -2
- package/Modules/Validator/multiRequired.js +5 -5
- package/Modules/Validator/number.js +3 -3
- package/Modules/Validator/pattern.js +2 -2
- package/Modules/Validator/recaptcha.js +2 -2
- package/Modules/Validator/required.js +4 -4
- package/Modules/Validator/serverCheck.js +3 -3
- package/Modules/Validator/url.js +3 -3
- package/Modules/YouTubePlayer.js +2 -2
- package/Modules/globalState.js +1 -1
- package/README.md +3 -3
- package/Tools/PrefixedProperties.js +54 -0
- package/Tools/TouchDeviceSupport.js +1 -0
- package/WebGL/GLImageTransition/GLImageTransition.js +4 -4
- package/documentation/extra/events.md +2 -2
- package/documentation/extra/modernizr.md +1 -0
- package/documentation/extra/modules/DragSlider.md +111 -0
- package/documentation/extra/modules/YouTubePlayer.md +1 -1
- package/documentation/extra/modules/autocomplete.md +1 -1
- package/documentation/extra/modules/popin.md +3 -3
- package/documentation/extra/modules/slider.md +7 -3
- package/documentation/extra/modules/template.md +1 -1
- package/documentation/extra/modules/validator.md +13 -13
- package/documentation/extra/webgl/GLImageTransition.md +1 -1
- package/documentation/jsdocs/dom/global.html +389 -2
- package/documentation/jsdocs/dom/index.html +2 -2
- package/documentation/jsdocs/dom/quicksearch.html +1 -1
- package/documentation/jsdocs/events/common/DeviceOrientation.html +1 -1
- package/documentation/jsdocs/events/common/HistoryController.html +1 -1
- package/documentation/jsdocs/events/common/IntersectObserver.html +1 -1
- package/documentation/jsdocs/events/common/KeyboardHandler.html +1 -1
- package/documentation/jsdocs/events/common/MediaQueriesEvents.html +1 -1
- package/documentation/jsdocs/events/common/TouchHover.html +1 -1
- package/documentation/jsdocs/events/common/WindowEvents.html +1 -1
- package/documentation/jsdocs/events/common/classes.list.html +1 -1
- package/documentation/jsdocs/events/common/global.html +1 -1
- package/documentation/jsdocs/events/common/index.html +1 -1
- package/documentation/jsdocs/events/common/namespaces.list.html +1 -1
- package/documentation/jsdocs/events/common/pubSub.html +1 -1
- package/documentation/jsdocs/events/common/quicksearch.html +1 -1
- package/documentation/jsdocs/events/events-manager/global.html +1 -1
- package/documentation/jsdocs/events/events-manager/index.html +1 -1
- package/documentation/jsdocs/events/events-manager/quicksearch.html +1 -1
- package/documentation/jsdocs/events/gesture/global.html +1 -1
- package/documentation/jsdocs/events/gesture/index.html +1 -1
- package/documentation/jsdocs/events/gesture/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/array/global.html +1 -1
- package/documentation/jsdocs/helpers/array/index.html +1 -1
- package/documentation/jsdocs/helpers/array/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/colors/global.html +1 -1
- package/documentation/jsdocs/helpers/colors/index.html +1 -1
- package/documentation/jsdocs/helpers/colors/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/common/Cookie.html +2 -2
- package/documentation/jsdocs/helpers/common/UrlParser.html +1 -1
- package/documentation/jsdocs/helpers/common/classes.list.html +1 -1
- package/documentation/jsdocs/helpers/common/global.html +8 -2
- package/documentation/jsdocs/helpers/common/index.html +1 -1
- package/documentation/jsdocs/helpers/common/quicksearch.html +1 -1
- package/documentation/jsdocs/helpers/types/global.html +1 -1
- package/documentation/jsdocs/helpers/types/index.html +1 -1
- package/documentation/jsdocs/helpers/types/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/accordion/Accordion.html +1 -1
- package/documentation/jsdocs/modules/accordion/classes.list.html +1 -1
- package/documentation/jsdocs/modules/accordion/index.html +1 -1
- package/documentation/jsdocs/modules/accordion/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/Autocomplete.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/classes.list.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/index.html +1 -1
- package/documentation/jsdocs/modules/autocomplete/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/common/DragSlider.html +946 -0
- package/documentation/jsdocs/modules/common/classes.list.html +310 -0
- package/documentation/jsdocs/modules/common/global.html +8 -1
- package/documentation/jsdocs/modules/common/globalState.html +8 -1
- package/documentation/jsdocs/modules/common/index.html +8 -1
- package/documentation/jsdocs/modules/common/namespaces.list.html +15 -1
- package/documentation/jsdocs/modules/common/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinCheckbox.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinFile.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinRadio.html +1 -1
- package/documentation/jsdocs/modules/form-skin/SkinSelect.html +1 -1
- package/documentation/jsdocs/modules/form-skin/classes.list.html +1 -1
- package/documentation/jsdocs/modules/form-skin/global.html +1 -1
- package/documentation/jsdocs/modules/form-skin/index.html +1 -1
- package/documentation/jsdocs/modules/form-skin/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/MediaPreloader.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/classes.list.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/index.html +1 -1
- package/documentation/jsdocs/modules/media-preloader/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/notifications/Notifications.html +1 -1
- package/documentation/jsdocs/modules/notifications/classes.list.html +1 -1
- package/documentation/jsdocs/modules/notifications/index.html +1 -1
- package/documentation/jsdocs/modules/notifications/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/popin/Popin.html +1 -1
- package/documentation/jsdocs/modules/popin/PopinController.html +1 -1
- package/documentation/jsdocs/modules/popin/classes.list.html +1 -1
- package/documentation/jsdocs/modules/popin/index.html +1 -1
- package/documentation/jsdocs/modules/popin/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/ScrollSnap.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/classes.list.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/index.html +1 -1
- package/documentation/jsdocs/modules/scroll-snap/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/slider/Slider.html +1 -1
- package/documentation/jsdocs/modules/slider/SliderControls.html +159 -2
- package/documentation/jsdocs/modules/slider/classes.list.html +1 -1
- package/documentation/jsdocs/modules/slider/index.html +1 -1
- package/documentation/jsdocs/modules/slider/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/tabs/Tabs.html +1 -1
- package/documentation/jsdocs/modules/tabs/classes.list.html +1 -1
- package/documentation/jsdocs/modules/tabs/index.html +1 -1
- package/documentation/jsdocs/modules/tabs/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/validator/Validator.html +1 -1
- package/documentation/jsdocs/modules/validator/classes.list.html +1 -1
- package/documentation/jsdocs/modules/validator/global.html +1 -1
- package/documentation/jsdocs/modules/validator/index.html +1 -1
- package/documentation/jsdocs/modules/validator/quicksearch.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/YouTubePlayer.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/classes.list.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/index.html +1 -1
- package/documentation/jsdocs/modules/youtube-player/quicksearch.html +1 -1
- package/package.json +1 -1
|
@@ -1850,6 +1850,9 @@ If 'waitFor' < 0 => wait for an animation frame
|
|
|
1850
1850
|
|
|
1851
1851
|
|
|
1852
1852
|
<span class="param-type">Number</span>
|
|
1853
|
+
|
|
|
1854
|
+
|
|
1855
|
+
<span class="param-type">String</span>
|
|
1853
1856
|
|
|
1854
1857
|
|
|
1855
1858
|
|
|
@@ -1876,7 +1879,7 @@ If 'waitFor' < 0 => wait for an animation frame
|
|
|
1876
1879
|
</td>
|
|
1877
1880
|
|
|
1878
1881
|
|
|
1879
|
-
<td class="description last">
|
|
1882
|
+
<td class="description last">Number in ms or 'idle'</td>
|
|
1880
1883
|
</tr>
|
|
1881
1884
|
|
|
1882
1885
|
|
|
@@ -1970,6 +1973,9 @@ wait().then( ... )
|
|
|
1970
1973
|
// Wait for 500ms
|
|
1971
1974
|
wait( 500 ).then( ... )
|
|
1972
1975
|
|
|
1976
|
+
// Wait for an idle state
|
|
1977
|
+
wait( 'idle' ).then( ... )
|
|
1978
|
+
|
|
1973
1979
|
// To be able to cancel the waiting, don't chain .then() directly on wait()
|
|
1974
1980
|
promise = wait( 500 )
|
|
1975
1981
|
promise.then( ... )
|
|
@@ -2029,7 +2035,7 @@ promise.kill()</pre>
|
|
|
2029
2035
|
<span class="jsdoc-message">
|
|
2030
2036
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
2031
2037
|
|
|
2032
|
-
on
|
|
2038
|
+
on 2021-02-03T15:24:31+01:00
|
|
2033
2039
|
|
|
2034
2040
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
2035
2041
|
</span>
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
<span class="jsdoc-message">
|
|
136
136
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
137
137
|
|
|
138
|
-
on
|
|
138
|
+
on 2021-02-03T15:24:31+01:00
|
|
139
139
|
|
|
140
140
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
141
141
|
</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script src="scripts/fulltext-search.js"></script>
|
|
8
8
|
|
|
9
9
|
<script type="text/x-docstrap-searchdb">
|
|
10
|
-
{"global.html":{"id":"global.html","title":"Global","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait Global Methods _extend() Extend function from jQuery 3 copy(target) Clone the properties of an object and its children (deep copy) Parameters: Name Type Description target Object Object to copy Returns: Type Object Example clonedObject = copy(target) debounce(callback [, threshold] [, immediate]) Debounce Parameters: Name Type Argument Default Description callback function threshold Number <optional> 100 immediate Boolean <optional> Returns: Type function Example debouncedFunction = debounce( myFunction, 200 ) defer() Deferred promise Returns: - a promise with a resolve and reject function Type Promise Example let dfd = defer() // To resolve: dfd.resolve() // To reject: dfd.reject() distance(latitude1, longitude1, latitude2, longitude2) Compute the distance (in km) between 2 coordinates Parameters: Name Type Description latitude1 Number longitude1 Number latitude2 Number longitude2 Number Returns: Type Number extend(target, sources) Merge the properties of an object and its children (deep merge) with others objects. It doesn't modify the target object. Parameters: Name Type Argument Description target Object Object to merge sources Object <repeatable> All other arguments are objects Returns: Type Object Example extendedObject = extend(target, obj1, obj2) getValue($input) Get the value of a form field (get from jQuery) Parameters: Name Type Description $input HTMLElement Returns: - the value of the form field Type String | Number Example value = getValue( $input ) hasLocalStorage() Check if the localstorage is available. Returns: Type Boolean Example hasStorage = hasLocalStorage(); sequence(promisesArray) Create a sequential list of promises (which resolves one after another) Parameters: Name Type Description promisesArray Array.<Promise> Returns: Type Promise Example prom = sequence( arrayOfPromise ) throttle(callback [, limit]) Throttle Parameters: Name Type Argument Default Description callback function limit Number <optional> 100 Returns: Type function Example throttledFunction = throttle( cbFunction, 200 ) wait( [waitFor]) Return a promise and wait for 'waitFor' millisecond to resolve it. If 'waitFor' < 0 => wait for an animation frame Parameters: Name Type Argument Default Description waitFor Number <optional> -1
|
|
10
|
+
{"global.html":{"id":"global.html","title":"Global","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait Global Methods _extend() Extend function from jQuery 3 copy(target) Clone the properties of an object and its children (deep copy) Parameters: Name Type Description target Object Object to copy Returns: Type Object Example clonedObject = copy(target) debounce(callback [, threshold] [, immediate]) Debounce Parameters: Name Type Argument Default Description callback function threshold Number <optional> 100 immediate Boolean <optional> Returns: Type function Example debouncedFunction = debounce( myFunction, 200 ) defer() Deferred promise Returns: - a promise with a resolve and reject function Type Promise Example let dfd = defer() // To resolve: dfd.resolve() // To reject: dfd.reject() distance(latitude1, longitude1, latitude2, longitude2) Compute the distance (in km) between 2 coordinates Parameters: Name Type Description latitude1 Number longitude1 Number latitude2 Number longitude2 Number Returns: Type Number extend(target, sources) Merge the properties of an object and its children (deep merge) with others objects. It doesn't modify the target object. Parameters: Name Type Argument Description target Object Object to merge sources Object <repeatable> All other arguments are objects Returns: Type Object Example extendedObject = extend(target, obj1, obj2) getValue($input) Get the value of a form field (get from jQuery) Parameters: Name Type Description $input HTMLElement Returns: - the value of the form field Type String | Number Example value = getValue( $input ) hasLocalStorage() Check if the localstorage is available. Returns: Type Boolean Example hasStorage = hasLocalStorage(); sequence(promisesArray) Create a sequential list of promises (which resolves one after another) Parameters: Name Type Description promisesArray Array.<Promise> Returns: Type Promise Example prom = sequence( arrayOfPromise ) throttle(callback [, limit]) Throttle Parameters: Name Type Argument Default Description callback function limit Number <optional> 100 Returns: Type function Example throttledFunction = throttle( cbFunction, 200 ) wait( [waitFor]) Return a promise and wait for 'waitFor' millisecond to resolve it. If 'waitFor' < 0 => wait for an animation frame Parameters: Name Type Argument Default Description waitFor Number | String <optional> -1 Number in ms or 'idle' Returns: - a promise with a .kill() function to cancel the waiting Type Promise Example // Wait for an animation frame (using requestAnimationFrame) wait().then( ... ) // Wait for 500ms wait( 500 ).then( ... ) // Wait for an idle state wait( 'idle' ).then( ... ) // To be able to cancel the waiting, don't chain .then() directly on wait() promise = wait( 500 ) promise.then( ... ) promise.kill() × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait Classes Classes Cookie UrlParser × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Cookie.html":{"id":"Cookie.html","title":"Class: Cookie","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait Class: Cookie Cookie new Cookie() Manage cookie Example cookie.create( 'cookieName', 'cookieValue' ) cookie.read( 'cookieName' ) cookie.delete( 'cookieName' ) // All parameters cookie.create( 'cookieName', 'cookieValue', { \"days\": 10, \"secure\": true, \"domain\": \"test.com\", \"path\": \"/myDir\" } ); Methods read(name) Read a cookie Parameters: Name Type Description name String Returns: Type String × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"UrlParser.html":{"id":"UrlParser.html","title":"Class: UrlParser","body":" Documentation Classes CookieUrlParser Global _extendcopydebouncedeferdistanceextendgetValuehasLocalStoragesequencethrottlewait Class: UrlParser UrlParser new UrlParser(url) Parse an URL Parameters: Name Type Description url String Returns: the parsed url Type urlParser_Object Example let url = new UrlParser( 'https://username:password@demo.domain.com:1337/section/page.html?param=1&param=2#anchor' ); // Update the anchor and regenerate url url.setAnchor( 'anchor' ) // Get a query param url.getParam( 'key' ) // Get all query params url.getParam() // or this.queryKey // Add/modify a query param url.setParam( 'key', value ) // Add/modify several query param url.setParam( { \"key1\": \"value1\", \"key2\": \"value2\" } ) // Remove a query param url.removeParam( 'key' ) url.removeParam( [ 'key1', 'key2', ... ] ) // Remove all query param url.removeAll() Methods getParam( [key]) Get the value of a query param Parameters: Name Type Argument Description key String <optional> Returns: Type String | Object removeAll() Delete all query param Returns: Type UrlParser removeParam(keys) Remove one or several query param Parameters: Name Type Description keys String | Array.<String> Returns: Type UrlParser setAnchor(anchor) Change anchor and recreate all values Parameters: Name Type Description anchor String Returns: Type UrlParser setParam(keys, value) Add/modify one or several query param Parameters: Name Type Description keys String | Object value String Returns: Type UrlParser Type Definitions urlParser_Object Type: Object Properties: Name Type Description absolute String https://demo.domain.com:1337/section/page.html?param=2 absolute2 String https://demo.domain.com:1337/section/page.html?param=2#anchor anchor String anchor authority String username:password@demo.domain.com:1337 directory String /section/ file String page.html full String https://username:password@demo.domain.com:1337/section/page.html?param=2 full2 String https://username:password@demo.domain.com:1337/section/page.html?param=2#anchor host String demo.domain.com location String new UrlParser(window.location) password String password path String /section/page.html port String 1337 protocol String https query String param=2 queryKey Object { param: \"2\" } relative String Url without host, credential and anchor relative2 String Url without host, credential but with anchor source String Original Url, never change: https://username:password@demo.domain.com:1337/section/page.html?param=1&param=2#anchor user String username userInfo String username:password isAnchor Boolean false isSameDomain Boolean false setAnchor function setParam function removeParam function removeAll function × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:32+01:00 using the DocStrap template. "}}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<script type="text/javascript">
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
<span class="jsdoc-message">
|
|
1139
1139
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
1140
1140
|
|
|
1141
|
-
on
|
|
1141
|
+
on 2021-02-03T15:24:30+01:00
|
|
1142
1142
|
|
|
1143
1143
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
1144
1144
|
</span>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<span class="jsdoc-message">
|
|
129
129
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
130
130
|
|
|
131
|
-
on
|
|
131
|
+
on 2021-02-03T15:24:30+01:00
|
|
132
132
|
|
|
133
133
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
134
134
|
</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script src="scripts/fulltext-search.js"></script>
|
|
8
8
|
|
|
9
9
|
<script type="text/x-docstrap-searchdb">
|
|
10
|
-
{"global.html":{"id":"global.html","title":"Global","body":" Documentation Global isArrayisFunctionisNumberisPlainObjectisStringisType Global Methods isArray(obj) Return true if the objec is an Array Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isArray( obj ) isFunction(obj) Return true if the object is a Function Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isFunction( obj ) isNumber(obj) Return true if the object is a Number Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isNumber( obj ) isPlainObject(obj) Return true if obj is {} or an object created with \"new Object\" Parameters: Name Type Description obj * Returns: Type Boolean isString(obj) Return true if the object is a String Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isString( obj ) isType(obj, type) Check the type of an object Parameters: Name Type Description obj * type String Returns: - true if the object is in the asked type Type Boolean Example boolean = isType( obj, 'String' ) × Search results Close Documentation generated by JSDoc 3.6.4 on
|
|
10
|
+
{"global.html":{"id":"global.html","title":"Global","body":" Documentation Global isArrayisFunctionisNumberisPlainObjectisStringisType Global Methods isArray(obj) Return true if the objec is an Array Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isArray( obj ) isFunction(obj) Return true if the object is a Function Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isFunction( obj ) isNumber(obj) Return true if the object is a Number Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isNumber( obj ) isPlainObject(obj) Return true if obj is {} or an object created with \"new Object\" Parameters: Name Type Description obj * Returns: Type Boolean isString(obj) Return true if the object is a String Parameters: Name Type Description obj * Returns: Type Boolean Example boolean = isString( obj ) isType(obj, type) Check the type of an object Parameters: Name Type Description obj * type String Returns: - true if the object is in the asked type Type Boolean Example boolean = isType( obj, 'String' ) × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:30+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Global isArrayisFunctionisNumberisPlainObjectisStringisType × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:30+01:00 using the DocStrap template. "}}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<script type="text/javascript">
|
|
@@ -1239,7 +1239,7 @@ Set aria-expanded to "true" on the tab you want open at start</pre>
|
|
|
1239
1239
|
<span class="jsdoc-message">
|
|
1240
1240
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
1241
1241
|
|
|
1242
|
-
on
|
|
1242
|
+
on 2021-02-03T15:24:31+01:00
|
|
1243
1243
|
|
|
1244
1244
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
1245
1245
|
</span>
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
<span class="jsdoc-message">
|
|
196
196
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
197
197
|
|
|
198
|
-
on
|
|
198
|
+
on 2021-02-03T15:24:31+01:00
|
|
199
199
|
|
|
200
200
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
201
201
|
</span>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<span class="jsdoc-message">
|
|
129
129
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
130
130
|
|
|
131
|
-
on
|
|
131
|
+
on 2021-02-03T15:24:31+01:00
|
|
132
132
|
|
|
133
133
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
134
134
|
</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script src="scripts/fulltext-search.js"></script>
|
|
8
8
|
|
|
9
9
|
<script type="text/x-docstrap-searchdb">
|
|
10
|
-
{"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Accordion Classes Classes Accordion × Search results Close Documentation generated by JSDoc 3.6.4 on
|
|
10
|
+
{"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Accordion Classes Classes Accordion × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Accordion × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Accordion.html":{"id":"Accordion.html","title":"Class: Accordion","body":" Documentation Classes Accordion Class: Accordion Accordion new Accordion($accordionWrapper [, userOptions]) Accordion Parameters: Name Type Argument Description $accordionWrapper HTMLElement userOptions Object <optional> Properties Name Type Argument Default Description tabSelector String <optional> 'button[aria-expanded]' allowMultipleTab Boolean <optional> false onOpenAtStart Accordion_callback <optional> onOpen Accordion_callback <optional> onClose Accordion_callback <optional> animations Object <optional> Properties Name Type Argument Description open Accordion_animation <optional> close Accordion_animation <optional> destroy Accordion_animation <optional> Example new Accordion( document.querySelector( '.accordion' ), { \"tabSelector\": \".tab\", \"allowMultipleTab\": false, \"animations\": { \"open\": function( $tab, $panel ) { aClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"close\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); }, \"destroy\": function( $tab, $panel ) { rClass( [ $tab, $panel ], 'on' ); return Promise.resolve(); } }, \"onOpenAtStart\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onOpen\": function( $tab, $panel ) { console.log( 'open: ', $tab, $panel ); }, \"onClose\": function( $tab, $panel ) { console.log( 'close: ', $tab, $panel ); } } ); HTML: <div class=\"accordion\"> <button aria-expanded=\"true\" class=\"tab\" aria-controls=\"panel-1\">Button name</button> <div id=\"panel-1\" class=\"panel\"> <p>Content</p> </div> <button aria-expanded=\"false\" class=\"tab\" aria-controls=\"panel-2\">Button name</button> <div id=\"panel-2\" class=\"panel\"> <p>Content</p> </div> </div> Set aria-expanded to \"true\" on the tab you want open at start Methods destroy() Remove all events, css class, ... update() Restart the module Type Definitions Accordion_animation($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement Returns: Type Promise Accordion_callback($tab, $panel) Parameters: Name Type Description $tab HTMLElement $panel HTMLElement × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<script type="text/javascript">
|
|
@@ -2243,7 +2243,7 @@
|
|
|
2243
2243
|
<span class="jsdoc-message">
|
|
2244
2244
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
2245
2245
|
|
|
2246
|
-
on
|
|
2246
|
+
on 2021-02-03T15:24:31+01:00
|
|
2247
2247
|
|
|
2248
2248
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
2249
2249
|
</span>
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
<span class="jsdoc-message">
|
|
196
196
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
197
197
|
|
|
198
|
-
on
|
|
198
|
+
on 2021-02-03T15:24:31+01:00
|
|
199
199
|
|
|
200
200
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
201
201
|
</span>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<span class="jsdoc-message">
|
|
129
129
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a>
|
|
130
130
|
|
|
131
|
-
on
|
|
131
|
+
on 2021-02-03T15:24:31+01:00
|
|
132
132
|
|
|
133
133
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
134
134
|
</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script src="scripts/fulltext-search.js"></script>
|
|
8
8
|
|
|
9
9
|
<script type="text/x-docstrap-searchdb">
|
|
10
|
-
{"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Autocomplete Classes Classes Autocomplete × Search results Close Documentation generated by JSDoc 3.6.4 on
|
|
10
|
+
{"classes.list.html":{"id":"classes.list.html","title":"Classes","body":" Documentation Classes Autocomplete Classes Classes Autocomplete × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"index.html":{"id":"index.html","title":"Index","body":" Documentation Classes Autocomplete × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "},"Autocomplete.html":{"id":"Autocomplete.html","title":"Class: Autocomplete","body":" Documentation Classes Autocomplete Class: Autocomplete Autocomplete new Autocomplete(userOptions) Autocomplete Parameters: Name Type Description userOptions Object Properties Name Type Argument Default Description $searchField HTMLElement $panelWrapper HTMLElement <optional> document.body maxHeight number <optional> 200 useCache Boolean <optional> false minchar Number <optional> 3 source <optional> url String cssPositionning String <optional> false Use CSS or Javascript for the position of the layer updateOnSelect boolean <optional> true Update or not the text field with the selected value onSelect Callback <optional> ({ item, query, resultsList }) => {} queryParams Callback <optional> query => { return { \"search\": query } } normalize function <optional> data => data Conver the ajax response in the good JSON format => {success, results} renderFieldValue function <optional> ({item, query, resultList}) => item.name Allow to manipulate the displayed value of items render function <optional> ({resultItem, query, index, itemsList, cssClass}) => `<li role=\"option\" data-idx=\"${index}\" class=\"${cssClass.item}\"><a class=\"${cssClass.link}\">${resultItem.markedName}</a></li>` renderList function <optional> ({resultList, query, cssClass}) => `<ul role=\"listbox\" class=\"${cssClass.list}\">${resultList.join('')}</ul>` renderError function <optional> ({errorMsg, query, cssClass}) => `<li class=\"${cssClass.error}\">${errorMsg}</li>` renderMark function <optional> Allow to wrap the query with a tag in the result item name ({resultItem, reQuery, query, index, resultList, cssClass}) => {resultItem.name && (resultItem.markedName = resultItem.name.replace(reQuery,`$1`));} l10n Object <optional> Properties Name Type Argument Default Description noResult String <optional> No result error String <optional> Server error className Object <optional> Properties Name Type Argument Default Description layer String <optional> ac-layer list String <optional> ac-list item String <optional> acl-itm mark String <optional> acl-mrk error String <optional> acl-error hover String <optional> hover disable String <optional> disable See: extra/modules/autocomplete.md for details. Methods clean() Destroy the Autocomplete Returns: Type Autocomplete disable() Disable the autocomplete Returns: Type Autocomplete enable() Enable the autocomplete Returns: Type Autocomplete reset() Reset the input field and the results resetField() Reset the input field resetResults() Reset the results setOptions(newOption) Update the current options Parameters: Name Type Description newOption Object Same options as constructor Returns: Type Autocomplete showAll() When 'source' is used, display the list with all items Returns: Type Autocomplete × Search results Close Documentation generated by JSDoc 3.6.4 on 2021-02-03T15:24:31+01:00 using the DocStrap template. "}}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<script type="text/javascript">
|