@simai-studio/ui 5.20261020.2008 → 5.20261021.26

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 (37) hide show
  1. package/README.md +4 -4
  2. package/distr/component/admin-menu/css/admin-menu.min.css +1 -1
  3. package/distr/component/badges/css/badges.min.css +1 -1
  4. package/distr/component/badges/js/badges.min.js +1 -1
  5. package/distr/component/context-menu/css/context-menu.min.css +1 -1
  6. package/distr/component/dropdown/css/dropdown.min.css +1 -1
  7. package/distr/component/icon-buttons/css/icon-buttons.min.css +1 -1
  8. package/distr/component/menu/css/menu.min.css +1 -1
  9. package/distr/component/modal/css/modal.min.css +1 -1
  10. package/distr/component/toast/css/toast.min.css +1 -1
  11. package/distr/core/contracts/public-js-api.json +12 -0
  12. package/distr/core/contracts/public-variables.v1.json +7 -0
  13. package/distr/core/contracts/public-variables.v1.schema.json +2 -1
  14. package/distr/core/js/core-loader.js +58 -3
  15. package/distr/core/js/core-loader.min.js +1 -1
  16. package/distr/core/js/core-rules.js +13 -0
  17. package/distr/core/js/core-rules.min.js +1 -1
  18. package/distr/rule/js/rule.min.js +1 -1
  19. package/distr/rule/rule.json +10 -0
  20. package/distr/smart/avatar/js/avatar.min.js +11 -7
  21. package/distr/smart/avatar/smart.manifest.json +24 -2
  22. package/distr/smart/avatar/template/shared.js +3 -2
  23. package/distr/smart/avatars/js/avatars.min.js +4 -4
  24. package/distr/smart/context-menu/smart.manifest.json +1 -1
  25. package/distr/smart/drawer/css/drawer.min.css +1 -1
  26. package/distr/smart/drawer/smart.manifest.json +1 -1
  27. package/distr/smart/icon-buttons/js/icon-buttons.min.js +15 -11
  28. package/distr/smart/icon-buttons/smart.manifest.json +23 -2
  29. package/distr/smart/icon-buttons/template/default.js +4 -2
  30. package/distr/smart/icons/js/icons.min.js +17 -7
  31. package/distr/smart/icons/smart.manifest.json +26 -5
  32. package/distr/smart/icons/template/default.js +17 -0
  33. package/distr/smart/popover/css/popover.min.css +1 -1
  34. package/distr/smart/popover/smart.manifest.json +1 -1
  35. package/distr/smart/popover/template/default.css +1 -0
  36. package/package-manifest.json +37 -37
  37. package/package.json +4 -4
@@ -3443,8 +3443,12 @@ SF.RuleLoader['cl-avatar'] = {
3443
3443
  type: 'smart',
3444
3444
  mode: 'smart',
3445
3445
  js: true,
3446
+ // The badge sheet places a count or a dot on the avatar
3447
+ // (simai/ui-source#12).
3446
3448
  relation: [{
3447
3449
  name: 'avatars'
3450
+ }, {
3451
+ name: 'badges'
3448
3452
  }]
3449
3453
  };
3450
3454
 
@@ -3886,6 +3890,9 @@ SF.RuleLoader['cl-icon-buttons'] = {
3886
3890
  name: 'cl-close'
3887
3891
  }, {
3888
3892
  name: 'pointer-events/default'
3893
+ }, // The badge sheet places a count or a dot on the button (simai/ui-source#12).
3894
+ {
3895
+ name: 'badges'
3889
3896
  }, // The spinner a loading icon button shows, fetched after the page is ready.
3890
3897
  {
3891
3898
  name: 'spinner',
@@ -3903,8 +3910,14 @@ SF.RuleLoader['cl-icons'] = {
3903
3910
  type: 'smart',
3904
3911
  mode: 'smart',
3905
3912
  js: true,
3913
+ // The badge sheet places a count or a dot on an icon (simai/ui-source#12).
3914
+ // Icons are everywhere and badges on them are few: it is fetched when the
3915
+ // page is idle, or at once by an icon that has a badge to show.
3906
3916
  relation: [{
3907
3917
  name: 'icons'
3918
+ }, {
3919
+ name: 'badges',
3920
+ lazy: true
3908
3921
  }]
3909
3922
  };
3910
3923