Skip to content

Releases: CSOIreland/Client-API-Library

5.0.0-RC1b2

22 Nov 10:27
Compare
Choose a tag to compare
5.0.0-RC1b2 Pre-release
Pre-release

added uuid as an option to present on the error popups

5.0.0-RC1b1

13 Sep 07:59
Compare
Choose a tag to compare
5.0.0-RC1b1 Pre-release
Pre-release

bug fix test project

5.0.0-RC1

01 Sep 22:00
Compare
Choose a tag to compare
5.0.0-RC1 Pre-release
Pre-release
  • 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

10 Jul 09:25
Compare
Choose a tag to compare
  • Adding spinners to api.content.load and api.content.goTo
  • Changed to use terser for js min files

4.3.1

19 Jun 14:11
Compare
Choose a tag to compare

Added minified versions of css and js files.

4.3.0

04 Jan 12:14
Compare
Choose a tag to compare
  • 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

20 Apr 09:07
Compare
Choose a tag to compare
  • Method api.modal.confirm fixed by implementing the missing JQuery extension .once

4.2.1

19 Apr 17:02
Compare
Choose a tag to compare

[BUG] Include prevent default in api.content.navigate #3

4.2.0

02 Feb 16:39
Compare
Choose a tag to compare
  • Constant C_API_AJAX_SUCCESS added. Replace hardcoded success 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

21 Dec 15:00
Compare
Choose a tag to compare
  • 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 any API 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>