Releases: CSOIreland/Client-API-Library
Releases · CSOIreland/Client-API-Library
5.0.0-RC1b4
bug fixes
- change api.modal.error to work with html list
- change api.modal.confirmation to use correct classes on warning buttons
Enhancement
- removed opacity class and changed to visible/invisible nav-loader (code change below)
OLD
<div class="fa-1x mt-1">
<i id="nav-loader" class="fas fa-spinner fa-rotate-90 opacity-0 text-yellow fa-spin"></i>
</div>
NEW
<div class="fa-1x mt-1">
<i id="nav-loader" class="fas fa-spinner fa-rotate-90 invisible text-yellow fa-spin"></i>
</div>
Full Changelog: 5.0.0-RC1b3...5.0.0-RC1b4
5.0.0-RC1b3
changed confirm modal to take callback function and params
5.0.0-RC1b2
added uuid as an option to present on the error popups
5.0.0-RC1b1
bug fix test project
5.0.0-RC1
- updated modals to take in json object to show title and message (fully backwards compatable)
- upgraded to bootstrap 5 - 5.2.3
- upgraded to luxon js and retired moment js (recommendation)
- upgraded libraries as appropriate
- added an alternative modal display style in tempalte
- added an extra parameter for when loading using api.ajax.config to allow for an error callback
- added now warning modal popup
- updated modal.html in template
- added new CSO style custom card sample in template [ ] - >> updated modals to take in json object to show title and message (fully backwards compatable)
- upgraded to bootstrap 5 - 5.2.3
- upgraded to luxon js and retired moment js (recommendation)
- upgraded libraries as appropriate
- added an alternative modal display style in tempalte
- added an extra parameter for when loading using api.ajax.config to allow for an error callback
- added now warning modal popup
- updated modal.html in template
- added new CSO style custom card sample in template
4.3.2
4.3.1
4.3.0
-
Added new specific component loader in addition to full screen loader
- extra parameter added to api.spinner.start and api.spinner.stop
- extra parameter added to api.ajax.jsonrpc.request
-
Updated spinner.html file with new 'spinner-holder' div.
-
Updated api.plugin.css with new css for the new loader component
How to use
//add and remove a spinner by div
api.spinner.start('#displaySpinner')
api.spinner.stop('#displaySpinner')
//add and remove a spinner by class
api.spinner.start('.displaySpinner')
api.spinner.stop('#displaySpinner')
//add and remove a spinner by name
api.spinner.start('[name=displaySpinner]')
api.spinner.stop([name=displaySpinner]')
//add spinner to item using ajax call. If pItemSpinner not passed then full screen spinner is used.
api.ajax.jsonrpc.request = function (pAPI_URL, pAPI_Method, pAPI_Params, callbackFunctionName_onSuccess, callbackParams_onSuccess, callbackFunctionName_onError, callbackParams_onError, pAJAX_Params, pItemSpinner)
Update spinner.html with:
<div id="spinner-holder">
<div class="item-spinner d-none">
<div class="item-loader">
<div class="ball-1 animate glow circle delay-1 bg-warning"></div>
<div class="ball-2 animate glow circle delay-2 bg-danger"></div>
<div class="ball-3 animate glow circle delay-3 bg-primary"></div>
<div class="ball-4 animate glow circle delay-4 bg-secondary"></div>
<div class="ball-5 animate glow circle delay-5 bg-tertiary"></div>
</div>
</div>
</div>
4.2.2
- Method api.modal.confirm fixed by implementing the missing JQuery extension
.once