@castlabs/ui 8.3.0 → 8.4.0

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.
@@ -75,6 +75,7 @@ declare module '@castlabs/ui/dist/castlabs-ui.module.js' {
75
75
  loading?: boolean
76
76
  ): Promise<any>
77
77
  export function clReloadStore (component: any, forced?: any[], optional?: any[], loading?: boolean): Promise<any>
78
+ export function clSleep (ms: number): Promise<void>
78
79
 
79
80
  // theme utils
80
81
  export function clThemeSetup (): boolean
@@ -1,4 +1,4 @@
1
- /* @castlabs/ui v8.3.0 */
1
+ /* @castlabs/ui v8.4.0 */
2
2
 
3
3
  /*!
4
4
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -1424,7 +1424,7 @@ export function clFormatCardNumber (cardNumber) {
1424
1424
  * @param {String} id Optional form ID to check befor submitting.
1425
1425
  * @return {Promise<any>} The (wrapped) promise that callback() returned.
1426
1426
  */
1427
- export function clSynchronizedSubmit (component, callback, id = component.ID_FORM) {
1427
+ export async function clSynchronizedSubmit (component, callback, id = component.ID_FORM) {
1428
1428
  if (id) {
1429
1429
  if (clFormIsValid(id) && !component.submitting) {
1430
1430
  component.submitting = true
@@ -1453,7 +1453,7 @@ export function clSynchronizedSubmit (component, callback, id = component.ID_FOR
1453
1453
  * @param {String} id Mandatory form ID to check befor submitting.
1454
1454
  * @return {Promise<any>} The (wrapped) promise that callback() returned.
1455
1455
  */
1456
- export function clSynchronizedSubmitAsync (component, callback, id = component.ID_FORM) {
1456
+ export async function clSynchronizedSubmitAsync (component, callback, id = component.ID_FORM) {
1457
1457
  if (!component.submitting) {
1458
1458
  return clFormIsValidAsync(id).then(success => {
1459
1459
  if (success) {