@simai-studio/ui 5.20261019.2041 → 5.20261020.1647

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.
Files changed (34) hide show
  1. package/README.md +5 -5
  2. package/distr/component/buttons/css/buttons.min.css +1 -1
  3. package/distr/component/buttons/js/buttons.min.js +1 -1
  4. package/distr/component/icon-buttons/css/icon-buttons.min.css +1 -1
  5. package/distr/component/icon-buttons/js/icon-buttons.min.js +1 -1
  6. package/distr/component/modal/css/modal.min.css +1 -1
  7. package/distr/component/modal/js/modal.min.js +1 -1
  8. package/distr/component/spinner/css/spinner.min.css +1 -1
  9. package/distr/component/spinner/js/spinner.min.js +1 -1
  10. package/distr/core/js/core-loader.js +1 -1
  11. package/distr/core/js/core-loader.min.js +1 -1
  12. package/distr/core/js/core-rules.js +34 -2
  13. package/distr/core/js/core-rules.min.js +1 -1
  14. package/distr/core/js/core.js +9 -0
  15. package/distr/core/js/core.min.js +1 -1
  16. package/distr/core/js/template-utilities.generated.json +0 -2
  17. package/distr/rule/js/rule.min.js +1 -1
  18. package/distr/rule/rule.json +32 -0
  19. package/distr/smart/button-group/js/button-group.min.js +13 -10
  20. package/distr/smart/button-group/smart.manifest.json +8 -3
  21. package/distr/smart/button-group/template/default.js +15 -2
  22. package/distr/smart/buttons/js/buttons.min.js +12 -11
  23. package/distr/smart/buttons/smart.manifest.json +3 -2
  24. package/distr/smart/buttons/template/default.js +17 -2
  25. package/distr/smart/icon-buttons/js/icon-buttons.min.js +8 -8
  26. package/distr/smart/icon-buttons/smart.manifest.json +4 -3
  27. package/distr/smart/icon-buttons/template/default.js +6 -2
  28. package/distr/smart/modal/js/modal.min.js +3 -5
  29. package/distr/smart/modal/smart.manifest.json +4 -2
  30. package/distr/smart/spinner/js/spinner.min.js +2 -2
  31. package/distr/smart/spinner/smart.manifest.json +51 -17
  32. package/distr/smart/spinner/template/default.js +4 -1
  33. package/package-manifest.json +34 -34
  34. package/package.json +5 -5
@@ -94,7 +94,12 @@ SF.RuleLoader['buttons'] = {
94
94
  regex: /class\s*=\s*["'][^"']*\bsf-button\b/i,
95
95
  type: 'component',
96
96
  css: true,
97
- js: true
97
+ js: true,
98
+ // The spinner a loading button shows, fetched after the page is ready.
99
+ relation: [{
100
+ name: 'spinner',
101
+ lazy: true
102
+ }]
98
103
  };
99
104
 
100
105
  /***/ },
@@ -367,7 +372,12 @@ SF.RuleLoader['icon-buttons'] = {
367
372
  regex: /class\s*=\s*["'][^"']*\bsf-icon-button\b/i,
368
373
  type: 'component',
369
374
  css: true,
370
- js: true
375
+ js: true,
376
+ // The spinner a loading button shows, fetched after the page is ready.
377
+ relation: [{
378
+ name: 'spinner',
379
+ lazy: true
380
+ }]
371
381
  };
372
382
 
373
383
  /***/ },
@@ -451,6 +461,11 @@ SF.RuleLoader['modal'] = {
451
461
  name: 'icon-buttons'
452
462
  }, {
453
463
  name: 'close'
464
+ }, // The spinner a modal shows while its content loads, fetched after the
465
+ // page is ready; the modal sheet draws its slot.
466
+ {
467
+ name: 'spinner',
468
+ lazy: true
454
469
  }]
455
470
  };
456
471
 
@@ -3501,12 +3516,16 @@ SF.RuleLoader['cl-button-group'] = {
3501
3516
  type: 'smart',
3502
3517
  mode: 'smart',
3503
3518
  js: true,
3519
+ // spinner: a loading item shows it, fetched after the page is ready.
3504
3520
  relation: [{
3505
3521
  name: 'button-group'
3506
3522
  }, {
3507
3523
  name: 'cl-buttons'
3508
3524
  }, {
3509
3525
  name: 'cl-icons'
3526
+ }, {
3527
+ name: 'spinner',
3528
+ lazy: true
3510
3529
  }]
3511
3530
  };
3512
3531
 
@@ -3528,6 +3547,11 @@ SF.RuleLoader['cl-buttons'] = {
3528
3547
  name: 'text-align/default'
3529
3548
  }, {
3530
3549
  name: 'cl-icons'
3550
+ }, // The spinner a loading button shows: its slot is drawn by the button sheet,
3551
+ // the motion by the spinner's, fetched after the page is ready.
3552
+ {
3553
+ name: 'spinner',
3554
+ lazy: true
3531
3555
  }]
3532
3556
  };
3533
3557
 
@@ -3862,6 +3886,10 @@ SF.RuleLoader['cl-icon-buttons'] = {
3862
3886
  name: 'cl-close'
3863
3887
  }, {
3864
3888
  name: 'pointer-events/default'
3889
+ }, // The spinner a loading icon button shows, fetched after the page is ready.
3890
+ {
3891
+ name: 'spinner',
3892
+ lazy: true
3865
3893
  }]
3866
3894
  };
3867
3895
 
@@ -3945,10 +3973,14 @@ SF.RuleLoader['cl-modal'] = {
3945
3973
  type: 'smart',
3946
3974
  mode: 'smart',
3947
3975
  js: true,
3976
+ // spinner: the remote content's loading state shows it, fetched after the page is ready.
3948
3977
  relation: [{
3949
3978
  name: 'modal'
3950
3979
  }, {
3951
3980
  name: 'icon-buttons'
3981
+ }, {
3982
+ name: 'spinner',
3983
+ lazy: true
3952
3984
  }]
3953
3985
  };
3954
3986