@govbr-ds/webcomponents 2.0.0-next.45 → 2.0.0-next.46

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 (61) hide show
  1. package/dist/cjs/br-button.br-icon.entry.cjs.js.map +1 -1
  2. package/dist/cjs/br-button_2.cjs.entry.js +14 -1
  3. package/dist/cjs/br-button_2.cjs.entry.js.map +1 -1
  4. package/dist/cjs/br-message.cjs.entry.js +2 -2
  5. package/dist/cjs/br-message.cjs.entry.js.map +1 -1
  6. package/dist/cjs/br-message.entry.cjs.js.map +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/webcomponents.cjs.js +1 -1
  9. package/dist/collection/components/icon/icon.js +42 -1
  10. package/dist/collection/components/icon/icon.js.map +1 -1
  11. package/dist/collection/components/message/message.css +1 -1
  12. package/dist/collection/components/message/message.js +1 -1
  13. package/dist/collection/components/message/message.js.map +1 -1
  14. package/dist/components/br-avatar.js +1 -1
  15. package/dist/components/br-breadcrumb.js +3 -3
  16. package/dist/components/br-collapse.js +4 -4
  17. package/dist/components/br-footer-category.js +3 -3
  18. package/dist/components/br-footer-social.js +1 -1
  19. package/dist/components/br-icon.js +1 -1
  20. package/dist/components/br-input.js +3 -3
  21. package/dist/components/br-list.js +1 -1
  22. package/dist/components/br-message.js +10 -8
  23. package/dist/components/br-message.js.map +1 -1
  24. package/dist/components/br-select.js +4 -4
  25. package/dist/components/br-step-item.js +1 -1
  26. package/dist/components/br-tab-item.js +1 -1
  27. package/dist/components/br-tag.js +1 -1
  28. package/dist/components/br-tooltip.js +16 -16
  29. package/dist/components/br-upload.js +1 -1
  30. package/dist/components/{p-Hceu1c6D.js → p-BUfNFi9N.js} +3 -3
  31. package/dist/components/{p-xvM_htUS.js → p-CYtPDYp6.js} +22 -6
  32. package/dist/components/p-CYtPDYp6.js.map +1 -0
  33. package/dist/components/{p-3-jhm6pC.js → p-D0wwETCp.js} +4 -4
  34. package/dist/components/{p-mX_ZX0bR.js → p-DZhiQXGc.js} +3 -3
  35. package/dist/custom-elements.json +24 -0
  36. package/dist/esm/br-button.br-icon.entry.js.map +1 -1
  37. package/dist/esm/br-button_2.entry.js +14 -1
  38. package/dist/esm/br-button_2.entry.js.map +1 -1
  39. package/dist/esm/br-message.entry.js +2 -2
  40. package/dist/esm/br-message.entry.js.map +1 -1
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/webcomponents.js +1 -1
  43. package/dist/hydrate/index.js +19 -5
  44. package/dist/hydrate/index.mjs +19 -5
  45. package/dist/types/components/icon/icon.d.ts +35 -0
  46. package/dist/types/components.d.ts +14 -0
  47. package/dist/webcomponents/br-button.br-icon.entry.esm.js.map +1 -1
  48. package/dist/webcomponents/br-message.entry.esm.js.map +1 -1
  49. package/dist/webcomponents/{p-9f9f80c1.entry.js → p-0b45efc3.entry.js} +6 -4
  50. package/dist/webcomponents/p-0b45efc3.entry.js.map +1 -0
  51. package/dist/webcomponents/{p-b019dfca.entry.js → p-fa0aeb0f.entry.js} +19 -4
  52. package/dist/webcomponents/p-fa0aeb0f.entry.js.map +1 -0
  53. package/dist/webcomponents/webcomponents.esm.js +1 -1
  54. package/dist/webcomponents.html-custom-data.json +2 -1
  55. package/package.json +1 -1
  56. package/dist/components/p-xvM_htUS.js.map +0 -1
  57. package/dist/webcomponents/p-9f9f80c1.entry.js.map +0 -1
  58. package/dist/webcomponents/p-b019dfca.entry.js.map +0 -1
  59. /package/dist/components/{p-Hceu1c6D.js.map → p-BUfNFi9N.js.map} +0 -0
  60. /package/dist/components/{p-3-jhm6pC.js.map → p-D0wwETCp.js.map} +0 -0
  61. /package/dist/components/{p-mX_ZX0bR.js.map → p-DZhiQXGc.js.map} +0 -0
@@ -2453,6 +2453,19 @@ const Icon = class {
2453
2453
  */
2454
2454
  this.isFocusable = false;
2455
2455
  }
2456
+ /**
2457
+ * Retorna o valor efetivo para o comportamento "lazy" do ícone.
2458
+ *
2459
+ * Explicação:
2460
+ * - Se o atributo 'lazy' estiver presente no elemento, o método retorna o valor da propriedade this.lazy (true ou false).
2461
+ * - Se o atributo 'lazy' NÃO estiver presente, assume-se o comportamento padrão, retornando false (ou seja, carregamento imediato ativado).
2462
+ *
2463
+ * Isso permite distinguir entre o caso em que o usuário explicitamente define lazy={true} (carregamento lazy)
2464
+ * e o caso em que o atributo não é informado (carregamento imediato por padrão).
2465
+ */
2466
+ get effectiveLazy() {
2467
+ return this.el.hasAttribute('lazy') ? this.lazy === true : false;
2468
+ }
2456
2469
  componentDidLoad() {
2457
2470
  const iconElement = this.el.shadowRoot.querySelector('iconify-icon');
2458
2471
  if (iconElement !== null) {
@@ -2467,7 +2480,7 @@ const Icon = class {
2467
2480
  }
2468
2481
  }
2469
2482
  render() {
2470
- return (h(Host, { key: 'd355c0319a0a9e39b715a8b8fb306daaa2dbe921' }, h("iconify-icon", { key: '7cf05e8c2b8524db8936068d6a4fe6498b1d047a', id: this.customId, flip: this.flip, width: this.width, class: this.cssClasses, icon: this.iconName, inline: this.isInline, height: this.height, rotate: this.rotate, role: this.isFocusable ? 'img' : null, tabindex: this.isFocusable ? 0 : '-1', "aria-hidden": this.isFocusable ? null : 'true', focusable: this.isFocusable ? true : 'false' })));
2483
+ return (h(Host, { key: '2e7d9f6ce084676d9cc384591cc07d7701bfe96f' }, h("iconify-icon", { key: '49cdbbd52defc602755bc6ebd74eb2cfbe29f5e5', id: this.customId, flip: this.flip, width: this.width, class: this.cssClasses, icon: this.iconName, inline: this.isInline, height: this.height, rotate: this.rotate, role: this.isFocusable ? 'img' : null, tabindex: this.isFocusable ? 0 : '-1', "aria-hidden": this.isFocusable ? null : 'true', focusable: this.isFocusable ? true : 'false', ...(this.effectiveLazy === false ? { noobserver: true } : {}) })));
2471
2484
  }
2472
2485
  get el() { return getElement(this); }
2473
2486
  };