Skip to content

Releases: CSOIreland/Client-API-Library

5.0.0-RC1b4

16 Feb 11:39
Compare
Choose a tag to compare
5.0.0-RC1b4 Pre-release
Pre-release

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

14 Dec 15:51
Compare
Choose a tag to compare
5.0.0-RC1b3 Pre-release
Pre-release

changed confirm modal to take callback function and params

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