Releases: CSOIreland/Client-API-Library
Releases · CSOIreland/Client-API-Library
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
4.2.1
4.2.0
- Constant
C_API_AJAX_SUCCESS
added. Replace hardcodedsuccess
strings from the Ajax responses accordingly. - Cookie Session handler implemented. See following new methods for reference:
api.cookie.session.start
api.cookie.session.extended
api.cookie.session.ends
api.cookie.session.intervalRoutine
api.cookie.session.confirmExtension
(virtual method to be extended at the application level)
4.1.2
- Official Tiny MCE open-source pre-built library imported (see Issue #2),
Version 5.6.2
from https://www.tiny.cloud/get-tiny/self-hosted/
N.B. This allows to reference and use the TinyMCE library in Open Source projects without registering/referencing anyAPI Key
.
Just add the following resource to the root/index.html file:
<!-- TinyMCE - https://www.tiny.cloud/get-tiny/self-hosted/ -->
<script src="https://cdn.jsdelivr.net/gh/CSOIreland/[email protected]/src/js/tinymce/tinymce.min.js"></script>